teamcopilot 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.env.example +6 -0
  2. package/dist/chat/index.js +18 -0
  3. package/dist/frontend/assets/{cssMode-D5XpZugr.js → cssMode-BTzeyxuZ.js} +1 -1
  4. package/dist/frontend/assets/{freemarker2-1bzrSLLO.js → freemarker2-JV7VLJuz.js} +1 -1
  5. package/dist/frontend/assets/{handlebars-BrCOyfYR.js → handlebars-Wq0xrjB8.js} +1 -1
  6. package/dist/frontend/assets/{html-CeIQZCI8.js → html-KQAZW_HC.js} +1 -1
  7. package/dist/frontend/assets/{htmlMode-B6ILgHd7.js → htmlMode-DRJ1_AV3.js} +1 -1
  8. package/dist/frontend/assets/{index-B0u3xzuM.js → index-BHvb2gDp.js} +232 -232
  9. package/dist/frontend/assets/index-CQhgzoZH.css +1 -0
  10. package/dist/frontend/assets/{javascript-BBiK7v6P.js → javascript-BwwBtsWD.js} +1 -1
  11. package/dist/frontend/assets/{jsonMode-DUvNLAsU.js → jsonMode-D1JS0FC-.js} +1 -1
  12. package/dist/frontend/assets/{liquid-DbDUmqHQ.js → liquid-CtZHahU2.js} +1 -1
  13. package/dist/frontend/assets/{mdx-DhBBmLRc.js → mdx-DtoZ-9fa.js} +1 -1
  14. package/dist/frontend/assets/{python-DjRmQTqo.js → python-DsLd8hBF.js} +1 -1
  15. package/dist/frontend/assets/{razor-B0p8vOFC.js → razor-ByeasSZw.js} +1 -1
  16. package/dist/frontend/assets/{tsMode-CmtykvH8.js → tsMode-B8ZZzbQC.js} +1 -1
  17. package/dist/frontend/assets/{typescript-ByGe7b1m.js → typescript-DafR78wI.js} +1 -1
  18. package/dist/frontend/assets/{xml-BJ90e21o.js → xml-BIY1cH0j.js} +1 -1
  19. package/dist/frontend/assets/{yaml-BJKnMsp4.js → yaml-CitqxWJM.js} +1 -1
  20. package/dist/frontend/index.html +2 -2
  21. package/dist/index.js +2 -0
  22. package/dist/usage/index.js +14 -0
  23. package/dist/utils/chat-usage.js +258 -0
  24. package/dist/utils/model-pricing.js +107 -0
  25. package/package.json +2 -2
  26. package/prisma/generated/client/edge.js +16 -3
  27. package/prisma/generated/client/index-browser.js +13 -0
  28. package/prisma/generated/client/index.d.ts +1995 -259
  29. package/prisma/generated/client/index.js +16 -3
  30. package/prisma/generated/client/package.json +1 -1
  31. package/prisma/generated/client/schema.prisma +14 -0
  32. package/prisma/generated/client/wasm.js +16 -3
  33. package/prisma/migrations/20260408073541_add_chat_session_usage/migration.sql +11 -0
  34. package/prisma/migrations/20260409044955_add_last_synced_message_id_to_chat_session_usage/migration.sql +2 -0
  35. package/prisma/migrations/20260409045848_add_provider_id_to_chat_session_usage/migration.sql +2 -0
  36. package/prisma/migrations/20260409051857_require_provider_and_last_synced_message_id_in_chat_session_usage/migration.sql +27 -0
  37. package/prisma/schema.prisma +14 -0
  38. package/dist/frontend/assets/index-DwTKL-xp.css +0 -1
@@ -48,6 +48,11 @@ export type global_secrets = $Result.DefaultSelection<Prisma.$global_secretsPayl
48
48
  *
49
49
  */
50
50
  export type chat_sessions = $Result.DefaultSelection<Prisma.$chat_sessionsPayload>
51
+ /**
52
+ * Model chat_session_usage
53
+ *
54
+ */
55
+ export type chat_session_usage = $Result.DefaultSelection<Prisma.$chat_session_usagePayload>
51
56
  /**
52
57
  * Model chat_session_tracked_files
53
58
  *
@@ -272,6 +277,16 @@ export class PrismaClient<
272
277
  */
273
278
  get chat_sessions(): Prisma.chat_sessionsDelegate<ExtArgs, ClientOptions>;
274
279
 
280
+ /**
281
+ * `prisma.chat_session_usage`: Exposes CRUD operations for the **chat_session_usage** model.
282
+ * Example usage:
283
+ * ```ts
284
+ * // Fetch zero or more Chat_session_usages
285
+ * const chat_session_usages = await prisma.chat_session_usage.findMany()
286
+ * ```
287
+ */
288
+ get chat_session_usage(): Prisma.chat_session_usageDelegate<ExtArgs, ClientOptions>;
289
+
275
290
  /**
276
291
  * `prisma.chat_session_tracked_files`: Exposes CRUD operations for the **chat_session_tracked_files** model.
277
292
  * Example usage:
@@ -789,6 +804,7 @@ export namespace Prisma {
789
804
  user_secrets: 'user_secrets',
790
805
  global_secrets: 'global_secrets',
791
806
  chat_sessions: 'chat_sessions',
807
+ chat_session_usage: 'chat_session_usage',
792
808
  chat_session_tracked_files: 'chat_session_tracked_files',
793
809
  tool_execution_permissions: 'tool_execution_permissions',
794
810
  resource_metadata: 'resource_metadata',
@@ -814,7 +830,7 @@ export namespace Prisma {
814
830
  omit: GlobalOmitOptions
815
831
  }
816
832
  meta: {
817
- modelProps: "users" | "workflow_runs" | "workflow_aborted_sessions" | "key_value" | "user_secrets" | "global_secrets" | "chat_sessions" | "chat_session_tracked_files" | "tool_execution_permissions" | "resource_metadata" | "resource_permissions" | "resource_permission_users" | "resource_approved_snapshots" | "resource_approved_snapshot_files"
833
+ modelProps: "users" | "workflow_runs" | "workflow_aborted_sessions" | "key_value" | "user_secrets" | "global_secrets" | "chat_sessions" | "chat_session_usage" | "chat_session_tracked_files" | "tool_execution_permissions" | "resource_metadata" | "resource_permissions" | "resource_permission_users" | "resource_approved_snapshots" | "resource_approved_snapshot_files"
818
834
  txIsolationLevel: Prisma.TransactionIsolationLevel
819
835
  }
820
836
  model: {
@@ -1336,6 +1352,80 @@ export namespace Prisma {
1336
1352
  }
1337
1353
  }
1338
1354
  }
1355
+ chat_session_usage: {
1356
+ payload: Prisma.$chat_session_usagePayload<ExtArgs>
1357
+ fields: Prisma.chat_session_usageFieldRefs
1358
+ operations: {
1359
+ findUnique: {
1360
+ args: Prisma.chat_session_usageFindUniqueArgs<ExtArgs>
1361
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload> | null
1362
+ }
1363
+ findUniqueOrThrow: {
1364
+ args: Prisma.chat_session_usageFindUniqueOrThrowArgs<ExtArgs>
1365
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1366
+ }
1367
+ findFirst: {
1368
+ args: Prisma.chat_session_usageFindFirstArgs<ExtArgs>
1369
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload> | null
1370
+ }
1371
+ findFirstOrThrow: {
1372
+ args: Prisma.chat_session_usageFindFirstOrThrowArgs<ExtArgs>
1373
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1374
+ }
1375
+ findMany: {
1376
+ args: Prisma.chat_session_usageFindManyArgs<ExtArgs>
1377
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>[]
1378
+ }
1379
+ create: {
1380
+ args: Prisma.chat_session_usageCreateArgs<ExtArgs>
1381
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1382
+ }
1383
+ createMany: {
1384
+ args: Prisma.chat_session_usageCreateManyArgs<ExtArgs>
1385
+ result: BatchPayload
1386
+ }
1387
+ createManyAndReturn: {
1388
+ args: Prisma.chat_session_usageCreateManyAndReturnArgs<ExtArgs>
1389
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>[]
1390
+ }
1391
+ delete: {
1392
+ args: Prisma.chat_session_usageDeleteArgs<ExtArgs>
1393
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1394
+ }
1395
+ update: {
1396
+ args: Prisma.chat_session_usageUpdateArgs<ExtArgs>
1397
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1398
+ }
1399
+ deleteMany: {
1400
+ args: Prisma.chat_session_usageDeleteManyArgs<ExtArgs>
1401
+ result: BatchPayload
1402
+ }
1403
+ updateMany: {
1404
+ args: Prisma.chat_session_usageUpdateManyArgs<ExtArgs>
1405
+ result: BatchPayload
1406
+ }
1407
+ updateManyAndReturn: {
1408
+ args: Prisma.chat_session_usageUpdateManyAndReturnArgs<ExtArgs>
1409
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>[]
1410
+ }
1411
+ upsert: {
1412
+ args: Prisma.chat_session_usageUpsertArgs<ExtArgs>
1413
+ result: $Utils.PayloadToResult<Prisma.$chat_session_usagePayload>
1414
+ }
1415
+ aggregate: {
1416
+ args: Prisma.Chat_session_usageAggregateArgs<ExtArgs>
1417
+ result: $Utils.Optional<AggregateChat_session_usage>
1418
+ }
1419
+ groupBy: {
1420
+ args: Prisma.chat_session_usageGroupByArgs<ExtArgs>
1421
+ result: $Utils.Optional<Chat_session_usageGroupByOutputType>[]
1422
+ }
1423
+ count: {
1424
+ args: Prisma.chat_session_usageCountArgs<ExtArgs>
1425
+ result: $Utils.Optional<Chat_session_usageCountAggregateOutputType> | number
1426
+ }
1427
+ }
1428
+ }
1339
1429
  chat_session_tracked_files: {
1340
1430
  payload: Prisma.$chat_session_tracked_filesPayload<ExtArgs>
1341
1431
  fields: Prisma.chat_session_tracked_filesFieldRefs
@@ -1957,6 +2047,7 @@ export namespace Prisma {
1957
2047
  user_secrets?: user_secretsOmit
1958
2048
  global_secrets?: global_secretsOmit
1959
2049
  chat_sessions?: chat_sessionsOmit
2050
+ chat_session_usage?: chat_session_usageOmit
1960
2051
  chat_session_tracked_files?: chat_session_tracked_filesOmit
1961
2052
  tool_execution_permissions?: tool_execution_permissionsOmit
1962
2053
  resource_metadata?: resource_metadataOmit
@@ -9007,6 +9098,7 @@ export namespace Prisma {
9007
9098
  created_at?: boolean
9008
9099
  updated_at?: boolean
9009
9100
  trackedFiles?: boolean | chat_sessions$trackedFilesArgs<ExtArgs>
9101
+ usage?: boolean | chat_sessions$usageArgs<ExtArgs>
9010
9102
  user?: boolean | usersDefaultArgs<ExtArgs>
9011
9103
  _count?: boolean | Chat_sessionsCountOutputTypeDefaultArgs<ExtArgs>
9012
9104
  }, ExtArgs["result"]["chat_sessions"]>
@@ -9046,6 +9138,7 @@ export namespace Prisma {
9046
9138
  export type chat_sessionsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "user_id" | "opencode_session_id" | "title" | "last_seen_assistant_message_id" | "created_at" | "updated_at", ExtArgs["result"]["chat_sessions"]>
9047
9139
  export type chat_sessionsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9048
9140
  trackedFiles?: boolean | chat_sessions$trackedFilesArgs<ExtArgs>
9141
+ usage?: boolean | chat_sessions$usageArgs<ExtArgs>
9049
9142
  user?: boolean | usersDefaultArgs<ExtArgs>
9050
9143
  _count?: boolean | Chat_sessionsCountOutputTypeDefaultArgs<ExtArgs>
9051
9144
  }
@@ -9060,6 +9153,7 @@ export namespace Prisma {
9060
9153
  name: "chat_sessions"
9061
9154
  objects: {
9062
9155
  trackedFiles: Prisma.$chat_session_tracked_filesPayload<ExtArgs>[]
9156
+ usage: Prisma.$chat_session_usagePayload<ExtArgs> | null
9063
9157
  user: Prisma.$usersPayload<ExtArgs>
9064
9158
  }
9065
9159
  scalars: $Extensions.GetPayloadResult<{
@@ -9465,6 +9559,7 @@ export namespace Prisma {
9465
9559
  export interface Prisma__chat_sessionsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
9466
9560
  readonly [Symbol.toStringTag]: "PrismaPromise"
9467
9561
  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>
9562
+ usage<T extends chat_sessions$usageArgs<ExtArgs> = {}>(args?: Subset<T, chat_sessions$usageArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
9468
9563
  user<T extends usersDefaultArgs<ExtArgs> = {}>(args?: Subset<T, usersDefaultArgs<ExtArgs>>): Prisma__usersClient<$Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
9469
9564
  /**
9470
9565
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -9919,6 +10014,25 @@ export namespace Prisma {
9919
10014
  distinct?: Chat_session_tracked_filesScalarFieldEnum | Chat_session_tracked_filesScalarFieldEnum[]
9920
10015
  }
9921
10016
 
10017
+ /**
10018
+ * chat_sessions.usage
10019
+ */
10020
+ export type chat_sessions$usageArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10021
+ /**
10022
+ * Select specific fields to fetch from the chat_session_usage
10023
+ */
10024
+ select?: chat_session_usageSelect<ExtArgs> | null
10025
+ /**
10026
+ * Omit specific fields from the chat_session_usage
10027
+ */
10028
+ omit?: chat_session_usageOmit<ExtArgs> | null
10029
+ /**
10030
+ * Choose, which related nodes to fetch as well
10031
+ */
10032
+ include?: chat_session_usageInclude<ExtArgs> | null
10033
+ where?: chat_session_usageWhereInput
10034
+ }
10035
+
9922
10036
  /**
9923
10037
  * chat_sessions without action
9924
10038
  */
