@allbluecn/database 0.14.11 → 0.14.13
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/generated/browser.ts +5 -0
- package/generated/client.ts +5 -0
- package/generated/internal/class.ts +14 -4
- package/generated/internal/prismaNamespace.ts +72 -1
- package/generated/internal/prismaNamespaceBrowser.ts +12 -0
- package/generated/models/MemoryFact.ts +973 -0
- package/generated/models.ts +1 -0
- package/index.ts +9 -11
- package/migrations/20261129000000_add_hnsw_vector_indexes/migration.sql +15 -0
- package/package.json +2 -7
- package/schema.prisma +16 -0
- package/cf-env-stub.ts +0 -4
- package/cf-env.ts +0 -25
- package/cloudflare-workers.d.ts +0 -6
|
@@ -530,6 +530,7 @@ export const ModelName = {
|
|
|
530
530
|
AiTaskRun: 'AiTaskRun',
|
|
531
531
|
KnowledgeEmbedding: 'KnowledgeEmbedding',
|
|
532
532
|
DesignEmbedding: 'DesignEmbedding',
|
|
533
|
+
MemoryFact: 'MemoryFact',
|
|
533
534
|
HarnessLogHeader: 'HarnessLogHeader',
|
|
534
535
|
HarnessLogEntry: 'HarnessLogEntry',
|
|
535
536
|
HarnessLogOffer: 'HarnessLogOffer',
|
|
@@ -571,7 +572,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
571
572
|
omit: GlobalOmitOptions
|
|
572
573
|
}
|
|
573
574
|
meta: {
|
|
574
|
-
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "chatPersistenceMeta" | "harnessPlugin" | "systemPromptTemplate" | "systemPromptVersion" | "businessAgentBinding" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "emailVerificationToken" | "emailLog" | "emailPreference" | "oAuthProviderConfig" | "emailSubscriber" | "knowledgeBase" | "knowledgeDocument" | "design" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "designPage" | "componentInstance" | "blockInstance" | "designVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "projectKnowledgeBase" | "workspaceKnowledgeBase" | "workspaceQuickDoc" | "storyLink" | "storyAttachment" | "storyDesignLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule" | "codeSnippet" | "sandboxInstance" | "aiStreamChunk" | "desktopSetting" | "harnessWorkspace" | "workspaceFile" | "blob" | "bug" | "bugEvent" | "bugActivity" | "bugComment" | "bugCommentReaction" | "projectAccessToken" | "bugFixRun" | "bugReproRun" | "projectWebhook" | "bugProjectSettings" | "bugLabel" | "bugFilterView" | "testCase" | "testCaseFolder" | "testCaseFilterView" | "testGenerationRun" | "testPlan" | "testPlanCase" | "testRun" | "testRunCase" | "testExecRun" | "testAutomationArtifact" | "collabDocument" | "collabUpdate" | "collabClient" | "aiTask" | "aiTaskRun" | "knowledgeEmbedding" | "designEmbedding" | "harnessLogHeader" | "harnessLogEntry" | "harnessLogOffer" | "harnessLogSnapshot" | "harnessHostHeartbeat" | "harnessMetadata" | "harnessBlob" | "harnessArtifact" | "harnessSession" | "harnessSchedule" | "harnessScheduleOccurrence" | "harnessOutbox" | "harnessWebhookRule" | "harnessWebhookDelivery" | "harnessFeedback" | "harnessMcpServer" | "harnessSshHost" | "harnessConnectorAccount" | "harnessSessionSearchDocument" | "harnessSessionSearchToken" | "harnessForgeBinding" | "harnessWorktree" | "harnessPluginMarketSource" | "harnessPluginVersionExemption" | "harnessTelemetrySettings" | "harnessTelemetryUpload"
|
|
575
|
+
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "chatPersistenceMeta" | "harnessPlugin" | "systemPromptTemplate" | "systemPromptVersion" | "businessAgentBinding" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "emailVerificationToken" | "emailLog" | "emailPreference" | "oAuthProviderConfig" | "emailSubscriber" | "knowledgeBase" | "knowledgeDocument" | "design" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "designPage" | "componentInstance" | "blockInstance" | "designVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "projectKnowledgeBase" | "workspaceKnowledgeBase" | "workspaceQuickDoc" | "storyLink" | "storyAttachment" | "storyDesignLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule" | "codeSnippet" | "sandboxInstance" | "aiStreamChunk" | "desktopSetting" | "harnessWorkspace" | "workspaceFile" | "blob" | "bug" | "bugEvent" | "bugActivity" | "bugComment" | "bugCommentReaction" | "projectAccessToken" | "bugFixRun" | "bugReproRun" | "projectWebhook" | "bugProjectSettings" | "bugLabel" | "bugFilterView" | "testCase" | "testCaseFolder" | "testCaseFilterView" | "testGenerationRun" | "testPlan" | "testPlanCase" | "testRun" | "testRunCase" | "testExecRun" | "testAutomationArtifact" | "collabDocument" | "collabUpdate" | "collabClient" | "aiTask" | "aiTaskRun" | "knowledgeEmbedding" | "designEmbedding" | "memoryFact" | "harnessLogHeader" | "harnessLogEntry" | "harnessLogOffer" | "harnessLogSnapshot" | "harnessHostHeartbeat" | "harnessMetadata" | "harnessBlob" | "harnessArtifact" | "harnessSession" | "harnessSchedule" | "harnessScheduleOccurrence" | "harnessOutbox" | "harnessWebhookRule" | "harnessWebhookDelivery" | "harnessFeedback" | "harnessMcpServer" | "harnessSshHost" | "harnessConnectorAccount" | "harnessSessionSearchDocument" | "harnessSessionSearchToken" | "harnessForgeBinding" | "harnessWorktree" | "harnessPluginMarketSource" | "harnessPluginVersionExemption" | "harnessTelemetrySettings" | "harnessTelemetryUpload"
|
|
575
576
|
txIsolationLevel: TransactionIsolationLevel
|
|
576
577
|
}
|
|
577
578
|
model: {
|
|
@@ -11347,6 +11348,64 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
11347
11348
|
}
|
|
11348
11349
|
}
|
|
11349
11350
|
}
|
|
11351
|
+
MemoryFact: {
|
|
11352
|
+
payload: Prisma.$MemoryFactPayload<ExtArgs>
|
|
11353
|
+
fields: Prisma.MemoryFactFieldRefs
|
|
11354
|
+
operations: {
|
|
11355
|
+
findUnique: {
|
|
11356
|
+
args: Prisma.MemoryFactFindUniqueArgs<ExtArgs>
|
|
11357
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload> | null
|
|
11358
|
+
}
|
|
11359
|
+
findUniqueOrThrow: {
|
|
11360
|
+
args: Prisma.MemoryFactFindUniqueOrThrowArgs<ExtArgs>
|
|
11361
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>
|
|
11362
|
+
}
|
|
11363
|
+
findFirst: {
|
|
11364
|
+
args: Prisma.MemoryFactFindFirstArgs<ExtArgs>
|
|
11365
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload> | null
|
|
11366
|
+
}
|
|
11367
|
+
findFirstOrThrow: {
|
|
11368
|
+
args: Prisma.MemoryFactFindFirstOrThrowArgs<ExtArgs>
|
|
11369
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>
|
|
11370
|
+
}
|
|
11371
|
+
findMany: {
|
|
11372
|
+
args: Prisma.MemoryFactFindManyArgs<ExtArgs>
|
|
11373
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>[]
|
|
11374
|
+
}
|
|
11375
|
+
delete: {
|
|
11376
|
+
args: Prisma.MemoryFactDeleteArgs<ExtArgs>
|
|
11377
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>
|
|
11378
|
+
}
|
|
11379
|
+
update: {
|
|
11380
|
+
args: Prisma.MemoryFactUpdateArgs<ExtArgs>
|
|
11381
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>
|
|
11382
|
+
}
|
|
11383
|
+
deleteMany: {
|
|
11384
|
+
args: Prisma.MemoryFactDeleteManyArgs<ExtArgs>
|
|
11385
|
+
result: BatchPayload
|
|
11386
|
+
}
|
|
11387
|
+
updateMany: {
|
|
11388
|
+
args: Prisma.MemoryFactUpdateManyArgs<ExtArgs>
|
|
11389
|
+
result: BatchPayload
|
|
11390
|
+
}
|
|
11391
|
+
updateManyAndReturn: {
|
|
11392
|
+
args: Prisma.MemoryFactUpdateManyAndReturnArgs<ExtArgs>
|
|
11393
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$MemoryFactPayload>[]
|
|
11394
|
+
}
|
|
11395
|
+
aggregate: {
|
|
11396
|
+
args: Prisma.MemoryFactAggregateArgs<ExtArgs>
|
|
11397
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateMemoryFact>
|
|
11398
|
+
}
|
|
11399
|
+
groupBy: {
|
|
11400
|
+
args: Prisma.MemoryFactGroupByArgs<ExtArgs>
|
|
11401
|
+
result: runtime.Types.Utils.Optional<Prisma.MemoryFactGroupByOutputType>[]
|
|
11402
|
+
}
|
|
11403
|
+
count: {
|
|
11404
|
+
args: Prisma.MemoryFactCountArgs<ExtArgs>
|
|
11405
|
+
result: runtime.Types.Utils.Optional<Prisma.MemoryFactCountAggregateOutputType> | number
|
|
11406
|
+
}
|
|
11407
|
+
}
|
|
11408
|
+
}
|
|
11350
11409
|
HarnessLogHeader: {
|
|
11351
11410
|
payload: Prisma.$HarnessLogHeaderPayload<ExtArgs>
|
|
11352
11411
|
fields: Prisma.HarnessLogHeaderFieldRefs
|
|
@@ -15600,6 +15659,17 @@ export const DesignEmbeddingScalarFieldEnum = {
|
|
|
15600
15659
|
export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
|
|
15601
15660
|
|
|
15602
15661
|
|
|
15662
|
+
export const MemoryFactScalarFieldEnum = {
|
|
15663
|
+
id: 'id',
|
|
15664
|
+
userId: 'userId',
|
|
15665
|
+
threadId: 'threadId',
|
|
15666
|
+
content: 'content',
|
|
15667
|
+
createdAt: 'createdAt'
|
|
15668
|
+
} as const
|
|
15669
|
+
|
|
15670
|
+
export type MemoryFactScalarFieldEnum = (typeof MemoryFactScalarFieldEnum)[keyof typeof MemoryFactScalarFieldEnum]
|
|
15671
|
+
|
|
15672
|
+
|
|
15603
15673
|
export const HarnessLogHeaderScalarFieldEnum = {
|
|
15604
15674
|
logId: 'logId',
|
|
15605
15675
|
harness: 'harness',
|
|
@@ -16597,6 +16667,7 @@ export type GlobalOmitConfig = {
|
|
|
16597
16667
|
aiTaskRun?: Prisma.AiTaskRunOmit
|
|
16598
16668
|
knowledgeEmbedding?: Prisma.KnowledgeEmbeddingOmit
|
|
16599
16669
|
designEmbedding?: Prisma.DesignEmbeddingOmit
|
|
16670
|
+
memoryFact?: Prisma.MemoryFactOmit
|
|
16600
16671
|
harnessLogHeader?: Prisma.HarnessLogHeaderOmit
|
|
16601
16672
|
harnessLogEntry?: Prisma.HarnessLogEntryOmit
|
|
16602
16673
|
harnessLogOffer?: Prisma.HarnessLogOfferOmit
|
|
@@ -197,6 +197,7 @@ export const ModelName = {
|
|
|
197
197
|
AiTaskRun: 'AiTaskRun',
|
|
198
198
|
KnowledgeEmbedding: 'KnowledgeEmbedding',
|
|
199
199
|
DesignEmbedding: 'DesignEmbedding',
|
|
200
|
+
MemoryFact: 'MemoryFact',
|
|
200
201
|
HarnessLogHeader: 'HarnessLogHeader',
|
|
201
202
|
HarnessLogEntry: 'HarnessLogEntry',
|
|
202
203
|
HarnessLogOffer: 'HarnessLogOffer',
|
|
@@ -2531,6 +2532,17 @@ export const DesignEmbeddingScalarFieldEnum = {
|
|
|
2531
2532
|
export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
|
|
2532
2533
|
|
|
2533
2534
|
|
|
2535
|
+
export const MemoryFactScalarFieldEnum = {
|
|
2536
|
+
id: 'id',
|
|
2537
|
+
userId: 'userId',
|
|
2538
|
+
threadId: 'threadId',
|
|
2539
|
+
content: 'content',
|
|
2540
|
+
createdAt: 'createdAt'
|
|
2541
|
+
} as const
|
|
2542
|
+
|
|
2543
|
+
export type MemoryFactScalarFieldEnum = (typeof MemoryFactScalarFieldEnum)[keyof typeof MemoryFactScalarFieldEnum]
|
|
2544
|
+
|
|
2545
|
+
|
|
2534
2546
|
export const HarnessLogHeaderScalarFieldEnum = {
|
|
2535
2547
|
logId: 'logId',
|
|
2536
2548
|
harness: 'harness',
|