@goscribe/server 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context.d.ts +14 -1
- package/dist/context.js +23 -2
- package/dist/generated/prisma/client.d.ts +224 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +67 -0
- package/dist/generated/prisma/enums.js +66 -0
- package/dist/generated/prisma/internal/class.d.ts +539 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
- package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
- package/dist/generated/prisma/models/ActivityLog.js +1 -0
- package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
- package/dist/generated/prisma/models/Artifact.js +1 -0
- package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
- package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
- package/dist/generated/prisma/models/Channel.d.ts +1257 -0
- package/dist/generated/prisma/models/Channel.js +1 -0
- package/dist/generated/prisma/models/Chat.d.ts +1339 -0
- package/dist/generated/prisma/models/Chat.js +1 -0
- package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
- package/dist/generated/prisma/models/CopilotConversation.js +1 -0
- package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
- package/dist/generated/prisma/models/CopilotMessage.js +1 -0
- package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
- package/dist/generated/prisma/models/FileAsset.js +1 -0
- package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
- package/dist/generated/prisma/models/Flashcard.js +1 -0
- package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
- package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
- package/dist/generated/prisma/models/Folder.d.ts +1685 -0
- package/dist/generated/prisma/models/Folder.js +1 -0
- package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
- package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
- package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
- package/dist/generated/prisma/models/Invoice.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
- package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
- package/dist/generated/prisma/models/Notification.d.ts +1992 -0
- package/dist/generated/prisma/models/Notification.js +1 -0
- package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
- package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
- package/dist/generated/prisma/models/Plan.d.ts +1431 -0
- package/dist/generated/prisma/models/Plan.js +1 -0
- package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
- package/dist/generated/prisma/models/PlanLimit.js +1 -0
- package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
- package/dist/generated/prisma/models/PodcastSegment.js +1 -0
- package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
- package/dist/generated/prisma/models/ResourcePrice.js +1 -0
- package/dist/generated/prisma/models/Role.d.ts +1065 -0
- package/dist/generated/prisma/models/Role.js +1 -0
- package/dist/generated/prisma/models/Session.d.ts +1105 -0
- package/dist/generated/prisma/models/Session.js +1 -0
- package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
- package/dist/generated/prisma/models/StripeEvent.js +1 -0
- package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
- package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
- package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
- package/dist/generated/prisma/models/Subscription.js +1 -0
- package/dist/generated/prisma/models/User.d.ts +7559 -0
- package/dist/generated/prisma/models/User.js +1 -0
- package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
- package/dist/generated/prisma/models/UserCredit.js +1 -0
- package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
- package/dist/generated/prisma/models/VerificationToken.js +1 -0
- package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
- package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
- package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
- package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
- package/dist/generated/prisma/models/Workspace.js +1 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
- package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
- package/dist/generated/prisma/models.d.ts +39 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/lib/ai/index.d.ts +3 -2
- package/dist/lib/ai/index.js +3 -2
- package/dist/lib/ai/llm-client.d.ts +1 -0
- package/dist/lib/ai/llm-client.js +17 -0
- package/dist/routers/_app.d.ts +40 -80
- package/dist/routers/auth.js +1 -1
- package/dist/routers/flashcards.d.ts +12 -1
- package/dist/routers/payment.d.ts +1 -12
- package/dist/routers/workspace.d.ts +27 -67
- package/dist/routers/workspace.js +1 -0
- package/dist/services/billing/payment.service.d.ts +1 -12
- package/dist/services/billing/payment.service.js +3 -6
- package/dist/services/billing/usage.service.d.ts +30 -10
- package/dist/services/billing/usage.service.js +87 -15
- package/dist/services/content/copilot.service.js +15 -29
- package/dist/services/content/flashcard-progress.service.js +9 -9
- package/dist/services/content/flashcard.service.d.ts +45 -1
- package/dist/services/content/flashcard.service.js +81 -68
- package/dist/services/content/media-analysis.service.js +27 -27
- package/dist/services/content/worksheet-generation.service.test.js +2 -2
- package/dist/services/workspace/workspace.service.d.ts +23 -67
- package/dist/services/workspace/workspace.service.js +69 -62
- package/dist/src/context.d.ts +27 -0
- package/dist/src/context.js +33 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -0
- package/dist/src/lib/ai/config.d.ts +20 -0
- package/dist/src/lib/ai/config.js +31 -0
- package/dist/src/lib/ai/embedding-client.d.ts +8 -0
- package/dist/src/lib/ai/embedding-client.js +30 -0
- package/dist/src/lib/ai/index.d.ts +48 -0
- package/dist/src/lib/ai/index.js +29 -0
- package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
- package/dist/src/lib/ai/inference-backend/client.js +301 -0
- package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
- package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
- package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
- package/dist/src/lib/ai/inference-backend/types.js +1 -0
- package/dist/src/lib/ai/json-parse.d.ts +2 -0
- package/dist/src/lib/ai/json-parse.js +34 -0
- package/dist/src/lib/ai/llm-client.d.ts +7 -0
- package/dist/src/lib/ai/llm-client.js +36 -0
- package/dist/src/lib/ai/mock.d.ts +2 -0
- package/dist/src/lib/ai/mock.js +10 -0
- package/dist/src/lib/ai/types.d.ts +9 -0
- package/dist/src/lib/ai/types.js +1 -0
- package/dist/src/lib/auth.d.ts +36 -0
- package/dist/src/lib/auth.js +117 -0
- package/dist/src/lib/chunking.d.ts +19 -0
- package/dist/src/lib/chunking.js +47 -0
- package/dist/src/lib/constants.d.ts +13 -0
- package/dist/src/lib/constants.js +12 -0
- package/dist/src/lib/curated-kb-seed.d.ts +12 -0
- package/dist/src/lib/curated-kb-seed.js +155 -0
- package/dist/src/lib/email.d.ts +11 -0
- package/dist/src/lib/email.js +152 -0
- package/dist/src/lib/embeddings.d.ts +2 -0
- package/dist/src/lib/embeddings.js +1 -0
- package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
- package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
- package/dist/src/lib/env.d.ts +41 -0
- package/dist/src/lib/env.js +57 -0
- package/dist/src/lib/errors.d.ts +33 -0
- package/dist/src/lib/errors.js +78 -0
- package/dist/src/lib/file.d.ts +0 -0
- package/dist/src/lib/file.js +1 -0
- package/dist/src/lib/inference.d.ts +1 -0
- package/dist/src/lib/inference.js +1 -0
- package/dist/src/lib/kb-meta.d.ts +8 -0
- package/dist/src/lib/kb-meta.js +77 -0
- package/dist/src/lib/logger.d.ts +62 -0
- package/dist/src/lib/logger.js +364 -0
- package/dist/src/lib/pdf.d.ts +11 -0
- package/dist/src/lib/pdf.js +11 -0
- package/dist/src/lib/prisma.d.ts +3 -0
- package/dist/src/lib/prisma.js +15 -0
- package/dist/src/lib/pusher.d.ts +38 -0
- package/dist/src/lib/pusher.js +170 -0
- package/dist/src/lib/retry.d.ts +15 -0
- package/dist/src/lib/retry.js +37 -0
- package/dist/src/lib/storage.d.ts +11 -0
- package/dist/src/lib/storage.js +71 -0
- package/dist/src/lib/stripe.d.ts +10 -0
- package/dist/src/lib/stripe.js +36 -0
- package/dist/src/lib/validation.d.ts +51 -0
- package/dist/src/lib/validation.js +64 -0
- package/dist/src/lib/workspace-kb.d.ts +5 -0
- package/dist/src/lib/workspace-kb.js +7 -0
- package/dist/src/repositories/artifact.repository.d.ts +64 -0
- package/dist/src/repositories/artifact.repository.js +40 -0
- package/dist/src/repositories/base.repository.d.ts +14 -0
- package/dist/src/repositories/base.repository.js +14 -0
- package/dist/src/repositories/invitation.repository.d.ts +104 -0
- package/dist/src/repositories/invitation.repository.js +44 -0
- package/dist/src/repositories/notification.repository.d.ts +76 -0
- package/dist/src/repositories/notification.repository.js +44 -0
- package/dist/src/repositories/user.repository.d.ts +84 -0
- package/dist/src/repositories/user.repository.js +37 -0
- package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
- package/dist/src/repositories/workspace-member.repository.js +31 -0
- package/dist/src/repositories/workspace.repository.d.ts +101 -0
- package/dist/src/repositories/workspace.repository.js +79 -0
- package/dist/src/routers/_app.d.ts +3464 -0
- package/dist/src/routers/_app.js +36 -0
- package/dist/src/routers/admin.d.ts +358 -0
- package/dist/src/routers/admin.js +105 -0
- package/dist/src/routers/annotations.d.ts +219 -0
- package/dist/src/routers/annotations.js +29 -0
- package/dist/src/routers/artifactVersions.d.ts +65 -0
- package/dist/src/routers/artifactVersions.js +14 -0
- package/dist/src/routers/auth.d.ts +161 -0
- package/dist/src/routers/auth.js +97 -0
- package/dist/src/routers/chat.d.ts +170 -0
- package/dist/src/routers/chat.js +32 -0
- package/dist/src/routers/copilot.d.ts +200 -0
- package/dist/src/routers/copilot.js +52 -0
- package/dist/src/routers/flashcards.d.ts +336 -0
- package/dist/src/routers/flashcards.js +93 -0
- package/dist/src/routers/knowledgeBase.d.ts +421 -0
- package/dist/src/routers/knowledgeBase.js +118 -0
- package/dist/src/routers/members.d.ts +169 -0
- package/dist/src/routers/members.js +47 -0
- package/dist/src/routers/notifications.d.ts +99 -0
- package/dist/src/routers/notifications.js +25 -0
- package/dist/src/routers/payment.d.ts +80 -0
- package/dist/src/routers/payment.js +21 -0
- package/dist/src/routers/podcast.d.ts +287 -0
- package/dist/src/routers/podcast.js +34 -0
- package/dist/src/routers/studyguide.d.ts +36 -0
- package/dist/src/routers/studyguide.js +8 -0
- package/dist/src/routers/worksheets.d.ts +429 -0
- package/dist/src/routers/worksheets.js +139 -0
- package/dist/src/routers/workspace.d.ts +563 -0
- package/dist/src/routers/workspace.js +104 -0
- package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
- package/dist/src/scripts/purge-deleted-users.js +148 -0
- package/dist/src/server.d.ts +1 -0
- package/dist/src/server.js +190 -0
- package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
- package/dist/src/services/activity/activity-human-description.service.js +221 -0
- package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
- package/dist/src/services/activity/activity-log.service.d.ts +87 -0
- package/dist/src/services/activity/activity-log.service.js +276 -0
- package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-log.service.test.js +27 -0
- package/dist/src/services/admin/admin.service.d.ts +270 -0
- package/dist/src/services/admin/admin.service.js +476 -0
- package/dist/src/services/ai/ai-session.service.d.ts +5 -0
- package/dist/src/services/ai/ai-session.service.js +4 -0
- package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
- package/dist/src/services/artifacts/annotation.service.js +154 -0
- package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
- package/dist/src/services/artifacts/artifact-version.service.js +129 -0
- package/dist/src/services/artifacts/chat.service.d.ts +127 -0
- package/dist/src/services/artifacts/chat.service.js +182 -0
- package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
- package/dist/src/services/artifacts/study-guide.service.js +65 -0
- package/dist/src/services/auth/auth.service.d.ts +94 -0
- package/dist/src/services/auth/auth.service.js +368 -0
- package/dist/src/services/base.service.d.ts +14 -0
- package/dist/src/services/base.service.js +14 -0
- package/dist/src/services/billing/payment.service.d.ts +44 -0
- package/dist/src/services/billing/payment.service.js +365 -0
- package/dist/src/services/billing/subscription.service.d.ts +37 -0
- package/dist/src/services/billing/subscription.service.js +654 -0
- package/dist/src/services/billing/usage.service.d.ts +47 -0
- package/dist/src/services/billing/usage.service.js +149 -0
- package/dist/src/services/content/copilot.service.d.ts +113 -0
- package/dist/src/services/content/copilot.service.js +439 -0
- package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
- package/dist/src/services/content/flashcard-progress.service.js +432 -0
- package/dist/src/services/content/flashcard.service.d.ts +184 -0
- package/dist/src/services/content/flashcard.service.js +339 -0
- package/dist/src/services/content/media-analysis.service.d.ts +23 -0
- package/dist/src/services/content/media-analysis.service.js +404 -0
- package/dist/src/services/content/podcast.service.d.ts +267 -0
- package/dist/src/services/content/podcast.service.js +653 -0
- package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
- package/dist/src/services/content/worksheet-content.service.js +84 -0
- package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-content.service.test.js +69 -0
- package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
- package/dist/src/services/content/worksheet-generation.service.js +95 -0
- package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
- package/dist/src/services/content/worksheet.service.d.ts +347 -0
- package/dist/src/services/content/worksheet.service.js +599 -0
- package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
- package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
- package/dist/src/services/members/invitation.service.d.ts +66 -0
- package/dist/src/services/members/invitation.service.js +348 -0
- package/dist/src/services/members/member.service.d.ts +36 -0
- package/dist/src/services/members/member.service.js +193 -0
- package/dist/src/services/notifications/notification.service.d.ts +214 -0
- package/dist/src/services/notifications/notification.service.js +550 -0
- package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
- package/dist/src/services/notifications/notification.service.test.js +87 -0
- package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
- package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
- package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
- package/dist/src/services/workspace/workspace-kb.service.js +184 -0
- package/dist/src/services/workspace/workspace.service.d.ts +263 -0
- package/dist/src/services/workspace/workspace.service.js +401 -0
- package/dist/src/trpc.d.ts +60 -0
- package/dist/src/trpc.js +217 -0
- package/dist/src/types/index.d.ts +126 -0
- package/dist/src/types/index.js +1 -0
- package/dist/trpc.d.ts +12 -4
- package/dist/trpc.js +5 -11
- package/package.json +8 -9
- package/prisma/schema.prisma +3 -4
- package/prisma/seed.mjs +5 -2
- package/prisma.config.ts +16 -0
- package/src/context.ts +33 -3
- package/src/lib/ai/index.ts +3 -0
- package/src/lib/ai/llm-client.ts +23 -0
- package/src/lib/prisma.ts +18 -9
- package/src/routers/auth.ts +1 -1
- package/src/routers/workspace.ts +4 -0
- package/src/scripts/purge-deleted-users.ts +1 -3
- package/src/services/billing/payment.service.ts +3 -6
- package/src/services/billing/usage.service.ts +190 -77
- package/src/services/content/copilot.service.ts +23 -32
- package/src/services/content/flashcard-progress.service.ts +12 -9
- package/src/services/content/flashcard.service.ts +89 -66
- package/src/services/content/media-analysis.service.ts +34 -29
- package/src/services/content/worksheet-generation.service.test.ts +2 -2
- package/src/services/workspace/workspace.service.ts +73 -66
- package/src/trpc.ts +5 -13
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,1179 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
4
|
+
/**
|
|
5
|
+
* Model CopilotMessage
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type CopilotMessageModel = runtime.Types.Result.DefaultSelection<Prisma.$CopilotMessagePayload>;
|
|
9
|
+
export type AggregateCopilotMessage = {
|
|
10
|
+
_count: CopilotMessageCountAggregateOutputType | null;
|
|
11
|
+
_min: CopilotMessageMinAggregateOutputType | null;
|
|
12
|
+
_max: CopilotMessageMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type CopilotMessageMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
conversationId: string | null;
|
|
17
|
+
role: $Enums.CopilotMessageRole | null;
|
|
18
|
+
content: string | null;
|
|
19
|
+
createdAt: Date | null;
|
|
20
|
+
};
|
|
21
|
+
export type CopilotMessageMaxAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
conversationId: string | null;
|
|
24
|
+
role: $Enums.CopilotMessageRole | null;
|
|
25
|
+
content: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
};
|
|
28
|
+
export type CopilotMessageCountAggregateOutputType = {
|
|
29
|
+
id: number;
|
|
30
|
+
conversationId: number;
|
|
31
|
+
role: number;
|
|
32
|
+
content: number;
|
|
33
|
+
createdAt: number;
|
|
34
|
+
_all: number;
|
|
35
|
+
};
|
|
36
|
+
export type CopilotMessageMinAggregateInputType = {
|
|
37
|
+
id?: true;
|
|
38
|
+
conversationId?: true;
|
|
39
|
+
role?: true;
|
|
40
|
+
content?: true;
|
|
41
|
+
createdAt?: true;
|
|
42
|
+
};
|
|
43
|
+
export type CopilotMessageMaxAggregateInputType = {
|
|
44
|
+
id?: true;
|
|
45
|
+
conversationId?: true;
|
|
46
|
+
role?: true;
|
|
47
|
+
content?: true;
|
|
48
|
+
createdAt?: true;
|
|
49
|
+
};
|
|
50
|
+
export type CopilotMessageCountAggregateInputType = {
|
|
51
|
+
id?: true;
|
|
52
|
+
conversationId?: true;
|
|
53
|
+
role?: true;
|
|
54
|
+
content?: true;
|
|
55
|
+
createdAt?: true;
|
|
56
|
+
_all?: true;
|
|
57
|
+
};
|
|
58
|
+
export type CopilotMessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
59
|
+
/**
|
|
60
|
+
* Filter which CopilotMessage to aggregate.
|
|
61
|
+
*/
|
|
62
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
63
|
+
/**
|
|
64
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
65
|
+
*
|
|
66
|
+
* Determine the order of CopilotMessages to fetch.
|
|
67
|
+
*/
|
|
68
|
+
orderBy?: Prisma.CopilotMessageOrderByWithRelationInput | Prisma.CopilotMessageOrderByWithRelationInput[];
|
|
69
|
+
/**
|
|
70
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
71
|
+
*
|
|
72
|
+
* Sets the start position
|
|
73
|
+
*/
|
|
74
|
+
cursor?: Prisma.CopilotMessageWhereUniqueInput;
|
|
75
|
+
/**
|
|
76
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
77
|
+
*
|
|
78
|
+
* Take `±n` CopilotMessages from the position of the cursor.
|
|
79
|
+
*/
|
|
80
|
+
take?: number;
|
|
81
|
+
/**
|
|
82
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
83
|
+
*
|
|
84
|
+
* Skip the first `n` CopilotMessages.
|
|
85
|
+
*/
|
|
86
|
+
skip?: number;
|
|
87
|
+
/**
|
|
88
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
89
|
+
*
|
|
90
|
+
* Count returned CopilotMessages
|
|
91
|
+
**/
|
|
92
|
+
_count?: true | CopilotMessageCountAggregateInputType;
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
95
|
+
*
|
|
96
|
+
* Select which fields to find the minimum value
|
|
97
|
+
**/
|
|
98
|
+
_min?: CopilotMessageMinAggregateInputType;
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
101
|
+
*
|
|
102
|
+
* Select which fields to find the maximum value
|
|
103
|
+
**/
|
|
104
|
+
_max?: CopilotMessageMaxAggregateInputType;
|
|
105
|
+
};
|
|
106
|
+
export type GetCopilotMessageAggregateType<T extends CopilotMessageAggregateArgs> = {
|
|
107
|
+
[P in keyof T & keyof AggregateCopilotMessage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCopilotMessage[P]> : Prisma.GetScalarType<T[P], AggregateCopilotMessage[P]>;
|
|
108
|
+
};
|
|
109
|
+
export type CopilotMessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
110
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
111
|
+
orderBy?: Prisma.CopilotMessageOrderByWithAggregationInput | Prisma.CopilotMessageOrderByWithAggregationInput[];
|
|
112
|
+
by: Prisma.CopilotMessageScalarFieldEnum[] | Prisma.CopilotMessageScalarFieldEnum;
|
|
113
|
+
having?: Prisma.CopilotMessageScalarWhereWithAggregatesInput;
|
|
114
|
+
take?: number;
|
|
115
|
+
skip?: number;
|
|
116
|
+
_count?: CopilotMessageCountAggregateInputType | true;
|
|
117
|
+
_min?: CopilotMessageMinAggregateInputType;
|
|
118
|
+
_max?: CopilotMessageMaxAggregateInputType;
|
|
119
|
+
};
|
|
120
|
+
export type CopilotMessageGroupByOutputType = {
|
|
121
|
+
id: string;
|
|
122
|
+
conversationId: string;
|
|
123
|
+
role: $Enums.CopilotMessageRole;
|
|
124
|
+
content: string;
|
|
125
|
+
createdAt: Date;
|
|
126
|
+
_count: CopilotMessageCountAggregateOutputType | null;
|
|
127
|
+
_min: CopilotMessageMinAggregateOutputType | null;
|
|
128
|
+
_max: CopilotMessageMaxAggregateOutputType | null;
|
|
129
|
+
};
|
|
130
|
+
export type GetCopilotMessageGroupByPayload<T extends CopilotMessageGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CopilotMessageGroupByOutputType, T['by']> & {
|
|
131
|
+
[P in ((keyof T) & (keyof CopilotMessageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CopilotMessageGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CopilotMessageGroupByOutputType[P]>;
|
|
132
|
+
}>>;
|
|
133
|
+
export type CopilotMessageWhereInput = {
|
|
134
|
+
AND?: Prisma.CopilotMessageWhereInput | Prisma.CopilotMessageWhereInput[];
|
|
135
|
+
OR?: Prisma.CopilotMessageWhereInput[];
|
|
136
|
+
NOT?: Prisma.CopilotMessageWhereInput | Prisma.CopilotMessageWhereInput[];
|
|
137
|
+
id?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
138
|
+
conversationId?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
139
|
+
role?: Prisma.EnumCopilotMessageRoleFilter<"CopilotMessage"> | $Enums.CopilotMessageRole;
|
|
140
|
+
content?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
141
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotMessage"> | Date | string;
|
|
142
|
+
conversation?: Prisma.XOR<Prisma.CopilotConversationScalarRelationFilter, Prisma.CopilotConversationWhereInput>;
|
|
143
|
+
};
|
|
144
|
+
export type CopilotMessageOrderByWithRelationInput = {
|
|
145
|
+
id?: Prisma.SortOrder;
|
|
146
|
+
conversationId?: Prisma.SortOrder;
|
|
147
|
+
role?: Prisma.SortOrder;
|
|
148
|
+
content?: Prisma.SortOrder;
|
|
149
|
+
createdAt?: Prisma.SortOrder;
|
|
150
|
+
conversation?: Prisma.CopilotConversationOrderByWithRelationInput;
|
|
151
|
+
};
|
|
152
|
+
export type CopilotMessageWhereUniqueInput = Prisma.AtLeast<{
|
|
153
|
+
id?: string;
|
|
154
|
+
AND?: Prisma.CopilotMessageWhereInput | Prisma.CopilotMessageWhereInput[];
|
|
155
|
+
OR?: Prisma.CopilotMessageWhereInput[];
|
|
156
|
+
NOT?: Prisma.CopilotMessageWhereInput | Prisma.CopilotMessageWhereInput[];
|
|
157
|
+
conversationId?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
158
|
+
role?: Prisma.EnumCopilotMessageRoleFilter<"CopilotMessage"> | $Enums.CopilotMessageRole;
|
|
159
|
+
content?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
160
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotMessage"> | Date | string;
|
|
161
|
+
conversation?: Prisma.XOR<Prisma.CopilotConversationScalarRelationFilter, Prisma.CopilotConversationWhereInput>;
|
|
162
|
+
}, "id">;
|
|
163
|
+
export type CopilotMessageOrderByWithAggregationInput = {
|
|
164
|
+
id?: Prisma.SortOrder;
|
|
165
|
+
conversationId?: Prisma.SortOrder;
|
|
166
|
+
role?: Prisma.SortOrder;
|
|
167
|
+
content?: Prisma.SortOrder;
|
|
168
|
+
createdAt?: Prisma.SortOrder;
|
|
169
|
+
_count?: Prisma.CopilotMessageCountOrderByAggregateInput;
|
|
170
|
+
_max?: Prisma.CopilotMessageMaxOrderByAggregateInput;
|
|
171
|
+
_min?: Prisma.CopilotMessageMinOrderByAggregateInput;
|
|
172
|
+
};
|
|
173
|
+
export type CopilotMessageScalarWhereWithAggregatesInput = {
|
|
174
|
+
AND?: Prisma.CopilotMessageScalarWhereWithAggregatesInput | Prisma.CopilotMessageScalarWhereWithAggregatesInput[];
|
|
175
|
+
OR?: Prisma.CopilotMessageScalarWhereWithAggregatesInput[];
|
|
176
|
+
NOT?: Prisma.CopilotMessageScalarWhereWithAggregatesInput | Prisma.CopilotMessageScalarWhereWithAggregatesInput[];
|
|
177
|
+
id?: Prisma.StringWithAggregatesFilter<"CopilotMessage"> | string;
|
|
178
|
+
conversationId?: Prisma.StringWithAggregatesFilter<"CopilotMessage"> | string;
|
|
179
|
+
role?: Prisma.EnumCopilotMessageRoleWithAggregatesFilter<"CopilotMessage"> | $Enums.CopilotMessageRole;
|
|
180
|
+
content?: Prisma.StringWithAggregatesFilter<"CopilotMessage"> | string;
|
|
181
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CopilotMessage"> | Date | string;
|
|
182
|
+
};
|
|
183
|
+
export type CopilotMessageCreateInput = {
|
|
184
|
+
id?: string;
|
|
185
|
+
role: $Enums.CopilotMessageRole;
|
|
186
|
+
content: string;
|
|
187
|
+
createdAt?: Date | string;
|
|
188
|
+
conversation: Prisma.CopilotConversationCreateNestedOneWithoutMessagesInput;
|
|
189
|
+
};
|
|
190
|
+
export type CopilotMessageUncheckedCreateInput = {
|
|
191
|
+
id?: string;
|
|
192
|
+
conversationId: string;
|
|
193
|
+
role: $Enums.CopilotMessageRole;
|
|
194
|
+
content: string;
|
|
195
|
+
createdAt?: Date | string;
|
|
196
|
+
};
|
|
197
|
+
export type CopilotMessageUpdateInput = {
|
|
198
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
199
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
200
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
201
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
202
|
+
conversation?: Prisma.CopilotConversationUpdateOneRequiredWithoutMessagesNestedInput;
|
|
203
|
+
};
|
|
204
|
+
export type CopilotMessageUncheckedUpdateInput = {
|
|
205
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
206
|
+
conversationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
207
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
208
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
209
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
210
|
+
};
|
|
211
|
+
export type CopilotMessageCreateManyInput = {
|
|
212
|
+
id?: string;
|
|
213
|
+
conversationId: string;
|
|
214
|
+
role: $Enums.CopilotMessageRole;
|
|
215
|
+
content: string;
|
|
216
|
+
createdAt?: Date | string;
|
|
217
|
+
};
|
|
218
|
+
export type CopilotMessageUpdateManyMutationInput = {
|
|
219
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
220
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
221
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
222
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
223
|
+
};
|
|
224
|
+
export type CopilotMessageUncheckedUpdateManyInput = {
|
|
225
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
226
|
+
conversationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
227
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
228
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
229
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
230
|
+
};
|
|
231
|
+
export type CopilotMessageListRelationFilter = {
|
|
232
|
+
every?: Prisma.CopilotMessageWhereInput;
|
|
233
|
+
some?: Prisma.CopilotMessageWhereInput;
|
|
234
|
+
none?: Prisma.CopilotMessageWhereInput;
|
|
235
|
+
};
|
|
236
|
+
export type CopilotMessageOrderByRelationAggregateInput = {
|
|
237
|
+
_count?: Prisma.SortOrder;
|
|
238
|
+
};
|
|
239
|
+
export type CopilotMessageCountOrderByAggregateInput = {
|
|
240
|
+
id?: Prisma.SortOrder;
|
|
241
|
+
conversationId?: Prisma.SortOrder;
|
|
242
|
+
role?: Prisma.SortOrder;
|
|
243
|
+
content?: Prisma.SortOrder;
|
|
244
|
+
createdAt?: Prisma.SortOrder;
|
|
245
|
+
};
|
|
246
|
+
export type CopilotMessageMaxOrderByAggregateInput = {
|
|
247
|
+
id?: Prisma.SortOrder;
|
|
248
|
+
conversationId?: Prisma.SortOrder;
|
|
249
|
+
role?: Prisma.SortOrder;
|
|
250
|
+
content?: Prisma.SortOrder;
|
|
251
|
+
createdAt?: Prisma.SortOrder;
|
|
252
|
+
};
|
|
253
|
+
export type CopilotMessageMinOrderByAggregateInput = {
|
|
254
|
+
id?: Prisma.SortOrder;
|
|
255
|
+
conversationId?: Prisma.SortOrder;
|
|
256
|
+
role?: Prisma.SortOrder;
|
|
257
|
+
content?: Prisma.SortOrder;
|
|
258
|
+
createdAt?: Prisma.SortOrder;
|
|
259
|
+
};
|
|
260
|
+
export type CopilotMessageCreateNestedManyWithoutConversationInput = {
|
|
261
|
+
create?: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput> | Prisma.CopilotMessageCreateWithoutConversationInput[] | Prisma.CopilotMessageUncheckedCreateWithoutConversationInput[];
|
|
262
|
+
connectOrCreate?: Prisma.CopilotMessageCreateOrConnectWithoutConversationInput | Prisma.CopilotMessageCreateOrConnectWithoutConversationInput[];
|
|
263
|
+
createMany?: Prisma.CopilotMessageCreateManyConversationInputEnvelope;
|
|
264
|
+
connect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
265
|
+
};
|
|
266
|
+
export type CopilotMessageUncheckedCreateNestedManyWithoutConversationInput = {
|
|
267
|
+
create?: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput> | Prisma.CopilotMessageCreateWithoutConversationInput[] | Prisma.CopilotMessageUncheckedCreateWithoutConversationInput[];
|
|
268
|
+
connectOrCreate?: Prisma.CopilotMessageCreateOrConnectWithoutConversationInput | Prisma.CopilotMessageCreateOrConnectWithoutConversationInput[];
|
|
269
|
+
createMany?: Prisma.CopilotMessageCreateManyConversationInputEnvelope;
|
|
270
|
+
connect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
271
|
+
};
|
|
272
|
+
export type CopilotMessageUpdateManyWithoutConversationNestedInput = {
|
|
273
|
+
create?: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput> | Prisma.CopilotMessageCreateWithoutConversationInput[] | Prisma.CopilotMessageUncheckedCreateWithoutConversationInput[];
|
|
274
|
+
connectOrCreate?: Prisma.CopilotMessageCreateOrConnectWithoutConversationInput | Prisma.CopilotMessageCreateOrConnectWithoutConversationInput[];
|
|
275
|
+
upsert?: Prisma.CopilotMessageUpsertWithWhereUniqueWithoutConversationInput | Prisma.CopilotMessageUpsertWithWhereUniqueWithoutConversationInput[];
|
|
276
|
+
createMany?: Prisma.CopilotMessageCreateManyConversationInputEnvelope;
|
|
277
|
+
set?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
278
|
+
disconnect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
279
|
+
delete?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
280
|
+
connect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
281
|
+
update?: Prisma.CopilotMessageUpdateWithWhereUniqueWithoutConversationInput | Prisma.CopilotMessageUpdateWithWhereUniqueWithoutConversationInput[];
|
|
282
|
+
updateMany?: Prisma.CopilotMessageUpdateManyWithWhereWithoutConversationInput | Prisma.CopilotMessageUpdateManyWithWhereWithoutConversationInput[];
|
|
283
|
+
deleteMany?: Prisma.CopilotMessageScalarWhereInput | Prisma.CopilotMessageScalarWhereInput[];
|
|
284
|
+
};
|
|
285
|
+
export type CopilotMessageUncheckedUpdateManyWithoutConversationNestedInput = {
|
|
286
|
+
create?: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput> | Prisma.CopilotMessageCreateWithoutConversationInput[] | Prisma.CopilotMessageUncheckedCreateWithoutConversationInput[];
|
|
287
|
+
connectOrCreate?: Prisma.CopilotMessageCreateOrConnectWithoutConversationInput | Prisma.CopilotMessageCreateOrConnectWithoutConversationInput[];
|
|
288
|
+
upsert?: Prisma.CopilotMessageUpsertWithWhereUniqueWithoutConversationInput | Prisma.CopilotMessageUpsertWithWhereUniqueWithoutConversationInput[];
|
|
289
|
+
createMany?: Prisma.CopilotMessageCreateManyConversationInputEnvelope;
|
|
290
|
+
set?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
291
|
+
disconnect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
292
|
+
delete?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
293
|
+
connect?: Prisma.CopilotMessageWhereUniqueInput | Prisma.CopilotMessageWhereUniqueInput[];
|
|
294
|
+
update?: Prisma.CopilotMessageUpdateWithWhereUniqueWithoutConversationInput | Prisma.CopilotMessageUpdateWithWhereUniqueWithoutConversationInput[];
|
|
295
|
+
updateMany?: Prisma.CopilotMessageUpdateManyWithWhereWithoutConversationInput | Prisma.CopilotMessageUpdateManyWithWhereWithoutConversationInput[];
|
|
296
|
+
deleteMany?: Prisma.CopilotMessageScalarWhereInput | Prisma.CopilotMessageScalarWhereInput[];
|
|
297
|
+
};
|
|
298
|
+
export type EnumCopilotMessageRoleFieldUpdateOperationsInput = {
|
|
299
|
+
set?: $Enums.CopilotMessageRole;
|
|
300
|
+
};
|
|
301
|
+
export type CopilotMessageCreateWithoutConversationInput = {
|
|
302
|
+
id?: string;
|
|
303
|
+
role: $Enums.CopilotMessageRole;
|
|
304
|
+
content: string;
|
|
305
|
+
createdAt?: Date | string;
|
|
306
|
+
};
|
|
307
|
+
export type CopilotMessageUncheckedCreateWithoutConversationInput = {
|
|
308
|
+
id?: string;
|
|
309
|
+
role: $Enums.CopilotMessageRole;
|
|
310
|
+
content: string;
|
|
311
|
+
createdAt?: Date | string;
|
|
312
|
+
};
|
|
313
|
+
export type CopilotMessageCreateOrConnectWithoutConversationInput = {
|
|
314
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
315
|
+
create: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput>;
|
|
316
|
+
};
|
|
317
|
+
export type CopilotMessageCreateManyConversationInputEnvelope = {
|
|
318
|
+
data: Prisma.CopilotMessageCreateManyConversationInput | Prisma.CopilotMessageCreateManyConversationInput[];
|
|
319
|
+
skipDuplicates?: boolean;
|
|
320
|
+
};
|
|
321
|
+
export type CopilotMessageUpsertWithWhereUniqueWithoutConversationInput = {
|
|
322
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
323
|
+
update: Prisma.XOR<Prisma.CopilotMessageUpdateWithoutConversationInput, Prisma.CopilotMessageUncheckedUpdateWithoutConversationInput>;
|
|
324
|
+
create: Prisma.XOR<Prisma.CopilotMessageCreateWithoutConversationInput, Prisma.CopilotMessageUncheckedCreateWithoutConversationInput>;
|
|
325
|
+
};
|
|
326
|
+
export type CopilotMessageUpdateWithWhereUniqueWithoutConversationInput = {
|
|
327
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
328
|
+
data: Prisma.XOR<Prisma.CopilotMessageUpdateWithoutConversationInput, Prisma.CopilotMessageUncheckedUpdateWithoutConversationInput>;
|
|
329
|
+
};
|
|
330
|
+
export type CopilotMessageUpdateManyWithWhereWithoutConversationInput = {
|
|
331
|
+
where: Prisma.CopilotMessageScalarWhereInput;
|
|
332
|
+
data: Prisma.XOR<Prisma.CopilotMessageUpdateManyMutationInput, Prisma.CopilotMessageUncheckedUpdateManyWithoutConversationInput>;
|
|
333
|
+
};
|
|
334
|
+
export type CopilotMessageScalarWhereInput = {
|
|
335
|
+
AND?: Prisma.CopilotMessageScalarWhereInput | Prisma.CopilotMessageScalarWhereInput[];
|
|
336
|
+
OR?: Prisma.CopilotMessageScalarWhereInput[];
|
|
337
|
+
NOT?: Prisma.CopilotMessageScalarWhereInput | Prisma.CopilotMessageScalarWhereInput[];
|
|
338
|
+
id?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
339
|
+
conversationId?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
340
|
+
role?: Prisma.EnumCopilotMessageRoleFilter<"CopilotMessage"> | $Enums.CopilotMessageRole;
|
|
341
|
+
content?: Prisma.StringFilter<"CopilotMessage"> | string;
|
|
342
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotMessage"> | Date | string;
|
|
343
|
+
};
|
|
344
|
+
export type CopilotMessageCreateManyConversationInput = {
|
|
345
|
+
id?: string;
|
|
346
|
+
role: $Enums.CopilotMessageRole;
|
|
347
|
+
content: string;
|
|
348
|
+
createdAt?: Date | string;
|
|
349
|
+
};
|
|
350
|
+
export type CopilotMessageUpdateWithoutConversationInput = {
|
|
351
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
352
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
353
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
354
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
355
|
+
};
|
|
356
|
+
export type CopilotMessageUncheckedUpdateWithoutConversationInput = {
|
|
357
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
358
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
359
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
360
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
361
|
+
};
|
|
362
|
+
export type CopilotMessageUncheckedUpdateManyWithoutConversationInput = {
|
|
363
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
364
|
+
role?: Prisma.EnumCopilotMessageRoleFieldUpdateOperationsInput | $Enums.CopilotMessageRole;
|
|
365
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
366
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
367
|
+
};
|
|
368
|
+
export type CopilotMessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
369
|
+
id?: boolean;
|
|
370
|
+
conversationId?: boolean;
|
|
371
|
+
role?: boolean;
|
|
372
|
+
content?: boolean;
|
|
373
|
+
createdAt?: boolean;
|
|
374
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
375
|
+
}, ExtArgs["result"]["copilotMessage"]>;
|
|
376
|
+
export type CopilotMessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
377
|
+
id?: boolean;
|
|
378
|
+
conversationId?: boolean;
|
|
379
|
+
role?: boolean;
|
|
380
|
+
content?: boolean;
|
|
381
|
+
createdAt?: boolean;
|
|
382
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
383
|
+
}, ExtArgs["result"]["copilotMessage"]>;
|
|
384
|
+
export type CopilotMessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
385
|
+
id?: boolean;
|
|
386
|
+
conversationId?: boolean;
|
|
387
|
+
role?: boolean;
|
|
388
|
+
content?: boolean;
|
|
389
|
+
createdAt?: boolean;
|
|
390
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
391
|
+
}, ExtArgs["result"]["copilotMessage"]>;
|
|
392
|
+
export type CopilotMessageSelectScalar = {
|
|
393
|
+
id?: boolean;
|
|
394
|
+
conversationId?: boolean;
|
|
395
|
+
role?: boolean;
|
|
396
|
+
content?: boolean;
|
|
397
|
+
createdAt?: boolean;
|
|
398
|
+
};
|
|
399
|
+
export type CopilotMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "conversationId" | "role" | "content" | "createdAt", ExtArgs["result"]["copilotMessage"]>;
|
|
400
|
+
export type CopilotMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
401
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
402
|
+
};
|
|
403
|
+
export type CopilotMessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
404
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
405
|
+
};
|
|
406
|
+
export type CopilotMessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
407
|
+
conversation?: boolean | Prisma.CopilotConversationDefaultArgs<ExtArgs>;
|
|
408
|
+
};
|
|
409
|
+
export type $CopilotMessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
410
|
+
name: "CopilotMessage";
|
|
411
|
+
objects: {
|
|
412
|
+
conversation: Prisma.$CopilotConversationPayload<ExtArgs>;
|
|
413
|
+
};
|
|
414
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
415
|
+
id: string;
|
|
416
|
+
conversationId: string;
|
|
417
|
+
role: $Enums.CopilotMessageRole;
|
|
418
|
+
content: string;
|
|
419
|
+
createdAt: Date;
|
|
420
|
+
}, ExtArgs["result"]["copilotMessage"]>;
|
|
421
|
+
composites: {};
|
|
422
|
+
};
|
|
423
|
+
export type CopilotMessageGetPayload<S extends boolean | null | undefined | CopilotMessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload, S>;
|
|
424
|
+
export type CopilotMessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CopilotMessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
425
|
+
select?: CopilotMessageCountAggregateInputType | true;
|
|
426
|
+
};
|
|
427
|
+
export interface CopilotMessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
428
|
+
[K: symbol]: {
|
|
429
|
+
types: Prisma.TypeMap<ExtArgs>['model']['CopilotMessage'];
|
|
430
|
+
meta: {
|
|
431
|
+
name: 'CopilotMessage';
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Find zero or one CopilotMessage that matches the filter.
|
|
436
|
+
* @param {CopilotMessageFindUniqueArgs} args - Arguments to find a CopilotMessage
|
|
437
|
+
* @example
|
|
438
|
+
* // Get one CopilotMessage
|
|
439
|
+
* const copilotMessage = await prisma.copilotMessage.findUnique({
|
|
440
|
+
* where: {
|
|
441
|
+
* // ... provide filter here
|
|
442
|
+
* }
|
|
443
|
+
* })
|
|
444
|
+
*/
|
|
445
|
+
findUnique<T extends CopilotMessageFindUniqueArgs>(args: Prisma.SelectSubset<T, CopilotMessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
446
|
+
/**
|
|
447
|
+
* Find one CopilotMessage that matches the filter or throw an error with `error.code='P2025'`
|
|
448
|
+
* if no matches were found.
|
|
449
|
+
* @param {CopilotMessageFindUniqueOrThrowArgs} args - Arguments to find a CopilotMessage
|
|
450
|
+
* @example
|
|
451
|
+
* // Get one CopilotMessage
|
|
452
|
+
* const copilotMessage = await prisma.copilotMessage.findUniqueOrThrow({
|
|
453
|
+
* where: {
|
|
454
|
+
* // ... provide filter here
|
|
455
|
+
* }
|
|
456
|
+
* })
|
|
457
|
+
*/
|
|
458
|
+
findUniqueOrThrow<T extends CopilotMessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CopilotMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
459
|
+
/**
|
|
460
|
+
* Find the first CopilotMessage 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 {CopilotMessageFindFirstArgs} args - Arguments to find a CopilotMessage
|
|
464
|
+
* @example
|
|
465
|
+
* // Get one CopilotMessage
|
|
466
|
+
* const copilotMessage = await prisma.copilotMessage.findFirst({
|
|
467
|
+
* where: {
|
|
468
|
+
* // ... provide filter here
|
|
469
|
+
* }
|
|
470
|
+
* })
|
|
471
|
+
*/
|
|
472
|
+
findFirst<T extends CopilotMessageFindFirstArgs>(args?: Prisma.SelectSubset<T, CopilotMessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
473
|
+
/**
|
|
474
|
+
* Find the first CopilotMessage that matches the filter or
|
|
475
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
476
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
477
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
478
|
+
* @param {CopilotMessageFindFirstOrThrowArgs} args - Arguments to find a CopilotMessage
|
|
479
|
+
* @example
|
|
480
|
+
* // Get one CopilotMessage
|
|
481
|
+
* const copilotMessage = await prisma.copilotMessage.findFirstOrThrow({
|
|
482
|
+
* where: {
|
|
483
|
+
* // ... provide filter here
|
|
484
|
+
* }
|
|
485
|
+
* })
|
|
486
|
+
*/
|
|
487
|
+
findFirstOrThrow<T extends CopilotMessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CopilotMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
488
|
+
/**
|
|
489
|
+
* Find zero or more CopilotMessages that matches the filter.
|
|
490
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
491
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
492
|
+
* @param {CopilotMessageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
493
|
+
* @example
|
|
494
|
+
* // Get all CopilotMessages
|
|
495
|
+
* const copilotMessages = await prisma.copilotMessage.findMany()
|
|
496
|
+
*
|
|
497
|
+
* // Get first 10 CopilotMessages
|
|
498
|
+
* const copilotMessages = await prisma.copilotMessage.findMany({ take: 10 })
|
|
499
|
+
*
|
|
500
|
+
* // Only select the `id`
|
|
501
|
+
* const copilotMessageWithIdOnly = await prisma.copilotMessage.findMany({ select: { id: true } })
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
findMany<T extends CopilotMessageFindManyArgs>(args?: Prisma.SelectSubset<T, CopilotMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
505
|
+
/**
|
|
506
|
+
* Create a CopilotMessage.
|
|
507
|
+
* @param {CopilotMessageCreateArgs} args - Arguments to create a CopilotMessage.
|
|
508
|
+
* @example
|
|
509
|
+
* // Create one CopilotMessage
|
|
510
|
+
* const CopilotMessage = await prisma.copilotMessage.create({
|
|
511
|
+
* data: {
|
|
512
|
+
* // ... data to create a CopilotMessage
|
|
513
|
+
* }
|
|
514
|
+
* })
|
|
515
|
+
*
|
|
516
|
+
*/
|
|
517
|
+
create<T extends CopilotMessageCreateArgs>(args: Prisma.SelectSubset<T, CopilotMessageCreateArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
518
|
+
/**
|
|
519
|
+
* Create many CopilotMessages.
|
|
520
|
+
* @param {CopilotMessageCreateManyArgs} args - Arguments to create many CopilotMessages.
|
|
521
|
+
* @example
|
|
522
|
+
* // Create many CopilotMessages
|
|
523
|
+
* const copilotMessage = await prisma.copilotMessage.createMany({
|
|
524
|
+
* data: [
|
|
525
|
+
* // ... provide data here
|
|
526
|
+
* ]
|
|
527
|
+
* })
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
530
|
+
createMany<T extends CopilotMessageCreateManyArgs>(args?: Prisma.SelectSubset<T, CopilotMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
531
|
+
/**
|
|
532
|
+
* Create many CopilotMessages and returns the data saved in the database.
|
|
533
|
+
* @param {CopilotMessageCreateManyAndReturnArgs} args - Arguments to create many CopilotMessages.
|
|
534
|
+
* @example
|
|
535
|
+
* // Create many CopilotMessages
|
|
536
|
+
* const copilotMessage = await prisma.copilotMessage.createManyAndReturn({
|
|
537
|
+
* data: [
|
|
538
|
+
* // ... provide data here
|
|
539
|
+
* ]
|
|
540
|
+
* })
|
|
541
|
+
*
|
|
542
|
+
* // Create many CopilotMessages and only return the `id`
|
|
543
|
+
* const copilotMessageWithIdOnly = await prisma.copilotMessage.createManyAndReturn({
|
|
544
|
+
* select: { id: true },
|
|
545
|
+
* data: [
|
|
546
|
+
* // ... provide data here
|
|
547
|
+
* ]
|
|
548
|
+
* })
|
|
549
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
550
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
551
|
+
*
|
|
552
|
+
*/
|
|
553
|
+
createManyAndReturn<T extends CopilotMessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CopilotMessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
554
|
+
/**
|
|
555
|
+
* Delete a CopilotMessage.
|
|
556
|
+
* @param {CopilotMessageDeleteArgs} args - Arguments to delete one CopilotMessage.
|
|
557
|
+
* @example
|
|
558
|
+
* // Delete one CopilotMessage
|
|
559
|
+
* const CopilotMessage = await prisma.copilotMessage.delete({
|
|
560
|
+
* where: {
|
|
561
|
+
* // ... filter to delete one CopilotMessage
|
|
562
|
+
* }
|
|
563
|
+
* })
|
|
564
|
+
*
|
|
565
|
+
*/
|
|
566
|
+
delete<T extends CopilotMessageDeleteArgs>(args: Prisma.SelectSubset<T, CopilotMessageDeleteArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
567
|
+
/**
|
|
568
|
+
* Update one CopilotMessage.
|
|
569
|
+
* @param {CopilotMessageUpdateArgs} args - Arguments to update one CopilotMessage.
|
|
570
|
+
* @example
|
|
571
|
+
* // Update one CopilotMessage
|
|
572
|
+
* const copilotMessage = await prisma.copilotMessage.update({
|
|
573
|
+
* where: {
|
|
574
|
+
* // ... provide filter here
|
|
575
|
+
* },
|
|
576
|
+
* data: {
|
|
577
|
+
* // ... provide data here
|
|
578
|
+
* }
|
|
579
|
+
* })
|
|
580
|
+
*
|
|
581
|
+
*/
|
|
582
|
+
update<T extends CopilotMessageUpdateArgs>(args: Prisma.SelectSubset<T, CopilotMessageUpdateArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
583
|
+
/**
|
|
584
|
+
* Delete zero or more CopilotMessages.
|
|
585
|
+
* @param {CopilotMessageDeleteManyArgs} args - Arguments to filter CopilotMessages to delete.
|
|
586
|
+
* @example
|
|
587
|
+
* // Delete a few CopilotMessages
|
|
588
|
+
* const { count } = await prisma.copilotMessage.deleteMany({
|
|
589
|
+
* where: {
|
|
590
|
+
* // ... provide filter here
|
|
591
|
+
* }
|
|
592
|
+
* })
|
|
593
|
+
*
|
|
594
|
+
*/
|
|
595
|
+
deleteMany<T extends CopilotMessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, CopilotMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
596
|
+
/**
|
|
597
|
+
* Update zero or more CopilotMessages.
|
|
598
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
599
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
600
|
+
* @param {CopilotMessageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
601
|
+
* @example
|
|
602
|
+
* // Update many CopilotMessages
|
|
603
|
+
* const copilotMessage = await prisma.copilotMessage.updateMany({
|
|
604
|
+
* where: {
|
|
605
|
+
* // ... provide filter here
|
|
606
|
+
* },
|
|
607
|
+
* data: {
|
|
608
|
+
* // ... provide data here
|
|
609
|
+
* }
|
|
610
|
+
* })
|
|
611
|
+
*
|
|
612
|
+
*/
|
|
613
|
+
updateMany<T extends CopilotMessageUpdateManyArgs>(args: Prisma.SelectSubset<T, CopilotMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
614
|
+
/**
|
|
615
|
+
* Update zero or more CopilotMessages and returns the data updated in the database.
|
|
616
|
+
* @param {CopilotMessageUpdateManyAndReturnArgs} args - Arguments to update many CopilotMessages.
|
|
617
|
+
* @example
|
|
618
|
+
* // Update many CopilotMessages
|
|
619
|
+
* const copilotMessage = await prisma.copilotMessage.updateManyAndReturn({
|
|
620
|
+
* where: {
|
|
621
|
+
* // ... provide filter here
|
|
622
|
+
* },
|
|
623
|
+
* data: [
|
|
624
|
+
* // ... provide data here
|
|
625
|
+
* ]
|
|
626
|
+
* })
|
|
627
|
+
*
|
|
628
|
+
* // Update zero or more CopilotMessages and only return the `id`
|
|
629
|
+
* const copilotMessageWithIdOnly = await prisma.copilotMessage.updateManyAndReturn({
|
|
630
|
+
* select: { id: true },
|
|
631
|
+
* where: {
|
|
632
|
+
* // ... provide filter here
|
|
633
|
+
* },
|
|
634
|
+
* data: [
|
|
635
|
+
* // ... provide data here
|
|
636
|
+
* ]
|
|
637
|
+
* })
|
|
638
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
639
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
640
|
+
*
|
|
641
|
+
*/
|
|
642
|
+
updateManyAndReturn<T extends CopilotMessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CopilotMessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
643
|
+
/**
|
|
644
|
+
* Create or update one CopilotMessage.
|
|
645
|
+
* @param {CopilotMessageUpsertArgs} args - Arguments to update or create a CopilotMessage.
|
|
646
|
+
* @example
|
|
647
|
+
* // Update or create a CopilotMessage
|
|
648
|
+
* const copilotMessage = await prisma.copilotMessage.upsert({
|
|
649
|
+
* create: {
|
|
650
|
+
* // ... data to create a CopilotMessage
|
|
651
|
+
* },
|
|
652
|
+
* update: {
|
|
653
|
+
* // ... in case it already exists, update
|
|
654
|
+
* },
|
|
655
|
+
* where: {
|
|
656
|
+
* // ... the filter for the CopilotMessage we want to update
|
|
657
|
+
* }
|
|
658
|
+
* })
|
|
659
|
+
*/
|
|
660
|
+
upsert<T extends CopilotMessageUpsertArgs>(args: Prisma.SelectSubset<T, CopilotMessageUpsertArgs<ExtArgs>>): Prisma.Prisma__CopilotMessageClient<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
661
|
+
/**
|
|
662
|
+
* Count the number of CopilotMessages.
|
|
663
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
664
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
665
|
+
* @param {CopilotMessageCountArgs} args - Arguments to filter CopilotMessages to count.
|
|
666
|
+
* @example
|
|
667
|
+
* // Count the number of CopilotMessages
|
|
668
|
+
* const count = await prisma.copilotMessage.count({
|
|
669
|
+
* where: {
|
|
670
|
+
* // ... the filter for the CopilotMessages we want to count
|
|
671
|
+
* }
|
|
672
|
+
* })
|
|
673
|
+
**/
|
|
674
|
+
count<T extends CopilotMessageCountArgs>(args?: Prisma.Subset<T, CopilotMessageCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CopilotMessageCountAggregateOutputType> : number>;
|
|
675
|
+
/**
|
|
676
|
+
* Allows you to perform aggregations operations on a CopilotMessage.
|
|
677
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
678
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
679
|
+
* @param {CopilotMessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
680
|
+
* @example
|
|
681
|
+
* // Ordered by age ascending
|
|
682
|
+
* // Where email contains prisma.io
|
|
683
|
+
* // Limited to the 10 users
|
|
684
|
+
* const aggregations = await prisma.user.aggregate({
|
|
685
|
+
* _avg: {
|
|
686
|
+
* age: true,
|
|
687
|
+
* },
|
|
688
|
+
* where: {
|
|
689
|
+
* email: {
|
|
690
|
+
* contains: "prisma.io",
|
|
691
|
+
* },
|
|
692
|
+
* },
|
|
693
|
+
* orderBy: {
|
|
694
|
+
* age: "asc",
|
|
695
|
+
* },
|
|
696
|
+
* take: 10,
|
|
697
|
+
* })
|
|
698
|
+
**/
|
|
699
|
+
aggregate<T extends CopilotMessageAggregateArgs>(args: Prisma.Subset<T, CopilotMessageAggregateArgs>): Prisma.PrismaPromise<GetCopilotMessageAggregateType<T>>;
|
|
700
|
+
/**
|
|
701
|
+
* Group by CopilotMessage.
|
|
702
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
703
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
704
|
+
* @param {CopilotMessageGroupByArgs} args - Group by arguments.
|
|
705
|
+
* @example
|
|
706
|
+
* // Group by city, order by createdAt, get count
|
|
707
|
+
* const result = await prisma.user.groupBy({
|
|
708
|
+
* by: ['city', 'createdAt'],
|
|
709
|
+
* orderBy: {
|
|
710
|
+
* createdAt: true
|
|
711
|
+
* },
|
|
712
|
+
* _count: {
|
|
713
|
+
* _all: true
|
|
714
|
+
* },
|
|
715
|
+
* })
|
|
716
|
+
*
|
|
717
|
+
**/
|
|
718
|
+
groupBy<T extends CopilotMessageGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
719
|
+
orderBy: CopilotMessageGroupByArgs['orderBy'];
|
|
720
|
+
} : {
|
|
721
|
+
orderBy?: CopilotMessageGroupByArgs['orderBy'];
|
|
722
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
723
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
724
|
+
Error,
|
|
725
|
+
'Field ',
|
|
726
|
+
P,
|
|
727
|
+
` in "having" needs to be provided in "by"`
|
|
728
|
+
];
|
|
729
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
730
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
731
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
732
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
733
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
734
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
735
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, CopilotMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCopilotMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
736
|
+
/**
|
|
737
|
+
* Fields of the CopilotMessage model
|
|
738
|
+
*/
|
|
739
|
+
readonly fields: CopilotMessageFieldRefs;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* The delegate class that acts as a "Promise-like" for CopilotMessage.
|
|
743
|
+
* Why is this prefixed with `Prisma__`?
|
|
744
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
745
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
746
|
+
*/
|
|
747
|
+
export interface Prisma__CopilotMessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
748
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
749
|
+
conversation<T extends Prisma.CopilotConversationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CopilotConversationDefaultArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
750
|
+
/**
|
|
751
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
752
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
753
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
754
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
755
|
+
*/
|
|
756
|
+
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>;
|
|
757
|
+
/**
|
|
758
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
759
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
760
|
+
* @returns A Promise for the completion of the callback.
|
|
761
|
+
*/
|
|
762
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
763
|
+
/**
|
|
764
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
765
|
+
* resolved value cannot be modified from the callback.
|
|
766
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
767
|
+
* @returns A Promise for the completion of the callback.
|
|
768
|
+
*/
|
|
769
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Fields of the CopilotMessage model
|
|
773
|
+
*/
|
|
774
|
+
export interface CopilotMessageFieldRefs {
|
|
775
|
+
readonly id: Prisma.FieldRef<"CopilotMessage", 'String'>;
|
|
776
|
+
readonly conversationId: Prisma.FieldRef<"CopilotMessage", 'String'>;
|
|
777
|
+
readonly role: Prisma.FieldRef<"CopilotMessage", 'CopilotMessageRole'>;
|
|
778
|
+
readonly content: Prisma.FieldRef<"CopilotMessage", 'String'>;
|
|
779
|
+
readonly createdAt: Prisma.FieldRef<"CopilotMessage", 'DateTime'>;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* CopilotMessage findUnique
|
|
783
|
+
*/
|
|
784
|
+
export type CopilotMessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
785
|
+
/**
|
|
786
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
787
|
+
*/
|
|
788
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
789
|
+
/**
|
|
790
|
+
* Omit specific fields from the CopilotMessage
|
|
791
|
+
*/
|
|
792
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
793
|
+
/**
|
|
794
|
+
* Choose, which related nodes to fetch as well
|
|
795
|
+
*/
|
|
796
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
797
|
+
/**
|
|
798
|
+
* Filter, which CopilotMessage to fetch.
|
|
799
|
+
*/
|
|
800
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* CopilotMessage findUniqueOrThrow
|
|
804
|
+
*/
|
|
805
|
+
export type CopilotMessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
806
|
+
/**
|
|
807
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
808
|
+
*/
|
|
809
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
810
|
+
/**
|
|
811
|
+
* Omit specific fields from the CopilotMessage
|
|
812
|
+
*/
|
|
813
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
814
|
+
/**
|
|
815
|
+
* Choose, which related nodes to fetch as well
|
|
816
|
+
*/
|
|
817
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
818
|
+
/**
|
|
819
|
+
* Filter, which CopilotMessage to fetch.
|
|
820
|
+
*/
|
|
821
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* CopilotMessage findFirst
|
|
825
|
+
*/
|
|
826
|
+
export type CopilotMessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
827
|
+
/**
|
|
828
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
829
|
+
*/
|
|
830
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
831
|
+
/**
|
|
832
|
+
* Omit specific fields from the CopilotMessage
|
|
833
|
+
*/
|
|
834
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
835
|
+
/**
|
|
836
|
+
* Choose, which related nodes to fetch as well
|
|
837
|
+
*/
|
|
838
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
839
|
+
/**
|
|
840
|
+
* Filter, which CopilotMessage to fetch.
|
|
841
|
+
*/
|
|
842
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
843
|
+
/**
|
|
844
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
845
|
+
*
|
|
846
|
+
* Determine the order of CopilotMessages to fetch.
|
|
847
|
+
*/
|
|
848
|
+
orderBy?: Prisma.CopilotMessageOrderByWithRelationInput | Prisma.CopilotMessageOrderByWithRelationInput[];
|
|
849
|
+
/**
|
|
850
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
851
|
+
*
|
|
852
|
+
* Sets the position for searching for CopilotMessages.
|
|
853
|
+
*/
|
|
854
|
+
cursor?: Prisma.CopilotMessageWhereUniqueInput;
|
|
855
|
+
/**
|
|
856
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
857
|
+
*
|
|
858
|
+
* Take `±n` CopilotMessages from the position of the cursor.
|
|
859
|
+
*/
|
|
860
|
+
take?: number;
|
|
861
|
+
/**
|
|
862
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
863
|
+
*
|
|
864
|
+
* Skip the first `n` CopilotMessages.
|
|
865
|
+
*/
|
|
866
|
+
skip?: number;
|
|
867
|
+
/**
|
|
868
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
869
|
+
*
|
|
870
|
+
* Filter by unique combinations of CopilotMessages.
|
|
871
|
+
*/
|
|
872
|
+
distinct?: Prisma.CopilotMessageScalarFieldEnum | Prisma.CopilotMessageScalarFieldEnum[];
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* CopilotMessage findFirstOrThrow
|
|
876
|
+
*/
|
|
877
|
+
export type CopilotMessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
878
|
+
/**
|
|
879
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
880
|
+
*/
|
|
881
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
882
|
+
/**
|
|
883
|
+
* Omit specific fields from the CopilotMessage
|
|
884
|
+
*/
|
|
885
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
886
|
+
/**
|
|
887
|
+
* Choose, which related nodes to fetch as well
|
|
888
|
+
*/
|
|
889
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
890
|
+
/**
|
|
891
|
+
* Filter, which CopilotMessage to fetch.
|
|
892
|
+
*/
|
|
893
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
894
|
+
/**
|
|
895
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
896
|
+
*
|
|
897
|
+
* Determine the order of CopilotMessages to fetch.
|
|
898
|
+
*/
|
|
899
|
+
orderBy?: Prisma.CopilotMessageOrderByWithRelationInput | Prisma.CopilotMessageOrderByWithRelationInput[];
|
|
900
|
+
/**
|
|
901
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
902
|
+
*
|
|
903
|
+
* Sets the position for searching for CopilotMessages.
|
|
904
|
+
*/
|
|
905
|
+
cursor?: Prisma.CopilotMessageWhereUniqueInput;
|
|
906
|
+
/**
|
|
907
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
908
|
+
*
|
|
909
|
+
* Take `±n` CopilotMessages from the position of the cursor.
|
|
910
|
+
*/
|
|
911
|
+
take?: number;
|
|
912
|
+
/**
|
|
913
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
914
|
+
*
|
|
915
|
+
* Skip the first `n` CopilotMessages.
|
|
916
|
+
*/
|
|
917
|
+
skip?: number;
|
|
918
|
+
/**
|
|
919
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
920
|
+
*
|
|
921
|
+
* Filter by unique combinations of CopilotMessages.
|
|
922
|
+
*/
|
|
923
|
+
distinct?: Prisma.CopilotMessageScalarFieldEnum | Prisma.CopilotMessageScalarFieldEnum[];
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* CopilotMessage findMany
|
|
927
|
+
*/
|
|
928
|
+
export type CopilotMessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
929
|
+
/**
|
|
930
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
931
|
+
*/
|
|
932
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
933
|
+
/**
|
|
934
|
+
* Omit specific fields from the CopilotMessage
|
|
935
|
+
*/
|
|
936
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
937
|
+
/**
|
|
938
|
+
* Choose, which related nodes to fetch as well
|
|
939
|
+
*/
|
|
940
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
941
|
+
/**
|
|
942
|
+
* Filter, which CopilotMessages to fetch.
|
|
943
|
+
*/
|
|
944
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
945
|
+
/**
|
|
946
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
947
|
+
*
|
|
948
|
+
* Determine the order of CopilotMessages to fetch.
|
|
949
|
+
*/
|
|
950
|
+
orderBy?: Prisma.CopilotMessageOrderByWithRelationInput | Prisma.CopilotMessageOrderByWithRelationInput[];
|
|
951
|
+
/**
|
|
952
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
953
|
+
*
|
|
954
|
+
* Sets the position for listing CopilotMessages.
|
|
955
|
+
*/
|
|
956
|
+
cursor?: Prisma.CopilotMessageWhereUniqueInput;
|
|
957
|
+
/**
|
|
958
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
959
|
+
*
|
|
960
|
+
* Take `±n` CopilotMessages from the position of the cursor.
|
|
961
|
+
*/
|
|
962
|
+
take?: number;
|
|
963
|
+
/**
|
|
964
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
965
|
+
*
|
|
966
|
+
* Skip the first `n` CopilotMessages.
|
|
967
|
+
*/
|
|
968
|
+
skip?: number;
|
|
969
|
+
/**
|
|
970
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
971
|
+
*
|
|
972
|
+
* Filter by unique combinations of CopilotMessages.
|
|
973
|
+
*/
|
|
974
|
+
distinct?: Prisma.CopilotMessageScalarFieldEnum | Prisma.CopilotMessageScalarFieldEnum[];
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* CopilotMessage create
|
|
978
|
+
*/
|
|
979
|
+
export type CopilotMessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
980
|
+
/**
|
|
981
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
982
|
+
*/
|
|
983
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
984
|
+
/**
|
|
985
|
+
* Omit specific fields from the CopilotMessage
|
|
986
|
+
*/
|
|
987
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
988
|
+
/**
|
|
989
|
+
* Choose, which related nodes to fetch as well
|
|
990
|
+
*/
|
|
991
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
992
|
+
/**
|
|
993
|
+
* The data needed to create a CopilotMessage.
|
|
994
|
+
*/
|
|
995
|
+
data: Prisma.XOR<Prisma.CopilotMessageCreateInput, Prisma.CopilotMessageUncheckedCreateInput>;
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* CopilotMessage createMany
|
|
999
|
+
*/
|
|
1000
|
+
export type CopilotMessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1001
|
+
/**
|
|
1002
|
+
* The data used to create many CopilotMessages.
|
|
1003
|
+
*/
|
|
1004
|
+
data: Prisma.CopilotMessageCreateManyInput | Prisma.CopilotMessageCreateManyInput[];
|
|
1005
|
+
skipDuplicates?: boolean;
|
|
1006
|
+
};
|
|
1007
|
+
/**
|
|
1008
|
+
* CopilotMessage createManyAndReturn
|
|
1009
|
+
*/
|
|
1010
|
+
export type CopilotMessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1011
|
+
/**
|
|
1012
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1013
|
+
*/
|
|
1014
|
+
select?: Prisma.CopilotMessageSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1015
|
+
/**
|
|
1016
|
+
* Omit specific fields from the CopilotMessage
|
|
1017
|
+
*/
|
|
1018
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* The data used to create many CopilotMessages.
|
|
1021
|
+
*/
|
|
1022
|
+
data: Prisma.CopilotMessageCreateManyInput | Prisma.CopilotMessageCreateManyInput[];
|
|
1023
|
+
skipDuplicates?: boolean;
|
|
1024
|
+
/**
|
|
1025
|
+
* Choose, which related nodes to fetch as well
|
|
1026
|
+
*/
|
|
1027
|
+
include?: Prisma.CopilotMessageIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* CopilotMessage update
|
|
1031
|
+
*/
|
|
1032
|
+
export type CopilotMessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1035
|
+
*/
|
|
1036
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Omit specific fields from the CopilotMessage
|
|
1039
|
+
*/
|
|
1040
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Choose, which related nodes to fetch as well
|
|
1043
|
+
*/
|
|
1044
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* The data needed to update a CopilotMessage.
|
|
1047
|
+
*/
|
|
1048
|
+
data: Prisma.XOR<Prisma.CopilotMessageUpdateInput, Prisma.CopilotMessageUncheckedUpdateInput>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Choose, which CopilotMessage to update.
|
|
1051
|
+
*/
|
|
1052
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
1053
|
+
};
|
|
1054
|
+
/**
|
|
1055
|
+
* CopilotMessage updateMany
|
|
1056
|
+
*/
|
|
1057
|
+
export type CopilotMessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1058
|
+
/**
|
|
1059
|
+
* The data used to update CopilotMessages.
|
|
1060
|
+
*/
|
|
1061
|
+
data: Prisma.XOR<Prisma.CopilotMessageUpdateManyMutationInput, Prisma.CopilotMessageUncheckedUpdateManyInput>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Filter which CopilotMessages to update
|
|
1064
|
+
*/
|
|
1065
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
1066
|
+
/**
|
|
1067
|
+
* Limit how many CopilotMessages to update.
|
|
1068
|
+
*/
|
|
1069
|
+
limit?: number;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* CopilotMessage updateManyAndReturn
|
|
1073
|
+
*/
|
|
1074
|
+
export type CopilotMessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1075
|
+
/**
|
|
1076
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1077
|
+
*/
|
|
1078
|
+
select?: Prisma.CopilotMessageSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Omit specific fields from the CopilotMessage
|
|
1081
|
+
*/
|
|
1082
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* The data used to update CopilotMessages.
|
|
1085
|
+
*/
|
|
1086
|
+
data: Prisma.XOR<Prisma.CopilotMessageUpdateManyMutationInput, Prisma.CopilotMessageUncheckedUpdateManyInput>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Filter which CopilotMessages to update
|
|
1089
|
+
*/
|
|
1090
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
1091
|
+
/**
|
|
1092
|
+
* Limit how many CopilotMessages to update.
|
|
1093
|
+
*/
|
|
1094
|
+
limit?: number;
|
|
1095
|
+
/**
|
|
1096
|
+
* Choose, which related nodes to fetch as well
|
|
1097
|
+
*/
|
|
1098
|
+
include?: Prisma.CopilotMessageIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* CopilotMessage upsert
|
|
1102
|
+
*/
|
|
1103
|
+
export type CopilotMessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1104
|
+
/**
|
|
1105
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1106
|
+
*/
|
|
1107
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Omit specific fields from the CopilotMessage
|
|
1110
|
+
*/
|
|
1111
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1112
|
+
/**
|
|
1113
|
+
* Choose, which related nodes to fetch as well
|
|
1114
|
+
*/
|
|
1115
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
1116
|
+
/**
|
|
1117
|
+
* The filter to search for the CopilotMessage to update in case it exists.
|
|
1118
|
+
*/
|
|
1119
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
1120
|
+
/**
|
|
1121
|
+
* In case the CopilotMessage found by the `where` argument doesn't exist, create a new CopilotMessage with this data.
|
|
1122
|
+
*/
|
|
1123
|
+
create: Prisma.XOR<Prisma.CopilotMessageCreateInput, Prisma.CopilotMessageUncheckedCreateInput>;
|
|
1124
|
+
/**
|
|
1125
|
+
* In case the CopilotMessage was found with the provided `where` argument, update it with this data.
|
|
1126
|
+
*/
|
|
1127
|
+
update: Prisma.XOR<Prisma.CopilotMessageUpdateInput, Prisma.CopilotMessageUncheckedUpdateInput>;
|
|
1128
|
+
};
|
|
1129
|
+
/**
|
|
1130
|
+
* CopilotMessage delete
|
|
1131
|
+
*/
|
|
1132
|
+
export type CopilotMessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1133
|
+
/**
|
|
1134
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1135
|
+
*/
|
|
1136
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Omit specific fields from the CopilotMessage
|
|
1139
|
+
*/
|
|
1140
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Choose, which related nodes to fetch as well
|
|
1143
|
+
*/
|
|
1144
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Filter which CopilotMessage to delete.
|
|
1147
|
+
*/
|
|
1148
|
+
where: Prisma.CopilotMessageWhereUniqueInput;
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* CopilotMessage deleteMany
|
|
1152
|
+
*/
|
|
1153
|
+
export type CopilotMessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1154
|
+
/**
|
|
1155
|
+
* Filter which CopilotMessages to delete
|
|
1156
|
+
*/
|
|
1157
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
1158
|
+
/**
|
|
1159
|
+
* Limit how many CopilotMessages to delete.
|
|
1160
|
+
*/
|
|
1161
|
+
limit?: number;
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* CopilotMessage without action
|
|
1165
|
+
*/
|
|
1166
|
+
export type CopilotMessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1167
|
+
/**
|
|
1168
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1169
|
+
*/
|
|
1170
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Omit specific fields from the CopilotMessage
|
|
1173
|
+
*/
|
|
1174
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* Choose, which related nodes to fetch as well
|
|
1177
|
+
*/
|
|
1178
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
1179
|
+
};
|