@allbluecn/database 0.14.10 → 0.14.12

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.
@@ -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',
@@ -542,6 +543,8 @@ export const ModelName = {
542
543
  HarnessSchedule: 'HarnessSchedule',
543
544
  HarnessScheduleOccurrence: 'HarnessScheduleOccurrence',
544
545
  HarnessOutbox: 'HarnessOutbox',
546
+ HarnessWebhookRule: 'HarnessWebhookRule',
547
+ HarnessWebhookDelivery: 'HarnessWebhookDelivery',
545
548
  HarnessFeedback: 'HarnessFeedback',
546
549
  HarnessMcpServer: 'HarnessMcpServer',
547
550
  HarnessSshHost: 'HarnessSshHost',
@@ -569,7 +572,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
569
572
  omit: GlobalOmitOptions
570
573
  }
571
574
  meta: {
572
- 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" | "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"
573
576
  txIsolationLevel: TransactionIsolationLevel
574
577
  }
575
578
  model: {
@@ -11345,6 +11348,64 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
11345
11348
  }
11346
11349
  }
11347
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
+ }
11348
11409
  HarnessLogHeader: {
11349
11410
  payload: Prisma.$HarnessLogHeaderPayload<ExtArgs>
11350
11411
  fields: Prisma.HarnessLogHeaderFieldRefs
@@ -12233,6 +12294,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
12233
12294
  }
12234
12295
  }
12235
12296
  }
