@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,1832 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model FileAsset
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type FileAssetModel = runtime.Types.Result.DefaultSelection<Prisma.$FileAssetPayload>;
|
|
8
|
+
export type AggregateFileAsset = {
|
|
9
|
+
_count: FileAssetCountAggregateOutputType | null;
|
|
10
|
+
_avg: FileAssetAvgAggregateOutputType | null;
|
|
11
|
+
_sum: FileAssetSumAggregateOutputType | null;
|
|
12
|
+
_min: FileAssetMinAggregateOutputType | null;
|
|
13
|
+
_max: FileAssetMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type FileAssetAvgAggregateOutputType = {
|
|
16
|
+
size: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type FileAssetSumAggregateOutputType = {
|
|
19
|
+
size: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type FileAssetMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
workspaceId: string | null;
|
|
24
|
+
userId: string | null;
|
|
25
|
+
name: string | null;
|
|
26
|
+
mimeType: string | null;
|
|
27
|
+
size: number | null;
|
|
28
|
+
bucket: string | null;
|
|
29
|
+
objectKey: string | null;
|
|
30
|
+
url: string | null;
|
|
31
|
+
checksum: string | null;
|
|
32
|
+
createdAt: Date | null;
|
|
33
|
+
};
|
|
34
|
+
export type FileAssetMaxAggregateOutputType = {
|
|
35
|
+
id: string | null;
|
|
36
|
+
workspaceId: string | null;
|
|
37
|
+
userId: string | null;
|
|
38
|
+
name: string | null;
|
|
39
|
+
mimeType: string | null;
|
|
40
|
+
size: number | null;
|
|
41
|
+
bucket: string | null;
|
|
42
|
+
objectKey: string | null;
|
|
43
|
+
url: string | null;
|
|
44
|
+
checksum: string | null;
|
|
45
|
+
createdAt: Date | null;
|
|
46
|
+
};
|
|
47
|
+
export type FileAssetCountAggregateOutputType = {
|
|
48
|
+
id: number;
|
|
49
|
+
workspaceId: number;
|
|
50
|
+
userId: number;
|
|
51
|
+
name: number;
|
|
52
|
+
mimeType: number;
|
|
53
|
+
size: number;
|
|
54
|
+
bucket: number;
|
|
55
|
+
objectKey: number;
|
|
56
|
+
url: number;
|
|
57
|
+
checksum: number;
|
|
58
|
+
meta: number;
|
|
59
|
+
createdAt: number;
|
|
60
|
+
aiTranscription: number;
|
|
61
|
+
_all: number;
|
|
62
|
+
};
|
|
63
|
+
export type FileAssetAvgAggregateInputType = {
|
|
64
|
+
size?: true;
|
|
65
|
+
};
|
|
66
|
+
export type FileAssetSumAggregateInputType = {
|
|
67
|
+
size?: true;
|
|
68
|
+
};
|
|
69
|
+
export type FileAssetMinAggregateInputType = {
|
|
70
|
+
id?: true;
|
|
71
|
+
workspaceId?: true;
|
|
72
|
+
userId?: true;
|
|
73
|
+
name?: true;
|
|
74
|
+
mimeType?: true;
|
|
75
|
+
size?: true;
|
|
76
|
+
bucket?: true;
|
|
77
|
+
objectKey?: true;
|
|
78
|
+
url?: true;
|
|
79
|
+
checksum?: true;
|
|
80
|
+
createdAt?: true;
|
|
81
|
+
};
|
|
82
|
+
export type FileAssetMaxAggregateInputType = {
|
|
83
|
+
id?: true;
|
|
84
|
+
workspaceId?: true;
|
|
85
|
+
userId?: true;
|
|
86
|
+
name?: true;
|
|
87
|
+
mimeType?: true;
|
|
88
|
+
size?: true;
|
|
89
|
+
bucket?: true;
|
|
90
|
+
objectKey?: true;
|
|
91
|
+
url?: true;
|
|
92
|
+
checksum?: true;
|
|
93
|
+
createdAt?: true;
|
|
94
|
+
};
|
|
95
|
+
export type FileAssetCountAggregateInputType = {
|
|
96
|
+
id?: true;
|
|
97
|
+
workspaceId?: true;
|
|
98
|
+
userId?: true;
|
|
99
|
+
name?: true;
|
|
100
|
+
mimeType?: true;
|
|
101
|
+
size?: true;
|
|
102
|
+
bucket?: true;
|
|
103
|
+
objectKey?: true;
|
|
104
|
+
url?: true;
|
|
105
|
+
checksum?: true;
|
|
106
|
+
meta?: true;
|
|
107
|
+
createdAt?: true;
|
|
108
|
+
aiTranscription?: true;
|
|
109
|
+
_all?: true;
|
|
110
|
+
};
|
|
111
|
+
export type FileAssetAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
112
|
+
/**
|
|
113
|
+
* Filter which FileAsset to aggregate.
|
|
114
|
+
*/
|
|
115
|
+
where?: Prisma.FileAssetWhereInput;
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
118
|
+
*
|
|
119
|
+
* Determine the order of FileAssets to fetch.
|
|
120
|
+
*/
|
|
121
|
+
orderBy?: Prisma.FileAssetOrderByWithRelationInput | Prisma.FileAssetOrderByWithRelationInput[];
|
|
122
|
+
/**
|
|
123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
124
|
+
*
|
|
125
|
+
* Sets the start position
|
|
126
|
+
*/
|
|
127
|
+
cursor?: Prisma.FileAssetWhereUniqueInput;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
130
|
+
*
|
|
131
|
+
* Take `±n` FileAssets from the position of the cursor.
|
|
132
|
+
*/
|
|
133
|
+
take?: number;
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
136
|
+
*
|
|
137
|
+
* Skip the first `n` FileAssets.
|
|
138
|
+
*/
|
|
139
|
+
skip?: number;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
142
|
+
*
|
|
143
|
+
* Count returned FileAssets
|
|
144
|
+
**/
|
|
145
|
+
_count?: true | FileAssetCountAggregateInputType;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
148
|
+
*
|
|
149
|
+
* Select which fields to average
|
|
150
|
+
**/
|
|
151
|
+
_avg?: FileAssetAvgAggregateInputType;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Select which fields to sum
|
|
156
|
+
**/
|
|
157
|
+
_sum?: FileAssetSumAggregateInputType;
|
|
158
|
+
/**
|
|
159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
|
+
*
|
|
161
|
+
* Select which fields to find the minimum value
|
|
162
|
+
**/
|
|
163
|
+
_min?: FileAssetMinAggregateInputType;
|
|
164
|
+
/**
|
|
165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
166
|
+
*
|
|
167
|
+
* Select which fields to find the maximum value
|
|
168
|
+
**/
|
|
169
|
+
_max?: FileAssetMaxAggregateInputType;
|
|
170
|
+
};
|
|
171
|
+
export type GetFileAssetAggregateType<T extends FileAssetAggregateArgs> = {
|
|
172
|
+
[P in keyof T & keyof AggregateFileAsset]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateFileAsset[P]> : Prisma.GetScalarType<T[P], AggregateFileAsset[P]>;
|
|
173
|
+
};
|
|
174
|
+
export type FileAssetGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
175
|
+
where?: Prisma.FileAssetWhereInput;
|
|
176
|
+
orderBy?: Prisma.FileAssetOrderByWithAggregationInput | Prisma.FileAssetOrderByWithAggregationInput[];
|
|
177
|
+
by: Prisma.FileAssetScalarFieldEnum[] | Prisma.FileAssetScalarFieldEnum;
|
|
178
|
+
having?: Prisma.FileAssetScalarWhereWithAggregatesInput;
|
|
179
|
+
take?: number;
|
|
180
|
+
skip?: number;
|
|
181
|
+
_count?: FileAssetCountAggregateInputType | true;
|
|
182
|
+
_avg?: FileAssetAvgAggregateInputType;
|
|
183
|
+
_sum?: FileAssetSumAggregateInputType;
|
|
184
|
+
_min?: FileAssetMinAggregateInputType;
|
|
185
|
+
_max?: FileAssetMaxAggregateInputType;
|
|
186
|
+
};
|
|
187
|
+
export type FileAssetGroupByOutputType = {
|
|
188
|
+
id: string;
|
|
189
|
+
workspaceId: string | null;
|
|
190
|
+
userId: string | null;
|
|
191
|
+
name: string;
|
|
192
|
+
mimeType: string;
|
|
193
|
+
size: number;
|
|
194
|
+
bucket: string | null;
|
|
195
|
+
objectKey: string | null;
|
|
196
|
+
url: string | null;
|
|
197
|
+
checksum: string | null;
|
|
198
|
+
meta: runtime.JsonValue | null;
|
|
199
|
+
createdAt: Date;
|
|
200
|
+
aiTranscription: runtime.JsonValue | null;
|
|
201
|
+
_count: FileAssetCountAggregateOutputType | null;
|
|
202
|
+
_avg: FileAssetAvgAggregateOutputType | null;
|
|
203
|
+
_sum: FileAssetSumAggregateOutputType | null;
|
|
204
|
+
_min: FileAssetMinAggregateOutputType | null;
|
|
205
|
+
_max: FileAssetMaxAggregateOutputType | null;
|
|
206
|
+
};
|
|
207
|
+
export type GetFileAssetGroupByPayload<T extends FileAssetGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<FileAssetGroupByOutputType, T['by']> & {
|
|
208
|
+
[P in ((keyof T) & (keyof FileAssetGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], FileAssetGroupByOutputType[P]> : Prisma.GetScalarType<T[P], FileAssetGroupByOutputType[P]>;
|
|
209
|
+
}>>;
|
|
210
|
+
export type FileAssetWhereInput = {
|
|
211
|
+
AND?: Prisma.FileAssetWhereInput | Prisma.FileAssetWhereInput[];
|
|
212
|
+
OR?: Prisma.FileAssetWhereInput[];
|
|
213
|
+
NOT?: Prisma.FileAssetWhereInput | Prisma.FileAssetWhereInput[];
|
|
214
|
+
id?: Prisma.StringFilter<"FileAsset"> | string;
|
|
215
|
+
workspaceId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
216
|
+
userId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
217
|
+
name?: Prisma.StringFilter<"FileAsset"> | string;
|
|
218
|
+
mimeType?: Prisma.StringFilter<"FileAsset"> | string;
|
|
219
|
+
size?: Prisma.IntFilter<"FileAsset"> | number;
|
|
220
|
+
bucket?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
221
|
+
objectKey?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
222
|
+
url?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
223
|
+
checksum?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
224
|
+
meta?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
225
|
+
createdAt?: Prisma.DateTimeFilter<"FileAsset"> | Date | string;
|
|
226
|
+
aiTranscription?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
227
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
228
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
|
|
229
|
+
User?: Prisma.UserListRelationFilter;
|
|
230
|
+
};
|
|
231
|
+
export type FileAssetOrderByWithRelationInput = {
|
|
232
|
+
id?: Prisma.SortOrder;
|
|
233
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
234
|
+
userId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
235
|
+
name?: Prisma.SortOrder;
|
|
236
|
+
mimeType?: Prisma.SortOrder;
|
|
237
|
+
size?: Prisma.SortOrder;
|
|
238
|
+
bucket?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
239
|
+
objectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
240
|
+
url?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
241
|
+
checksum?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
242
|
+
meta?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
243
|
+
createdAt?: Prisma.SortOrder;
|
|
244
|
+
aiTranscription?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
245
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
246
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput;
|
|
247
|
+
User?: Prisma.UserOrderByRelationAggregateInput;
|
|
248
|
+
};
|
|
249
|
+
export type FileAssetWhereUniqueInput = Prisma.AtLeast<{
|
|
250
|
+
id?: string;
|
|
251
|
+
AND?: Prisma.FileAssetWhereInput | Prisma.FileAssetWhereInput[];
|
|
252
|
+
OR?: Prisma.FileAssetWhereInput[];
|
|
253
|
+
NOT?: Prisma.FileAssetWhereInput | Prisma.FileAssetWhereInput[];
|
|
254
|
+
workspaceId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
255
|
+
userId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
256
|
+
name?: Prisma.StringFilter<"FileAsset"> | string;
|
|
257
|
+
mimeType?: Prisma.StringFilter<"FileAsset"> | string;
|
|
258
|
+
size?: Prisma.IntFilter<"FileAsset"> | number;
|
|
259
|
+
bucket?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
260
|
+
objectKey?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
261
|
+
url?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
262
|
+
checksum?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
263
|
+
meta?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
264
|
+
createdAt?: Prisma.DateTimeFilter<"FileAsset"> | Date | string;
|
|
265
|
+
aiTranscription?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
266
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
267
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
|
|
268
|
+
User?: Prisma.UserListRelationFilter;
|
|
269
|
+
}, "id">;
|
|
270
|
+
export type FileAssetOrderByWithAggregationInput = {
|
|
271
|
+
id?: Prisma.SortOrder;
|
|
272
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
273
|
+
userId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
274
|
+
name?: Prisma.SortOrder;
|
|
275
|
+
mimeType?: Prisma.SortOrder;
|
|
276
|
+
size?: Prisma.SortOrder;
|
|
277
|
+
bucket?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
278
|
+
objectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
279
|
+
url?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
280
|
+
checksum?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
281
|
+
meta?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
282
|
+
createdAt?: Prisma.SortOrder;
|
|
283
|
+
aiTranscription?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
284
|
+
_count?: Prisma.FileAssetCountOrderByAggregateInput;
|
|
285
|
+
_avg?: Prisma.FileAssetAvgOrderByAggregateInput;
|
|
286
|
+
_max?: Prisma.FileAssetMaxOrderByAggregateInput;
|
|
287
|
+
_min?: Prisma.FileAssetMinOrderByAggregateInput;
|
|
288
|
+
_sum?: Prisma.FileAssetSumOrderByAggregateInput;
|
|
289
|
+
};
|
|
290
|
+
export type FileAssetScalarWhereWithAggregatesInput = {
|
|
291
|
+
AND?: Prisma.FileAssetScalarWhereWithAggregatesInput | Prisma.FileAssetScalarWhereWithAggregatesInput[];
|
|
292
|
+
OR?: Prisma.FileAssetScalarWhereWithAggregatesInput[];
|
|
293
|
+
NOT?: Prisma.FileAssetScalarWhereWithAggregatesInput | Prisma.FileAssetScalarWhereWithAggregatesInput[];
|
|
294
|
+
id?: Prisma.StringWithAggregatesFilter<"FileAsset"> | string;
|
|
295
|
+
workspaceId?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
296
|
+
userId?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
297
|
+
name?: Prisma.StringWithAggregatesFilter<"FileAsset"> | string;
|
|
298
|
+
mimeType?: Prisma.StringWithAggregatesFilter<"FileAsset"> | string;
|
|
299
|
+
size?: Prisma.IntWithAggregatesFilter<"FileAsset"> | number;
|
|
300
|
+
bucket?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
301
|
+
objectKey?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
302
|
+
url?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
303
|
+
checksum?: Prisma.StringNullableWithAggregatesFilter<"FileAsset"> | string | null;
|
|
304
|
+
meta?: Prisma.JsonNullableWithAggregatesFilter<"FileAsset">;
|
|
305
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"FileAsset"> | Date | string;
|
|
306
|
+
aiTranscription?: Prisma.JsonNullableWithAggregatesFilter<"FileAsset">;
|
|
307
|
+
};
|
|
308
|
+
export type FileAssetCreateInput = {
|
|
309
|
+
id?: string;
|
|
310
|
+
name: string;
|
|
311
|
+
mimeType: string;
|
|
312
|
+
size: number;
|
|
313
|
+
bucket?: string | null;
|
|
314
|
+
objectKey?: string | null;
|
|
315
|
+
url?: string | null;
|
|
316
|
+
checksum?: string | null;
|
|
317
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
318
|
+
createdAt?: Date | string;
|
|
319
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
320
|
+
user?: Prisma.UserCreateNestedOneWithoutUploadsInput;
|
|
321
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutUploadsInput;
|
|
322
|
+
User?: Prisma.UserCreateNestedManyWithoutProfilePictureInput;
|
|
323
|
+
};
|
|
324
|
+
export type FileAssetUncheckedCreateInput = {
|
|
325
|
+
id?: string;
|
|
326
|
+
workspaceId?: string | null;
|
|
327
|
+
userId?: string | null;
|
|
328
|
+
name: string;
|
|
329
|
+
mimeType: string;
|
|
330
|
+
size: number;
|
|
331
|
+
bucket?: string | null;
|
|
332
|
+
objectKey?: string | null;
|
|
333
|
+
url?: string | null;
|
|
334
|
+
checksum?: string | null;
|
|
335
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
336
|
+
createdAt?: Date | string;
|
|
337
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
338
|
+
User?: Prisma.UserUncheckedCreateNestedManyWithoutProfilePictureInput;
|
|
339
|
+
};
|
|
340
|
+
export type FileAssetUpdateInput = {
|
|
341
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
343
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
344
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
345
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
346
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
348
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
349
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
350
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
351
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
352
|
+
user?: Prisma.UserUpdateOneWithoutUploadsNestedInput;
|
|
353
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutUploadsNestedInput;
|
|
354
|
+
User?: Prisma.UserUpdateManyWithoutProfilePictureNestedInput;
|
|
355
|
+
};
|
|
356
|
+
export type FileAssetUncheckedUpdateInput = {
|
|
357
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
358
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
359
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
360
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
361
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
362
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
363
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
364
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
365
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
366
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
367
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
368
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
369
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
370
|
+
User?: Prisma.UserUncheckedUpdateManyWithoutProfilePictureNestedInput;
|
|
371
|
+
};
|
|
372
|
+
export type FileAssetCreateManyInput = {
|
|
373
|
+
id?: string;
|
|
374
|
+
workspaceId?: string | null;
|
|
375
|
+
userId?: string | null;
|
|
376
|
+
name: string;
|
|
377
|
+
mimeType: string;
|
|
378
|
+
size: number;
|
|
379
|
+
bucket?: string | null;
|
|
380
|
+
objectKey?: string | null;
|
|
381
|
+
url?: string | null;
|
|
382
|
+
checksum?: string | null;
|
|
383
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
384
|
+
createdAt?: Date | string;
|
|
385
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
386
|
+
};
|
|
387
|
+
export type FileAssetUpdateManyMutationInput = {
|
|
388
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
389
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
390
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
391
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
392
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
393
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
394
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
395
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
396
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
397
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
398
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
399
|
+
};
|
|
400
|
+
export type FileAssetUncheckedUpdateManyInput = {
|
|
401
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
402
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
403
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
404
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
405
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
406
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
407
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
408
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
409
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
410
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
411
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
412
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
413
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
414
|
+
};
|
|
415
|
+
export type FileAssetListRelationFilter = {
|
|
416
|
+
every?: Prisma.FileAssetWhereInput;
|
|
417
|
+
some?: Prisma.FileAssetWhereInput;
|
|
418
|
+
none?: Prisma.FileAssetWhereInput;
|
|
419
|
+
};
|
|
420
|
+
export type FileAssetNullableScalarRelationFilter = {
|
|
421
|
+
is?: Prisma.FileAssetWhereInput | null;
|
|
422
|
+
isNot?: Prisma.FileAssetWhereInput | null;
|
|
423
|
+
};
|
|
424
|
+
export type FileAssetOrderByRelationAggregateInput = {
|
|
425
|
+
_count?: Prisma.SortOrder;
|
|
426
|
+
};
|
|
427
|
+
export type FileAssetCountOrderByAggregateInput = {
|
|
428
|
+
id?: Prisma.SortOrder;
|
|
429
|
+
workspaceId?: Prisma.SortOrder;
|
|
430
|
+
userId?: Prisma.SortOrder;
|
|
431
|
+
name?: Prisma.SortOrder;
|
|
432
|
+
mimeType?: Prisma.SortOrder;
|
|
433
|
+
size?: Prisma.SortOrder;
|
|
434
|
+
bucket?: Prisma.SortOrder;
|
|
435
|
+
objectKey?: Prisma.SortOrder;
|
|
436
|
+
url?: Prisma.SortOrder;
|
|
437
|
+
checksum?: Prisma.SortOrder;
|
|
438
|
+
meta?: Prisma.SortOrder;
|
|
439
|
+
createdAt?: Prisma.SortOrder;
|
|
440
|
+
aiTranscription?: Prisma.SortOrder;
|
|
441
|
+
};
|
|
442
|
+
export type FileAssetAvgOrderByAggregateInput = {
|
|
443
|
+
size?: Prisma.SortOrder;
|
|
444
|
+
};
|
|
445
|
+
export type FileAssetMaxOrderByAggregateInput = {
|
|
446
|
+
id?: Prisma.SortOrder;
|
|
447
|
+
workspaceId?: Prisma.SortOrder;
|
|
448
|
+
userId?: Prisma.SortOrder;
|
|
449
|
+
name?: Prisma.SortOrder;
|
|
450
|
+
mimeType?: Prisma.SortOrder;
|
|
451
|
+
size?: Prisma.SortOrder;
|
|
452
|
+
bucket?: Prisma.SortOrder;
|
|
453
|
+
objectKey?: Prisma.SortOrder;
|
|
454
|
+
url?: Prisma.SortOrder;
|
|
455
|
+
checksum?: Prisma.SortOrder;
|
|
456
|
+
createdAt?: Prisma.SortOrder;
|
|
457
|
+
};
|
|
458
|
+
export type FileAssetMinOrderByAggregateInput = {
|
|
459
|
+
id?: Prisma.SortOrder;
|
|
460
|
+
workspaceId?: Prisma.SortOrder;
|
|
461
|
+
userId?: Prisma.SortOrder;
|
|
462
|
+
name?: Prisma.SortOrder;
|
|
463
|
+
mimeType?: Prisma.SortOrder;
|
|
464
|
+
size?: Prisma.SortOrder;
|
|
465
|
+
bucket?: Prisma.SortOrder;
|
|
466
|
+
objectKey?: Prisma.SortOrder;
|
|
467
|
+
url?: Prisma.SortOrder;
|
|
468
|
+
checksum?: Prisma.SortOrder;
|
|
469
|
+
createdAt?: Prisma.SortOrder;
|
|
470
|
+
};
|
|
471
|
+
export type FileAssetSumOrderByAggregateInput = {
|
|
472
|
+
size?: Prisma.SortOrder;
|
|
473
|
+
};
|
|
474
|
+
export type FileAssetCreateNestedManyWithoutUserInput = {
|
|
475
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput> | Prisma.FileAssetCreateWithoutUserInput[] | Prisma.FileAssetUncheckedCreateWithoutUserInput[];
|
|
476
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput | Prisma.FileAssetCreateOrConnectWithoutUserInput[];
|
|
477
|
+
createMany?: Prisma.FileAssetCreateManyUserInputEnvelope;
|
|
478
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
479
|
+
};
|
|
480
|
+
export type FileAssetCreateNestedOneWithoutUserInput = {
|
|
481
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput>;
|
|
482
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput;
|
|
483
|
+
connect?: Prisma.FileAssetWhereUniqueInput;
|
|
484
|
+
};
|
|
485
|
+
export type FileAssetUncheckedCreateNestedManyWithoutUserInput = {
|
|
486
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput> | Prisma.FileAssetCreateWithoutUserInput[] | Prisma.FileAssetUncheckedCreateWithoutUserInput[];
|
|
487
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput | Prisma.FileAssetCreateOrConnectWithoutUserInput[];
|
|
488
|
+
createMany?: Prisma.FileAssetCreateManyUserInputEnvelope;
|
|
489
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
490
|
+
};
|
|
491
|
+
export type FileAssetUpdateManyWithoutUserNestedInput = {
|
|
492
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput> | Prisma.FileAssetCreateWithoutUserInput[] | Prisma.FileAssetUncheckedCreateWithoutUserInput[];
|
|
493
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput | Prisma.FileAssetCreateOrConnectWithoutUserInput[];
|
|
494
|
+
upsert?: Prisma.FileAssetUpsertWithWhereUniqueWithoutUserInput | Prisma.FileAssetUpsertWithWhereUniqueWithoutUserInput[];
|
|
495
|
+
createMany?: Prisma.FileAssetCreateManyUserInputEnvelope;
|
|
496
|
+
set?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
497
|
+
disconnect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
498
|
+
delete?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
499
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
500
|
+
update?: Prisma.FileAssetUpdateWithWhereUniqueWithoutUserInput | Prisma.FileAssetUpdateWithWhereUniqueWithoutUserInput[];
|
|
501
|
+
updateMany?: Prisma.FileAssetUpdateManyWithWhereWithoutUserInput | Prisma.FileAssetUpdateManyWithWhereWithoutUserInput[];
|
|
502
|
+
deleteMany?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
503
|
+
};
|
|
504
|
+
export type FileAssetUpdateOneWithoutUserNestedInput = {
|
|
505
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput>;
|
|
506
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput;
|
|
507
|
+
upsert?: Prisma.FileAssetUpsertWithoutUserInput;
|
|
508
|
+
disconnect?: Prisma.FileAssetWhereInput | boolean;
|
|
509
|
+
delete?: Prisma.FileAssetWhereInput | boolean;
|
|
510
|
+
connect?: Prisma.FileAssetWhereUniqueInput;
|
|
511
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.FileAssetUpdateToOneWithWhereWithoutUserInput, Prisma.FileAssetUpdateWithoutUserInput>, Prisma.FileAssetUncheckedUpdateWithoutUserInput>;
|
|
512
|
+
};
|
|
513
|
+
export type FileAssetUncheckedUpdateManyWithoutUserNestedInput = {
|
|
514
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput> | Prisma.FileAssetCreateWithoutUserInput[] | Prisma.FileAssetUncheckedCreateWithoutUserInput[];
|
|
515
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutUserInput | Prisma.FileAssetCreateOrConnectWithoutUserInput[];
|
|
516
|
+
upsert?: Prisma.FileAssetUpsertWithWhereUniqueWithoutUserInput | Prisma.FileAssetUpsertWithWhereUniqueWithoutUserInput[];
|
|
517
|
+
createMany?: Prisma.FileAssetCreateManyUserInputEnvelope;
|
|
518
|
+
set?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
519
|
+
disconnect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
520
|
+
delete?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
521
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
522
|
+
update?: Prisma.FileAssetUpdateWithWhereUniqueWithoutUserInput | Prisma.FileAssetUpdateWithWhereUniqueWithoutUserInput[];
|
|
523
|
+
updateMany?: Prisma.FileAssetUpdateManyWithWhereWithoutUserInput | Prisma.FileAssetUpdateManyWithWhereWithoutUserInput[];
|
|
524
|
+
deleteMany?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
525
|
+
};
|
|
526
|
+
export type FileAssetCreateNestedManyWithoutWorkspaceInput = {
|
|
527
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput> | Prisma.FileAssetCreateWithoutWorkspaceInput[] | Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput[];
|
|
528
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput | Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput[];
|
|
529
|
+
createMany?: Prisma.FileAssetCreateManyWorkspaceInputEnvelope;
|
|
530
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
531
|
+
};
|
|
532
|
+
export type FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
533
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput> | Prisma.FileAssetCreateWithoutWorkspaceInput[] | Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput[];
|
|
534
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput | Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput[];
|
|
535
|
+
createMany?: Prisma.FileAssetCreateManyWorkspaceInputEnvelope;
|
|
536
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
537
|
+
};
|
|
538
|
+
export type FileAssetUpdateManyWithoutWorkspaceNestedInput = {
|
|
539
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput> | Prisma.FileAssetCreateWithoutWorkspaceInput[] | Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput[];
|
|
540
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput | Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput[];
|
|
541
|
+
upsert?: Prisma.FileAssetUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.FileAssetUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
542
|
+
createMany?: Prisma.FileAssetCreateManyWorkspaceInputEnvelope;
|
|
543
|
+
set?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
544
|
+
disconnect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
545
|
+
delete?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
546
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
547
|
+
update?: Prisma.FileAssetUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.FileAssetUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
548
|
+
updateMany?: Prisma.FileAssetUpdateManyWithWhereWithoutWorkspaceInput | Prisma.FileAssetUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
549
|
+
deleteMany?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
550
|
+
};
|
|
551
|
+
export type FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
552
|
+
create?: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput> | Prisma.FileAssetCreateWithoutWorkspaceInput[] | Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput[];
|
|
553
|
+
connectOrCreate?: Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput | Prisma.FileAssetCreateOrConnectWithoutWorkspaceInput[];
|
|
554
|
+
upsert?: Prisma.FileAssetUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.FileAssetUpsertWithWhereUniqueWithoutWorkspaceInput[];
|
|
555
|
+
createMany?: Prisma.FileAssetCreateManyWorkspaceInputEnvelope;
|
|
556
|
+
set?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
557
|
+
disconnect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
558
|
+
delete?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
559
|
+
connect?: Prisma.FileAssetWhereUniqueInput | Prisma.FileAssetWhereUniqueInput[];
|
|
560
|
+
update?: Prisma.FileAssetUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.FileAssetUpdateWithWhereUniqueWithoutWorkspaceInput[];
|
|
561
|
+
updateMany?: Prisma.FileAssetUpdateManyWithWhereWithoutWorkspaceInput | Prisma.FileAssetUpdateManyWithWhereWithoutWorkspaceInput[];
|
|
562
|
+
deleteMany?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
563
|
+
};
|
|
564
|
+
export type IntFieldUpdateOperationsInput = {
|
|
565
|
+
set?: number;
|
|
566
|
+
increment?: number;
|
|
567
|
+
decrement?: number;
|
|
568
|
+
multiply?: number;
|
|
569
|
+
divide?: number;
|
|
570
|
+
};
|
|
571
|
+
export type FileAssetCreateWithoutUserInput = {
|
|
572
|
+
id?: string;
|
|
573
|
+
name: string;
|
|
574
|
+
mimeType: string;
|
|
575
|
+
size: number;
|
|
576
|
+
bucket?: string | null;
|
|
577
|
+
objectKey?: string | null;
|
|
578
|
+
url?: string | null;
|
|
579
|
+
checksum?: string | null;
|
|
580
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
581
|
+
createdAt?: Date | string;
|
|
582
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
583
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutUploadsInput;
|
|
584
|
+
User?: Prisma.UserCreateNestedManyWithoutProfilePictureInput;
|
|
585
|
+
};
|
|
586
|
+
export type FileAssetUncheckedCreateWithoutUserInput = {
|
|
587
|
+
id?: string;
|
|
588
|
+
workspaceId?: string | null;
|
|
589
|
+
name: string;
|
|
590
|
+
mimeType: string;
|
|
591
|
+
size: number;
|
|
592
|
+
bucket?: string | null;
|
|
593
|
+
objectKey?: string | null;
|
|
594
|
+
url?: string | null;
|
|
595
|
+
checksum?: string | null;
|
|
596
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
597
|
+
createdAt?: Date | string;
|
|
598
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
599
|
+
User?: Prisma.UserUncheckedCreateNestedManyWithoutProfilePictureInput;
|
|
600
|
+
};
|
|
601
|
+
export type FileAssetCreateOrConnectWithoutUserInput = {
|
|
602
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
603
|
+
create: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput>;
|
|
604
|
+
};
|
|
605
|
+
export type FileAssetCreateManyUserInputEnvelope = {
|
|
606
|
+
data: Prisma.FileAssetCreateManyUserInput | Prisma.FileAssetCreateManyUserInput[];
|
|
607
|
+
skipDuplicates?: boolean;
|
|
608
|
+
};
|
|
609
|
+
export type FileAssetCreateWithoutUserInput = {
|
|
610
|
+
id?: string;
|
|
611
|
+
name: string;
|
|
612
|
+
mimeType: string;
|
|
613
|
+
size: number;
|
|
614
|
+
bucket?: string | null;
|
|
615
|
+
objectKey?: string | null;
|
|
616
|
+
url?: string | null;
|
|
617
|
+
checksum?: string | null;
|
|
618
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
619
|
+
createdAt?: Date | string;
|
|
620
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
621
|
+
user?: Prisma.UserCreateNestedOneWithoutUploadsInput;
|
|
622
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutUploadsInput;
|
|
623
|
+
};
|
|
624
|
+
export type FileAssetUncheckedCreateWithoutUserInput = {
|
|
625
|
+
id?: string;
|
|
626
|
+
workspaceId?: string | null;
|
|
627
|
+
userId?: string | null;
|
|
628
|
+
name: string;
|
|
629
|
+
mimeType: string;
|
|
630
|
+
size: number;
|
|
631
|
+
bucket?: string | null;
|
|
632
|
+
objectKey?: string | null;
|
|
633
|
+
url?: string | null;
|
|
634
|
+
checksum?: string | null;
|
|
635
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
636
|
+
createdAt?: Date | string;
|
|
637
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
638
|
+
};
|
|
639
|
+
export type FileAssetUpsertWithWhereUniqueWithoutUserInput = {
|
|
640
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
641
|
+
update: Prisma.XOR<Prisma.FileAssetUpdateWithoutUserInput, Prisma.FileAssetUncheckedUpdateWithoutUserInput>;
|
|
642
|
+
create: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput>;
|
|
643
|
+
};
|
|
644
|
+
export type FileAssetUpdateWithWhereUniqueWithoutUserInput = {
|
|
645
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
646
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateWithoutUserInput, Prisma.FileAssetUncheckedUpdateWithoutUserInput>;
|
|
647
|
+
};
|
|
648
|
+
export type FileAssetUpdateManyWithWhereWithoutUserInput = {
|
|
649
|
+
where: Prisma.FileAssetScalarWhereInput;
|
|
650
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateManyMutationInput, Prisma.FileAssetUncheckedUpdateManyWithoutUserInput>;
|
|
651
|
+
};
|
|
652
|
+
export type FileAssetScalarWhereInput = {
|
|
653
|
+
AND?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
654
|
+
OR?: Prisma.FileAssetScalarWhereInput[];
|
|
655
|
+
NOT?: Prisma.FileAssetScalarWhereInput | Prisma.FileAssetScalarWhereInput[];
|
|
656
|
+
id?: Prisma.StringFilter<"FileAsset"> | string;
|
|
657
|
+
workspaceId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
658
|
+
userId?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
659
|
+
name?: Prisma.StringFilter<"FileAsset"> | string;
|
|
660
|
+
mimeType?: Prisma.StringFilter<"FileAsset"> | string;
|
|
661
|
+
size?: Prisma.IntFilter<"FileAsset"> | number;
|
|
662
|
+
bucket?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
663
|
+
objectKey?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
664
|
+
url?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
665
|
+
checksum?: Prisma.StringNullableFilter<"FileAsset"> | string | null;
|
|
666
|
+
meta?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
667
|
+
createdAt?: Prisma.DateTimeFilter<"FileAsset"> | Date | string;
|
|
668
|
+
aiTranscription?: Prisma.JsonNullableFilter<"FileAsset">;
|
|
669
|
+
};
|
|
670
|
+
export type FileAssetUpsertWithoutUserInput = {
|
|
671
|
+
update: Prisma.XOR<Prisma.FileAssetUpdateWithoutUserInput, Prisma.FileAssetUncheckedUpdateWithoutUserInput>;
|
|
672
|
+
create: Prisma.XOR<Prisma.FileAssetCreateWithoutUserInput, Prisma.FileAssetUncheckedCreateWithoutUserInput>;
|
|
673
|
+
where?: Prisma.FileAssetWhereInput;
|
|
674
|
+
};
|
|
675
|
+
export type FileAssetUpdateToOneWithWhereWithoutUserInput = {
|
|
676
|
+
where?: Prisma.FileAssetWhereInput;
|
|
677
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateWithoutUserInput, Prisma.FileAssetUncheckedUpdateWithoutUserInput>;
|
|
678
|
+
};
|
|
679
|
+
export type FileAssetUpdateWithoutUserInput = {
|
|
680
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
681
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
682
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
683
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
684
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
685
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
686
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
687
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
688
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
689
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
690
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
691
|
+
user?: Prisma.UserUpdateOneWithoutUploadsNestedInput;
|
|
692
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutUploadsNestedInput;
|
|
693
|
+
};
|
|
694
|
+
export type FileAssetUncheckedUpdateWithoutUserInput = {
|
|
695
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
696
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
697
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
698
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
699
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
700
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
701
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
702
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
703
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
704
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
705
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
706
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
707
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
708
|
+
};
|
|
709
|
+
export type FileAssetCreateWithoutWorkspaceInput = {
|
|
710
|
+
id?: string;
|
|
711
|
+
name: string;
|
|
712
|
+
mimeType: string;
|
|
713
|
+
size: number;
|
|
714
|
+
bucket?: string | null;
|
|
715
|
+
objectKey?: string | null;
|
|
716
|
+
url?: string | null;
|
|
717
|
+
checksum?: string | null;
|
|
718
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
719
|
+
createdAt?: Date | string;
|
|
720
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
721
|
+
user?: Prisma.UserCreateNestedOneWithoutUploadsInput;
|
|
722
|
+
User?: Prisma.UserCreateNestedManyWithoutProfilePictureInput;
|
|
723
|
+
};
|
|
724
|
+
export type FileAssetUncheckedCreateWithoutWorkspaceInput = {
|
|
725
|
+
id?: string;
|
|
726
|
+
userId?: string | null;
|
|
727
|
+
name: string;
|
|
728
|
+
mimeType: string;
|
|
729
|
+
size: number;
|
|
730
|
+
bucket?: string | null;
|
|
731
|
+
objectKey?: string | null;
|
|
732
|
+
url?: string | null;
|
|
733
|
+
checksum?: string | null;
|
|
734
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
735
|
+
createdAt?: Date | string;
|
|
736
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
737
|
+
User?: Prisma.UserUncheckedCreateNestedManyWithoutProfilePictureInput;
|
|
738
|
+
};
|
|
739
|
+
export type FileAssetCreateOrConnectWithoutWorkspaceInput = {
|
|
740
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
741
|
+
create: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput>;
|
|
742
|
+
};
|
|
743
|
+
export type FileAssetCreateManyWorkspaceInputEnvelope = {
|
|
744
|
+
data: Prisma.FileAssetCreateManyWorkspaceInput | Prisma.FileAssetCreateManyWorkspaceInput[];
|
|
745
|
+
skipDuplicates?: boolean;
|
|
746
|
+
};
|
|
747
|
+
export type FileAssetUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
748
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
749
|
+
update: Prisma.XOR<Prisma.FileAssetUpdateWithoutWorkspaceInput, Prisma.FileAssetUncheckedUpdateWithoutWorkspaceInput>;
|
|
750
|
+
create: Prisma.XOR<Prisma.FileAssetCreateWithoutWorkspaceInput, Prisma.FileAssetUncheckedCreateWithoutWorkspaceInput>;
|
|
751
|
+
};
|
|
752
|
+
export type FileAssetUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
753
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
754
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateWithoutWorkspaceInput, Prisma.FileAssetUncheckedUpdateWithoutWorkspaceInput>;
|
|
755
|
+
};
|
|
756
|
+
export type FileAssetUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
757
|
+
where: Prisma.FileAssetScalarWhereInput;
|
|
758
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateManyMutationInput, Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceInput>;
|
|
759
|
+
};
|
|
760
|
+
export type FileAssetCreateManyUserInput = {
|
|
761
|
+
id?: string;
|
|
762
|
+
workspaceId?: string | null;
|
|
763
|
+
name: string;
|
|
764
|
+
mimeType: string;
|
|
765
|
+
size: number;
|
|
766
|
+
bucket?: string | null;
|
|
767
|
+
objectKey?: string | null;
|
|
768
|
+
url?: string | null;
|
|
769
|
+
checksum?: string | null;
|
|
770
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
771
|
+
createdAt?: Date | string;
|
|
772
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
773
|
+
};
|
|
774
|
+
export type FileAssetUpdateWithoutUserInput = {
|
|
775
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
776
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
777
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
778
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
779
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
780
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
781
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
782
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
783
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
784
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
785
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
786
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutUploadsNestedInput;
|
|
787
|
+
User?: Prisma.UserUpdateManyWithoutProfilePictureNestedInput;
|
|
788
|
+
};
|
|
789
|
+
export type FileAssetUncheckedUpdateWithoutUserInput = {
|
|
790
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
791
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
792
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
793
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
794
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
795
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
796
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
797
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
798
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
799
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
800
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
801
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
802
|
+
User?: Prisma.UserUncheckedUpdateManyWithoutProfilePictureNestedInput;
|
|
803
|
+
};
|
|
804
|
+
export type FileAssetUncheckedUpdateManyWithoutUserInput = {
|
|
805
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
806
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
807
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
808
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
809
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
810
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
811
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
812
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
813
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
814
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
815
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
816
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
817
|
+
};
|
|
818
|
+
export type FileAssetCreateManyWorkspaceInput = {
|
|
819
|
+
id?: string;
|
|
820
|
+
userId?: string | null;
|
|
821
|
+
name: string;
|
|
822
|
+
mimeType: string;
|
|
823
|
+
size: number;
|
|
824
|
+
bucket?: string | null;
|
|
825
|
+
objectKey?: string | null;
|
|
826
|
+
url?: string | null;
|
|
827
|
+
checksum?: string | null;
|
|
828
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
829
|
+
createdAt?: Date | string;
|
|
830
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
831
|
+
};
|
|
832
|
+
export type FileAssetUpdateWithoutWorkspaceInput = {
|
|
833
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
834
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
835
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
836
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
837
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
838
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
839
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
840
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
841
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
842
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
843
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
844
|
+
user?: Prisma.UserUpdateOneWithoutUploadsNestedInput;
|
|
845
|
+
User?: Prisma.UserUpdateManyWithoutProfilePictureNestedInput;
|
|
846
|
+
};
|
|
847
|
+
export type FileAssetUncheckedUpdateWithoutWorkspaceInput = {
|
|
848
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
849
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
850
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
851
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
852
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
853
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
854
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
855
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
856
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
857
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
858
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
859
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
860
|
+
User?: Prisma.UserUncheckedUpdateManyWithoutProfilePictureNestedInput;
|
|
861
|
+
};
|
|
862
|
+
export type FileAssetUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
863
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
864
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
865
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
866
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
867
|
+
size?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
868
|
+
bucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
869
|
+
objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
870
|
+
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
871
|
+
checksum?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
872
|
+
meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
873
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
874
|
+
aiTranscription?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Count Type FileAssetCountOutputType
|
|
878
|
+
*/
|
|
879
|
+
export type FileAssetCountOutputType = {
|
|
880
|
+
User: number;
|
|
881
|
+
};
|
|
882
|
+
export type FileAssetCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
883
|
+
User?: boolean | FileAssetCountOutputTypeCountUserArgs;
|
|
884
|
+
};
|
|
885
|
+
/**
|
|
886
|
+
* FileAssetCountOutputType without action
|
|
887
|
+
*/
|
|
888
|
+
export type FileAssetCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
889
|
+
/**
|
|
890
|
+
* Select specific fields to fetch from the FileAssetCountOutputType
|
|
891
|
+
*/
|
|
892
|
+
select?: Prisma.FileAssetCountOutputTypeSelect<ExtArgs> | null;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* FileAssetCountOutputType without action
|
|
896
|
+
*/
|
|
897
|
+
export type FileAssetCountOutputTypeCountUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
898
|
+
where?: Prisma.UserWhereInput;
|
|
899
|
+
};
|
|
900
|
+
export type FileAssetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
901
|
+
id?: boolean;
|
|
902
|
+
workspaceId?: boolean;
|
|
903
|
+
userId?: boolean;
|
|
904
|
+
name?: boolean;
|
|
905
|
+
mimeType?: boolean;
|
|
906
|
+
size?: boolean;
|
|
907
|
+
bucket?: boolean;
|
|
908
|
+
objectKey?: boolean;
|
|
909
|
+
url?: boolean;
|
|
910
|
+
checksum?: boolean;
|
|
911
|
+
meta?: boolean;
|
|
912
|
+
createdAt?: boolean;
|
|
913
|
+
aiTranscription?: boolean;
|
|
914
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
915
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
916
|
+
User?: boolean | Prisma.FileAsset$UserArgs<ExtArgs>;
|
|
917
|
+
_count?: boolean | Prisma.FileAssetCountOutputTypeDefaultArgs<ExtArgs>;
|
|
918
|
+
}, ExtArgs["result"]["fileAsset"]>;
|
|
919
|
+
export type FileAssetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
920
|
+
id?: boolean;
|
|
921
|
+
workspaceId?: boolean;
|
|
922
|
+
userId?: boolean;
|
|
923
|
+
name?: boolean;
|
|
924
|
+
mimeType?: boolean;
|
|
925
|
+
size?: boolean;
|
|
926
|
+
bucket?: boolean;
|
|
927
|
+
objectKey?: boolean;
|
|
928
|
+
url?: boolean;
|
|
929
|
+
checksum?: boolean;
|
|
930
|
+
meta?: boolean;
|
|
931
|
+
createdAt?: boolean;
|
|
932
|
+
aiTranscription?: boolean;
|
|
933
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
934
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
935
|
+
}, ExtArgs["result"]["fileAsset"]>;
|
|
936
|
+
export type FileAssetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
937
|
+
id?: boolean;
|
|
938
|
+
workspaceId?: boolean;
|
|
939
|
+
userId?: boolean;
|
|
940
|
+
name?: boolean;
|
|
941
|
+
mimeType?: boolean;
|
|
942
|
+
size?: boolean;
|
|
943
|
+
bucket?: boolean;
|
|
944
|
+
objectKey?: boolean;
|
|
945
|
+
url?: boolean;
|
|
946
|
+
checksum?: boolean;
|
|
947
|
+
meta?: boolean;
|
|
948
|
+
createdAt?: boolean;
|
|
949
|
+
aiTranscription?: boolean;
|
|
950
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
951
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
952
|
+
}, ExtArgs["result"]["fileAsset"]>;
|
|
953
|
+
export type FileAssetSelectScalar = {
|
|
954
|
+
id?: boolean;
|
|
955
|
+
workspaceId?: boolean;
|
|
956
|
+
userId?: boolean;
|
|
957
|
+
name?: boolean;
|
|
958
|
+
mimeType?: boolean;
|
|
959
|
+
size?: boolean;
|
|
960
|
+
bucket?: boolean;
|
|
961
|
+
objectKey?: boolean;
|
|
962
|
+
url?: boolean;
|
|
963
|
+
checksum?: boolean;
|
|
964
|
+
meta?: boolean;
|
|
965
|
+
createdAt?: boolean;
|
|
966
|
+
aiTranscription?: boolean;
|
|
967
|
+
};
|
|
968
|
+
export type FileAssetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "userId" | "name" | "mimeType" | "size" | "bucket" | "objectKey" | "url" | "checksum" | "meta" | "createdAt" | "aiTranscription", ExtArgs["result"]["fileAsset"]>;
|
|
969
|
+
export type FileAssetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
970
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
971
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
972
|
+
User?: boolean | Prisma.FileAsset$UserArgs<ExtArgs>;
|
|
973
|
+
_count?: boolean | Prisma.FileAssetCountOutputTypeDefaultArgs<ExtArgs>;
|
|
974
|
+
};
|
|
975
|
+
export type FileAssetIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
976
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
977
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
978
|
+
};
|
|
979
|
+
export type FileAssetIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
980
|
+
user?: boolean | Prisma.FileAsset$userArgs<ExtArgs>;
|
|
981
|
+
workspace?: boolean | Prisma.FileAsset$workspaceArgs<ExtArgs>;
|
|
982
|
+
};
|
|
983
|
+
export type $FileAssetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
984
|
+
name: "FileAsset";
|
|
985
|
+
objects: {
|
|
986
|
+
user: Prisma.$UserPayload<ExtArgs> | null;
|
|
987
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs> | null;
|
|
988
|
+
User: Prisma.$UserPayload<ExtArgs>[];
|
|
989
|
+
};
|
|
990
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
991
|
+
id: string;
|
|
992
|
+
workspaceId: string | null;
|
|
993
|
+
userId: string | null;
|
|
994
|
+
name: string;
|
|
995
|
+
mimeType: string;
|
|
996
|
+
size: number;
|
|
997
|
+
bucket: string | null;
|
|
998
|
+
objectKey: string | null;
|
|
999
|
+
url: string | null;
|
|
1000
|
+
checksum: string | null;
|
|
1001
|
+
meta: runtime.JsonValue | null;
|
|
1002
|
+
createdAt: Date;
|
|
1003
|
+
aiTranscription: runtime.JsonValue | null;
|
|
1004
|
+
}, ExtArgs["result"]["fileAsset"]>;
|
|
1005
|
+
composites: {};
|
|
1006
|
+
};
|
|
1007
|
+
export type FileAssetGetPayload<S extends boolean | null | undefined | FileAssetDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileAssetPayload, S>;
|
|
1008
|
+
export type FileAssetCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<FileAssetFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1009
|
+
select?: FileAssetCountAggregateInputType | true;
|
|
1010
|
+
};
|
|
1011
|
+
export interface FileAssetDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1012
|
+
[K: symbol]: {
|
|
1013
|
+
types: Prisma.TypeMap<ExtArgs>['model']['FileAsset'];
|
|
1014
|
+
meta: {
|
|
1015
|
+
name: 'FileAsset';
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Find zero or one FileAsset that matches the filter.
|
|
1020
|
+
* @param {FileAssetFindUniqueArgs} args - Arguments to find a FileAsset
|
|
1021
|
+
* @example
|
|
1022
|
+
* // Get one FileAsset
|
|
1023
|
+
* const fileAsset = await prisma.fileAsset.findUnique({
|
|
1024
|
+
* where: {
|
|
1025
|
+
* // ... provide filter here
|
|
1026
|
+
* }
|
|
1027
|
+
* })
|
|
1028
|
+
*/
|
|
1029
|
+
findUnique<T extends FileAssetFindUniqueArgs>(args: Prisma.SelectSubset<T, FileAssetFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Find one FileAsset that matches the filter or throw an error with `error.code='P2025'`
|
|
1032
|
+
* if no matches were found.
|
|
1033
|
+
* @param {FileAssetFindUniqueOrThrowArgs} args - Arguments to find a FileAsset
|
|
1034
|
+
* @example
|
|
1035
|
+
* // Get one FileAsset
|
|
1036
|
+
* const fileAsset = await prisma.fileAsset.findUniqueOrThrow({
|
|
1037
|
+
* where: {
|
|
1038
|
+
* // ... provide filter here
|
|
1039
|
+
* }
|
|
1040
|
+
* })
|
|
1041
|
+
*/
|
|
1042
|
+
findUniqueOrThrow<T extends FileAssetFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileAssetFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Find the first FileAsset that matches the filter.
|
|
1045
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1046
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1047
|
+
* @param {FileAssetFindFirstArgs} args - Arguments to find a FileAsset
|
|
1048
|
+
* @example
|
|
1049
|
+
* // Get one FileAsset
|
|
1050
|
+
* const fileAsset = await prisma.fileAsset.findFirst({
|
|
1051
|
+
* where: {
|
|
1052
|
+
* // ... provide filter here
|
|
1053
|
+
* }
|
|
1054
|
+
* })
|
|
1055
|
+
*/
|
|
1056
|
+
findFirst<T extends FileAssetFindFirstArgs>(args?: Prisma.SelectSubset<T, FileAssetFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Find the first FileAsset that matches the filter or
|
|
1059
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1060
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1061
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1062
|
+
* @param {FileAssetFindFirstOrThrowArgs} args - Arguments to find a FileAsset
|
|
1063
|
+
* @example
|
|
1064
|
+
* // Get one FileAsset
|
|
1065
|
+
* const fileAsset = await prisma.fileAsset.findFirstOrThrow({
|
|
1066
|
+
* where: {
|
|
1067
|
+
* // ... provide filter here
|
|
1068
|
+
* }
|
|
1069
|
+
* })
|
|
1070
|
+
*/
|
|
1071
|
+
findFirstOrThrow<T extends FileAssetFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileAssetFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Find zero or more FileAssets that matches the filter.
|
|
1074
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1075
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1076
|
+
* @param {FileAssetFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1077
|
+
* @example
|
|
1078
|
+
* // Get all FileAssets
|
|
1079
|
+
* const fileAssets = await prisma.fileAsset.findMany()
|
|
1080
|
+
*
|
|
1081
|
+
* // Get first 10 FileAssets
|
|
1082
|
+
* const fileAssets = await prisma.fileAsset.findMany({ take: 10 })
|
|
1083
|
+
*
|
|
1084
|
+
* // Only select the `id`
|
|
1085
|
+
* const fileAssetWithIdOnly = await prisma.fileAsset.findMany({ select: { id: true } })
|
|
1086
|
+
*
|
|
1087
|
+
*/
|
|
1088
|
+
findMany<T extends FileAssetFindManyArgs>(args?: Prisma.SelectSubset<T, FileAssetFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Create a FileAsset.
|
|
1091
|
+
* @param {FileAssetCreateArgs} args - Arguments to create a FileAsset.
|
|
1092
|
+
* @example
|
|
1093
|
+
* // Create one FileAsset
|
|
1094
|
+
* const FileAsset = await prisma.fileAsset.create({
|
|
1095
|
+
* data: {
|
|
1096
|
+
* // ... data to create a FileAsset
|
|
1097
|
+
* }
|
|
1098
|
+
* })
|
|
1099
|
+
*
|
|
1100
|
+
*/
|
|
1101
|
+
create<T extends FileAssetCreateArgs>(args: Prisma.SelectSubset<T, FileAssetCreateArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1102
|
+
/**
|
|
1103
|
+
* Create many FileAssets.
|
|
1104
|
+
* @param {FileAssetCreateManyArgs} args - Arguments to create many FileAssets.
|
|
1105
|
+
* @example
|
|
1106
|
+
* // Create many FileAssets
|
|
1107
|
+
* const fileAsset = await prisma.fileAsset.createMany({
|
|
1108
|
+
* data: [
|
|
1109
|
+
* // ... provide data here
|
|
1110
|
+
* ]
|
|
1111
|
+
* })
|
|
1112
|
+
*
|
|
1113
|
+
*/
|
|
1114
|
+
createMany<T extends FileAssetCreateManyArgs>(args?: Prisma.SelectSubset<T, FileAssetCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Create many FileAssets and returns the data saved in the database.
|
|
1117
|
+
* @param {FileAssetCreateManyAndReturnArgs} args - Arguments to create many FileAssets.
|
|
1118
|
+
* @example
|
|
1119
|
+
* // Create many FileAssets
|
|
1120
|
+
* const fileAsset = await prisma.fileAsset.createManyAndReturn({
|
|
1121
|
+
* data: [
|
|
1122
|
+
* // ... provide data here
|
|
1123
|
+
* ]
|
|
1124
|
+
* })
|
|
1125
|
+
*
|
|
1126
|
+
* // Create many FileAssets and only return the `id`
|
|
1127
|
+
* const fileAssetWithIdOnly = await prisma.fileAsset.createManyAndReturn({
|
|
1128
|
+
* select: { id: true },
|
|
1129
|
+
* data: [
|
|
1130
|
+
* // ... provide data here
|
|
1131
|
+
* ]
|
|
1132
|
+
* })
|
|
1133
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1134
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1135
|
+
*
|
|
1136
|
+
*/
|
|
1137
|
+
createManyAndReturn<T extends FileAssetCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileAssetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Delete a FileAsset.
|
|
1140
|
+
* @param {FileAssetDeleteArgs} args - Arguments to delete one FileAsset.
|
|
1141
|
+
* @example
|
|
1142
|
+
* // Delete one FileAsset
|
|
1143
|
+
* const FileAsset = await prisma.fileAsset.delete({
|
|
1144
|
+
* where: {
|
|
1145
|
+
* // ... filter to delete one FileAsset
|
|
1146
|
+
* }
|
|
1147
|
+
* })
|
|
1148
|
+
*
|
|
1149
|
+
*/
|
|
1150
|
+
delete<T extends FileAssetDeleteArgs>(args: Prisma.SelectSubset<T, FileAssetDeleteArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Update one FileAsset.
|
|
1153
|
+
* @param {FileAssetUpdateArgs} args - Arguments to update one FileAsset.
|
|
1154
|
+
* @example
|
|
1155
|
+
* // Update one FileAsset
|
|
1156
|
+
* const fileAsset = await prisma.fileAsset.update({
|
|
1157
|
+
* where: {
|
|
1158
|
+
* // ... provide filter here
|
|
1159
|
+
* },
|
|
1160
|
+
* data: {
|
|
1161
|
+
* // ... provide data here
|
|
1162
|
+
* }
|
|
1163
|
+
* })
|
|
1164
|
+
*
|
|
1165
|
+
*/
|
|
1166
|
+
update<T extends FileAssetUpdateArgs>(args: Prisma.SelectSubset<T, FileAssetUpdateArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Delete zero or more FileAssets.
|
|
1169
|
+
* @param {FileAssetDeleteManyArgs} args - Arguments to filter FileAssets to delete.
|
|
1170
|
+
* @example
|
|
1171
|
+
* // Delete a few FileAssets
|
|
1172
|
+
* const { count } = await prisma.fileAsset.deleteMany({
|
|
1173
|
+
* where: {
|
|
1174
|
+
* // ... provide filter here
|
|
1175
|
+
* }
|
|
1176
|
+
* })
|
|
1177
|
+
*
|
|
1178
|
+
*/
|
|
1179
|
+
deleteMany<T extends FileAssetDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileAssetDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Update zero or more FileAssets.
|
|
1182
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1183
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1184
|
+
* @param {FileAssetUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1185
|
+
* @example
|
|
1186
|
+
* // Update many FileAssets
|
|
1187
|
+
* const fileAsset = await prisma.fileAsset.updateMany({
|
|
1188
|
+
* where: {
|
|
1189
|
+
* // ... provide filter here
|
|
1190
|
+
* },
|
|
1191
|
+
* data: {
|
|
1192
|
+
* // ... provide data here
|
|
1193
|
+
* }
|
|
1194
|
+
* })
|
|
1195
|
+
*
|
|
1196
|
+
*/
|
|
1197
|
+
updateMany<T extends FileAssetUpdateManyArgs>(args: Prisma.SelectSubset<T, FileAssetUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Update zero or more FileAssets and returns the data updated in the database.
|
|
1200
|
+
* @param {FileAssetUpdateManyAndReturnArgs} args - Arguments to update many FileAssets.
|
|
1201
|
+
* @example
|
|
1202
|
+
* // Update many FileAssets
|
|
1203
|
+
* const fileAsset = await prisma.fileAsset.updateManyAndReturn({
|
|
1204
|
+
* where: {
|
|
1205
|
+
* // ... provide filter here
|
|
1206
|
+
* },
|
|
1207
|
+
* data: [
|
|
1208
|
+
* // ... provide data here
|
|
1209
|
+
* ]
|
|
1210
|
+
* })
|
|
1211
|
+
*
|
|
1212
|
+
* // Update zero or more FileAssets and only return the `id`
|
|
1213
|
+
* const fileAssetWithIdOnly = await prisma.fileAsset.updateManyAndReturn({
|
|
1214
|
+
* select: { id: true },
|
|
1215
|
+
* where: {
|
|
1216
|
+
* // ... provide filter here
|
|
1217
|
+
* },
|
|
1218
|
+
* data: [
|
|
1219
|
+
* // ... provide data here
|
|
1220
|
+
* ]
|
|
1221
|
+
* })
|
|
1222
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1223
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1224
|
+
*
|
|
1225
|
+
*/
|
|
1226
|
+
updateManyAndReturn<T extends FileAssetUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileAssetUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Create or update one FileAsset.
|
|
1229
|
+
* @param {FileAssetUpsertArgs} args - Arguments to update or create a FileAsset.
|
|
1230
|
+
* @example
|
|
1231
|
+
* // Update or create a FileAsset
|
|
1232
|
+
* const fileAsset = await prisma.fileAsset.upsert({
|
|
1233
|
+
* create: {
|
|
1234
|
+
* // ... data to create a FileAsset
|
|
1235
|
+
* },
|
|
1236
|
+
* update: {
|
|
1237
|
+
* // ... in case it already exists, update
|
|
1238
|
+
* },
|
|
1239
|
+
* where: {
|
|
1240
|
+
* // ... the filter for the FileAsset we want to update
|
|
1241
|
+
* }
|
|
1242
|
+
* })
|
|
1243
|
+
*/
|
|
1244
|
+
upsert<T extends FileAssetUpsertArgs>(args: Prisma.SelectSubset<T, FileAssetUpsertArgs<ExtArgs>>): Prisma.Prisma__FileAssetClient<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Count the number of FileAssets.
|
|
1247
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1248
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1249
|
+
* @param {FileAssetCountArgs} args - Arguments to filter FileAssets to count.
|
|
1250
|
+
* @example
|
|
1251
|
+
* // Count the number of FileAssets
|
|
1252
|
+
* const count = await prisma.fileAsset.count({
|
|
1253
|
+
* where: {
|
|
1254
|
+
* // ... the filter for the FileAssets we want to count
|
|
1255
|
+
* }
|
|
1256
|
+
* })
|
|
1257
|
+
**/
|
|
1258
|
+
count<T extends FileAssetCountArgs>(args?: Prisma.Subset<T, FileAssetCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], FileAssetCountAggregateOutputType> : number>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Allows you to perform aggregations operations on a FileAsset.
|
|
1261
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1262
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1263
|
+
* @param {FileAssetAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1264
|
+
* @example
|
|
1265
|
+
* // Ordered by age ascending
|
|
1266
|
+
* // Where email contains prisma.io
|
|
1267
|
+
* // Limited to the 10 users
|
|
1268
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1269
|
+
* _avg: {
|
|
1270
|
+
* age: true,
|
|
1271
|
+
* },
|
|
1272
|
+
* where: {
|
|
1273
|
+
* email: {
|
|
1274
|
+
* contains: "prisma.io",
|
|
1275
|
+
* },
|
|
1276
|
+
* },
|
|
1277
|
+
* orderBy: {
|
|
1278
|
+
* age: "asc",
|
|
1279
|
+
* },
|
|
1280
|
+
* take: 10,
|
|
1281
|
+
* })
|
|
1282
|
+
**/
|
|
1283
|
+
aggregate<T extends FileAssetAggregateArgs>(args: Prisma.Subset<T, FileAssetAggregateArgs>): Prisma.PrismaPromise<GetFileAssetAggregateType<T>>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Group by FileAsset.
|
|
1286
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1287
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1288
|
+
* @param {FileAssetGroupByArgs} args - Group by arguments.
|
|
1289
|
+
* @example
|
|
1290
|
+
* // Group by city, order by createdAt, get count
|
|
1291
|
+
* const result = await prisma.user.groupBy({
|
|
1292
|
+
* by: ['city', 'createdAt'],
|
|
1293
|
+
* orderBy: {
|
|
1294
|
+
* createdAt: true
|
|
1295
|
+
* },
|
|
1296
|
+
* _count: {
|
|
1297
|
+
* _all: true
|
|
1298
|
+
* },
|
|
1299
|
+
* })
|
|
1300
|
+
*
|
|
1301
|
+
**/
|
|
1302
|
+
groupBy<T extends FileAssetGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1303
|
+
orderBy: FileAssetGroupByArgs['orderBy'];
|
|
1304
|
+
} : {
|
|
1305
|
+
orderBy?: FileAssetGroupByArgs['orderBy'];
|
|
1306
|
+
}, 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 ? {
|
|
1307
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1308
|
+
Error,
|
|
1309
|
+
'Field ',
|
|
1310
|
+
P,
|
|
1311
|
+
` in "having" needs to be provided in "by"`
|
|
1312
|
+
];
|
|
1313
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1314
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1315
|
+
}[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 ? {} : {
|
|
1316
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1317
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1318
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1319
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, FileAssetGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileAssetGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Fields of the FileAsset model
|
|
1322
|
+
*/
|
|
1323
|
+
readonly fields: FileAssetFieldRefs;
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* The delegate class that acts as a "Promise-like" for FileAsset.
|
|
1327
|
+
* Why is this prefixed with `Prisma__`?
|
|
1328
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1329
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1330
|
+
*/
|
|
1331
|
+
export interface Prisma__FileAssetClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1332
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1333
|
+
user<T extends Prisma.FileAsset$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileAsset$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1334
|
+
workspace<T extends Prisma.FileAsset$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileAsset$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1335
|
+
User<T extends Prisma.FileAsset$UserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileAsset$UserArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1338
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1339
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1340
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1341
|
+
*/
|
|
1342
|
+
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>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1345
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1346
|
+
* @returns A Promise for the completion of the callback.
|
|
1347
|
+
*/
|
|
1348
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1351
|
+
* resolved value cannot be modified from the callback.
|
|
1352
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1353
|
+
* @returns A Promise for the completion of the callback.
|
|
1354
|
+
*/
|
|
1355
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Fields of the FileAsset model
|
|
1359
|
+
*/
|
|
1360
|
+
export interface FileAssetFieldRefs {
|
|
1361
|
+
readonly id: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1362
|
+
readonly workspaceId: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1363
|
+
readonly userId: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1364
|
+
readonly name: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1365
|
+
readonly mimeType: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1366
|
+
readonly size: Prisma.FieldRef<"FileAsset", 'Int'>;
|
|
1367
|
+
readonly bucket: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1368
|
+
readonly objectKey: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1369
|
+
readonly url: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1370
|
+
readonly checksum: Prisma.FieldRef<"FileAsset", 'String'>;
|
|
1371
|
+
readonly meta: Prisma.FieldRef<"FileAsset", 'Json'>;
|
|
1372
|
+
readonly createdAt: Prisma.FieldRef<"FileAsset", 'DateTime'>;
|
|
1373
|
+
readonly aiTranscription: Prisma.FieldRef<"FileAsset", 'Json'>;
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* FileAsset findUnique
|
|
1377
|
+
*/
|
|
1378
|
+
export type FileAssetFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1379
|
+
/**
|
|
1380
|
+
* Select specific fields to fetch from the FileAsset
|
|
1381
|
+
*/
|
|
1382
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1383
|
+
/**
|
|
1384
|
+
* Omit specific fields from the FileAsset
|
|
1385
|
+
*/
|
|
1386
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* Choose, which related nodes to fetch as well
|
|
1389
|
+
*/
|
|
1390
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1391
|
+
/**
|
|
1392
|
+
* Filter, which FileAsset to fetch.
|
|
1393
|
+
*/
|
|
1394
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
1395
|
+
};
|
|
1396
|
+
/**
|
|
1397
|
+
* FileAsset findUniqueOrThrow
|
|
1398
|
+
*/
|
|
1399
|
+
export type FileAssetFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1400
|
+
/**
|
|
1401
|
+
* Select specific fields to fetch from the FileAsset
|
|
1402
|
+
*/
|
|
1403
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1404
|
+
/**
|
|
1405
|
+
* Omit specific fields from the FileAsset
|
|
1406
|
+
*/
|
|
1407
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* Choose, which related nodes to fetch as well
|
|
1410
|
+
*/
|
|
1411
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1412
|
+
/**
|
|
1413
|
+
* Filter, which FileAsset to fetch.
|
|
1414
|
+
*/
|
|
1415
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* FileAsset findFirst
|
|
1419
|
+
*/
|
|
1420
|
+
export type FileAssetFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1421
|
+
/**
|
|
1422
|
+
* Select specific fields to fetch from the FileAsset
|
|
1423
|
+
*/
|
|
1424
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* Omit specific fields from the FileAsset
|
|
1427
|
+
*/
|
|
1428
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Choose, which related nodes to fetch as well
|
|
1431
|
+
*/
|
|
1432
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* Filter, which FileAsset to fetch.
|
|
1435
|
+
*/
|
|
1436
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1437
|
+
/**
|
|
1438
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1439
|
+
*
|
|
1440
|
+
* Determine the order of FileAssets to fetch.
|
|
1441
|
+
*/
|
|
1442
|
+
orderBy?: Prisma.FileAssetOrderByWithRelationInput | Prisma.FileAssetOrderByWithRelationInput[];
|
|
1443
|
+
/**
|
|
1444
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1445
|
+
*
|
|
1446
|
+
* Sets the position for searching for FileAssets.
|
|
1447
|
+
*/
|
|
1448
|
+
cursor?: Prisma.FileAssetWhereUniqueInput;
|
|
1449
|
+
/**
|
|
1450
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1451
|
+
*
|
|
1452
|
+
* Take `±n` FileAssets from the position of the cursor.
|
|
1453
|
+
*/
|
|
1454
|
+
take?: number;
|
|
1455
|
+
/**
|
|
1456
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1457
|
+
*
|
|
1458
|
+
* Skip the first `n` FileAssets.
|
|
1459
|
+
*/
|
|
1460
|
+
skip?: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1463
|
+
*
|
|
1464
|
+
* Filter by unique combinations of FileAssets.
|
|
1465
|
+
*/
|
|
1466
|
+
distinct?: Prisma.FileAssetScalarFieldEnum | Prisma.FileAssetScalarFieldEnum[];
|
|
1467
|
+
};
|
|
1468
|
+
/**
|
|
1469
|
+
* FileAsset findFirstOrThrow
|
|
1470
|
+
*/
|
|
1471
|
+
export type FileAssetFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1472
|
+
/**
|
|
1473
|
+
* Select specific fields to fetch from the FileAsset
|
|
1474
|
+
*/
|
|
1475
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* Omit specific fields from the FileAsset
|
|
1478
|
+
*/
|
|
1479
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1480
|
+
/**
|
|
1481
|
+
* Choose, which related nodes to fetch as well
|
|
1482
|
+
*/
|
|
1483
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Filter, which FileAsset to fetch.
|
|
1486
|
+
*/
|
|
1487
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1488
|
+
/**
|
|
1489
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1490
|
+
*
|
|
1491
|
+
* Determine the order of FileAssets to fetch.
|
|
1492
|
+
*/
|
|
1493
|
+
orderBy?: Prisma.FileAssetOrderByWithRelationInput | Prisma.FileAssetOrderByWithRelationInput[];
|
|
1494
|
+
/**
|
|
1495
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1496
|
+
*
|
|
1497
|
+
* Sets the position for searching for FileAssets.
|
|
1498
|
+
*/
|
|
1499
|
+
cursor?: Prisma.FileAssetWhereUniqueInput;
|
|
1500
|
+
/**
|
|
1501
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1502
|
+
*
|
|
1503
|
+
* Take `±n` FileAssets from the position of the cursor.
|
|
1504
|
+
*/
|
|
1505
|
+
take?: number;
|
|
1506
|
+
/**
|
|
1507
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1508
|
+
*
|
|
1509
|
+
* Skip the first `n` FileAssets.
|
|
1510
|
+
*/
|
|
1511
|
+
skip?: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1514
|
+
*
|
|
1515
|
+
* Filter by unique combinations of FileAssets.
|
|
1516
|
+
*/
|
|
1517
|
+
distinct?: Prisma.FileAssetScalarFieldEnum | Prisma.FileAssetScalarFieldEnum[];
|
|
1518
|
+
};
|
|
1519
|
+
/**
|
|
1520
|
+
* FileAsset findMany
|
|
1521
|
+
*/
|
|
1522
|
+
export type FileAssetFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1523
|
+
/**
|
|
1524
|
+
* Select specific fields to fetch from the FileAsset
|
|
1525
|
+
*/
|
|
1526
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1527
|
+
/**
|
|
1528
|
+
* Omit specific fields from the FileAsset
|
|
1529
|
+
*/
|
|
1530
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1531
|
+
/**
|
|
1532
|
+
* Choose, which related nodes to fetch as well
|
|
1533
|
+
*/
|
|
1534
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1535
|
+
/**
|
|
1536
|
+
* Filter, which FileAssets to fetch.
|
|
1537
|
+
*/
|
|
1538
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1539
|
+
/**
|
|
1540
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1541
|
+
*
|
|
1542
|
+
* Determine the order of FileAssets to fetch.
|
|
1543
|
+
*/
|
|
1544
|
+
orderBy?: Prisma.FileAssetOrderByWithRelationInput | Prisma.FileAssetOrderByWithRelationInput[];
|
|
1545
|
+
/**
|
|
1546
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1547
|
+
*
|
|
1548
|
+
* Sets the position for listing FileAssets.
|
|
1549
|
+
*/
|
|
1550
|
+
cursor?: Prisma.FileAssetWhereUniqueInput;
|
|
1551
|
+
/**
|
|
1552
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1553
|
+
*
|
|
1554
|
+
* Take `±n` FileAssets from the position of the cursor.
|
|
1555
|
+
*/
|
|
1556
|
+
take?: number;
|
|
1557
|
+
/**
|
|
1558
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1559
|
+
*
|
|
1560
|
+
* Skip the first `n` FileAssets.
|
|
1561
|
+
*/
|
|
1562
|
+
skip?: number;
|
|
1563
|
+
/**
|
|
1564
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1565
|
+
*
|
|
1566
|
+
* Filter by unique combinations of FileAssets.
|
|
1567
|
+
*/
|
|
1568
|
+
distinct?: Prisma.FileAssetScalarFieldEnum | Prisma.FileAssetScalarFieldEnum[];
|
|
1569
|
+
};
|
|
1570
|
+
/**
|
|
1571
|
+
* FileAsset create
|
|
1572
|
+
*/
|
|
1573
|
+
export type FileAssetCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1574
|
+
/**
|
|
1575
|
+
* Select specific fields to fetch from the FileAsset
|
|
1576
|
+
*/
|
|
1577
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1578
|
+
/**
|
|
1579
|
+
* Omit specific fields from the FileAsset
|
|
1580
|
+
*/
|
|
1581
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1582
|
+
/**
|
|
1583
|
+
* Choose, which related nodes to fetch as well
|
|
1584
|
+
*/
|
|
1585
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1586
|
+
/**
|
|
1587
|
+
* The data needed to create a FileAsset.
|
|
1588
|
+
*/
|
|
1589
|
+
data: Prisma.XOR<Prisma.FileAssetCreateInput, Prisma.FileAssetUncheckedCreateInput>;
|
|
1590
|
+
};
|
|
1591
|
+
/**
|
|
1592
|
+
* FileAsset createMany
|
|
1593
|
+
*/
|
|
1594
|
+
export type FileAssetCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1595
|
+
/**
|
|
1596
|
+
* The data used to create many FileAssets.
|
|
1597
|
+
*/
|
|
1598
|
+
data: Prisma.FileAssetCreateManyInput | Prisma.FileAssetCreateManyInput[];
|
|
1599
|
+
skipDuplicates?: boolean;
|
|
1600
|
+
};
|
|
1601
|
+
/**
|
|
1602
|
+
* FileAsset createManyAndReturn
|
|
1603
|
+
*/
|
|
1604
|
+
export type FileAssetCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1605
|
+
/**
|
|
1606
|
+
* Select specific fields to fetch from the FileAsset
|
|
1607
|
+
*/
|
|
1608
|
+
select?: Prisma.FileAssetSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1609
|
+
/**
|
|
1610
|
+
* Omit specific fields from the FileAsset
|
|
1611
|
+
*/
|
|
1612
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1613
|
+
/**
|
|
1614
|
+
* The data used to create many FileAssets.
|
|
1615
|
+
*/
|
|
1616
|
+
data: Prisma.FileAssetCreateManyInput | Prisma.FileAssetCreateManyInput[];
|
|
1617
|
+
skipDuplicates?: boolean;
|
|
1618
|
+
/**
|
|
1619
|
+
* Choose, which related nodes to fetch as well
|
|
1620
|
+
*/
|
|
1621
|
+
include?: Prisma.FileAssetIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1622
|
+
};
|
|
1623
|
+
/**
|
|
1624
|
+
* FileAsset update
|
|
1625
|
+
*/
|
|
1626
|
+
export type FileAssetUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1627
|
+
/**
|
|
1628
|
+
* Select specific fields to fetch from the FileAsset
|
|
1629
|
+
*/
|
|
1630
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1631
|
+
/**
|
|
1632
|
+
* Omit specific fields from the FileAsset
|
|
1633
|
+
*/
|
|
1634
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1635
|
+
/**
|
|
1636
|
+
* Choose, which related nodes to fetch as well
|
|
1637
|
+
*/
|
|
1638
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* The data needed to update a FileAsset.
|
|
1641
|
+
*/
|
|
1642
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateInput, Prisma.FileAssetUncheckedUpdateInput>;
|
|
1643
|
+
/**
|
|
1644
|
+
* Choose, which FileAsset to update.
|
|
1645
|
+
*/
|
|
1646
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
1647
|
+
};
|
|
1648
|
+
/**
|
|
1649
|
+
* FileAsset updateMany
|
|
1650
|
+
*/
|
|
1651
|
+
export type FileAssetUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1652
|
+
/**
|
|
1653
|
+
* The data used to update FileAssets.
|
|
1654
|
+
*/
|
|
1655
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateManyMutationInput, Prisma.FileAssetUncheckedUpdateManyInput>;
|
|
1656
|
+
/**
|
|
1657
|
+
* Filter which FileAssets to update
|
|
1658
|
+
*/
|
|
1659
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1660
|
+
/**
|
|
1661
|
+
* Limit how many FileAssets to update.
|
|
1662
|
+
*/
|
|
1663
|
+
limit?: number;
|
|
1664
|
+
};
|
|
1665
|
+
/**
|
|
1666
|
+
* FileAsset updateManyAndReturn
|
|
1667
|
+
*/
|
|
1668
|
+
export type FileAssetUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1669
|
+
/**
|
|
1670
|
+
* Select specific fields to fetch from the FileAsset
|
|
1671
|
+
*/
|
|
1672
|
+
select?: Prisma.FileAssetSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1673
|
+
/**
|
|
1674
|
+
* Omit specific fields from the FileAsset
|
|
1675
|
+
*/
|
|
1676
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1677
|
+
/**
|
|
1678
|
+
* The data used to update FileAssets.
|
|
1679
|
+
*/
|
|
1680
|
+
data: Prisma.XOR<Prisma.FileAssetUpdateManyMutationInput, Prisma.FileAssetUncheckedUpdateManyInput>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Filter which FileAssets to update
|
|
1683
|
+
*/
|
|
1684
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1685
|
+
/**
|
|
1686
|
+
* Limit how many FileAssets to update.
|
|
1687
|
+
*/
|
|
1688
|
+
limit?: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* Choose, which related nodes to fetch as well
|
|
1691
|
+
*/
|
|
1692
|
+
include?: Prisma.FileAssetIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1693
|
+
};
|
|
1694
|
+
/**
|
|
1695
|
+
* FileAsset upsert
|
|
1696
|
+
*/
|
|
1697
|
+
export type FileAssetUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1698
|
+
/**
|
|
1699
|
+
* Select specific fields to fetch from the FileAsset
|
|
1700
|
+
*/
|
|
1701
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1702
|
+
/**
|
|
1703
|
+
* Omit specific fields from the FileAsset
|
|
1704
|
+
*/
|
|
1705
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1706
|
+
/**
|
|
1707
|
+
* Choose, which related nodes to fetch as well
|
|
1708
|
+
*/
|
|
1709
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1710
|
+
/**
|
|
1711
|
+
* The filter to search for the FileAsset to update in case it exists.
|
|
1712
|
+
*/
|
|
1713
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
1714
|
+
/**
|
|
1715
|
+
* In case the FileAsset found by the `where` argument doesn't exist, create a new FileAsset with this data.
|
|
1716
|
+
*/
|
|
1717
|
+
create: Prisma.XOR<Prisma.FileAssetCreateInput, Prisma.FileAssetUncheckedCreateInput>;
|
|
1718
|
+
/**
|
|
1719
|
+
* In case the FileAsset was found with the provided `where` argument, update it with this data.
|
|
1720
|
+
*/
|
|
1721
|
+
update: Prisma.XOR<Prisma.FileAssetUpdateInput, Prisma.FileAssetUncheckedUpdateInput>;
|
|
1722
|
+
};
|
|
1723
|
+
/**
|
|
1724
|
+
* FileAsset delete
|
|
1725
|
+
*/
|
|
1726
|
+
export type FileAssetDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1727
|
+
/**
|
|
1728
|
+
* Select specific fields to fetch from the FileAsset
|
|
1729
|
+
*/
|
|
1730
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* Omit specific fields from the FileAsset
|
|
1733
|
+
*/
|
|
1734
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1735
|
+
/**
|
|
1736
|
+
* Choose, which related nodes to fetch as well
|
|
1737
|
+
*/
|
|
1738
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* Filter which FileAsset to delete.
|
|
1741
|
+
*/
|
|
1742
|
+
where: Prisma.FileAssetWhereUniqueInput;
|
|
1743
|
+
};
|
|
1744
|
+
/**
|
|
1745
|
+
* FileAsset deleteMany
|
|
1746
|
+
*/
|
|
1747
|
+
export type FileAssetDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1748
|
+
/**
|
|
1749
|
+
* Filter which FileAssets to delete
|
|
1750
|
+
*/
|
|
1751
|
+
where?: Prisma.FileAssetWhereInput;
|
|
1752
|
+
/**
|
|
1753
|
+
* Limit how many FileAssets to delete.
|
|
1754
|
+
*/
|
|
1755
|
+
limit?: number;
|
|
1756
|
+
};
|
|
1757
|
+
/**
|
|
1758
|
+
* FileAsset.user
|
|
1759
|
+
*/
|
|
1760
|
+
export type FileAsset$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1761
|
+
/**
|
|
1762
|
+
* Select specific fields to fetch from the User
|
|
1763
|
+
*/
|
|
1764
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1765
|
+
/**
|
|
1766
|
+
* Omit specific fields from the User
|
|
1767
|
+
*/
|
|
1768
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Choose, which related nodes to fetch as well
|
|
1771
|
+
*/
|
|
1772
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1773
|
+
where?: Prisma.UserWhereInput;
|
|
1774
|
+
};
|
|
1775
|
+
/**
|
|
1776
|
+
* FileAsset.workspace
|
|
1777
|
+
*/
|
|
1778
|
+
export type FileAsset$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1779
|
+
/**
|
|
1780
|
+
* Select specific fields to fetch from the Workspace
|
|
1781
|
+
*/
|
|
1782
|
+
select?: Prisma.WorkspaceSelect<ExtArgs> | null;
|
|
1783
|
+
/**
|
|
1784
|
+
* Omit specific fields from the Workspace
|
|
1785
|
+
*/
|
|
1786
|
+
omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
|
|
1787
|
+
/**
|
|
1788
|
+
* Choose, which related nodes to fetch as well
|
|
1789
|
+
*/
|
|
1790
|
+
include?: Prisma.WorkspaceInclude<ExtArgs> | null;
|
|
1791
|
+
where?: Prisma.WorkspaceWhereInput;
|
|
1792
|
+
};
|
|
1793
|
+
/**
|
|
1794
|
+
* FileAsset.User
|
|
1795
|
+
*/
|
|
1796
|
+
export type FileAsset$UserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1797
|
+
/**
|
|
1798
|
+
* Select specific fields to fetch from the User
|
|
1799
|
+
*/
|
|
1800
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1801
|
+
/**
|
|
1802
|
+
* Omit specific fields from the User
|
|
1803
|
+
*/
|
|
1804
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1805
|
+
/**
|
|
1806
|
+
* Choose, which related nodes to fetch as well
|
|
1807
|
+
*/
|
|
1808
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1809
|
+
where?: Prisma.UserWhereInput;
|
|
1810
|
+
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
1811
|
+
cursor?: Prisma.UserWhereUniqueInput;
|
|
1812
|
+
take?: number;
|
|
1813
|
+
skip?: number;
|
|
1814
|
+
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
1815
|
+
};
|
|
1816
|
+
/**
|
|
1817
|
+
* FileAsset without action
|
|
1818
|
+
*/
|
|
1819
|
+
export type FileAssetDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1820
|
+
/**
|
|
1821
|
+
* Select specific fields to fetch from the FileAsset
|
|
1822
|
+
*/
|
|
1823
|
+
select?: Prisma.FileAssetSelect<ExtArgs> | null;
|
|
1824
|
+
/**
|
|
1825
|
+
* Omit specific fields from the FileAsset
|
|
1826
|
+
*/
|
|
1827
|
+
omit?: Prisma.FileAssetOmit<ExtArgs> | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* Choose, which related nodes to fetch as well
|
|
1830
|
+
*/
|
|
1831
|
+
include?: Prisma.FileAssetInclude<ExtArgs> | null;
|
|
1832
|
+
};
|