@allbluecn/database 0.14.15 → 0.14.17

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.
@@ -218,6 +218,7 @@ export type WorkspaceWhereInput = {
218
218
  customRoles?: Prisma.CustomRoleListRelationFilter
219
219
  auditLogs?: Prisma.AuditLogListRelationFilter
220
220
  aiTasks?: Prisma.AiTaskListRelationFilter
221
+ harnessWorkspaces?: Prisma.HarnessWorkspaceListRelationFilter
221
222
  }
222
223
 
223
224
  export type WorkspaceOrderByWithRelationInput = {
@@ -241,6 +242,7 @@ export type WorkspaceOrderByWithRelationInput = {
241
242
  customRoles?: Prisma.CustomRoleOrderByRelationAggregateInput
242
243
  auditLogs?: Prisma.AuditLogOrderByRelationAggregateInput
243
244
  aiTasks?: Prisma.AiTaskOrderByRelationAggregateInput
245
+ harnessWorkspaces?: Prisma.HarnessWorkspaceOrderByRelationAggregateInput
244
246
  }
245
247
 
246
248
  export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
@@ -267,6 +269,7 @@ export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
267
269
  customRoles?: Prisma.CustomRoleListRelationFilter
268
270
  auditLogs?: Prisma.AuditLogListRelationFilter
269
271
  aiTasks?: Prisma.AiTaskListRelationFilter
272
+ harnessWorkspaces?: Prisma.HarnessWorkspaceListRelationFilter
270
273
  }, "id">
271
274
 