@@ -9939,353 +10053,1511 @@ export namespace Prisma {
9939
10053
 
9940
10054
 
9941
10055
  /**
9942
- * Model chat_session_tracked_files
10056
+ * Model chat_session_usage
9943
10057
  */
9944
10058
 
9945
- export type AggregateChat_session_tracked_files = {
9946
- _count: Chat_session_tracked_filesCountAggregateOutputType | null
9947
- _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
9948
- _sum: Chat_session_tracked_filesSumAggregateOutputType | null
9949
- _min: Chat_session_tracked_filesMinAggregateOutputType | null
9950
- _max: Chat_session_tracked_filesMaxAggregateOutputType | null
10059
+ export type AggregateChat_session_usage = {
10060
+ _count: Chat_session_usageCountAggregateOutputType | null
10061
+ _avg: Chat_session_usageAvgAggregateOutputType | null
10062
+ _sum: Chat_session_usageSumAggregateOutputType | null
10063
+ _min: Chat_session_usageMinAggregateOutputType | null
10064
+ _max: Chat_session_usageMaxAggregateOutputType | null
9951
10065
  }
9952
10066
 
9953
- export type Chat_session_tracked_filesAvgAggregateOutputType = {
9954
- size_bytes: number | null
9955
- created_at: number | null
10067
+ export type Chat_session_usageAvgAggregateOutputType = {
10068
+ input_tokens: number | null
10069
+ output_tokens: number | null
10070
+ cached_tokens: number | null
10071
+ cost_usd: number | null
9956
10072
  updated_at: number | null
9957
10073
  }
9958
10074
 
9959
- export type Chat_session_tracked_filesSumAggregateOutputType = {
9960
- size_bytes: number | null
9961
- created_at: bigint | null
10075
+ export type Chat_session_usageSumAggregateOutputType = {
10076
+ input_tokens: number | null
10077
+ output_tokens: number | null
10078
+ cached_tokens: number | null
10079
+ cost_usd: number | null
9962
10080
  updated_at: bigint | null
9963
10081
  }
9964
10082
 
9965
- export type Chat_session_tracked_filesMinAggregateOutputType = {
9966
- id: string | null
10083
+ export type Chat_session_usageMinAggregateOutputType = {
9967
10084
  chat_session_id: string | null
9968
- relative_path: string | null
9969
- existed_at_baseline: boolean | null
9970
- content_kind: string | null
9971
- text_content: string | null
9972
- binary_content: Bytes | null
9973
- size_bytes: number | null
9974
- content_sha256: string | null
9975
- created_at: bigint | null
10085
+ last_synced_message_id: string | null
10086
+ provider_id: string | null
10087
+ input_tokens: number | null
10088
+ output_tokens: number | null
10089
+ cached_tokens: number | null
10090
+ cost_usd: number | null
10091
+ model_id: string | null
9976
10092
  updated_at: bigint | null
9977
10093
  }
9978
10094
 
9979
- export type Chat_session_tracked_filesMaxAggregateOutputType = {
9980
- id: string | null
10095
+ export type Chat_session_usageMaxAggregateOutputType = {
9981
10096
  chat_session_id: string | null
9982
- relative_path: string | null
9983
- existed_at_baseline: boolean | null
9984
- content_kind: string | null
9985
- text_content: string | null
9986
- binary_content: Bytes | null
9987
- size_bytes: number | null
9988
- content_sha256: string | null
9989
- created_at: bigint | null
10097
+ last_synced_message_id: string | null
10098
+ provider_id: string | null
10099
+ input_tokens: number | null
10100
+ output_tokens: number | null
10101
+ cached_tokens: number | null
10102
+ cost_usd: number | null
10103
+ model_id: string | null
9990
10104
  updated_at: bigint | null
9991
10105
  }
9992
10106
 
9993
- export type Chat_session_tracked_filesCountAggregateOutputType = {
9994
- id: number
10107
+ export type Chat_session_usageCountAggregateOutputType = {
9995
10108
  chat_session_id: number
9996
- relative_path: number
9997
- existed_at_baseline: number
9998
- content_kind: number
9999
- text_content: number
10000
- binary_content: number
10001
- size_bytes: number
10002
- content_sha256: number
10003
- created_at: number
10109
+ last_synced_message_id: number
10110
+ provider_id: number
10111
+ input_tokens: number
10112
+ output_tokens: number
10113
+ cached_tokens: number
10114
+ cost_usd: number
10115
+ model_id: number
10004
10116
  updated_at: number
10005
10117
  _all: number
10006
10118
  }
10007
10119
 
10008
10120
 
10009
- export type Chat_session_tracked_filesAvgAggregateInputType = {
10010
- size_bytes?: true
10011
- created_at?: true
10121
+ export type Chat_session_usageAvgAggregateInputType = {
10122
+ input_tokens?: true
10123
+ output_tokens?: true
10124
+ cached_tokens?: true
10125
+ cost_usd?: true
10012
10126
  updated_at?: true
10013
10127
  }
10014
10128
 
10015
- export type Chat_session_tracked_filesSumAggregateInputType = {
10016
- size_bytes?: true
10017
- created_at?: true
10129
+ export type Chat_session_usageSumAggregateInputType = {
10130
+ input_tokens?: true
10131
+ output_tokens?: true
10132
+ cached_tokens?: true
10133
+ cost_usd?: true
10018
10134
  updated_at?: true
10019
10135
  }
10020
10136
 
10021
- export type Chat_session_tracked_filesMinAggregateInputType = {
10022
- id?: true
10137
+ export type Chat_session_usageMinAggregateInputType = {
10023
10138
  chat_session_id?: true
10024
- relative_path?: true
10025
- existed_at_baseline?: true
10026
- content_kind?: true
10027
- text_content?: true
10028
- binary_content?: true
10029
- size_bytes?: true
10030
- content_sha256?: true
10031
- created_at?: true
10139
+ last_synced_message_id?: true
10140
+ provider_id?: true
10141
+ input_tokens?: true
10142
+ output_tokens?: true
10143
+ cached_tokens?: true
10144
+ cost_usd?: true
10145
+ model_id?: true
10032
10146
  updated_at?: true
10033
10147
  }
10034
10148
 
10035
- export type Chat_session_tracked_filesMaxAggregateInputType = {
10036
- id?: true
10149
+ export type Chat_session_usageMaxAggregateInputType = {
10037
10150
  chat_session_id?: true
10038
- relative_path?: true
10039
- existed_at_baseline?: true
10040
- content_kind?: true
10041
- text_content?: true
10042
- binary_content?: true
10043
- size_bytes?: true
10044
- content_sha256?: true
10045
- created_at?: true
10151
+ last_synced_message_id?: true
10152
+ provider_id?: true
10153
+ input_tokens?: true
10154
+ output_tokens?: true
10155
+ cached_tokens?: true
10156
+ cost_usd?: true
10157
+ model_id?: true
10046
10158
  updated_at?: true
10047
10159
  }
10048
10160
 
10049
- export type Chat_session_tracked_filesCountAggregateInputType = {
10050
- id?: true
10161
+ export type Chat_session_usageCountAggregateInputType = {
10051
10162
  chat_session_id?: true
10052
- relative_path?: true
10053
- existed_at_baseline?: true
10054
- content_kind?: true
10055
- text_content?: true
10056
- binary_content?: true
10057
- size_bytes?: true
10058
- content_sha256?: true
10059
- created_at?: true
10163
+ last_synced_message_id?: true
10164
+ provider_id?: true
10165
+ input_tokens?: true
10166
+ output_tokens?: true
10167
+ cached_tokens?: true
10168
+ cost_usd?: true
10169
+ model_id?: true
10060
10170
  updated_at?: true
10061
10171
  _all?: true
10062
10172
  }
10063
10173
 
10064
- export type Chat_session_tracked_filesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10174
+ export type Chat_session_usageAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10065
10175
  /**
10066
- * Filter which chat_session_tracked_files to aggregate.
10176
+ * Filter which chat_session_usage to aggregate.
10067
10177
  */
10068
- where?: chat_session_tracked_filesWhereInput
10178
+ where?: chat_session_usageWhereInput
10069
10179
  /**
10070
10180
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
10071
10181
  *
10072
- * Determine the order of chat_session_tracked_files to fetch.
10182
+ * Determine the order of chat_session_usages to fetch.
10073
10183
  */
10074
- orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
10184
+ orderBy?: chat_session_usageOrderByWithRelationInput | chat_session_usageOrderByWithRelationInput[]
10075
10185
  /**
10076
10186
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
10077
10187
  *
10078
10188
  * Sets the start position
10079
10189
  */
10080
- cursor?: chat_session_tracked_filesWhereUniqueInput
10190
+ cursor?: chat_session_usageWhereUniqueInput
10081
10191
  /**
10082
10192
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10083
10193
  *
10084
- * Take `±n` chat_session_tracked_files from the position of the cursor.
10194
+ * Take `±n` chat_session_usages from the position of the cursor.
10085
10195
  */
10086
10196
  take?: number
10087
10197
  /**
10088
10198
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10089
10199
  *
10090
- * Skip the first `n` chat_session_tracked_files.
10200
+ * Skip the first `n` chat_session_usages.
10091
10201
  */
10092
10202
  skip?: number
10093
10203
  /**
10094
10204
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
10095
10205
  *
10096
- * Count returned chat_session_tracked_files
10206
+ * Count returned chat_session_usages
10097
10207
  **/
10098
- _count?: true | Chat_session_tracked_filesCountAggregateInputType
10208
+ _count?: true | Chat_session_usageCountAggregateInputType
10099
10209
  /**
10100
10210
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
10101
10211
  *
10102
10212
  * Select which fields to average
10103
10213
  **/
10104
- _avg?: Chat_session_tracked_filesAvgAggregateInputType
10214
+ _avg?: Chat_session_usageAvgAggregateInputType
10105
10215
  /**
10106
10216
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
10107
10217
  *
10108
10218
  * Select which fields to sum
10109
10219
  **/
10110
- _sum?: Chat_session_tracked_filesSumAggregateInputType
10220
+ _sum?: Chat_session_usageSumAggregateInputType
10111
10221
  /**
10112
10222
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
10113
10223
  *
10114
10224
  * Select which fields to find the minimum value
10115
10225
  **/
10116
- _min?: Chat_session_tracked_filesMinAggregateInputType
10226
+ _min?: Chat_session_usageMinAggregateInputType
10117
10227
  /**
10118
10228
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
10119
10229
  *
10120
10230
  * Select which fields to find the maximum value
10121
10231
  **/
10122
- _max?: Chat_session_tracked_filesMaxAggregateInputType
10232
+ _max?: Chat_session_usageMaxAggregateInputType
10123
10233
  }
10124
10234
 
10125
- export type GetChat_session_tracked_filesAggregateType<T extends Chat_session_tracked_filesAggregateArgs> = {
10126
- [P in keyof T & keyof AggregateChat_session_tracked_files]: P extends '_count' | 'count'
10235
+ export type GetChat_session_usageAggregateType<T extends Chat_session_usageAggregateArgs> = {
10236
+ [P in keyof T & keyof AggregateChat_session_usage]: P extends '_count' | 'count'
10127
10237
  ? T[P] extends true
10128
10238
  ? number
10129
- : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
10130
- : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
10239
+ : GetScalarType<T[P], AggregateChat_session_usage[P]>
10240
+ : GetScalarType<T[P], AggregateChat_session_usage[P]>
10131
10241
  }
10132
10242
 
10133
10243
 
10134
10244
 
10135
10245
 
10136
- export type chat_session_tracked_filesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10137
- where?: chat_session_tracked_filesWhereInput
10138
- orderBy?: chat_session_tracked_filesOrderByWithAggregationInput | chat_session_tracked_filesOrderByWithAggregationInput[]
10139
- by: Chat_session_tracked_filesScalarFieldEnum[] | Chat_session_tracked_filesScalarFieldEnum
10140
- having?: chat_session_tracked_filesScalarWhereWithAggregatesInput
10246
+ export type chat_session_usageGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10247
+ where?: chat_session_usageWhereInput
10248
+ orderBy?: chat_session_usageOrderByWithAggregationInput | chat_session_usageOrderByWithAggregationInput[]
10249
+ by: Chat_session_usageScalarFieldEnum[] | Chat_session_usageScalarFieldEnum
10250
+ having?: chat_session_usageScalarWhereWithAggregatesInput
10141
10251
  take?: number
10142
10252
  skip?: number
10143
- _count?: Chat_session_tracked_filesCountAggregateInputType | true
10144
- _avg?: Chat_session_tracked_filesAvgAggregateInputType
10145
- _sum?: Chat_session_tracked_filesSumAggregateInputType
10146
- _min?: Chat_session_tracked_filesMinAggregateInputType
10147
- _max?: Chat_session_tracked_filesMaxAggregateInputType
10253
+ _count?: Chat_session_usageCountAggregateInputType | true
10254
+ _avg?: Chat_session_usageAvgAggregateInputType
10255
+ _sum?: Chat_session_usageSumAggregateInputType
10256
+ _min?: Chat_session_usageMinAggregateInputType
10257
+ _max?: Chat_session_usageMaxAggregateInputType
10148
10258
  }
10149
10259
 
10150
- export type Chat_session_tracked_filesGroupByOutputType = {
10151
- id: string
10260
+ export type Chat_session_usageGroupByOutputType = {
10152
10261
  chat_session_id: string
10153
- relative_path: string
10154
- existed_at_baseline: boolean
10155
- content_kind: string
10156
- text_content: string | null
10157
- binary_content: Bytes | null
10158
- size_bytes: number | null
10159
- content_sha256: string | null
10160
- created_at: bigint
10262
+ last_synced_message_id: string
10263
+ provider_id: string
10264
+ input_tokens: number
10265
+ output_tokens: number
10266
+ cached_tokens: number
10267
+ cost_usd: number
10268
+ model_id: string
10161
10269
  updated_at: bigint
10162
- _count: Chat_session_tracked_filesCountAggregateOutputType | null
10163
- _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
10164
- _sum: Chat_session_tracked_filesSumAggregateOutputType | null
10165
- _min: Chat_session_tracked_filesMinAggregateOutputType | null
10166
- _max: Chat_session_tracked_filesMaxAggregateOutputType | null
10270
+ _count: Chat_session_usageCountAggregateOutputType | null
10271
+ _avg: Chat_session_usageAvgAggregateOutputType | null
10272
+ _sum: Chat_session_usageSumAggregateOutputType | null
10273
+ _min: Chat_session_usageMinAggregateOutputType | null
10274
+ _max: Chat_session_usageMaxAggregateOutputType | null
10167
10275
  }
10168
10276
 
10169
- type GetChat_session_tracked_filesGroupByPayload<T extends chat_session_tracked_filesGroupByArgs> = Prisma.PrismaPromise<
10277
+ type GetChat_session_usageGroupByPayload<T extends chat_session_usageGroupByArgs> = Prisma.PrismaPromise<
10170
10278
  Array<
10171
- PickEnumerable<Chat_session_tracked_filesGroupByOutputType, T['by']> &
10279
+ PickEnumerable<Chat_session_usageGroupByOutputType, T['by']> &
10172
10280
  {
10173
- [P in ((keyof T) & (keyof Chat_session_tracked_filesGroupByOutputType))]: P extends '_count'
10281
+ [P in ((keyof T) & (keyof Chat_session_usageGroupByOutputType))]: P extends '_count'
10174
10282
  ? T[P] extends boolean
10175
10283
  ? number
10176
- : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
10177
- : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
10284
+ : GetScalarType<T[P], Chat_session_usageGroupByOutputType[P]>
10285
+ : GetScalarType<T[P], Chat_session_usageGroupByOutputType[P]>
10178
10286
  }
10179
10287
  >
10180
10288
  >
10181
10289
 
10182
10290
 
10183
- export type chat_session_tracked_filesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10184
- id?: boolean
10291
+ export type chat_session_usageSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10185
10292
  chat_session_id?: boolean
10186
- relative_path?: boolean
10187
- existed_at_baseline?: boolean
10188
- content_kind?: boolean
10189
- text_content?: boolean
10190
- binary_content?: boolean
10191
- size_bytes?: boolean
10192
- content_sha256?: boolean
10193
- created_at?: boolean
10293
+ last_synced_message_id?: boolean
10294
+ provider_id?: boolean
10295
+ input_tokens?: boolean
10296
+ output_tokens?: boolean
10297
+ cached_tokens?: boolean
10298
+ cost_usd?: boolean
10299
+ model_id?: boolean
10194
10300
  updated_at?: boolean
10195
10301
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10196
- }, ExtArgs["result"]["chat_session_tracked_files"]>
10302
+ }, ExtArgs["result"]["chat_session_usage"]>
10197
10303
 
10198
- export type chat_session_tracked_filesSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10199
- id?: boolean
10304
+ export type chat_session_usageSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10200
10305
  chat_session_id?: boolean
10201
- relative_path?: boolean
10202
- existed_at_baseline?: boolean
10203
- content_kind?: boolean
10204
- text_content?: boolean
10205
- binary_content?: boolean
10206
- size_bytes?: boolean
10207
- content_sha256?: boolean
10208
- created_at?: boolean
10306
+ last_synced_message_id?: boolean
10307
+ provider_id?: boolean
10308
+ input_tokens?: boolean
10309
+ output_tokens?: boolean
10310
+ cached_tokens?: boolean
10311
+ cost_usd?: boolean
10312
+ model_id?: boolean
10209
10313
  updated_at?: boolean
10210
10314
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10211
- }, ExtArgs["result"]["chat_session_tracked_files"]>
10315
+ }, ExtArgs["result"]["chat_session_usage"]>
10212
10316
 
10213
- export type chat_session_tracked_filesSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10214
- id?: boolean
10317
+ export type chat_session_usageSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
10215
10318
  chat_session_id?: boolean
10216
- relative_path?: boolean
10217
- existed_at_baseline?: boolean
10218
- content_kind?: boolean
10219
- text_content?: boolean
10220
- binary_content?: boolean
10221
- size_bytes?: boolean
10222
- content_sha256?: boolean
10223
- created_at?: boolean
10319
+ last_synced_message_id?: boolean
10320
+ provider_id?: boolean
10321
+ input_tokens?: boolean
10322
+ output_tokens?: boolean
10323
+ cached_tokens?: boolean
10324
+ cost_usd?: boolean
10325
+ model_id?: boolean
10224
10326
  updated_at?: boolean
10225
10327
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10226
- }, ExtArgs["result"]["chat_session_tracked_files"]>
10328
+ }, ExtArgs["result"]["chat_session_usage"]>
10227
10329
 
10228
- export type chat_session_tracked_filesSelectScalar = {
10229
- id?: boolean
10330
+ export type chat_session_usageSelectScalar = {
10230
10331
  chat_session_id?: boolean
10231
- relative_path?: boolean
10232
- existed_at_baseline?: boolean
10233
- content_kind?: boolean
10234
- text_content?: boolean
10235
- binary_content?: boolean
10236
- size_bytes?: boolean
10237
- content_sha256?: boolean
10238
- created_at?: boolean
10332
+ last_synced_message_id?: boolean
10333
+ provider_id?: boolean
10334
+ input_tokens?: boolean
10335
+ output_tokens?: boolean
10336
+ cached_tokens?: boolean
10337
+ cost_usd?: boolean
10338
+ model_id?: boolean
10239
10339
  updated_at?: boolean
10240
10340
  }
10241
10341
 
10242
- 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"]>
10243
- export type chat_session_tracked_filesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10342
+ export type chat_session_usageOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"chat_session_id" | "last_synced_message_id" | "provider_id" | "input_tokens" | "output_tokens" | "cached_tokens" | "cost_usd" | "model_id" | "updated_at", ExtArgs["result"]["chat_session_usage"]>
10343
+ export type chat_session_usageInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10244
10344
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10245
10345
  }
10246
- export type chat_session_tracked_filesIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10346
+ export type chat_session_usageIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10247
10347
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10248
10348
  }
10249
- export type chat_session_tracked_filesIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10349
+ export type chat_session_usageIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10250
10350
  session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
10251
10351
  }
10252
10352
 
10253
- export type $chat_session_tracked_filesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10254
- name: "chat_session_tracked_files"
10353
+ export type $chat_session_usagePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10354
+ name: "chat_session_usage"
10255
10355
  objects: {
10256
10356
  session: Prisma.$chat_sessionsPayload<ExtArgs>
10257
10357
  }
10258
10358
  scalars: $Extensions.GetPayloadResult<{
10259
- id: string
10260
10359
  chat_session_id: string
10261
- relative_path: string
10262
- existed_at_baseline: boolean
10263
- content_kind: string
10264
- text_content: string | null
10265
- binary_content: Prisma.Bytes | null
10266
- size_bytes: number | null
10267
- content_sha256: string | null
10268
- created_at: bigint
10360
+ last_synced_message_id: string
10361
+ provider_id: string
10362
+ input_tokens: number
10363
+ output_tokens: number
10364
+ cached_tokens: number
10365
+ cost_usd: number
10366
+ model_id: string
10269
10367
  updated_at: bigint
10270
- }, ExtArgs["result"]["chat_session_tracked_files"]>
10368
+ }, ExtArgs["result"]["chat_session_usage"]>
10271
10369
  composites: {}
10272
10370
  }
10273
10371
 
10274
- type chat_session_tracked_filesGetPayload<S extends boolean | null | undefined | chat_session_tracked_filesDefaultArgs> = $Result.GetResult<Prisma.$chat_session_tracked_filesPayload, S>
10372
+ type chat_session_usageGetPayload<S extends boolean | null | undefined | chat_session_usageDefaultArgs> = $Result.GetResult<Prisma.$chat_session_usagePayload, S>
10275
10373
 
10276
- type chat_session_tracked_filesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
10277
- Omit<chat_session_tracked_filesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
10278
- select?: Chat_session_tracked_filesCountAggregateInputType | true
10374
+ type chat_session_usageCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
10375
+ Omit<chat_session_usageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
10376
+ select?: Chat_session_usageCountAggregateInputType | true
10279
10377
  }
10280
10378
 
10281
- export interface chat_session_tracked_filesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
10282
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['chat_session_tracked_files'], meta: { name: 'chat_session_tracked_files' } }
10379
+ export interface chat_session_usageDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
10380
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['chat_session_usage'], meta: { name: 'chat_session_usage' } }
10283
10381
  /**
10284
- * Find zero or one Chat_session_tracked_files that matches the filter.
10285
- * @param {chat_session_tracked_filesFindUniqueArgs} args - Arguments to find a Chat_session_tracked_files
10382
+ * Find zero or one Chat_session_usage that matches the filter.
10383
+ * @param {chat_session_usageFindUniqueArgs} args - Arguments to find a Chat_session_usage
10286
10384
  * @example
10287
- * // Get one Chat_session_tracked_files
10288
- * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findUnique({
10385
+ * // Get one Chat_session_usage
10386
+ * const chat_session_usage = await prisma.chat_session_usage.findUnique({
10387
+ * where: {
10388
+ * // ... provide filter here
10389
+ * }
10390
+ * })
10391
+ */
10392
+ findUnique<T extends chat_session_usageFindUniqueArgs>(args: SelectSubset<T, chat_session_usageFindUniqueArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
10393
+
10394
+ /**
10395
+ * Find one Chat_session_usage that matches the filter or throw an error with `error.code='P2025'`
10396
+ * if no matches were found.
10397
+ * @param {chat_session_usageFindUniqueOrThrowArgs} args - Arguments to find a Chat_session_usage
10398
+ * @example
10399
+ * // Get one Chat_session_usage
10400
+ * const chat_session_usage = await prisma.chat_session_usage.findUniqueOrThrow({
10401
+ * where: {
10402
+ * // ... provide filter here
10403
+ * }
10404
+ * })
10405
+ */
10406
+ findUniqueOrThrow<T extends chat_session_usageFindUniqueOrThrowArgs>(args: SelectSubset<T, chat_session_usageFindUniqueOrThrowArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10407
+
10408
+ /**
10409
+ * Find the first Chat_session_usage that matches the filter.
10410
+ * Note, that providing `undefined` is treated as the value not being there.
10411
+ * Read more here: https://pris.ly/d/null-undefined
10412
+ * @param {chat_session_usageFindFirstArgs} args - Arguments to find a Chat_session_usage
10413
+ * @example
10414
+ * // Get one Chat_session_usage
10415
+ * const chat_session_usage = await prisma.chat_session_usage.findFirst({
10416
+ * where: {
10417
+ * // ... provide filter here
10418
+ * }
10419
+ * })
10420
+ */
10421
+ findFirst<T extends chat_session_usageFindFirstArgs>(args?: SelectSubset<T, chat_session_usageFindFirstArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
10422
+
10423
+ /**
10424
+ * Find the first Chat_session_usage that matches the filter or
10425
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
10426
+ * Note, that providing `undefined` is treated as the value not being there.
10427
+ * Read more here: https://pris.ly/d/null-undefined
10428
+ * @param {chat_session_usageFindFirstOrThrowArgs} args - Arguments to find a Chat_session_usage
10429
+ * @example
10430
+ * // Get one Chat_session_usage
10431
+ * const chat_session_usage = await prisma.chat_session_usage.findFirstOrThrow({
10432
+ * where: {
10433
+ * // ... provide filter here
10434
+ * }
10435
+ * })
10436
+ */
10437
+ findFirstOrThrow<T extends chat_session_usageFindFirstOrThrowArgs>(args?: SelectSubset<T, chat_session_usageFindFirstOrThrowArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10438
+
10439
+ /**
10440
+ * Find zero or more Chat_session_usages that matches the filter.
10441
+ * Note, that providing `undefined` is treated as the value not being there.
10442
+ * Read more here: https://pris.ly/d/null-undefined
10443
+ * @param {chat_session_usageFindManyArgs} args - Arguments to filter and select certain fields only.
10444
+ * @example
10445
+ * // Get all Chat_session_usages
10446
+ * const chat_session_usages = await prisma.chat_session_usage.findMany()
10447
+ *
10448
+ * // Get first 10 Chat_session_usages
10449
+ * const chat_session_usages = await prisma.chat_session_usage.findMany({ take: 10 })
10450
+ *
10451
+ * // Only select the `chat_session_id`
10452
+ * const chat_session_usageWithChat_session_idOnly = await prisma.chat_session_usage.findMany({ select: { chat_session_id: true } })
10453
+ *
10454
+ */
10455
+ findMany<T extends chat_session_usageFindManyArgs>(args?: SelectSubset<T, chat_session_usageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
10456
+
10457
+ /**
10458
+ * Create a Chat_session_usage.
10459
+ * @param {chat_session_usageCreateArgs} args - Arguments to create a Chat_session_usage.
10460
+ * @example
10461
+ * // Create one Chat_session_usage
10462
+ * const Chat_session_usage = await prisma.chat_session_usage.create({
10463
+ * data: {
10464
+ * // ... data to create a Chat_session_usage
10465
+ * }
10466
+ * })
10467
+ *
10468
+ */
10469
+ create<T extends chat_session_usageCreateArgs>(args: SelectSubset<T, chat_session_usageCreateArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10470
+
10471
+ /**
10472
+ * Create many Chat_session_usages.
10473
+ * @param {chat_session_usageCreateManyArgs} args - Arguments to create many Chat_session_usages.
10474
+ * @example
10475
+ * // Create many Chat_session_usages
10476
+ * const chat_session_usage = await prisma.chat_session_usage.createMany({
10477
+ * data: [
10478
+ * // ... provide data here
10479
+ * ]
10480
+ * })
10481
+ *
10482
+ */
10483
+ createMany<T extends chat_session_usageCreateManyArgs>(args?: SelectSubset<T, chat_session_usageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
10484
+
10485
+ /**
10486
+ * Create many Chat_session_usages and returns the data saved in the database.
10487
+ * @param {chat_session_usageCreateManyAndReturnArgs} args - Arguments to create many Chat_session_usages.
10488
+ * @example
10489
+ * // Create many Chat_session_usages
10490
+ * const chat_session_usage = await prisma.chat_session_usage.createManyAndReturn({
10491
+ * data: [
10492
+ * // ... provide data here
10493
+ * ]
10494
+ * })
10495
+ *
10496
+ * // Create many Chat_session_usages and only return the `chat_session_id`
10497
+ * const chat_session_usageWithChat_session_idOnly = await prisma.chat_session_usage.createManyAndReturn({
10498
+ * select: { chat_session_id: true },
10499
+ * data: [
10500
+ * // ... provide data here
10501
+ * ]
10502
+ * })
10503
+ * Note, that providing `undefined` is treated as the value not being there.
10504
+ * Read more here: https://pris.ly/d/null-undefined
10505
+ *
10506
+ */
10507
+ createManyAndReturn<T extends chat_session_usageCreateManyAndReturnArgs>(args?: SelectSubset<T, chat_session_usageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
10508
+
10509
+ /**
10510
+ * Delete a Chat_session_usage.
10511
+ * @param {chat_session_usageDeleteArgs} args - Arguments to delete one Chat_session_usage.
10512
+ * @example
10513
+ * // Delete one Chat_session_usage
10514
+ * const Chat_session_usage = await prisma.chat_session_usage.delete({
10515
+ * where: {
10516
+ * // ... filter to delete one Chat_session_usage
10517
+ * }
10518
+ * })
10519
+ *
10520
+ */
10521
+ delete<T extends chat_session_usageDeleteArgs>(args: SelectSubset<T, chat_session_usageDeleteArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10522
+
10523
+ /**
10524
+ * Update one Chat_session_usage.
10525
+ * @param {chat_session_usageUpdateArgs} args - Arguments to update one Chat_session_usage.
10526
+ * @example
10527
+ * // Update one Chat_session_usage
10528
+ * const chat_session_usage = await prisma.chat_session_usage.update({
10529
+ * where: {
10530
+ * // ... provide filter here
10531
+ * },
10532
+ * data: {
10533
+ * // ... provide data here
10534
+ * }
10535
+ * })
10536
+ *
10537
+ */
10538
+ update<T extends chat_session_usageUpdateArgs>(args: SelectSubset<T, chat_session_usageUpdateArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10539
+
10540
+ /**
10541
+ * Delete zero or more Chat_session_usages.
10542
+ * @param {chat_session_usageDeleteManyArgs} args - Arguments to filter Chat_session_usages to delete.
10543
+ * @example
10544
+ * // Delete a few Chat_session_usages
10545
+ * const { count } = await prisma.chat_session_usage.deleteMany({
10546
+ * where: {
10547
+ * // ... provide filter here
10548
+ * }
10549
+ * })
10550
+ *
10551
+ */
10552
+ deleteMany<T extends chat_session_usageDeleteManyArgs>(args?: SelectSubset<T, chat_session_usageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
10553
+
10554
+ /**
10555
+ * Update zero or more Chat_session_usages.
10556
+ * Note, that providing `undefined` is treated as the value not being there.
10557
+ * Read more here: https://pris.ly/d/null-undefined
10558
+ * @param {chat_session_usageUpdateManyArgs} args - Arguments to update one or more rows.
10559
+ * @example
10560
+ * // Update many Chat_session_usages
10561
+ * const chat_session_usage = await prisma.chat_session_usage.updateMany({
10562
+ * where: {
10563
+ * // ... provide filter here
10564
+ * },
10565
+ * data: {
10566
+ * // ... provide data here
10567
+ * }
10568
+ * })
10569
+ *
10570
+ */
10571
+ updateMany<T extends chat_session_usageUpdateManyArgs>(args: SelectSubset<T, chat_session_usageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
10572
+
10573
+ /**
10574
+ * Update zero or more Chat_session_usages and returns the data updated in the database.
10575
+ * @param {chat_session_usageUpdateManyAndReturnArgs} args - Arguments to update many Chat_session_usages.
10576
+ * @example
10577
+ * // Update many Chat_session_usages
10578
+ * const chat_session_usage = await prisma.chat_session_usage.updateManyAndReturn({
10579
+ * where: {
10580
+ * // ... provide filter here
10581
+ * },
10582
+ * data: [
10583
+ * // ... provide data here
10584
+ * ]
10585
+ * })
10586
+ *
10587
+ * // Update zero or more Chat_session_usages and only return the `chat_session_id`
10588
+ * const chat_session_usageWithChat_session_idOnly = await prisma.chat_session_usage.updateManyAndReturn({
10589
+ * select: { chat_session_id: true },
10590
+ * where: {
10591
+ * // ... provide filter here
10592
+ * },
10593
+ * data: [
10594
+ * // ... provide data here
10595
+ * ]
10596
+ * })
10597
+ * Note, that providing `undefined` is treated as the value not being there.
10598
+ * Read more here: https://pris.ly/d/null-undefined
10599
+ *
10600
+ */
10601
+ updateManyAndReturn<T extends chat_session_usageUpdateManyAndReturnArgs>(args: SelectSubset<T, chat_session_usageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
10602
+
10603
+ /**
10604
+ * Create or update one Chat_session_usage.
10605
+ * @param {chat_session_usageUpsertArgs} args - Arguments to update or create a Chat_session_usage.
10606
+ * @example
10607
+ * // Update or create a Chat_session_usage
10608
+ * const chat_session_usage = await prisma.chat_session_usage.upsert({
10609
+ * create: {
10610
+ * // ... data to create a Chat_session_usage
10611
+ * },
10612
+ * update: {
10613
+ * // ... in case it already exists, update
10614
+ * },
10615
+ * where: {
10616
+ * // ... the filter for the Chat_session_usage we want to update
10617
+ * }
10618
+ * })
10619
+ */
10620
+ upsert<T extends chat_session_usageUpsertArgs>(args: SelectSubset<T, chat_session_usageUpsertArgs<ExtArgs>>): Prisma__chat_session_usageClient<$Result.GetResult<Prisma.$chat_session_usagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
10621
+
10622
+
10623
+ /**
10624
+ * Count the number of Chat_session_usages.
10625
+ * Note, that providing `undefined` is treated as the value not being there.
10626
+ * Read more here: https://pris.ly/d/null-undefined
10627
+ * @param {chat_session_usageCountArgs} args - Arguments to filter Chat_session_usages to count.
10628
+ * @example
10629
+ * // Count the number of Chat_session_usages
10630
+ * const count = await prisma.chat_session_usage.count({
10631
+ * where: {
10632
+ * // ... the filter for the Chat_session_usages we want to count
10633
+ * }
10634
+ * })
10635
+ **/
10636
+ count<T extends chat_session_usageCountArgs>(
10637
+ args?: Subset<T, chat_session_usageCountArgs>,
10638
+ ): Prisma.PrismaPromise<
10639
+ T extends $Utils.Record<'select', any>
10640
+ ? T['select'] extends true
10641
+ ? number
10642
+ : GetScalarType<T['select'], Chat_session_usageCountAggregateOutputType>
10643
+ : number
10644
+ >
10645
+
10646
+ /**
10647
+ * Allows you to perform aggregations operations on a Chat_session_usage.
10648
+ * Note, that providing `undefined` is treated as the value not being there.
10649
+ * Read more here: https://pris.ly/d/null-undefined
10650
+ * @param {Chat_session_usageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
10651
+ * @example
10652
+ * // Ordered by age ascending
10653
+ * // Where email contains prisma.io
10654
+ * // Limited to the 10 users
10655
+ * const aggregations = await prisma.user.aggregate({
10656
+ * _avg: {
10657
+ * age: true,
10658
+ * },
10659
+ * where: {
10660
+ * email: {
10661
+ * contains: "prisma.io",
10662
+ * },
10663
+ * },
10664
+ * orderBy: {
10665
+ * age: "asc",
10666
+ * },
10667
+ * take: 10,
10668
+ * })
10669
+ **/
10670
+ aggregate<T extends Chat_session_usageAggregateArgs>(args: Subset<T, Chat_session_usageAggregateArgs>): Prisma.PrismaPromise<GetChat_session_usageAggregateType<T>>
10671
+
10672
+ /**
10673
+ * Group by Chat_session_usage.
10674
+ * Note, that providing `undefined` is treated as the value not being there.
10675
+ * Read more here: https://pris.ly/d/null-undefined
10676
+ * @param {chat_session_usageGroupByArgs} args - Group by arguments.
10677
+ * @example
10678
+ * // Group by city, order by createdAt, get count
10679
+ * const result = await prisma.user.groupBy({
10680
+ * by: ['city', 'createdAt'],
10681
+ * orderBy: {
10682
+ * createdAt: true
10683
+ * },
10684
+ * _count: {
10685
+ * _all: true
10686
+ * },
10687
+ * })
10688
+ *
10689
+ **/
10690
+ groupBy<
10691
+ T extends chat_session_usageGroupByArgs,
10692
+ HasSelectOrTake extends Or<
10693
+ Extends<'skip', Keys<T>>,
10694
+ Extends<'take', Keys<T>>
10695
+ >,
10696
+ OrderByArg extends True extends HasSelectOrTake
10697
+ ? { orderBy: chat_session_usageGroupByArgs['orderBy'] }
10698
+ : { orderBy?: chat_session_usageGroupByArgs['orderBy'] },
10699
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
10700
+ ByFields extends MaybeTupleToUnion<T['by']>,
10701
+ ByValid extends Has<ByFields, OrderFields>,
10702
+ HavingFields extends GetHavingFields<T['having']>,
10703
+ HavingValid extends Has<ByFields, HavingFields>,
10704
+ ByEmpty extends T['by'] extends never[] ? True : False,
10705
+ InputErrors extends ByEmpty extends True
10706
+ ? `Error: "by" must not be empty.`
10707
+ : HavingValid extends False
10708
+ ? {
10709
+ [P in HavingFields]: P extends ByFields
10710
+ ? never
10711
+ : P extends string
10712
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
10713
+ : [
10714
+ Error,
10715
+ 'Field ',
10716
+ P,
10717
+ ` in "having" needs to be provided in "by"`,
10718
+ ]
10719
+ }[HavingFields]
10720
+ : 'take' extends Keys<T>
10721
+ ? 'orderBy' extends Keys<T>
10722
+ ? ByValid extends True
10723
+ ? {}
10724
+ : {
10725
+ [P in OrderFields]: P extends ByFields
10726
+ ? never
10727
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
10728
+ }[OrderFields]
10729
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
10730
+ : 'skip' extends Keys<T>
10731
+ ? 'orderBy' extends Keys<T>
10732
+ ? ByValid extends True
10733
+ ? {}
10734
+ : {
10735
+ [P in OrderFields]: P extends ByFields
10736
+ ? never
10737
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
10738
+ }[OrderFields]
10739
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
10740
+ : ByValid extends True
10741
+ ? {}
10742
+ : {
10743
+ [P in OrderFields]: P extends ByFields
10744
+ ? never
10745
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
10746
+ }[OrderFields]
10747
+ >(args: SubsetIntersection<T, chat_session_usageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChat_session_usageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
10748
+ /**
10749
+ * Fields of the chat_session_usage model
10750
+ */
10751
+ readonly fields: chat_session_usageFieldRefs;
10752
+ }
10753
+
10754
+ /**
10755
+ * The delegate class that acts as a "Promise-like" for chat_session_usage.
10756
+ * Why is this prefixed with `Prisma__`?
10757
+ * Because we want to prevent naming conflicts as mentioned in
10758
+ * https://github.com/prisma/prisma-client-js/issues/707
10759
+ */
10760
+ export interface Prisma__chat_session_usageClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
10761
+ readonly [Symbol.toStringTag]: "PrismaPromise"
10762
+ 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>
10763
+ /**
10764
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
10765
+ * @param onfulfilled The callback to execute when the Promise is resolved.
10766
+ * @param onrejected The callback to execute when the Promise is rejected.
10767
+ * @returns A Promise for the completion of which ever callback is executed.
10768
+ */
10769
+ 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>
10770
+ /**
10771
+ * Attaches a callback for only the rejection of the Promise.
10772
+ * @param onrejected The callback to execute when the Promise is rejected.
10773
+ * @returns A Promise for the completion of the callback.
10774
+ */
10775
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
10776
+ /**
10777
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
10778
+ * resolved value cannot be modified from the callback.
10779
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
10780
+ * @returns A Promise for the completion of the callback.
10781
+ */
10782
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
10783
+ }
10784
+
10785
+
10786
+
10787
+
10788
+ /**
10789
+ * Fields of the chat_session_usage model
10790
+ */
10791
+ interface chat_session_usageFieldRefs {
10792
+ readonly chat_session_id: FieldRef<"chat_session_usage", 'String'>
10793
+ readonly last_synced_message_id: FieldRef<"chat_session_usage", 'String'>
10794
+ readonly provider_id: FieldRef<"chat_session_usage", 'String'>
10795
+ readonly input_tokens: FieldRef<"chat_session_usage", 'Int'>
10796
+ readonly output_tokens: FieldRef<"chat_session_usage", 'Int'>
10797
+ readonly cached_tokens: FieldRef<"chat_session_usage", 'Int'>
10798
+ readonly cost_usd: FieldRef<"chat_session_usage", 'Float'>
10799
+ readonly model_id: FieldRef<"chat_session_usage", 'String'>
10800
+ readonly updated_at: FieldRef<"chat_session_usage", 'BigInt'>
10801
+ }
10802
+
10803
+
10804
+ // Custom InputTypes
10805
+ /**
10806
+ * chat_session_usage findUnique
10807
+ */
10808
+ export type chat_session_usageFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10809
+ /**
10810
+ * Select specific fields to fetch from the chat_session_usage
10811
+ */
10812
+ select?: chat_session_usageSelect<ExtArgs> | null
10813
+ /**
10814
+ * Omit specific fields from the chat_session_usage
10815
+ */
10816
+ omit?: chat_session_usageOmit<ExtArgs> | null
10817
+ /**
10818
+ * Choose, which related nodes to fetch as well
10819
+ */
10820
+ include?: chat_session_usageInclude<ExtArgs> | null
10821
+ /**
10822
+ * Filter, which chat_session_usage to fetch.
10823
+ */
10824
+ where: chat_session_usageWhereUniqueInput
10825
+ }
10826
+
10827
+ /**
10828
+ * chat_session_usage findUniqueOrThrow
10829
+ */
10830
+ export type chat_session_usageFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10831
+ /**
10832
+ * Select specific fields to fetch from the chat_session_usage
10833
+ */
10834
+ select?: chat_session_usageSelect<ExtArgs> | null
10835
+ /**
10836
+ * Omit specific fields from the chat_session_usage
10837
+ */
10838
+ omit?: chat_session_usageOmit<ExtArgs> | null
10839
+ /**
10840
+ * Choose, which related nodes to fetch as well
10841
+ */
10842
+ include?: chat_session_usageInclude<ExtArgs> | null
10843
+ /**
10844
+ * Filter, which chat_session_usage to fetch.
10845
+ */
10846
+ where: chat_session_usageWhereUniqueInput
10847
+ }
10848
+
10849
+ /**
10850
+ * chat_session_usage findFirst
10851
+ */
10852
+ export type chat_session_usageFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10853
+ /**
10854
+ * Select specific fields to fetch from the chat_session_usage
10855
+ */
10856
+ select?: chat_session_usageSelect<ExtArgs> | null
10857
+ /**
10858
+ * Omit specific fields from the chat_session_usage
10859
+ */
10860
+ omit?: chat_session_usageOmit<ExtArgs> | null
10861
+ /**
10862
+ * Choose, which related nodes to fetch as well
10863
+ */
10864
+ include?: chat_session_usageInclude<ExtArgs> | null
10865
+ /**
10866
+ * Filter, which chat_session_usage to fetch.
10867
+ */
10868
+ where?: chat_session_usageWhereInput
10869
+ /**
10870
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
10871
+ *
10872
+ * Determine the order of chat_session_usages to fetch.
10873
+ */
10874
+ orderBy?: chat_session_usageOrderByWithRelationInput | chat_session_usageOrderByWithRelationInput[]
10875
+ /**
10876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
10877
+ *
10878
+ * Sets the position for searching for chat_session_usages.
10879
+ */
10880
+ cursor?: chat_session_usageWhereUniqueInput
10881
+ /**
10882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10883
+ *
10884
+ * Take `±n` chat_session_usages from the position of the cursor.
10885
+ */
10886
+ take?: number
10887
+ /**
10888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10889
+ *
10890
+ * Skip the first `n` chat_session_usages.
10891
+ */
10892
+ skip?: number
10893
+ /**
10894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
10895
+ *
10896
+ * Filter by unique combinations of chat_session_usages.
10897
+ */
10898
+ distinct?: Chat_session_usageScalarFieldEnum | Chat_session_usageScalarFieldEnum[]
10899
+ }
10900
+
10901
+ /**
10902
+ * chat_session_usage findFirstOrThrow
10903
+ */
10904
+ export type chat_session_usageFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10905
+ /**
10906
+ * Select specific fields to fetch from the chat_session_usage
10907
+ */
10908
+ select?: chat_session_usageSelect<ExtArgs> | null
10909
+ /**
10910
+ * Omit specific fields from the chat_session_usage
10911
+ */
10912
+ omit?: chat_session_usageOmit<ExtArgs> | null
10913
+ /**
10914
+ * Choose, which related nodes to fetch as well
10915
+ */
10916
+ include?: chat_session_usageInclude<ExtArgs> | null
10917
+ /**
10918
+ * Filter, which chat_session_usage to fetch.
10919
+ */
10920
+ where?: chat_session_usageWhereInput
10921
+ /**
10922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
10923
+ *
10924
+ * Determine the order of chat_session_usages to fetch.
10925
+ */
10926
+ orderBy?: chat_session_usageOrderByWithRelationInput | chat_session_usageOrderByWithRelationInput[]
10927
+ /**
10928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
10929
+ *
10930
+ * Sets the position for searching for chat_session_usages.
10931
+ */
10932
+ cursor?: chat_session_usageWhereUniqueInput
10933
+ /**
10934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10935
+ *
10936
+ * Take `±n` chat_session_usages from the position of the cursor.
10937
+ */
10938
+ take?: number
10939
+ /**
10940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10941
+ *
10942
+ * Skip the first `n` chat_session_usages.
10943
+ */
10944
+ skip?: number
10945
+ /**
10946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
10947
+ *
10948
+ * Filter by unique combinations of chat_session_usages.
10949
+ */
10950
+ distinct?: Chat_session_usageScalarFieldEnum | Chat_session_usageScalarFieldEnum[]
10951
+ }
10952
+
10953
+ /**
10954
+ * chat_session_usage findMany
10955
+ */
10956
+ export type chat_session_usageFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10957
+ /**
10958
+ * Select specific fields to fetch from the chat_session_usage
10959
+ */
10960
+ select?: chat_session_usageSelect<ExtArgs> | null
10961
+ /**
10962
+ * Omit specific fields from the chat_session_usage
10963
+ */
10964
+ omit?: chat_session_usageOmit<ExtArgs> | null
10965
+ /**
10966
+ * Choose, which related nodes to fetch as well
10967
+ */
10968
+ include?: chat_session_usageInclude<ExtArgs> | null
10969
+ /**
10970
+ * Filter, which chat_session_usages to fetch.
10971
+ */
10972
+ where?: chat_session_usageWhereInput
10973
+ /**
10974
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
10975
+ *
10976
+ * Determine the order of chat_session_usages to fetch.
10977
+ */
10978
+ orderBy?: chat_session_usageOrderByWithRelationInput | chat_session_usageOrderByWithRelationInput[]
10979
+ /**
10980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
10981
+ *
10982
+ * Sets the position for listing chat_session_usages.
10983
+ */
10984
+ cursor?: chat_session_usageWhereUniqueInput
10985
+ /**
10986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10987
+ *
10988
+ * Take `±n` chat_session_usages from the position of the cursor.
10989
+ */
10990
+ take?: number
10991
+ /**
10992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
10993
+ *
10994
+ * Skip the first `n` chat_session_usages.
10995
+ */
10996
+ skip?: number
10997
+ distinct?: Chat_session_usageScalarFieldEnum | Chat_session_usageScalarFieldEnum[]
10998
+ }
10999
+
11000
+ /**
11001
+ * chat_session_usage create
11002
+ */
11003
+ export type chat_session_usageCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11004
+ /**
11005
+ * Select specific fields to fetch from the chat_session_usage
11006
+ */
11007
+ select?: chat_session_usageSelect<ExtArgs> | null
11008
+ /**
11009
+ * Omit specific fields from the chat_session_usage
11010
+ */
11011
+ omit?: chat_session_usageOmit<ExtArgs> | null
11012
+ /**
11013
+ * Choose, which related nodes to fetch as well
11014
+ */
11015
+ include?: chat_session_usageInclude<ExtArgs> | null
11016
+ /**
11017
+ * The data needed to create a chat_session_usage.
11018
+ */
11019
+ data: XOR<chat_session_usageCreateInput, chat_session_usageUncheckedCreateInput>
11020
+ }
11021
+
11022
+ /**
11023
+ * chat_session_usage createMany
11024
+ */
11025
+ export type chat_session_usageCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11026
+ /**
11027
+ * The data used to create many chat_session_usages.
11028
+ */
11029
+ data: chat_session_usageCreateManyInput | chat_session_usageCreateManyInput[]
11030
+ }
11031
+
11032
+ /**
11033
+ * chat_session_usage createManyAndReturn
11034
+ */
11035
+ export type chat_session_usageCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11036
+ /**
11037
+ * Select specific fields to fetch from the chat_session_usage
11038
+ */
11039
+ select?: chat_session_usageSelectCreateManyAndReturn<ExtArgs> | null
11040
+ /**
11041
+ * Omit specific fields from the chat_session_usage
11042
+ */
11043
+ omit?: chat_session_usageOmit<ExtArgs> | null
11044
+ /**
11045
+ * The data used to create many chat_session_usages.
11046
+ */
11047
+ data: chat_session_usageCreateManyInput | chat_session_usageCreateManyInput[]
11048
+ /**
11049
+ * Choose, which related nodes to fetch as well
11050
+ */
11051
+ include?: chat_session_usageIncludeCreateManyAndReturn<ExtArgs> | null
11052
+ }
11053
+
11054
+ /**
11055
+ * chat_session_usage update
11056
+ */
11057
+ export type chat_session_usageUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11058
+ /**
11059
+ * Select specific fields to fetch from the chat_session_usage
11060
+ */
11061
+ select?: chat_session_usageSelect<ExtArgs> | null
11062
+ /**
11063
+ * Omit specific fields from the chat_session_usage
11064
+ */
11065
+ omit?: chat_session_usageOmit<ExtArgs> | null
11066
+ /**
11067
+ * Choose, which related nodes to fetch as well
11068
+ */
11069
+ include?: chat_session_usageInclude<ExtArgs> | null
11070
+ /**
11071
+ * The data needed to update a chat_session_usage.
11072
+ */
11073
+ data: XOR<chat_session_usageUpdateInput, chat_session_usageUncheckedUpdateInput>
11074
+ /**
11075
+ * Choose, which chat_session_usage to update.
11076
+ */
11077
+ where: chat_session_usageWhereUniqueInput
11078
+ }
11079
+
11080
+ /**
11081
+ * chat_session_usage updateMany
11082
+ */
11083
+ export type chat_session_usageUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11084
+ /**
11085
+ * The data used to update chat_session_usages.
11086
+ */
11087
+ data: XOR<chat_session_usageUpdateManyMutationInput, chat_session_usageUncheckedUpdateManyInput>
11088
+ /**
11089
+ * Filter which chat_session_usages to update
11090
+ */
11091
+ where?: chat_session_usageWhereInput
11092
+ /**
11093
+ * Limit how many chat_session_usages to update.
11094
+ */
11095
+ limit?: number
11096
+ }
11097
+
11098
+ /**
11099
+ * chat_session_usage updateManyAndReturn
11100
+ */
11101
+ export type chat_session_usageUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11102
+ /**
11103
+ * Select specific fields to fetch from the chat_session_usage
11104
+ */
11105
+ select?: chat_session_usageSelectUpdateManyAndReturn<ExtArgs> | null
11106
+ /**
11107
+ * Omit specific fields from the chat_session_usage
11108
+ */
11109
+ omit?: chat_session_usageOmit<ExtArgs> | null
11110
+ /**
11111
+ * The data used to update chat_session_usages.
11112
+ */
11113
+ data: XOR<chat_session_usageUpdateManyMutationInput, chat_session_usageUncheckedUpdateManyInput>
11114
+ /**
11115
+ * Filter which chat_session_usages to update
11116
+ */
11117
+ where?: chat_session_usageWhereInput
11118
+ /**
11119
+ * Limit how many chat_session_usages to update.
11120
+ */
11121
+ limit?: number
11122
+ /**
11123
+ * Choose, which related nodes to fetch as well
11124
+ */
11125
+ include?: chat_session_usageIncludeUpdateManyAndReturn<ExtArgs> | null
11126
+ }
11127
+
11128
+ /**
11129
+ * chat_session_usage upsert
11130
+ */
11131
+ export type chat_session_usageUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11132
+ /**
11133
+ * Select specific fields to fetch from the chat_session_usage
11134
+ */
11135
+ select?: chat_session_usageSelect<ExtArgs> | null
11136
+ /**
11137
+ * Omit specific fields from the chat_session_usage
11138
+ */
11139
+ omit?: chat_session_usageOmit<ExtArgs> | null
11140
+ /**
11141
+ * Choose, which related nodes to fetch as well
11142
+ */
11143
+ include?: chat_session_usageInclude<ExtArgs> | null
11144
+ /**
11145
+ * The filter to search for the chat_session_usage to update in case it exists.
11146
+ */
11147
+ where: chat_session_usageWhereUniqueInput
11148
+ /**
11149
+ * In case the chat_session_usage found by the `where` argument doesn't exist, create a new chat_session_usage with this data.
11150
+ */
11151
+ create: XOR<chat_session_usageCreateInput, chat_session_usageUncheckedCreateInput>
11152
+ /**
11153
+ * In case the chat_session_usage was found with the provided `where` argument, update it with this data.
11154
+ */
11155
+ update: XOR<chat_session_usageUpdateInput, chat_session_usageUncheckedUpdateInput>
11156
+ }
11157
+
11158
+ /**
11159
+ * chat_session_usage delete
11160
+ */
11161
+ export type chat_session_usageDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11162
+ /**
11163
+ * Select specific fields to fetch from the chat_session_usage
11164
+ */
11165
+ select?: chat_session_usageSelect<ExtArgs> | null
11166
+ /**
11167
+ * Omit specific fields from the chat_session_usage
11168
+ */
11169
+ omit?: chat_session_usageOmit<ExtArgs> | null
11170
+ /**
11171
+ * Choose, which related nodes to fetch as well
11172
+ */
11173
+ include?: chat_session_usageInclude<ExtArgs> | null
11174
+ /**
11175
+ * Filter which chat_session_usage to delete.
11176
+ */
11177
+ where: chat_session_usageWhereUniqueInput
11178
+ }
11179
+
11180
+ /**
11181
+ * chat_session_usage deleteMany
11182
+ */
11183
+ export type chat_session_usageDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11184
+ /**
11185
+ * Filter which chat_session_usages to delete
11186
+ */
11187
+ where?: chat_session_usageWhereInput
11188
+ /**
11189
+ * Limit how many chat_session_usages to delete.
11190
+ */
11191
+ limit?: number
11192
+ }
11193
+
11194
+ /**
11195
+ * chat_session_usage without action
11196
+ */
11197
+ export type chat_session_usageDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11198
+ /**
11199
+ * Select specific fields to fetch from the chat_session_usage
11200
+ */
11201
+ select?: chat_session_usageSelect<ExtArgs> | null
11202
+ /**
11203
+ * Omit specific fields from the chat_session_usage
11204
+ */
11205
+ omit?: chat_session_usageOmit<ExtArgs> | null
11206
+ /**
11207
+ * Choose, which related nodes to fetch as well
11208
+ */
11209
+ include?: chat_session_usageInclude<ExtArgs> | null
11210
+ }
11211
+
11212
+
11213
+ /**
11214
+ * Model chat_session_tracked_files
11215
+ */
11216
+
11217
+ export type AggregateChat_session_tracked_files = {
11218
+ _count: Chat_session_tracked_filesCountAggregateOutputType | null
11219
+ _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
11220
+ _sum: Chat_session_tracked_filesSumAggregateOutputType | null
11221
+ _min: Chat_session_tracked_filesMinAggregateOutputType | null
11222
+ _max: Chat_session_tracked_filesMaxAggregateOutputType | null
11223
+ }
11224
+
11225
+ export type Chat_session_tracked_filesAvgAggregateOutputType = {
11226
+ size_bytes: number | null
11227
+ created_at: number | null
11228
+ updated_at: number | null
11229
+ }
11230
+
11231
+ export type Chat_session_tracked_filesSumAggregateOutputType = {
11232
+ size_bytes: number | null
11233
+ created_at: bigint | null
11234
+ updated_at: bigint | null
11235
+ }
11236
+
11237
+ export type Chat_session_tracked_filesMinAggregateOutputType = {
11238
+ id: string | null
11239
+ chat_session_id: string | null
11240
+ relative_path: string | null
11241
+ existed_at_baseline: boolean | null
11242
+ content_kind: string | null
11243
+ text_content: string | null
11244
+ binary_content: Bytes | null
11245
+ size_bytes: number | null
11246
+ content_sha256: string | null
11247
+ created_at: bigint | null
11248
+ updated_at: bigint | null
11249
+ }
11250
+
11251
+ export type Chat_session_tracked_filesMaxAggregateOutputType = {
11252
+ id: string | null
11253
+ chat_session_id: string | null
11254
+ relative_path: string | null
11255
+ existed_at_baseline: boolean | null
11256
+ content_kind: string | null
11257
+ text_content: string | null
11258
+ binary_content: Bytes | null
11259
+ size_bytes: number | null
11260
+ content_sha256: string | null
11261
+ created_at: bigint | null
11262
+ updated_at: bigint | null
11263
+ }
11264
+
11265
+ export type Chat_session_tracked_filesCountAggregateOutputType = {
11266
+ id: number
11267
+ chat_session_id: number
11268
+ relative_path: number
11269
+ existed_at_baseline: number
11270
+ content_kind: number
11271
+ text_content: number
11272
+ binary_content: number
11273
+ size_bytes: number
11274
+ content_sha256: number
11275
+ created_at: number
11276
+ updated_at: number
11277
+ _all: number
11278
+ }
11279
+
11280
+
11281
+ export type Chat_session_tracked_filesAvgAggregateInputType = {
11282
+ size_bytes?: true
11283
+ created_at?: true
11284
+ updated_at?: true
11285
+ }
11286
+
11287
+ export type Chat_session_tracked_filesSumAggregateInputType = {
11288
+ size_bytes?: true
11289
+ created_at?: true
11290
+ updated_at?: true
11291
+ }
11292
+
11293
+ export type Chat_session_tracked_filesMinAggregateInputType = {
11294
+ id?: true
11295
+ chat_session_id?: true
11296
+ relative_path?: true
11297
+ existed_at_baseline?: true
11298
+ content_kind?: true
11299
+ text_content?: true
11300
+ binary_content?: true
11301
+ size_bytes?: true
11302
+ content_sha256?: true
11303
+ created_at?: true
11304
+ updated_at?: true
11305
+ }
11306
+
11307
+ export type Chat_session_tracked_filesMaxAggregateInputType = {
11308
+ id?: true
11309
+ chat_session_id?: true
11310
+ relative_path?: true
11311
+ existed_at_baseline?: true
11312
+ content_kind?: true
11313
+ text_content?: true
11314
+ binary_content?: true
11315
+ size_bytes?: true
11316
+ content_sha256?: true
11317
+ created_at?: true
11318
+ updated_at?: true
11319
+ }
11320
+
11321
+ export type Chat_session_tracked_filesCountAggregateInputType = {
11322
+ id?: true
11323
+ chat_session_id?: true
11324
+ relative_path?: true
11325
+ existed_at_baseline?: true
11326
+ content_kind?: true
11327
+ text_content?: true
11328
+ binary_content?: true
11329
+ size_bytes?: true
11330
+ content_sha256?: true
11331
+ created_at?: true
11332
+ updated_at?: true
11333
+ _all?: true
11334
+ }
11335
+
11336
+ export type Chat_session_tracked_filesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11337
+ /**
11338
+ * Filter which chat_session_tracked_files to aggregate.
11339
+ */
11340
+ where?: chat_session_tracked_filesWhereInput
11341
+ /**
11342
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
11343
+ *
11344
+ * Determine the order of chat_session_tracked_files to fetch.
11345
+ */
11346
+ orderBy?: chat_session_tracked_filesOrderByWithRelationInput | chat_session_tracked_filesOrderByWithRelationInput[]
11347
+ /**
11348
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
11349
+ *
11350
+ * Sets the start position
11351
+ */
11352
+ cursor?: chat_session_tracked_filesWhereUniqueInput
11353
+ /**
11354
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
11355
+ *
11356
+ * Take `±n` chat_session_tracked_files from the position of the cursor.
11357
+ */
11358
+ take?: number
11359
+ /**
11360
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
11361
+ *
11362
+ * Skip the first `n` chat_session_tracked_files.
11363
+ */
11364
+ skip?: number
11365
+ /**
11366
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
11367
+ *
11368
+ * Count returned chat_session_tracked_files
11369
+ **/
11370
+ _count?: true | Chat_session_tracked_filesCountAggregateInputType
11371
+ /**
11372
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
11373
+ *
11374
+ * Select which fields to average
11375
+ **/
11376
+ _avg?: Chat_session_tracked_filesAvgAggregateInputType
11377
+ /**
11378
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
11379
+ *
11380
+ * Select which fields to sum
11381
+ **/
11382
+ _sum?: Chat_session_tracked_filesSumAggregateInputType
11383
+ /**
11384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
11385
+ *
11386
+ * Select which fields to find the minimum value
11387
+ **/
11388
+ _min?: Chat_session_tracked_filesMinAggregateInputType
11389
+ /**
11390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
11391
+ *
11392
+ * Select which fields to find the maximum value
11393
+ **/
11394
+ _max?: Chat_session_tracked_filesMaxAggregateInputType
11395
+ }
11396
+
11397
+ export type GetChat_session_tracked_filesAggregateType<T extends Chat_session_tracked_filesAggregateArgs> = {
11398
+ [P in keyof T & keyof AggregateChat_session_tracked_files]: P extends '_count' | 'count'
11399
+ ? T[P] extends true
11400
+ ? number
11401
+ : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
11402
+ : GetScalarType<T[P], AggregateChat_session_tracked_files[P]>
11403
+ }
11404
+
11405
+
11406
+
11407
+
11408
+ export type chat_session_tracked_filesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11409
+ where?: chat_session_tracked_filesWhereInput
11410
+ orderBy?: chat_session_tracked_filesOrderByWithAggregationInput | chat_session_tracked_filesOrderByWithAggregationInput[]
11411
+ by: Chat_session_tracked_filesScalarFieldEnum[] | Chat_session_tracked_filesScalarFieldEnum
11412
+ having?: chat_session_tracked_filesScalarWhereWithAggregatesInput
11413
+ take?: number
11414
+ skip?: number
11415
+ _count?: Chat_session_tracked_filesCountAggregateInputType | true
11416
+ _avg?: Chat_session_tracked_filesAvgAggregateInputType
11417
+ _sum?: Chat_session_tracked_filesSumAggregateInputType
11418
+ _min?: Chat_session_tracked_filesMinAggregateInputType
11419
+ _max?: Chat_session_tracked_filesMaxAggregateInputType
11420
+ }
11421
+
11422
+ export type Chat_session_tracked_filesGroupByOutputType = {
11423
+ id: string
11424
+ chat_session_id: string
11425
+ relative_path: string
11426
+ existed_at_baseline: boolean
11427
+ content_kind: string
11428
+ text_content: string | null
11429
+ binary_content: Bytes | null
11430
+ size_bytes: number | null
11431
+ content_sha256: string | null
11432
+ created_at: bigint
11433
+ updated_at: bigint
11434
+ _count: Chat_session_tracked_filesCountAggregateOutputType | null
11435
+ _avg: Chat_session_tracked_filesAvgAggregateOutputType | null
11436
+ _sum: Chat_session_tracked_filesSumAggregateOutputType | null
11437
+ _min: Chat_session_tracked_filesMinAggregateOutputType | null
11438
+ _max: Chat_session_tracked_filesMaxAggregateOutputType | null
11439
+ }
11440
+
11441
+ type GetChat_session_tracked_filesGroupByPayload<T extends chat_session_tracked_filesGroupByArgs> = Prisma.PrismaPromise<
11442
+ Array<
11443
+ PickEnumerable<Chat_session_tracked_filesGroupByOutputType, T['by']> &
11444
+ {
11445
+ [P in ((keyof T) & (keyof Chat_session_tracked_filesGroupByOutputType))]: P extends '_count'
11446
+ ? T[P] extends boolean
11447
+ ? number
11448
+ : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
11449
+ : GetScalarType<T[P], Chat_session_tracked_filesGroupByOutputType[P]>
11450
+ }
11451
+ >
11452
+ >
11453
+
11454
+
11455
+ export type chat_session_tracked_filesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
11456
+ id?: boolean
11457
+ chat_session_id?: boolean
11458
+ relative_path?: boolean
11459
+ existed_at_baseline?: boolean
11460
+ content_kind?: boolean
11461
+ text_content?: boolean
11462
+ binary_content?: boolean
11463
+ size_bytes?: boolean
11464
+ content_sha256?: boolean
11465
+ created_at?: boolean
11466
+ updated_at?: boolean
11467
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11468
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
11469
+
11470
+ export type chat_session_tracked_filesSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
11471
+ id?: boolean
11472
+ chat_session_id?: boolean
11473
+ relative_path?: boolean
11474
+ existed_at_baseline?: boolean
11475
+ content_kind?: boolean
11476
+ text_content?: boolean
11477
+ binary_content?: boolean
11478
+ size_bytes?: boolean
11479
+ content_sha256?: boolean
11480
+ created_at?: boolean
11481
+ updated_at?: boolean
11482
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11483
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
11484
+
11485
+ export type chat_session_tracked_filesSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
11486
+ id?: boolean
11487
+ chat_session_id?: boolean
11488
+ relative_path?: boolean
11489
+ existed_at_baseline?: boolean
11490
+ content_kind?: boolean
11491
+ text_content?: boolean
11492
+ binary_content?: boolean
11493
+ size_bytes?: boolean
11494
+ content_sha256?: boolean
11495
+ created_at?: boolean
11496
+ updated_at?: boolean
11497
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11498
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
11499
+
11500
+ export type chat_session_tracked_filesSelectScalar = {
11501
+ id?: boolean
11502
+ chat_session_id?: boolean
11503
+ relative_path?: boolean
11504
+ existed_at_baseline?: boolean
11505
+ content_kind?: boolean
11506
+ text_content?: boolean
11507
+ binary_content?: boolean
11508
+ size_bytes?: boolean
11509
+ content_sha256?: boolean
11510
+ created_at?: boolean
11511
+ updated_at?: boolean
11512
+ }
11513
+
11514
+ 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"]>
11515
+ export type chat_session_tracked_filesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11516
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11517
+ }
11518
+ export type chat_session_tracked_filesIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11519
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11520
+ }
11521
+ export type chat_session_tracked_filesIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11522
+ session?: boolean | chat_sessionsDefaultArgs<ExtArgs>
11523
+ }
11524
+
11525
+ export type $chat_session_tracked_filesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
11526
+ name: "chat_session_tracked_files"
11527
+ objects: {
11528
+ session: Prisma.$chat_sessionsPayload<ExtArgs>
11529
+ }
11530
+ scalars: $Extensions.GetPayloadResult<{
11531
+ id: string
11532
+ chat_session_id: string
11533
+ relative_path: string
11534
+ existed_at_baseline: boolean
11535
+ content_kind: string
11536
+ text_content: string | null
11537
+ binary_content: Prisma.Bytes | null
11538
+ size_bytes: number | null
11539
+ content_sha256: string | null
11540
+ created_at: bigint
11541
+ updated_at: bigint
11542
+ }, ExtArgs["result"]["chat_session_tracked_files"]>
11543
+ composites: {}
11544
+ }
11545
+
11546
+ type chat_session_tracked_filesGetPayload<S extends boolean | null | undefined | chat_session_tracked_filesDefaultArgs> = $Result.GetResult<Prisma.$chat_session_tracked_filesPayload, S>
11547
+
11548
+ type chat_session_tracked_filesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
11549
+ Omit<chat_session_tracked_filesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
11550
+ select?: Chat_session_tracked_filesCountAggregateInputType | true
11551
+ }
11552
+
11553
+ export interface chat_session_tracked_filesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
11554
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['chat_session_tracked_files'], meta: { name: 'chat_session_tracked_files' } }
11555
+ /**
11556
+ * Find zero or one Chat_session_tracked_files that matches the filter.
11557
+ * @param {chat_session_tracked_filesFindUniqueArgs} args - Arguments to find a Chat_session_tracked_files
11558
+ * @example
11559
+ * // Get one Chat_session_tracked_files
11560
+ * const chat_session_tracked_files = await prisma.chat_session_tracked_files.findUnique({
10289
11561
  * where: {
10290
11562
  * // ... provide filter here
10291
11563
  * }
@@ -17918,6 +19190,21 @@ export namespace Prisma {
17918
19190
  export type Chat_sessionsScalarFieldEnum = (typeof Chat_sessionsScalarFieldEnum)[keyof typeof Chat_sessionsScalarFieldEnum]
17919
19191
 
17920
19192
 
19193
+ export const Chat_session_usageScalarFieldEnum: {
19194
+ chat_session_id: 'chat_session_id',
19195
+ last_synced_message_id: 'last_synced_message_id',
19196
+ provider_id: 'provider_id',
19197
+ input_tokens: 'input_tokens',
19198
+ output_tokens: 'output_tokens',
19199
+ cached_tokens: 'cached_tokens',
19200
+ cost_usd: 'cost_usd',
19201
+ model_id: 'model_id',
19202
+ updated_at: 'updated_at'
19203
+ };
19204
+
19205
+ export type Chat_session_usageScalarFieldEnum = (typeof Chat_session_usageScalarFieldEnum)[keyof typeof Chat_session_usageScalarFieldEnum]
19206
+
19207
+
17921
19208
  export const Chat_session_tracked_filesScalarFieldEnum: {
17922
19209
  id: 'id',
17923
19210
  chat_session_id: 'chat_session_id',
@@ -18051,23 +19338,23 @@ export namespace Prisma {
18051
19338
 
18052
19339
 
18053
19340
  /**
18054
- * Reference to a field of type 'Bytes'
19341
+ * Reference to a field of type 'Int'
18055
19342
  */
