teamcopilot 0.1.2 → 0.1.4

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.
Files changed (35) hide show
  1. package/dist/chat/index.js +93 -12
  2. package/dist/frontend/assets/{cssMode-DPbQk08M.js → cssMode-DHaUFfVN.js} +1 -1
  3. package/dist/frontend/assets/{freemarker2-DFE4Z2hp.js → freemarker2-CTVtohp4.js} +1 -1
  4. package/dist/frontend/assets/{handlebars-Dw_PK21Y.js → handlebars-CI1GoG3L.js} +1 -1
  5. package/dist/frontend/assets/{html-DxZRNRpl.js → html-C1Kdg4Tl.js} +1 -1
  6. package/dist/frontend/assets/{htmlMode-iGgmnmtJ.js → htmlMode-CslwWXHV.js} +1 -1
  7. package/dist/frontend/assets/{index-CphuwuEr.js → index-CJMxNDke.js} +205 -205
  8. package/dist/frontend/assets/index-DrplZfJY.css +1 -0
  9. package/dist/frontend/assets/{javascript-Bw_u6aiq.js → javascript-D_jyP6QE.js} +1 -1
  10. package/dist/frontend/assets/{jsonMode-iBiD9w9m.js → jsonMode-BT5z_9Wi.js} +1 -1
  11. package/dist/frontend/assets/{liquid-nnkE2sbw.js → liquid-CATjnK_z.js} +1 -1
  12. package/dist/frontend/assets/{mdx-CHi7ETpD.js → mdx-B4zdWJY_.js} +1 -1
  13. package/dist/frontend/assets/{python--OTnmJv2.js → python-B_opZ_lQ.js} +1 -1
  14. package/dist/frontend/assets/{razor-C6OgnQD9.js → razor-BKopqk1g.js} +1 -1
  15. package/dist/frontend/assets/{tsMode-DzsKqqZD.js → tsMode-CMjXzcRc.js} +1 -1
  16. package/dist/frontend/assets/{typescript-BMZ0H3W7.js → typescript-lbL28oip.js} +1 -1
  17. package/dist/frontend/assets/{xml-HTDEz_LP.js → xml-BB8-GMIl.js} +1 -1
  18. package/dist/frontend/assets/{yaml-CVa5ypgE.js → yaml-B5S_93u4.js} +1 -1
  19. package/dist/frontend/index.html +2 -2
  20. package/dist/utils/approval-snapshot-common.js +2 -0
  21. package/dist/utils/chat-session-file-diff.js +120 -0
  22. package/dist/utils/workspace-sync.js +24 -0
  23. package/dist/workspace_files/.opencode/plugins/apply-patch-session-diff.ts +343 -0
  24. package/dist/workspace_files/package.json +1 -1
  25. package/package.json +1 -1
  26. package/prisma/generated/client/edge.js +18 -3
  27. package/prisma/generated/client/index-browser.js +15 -0
  28. package/prisma/generated/client/index.d.ts +2067 -173
  29. package/prisma/generated/client/index.js +18 -3
  30. package/prisma/generated/client/package.json +1 -1
  31. package/prisma/generated/client/schema.prisma +22 -3
  32. package/prisma/generated/client/wasm.js +18 -3
  33. package/prisma/migrations/20260324144454_add_chat_session_tracked_files/migration.sql +21 -0
  34. package/prisma/schema.prisma +20 -1
  35. package/dist/frontend/assets/index-Ds8n3J4W.css +0 -1
@@ -38,6 +38,11 @@ export type key_value = $Result.DefaultSelection<Prisma.$key_valuePayload>
38
38
  *
39
39
  */
40
40
  export type chat_sessions = $Result.DefaultSelection<Prisma.$chat_sessionsPayload>
41
+ /**
42
+ * Model chat_session_tracked_files
43
+ *
44
+ */
45
+ export type chat_session_tracked_files = $Result.DefaultSelection<Prisma.$chat_session_tracked_filesPayload>
41
46
  /**
42
47
  * Model tool_execution_permissions
43
48
  *
@@ -237,6 +242,16 @@ export class PrismaClient<
237
242
  */
238
243
  get chat_sessions(): Prisma.chat_sessionsDelegate<ExtArgs, ClientOptions>;
239
244
 
245
+ /**
246
+ * `prisma.chat_session_tracked_files`: Exposes CRUD operations for the **chat_session_tracked_files** model.
247
+ * Example usage:
248
+ * ```ts
249
+ * // Fetch zero or more Chat_session_tracked_files
250
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findMany()
251
+ * ```
252
+ */
253
+ get chat_session_tracked_files(): Prisma.chat_session_tracked_filesDelegate<ExtArgs, ClientOptions>;
254
+
240
255
  /**
241
256
  * `prisma.tool_execution_permissions`: Exposes CRUD operations for the **tool_execution_permissions** model.
242
257
  * Example usage:
@@ -742,6 +757,7 @@ export namespace Prisma {
742
757
  workflow_aborted_sessions: 'workflow_aborted_sessions',
743
758
  key_value: 'key_value',
744
759
  chat_sessions: 'chat_sessions',
760
+ chat_session_tracked_files: 'chat_session_tracked_files',
745
761
  tool_execution_permissions: 'tool_execution_permissions',
746
762
  resource_metadata: 'resource_metadata',
747
763
  resource_permissions: 'resource_permissions',
@@ -766,7 +782,7 @@ export namespace Prisma {
766
782
  omit: GlobalOmitOptions
767
783
  }
768
784
  meta: {
769
- modelProps: "users" | "workflow_runs" | "workflow_aborted_sessions" | "key_value" | "chat_sessions" | "tool_execution_permissions" | "resource_metadata" | "resource_permissions" | "resource_permission_users" | "resource_approved_snapshots" | "resource_approved_snapshot_files"
785
+ modelProps: "users" | "workflow_runs" | "workflow_aborted_sessions" | "key_value" | "chat_sessions" | "chat_session_tracked_files" | "tool_execution_permissions" | "resource_metadata" | "resource_permissions" | "resource_permission_users" | "resource_approved_snapshots" | "resource_approved_snapshot_files"
770
786
  txIsolationLevel: Prisma.TransactionIsolationLevel
771
787
  }
772
788
  model: {
@@ -1140,6 +1156,80 @@ export namespace Prisma {
1140
1156
  }
1141
1157
  }
1142
1158
  }
1159
+ chat_session_tracked_files: {
1160
+ payload: Prisma.$chat_session_tracked_filesPayload<ExtArgs>
1161
+ fields: Prisma.chat_session_tracked_filesFieldRefs
1162
+ operations: {
1163
+ findUnique: {
1164
+ args: Prisma.chat_session_tracked_filesFindUniqueArgs<ExtArgs>
1165
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload> | null
1166
+ }
1167
+ findUniqueOrThrow: {
1168
+ args: Prisma.chat_session_tracked_filesFindUniqueOrThrowArgs<ExtArgs>
1169
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1170
+ }
1171
+ findFirst: {
1172
+ args: Prisma.chat_session_tracked_filesFindFirstArgs<ExtArgs>
1173
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload> | null
1174
+ }
1175
+ findFirstOrThrow: {
1176
+ args: Prisma.chat_session_tracked_filesFindFirstOrThrowArgs<ExtArgs>
1177
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1178
+ }
1179
+ findMany: {
1180
+ args: Prisma.chat_session_tracked_filesFindManyArgs<ExtArgs>
1181
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>[]
1182
+ }
1183
+ create: {
1184
+ args: Prisma.chat_session_tracked_filesCreateArgs<ExtArgs>
1185
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1186
+ }
1187
+ createMany: {
1188
+ args: Prisma.chat_session_tracked_filesCreateManyArgs<ExtArgs>
1189
+ result: BatchPayload
1190
+ }
1191
+ createManyAndReturn: {
1192
+ args: Prisma.chat_session_tracked_filesCreateManyAndReturnArgs<ExtArgs>
1193
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>[]
1194
+ }
1195
+ delete: {
1196
+ args: Prisma.chat_session_tracked_filesDeleteArgs<ExtArgs>
1197
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1198
+ }
1199
+ update: {
1200
+ args: Prisma.chat_session_tracked_filesUpdateArgs<ExtArgs>
1201
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1202
+ }
1203
+ deleteMany: {
1204
+ args: Prisma.chat_session_tracked_filesDeleteManyArgs<ExtArgs>
1205
+ result: BatchPayload
1206
+ }
1207
+ updateMany: {
1208
+ args: Prisma.chat_session_tracked_filesUpdateManyArgs<ExtArgs>
1209
+ result: BatchPayload
1210
+ }
1211
+ updateManyAndReturn: {
1212
+ args: Prisma.chat_session_tracked_filesUpdateManyAndReturnArgs<ExtArgs>
1213
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>[]
1214
+ }
1215
+ upsert: {
1216
+ args: Prisma.chat_session_tracked_filesUpsertArgs<ExtArgs>
1217
+ result: $Utils.PayloadToResult<Prisma.$chat_session_tracked_filesPayload>
1218
+ }
1219
+ aggregate: {
1220
+ args: Prisma.Chat_session_tracked_filesAggregateArgs<ExtArgs>
1221
+ result: $Utils.Optional<AggregateChat_session_tracked_files>
1222
+ }
1223
+ groupBy: {
1224
+ args: Prisma.chat_session_tracked_filesGroupByArgs<ExtArgs>
1225
+ result: $Utils.Optional<Chat_session_tracked_filesGroupByOutputType>[]
1226
+ }
1227
+ count: {
1228
+ args: Prisma.chat_session_tracked_filesCountArgs<ExtArgs>
1229
+ result: $Utils.Optional<Chat_session_tracked_filesCountAggregateOutputType> | number
1230
+ }
1231
+ }
1232
+ }
1143
1233
  tool_execution_permissions: {
1144
1234
  payload: Prisma.$tool_execution_permissionsPayload<ExtArgs>
1145
1235
  fields: Prisma.tool_execution_permissionsFieldRefs
@@ -1685,6 +1775,7 @@ export namespace Prisma {
1685
1775
  workflow_aborted_sessions?: workflow_aborted_sessionsOmit
1686
1776
  key_value?: key_valueOmit
1687
1777
  chat_sessions?: chat_sessionsOmit
1778
+ chat_session_tracked_files?: chat_session_tracked_filesOmit
1688
1779
  tool_execution_permissions?: tool_execution_permissionsOmit
1689
1780
  resource_metadata?: resource_metadataOmit
1690
1781
  resource_permissions?: resource_permissionsOmit
@@ -1833,6 +1924,37 @@ export namespace Prisma {
1833
1924
  }
1834
1925
 
1835
1926
 
1927
+ /**
1928
+ * Count Type Chat_sessionsCountOutputType
1929
+ */
1930
+
1931
+ export type Chat_sessionsCountOutputType = {
1932
+ trackedFiles: number
1933
+ }
1934
+
1935
+ export type Chat_sessionsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1936
+ trackedFiles?: boolean | Chat_sessionsCountOutputTypeCountTrackedFilesArgs
1937
+ }
1938
+
1939
+ // Custom InputTypes
1940
+ /**
1941
+ * Chat_sessionsCountOutputType without action
1942
+ */
1943
+ export type Chat_sessionsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1944
+ /**
1945
+ * Select specific fields to fetch from the Chat_sessionsCountOutputType
1946
+ */
1947
+ select?: Chat_sessionsCountOutputTypeSelect<ExtArgs> | null
1948
+ }
1949
+
1950
+ /**
1951
+ * Chat_sessionsCountOutputType without action
1952
+ */
1953
+ export type Chat_sessionsCountOutputTypeCountTrackedFilesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1954
+ where?: chat_session_tracked_filesWhereInput
1955
+ }
1956
+
1957
+
1836
1958
  /**
1837
1959
  * Count Type Resource_permissionsCountOutputType
1838
1960
  */
@@ -6493,7 +6615,9 @@ export namespace Prisma {
6493
6615
  title?: boolean
6494
6616
  created_at?: boolean
6495
6617
  updated_at?: boolean
6618
+ trackedFiles?: boolean | chat_sessions$trackedFilesArgs<ExtArgs>
6496
6619
  user?: boolean | usersDefaultArgs<ExtArgs>
6620
+ _count?: boolean | Chat_sessionsCountOutputTypeDefaultArgs<ExtArgs>
6497
6621
  }, ExtArgs["result"]["chat_sessions"]>
6498
6622
 
6499
6623
  export type chat_sessionsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
@@ -6527,7 +6651,9 @@ export namespace Prisma {
6527
6651
 
6528
6652
  export type chat_sessionsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "user_id" | "opencode_session_id" | "title" | "created_at" | "updated_at", ExtArgs["result"]["chat_sessions"]>
6529
6653
  export type chat_sessionsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6654
+ trackedFiles?: boolean | chat_sessions$trackedFilesArgs<ExtArgs>
6530
6655
  user?: boolean | usersDefaultArgs<ExtArgs>
6656
+ _count?: boolean | Chat_sessionsCountOutputTypeDefaultArgs<ExtArgs>
6531
6657
  }
6532
6658
  export type chat_sessionsIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6533
6659
  user?: boolean | usersDefaultArgs<ExtArgs>
