@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,557 @@
|
|
|
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
|
+
* WARNING: This is an internal file that is subject to change!
|
|
7
|
+
*
|
|
8
|
+
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
9
|
+
*
|
|
10
|
+
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
|
|
11
|
+
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
12
|
+
*
|
|
13
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
14
|
+
* model files in the `model` directory!
|
|
15
|
+
*/
|
|
16
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
17
|
+
/**
|
|
18
|
+
* Prisma Errors
|
|
19
|
+
*/
|
|
20
|
+
export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
|
|
21
|
+
export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
|
|
22
|
+
export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
|
|
23
|
+
export const PrismaClientInitializationError = runtime.PrismaClientInitializationError;
|
|
24
|
+
export const PrismaClientValidationError = runtime.PrismaClientValidationError;
|
|
25
|
+
/**
|
|
26
|
+
* Re-export of sql-template-tag
|
|
27
|
+
*/
|
|
28
|
+
export const sql = runtime.sqltag;
|
|
29
|
+
export const empty = runtime.empty;
|
|
30
|
+
export const join = runtime.join;
|
|
31
|
+
export const raw = runtime.raw;
|
|
32
|
+
export const Sql = runtime.Sql;
|
|
33
|
+
/**
|
|
34
|
+
* Decimal.js
|
|
35
|
+
*/
|
|
36
|
+
export const Decimal = runtime.Decimal;
|
|
37
|
+
export const getExtensionContext = runtime.Extensions.getExtensionContext;
|
|
38
|
+
/**
|
|
39
|
+
* Prisma Client JS version: 7.8.0
|
|
40
|
+
* Query Engine version: 3c6e192761c0362d496ed980de936e2f3cebcd3a
|
|
41
|
+
*/
|
|
42
|
+
export const prismaVersion = {
|
|
43
|
+
client: "7.8.0",
|
|
44
|
+
engine: "3c6e192761c0362d496ed980de936e2f3cebcd3a"
|
|
45
|
+
};
|
|
46
|
+
export const NullTypes = {
|
|
47
|
+
DbNull: runtime.NullTypes.DbNull,
|
|
48
|
+
JsonNull: runtime.NullTypes.JsonNull,
|
|
49
|
+
AnyNull: runtime.NullTypes.AnyNull,
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
53
|
+
*
|
|
54
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
55
|
+
*/
|
|
56
|
+
export const DbNull = runtime.DbNull;
|
|
57
|
+
/**
|
|
58
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
59
|
+
*
|
|
60
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
61
|
+
*/
|
|
62
|
+
export const JsonNull = runtime.JsonNull;
|
|
63
|
+
/**
|
|
64
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
65
|
+
*
|
|
66
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
67
|
+
*/
|
|
68
|
+
export const AnyNull = runtime.AnyNull;
|
|
69
|
+
export const ModelName = {
|
|
70
|
+
User: 'User',
|
|
71
|
+
PasswordResetToken: 'PasswordResetToken',
|
|
72
|
+
Role: 'Role',
|
|
73
|
+
Notification: 'Notification',
|
|
74
|
+
Session: 'Session',
|
|
75
|
+
VerificationToken: 'VerificationToken',
|
|
76
|
+
Folder: 'Folder',
|
|
77
|
+
Workspace: 'Workspace',
|
|
78
|
+
Channel: 'Channel',
|
|
79
|
+
Chat: 'Chat',
|
|
80
|
+
CopilotConversation: 'CopilotConversation',
|
|
81
|
+
CopilotMessage: 'CopilotMessage',
|
|
82
|
+
FileAsset: 'FileAsset',
|
|
83
|
+
Artifact: 'Artifact',
|
|
84
|
+
ArtifactVersion: 'ArtifactVersion',
|
|
85
|
+
StudyGuideHighlight: 'StudyGuideHighlight',
|
|
86
|
+
StudyGuideComment: 'StudyGuideComment',
|
|
87
|
+
Flashcard: 'Flashcard',
|
|
88
|
+
FlashcardProgress: 'FlashcardProgress',
|
|
89
|
+
WorksheetQuestion: 'WorksheetQuestion',
|
|
90
|
+
WorksheetQuestionProgress: 'WorksheetQuestionProgress',
|
|
91
|
+
WorksheetPreset: 'WorksheetPreset',
|
|
92
|
+
WorkspaceMember: 'WorkspaceMember',
|
|
93
|
+
WorkspaceInvitation: 'WorkspaceInvitation',
|
|
94
|
+
PodcastSegment: 'PodcastSegment',
|
|
95
|
+
Invoice: 'Invoice',
|
|
96
|
+
Plan: 'Plan',
|
|
97
|
+
PlanLimit: 'PlanLimit',
|
|
98
|
+
Subscription: 'Subscription',
|
|
99
|
+
ResourcePrice: 'ResourcePrice',
|
|
100
|
+
UserCredit: 'UserCredit',
|
|
101
|
+
IdempotencyRecord: 'IdempotencyRecord',
|
|
102
|
+
StripeEvent: 'StripeEvent',
|
|
103
|
+
ActivityLog: 'ActivityLog',
|
|
104
|
+
KnowledgeBase: 'KnowledgeBase',
|
|
105
|
+
WorkspaceKnowledgeBase: 'WorkspaceKnowledgeBase',
|
|
106
|
+
KnowledgeBaseDocument: 'KnowledgeBaseDocument',
|
|
107
|
+
KnowledgeBaseChunk: 'KnowledgeBaseChunk'
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Enums
|
|
111
|
+
*/
|
|
112
|
+
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
113
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
114
|
+
ReadCommitted: 'ReadCommitted',
|
|
115
|
+
RepeatableRead: 'RepeatableRead',
|
|
116
|
+
Serializable: 'Serializable'
|
|
117
|
+
});
|
|
118
|
+
export const UserScalarFieldEnum = {
|
|
119
|
+
id: 'id',
|
|
120
|
+
name: 'name',
|
|
121
|
+
email: 'email',
|
|
122
|
+
emailVerified: 'emailVerified',
|
|
123
|
+
passwordHash: 'passwordHash',
|
|
124
|
+
createdAt: 'createdAt',
|
|
125
|
+
updatedAt: 'updatedAt',
|
|
126
|
+
fileAssetId: 'fileAssetId',
|
|
127
|
+
roleId: 'roleId',
|
|
128
|
+
deletedAt: 'deletedAt',
|
|
129
|
+
stripe_customer_id: 'stripe_customer_id'
|
|
130
|
+
};
|
|
131
|
+
export const PasswordResetTokenScalarFieldEnum = {
|
|
132
|
+
id: 'id',
|
|
133
|
+
userId: 'userId',
|
|
134
|
+
tokenHash: 'tokenHash',
|
|
135
|
+
expiresAt: 'expiresAt',
|
|
136
|
+
usedAt: 'usedAt',
|
|
137
|
+
createdAt: 'createdAt'
|
|
138
|
+
};
|
|
139
|
+
export const RoleScalarFieldEnum = {
|
|
140
|
+
id: 'id',
|
|
141
|
+
name: 'name'
|
|
142
|
+
};
|
|
143
|
+
export const NotificationScalarFieldEnum = {
|
|
144
|
+
id: 'id',
|
|
145
|
+
userId: 'userId',
|
|
146
|
+
actorUserId: 'actorUserId',
|
|
147
|
+
workspaceId: 'workspaceId',
|
|
148
|
+
type: 'type',
|
|
149
|
+
title: 'title',
|
|
150
|
+
body: 'body',
|
|
151
|
+
content: 'content',
|
|
152
|
+
actionUrl: 'actionUrl',
|
|
153
|
+
metadata: 'metadata',
|
|
154
|
+
priority: 'priority',
|
|
155
|
+
sourceId: 'sourceId',
|
|
156
|
+
read: 'read',
|
|
157
|
+
readAt: 'readAt',
|
|
158
|
+
deliveredAt: 'deliveredAt',
|
|
159
|
+
createdAt: 'createdAt',
|
|
160
|
+
updatedAt: 'updatedAt'
|
|
161
|
+
};
|
|
162
|
+
export const SessionScalarFieldEnum = {
|
|
163
|
+
id: 'id',
|
|
164
|
+
userId: 'userId',
|
|
165
|
+
expires: 'expires'
|
|
166
|
+
};
|
|
167
|
+
export const VerificationTokenScalarFieldEnum = {
|
|
168
|
+
identifier: 'identifier',
|
|
169
|
+
token: 'token',
|
|
170
|
+
expires: 'expires'
|
|
171
|
+
};
|
|
172
|
+
export const FolderScalarFieldEnum = {
|
|
173
|
+
id: 'id',
|
|
174
|
+
name: 'name',
|
|
175
|
+
ownerId: 'ownerId',
|
|
176
|
+
parentId: 'parentId',
|
|
177
|
+
createdAt: 'createdAt',
|
|
178
|
+
updatedAt: 'updatedAt',
|
|
179
|
+
color: 'color',
|
|
180
|
+
markerColor: 'markerColor'
|
|
181
|
+
};
|
|
182
|
+
export const WorkspaceScalarFieldEnum = {
|
|
183
|
+
id: 'id',
|
|
184
|
+
title: 'title',
|
|
185
|
+
description: 'description',
|
|
186
|
+
ownerId: 'ownerId',
|
|
187
|
+
icon: 'icon',
|
|
188
|
+
color: 'color',
|
|
189
|
+
markerColor: 'markerColor',
|
|
190
|
+
folderId: 'folderId',
|
|
191
|
+
fileBeingAnalyzed: 'fileBeingAnalyzed',
|
|
192
|
+
analysisProgress: 'analysisProgress',
|
|
193
|
+
needsAnalysis: 'needsAnalysis',
|
|
194
|
+
createdAt: 'createdAt',
|
|
195
|
+
updatedAt: 'updatedAt'
|
|
196
|
+
};
|
|
197
|
+
export const ChannelScalarFieldEnum = {
|
|
198
|
+
id: 'id',
|
|
199
|
+
workspaceId: 'workspaceId',
|
|
200
|
+
name: 'name',
|
|
201
|
+
createdAt: 'createdAt'
|
|
202
|
+
};
|
|
203
|
+
export const ChatScalarFieldEnum = {
|
|
204
|
+
id: 'id',
|
|
205
|
+
channelId: 'channelId',
|
|
206
|
+
userId: 'userId',
|
|
207
|
+
message: 'message',
|
|
208
|
+
updatedAt: 'updatedAt',
|
|
209
|
+
createdAt: 'createdAt'
|
|
210
|
+
};
|
|
211
|
+
export const CopilotConversationScalarFieldEnum = {
|
|
212
|
+
id: 'id',
|
|
213
|
+
workspaceId: 'workspaceId',
|
|
214
|
+
userId: 'userId',
|
|
215
|
+
title: 'title',
|
|
216
|
+
createdAt: 'createdAt',
|
|
217
|
+
updatedAt: 'updatedAt'
|
|
218
|
+
};
|
|
219
|
+
export const CopilotMessageScalarFieldEnum = {
|
|
220
|
+
id: 'id',
|
|
221
|
+
conversationId: 'conversationId',
|
|
222
|
+
role: 'role',
|
|
223
|
+
content: 'content',
|
|
224
|
+
createdAt: 'createdAt'
|
|
225
|
+
};
|
|
226
|
+
export const FileAssetScalarFieldEnum = {
|
|
227
|
+
id: 'id',
|
|
228
|
+
workspaceId: 'workspaceId',
|
|
229
|
+
userId: 'userId',
|
|
230
|
+
name: 'name',
|
|
231
|
+
mimeType: 'mimeType',
|
|
232
|
+
size: 'size',
|
|
233
|
+
bucket: 'bucket',
|
|
234
|
+
objectKey: 'objectKey',
|
|
235
|
+
url: 'url',
|
|
236
|
+
checksum: 'checksum',
|
|
237
|
+
meta: 'meta',
|
|
238
|
+
createdAt: 'createdAt',
|
|
239
|
+
aiTranscription: 'aiTranscription'
|
|
240
|
+
};
|
|
241
|
+
export const ArtifactScalarFieldEnum = {
|
|
242
|
+
id: 'id',
|
|
243
|
+
workspaceId: 'workspaceId',
|
|
244
|
+
type: 'type',
|
|
245
|
+
title: 'title',
|
|
246
|
+
isArchived: 'isArchived',
|
|
247
|
+
difficulty: 'difficulty',
|
|
248
|
+
estimatedTime: 'estimatedTime',
|
|
249
|
+
createdById: 'createdById',
|
|
250
|
+
createdAt: 'createdAt',
|
|
251
|
+
updatedAt: 'updatedAt',
|
|
252
|
+
description: 'description',
|
|
253
|
+
generating: 'generating',
|
|
254
|
+
generatingMetadata: 'generatingMetadata',
|
|
255
|
+
worksheetConfig: 'worksheetConfig',
|
|
256
|
+
imageObjectKey: 'imageObjectKey'
|
|
257
|
+
};
|
|
258
|
+
export const ArtifactVersionScalarFieldEnum = {
|
|
259
|
+
id: 'id',
|
|
260
|
+
artifactId: 'artifactId',
|
|
261
|
+
content: 'content',
|
|
262
|
+
data: 'data',
|
|
263
|
+
version: 'version',
|
|
264
|
+
createdById: 'createdById',
|
|
265
|
+
createdAt: 'createdAt'
|
|
266
|
+
};
|
|
267
|
+
export const StudyGuideHighlightScalarFieldEnum = {
|
|
268
|
+
id: 'id',
|
|
269
|
+
artifactVersionId: 'artifactVersionId',
|
|
270
|
+
userId: 'userId',
|
|
271
|
+
startOffset: 'startOffset',
|
|
272
|
+
endOffset: 'endOffset',
|
|
273
|
+
selectedText: 'selectedText',
|
|
274
|
+
color: 'color',
|
|
275
|
+
createdAt: 'createdAt',
|
|
276
|
+
updatedAt: 'updatedAt'
|
|
277
|
+
};
|
|
278
|
+
export const StudyGuideCommentScalarFieldEnum = {
|
|
279
|
+
id: 'id',
|
|
280
|
+
highlightId: 'highlightId',
|
|
281
|
+
userId: 'userId',
|
|
282
|
+
content: 'content',
|
|
283
|
+
createdAt: 'createdAt',
|
|
284
|
+
updatedAt: 'updatedAt'
|
|
285
|
+
};
|
|
286
|
+
export const FlashcardScalarFieldEnum = {
|
|
287
|
+
id: 'id',
|
|
288
|
+
artifactId: 'artifactId',
|
|
289
|
+
front: 'front',
|
|
290
|
+
back: 'back',
|
|
291
|
+
tags: 'tags',
|
|
292
|
+
order: 'order',
|
|
293
|
+
createdAt: 'createdAt',
|
|
294
|
+
acceptedAnswers: 'acceptedAnswers'
|
|
295
|
+
};
|
|
296
|
+
export const FlashcardProgressScalarFieldEnum = {
|
|
297
|
+
id: 'id',
|
|
298
|
+
userId: 'userId',
|
|
299
|
+
flashcardId: 'flashcardId',
|
|
300
|
+
timesStudied: 'timesStudied',
|
|
301
|
+
timesCorrect: 'timesCorrect',
|
|
302
|
+
timesIncorrect: 'timesIncorrect',
|
|
303
|
+
timesIncorrectConsecutive: 'timesIncorrectConsecutive',
|
|
304
|
+
easeFactor: 'easeFactor',
|
|
305
|
+
interval: 'interval',
|
|
306
|
+
repetitions: 'repetitions',
|
|
307
|
+
masteryLevel: 'masteryLevel',
|
|
308
|
+
lastStudiedAt: 'lastStudiedAt',
|
|
309
|
+
nextReviewAt: 'nextReviewAt',
|
|
310
|
+
createdAt: 'createdAt',
|
|
311
|
+
updatedAt: 'updatedAt'
|
|
312
|
+
};
|
|
313
|
+
export const WorksheetQuestionScalarFieldEnum = {
|
|
314
|
+
id: 'id',
|
|
315
|
+
artifactId: 'artifactId',
|
|
316
|
+
prompt: 'prompt',
|
|
317
|
+
answer: 'answer',
|
|
318
|
+
type: 'type',
|
|
319
|
+
difficulty: 'difficulty',
|
|
320
|
+
order: 'order',
|
|
321
|
+
meta: 'meta',
|
|
322
|
+
createdAt: 'createdAt'
|
|
323
|
+
};
|
|
324
|
+
export const WorksheetQuestionProgressScalarFieldEnum = {
|
|
325
|
+
id: 'id',
|
|
326
|
+
worksheetQuestionId: 'worksheetQuestionId',
|
|
327
|
+
userId: 'userId',
|
|
328
|
+
userAnswer: 'userAnswer',
|
|
329
|
+
completedAt: 'completedAt',
|
|
330
|
+
attempts: 'attempts',
|
|
331
|
+
timeSpentSec: 'timeSpentSec',
|
|
332
|
+
meta: 'meta',
|
|
333
|
+
createdAt: 'createdAt',
|
|
334
|
+
updatedAt: 'updatedAt',
|
|
335
|
+
correct: 'correct',
|
|
336
|
+
modified: 'modified'
|
|
337
|
+
};
|
|
338
|
+
export const WorksheetPresetScalarFieldEnum = {
|
|
339
|
+
id: 'id',
|
|
340
|
+
userId: 'userId',
|
|
341
|
+
workspaceId: 'workspaceId',
|
|
342
|
+
name: 'name',
|
|
343
|
+
isSystem: 'isSystem',
|
|
344
|
+
config: 'config',
|
|
345
|
+
createdAt: 'createdAt',
|
|
346
|
+
updatedAt: 'updatedAt'
|
|
347
|
+
};
|
|
348
|
+
export const WorkspaceMemberScalarFieldEnum = {
|
|
349
|
+
id: 'id',
|
|
350
|
+
workspaceId: 'workspaceId',
|
|
351
|
+
userId: 'userId',
|
|
352
|
+
role: 'role',
|
|
353
|
+
joinedAt: 'joinedAt',
|
|
354
|
+
updatedAt: 'updatedAt'
|
|
355
|
+
};
|
|
356
|
+
export const WorkspaceInvitationScalarFieldEnum = {
|
|
357
|
+
id: 'id',
|
|
358
|
+
workspaceId: 'workspaceId',
|
|
359
|
+
email: 'email',
|
|
360
|
+
role: 'role',
|
|
361
|
+
token: 'token',
|
|
362
|
+
invitedById: 'invitedById',
|
|
363
|
+
acceptedAt: 'acceptedAt',
|
|
364
|
+
expiresAt: 'expiresAt',
|
|
365
|
+
createdAt: 'createdAt',
|
|
366
|
+
updatedAt: 'updatedAt'
|
|
367
|
+
};
|
|
368
|
+
export const PodcastSegmentScalarFieldEnum = {
|
|
369
|
+
id: 'id',
|
|
370
|
+
artifactId: 'artifactId',
|
|
371
|
+
title: 'title',
|
|
372
|
+
content: 'content',
|
|
373
|
+
startTime: 'startTime',
|
|
374
|
+
duration: 'duration',
|
|
375
|
+
order: 'order',
|
|
376
|
+
objectKey: 'objectKey',
|
|
377
|
+
audioUrl: 'audioUrl',
|
|
378
|
+
keyPoints: 'keyPoints',
|
|
379
|
+
meta: 'meta',
|
|
380
|
+
createdAt: 'createdAt',
|
|
381
|
+
updatedAt: 'updatedAt',
|
|
382
|
+
generating: 'generating',
|
|
383
|
+
generatingMetadata: 'generatingMetadata'
|
|
384
|
+
};
|
|
385
|
+
export const InvoiceScalarFieldEnum = {
|
|
386
|
+
id: 'id',
|
|
387
|
+
userId: 'userId',
|
|
388
|
+
subscriptionId: 'subscriptionId',
|
|
389
|
+
stripeInvoiceId: 'stripeInvoiceId',
|
|
390
|
+
amountPaid: 'amountPaid',
|
|
391
|
+
status: 'status',
|
|
392
|
+
invoicePdfUrl: 'invoicePdfUrl',
|
|
393
|
+
hostedInvoiceUrl: 'hostedInvoiceUrl',
|
|
394
|
+
paidAt: 'paidAt',
|
|
395
|
+
type: 'type',
|
|
396
|
+
createdAt: 'createdAt'
|
|
397
|
+
};
|
|
398
|
+
export const PlanScalarFieldEnum = {
|
|
399
|
+
id: 'id',
|
|
400
|
+
name: 'name',
|
|
401
|
+
description: 'description',
|
|
402
|
+
type: 'type',
|
|
403
|
+
price: 'price',
|
|
404
|
+
stripePriceId: 'stripePriceId',
|
|
405
|
+
interval: 'interval',
|
|
406
|
+
active: 'active',
|
|
407
|
+
createdAt: 'createdAt'
|
|
408
|
+
};
|
|
409
|
+
export const PlanLimitScalarFieldEnum = {
|
|
410
|
+
id: 'id',
|
|
411
|
+
planId: 'planId',
|
|
412
|
+
maxStorageBytes: 'maxStorageBytes',
|
|
413
|
+
maxWorksheets: 'maxWorksheets',
|
|
414
|
+
maxFlashcards: 'maxFlashcards',
|
|
415
|
+
maxPodcasts: 'maxPodcasts',
|
|
416
|
+
maxStudyGuides: 'maxStudyGuides',
|
|
417
|
+
createdAt: 'createdAt',
|
|
418
|
+
updatedAt: 'updatedAt'
|
|
419
|
+
};
|
|
420
|
+
export const SubscriptionScalarFieldEnum = {
|
|
421
|
+
id: 'id',
|
|
422
|
+
userId: 'userId',
|
|
423
|
+
planId: 'planId',
|
|
424
|
+
stripeSubscriptionId: 'stripeSubscriptionId',
|
|
425
|
+
stripeCustomerId: 'stripeCustomerId',
|
|
426
|
+
status: 'status',
|
|
427
|
+
currentPeriodStart: 'currentPeriodStart',
|
|
428
|
+
currentPeriodEnd: 'currentPeriodEnd',
|
|
429
|
+
cancelAt: 'cancelAt',
|
|
430
|
+
canceledAt: 'canceledAt',
|
|
431
|
+
createdAt: 'createdAt'
|
|
432
|
+
};
|
|
433
|
+
export const ResourcePriceScalarFieldEnum = {
|
|
434
|
+
id: 'id',
|
|
435
|
+
resourceType: 'resourceType',
|
|
436
|
+
priceCents: 'priceCents',
|
|
437
|
+
updatedAt: 'updatedAt'
|
|
438
|
+
};
|
|
439
|
+
export const UserCreditScalarFieldEnum = {
|
|
440
|
+
id: 'id',
|
|
441
|
+
userId: 'userId',
|
|
442
|
+
resourceType: 'resourceType',
|
|
443
|
+
amount: 'amount',
|
|
444
|
+
stripeSessionId: 'stripeSessionId',
|
|
445
|
+
createdAt: 'createdAt'
|
|
446
|
+
};
|
|
447
|
+
export const IdempotencyRecordScalarFieldEnum = {
|
|
448
|
+
id: 'id',
|
|
449
|
+
userId: 'userId',
|
|
450
|
+
planId: 'planId',
|
|
451
|
+
resourceType: 'resourceType',
|
|
452
|
+
stripeSessionId: 'stripeSessionId',
|
|
453
|
+
status: 'status',
|
|
454
|
+
activeLockKey: 'activeLockKey',
|
|
455
|
+
createdAt: 'createdAt',
|
|
456
|
+
updatedAt: 'updatedAt'
|
|
457
|
+
};
|
|
458
|
+
export const StripeEventScalarFieldEnum = {
|
|
459
|
+
id: 'id',
|
|
460
|
+
stripeEventId: 'stripeEventId',
|
|
461
|
+
type: 'type',
|
|
462
|
+
status: 'status',
|
|
463
|
+
error: 'error',
|
|
464
|
+
processedAt: 'processedAt',
|
|
465
|
+
createdAt: 'createdAt',
|
|
466
|
+
updatedAt: 'updatedAt'
|
|
467
|
+
};
|
|
468
|
+
export const ActivityLogScalarFieldEnum = {
|
|
469
|
+
id: 'id',
|
|
470
|
+
createdAt: 'createdAt',
|
|
471
|
+
actorUserId: 'actorUserId',
|
|
472
|
+
actorEmailSnapshot: 'actorEmailSnapshot',
|
|
473
|
+
action: 'action',
|
|
474
|
+
category: 'category',
|
|
475
|
+
resourceType: 'resourceType',
|
|
476
|
+
resourceId: 'resourceId',
|
|
477
|
+
workspaceId: 'workspaceId',
|
|
478
|
+
trpcPath: 'trpcPath',
|
|
479
|
+
httpMethod: 'httpMethod',
|
|
480
|
+
status: 'status',
|
|
481
|
+
errorCode: 'errorCode',
|
|
482
|
+
durationMs: 'durationMs',
|
|
483
|
+
ipAddress: 'ipAddress',
|
|
484
|
+
userAgent: 'userAgent',
|
|
485
|
+
metadata: 'metadata'
|
|
486
|
+
};
|
|
487
|
+
export const KnowledgeBaseScalarFieldEnum = {
|
|
488
|
+
id: 'id',
|
|
489
|
+
createdById: 'createdById',
|
|
490
|
+
name: 'name',
|
|
491
|
+
description: 'description',
|
|
492
|
+
isCurated: 'isCurated',
|
|
493
|
+
status: 'status',
|
|
494
|
+
embeddingModel: 'embeddingModel',
|
|
495
|
+
embeddingDim: 'embeddingDim',
|
|
496
|
+
meta: 'meta',
|
|
497
|
+
createdAt: 'createdAt',
|
|
498
|
+
updatedAt: 'updatedAt'
|
|
499
|
+
};
|
|
500
|
+
export const WorkspaceKnowledgeBaseScalarFieldEnum = {
|
|
501
|
+
id: 'id',
|
|
502
|
+
workspaceId: 'workspaceId',
|
|
503
|
+
knowledgeBaseId: 'knowledgeBaseId',
|
|
504
|
+
addedById: 'addedById',
|
|
505
|
+
createdAt: 'createdAt'
|
|
506
|
+
};
|
|
507
|
+
export const KnowledgeBaseDocumentScalarFieldEnum = {
|
|
508
|
+
id: 'id',
|
|
509
|
+
knowledgeBaseId: 'knowledgeBaseId',
|
|
510
|
+
name: 'name',
|
|
511
|
+
mimeType: 'mimeType',
|
|
512
|
+
size: 'size',
|
|
513
|
+
bucket: 'bucket',
|
|
514
|
+
objectKey: 'objectKey',
|
|
515
|
+
status: 'status',
|
|
516
|
+
errorMessage: 'errorMessage',
|
|
517
|
+
numChunks: 'numChunks',
|
|
518
|
+
numPages: 'numPages',
|
|
519
|
+
meta: 'meta',
|
|
520
|
+
createdAt: 'createdAt',
|
|
521
|
+
updatedAt: 'updatedAt'
|
|
522
|
+
};
|
|
523
|
+
export const KnowledgeBaseChunkScalarFieldEnum = {
|
|
524
|
+
id: 'id',
|
|
525
|
+
documentId: 'documentId',
|
|
526
|
+
knowledgeBaseId: 'knowledgeBaseId',
|
|
527
|
+
chunkIndex: 'chunkIndex',
|
|
528
|
+
pageNumber: 'pageNumber',
|
|
529
|
+
content: 'content',
|
|
530
|
+
tokenCount: 'tokenCount',
|
|
531
|
+
createdAt: 'createdAt'
|
|
532
|
+
};
|
|
533
|
+
export const SortOrder = {
|
|
534
|
+
asc: 'asc',
|
|
535
|
+
desc: 'desc'
|
|
536
|
+
};
|
|
537
|
+
export const NullableJsonNullValueInput = {
|
|
538
|
+
DbNull: DbNull,
|
|
539
|
+
JsonNull: JsonNull
|
|
540
|
+
};
|
|
541
|
+
export const JsonNullValueInput = {
|
|
542
|
+
JsonNull: JsonNull
|
|
543
|
+
};
|
|
544
|
+
export const QueryMode = {
|
|
545
|
+
default: 'default',
|
|
546
|
+
insensitive: 'insensitive'
|
|
547
|
+
};
|
|
548
|
+
export const NullsOrder = {
|
|
549
|
+
first: 'first',
|
|
550
|
+
last: 'last'
|
|
551
|
+
};
|
|
552
|
+
export const JsonNullValueFilter = {
|
|
553
|
+
DbNull: DbNull,
|
|
554
|
+
JsonNull: JsonNull,
|
|
555
|
+
AnyNull: AnyNull
|
|
556
|
+
};
|
|
557
|
+
export const defineExtension = runtime.Extensions.defineExtension;
|