@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,1450 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model CopilotConversation
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type CopilotConversationModel = runtime.Types.Result.DefaultSelection<Prisma.$CopilotConversationPayload>;
|
|
8
|
+
export type AggregateCopilotConversation = {
|
|
9
|
+
_count: CopilotConversationCountAggregateOutputType | null;
|
|
10
|
+
_min: CopilotConversationMinAggregateOutputType | null;
|
|
11
|
+
_max: CopilotConversationMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type CopilotConversationMinAggregateOutputType = {
|
|
14
|
+
id: string | null;
|
|
15
|
+
workspaceId: string | null;
|
|
16
|
+
userId: string | null;
|
|
17
|
+
title: string | null;
|
|
18
|
+
createdAt: Date | null;
|
|
19
|
+
updatedAt: Date | null;
|
|
20
|
+
};
|
|
21
|
+
export type CopilotConversationMaxAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
workspaceId: string | null;
|
|
24
|
+
userId: string | null;
|
|
25
|
+
title: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type CopilotConversationCountAggregateOutputType = {
|
|
30
|
+
id: number;
|
|
31
|
+
workspaceId: number;
|
|
32
|
+
userId: number;
|
|
33
|
+
title: number;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
_all: number;
|
|
37
|
+
};
|
|
38
|
+
export type CopilotConversationMinAggregateInputType = {
|
|
39
|
+
id?: true;
|
|
40
|
+
workspaceId?: true;
|
|
41
|
+
userId?: true;
|
|
42
|
+
title?: true;
|
|
43
|
+
createdAt?: true;
|
|
44
|
+
updatedAt?: true;
|
|
45
|
+
};
|
|
46
|
+
export type CopilotConversationMaxAggregateInputType = {
|
|
47
|
+
id?: true;
|
|
48
|
+
workspaceId?: true;
|
|
49
|
+
userId?: true;
|
|
50
|
+
title?: true;
|
|
51
|
+
createdAt?: true;
|
|
52
|
+
updatedAt?: true;
|
|
53
|
+
};
|
|
54
|
+
export type CopilotConversationCountAggregateInputType = {
|
|
55
|
+
id?: true;
|
|
56
|
+
workspaceId?: true;
|
|
57
|
+
userId?: true;
|
|
58
|
+
title?: true;
|
|
59
|
+
createdAt?: true;
|
|
60
|
+
updatedAt?: true;
|
|
61
|
+
_all?: true;
|
|
62
|
+
};
|
|
63
|
+
export type CopilotConversationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
64
|
+
/**
|
|
65
|
+
* Filter which CopilotConversation to aggregate.
|
|
66
|
+
*/
|
|
67
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
68
|
+
/**
|
|
69
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
70
|
+
*
|
|
71
|
+
* Determine the order of CopilotConversations to fetch.
|
|
72
|
+
*/
|
|
73
|
+
orderBy?: Prisma.CopilotConversationOrderByWithRelationInput | Prisma.CopilotConversationOrderByWithRelationInput[];
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
76
|
+
*
|
|
77
|
+
* Sets the start position
|
|
78
|
+
*/
|
|
79
|
+
cursor?: Prisma.CopilotConversationWhereUniqueInput;
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
82
|
+
*
|
|
83
|
+
* Take `±n` CopilotConversations from the position of the cursor.
|
|
84
|
+
*/
|
|
85
|
+
take?: number;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
88
|
+
*
|
|
89
|
+
* Skip the first `n` CopilotConversations.
|
|
90
|
+
*/
|
|
91
|
+
skip?: number;
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
94
|
+
*
|
|
95
|
+
* Count returned CopilotConversations
|
|
96
|
+
**/
|
|
97
|
+
_count?: true | CopilotConversationCountAggregateInputType;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Select which fields to find the minimum value
|
|
102
|
+
**/
|
|
103
|
+
_min?: CopilotConversationMinAggregateInputType;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
106
|
+
*
|
|
107
|
+
* Select which fields to find the maximum value
|
|
108
|
+
**/
|
|
109
|
+
_max?: CopilotConversationMaxAggregateInputType;
|
|
110
|
+
};
|
|
111
|
+
export type GetCopilotConversationAggregateType<T extends CopilotConversationAggregateArgs> = {
|
|
112
|
+
[P in keyof T & keyof AggregateCopilotConversation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCopilotConversation[P]> : Prisma.GetScalarType<T[P], AggregateCopilotConversation[P]>;
|
|
113
|
+
};
|
|
114
|
+
export type CopilotConversationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
115
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
116
|
+
orderBy?: Prisma.CopilotConversationOrderByWithAggregationInput | Prisma.CopilotConversationOrderByWithAggregationInput[];
|
|
117
|
+
by: Prisma.CopilotConversationScalarFieldEnum[] | Prisma.CopilotConversationScalarFieldEnum;
|
|
118
|
+
having?: Prisma.CopilotConversationScalarWhereWithAggregatesInput;
|
|
119
|
+
take?: number;
|
|
120
|
+
skip?: number;
|
|
121
|
+
_count?: CopilotConversationCountAggregateInputType | true;
|
|
122
|
+
_min?: CopilotConversationMinAggregateInputType;
|
|
123
|
+
_max?: CopilotConversationMaxAggregateInputType;
|
|
124
|
+
};
|
|
125
|
+
export type CopilotConversationGroupByOutputType = {
|
|
126
|
+
id: string;
|
|
127
|
+
workspaceId: string;
|
|
128
|
+
userId: string;
|
|
129
|
+
title: string;
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
_count: CopilotConversationCountAggregateOutputType | null;
|
|
133
|
+
_min: CopilotConversationMinAggregateOutputType | null;
|
|
134
|
+
_max: CopilotConversationMaxAggregateOutputType | null;
|
|
135
|
+
};
|
|
136
|
+
export type GetCopilotConversationGroupByPayload<T extends CopilotConversationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CopilotConversationGroupByOutputType, T['by']> & {
|
|
137
|
+
[P in ((keyof T) & (keyof CopilotConversationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CopilotConversationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CopilotConversationGroupByOutputType[P]>;
|
|
138
|
+
}>>;
|
|
139
|
+
export type CopilotConversationWhereInput = {
|
|
140
|
+
AND?: Prisma.CopilotConversationWhereInput | Prisma.CopilotConversationWhereInput[];
|
|
141
|
+
OR?: Prisma.CopilotConversationWhereInput[];
|
|
142
|
+
NOT?: Prisma.CopilotConversationWhereInput | Prisma.CopilotConversationWhereInput[];
|
|
143
|
+
id?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
144
|
+
workspaceId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
145
|
+
userId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
146
|
+
title?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
147
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
148
|
+
updatedAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
149
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>;
|
|
150
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
151
|
+
messages?: Prisma.CopilotMessageListRelationFilter;
|
|
152
|
+
};
|
|
153
|
+
export type CopilotConversationOrderByWithRelationInput = {
|
|
154
|
+
id?: Prisma.SortOrder;
|
|
155
|
+
workspaceId?: Prisma.SortOrder;
|
|
156
|
+
userId?: Prisma.SortOrder;
|
|
157
|
+
title?: Prisma.SortOrder;
|
|
158
|
+
createdAt?: Prisma.SortOrder;
|
|
159
|
+
updatedAt?: Prisma.SortOrder;
|
|
160
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput;
|
|
161
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
162
|
+
messages?: Prisma.CopilotMessageOrderByRelationAggregateInput;
|
|
163
|
+
};
|
|
164
|
+
export type CopilotConversationWhereUniqueInput = Prisma.AtLeast<{
|
|
165
|
+
id?: string;
|
|
166
|
+
AND?: Prisma.CopilotConversationWhereInput | Prisma.CopilotConversationWhereInput[];
|
|
167
|
+
OR?: Prisma.CopilotConversationWhereInput[];
|
|
168
|
+
NOT?: Prisma.CopilotConversationWhereInput | Prisma.CopilotConversationWhereInput[];
|
|
169
|
+
workspaceId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
170
|
+
userId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
171
|
+
title?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
172
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
173
|
+
updatedAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
174
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>;
|
|
175
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
176
|
+
messages?: Prisma.CopilotMessageListRelationFilter;
|
|
177
|
+
}, "id">;
|
|
178
|
+
export type CopilotConversationOrderByWithAggregationInput = {
|
|
179
|
+
id?: Prisma.SortOrder;
|
|
180
|
+
workspaceId?: Prisma.SortOrder;
|
|
181
|
+
userId?: Prisma.SortOrder;
|
|
182
|
+
title?: Prisma.SortOrder;
|
|
183
|
+
createdAt?: Prisma.SortOrder;
|
|
184
|
+
updatedAt?: Prisma.SortOrder;
|
|
185
|
+
_count?: Prisma.CopilotConversationCountOrderByAggregateInput;
|
|
186
|
+
_max?: Prisma.CopilotConversationMaxOrderByAggregateInput;
|
|
187
|
+
_min?: Prisma.CopilotConversationMinOrderByAggregateInput;
|
|
188
|
+
};
|
|
189
|
+
export type CopilotConversationScalarWhereWithAggregatesInput = {
|
|
190
|
+
AND?: Prisma.CopilotConversationScalarWhereWithAggregatesInput | Prisma.CopilotConversationScalarWhereWithAggregatesInput[];
|
|
191
|
+
OR?: Prisma.CopilotConversationScalarWhereWithAggregatesInput[];
|
|
192
|
+
NOT?: Prisma.CopilotConversationScalarWhereWithAggregatesInput | Prisma.CopilotConversationScalarWhereWithAggregatesInput[];
|
|
193
|
+
id?: Prisma.StringWithAggregatesFilter<"CopilotConversation"> | string;
|
|
194
|
+
workspaceId?: Prisma.StringWithAggregatesFilter<"CopilotConversation"> | string;
|
|
195
|
+
userId?: Prisma.StringWithAggregatesFilter<"CopilotConversation"> | string;
|
|
196
|
+
title?: Prisma.StringWithAggregatesFilter<"CopilotConversation"> | string;
|
|
197
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CopilotConversation"> | Date | string;
|
|
198
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CopilotConversation"> | Date | string;
|
|
199
|
+
};
|
|
200
|
+
export type CopilotConversationCreateInput = {
|
|
201
|
+
id?: string;
|
|
202
|
+
title?: string;
|
|
203
|
+
createdAt?: Date | string;
|
|
204
|
+
updatedAt?: Date | string;
|
|
205
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutCopilotConversationsInput;
|
|
206
|
+
user: Prisma.UserCreateNestedOneWithoutCopilotConversationsInput;
|
|
207
|
+
messages?: Prisma.CopilotMessageCreateNestedManyWithoutConversationInput;
|
|
208
|
+
};
|
|
209
|
+
export type CopilotConversationUncheckedCreateInput = {
|
|
210
|
+
id?: string;
|
|
211
|
+
workspaceId: string;
|
|
212
|
+
userId: string;
|
|
213
|
+
title?: string;
|
|
214
|
+
createdAt?: Date | string;
|
|
215
|
+
updatedAt?: Date | string;
|
|
216
|
+
messages?: Prisma.CopilotMessageUncheckedCreateNestedManyWithoutConversationInput;
|
|
217
|
+
};
|
|
218
|
+
export type CopilotConversationUpdateInput = {
|
|
219
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
220
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
221
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
222
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
223
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
224
|
+
user?: Prisma.UserUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
225
|
+
messages?: Prisma.CopilotMessageUpdateManyWithoutConversationNestedInput;
|
|
226
|
+
};
|
|
227
|
+
export type CopilotConversationUncheckedUpdateInput = {
|
|
228
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
229
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
230
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
231
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
233
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
234
|
+
messages?: Prisma.CopilotMessageUncheckedUpdateManyWithoutConversationNestedInput;
|
|
235
|
+
};
|
|
236
|
+
export type CopilotConversationCreateManyInput = {
|
|
237
|
+
id?: string;
|
|
238
|
+
workspaceId: string;
|
|
239
|
+
userId: string;
|
|
240
|
+
title?: string;
|
|
241
|
+
createdAt?: Date | string;
|
|
242
|
+
updatedAt?: Date | string;
|
|
243
|
+
};
|
|
244
|
+
export type CopilotConversationUpdateManyMutationInput = {
|
|
245
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
246
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
247
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
248
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
249
|
+
};
|
|
250
|
+
export type CopilotConversationUncheckedUpdateManyInput = {
|
|
251
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
252
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
253
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
254
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
255
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
256
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
257
|
+
};
|
|
258
|
+
export type CopilotConversationListRelationFilter = {
|
|
259
|
+
every?: Prisma.CopilotConversationWhereInput;
|
|
260
|
+
some?: Prisma.CopilotConversationWhereInput;
|
|
261
|
+
none?: Prisma.CopilotConversationWhereInput;
|
|
262
|
+
};
|
|
263
|
+
export type CopilotConversationOrderByRelationAggregateInput = {
|
|
264
|
+
_count?: Prisma.SortOrder;
|
|
265
|
+
};
|
|
266
|
+
export type CopilotConversationCountOrderByAggregateInput = {
|
|
267
|
+
id?: Prisma.SortOrder;
|
|
268
|
+
workspaceId?: Prisma.SortOrder;
|
|
269
|
+
userId?: Prisma.SortOrder;
|
|
270
|
+
title?: Prisma.SortOrder;
|
|
271
|
+
createdAt?: Prisma.SortOrder;
|
|
272
|
+
updatedAt?: Prisma.SortOrder;
|
|
273
|
+
};
|
|
274
|
+
export type CopilotConversationMaxOrderByAggregateInput = {
|
|
275
|
+
id?: Prisma.SortOrder;
|
|
276
|
+
workspaceId?: Prisma.SortOrder;
|
|
277
|
+
userId?: Prisma.SortOrder;
|
|
278
|
+
title?: Prisma.SortOrder;
|
|
279
|
+
createdAt?: Prisma.SortOrder;
|
|
280
|
+
updatedAt?: Prisma.SortOrder;
|
|
281
|
+
};
|
|
282
|
+
export type CopilotConversationMinOrderByAggregateInput = {
|
|
283
|
+
id?: Prisma.SortOrder;
|
|
284
|
+
workspaceId?: Prisma.SortOrder;
|
|
285
|
+
userId?: Prisma.SortOrder;
|
|
286
|
+
title?: Prisma.SortOrder;
|
|
287
|
+
createdAt?: Prisma.SortOrder;
|
|
288
|
+
updatedAt?: Prisma.SortOrder;
|
|
289
|
+
};
|
|
290
|
+
export type CopilotConversationScalarRelationFilter = {
|
|
291
|
+
is?: Prisma.CopilotConversationWhereInput;
|
|
292
|
+
isNot?: Prisma.CopilotConversationWhereInput;
|
|
293
|
+
};
|
|
294
|
+
export type CopilotConversationCreateNestedManyWithoutUserInput = {
|
|
295
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput> | Prisma.CopilotConversationCreateWithoutUserInput[] | Prisma.CopilotConversationUncheckedCreateWithoutUserInput[];
|
|
296
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutUserInput | Prisma.CopilotConversationCreateOrConnectWithoutUserInput[];
|
|
297
|
+
createMany?: Prisma.CopilotConversationCreateManyUserInputEnvelope;
|
|
298
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
299
|
+
};
|
|
300
|
+
export type CopilotConversationUncheckedCreateNestedManyWithoutUserInput = {
|
|
301
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput> | Prisma.CopilotConversationCreateWithoutUserInput[] | Prisma.CopilotConversationUncheckedCreateWithoutUserInput[];
|
|
302
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutUserInput | Prisma.CopilotConversationCreateOrConnectWithoutUserInput[];
|
|
303
|
+
createMany?: Prisma.CopilotConversationCreateManyUserInputEnvelope;
|
|
304
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
305
|
+
};
|
|
306
|
+
export type CopilotConversationUpdateManyWithoutUserNestedInput = {
|
|
307
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput> | Prisma.CopilotConversationCreateWithoutUserInput[] | Prisma.CopilotConversationUncheckedCreateWithoutUserInput[];
|
|
308
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutUserInput | Prisma.CopilotConversationCreateOrConnectWithoutUserInput[];
|
|
309
|
+
upsert?: Prisma.CopilotConversationUpsertWithWhereUniqueWithoutUserInput | Prisma.CopilotConversationUpsertWithWhereUniqueWithoutUserInput[];
|
|
310
|
+
createMany?: Prisma.CopilotConversationCreateManyUserInputEnvelope;
|
|
311
|
+
set?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
312
|
+
disconnect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
313
|
+
delete?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
314
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
315
|
+
update?: Prisma.CopilotConversationUpdateWithWhereUniqueWithoutUserInput | Prisma.CopilotConversationUpdateWithWhereUniqueWithoutUserInput[];
|
|
316
|
+
updateMany?: Prisma.CopilotConversationUpdateManyWithWhereWithoutUserInput | Prisma.CopilotConversationUpdateManyWithWhereWithoutUserInput[];
|
|
317
|
+
deleteMany?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
318
|
+
};
|
|
319
|
+
export type CopilotConversationUncheckedUpdateManyWithoutUserNestedInput = {
|
|
320
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput> | Prisma.CopilotConversationCreateWithoutUserInput[] | Prisma.CopilotConversationUncheckedCreateWithoutUserInput[];
|
|
321
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutUserInput | Prisma.CopilotConversationCreateOrConnectWithoutUserInput[];
|
|
322
|
+
upsert?: Prisma.CopilotConversationUpsertWithWhereUniqueWithoutUserInput | Prisma.CopilotConversationUpsertWithWhereUniqueWithoutUserInput[];
|
|
323
|
+
createMany?: Prisma.CopilotConversationCreateManyUserInputEnvelope;
|
|
324
|
+
set?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
325
|
+
disconnect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
326
|
+
delete?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
327
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
328
|
+
update?: Prisma.CopilotConversationUpdateWithWhereUniqueWithoutUserInput | Prisma.CopilotConversationUpdateWithWhereUniqueWithoutUserInput[];
|
|
329
|
+
updateMany?: Prisma.CopilotConversationUpdateManyWithWhereWithoutUserInput | Prisma.CopilotConversationUpdateManyWithWhereWithoutUserInput[];
|
|
330
|
+
deleteMany?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
331
|
+
};
|
|
332
|
+
export type CopilotConversationCreateNestedManyWithoutWorkspaceInput = {
|
|
333
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput> | Prisma.CopilotConversationCreateWithoutWorkspaceInput[] | Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput[];
|
|
334
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput | Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput[];
|
|
335
|
+
createMany?: Prisma.CopilotConversationCreateManyWorkspaceInputEnvelope;
|
|
336
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
337
|
+
};
|
|
338
|
+
export type CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
339
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput> | Prisma.CopilotConversationCreateWithoutWorkspaceInput[] | Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput[];
|
|
340
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput | Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput[];
|
|
341
|
+
createMany?: Prisma.CopilotConversationCreateManyWorkspaceInputEnvelope;
|
|
342
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
343
|
+
};
|
|
344
|
+
export type CopilotConversationUpdateManyWithoutWorkspaceNestedInput = {
|
|
345
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput> | Prisma.CopilotConversationCreateWithoutWorkspaceInput[] | Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput[];
|
|
346
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput | Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput[];
|
|
347
|
+
upsert?: Prisma.CopilotConversationUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.CopilotConversationUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
348
|
+
createMany?: Prisma.CopilotConversationCreateManyWorkspaceInputEnvelope;
|
|
349
|
+
set?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
350
|
+
disconnect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
351
|
+
delete?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
352
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
353
|
+
update?: Prisma.CopilotConversationUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.CopilotConversationUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
354
|
+
updateMany?: Prisma.CopilotConversationUpdateManyWithWhereWithoutWorkspaceInput | Prisma.CopilotConversationUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
355
|
+
deleteMany?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
356
|
+
};
|
|
357
|
+
export type CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
358
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput> | Prisma.CopilotConversationCreateWithoutWorkspaceInput[] | Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput[];
|
|
359
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput | Prisma.CopilotConversationCreateOrConnectWithoutWorkspaceInput[];
|
|
360
|
+
upsert?: Prisma.CopilotConversationUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.CopilotConversationUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
361
|
+
createMany?: Prisma.CopilotConversationCreateManyWorkspaceInputEnvelope;
|
|
362
|
+
set?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
363
|
+
disconnect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
364
|
+
delete?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
365
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput | Prisma.CopilotConversationWhereUniqueInput[];
|
|
366
|
+
update?: Prisma.CopilotConversationUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.CopilotConversationUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
367
|
+
updateMany?: Prisma.CopilotConversationUpdateManyWithWhereWithoutWorkspaceInput | Prisma.CopilotConversationUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
368
|
+
deleteMany?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
369
|
+
};
|
|
370
|
+
export type CopilotConversationCreateNestedOneWithoutMessagesInput = {
|
|
371
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutMessagesInput, Prisma.CopilotConversationUncheckedCreateWithoutMessagesInput>;
|
|
372
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutMessagesInput;
|
|
373
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput;
|
|
374
|
+
};
|
|
375
|
+
export type CopilotConversationUpdateOneRequiredWithoutMessagesNestedInput = {
|
|
376
|
+
create?: Prisma.XOR<Prisma.CopilotConversationCreateWithoutMessagesInput, Prisma.CopilotConversationUncheckedCreateWithoutMessagesInput>;
|
|
377
|
+
connectOrCreate?: Prisma.CopilotConversationCreateOrConnectWithoutMessagesInput;
|
|
378
|
+
upsert?: Prisma.CopilotConversationUpsertWithoutMessagesInput;
|
|
379
|
+
connect?: Prisma.CopilotConversationWhereUniqueInput;
|
|
380
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.CopilotConversationUpdateToOneWithWhereWithoutMessagesInput, Prisma.CopilotConversationUpdateWithoutMessagesInput>, Prisma.CopilotConversationUncheckedUpdateWithoutMessagesInput>;
|
|
381
|
+
};
|
|
382
|
+
export type CopilotConversationCreateWithoutUserInput = {
|
|
383
|
+
id?: string;
|
|
384
|
+
title?: string;
|
|
385
|
+
createdAt?: Date | string;
|
|
386
|
+
updatedAt?: Date | string;
|
|
387
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutCopilotConversationsInput;
|
|
388
|
+
messages?: Prisma.CopilotMessageCreateNestedManyWithoutConversationInput;
|
|
389
|
+
};
|
|
390
|
+
export type CopilotConversationUncheckedCreateWithoutUserInput = {
|
|
391
|
+
id?: string;
|
|
392
|
+
workspaceId: string;
|
|
393
|
+
title?: string;
|
|
394
|
+
createdAt?: Date | string;
|
|
395
|
+
updatedAt?: Date | string;
|
|
396
|
+
messages?: Prisma.CopilotMessageUncheckedCreateNestedManyWithoutConversationInput;
|
|
397
|
+
};
|
|
398
|
+
export type CopilotConversationCreateOrConnectWithoutUserInput = {
|
|
399
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
400
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput>;
|
|
401
|
+
};
|
|
402
|
+
export type CopilotConversationCreateManyUserInputEnvelope = {
|
|
403
|
+
data: Prisma.CopilotConversationCreateManyUserInput | Prisma.CopilotConversationCreateManyUserInput[];
|
|
404
|
+
skipDuplicates?: boolean;
|
|
405
|
+
};
|
|
406
|
+
export type CopilotConversationUpsertWithWhereUniqueWithoutUserInput = {
|
|
407
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
408
|
+
update: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutUserInput, Prisma.CopilotConversationUncheckedUpdateWithoutUserInput>;
|
|
409
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutUserInput, Prisma.CopilotConversationUncheckedCreateWithoutUserInput>;
|
|
410
|
+
};
|
|
411
|
+
export type CopilotConversationUpdateWithWhereUniqueWithoutUserInput = {
|
|
412
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
413
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutUserInput, Prisma.CopilotConversationUncheckedUpdateWithoutUserInput>;
|
|
414
|
+
};
|
|
415
|
+
export type CopilotConversationUpdateManyWithWhereWithoutUserInput = {
|
|
416
|
+
where: Prisma.CopilotConversationScalarWhereInput;
|
|
417
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateManyMutationInput, Prisma.CopilotConversationUncheckedUpdateManyWithoutUserInput>;
|
|
418
|
+
};
|
|
419
|
+
export type CopilotConversationScalarWhereInput = {
|
|
420
|
+
AND?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
421
|
+
OR?: Prisma.CopilotConversationScalarWhereInput[];
|
|
422
|
+
NOT?: Prisma.CopilotConversationScalarWhereInput | Prisma.CopilotConversationScalarWhereInput[];
|
|
423
|
+
id?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
424
|
+
workspaceId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
425
|
+
userId?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
426
|
+
title?: Prisma.StringFilter<"CopilotConversation"> | string;
|
|
427
|
+
createdAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
428
|
+
updatedAt?: Prisma.DateTimeFilter<"CopilotConversation"> | Date | string;
|
|
429
|
+
};
|
|
430
|
+
export type CopilotConversationCreateWithoutWorkspaceInput = {
|
|
431
|
+
id?: string;
|
|
432
|
+
title?: string;
|
|
433
|
+
createdAt?: Date | string;
|
|
434
|
+
updatedAt?: Date | string;
|
|
435
|
+
user: Prisma.UserCreateNestedOneWithoutCopilotConversationsInput;
|
|
436
|
+
messages?: Prisma.CopilotMessageCreateNestedManyWithoutConversationInput;
|
|
437
|
+
};
|
|
438
|
+
export type CopilotConversationUncheckedCreateWithoutWorkspaceInput = {
|
|
439
|
+
id?: string;
|
|
440
|
+
userId: string;
|
|
441
|
+
title?: string;
|
|
442
|
+
createdAt?: Date | string;
|
|
443
|
+
updatedAt?: Date | string;
|
|
444
|
+
messages?: Prisma.CopilotMessageUncheckedCreateNestedManyWithoutConversationInput;
|
|
445
|
+
};
|
|
446
|
+
export type CopilotConversationCreateOrConnectWithoutWorkspaceInput = {
|
|
447
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
448
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput>;
|
|
449
|
+
};
|
|
450
|
+
export type CopilotConversationCreateManyWorkspaceInputEnvelope = {
|
|
451
|
+
data: Prisma.CopilotConversationCreateManyWorkspaceInput | Prisma.CopilotConversationCreateManyWorkspaceInput[];
|
|
452
|
+
skipDuplicates?: boolean;
|
|
453
|
+
};
|
|
454
|
+
export type CopilotConversationUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
455
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
456
|
+
update: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedUpdateWithoutWorkspaceInput>;
|
|
457
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedCreateWithoutWorkspaceInput>;
|
|
458
|
+
};
|
|
459
|
+
export type CopilotConversationUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
460
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
461
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutWorkspaceInput, Prisma.CopilotConversationUncheckedUpdateWithoutWorkspaceInput>;
|
|
462
|
+
};
|
|
463
|
+
export type CopilotConversationUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
464
|
+
where: Prisma.CopilotConversationScalarWhereInput;
|
|
465
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateManyMutationInput, Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceInput>;
|
|
466
|
+
};
|
|
467
|
+
export type CopilotConversationCreateWithoutMessagesInput = {
|
|
468
|
+
id?: string;
|
|
469
|
+
title?: string;
|
|
470
|
+
createdAt?: Date | string;
|
|
471
|
+
updatedAt?: Date | string;
|
|
472
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutCopilotConversationsInput;
|
|
473
|
+
user: Prisma.UserCreateNestedOneWithoutCopilotConversationsInput;
|
|
474
|
+
};
|
|
475
|
+
export type CopilotConversationUncheckedCreateWithoutMessagesInput = {
|
|
476
|
+
id?: string;
|
|
477
|
+
workspaceId: string;
|
|
478
|
+
userId: string;
|
|
479
|
+
title?: string;
|
|
480
|
+
createdAt?: Date | string;
|
|
481
|
+
updatedAt?: Date | string;
|
|
482
|
+
};
|
|
483
|
+
export type CopilotConversationCreateOrConnectWithoutMessagesInput = {
|
|
484
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
485
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutMessagesInput, Prisma.CopilotConversationUncheckedCreateWithoutMessagesInput>;
|
|
486
|
+
};
|
|
487
|
+
export type CopilotConversationUpsertWithoutMessagesInput = {
|
|
488
|
+
update: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutMessagesInput, Prisma.CopilotConversationUncheckedUpdateWithoutMessagesInput>;
|
|
489
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateWithoutMessagesInput, Prisma.CopilotConversationUncheckedCreateWithoutMessagesInput>;
|
|
490
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
491
|
+
};
|
|
492
|
+
export type CopilotConversationUpdateToOneWithWhereWithoutMessagesInput = {
|
|
493
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
494
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateWithoutMessagesInput, Prisma.CopilotConversationUncheckedUpdateWithoutMessagesInput>;
|
|
495
|
+
};
|
|
496
|
+
export type CopilotConversationUpdateWithoutMessagesInput = {
|
|
497
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
498
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
499
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
500
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
501
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
502
|
+
user?: Prisma.UserUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
503
|
+
};
|
|
504
|
+
export type CopilotConversationUncheckedUpdateWithoutMessagesInput = {
|
|
505
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
506
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
507
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
508
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
509
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
510
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
511
|
+
};
|
|
512
|
+
export type CopilotConversationCreateManyUserInput = {
|
|
513
|
+
id?: string;
|
|
514
|
+
workspaceId: string;
|
|
515
|
+
title?: string;
|
|
516
|
+
createdAt?: Date | string;
|
|
517
|
+
updatedAt?: Date | string;
|
|
518
|
+
};
|
|
519
|
+
export type CopilotConversationUpdateWithoutUserInput = {
|
|
520
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
521
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
522
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
523
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
524
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
525
|
+
messages?: Prisma.CopilotMessageUpdateManyWithoutConversationNestedInput;
|
|
526
|
+
};
|
|
527
|
+
export type CopilotConversationUncheckedUpdateWithoutUserInput = {
|
|
528
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
529
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
531
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
532
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
533
|
+
messages?: Prisma.CopilotMessageUncheckedUpdateManyWithoutConversationNestedInput;
|
|
534
|
+
};
|
|
535
|
+
export type CopilotConversationUncheckedUpdateManyWithoutUserInput = {
|
|
536
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
537
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
538
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
539
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
540
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
541
|
+
};
|
|
542
|
+
export type CopilotConversationCreateManyWorkspaceInput = {
|
|
543
|
+
id?: string;
|
|
544
|
+
userId: string;
|
|
545
|
+
title?: string;
|
|
546
|
+
createdAt?: Date | string;
|
|
547
|
+
updatedAt?: Date | string;
|
|
548
|
+
};
|
|
549
|
+
export type CopilotConversationUpdateWithoutWorkspaceInput = {
|
|
550
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
551
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
552
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
553
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
554
|
+
user?: Prisma.UserUpdateOneRequiredWithoutCopilotConversationsNestedInput;
|
|
555
|
+
messages?: Prisma.CopilotMessageUpdateManyWithoutConversationNestedInput;
|
|
556
|
+
};
|
|
557
|
+
export type CopilotConversationUncheckedUpdateWithoutWorkspaceInput = {
|
|
558
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
559
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
560
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
561
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
562
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
563
|
+
messages?: Prisma.CopilotMessageUncheckedUpdateManyWithoutConversationNestedInput;
|
|
564
|
+
};
|
|
565
|
+
export type CopilotConversationUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
566
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
567
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
568
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
569
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
570
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Count Type CopilotConversationCountOutputType
|
|
574
|
+
*/
|
|
575
|
+
export type CopilotConversationCountOutputType = {
|
|
576
|
+
messages: number;
|
|
577
|
+
};
|
|
578
|
+
export type CopilotConversationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
579
|
+
messages?: boolean | CopilotConversationCountOutputTypeCountMessagesArgs;
|
|
580
|
+
};
|
|
581
|
+
/**
|
|
582
|
+
* CopilotConversationCountOutputType without action
|
|
583
|
+
*/
|
|
584
|
+
export type CopilotConversationCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
585
|
+
/**
|
|
586
|
+
* Select specific fields to fetch from the CopilotConversationCountOutputType
|
|
587
|
+
*/
|
|
588
|
+
select?: Prisma.CopilotConversationCountOutputTypeSelect<ExtArgs> | null;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* CopilotConversationCountOutputType without action
|
|
592
|
+
*/
|
|
593
|
+
export type CopilotConversationCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
594
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
595
|
+
};
|
|
596
|
+
export type CopilotConversationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
597
|
+
id?: boolean;
|
|
598
|
+
workspaceId?: boolean;
|
|
599
|
+
userId?: boolean;
|
|
600
|
+
title?: boolean;
|
|
601
|
+
createdAt?: boolean;
|
|
602
|
+
updatedAt?: boolean;
|
|
603
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
604
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
605
|
+
messages?: boolean | Prisma.CopilotConversation$messagesArgs<ExtArgs>;
|
|
606
|
+
_count?: boolean | Prisma.CopilotConversationCountOutputTypeDefaultArgs<ExtArgs>;
|
|
607
|
+
}, ExtArgs["result"]["copilotConversation"]>;
|
|
608
|
+
export type CopilotConversationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
609
|
+
id?: boolean;
|
|
610
|
+
workspaceId?: boolean;
|
|
611
|
+
userId?: boolean;
|
|
612
|
+
title?: boolean;
|
|
613
|
+
createdAt?: boolean;
|
|
614
|
+
updatedAt?: boolean;
|
|
615
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
616
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
617
|
+
}, ExtArgs["result"]["copilotConversation"]>;
|
|
618
|
+
export type CopilotConversationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
619
|
+
id?: boolean;
|
|
620
|
+
workspaceId?: boolean;
|
|
621
|
+
userId?: boolean;
|
|
622
|
+
title?: boolean;
|
|
623
|
+
createdAt?: boolean;
|
|
624
|
+
updatedAt?: boolean;
|
|
625
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
626
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
627
|
+
}, ExtArgs["result"]["copilotConversation"]>;
|
|
628
|
+
export type CopilotConversationSelectScalar = {
|
|
629
|
+
id?: boolean;
|
|
630
|
+
workspaceId?: boolean;
|
|
631
|
+
userId?: boolean;
|
|
632
|
+
title?: boolean;
|
|
633
|
+
createdAt?: boolean;
|
|
634
|
+
updatedAt?: boolean;
|
|
635
|
+
};
|
|
636
|
+
export type CopilotConversationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "userId" | "title" | "createdAt" | "updatedAt", ExtArgs["result"]["copilotConversation"]>;
|
|
637
|
+
export type CopilotConversationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
638
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
639
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
640
|
+
messages?: boolean | Prisma.CopilotConversation$messagesArgs<ExtArgs>;
|
|
641
|
+
_count?: boolean | Prisma.CopilotConversationCountOutputTypeDefaultArgs<ExtArgs>;
|
|
642
|
+
};
|
|
643
|
+
export type CopilotConversationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
644
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
645
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
646
|
+
};
|
|
647
|
+
export type CopilotConversationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
648
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
|
|
649
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
650
|
+
};
|
|
651
|
+
export type $CopilotConversationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
652
|
+
name: "CopilotConversation";
|
|
653
|
+
objects: {
|
|
654
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs>;
|
|
655
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
656
|
+
messages: Prisma.$CopilotMessagePayload<ExtArgs>[];
|
|
657
|
+
};
|
|
658
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
659
|
+
id: string;
|
|
660
|
+
workspaceId: string;
|
|
661
|
+
userId: string;
|
|
662
|
+
title: string;
|
|
663
|
+
createdAt: Date;
|
|
664
|
+
updatedAt: Date;
|
|
665
|
+
}, ExtArgs["result"]["copilotConversation"]>;
|
|
666
|
+
composites: {};
|
|
667
|
+
};
|
|
668
|
+
export type CopilotConversationGetPayload<S extends boolean | null | undefined | CopilotConversationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload, S>;
|
|
669
|
+
export type CopilotConversationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CopilotConversationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
670
|
+
select?: CopilotConversationCountAggregateInputType | true;
|
|
671
|
+
};
|
|
672
|
+
export interface CopilotConversationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
673
|
+
[K: symbol]: {
|
|
674
|
+
types: Prisma.TypeMap<ExtArgs>['model']['CopilotConversation'];
|
|
675
|
+
meta: {
|
|
676
|
+
name: 'CopilotConversation';
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Find zero or one CopilotConversation that matches the filter.
|
|
681
|
+
* @param {CopilotConversationFindUniqueArgs} args - Arguments to find a CopilotConversation
|
|
682
|
+
* @example
|
|
683
|
+
* // Get one CopilotConversation
|
|
684
|
+
* const copilotConversation = await prisma.copilotConversation.findUnique({
|
|
685
|
+
* where: {
|
|
686
|
+
* // ... provide filter here
|
|
687
|
+
* }
|
|
688
|
+
* })
|
|
689
|
+
*/
|
|
690
|
+
findUnique<T extends CopilotConversationFindUniqueArgs>(args: Prisma.SelectSubset<T, CopilotConversationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
691
|
+
/**
|
|
692
|
+
* Find one CopilotConversation that matches the filter or throw an error with `error.code='P2025'`
|
|
693
|
+
* if no matches were found.
|
|
694
|
+
* @param {CopilotConversationFindUniqueOrThrowArgs} args - Arguments to find a CopilotConversation
|
|
695
|
+
* @example
|
|
696
|
+
* // Get one CopilotConversation
|
|
697
|
+
* const copilotConversation = await prisma.copilotConversation.findUniqueOrThrow({
|
|
698
|
+
* where: {
|
|
699
|
+
* // ... provide filter here
|
|
700
|
+
* }
|
|
701
|
+
* })
|
|
702
|
+
*/
|
|
703
|
+
findUniqueOrThrow<T extends CopilotConversationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CopilotConversationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
704
|
+
/**
|
|
705
|
+
* Find the first CopilotConversation that matches the filter.
|
|
706
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
707
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
708
|
+
* @param {CopilotConversationFindFirstArgs} args - Arguments to find a CopilotConversation
|
|
709
|
+
* @example
|
|
710
|
+
* // Get one CopilotConversation
|
|
711
|
+
* const copilotConversation = await prisma.copilotConversation.findFirst({
|
|
712
|
+
* where: {
|
|
713
|
+
* // ... provide filter here
|
|
714
|
+
* }
|
|
715
|
+
* })
|
|
716
|
+
*/
|
|
717
|
+
findFirst<T extends CopilotConversationFindFirstArgs>(args?: Prisma.SelectSubset<T, CopilotConversationFindFirstArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
718
|
+
/**
|
|
719
|
+
* Find the first CopilotConversation that matches the filter or
|
|
720
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
721
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
722
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
723
|
+
* @param {CopilotConversationFindFirstOrThrowArgs} args - Arguments to find a CopilotConversation
|
|
724
|
+
* @example
|
|
725
|
+
* // Get one CopilotConversation
|
|
726
|
+
* const copilotConversation = await prisma.copilotConversation.findFirstOrThrow({
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... provide filter here
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
*/
|
|
732
|
+
findFirstOrThrow<T extends CopilotConversationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CopilotConversationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Find zero or more CopilotConversations that matches the filter.
|
|
735
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
736
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
737
|
+
* @param {CopilotConversationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
738
|
+
* @example
|
|
739
|
+
* // Get all CopilotConversations
|
|
740
|
+
* const copilotConversations = await prisma.copilotConversation.findMany()
|
|
741
|
+
*
|
|
742
|
+
* // Get first 10 CopilotConversations
|
|
743
|
+
* const copilotConversations = await prisma.copilotConversation.findMany({ take: 10 })
|
|
744
|
+
*
|
|
745
|
+
* // Only select the `id`
|
|
746
|
+
* const copilotConversationWithIdOnly = await prisma.copilotConversation.findMany({ select: { id: true } })
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
findMany<T extends CopilotConversationFindManyArgs>(args?: Prisma.SelectSubset<T, CopilotConversationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
750
|
+
/**
|
|
751
|
+
* Create a CopilotConversation.
|
|
752
|
+
* @param {CopilotConversationCreateArgs} args - Arguments to create a CopilotConversation.
|
|
753
|
+
* @example
|
|
754
|
+
* // Create one CopilotConversation
|
|
755
|
+
* const CopilotConversation = await prisma.copilotConversation.create({
|
|
756
|
+
* data: {
|
|
757
|
+
* // ... data to create a CopilotConversation
|
|
758
|
+
* }
|
|
759
|
+
* })
|
|
760
|
+
*
|
|
761
|
+
*/
|
|
762
|
+
create<T extends CopilotConversationCreateArgs>(args: Prisma.SelectSubset<T, CopilotConversationCreateArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
763
|
+
/**
|
|
764
|
+
* Create many CopilotConversations.
|
|
765
|
+
* @param {CopilotConversationCreateManyArgs} args - Arguments to create many CopilotConversations.
|
|
766
|
+
* @example
|
|
767
|
+
* // Create many CopilotConversations
|
|
768
|
+
* const copilotConversation = await prisma.copilotConversation.createMany({
|
|
769
|
+
* data: [
|
|
770
|
+
* // ... provide data here
|
|
771
|
+
* ]
|
|
772
|
+
* })
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
775
|
+
createMany<T extends CopilotConversationCreateManyArgs>(args?: Prisma.SelectSubset<T, CopilotConversationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
776
|
+
/**
|
|
777
|
+
* Create many CopilotConversations and returns the data saved in the database.
|
|
778
|
+
* @param {CopilotConversationCreateManyAndReturnArgs} args - Arguments to create many CopilotConversations.
|
|
779
|
+
* @example
|
|
780
|
+
* // Create many CopilotConversations
|
|
781
|
+
* const copilotConversation = await prisma.copilotConversation.createManyAndReturn({
|
|
782
|
+
* data: [
|
|
783
|
+
* // ... provide data here
|
|
784
|
+
* ]
|
|
785
|
+
* })
|
|
786
|
+
*
|
|
787
|
+
* // Create many CopilotConversations and only return the `id`
|
|
788
|
+
* const copilotConversationWithIdOnly = await prisma.copilotConversation.createManyAndReturn({
|
|
789
|
+
* select: { id: true },
|
|
790
|
+
* data: [
|
|
791
|
+
* // ... provide data here
|
|
792
|
+
* ]
|
|
793
|
+
* })
|
|
794
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
795
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
796
|
+
*
|
|
797
|
+
*/
|
|
798
|
+
createManyAndReturn<T extends CopilotConversationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CopilotConversationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
799
|
+
/**
|
|
800
|
+
* Delete a CopilotConversation.
|
|
801
|
+
* @param {CopilotConversationDeleteArgs} args - Arguments to delete one CopilotConversation.
|
|
802
|
+
* @example
|
|
803
|
+
* // Delete one CopilotConversation
|
|
804
|
+
* const CopilotConversation = await prisma.copilotConversation.delete({
|
|
805
|
+
* where: {
|
|
806
|
+
* // ... filter to delete one CopilotConversation
|
|
807
|
+
* }
|
|
808
|
+
* })
|
|
809
|
+
*
|
|
810
|
+
*/
|
|
811
|
+
delete<T extends CopilotConversationDeleteArgs>(args: Prisma.SelectSubset<T, CopilotConversationDeleteArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
812
|
+
/**
|
|
813
|
+
* Update one CopilotConversation.
|
|
814
|
+
* @param {CopilotConversationUpdateArgs} args - Arguments to update one CopilotConversation.
|
|
815
|
+
* @example
|
|
816
|
+
* // Update one CopilotConversation
|
|
817
|
+
* const copilotConversation = await prisma.copilotConversation.update({
|
|
818
|
+
* where: {
|
|
819
|
+
* // ... provide filter here
|
|
820
|
+
* },
|
|
821
|
+
* data: {
|
|
822
|
+
* // ... provide data here
|
|
823
|
+
* }
|
|
824
|
+
* })
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
update<T extends CopilotConversationUpdateArgs>(args: Prisma.SelectSubset<T, CopilotConversationUpdateArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
828
|
+
/**
|
|
829
|
+
* Delete zero or more CopilotConversations.
|
|
830
|
+
* @param {CopilotConversationDeleteManyArgs} args - Arguments to filter CopilotConversations to delete.
|
|
831
|
+
* @example
|
|
832
|
+
* // Delete a few CopilotConversations
|
|
833
|
+
* const { count } = await prisma.copilotConversation.deleteMany({
|
|
834
|
+
* where: {
|
|
835
|
+
* // ... provide filter here
|
|
836
|
+
* }
|
|
837
|
+
* })
|
|
838
|
+
*
|
|
839
|
+
*/
|
|
840
|
+
deleteMany<T extends CopilotConversationDeleteManyArgs>(args?: Prisma.SelectSubset<T, CopilotConversationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
841
|
+
/**
|
|
842
|
+
* Update zero or more CopilotConversations.
|
|
843
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
844
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
845
|
+
* @param {CopilotConversationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
846
|
+
* @example
|
|
847
|
+
* // Update many CopilotConversations
|
|
848
|
+
* const copilotConversation = await prisma.copilotConversation.updateMany({
|
|
849
|
+
* where: {
|
|
850
|
+
* // ... provide filter here
|
|
851
|
+
* },
|
|
852
|
+
* data: {
|
|
853
|
+
* // ... provide data here
|
|
854
|
+
* }
|
|
855
|
+
* })
|
|
856
|
+
*
|
|
857
|
+
*/
|
|
858
|
+
updateMany<T extends CopilotConversationUpdateManyArgs>(args: Prisma.SelectSubset<T, CopilotConversationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
859
|
+
/**
|
|
860
|
+
* Update zero or more CopilotConversations and returns the data updated in the database.
|
|
861
|
+
* @param {CopilotConversationUpdateManyAndReturnArgs} args - Arguments to update many CopilotConversations.
|
|
862
|
+
* @example
|
|
863
|
+
* // Update many CopilotConversations
|
|
864
|
+
* const copilotConversation = await prisma.copilotConversation.updateManyAndReturn({
|
|
865
|
+
* where: {
|
|
866
|
+
* // ... provide filter here
|
|
867
|
+
* },
|
|
868
|
+
* data: [
|
|
869
|
+
* // ... provide data here
|
|
870
|
+
* ]
|
|
871
|
+
* })
|
|
872
|
+
*
|
|
873
|
+
* // Update zero or more CopilotConversations and only return the `id`
|
|
874
|
+
* const copilotConversationWithIdOnly = await prisma.copilotConversation.updateManyAndReturn({
|
|
875
|
+
* select: { id: true },
|
|
876
|
+
* where: {
|
|
877
|
+
* // ... provide filter here
|
|
878
|
+
* },
|
|
879
|
+
* data: [
|
|
880
|
+
* // ... provide data here
|
|
881
|
+
* ]
|
|
882
|
+
* })
|
|
883
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
884
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
885
|
+
*
|
|
886
|
+
*/
|
|
887
|
+
updateManyAndReturn<T extends CopilotConversationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CopilotConversationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
888
|
+
/**
|
|
889
|
+
* Create or update one CopilotConversation.
|
|
890
|
+
* @param {CopilotConversationUpsertArgs} args - Arguments to update or create a CopilotConversation.
|
|
891
|
+
* @example
|
|
892
|
+
* // Update or create a CopilotConversation
|
|
893
|
+
* const copilotConversation = await prisma.copilotConversation.upsert({
|
|
894
|
+
* create: {
|
|
895
|
+
* // ... data to create a CopilotConversation
|
|
896
|
+
* },
|
|
897
|
+
* update: {
|
|
898
|
+
* // ... in case it already exists, update
|
|
899
|
+
* },
|
|
900
|
+
* where: {
|
|
901
|
+
* // ... the filter for the CopilotConversation we want to update
|
|
902
|
+
* }
|
|
903
|
+
* })
|
|
904
|
+
*/
|
|
905
|
+
upsert<T extends CopilotConversationUpsertArgs>(args: Prisma.SelectSubset<T, CopilotConversationUpsertArgs<ExtArgs>>): Prisma.Prisma__CopilotConversationClient<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
906
|
+
/**
|
|
907
|
+
* Count the number of CopilotConversations.
|
|
908
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
909
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
910
|
+
* @param {CopilotConversationCountArgs} args - Arguments to filter CopilotConversations to count.
|
|
911
|
+
* @example
|
|
912
|
+
* // Count the number of CopilotConversations
|
|
913
|
+
* const count = await prisma.copilotConversation.count({
|
|
914
|
+
* where: {
|
|
915
|
+
* // ... the filter for the CopilotConversations we want to count
|
|
916
|
+
* }
|
|
917
|
+
* })
|
|
918
|
+
**/
|
|
919
|
+
count<T extends CopilotConversationCountArgs>(args?: Prisma.Subset<T, CopilotConversationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CopilotConversationCountAggregateOutputType> : number>;
|
|
920
|
+
/**
|
|
921
|
+
* Allows you to perform aggregations operations on a CopilotConversation.
|
|
922
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
923
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
924
|
+
* @param {CopilotConversationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
925
|
+
* @example
|
|
926
|
+
* // Ordered by age ascending
|
|
927
|
+
* // Where email contains prisma.io
|
|
928
|
+
* // Limited to the 10 users
|
|
929
|
+
* const aggregations = await prisma.user.aggregate({
|
|
930
|
+
* _avg: {
|
|
931
|
+
* age: true,
|
|
932
|
+
* },
|
|
933
|
+
* where: {
|
|
934
|
+
* email: {
|
|
935
|
+
* contains: "prisma.io",
|
|
936
|
+
* },
|
|
937
|
+
* },
|
|
938
|
+
* orderBy: {
|
|
939
|
+
* age: "asc",
|
|
940
|
+
* },
|
|
941
|
+
* take: 10,
|
|
942
|
+
* })
|
|
943
|
+
**/
|
|
944
|
+
aggregate<T extends CopilotConversationAggregateArgs>(args: Prisma.Subset<T, CopilotConversationAggregateArgs>): Prisma.PrismaPromise<GetCopilotConversationAggregateType<T>>;
|
|
945
|
+
/**
|
|
946
|
+
* Group by CopilotConversation.
|
|
947
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
948
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
949
|
+
* @param {CopilotConversationGroupByArgs} args - Group by arguments.
|
|
950
|
+
* @example
|
|
951
|
+
* // Group by city, order by createdAt, get count
|
|
952
|
+
* const result = await prisma.user.groupBy({
|
|
953
|
+
* by: ['city', 'createdAt'],
|
|
954
|
+
* orderBy: {
|
|
955
|
+
* createdAt: true
|
|
956
|
+
* },
|
|
957
|
+
* _count: {
|
|
958
|
+
* _all: true
|
|
959
|
+
* },
|
|
960
|
+
* })
|
|
961
|
+
*
|
|
962
|
+
**/
|
|
963
|
+
groupBy<T extends CopilotConversationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
964
|
+
orderBy: CopilotConversationGroupByArgs['orderBy'];
|
|
965
|
+
} : {
|
|
966
|
+
orderBy?: CopilotConversationGroupByArgs['orderBy'];
|
|
967
|
+
}, 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 ? {
|
|
968
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
969
|
+
Error,
|
|
970
|
+
'Field ',
|
|
971
|
+
P,
|
|
972
|
+
` in "having" needs to be provided in "by"`
|
|
973
|
+
];
|
|
974
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
975
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
976
|
+
}[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 ? {} : {
|
|
977
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
978
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
979
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
980
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, CopilotConversationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCopilotConversationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
981
|
+
/**
|
|
982
|
+
* Fields of the CopilotConversation model
|
|
983
|
+
*/
|
|
984
|
+
readonly fields: CopilotConversationFieldRefs;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* The delegate class that acts as a "Promise-like" for CopilotConversation.
|
|
988
|
+
* Why is this prefixed with `Prisma__`?
|
|
989
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
990
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
991
|
+
*/
|
|
992
|
+
export interface Prisma__CopilotConversationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
993
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
994
|
+
workspace<T extends Prisma.WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkspaceDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
995
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
996
|
+
messages<T extends Prisma.CopilotConversation$messagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CopilotConversation$messagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
997
|
+
/**
|
|
998
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
999
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1000
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1001
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1002
|
+
*/
|
|
1003
|
+
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>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1006
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1007
|
+
* @returns A Promise for the completion of the callback.
|
|
1008
|
+
*/
|
|
1009
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1012
|
+
* resolved value cannot be modified from the callback.
|
|
1013
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1014
|
+
* @returns A Promise for the completion of the callback.
|
|
1015
|
+
*/
|
|
1016
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Fields of the CopilotConversation model
|
|
1020
|
+
*/
|
|
1021
|
+
export interface CopilotConversationFieldRefs {
|
|
1022
|
+
readonly id: Prisma.FieldRef<"CopilotConversation", 'String'>;
|
|
1023
|
+
readonly workspaceId: Prisma.FieldRef<"CopilotConversation", 'String'>;
|
|
1024
|
+
readonly userId: Prisma.FieldRef<"CopilotConversation", 'String'>;
|
|
1025
|
+
readonly title: Prisma.FieldRef<"CopilotConversation", 'String'>;
|
|
1026
|
+
readonly createdAt: Prisma.FieldRef<"CopilotConversation", 'DateTime'>;
|
|
1027
|
+
readonly updatedAt: Prisma.FieldRef<"CopilotConversation", 'DateTime'>;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* CopilotConversation findUnique
|
|
1031
|
+
*/
|
|
1032
|
+
export type CopilotConversationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1035
|
+
*/
|
|
1036
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Omit specific fields from the CopilotConversation
|
|
1039
|
+
*/
|
|
1040
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Choose, which related nodes to fetch as well
|
|
1043
|
+
*/
|
|
1044
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* Filter, which CopilotConversation to fetch.
|
|
1047
|
+
*/
|
|
1048
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
1049
|
+
};
|
|
1050
|
+
/**
|
|
1051
|
+
* CopilotConversation findUniqueOrThrow
|
|
1052
|
+
*/
|
|
1053
|
+
export type CopilotConversationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1054
|
+
/**
|
|
1055
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1056
|
+
*/
|
|
1057
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Omit specific fields from the CopilotConversation
|
|
1060
|
+
*/
|
|
1061
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1062
|
+
/**
|
|
1063
|
+
* Choose, which related nodes to fetch as well
|
|
1064
|
+
*/
|
|
1065
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1066
|
+
/**
|
|
1067
|
+
* Filter, which CopilotConversation to fetch.
|
|
1068
|
+
*/
|
|
1069
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* CopilotConversation findFirst
|
|
1073
|
+
*/
|
|
1074
|
+
export type CopilotConversationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1075
|
+
/**
|
|
1076
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1077
|
+
*/
|
|
1078
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Omit specific fields from the CopilotConversation
|
|
1081
|
+
*/
|
|
1082
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Choose, which related nodes to fetch as well
|
|
1085
|
+
*/
|
|
1086
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1087
|
+
/**
|
|
1088
|
+
* Filter, which CopilotConversation to fetch.
|
|
1089
|
+
*/
|
|
1090
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1091
|
+
/**
|
|
1092
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1093
|
+
*
|
|
1094
|
+
* Determine the order of CopilotConversations to fetch.
|
|
1095
|
+
*/
|
|
1096
|
+
orderBy?: Prisma.CopilotConversationOrderByWithRelationInput | Prisma.CopilotConversationOrderByWithRelationInput[];
|
|
1097
|
+
/**
|
|
1098
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1099
|
+
*
|
|
1100
|
+
* Sets the position for searching for CopilotConversations.
|
|
1101
|
+
*/
|
|
1102
|
+
cursor?: Prisma.CopilotConversationWhereUniqueInput;
|
|
1103
|
+
/**
|
|
1104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1105
|
+
*
|
|
1106
|
+
* Take `±n` CopilotConversations from the position of the cursor.
|
|
1107
|
+
*/
|
|
1108
|
+
take?: number;
|
|
1109
|
+
/**
|
|
1110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1111
|
+
*
|
|
1112
|
+
* Skip the first `n` CopilotConversations.
|
|
1113
|
+
*/
|
|
1114
|
+
skip?: number;
|
|
1115
|
+
/**
|
|
1116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1117
|
+
*
|
|
1118
|
+
* Filter by unique combinations of CopilotConversations.
|
|
1119
|
+
*/
|
|
1120
|
+
distinct?: Prisma.CopilotConversationScalarFieldEnum | Prisma.CopilotConversationScalarFieldEnum[];
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* CopilotConversation findFirstOrThrow
|
|
1124
|
+
*/
|
|
1125
|
+
export type CopilotConversationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1126
|
+
/**
|
|
1127
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1128
|
+
*/
|
|
1129
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1130
|
+
/**
|
|
1131
|
+
* Omit specific fields from the CopilotConversation
|
|
1132
|
+
*/
|
|
1133
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1134
|
+
/**
|
|
1135
|
+
* Choose, which related nodes to fetch as well
|
|
1136
|
+
*/
|
|
1137
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1138
|
+
/**
|
|
1139
|
+
* Filter, which CopilotConversation to fetch.
|
|
1140
|
+
*/
|
|
1141
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Determine the order of CopilotConversations to fetch.
|
|
1146
|
+
*/
|
|
1147
|
+
orderBy?: Prisma.CopilotConversationOrderByWithRelationInput | Prisma.CopilotConversationOrderByWithRelationInput[];
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1150
|
+
*
|
|
1151
|
+
* Sets the position for searching for CopilotConversations.
|
|
1152
|
+
*/
|
|
1153
|
+
cursor?: Prisma.CopilotConversationWhereUniqueInput;
|
|
1154
|
+
/**
|
|
1155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1156
|
+
*
|
|
1157
|
+
* Take `±n` CopilotConversations from the position of the cursor.
|
|
1158
|
+
*/
|
|
1159
|
+
take?: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1162
|
+
*
|
|
1163
|
+
* Skip the first `n` CopilotConversations.
|
|
1164
|
+
*/
|
|
1165
|
+
skip?: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1168
|
+
*
|
|
1169
|
+
* Filter by unique combinations of CopilotConversations.
|
|
1170
|
+
*/
|
|
1171
|
+
distinct?: Prisma.CopilotConversationScalarFieldEnum | Prisma.CopilotConversationScalarFieldEnum[];
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* CopilotConversation findMany
|
|
1175
|
+
*/
|
|
1176
|
+
export type CopilotConversationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1177
|
+
/**
|
|
1178
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1179
|
+
*/
|
|
1180
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Omit specific fields from the CopilotConversation
|
|
1183
|
+
*/
|
|
1184
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Choose, which related nodes to fetch as well
|
|
1187
|
+
*/
|
|
1188
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* Filter, which CopilotConversations to fetch.
|
|
1191
|
+
*/
|
|
1192
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Determine the order of CopilotConversations to fetch.
|
|
1197
|
+
*/
|
|
1198
|
+
orderBy?: Prisma.CopilotConversationOrderByWithRelationInput | Prisma.CopilotConversationOrderByWithRelationInput[];
|
|
1199
|
+
/**
|
|
1200
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1201
|
+
*
|
|
1202
|
+
* Sets the position for listing CopilotConversations.
|
|
1203
|
+
*/
|
|
1204
|
+
cursor?: Prisma.CopilotConversationWhereUniqueInput;
|
|
1205
|
+
/**
|
|
1206
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1207
|
+
*
|
|
1208
|
+
* Take `±n` CopilotConversations from the position of the cursor.
|
|
1209
|
+
*/
|
|
1210
|
+
take?: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1213
|
+
*
|
|
1214
|
+
* Skip the first `n` CopilotConversations.
|
|
1215
|
+
*/
|
|
1216
|
+
skip?: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1219
|
+
*
|
|
1220
|
+
* Filter by unique combinations of CopilotConversations.
|
|
1221
|
+
*/
|
|
1222
|
+
distinct?: Prisma.CopilotConversationScalarFieldEnum | Prisma.CopilotConversationScalarFieldEnum[];
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* CopilotConversation create
|
|
1226
|
+
*/
|
|
1227
|
+
export type CopilotConversationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1230
|
+
*/
|
|
1231
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Omit specific fields from the CopilotConversation
|
|
1234
|
+
*/
|
|
1235
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Choose, which related nodes to fetch as well
|
|
1238
|
+
*/
|
|
1239
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1240
|
+
/**
|
|
1241
|
+
* The data needed to create a CopilotConversation.
|
|
1242
|
+
*/
|
|
1243
|
+
data: Prisma.XOR<Prisma.CopilotConversationCreateInput, Prisma.CopilotConversationUncheckedCreateInput>;
|
|
1244
|
+
};
|
|
1245
|
+
/**
|
|
1246
|
+
* CopilotConversation createMany
|
|
1247
|
+
*/
|
|
1248
|
+
export type CopilotConversationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1249
|
+
/**
|
|
1250
|
+
* The data used to create many CopilotConversations.
|
|
1251
|
+
*/
|
|
1252
|
+
data: Prisma.CopilotConversationCreateManyInput | Prisma.CopilotConversationCreateManyInput[];
|
|
1253
|
+
skipDuplicates?: boolean;
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* CopilotConversation createManyAndReturn
|
|
1257
|
+
*/
|
|
1258
|
+
export type CopilotConversationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
|
+
/**
|
|
1260
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1261
|
+
*/
|
|
1262
|
+
select?: Prisma.CopilotConversationSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Omit specific fields from the CopilotConversation
|
|
1265
|
+
*/
|
|
1266
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* The data used to create many CopilotConversations.
|
|
1269
|
+
*/
|
|
1270
|
+
data: Prisma.CopilotConversationCreateManyInput | Prisma.CopilotConversationCreateManyInput[];
|
|
1271
|
+
skipDuplicates?: boolean;
|
|
1272
|
+
/**
|
|
1273
|
+
* Choose, which related nodes to fetch as well
|
|
1274
|
+
*/
|
|
1275
|
+
include?: Prisma.CopilotConversationIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* CopilotConversation update
|
|
1279
|
+
*/
|
|
1280
|
+
export type CopilotConversationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1281
|
+
/**
|
|
1282
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1283
|
+
*/
|
|
1284
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* Omit specific fields from the CopilotConversation
|
|
1287
|
+
*/
|
|
1288
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1289
|
+
/**
|
|
1290
|
+
* Choose, which related nodes to fetch as well
|
|
1291
|
+
*/
|
|
1292
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1293
|
+
/**
|
|
1294
|
+
* The data needed to update a CopilotConversation.
|
|
1295
|
+
*/
|
|
1296
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateInput, Prisma.CopilotConversationUncheckedUpdateInput>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Choose, which CopilotConversation to update.
|
|
1299
|
+
*/
|
|
1300
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
1301
|
+
};
|
|
1302
|
+
/**
|
|
1303
|
+
* CopilotConversation updateMany
|
|
1304
|
+
*/
|
|
1305
|
+
export type CopilotConversationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1306
|
+
/**
|
|
1307
|
+
* The data used to update CopilotConversations.
|
|
1308
|
+
*/
|
|
1309
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateManyMutationInput, Prisma.CopilotConversationUncheckedUpdateManyInput>;
|
|
1310
|
+
/**
|
|
1311
|
+
* Filter which CopilotConversations to update
|
|
1312
|
+
*/
|
|
1313
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1314
|
+
/**
|
|
1315
|
+
* Limit how many CopilotConversations to update.
|
|
1316
|
+
*/
|
|
1317
|
+
limit?: number;
|
|
1318
|
+
};
|
|
1319
|
+
/**
|
|
1320
|
+
* CopilotConversation updateManyAndReturn
|
|
1321
|
+
*/
|
|
1322
|
+
export type CopilotConversationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1323
|
+
/**
|
|
1324
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1325
|
+
*/
|
|
1326
|
+
select?: Prisma.CopilotConversationSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1327
|
+
/**
|
|
1328
|
+
* Omit specific fields from the CopilotConversation
|
|
1329
|
+
*/
|
|
1330
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1331
|
+
/**
|
|
1332
|
+
* The data used to update CopilotConversations.
|
|
1333
|
+
*/
|
|
1334
|
+
data: Prisma.XOR<Prisma.CopilotConversationUpdateManyMutationInput, Prisma.CopilotConversationUncheckedUpdateManyInput>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Filter which CopilotConversations to update
|
|
1337
|
+
*/
|
|
1338
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1339
|
+
/**
|
|
1340
|
+
* Limit how many CopilotConversations to update.
|
|
1341
|
+
*/
|
|
1342
|
+
limit?: number;
|
|
1343
|
+
/**
|
|
1344
|
+
* Choose, which related nodes to fetch as well
|
|
1345
|
+
*/
|
|
1346
|
+
include?: Prisma.CopilotConversationIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1347
|
+
};
|
|
1348
|
+
/**
|
|
1349
|
+
* CopilotConversation upsert
|
|
1350
|
+
*/
|
|
1351
|
+
export type CopilotConversationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1352
|
+
/**
|
|
1353
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1354
|
+
*/
|
|
1355
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Omit specific fields from the CopilotConversation
|
|
1358
|
+
*/
|
|
1359
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Choose, which related nodes to fetch as well
|
|
1362
|
+
*/
|
|
1363
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* The filter to search for the CopilotConversation to update in case it exists.
|
|
1366
|
+
*/
|
|
1367
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
1368
|
+
/**
|
|
1369
|
+
* In case the CopilotConversation found by the `where` argument doesn't exist, create a new CopilotConversation with this data.
|
|
1370
|
+
*/
|
|
1371
|
+
create: Prisma.XOR<Prisma.CopilotConversationCreateInput, Prisma.CopilotConversationUncheckedCreateInput>;
|
|
1372
|
+
/**
|
|
1373
|
+
* In case the CopilotConversation was found with the provided `where` argument, update it with this data.
|
|
1374
|
+
*/
|
|
1375
|
+
update: Prisma.XOR<Prisma.CopilotConversationUpdateInput, Prisma.CopilotConversationUncheckedUpdateInput>;
|
|
1376
|
+
};
|
|
1377
|
+
/**
|
|
1378
|
+
* CopilotConversation delete
|
|
1379
|
+
*/
|
|
1380
|
+
export type CopilotConversationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1381
|
+
/**
|
|
1382
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1383
|
+
*/
|
|
1384
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1385
|
+
/**
|
|
1386
|
+
* Omit specific fields from the CopilotConversation
|
|
1387
|
+
*/
|
|
1388
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1389
|
+
/**
|
|
1390
|
+
* Choose, which related nodes to fetch as well
|
|
1391
|
+
*/
|
|
1392
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1393
|
+
/**
|
|
1394
|
+
* Filter which CopilotConversation to delete.
|
|
1395
|
+
*/
|
|
1396
|
+
where: Prisma.CopilotConversationWhereUniqueInput;
|
|
1397
|
+
};
|
|
1398
|
+
/**
|
|
1399
|
+
* CopilotConversation deleteMany
|
|
1400
|
+
*/
|
|
1401
|
+
export type CopilotConversationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1402
|
+
/**
|
|
1403
|
+
* Filter which CopilotConversations to delete
|
|
1404
|
+
*/
|
|
1405
|
+
where?: Prisma.CopilotConversationWhereInput;
|
|
1406
|
+
/**
|
|
1407
|
+
* Limit how many CopilotConversations to delete.
|
|
1408
|
+
*/
|
|
1409
|
+
limit?: number;
|
|
1410
|
+
};
|
|
1411
|
+
/**
|
|
1412
|
+
* CopilotConversation.messages
|
|
1413
|
+
*/
|
|
1414
|
+
export type CopilotConversation$messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1415
|
+
/**
|
|
1416
|
+
* Select specific fields to fetch from the CopilotMessage
|
|
1417
|
+
*/
|
|
1418
|
+
select?: Prisma.CopilotMessageSelect<ExtArgs> | null;
|
|
1419
|
+
/**
|
|
1420
|
+
* Omit specific fields from the CopilotMessage
|
|
1421
|
+
*/
|
|
1422
|
+
omit?: Prisma.CopilotMessageOmit<ExtArgs> | null;
|
|
1423
|
+
/**
|
|
1424
|
+
* Choose, which related nodes to fetch as well
|
|
1425
|
+
*/
|
|
1426
|
+
include?: Prisma.CopilotMessageInclude<ExtArgs> | null;
|
|
1427
|
+
where?: Prisma.CopilotMessageWhereInput;
|
|
1428
|
+
orderBy?: Prisma.CopilotMessageOrderByWithRelationInput | Prisma.CopilotMessageOrderByWithRelationInput[];
|
|
1429
|
+
cursor?: Prisma.CopilotMessageWhereUniqueInput;
|
|
1430
|
+
take?: number;
|
|
1431
|
+
skip?: number;
|
|
1432
|
+
distinct?: Prisma.CopilotMessageScalarFieldEnum | Prisma.CopilotMessageScalarFieldEnum[];
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* CopilotConversation without action
|
|
1436
|
+
*/
|
|
1437
|
+
export type CopilotConversationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1438
|
+
/**
|
|
1439
|
+
* Select specific fields to fetch from the CopilotConversation
|
|
1440
|
+
*/
|
|
1441
|
+
select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* Omit specific fields from the CopilotConversation
|
|
1444
|
+
*/
|
|
1445
|
+
omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Choose, which related nodes to fetch as well
|
|
1448
|
+
*/
|
|
1449
|
+
include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
|
|
1450
|
+
};
|