@@ -6539,6 +6665,7 @@ export namespace Prisma {
6539
6665
  export type $chat_sessionsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6540
6666
  name: "chat_sessions"
6541
6667
  objects: {
6668
+ trackedFiles: Prisma.$chat_session_tracked_filesPayload<ExtArgs>[]
6542
6669
  user: Prisma.$usersPayload<ExtArgs>
6543
6670
  }
6544
6671
  scalars: $Extensions.GetPayloadResult<{
@@ -6942,6 +7069,7 @@ export namespace Prisma {
6942
7069
  */
6943
7070
  export interface Prisma__chat_sessionsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
6944
7071
  readonly [Symbol.toStringTag]: "PrismaPromise"
7072
+ trackedFiles<T extends chat_sessions$trackedFilesArgs<ExtArgs> = {}>(args?: Subset<T, chat_sessions$trackedFilesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
6945
7073
  user<T extends usersDefaultArgs<ExtArgs> = {}>(args?: Subset<T, usersDefaultArgs<ExtArgs>>): Prisma__usersClient<$Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
6946
7074
  /**
6947
7075
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -7371,6 +7499,30 @@ export namespace Prisma {
7371
7499
  limit?: number
7372
7500
  }
7373
7501
 
7502
+ /**
7503
+ * chat_sessions.trackedFiles
7504
+ */
7505
+ export type chat_sessions$trackedFilesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7506
+ /**
7507
+ * Select specific fields to fetch from the chat_session_tracked_files
7508
+ */
7509
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
7510
+ /**
7511
+ * Omit specific fields from the chat_session_tracked_files
7512
+ */
7513
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
7514
+ /**
7515
+ * Choose, which related nodes to fetch as well
7516
+ */
7517
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
7518
+ where?: chat_session_tracked_filesWhereInput
7519
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
7520
+ cursor?: chat_session_tracked_filesWhereUniqueInput
7521
+ take?: number
7522
+ skip?: number
7523
+ distinct?: Chat_session_tracked_filesScalarFieldEnum | Chat_session_tracked_filesScalarFieldEnum[]
7524
+ }
7525
+
7374
7526
  /**
7375
7527
  * chat_sessions without action
7376
7528
  */
@@ -7391,235 +7543,1411 @@ export namespace Prisma {
7391
7543
 
7392
7544
 
7393
7545
  /**
7394
- * Model tool_execution_permissions
7546
+ * Model chat_session_tracked_files
7395
7547
  */
7396
7548
 
7397
- export type AggregateTool_execution_permissions = {
7398
- _count: Tool_execution_permissionsCountAggregateOutputType | null
7399
- _avg: Tool_execution_permissionsAvgAggregateOutputType | null
7400
- _sum: Tool_execution_permissionsSumAggregateOutputType | null
7401
- _min: Tool_execution_permissionsMinAggregateOutputType | null
7402
- _max: Tool_execution_permissionsMaxAggregateOutputType | null
7549
+ export type AggregateChat_session_tracked_files = {
7550
+ _count: Chat_session_tracked_filesCountAggregateOutputType | null
7551
+ _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
7552
+ _sum: Chat_session_tracked_filesSumAggregateOutputType | null
7553
+ _min: Chat_session_tracked_filesMinAggregateOutputType | null
7554
+ _max: Chat_session_tracked_filesMaxAggregateOutputType | null
7403
7555
  }
7404
7556
 
7405
- export type Tool_execution_permissionsAvgAggregateOutputType = {
7557
+ export type Chat_session_tracked_filesAvgAggregateOutputType = {
7558
+ size_bytes: number | null
7406
7559
  created_at: number | null
7407
- responded_at: number | null
7560
+ updated_at: number | null
7408
7561
  }
7409
7562
 
7410
- export type Tool_execution_permissionsSumAggregateOutputType = {
7563
+ export type Chat_session_tracked_filesSumAggregateOutputType = {
7564
+ size_bytes: number | null
7411
7565
  created_at: bigint | null
7412
- responded_at: bigint | null
7566
+ updated_at: bigint | null
7413
7567
  }
7414
7568
 
7415
- export type Tool_execution_permissionsMinAggregateOutputType = {
7569
+ export type Chat_session_tracked_filesMinAggregateOutputType = {
7416
7570
  id: string | null
7417
- opencode_session_id: string | null
7418
- message_id: string | null
7419
- call_id: string | null
7420
- status: string | null
7571
+ chat_session_id: string | null
7572
+ relative_path: string | null
7573
+ existed_at_baseline: boolean | null
7574
+ content_kind: string | null
7575
+ text_content: string | null
7576
+ binary_content: Bytes | null
7577
+ size_bytes: number | null
7578
+ content_sha256: string | null
7421
7579
  created_at: bigint | null
7422
- responded_at: bigint | null
7580
+ updated_at: bigint | null
7423
7581
  }
7424
7582
 
7425
- export type Tool_execution_permissionsMaxAggregateOutputType = {
7583
+ export type Chat_session_tracked_filesMaxAggregateOutputType = {
7426
7584
  id: string | null
7427
- opencode_session_id: string | null
7428
- message_id: string | null
7429
- call_id: string | null
7430
- status: string | null
7585
+ chat_session_id: string | null
7586
+ relative_path: string | null
7587
+ existed_at_baseline: boolean | null
7588
+ content_kind: string | null
7589
+ text_content: string | null
7590
+ binary_content: Bytes | null
7591
+ size_bytes: number | null
7592
+ content_sha256: string | null
7431
7593
  created_at: bigint | null
7432
- responded_at: bigint | null
7594
+ updated_at: bigint | null
7433
7595
  }
7434
7596
 
7435
- export type Tool_execution_permissionsCountAggregateOutputType = {
7597
+ export type Chat_session_tracked_filesCountAggregateOutputType = {
7436
7598
  id: number
7437
- opencode_session_id: number
7438
- message_id: number
7439
- call_id: number
7440
- status: number
7599
+ chat_session_id: number
7600
+ relative_path: number
7601
+ existed_at_baseline: number
7602
+ content_kind: number
7603
+ text_content: number
7604
+ binary_content: number
7605
+ size_bytes: number
7606
+ content_sha256: number
7441
7607
  created_at: number
7442
- responded_at: number
7608
+ updated_at: number
7443
7609
  _all: number
7444
7610
  }
7445
7611
 
7446
7612
 
7447
- export type Tool_execution_permissionsAvgAggregateInputType = {
7613
+ export type Chat_session_tracked_filesAvgAggregateInputType = {
7614
+ size_bytes?: true
7448
7615
  created_at?: true
7449
- responded_at?: true
7616
+ updated_at?: true
7450
7617
  }
7451
7618
 
7452
- export type Tool_execution_permissionsSumAggregateInputType = {
7619
+ export type Chat_session_tracked_filesSumAggregateInputType = {
7620
+ size_bytes?: true
7453
7621
  created_at?: true
7454
- responded_at?: true
7622
+ updated_at?: true
7455
7623
  }
7456
7624
 
7457
- export type Tool_execution_permissionsMinAggregateInputType = {
7625
+ export type Chat_session_tracked_filesMinAggregateInputType = {
7458
7626
  id?: true
7459
- opencode_session_id?: true
7460
- message_id?: true
7461
- call_id?: true
7462
- status?: true
7627
+ chat_session_id?: true
7628
+ relative_path?: true
7629
+ existed_at_baseline?: true
7630
+ content_kind?: true
7631
+ text_content?: true
7632
+ binary_content?: true
7633
+ size_bytes?: true
7634
+ content_sha256?: true
7463
7635
  created_at?: true
7464
- responded_at?: true
7636
+ updated_at?: true
7465
7637
  }
7466
7638
 
7467
- export type Tool_execution_permissionsMaxAggregateInputType = {
7639
+ export type Chat_session_tracked_filesMaxAggregateInputType = {
7468
7640
  id?: true
7469
- opencode_session_id?: true
7470
- message_id?: true
7471
- call_id?: true
7472
- status?: true
7641
+ chat_session_id?: true
7642
+ relative_path?: true
7643
+ existed_at_baseline?: true
7644
+ content_kind?: true
7645
+ text_content?: true
7646
+ binary_content?: true
7647
+ size_bytes?: true
7648
+ content_sha256?: true
7473
7649
  created_at?: true
7474
- responded_at?: true
7650
+ updated_at?: true
7475
7651
  }
7476
7652
 
7477
- export type Tool_execution_permissionsCountAggregateInputType = {
7653
+ export type Chat_session_tracked_filesCountAggregateInputType = {
7478
7654
  id?: true
7479
- opencode_session_id?: true
7480
- message_id?: true
7481
- call_id?: true
7482
- status?: true
7655
+ chat_session_id?: true
7656
+ relative_path?: true
7657
+ existed_at_baseline?: true
7658
+ content_kind?: true
7659
+ text_content?: true
7660
+ binary_content?: true
7661
+ size_bytes?: true
7662
+ content_sha256?: true
7483
7663
  created_at?: true
7484
- responded_at?: true
7664
+ updated_at?: true
7485
7665
  _all?: true
7486
7666
  }
7487
7667
 
7488
- export type Tool_execution_permissionsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7668
+ export type Chat_session_tracked_filesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7489
7669
  /**
7490
- * Filter which tool_execution_permissions to aggregate.
7670
+ * Filter which chat_session_tracked_files to aggregate.
7491
7671
  */
7492
- where?: tool_execution_permissionsWhereInput
7672
+ where?: chat_session_tracked_filesWhereInput
7493
7673
  /**
7494
7674
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
7495
7675
  *
7496
- * Determine the order of tool_execution_permissions to fetch.
7676
+ * Determine the order of chat_session_tracked_files to fetch.
7497
7677
  */
7498
- orderBy?: tool_execution_permissionsOrderByWithRelationInput | tool_execution_permissionsOrderByWithRelationInput[]
7678
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
7499
7679
  /**
7500
7680
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
7501
7681
  *
7502
7682
  * Sets the start position
7503
7683
  */
7504
- cursor?: tool_execution_permissionsWhereUniqueInput
7684
+ cursor?: chat_session_tracked_filesWhereUniqueInput
7505
7685
  /**
7506
7686
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
7507
7687
  *
7508
- * Take `±n` tool_execution_permissions from the position of the cursor.
7688
+ * Take `±n` chat_session_tracked_files from the position of the cursor.
7509
7689
  */
7510
7690
  take?: number
7511
7691
  /**
7512
7692
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
7513
7693
  *
7514
- * Skip the first `n` tool_execution_permissions.
7694
+ * Skip the first `n` chat_session_tracked_files.
7515
7695
  */
7516
7696
  skip?: number
7517
7697
  /**
7518
7698
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7519
7699
  *
7520
- * Count returned tool_execution_permissions
7700
+ * Count returned chat_session_tracked_files
7521
7701
  **/
7522
- _count?: true | Tool_execution_permissionsCountAggregateInputType
7702
+ _count?: true | Chat_session_tracked_filesCountAggregateInputType
7523
7703
  /**
7524
7704
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7525
7705
  *
7526
7706
  * Select which fields to average
7527
7707
  **/
7528
- _avg?: Tool_execution_permissionsAvgAggregateInputType
7708
+ _avg?: Chat_session_tracked_filesAvgAggregateInputType
7529
7709
  /**
7530
7710
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7531
7711
  *
7532
7712
  * Select which fields to sum
7533
7713
  **/
7534
- _sum?: Tool_execution_permissionsSumAggregateInputType
7714
+ _sum?: Chat_session_tracked_filesSumAggregateInputType
7535
7715
  /**
7536
7716
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7537
7717
  *
7538
7718
  * Select which fields to find the minimum value
7539
7719
  **/
7540
- _min?: Tool_execution_permissionsMinAggregateInputType
7720
+ _min?: Chat_session_tracked_filesMinAggregateInputType
7541
7721
  /**
7542
7722
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
7543
7723
  *
7544
7724
  * Select which fields to find the maximum value
7545
7725
  **/
7546
- _max?: Tool_execution_permissionsMaxAggregateInputType
7726
+ _max?: Chat_session_tracked_filesMaxAggregateInputType
7547
7727
  }
7548
7728
 
7549
- export type GetTool_execution_permissionsAggregateType<T extends Tool_execution_permissionsAggregateArgs> = {
7550
- [P in keyof T & keyof AggregateTool_execution_permissions]: P extends '_count' | 'count'
7729
+ export type GetChat_session_tracked_filesAggregateType<T extends Chat_session_tracked_filesAggregateArgs> = {
7730
+ [P in keyof T & keyof AggregateChat_session_tracked_files]: P extends '_count' | 'count'
7551
7731
  ? T[P] extends true
7552
7732
  ? number
7553
- : GetScalarType<T[P], AggregateTool_execution_permissions[P]>
7554
- : GetScalarType<T[P], AggregateTool_execution_permissions[P]>
7733
+ : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
7734
+ : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
7555
7735
  }
7556
7736
 
7557
7737
 
7558
7738
 
7559
7739
 
7560
- export type tool_execution_permissionsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7561
- where?: tool_execution_permissionsWhereInput
7562
- orderBy?: tool_execution_permissionsOrderByWithAggregationInput | tool_execution_permissionsOrderByWithAggregationInput[]
7563
- by: Tool_execution_permissionsScalarFieldEnum[] | Tool_execution_permissionsScalarFieldEnum
7564
- having?: tool_execution_permissionsScalarWhereWithAggregatesInput
7740
+ export type chat_session_tracked_filesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7741
+ where?: chat_session_tracked_filesWhereInput
7742
+ orderBy?: chat_session_tracked_filesOrderByWithAggregationInput | chat_session_tracked_filesOrderByWithAggregationInput[]
7743
+ by: Chat_session_tracked_filesScalarFieldEnum[] | Chat_session_tracked_filesScalarFieldEnum
7744
+ having?: chat_session_tracked_filesScalarWhereWithAggregatesInput
7565
7745
  take?: number
7566
7746
  skip?: number
7567
- _count?: Tool_execution_permissionsCountAggregateInputType | true
7568
- _avg?: Tool_execution_permissionsAvgAggregateInputType
7569
- _sum?: Tool_execution_permissionsSumAggregateInputType
7570
- _min?: Tool_execution_permissionsMinAggregateInputType
7571
- _max?: Tool_execution_permissionsMaxAggregateInputType
7747
+ _count?: Chat_session_tracked_filesCountAggregateInputType | true
7748
+ _avg?: Chat_session_tracked_filesAvgAggregateInputType
7749
+ _sum?: Chat_session_tracked_filesSumAggregateInputType
7750
+ _min?: Chat_session_tracked_filesMinAggregateInputType
7751
+ _max?: Chat_session_tracked_filesMaxAggregateInputType
7572
7752
  }
7573
7753
 
7574
- export type Tool_execution_permissionsGroupByOutputType = {
7754
+ export type Chat_session_tracked_filesGroupByOutputType = {
7575
7755
  id: string
7576
- opencode_session_id: string
7577
- message_id: string
7578
- call_id: string
7579
- status: string
7756
+ chat_session_id: string
7757
+ relative_path: string
7758
+ existed_at_baseline: boolean
7759
+ content_kind: string
7760
+ text_content: string | null
7761
+ binary_content: Bytes | null
7762
+ size_bytes: number | null
7763
+ content_sha256: string | null
7580
7764
  created_at: bigint
7581
- responded_at: bigint | null
7582
- _count: Tool_execution_permissionsCountAggregateOutputType | null
7583
- _avg: Tool_execution_permissionsAvgAggregateOutputType | null
7584
- _sum: Tool_execution_permissionsSumAggregateOutputType | null
7585
- _min: Tool_execution_permissionsMinAggregateOutputType | null
7586
- _max: Tool_execution_permissionsMaxAggregateOutputType | null
7765
+ updated_at: bigint
7766
+ _count: Chat_session_tracked_filesCountAggregateOutputType | null
7767
+ _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
7768
+ _sum: Chat_session_tracked_filesSumAggregateOutputType | null
7769
+ _min: Chat_session_tracked_filesMinAggregateOutputType | null
7770
+ _max: Chat_session_tracked_filesMaxAggregateOutputType | null
7587
7771
  }
7588
7772
 
7589
- type GetTool_execution_permissionsGroupByPayload<T extends tool_execution_permissionsGroupByArgs> = Prisma.PrismaPromise<
7773
+ type GetChat_session_tracked_filesGroupByPayload<T extends chat_session_tracked_filesGroupByArgs> = Prisma.PrismaPromise<
7590
7774
  Array<
7591
- PickEnumerable<Tool_execution_permissionsGroupByOutputType, T['by']> &
7775
+ PickEnumerable<Chat_session_tracked_filesGroupByOutputType, T['by']> &
7592
7776
  {
7593
- [P in ((keyof T) & (keyof Tool_execution_permissionsGroupByOutputType))]: P extends '_count'
7777
+ [P in ((keyof T) & (keyof Chat_session_tracked_filesGroupByOutputType))]: P extends '_count'
7594
7778
  ? T[P] extends boolean
7595
7779
  ? number
7596
- : GetScalarType<T[P], Tool_execution_permissionsGroupByOutputType[P]>
7597
- : GetScalarType<T[P], Tool_execution_permissionsGroupByOutputType[P]>
7780
+ : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
7781
+ : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
7598
7782
  }
7599
7783
  >
7600
7784
  >
7601
7785
 
7602
7786
 
7603
- export type tool_execution_permissionsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7787
+ export type chat_session_tracked_filesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7604
7788
  id?: boolean
7605
- opencode_session_id?: boolean
7606
- message_id?: boolean
7607
- call_id?: boolean
7608
- status?: boolean
7789
+ chat_session_id?: boolean
7790
+ relative_path?: boolean
7791
+ existed_at_baseline?: boolean
7792
+ content_kind?: boolean
7793
+ text_content?: boolean
7794
+ binary_content?: boolean
7795
+ size_bytes?: boolean
7796
+ content_sha256?: boolean
7609
7797
  created_at?: boolean
7610
- responded_at?: boolean
7611
- }, ExtArgs["result"]["tool_execution_permissions"]>
7798
+ updated_at?: boolean
7799
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7800
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
7612
7801
 
7613
- export type tool_execution_permissionsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7802
+ export type chat_session_tracked_filesSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7614
7803
  id?: boolean
7615
- opencode_session_id?: boolean
7616
- message_id?: boolean
7617
- call_id?: boolean
7618
- status?: boolean
7619
- created_at?: boolean
7620
- responded_at?: boolean
7621
- }, ExtArgs["result"]["tool_execution_permissions"]>
7622
-
7804
+ chat_session_id?: boolean
7805
+ relative_path?: boolean
7806
+ existed_at_baseline?: boolean
7807
+ content_kind?: boolean
7808
+ text_content?: boolean
7809
+ binary_content?: boolean
7810
+ size_bytes?: boolean
7811
+ content_sha256?: boolean
7812
+ created_at?: boolean
7813
+ updated_at?: boolean
7814
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7815
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
7816
+
7817
+ export type chat_session_tracked_filesSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7818
+ id?: boolean
7819
+ chat_session_id?: boolean
7820
+ relative_path?: boolean
7821
+ existed_at_baseline?: boolean
7822
+ content_kind?: boolean
7823
+ text_content?: boolean
7824
+ binary_content?: boolean
7825
+ size_bytes?: boolean
7826
+ content_sha256?: boolean
7827
+ created_at?: boolean
7828
+ updated_at?: boolean
7829
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7830
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
7831
+
7832
+ export type chat_session_tracked_filesSelectScalar = {
7833
+ id?: boolean
7834
+ chat_session_id?: boolean
7835
+ relative_path?: boolean
7836
+ existed_at_baseline?: boolean
7837
+ content_kind?: boolean
7838
+ text_content?: boolean
7839
+ binary_content?: boolean
7840
+ size_bytes?: boolean
7841
+ content_sha256?: boolean
7842
+ created_at?: boolean
7843
+ updated_at?: boolean
7844
+ }
7845
+
7846
+ export type chat_session_tracked_filesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "chat_session_id" | "relative_path" | "existed_at_baseline" | "content_kind" | "text_content" | "binary_content" | "size_bytes" | "content_sha256" | "created_at" | "updated_at", ExtArgs["result"]["chat_session_tracked_files"]>
7847
+ export type chat_session_tracked_filesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7848
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7849
+ }
7850
+ export type chat_session_tracked_filesIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7851
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7852
+ }
7853
+ export type chat_session_tracked_filesIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7854
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
7855
+ }
7856
+
7857
+ export type $chat_session_tracked_filesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7858
+ name: "chat_session_tracked_files"
7859
+ objects: {
7860
+ session: Prisma.$chat_sessionsPayload<ExtArgs>
7861
+ }
7862
+ scalars: $Extensions.GetPayloadResult<{
7863
+ id: string
7864
+ chat_session_id: string
7865
+ relative_path: string
7866
+ existed_at_baseline: boolean
7867
+ content_kind: string
7868
+ text_content: string | null
7869
+ binary_content: Prisma.Bytes | null
7870
+ size_bytes: number | null
7871
+ content_sha256: string | null
7872
+ created_at: bigint
7873
+ updated_at: bigint
7874
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
7875
+ composites: {}
7876
+ }
7877
+
7878
+ type chat_session_tracked_filesGetPayload<S extends boolean | null | undefined | chat_session_tracked_filesDefaultArgs> = $Result.GetResult<Prisma.$chat_session_tracked_filesPayload, S>
7879
+
7880
+ type chat_session_tracked_filesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
7881
+ Omit<chat_session_tracked_filesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
7882
+ select?: Chat_session_tracked_filesCountAggregateInputType | true
7883
+ }
7884
+
7885
+ export interface chat_session_tracked_filesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
7886
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['chat_session_tracked_files'], meta: { name: 'chat_session_tracked_files' } }
7887
+ /**
7888
+ * Find zero or one Chat_session_tracked_files that matches the filter.
7889
+ * @param {chat_session_tracked_filesFindUniqueArgs} args - Arguments to find a Chat_session_tracked_files
7890
+ * @example
7891
+ * // Get one Chat_session_tracked_files
7892
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findUnique({
7893
+ * where: {
7894
+ * // ... provide filter here
7895
+ * }
7896
+ * })
7897
+ */
7898
+ findUnique<T extends chat_session_tracked_filesFindUniqueArgs>(args: SelectSubset<T, chat_session_tracked_filesFindUniqueArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
7899
+
7900
+ /**
7901
+ * Find one Chat_session_tracked_files that matches the filter or throw an error with `error.code='P2025'`
7902
+ * if no matches were found.
7903
+ * @param {chat_session_tracked_filesFindUniqueOrThrowArgs} args - Arguments to find a Chat_session_tracked_files
7904
+ * @example
7905
+ * // Get one Chat_session_tracked_files
7906
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findUniqueOrThrow({
7907
+ * where: {
7908
+ * // ... provide filter here
7909
+ * }
7910
+ * })
7911
+ */
7912
+ findUniqueOrThrow<T extends chat_session_tracked_filesFindUniqueOrThrowArgs>(args: SelectSubset<T, chat_session_tracked_filesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
7913
+
7914
+ /**
7915
+ * Find the first Chat_session_tracked_files that matches the filter.
7916
+ * Note, that providing `undefined` is treated as the value not being there.
7917
+ * Read more here: https://pris.ly/d/null-undefined
7918
+ * @param {chat_session_tracked_filesFindFirstArgs} args - Arguments to find a Chat_session_tracked_files
7919
+ * @example
7920
+ * // Get one Chat_session_tracked_files
7921
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findFirst({
7922
+ * where: {
7923
+ * // ... provide filter here
7924
+ * }
7925
+ * })
7926
+ */
7927
+ findFirst<T extends chat_session_tracked_filesFindFirstArgs>(args?: SelectSubset<T, chat_session_tracked_filesFindFirstArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
7928
+
7929
+ /**
7930
+ * Find the first Chat_session_tracked_files that matches the filter or
7931
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
7932
+ * Note, that providing `undefined` is treated as the value not being there.
7933
+ * Read more here: https://pris.ly/d/null-undefined
7934
+ * @param {chat_session_tracked_filesFindFirstOrThrowArgs} args - Arguments to find a Chat_session_tracked_files
7935
+ * @example
7936
+ * // Get one Chat_session_tracked_files
7937
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findFirstOrThrow({
7938
+ * where: {
7939
+ * // ... provide filter here
7940
+ * }
7941
+ * })
7942
+ */
7943
+ findFirstOrThrow<T extends chat_session_tracked_filesFindFirstOrThrowArgs>(args?: SelectSubset<T, chat_session_tracked_filesFindFirstOrThrowArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
7944
+
7945
+ /**
7946
+ * Find zero or more Chat_session_tracked_files that matches the filter.
7947
+ * Note, that providing `undefined` is treated as the value not being there.
7948
+ * Read more here: https://pris.ly/d/null-undefined
7949
+ * @param {chat_session_tracked_filesFindManyArgs} args - Arguments to filter and select certain fields only.
7950
+ * @example
7951
+ * // Get all Chat_session_tracked_files
7952
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findMany()
7953
+ *
7954
+ * // Get first 10 Chat_session_tracked_files
7955
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findMany({ take: 10 })
7956
+ *
7957
+ * // Only select the `id`
7958
+ * const chat_session_tracked_filesWithIdOnly = await prisma.chat_session_tracked_files.findMany({ select: { id: true } })
7959
+ *
7960
+ */
7961
+ findMany<T extends chat_session_tracked_filesFindManyArgs>(args?: SelectSubset<T, chat_session_tracked_filesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
7962
+
7963
+ /**
7964
+ * Create a Chat_session_tracked_files.
7965
+ * @param {chat_session_tracked_filesCreateArgs} args - Arguments to create a Chat_session_tracked_files.
7966
+ * @example
7967
+ * // Create one Chat_session_tracked_files
7968
+ * const Chat_session_tracked_files = await prisma.chat_session_tracked_files.create({
7969
+ * data: {
7970
+ * // ... data to create a Chat_session_tracked_files
7971
+ * }
7972
+ * })
7973
+ *
7974
+ */
7975
+ create<T extends chat_session_tracked_filesCreateArgs>(args: SelectSubset<T, chat_session_tracked_filesCreateArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
7976
+
7977
+ /**
7978
+ * Create many Chat_session_tracked_files.
7979
+ * @param {chat_session_tracked_filesCreateManyArgs} args - Arguments to create many Chat_session_tracked_files.
7980
+ * @example
7981
+ * // Create many Chat_session_tracked_files
7982
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.createMany({
7983
+ * data: [
7984
+ * // ... provide data here
7985
+ * ]
7986
+ * })
7987
+ *
7988
+ */
7989
+ createMany<T extends chat_session_tracked_filesCreateManyArgs>(args?: SelectSubset<T, chat_session_tracked_filesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
7990
+
7991
+ /**
7992
+ * Create many Chat_session_tracked_files and returns the data saved in the database.
7993
+ * @param {chat_session_tracked_filesCreateManyAndReturnArgs} args - Arguments to create many Chat_session_tracked_files.
7994
+ * @example
7995
+ * // Create many Chat_session_tracked_files
7996
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.createManyAndReturn({
7997
+ * data: [
7998
+ * // ... provide data here
7999
+ * ]
8000
+ * })
8001
+ *
8002
+ * // Create many Chat_session_tracked_files and only return the `id`
8003
+ * const chat_session_tracked_filesWithIdOnly = await prisma.chat_session_tracked_files.createManyAndReturn({
8004
+ * select: { id: true },
8005
+ * data: [
8006
+ * // ... provide data here
8007
+ * ]
8008
+ * })
8009
+ * Note, that providing `undefined` is treated as the value not being there.
8010
+ * Read more here: https://pris.ly/d/null-undefined
8011
+ *
8012
+ */
8013
+ createManyAndReturn<T extends chat_session_tracked_filesCreateManyAndReturnArgs>(args?: SelectSubset<T, chat_session_tracked_filesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
8014
+
8015
+ /**
8016
+ * Delete a Chat_session_tracked_files.
8017
+ * @param {chat_session_tracked_filesDeleteArgs} args - Arguments to delete one Chat_session_tracked_files.
8018
+ * @example
8019
+ * // Delete one Chat_session_tracked_files
8020
+ * const Chat_session_tracked_files = await prisma.chat_session_tracked_files.delete({
8021
+ * where: {
8022
+ * // ... filter to delete one Chat_session_tracked_files
8023
+ * }
8024
+ * })
8025
+ *
8026
+ */
8027
+ delete<T extends chat_session_tracked_filesDeleteArgs>(args: SelectSubset<T, chat_session_tracked_filesDeleteArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
8028
+
8029
+ /**
8030
+ * Update one Chat_session_tracked_files.
8031
+ * @param {chat_session_tracked_filesUpdateArgs} args - Arguments to update one Chat_session_tracked_files.
8032
+ * @example
8033
+ * // Update one Chat_session_tracked_files
8034
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.update({
8035
+ * where: {
8036
+ * // ... provide filter here
8037
+ * },
8038
+ * data: {
8039
+ * // ... provide data here
8040
+ * }
8041
+ * })
8042
+ *
8043
+ */
8044
+ update<T extends chat_session_tracked_filesUpdateArgs>(args: SelectSubset<T, chat_session_tracked_filesUpdateArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
8045
+
8046
+ /**
8047
+ * Delete zero or more Chat_session_tracked_files.
8048
+ * @param {chat_session_tracked_filesDeleteManyArgs} args - Arguments to filter Chat_session_tracked_files to delete.
8049
+ * @example
8050
+ * // Delete a few Chat_session_tracked_files
8051
+ * const { count } = await prisma.chat_session_tracked_files.deleteMany({
8052
+ * where: {
8053
+ * // ... provide filter here
8054
+ * }
8055
+ * })
8056
+ *
8057
+ */
8058
+ deleteMany<T extends chat_session_tracked_filesDeleteManyArgs>(args?: SelectSubset<T, chat_session_tracked_filesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
8059
+
8060
+ /**
8061
+ * Update zero or more Chat_session_tracked_files.
8062
+ * Note, that providing `undefined` is treated as the value not being there.
8063
+ * Read more here: https://pris.ly/d/null-undefined
8064
+ * @param {chat_session_tracked_filesUpdateManyArgs} args - Arguments to update one or more rows.
8065
+ * @example
8066
+ * // Update many Chat_session_tracked_files
8067
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.updateMany({
8068
+ * where: {
8069
+ * // ... provide filter here
8070
+ * },
8071
+ * data: {
8072
+ * // ... provide data here
8073
+ * }
8074
+ * })
8075
+ *
8076
+ */
8077
+ updateMany<T extends chat_session_tracked_filesUpdateManyArgs>(args: SelectSubset<T, chat_session_tracked_filesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
8078
+
8079
+ /**
8080
+ * Update zero or more Chat_session_tracked_files and returns the data updated in the database.
8081
+ * @param {chat_session_tracked_filesUpdateManyAndReturnArgs} args - Arguments to update many Chat_session_tracked_files.
8082
+ * @example
8083
+ * // Update many Chat_session_tracked_files
8084
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.updateManyAndReturn({
8085
+ * where: {
8086
+ * // ... provide filter here
8087
+ * },
8088
+ * data: [
8089
+ * // ... provide data here
8090
+ * ]
8091
+ * })
8092
+ *
8093
+ * // Update zero or more Chat_session_tracked_files and only return the `id`
8094
+ * const chat_session_tracked_filesWithIdOnly = await prisma.chat_session_tracked_files.updateManyAndReturn({
8095
+ * select: { id: true },
8096
+ * where: {
8097
+ * // ... provide filter here
8098
+ * },
8099
+ * data: [
8100
+ * // ... provide data here
8101
+ * ]
8102
+ * })
8103
+ * Note, that providing `undefined` is treated as the value not being there.
8104
+ * Read more here: https://pris.ly/d/null-undefined
8105
+ *
8106
+ */
8107
+ updateManyAndReturn<T extends chat_session_tracked_filesUpdateManyAndReturnArgs>(args: SelectSubset<T, chat_session_tracked_filesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
8108
+
8109
+ /**
8110
+ * Create or update one Chat_session_tracked_files.
8111
+ * @param {chat_session_tracked_filesUpsertArgs} args - Arguments to update or create a Chat_session_tracked_files.
8112
+ * @example
8113
+ * // Update or create a Chat_session_tracked_files
8114
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.upsert({
8115
+ * create: {
8116
+ * // ... data to create a Chat_session_tracked_files
8117
+ * },
8118
+ * update: {
8119
+ * // ... in case it already exists, update
8120
+ * },
8121
+ * where: {
8122
+ * // ... the filter for the Chat_session_tracked_files we want to update
8123
+ * }
8124
+ * })
8125
+ */
8126
+ upsert<T extends chat_session_tracked_filesUpsertArgs>(args: SelectSubset<T, chat_session_tracked_filesUpsertArgs<ExtArgs>>): Prisma__chat_session_tracked_filesClient<$Result.GetResult<Prisma.$chat_session_tracked_filesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
8127
+
8128
+
8129
+ /**
8130
+ * Count the number of Chat_session_tracked_files.
8131
+ * Note, that providing `undefined` is treated as the value not being there.
8132
+ * Read more here: https://pris.ly/d/null-undefined
8133
+ * @param {chat_session_tracked_filesCountArgs} args - Arguments to filter Chat_session_tracked_files to count.
8134
+ * @example
8135
+ * // Count the number of Chat_session_tracked_files
8136
+ * const count = await prisma.chat_session_tracked_files.count({
8137
+ * where: {
8138
+ * // ... the filter for the Chat_session_tracked_files we want to count
8139
+ * }
8140
+ * })
8141
+ **/
8142
+ count<T extends chat_session_tracked_filesCountArgs>(
8143
+ args?: Subset<T, chat_session_tracked_filesCountArgs>,
8144
+ ): Prisma.PrismaPromise<
8145
+ T extends $Utils.Record<'select', any>
8146
+ ? T['select'] extends true
8147
+ ? number
8148
+ : GetScalarType<T['select'], Chat_session_tracked_filesCountAggregateOutputType>
8149
+ : number
8150
+ >
8151
+
8152
+ /**
8153
+ * Allows you to perform aggregations operations on a Chat_session_tracked_files.
8154
+ * Note, that providing `undefined` is treated as the value not being there.
8155
+ * Read more here: https://pris.ly/d/null-undefined
8156
+ * @param {Chat_session_tracked_filesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
8157
+ * @example
8158
+ * // Ordered by age ascending
8159
+ * // Where email contains prisma.io
8160
+ * // Limited to the 10 users
8161
+ * const aggregations = await prisma.user.aggregate({
8162
+ * _avg: {
8163
+ * age: true,
8164
+ * },
8165
+ * where: {
8166
+ * email: {
8167
+ * contains: "prisma.io",
8168
+ * },
8169
+ * },
8170
+ * orderBy: {
8171
+ * age: "asc",
8172
+ * },
8173
+ * take: 10,
8174
+ * })
8175
+ **/
8176
+ aggregate<T extends Chat_session_tracked_filesAggregateArgs>(args: Subset<T, Chat_session_tracked_filesAggregateArgs>): Prisma.PrismaPromise<GetChat_session_tracked_filesAggregateType<T>>
8177
+
8178
+ /**
8179
+ * Group by Chat_session_tracked_files.
8180
+ * Note, that providing `undefined` is treated as the value not being there.
8181
+ * Read more here: https://pris.ly/d/null-undefined
8182
+ * @param {chat_session_tracked_filesGroupByArgs} args - Group by arguments.
8183
+ * @example
8184
+ * // Group by city, order by createdAt, get count
8185
+ * const result = await prisma.user.groupBy({
8186
+ * by: ['city', 'createdAt'],
8187
+ * orderBy: {
8188
+ * createdAt: true
8189
+ * },
8190
+ * _count: {
8191
+ * _all: true
8192
+ * },
8193
+ * })
8194
+ *
8195
+ **/
8196
+ groupBy<
8197
+ T extends chat_session_tracked_filesGroupByArgs,
8198
+ HasSelectOrTake extends Or<
8199
+ Extends<'skip', Keys<T>>,
8200
+ Extends<'take', Keys<T>>
8201
+ >,
8202
+ OrderByArg extends True extends HasSelectOrTake
8203
+ ? { orderBy: chat_session_tracked_filesGroupByArgs['orderBy'] }
8204
+ : { orderBy?: chat_session_tracked_filesGroupByArgs['orderBy'] },
8205
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
8206
+ ByFields extends MaybeTupleToUnion<T['by']>,
8207
+ ByValid extends Has<ByFields, OrderFields>,
8208
+ HavingFields extends GetHavingFields<T['having']>,
8209
+ HavingValid extends Has<ByFields, HavingFields>,
8210
+ ByEmpty extends T['by'] extends never[] ? True : False,
8211
+ InputErrors extends ByEmpty extends True
8212
+ ? `Error: "by" must not be empty.`
8213
+ : HavingValid extends False
8214
+ ? {
8215
+ [P in HavingFields]: P extends ByFields
8216
+ ? never
8217
+ : P extends string
8218
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
8219
+ : [
8220
+ Error,
8221
+ 'Field ',
8222
+ P,
8223
+ ` in "having" needs to be provided in "by"`,
8224
+ ]
8225
+ }[HavingFields]
8226
+ : 'take' extends Keys<T>
8227
+ ? 'orderBy' extends Keys<T>
8228
+ ? ByValid extends True
8229
+ ? {}
8230
+ : {
8231
+ [P in OrderFields]: P extends ByFields
8232
+ ? never
8233
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
8234
+ }[OrderFields]
8235
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
8236
+ : 'skip' extends Keys<T>
8237
+ ? 'orderBy' extends Keys<T>
8238
+ ? ByValid extends True
8239
+ ? {}
8240
+ : {
8241
+ [P in OrderFields]: P extends ByFields
8242
+ ? never
8243
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
8244
+ }[OrderFields]
8245
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
8246
+ : ByValid extends True
8247
+ ? {}
8248
+ : {
8249
+ [P in OrderFields]: P extends ByFields
8250
+ ? never
8251
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
8252
+ }[OrderFields]
8253
+ >(args: SubsetIntersection<T, chat_session_tracked_filesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChat_session_tracked_filesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
8254
+ /**
8255
+ * Fields of the chat_session_tracked_files model
8256
+ */
8257
+ readonly fields: chat_session_tracked_filesFieldRefs;
8258
+ }
8259
+
8260
+ /**
8261
+ * The delegate class that acts as a "Promise-like" for chat_session_tracked_files.
8262
+ * Why is this prefixed with `Prisma__`?
8263
+ * Because we want to prevent naming conflicts as mentioned in
8264
+ * https://github.com/prisma/prisma-client-js/issues/707
8265
+ */
8266
+ export interface Prisma__chat_session_tracked_filesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
8267
+ readonly [Symbol.toStringTag]: "PrismaPromise"
8268
+ session<T extends chat_sessionsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, chat_sessionsDefaultArgs<ExtArgs>>): Prisma__chat_sessionsClient<$Result.GetResult<Prisma.$chat_sessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
8269
+ /**
8270
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
8271
+ * @param onfulfilled The callback to execute when the Promise is resolved.
8272
+ * @param onrejected The callback to execute when the Promise is rejected.
8273
+ * @returns A Promise for the completion of which ever callback is executed.
8274
+ */
8275
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
8276
+ /**
8277
+ * Attaches a callback for only the rejection of the Promise.
8278
+ * @param onrejected The callback to execute when the Promise is rejected.
8279
+ * @returns A Promise for the completion of the callback.
8280
+ */
8281
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
8282
+ /**
8283
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
8284
+ * resolved value cannot be modified from the callback.
8285
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
8286
+ * @returns A Promise for the completion of the callback.
8287
+ */
8288
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
8289
+ }
8290
+
8291
+
8292
+
8293
+
8294
+ /**
8295
+ * Fields of the chat_session_tracked_files model
8296
+ */
8297
+ interface chat_session_tracked_filesFieldRefs {
8298
+ readonly id: FieldRef<"chat_session_tracked_files", 'String'>
8299
+ readonly chat_session_id: FieldRef<"chat_session_tracked_files", 'String'>
8300
+ readonly relative_path: FieldRef<"chat_session_tracked_files", 'String'>
8301
+ readonly existed_at_baseline: FieldRef<"chat_session_tracked_files", 'Boolean'>
8302
+ readonly content_kind: FieldRef<"chat_session_tracked_files", 'String'>
8303
+ readonly text_content: FieldRef<"chat_session_tracked_files", 'String'>
8304
+ readonly binary_content: FieldRef<"chat_session_tracked_files", 'Bytes'>
8305
+ readonly size_bytes: FieldRef<"chat_session_tracked_files", 'Int'>
8306
+ readonly content_sha256: FieldRef<"chat_session_tracked_files", 'String'>
8307
+ readonly created_at: FieldRef<"chat_session_tracked_files", 'BigInt'>
8308
+ readonly updated_at: FieldRef<"chat_session_tracked_files", 'BigInt'>
8309
+ }
8310
+
8311
+
8312
+ // Custom InputTypes
8313
+ /**
8314
+ * chat_session_tracked_files findUnique
8315
+ */
8316
+ export type chat_session_tracked_filesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8317
+ /**
8318
+ * Select specific fields to fetch from the chat_session_tracked_files
8319
+ */
8320
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8321
+ /**
8322
+ * Omit specific fields from the chat_session_tracked_files
8323
+ */
8324
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8325
+ /**
8326
+ * Choose, which related nodes to fetch as well
8327
+ */
8328
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8329
+ /**
8330
+ * Filter, which chat_session_tracked_files to fetch.
8331
+ */
8332
+ where: chat_session_tracked_filesWhereUniqueInput
8333
+ }
8334
+
8335
+ /**
8336
+ * chat_session_tracked_files findUniqueOrThrow
8337
+ */
8338
+ export type chat_session_tracked_filesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8339
+ /**
8340
+ * Select specific fields to fetch from the chat_session_tracked_files
8341
+ */
8342
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8343
+ /**
8344
+ * Omit specific fields from the chat_session_tracked_files
8345
+ */
8346
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8347
+ /**
8348
+ * Choose, which related nodes to fetch as well
8349
+ */
8350
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8351
+ /**
8352
+ * Filter, which chat_session_tracked_files to fetch.
8353
+ */
8354
+ where: chat_session_tracked_filesWhereUniqueInput
8355
+ }
8356
+
8357
+ /**
8358
+ * chat_session_tracked_files findFirst
8359
+ */
8360
+ export type chat_session_tracked_filesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8361
+ /**
8362
+ * Select specific fields to fetch from the chat_session_tracked_files
8363
+ */
8364
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8365
+ /**
8366
+ * Omit specific fields from the chat_session_tracked_files
8367
+ */
8368
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8369
+ /**
8370
+ * Choose, which related nodes to fetch as well
8371
+ */
8372
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8373
+ /**
8374
+ * Filter, which chat_session_tracked_files to fetch.
8375
+ */
8376
+ where?: chat_session_tracked_filesWhereInput
8377
+ /**
8378
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
8379
+ *
8380
+ * Determine the order of chat_session_tracked_files to fetch.
8381
+ */
8382
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
8383
+ /**
8384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
8385
+ *
8386
+ * Sets the position for searching for chat_session_tracked_files.
8387
+ */
8388
+ cursor?: chat_session_tracked_filesWhereUniqueInput
8389
+ /**
8390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8391
+ *
8392
+ * Take `±n` chat_session_tracked_files from the position of the cursor.
8393
+ */
8394
+ take?: number
8395
+ /**
8396
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8397
+ *
8398
+ * Skip the first `n` chat_session_tracked_files.
8399
+ */
8400
+ skip?: number
8401
+ /**
8402
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
8403
+ *
8404
+ * Filter by unique combinations of chat_session_tracked_files.
8405
+ */
8406
+ distinct?: Chat_session_tracked_filesScalarFieldEnum | Chat_session_tracked_filesScalarFieldEnum[]
8407
+ }
8408
+
8409
+ /**
8410
+ * chat_session_tracked_files findFirstOrThrow
8411
+ */
8412
+ export type chat_session_tracked_filesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8413
+ /**
8414
+ * Select specific fields to fetch from the chat_session_tracked_files
8415
+ */
8416
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8417
+ /**
8418
+ * Omit specific fields from the chat_session_tracked_files
8419
+ */
8420
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8421
+ /**
8422
+ * Choose, which related nodes to fetch as well
8423
+ */
8424
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8425
+ /**
8426
+ * Filter, which chat_session_tracked_files to fetch.
8427
+ */
8428
+ where?: chat_session_tracked_filesWhereInput
8429
+ /**
8430
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
8431
+ *
8432
+ * Determine the order of chat_session_tracked_files to fetch.
8433
+ */
8434
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
8435
+ /**
8436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
8437
+ *
8438
+ * Sets the position for searching for chat_session_tracked_files.
8439
+ */
8440
+ cursor?: chat_session_tracked_filesWhereUniqueInput
8441
+ /**
8442
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8443
+ *
8444
+ * Take `±n` chat_session_tracked_files from the position of the cursor.
8445
+ */
8446
+ take?: number
8447
+ /**
8448
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8449
+ *
8450
+ * Skip the first `n` chat_session_tracked_files.
8451
+ */
8452
+ skip?: number
8453
+ /**
8454
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
8455
+ *
8456
+ * Filter by unique combinations of chat_session_tracked_files.
8457
+ */
8458
+ distinct?: Chat_session_tracked_filesScalarFieldEnum | Chat_session_tracked_filesScalarFieldEnum[]
8459
+ }
8460
+
8461
+ /**
8462
+ * chat_session_tracked_files findMany
8463
+ */
8464
+ export type chat_session_tracked_filesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8465
+ /**
8466
+ * Select specific fields to fetch from the chat_session_tracked_files
8467
+ */
8468
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8469
+ /**
8470
+ * Omit specific fields from the chat_session_tracked_files
8471
+ */
8472
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8473
+ /**
8474
+ * Choose, which related nodes to fetch as well
8475
+ */
8476
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8477
+ /**
8478
+ * Filter, which chat_session_tracked_files to fetch.
8479
+ */
8480
+ where?: chat_session_tracked_filesWhereInput
8481
+ /**
8482
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
8483
+ *
8484
+ * Determine the order of chat_session_tracked_files to fetch.
8485
+ */
8486
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
8487
+ /**
8488
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
8489
+ *
8490
+ * Sets the position for listing chat_session_tracked_files.
8491
+ */
8492
+ cursor?: chat_session_tracked_filesWhereUniqueInput
8493
+ /**
8494
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8495
+ *
8496
+ * Take `±n` chat_session_tracked_files from the position of the cursor.
8497
+ */
8498
+ take?: number
8499
+ /**
8500
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8501
+ *
8502
+ * Skip the first `n` chat_session_tracked_files.
8503
+ */
8504
+ skip?: number
8505
+ distinct?: Chat_session_tracked_filesScalarFieldEnum | Chat_session_tracked_filesScalarFieldEnum[]
8506
+ }
8507
+
8508
+ /**
8509
+ * chat_session_tracked_files create
8510
+ */
8511
+ export type chat_session_tracked_filesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8512
+ /**
8513
+ * Select specific fields to fetch from the chat_session_tracked_files
8514
+ */
8515
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8516
+ /**
8517
+ * Omit specific fields from the chat_session_tracked_files
8518
+ */
8519
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8520
+ /**
8521
+ * Choose, which related nodes to fetch as well
8522
+ */
8523
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8524
+ /**
8525
+ * The data needed to create a chat_session_tracked_files.
8526
+ */
8527
+ data: XOR<chat_session_tracked_filesCreateInput, chat_session_tracked_filesUncheckedCreateInput>
8528
+ }
8529
+
8530
+ /**
8531
+ * chat_session_tracked_files createMany
8532
+ */
8533
+ export type chat_session_tracked_filesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8534
+ /**
8535
+ * The data used to create many chat_session_tracked_files.
8536
+ */
8537
+ data: chat_session_tracked_filesCreateManyInput | chat_session_tracked_filesCreateManyInput[]
8538
+ }
8539
+
8540
+ /**
8541
+ * chat_session_tracked_files createManyAndReturn
8542
+ */
8543
+ export type chat_session_tracked_filesCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8544
+ /**
8545
+ * Select specific fields to fetch from the chat_session_tracked_files
8546
+ */
8547
+ select?: chat_session_tracked_filesSelectCreateManyAndReturn<ExtArgs> | null
8548
+ /**
8549
+ * Omit specific fields from the chat_session_tracked_files
8550
+ */
8551
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8552
+ /**
8553
+ * The data used to create many chat_session_tracked_files.
8554
+ */
8555
+ data: chat_session_tracked_filesCreateManyInput | chat_session_tracked_filesCreateManyInput[]
8556
+ /**
8557
+ * Choose, which related nodes to fetch as well
8558
+ */
8559
+ include?: chat_session_tracked_filesIncludeCreateManyAndReturn<ExtArgs> | null
8560
+ }
8561
+
8562
+ /**
8563
+ * chat_session_tracked_files update
8564
+ */
8565
+ export type chat_session_tracked_filesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8566
+ /**
8567
+ * Select specific fields to fetch from the chat_session_tracked_files
8568
+ */
8569
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8570
+ /**
8571
+ * Omit specific fields from the chat_session_tracked_files
8572
+ */
8573
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8574
+ /**
8575
+ * Choose, which related nodes to fetch as well
8576
+ */
8577
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8578
+ /**
8579
+ * The data needed to update a chat_session_tracked_files.
8580
+ */
8581
+ data: XOR<chat_session_tracked_filesUpdateInput, chat_session_tracked_filesUncheckedUpdateInput>
8582
+ /**
8583
+ * Choose, which chat_session_tracked_files to update.
8584
+ */
8585
+ where: chat_session_tracked_filesWhereUniqueInput
8586
+ }
8587
+
8588
+ /**
8589
+ * chat_session_tracked_files updateMany
8590
+ */
8591
+ export type chat_session_tracked_filesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8592
+ /**
8593
+ * The data used to update chat_session_tracked_files.
8594
+ */
8595
+ data: XOR<chat_session_tracked_filesUpdateManyMutationInput, chat_session_tracked_filesUncheckedUpdateManyInput>
8596
+ /**
8597
+ * Filter which chat_session_tracked_files to update
8598
+ */
8599
+ where?: chat_session_tracked_filesWhereInput
8600
+ /**
8601
+ * Limit how many chat_session_tracked_files to update.
8602
+ */
8603
+ limit?: number
8604
+ }
8605
+
8606
+ /**
8607
+ * chat_session_tracked_files updateManyAndReturn
8608
+ */
8609
+ export type chat_session_tracked_filesUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8610
+ /**
8611
+ * Select specific fields to fetch from the chat_session_tracked_files
8612
+ */
8613
+ select?: chat_session_tracked_filesSelectUpdateManyAndReturn<ExtArgs> | null
8614
+ /**
8615
+ * Omit specific fields from the chat_session_tracked_files
8616
+ */
8617
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8618
+ /**
8619
+ * The data used to update chat_session_tracked_files.
8620
+ */
8621
+ data: XOR<chat_session_tracked_filesUpdateManyMutationInput, chat_session_tracked_filesUncheckedUpdateManyInput>
8622
+ /**
8623
+ * Filter which chat_session_tracked_files to update
8624
+ */
8625
+ where?: chat_session_tracked_filesWhereInput
8626
+ /**
8627
+ * Limit how many chat_session_tracked_files to update.
8628
+ */
8629
+ limit?: number
8630
+ /**
8631
+ * Choose, which related nodes to fetch as well
8632
+ */
8633
+ include?: chat_session_tracked_filesIncludeUpdateManyAndReturn<ExtArgs> | null
8634
+ }
8635
+
8636
+ /**
8637
+ * chat_session_tracked_files upsert
8638
+ */
8639
+ export type chat_session_tracked_filesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8640
+ /**
8641
+ * Select specific fields to fetch from the chat_session_tracked_files
8642
+ */
8643
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8644
+ /**
8645
+ * Omit specific fields from the chat_session_tracked_files
8646
+ */
8647
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8648
+ /**
8649
+ * Choose, which related nodes to fetch as well
8650
+ */
8651
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8652
+ /**
8653
+ * The filter to search for the chat_session_tracked_files to update in case it exists.
8654
+ */
8655
+ where: chat_session_tracked_filesWhereUniqueInput
8656
+ /**
8657
+ * In case the chat_session_tracked_files found by the `where` argument doesn't exist, create a new chat_session_tracked_files with this data.
8658
+ */
8659
+ create: XOR<chat_session_tracked_filesCreateInput, chat_session_tracked_filesUncheckedCreateInput>
8660
+ /**
8661
+ * In case the chat_session_tracked_files was found with the provided `where` argument, update it with this data.
8662
+ */
8663
+ update: XOR<chat_session_tracked_filesUpdateInput, chat_session_tracked_filesUncheckedUpdateInput>
8664
+ }
8665
+
8666
+ /**
8667
+ * chat_session_tracked_files delete
8668
+ */
8669
+ export type chat_session_tracked_filesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8670
+ /**
8671
+ * Select specific fields to fetch from the chat_session_tracked_files
8672
+ */
8673
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8674
+ /**
8675
+ * Omit specific fields from the chat_session_tracked_files
8676
+ */
8677
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8678
+ /**
8679
+ * Choose, which related nodes to fetch as well
8680
+ */
8681
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8682
+ /**
8683
+ * Filter which chat_session_tracked_files to delete.
8684
+ */
8685
+ where: chat_session_tracked_filesWhereUniqueInput
8686
+ }
8687
+
8688
+ /**
8689
+ * chat_session_tracked_files deleteMany
8690
+ */
8691
+ export type chat_session_tracked_filesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8692
+ /**
8693
+ * Filter which chat_session_tracked_files to delete
8694
+ */
8695
+ where?: chat_session_tracked_filesWhereInput
8696
+ /**
8697
+ * Limit how many chat_session_tracked_files to delete.
8698
+ */
8699
+ limit?: number
8700
+ }
8701
+
8702
+ /**
8703
+ * chat_session_tracked_files without action
8704
+ */
8705
+ export type chat_session_tracked_filesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8706
+ /**
8707
+ * Select specific fields to fetch from the chat_session_tracked_files
8708
+ */
8709
+ select?: chat_session_tracked_filesSelect<ExtArgs> | null
8710
+ /**
8711
+ * Omit specific fields from the chat_session_tracked_files
8712
+ */
8713
+ omit?: chat_session_tracked_filesOmit<ExtArgs> | null
8714
+ /**
8715
+ * Choose, which related nodes to fetch as well
8716
+ */
8717
+ include?: chat_session_tracked_filesInclude<ExtArgs> | null
8718
+ }
8719
+
8720
+
8721
+ /**
8722
+ * Model tool_execution_permissions
8723
+ */
8724
+
8725
+ export type AggregateTool_execution_permissions = {
8726
+ _count: Tool_execution_permissionsCountAggregateOutputType | null
8727
+ _avg: Tool_execution_permissionsAvgAggregateOutputType | null
8728
+ _sum: Tool_execution_permissionsSumAggregateOutputType | null
8729
+ _min: Tool_execution_permissionsMinAggregateOutputType | null
8730
+ _max: Tool_execution_permissionsMaxAggregateOutputType | null
8731
+ }
8732
+
8733
+ export type Tool_execution_permissionsAvgAggregateOutputType = {
8734
+ created_at: number | null
8735
+ responded_at: number | null
8736
+ }
8737
+
8738
+ export type Tool_execution_permissionsSumAggregateOutputType = {
8739
+ created_at: bigint | null
8740
+ responded_at: bigint | null
8741
+ }
8742
+
8743
+ export type Tool_execution_permissionsMinAggregateOutputType = {
8744
+ id: string | null
8745
+ opencode_session_id: string | null
8746
+ message_id: string | null
8747
+ call_id: string | null
8748
+ status: string | null
8749
+ created_at: bigint | null
8750
+ responded_at: bigint | null
8751
+ }
8752
+
8753
+ export type Tool_execution_permissionsMaxAggregateOutputType = {
8754
+ id: string | null
8755
+ opencode_session_id: string | null
8756
+ message_id: string | null
8757
+ call_id: string | null
8758
+ status: string | null
8759
+ created_at: bigint | null
8760
+ responded_at: bigint | null
8761
+ }
8762
+
8763
+ export type Tool_execution_permissionsCountAggregateOutputType = {
8764
+ id: number
8765
+ opencode_session_id: number
8766
+ message_id: number
8767
+ call_id: number
8768
+ status: number
8769
+ created_at: number
8770
+ responded_at: number
8771
+ _all: number
8772
+ }
8773
+
8774
+
8775
+ export type Tool_execution_permissionsAvgAggregateInputType = {
8776
+ created_at?: true
8777
+ responded_at?: true
8778
+ }
8779
+
8780
+ export type Tool_execution_permissionsSumAggregateInputType = {
8781
+ created_at?: true
8782
+ responded_at?: true
8783
+ }
8784
+
8785
+ export type Tool_execution_permissionsMinAggregateInputType = {
8786
+ id?: true
8787
+ opencode_session_id?: true
8788
+ message_id?: true
8789
+ call_id?: true
8790
+ status?: true
8791
+ created_at?: true
8792
+ responded_at?: true
8793
+ }
8794
+
8795
+ export type Tool_execution_permissionsMaxAggregateInputType = {
8796
+ id?: true
8797
+ opencode_session_id?: true
8798
+ message_id?: true
8799
+ call_id?: true
8800
+ status?: true
8801
+ created_at?: true
8802
+ responded_at?: true
8803
+ }
8804
+
8805
+ export type Tool_execution_permissionsCountAggregateInputType = {
8806
+ id?: true
8807
+ opencode_session_id?: true
8808
+ message_id?: true
8809
+ call_id?: true
8810
+ status?: true
8811
+ created_at?: true
8812
+ responded_at?: true
8813
+ _all?: true
8814
+ }
8815
+
8816
+ export type Tool_execution_permissionsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8817
+ /**
8818
+ * Filter which tool_execution_permissions to aggregate.
8819
+ */
8820
+ where?: tool_execution_permissionsWhereInput
8821
+ /**
8822
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
8823
+ *
8824
+ * Determine the order of tool_execution_permissions to fetch.
8825
+ */
8826
+ orderBy?: tool_execution_permissionsOrderByWithRelationInput | tool_execution_permissionsOrderByWithRelationInput[]
8827
+ /**
8828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
8829
+ *
8830
+ * Sets the start position
8831
+ */
8832
+ cursor?: tool_execution_permissionsWhereUniqueInput
8833
+ /**
8834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8835
+ *
8836
+ * Take `±n` tool_execution_permissions from the position of the cursor.
8837
+ */
8838
+ take?: number
8839
+ /**
8840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
8841
+ *
8842
+ * Skip the first `n` tool_execution_permissions.
8843
+ */
8844
+ skip?: number
8845
+ /**
8846
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
8847
+ *
8848
+ * Count returned tool_execution_permissions
8849
+ **/
8850
+ _count?: true | Tool_execution_permissionsCountAggregateInputType
8851
+ /**
8852
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
8853
+ *
8854
+ * Select which fields to average
8855
+ **/
8856
+ _avg?: Tool_execution_permissionsAvgAggregateInputType
8857
+ /**
8858
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
8859
+ *
8860
+ * Select which fields to sum
8861
+ **/
8862
+ _sum?: Tool_execution_permissionsSumAggregateInputType
8863
+ /**
8864
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
8865
+ *
8866
+ * Select which fields to find the minimum value
8867
+ **/
8868
+ _min?: Tool_execution_permissionsMinAggregateInputType
8869
+ /**
8870
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
8871
+ *
8872
+ * Select which fields to find the maximum value
8873
+ **/
8874
+ _max?: Tool_execution_permissionsMaxAggregateInputType
8875
+ }
8876
+
8877
+ export type GetTool_execution_permissionsAggregateType<T extends Tool_execution_permissionsAggregateArgs> = {
8878
+ [P in keyof T & keyof AggregateTool_execution_permissions]: P extends '_count' | 'count'
8879
+ ? T[P] extends true
8880
+ ? number
8881
+ : GetScalarType<T[P], AggregateTool_execution_permissions[P]>
8882
+ : GetScalarType<T[P], AggregateTool_execution_permissions[P]>
8883
+ }
8884
+
8885
+
8886
+
8887
+
8888
+ export type tool_execution_permissionsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8889
+ where?: tool_execution_permissionsWhereInput
8890
+ orderBy?: tool_execution_permissionsOrderByWithAggregationInput | tool_execution_permissionsOrderByWithAggregationInput[]
8891
+ by: Tool_execution_permissionsScalarFieldEnum[] | Tool_execution_permissionsScalarFieldEnum
8892
+ having?: tool_execution_permissionsScalarWhereWithAggregatesInput
8893
+ take?: number
8894
+ skip?: number
8895
+ _count?: Tool_execution_permissionsCountAggregateInputType | true
8896
+ _avg?: Tool_execution_permissionsAvgAggregateInputType
8897
+ _sum?: Tool_execution_permissionsSumAggregateInputType
8898
+ _min?: Tool_execution_permissionsMinAggregateInputType
8899
+ _max?: Tool_execution_permissionsMaxAggregateInputType
8900
+ }
8901
+
8902
+ export type Tool_execution_permissionsGroupByOutputType = {
8903
+ id: string
8904
+ opencode_session_id: string
8905
+ message_id: string
8906
+ call_id: string
8907
+ status: string
8908
+ created_at: bigint
8909
+ responded_at: bigint | null
8910
+ _count: Tool_execution_permissionsCountAggregateOutputType | null
8911
+ _avg: Tool_execution_permissionsAvgAggregateOutputType | null
8912
+ _sum: Tool_execution_permissionsSumAggregateOutputType | null
8913
+ _min: Tool_execution_permissionsMinAggregateOutputType | null
8914
+ _max: Tool_execution_permissionsMaxAggregateOutputType | null
8915
+ }
8916
+
8917
+ type GetTool_execution_permissionsGroupByPayload<T extends tool_execution_permissionsGroupByArgs> = Prisma.PrismaPromise<
8918
+ Array<
8919
+ PickEnumerable<Tool_execution_permissionsGroupByOutputType, T['by']> &
8920
+ {
8921
+ [P in ((keyof T) & (keyof Tool_execution_permissionsGroupByOutputType))]: P extends '_count'
8922
+ ? T[P] extends boolean
8923
+ ? number
8924
+ : GetScalarType<T[P], Tool_execution_permissionsGroupByOutputType[P]>
8925
+ : GetScalarType<T[P], Tool_execution_permissionsGroupByOutputType[P]>
8926
+ }
8927
+ >
8928
+ >
8929
+
8930
+
8931
+ export type tool_execution_permissionsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
8932
+ id?: boolean
8933
+ opencode_session_id?: boolean
8934
+ message_id?: boolean
8935
+ call_id?: boolean
8936
+ status?: boolean
8937
+ created_at?: boolean
8938
+ responded_at?: boolean
8939
+ }, ExtArgs["result"]["tool_execution_permissions"]>
8940
+
8941
+ export type tool_execution_permissionsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
8942
+ id?: boolean
8943
+ opencode_session_id?: boolean
8944
+ message_id?: boolean
8945
+ call_id?: boolean
8946
+ status?: boolean
8947
+ created_at?: boolean
8948
+ responded_at?: boolean
8949
+ }, ExtArgs["result"]["tool_execution_permissions"]>
8950
+
7623
8951
  export type tool_execution_permissionsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
