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