@allbluecn/database 0.6.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/dist/get-prisma.d.ts +1 -0
- package/dist/get-prisma.js +7 -0
- package/generated/browser.ts +85 -0
- package/generated/client.ts +85 -0
- package/generated/commonInputTypes.ts +106 -46
- package/generated/internal/class.ts +174 -4
- package/generated/internal/prismaNamespace.ts +1698 -151
- package/generated/internal/prismaNamespaceBrowser.ts +279 -7
- package/generated/models/AiProviderConfig.ts +100 -1
- package/generated/models/AiStreamChunk.ts +1159 -0
- package/generated/models/AiUsageLog.ts +91 -31
- package/generated/models/Blob.ts +1428 -0
- package/generated/models/BusinessAgentBinding.ts +1553 -0
- package/generated/models/ChatInterrupt.ts +42 -1
- package/generated/models/ChatMessage.ts +58 -29
- package/generated/models/ChatPersistenceMeta.ts +1121 -0
- package/generated/models/ChatRun.ts +166 -1
- package/generated/models/ChatThread.ts +294 -1
- package/generated/models/CodeSnippet.ts +1555 -0
- package/generated/models/DesktopSetting.ts +1059 -0
- package/generated/models/EmailLog.ts +1345 -0
- package/generated/models/EmailPreference.ts +1257 -0
- package/generated/models/EmailSubscriber.ts +1233 -0
- package/generated/models/EmailVerificationToken.ts +1380 -0
- package/generated/models/GenerationRun.ts +193 -1
- package/generated/models/HarnessPlugin.ts +1677 -0
- package/generated/models/HarnessWorkspace.ts +1650 -0
- package/generated/models/InvitationCode.ts +65 -9
- package/generated/models/NotificationPreference.ts +27 -1
- package/generated/models/OAuthProviderConfig.ts +1227 -0
- package/generated/models/Plan.ts +115 -1
- package/generated/models/SandboxInstance.ts +1277 -0
- package/generated/models/SystemPromptTemplate.ts +1583 -0
- package/generated/models/SystemPromptVersion.ts +1459 -0
- package/generated/models/User.ts +5759 -823
- package/generated/models/UserAgent.ts +250 -1
- package/generated/models/Workspace.ts +3 -1
- package/generated/models/WorkspaceFile.ts +1535 -0
- package/generated/models.ts +17 -0
- package/generated-sqlite/browser.ts +90 -0
- package/generated-sqlite/client.ts +90 -0
- package/generated-sqlite/commonInputTypes.ts +192 -78
- package/generated-sqlite/internal/class.ts +184 -4
- package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
- package/generated-sqlite/models/AiProviderConfig.ts +100 -1
- package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
- package/generated-sqlite/models/AiUsageLog.ts +91 -31
- package/generated-sqlite/models/Blob.ts +1425 -0
- package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
- package/generated-sqlite/models/ChatInterrupt.ts +42 -1
- package/generated-sqlite/models/ChatMessage.ts +58 -29
- package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
- package/generated-sqlite/models/ChatRun.ts +174 -1
- package/generated-sqlite/models/ChatThread.ts +293 -1
- package/generated-sqlite/models/CodeSnippet.ts +1552 -0
- package/generated-sqlite/models/DesktopSetting.ts +1057 -0
- package/generated-sqlite/models/EmailLog.ts +1343 -0
- package/generated-sqlite/models/EmailPreference.ts +1255 -0
- package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
- package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
- package/generated-sqlite/models/GenerationRun.ts +193 -1
- package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
- package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
- package/generated-sqlite/models/InvitationCode.ts +65 -9
- package/generated-sqlite/models/NotificationPreference.ts +1313 -0
- package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
- package/generated-sqlite/models/PageVersion.ts +0 -8
- package/generated-sqlite/models/Plan.ts +115 -1
- package/generated-sqlite/models/SandboxInstance.ts +1283 -0
- package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
- package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
- package/generated-sqlite/models/User.ts +5345 -701
- package/generated-sqlite/models/UserAgent.ts +250 -1
- package/generated-sqlite/models/Workspace.ts +3 -1
- package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
- package/generated-sqlite/models.ts +18 -0
- package/get-prisma.ts +6 -0
- package/index.ts +11 -6
- package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
- package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
- package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
- package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
- package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
- package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
- package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
- package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
- package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
- package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
- package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
- package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
- package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
- package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
- package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
- package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
- package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
- package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
- package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
- package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
- package/package.json +8 -3
- package/schema.prisma +413 -99
- package/schema.sqlite.prisma +865 -543
|
@@ -47,6 +47,8 @@ export type UserAgentMinAggregateOutputType = {
|
|
|
47
47
|
createdAt: Date | null
|
|
48
48
|
updatedAt: Date | null
|
|
49
49
|
isDeleted: boolean | null
|
|
50
|
+
isDefault: boolean | null
|
|
51
|
+
harnessKind: string | null
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export type UserAgentMaxAggregateOutputType = {
|
|
@@ -62,6 +64,8 @@ export type UserAgentMaxAggregateOutputType = {
|
|
|
62
64
|
createdAt: Date | null
|
|
63
65
|
updatedAt: Date | null
|
|
64
66
|
isDeleted: boolean | null
|
|
67
|
+
isDefault: boolean | null
|
|
68
|
+
harnessKind: string | null
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
export type UserAgentCountAggregateOutputType = {
|
|
@@ -80,6 +84,8 @@ export type UserAgentCountAggregateOutputType = {
|
|
|
80
84
|
createdAt: number
|
|
81
85
|
updatedAt: number
|
|
82
86
|
isDeleted: number
|
|
87
|
+
isDefault: number
|
|
88
|
+
harnessKind: number
|
|
83
89
|
_all: number
|
|
84
90
|
}
|
|
85
91
|
|
|
@@ -105,6 +111,8 @@ export type UserAgentMinAggregateInputType = {
|
|
|
105
111
|
createdAt?: true
|
|
106
112
|
updatedAt?: true
|
|
107
113
|
isDeleted?: true
|
|
114
|
+
isDefault?: true
|
|
115
|
+
harnessKind?: true
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
export type UserAgentMaxAggregateInputType = {
|
|
@@ -120,6 +128,8 @@ export type UserAgentMaxAggregateInputType = {
|
|
|
120
128
|
createdAt?: true
|
|
121
129
|
updatedAt?: true
|
|
122
130
|
isDeleted?: true
|
|
131
|
+
isDefault?: true
|
|
132
|
+
harnessKind?: true
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
export type UserAgentCountAggregateInputType = {
|
|
@@ -138,6 +148,8 @@ export type UserAgentCountAggregateInputType = {
|
|
|
138
148
|
createdAt?: true
|
|
139
149
|
updatedAt?: true
|
|
140
150
|
isDeleted?: true
|
|
151
|
+
isDefault?: true
|
|
152
|
+
harnessKind?: true
|
|
141
153
|
_all?: true
|
|
142
154
|
}
|
|
143
155
|
|
|
@@ -243,6 +255,8 @@ export type UserAgentGroupByOutputType = {
|
|
|
243
255
|
createdAt: Date
|
|
244
256
|
updatedAt: Date
|
|
245
257
|
isDeleted: boolean
|
|
258
|
+
isDefault: boolean
|
|
259
|
+
harnessKind: string | null
|
|
246
260
|
_count: UserAgentCountAggregateOutputType | null
|
|
247
261
|
_avg: UserAgentAvgAggregateOutputType | null
|
|
248
262
|
_sum: UserAgentSumAggregateOutputType | null
|
|
@@ -284,8 +298,11 @@ export type UserAgentWhereInput = {
|
|
|
284
298
|
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
285
299
|
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
286
300
|
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
301
|
+
isDefault?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
302
|
+
harnessKind?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
287
303
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
288
304
|
threads?: Prisma.ChatThreadListRelationFilter
|
|
305
|
+
agentBindings?: Prisma.BusinessAgentBindingListRelationFilter
|
|
289
306
|
}
|
|
290
307
|
|
|
291
308
|
export type UserAgentOrderByWithRelationInput = {
|
|
@@ -304,8 +321,11 @@ export type UserAgentOrderByWithRelationInput = {
|
|
|
304
321
|
createdAt?: Prisma.SortOrder
|
|
305
322
|
updatedAt?: Prisma.SortOrder
|
|
306
323
|
isDeleted?: Prisma.SortOrder
|
|
324
|
+
isDefault?: Prisma.SortOrder
|
|
325
|
+
harnessKind?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
307
326
|
user?: Prisma.UserOrderByWithRelationInput
|
|
308
327
|
threads?: Prisma.ChatThreadOrderByRelationAggregateInput
|
|
328
|
+
agentBindings?: Prisma.BusinessAgentBindingOrderByRelationAggregateInput
|
|
309
329
|
}
|
|
310
330
|
|
|
311
331
|
export type UserAgentWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -327,8 +347,11 @@ export type UserAgentWhereUniqueInput = Prisma.AtLeast<{
|
|
|
327
347
|
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
328
348
|
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
329
349
|
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
350
|
+
isDefault?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
351
|
+
harnessKind?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
330
352
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
331
353
|
threads?: Prisma.ChatThreadListRelationFilter
|
|
354
|
+
agentBindings?: Prisma.BusinessAgentBindingListRelationFilter
|
|
332
355
|
}, "id">
|
|
333
356
|
|
|
334
357
|
export type UserAgentOrderByWithAggregationInput = {
|
|
@@ -347,6 +370,8 @@ export type UserAgentOrderByWithAggregationInput = {
|
|
|
347
370
|
createdAt?: Prisma.SortOrder
|
|
348
371
|
updatedAt?: Prisma.SortOrder
|
|
349
372
|
isDeleted?: Prisma.SortOrder
|
|
373
|
+
isDefault?: Prisma.SortOrder
|
|
374
|
+
harnessKind?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
350
375
|
_count?: Prisma.UserAgentCountOrderByAggregateInput
|
|
351
376
|
_avg?: Prisma.UserAgentAvgOrderByAggregateInput
|
|
352
377
|
_max?: Prisma.UserAgentMaxOrderByAggregateInput
|
|
@@ -373,6 +398,8 @@ export type UserAgentScalarWhereWithAggregatesInput = {
|
|
|
373
398
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserAgent"> | Date | string
|
|
374
399
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UserAgent"> | Date | string
|
|
375
400
|
isDeleted?: Prisma.BoolWithAggregatesFilter<"UserAgent"> | boolean
|
|
401
|
+
isDefault?: Prisma.BoolWithAggregatesFilter<"UserAgent"> | boolean
|
|
402
|
+
harnessKind?: Prisma.StringNullableWithAggregatesFilter<"UserAgent"> | string | null
|
|
376
403
|
}
|
|
377
404
|
|
|
378
405
|
export type UserAgentCreateInput = {
|
|
@@ -390,8 +417,11 @@ export type UserAgentCreateInput = {
|
|
|
390
417
|
createdAt?: Date | string
|
|
391
418
|
updatedAt?: Date | string
|
|
392
419
|
isDeleted?: boolean
|
|
420
|
+
isDefault?: boolean
|
|
421
|
+
harnessKind?: string | null
|
|
393
422
|
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
394
423
|
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
424
|
+
agentBindings?: Prisma.BusinessAgentBindingCreateNestedManyWithoutAgentInput
|
|
395
425
|
}
|
|
396
426
|
|
|
397
427
|
export type UserAgentUncheckedCreateInput = {
|
|
@@ -410,7 +440,10 @@ export type UserAgentUncheckedCreateInput = {
|
|
|
410
440
|
createdAt?: Date | string
|
|
411
441
|
updatedAt?: Date | string
|
|
412
442
|
isDeleted?: boolean
|
|
443
|
+
isDefault?: boolean
|
|
444
|
+
harnessKind?: string | null
|
|
413
445
|
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
446
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedCreateNestedManyWithoutAgentInput
|
|
414
447
|
}
|
|
415
448
|
|
|
416
449
|
export type UserAgentUpdateInput = {
|
|
@@ -428,8 +461,11 @@ export type UserAgentUpdateInput = {
|
|
|
428
461
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
429
462
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
430
463
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
464
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
465
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
431
466
|
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
432
467
|
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
468
|
+
agentBindings?: Prisma.BusinessAgentBindingUpdateManyWithoutAgentNestedInput
|
|
433
469
|
}
|
|
434
470
|
|
|
435
471
|
export type UserAgentUncheckedUpdateInput = {
|
|
@@ -448,7 +484,10 @@ export type UserAgentUncheckedUpdateInput = {
|
|
|
448
484
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
449
485
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
450
486
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
487
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
488
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
451
489
|
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
490
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedUpdateManyWithoutAgentNestedInput
|
|
452
491
|
}
|
|
453
492
|
|
|
454
493
|
export type UserAgentCreateManyInput = {
|
|
@@ -467,6 +506,8 @@ export type UserAgentCreateManyInput = {
|
|
|
467
506
|
createdAt?: Date | string
|
|
468
507
|
updatedAt?: Date | string
|
|
469
508
|
isDeleted?: boolean
|
|
509
|
+
isDefault?: boolean
|
|
510
|
+
harnessKind?: string | null
|
|
470
511
|
}
|
|
471
512
|
|
|
472
513
|
export type UserAgentUpdateManyMutationInput = {
|
|
@@ -484,6 +525,8 @@ export type UserAgentUpdateManyMutationInput = {
|
|
|
484
525
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
485
526
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
486
527
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
528
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
529
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
487
530
|
}
|
|
488
531
|
|
|
489
532
|
export type UserAgentUncheckedUpdateManyInput = {
|
|
@@ -502,6 +545,8 @@ export type UserAgentUncheckedUpdateManyInput = {
|
|
|
502
545
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
503
546
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
504
547
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
548
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
549
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
505
550
|
}
|
|
506
551
|
|
|
507
552
|
export type UserAgentListRelationFilter = {
|
|
@@ -519,6 +564,11 @@ export type UserAgentNullableScalarRelationFilter = {
|
|
|
519
564
|
isNot?: Prisma.UserAgentWhereInput | null
|
|
520
565
|
}
|
|
521
566
|
|
|
567
|
+
export type UserAgentScalarRelationFilter = {
|
|
568
|
+
is?: Prisma.UserAgentWhereInput
|
|
569
|
+
isNot?: Prisma.UserAgentWhereInput
|
|
570
|
+
}
|
|
571
|
+
|
|
522
572
|
export type UserAgentCountOrderByAggregateInput = {
|
|
523
573
|
id?: Prisma.SortOrder
|
|
524
574
|
userId?: Prisma.SortOrder
|
|
@@ -535,6 +585,8 @@ export type UserAgentCountOrderByAggregateInput = {
|
|
|
535
585
|
createdAt?: Prisma.SortOrder
|
|
536
586
|
updatedAt?: Prisma.SortOrder
|
|
537
587
|
isDeleted?: Prisma.SortOrder
|
|
588
|
+
isDefault?: Prisma.SortOrder
|
|
589
|
+
harnessKind?: Prisma.SortOrder
|
|
538
590
|
}
|
|
539
591
|
|
|
540
592
|
export type UserAgentAvgOrderByAggregateInput = {
|
|
@@ -554,6 +606,8 @@ export type UserAgentMaxOrderByAggregateInput = {
|
|
|
554
606
|
createdAt?: Prisma.SortOrder
|
|
555
607
|
updatedAt?: Prisma.SortOrder
|
|
556
608
|
isDeleted?: Prisma.SortOrder
|
|
609
|
+
isDefault?: Prisma.SortOrder
|
|
610
|
+
harnessKind?: Prisma.SortOrder
|
|
557
611
|
}
|
|
558
612
|
|
|
559
613
|
export type UserAgentMinOrderByAggregateInput = {
|
|
@@ -569,6 +623,8 @@ export type UserAgentMinOrderByAggregateInput = {
|
|
|
569
623
|
createdAt?: Prisma.SortOrder
|
|
570
624
|
updatedAt?: Prisma.SortOrder
|
|
571
625
|
isDeleted?: Prisma.SortOrder
|
|
626
|
+
isDefault?: Prisma.SortOrder
|
|
627
|
+
harnessKind?: Prisma.SortOrder
|
|
572
628
|
}
|
|
573
629
|
|
|
574
630
|
export type UserAgentSumOrderByAggregateInput = {
|
|
@@ -633,6 +689,20 @@ export type UserAgentUpdateOneWithoutThreadsNestedInput = {
|
|
|
633
689
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserAgentUpdateToOneWithWhereWithoutThreadsInput, Prisma.UserAgentUpdateWithoutThreadsInput>, Prisma.UserAgentUncheckedUpdateWithoutThreadsInput>
|
|
634
690
|
}
|
|
635
691
|
|
|
692
|
+
export type UserAgentCreateNestedOneWithoutAgentBindingsInput = {
|
|
693
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
694
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutAgentBindingsInput
|
|
695
|
+
connect?: Prisma.UserAgentWhereUniqueInput
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export type UserAgentUpdateOneRequiredWithoutAgentBindingsNestedInput = {
|
|
699
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
700
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutAgentBindingsInput
|
|
701
|
+
upsert?: Prisma.UserAgentUpsertWithoutAgentBindingsInput
|
|
702
|
+
connect?: Prisma.UserAgentWhereUniqueInput
|
|
703
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.UserAgentUpdateToOneWithWhereWithoutAgentBindingsInput, Prisma.UserAgentUpdateWithoutAgentBindingsInput>, Prisma.UserAgentUncheckedUpdateWithoutAgentBindingsInput>
|
|
704
|
+
}
|
|
705
|
+
|
|
636
706
|
export type UserAgentCreateWithoutUserInput = {
|
|
637
707
|
id?: string
|
|
638
708
|
name: string
|
|
@@ -648,7 +718,10 @@ export type UserAgentCreateWithoutUserInput = {
|
|
|
648
718
|
createdAt?: Date | string
|
|
649
719
|
updatedAt?: Date | string
|
|
650
720
|
isDeleted?: boolean
|
|
721
|
+
isDefault?: boolean
|
|
722
|
+
harnessKind?: string | null
|
|
651
723
|
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
724
|
+
agentBindings?: Prisma.BusinessAgentBindingCreateNestedManyWithoutAgentInput
|
|
652
725
|
}
|
|
653
726
|
|
|
654
727
|
export type UserAgentUncheckedCreateWithoutUserInput = {
|
|
@@ -666,7 +739,10 @@ export type UserAgentUncheckedCreateWithoutUserInput = {
|
|
|
666
739
|
createdAt?: Date | string
|
|
667
740
|
updatedAt?: Date | string
|
|
668
741
|
isDeleted?: boolean
|
|
742
|
+
isDefault?: boolean
|
|
743
|
+
harnessKind?: string | null
|
|
669
744
|
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
745
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedCreateNestedManyWithoutAgentInput
|
|
670
746
|
}
|
|
671
747
|
|
|
672
748
|
export type UserAgentCreateOrConnectWithoutUserInput = {
|
|
@@ -713,6 +789,8 @@ export type UserAgentScalarWhereInput = {
|
|
|
713
789
|
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
714
790
|
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
715
791
|
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
792
|
+
isDefault?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
793
|
+
harnessKind?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
716
794
|
}
|
|
717
795
|
|
|
718
796
|
export type UserAgentCreateWithoutThreadsInput = {
|
|
@@ -730,7 +808,10 @@ export type UserAgentCreateWithoutThreadsInput = {
|
|
|
730
808
|
createdAt?: Date | string
|
|
731
809
|
updatedAt?: Date | string
|
|
732
810
|
isDeleted?: boolean
|
|
811
|
+
isDefault?: boolean
|
|
812
|
+
harnessKind?: string | null
|
|
733
813
|
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
814
|
+
agentBindings?: Prisma.BusinessAgentBindingCreateNestedManyWithoutAgentInput
|
|
734
815
|
}
|
|
735
816
|
|
|
736
817
|
export type UserAgentUncheckedCreateWithoutThreadsInput = {
|
|
@@ -749,6 +830,9 @@ export type UserAgentUncheckedCreateWithoutThreadsInput = {
|
|
|
749
830
|
createdAt?: Date | string
|
|
750
831
|
updatedAt?: Date | string
|
|
751
832
|
isDeleted?: boolean
|
|
833
|
+
isDefault?: boolean
|
|
834
|
+
harnessKind?: string | null
|
|
835
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedCreateNestedManyWithoutAgentInput
|
|
752
836
|
}
|
|
753
837
|
|
|
754
838
|
export type UserAgentCreateOrConnectWithoutThreadsInput = {
|
|
@@ -782,7 +866,10 @@ export type UserAgentUpdateWithoutThreadsInput = {
|
|
|
782
866
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
783
867
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
784
868
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
869
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
870
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
785
871
|
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
872
|
+
agentBindings?: Prisma.BusinessAgentBindingUpdateManyWithoutAgentNestedInput
|
|
786
873
|
}
|
|
787
874
|
|
|
788
875
|
export type UserAgentUncheckedUpdateWithoutThreadsInput = {
|
|
@@ -801,6 +888,109 @@ export type UserAgentUncheckedUpdateWithoutThreadsInput = {
|
|
|
801
888
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
802
889
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
803
890
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
891
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
892
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
893
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedUpdateManyWithoutAgentNestedInput
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
export type UserAgentCreateWithoutAgentBindingsInput = {
|
|
897
|
+
id?: string
|
|
898
|
+
name: string
|
|
899
|
+
description?: string | null
|
|
900
|
+
avatarEmoji?: string | null
|
|
901
|
+
systemPrompt: string
|
|
902
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
903
|
+
model?: string | null
|
|
904
|
+
temperature?: number | null
|
|
905
|
+
greeting?: string | null
|
|
906
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
907
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
908
|
+
createdAt?: Date | string
|
|
909
|
+
updatedAt?: Date | string
|
|
910
|
+
isDeleted?: boolean
|
|
911
|
+
isDefault?: boolean
|
|
912
|
+
harnessKind?: string | null
|
|
913
|
+
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
914
|
+
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export type UserAgentUncheckedCreateWithoutAgentBindingsInput = {
|
|
918
|
+
id?: string
|
|
919
|
+
userId: string
|
|
920
|
+
name: string
|
|
921
|
+
description?: string | null
|
|
922
|
+
avatarEmoji?: string | null
|
|
923
|
+
systemPrompt: string
|
|
924
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
925
|
+
model?: string | null
|
|
926
|
+
temperature?: number | null
|
|
927
|
+
greeting?: string | null
|
|
928
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
929
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
930
|
+
createdAt?: Date | string
|
|
931
|
+
updatedAt?: Date | string
|
|
932
|
+
isDeleted?: boolean
|
|
933
|
+
isDefault?: boolean
|
|
934
|
+
harnessKind?: string | null
|
|
935
|
+
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export type UserAgentCreateOrConnectWithoutAgentBindingsInput = {
|
|
939
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
940
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export type UserAgentUpsertWithoutAgentBindingsInput = {
|
|
944
|
+
update: Prisma.XOR<Prisma.UserAgentUpdateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedUpdateWithoutAgentBindingsInput>
|
|
945
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
946
|
+
where?: Prisma.UserAgentWhereInput
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export type UserAgentUpdateToOneWithWhereWithoutAgentBindingsInput = {
|
|
950
|
+
where?: Prisma.UserAgentWhereInput
|
|
951
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedUpdateWithoutAgentBindingsInput>
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export type UserAgentUpdateWithoutAgentBindingsInput = {
|
|
955
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
956
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
957
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
958
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
959
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
960
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
961
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
962
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
963
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
964
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
965
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
966
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
967
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
968
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
969
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
970
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
971
|
+
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
972
|
+
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
export type UserAgentUncheckedUpdateWithoutAgentBindingsInput = {
|
|
976
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
977
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
978
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
979
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
980
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
981
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
982
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
983
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
984
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
985
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
986
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
987
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
988
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
989
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
990
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
991
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
992
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
993
|
+
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
804
994
|
}
|
|
805
995
|
|
|
806
996
|
export type UserAgentCreateManyUserInput = {
|
|
@@ -818,6 +1008,8 @@ export type UserAgentCreateManyUserInput = {
|
|
|
818
1008
|
createdAt?: Date | string
|
|
819
1009
|
updatedAt?: Date | string
|
|
820
1010
|
isDeleted?: boolean
|
|
1011
|
+
isDefault?: boolean
|
|
1012
|
+
harnessKind?: string | null
|
|
821
1013
|
}
|
|
822
1014
|
|
|
823
1015
|
export type UserAgentUpdateWithoutUserInput = {
|
|
@@ -835,7 +1027,10 @@ export type UserAgentUpdateWithoutUserInput = {
|
|
|
835
1027
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
836
1028
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
837
1029
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1030
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1031
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
838
1032
|
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
1033
|
+
agentBindings?: Prisma.BusinessAgentBindingUpdateManyWithoutAgentNestedInput
|
|
839
1034
|
}
|
|
840
1035
|
|
|
841
1036
|
export type UserAgentUncheckedUpdateWithoutUserInput = {
|
|
@@ -853,7 +1048,10 @@ export type UserAgentUncheckedUpdateWithoutUserInput = {
|
|
|
853
1048
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
854
1049
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
855
1050
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1051
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1052
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
856
1053
|
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
1054
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedUpdateManyWithoutAgentNestedInput
|
|
857
1055
|
}
|
|
858
1056
|
|
|
859
1057
|
export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
@@ -871,6 +1069,8 @@ export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
|
871
1069
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
872
1070
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
873
1071
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1072
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1073
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
874
1074
|
}
|
|
875
1075
|
|
|
876
1076
|
|
|
@@ -880,10 +1080,12 @@ export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
|
880
1080
|
|
|
881
1081
|
export type UserAgentCountOutputType = {
|
|
882
1082
|
threads: number
|
|
1083
|
+
agentBindings: number
|
|
883
1084
|
}
|
|
884
1085
|
|
|
885
1086
|
export type UserAgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
886
1087
|
threads?: boolean | UserAgentCountOutputTypeCountThreadsArgs
|
|
1088
|
+
agentBindings?: boolean | UserAgentCountOutputTypeCountAgentBindingsArgs
|
|
887
1089
|
}
|
|
888
1090
|
|
|
889
1091
|
/**
|
|
@@ -903,6 +1105,13 @@ export type UserAgentCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Typ
|
|
|
903
1105
|
where?: Prisma.ChatThreadWhereInput
|
|
904
1106
|
}
|
|
905
1107
|
|
|
1108
|
+
/**
|
|
1109
|
+
* UserAgentCountOutputType without action
|
|
1110
|
+
*/
|
|
1111
|
+
export type UserAgentCountOutputTypeCountAgentBindingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1112
|
+
where?: Prisma.BusinessAgentBindingWhereInput
|
|
1113
|
+
}
|
|
1114
|
+
|
|
906
1115
|
|
|
907
1116
|
export type UserAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
908
1117
|
id?: boolean
|
|
@@ -920,8 +1129,11 @@ export type UserAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
920
1129
|
createdAt?: boolean
|
|
921
1130
|
updatedAt?: boolean
|
|
922
1131
|
isDeleted?: boolean
|
|
1132
|
+
isDefault?: boolean
|
|
1133
|
+
harnessKind?: boolean
|
|
923
1134
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
924
1135
|
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
1136
|
+
agentBindings?: boolean | Prisma.UserAgent$agentBindingsArgs<ExtArgs>
|
|
925
1137
|
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
926
1138
|
}, ExtArgs["result"]["userAgent"]>
|
|
927
1139
|
|
|
@@ -941,6 +1153,8 @@ export type UserAgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|
|
941
1153
|
createdAt?: boolean
|
|
942
1154
|
updatedAt?: boolean
|
|
943
1155
|
isDeleted?: boolean
|
|
1156
|
+
isDefault?: boolean
|
|
1157
|
+
harnessKind?: boolean
|
|
944
1158
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
945
1159
|
}, ExtArgs["result"]["userAgent"]>
|
|
946
1160
|
|
|
@@ -960,6 +1174,8 @@ export type UserAgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|
|
960
1174
|
createdAt?: boolean
|
|
961
1175
|
updatedAt?: boolean
|
|
962
1176
|
isDeleted?: boolean
|
|
1177
|
+
isDefault?: boolean
|
|
1178
|
+
harnessKind?: boolean
|
|
963
1179
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
964
1180
|
}, ExtArgs["result"]["userAgent"]>
|
|
965
1181
|
|
|
@@ -979,12 +1195,15 @@ export type UserAgentSelectScalar = {
|
|
|
979
1195
|
createdAt?: boolean
|
|
980
1196
|
updatedAt?: boolean
|
|
981
1197
|
isDeleted?: boolean
|
|
1198
|
+
isDefault?: boolean
|
|
1199
|
+
harnessKind?: boolean
|
|
982
1200
|
}
|
|
983
1201
|
|
|
984
|
-
export type UserAgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "description" | "avatarEmoji" | "systemPrompt" | "allowedTools" | "model" | "temperature" | "greeting" | "suggestedPrompts" | "knowledgeBaseIds" | "createdAt" | "updatedAt" | "isDeleted", ExtArgs["result"]["userAgent"]>
|
|
1202
|
+
export type UserAgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "description" | "avatarEmoji" | "systemPrompt" | "allowedTools" | "model" | "temperature" | "greeting" | "suggestedPrompts" | "knowledgeBaseIds" | "createdAt" | "updatedAt" | "isDeleted" | "isDefault" | "harnessKind", ExtArgs["result"]["userAgent"]>
|
|
985
1203
|
export type UserAgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
986
1204
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
987
1205
|
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
1206
|
+
agentBindings?: boolean | Prisma.UserAgent$agentBindingsArgs<ExtArgs>
|
|
988
1207
|
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
989
1208
|
}
|
|
990
1209
|
export type UserAgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -999,6 +1218,7 @@ export type $UserAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
999
1218
|
objects: {
|
|
1000
1219
|
user: Prisma.$UserPayload<ExtArgs>
|
|
1001
1220
|
threads: Prisma.$ChatThreadPayload<ExtArgs>[]
|
|
1221
|
+
agentBindings: Prisma.$BusinessAgentBindingPayload<ExtArgs>[]
|
|
1002
1222
|
}
|
|
1003
1223
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1004
1224
|
id: string
|
|
@@ -1016,6 +1236,8 @@ export type $UserAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1016
1236
|
createdAt: Date
|
|
1017
1237
|
updatedAt: Date
|
|
1018
1238
|
isDeleted: boolean
|
|
1239
|
+
isDefault: boolean
|
|
1240
|
+
harnessKind: string | null
|
|
1019
1241
|
}, ExtArgs["result"]["userAgent"]>
|
|
1020
1242
|
composites: {}
|
|
1021
1243
|
}
|
|
@@ -1412,6 +1634,7 @@ export interface Prisma__UserAgentClient<T, Null = never, ExtArgs extends runtim
|
|
|
1412
1634
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1413
1635
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1414
1636
|
threads<T extends Prisma.UserAgent$threadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserAgent$threadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1637
|
+
agentBindings<T extends Prisma.UserAgent$agentBindingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserAgent$agentBindingsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BusinessAgentBindingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1415
1638
|
/**
|
|
1416
1639
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1417
1640
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1456,6 +1679,8 @@ export interface UserAgentFieldRefs {
|
|
|
1456
1679
|
readonly createdAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1457
1680
|
readonly updatedAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1458
1681
|
readonly isDeleted: Prisma.FieldRef<"UserAgent", 'Boolean'>
|
|
1682
|
+
readonly isDefault: Prisma.FieldRef<"UserAgent", 'Boolean'>
|
|
1683
|
+
readonly harnessKind: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1459
1684
|
}
|
|
1460
1685
|
|
|
1461
1686
|
|
|
@@ -1878,6 +2103,30 @@ export type UserAgent$threadsArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1878
2103
|
distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
|
|
1879
2104
|
}
|
|
1880
2105
|
|
|
2106
|
+
/**
|
|
2107
|
+
* UserAgent.agentBindings
|
|
2108
|
+
*/
|
|
2109
|
+
export type UserAgent$agentBindingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2110
|
+
/**
|
|
2111
|
+
* Select specific fields to fetch from the BusinessAgentBinding
|
|
2112
|
+
*/
|
|
2113
|
+
select?: Prisma.BusinessAgentBindingSelect<ExtArgs> | null
|
|
2114
|
+
/**
|
|
2115
|
+
* Omit specific fields from the BusinessAgentBinding
|
|
2116
|
+
*/
|
|
2117
|
+
omit?: Prisma.BusinessAgentBindingOmit<ExtArgs> | null
|
|
2118
|
+
/**
|
|
2119
|
+
* Choose, which related nodes to fetch as well
|
|
2120
|
+
*/
|
|
2121
|
+
include?: Prisma.BusinessAgentBindingInclude<ExtArgs> | null
|
|
2122
|
+
where?: Prisma.BusinessAgentBindingWhereInput
|
|
2123
|
+
orderBy?: Prisma.BusinessAgentBindingOrderByWithRelationInput | Prisma.BusinessAgentBindingOrderByWithRelationInput[]
|
|
2124
|
+
cursor?: Prisma.BusinessAgentBindingWhereUniqueInput
|
|
2125
|
+
take?: number
|
|
2126
|
+
skip?: number
|
|
2127
|
+
distinct?: Prisma.BusinessAgentBindingScalarFieldEnum | Prisma.BusinessAgentBindingScalarFieldEnum[]
|
|
2128
|
+
}
|
|
2129
|
+
|
|
1881
2130
|
/**
|
|
1882
2131
|
* UserAgent without action
|
|
1883
2132
|
*/
|
|
@@ -538,10 +538,12 @@ export type WorkspaceCreateNestedOneWithoutAiUsageLogsInput = {
|
|
|
538
538
|
connect?: Prisma.WorkspaceWhereUniqueInput
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
export type
|
|
541
|
+
export type WorkspaceUpdateOneWithoutAiUsageLogsNestedInput = {
|
|
542
542
|
create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
|
|
543
543
|
connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutAiUsageLogsInput
|
|
544
544
|
upsert?: Prisma.WorkspaceUpsertWithoutAiUsageLogsInput
|
|
545
|
+
disconnect?: Prisma.WorkspaceWhereInput | boolean
|
|
546
|
+
delete?: Prisma.WorkspaceWhereInput | boolean
|
|
545
547
|
connect?: Prisma.WorkspaceWhereUniqueInput
|
|
546
548
|
update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutAiUsageLogsInput, Prisma.WorkspaceUpdateWithoutAiUsageLogsInput>, Prisma.WorkspaceUncheckedUpdateWithoutAiUsageLogsInput>
|
|
547
549
|
}
|