@goscribe/server 1.6.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/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/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/package.json +8 -9
- package/prisma/schema.prisma +3 -4
- package/prisma/seed.mjs +5 -2
- package/prisma.config.ts +16 -0
- package/src/lib/prisma.ts +18 -9
- package/src/scripts/purge-deleted-users.ts +1 -3
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// biome-ignore-all lint: generated file
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
|
|
7
|
+
*
|
|
8
|
+
* 🟢 You can import this file directly.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const ArtifactType: {
|
|
2
|
+
readonly STUDY_GUIDE: "STUDY_GUIDE";
|
|
3
|
+
readonly FLASHCARD_SET: "FLASHCARD_SET";
|
|
4
|
+
readonly WORKSHEET: "WORKSHEET";
|
|
5
|
+
readonly MEETING_SUMMARY: "MEETING_SUMMARY";
|
|
6
|
+
readonly PODCAST_EPISODE: "PODCAST_EPISODE";
|
|
7
|
+
readonly STORAGE: "STORAGE";
|
|
8
|
+
};
|
|
9
|
+
export type ArtifactType = (typeof ArtifactType)[keyof typeof ArtifactType];
|
|
10
|
+
export declare const Difficulty: {
|
|
11
|
+
readonly EASY: "EASY";
|
|
12
|
+
readonly MEDIUM: "MEDIUM";
|
|
13
|
+
readonly HARD: "HARD";
|
|
14
|
+
};
|
|
15
|
+
export type Difficulty = (typeof Difficulty)[keyof typeof Difficulty];
|
|
16
|
+
export declare const QuestionType: {
|
|
17
|
+
readonly MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
18
|
+
readonly TEXT: "TEXT";
|
|
19
|
+
readonly NUMERIC: "NUMERIC";
|
|
20
|
+
readonly TRUE_FALSE: "TRUE_FALSE";
|
|
21
|
+
readonly MATCHING: "MATCHING";
|
|
22
|
+
readonly FILL_IN_THE_BLANK: "FILL_IN_THE_BLANK";
|
|
23
|
+
};
|
|
24
|
+
export type QuestionType = (typeof QuestionType)[keyof typeof QuestionType];
|
|
25
|
+
export declare const CopilotMessageRole: {
|
|
26
|
+
readonly USER: "USER";
|
|
27
|
+
readonly ASSISTANT: "ASSISTANT";
|
|
28
|
+
};
|
|
29
|
+
export type CopilotMessageRole = (typeof CopilotMessageRole)[keyof typeof CopilotMessageRole];
|
|
30
|
+
export declare const NotificationPriority: {
|
|
31
|
+
readonly LOW: "LOW";
|
|
32
|
+
readonly NORMAL: "NORMAL";
|
|
33
|
+
readonly HIGH: "HIGH";
|
|
34
|
+
};
|
|
35
|
+
export type NotificationPriority = (typeof NotificationPriority)[keyof typeof NotificationPriority];
|
|
36
|
+
export declare const InvoiceType: {
|
|
37
|
+
readonly SUBSCRIPTION: "SUBSCRIPTION";
|
|
38
|
+
readonly TOPUP: "TOPUP";
|
|
39
|
+
};
|
|
40
|
+
export type InvoiceType = (typeof InvoiceType)[keyof typeof InvoiceType];
|
|
41
|
+
export declare const ActivityLogCategory: {
|
|
42
|
+
readonly AUTH: "AUTH";
|
|
43
|
+
readonly WORKSPACE: "WORKSPACE";
|
|
44
|
+
readonly BILLING: "BILLING";
|
|
45
|
+
readonly ADMIN: "ADMIN";
|
|
46
|
+
readonly CONTENT: "CONTENT";
|
|
47
|
+
readonly SYSTEM: "SYSTEM";
|
|
48
|
+
};
|
|
49
|
+
export type ActivityLogCategory = (typeof ActivityLogCategory)[keyof typeof ActivityLogCategory];
|
|
50
|
+
export declare const ActivityLogStatus: {
|
|
51
|
+
readonly SUCCESS: "SUCCESS";
|
|
52
|
+
readonly FAILURE: "FAILURE";
|
|
53
|
+
};
|
|
54
|
+
export type ActivityLogStatus = (typeof ActivityLogStatus)[keyof typeof ActivityLogStatus];
|
|
55
|
+
export declare const KnowledgeBaseStatus: {
|
|
56
|
+
readonly READY: "READY";
|
|
57
|
+
readonly INDEXING: "INDEXING";
|
|
58
|
+
readonly ERROR: "ERROR";
|
|
59
|
+
};
|
|
60
|
+
export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
|
|
61
|
+
export declare const KnowledgeBaseDocumentStatus: {
|
|
62
|
+
readonly PENDING: "PENDING";
|
|
63
|
+
readonly PROCESSING: "PROCESSING";
|
|
64
|
+
readonly READY: "READY";
|
|
65
|
+
readonly FAILED: "FAILED";
|
|
66
|
+
};
|
|
67
|
+
export type KnowledgeBaseDocumentStatus = (typeof KnowledgeBaseDocumentStatus)[keyof typeof KnowledgeBaseDocumentStatus];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// biome-ignore-all lint: generated file
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* This file exports all enum related types from the schema.
|
|
7
|
+
*
|
|
8
|
+
* 🟢 You can import this file directly.
|
|
9
|
+
*/
|
|
10
|
+
export const ArtifactType = {
|
|
11
|
+
STUDY_GUIDE: 'STUDY_GUIDE',
|
|
12
|
+
FLASHCARD_SET: 'FLASHCARD_SET',
|
|
13
|
+
WORKSHEET: 'WORKSHEET',
|
|
14
|
+
MEETING_SUMMARY: 'MEETING_SUMMARY',
|
|
15
|
+
PODCAST_EPISODE: 'PODCAST_EPISODE',
|
|
16
|
+
STORAGE: 'STORAGE'
|
|
17
|
+
};
|
|
18
|
+
export const Difficulty = {
|
|
19
|
+
EASY: 'EASY',
|
|
20
|
+
MEDIUM: 'MEDIUM',
|
|
21
|
+
HARD: 'HARD'
|
|
22
|
+
};
|
|
23
|
+
export const QuestionType = {
|
|
24
|
+
MULTIPLE_CHOICE: 'MULTIPLE_CHOICE',
|
|
25
|
+
TEXT: 'TEXT',
|
|
26
|
+
NUMERIC: 'NUMERIC',
|
|
27
|
+
TRUE_FALSE: 'TRUE_FALSE',
|
|
28
|
+
MATCHING: 'MATCHING',
|
|
29
|
+
FILL_IN_THE_BLANK: 'FILL_IN_THE_BLANK'
|
|
30
|
+
};
|
|
31
|
+
export const CopilotMessageRole = {
|
|
32
|
+
USER: 'USER',
|
|
33
|
+
ASSISTANT: 'ASSISTANT'
|
|
34
|
+
};
|
|
35
|
+
export const NotificationPriority = {
|
|
36
|
+
LOW: 'LOW',
|
|
37
|
+
NORMAL: 'NORMAL',
|
|
38
|
+
HIGH: 'HIGH'
|
|
39
|
+
};
|
|
40
|
+
export const InvoiceType = {
|
|
41
|
+
SUBSCRIPTION: 'SUBSCRIPTION',
|
|
42
|
+
TOPUP: 'TOPUP'
|
|
43
|
+
};
|
|
44
|
+
export const ActivityLogCategory = {
|
|
45
|
+
AUTH: 'AUTH',
|
|
46
|
+
WORKSPACE: 'WORKSPACE',
|
|
47
|
+
BILLING: 'BILLING',
|
|
48
|
+
ADMIN: 'ADMIN',
|
|
49
|
+
CONTENT: 'CONTENT',
|
|
50
|
+
SYSTEM: 'SYSTEM'
|
|
51
|
+
};
|
|
52
|
+
export const ActivityLogStatus = {
|
|
53
|
+
SUCCESS: 'SUCCESS',
|
|
54
|
+
FAILURE: 'FAILURE'
|
|
55
|
+
};
|
|
56
|
+
export const KnowledgeBaseStatus = {
|
|
57
|
+
READY: 'READY',
|
|
58
|
+
INDEXING: 'INDEXING',
|
|
59
|
+
ERROR: 'ERROR'
|
|
60
|
+
};
|
|
61
|
+
export const KnowledgeBaseDocumentStatus = {
|
|
62
|
+
PENDING: 'PENDING',
|
|
63
|
+
PROCESSING: 'PROCESSING',
|
|
64
|
+
READY: 'READY',
|
|
65
|
+
FAILED: 'FAILED'
|
|
66
|
+
};
|
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace";
|
|
3
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
+
export interface PrismaClientConstructor {
|
|
5
|
+
/**
|
|
6
|
+
* ## Prisma Client
|
|
7
|
+
*
|
|
8
|
+
* Type-safe database client for TypeScript
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* const prisma = new PrismaClient({
|
|
12
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
13
|
+
* })
|
|
14
|
+
* // Fetch zero or more Users
|
|
15
|
+
* const users = await prisma.user.findMany()
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
19
|
+
*/
|
|
20
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
21
|
+
omit: infer U;
|
|
22
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Prisma Client
|
|
26
|
+
*
|
|
27
|
+
* Type-safe database client for TypeScript
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* const prisma = new PrismaClient({
|
|
31
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
32
|
+
* })
|
|
33
|
+
* // Fetch zero or more Users
|
|
34
|
+
* const users = await prisma.user.findMany()
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
38
|
+
*/
|
|
39
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
40
|
+
[K: symbol]: {
|
|
41
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
42
|
+
};
|
|
43
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
44
|
+
/**
|
|
45
|
+
* Connect with the database
|
|
46
|
+
*/
|
|
47
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Disconnect from the database
|
|
50
|
+
*/
|
|
51
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
60
|
+
*/
|
|
61
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Executes a raw query and returns the number of affected rows.
|
|
64
|
+
* Susceptible to SQL injections, see documentation.
|
|
65
|
+
* @example
|
|
66
|
+
* ```
|
|
67
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
71
|
+
*/
|
|
72
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
75
|
+
* @example
|
|
76
|
+
* ```
|
|
77
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
81
|
+
*/
|
|
82
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
85
|
+
* Susceptible to SQL injections, see documentation.
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
92
|
+
*/
|
|
93
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
99
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
100
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
101
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
102
|
+
* ])
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
|
106
|
+
*/
|
|
107
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
108
|
+
maxWait?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
111
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
112
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
113
|
+
maxWait?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
116
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
117
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
118
|
+
extArgs: ExtArgs;
|
|
119
|
+
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
122
|
+
* Example usage:
|
|
123
|
+
* ```ts
|
|
124
|
+
* // Fetch zero or more Users
|
|
125
|
+
* const users = await prisma.user.findMany()
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
get user(): Prisma.UserDelegate<ExtArgs, {
|
|
129
|
+
omit: OmitOpts;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* `prisma.passwordResetToken`: Exposes CRUD operations for the **PasswordResetToken** model.
|
|
133
|
+
* Example usage:
|
|
134
|
+
* ```ts
|
|
135
|
+
* // Fetch zero or more PasswordResetTokens
|
|
136
|
+
* const passwordResetTokens = await prisma.passwordResetToken.findMany()
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
get passwordResetToken(): Prisma.PasswordResetTokenDelegate<ExtArgs, {
|
|
140
|
+
omit: OmitOpts;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* `prisma.role`: Exposes CRUD operations for the **Role** model.
|
|
144
|
+
* Example usage:
|
|
145
|
+
* ```ts
|
|
146
|
+
* // Fetch zero or more Roles
|
|
147
|
+
* const roles = await prisma.role.findMany()
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
get role(): Prisma.RoleDelegate<ExtArgs, {
|
|
151
|
+
omit: OmitOpts;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* `prisma.notification`: Exposes CRUD operations for the **Notification** model.
|
|
155
|
+
* Example usage:
|
|
156
|
+
* ```ts
|
|
157
|
+
* // Fetch zero or more Notifications
|
|
158
|
+
* const notifications = await prisma.notification.findMany()
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
get notification(): Prisma.NotificationDelegate<ExtArgs, {
|
|
162
|
+
omit: OmitOpts;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
166
|
+
* Example usage:
|
|
167
|
+
* ```ts
|
|
168
|
+
* // Fetch zero or more Sessions
|
|
169
|
+
* const sessions = await prisma.session.findMany()
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
get session(): Prisma.SessionDelegate<ExtArgs, {
|
|
173
|
+
omit: OmitOpts;
|
|
174
|
+
}>;
|
|
175
|
+
/**
|
|
176
|
+
* `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
|
|
177
|
+
* Example usage:
|
|
178
|
+
* ```ts
|
|
179
|
+
* // Fetch zero or more VerificationTokens
|
|
180
|
+
* const verificationTokens = await prisma.verificationToken.findMany()
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs, {
|
|
184
|
+
omit: OmitOpts;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* `prisma.folder`: Exposes CRUD operations for the **Folder** model.
|
|
188
|
+
* Example usage:
|
|
189
|
+
* ```ts
|
|
190
|
+
* // Fetch zero or more Folders
|
|
191
|
+
* const folders = await prisma.folder.findMany()
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
get folder(): Prisma.FolderDelegate<ExtArgs, {
|
|
195
|
+
omit: OmitOpts;
|
|
196
|
+
}>;
|
|
197
|
+
/**
|
|
198
|
+
* `prisma.workspace`: Exposes CRUD operations for the **Workspace** model.
|
|
199
|
+
* Example usage:
|
|
200
|
+
* ```ts
|
|
201
|
+
* // Fetch zero or more Workspaces
|
|
202
|
+
* const workspaces = await prisma.workspace.findMany()
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
get workspace(): Prisma.WorkspaceDelegate<ExtArgs, {
|
|
206
|
+
omit: OmitOpts;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* `prisma.channel`: Exposes CRUD operations for the **Channel** model.
|
|
210
|
+
* Example usage:
|
|
211
|
+
* ```ts
|
|
212
|
+
* // Fetch zero or more Channels
|
|
213
|
+
* const channels = await prisma.channel.findMany()
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
get channel(): Prisma.ChannelDelegate<ExtArgs, {
|
|
217
|
+
omit: OmitOpts;
|
|
218
|
+
}>;
|
|
219
|
+
/**
|
|
220
|
+
* `prisma.chat`: Exposes CRUD operations for the **Chat** model.
|
|
221
|
+
* Example usage:
|
|
222
|
+
* ```ts
|
|
223
|
+
* // Fetch zero or more Chats
|
|
224
|
+
* const chats = await prisma.chat.findMany()
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
get chat(): Prisma.ChatDelegate<ExtArgs, {
|
|
228
|
+
omit: OmitOpts;
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* `prisma.copilotConversation`: Exposes CRUD operations for the **CopilotConversation** model.
|
|
232
|
+
* Example usage:
|
|
233
|
+
* ```ts
|
|
234
|
+
* // Fetch zero or more CopilotConversations
|
|
235
|
+
* const copilotConversations = await prisma.copilotConversation.findMany()
|
|
236
|
+
* ```
|
|
237
|
+
*/
|
|
238
|
+
get copilotConversation(): Prisma.CopilotConversationDelegate<ExtArgs, {
|
|
239
|
+
omit: OmitOpts;
|
|
240
|
+
}>;
|
|
241
|
+
/**
|
|
242
|
+
* `prisma.copilotMessage`: Exposes CRUD operations for the **CopilotMessage** model.
|
|
243
|
+
* Example usage:
|
|
244
|
+
* ```ts
|
|
245
|
+
* // Fetch zero or more CopilotMessages
|
|
246
|
+
* const copilotMessages = await prisma.copilotMessage.findMany()
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
get copilotMessage(): Prisma.CopilotMessageDelegate<ExtArgs, {
|
|
250
|
+
omit: OmitOpts;
|
|
251
|
+
}>;
|
|
252
|
+
/**
|
|
253
|
+
* `prisma.fileAsset`: Exposes CRUD operations for the **FileAsset** model.
|
|
254
|
+
* Example usage:
|
|
255
|
+
* ```ts
|
|
256
|
+
* // Fetch zero or more FileAssets
|
|
257
|
+
* const fileAssets = await prisma.fileAsset.findMany()
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
get fileAsset(): Prisma.FileAssetDelegate<ExtArgs, {
|
|
261
|
+
omit: OmitOpts;
|
|
262
|
+
}>;
|
|
263
|
+
/**
|
|
264
|
+
* `prisma.artifact`: Exposes CRUD operations for the **Artifact** model.
|
|
265
|
+
* Example usage:
|
|
266
|
+
* ```ts
|
|
267
|
+
* // Fetch zero or more Artifacts
|
|
268
|
+
* const artifacts = await prisma.artifact.findMany()
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
get artifact(): Prisma.ArtifactDelegate<ExtArgs, {
|
|
272
|
+
omit: OmitOpts;
|
|
273
|
+
}>;
|
|
274
|
+
/**
|
|
275
|
+
* `prisma.artifactVersion`: Exposes CRUD operations for the **ArtifactVersion** model.
|
|
276
|
+
* Example usage:
|
|
277
|
+
* ```ts
|
|
278
|
+
* // Fetch zero or more ArtifactVersions
|
|
279
|
+
* const artifactVersions = await prisma.artifactVersion.findMany()
|
|
280
|
+
* ```
|
|
281
|
+
*/
|
|
282
|
+
get artifactVersion(): Prisma.ArtifactVersionDelegate<ExtArgs, {
|
|
283
|
+
omit: OmitOpts;
|
|
284
|
+
}>;
|
|
285
|
+
/**
|
|
286
|
+
* `prisma.studyGuideHighlight`: Exposes CRUD operations for the **StudyGuideHighlight** model.
|
|
287
|
+
* Example usage:
|
|
288
|
+
* ```ts
|
|
289
|
+
* // Fetch zero or more StudyGuideHighlights
|
|
290
|
+
* const studyGuideHighlights = await prisma.studyGuideHighlight.findMany()
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
get studyGuideHighlight(): Prisma.StudyGuideHighlightDelegate<ExtArgs, {
|
|
294
|
+
omit: OmitOpts;
|
|
295
|
+
}>;
|
|
296
|
+
/**
|
|
297
|
+
* `prisma.studyGuideComment`: Exposes CRUD operations for the **StudyGuideComment** model.
|
|
298
|
+
* Example usage:
|
|
299
|
+
* ```ts
|
|
300
|
+
* // Fetch zero or more StudyGuideComments
|
|
301
|
+
* const studyGuideComments = await prisma.studyGuideComment.findMany()
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
304
|
+
get studyGuideComment(): Prisma.StudyGuideCommentDelegate<ExtArgs, {
|
|
305
|
+
omit: OmitOpts;
|
|
306
|
+
}>;
|
|
307
|
+
/**
|
|
308
|
+
* `prisma.flashcard`: Exposes CRUD operations for the **Flashcard** model.
|
|
309
|
+
* Example usage:
|
|
310
|
+
* ```ts
|
|
311
|
+
* // Fetch zero or more Flashcards
|
|
312
|
+
* const flashcards = await prisma.flashcard.findMany()
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
get flashcard(): Prisma.FlashcardDelegate<ExtArgs, {
|
|
316
|
+
omit: OmitOpts;
|
|
317
|
+
}>;
|
|
318
|
+
/**
|
|
319
|
+
* `prisma.flashcardProgress`: Exposes CRUD operations for the **FlashcardProgress** model.
|
|
320
|
+
* Example usage:
|
|
321
|
+
* ```ts
|
|
322
|
+
* // Fetch zero or more FlashcardProgresses
|
|
323
|
+
* const flashcardProgresses = await prisma.flashcardProgress.findMany()
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
get flashcardProgress(): Prisma.FlashcardProgressDelegate<ExtArgs, {
|
|
327
|
+
omit: OmitOpts;
|
|
328
|
+
}>;
|
|
329
|
+
/**
|
|
330
|
+
* `prisma.worksheetQuestion`: Exposes CRUD operations for the **WorksheetQuestion** model.
|
|
331
|
+
* Example usage:
|
|
332
|
+
* ```ts
|
|
333
|
+
* // Fetch zero or more WorksheetQuestions
|
|
334
|
+
* const worksheetQuestions = await prisma.worksheetQuestion.findMany()
|
|
335
|
+
* ```
|
|
336
|
+
*/
|
|
337
|
+
get worksheetQuestion(): Prisma.WorksheetQuestionDelegate<ExtArgs, {
|
|
338
|
+
omit: OmitOpts;
|
|
339
|
+
}>;
|
|
340
|
+
/**
|
|
341
|
+
* `prisma.worksheetQuestionProgress`: Exposes CRUD operations for the **WorksheetQuestionProgress** model.
|
|
342
|
+
* Example usage:
|
|
343
|
+
* ```ts
|
|
344
|
+
* // Fetch zero or more WorksheetQuestionProgresses
|
|
345
|
+
* const worksheetQuestionProgresses = await prisma.worksheetQuestionProgress.findMany()
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
get worksheetQuestionProgress(): Prisma.WorksheetQuestionProgressDelegate<ExtArgs, {
|
|
349
|
+
omit: OmitOpts;
|
|
350
|
+
}>;
|
|
351
|
+
/**
|
|
352
|
+
* `prisma.worksheetPreset`: Exposes CRUD operations for the **WorksheetPreset** model.
|
|
353
|
+
* Example usage:
|
|
354
|
+
* ```ts
|
|
355
|
+
* // Fetch zero or more WorksheetPresets
|
|
356
|
+
* const worksheetPresets = await prisma.worksheetPreset.findMany()
|
|
357
|
+
* ```
|
|
358
|
+
*/
|
|
359
|
+
get worksheetPreset(): Prisma.WorksheetPresetDelegate<ExtArgs, {
|
|
360
|
+
omit: OmitOpts;
|
|
361
|
+
}>;
|
|
362
|
+
/**
|
|
363
|
+
* `prisma.workspaceMember`: Exposes CRUD operations for the **WorkspaceMember** model.
|
|
364
|
+
* Example usage:
|
|
365
|
+
* ```ts
|
|
366
|
+
* // Fetch zero or more WorkspaceMembers
|
|
367
|
+
* const workspaceMembers = await prisma.workspaceMember.findMany()
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
370
|
+
get workspaceMember(): Prisma.WorkspaceMemberDelegate<ExtArgs, {
|
|
371
|
+
omit: OmitOpts;
|
|
372
|
+
}>;
|
|
373
|
+
/**
|
|
374
|
+
* `prisma.workspaceInvitation`: Exposes CRUD operations for the **WorkspaceInvitation** model.
|
|
375
|
+
* Example usage:
|
|
376
|
+
* ```ts
|
|
377
|
+
* // Fetch zero or more WorkspaceInvitations
|
|
378
|
+
* const workspaceInvitations = await prisma.workspaceInvitation.findMany()
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
get workspaceInvitation(): Prisma.WorkspaceInvitationDelegate<ExtArgs, {
|
|
382
|
+
omit: OmitOpts;
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* `prisma.podcastSegment`: Exposes CRUD operations for the **PodcastSegment** model.
|
|
386
|
+
* Example usage:
|
|
387
|
+
* ```ts
|
|
388
|
+
* // Fetch zero or more PodcastSegments
|
|
389
|
+
* const podcastSegments = await prisma.podcastSegment.findMany()
|
|
390
|
+
* ```
|
|
391
|
+
*/
|
|
392
|
+
get podcastSegment(): Prisma.PodcastSegmentDelegate<ExtArgs, {
|
|
393
|
+
omit: OmitOpts;
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* `prisma.invoice`: Exposes CRUD operations for the **Invoice** model.
|
|
397
|
+
* Example usage:
|
|
398
|
+
* ```ts
|
|
399
|
+
* // Fetch zero or more Invoices
|
|
400
|
+
* const invoices = await prisma.invoice.findMany()
|
|
401
|
+
* ```
|
|
402
|
+
*/
|
|
403
|
+
get invoice(): Prisma.InvoiceDelegate<ExtArgs, {
|
|
404
|
+
omit: OmitOpts;
|
|
405
|
+
}>;
|
|
406
|
+
/**
|
|
407
|
+
* `prisma.plan`: Exposes CRUD operations for the **Plan** model.
|
|
408
|
+
* Example usage:
|
|
409
|
+
* ```ts
|
|
410
|
+
* // Fetch zero or more Plans
|
|
411
|
+
* const plans = await prisma.plan.findMany()
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
get plan(): Prisma.PlanDelegate<ExtArgs, {
|
|
415
|
+
omit: OmitOpts;
|
|
416
|
+
}>;
|
|
417
|
+
/**
|
|
418
|
+
* `prisma.planLimit`: Exposes CRUD operations for the **PlanLimit** model.
|
|
419
|
+
* Example usage:
|
|
420
|
+
* ```ts
|
|
421
|
+
* // Fetch zero or more PlanLimits
|
|
422
|
+
* const planLimits = await prisma.planLimit.findMany()
|
|
423
|
+
* ```
|
|
424
|
+
*/
|
|
425
|
+
get planLimit(): Prisma.PlanLimitDelegate<ExtArgs, {
|
|
426
|
+
omit: OmitOpts;
|
|
427
|
+
}>;
|
|
428
|
+
/**
|
|
429
|
+
* `prisma.subscription`: Exposes CRUD operations for the **Subscription** model.
|
|
430
|
+
* Example usage:
|
|
431
|
+
* ```ts
|
|
432
|
+
* // Fetch zero or more Subscriptions
|
|
433
|
+
* const subscriptions = await prisma.subscription.findMany()
|
|
434
|
+
* ```
|
|
435
|
+
*/
|
|
436
|
+
get subscription(): Prisma.SubscriptionDelegate<ExtArgs, {
|
|
437
|
+
omit: OmitOpts;
|
|
438
|
+
}>;
|
|
439
|
+
/**
|
|
440
|
+
* `prisma.resourcePrice`: Exposes CRUD operations for the **ResourcePrice** model.
|
|
441
|
+
* Example usage:
|
|
442
|
+
* ```ts
|
|
443
|
+
* // Fetch zero or more ResourcePrices
|
|
444
|
+
* const resourcePrices = await prisma.resourcePrice.findMany()
|
|
445
|
+
* ```
|
|
446
|
+
*/
|
|
447
|
+
get resourcePrice(): Prisma.ResourcePriceDelegate<ExtArgs, {
|
|
448
|
+
omit: OmitOpts;
|
|
449
|
+
}>;
|
|
450
|
+
/**
|
|
451
|
+
* `prisma.userCredit`: Exposes CRUD operations for the **UserCredit** model.
|
|
452
|
+
* Example usage:
|
|
453
|
+
* ```ts
|
|
454
|
+
* // Fetch zero or more UserCredits
|
|
455
|
+
* const userCredits = await prisma.userCredit.findMany()
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
458
|
+
get userCredit(): Prisma.UserCreditDelegate<ExtArgs, {
|
|
459
|
+
omit: OmitOpts;
|
|
460
|
+
}>;
|
|
461
|
+
/**
|
|
462
|
+
* `prisma.idempotencyRecord`: Exposes CRUD operations for the **IdempotencyRecord** model.
|
|
463
|
+
* Example usage:
|
|
464
|
+
* ```ts
|
|
465
|
+
* // Fetch zero or more IdempotencyRecords
|
|
466
|
+
* const idempotencyRecords = await prisma.idempotencyRecord.findMany()
|
|
467
|
+
* ```
|
|
468
|
+
*/
|
|
469
|
+
get idempotencyRecord(): Prisma.IdempotencyRecordDelegate<ExtArgs, {
|
|
470
|
+
omit: OmitOpts;
|
|
471
|
+
}>;
|
|
472
|
+
/**
|
|
473
|
+
* `prisma.stripeEvent`: Exposes CRUD operations for the **StripeEvent** model.
|
|
474
|
+
* Example usage:
|
|
475
|
+
* ```ts
|
|
476
|
+
* // Fetch zero or more StripeEvents
|
|
477
|
+
* const stripeEvents = await prisma.stripeEvent.findMany()
|
|
478
|
+
* ```
|
|
479
|
+
*/
|
|
480
|
+
get stripeEvent(): Prisma.StripeEventDelegate<ExtArgs, {
|
|
481
|
+
omit: OmitOpts;
|
|
482
|
+
}>;
|
|
483
|
+
/**
|
|
484
|
+
* `prisma.activityLog`: Exposes CRUD operations for the **ActivityLog** model.
|
|
485
|
+
* Example usage:
|
|
486
|
+
* ```ts
|
|
487
|
+
* // Fetch zero or more ActivityLogs
|
|
488
|
+
* const activityLogs = await prisma.activityLog.findMany()
|
|
489
|
+
* ```
|
|
490
|
+
*/
|
|
491
|
+
get activityLog(): Prisma.ActivityLogDelegate<ExtArgs, {
|
|
492
|
+
omit: OmitOpts;
|
|
493
|
+
}>;
|
|
494
|
+
/**
|
|
495
|
+
* `prisma.knowledgeBase`: Exposes CRUD operations for the **KnowledgeBase** model.
|
|
496
|
+
* Example usage:
|
|
497
|
+
* ```ts
|
|
498
|
+
* // Fetch zero or more KnowledgeBases
|
|
499
|
+
* const knowledgeBases = await prisma.knowledgeBase.findMany()
|
|
500
|
+
* ```
|
|
501
|
+
*/
|
|
502
|
+
get knowledgeBase(): Prisma.KnowledgeBaseDelegate<ExtArgs, {
|
|
503
|
+
omit: OmitOpts;
|
|
504
|
+
}>;
|
|
505
|
+
/**
|
|
506
|
+
* `prisma.workspaceKnowledgeBase`: Exposes CRUD operations for the **WorkspaceKnowledgeBase** model.
|
|
507
|
+
* Example usage:
|
|
508
|
+
* ```ts
|
|
509
|
+
* // Fetch zero or more WorkspaceKnowledgeBases
|
|
510
|
+
* const workspaceKnowledgeBases = await prisma.workspaceKnowledgeBase.findMany()
|
|
511
|
+
* ```
|
|
512
|
+
*/
|
|
513
|
+
get workspaceKnowledgeBase(): Prisma.WorkspaceKnowledgeBaseDelegate<ExtArgs, {
|
|
514
|
+
omit: OmitOpts;
|
|
515
|
+
}>;
|
|
516
|
+
/**
|
|
517
|
+
* `prisma.knowledgeBaseDocument`: Exposes CRUD operations for the **KnowledgeBaseDocument** model.
|
|
518
|
+
* Example usage:
|
|
519
|
+
* ```ts
|
|
520
|
+
* // Fetch zero or more KnowledgeBaseDocuments
|
|
521
|
+
* const knowledgeBaseDocuments = await prisma.knowledgeBaseDocument.findMany()
|
|
522
|
+
* ```
|
|
523
|
+
*/
|
|
524
|
+
get knowledgeBaseDocument(): Prisma.KnowledgeBaseDocumentDelegate<ExtArgs, {
|
|
525
|
+
omit: OmitOpts;
|
|
526
|
+
}>;
|
|
527
|
+
/**
|
|
528
|
+
* `prisma.knowledgeBaseChunk`: Exposes CRUD operations for the **KnowledgeBaseChunk** model.
|
|
529
|
+
* Example usage:
|
|
530
|
+
* ```ts
|
|
531
|
+
* // Fetch zero or more KnowledgeBaseChunks
|
|
532
|
+
* const knowledgeBaseChunks = await prisma.knowledgeBaseChunk.findMany()
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
get knowledgeBaseChunk(): Prisma.KnowledgeBaseChunkDelegate<ExtArgs, {
|
|
536
|
+
omit: OmitOpts;
|
|
537
|
+
}>;
|
|
538
|
+
}
|
|
539
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|