@allbluecn/database 0.9.4 → 0.10.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.
@@ -527,7 +527,9 @@ export const ModelName = {
527
527
  CollabUpdate: 'CollabUpdate',
528
528
  CollabClient: 'CollabClient',
529
529
  AiTask: 'AiTask',
530
- AiTaskRun: 'AiTaskRun'
530
+ AiTaskRun: 'AiTaskRun',
531
+ KnowledgeEmbedding: 'KnowledgeEmbedding',
532
+ DesignEmbedding: 'DesignEmbedding'
531
533
  } as const
532
534
 
533
535
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -543,7 +545,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
543
545
  omit: GlobalOmitOptions
544
546
  }
545
547
  meta: {
546
- 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"
548
+ 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"
547
549
  txIsolationLevel: TransactionIsolationLevel
548
550
  }
549
551
  model: {
@@ -11203,6 +11205,122 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
11203
11205
  }
11204
11206
  }
11205
11207
  }
11208
+ KnowledgeEmbedding: {
11209
+ payload: Prisma.$KnowledgeEmbeddingPayload<ExtArgs>
11210
+ fields: Prisma.KnowledgeEmbeddingFieldRefs
11211
+ operations: {
11212
+ findUnique: {
11213
+ args: Prisma.KnowledgeEmbeddingFindUniqueArgs<ExtArgs>
11214
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload> | null
11215
+ }
11216
+ findUniqueOrThrow: {
11217
+ args: Prisma.KnowledgeEmbeddingFindUniqueOrThrowArgs<ExtArgs>
11218
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>
11219
+ }
11220
+ findFirst: {
11221
+ args: Prisma.KnowledgeEmbeddingFindFirstArgs<ExtArgs>
11222
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload> | null
11223
+ }
11224
+ findFirstOrThrow: {
11225
+ args: Prisma.KnowledgeEmbeddingFindFirstOrThrowArgs<ExtArgs>
11226
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>
11227
+ }
11228
+ findMany: {
11229
+ args: Prisma.KnowledgeEmbeddingFindManyArgs<ExtArgs>
11230
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>[]
11231
+ }
11232
+ delete: {
11233
+ args: Prisma.KnowledgeEmbeddingDeleteArgs<ExtArgs>
11234
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>
11235
+ }
11236
+ update: {
11237
+ args: Prisma.KnowledgeEmbeddingUpdateArgs<ExtArgs>
11238
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>
11239
+ }
11240
+ deleteMany: {
11241
+ args: Prisma.KnowledgeEmbeddingDeleteManyArgs<ExtArgs>
11242
+ result: BatchPayload
11243
+ }
11244
+ updateMany: {
11245
+ args: Prisma.KnowledgeEmbeddingUpdateManyArgs<ExtArgs>
11246
+ result: BatchPayload
11247
+ }
11248
+ updateManyAndReturn: {
11249
+ args: Prisma.KnowledgeEmbeddingUpdateManyAndReturnArgs<ExtArgs>
11250
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$KnowledgeEmbeddingPayload>[]
11251
+ }
11252
+ aggregate: {
11253
+ args: Prisma.KnowledgeEmbeddingAggregateArgs<ExtArgs>
11254
+ result: runtime.Types.Utils.Optional<Prisma.AggregateKnowledgeEmbedding>
11255
+ }
11256
+ groupBy: {
11257
+ args: Prisma.KnowledgeEmbeddingGroupByArgs<ExtArgs>
11258
+ result: runtime.Types.Utils.Optional<Prisma.KnowledgeEmbeddingGroupByOutputType>[]
11259
+ }
11260
+ count: {
11261
+ args: Prisma.KnowledgeEmbeddingCountArgs<ExtArgs>
11262
+ result: runtime.Types.Utils.Optional<Prisma.KnowledgeEmbeddingCountAggregateOutputType> | number
11263
+ }
11264
+ }
11265
+ }
11266
+ DesignEmbedding: {
11267
+ payload: Prisma.$DesignEmbeddingPayload<ExtArgs>
11268
+ fields: Prisma.DesignEmbeddingFieldRefs
11269
+ operations: {
11270
+ findUnique: {
11271
+ args: Prisma.DesignEmbeddingFindUniqueArgs<ExtArgs>
11272
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload> | null
11273
+ }
11274
+ findUniqueOrThrow: {
11275
+ args: Prisma.DesignEmbeddingFindUniqueOrThrowArgs<ExtArgs>
11276
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>
11277
+ }
11278
+ findFirst: {
11279
+ args: Prisma.DesignEmbeddingFindFirstArgs<ExtArgs>
11280
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload> | null
11281
+ }
11282
+ findFirstOrThrow: {
11283
+ args: Prisma.DesignEmbeddingFindFirstOrThrowArgs<ExtArgs>
11284
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>
11285
+ }
11286
+ findMany: {
11287
+ args: Prisma.DesignEmbeddingFindManyArgs<ExtArgs>
11288
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>[]
11289
+ }
11290
+ delete: {
11291
+ args: Prisma.DesignEmbeddingDeleteArgs<ExtArgs>
11292
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>
11293
+ }
11294
+ update: {
11295
+ args: Prisma.DesignEmbeddingUpdateArgs<ExtArgs>
11296
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>
11297
+ }
11298
+ deleteMany: {
11299
+ args: Prisma.DesignEmbeddingDeleteManyArgs<ExtArgs>
11300
+ result: BatchPayload
11301
+ }
11302
+ updateMany: {
11303
+ args: Prisma.DesignEmbeddingUpdateManyArgs<ExtArgs>
11304
+ result: BatchPayload
11305
+ }
11306
+ updateManyAndReturn: {
11307
+ args: Prisma.DesignEmbeddingUpdateManyAndReturnArgs<ExtArgs>
11308
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$DesignEmbeddingPayload>[]
11309
+ }
11310
+ aggregate: {
11311
+ args: Prisma.DesignEmbeddingAggregateArgs<ExtArgs>
11312
+ result: runtime.Types.Utils.Optional<Prisma.AggregateDesignEmbedding>
11313
+ }
11314
+ groupBy: {
11315
+ args: Prisma.DesignEmbeddingGroupByArgs<ExtArgs>
11316
+ result: runtime.Types.Utils.Optional<Prisma.DesignEmbeddingGroupByOutputType>[]
11317
+ }
11318
+ count: {
11319
+ args: Prisma.DesignEmbeddingCountArgs<ExtArgs>
11320
+ result: runtime.Types.Utils.Optional<Prisma.DesignEmbeddingCountAggregateOutputType> | number
11321
+ }
11322
+ }
11323
+ }
11206
11324
  }