7624
8952
  id?: boolean
7625
8953
  opencode_session_id?: boolean
@@ -14168,6 +15496,23 @@ export namespace Prisma {
14168
15496
  export type Chat_sessionsScalarFieldEnum = (typeof Chat_sessionsScalarFieldEnum)[keyof typeof Chat_sessionsScalarFieldEnum]
14169
15497
 
14170
15498
 
15499
+ export const Chat_session_tracked_filesScalarFieldEnum: {
15500
+ id: 'id',
15501
+ chat_session_id: 'chat_session_id',
15502
+ relative_path: 'relative_path',
15503
+ existed_at_baseline: 'existed_at_baseline',
15504
+ content_kind: 'content_kind',
15505
+ text_content: 'text_content',
15506
+ binary_content: 'binary_content',
15507
+ size_bytes: 'size_bytes',
15508
+ content_sha256: 'content_sha256',
15509
+ created_at: 'created_at',
15510
+ updated_at: 'updated_at'
15511
+ };
15512
+
15513
+ export type Chat_session_tracked_filesScalarFieldEnum = (typeof Chat_session_tracked_filesScalarFieldEnum)[keyof typeof Chat_session_tracked_filesScalarFieldEnum]
15514
+
15515
+
14171
15516
  export const Tool_execution_permissionsScalarFieldEnum: {
14172
15517
  id: 'id',
14173
15518
  opencode_session_id: 'opencode_session_id',
@@ -14284,16 +15629,16 @@ export namespace Prisma {
14284
15629
 
14285
15630
 
14286
15631
  /**
14287
- * Reference to a field of type 'Int'
15632
+ * Reference to a field of type 'Bytes'
14288
15633
  */
14289
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
15634
+ export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>
14290
15635
 
14291
15636
 
14292
15637
 
14293
15638
  /**
14294
- * Reference to a field of type 'Bytes'
15639
+ * Reference to a field of type 'Int'
14295
15640
  */
14296
- export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>
15641
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
14297
15642
 
14298
15643
 
14299
15644
 
@@ -14569,6 +15914,7 @@ export namespace Prisma {
14569
15914
  title?: StringFilter<"chat_sessions"> | string
14570
15915
  created_at?: BigIntFilter<"chat_sessions"> | bigint | number
14571
15916
  updated_at?: BigIntFilter<"chat_sessions"> | bigint | number
15917
+ trackedFiles?: Chat_session_tracked_filesListRelationFilter
14572
15918
  user?: XOR<UsersScalarRelationFilter, usersWhereInput>
14573
15919
  }
14574
15920
 
@@ -14579,6 +15925,7 @@ export namespace Prisma {
14579
15925
  title?: SortOrder
14580
15926
  created_at?: SortOrder
14581
15927
  updated_at?: SortOrder
15928
+ trackedFiles?: chat_session_tracked_filesOrderByRelationAggregateInput
14582
15929
  user?: usersOrderByWithRelationInput
14583
15930
  }
14584
15931
 
@@ -14592,6 +15939,7 @@ export namespace Prisma {
14592
15939
  title?: StringFilter<"chat_sessions"> | string
14593
15940
  created_at?: BigIntFilter<"chat_sessions"> | bigint | number
14594
15941
  updated_at?: BigIntFilter<"chat_sessions"> | bigint | number
15942
+ trackedFiles?: Chat_session_tracked_filesListRelationFilter
14595
15943
  user?: XOR<UsersScalarRelationFilter, usersWhereInput>
14596
15944
  }, "id" | "opencode_session_id">
14597
15945
 
@@ -14621,6 +15969,94 @@ export namespace Prisma {
14621
15969
  updated_at?: BigIntWithAggregatesFilter<"chat_sessions"> | bigint | number
14622
15970
  }
14623
15971
 
15972
+ export type chat_session_tracked_filesWhereInput = {
15973
+ AND?: chat_session_tracked_filesWhereInput | chat_session_tracked_filesWhereInput[]
15974
+ OR?: chat_session_tracked_filesWhereInput[]
15975
+ NOT?: chat_session_tracked_filesWhereInput | chat_session_tracked_filesWhereInput[]
15976
+ id?: StringFilter<"chat_session_tracked_files"> | string
15977
+ chat_session_id?: StringFilter<"chat_session_tracked_files"> | string
15978
+ relative_path?: StringFilter<"chat_session_tracked_files"> | string
15979
+ existed_at_baseline?: BoolFilter<"chat_session_tracked_files"> | boolean
15980
+ content_kind?: StringFilter<"chat_session_tracked_files"> | string
15981
+ text_content?: StringNullableFilter<"chat_session_tracked_files"> | string | null
15982
+ binary_content?: BytesNullableFilter<"chat_session_tracked_files"> | Bytes | null
15983
+ size_bytes?: IntNullableFilter<"chat_session_tracked_files"> | number | null
15984
+ content_sha256?: StringNullableFilter<"chat_session_tracked_files"> | string | null
15985
+ created_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
15986
+ updated_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
15987
+ session?: XOR<Chat_sessionsScalarRelationFilter, chat_sessionsWhereInput>
15988
+ }
15989
+
15990
+ export type chat_session_tracked_filesOrderByWithRelationInput = {
15991
+ id?: SortOrder
15992
+ chat_session_id?: SortOrder
15993
+ relative_path?: SortOrder
15994
+ existed_at_baseline?: SortOrder
15995
+ content_kind?: SortOrder
15996
+ text_content?: SortOrderInput | SortOrder
15997
+ binary_content?: SortOrderInput | SortOrder
15998
+ size_bytes?: SortOrderInput | SortOrder
15999
+ content_sha256?: SortOrderInput | SortOrder
16000
+ created_at?: SortOrder
16001
+ updated_at?: SortOrder
16002
+ session?: chat_sessionsOrderByWithRelationInput
16003
+ }
16004
+
16005
+ export type chat_session_tracked_filesWhereUniqueInput = Prisma.AtLeast<{
16006
+ id?: string
16007
+ chat_session_id_relative_path?: chat_session_tracked_filesChat_session_idRelative_pathCompoundUniqueInput
16008
+ AND?: chat_session_tracked_filesWhereInput | chat_session_tracked_filesWhereInput[]
16009
+ OR?: chat_session_tracked_filesWhereInput[]
16010
+ NOT?: chat_session_tracked_filesWhereInput | chat_session_tracked_filesWhereInput[]
16011
+ chat_session_id?: StringFilter<"chat_session_tracked_files"> | string
16012
+ relative_path?: StringFilter<"chat_session_tracked_files"> | string
16013
+ existed_at_baseline?: BoolFilter<"chat_session_tracked_files"> | boolean
16014
+ content_kind?: StringFilter<"chat_session_tracked_files"> | string
16015
+ text_content?: StringNullableFilter<"chat_session_tracked_files"> | string | null
16016
+ binary_content?: BytesNullableFilter<"chat_session_tracked_files"> | Bytes | null
16017
+ size_bytes?: IntNullableFilter<"chat_session_tracked_files"> | number | null
16018
+ content_sha256?: StringNullableFilter<"chat_session_tracked_files"> | string | null
16019
+ created_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
16020
+ updated_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
16021
+ session?: XOR<Chat_sessionsScalarRelationFilter, chat_sessionsWhereInput>
16022
+ }, "id" | "chat_session_id_relative_path">
16023
+
16024
+ export type chat_session_tracked_filesOrderByWithAggregationInput = {
16025
+ id?: SortOrder
16026
+ chat_session_id?: SortOrder
16027
+ relative_path?: SortOrder
16028
+ existed_at_baseline?: SortOrder
16029
+ content_kind?: SortOrder
16030
+ text_content?: SortOrderInput | SortOrder
16031
+ binary_content?: SortOrderInput | SortOrder
16032
+ size_bytes?: SortOrderInput | SortOrder
16033
+ content_sha256?: SortOrderInput | SortOrder
16034
+ created_at?: SortOrder
16035
+ updated_at?: SortOrder
16036
+ _count?: chat_session_tracked_filesCountOrderByAggregateInput
16037
+ _avg?: chat_session_tracked_filesAvgOrderByAggregateInput
16038
+ _max?: chat_session_tracked_filesMaxOrderByAggregateInput
16039
+ _min?: chat_session_tracked_filesMinOrderByAggregateInput
16040
+ _sum?: chat_session_tracked_filesSumOrderByAggregateInput
16041
+ }
16042
+
16043
+ export type chat_session_tracked_filesScalarWhereWithAggregatesInput = {
16044
+ AND?: chat_session_tracked_filesScalarWhereWithAggregatesInput | chat_session_tracked_filesScalarWhereWithAggregatesInput[]
16045
+ OR?: chat_session_tracked_filesScalarWhereWithAggregatesInput[]
16046
+ NOT?: chat_session_tracked_filesScalarWhereWithAggregatesInput | chat_session_tracked_filesScalarWhereWithAggregatesInput[]
16047
+ id?: StringWithAggregatesFilter<"chat_session_tracked_files"> | string
16048
+ chat_session_id?: StringWithAggregatesFilter<"chat_session_tracked_files"> | string
16049
+ relative_path?: StringWithAggregatesFilter<"chat_session_tracked_files"> | string
16050
+ existed_at_baseline?: BoolWithAggregatesFilter<"chat_session_tracked_files"> | boolean
16051
+ content_kind?: StringWithAggregatesFilter<"chat_session_tracked_files"> | string
16052
+ text_content?: StringNullableWithAggregatesFilter<"chat_session_tracked_files"> | string | null
16053
+ binary_content?: BytesNullableWithAggregatesFilter<"chat_session_tracked_files"> | Bytes | null
16054
+ size_bytes?: IntNullableWithAggregatesFilter<"chat_session_tracked_files"> | number | null
16055
+ content_sha256?: StringNullableWithAggregatesFilter<"chat_session_tracked_files"> | string | null
16056
+ created_at?: BigIntWithAggregatesFilter<"chat_session_tracked_files"> | bigint | number
16057
+ updated_at?: BigIntWithAggregatesFilter<"chat_session_tracked_files"> | bigint | number
16058
+ }
16059
+
14624
16060
  export type tool_execution_permissionsWhereInput = {
14625
16061
  AND?: tool_execution_permissionsWhereInput | tool_execution_permissionsWhereInput[]
14626
16062
  OR?: tool_execution_permissionsWhereInput[]
@@ -15290,6 +16726,7 @@ export namespace Prisma {
15290
16726
  title: string
15291
16727
  created_at: bigint | number
15292
16728
  updated_at: bigint | number
16729
+ trackedFiles?: chat_session_tracked_filesCreateNestedManyWithoutSessionInput
15293
16730
  user: usersCreateNestedOneWithoutChatSessionsInput
15294
16731
  }
15295
16732
 
@@ -15300,6 +16737,7 @@ export namespace Prisma {
15300
16737
  title: string
15301
16738
  created_at: bigint | number
15302
16739
  updated_at: bigint | number
16740
+ trackedFiles?: chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput
15303
16741
  }
15304
16742
 
15305
16743
  export type chat_sessionsUpdateInput = {
@@ -15308,6 +16746,7 @@ export namespace Prisma {
15308
16746
  title?: StringFieldUpdateOperationsInput | string
15309
16747
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
15310
16748
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16749
+ trackedFiles?: chat_session_tracked_filesUpdateManyWithoutSessionNestedInput
15311
16750
  user?: usersUpdateOneRequiredWithoutChatSessionsNestedInput
15312
16751
  }
15313
16752
 
@@ -15318,6 +16757,7 @@ export namespace Prisma {
15318
16757
  title?: StringFieldUpdateOperationsInput | string
15319
16758
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
15320
16759
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16760
+ trackedFiles?: chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput
15321
16761
  }
15322
16762
 
15323
16763
  export type chat_sessionsCreateManyInput = {
@@ -15346,6 +16786,103 @@ export namespace Prisma {
15346
16786
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
15347
16787
  }
15348
16788
 
16789
+ export type chat_session_tracked_filesCreateInput = {
16790
+ id?: string
16791
+ relative_path: string
16792
+ existed_at_baseline: boolean
16793
+ content_kind: string
16794
+ text_content?: string | null
16795
+ binary_content?: Bytes | null
16796
+ size_bytes?: number | null
16797
+ content_sha256?: string | null
16798
+ created_at: bigint | number
16799
+ updated_at: bigint | number
16800
+ session: chat_sessionsCreateNestedOneWithoutTrackedFilesInput
16801
+ }
16802
+
16803
+ export type chat_session_tracked_filesUncheckedCreateInput = {
16804
+ id?: string
16805
+ chat_session_id: string
16806
+ relative_path: string
16807
+ existed_at_baseline: boolean
16808
+ content_kind: string
16809
+ text_content?: string | null
16810
+ binary_content?: Bytes | null
16811
+ size_bytes?: number | null
16812
+ content_sha256?: string | null
16813
+ created_at: bigint | number
16814
+ updated_at: bigint | number
16815
+ }
16816
+
16817
+ export type chat_session_tracked_filesUpdateInput = {
16818
+ id?: StringFieldUpdateOperationsInput | string
16819
+ relative_path?: StringFieldUpdateOperationsInput | string
16820
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
16821
+ content_kind?: StringFieldUpdateOperationsInput | string
16822
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
16823
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
16824
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
16825
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
16826
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
16827
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16828
+ session?: chat_sessionsUpdateOneRequiredWithoutTrackedFilesNestedInput
16829
+ }
16830
+
16831
+ export type chat_session_tracked_filesUncheckedUpdateInput = {
16832
+ id?: StringFieldUpdateOperationsInput | string
16833
+ chat_session_id?: StringFieldUpdateOperationsInput | string
16834
+ relative_path?: StringFieldUpdateOperationsInput | string
16835
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
16836
+ content_kind?: StringFieldUpdateOperationsInput | string
16837
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
16838
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
16839
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
16840
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
16841
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
16842
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16843
+ }
16844
+
16845
+ export type chat_session_tracked_filesCreateManyInput = {
16846
+ id?: string
16847
+ chat_session_id: string
16848
+ relative_path: string
16849
+ existed_at_baseline: boolean
16850
+ content_kind: string
16851
+ text_content?: string | null
16852
+ binary_content?: Bytes | null
16853
+ size_bytes?: number | null
16854
+ content_sha256?: string | null
16855
+ created_at: bigint | number
16856
+ updated_at: bigint | number
16857
+ }
16858
+
16859
+ export type chat_session_tracked_filesUpdateManyMutationInput = {
16860
+ id?: StringFieldUpdateOperationsInput | string
16861
+ relative_path?: StringFieldUpdateOperationsInput | string
16862
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
16863
+ content_kind?: StringFieldUpdateOperationsInput | string
16864
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
16865
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
16866
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
16867
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
16868
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
16869
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16870
+ }
16871
+
16872
+ export type chat_session_tracked_filesUncheckedUpdateManyInput = {
16873
+ id?: StringFieldUpdateOperationsInput | string
16874
+ chat_session_id?: StringFieldUpdateOperationsInput | string
16875
+ relative_path?: StringFieldUpdateOperationsInput | string
16876
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
16877
+ content_kind?: StringFieldUpdateOperationsInput | string
16878
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
16879
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
16880
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
16881
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
16882
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
16883
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
16884
+ }
16885
+
15349
16886
  export type tool_execution_permissionsCreateInput = {
15350
16887
  id?: string
15351
16888
  opencode_session_id: string
@@ -16033,53 +17570,171 @@ export namespace Prisma {
16033
17570
  value?: SortOrder
16034
17571
  }
16035
17572
 
16036
- export type key_valueMaxOrderByAggregateInput = {
16037
- key?: SortOrder
16038
- value?: SortOrder
17573
+ export type key_valueMaxOrderByAggregateInput = {
17574
+ key?: SortOrder
17575
+ value?: SortOrder
17576
+ }
17577
+
17578
+ export type key_valueMinOrderByAggregateInput = {
17579
+ key?: SortOrder
17580
+ value?: SortOrder
17581
+ }
17582
+
17583
+ export type Chat_session_tracked_filesListRelationFilter = {
17584
+ every?: chat_session_tracked_filesWhereInput
17585
+ some?: chat_session_tracked_filesWhereInput
17586
+ none?: chat_session_tracked_filesWhereInput
17587
+ }
17588
+
17589
+ export type chat_session_tracked_filesOrderByRelationAggregateInput = {
17590
+ _count?: SortOrder
17591
+ }
17592
+
17593
+ export type chat_sessionsCountOrderByAggregateInput = {
17594
+ id?: SortOrder
17595
+ user_id?: SortOrder
17596
+ opencode_session_id?: SortOrder
17597
+ title?: SortOrder
17598
+ created_at?: SortOrder
17599
+ updated_at?: SortOrder
17600
+ }
17601
+
17602
+ export type chat_sessionsAvgOrderByAggregateInput = {
17603
+ created_at?: SortOrder
17604
+ updated_at?: SortOrder
17605
+ }
17606
+
17607
+ export type chat_sessionsMaxOrderByAggregateInput = {
17608
+ id?: SortOrder
17609
+ user_id?: SortOrder
17610
+ opencode_session_id?: SortOrder
17611
+ title?: SortOrder
17612
+ created_at?: SortOrder
17613
+ updated_at?: SortOrder
17614
+ }
17615
+
17616
+ export type chat_sessionsMinOrderByAggregateInput = {
17617
+ id?: SortOrder
17618
+ user_id?: SortOrder
17619
+ opencode_session_id?: SortOrder
17620
+ title?: SortOrder
17621
+ created_at?: SortOrder
17622
+ updated_at?: SortOrder
17623
+ }
17624
+
17625
+ export type chat_sessionsSumOrderByAggregateInput = {
17626
+ created_at?: SortOrder
17627
+ updated_at?: SortOrder
17628
+ }
17629
+
17630
+ export type BytesNullableFilter<$PrismaModel = never> = {
17631
+ equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
17632
+ in?: Bytes[] | null
17633
+ notIn?: Bytes[] | null
17634
+ not?: NestedBytesNullableFilter<$PrismaModel> | Bytes | null
17635
+ }
17636
+
17637
+ export type IntNullableFilter<$PrismaModel = never> = {
17638
+ equals?: number | IntFieldRefInput<$PrismaModel> | null
17639
+ in?: number[] | null
17640
+ notIn?: number[] | null
17641
+ lt?: number | IntFieldRefInput<$PrismaModel>
17642
+ lte?: number | IntFieldRefInput<$PrismaModel>
17643
+ gt?: number | IntFieldRefInput<$PrismaModel>
17644
+ gte?: number | IntFieldRefInput<$PrismaModel>
17645
+ not?: NestedIntNullableFilter<$PrismaModel> | number | null
17646
+ }
17647
+
17648
+ export type Chat_sessionsScalarRelationFilter = {
17649
+ is?: chat_sessionsWhereInput
17650
+ isNot?: chat_sessionsWhereInput
16039
17651
  }
16040
17652
 
16041
- export type key_valueMinOrderByAggregateInput = {
16042
- key?: SortOrder
16043
- value?: SortOrder
17653
+ export type chat_session_tracked_filesChat_session_idRelative_pathCompoundUniqueInput = {
17654
+ chat_session_id: string
17655
+ relative_path: string
16044
17656
  }
16045
17657
 
16046
- export type chat_sessionsCountOrderByAggregateInput = {
17658
+ export type chat_session_tracked_filesCountOrderByAggregateInput = {
16047
17659
  id?: SortOrder
16048
- user_id?: SortOrder
16049
- opencode_session_id?: SortOrder
16050
- title?: SortOrder
17660
+ chat_session_id?: SortOrder
17661
+ relative_path?: SortOrder
17662
+ existed_at_baseline?: SortOrder
17663
+ content_kind?: SortOrder
17664
+ text_content?: SortOrder
17665
+ binary_content?: SortOrder
17666
+ size_bytes?: SortOrder
17667
+ content_sha256?: SortOrder
16051
17668
  created_at?: SortOrder
16052
17669
  updated_at?: SortOrder
16053
17670
  }
16054
17671
 
16055
- export type chat_sessionsAvgOrderByAggregateInput = {
17672
+ export type chat_session_tracked_filesAvgOrderByAggregateInput = {
17673
+ size_bytes?: SortOrder
16056
17674
  created_at?: SortOrder
16057
17675
  updated_at?: SortOrder
16058
17676
  }
16059
17677
 
16060
- export type chat_sessionsMaxOrderByAggregateInput = {
17678
+ export type chat_session_tracked_filesMaxOrderByAggregateInput = {
16061
17679
  id?: SortOrder
16062
- user_id?: SortOrder
16063
- opencode_session_id?: SortOrder
16064
- title?: SortOrder
17680
+ chat_session_id?: SortOrder
17681
+ relative_path?: SortOrder
17682
+ existed_at_baseline?: SortOrder
17683
+ content_kind?: SortOrder
17684
+ text_content?: SortOrder
17685
+ binary_content?: SortOrder
17686
+ size_bytes?: SortOrder
17687
+ content_sha256?: SortOrder
16065
17688
  created_at?: SortOrder
16066
17689
  updated_at?: SortOrder
16067
17690
  }
16068
17691
 
16069
- export type chat_sessionsMinOrderByAggregateInput = {
17692
+ export type chat_session_tracked_filesMinOrderByAggregateInput = {
16070
17693
  id?: SortOrder
16071
- user_id?: SortOrder
16072
- opencode_session_id?: SortOrder
16073
- title?: SortOrder
17694
+ chat_session_id?: SortOrder
17695
+ relative_path?: SortOrder
17696
+ existed_at_baseline?: SortOrder
17697
+ content_kind?: SortOrder
17698
+ text_content?: SortOrder
17699
+ binary_content?: SortOrder
17700
+ size_bytes?: SortOrder
17701
+ content_sha256?: SortOrder
16074
17702
  created_at?: SortOrder
16075
17703
  updated_at?: SortOrder
16076
17704
  }
16077
17705
 
16078
- export type chat_sessionsSumOrderByAggregateInput = {
17706
+ export type chat_session_tracked_filesSumOrderByAggregateInput = {
17707
+ size_bytes?: SortOrder
16079
17708
  created_at?: SortOrder
16080
17709
  updated_at?: SortOrder
16081
17710
  }
16082
17711
 
17712
+ export type BytesNullableWithAggregatesFilter<$PrismaModel = never> = {
17713
+ equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
17714
+ in?: Bytes[] | null
17715
+ notIn?: Bytes[] | null
17716
+ not?: NestedBytesNullableWithAggregatesFilter<$PrismaModel> | Bytes | null
17717
+ _count?: NestedIntNullableFilter<$PrismaModel>
17718
+ _min?: NestedBytesNullableFilter<$PrismaModel>
17719
+ _max?: NestedBytesNullableFilter<$PrismaModel>
17720
+ }
17721
+
17722
+ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
17723
+ equals?: number | IntFieldRefInput<$PrismaModel> | null
17724
+ in?: number[] | null
17725
+ notIn?: number[] | null
17726
+ lt?: number | IntFieldRefInput<$PrismaModel>
17727
+ lte?: number | IntFieldRefInput<$PrismaModel>
17728
+ gt?: number | IntFieldRefInput<$PrismaModel>
17729
+ gte?: number | IntFieldRefInput<$PrismaModel>
17730
+ not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
17731
+ _count?: NestedIntNullableFilter<$PrismaModel>
17732
+ _avg?: NestedFloatNullableFilter<$PrismaModel>
17733
+ _sum?: NestedIntNullableFilter<$PrismaModel>
17734
+ _min?: NestedIntNullableFilter<$PrismaModel>
17735
+ _max?: NestedIntNullableFilter<$PrismaModel>
17736
+ }
17737
+
16083
17738
  export type tool_execution_permissionsOpencode_session_idMessage_idCall_idCompoundUniqueInput = {
16084
17739
  opencode_session_id: string
16085
17740
  message_id: string
@@ -16343,13 +17998,6 @@ export namespace Prisma {
16343
17998
  _max?: NestedIntFilter<$PrismaModel>
16344
17999
  }
16345
18000
 
16346
- export type BytesNullableFilter<$PrismaModel = never> = {
16347
- equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
16348
- in?: Bytes[] | null
16349
- notIn?: Bytes[] | null
16350
- not?: NestedBytesNullableFilter<$PrismaModel> | Bytes | null
16351
- }
16352
-
16353
18001
  export type Resource_approved_snapshotsScalarRelationFilter = {
16354
18002
  is?: resource_approved_snapshotsWhereInput
16355
18003
  isNot?: resource_approved_snapshotsWhereInput
@@ -16405,16 +18053,6 @@ export namespace Prisma {
16405
18053
  size_bytes?: SortOrder
16406
18054
  }
16407
18055
 
16408
- export type BytesNullableWithAggregatesFilter<$PrismaModel = never> = {
16409
- equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
16410
- in?: Bytes[] | null
16411
- notIn?: Bytes[] | null
16412
- not?: NestedBytesNullableWithAggregatesFilter<$PrismaModel> | Bytes | null
16413
- _count?: NestedIntNullableFilter<$PrismaModel>
16414
- _min?: NestedBytesNullableFilter<$PrismaModel>
16415
- _max?: NestedBytesNullableFilter<$PrismaModel>
16416
- }
16417
-
16418
18056
  export type workflow_runsCreateNestedManyWithoutUserInput = {
16419
18057
  create?: XOR<workflow_runsCreateWithoutUserInput, workflow_runsUncheckedCreateWithoutUserInput> | workflow_runsCreateWithoutUserInput[] | workflow_runsUncheckedCreateWithoutUserInput[]
16420
18058
  connectOrCreate?: workflow_runsCreateOrConnectWithoutUserInput | workflow_runsCreateOrConnectWithoutUserInput[]
@@ -16667,12 +18305,40 @@ export namespace Prisma {
16667
18305
  update?: XOR<XOR<usersUpdateToOneWithWhereWithoutWorkflowRunsInput, usersUpdateWithoutWorkflowRunsInput>, usersUncheckedUpdateWithoutWorkflowRunsInput>
16668
18306
  }
16669
18307
 
18308
+ export type chat_session_tracked_filesCreateNestedManyWithoutSessionInput = {
18309
+ create?: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput> | chat_session_tracked_filesCreateWithoutSessionInput[] | chat_session_tracked_filesUncheckedCreateWithoutSessionInput[]
18310
+ connectOrCreate?: chat_session_tracked_filesCreateOrConnectWithoutSessionInput | chat_session_tracked_filesCreateOrConnectWithoutSessionInput[]
18311
+ createMany?: chat_session_tracked_filesCreateManySessionInputEnvelope
18312
+ connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18313
+ }
18314
+
16670
18315
  export type usersCreateNestedOneWithoutChatSessionsInput = {
16671
18316
  create?: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
16672
18317
  connectOrCreate?: usersCreateOrConnectWithoutChatSessionsInput
16673
18318
  connect?: usersWhereUniqueInput
16674
18319
  }
16675
18320
 
18321
+ export type chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput = {
18322
+ create?: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput> | chat_session_tracked_filesCreateWithoutSessionInput[] | chat_session_tracked_filesUncheckedCreateWithoutSessionInput[]
18323
+ connectOrCreate?: chat_session_tracked_filesCreateOrConnectWithoutSessionInput | chat_session_tracked_filesCreateOrConnectWithoutSessionInput[]
18324
+ createMany?: chat_session_tracked_filesCreateManySessionInputEnvelope
18325
+ connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18326
+ }
18327
+
18328
+ export type chat_session_tracked_filesUpdateManyWithoutSessionNestedInput = {
18329
+ create?: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput> | chat_session_tracked_filesCreateWithoutSessionInput[] | chat_session_tracked_filesUncheckedCreateWithoutSessionInput[]
18330
+ connectOrCreate?: chat_session_tracked_filesCreateOrConnectWithoutSessionInput | chat_session_tracked_filesCreateOrConnectWithoutSessionInput[]
18331
+ upsert?: chat_session_tracked_filesUpsertWithWhereUniqueWithoutSessionInput | chat_session_tracked_filesUpsertWithWhereUniqueWithoutSessionInput[]
18332
+ createMany?: chat_session_tracked_filesCreateManySessionInputEnvelope
18333
+ set?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18334
+ disconnect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18335
+ delete?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18336
+ connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18337
+ update?: chat_session_tracked_filesUpdateWithWhereUniqueWithoutSessionInput | chat_session_tracked_filesUpdateWithWhereUniqueWithoutSessionInput[]
18338
+ updateMany?: chat_session_tracked_filesUpdateManyWithWhereWithoutSessionInput | chat_session_tracked_filesUpdateManyWithWhereWithoutSessionInput[]
18339
+ deleteMany?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
18340
+ }
18341
+
16676
18342
  export type usersUpdateOneRequiredWithoutChatSessionsNestedInput = {
16677
18343
  create?: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
16678
18344
  connectOrCreate?: usersCreateOrConnectWithoutChatSessionsInput
@@ -16681,6 +18347,46 @@ export namespace Prisma {
16681
18347
  update?: XOR<XOR<usersUpdateToOneWithWhereWithoutChatSessionsInput, usersUpdateWithoutChatSessionsInput>, usersUncheckedUpdateWithoutChatSessionsInput>
16682
18348
  }
16683
18349
 
18350
+ export type chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput = {
18351
+ create?: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput> | chat_session_tracked_filesCreateWithoutSessionInput[] | chat_session_tracked_filesUncheckedCreateWithoutSessionInput[]
18352
+ connectOrCreate?: chat_session_tracked_filesCreateOrConnectWithoutSessionInput | chat_session_tracked_filesCreateOrConnectWithoutSessionInput[]
18353
+ upsert?: chat_session_tracked_filesUpsertWithWhereUniqueWithoutSessionInput | chat_session_tracked_filesUpsertWithWhereUniqueWithoutSessionInput[]
18354
+ createMany?: chat_session_tracked_filesCreateManySessionInputEnvelope
18355
+ set?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18356
+ disconnect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18357
+ delete?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18358
+ connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
18359
+ update?: chat_session_tracked_filesUpdateWithWhereUniqueWithoutSessionInput | chat_session_tracked_filesUpdateWithWhereUniqueWithoutSessionInput[]
18360
+ updateMany?: chat_session_tracked_filesUpdateManyWithWhereWithoutSessionInput | chat_session_tracked_filesUpdateManyWithWhereWithoutSessionInput[]
18361
+ deleteMany?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
18362
+ }
18363
+
18364
+ export type chat_sessionsCreateNestedOneWithoutTrackedFilesInput = {
18365
+ create?: XOR<chat_sessionsCreateWithoutTrackedFilesInput, chat_sessionsUncheckedCreateWithoutTrackedFilesInput>
18366
+ connectOrCreate?: chat_sessionsCreateOrConnectWithoutTrackedFilesInput
18367
+ connect?: chat_sessionsWhereUniqueInput
18368
+ }
18369
+
18370
+ export type NullableBytesFieldUpdateOperationsInput = {
18371
+ set?: Bytes | null
18372
+ }
18373
+
18374
+ export type NullableIntFieldUpdateOperationsInput = {
18375
+ set?: number | null
18376
+ increment?: number
18377
+ decrement?: number
18378
+ multiply?: number
18379
+ divide?: number
18380
+ }
18381
+
18382
+ export type chat_sessionsUpdateOneRequiredWithoutTrackedFilesNestedInput = {
18383
+ create?: XOR<chat_sessionsCreateWithoutTrackedFilesInput, chat_sessionsUncheckedCreateWithoutTrackedFilesInput>
18384
+ connectOrCreate?: chat_sessionsCreateOrConnectWithoutTrackedFilesInput
18385
+ upsert?: chat_sessionsUpsertWithoutTrackedFilesInput
18386
+ connect?: chat_sessionsWhereUniqueInput
18387
+ update?: XOR<XOR<chat_sessionsUpdateToOneWithWhereWithoutTrackedFilesInput, chat_sessionsUpdateWithoutTrackedFilesInput>, chat_sessionsUncheckedUpdateWithoutTrackedFilesInput>
18388
+ }
18389
+
16684
18390
  export type resource_approved_snapshotsCreateNestedOneWithoutResourceInput = {
16685
18391
  create?: XOR<resource_approved_snapshotsCreateWithoutResourceInput, resource_approved_snapshotsUncheckedCreateWithoutResourceInput>
16686
18392
  connectOrCreate?: resource_approved_snapshotsCreateOrConnectWithoutResourceInput
@@ -16885,10 +18591,6 @@ export namespace Prisma {
16885
18591
  connect?: resource_approved_snapshotsWhereUniqueInput
16886
18592
  }
16887
18593
 
16888
- export type NullableBytesFieldUpdateOperationsInput = {
16889
- set?: Bytes | null
16890
- }
16891
-
16892
18594
  export type resource_approved_snapshotsUpdateOneRequiredWithoutFilesNestedInput = {
16893
18595
  create?: XOR<resource_approved_snapshotsCreateWithoutFilesInput, resource_approved_snapshotsUncheckedCreateWithoutFilesInput>
16894
18596
  connectOrCreate?: resource_approved_snapshotsCreateOrConnectWithoutFilesInput
@@ -17070,22 +18772,6 @@ export namespace Prisma {
17070
18772
  not?: NestedFloatNullableFilter<$PrismaModel> | number | null
17071
18773
  }
17072
18774
 
17073
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
17074
- equals?: number | IntFieldRefInput<$PrismaModel>
17075
- in?: number[]
17076
- notIn?: number[]
17077
- lt?: number | IntFieldRefInput<$PrismaModel>
17078
- lte?: number | IntFieldRefInput<$PrismaModel>
17079
- gt?: number | IntFieldRefInput<$PrismaModel>
17080
- gte?: number | IntFieldRefInput<$PrismaModel>
17081
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
17082
- _count?: NestedIntFilter<$PrismaModel>
17083
- _avg?: NestedFloatFilter<$PrismaModel>
17084
- _sum?: NestedIntFilter<$PrismaModel>
17085
- _min?: NestedIntFilter<$PrismaModel>
17086
- _max?: NestedIntFilter<$PrismaModel>
17087
- }
17088
-
17089
18775
  export type NestedBytesNullableFilter<$PrismaModel = never> = {
17090
18776
  equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
17091
18777
  in?: Bytes[] | null
@@ -17103,6 +18789,38 @@ export namespace Prisma {
17103
18789
  _max?: NestedBytesNullableFilter<$PrismaModel>
17104
18790
  }
17105
18791
 
18792
+ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
18793
+ equals?: number | IntFieldRefInput<$PrismaModel> | null
18794
+ in?: number[] | null
18795
+ notIn?: number[] | null
18796
+ lt?: number | IntFieldRefInput<$PrismaModel>
18797
+ lte?: number | IntFieldRefInput<$PrismaModel>
18798
+ gt?: number | IntFieldRefInput<$PrismaModel>
18799
+ gte?: number | IntFieldRefInput<$PrismaModel>
18800
+ not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
18801
+ _count?: NestedIntNullableFilter<$PrismaModel>
18802
+ _avg?: NestedFloatNullableFilter<$PrismaModel>
18803
+ _sum?: NestedIntNullableFilter<$PrismaModel>
18804
+ _min?: NestedIntNullableFilter<$PrismaModel>
18805
+ _max?: NestedIntNullableFilter<$PrismaModel>
18806
+ }
18807
+
18808
+ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
18809
+ equals?: number | IntFieldRefInput<$PrismaModel>
18810
+ in?: number[]
18811
+ notIn?: number[]
18812
+ lt?: number | IntFieldRefInput<$PrismaModel>
18813
+ lte?: number | IntFieldRefInput<$PrismaModel>
18814
+ gt?: number | IntFieldRefInput<$PrismaModel>
18815
+ gte?: number | IntFieldRefInput<$PrismaModel>
18816
+ not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
18817
+ _count?: NestedIntFilter<$PrismaModel>
18818
+ _avg?: NestedFloatFilter<$PrismaModel>
18819
+ _sum?: NestedIntFilter<$PrismaModel>
18820
+ _min?: NestedIntFilter<$PrismaModel>
18821
+ _max?: NestedIntFilter<$PrismaModel>
18822
+ }
18823
+
17106
18824
  export type workflow_runsCreateWithoutUserInput = {
17107
18825
  id?: string
17108
18826
  status: string
@@ -17144,6 +18862,7 @@ export namespace Prisma {
17144
18862
  title: string
17145
18863
  created_at: bigint | number
17146
18864
  updated_at: bigint | number
18865
+ trackedFiles?: chat_session_tracked_filesCreateNestedManyWithoutSessionInput
17147
18866
  }
17148
18867
 
17149
18868
  export type chat_sessionsUncheckedCreateWithoutUserInput = {
@@ -17152,6 +18871,7 @@ export namespace Prisma {
17152
18871
  title: string
17153
18872
  created_at: bigint | number
17154
18873
  updated_at: bigint | number
18874
+ trackedFiles?: chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput
17155
18875
  }
17156
18876
 
17157
18877
  export type chat_sessionsCreateOrConnectWithoutUserInput = {
@@ -17451,6 +19171,41 @@ export namespace Prisma {
17451
19171
  approvedResourceMetadata?: resource_metadataUncheckedUpdateManyWithoutApprovedByUserNestedInput
17452
19172
  }
17453
19173
 
19174
+ export type chat_session_tracked_filesCreateWithoutSessionInput = {
19175
+ id?: string
19176
+ relative_path: string
19177
+ existed_at_baseline: boolean
19178
+ content_kind: string
19179
+ text_content?: string | null
19180
+ binary_content?: Bytes | null
19181
+ size_bytes?: number | null
19182
+ content_sha256?: string | null
19183
+ created_at: bigint | number
19184
+ updated_at: bigint | number
19185
+ }
19186
+
19187
+ export type chat_session_tracked_filesUncheckedCreateWithoutSessionInput = {
19188
+ id?: string
19189
+ relative_path: string
19190
+ existed_at_baseline: boolean
19191
+ content_kind: string
19192
+ text_content?: string | null
19193
+ binary_content?: Bytes | null
19194
+ size_bytes?: number | null
19195
+ content_sha256?: string | null
19196
+ created_at: bigint | number
19197
+ updated_at: bigint | number
19198
+ }
19199
+
19200
+ export type chat_session_tracked_filesCreateOrConnectWithoutSessionInput = {
19201
+ where: chat_session_tracked_filesWhereUniqueInput
19202
+ create: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput>
19203
+ }
19204
+
19205
+ export type chat_session_tracked_filesCreateManySessionInputEnvelope = {
19206
+ data: chat_session_tracked_filesCreateManySessionInput | chat_session_tracked_filesCreateManySessionInput[]
19207
+ }
19208
+
17454
19209
  export type usersCreateWithoutChatSessionsInput = {
17455
19210
  id?: string
17456
19211
  email: string
@@ -17488,6 +19243,39 @@ export namespace Prisma {
17488
19243
  create: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
17489
19244
  }
17490
19245
 
19246
+ export type chat_session_tracked_filesUpsertWithWhereUniqueWithoutSessionInput = {
19247
+ where: chat_session_tracked_filesWhereUniqueInput
19248
+ update: XOR<chat_session_tracked_filesUpdateWithoutSessionInput, chat_session_tracked_filesUncheckedUpdateWithoutSessionInput>
19249
+ create: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput>
19250
+ }
19251
+
19252
+ export type chat_session_tracked_filesUpdateWithWhereUniqueWithoutSessionInput = {
19253
+ where: chat_session_tracked_filesWhereUniqueInput
19254
+ data: XOR<chat_session_tracked_filesUpdateWithoutSessionInput, chat_session_tracked_filesUncheckedUpdateWithoutSessionInput>
19255
+ }
19256
+
19257
+ export type chat_session_tracked_filesUpdateManyWithWhereWithoutSessionInput = {
19258
+ where: chat_session_tracked_filesScalarWhereInput
19259
+ data: XOR<chat_session_tracked_filesUpdateManyMutationInput, chat_session_tracked_filesUncheckedUpdateManyWithoutSessionInput>
19260
+ }
19261
+
19262
+ export type chat_session_tracked_filesScalarWhereInput = {
19263
+ AND?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
19264
+ OR?: chat_session_tracked_filesScalarWhereInput[]
19265
+ NOT?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
19266
+ id?: StringFilter<"chat_session_tracked_files"> | string
19267
+ chat_session_id?: StringFilter<"chat_session_tracked_files"> | string
19268
+ relative_path?: StringFilter<"chat_session_tracked_files"> | string
19269
+ existed_at_baseline?: BoolFilter<"chat_session_tracked_files"> | boolean
19270
+ content_kind?: StringFilter<"chat_session_tracked_files"> | string
19271
+ text_content?: StringNullableFilter<"chat_session_tracked_files"> | string | null
19272
+ binary_content?: BytesNullableFilter<"chat_session_tracked_files"> | Bytes | null
19273
+ size_bytes?: IntNullableFilter<"chat_session_tracked_files"> | number | null
19274
+ content_sha256?: StringNullableFilter<"chat_session_tracked_files"> | string | null
19275
+ created_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
19276
+ updated_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
19277
+ }
19278
+
17491
19279
  export type usersUpsertWithoutChatSessionsInput = {
17492
19280
  update: XOR<usersUpdateWithoutChatSessionsInput, usersUncheckedUpdateWithoutChatSessionsInput>
17493
19281
  create: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
@@ -17531,6 +19319,58 @@ export namespace Prisma {
17531
19319
  approvedResourceMetadata?: resource_metadataUncheckedUpdateManyWithoutApprovedByUserNestedInput
17532
19320
  }
17533
19321
 
19322
+ export type chat_sessionsCreateWithoutTrackedFilesInput = {
19323
+ id?: string
19324
+ opencode_session_id: string
19325
+ title: string
19326
+ created_at: bigint | number
19327
+ updated_at: bigint | number
19328
+ user: usersCreateNestedOneWithoutChatSessionsInput
19329
+ }
19330
+
19331
+ export type chat_sessionsUncheckedCreateWithoutTrackedFilesInput = {
19332
+ id?: string
19333
+ user_id: string
19334
+ opencode_session_id: string
19335
+ title: string
19336
+ created_at: bigint | number
19337
+ updated_at: bigint | number
19338
+ }
19339
+
19340
+ export type chat_sessionsCreateOrConnectWithoutTrackedFilesInput = {
19341
+ where: chat_sessionsWhereUniqueInput
19342
+ create: XOR<chat_sessionsCreateWithoutTrackedFilesInput, chat_sessionsUncheckedCreateWithoutTrackedFilesInput>
19343
+ }
19344
+
19345
+ export type chat_sessionsUpsertWithoutTrackedFilesInput = {
19346
+ update: XOR<chat_sessionsUpdateWithoutTrackedFilesInput, chat_sessionsUncheckedUpdateWithoutTrackedFilesInput>
19347
+ create: XOR<chat_sessionsCreateWithoutTrackedFilesInput, chat_sessionsUncheckedCreateWithoutTrackedFilesInput>
19348
+ where?: chat_sessionsWhereInput
19349
+ }
19350
+
19351
+ export type chat_sessionsUpdateToOneWithWhereWithoutTrackedFilesInput = {
19352
+ where?: chat_sessionsWhereInput
19353
+ data: XOR<chat_sessionsUpdateWithoutTrackedFilesInput, chat_sessionsUncheckedUpdateWithoutTrackedFilesInput>
19354
+ }
19355
+
19356
+ export type chat_sessionsUpdateWithoutTrackedFilesInput = {
19357
+ id?: StringFieldUpdateOperationsInput | string
19358
+ opencode_session_id?: StringFieldUpdateOperationsInput | string
19359
+ title?: StringFieldUpdateOperationsInput | string
19360
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
19361
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19362
+ user?: usersUpdateOneRequiredWithoutChatSessionsNestedInput
19363
+ }
19364
+
19365
+ export type chat_sessionsUncheckedUpdateWithoutTrackedFilesInput = {
19366
+ id?: StringFieldUpdateOperationsInput | string
19367
+ user_id?: StringFieldUpdateOperationsInput | string
19368
+ opencode_session_id?: StringFieldUpdateOperationsInput | string
19369
+ title?: StringFieldUpdateOperationsInput | string
19370
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
19371
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19372
+ }
19373
+
17534
19374
  export type resource_approved_snapshotsCreateWithoutResourceInput = {
17535
19375
  file_count: number
17536
19376
  created_at: bigint | number
@@ -18147,6 +19987,7 @@ export namespace Prisma {
18147
19987
  title?: StringFieldUpdateOperationsInput | string
18148
19988
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
18149
19989
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19990
+ trackedFiles?: chat_session_tracked_filesUpdateManyWithoutSessionNestedInput
18150
19991
  }
18151
19992
 
18152
19993
  export type chat_sessionsUncheckedUpdateWithoutUserInput = {
@@ -18155,6 +19996,7 @@ export namespace Prisma {
18155
19996
  title?: StringFieldUpdateOperationsInput | string
18156
19997
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
18157
19998
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19999
+ trackedFiles?: chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput
18158
20000
  }
18159
20001
 
18160
20002
  export type chat_sessionsUncheckedUpdateManyWithoutUserInput = {
@@ -18237,6 +20079,58 @@ export namespace Prisma {
18237
20079
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
18238
20080
  }
18239
20081
 
20082
+ export type chat_session_tracked_filesCreateManySessionInput = {
20083
+ id?: string
20084
+ relative_path: string
20085
+ existed_at_baseline: boolean
20086
+ content_kind: string
20087
+ text_content?: string | null
20088
+ binary_content?: Bytes | null
20089
+ size_bytes?: number | null
20090
+ content_sha256?: string | null
20091
+ created_at: bigint | number
20092
+ updated_at: bigint | number
20093
+ }
20094
+
20095
+ export type chat_session_tracked_filesUpdateWithoutSessionInput = {
20096
+ id?: StringFieldUpdateOperationsInput | string
20097
+ relative_path?: StringFieldUpdateOperationsInput | string
20098
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
20099
+ content_kind?: StringFieldUpdateOperationsInput | string
20100
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
20101
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
20102
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
20103
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
20104
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
20105
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20106
+ }
20107
+
20108
+ export type chat_session_tracked_filesUncheckedUpdateWithoutSessionInput = {
20109
+ id?: StringFieldUpdateOperationsInput | string
20110
+ relative_path?: StringFieldUpdateOperationsInput | string
20111
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
20112
+ content_kind?: StringFieldUpdateOperationsInput | string
20113
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
20114
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
20115
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
20116
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
20117
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
20118
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20119
+ }
20120
+
20121
+ export type chat_session_tracked_filesUncheckedUpdateManyWithoutSessionInput = {
20122
+ id?: StringFieldUpdateOperationsInput | string
20123
+ relative_path?: StringFieldUpdateOperationsInput | string
20124
+ existed_at_baseline?: BoolFieldUpdateOperationsInput | boolean
20125
+ content_kind?: StringFieldUpdateOperationsInput | string
20126
+ text_content?: NullableStringFieldUpdateOperationsInput | string | null
20127
+ binary_content?: NullableBytesFieldUpdateOperationsInput | Bytes | null
20128
+ size_bytes?: NullableIntFieldUpdateOperationsInput | number | null
20129
+ content_sha256?: NullableStringFieldUpdateOperationsInput | string | null
20130
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
20131
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20132
+ }
20133
+
18240
20134
  export type resource_permission_usersCreateManyPermissionInput = {
18241
20135
  id?: string
18242
20136
  user_id: string