@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 = {
|
|
@@ -714,6 +790,8 @@ export type UserAgentScalarWhereInput = {
|
|
|
714
790
|
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
715
791
|
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
716
792
|
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
793
|
+
isDefault?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
794
|
+
harnessKind?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
717
795
|
}
|
|
718
796
|
|
|
719
797
|
export type UserAgentCreateWithoutThreadsInput = {
|
|
@@ -731,7 +809,10 @@ export type UserAgentCreateWithoutThreadsInput = {
|
|
|
731
809
|
createdAt?: Date | string
|
|
732
810
|
updatedAt?: Date | string
|
|
733
811
|
isDeleted?: boolean
|
|
812
|
+
isDefault?: boolean
|
|
813
|
+
harnessKind?: string | null
|
|
734
814
|
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
815
|
+
agentBindings?: Prisma.BusinessAgentBindingCreateNestedManyWithoutAgentInput
|
|
735
816
|
}
|
|
736
817
|
|
|
737
818
|
export type UserAgentUncheckedCreateWithoutThreadsInput = {
|
|
@@ -750,6 +831,9 @@ export type UserAgentUncheckedCreateWithoutThreadsInput = {
|
|
|
750
831
|
createdAt?: Date | string
|
|
751
832
|
updatedAt?: Date | string
|
|
752
833
|
isDeleted?: boolean
|
|
834
|
+
isDefault?: boolean
|
|
835
|
+
harnessKind?: string | null
|
|
836
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedCreateNestedManyWithoutAgentInput
|
|
753
837
|
}
|
|
754
838
|
|
|
755
839
|
export type UserAgentCreateOrConnectWithoutThreadsInput = {
|
|
@@ -783,7 +867,10 @@ export type UserAgentUpdateWithoutThreadsInput = {
|
|
|
783
867
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
784
868
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
785
869
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
870
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
871
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
786
872
|
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
873
|
+
agentBindings?: Prisma.BusinessAgentBindingUpdateManyWithoutAgentNestedInput
|
|
787
874
|
}
|
|
788
875
|
|
|
789
876
|
export type UserAgentUncheckedUpdateWithoutThreadsInput = {
|
|
@@ -802,6 +889,109 @@ export type UserAgentUncheckedUpdateWithoutThreadsInput = {
|
|
|
802
889
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
803
890
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
804
891
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
892
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
893
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
894
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedUpdateManyWithoutAgentNestedInput
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export type UserAgentCreateWithoutAgentBindingsInput = {
|
|
898
|
+
id?: string
|
|
899
|
+
name: string
|
|
900
|
+
description?: string | null
|
|
901
|
+
avatarEmoji?: string | null
|
|
902
|
+
systemPrompt: string
|
|
903
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
904
|
+
model?: string | null
|
|
905
|
+
temperature?: number | null
|
|
906
|
+
greeting?: string | null
|
|
907
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
908
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
909
|
+
createdAt?: Date | string
|
|
910
|
+
updatedAt?: Date | string
|
|
911
|
+
isDeleted?: boolean
|
|
912
|
+
isDefault?: boolean
|
|
913
|
+
harnessKind?: string | null
|
|
914
|
+
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
915
|
+
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export type UserAgentUncheckedCreateWithoutAgentBindingsInput = {
|
|
919
|
+
id?: string
|
|
920
|
+
userId: string
|
|
921
|
+
name: string
|
|
922
|
+
description?: string | null
|
|
923
|
+
avatarEmoji?: string | null
|
|
924
|
+
systemPrompt: string
|
|
925
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
926
|
+
model?: string | null
|
|
927
|
+
temperature?: number | null
|
|
928
|
+
greeting?: string | null
|
|
929
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
930
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
931
|
+
createdAt?: Date | string
|
|
932
|
+
updatedAt?: Date | string
|
|
933
|
+
isDeleted?: boolean
|
|
934
|
+
isDefault?: boolean
|
|
935
|
+
harnessKind?: string | null
|
|
936
|
+
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
export type UserAgentCreateOrConnectWithoutAgentBindingsInput = {
|
|
940
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
941
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export type UserAgentUpsertWithoutAgentBindingsInput = {
|
|
945
|
+
update: Prisma.XOR<Prisma.UserAgentUpdateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedUpdateWithoutAgentBindingsInput>
|
|
946
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedCreateWithoutAgentBindingsInput>
|
|
947
|
+
where?: Prisma.UserAgentWhereInput
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export type UserAgentUpdateToOneWithWhereWithoutAgentBindingsInput = {
|
|
951
|
+
where?: Prisma.UserAgentWhereInput
|
|
952
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateWithoutAgentBindingsInput, Prisma.UserAgentUncheckedUpdateWithoutAgentBindingsInput>
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export type UserAgentUpdateWithoutAgentBindingsInput = {
|
|
956
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
957
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
958
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
959
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
960
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
961
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
962
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
963
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
964
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
965
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
966
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
967
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
968
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
969
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
970
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
971
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
972
|
+
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
973
|
+
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export type UserAgentUncheckedUpdateWithoutAgentBindingsInput = {
|
|
977
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
978
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
979
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
980
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
981
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
982
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
983
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
984
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
985
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
986
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
987
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
988
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
989
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
990
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
991
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
992
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
993
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
994
|
+
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
805
995
|
}
|
|
806
996
|
|
|
807
997
|
export type UserAgentCreateManyUserInput = {
|
|
@@ -819,6 +1009,8 @@ export type UserAgentCreateManyUserInput = {
|
|
|
819
1009
|
createdAt?: Date | string
|
|
820
1010
|
updatedAt?: Date | string
|
|
821
1011
|
isDeleted?: boolean
|
|
1012
|
+
isDefault?: boolean
|
|
1013
|
+
harnessKind?: string | null
|
|
822
1014
|
}
|
|
823
1015
|
|
|
824
1016
|
export type UserAgentUpdateWithoutUserInput = {
|
|
@@ -836,7 +1028,10 @@ export type UserAgentUpdateWithoutUserInput = {
|
|
|
836
1028
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
837
1029
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
838
1030
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1031
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1032
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
839
1033
|
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
1034
|
+
agentBindings?: Prisma.BusinessAgentBindingUpdateManyWithoutAgentNestedInput
|
|
840
1035
|
}
|
|
841
1036
|
|
|
842
1037
|
export type UserAgentUncheckedUpdateWithoutUserInput = {
|
|
@@ -854,7 +1049,10 @@ export type UserAgentUncheckedUpdateWithoutUserInput = {
|
|
|
854
1049
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
855
1050
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
856
1051
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1052
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1053
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
857
1054
|
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
1055
|
+
agentBindings?: Prisma.BusinessAgentBindingUncheckedUpdateManyWithoutAgentNestedInput
|
|
858
1056
|
}
|
|
859
1057
|
|
|
860
1058
|
export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
@@ -872,6 +1070,8 @@ export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
|
872
1070
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
873
1071
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
874
1072
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1073
|
+
isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1074
|
+
harnessKind?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
875
1075
|
}
|
|
876
1076
|
|
|
877
1077
|
|
|
@@ -881,10 +1081,12 @@ export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
|
881
1081
|
|
|
882
1082
|
export type UserAgentCountOutputType = {
|
|
883
1083
|
threads: number
|
|
1084
|
+
agentBindings: number
|
|
884
1085
|
}
|
|
885
1086
|
|
|
886
1087
|
export type UserAgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
887
1088
|
threads?: boolean | UserAgentCountOutputTypeCountThreadsArgs
|
|
1089
|
+
agentBindings?: boolean | UserAgentCountOutputTypeCountAgentBindingsArgs
|
|
888
1090
|
}
|
|
889
1091
|
|
|
890
1092
|
/**
|
|
@@ -904,6 +1106,13 @@ export type UserAgentCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Typ
|
|
|
904
1106
|
where?: Prisma.ChatThreadWhereInput
|
|
905
1107
|
}
|
|
906
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* UserAgentCountOutputType without action
|
|
1111
|
+
*/
|
|
1112
|
+
export type UserAgentCountOutputTypeCountAgentBindingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1113
|
+
where?: Prisma.BusinessAgentBindingWhereInput
|
|
1114
|
+
}
|
|
1115
|
+
|
|
907
1116
|
|
|
908
1117
|
export type UserAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
909
1118
|
id?: boolean
|
|
@@ -921,8 +1130,11 @@ export type UserAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
921
1130
|
createdAt?: boolean
|
|
922
1131
|
updatedAt?: boolean
|
|
923
1132
|
isDeleted?: boolean
|
|
1133
|
+
isDefault?: boolean
|
|
1134
|
+
harnessKind?: boolean
|
|
924
1135
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
925
1136
|
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
1137
|
+
agentBindings?: boolean | Prisma.UserAgent$agentBindingsArgs<ExtArgs>
|
|
926
1138
|
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
927
1139
|
}, ExtArgs["result"]["userAgent"]>
|
|
928
1140
|
|
|
@@ -942,6 +1154,8 @@ export type UserAgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|
|
942
1154
|
createdAt?: boolean
|
|
943
1155
|
updatedAt?: boolean
|
|
944
1156
|
isDeleted?: boolean
|
|
1157
|
+
isDefault?: boolean
|
|
1158
|
+
harnessKind?: boolean
|
|
945
1159
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
946
1160
|
}, ExtArgs["result"]["userAgent"]>
|
|
947
1161
|
|
|
@@ -961,6 +1175,8 @@ export type UserAgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|
|
961
1175
|
createdAt?: boolean
|
|
962
1176
|
updatedAt?: boolean
|
|
963
1177
|
isDeleted?: boolean
|
|
1178
|
+
isDefault?: boolean
|
|
1179
|
+
harnessKind?: boolean
|
|
964
1180
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
965
1181
|
}, ExtArgs["result"]["userAgent"]>
|
|
966
1182
|
|
|
@@ -980,12 +1196,15 @@ export type UserAgentSelectScalar = {
|
|
|
980
1196
|
createdAt?: boolean
|
|
981
1197
|
updatedAt?: boolean
|
|
982
1198
|
isDeleted?: boolean
|
|
1199
|
+
isDefault?: boolean
|
|
1200
|
+
harnessKind?: boolean
|
|
983
1201
|
}
|
|
984
1202
|
|
|
985
|
-
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"]>
|
|
1203
|
+
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"]>
|
|
986
1204
|
export type UserAgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
987
1205
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
988
1206
|
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
1207
|
+
agentBindings?: boolean | Prisma.UserAgent$agentBindingsArgs<ExtArgs>
|
|
989
1208
|
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
990
1209
|
}
|
|
991
1210
|
export type UserAgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -1000,6 +1219,7 @@ export type $UserAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1000
1219
|
objects: {
|
|
1001
1220
|
user: Prisma.$UserPayload<ExtArgs>
|
|
1002
1221
|
threads: Prisma.$ChatThreadPayload<ExtArgs>[]
|
|
1222
|
+
agentBindings: Prisma.$BusinessAgentBindingPayload<ExtArgs>[]
|
|
1003
1223
|
}
|
|
1004
1224
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1005
1225
|
id: string
|
|
@@ -1017,6 +1237,8 @@ export type $UserAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1017
1237
|
createdAt: Date
|
|
1018
1238
|
updatedAt: Date
|
|
1019
1239
|
isDeleted: boolean
|
|
1240
|
+
isDefault: boolean
|
|
1241
|
+
harnessKind: string | null
|
|
1020
1242
|
}, ExtArgs["result"]["userAgent"]>
|
|
1021
1243
|
composites: {}
|
|
1022
1244
|
}
|
|
@@ -1413,6 +1635,7 @@ export interface Prisma__UserAgentClient<T, Null = never, ExtArgs extends runtim
|
|
|
1413
1635
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1414
1636
|
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>
|
|
1415
1637
|
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>
|
|
1638
|
+
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>
|
|
1416
1639
|
/**
|
|
1417
1640
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1418
1641
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1457,6 +1680,8 @@ export interface UserAgentFieldRefs {
|
|
|
1457
1680
|
readonly createdAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1458
1681
|
readonly updatedAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1459
1682
|
readonly isDeleted: Prisma.FieldRef<"UserAgent", 'Boolean'>
|
|
1683
|
+
readonly isDefault: Prisma.FieldRef<"UserAgent", 'Boolean'>
|
|
1684
|
+
readonly harnessKind: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1460
1685
|
}
|
|
1461
1686
|
|
|
1462
1687
|
|
|
@@ -1881,6 +2106,30 @@ export type UserAgent$threadsArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1881
2106
|
distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
|
|
1882
2107
|
}
|
|
1883
2108
|
|
|
2109
|
+
/**
|
|
2110
|
+
* UserAgent.agentBindings
|
|
2111
|
+
*/
|
|
2112
|
+
export type UserAgent$agentBindingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2113
|
+
/**
|
|
2114
|
+
* Select specific fields to fetch from the BusinessAgentBinding
|
|
2115
|
+
*/
|
|
2116
|
+
select?: Prisma.BusinessAgentBindingSelect<ExtArgs> | null
|
|
2117
|
+
/**
|
|
2118
|
+
* Omit specific fields from the BusinessAgentBinding
|
|
2119
|
+
*/
|
|
2120
|
+
omit?: Prisma.BusinessAgentBindingOmit<ExtArgs> | null
|
|
2121
|
+
/**
|
|
2122
|
+
* Choose, which related nodes to fetch as well
|
|
2123
|
+
*/
|
|
2124
|
+
include?: Prisma.BusinessAgentBindingInclude<ExtArgs> | null
|
|
2125
|
+
where?: Prisma.BusinessAgentBindingWhereInput
|
|
2126
|
+
orderBy?: Prisma.BusinessAgentBindingOrderByWithRelationInput | Prisma.BusinessAgentBindingOrderByWithRelationInput[]
|
|
2127
|
+
cursor?: Prisma.BusinessAgentBindingWhereUniqueInput
|
|
2128
|
+
take?: number
|
|
2129
|
+
skip?: number
|
|
2130
|
+
distinct?: Prisma.BusinessAgentBindingScalarFieldEnum | Prisma.BusinessAgentBindingScalarFieldEnum[]
|
|
2131
|
+
}
|
|
2132
|
+
|
|
1884
2133
|
/**
|
|
1885
2134
|
* UserAgent without action
|
|
1886
2135
|
*/
|
|
@@ -603,10 +603,12 @@ export type WorkspaceCreateNestedOneWithoutAiUsageLogsInput = {
|
|
|
603
603
|
connect?: Prisma.WorkspaceWhereUniqueInput
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
export type
|
|
606
|
+
export type WorkspaceUpdateOneWithoutAiUsageLogsNestedInput = {
|
|
607
607
|
create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
|
|
608
608
|
connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutAiUsageLogsInput
|
|
609
609
|
upsert?: Prisma.WorkspaceUpsertWithoutAiUsageLogsInput
|
|
610
|
+
disconnect?: Prisma.WorkspaceWhereInput | boolean
|
|
611
|
+
delete?: Prisma.WorkspaceWhereInput | boolean
|
|
610
612
|
connect?: Prisma.WorkspaceWhereUniqueInput
|
|
611
613
|
update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutAiUsageLogsInput, Prisma.WorkspaceUpdateWithoutAiUsageLogsInput>, Prisma.WorkspaceUncheckedUpdateWithoutAiUsageLogsInput>
|
|
612
614
|
}
|