11207
11325
  } & {
11208
11326
  other: {
@@ -11264,6 +11382,7 @@ export const UserScalarFieldEnum = {
11264
11382
  image: 'image',
11265
11383
  role: 'role',
11266
11384
  status: 'status',
11385
+ tokenVersion: 'tokenVersion',
11267
11386
  createdAt: 'createdAt',
11268
11387
  updatedAt: 'updatedAt',
11269
11388
  lastLoginAt: 'lastLoginAt',
@@ -12198,6 +12317,7 @@ export const LegalRegulationScalarFieldEnum = {
12198
12317
  id: 'id',
12199
12318
  canonicalId: 'canonicalId',
12200
12319
  title: 'title',
12320
+ code: 'code',
12201
12321
  jurisdiction: 'jurisdiction',
12202
12322
  region: 'region',
12203
12323
  country: 'country',
@@ -13488,6 +13608,27 @@ export const AiTaskRunScalarFieldEnum = {
13488
13608
  export type AiTaskRunScalarFieldEnum = (typeof AiTaskRunScalarFieldEnum)[keyof typeof AiTaskRunScalarFieldEnum]
13489
13609
 
13490
13610
 
13611
+ export const KnowledgeEmbeddingScalarFieldEnum = {
13612
+ id: 'id',
13613
+ content: 'content',
13614
+ kbId: 'kbId',
13615
+ documentId: 'documentId',
13616
+ chunkIndex: 'chunkIndex'
13617
+ } as const
13618
+
13619
+ export type KnowledgeEmbeddingScalarFieldEnum = (typeof KnowledgeEmbeddingScalarFieldEnum)[keyof typeof KnowledgeEmbeddingScalarFieldEnum]
13620
+
13621
+
13622
+ export const DesignEmbeddingScalarFieldEnum = {
13623
+ id: 'id',
13624
+ content: 'content',
13625
+ designPageId: 'designPageId',
13626
+ chunkIndex: 'chunkIndex'
13627
+ } as const
13628
+
13629
+ export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
13630
+
13631
+
13491
13632
  export const SortOrder = {
13492
13633
  asc: 'asc',
13493
13634
  desc: 'desc'
@@ -13599,30 +13740,30 @@ export type ListEnumUserStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$P
13599
13740
 
13600
13741
 
13601
13742
  /**
13602
- * Reference to a field of type 'Json'
13743
+ * Reference to a field of type 'Int'
13603
13744
  */
13604
- export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
13745
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
13605
13746
 
13606
13747
 
13607
13748
 
13608
13749
  /**
13609
- * Reference to a field of type 'QueryMode'
13750
+ * Reference to a field of type 'Int[]'
13610
13751
  */
13611
- export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
13752
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
13612
13753
 
13613
13754
 
13614
13755
 
13615
13756
  /**
13616
- * Reference to a field of type 'Int'
13757
+ * Reference to a field of type 'Json'
13617
13758
  */
13618
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
13759
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
13619
13760
 
13620
13761
 
13621
13762
 
13622
13763
  /**
13623
- * Reference to a field of type 'Int[]'
13764
+ * Reference to a field of type 'QueryMode'
13624
13765
  */
13625
- export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
13766
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
13626
13767
 
13627
13768
 
13628
13769
 
@@ -14054,6 +14195,8 @@ export type GlobalOmitConfig = {
14054
14195
  collabClient?: Prisma.CollabClientOmit
14055
14196
  aiTask?: Prisma.AiTaskOmit
14056
14197
  aiTaskRun?: Prisma.AiTaskRunOmit
14198
+ knowledgeEmbedding?: Prisma.KnowledgeEmbeddingOmit
14199
+ designEmbedding?: Prisma.DesignEmbeddingOmit
14057
14200
  }
14058
14201
 
14059
14202
  /* Types for Logging */
@@ -194,7 +194,9 @@ export const ModelName = {
194
194
  CollabUpdate: 'CollabUpdate',
195
195
  CollabClient: 'CollabClient',
196
196
  AiTask: 'AiTask',
197
- AiTaskRun: 'AiTaskRun'
197
+ AiTaskRun: 'AiTaskRun',
198
+ KnowledgeEmbedding: 'KnowledgeEmbedding',
199
+ DesignEmbedding: 'DesignEmbedding'
198
200
  } as const
199
201
 
200
202
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -235,6 +237,7 @@ export const UserScalarFieldEnum = {
235
237
  image: 'image',
236
238
  role: 'role',
237
239
  status: 'status',
240
+ tokenVersion: 'tokenVersion',
238
241
  createdAt: 'createdAt',
239
242
  updatedAt: 'updatedAt',
240
243
  lastLoginAt: 'lastLoginAt',
@@ -1169,6 +1172,7 @@ export const LegalRegulationScalarFieldEnum = {
1169
1172
  id: 'id',
1170
1173
  canonicalId: 'canonicalId',
1171
1174
  title: 'title',
1175
+ code: 'code',
1172
1176
  jurisdiction: 'jurisdiction',
1173
1177
  region: 'region',
1174
1178
  country: 'country',
@@ -2459,6 +2463,27 @@ export const AiTaskRunScalarFieldEnum = {
2459
2463
  export type AiTaskRunScalarFieldEnum = (typeof AiTaskRunScalarFieldEnum)[keyof typeof AiTaskRunScalarFieldEnum]
2460
2464
 
2461
2465
 
2466
+ export const KnowledgeEmbeddingScalarFieldEnum = {
2467
+ id: 'id',
2468
+ content: 'content',
2469
+ kbId: 'kbId',
2470
+ documentId: 'documentId',
2471
+ chunkIndex: 'chunkIndex'
2472
+ } as const
2473
+
2474
+ export type KnowledgeEmbeddingScalarFieldEnum = (typeof KnowledgeEmbeddingScalarFieldEnum)[keyof typeof KnowledgeEmbeddingScalarFieldEnum]
2475
+
2476
+
2477
+ export const DesignEmbeddingScalarFieldEnum = {
2478
+ id: 'id',
2479
+ content: 'content',
2480
+ designPageId: 'designPageId',
2481
+ chunkIndex: 'chunkIndex'
2482
+ } as const
2483
+
2484
+ export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
2485
+
2486
+
2462
2487
  export const SortOrder = {
2463
2488
  asc: 'asc',
2464
2489
  desc: 'desc'