18056
- export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>
19343
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
18057
19344
 
18058
19345
 
18059
19346
 
18060
19347
  /**
18061
- * Reference to a field of type 'Int'
19348
+ * Reference to a field of type 'Float'
18062
19349
  */
18063
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
19350
+ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
18064
19351
 
18065
19352
 
18066
19353
 
18067
19354
  /**
18068
- * Reference to a field of type 'Float'
19355
+ * Reference to a field of type 'Bytes'
18069
19356
  */
18070
- export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
19357
+ export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>
18071
19358
 
18072
19359
  /**
18073
19360
  * Deep Input Types
@@ -18468,6 +19755,7 @@ export namespace Prisma {
18468
19755
  created_at?: BigIntFilter<"chat_sessions"> | bigint | number
18469
19756
  updated_at?: BigIntFilter<"chat_sessions"> | bigint | number
18470
19757
  trackedFiles?: Chat_session_tracked_filesListRelationFilter
19758
+ usage?: XOR<Chat_session_usageNullableScalarRelationFilter, chat_session_usageWhereInput> | null
18471
19759
  user?: XOR<UsersScalarRelationFilter, usersWhereInput>
18472
19760
  }
18473
19761
 
@@ -18480,6 +19768,7 @@ export namespace Prisma {
18480
19768
  created_at?: SortOrder
18481
19769
  updated_at?: SortOrder
18482
19770
  trackedFiles?: chat_session_tracked_filesOrderByRelationAggregateInput
19771
+ usage?: chat_session_usageOrderByWithRelationInput
18483
19772
  user?: usersOrderByWithRelationInput
18484
19773
  }
18485
19774
 
@@ -18495,6 +19784,7 @@ export namespace Prisma {
18495
19784
  created_at?: BigIntFilter<"chat_sessions"> | bigint | number
18496
19785
  updated_at?: BigIntFilter<"chat_sessions"> | bigint | number
18497
19786
  trackedFiles?: Chat_session_tracked_filesListRelationFilter
19787
+ usage?: XOR<Chat_session_usageNullableScalarRelationFilter, chat_session_usageWhereInput> | null
18498
19788
  user?: XOR<UsersScalarRelationFilter, usersWhereInput>
18499
19789
  }, "id" | "opencode_session_id">
18500
19790
 
@@ -18526,6 +19816,83 @@ export namespace Prisma {
18526
19816
  updated_at?: BigIntWithAggregatesFilter<"chat_sessions"> | bigint | number
18527
19817
  }
18528
19818
 
19819
+ export type chat_session_usageWhereInput = {
19820
+ AND?: chat_session_usageWhereInput | chat_session_usageWhereInput[]
19821
+ OR?: chat_session_usageWhereInput[]
19822
+ NOT?: chat_session_usageWhereInput | chat_session_usageWhereInput[]
19823
+ chat_session_id?: StringFilter<"chat_session_usage"> | string
19824
+ last_synced_message_id?: StringFilter<"chat_session_usage"> | string
19825
+ provider_id?: StringFilter<"chat_session_usage"> | string
19826
+ input_tokens?: IntFilter<"chat_session_usage"> | number
19827
+ output_tokens?: IntFilter<"chat_session_usage"> | number
19828
+ cached_tokens?: IntFilter<"chat_session_usage"> | number
19829
+ cost_usd?: FloatFilter<"chat_session_usage"> | number
19830
+ model_id?: StringFilter<"chat_session_usage"> | string
19831
+ updated_at?: BigIntFilter<"chat_session_usage"> | bigint | number
19832
+ session?: XOR<Chat_sessionsScalarRelationFilter, chat_sessionsWhereInput>
19833
+ }
19834
+
19835
+ export type chat_session_usageOrderByWithRelationInput = {
19836
+ chat_session_id?: SortOrder
19837
+ last_synced_message_id?: SortOrder
19838
+ provider_id?: SortOrder
19839
+ input_tokens?: SortOrder
19840
+ output_tokens?: SortOrder
19841
+ cached_tokens?: SortOrder
19842
+ cost_usd?: SortOrder
19843
+ model_id?: SortOrder
19844
+ updated_at?: SortOrder
19845
+ session?: chat_sessionsOrderByWithRelationInput
19846
+ }
19847
+
19848
+ export type chat_session_usageWhereUniqueInput = Prisma.AtLeast<{
19849
+ chat_session_id?: string
19850
+ AND?: chat_session_usageWhereInput | chat_session_usageWhereInput[]
19851
+ OR?: chat_session_usageWhereInput[]
19852
+ NOT?: chat_session_usageWhereInput | chat_session_usageWhereInput[]
19853
+ last_synced_message_id?: StringFilter<"chat_session_usage"> | string
19854
+ provider_id?: StringFilter<"chat_session_usage"> | string
19855
+ input_tokens?: IntFilter<"chat_session_usage"> | number
19856
+ output_tokens?: IntFilter<"chat_session_usage"> | number
19857
+ cached_tokens?: IntFilter<"chat_session_usage"> | number
19858
+ cost_usd?: FloatFilter<"chat_session_usage"> | number
19859
+ model_id?: StringFilter<"chat_session_usage"> | string
19860
+ updated_at?: BigIntFilter<"chat_session_usage"> | bigint | number
19861
+ session?: XOR<Chat_sessionsScalarRelationFilter, chat_sessionsWhereInput>
19862
+ }, "chat_session_id">
19863
+
19864
+ export type chat_session_usageOrderByWithAggregationInput = {
19865
+ chat_session_id?: SortOrder
19866
+ last_synced_message_id?: SortOrder
19867
+ provider_id?: SortOrder
19868
+ input_tokens?: SortOrder
19869
+ output_tokens?: SortOrder
19870
+ cached_tokens?: SortOrder
19871
+ cost_usd?: SortOrder
19872
+ model_id?: SortOrder
19873
+ updated_at?: SortOrder
19874
+ _count?: chat_session_usageCountOrderByAggregateInput
19875
+ _avg?: chat_session_usageAvgOrderByAggregateInput
19876
+ _max?: chat_session_usageMaxOrderByAggregateInput
19877
+ _min?: chat_session_usageMinOrderByAggregateInput
19878
+ _sum?: chat_session_usageSumOrderByAggregateInput
19879
+ }
19880
+
19881
+ export type chat_session_usageScalarWhereWithAggregatesInput = {
19882
+ AND?: chat_session_usageScalarWhereWithAggregatesInput | chat_session_usageScalarWhereWithAggregatesInput[]
19883
+ OR?: chat_session_usageScalarWhereWithAggregatesInput[]
19884
+ NOT?: chat_session_usageScalarWhereWithAggregatesInput | chat_session_usageScalarWhereWithAggregatesInput[]
19885
+ chat_session_id?: StringWithAggregatesFilter<"chat_session_usage"> | string
19886
+ last_synced_message_id?: StringWithAggregatesFilter<"chat_session_usage"> | string
19887
+ provider_id?: StringWithAggregatesFilter<"chat_session_usage"> | string
19888
+ input_tokens?: IntWithAggregatesFilter<"chat_session_usage"> | number
19889
+ output_tokens?: IntWithAggregatesFilter<"chat_session_usage"> | number
19890
+ cached_tokens?: IntWithAggregatesFilter<"chat_session_usage"> | number
19891
+ cost_usd?: FloatWithAggregatesFilter<"chat_session_usage"> | number
19892
+ model_id?: StringWithAggregatesFilter<"chat_session_usage"> | string
19893
+ updated_at?: BigIntWithAggregatesFilter<"chat_session_usage"> | bigint | number
19894
+ }
19895
+
18529
19896
  export type chat_session_tracked_filesWhereInput = {
18530
19897
  AND?: chat_session_tracked_filesWhereInput | chat_session_tracked_filesWhereInput[]
18531
19898
  OR?: chat_session_tracked_filesWhereInput[]
@@ -19421,6 +20788,7 @@ export namespace Prisma {
19421
20788
  created_at: bigint | number
19422
20789
  updated_at: bigint | number
19423
20790
  trackedFiles?: chat_session_tracked_filesCreateNestedManyWithoutSessionInput
20791
+ usage?: chat_session_usageCreateNestedOneWithoutSessionInput
19424
20792
  user: usersCreateNestedOneWithoutChatSessionsInput
19425
20793
  }
19426
20794
 
@@ -19433,6 +20801,7 @@ export namespace Prisma {
19433
20801
  created_at: bigint | number
19434
20802
  updated_at: bigint | number
19435
20803
  trackedFiles?: chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput
20804
+ usage?: chat_session_usageUncheckedCreateNestedOneWithoutSessionInput
19436
20805
  }
19437
20806
 
19438
20807
  export type chat_sessionsUpdateInput = {
@@ -19443,6 +20812,7 @@ export namespace Prisma {
19443
20812
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
19444
20813
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19445
20814
  trackedFiles?: chat_session_tracked_filesUpdateManyWithoutSessionNestedInput
20815
+ usage?: chat_session_usageUpdateOneWithoutSessionNestedInput
19446
20816
  user?: usersUpdateOneRequiredWithoutChatSessionsNestedInput
19447
20817
  }
19448
20818
 
@@ -19455,6 +20825,7 @@ export namespace Prisma {
19455
20825
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
19456
20826
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19457
20827
  trackedFiles?: chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput
20828
+ usage?: chat_session_usageUncheckedUpdateOneWithoutSessionNestedInput
19458
20829
  }
19459
20830
 
19460
20831
  export type chat_sessionsCreateManyInput = {
@@ -19486,6 +20857,89 @@ export namespace Prisma {
19486
20857
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
19487
20858
  }
19488
20859
 
20860
+ export type chat_session_usageCreateInput = {
20861
+ last_synced_message_id: string
20862
+ provider_id: string
20863
+ input_tokens: number
20864
+ output_tokens: number
20865
+ cached_tokens: number
20866
+ cost_usd: number
20867
+ model_id: string
20868
+ updated_at: bigint | number
20869
+ session: chat_sessionsCreateNestedOneWithoutUsageInput
20870
+ }
20871
+
20872
+ export type chat_session_usageUncheckedCreateInput = {
20873
+ chat_session_id: string
20874
+ last_synced_message_id: string
20875
+ provider_id: string
20876
+ input_tokens: number
20877
+ output_tokens: number
20878
+ cached_tokens: number
20879
+ cost_usd: number
20880
+ model_id: string
20881
+ updated_at: bigint | number
20882
+ }
20883
+
20884
+ export type chat_session_usageUpdateInput = {
20885
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
20886
+ provider_id?: StringFieldUpdateOperationsInput | string
20887
+ input_tokens?: IntFieldUpdateOperationsInput | number
20888
+ output_tokens?: IntFieldUpdateOperationsInput | number
20889
+ cached_tokens?: IntFieldUpdateOperationsInput | number
20890
+ cost_usd?: FloatFieldUpdateOperationsInput | number
20891
+ model_id?: StringFieldUpdateOperationsInput | string
20892
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20893
+ session?: chat_sessionsUpdateOneRequiredWithoutUsageNestedInput
20894
+ }
20895
+
20896
+ export type chat_session_usageUncheckedUpdateInput = {
20897
+ chat_session_id?: StringFieldUpdateOperationsInput | string
20898
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
20899
+ provider_id?: StringFieldUpdateOperationsInput | string
20900
+ input_tokens?: IntFieldUpdateOperationsInput | number
20901
+ output_tokens?: IntFieldUpdateOperationsInput | number
20902
+ cached_tokens?: IntFieldUpdateOperationsInput | number
20903
+ cost_usd?: FloatFieldUpdateOperationsInput | number
20904
+ model_id?: StringFieldUpdateOperationsInput | string
20905
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20906
+ }
20907
+
20908
+ export type chat_session_usageCreateManyInput = {
20909
+ chat_session_id: string
20910
+ last_synced_message_id: string
20911
+ provider_id: string
20912
+ input_tokens: number
20913
+ output_tokens: number
20914
+ cached_tokens: number
20915
+ cost_usd: number
20916
+ model_id: string
20917
+ updated_at: bigint | number
20918
+ }
20919
+
20920
+ export type chat_session_usageUpdateManyMutationInput = {
20921
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
20922
+ provider_id?: StringFieldUpdateOperationsInput | string
20923
+ input_tokens?: IntFieldUpdateOperationsInput | number
20924
+ output_tokens?: IntFieldUpdateOperationsInput | number
20925
+ cached_tokens?: IntFieldUpdateOperationsInput | number
20926
+ cost_usd?: FloatFieldUpdateOperationsInput | number
20927
+ model_id?: StringFieldUpdateOperationsInput | string
20928
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20929
+ }
20930
+
20931
+ export type chat_session_usageUncheckedUpdateManyInput = {
20932
+ chat_session_id?: StringFieldUpdateOperationsInput | string
20933
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
20934
+ provider_id?: StringFieldUpdateOperationsInput | string
20935
+ input_tokens?: IntFieldUpdateOperationsInput | number
20936
+ output_tokens?: IntFieldUpdateOperationsInput | number
20937
+ cached_tokens?: IntFieldUpdateOperationsInput | number
20938
+ cost_usd?: FloatFieldUpdateOperationsInput | number
20939
+ model_id?: StringFieldUpdateOperationsInput | string
20940
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
20941
+ }
20942
+
19489
20943
  export type chat_session_tracked_filesCreateInput = {
19490
20944
  id?: string
19491
20945
  relative_path: string
@@ -20378,6 +21832,11 @@ export namespace Prisma {
20378
21832
  none?: chat_session_tracked_filesWhereInput
20379
21833
  }
20380
21834
 
21835
+ export type Chat_session_usageNullableScalarRelationFilter = {
21836
+ is?: chat_session_usageWhereInput | null
21837
+ isNot?: chat_session_usageWhereInput | null
21838
+ }
21839
+
20381
21840
  export type chat_session_tracked_filesOrderByRelationAggregateInput = {
20382
21841
  _count?: SortOrder
20383
21842
  }
@@ -20422,6 +21881,117 @@ export namespace Prisma {
20422
21881
  updated_at?: SortOrder
20423
21882
  }
20424
21883
 
21884
+ export type IntFilter<$PrismaModel = never> = {
21885
+ equals?: number | IntFieldRefInput<$PrismaModel>
21886
+ in?: number[]
21887
+ notIn?: number[]
21888
+ lt?: number | IntFieldRefInput<$PrismaModel>
21889
+ lte?: number | IntFieldRefInput<$PrismaModel>
21890
+ gt?: number | IntFieldRefInput<$PrismaModel>
21891
+ gte?: number | IntFieldRefInput<$PrismaModel>
21892
+ not?: NestedIntFilter<$PrismaModel> | number
21893
+ }
21894
+
21895
+ export type FloatFilter<$PrismaModel = never> = {
21896
+ equals?: number | FloatFieldRefInput<$PrismaModel>
21897
+ in?: number[]
21898
+ notIn?: number[]
21899
+ lt?: number | FloatFieldRefInput<$PrismaModel>
21900
+ lte?: number | FloatFieldRefInput<$PrismaModel>
21901
+ gt?: number | FloatFieldRefInput<$PrismaModel>
21902
+ gte?: number | FloatFieldRefInput<$PrismaModel>
21903
+ not?: NestedFloatFilter<$PrismaModel> | number
21904
+ }
21905
+
21906
+ export type Chat_sessionsScalarRelationFilter = {
21907
+ is?: chat_sessionsWhereInput
21908
+ isNot?: chat_sessionsWhereInput
21909
+ }
21910
+
21911
+ export type chat_session_usageCountOrderByAggregateInput = {
21912
+ chat_session_id?: SortOrder
21913
+ last_synced_message_id?: SortOrder
21914
+ provider_id?: SortOrder
21915
+ input_tokens?: SortOrder
21916
+ output_tokens?: SortOrder
21917
+ cached_tokens?: SortOrder
21918
+ cost_usd?: SortOrder
21919
+ model_id?: SortOrder
21920
+ updated_at?: SortOrder
21921
+ }
21922
+
21923
+ export type chat_session_usageAvgOrderByAggregateInput = {
21924
+ input_tokens?: SortOrder
21925
+ output_tokens?: SortOrder
21926
+ cached_tokens?: SortOrder
21927
+ cost_usd?: SortOrder
21928
+ updated_at?: SortOrder
21929
+ }
21930
+
21931
+ export type chat_session_usageMaxOrderByAggregateInput = {
21932
+ chat_session_id?: SortOrder
21933
+ last_synced_message_id?: SortOrder
21934
+ provider_id?: SortOrder
21935
+ input_tokens?: SortOrder
21936
+ output_tokens?: SortOrder
21937
+ cached_tokens?: SortOrder
21938
+ cost_usd?: SortOrder
21939
+ model_id?: SortOrder
21940
+ updated_at?: SortOrder
21941
+ }
21942
+
21943
+ export type chat_session_usageMinOrderByAggregateInput = {
21944
+ chat_session_id?: SortOrder
21945
+ last_synced_message_id?: SortOrder
21946
+ provider_id?: SortOrder
21947
+ input_tokens?: SortOrder
21948
+ output_tokens?: SortOrder
21949
+ cached_tokens?: SortOrder
21950
+ cost_usd?: SortOrder
21951
+ model_id?: SortOrder
21952
+ updated_at?: SortOrder
21953
+ }
21954
+
21955
+ export type chat_session_usageSumOrderByAggregateInput = {
21956
+ input_tokens?: SortOrder
21957
+ output_tokens?: SortOrder
21958
+ cached_tokens?: SortOrder
21959
+ cost_usd?: SortOrder
21960
+ updated_at?: SortOrder
21961
+ }
21962
+
21963
+ export type IntWithAggregatesFilter<$PrismaModel = never> = {
21964
+ equals?: number | IntFieldRefInput<$PrismaModel>
21965
+ in?: number[]
21966
+ notIn?: number[]
21967
+ lt?: number | IntFieldRefInput<$PrismaModel>
21968
+ lte?: number | IntFieldRefInput<$PrismaModel>
21969
+ gt?: number | IntFieldRefInput<$PrismaModel>
21970
+ gte?: number | IntFieldRefInput<$PrismaModel>
21971
+ not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
21972
+ _count?: NestedIntFilter<$PrismaModel>
21973
+ _avg?: NestedFloatFilter<$PrismaModel>
21974
+ _sum?: NestedIntFilter<$PrismaModel>
21975
+ _min?: NestedIntFilter<$PrismaModel>
21976
+ _max?: NestedIntFilter<$PrismaModel>
21977
+ }
21978
+
21979
+ export type FloatWithAggregatesFilter<$PrismaModel = never> = {
21980
+ equals?: number | FloatFieldRefInput<$PrismaModel>
21981
+ in?: number[]
21982
+ notIn?: number[]
21983
+ lt?: number | FloatFieldRefInput<$PrismaModel>
21984
+ lte?: number | FloatFieldRefInput<$PrismaModel>
21985
+ gt?: number | FloatFieldRefInput<$PrismaModel>
21986
+ gte?: number | FloatFieldRefInput<$PrismaModel>
21987
+ not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
21988
+ _count?: NestedIntFilter<$PrismaModel>
21989
+ _avg?: NestedFloatFilter<$PrismaModel>
21990
+ _sum?: NestedFloatFilter<$PrismaModel>
21991
+ _min?: NestedFloatFilter<$PrismaModel>
21992
+ _max?: NestedFloatFilter<$PrismaModel>
21993
+ }
21994
+
20425
21995
  export type BytesNullableFilter<$PrismaModel = never> = {
20426
21996
  equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
20427
21997
  in?: Bytes[] | null
@@ -20440,11 +22010,6 @@ export namespace Prisma {
20440
22010
  not?: NestedIntNullableFilter<$PrismaModel> | number | null
20441
22011
  }
20442
22012
 
20443
- export type Chat_sessionsScalarRelationFilter = {
20444
- is?: chat_sessionsWhereInput
20445
- isNot?: chat_sessionsWhereInput
20446
- }
20447
-
20448
22013
  export type chat_session_tracked_filesChat_session_idRelative_pathCompoundUniqueInput = {
20449
22014
  chat_session_id: string
20450
22015
  relative_path: string
@@ -20710,17 +22275,6 @@ export namespace Prisma {
20710
22275
  created_at?: SortOrder
20711
22276
  }
20712
22277
 
20713
- export type IntFilter<$PrismaModel = never> = {
20714
- equals?: number | IntFieldRefInput<$PrismaModel>
20715
- in?: number[]
20716
- notIn?: number[]
20717
- lt?: number | IntFieldRefInput<$PrismaModel>
20718
- lte?: number | IntFieldRefInput<$PrismaModel>
20719
- gt?: number | IntFieldRefInput<$PrismaModel>
20720
- gte?: number | IntFieldRefInput<$PrismaModel>
20721
- not?: NestedIntFilter<$PrismaModel> | number
20722
- }
20723
-
20724
22278
  export type Resource_metadataScalarRelationFilter = {
20725
22279
  is?: resource_metadataWhereInput
20726
22280
  isNot?: resource_metadataWhereInput
@@ -20777,22 +22331,6 @@ export namespace Prisma {
20777
22331
  updated_at?: SortOrder
20778
22332
  }
20779
22333
 
20780
- export type IntWithAggregatesFilter<$PrismaModel = never> = {
20781
- equals?: number | IntFieldRefInput<$PrismaModel>
20782
- in?: number[]
20783
- notIn?: number[]
20784
- lt?: number | IntFieldRefInput<$PrismaModel>
20785
- lte?: number | IntFieldRefInput<$PrismaModel>
20786
- gt?: number | IntFieldRefInput<$PrismaModel>
20787
- gte?: number | IntFieldRefInput<$PrismaModel>
20788
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
20789
- _count?: NestedIntFilter<$PrismaModel>
20790
- _avg?: NestedFloatFilter<$PrismaModel>
20791
- _sum?: NestedIntFilter<$PrismaModel>
20792
- _min?: NestedIntFilter<$PrismaModel>
20793
- _max?: NestedIntFilter<$PrismaModel>
20794
- }
20795
-
20796
22334
  export type Resource_approved_snapshotsScalarRelationFilter = {
20797
22335
  is?: resource_approved_snapshotsWhereInput
20798
22336
  isNot?: resource_approved_snapshotsWhereInput
@@ -21163,6 +22701,12 @@ export namespace Prisma {
21163
22701
  connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
21164
22702
  }
21165
22703
 
22704
+ export type chat_session_usageCreateNestedOneWithoutSessionInput = {
22705
+ create?: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
22706
+ connectOrCreate?: chat_session_usageCreateOrConnectWithoutSessionInput
22707
+ connect?: chat_session_usageWhereUniqueInput
22708
+ }
22709
+
21166
22710
  export type usersCreateNestedOneWithoutChatSessionsInput = {
21167
22711
  create?: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
21168
22712
  connectOrCreate?: usersCreateOrConnectWithoutChatSessionsInput
@@ -21176,6 +22720,12 @@ export namespace Prisma {
21176
22720
  connect?: chat_session_tracked_filesWhereUniqueInput | chat_session_tracked_filesWhereUniqueInput[]
21177
22721
  }
21178
22722
 
22723
+ export type chat_session_usageUncheckedCreateNestedOneWithoutSessionInput = {
22724
+ create?: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
22725
+ connectOrCreate?: chat_session_usageCreateOrConnectWithoutSessionInput
22726
+ connect?: chat_session_usageWhereUniqueInput
22727
+ }
22728
+
21179
22729
  export type chat_session_tracked_filesUpdateManyWithoutSessionNestedInput = {
21180
22730
  create?: XOR<chat_session_tracked_filesCreateWithoutSessionInput, chat_session_tracked_filesUncheckedCreateWithoutSessionInput> | chat_session_tracked_filesCreateWithoutSessionInput[] | chat_session_tracked_filesUncheckedCreateWithoutSessionInput[]
21181
22731
  connectOrCreate?: chat_session_tracked_filesCreateOrConnectWithoutSessionInput | chat_session_tracked_filesCreateOrConnectWithoutSessionInput[]
@@ -21190,6 +22740,16 @@ export namespace Prisma {
21190
22740
  deleteMany?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
21191
22741
  }
21192
22742
 
22743
+ export type chat_session_usageUpdateOneWithoutSessionNestedInput = {
22744
+ create?: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
22745
+ connectOrCreate?: chat_session_usageCreateOrConnectWithoutSessionInput
22746
+ upsert?: chat_session_usageUpsertWithoutSessionInput
22747
+ disconnect?: chat_session_usageWhereInput | boolean
22748
+ delete?: chat_session_usageWhereInput | boolean
22749
+ connect?: chat_session_usageWhereUniqueInput
22750
+ update?: XOR<XOR<chat_session_usageUpdateToOneWithWhereWithoutSessionInput, chat_session_usageUpdateWithoutSessionInput>, chat_session_usageUncheckedUpdateWithoutSessionInput>
22751
+ }
22752
+
21193
22753
  export type usersUpdateOneRequiredWithoutChatSessionsNestedInput = {
21194
22754
  create?: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
21195
22755
  connectOrCreate?: usersCreateOrConnectWithoutChatSessionsInput
@@ -21212,6 +22772,46 @@ export namespace Prisma {
21212
22772
  deleteMany?: chat_session_tracked_filesScalarWhereInput | chat_session_tracked_filesScalarWhereInput[]
21213
22773
  }
21214
22774
 
22775
+ export type chat_session_usageUncheckedUpdateOneWithoutSessionNestedInput = {
22776
+ create?: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
22777
+ connectOrCreate?: chat_session_usageCreateOrConnectWithoutSessionInput
22778
+ upsert?: chat_session_usageUpsertWithoutSessionInput
22779
+ disconnect?: chat_session_usageWhereInput | boolean
22780
+ delete?: chat_session_usageWhereInput | boolean
22781
+ connect?: chat_session_usageWhereUniqueInput
22782
+ update?: XOR<XOR<chat_session_usageUpdateToOneWithWhereWithoutSessionInput, chat_session_usageUpdateWithoutSessionInput>, chat_session_usageUncheckedUpdateWithoutSessionInput>
22783
+ }
22784
+
22785
+ export type chat_sessionsCreateNestedOneWithoutUsageInput = {
22786
+ create?: XOR<chat_sessionsCreateWithoutUsageInput, chat_sessionsUncheckedCreateWithoutUsageInput>
22787
+ connectOrCreate?: chat_sessionsCreateOrConnectWithoutUsageInput
22788
+ connect?: chat_sessionsWhereUniqueInput
22789
+ }
22790
+
22791
+ export type IntFieldUpdateOperationsInput = {
22792
+ set?: number
22793
+ increment?: number
22794
+ decrement?: number
22795
+ multiply?: number
22796
+ divide?: number
22797
+ }
22798
+
22799
+ export type FloatFieldUpdateOperationsInput = {
22800
+ set?: number
22801
+ increment?: number
22802
+ decrement?: number
22803
+ multiply?: number
22804
+ divide?: number
22805
+ }
22806
+
22807
+ export type chat_sessionsUpdateOneRequiredWithoutUsageNestedInput = {
22808
+ create?: XOR<chat_sessionsCreateWithoutUsageInput, chat_sessionsUncheckedCreateWithoutUsageInput>
22809
+ connectOrCreate?: chat_sessionsCreateOrConnectWithoutUsageInput
22810
+ upsert?: chat_sessionsUpsertWithoutUsageInput
22811
+ connect?: chat_sessionsWhereUniqueInput
22812
+ update?: XOR<XOR<chat_sessionsUpdateToOneWithWhereWithoutUsageInput, chat_sessionsUpdateWithoutUsageInput>, chat_sessionsUncheckedUpdateWithoutUsageInput>
22813
+ }
22814
+
21215
22815
  export type chat_sessionsCreateNestedOneWithoutTrackedFilesInput = {
21216
22816
  create?: XOR<chat_sessionsCreateWithoutTrackedFilesInput, chat_sessionsUncheckedCreateWithoutTrackedFilesInput>
21217
22817
  connectOrCreate?: chat_sessionsCreateOrConnectWithoutTrackedFilesInput
@@ -21392,14 +22992,6 @@ export namespace Prisma {
21392
22992
  connect?: resource_approved_snapshot_filesWhereUniqueInput | resource_approved_snapshot_filesWhereUniqueInput[]
21393
22993
  }
21394
22994
 
21395
- export type IntFieldUpdateOperationsInput = {
21396
- set?: number
21397
- increment?: number
21398
- decrement?: number
21399
- multiply?: number
21400
- divide?: number
21401
- }
21402
-
21403
22995
  export type resource_metadataUpdateOneRequiredWithoutApprovedSnapshotNestedInput = {
21404
22996
  create?: XOR<resource_metadataCreateWithoutApprovedSnapshotInput, resource_metadataUncheckedCreateWithoutApprovedSnapshotInput>
21405
22997
  connectOrCreate?: resource_metadataCreateOrConnectWithoutApprovedSnapshotInput
@@ -21623,6 +23215,38 @@ export namespace Prisma {
21623
23215
  not?: NestedFloatNullableFilter<$PrismaModel> | number | null
21624
23216
  }
21625
23217
 
23218
+ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
23219
+ equals?: number | IntFieldRefInput<$PrismaModel>
23220
+ in?: number[]
23221
+ notIn?: number[]
23222
+ lt?: number | IntFieldRefInput<$PrismaModel>
23223
+ lte?: number | IntFieldRefInput<$PrismaModel>
23224
+ gt?: number | IntFieldRefInput<$PrismaModel>
23225
+ gte?: number | IntFieldRefInput<$PrismaModel>
23226
+ not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
23227
+ _count?: NestedIntFilter<$PrismaModel>
23228
+ _avg?: NestedFloatFilter<$PrismaModel>
23229
+ _sum?: NestedIntFilter<$PrismaModel>
23230
+ _min?: NestedIntFilter<$PrismaModel>
23231
+ _max?: NestedIntFilter<$PrismaModel>
23232
+ }
23233
+
23234
+ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
23235
+ equals?: number | FloatFieldRefInput<$PrismaModel>
23236
+ in?: number[]
23237
+ notIn?: number[]
23238
+ lt?: number | FloatFieldRefInput<$PrismaModel>
23239
+ lte?: number | FloatFieldRefInput<$PrismaModel>
23240
+ gt?: number | FloatFieldRefInput<$PrismaModel>
23241
+ gte?: number | FloatFieldRefInput<$PrismaModel>
23242
+ not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
23243
+ _count?: NestedIntFilter<$PrismaModel>
23244
+ _avg?: NestedFloatFilter<$PrismaModel>
23245
+ _sum?: NestedFloatFilter<$PrismaModel>
23246
+ _min?: NestedFloatFilter<$PrismaModel>
23247
+ _max?: NestedFloatFilter<$PrismaModel>
23248
+ }
23249
+
21626
23250
  export type NestedBytesNullableFilter<$PrismaModel = never> = {
21627
23251
  equals?: Bytes | BytesFieldRefInput<$PrismaModel> | null
21628
23252
  in?: Bytes[] | null
@@ -21656,22 +23280,6 @@ export namespace Prisma {
21656
23280
  _max?: NestedIntNullableFilter<$PrismaModel>
21657
23281
  }
21658
23282
 
21659
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
21660
- equals?: number | IntFieldRefInput<$PrismaModel>
21661
- in?: number[]
21662
- notIn?: number[]
21663
- lt?: number | IntFieldRefInput<$PrismaModel>
21664
- lte?: number | IntFieldRefInput<$PrismaModel>
21665
- gt?: number | IntFieldRefInput<$PrismaModel>
21666
- gte?: number | IntFieldRefInput<$PrismaModel>
21667
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
21668
- _count?: NestedIntFilter<$PrismaModel>
21669
- _avg?: NestedFloatFilter<$PrismaModel>
21670
- _sum?: NestedIntFilter<$PrismaModel>
21671
- _min?: NestedIntFilter<$PrismaModel>
21672
- _max?: NestedIntFilter<$PrismaModel>
21673
- }
21674
-
21675
23283
  export type workflow_runsCreateWithoutUserInput = {
21676
23284
  id?: string
21677
23285
  status: string
@@ -21715,6 +23323,7 @@ export namespace Prisma {
21715
23323
  created_at: bigint | number
21716
23324
  updated_at: bigint | number
21717
23325
  trackedFiles?: chat_session_tracked_filesCreateNestedManyWithoutSessionInput
23326
+ usage?: chat_session_usageCreateNestedOneWithoutSessionInput
21718
23327
  }
21719
23328
 
21720
23329
  export type chat_sessionsUncheckedCreateWithoutUserInput = {
@@ -21725,6 +23334,7 @@ export namespace Prisma {
21725
23334
  created_at: bigint | number
21726
23335
  updated_at: bigint | number
21727
23336
  trackedFiles?: chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput
23337
+ usage?: chat_session_usageUncheckedCreateNestedOneWithoutSessionInput
21728
23338
  }
21729
23339
 
21730
23340
  export type chat_sessionsCreateOrConnectWithoutUserInput = {
@@ -22201,6 +23811,33 @@ export namespace Prisma {
22201
23811
  data: chat_session_tracked_filesCreateManySessionInput | chat_session_tracked_filesCreateManySessionInput[]
22202
23812
  }
22203
23813
 
23814
+ export type chat_session_usageCreateWithoutSessionInput = {
23815
+ last_synced_message_id: string
23816
+ provider_id: string
23817
+ input_tokens: number
23818
+ output_tokens: number
23819
+ cached_tokens: number
23820
+ cost_usd: number
23821
+ model_id: string
23822
+ updated_at: bigint | number
23823
+ }
23824
+
23825
+ export type chat_session_usageUncheckedCreateWithoutSessionInput = {
23826
+ last_synced_message_id: string
23827
+ provider_id: string
23828
+ input_tokens: number
23829
+ output_tokens: number
23830
+ cached_tokens: number
23831
+ cost_usd: number
23832
+ model_id: string
23833
+ updated_at: bigint | number
23834
+ }
23835
+
23836
+ export type chat_session_usageCreateOrConnectWithoutSessionInput = {
23837
+ where: chat_session_usageWhereUniqueInput
23838
+ create: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
23839
+ }
23840
+
22204
23841
  export type usersCreateWithoutChatSessionsInput = {
22205
23842
  id?: string
22206
23843
  email: string
@@ -22273,6 +23910,39 @@ export namespace Prisma {
22273
23910
  updated_at?: BigIntFilter<"chat_session_tracked_files"> | bigint | number
22274
23911
  }
22275
23912
 
23913
+ export type chat_session_usageUpsertWithoutSessionInput = {
23914
+ update: XOR<chat_session_usageUpdateWithoutSessionInput, chat_session_usageUncheckedUpdateWithoutSessionInput>
23915
+ create: XOR<chat_session_usageCreateWithoutSessionInput, chat_session_usageUncheckedCreateWithoutSessionInput>
23916
+ where?: chat_session_usageWhereInput
23917
+ }
23918
+
23919
+ export type chat_session_usageUpdateToOneWithWhereWithoutSessionInput = {
23920
+ where?: chat_session_usageWhereInput
23921
+ data: XOR<chat_session_usageUpdateWithoutSessionInput, chat_session_usageUncheckedUpdateWithoutSessionInput>
23922
+ }
23923
+
23924
+ export type chat_session_usageUpdateWithoutSessionInput = {
23925
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
23926
+ provider_id?: StringFieldUpdateOperationsInput | string
23927
+ input_tokens?: IntFieldUpdateOperationsInput | number
23928
+ output_tokens?: IntFieldUpdateOperationsInput | number
23929
+ cached_tokens?: IntFieldUpdateOperationsInput | number
23930
+ cost_usd?: FloatFieldUpdateOperationsInput | number
23931
+ model_id?: StringFieldUpdateOperationsInput | string
23932
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
23933
+ }
23934
+
23935
+ export type chat_session_usageUncheckedUpdateWithoutSessionInput = {
23936
+ last_synced_message_id?: StringFieldUpdateOperationsInput | string
23937
+ provider_id?: StringFieldUpdateOperationsInput | string
23938
+ input_tokens?: IntFieldUpdateOperationsInput | number
23939
+ output_tokens?: IntFieldUpdateOperationsInput | number
23940
+ cached_tokens?: IntFieldUpdateOperationsInput | number
23941
+ cost_usd?: FloatFieldUpdateOperationsInput | number
23942
+ model_id?: StringFieldUpdateOperationsInput | string
23943
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
23944
+ }
23945
+
22276
23946
  export type usersUpsertWithoutChatSessionsInput = {
22277
23947
  update: XOR<usersUpdateWithoutChatSessionsInput, usersUncheckedUpdateWithoutChatSessionsInput>
22278
23948
  create: XOR<usersCreateWithoutChatSessionsInput, usersUncheckedCreateWithoutChatSessionsInput>
@@ -22318,6 +23988,66 @@ export namespace Prisma {
22318
23988
  userSecrets?: user_secretsUncheckedUpdateManyWithoutUserNestedInput
22319
23989
  }
22320
23990
 
23991
+ export type chat_sessionsCreateWithoutUsageInput = {
23992
+ id?: string
23993
+ opencode_session_id: string
23994
+ title: string
23995
+ last_seen_assistant_message_id?: string | null
23996
+ created_at: bigint | number
23997
+ updated_at: bigint | number
23998
+ trackedFiles?: chat_session_tracked_filesCreateNestedManyWithoutSessionInput
23999
+ user: usersCreateNestedOneWithoutChatSessionsInput
24000
+ }
24001
+
24002
+ export type chat_sessionsUncheckedCreateWithoutUsageInput = {
24003
+ id?: string
24004
+ user_id: string
24005
+ opencode_session_id: string
24006
+ title: string
24007
+ last_seen_assistant_message_id?: string | null
24008
+ created_at: bigint | number
24009
+ updated_at: bigint | number
24010
+ trackedFiles?: chat_session_tracked_filesUncheckedCreateNestedManyWithoutSessionInput
24011
+ }
24012
+
24013
+ export type chat_sessionsCreateOrConnectWithoutUsageInput = {
24014
+ where: chat_sessionsWhereUniqueInput
24015
+ create: XOR<chat_sessionsCreateWithoutUsageInput, chat_sessionsUncheckedCreateWithoutUsageInput>
24016
+ }
24017
+
24018
+ export type chat_sessionsUpsertWithoutUsageInput = {
24019
+ update: XOR<chat_sessionsUpdateWithoutUsageInput, chat_sessionsUncheckedUpdateWithoutUsageInput>
24020
+ create: XOR<chat_sessionsCreateWithoutUsageInput, chat_sessionsUncheckedCreateWithoutUsageInput>
24021
+ where?: chat_sessionsWhereInput
24022
+ }
24023
+
24024
+ export type chat_sessionsUpdateToOneWithWhereWithoutUsageInput = {
24025
+ where?: chat_sessionsWhereInput
24026
+ data: XOR<chat_sessionsUpdateWithoutUsageInput, chat_sessionsUncheckedUpdateWithoutUsageInput>
24027
+ }
24028
+
24029
+ export type chat_sessionsUpdateWithoutUsageInput = {
24030
+ id?: StringFieldUpdateOperationsInput | string
24031
+ opencode_session_id?: StringFieldUpdateOperationsInput | string
24032
+ title?: StringFieldUpdateOperationsInput | string
24033
+ last_seen_assistant_message_id?: NullableStringFieldUpdateOperationsInput | string | null
24034
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
24035
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
24036
+ trackedFiles?: chat_session_tracked_filesUpdateManyWithoutSessionNestedInput
24037
+ user?: usersUpdateOneRequiredWithoutChatSessionsNestedInput
24038
+ }
24039
+
24040
+ export type chat_sessionsUncheckedUpdateWithoutUsageInput = {
24041
+ id?: StringFieldUpdateOperationsInput | string
24042
+ user_id?: StringFieldUpdateOperationsInput | string
24043
+ opencode_session_id?: StringFieldUpdateOperationsInput | string
24044
+ title?: StringFieldUpdateOperationsInput | string
24045
+ last_seen_assistant_message_id?: NullableStringFieldUpdateOperationsInput | string | null
24046
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
24047
+ updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
24048
+ trackedFiles?: chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput
24049
+ }
24050
+
22321
24051
  export type chat_sessionsCreateWithoutTrackedFilesInput = {
22322
24052
  id?: string
22323
24053
  opencode_session_id: string
@@ -22325,6 +24055,7 @@ export namespace Prisma {
22325
24055
  last_seen_assistant_message_id?: string | null
22326
24056
  created_at: bigint | number
22327
24057
  updated_at: bigint | number
24058
+ usage?: chat_session_usageCreateNestedOneWithoutSessionInput
22328
24059
  user: usersCreateNestedOneWithoutChatSessionsInput
22329
24060
  }
22330
24061
 
@@ -22336,6 +24067,7 @@ export namespace Prisma {
22336
24067
  last_seen_assistant_message_id?: string | null
22337
24068
  created_at: bigint | number
22338
24069
  updated_at: bigint | number
24070
+ usage?: chat_session_usageUncheckedCreateNestedOneWithoutSessionInput
22339
24071
  }
22340
24072
 
22341
24073
  export type chat_sessionsCreateOrConnectWithoutTrackedFilesInput = {
@@ -22361,6 +24093,7 @@ export namespace Prisma {
22361
24093
  last_seen_assistant_message_id?: NullableStringFieldUpdateOperationsInput | string | null
22362
24094
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
22363
24095
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
24096
+ usage?: chat_session_usageUpdateOneWithoutSessionNestedInput
22364
24097
  user?: usersUpdateOneRequiredWithoutChatSessionsNestedInput
22365
24098
  }
22366
24099
 
@@ -22372,6 +24105,7 @@ export namespace Prisma {
22372
24105
  last_seen_assistant_message_id?: NullableStringFieldUpdateOperationsInput | string | null
22373
24106
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
22374
24107
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
24108
+ usage?: chat_session_usageUncheckedUpdateOneWithoutSessionNestedInput
22375
24109
  }
22376
24110
 
22377
24111
  export type resource_approved_snapshotsCreateWithoutResourceInput = {
@@ -23013,6 +24747,7 @@ export namespace Prisma {
23013
24747
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
23014
24748
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
23015
24749
  trackedFiles?: chat_session_tracked_filesUpdateManyWithoutSessionNestedInput
24750
+ usage?: chat_session_usageUpdateOneWithoutSessionNestedInput
23016
24751
  }
23017
24752
 
23018
24753
  export type chat_sessionsUncheckedUpdateWithoutUserInput = {
@@ -23023,6 +24758,7 @@ export namespace Prisma {
23023
24758
  created_at?: BigIntFieldUpdateOperationsInput | bigint | number
23024
24759
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
23025
24760
  trackedFiles?: chat_session_tracked_filesUncheckedUpdateManyWithoutSessionNestedInput
24761
+ usage?: chat_session_usageUncheckedUpdateOneWithoutSessionNestedInput
23026
24762
  }
23027
24763
 
23028
24764
  export type chat_sessionsUncheckedUpdateManyWithoutUserInput = {