12297
+ HarnessWebhookRule: {
12298
+ payload: Prisma.$HarnessWebhookRulePayload<ExtArgs>
12299
+ fields: Prisma.HarnessWebhookRuleFieldRefs
12300
+ operations: {
12301
+ findUnique: {
12302
+ args: Prisma.HarnessWebhookRuleFindUniqueArgs<ExtArgs>
12303
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload> | null
12304
+ }
12305
+ findUniqueOrThrow: {
12306
+ args: Prisma.HarnessWebhookRuleFindUniqueOrThrowArgs<ExtArgs>
12307
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12308
+ }
12309
+ findFirst: {
12310
+ args: Prisma.HarnessWebhookRuleFindFirstArgs<ExtArgs>
12311
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload> | null
12312
+ }
12313
+ findFirstOrThrow: {
12314
+ args: Prisma.HarnessWebhookRuleFindFirstOrThrowArgs<ExtArgs>
12315
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12316
+ }
12317
+ findMany: {
12318
+ args: Prisma.HarnessWebhookRuleFindManyArgs<ExtArgs>
12319
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>[]
12320
+ }
12321
+ create: {
12322
+ args: Prisma.HarnessWebhookRuleCreateArgs<ExtArgs>
12323
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12324
+ }
12325
+ createMany: {
12326
+ args: Prisma.HarnessWebhookRuleCreateManyArgs<ExtArgs>
12327
+ result: BatchPayload
12328
+ }
12329
+ createManyAndReturn: {
12330
+ args: Prisma.HarnessWebhookRuleCreateManyAndReturnArgs<ExtArgs>
12331
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>[]
12332
+ }
12333
+ delete: {
12334
+ args: Prisma.HarnessWebhookRuleDeleteArgs<ExtArgs>
12335
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12336
+ }
12337
+ update: {
12338
+ args: Prisma.HarnessWebhookRuleUpdateArgs<ExtArgs>
12339
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12340
+ }
12341
+ deleteMany: {
12342
+ args: Prisma.HarnessWebhookRuleDeleteManyArgs<ExtArgs>
12343
+ result: BatchPayload
12344
+ }
12345
+ updateMany: {
12346
+ args: Prisma.HarnessWebhookRuleUpdateManyArgs<ExtArgs>
12347
+ result: BatchPayload
12348
+ }
12349
+ updateManyAndReturn: {
12350
+ args: Prisma.HarnessWebhookRuleUpdateManyAndReturnArgs<ExtArgs>
12351
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>[]
12352
+ }
12353
+ upsert: {
12354
+ args: Prisma.HarnessWebhookRuleUpsertArgs<ExtArgs>
12355
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookRulePayload>
12356
+ }
12357
+ aggregate: {
12358
+ args: Prisma.HarnessWebhookRuleAggregateArgs<ExtArgs>
12359
+ result: runtime.Types.Utils.Optional<Prisma.AggregateHarnessWebhookRule>
12360
+ }
12361
+ groupBy: {
12362
+ args: Prisma.HarnessWebhookRuleGroupByArgs<ExtArgs>
12363
+ result: runtime.Types.Utils.Optional<Prisma.HarnessWebhookRuleGroupByOutputType>[]
12364
+ }
12365
+ count: {
12366
+ args: Prisma.HarnessWebhookRuleCountArgs<ExtArgs>
12367
+ result: runtime.Types.Utils.Optional<Prisma.HarnessWebhookRuleCountAggregateOutputType> | number
12368
+ }
12369
+ }
12370
+ }
12371
+ HarnessWebhookDelivery: {
12372
+ payload: Prisma.$HarnessWebhookDeliveryPayload<ExtArgs>
12373
+ fields: Prisma.HarnessWebhookDeliveryFieldRefs
12374
+ operations: {
12375
+ findUnique: {
12376
+ args: Prisma.HarnessWebhookDeliveryFindUniqueArgs<ExtArgs>
12377
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload> | null
12378
+ }
12379
+ findUniqueOrThrow: {
12380
+ args: Prisma.HarnessWebhookDeliveryFindUniqueOrThrowArgs<ExtArgs>
12381
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12382
+ }
12383
+ findFirst: {
12384
+ args: Prisma.HarnessWebhookDeliveryFindFirstArgs<ExtArgs>
12385
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload> | null
12386
+ }
12387
+ findFirstOrThrow: {
12388
+ args: Prisma.HarnessWebhookDeliveryFindFirstOrThrowArgs<ExtArgs>
12389
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12390
+ }
12391
+ findMany: {
12392
+ args: Prisma.HarnessWebhookDeliveryFindManyArgs<ExtArgs>
12393
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>[]
12394
+ }
12395
+ create: {
12396
+ args: Prisma.HarnessWebhookDeliveryCreateArgs<ExtArgs>
12397
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12398
+ }
12399
+ createMany: {
12400
+ args: Prisma.HarnessWebhookDeliveryCreateManyArgs<ExtArgs>
12401
+ result: BatchPayload
12402
+ }
12403
+ createManyAndReturn: {
12404
+ args: Prisma.HarnessWebhookDeliveryCreateManyAndReturnArgs<ExtArgs>
12405
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>[]
12406
+ }
12407
+ delete: {
12408
+ args: Prisma.HarnessWebhookDeliveryDeleteArgs<ExtArgs>
12409
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12410
+ }
12411
+ update: {
12412
+ args: Prisma.HarnessWebhookDeliveryUpdateArgs<ExtArgs>
12413
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12414
+ }
12415
+ deleteMany: {
12416
+ args: Prisma.HarnessWebhookDeliveryDeleteManyArgs<ExtArgs>
12417
+ result: BatchPayload
12418
+ }
12419
+ updateMany: {
12420
+ args: Prisma.HarnessWebhookDeliveryUpdateManyArgs<ExtArgs>
12421
+ result: BatchPayload
12422
+ }
12423
+ updateManyAndReturn: {
12424
+ args: Prisma.HarnessWebhookDeliveryUpdateManyAndReturnArgs<ExtArgs>
12425
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>[]
12426
+ }
12427
+ upsert: {
12428
+ args: Prisma.HarnessWebhookDeliveryUpsertArgs<ExtArgs>
12429
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$HarnessWebhookDeliveryPayload>
12430
+ }
12431
+ aggregate: {
12432
+ args: Prisma.HarnessWebhookDeliveryAggregateArgs<ExtArgs>
12433
+ result: runtime.Types.Utils.Optional<Prisma.AggregateHarnessWebhookDelivery>
12434
+ }
12435
+ groupBy: {
12436
+ args: Prisma.HarnessWebhookDeliveryGroupByArgs<ExtArgs>
12437
+ result: runtime.Types.Utils.Optional<Prisma.HarnessWebhookDeliveryGroupByOutputType>[]
12438
+ }
12439
+ count: {
12440
+ args: Prisma.HarnessWebhookDeliveryCountArgs<ExtArgs>
12441
+ result: runtime.Types.Utils.Optional<Prisma.HarnessWebhookDeliveryCountAggregateOutputType> | number
12442
+ }
12443
+ }
12444
+ }
12236
12445
  HarnessFeedback: {
12237
12446
  payload: Prisma.$HarnessFeedbackPayload<ExtArgs>
12238
12447
  fields: Prisma.HarnessFeedbackFieldRefs
@@ -15450,6 +15659,17 @@ export const DesignEmbeddingScalarFieldEnum = {
15450
15659
  export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
15451
15660
 
15452
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
+
15453
15673
  export const HarnessLogHeaderScalarFieldEnum = {
15454
15674
  logId: 'logId',
15455
15675
  harness: 'harness',
@@ -15641,6 +15861,56 @@ export const HarnessOutboxScalarFieldEnum = {
15641
15861
  export type HarnessOutboxScalarFieldEnum = (typeof HarnessOutboxScalarFieldEnum)[keyof typeof HarnessOutboxScalarFieldEnum]
15642
15862
 
15643
15863
 
15864
+ export const HarnessWebhookRuleScalarFieldEnum = {
15865
+ id: 'id',
15866
+ userId: 'userId',
15867
+ token: 'token',
15868
+ name: 'name',
15869
+ provider: 'provider',
15870
+ threadId: 'threadId',
15871
+ workspaceId: 'workspaceId',
15872
+ prompt: 'prompt',
15873
+ secretCipher: 'secretCipher',
15874
+ secretHint: 'secretHint',
15875
+ events: 'events',
15876
+ repoWhitelist: 'repoWhitelist',
15877
+ ownerWhitelist: 'ownerWhitelist',
15878
+ status: 'status',
15879
+ executionPlane: 'executionPlane',
15880
+ lastDeliveryAt: 'lastDeliveryAt',
15881
+ lastError: 'lastError',
15882
+ revision: 'revision',
15883
+ createdAt: 'createdAt',
15884
+ updatedAt: 'updatedAt'
15885
+ } as const
15886
+
15887
+ export type HarnessWebhookRuleScalarFieldEnum = (typeof HarnessWebhookRuleScalarFieldEnum)[keyof typeof HarnessWebhookRuleScalarFieldEnum]
15888
+
15889
+
15890
+ export const HarnessWebhookDeliveryScalarFieldEnum = {
15891
+ id: 'id',
15892
+ ruleId: 'ruleId',
15893
+ userId: 'userId',
15894
+ executionPlane: 'executionPlane',
15895
+ eventKey: 'eventKey',
15896
+ eventType: 'eventType',
15897
+ repo: 'repo',
15898
+ owner: 'owner',
15899
+ summary: 'summary',
15900
+ state: 'state',
15901
+ leaseOwner: 'leaseOwner',
15902
+ leaseUntil: 'leaseUntil',
15903
+ fencingToken: 'fencingToken',
15904
+ attempt: 'attempt',
15905
+ deliveredAt: 'deliveredAt',
15906
+ lastError: 'lastError',
15907
+ createdAt: 'createdAt',
15908
+ updatedAt: 'updatedAt'
15909
+ } as const
15910
+
15911
+ export type HarnessWebhookDeliveryScalarFieldEnum = (typeof HarnessWebhookDeliveryScalarFieldEnum)[keyof typeof HarnessWebhookDeliveryScalarFieldEnum]
15912
+
15913
+
15644
15914
  export const HarnessFeedbackScalarFieldEnum = {
15645
15915
  id: 'id',
15646
15916
  userId: 'userId',
@@ -16397,6 +16667,7 @@ export type GlobalOmitConfig = {
16397
16667
  aiTaskRun?: Prisma.AiTaskRunOmit
16398
16668
  knowledgeEmbedding?: Prisma.KnowledgeEmbeddingOmit
16399
16669
  designEmbedding?: Prisma.DesignEmbeddingOmit
16670
+ memoryFact?: Prisma.MemoryFactOmit
16400
16671
  harnessLogHeader?: Prisma.HarnessLogHeaderOmit
16401
16672
  harnessLogEntry?: Prisma.HarnessLogEntryOmit
16402
16673
  harnessLogOffer?: Prisma.HarnessLogOfferOmit
@@ -16409,6 +16680,8 @@ export type GlobalOmitConfig = {
16409
16680
  harnessSchedule?: Prisma.HarnessScheduleOmit
16410
16681
  harnessScheduleOccurrence?: Prisma.HarnessScheduleOccurrenceOmit
16411
16682
  harnessOutbox?: Prisma.HarnessOutboxOmit
16683
+ harnessWebhookRule?: Prisma.HarnessWebhookRuleOmit
16684
+ harnessWebhookDelivery?: Prisma.HarnessWebhookDeliveryOmit
16412
16685
  harnessFeedback?: Prisma.HarnessFeedbackOmit
16413
16686
  harnessMcpServer?: Prisma.HarnessMcpServerOmit
16414
16687
  harnessSshHost?: Prisma.HarnessSshHostOmit
@@ -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',
@@ -209,6 +210,8 @@ export const ModelName = {
209
210
  HarnessSchedule: 'HarnessSchedule',
210
211
  HarnessScheduleOccurrence: 'HarnessScheduleOccurrence',
211
212
  HarnessOutbox: 'HarnessOutbox',
213
+ HarnessWebhookRule: 'HarnessWebhookRule',
214
+ HarnessWebhookDelivery: 'HarnessWebhookDelivery',
212
215
  HarnessFeedback: 'HarnessFeedback',
213
216
  HarnessMcpServer: 'HarnessMcpServer',
214
217
  HarnessSshHost: 'HarnessSshHost',
@@ -2529,6 +2532,17 @@ export const DesignEmbeddingScalarFieldEnum = {
2529
2532
  export type DesignEmbeddingScalarFieldEnum = (typeof DesignEmbeddingScalarFieldEnum)[keyof typeof DesignEmbeddingScalarFieldEnum]
2530
2533
 
2531
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
+
2532
2546
  export const HarnessLogHeaderScalarFieldEnum = {
2533
2547
  logId: 'logId',
2534
2548
  harness: 'harness',
@@ -2720,6 +2734,56 @@ export const HarnessOutboxScalarFieldEnum = {
2720
2734
  export type HarnessOutboxScalarFieldEnum = (typeof HarnessOutboxScalarFieldEnum)[keyof typeof HarnessOutboxScalarFieldEnum]
2721
2735
 
2722
2736
 
2737
+ export const HarnessWebhookRuleScalarFieldEnum = {
2738
+ id: 'id',
2739
+ userId: 'userId',
2740
+ token: 'token',
2741
+ name: 'name',
2742
+ provider: 'provider',
2743
+ threadId: 'threadId',
2744
+ workspaceId: 'workspaceId',
2745
+ prompt: 'prompt',
2746
+ secretCipher: 'secretCipher',
2747
+ secretHint: 'secretHint',
2748
+ events: 'events',
2749
+ repoWhitelist: 'repoWhitelist',
2750
+ ownerWhitelist: 'ownerWhitelist',
2751
+ status: 'status',
2752
+ executionPlane: 'executionPlane',
2753
+ lastDeliveryAt: 'lastDeliveryAt',
2754
+ lastError: 'lastError',
2755
+ revision: 'revision',
2756
+ createdAt: 'createdAt',
2757
+ updatedAt: 'updatedAt'
2758
+ } as const
2759
+
2760
+ export type HarnessWebhookRuleScalarFieldEnum = (typeof HarnessWebhookRuleScalarFieldEnum)[keyof typeof HarnessWebhookRuleScalarFieldEnum]
2761
+
2762
+
2763
+ export const HarnessWebhookDeliveryScalarFieldEnum = {
2764
+ id: 'id',
2765
+ ruleId: 'ruleId',
2766
+ userId: 'userId',
2767
+ executionPlane: 'executionPlane',
2768
+ eventKey: 'eventKey',
2769
+ eventType: 'eventType',
2770
+ repo: 'repo',
2771
+ owner: 'owner',
2772
+ summary: 'summary',
2773
+ state: 'state',
2774
+ leaseOwner: 'leaseOwner',
2775
+ leaseUntil: 'leaseUntil',
2776
+ fencingToken: 'fencingToken',
2777
+ attempt: 'attempt',
2778
+ deliveredAt: 'deliveredAt',
2779
+ lastError: 'lastError',
2780
+ createdAt: 'createdAt',
2781
+ updatedAt: 'updatedAt'
2782
+ } as const
2783
+
2784
+ export type HarnessWebhookDeliveryScalarFieldEnum = (typeof HarnessWebhookDeliveryScalarFieldEnum)[keyof typeof HarnessWebhookDeliveryScalarFieldEnum]
2785
+
2786
+
2723
2787
  export const HarnessFeedbackScalarFieldEnum = {
2724
2788
  id: 'id',
2725
2789
  userId: 'userId',
@@ -179,7 +179,7 @@ export type HarnessConnectorAccountGroupByOutputType = {
179
179
  kind: string
180
180
  provider: string
181
181
  label: string
182
- secretCipher: string
182
+ secretCipher: string | null
183
183
  metadata: runtime.JsonValue | null
184
184
  expiresAt: Date | null
185
185
  createdAt: Date
@@ -213,7 +213,7 @@ export type HarnessConnectorAccountWhereInput = {
213
213
  kind?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
214
214
  provider?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
215
215
  label?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
216
- secretCipher?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
216
+ secretCipher?: Prisma.StringNullableFilter<"HarnessConnectorAccount"> | string | null
217
217
  metadata?: Prisma.JsonNullableFilter<"HarnessConnectorAccount">
218
218
  expiresAt?: Prisma.DateTimeNullableFilter<"HarnessConnectorAccount"> | Date | string | null
219
219
  createdAt?: Prisma.DateTimeFilter<"HarnessConnectorAccount"> | Date | string
@@ -226,7 +226,7 @@ export type HarnessConnectorAccountOrderByWithRelationInput = {
226
226
  kind?: Prisma.SortOrder
227
227
  provider?: Prisma.SortOrder
228
228
  label?: Prisma.SortOrder
229
- secretCipher?: Prisma.SortOrder
229
+ secretCipher?: Prisma.SortOrderInput | Prisma.SortOrder
230
230
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
231
231
  expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
232
232
  createdAt?: Prisma.SortOrder
@@ -243,7 +243,7 @@ export type HarnessConnectorAccountWhereUniqueInput = Prisma.AtLeast<{
243
243
  kind?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
244
244
  provider?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
245
245
  label?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
246
- secretCipher?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
246
+ secretCipher?: Prisma.StringNullableFilter<"HarnessConnectorAccount"> | string | null
247
247
  metadata?: Prisma.JsonNullableFilter<"HarnessConnectorAccount">
248
248
  expiresAt?: Prisma.DateTimeNullableFilter<"HarnessConnectorAccount"> | Date | string | null
249
249
  createdAt?: Prisma.DateTimeFilter<"HarnessConnectorAccount"> | Date | string
@@ -256,7 +256,7 @@ export type HarnessConnectorAccountOrderByWithAggregationInput = {
256
256
  kind?: Prisma.SortOrder
257
257
  provider?: Prisma.SortOrder
258
258
  label?: Prisma.SortOrder
259
- secretCipher?: Prisma.SortOrder
259
+ secretCipher?: Prisma.SortOrderInput | Prisma.SortOrder
260
260
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
261
261
  expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
262
262
  createdAt?: Prisma.SortOrder
@@ -275,7 +275,7 @@ export type HarnessConnectorAccountScalarWhereWithAggregatesInput = {
275
275
  kind?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
276
276
  provider?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
277
277
  label?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
278
- secretCipher?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
278
+ secretCipher?: Prisma.StringNullableWithAggregatesFilter<"HarnessConnectorAccount"> | string | null
279
279
  metadata?: Prisma.JsonNullableWithAggregatesFilter<"HarnessConnectorAccount">
280
280
  expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HarnessConnectorAccount"> | Date | string | null
281
281
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"HarnessConnectorAccount"> | Date | string
@@ -288,7 +288,7 @@ export type HarnessConnectorAccountCreateInput = {
288
288
  kind: string
289
289
  provider: string
290
290
  label: string
291
- secretCipher: string
291
+ secretCipher?: string | null
292
292
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
293
293
  expiresAt?: Date | string | null
294
294
  createdAt?: Date | string
@@ -301,7 +301,7 @@ export type HarnessConnectorAccountUncheckedCreateInput = {
301
301
  kind: string
302
302
  provider: string
303
303
  label: string
304
- secretCipher: string
304
+ secretCipher?: string | null
305
305
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
306
306
  expiresAt?: Date | string | null
307
307
  createdAt?: Date | string
@@ -314,7 +314,7 @@ export type HarnessConnectorAccountUpdateInput = {
314
314
  kind?: Prisma.StringFieldUpdateOperationsInput | string
315
315
  provider?: Prisma.StringFieldUpdateOperationsInput | string
316
316
  label?: Prisma.StringFieldUpdateOperationsInput | string
317
- secretCipher?: Prisma.StringFieldUpdateOperationsInput | string
317
+ secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
318
318
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
319
319
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
320
320
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -327,7 +327,7 @@ export type HarnessConnectorAccountUncheckedUpdateInput = {
327
327
  kind?: Prisma.StringFieldUpdateOperationsInput | string
328
328
  provider?: Prisma.StringFieldUpdateOperationsInput | string
329
329
  label?: Prisma.StringFieldUpdateOperationsInput | string
330
- secretCipher?: Prisma.StringFieldUpdateOperationsInput | string
330
+ secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
331
331
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
332
332
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
333
333
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -340,7 +340,7 @@ export type HarnessConnectorAccountCreateManyInput = {
340
340
  kind: string
341
341
  provider: string
342
342
  label: string
343
- secretCipher: string
343
+ secretCipher?: string | null
344
344
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
345
345
  expiresAt?: Date | string | null
346
346
  createdAt?: Date | string
@@ -353,7 +353,7 @@ export type HarnessConnectorAccountUpdateManyMutationInput = {
353
353
  kind?: Prisma.StringFieldUpdateOperationsInput | string
354
354
  provider?: Prisma.StringFieldUpdateOperationsInput | string
355
355
  label?: Prisma.StringFieldUpdateOperationsInput | string
356
- secretCipher?: Prisma.StringFieldUpdateOperationsInput | string
356
+ secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
357
357
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
358
358
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
359
359
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -366,7 +366,7 @@ export type HarnessConnectorAccountUncheckedUpdateManyInput = {
366
366
  kind?: Prisma.StringFieldUpdateOperationsInput | string
367
367
  provider?: Prisma.StringFieldUpdateOperationsInput | string
368
368
  label?: Prisma.StringFieldUpdateOperationsInput | string
369
- secretCipher?: Prisma.StringFieldUpdateOperationsInput | string
369
+ secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
370
370
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
371
371
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
372
372
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -482,7 +482,13 @@ export type $HarnessConnectorAccountPayload<ExtArgs extends runtime.Types.Extens
482
482
  kind: string
483
483
  provider: string
484
484
  label: string
485
- secretCipher: string
485
+ /**
486
+ * 加密凭据(AES,encryptApiKey)。**可空**(P5 任务 5):跨端只同步账号元数据
487
+ * (kind/provider/label/metadata/expiresAt),凭据永不跨端——同步而来的行
488
+ * secretCipher 为 NULL,运行时经 CredentialStore 读到 null → 连接器自然缺席,
489
+ * 用户在该设备重新授权后恢复。
490
+ */
491
+ secretCipher: string | null
486
492
  metadata: runtime.JsonValue | null
487
493
  expiresAt: Date | null
488
494
  createdAt: Date