272
275
  export type WorkspaceOrderByWithAggregationInput = {
@@ -317,6 +320,7 @@ export type WorkspaceCreateInput = {
317
320
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
318
321
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
319
322
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
323
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
320
324
  }
321
325
 
322
326
  export type WorkspaceUncheckedCreateInput = {
@@ -339,6 +343,7 @@ export type WorkspaceUncheckedCreateInput = {
339
343
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
340
344
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
341
345
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
346
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
342
347
  }
343
348
 
344
349
  export type WorkspaceUpdateInput = {
@@ -361,6 +366,7 @@ export type WorkspaceUpdateInput = {
361
366
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
362
367
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
363
368
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
369
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
364
370
  }
365
371
 
366
372
  export type WorkspaceUncheckedUpdateInput = {
@@ -383,6 +389,7 @@ export type WorkspaceUncheckedUpdateInput = {
383
389
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
384
390
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
385
391
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
392
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
386
393
  }
387
394
 
388
395
  export type WorkspaceCreateManyInput = {
@@ -664,6 +671,22 @@ export type WorkspaceUpdateOneRequiredWithoutCustomRolesNestedInput = {
664
671
  update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutCustomRolesInput, Prisma.WorkspaceUpdateWithoutCustomRolesInput>, Prisma.WorkspaceUncheckedUpdateWithoutCustomRolesInput>
665
672
  }
666
673
 
674
+ export type WorkspaceCreateNestedOneWithoutHarnessWorkspacesInput = {
675
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedCreateWithoutHarnessWorkspacesInput>
676
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutHarnessWorkspacesInput
677
+ connect?: Prisma.WorkspaceWhereUniqueInput
678
+ }
679
+
680
+ export type WorkspaceUpdateOneWithoutHarnessWorkspacesNestedInput = {
681
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedCreateWithoutHarnessWorkspacesInput>
682
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutHarnessWorkspacesInput
683
+ upsert?: Prisma.WorkspaceUpsertWithoutHarnessWorkspacesInput
684
+ disconnect?: Prisma.WorkspaceWhereInput | boolean
685
+ delete?: Prisma.WorkspaceWhereInput | boolean
686
+ connect?: Prisma.WorkspaceWhereUniqueInput
687
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutHarnessWorkspacesInput, Prisma.WorkspaceUpdateWithoutHarnessWorkspacesInput>, Prisma.WorkspaceUncheckedUpdateWithoutHarnessWorkspacesInput>
688
+ }
689
+
667
690
  export type WorkspaceCreateNestedOneWithoutAiTasksInput = {
668
691
  create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiTasksInput, Prisma.WorkspaceUncheckedCreateWithoutAiTasksInput>
669
692
  connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutAiTasksInput
@@ -699,6 +722,7 @@ export type WorkspaceCreateWithoutOwnerInput = {
699
722
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
700
723
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
701
724
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
725
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
702
726
  }
703
727
 
704
728
  export type WorkspaceUncheckedCreateWithoutOwnerInput = {
@@ -720,6 +744,7 @@ export type WorkspaceUncheckedCreateWithoutOwnerInput = {
720
744
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
721
745
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
722
746
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
747
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
723
748
  }
724
749
 
725
750
  export type WorkspaceCreateOrConnectWithoutOwnerInput = {
@@ -781,6 +806,7 @@ export type WorkspaceCreateWithoutProjectsInput = {
781
806
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
782
807
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
783
808
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
809
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
784
810
  }
785
811
 
786
812
  export type WorkspaceUncheckedCreateWithoutProjectsInput = {
@@ -802,6 +828,7 @@ export type WorkspaceUncheckedCreateWithoutProjectsInput = {
802
828
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
803
829
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
804
830
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
831
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
805
832
  }
806
833
 
807
834
  export type WorkspaceCreateOrConnectWithoutProjectsInput = {
@@ -839,6 +866,7 @@ export type WorkspaceUpdateWithoutProjectsInput = {
839
866
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
840
867
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
841
868
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
869
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
842
870
  }
843
871
 
844
872
  export type WorkspaceUncheckedUpdateWithoutProjectsInput = {
@@ -860,6 +888,7 @@ export type WorkspaceUncheckedUpdateWithoutProjectsInput = {
860
888
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
861
889
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
862
890
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
891
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
863
892
  }
864
893
 
865
894
  export type WorkspaceCreateWithoutMembersInput = {
@@ -881,6 +910,7 @@ export type WorkspaceCreateWithoutMembersInput = {
881
910
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
882
911
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
883
912
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
913
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
884
914
  }
885
915
 
886
916
  export type WorkspaceUncheckedCreateWithoutMembersInput = {
@@ -902,6 +932,7 @@ export type WorkspaceUncheckedCreateWithoutMembersInput = {
902
932
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
903
933
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
904
934
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
935
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
905
936
  }
906
937
 
907
938
  export type WorkspaceCreateOrConnectWithoutMembersInput = {
@@ -939,6 +970,7 @@ export type WorkspaceUpdateWithoutMembersInput = {
939
970
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
940
971
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
941
972
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
973
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
942
974
  }
943
975
 
944
976
  export type WorkspaceUncheckedUpdateWithoutMembersInput = {
@@ -960,6 +992,7 @@ export type WorkspaceUncheckedUpdateWithoutMembersInput = {
960
992
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
961
993
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
962
994
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
995
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
963
996
  }
964
997
 
965
998
  export type WorkspaceCreateWithoutKnowledgeBasesInput = {
@@ -981,6 +1014,7 @@ export type WorkspaceCreateWithoutKnowledgeBasesInput = {
981
1014
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
982
1015
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
983
1016
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1017
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
984
1018
  }
985
1019
 
986
1020
  export type WorkspaceUncheckedCreateWithoutKnowledgeBasesInput = {
@@ -1002,6 +1036,7 @@ export type WorkspaceUncheckedCreateWithoutKnowledgeBasesInput = {
1002
1036
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1003
1037
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1004
1038
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1039
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1005
1040
  }
1006
1041
 
1007
1042
  export type WorkspaceCreateOrConnectWithoutKnowledgeBasesInput = {
@@ -1039,6 +1074,7 @@ export type WorkspaceUpdateWithoutKnowledgeBasesInput = {
1039
1074
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1040
1075
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1041
1076
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1077
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1042
1078
  }
1043
1079
 
1044
1080
  export type WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput = {
@@ -1060,6 +1096,7 @@ export type WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput = {
1060
1096
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1061
1097
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1062
1098
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1099
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1063
1100
  }
1064
1101
 
1065
1102
  export type WorkspaceCreateWithoutWorkspaceKbLinksInput = {
@@ -1081,6 +1118,7 @@ export type WorkspaceCreateWithoutWorkspaceKbLinksInput = {
1081
1118
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1082
1119
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1083
1120
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1121
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1084
1122
  }
1085
1123
 
1086
1124
  export type WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput = {
@@ -1102,6 +1140,7 @@ export type WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput = {
1102
1140
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1103
1141
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1104
1142
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1143
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1105
1144
  }
1106
1145
 
1107
1146
  export type WorkspaceCreateOrConnectWithoutWorkspaceKbLinksInput = {
@@ -1139,6 +1178,7 @@ export type WorkspaceUpdateWithoutWorkspaceKbLinksInput = {
1139
1178
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1140
1179
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1141
1180
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1181
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1142
1182
  }
1143
1183
 
1144
1184
  export type WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput = {
@@ -1160,6 +1200,7 @@ export type WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput = {
1160
1200
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1161
1201
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1162
1202
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1203
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1163
1204
  }
1164
1205
 
1165
1206
  export type WorkspaceCreateWithoutQuickDocsInput = {
@@ -1181,6 +1222,7 @@ export type WorkspaceCreateWithoutQuickDocsInput = {
1181
1222
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1182
1223
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1183
1224
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1225
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1184
1226
  }
1185
1227
 
1186
1228
  export type WorkspaceUncheckedCreateWithoutQuickDocsInput = {
@@ -1202,6 +1244,7 @@ export type WorkspaceUncheckedCreateWithoutQuickDocsInput = {
1202
1244
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1203
1245
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1204
1246
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1247
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1205
1248
  }
1206
1249
 
1207
1250
  export type WorkspaceCreateOrConnectWithoutQuickDocsInput = {
@@ -1239,6 +1282,7 @@ export type WorkspaceUpdateWithoutQuickDocsInput = {
1239
1282
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1240
1283
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1241
1284
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1285
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1242
1286
  }
1243
1287
 
1244
1288
  export type WorkspaceUncheckedUpdateWithoutQuickDocsInput = {
@@ -1260,6 +1304,7 @@ export type WorkspaceUncheckedUpdateWithoutQuickDocsInput = {
1260
1304
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1261
1305
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1262
1306
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1307
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1263
1308
  }
1264
1309
 
1265
1310
  export type WorkspaceCreateWithoutUsageRecordsInput = {
@@ -1281,6 +1326,7 @@ export type WorkspaceCreateWithoutUsageRecordsInput = {
1281
1326
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1282
1327
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1283
1328
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1329
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1284
1330
  }
1285
1331
 
1286
1332
  export type WorkspaceUncheckedCreateWithoutUsageRecordsInput = {
@@ -1302,6 +1348,7 @@ export type WorkspaceUncheckedCreateWithoutUsageRecordsInput = {
1302
1348
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1303
1349
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1304
1350
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1351
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1305
1352
  }
1306
1353
 
1307
1354
  export type WorkspaceCreateOrConnectWithoutUsageRecordsInput = {
@@ -1339,6 +1386,7 @@ export type WorkspaceUpdateWithoutUsageRecordsInput = {
1339
1386
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1340
1387
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1341
1388
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1389
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1342
1390
  }
1343
1391
 
1344
1392
  export type WorkspaceUncheckedUpdateWithoutUsageRecordsInput = {
@@ -1360,6 +1408,7 @@ export type WorkspaceUncheckedUpdateWithoutUsageRecordsInput = {
1360
1408
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1361
1409
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1362
1410
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1411
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1363
1412
  }
1364
1413
 
1365
1414
  export type WorkspaceCreateWithoutAiUsageLogsInput = {
@@ -1381,6 +1430,7 @@ export type WorkspaceCreateWithoutAiUsageLogsInput = {
1381
1430
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1382
1431
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1383
1432
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1433
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1384
1434
  }
1385
1435
 
1386
1436
  export type WorkspaceUncheckedCreateWithoutAiUsageLogsInput = {
@@ -1402,6 +1452,7 @@ export type WorkspaceUncheckedCreateWithoutAiUsageLogsInput = {
1402
1452
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1403
1453
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1404
1454
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1455
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1405
1456
  }
1406
1457
 
1407
1458
  export type WorkspaceCreateOrConnectWithoutAiUsageLogsInput = {
@@ -1439,6 +1490,7 @@ export type WorkspaceUpdateWithoutAiUsageLogsInput = {
1439
1490
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1440
1491
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1441
1492
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1493
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1442
1494
  }
1443
1495
 
1444
1496
  export type WorkspaceUncheckedUpdateWithoutAiUsageLogsInput = {
@@ -1460,6 +1512,7 @@ export type WorkspaceUncheckedUpdateWithoutAiUsageLogsInput = {
1460
1512
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1461
1513
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1462
1514
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1515
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1463
1516
  }
1464
1517
 
1465
1518
  export type WorkspaceCreateWithoutAuditLogsInput = {
@@ -1481,6 +1534,7 @@ export type WorkspaceCreateWithoutAuditLogsInput = {
1481
1534
  ssoProviders?: Prisma.SsoProviderCreateNestedManyWithoutWorkspaceInput
1482
1535
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1483
1536
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1537
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1484
1538
  }
1485
1539
 
1486
1540
  export type WorkspaceUncheckedCreateWithoutAuditLogsInput = {
@@ -1502,6 +1556,7 @@ export type WorkspaceUncheckedCreateWithoutAuditLogsInput = {
1502
1556
  ssoProviders?: Prisma.SsoProviderUncheckedCreateNestedManyWithoutWorkspaceInput
1503
1557
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1504
1558
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1559
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1505
1560
  }
1506
1561
 
1507
1562
  export type WorkspaceCreateOrConnectWithoutAuditLogsInput = {
@@ -1539,6 +1594,7 @@ export type WorkspaceUpdateWithoutAuditLogsInput = {
1539
1594
  ssoProviders?: Prisma.SsoProviderUpdateManyWithoutWorkspaceNestedInput
1540
1595
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1541
1596
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1597
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1542
1598
  }
1543
1599
 
1544
1600
  export type WorkspaceUncheckedUpdateWithoutAuditLogsInput = {
@@ -1560,6 +1616,7 @@ export type WorkspaceUncheckedUpdateWithoutAuditLogsInput = {
1560
1616
  ssoProviders?: Prisma.SsoProviderUncheckedUpdateManyWithoutWorkspaceNestedInput
1561
1617
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1562
1618
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1619
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1563
1620
  }
1564
1621
 
1565
1622
  export type WorkspaceCreateWithoutSsoProvidersInput = {
@@ -1581,6 +1638,7 @@ export type WorkspaceCreateWithoutSsoProvidersInput = {
1581
1638
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1582
1639
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1583
1640
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1641
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1584
1642
  }
1585
1643
 
1586
1644
  export type WorkspaceUncheckedCreateWithoutSsoProvidersInput = {
@@ -1602,6 +1660,7 @@ export type WorkspaceUncheckedCreateWithoutSsoProvidersInput = {
1602
1660
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1603
1661
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1604
1662
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1663
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1605
1664
  }
1606
1665
 
1607
1666
  export type WorkspaceCreateOrConnectWithoutSsoProvidersInput = {
@@ -1639,6 +1698,7 @@ export type WorkspaceUpdateWithoutSsoProvidersInput = {
1639
1698
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1640
1699
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1641
1700
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1701
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1642
1702
  }
1643
1703
 
1644
1704
  export type WorkspaceUncheckedUpdateWithoutSsoProvidersInput = {
@@ -1660,6 +1720,7 @@ export type WorkspaceUncheckedUpdateWithoutSsoProvidersInput = {
1660
1720
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1661
1721
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1662
1722
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1723
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1663
1724
  }
1664
1725
 
1665
1726
  export type WorkspaceCreateWithoutCustomRolesInput = {
@@ -1681,6 +1742,7 @@ export type WorkspaceCreateWithoutCustomRolesInput = {
1681
1742
  ssoProviders?: Prisma.SsoProviderCreateNestedManyWithoutWorkspaceInput
1682
1743
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1683
1744
  aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1745
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1684
1746
  }
1685
1747
 
1686
1748
  export type WorkspaceUncheckedCreateWithoutCustomRolesInput = {
@@ -1702,6 +1764,7 @@ export type WorkspaceUncheckedCreateWithoutCustomRolesInput = {
1702
1764
  ssoProviders?: Prisma.SsoProviderUncheckedCreateNestedManyWithoutWorkspaceInput
1703
1765
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1704
1766
  aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1767
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1705
1768
  }
1706
1769
 
1707
1770
  export type WorkspaceCreateOrConnectWithoutCustomRolesInput = {
@@ -1739,6 +1802,7 @@ export type WorkspaceUpdateWithoutCustomRolesInput = {
1739
1802
  ssoProviders?: Prisma.SsoProviderUpdateManyWithoutWorkspaceNestedInput
1740
1803
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1741
1804
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1805
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1742
1806
  }
1743
1807
 
1744
1808
  export type WorkspaceUncheckedUpdateWithoutCustomRolesInput = {
@@ -1760,6 +1824,111 @@ export type WorkspaceUncheckedUpdateWithoutCustomRolesInput = {
1760
1824
  ssoProviders?: Prisma.SsoProviderUncheckedUpdateManyWithoutWorkspaceNestedInput
1761
1825
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1762
1826
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1827
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1828
+ }
1829
+
1830
+ export type WorkspaceCreateWithoutHarnessWorkspacesInput = {
1831
+ id?: string
1832
+ name: string
1833
+ icon?: string
1834
+ description?: string | null
1835
+ pinnedToSidebar?: boolean
1836
+ createdAt?: Date | string
1837
+ updatedAt?: Date | string
1838
+ owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
1839
+ projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
1840
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput
1841
+ knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
1842
+ workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
1843
+ quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
1844
+ usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
1845
+ aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
1846
+ ssoProviders?: Prisma.SsoProviderCreateNestedManyWithoutWorkspaceInput
1847
+ customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1848
+ auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1849
+ aiTasks?: Prisma.AiTaskCreateNestedManyWithoutWorkspaceInput
1850
+ }
1851
+
1852
+ export type WorkspaceUncheckedCreateWithoutHarnessWorkspacesInput = {
1853
+ id?: string
1854
+ name: string
1855
+ icon?: string
1856
+ description?: string | null
1857
+ pinnedToSidebar?: boolean
1858
+ ownerId: string
1859
+ createdAt?: Date | string
1860
+ updatedAt?: Date | string
1861
+ projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
1862
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput
1863
+ knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
1864
+ workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
1865
+ quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
1866
+ usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
1867
+ aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
1868
+ ssoProviders?: Prisma.SsoProviderUncheckedCreateNestedManyWithoutWorkspaceInput
1869
+ customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1870
+ auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1871
+ aiTasks?: Prisma.AiTaskUncheckedCreateNestedManyWithoutWorkspaceInput
1872
+ }
1873
+
1874
+ export type WorkspaceCreateOrConnectWithoutHarnessWorkspacesInput = {
1875
+ where: Prisma.WorkspaceWhereUniqueInput
1876
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedCreateWithoutHarnessWorkspacesInput>
1877
+ }
1878
+
1879
+ export type WorkspaceUpsertWithoutHarnessWorkspacesInput = {
1880
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedUpdateWithoutHarnessWorkspacesInput>
1881
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedCreateWithoutHarnessWorkspacesInput>
1882
+ where?: Prisma.WorkspaceWhereInput
1883
+ }
1884
+
1885
+ export type WorkspaceUpdateToOneWithWhereWithoutHarnessWorkspacesInput = {
1886
+ where?: Prisma.WorkspaceWhereInput
1887
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutHarnessWorkspacesInput, Prisma.WorkspaceUncheckedUpdateWithoutHarnessWorkspacesInput>
1888
+ }
1889
+
1890
+ export type WorkspaceUpdateWithoutHarnessWorkspacesInput = {
1891
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1892
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1893
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1894
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1895
+ pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1896
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1897
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1898
+ owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
1899
+ projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
1900
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput
1901
+ knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1902
+ workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1903
+ quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
1904
+ usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
1905
+ aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
1906
+ ssoProviders?: Prisma.SsoProviderUpdateManyWithoutWorkspaceNestedInput
1907
+ customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1908
+ auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1909
+ aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
1910
+ }
1911
+
1912
+ export type WorkspaceUncheckedUpdateWithoutHarnessWorkspacesInput = {
1913
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1914
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1915
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1916
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1917
+ pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1918
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string
1919
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1920
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1921
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
1922
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput
1923
+ knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1924
+ workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1925
+ quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
1926
+ usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
1927
+ aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1928
+ ssoProviders?: Prisma.SsoProviderUncheckedUpdateManyWithoutWorkspaceNestedInput
1929
+ customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1930
+ auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1931
+ aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
1763
1932
  }
1764
1933
 
1765
1934
  export type WorkspaceCreateWithoutAiTasksInput = {
@@ -1781,6 +1950,7 @@ export type WorkspaceCreateWithoutAiTasksInput = {
1781
1950
  ssoProviders?: Prisma.SsoProviderCreateNestedManyWithoutWorkspaceInput
1782
1951
  customRoles?: Prisma.CustomRoleCreateNestedManyWithoutWorkspaceInput
1783
1952
  auditLogs?: Prisma.AuditLogCreateNestedManyWithoutWorkspaceInput
1953
+ harnessWorkspaces?: Prisma.HarnessWorkspaceCreateNestedManyWithoutWorkspaceInput
1784
1954
  }
1785
1955
 
1786
1956
  export type WorkspaceUncheckedCreateWithoutAiTasksInput = {
@@ -1802,6 +1972,7 @@ export type WorkspaceUncheckedCreateWithoutAiTasksInput = {
1802
1972
  ssoProviders?: Prisma.SsoProviderUncheckedCreateNestedManyWithoutWorkspaceInput
1803
1973
  customRoles?: Prisma.CustomRoleUncheckedCreateNestedManyWithoutWorkspaceInput
1804
1974
  auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput
1975
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedCreateNestedManyWithoutWorkspaceInput
1805
1976
  }
1806
1977
 
1807
1978
  export type WorkspaceCreateOrConnectWithoutAiTasksInput = {
@@ -1839,6 +2010,7 @@ export type WorkspaceUpdateWithoutAiTasksInput = {
1839
2010
  ssoProviders?: Prisma.SsoProviderUpdateManyWithoutWorkspaceNestedInput
1840
2011
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1841
2012
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
2013
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1842
2014
  }
1843
2015
 
1844
2016
  export type WorkspaceUncheckedUpdateWithoutAiTasksInput = {
@@ -1860,6 +2032,7 @@ export type WorkspaceUncheckedUpdateWithoutAiTasksInput = {
1860
2032
  ssoProviders?: Prisma.SsoProviderUncheckedUpdateManyWithoutWorkspaceNestedInput
1861
2033
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1862
2034
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
2035
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1863
2036
  }
1864
2037
 
1865
2038
  export type WorkspaceCreateManyOwnerInput = {
@@ -1891,6 +2064,7 @@ export type WorkspaceUpdateWithoutOwnerInput = {
1891
2064
  customRoles?: Prisma.CustomRoleUpdateManyWithoutWorkspaceNestedInput
1892
2065
  auditLogs?: Prisma.AuditLogUpdateManyWithoutWorkspaceNestedInput
1893
2066
  aiTasks?: Prisma.AiTaskUpdateManyWithoutWorkspaceNestedInput
2067
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUpdateManyWithoutWorkspaceNestedInput
1894
2068
  }
1895
2069
 
1896
2070
  export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
@@ -1912,6 +2086,7 @@ export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
1912
2086
  customRoles?: Prisma.CustomRoleUncheckedUpdateManyWithoutWorkspaceNestedInput
1913
2087
  auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1914
2088
  aiTasks?: Prisma.AiTaskUncheckedUpdateManyWithoutWorkspaceNestedInput
2089
+ harnessWorkspaces?: Prisma.HarnessWorkspaceUncheckedUpdateManyWithoutWorkspaceNestedInput
1915
2090
  }
1916
2091
 
1917
2092
  export type WorkspaceUncheckedUpdateManyWithoutOwnerInput = {
@@ -1941,6 +2116,7 @@ export type WorkspaceCountOutputType = {
1941
2116
  customRoles: number
1942
2117
  auditLogs: number
1943
2118
  aiTasks: number
2119
+ harnessWorkspaces: number
1944
2120
  }
1945
2121
 
1946
2122
  export type WorkspaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1955,6 +2131,7 @@ export type WorkspaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensi
1955
2131
  customRoles?: boolean | WorkspaceCountOutputTypeCountCustomRolesArgs
1956
2132
  auditLogs?: boolean | WorkspaceCountOutputTypeCountAuditLogsArgs
1957
2133
  aiTasks?: boolean | WorkspaceCountOutputTypeCountAiTasksArgs
2134
+ harnessWorkspaces?: boolean | WorkspaceCountOutputTypeCountHarnessWorkspacesArgs
1958
2135
  }
1959
2136
 
1960
2137
  /**
@@ -2044,6 +2221,13 @@ export type WorkspaceCountOutputTypeCountAiTasksArgs<ExtArgs extends runtime.Typ
2044
2221
  where?: Prisma.AiTaskWhereInput
2045
2222
  }
2046
2223
 
2224
+ /**
2225
+ * WorkspaceCountOutputType without action
2226
+ */
2227
+ export type WorkspaceCountOutputTypeCountHarnessWorkspacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2228
+ where?: Prisma.HarnessWorkspaceWhereInput
2229
+ }
2230
+
2047
2231
 
2048
2232
  export type WorkspaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2049
2233
  id?: boolean
@@ -2066,6 +2250,7 @@ export type WorkspaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
2066
2250
  customRoles?: boolean | Prisma.Workspace$customRolesArgs<ExtArgs>
2067
2251
  auditLogs?: boolean | Prisma.Workspace$auditLogsArgs<ExtArgs>
2068
2252
  aiTasks?: boolean | Prisma.Workspace$aiTasksArgs<ExtArgs>
2253
+ harnessWorkspaces?: boolean | Prisma.Workspace$harnessWorkspacesArgs<ExtArgs>
2069
2254
  _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
2070
2255
  }, ExtArgs["result"]["workspace"]>
2071
2256
 
@@ -2118,6 +2303,7 @@ export type WorkspaceInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
2118
2303
  customRoles?: boolean | Prisma.Workspace$customRolesArgs<ExtArgs>
2119
2304
  auditLogs?: boolean | Prisma.Workspace$auditLogsArgs<ExtArgs>
2120
2305
  aiTasks?: boolean | Prisma.Workspace$aiTasksArgs<ExtArgs>
2306
+ harnessWorkspaces?: boolean | Prisma.Workspace$harnessWorkspacesArgs<ExtArgs>
2121
2307
  _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
2122
2308
  }
2123
2309
  export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -2142,6 +2328,7 @@ export type $WorkspacePayload<ExtArgs extends runtime.Types.Extensions.InternalA
2142
2328
  customRoles: Prisma.$CustomRolePayload<ExtArgs>[]
2143
2329
  auditLogs: Prisma.$AuditLogPayload<ExtArgs>[]
2144
2330
  aiTasks: Prisma.$AiTaskPayload<ExtArgs>[]
2331
+ harnessWorkspaces: Prisma.$HarnessWorkspacePayload<ExtArgs>[]
2145
2332
  }
2146
2333
  scalars: runtime.Types.Extensions.GetPayloadResult<{
2147
2334
  id: string
@@ -2558,6 +2745,7 @@ export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends runtim
2558
2745
  customRoles<T extends Prisma.Workspace$customRolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$customRolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2559
2746
  auditLogs<T extends Prisma.Workspace$auditLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$auditLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2560
2747
  aiTasks<T extends Prisma.Workspace$aiTasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$aiTasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AiTaskPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2748
+ harnessWorkspaces<T extends Prisma.Workspace$harnessWorkspacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$harnessWorkspacesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessWorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2561
2749
  /**
2562
2750
  * Attaches callbacks for the resolution and/or rejection of the Promise.
2563
2751
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3259,6 +3447,30 @@ export type Workspace$aiTasksArgs<ExtArgs extends runtime.Types.Extensions.Inter
3259
3447
  distinct?: Prisma.AiTaskScalarFieldEnum | Prisma.AiTaskScalarFieldEnum[]
3260
3448
  }
3261
3449
 
3450
+ /**
3451
+ * Workspace.harnessWorkspaces
3452
+ */
3453
+ export type Workspace$harnessWorkspacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3454
+ /**
3455
+ * Select specific fields to fetch from the HarnessWorkspace
3456
+ */
3457
+ select?: Prisma.HarnessWorkspaceSelect<ExtArgs> | null
3458
+ /**
3459
+ * Omit specific fields from the HarnessWorkspace
3460
+ */
3461
+ omit?: Prisma.HarnessWorkspaceOmit<ExtArgs> | null
3462
+ /**
3463
+ * Choose, which related nodes to fetch as well
3464
+ */
3465
+ include?: Prisma.HarnessWorkspaceInclude<ExtArgs> | null
3466
+ where?: Prisma.HarnessWorkspaceWhereInput
3467
+ orderBy?: Prisma.HarnessWorkspaceOrderByWithRelationInput | Prisma.HarnessWorkspaceOrderByWithRelationInput[]
3468
+ cursor?: Prisma.HarnessWorkspaceWhereUniqueInput
3469
+ take?: number
3470
+ skip?: number
3471
+ distinct?: Prisma.HarnessWorkspaceScalarFieldEnum | Prisma.HarnessWorkspaceScalarFieldEnum[]
3472
+ }
3473
+
3262
3474
  /**
3263
3475
  * Workspace without action
3264
3476
  */
@@ -0,0 +1,2 @@
1
+ ALTER TABLE "chat_threads" ADD COLUMN "harnessPermission" TEXT NOT NULL DEFAULT 'ask';
2
+ ALTER TABLE "chat_threads" ADD COLUMN "harnessPermissionVersion" INTEGER NOT NULL DEFAULT 0;
@@ -0,0 +1,2 @@
1
+ -- 联网搜索服务商偏好(web-search-redesign Phase 1):可空列,null = 自动选择
2
+ ALTER TABLE "users" ADD COLUMN "aiSearchProviderId" TEXT;
@@ -0,0 +1,15 @@
1
+ -- Harness 工作区绑定产品工作空间(/workspaces):可空外键,null = 未绑定(全量内容)
2
+ -- 迁移只含 DDL,不做数据回填。(本文件为 migrate diff 产出的人工清洗版:
3
+ -- sync overlay / pgvector raw 表噪声不写入迁移文件,见 scripts/check-schema-sync.mjs)
4
+
5
+ -- AlterTable
6
+ ALTER TABLE "harness_workspaces" ADD COLUMN "workspaceId" TEXT;
7
+
8
+ -- CreateIndex
9
+ CREATE UNIQUE INDEX "harness_workspaces_ownerId_workspaceId_key" ON "harness_workspaces"("ownerId", "workspaceId");
10
+
11
+ -- CreateIndex
12
+ CREATE INDEX "harness_workspaces_workspaceId_idx" ON "harness_workspaces"("workspaceId");
13
+
14
+ -- AddForeignKey
15
+ ALTER TABLE "harness_workspaces" ADD CONSTRAINT "harness_workspaces_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "workspaces"("id") ON DELETE SET NULL ON UPDATE CASCADE;