teamcopilot 0.3.4 → 0.3.5

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 (40) hide show
  1. package/.env.example +3 -0
  2. package/dist/frontend/assets/{cssMode-CB9iAlw8.js → cssMode-DUnSc-N1.js} +1 -1
  3. package/dist/frontend/assets/{freemarker2-DI2xjASY.js → freemarker2-C_BuPYAu.js} +1 -1
  4. package/dist/frontend/assets/{handlebars-CmcQby9J.js → handlebars-DEEie70Y.js} +1 -1
  5. package/dist/frontend/assets/{html-ClP1XQBQ.js → html-BFks4r5R.js} +1 -1
  6. package/dist/frontend/assets/{htmlMode-DIlZsDL4.js → htmlMode-D8q9uv51.js} +1 -1
  7. package/dist/frontend/assets/index-D1Hcz_bo.css +1 -0
  8. package/dist/frontend/assets/{index-NFAjAMOV.js → index-DSsnnTDn.js} +224 -219
  9. package/dist/frontend/assets/{javascript-CbZA1Ase.js → javascript-LbJP7XES.js} +1 -1
  10. package/dist/frontend/assets/{jsonMode-VYZo-ljl.js → jsonMode-CTDSTkzw.js} +1 -1
  11. package/dist/frontend/assets/{liquid-I2CXh5hp.js → liquid-DMVVOmiW.js} +1 -1
  12. package/dist/frontend/assets/{mdx-BrO6zg6G.js → mdx-CG2zKU-F.js} +1 -1
  13. package/dist/frontend/assets/{python-S8m0lqgl.js → python-DupB8Ozc.js} +1 -1
  14. package/dist/frontend/assets/{razor-CV1dlAuV.js → razor-DNRGk0B3.js} +1 -1
  15. package/dist/frontend/assets/{tsMode-mSUzzhBd.js → tsMode-cWXCeSel.js} +1 -1
  16. package/dist/frontend/assets/{typescript-BOhssVGT.js → typescript-D_Aw0wph.js} +1 -1
  17. package/dist/frontend/assets/{xml-DF5nbc8Y.js → xml-DPt8oeKw.js} +1 -1
  18. package/dist/frontend/assets/{yaml-CjFdxQq7.js → yaml-Ct0xMYlA.js} +1 -1
  19. package/dist/frontend/index.html +2 -2
  20. package/dist/index.js +2 -0
  21. package/dist/utils/external-host.js +22 -0
  22. package/dist/utils/secrets.js +15 -0
  23. package/dist/utils/workflow-api-keys.js +88 -0
  24. package/dist/utils/workflow-interruption.js +2 -2
  25. package/dist/utils/workflow-runner.js +11 -2
  26. package/dist/utils/workflow.js +3 -0
  27. package/dist/workflow-api.js +185 -0
  28. package/dist/workflows/index.js +35 -0
  29. package/package.json +1 -1
  30. package/prisma/generated/client/edge.js +15 -4
  31. package/prisma/generated/client/index-browser.js +12 -1
  32. package/prisma/generated/client/index.d.ts +2002 -270
  33. package/prisma/generated/client/index.js +15 -4
  34. package/prisma/generated/client/package.json +1 -1
  35. package/prisma/generated/client/schema.prisma +28 -12
  36. package/prisma/generated/client/wasm.js +15 -4
  37. package/prisma/migrations/20260430033133_add_workflow_api_keys/migration.sql +46 -0
  38. package/prisma/migrations/20260430161041_remove_run_source_default/migration.sql +28 -0
  39. package/prisma/schema.prisma +18 -2
  40. package/dist/frontend/assets/index-bnKwfDfp.css +0 -1
@@ -23,6 +23,11 @@ export type users = $Result.DefaultSelection<Prisma.$usersPayload>
23
23
  *
24
24
  */
25
25
  export type workflow_runs = $Result.DefaultSelection<Prisma.$workflow_runsPayload>
26
+ /**
27
+ * Model workflow_api_keys
28
+ *
29
+ */
30
+ export type workflow_api_keys = $Result.DefaultSelection<Prisma.$workflow_api_keysPayload>
26
31
  /**
27
32
  * Model workflow_aborted_sessions
28
33
  *
@@ -227,6 +232,16 @@ export class PrismaClient<
227
232
  */
228
233
  get workflow_runs(): Prisma.workflow_runsDelegate<ExtArgs, ClientOptions>;
229
234
 
235
+ /**
236
+ * `prisma.workflow_api_keys`: Exposes CRUD operations for the **workflow_api_keys** model.
237
+ * Example usage:
238
+ * ```ts
239
+ * // Fetch zero or more Workflow_api_keys
240
+ * const workflow_api_keys = await prisma.workflow_api_keys.findMany()
241
+ * ```
242
+ */
243
+ get workflow_api_keys(): Prisma.workflow_api_keysDelegate<ExtArgs, ClientOptions>;
244
+
230
245
  /**
231
246
  * `prisma.workflow_aborted_sessions`: Exposes CRUD operations for the **workflow_aborted_sessions** model.
232
247
  * Example usage:
@@ -799,6 +814,7 @@ export namespace Prisma {
799
814
  export const ModelName: {
800
815
  users: 'users',
801
816
  workflow_runs: 'workflow_runs',
817
+ workflow_api_keys: 'workflow_api_keys',
802
818
  workflow_aborted_sessions: 'workflow_aborted_sessions',
803
819
  key_value: 'key_value',
804
820
  user_secrets: 'user_secrets',
@@ -830,7 +846,7 @@ export namespace Prisma {
830
846
  omit: GlobalOmitOptions
831
847
  }
832
848
  meta: {
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"
849
+ modelProps: "users" | "workflow_runs" | "workflow_api_keys" | "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"
834
850
  txIsolationLevel: Prisma.TransactionIsolationLevel
835
851
  }
836
852
  model: {
@@ -982,6 +998,80 @@ export namespace Prisma {
982
998
  }
983
999
  }
984
1000
  }
1001
+ workflow_api_keys: {
1002
+ payload: Prisma.$workflow_api_keysPayload<ExtArgs>
1003
+ fields: Prisma.workflow_api_keysFieldRefs
1004
+ operations: {
1005
+ findUnique: {
1006
+ args: Prisma.workflow_api_keysFindUniqueArgs<ExtArgs>
1007
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload> | null
1008
+ }
1009
+ findUniqueOrThrow: {
1010
+ args: Prisma.workflow_api_keysFindUniqueOrThrowArgs<ExtArgs>
1011
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1012
+ }
1013
+ findFirst: {
1014
+ args: Prisma.workflow_api_keysFindFirstArgs<ExtArgs>
1015
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload> | null
1016
+ }
1017
+ findFirstOrThrow: {
1018
+ args: Prisma.workflow_api_keysFindFirstOrThrowArgs<ExtArgs>
1019
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1020
+ }
1021
+ findMany: {
1022
+ args: Prisma.workflow_api_keysFindManyArgs<ExtArgs>
1023
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>[]
1024
+ }
1025
+ create: {
1026
+ args: Prisma.workflow_api_keysCreateArgs<ExtArgs>
1027
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1028
+ }
1029
+ createMany: {
1030
+ args: Prisma.workflow_api_keysCreateManyArgs<ExtArgs>
1031
+ result: BatchPayload
1032
+ }
1033
+ createManyAndReturn: {
1034
+ args: Prisma.workflow_api_keysCreateManyAndReturnArgs<ExtArgs>
1035
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>[]
1036
+ }
1037
+ delete: {
1038
+ args: Prisma.workflow_api_keysDeleteArgs<ExtArgs>
1039
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1040
+ }
1041
+ update: {
1042
+ args: Prisma.workflow_api_keysUpdateArgs<ExtArgs>
1043
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1044
+ }
1045
+ deleteMany: {
1046
+ args: Prisma.workflow_api_keysDeleteManyArgs<ExtArgs>
1047
+ result: BatchPayload
1048
+ }
1049
+ updateMany: {
1050
+ args: Prisma.workflow_api_keysUpdateManyArgs<ExtArgs>
1051
+ result: BatchPayload
1052
+ }
1053
+ updateManyAndReturn: {
1054
+ args: Prisma.workflow_api_keysUpdateManyAndReturnArgs<ExtArgs>
1055
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>[]
1056
+ }
1057
+ upsert: {
1058
+ args: Prisma.workflow_api_keysUpsertArgs<ExtArgs>
1059
+ result: $Utils.PayloadToResult<Prisma.$workflow_api_keysPayload>
1060
+ }
1061
+ aggregate: {
1062
+ args: Prisma.Workflow_api_keysAggregateArgs<ExtArgs>
1063
+ result: $Utils.Optional<AggregateWorkflow_api_keys>
1064
+ }
1065
+ groupBy: {
1066
+ args: Prisma.workflow_api_keysGroupByArgs<ExtArgs>
1067
+ result: $Utils.Optional<Workflow_api_keysGroupByOutputType>[]
1068
+ }
1069
+ count: {
1070
+ args: Prisma.workflow_api_keysCountArgs<ExtArgs>
1071
+ result: $Utils.Optional<Workflow_api_keysCountAggregateOutputType> | number
1072
+ }
1073
+ }
1074
+ }
985
1075
  workflow_aborted_sessions: {
986
1076
  payload: Prisma.$workflow_aborted_sessionsPayload<ExtArgs>
987
1077
  fields: Prisma.workflow_aborted_sessionsFieldRefs
@@ -2042,6 +2132,7 @@ export namespace Prisma {
2042
2132
  export type GlobalOmitConfig = {
2043
2133
  users?: usersOmit
2044
2134
  workflow_runs?: workflow_runsOmit
2135
+ workflow_api_keys?: workflow_api_keysOmit
2045
2136
  workflow_aborted_sessions?: workflow_aborted_sessionsOmit
2046
2137
  key_value?: key_valueOmit
2047
2138
  user_secrets?: user_secretsOmit
@@ -2206,6 +2297,37 @@ export namespace Prisma {
2206
2297
  }
2207
2298
 
2208
2299
 
2300
+ /**
2301
+ * Count Type Workflow_api_keysCountOutputType
2302
+ */
2303
+
2304
+ export type Workflow_api_keysCountOutputType = {
2305
+ workflowRuns: number
2306
+ }
2307
+
2308
+ export type Workflow_api_keysCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2309
+ workflowRuns?: boolean | Workflow_api_keysCountOutputTypeCountWorkflowRunsArgs
2310
+ }
2311
+
2312
+ // Custom InputTypes
2313
+ /**
2314
+ * Workflow_api_keysCountOutputType without action
2315
+ */
2316
+ export type Workflow_api_keysCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2317
+ /**
2318
+ * Select specific fields to fetch from the Workflow_api_keysCountOutputType
2319
+ */
2320
+ select?: Workflow_api_keysCountOutputTypeSelect<ExtArgs> | null
2321
+ }
2322
+
2323
+ /**
2324
+ * Workflow_api_keysCountOutputType without action
2325
+ */
2326
+ export type Workflow_api_keysCountOutputTypeCountWorkflowRunsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2327
+ where?: workflow_runsWhereInput
2328
+ }
2329
+
2330
+
2209
2331
  /**
2210
2332
  * Count Type Chat_sessionsCountOutputType
2211
2333
  */
@@ -3635,6 +3757,8 @@ export namespace Prisma {
3635
3757
  workflow_slug: string | null
3636
3758
  session_id: string | null
3637
3759
  message_id: string | null
3760
+ run_source: string | null
3761
+ workflow_api_key_id: string | null
3638
3762
  }
3639
3763
 
3640
3764
  export type Workflow_runsMaxAggregateOutputType = {
@@ -3649,6 +3773,8 @@ export namespace Prisma {
3649
3773
  workflow_slug: string | null
3650
3774
  session_id: string | null
3651
3775
  message_id: string | null
3776
+ run_source: string | null
3777
+ workflow_api_key_id: string | null
3652
3778
  }
3653
3779
 
3654
3780
  export type Workflow_runsCountAggregateOutputType = {
@@ -3663,6 +3789,8 @@ export namespace Prisma {
3663
3789
  workflow_slug: number
3664
3790
  session_id: number
3665
3791
  message_id: number
3792
+ run_source: number
3793
+ workflow_api_key_id: number
3666
3794
  _all: number
3667
3795
  }
3668
3796
 
@@ -3689,6 +3817,8 @@ export namespace Prisma {
3689
3817
  workflow_slug?: true
3690
3818
  session_id?: true
3691
3819
  message_id?: true
3820
+ run_source?: true
3821
+ workflow_api_key_id?: true
3692
3822
  }
3693
3823
 
3694
3824
  export type Workflow_runsMaxAggregateInputType = {
@@ -3703,6 +3833,8 @@ export namespace Prisma {
3703
3833
  workflow_slug?: true
3704
3834
  session_id?: true
3705
3835
  message_id?: true
3836
+ run_source?: true
3837
+ workflow_api_key_id?: true
3706
3838
  }
3707
3839
 
3708
3840
  export type Workflow_runsCountAggregateInputType = {
@@ -3717,6 +3849,8 @@ export namespace Prisma {
3717
3849
  workflow_slug?: true
3718
3850
  session_id?: true
3719
3851
  message_id?: true
3852
+ run_source?: true
3853
+ workflow_api_key_id?: true
3720
3854
  _all?: true
3721
3855
  }
3722
3856
 
@@ -3808,7 +3942,7 @@ export namespace Prisma {
3808
3942
 
3809
3943
  export type Workflow_runsGroupByOutputType = {
3810
3944
  id: string
3811
- ran_by_user_id: string
3945
+ ran_by_user_id: string | null
3812
3946
  status: string
3813
3947
  started_at: bigint
3814
3948
  completed_at: bigint | null
@@ -3818,6 +3952,8 @@ export namespace Prisma {
3818
3952
  workflow_slug: string
3819
3953
  session_id: string | null
3820
3954
  message_id: string | null
3955
+ run_source: string
3956
+ workflow_api_key_id: string | null
3821
3957
  _count: Workflow_runsCountAggregateOutputType | null
3822
3958
  _avg: Workflow_runsAvgAggregateOutputType | null
3823
3959
  _sum: Workflow_runsSumAggregateOutputType | null
@@ -3851,7 +3987,10 @@ export namespace Prisma {
3851
3987
  workflow_slug?: boolean
3852
3988
  session_id?: boolean
3853
3989
  message_id?: boolean
3854
- user?: boolean | usersDefaultArgs<ExtArgs>
3990
+ run_source?: boolean
3991
+ workflow_api_key_id?: boolean
3992
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
3993
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3855
3994
  }, ExtArgs["result"]["workflow_runs"]>
3856
3995
 
3857
3996
  export type workflow_runsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
@@ -3866,7 +4005,10 @@ export namespace Prisma {
3866
4005
  workflow_slug?: boolean
3867
4006
  session_id?: boolean
3868
4007
  message_id?: boolean
3869
- user?: boolean | usersDefaultArgs<ExtArgs>
4008
+ run_source?: boolean
4009
+ workflow_api_key_id?: boolean
4010
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
4011
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3870
4012
  }, ExtArgs["result"]["workflow_runs"]>
3871
4013
 
3872
4014
  export type workflow_runsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
@@ -3881,7 +4023,10 @@ export namespace Prisma {
3881
4023
  workflow_slug?: boolean
3882
4024
  session_id?: boolean
3883
4025
  message_id?: boolean
3884
- user?: boolean | usersDefaultArgs<ExtArgs>
4026
+ run_source?: boolean
4027
+ workflow_api_key_id?: boolean
4028
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
4029
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3885
4030
  }, ExtArgs["result"]["workflow_runs"]>
3886
4031
 
3887
4032
  export type workflow_runsSelectScalar = {
@@ -3896,27 +4041,33 @@ export namespace Prisma {
3896
4041
  workflow_slug?: boolean
3897
4042
  session_id?: boolean
3898
4043
  message_id?: boolean
4044
+ run_source?: boolean
4045
+ workflow_api_key_id?: boolean
3899
4046
  }
3900
4047
 
3901
- export type workflow_runsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ran_by_user_id" | "status" | "started_at" | "completed_at" | "args" | "error_message" | "output" | "workflow_slug" | "session_id" | "message_id", ExtArgs["result"]["workflow_runs"]>
4048
+ export type workflow_runsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ran_by_user_id" | "status" | "started_at" | "completed_at" | "args" | "error_message" | "output" | "workflow_slug" | "session_id" | "message_id" | "run_source" | "workflow_api_key_id", ExtArgs["result"]["workflow_runs"]>
3902
4049
  export type workflow_runsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3903
- user?: boolean | usersDefaultArgs<ExtArgs>
4050
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
4051
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3904
4052
  }
3905
4053
  export type workflow_runsIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3906
- user?: boolean | usersDefaultArgs<ExtArgs>
4054
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
4055
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3907
4056
  }
3908
4057
  export type workflow_runsIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3909
- user?: boolean | usersDefaultArgs<ExtArgs>
4058
+ user?: boolean | workflow_runs$userArgs<ExtArgs>
4059
+ workflowApiKey?: boolean | workflow_runs$workflowApiKeyArgs<ExtArgs>
3910
4060
  }
3911
4061
 
3912
4062
  export type $workflow_runsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3913
4063
  name: "workflow_runs"
3914
4064
  objects: {
3915
- user: Prisma.$usersPayload<ExtArgs>
4065
+ user: Prisma.$usersPayload<ExtArgs> | null
4066
+ workflowApiKey: Prisma.$workflow_api_keysPayload<ExtArgs> | null
3916
4067
  }
3917
4068
  scalars: $Extensions.GetPayloadResult<{
3918
4069
  id: string
3919
- ran_by_user_id: string
4070
+ ran_by_user_id: string | null
3920
4071
  status: string
3921
4072
  started_at: bigint
3922
4073
  completed_at: bigint | null
@@ -3926,6 +4077,8 @@ export namespace Prisma {
3926
4077
  workflow_slug: string
3927
4078
  session_id: string | null
3928
4079
  message_id: string | null
4080
+ run_source: string
4081
+ workflow_api_key_id: string | null
3929
4082
  }, ExtArgs["result"]["workflow_runs"]>
3930
4083
  composites: {}
3931
4084
  }
@@ -4041,21 +4194,1154 @@ export namespace Prisma {
4041
4194
  * })
4042
4195
  *
4043
4196
  */
4044
- createMany<T extends workflow_runsCreateManyArgs>(args?: SelectSubset<T, workflow_runsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4197
+ createMany<T extends workflow_runsCreateManyArgs>(args?: SelectSubset<T, workflow_runsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4198
+
4199
+ /**
4200
+ * Create many Workflow_runs and returns the data saved in the database.
4201
+ * @param {workflow_runsCreateManyAndReturnArgs} args - Arguments to create many Workflow_runs.
4202
+ * @example
4203
+ * // Create many Workflow_runs
4204
+ * const workflow_runs = await prisma.workflow_runs.createManyAndReturn({
4205
+ * data: [
4206
+ * // ... provide data here
4207
+ * ]
4208
+ * })
4209
+ *
4210
+ * // Create many Workflow_runs and only return the `id`
4211
+ * const workflow_runsWithIdOnly = await prisma.workflow_runs.createManyAndReturn({
4212
+ * select: { id: true },
4213
+ * data: [
4214
+ * // ... provide data here
4215
+ * ]
4216
+ * })
4217
+ * Note, that providing `undefined` is treated as the value not being there.
4218
+ * Read more here: https://pris.ly/d/null-undefined
4219
+ *
4220
+ */
4221
+ createManyAndReturn<T extends workflow_runsCreateManyAndReturnArgs>(args?: SelectSubset<T, workflow_runsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
4222
+
4223
+ /**
4224
+ * Delete a Workflow_runs.
4225
+ * @param {workflow_runsDeleteArgs} args - Arguments to delete one Workflow_runs.
4226
+ * @example
4227
+ * // Delete one Workflow_runs
4228
+ * const Workflow_runs = await prisma.workflow_runs.delete({
4229
+ * where: {
4230
+ * // ... filter to delete one Workflow_runs
4231
+ * }
4232
+ * })
4233
+ *
4234
+ */
4235
+ delete<T extends workflow_runsDeleteArgs>(args: SelectSubset<T, workflow_runsDeleteArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4236
+
4237
+ /**
4238
+ * Update one Workflow_runs.
4239
+ * @param {workflow_runsUpdateArgs} args - Arguments to update one Workflow_runs.
4240
+ * @example
4241
+ * // Update one Workflow_runs
4242
+ * const workflow_runs = await prisma.workflow_runs.update({
4243
+ * where: {
4244
+ * // ... provide filter here
4245
+ * },
4246
+ * data: {
4247
+ * // ... provide data here
4248
+ * }
4249
+ * })
4250
+ *
4251
+ */
4252
+ update<T extends workflow_runsUpdateArgs>(args: SelectSubset<T, workflow_runsUpdateArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4253
+
4254
+ /**
4255
+ * Delete zero or more Workflow_runs.
4256
+ * @param {workflow_runsDeleteManyArgs} args - Arguments to filter Workflow_runs to delete.
4257
+ * @example
4258
+ * // Delete a few Workflow_runs
4259
+ * const { count } = await prisma.workflow_runs.deleteMany({
4260
+ * where: {
4261
+ * // ... provide filter here
4262
+ * }
4263
+ * })
4264
+ *
4265
+ */
4266
+ deleteMany<T extends workflow_runsDeleteManyArgs>(args?: SelectSubset<T, workflow_runsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4267
+
4268
+ /**
4269
+ * Update zero or more Workflow_runs.
4270
+ * Note, that providing `undefined` is treated as the value not being there.
4271
+ * Read more here: https://pris.ly/d/null-undefined
4272
+ * @param {workflow_runsUpdateManyArgs} args - Arguments to update one or more rows.
4273
+ * @example
4274
+ * // Update many Workflow_runs
4275
+ * const workflow_runs = await prisma.workflow_runs.updateMany({
4276
+ * where: {
4277
+ * // ... provide filter here
4278
+ * },
4279
+ * data: {
4280
+ * // ... provide data here
4281
+ * }
4282
+ * })
4283
+ *
4284
+ */
4285
+ updateMany<T extends workflow_runsUpdateManyArgs>(args: SelectSubset<T, workflow_runsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4286
+
4287
+ /**
4288
+ * Update zero or more Workflow_runs and returns the data updated in the database.
4289
+ * @param {workflow_runsUpdateManyAndReturnArgs} args - Arguments to update many Workflow_runs.
4290
+ * @example
4291
+ * // Update many Workflow_runs
4292
+ * const workflow_runs = await prisma.workflow_runs.updateManyAndReturn({
4293
+ * where: {
4294
+ * // ... provide filter here
4295
+ * },
4296
+ * data: [
4297
+ * // ... provide data here
4298
+ * ]
4299
+ * })
4300
+ *
4301
+ * // Update zero or more Workflow_runs and only return the `id`
4302
+ * const workflow_runsWithIdOnly = await prisma.workflow_runs.updateManyAndReturn({
4303
+ * select: { id: true },
4304
+ * where: {
4305
+ * // ... provide filter here
4306
+ * },
4307
+ * data: [
4308
+ * // ... provide data here
4309
+ * ]
4310
+ * })
4311
+ * Note, that providing `undefined` is treated as the value not being there.
4312
+ * Read more here: https://pris.ly/d/null-undefined
4313
+ *
4314
+ */
4315
+ updateManyAndReturn<T extends workflow_runsUpdateManyAndReturnArgs>(args: SelectSubset<T, workflow_runsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
4316
+
4317
+ /**
4318
+ * Create or update one Workflow_runs.
4319
+ * @param {workflow_runsUpsertArgs} args - Arguments to update or create a Workflow_runs.
4320
+ * @example
4321
+ * // Update or create a Workflow_runs
4322
+ * const workflow_runs = await prisma.workflow_runs.upsert({
4323
+ * create: {
4324
+ * // ... data to create a Workflow_runs
4325
+ * },
4326
+ * update: {
4327
+ * // ... in case it already exists, update
4328
+ * },
4329
+ * where: {
4330
+ * // ... the filter for the Workflow_runs we want to update
4331
+ * }
4332
+ * })
4333
+ */
4334
+ upsert<T extends workflow_runsUpsertArgs>(args: SelectSubset<T, workflow_runsUpsertArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4335
+
4336
+
4337
+ /**
4338
+ * Count the number of Workflow_runs.
4339
+ * Note, that providing `undefined` is treated as the value not being there.
4340
+ * Read more here: https://pris.ly/d/null-undefined
4341
+ * @param {workflow_runsCountArgs} args - Arguments to filter Workflow_runs to count.
4342
+ * @example
4343
+ * // Count the number of Workflow_runs
4344
+ * const count = await prisma.workflow_runs.count({
4345
+ * where: {
4346
+ * // ... the filter for the Workflow_runs we want to count
4347
+ * }
4348
+ * })
4349
+ **/
4350
+ count<T extends workflow_runsCountArgs>(
4351
+ args?: Subset<T, workflow_runsCountArgs>,
4352
+ ): Prisma.PrismaPromise<
4353
+ T extends $Utils.Record<'select', any>
4354
+ ? T['select'] extends true
4355
+ ? number
4356
+ : GetScalarType<T['select'], Workflow_runsCountAggregateOutputType>
4357
+ : number
4358
+ >
4359
+
4360
+ /**
4361
+ * Allows you to perform aggregations operations on a Workflow_runs.
4362
+ * Note, that providing `undefined` is treated as the value not being there.
4363
+ * Read more here: https://pris.ly/d/null-undefined
4364
+ * @param {Workflow_runsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
4365
+ * @example
4366
+ * // Ordered by age ascending
4367
+ * // Where email contains prisma.io
4368
+ * // Limited to the 10 users
4369
+ * const aggregations = await prisma.user.aggregate({
4370
+ * _avg: {
4371
+ * age: true,
4372
+ * },
4373
+ * where: {
4374
+ * email: {
4375
+ * contains: "prisma.io",
4376
+ * },
4377
+ * },
4378
+ * orderBy: {
4379
+ * age: "asc",
4380
+ * },
4381
+ * take: 10,
4382
+ * })
4383
+ **/
4384
+ aggregate<T extends Workflow_runsAggregateArgs>(args: Subset<T, Workflow_runsAggregateArgs>): Prisma.PrismaPromise<GetWorkflow_runsAggregateType<T>>
4385
+
4386
+ /**
4387
+ * Group by Workflow_runs.
4388
+ * Note, that providing `undefined` is treated as the value not being there.
4389
+ * Read more here: https://pris.ly/d/null-undefined
4390
+ * @param {workflow_runsGroupByArgs} args - Group by arguments.
4391
+ * @example
4392
+ * // Group by city, order by createdAt, get count
4393
+ * const result = await prisma.user.groupBy({
4394
+ * by: ['city', 'createdAt'],
4395
+ * orderBy: {
4396
+ * createdAt: true
4397
+ * },
4398
+ * _count: {
4399
+ * _all: true
4400
+ * },
4401
+ * })
4402
+ *
4403
+ **/
4404
+ groupBy<
4405
+ T extends workflow_runsGroupByArgs,
4406
+ HasSelectOrTake extends Or<
4407
+ Extends<'skip', Keys<T>>,
4408
+ Extends<'take', Keys<T>>
4409
+ >,
4410
+ OrderByArg extends True extends HasSelectOrTake
4411
+ ? { orderBy: workflow_runsGroupByArgs['orderBy'] }
4412
+ : { orderBy?: workflow_runsGroupByArgs['orderBy'] },
4413
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
4414
+ ByFields extends MaybeTupleToUnion<T['by']>,
4415
+ ByValid extends Has<ByFields, OrderFields>,
4416
+ HavingFields extends GetHavingFields<T['having']>,
4417
+ HavingValid extends Has<ByFields, HavingFields>,
4418
+ ByEmpty extends T['by'] extends never[] ? True : False,
4419
+ InputErrors extends ByEmpty extends True
4420
+ ? `Error: "by" must not be empty.`
4421
+ : HavingValid extends False
4422
+ ? {
4423
+ [P in HavingFields]: P extends ByFields
4424
+ ? never
4425
+ : P extends string
4426
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
4427
+ : [
4428
+ Error,
4429
+ 'Field ',
4430
+ P,
4431
+ ` in "having" needs to be provided in "by"`,
4432
+ ]
4433
+ }[HavingFields]
4434
+ : 'take' extends Keys<T>
4435
+ ? 'orderBy' extends Keys<T>
4436
+ ? ByValid extends True
4437
+ ? {}
4438
+ : {
4439
+ [P in OrderFields]: P extends ByFields
4440
+ ? never
4441
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
4442
+ }[OrderFields]
4443
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
4444
+ : 'skip' extends Keys<T>
4445
+ ? 'orderBy' extends Keys<T>
4446
+ ? ByValid extends True
4447
+ ? {}
4448
+ : {
4449
+ [P in OrderFields]: P extends ByFields
4450
+ ? never
4451
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
4452
+ }[OrderFields]
4453
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
4454
+ : ByValid extends True
4455
+ ? {}
4456
+ : {
4457
+ [P in OrderFields]: P extends ByFields
4458
+ ? never
4459
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
4460
+ }[OrderFields]
4461
+ >(args: SubsetIntersection<T, workflow_runsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflow_runsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
4462
+ /**
4463
+ * Fields of the workflow_runs model
4464
+ */
4465
+ readonly fields: workflow_runsFieldRefs;
4466
+ }
4467
+
4468
+ /**
4469
+ * The delegate class that acts as a "Promise-like" for workflow_runs.
4470
+ * Why is this prefixed with `Prisma__`?
4471
+ * Because we want to prevent naming conflicts as mentioned in
4472
+ * https://github.com/prisma/prisma-client-js/issues/707
4473
+ */
4474
+ export interface Prisma__workflow_runsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
4475
+ readonly [Symbol.toStringTag]: "PrismaPromise"
4476
+ user<T extends workflow_runs$userArgs<ExtArgs> = {}>(args?: Subset<T, workflow_runs$userArgs<ExtArgs>>): Prisma__usersClient<$Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
4477
+ workflowApiKey<T extends workflow_runs$workflowApiKeyArgs<ExtArgs> = {}>(args?: Subset<T, workflow_runs$workflowApiKeyArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
4478
+ /**
4479
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
4480
+ * @param onfulfilled The callback to execute when the Promise is resolved.
4481
+ * @param onrejected The callback to execute when the Promise is rejected.
4482
+ * @returns A Promise for the completion of which ever callback is executed.
4483
+ */
4484
+ 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>
4485
+ /**
4486
+ * Attaches a callback for only the rejection of the Promise.
4487
+ * @param onrejected The callback to execute when the Promise is rejected.
4488
+ * @returns A Promise for the completion of the callback.
4489
+ */
4490
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
4491
+ /**
4492
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
4493
+ * resolved value cannot be modified from the callback.
4494
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
4495
+ * @returns A Promise for the completion of the callback.
4496
+ */
4497
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
4498
+ }
4499
+
4500
+
4501
+
4502
+
4503
+ /**
4504
+ * Fields of the workflow_runs model
4505
+ */
4506
+ interface workflow_runsFieldRefs {
4507
+ readonly id: FieldRef<"workflow_runs", 'String'>
4508
+ readonly ran_by_user_id: FieldRef<"workflow_runs", 'String'>
4509
+ readonly status: FieldRef<"workflow_runs", 'String'>
4510
+ readonly started_at: FieldRef<"workflow_runs", 'BigInt'>
4511
+ readonly completed_at: FieldRef<"workflow_runs", 'BigInt'>
4512
+ readonly args: FieldRef<"workflow_runs", 'String'>
4513
+ readonly error_message: FieldRef<"workflow_runs", 'String'>
4514
+ readonly output: FieldRef<"workflow_runs", 'String'>
4515
+ readonly workflow_slug: FieldRef<"workflow_runs", 'String'>
4516
+ readonly session_id: FieldRef<"workflow_runs", 'String'>
4517
+ readonly message_id: FieldRef<"workflow_runs", 'String'>
4518
+ readonly run_source: FieldRef<"workflow_runs", 'String'>
4519
+ readonly workflow_api_key_id: FieldRef<"workflow_runs", 'String'>
4520
+ }
4521
+
4522
+
4523
+ // Custom InputTypes
4524
+ /**
4525
+ * workflow_runs findUnique
4526
+ */
4527
+ export type workflow_runsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4528
+ /**
4529
+ * Select specific fields to fetch from the workflow_runs
4530
+ */
4531
+ select?: workflow_runsSelect<ExtArgs> | null
4532
+ /**
4533
+ * Omit specific fields from the workflow_runs
4534
+ */
4535
+ omit?: workflow_runsOmit<ExtArgs> | null
4536
+ /**
4537
+ * Choose, which related nodes to fetch as well
4538
+ */
4539
+ include?: workflow_runsInclude<ExtArgs> | null
4540
+ /**
4541
+ * Filter, which workflow_runs to fetch.
4542
+ */
4543
+ where: workflow_runsWhereUniqueInput
4544
+ }
4545
+
4546
+ /**
4547
+ * workflow_runs findUniqueOrThrow
4548
+ */
4549
+ export type workflow_runsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4550
+ /**
4551
+ * Select specific fields to fetch from the workflow_runs
4552
+ */
4553
+ select?: workflow_runsSelect<ExtArgs> | null
4554
+ /**
4555
+ * Omit specific fields from the workflow_runs
4556
+ */
4557
+ omit?: workflow_runsOmit<ExtArgs> | null
4558
+ /**
4559
+ * Choose, which related nodes to fetch as well
4560
+ */
4561
+ include?: workflow_runsInclude<ExtArgs> | null
4562
+ /**
4563
+ * Filter, which workflow_runs to fetch.
4564
+ */
4565
+ where: workflow_runsWhereUniqueInput
4566
+ }
4567
+
4568
+ /**
4569
+ * workflow_runs findFirst
4570
+ */
4571
+ export type workflow_runsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4572
+ /**
4573
+ * Select specific fields to fetch from the workflow_runs
4574
+ */
4575
+ select?: workflow_runsSelect<ExtArgs> | null
4576
+ /**
4577
+ * Omit specific fields from the workflow_runs
4578
+ */
4579
+ omit?: workflow_runsOmit<ExtArgs> | null
4580
+ /**
4581
+ * Choose, which related nodes to fetch as well
4582
+ */
4583
+ include?: workflow_runsInclude<ExtArgs> | null
4584
+ /**
4585
+ * Filter, which workflow_runs to fetch.
4586
+ */
4587
+ where?: workflow_runsWhereInput
4588
+ /**
4589
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4590
+ *
4591
+ * Determine the order of workflow_runs to fetch.
4592
+ */
4593
+ orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
4594
+ /**
4595
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4596
+ *
4597
+ * Sets the position for searching for workflow_runs.
4598
+ */
4599
+ cursor?: workflow_runsWhereUniqueInput
4600
+ /**
4601
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4602
+ *
4603
+ * Take `±n` workflow_runs from the position of the cursor.
4604
+ */
4605
+ take?: number
4606
+ /**
4607
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4608
+ *
4609
+ * Skip the first `n` workflow_runs.
4610
+ */
4611
+ skip?: number
4612
+ /**
4613
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4614
+ *
4615
+ * Filter by unique combinations of workflow_runs.
4616
+ */
4617
+ distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
4618
+ }
4619
+
4620
+ /**
4621
+ * workflow_runs findFirstOrThrow
4622
+ */
4623
+ export type workflow_runsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4624
+ /**
4625
+ * Select specific fields to fetch from the workflow_runs
4626
+ */
4627
+ select?: workflow_runsSelect<ExtArgs> | null
4628
+ /**
4629
+ * Omit specific fields from the workflow_runs
4630
+ */
4631
+ omit?: workflow_runsOmit<ExtArgs> | null
4632
+ /**
4633
+ * Choose, which related nodes to fetch as well
4634
+ */
4635
+ include?: workflow_runsInclude<ExtArgs> | null
4636
+ /**
4637
+ * Filter, which workflow_runs to fetch.
4638
+ */
4639
+ where?: workflow_runsWhereInput
4640
+ /**
4641
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4642
+ *
4643
+ * Determine the order of workflow_runs to fetch.
4644
+ */
4645
+ orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
4646
+ /**
4647
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4648
+ *
4649
+ * Sets the position for searching for workflow_runs.
4650
+ */
4651
+ cursor?: workflow_runsWhereUniqueInput
4652
+ /**
4653
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4654
+ *
4655
+ * Take `±n` workflow_runs from the position of the cursor.
4656
+ */
4657
+ take?: number
4658
+ /**
4659
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4660
+ *
4661
+ * Skip the first `n` workflow_runs.
4662
+ */
4663
+ skip?: number
4664
+ /**
4665
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4666
+ *
4667
+ * Filter by unique combinations of workflow_runs.
4668
+ */
4669
+ distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
4670
+ }
4671
+
4672
+ /**
4673
+ * workflow_runs findMany
4674
+ */
4675
+ export type workflow_runsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4676
+ /**
4677
+ * Select specific fields to fetch from the workflow_runs
4678
+ */
4679
+ select?: workflow_runsSelect<ExtArgs> | null
4680
+ /**
4681
+ * Omit specific fields from the workflow_runs
4682
+ */
4683
+ omit?: workflow_runsOmit<ExtArgs> | null
4684
+ /**
4685
+ * Choose, which related nodes to fetch as well
4686
+ */
4687
+ include?: workflow_runsInclude<ExtArgs> | null
4688
+ /**
4689
+ * Filter, which workflow_runs to fetch.
4690
+ */
4691
+ where?: workflow_runsWhereInput
4692
+ /**
4693
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4694
+ *
4695
+ * Determine the order of workflow_runs to fetch.
4696
+ */
4697
+ orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
4698
+ /**
4699
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4700
+ *
4701
+ * Sets the position for listing workflow_runs.
4702
+ */
4703
+ cursor?: workflow_runsWhereUniqueInput
4704
+ /**
4705
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4706
+ *
4707
+ * Take `±n` workflow_runs from the position of the cursor.
4708
+ */
4709
+ take?: number
4710
+ /**
4711
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4712
+ *
4713
+ * Skip the first `n` workflow_runs.
4714
+ */
4715
+ skip?: number
4716
+ distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
4717
+ }
4718
+
4719
+ /**
4720
+ * workflow_runs create
4721
+ */
4722
+ export type workflow_runsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4723
+ /**
4724
+ * Select specific fields to fetch from the workflow_runs
4725
+ */
4726
+ select?: workflow_runsSelect<ExtArgs> | null
4727
+ /**
4728
+ * Omit specific fields from the workflow_runs
4729
+ */
4730
+ omit?: workflow_runsOmit<ExtArgs> | null
4731
+ /**
4732
+ * Choose, which related nodes to fetch as well
4733
+ */
4734
+ include?: workflow_runsInclude<ExtArgs> | null
4735
+ /**
4736
+ * The data needed to create a workflow_runs.
4737
+ */
4738
+ data: XOR<workflow_runsCreateInput, workflow_runsUncheckedCreateInput>
4739
+ }
4740
+
4741
+ /**
4742
+ * workflow_runs createMany
4743
+ */
4744
+ export type workflow_runsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4745
+ /**
4746
+ * The data used to create many workflow_runs.
4747
+ */
4748
+ data: workflow_runsCreateManyInput | workflow_runsCreateManyInput[]
4749
+ }
4750
+
4751
+ /**
4752
+ * workflow_runs createManyAndReturn
4753
+ */
4754
+ export type workflow_runsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4755
+ /**
4756
+ * Select specific fields to fetch from the workflow_runs
4757
+ */
4758
+ select?: workflow_runsSelectCreateManyAndReturn<ExtArgs> | null
4759
+ /**
4760
+ * Omit specific fields from the workflow_runs
4761
+ */
4762
+ omit?: workflow_runsOmit<ExtArgs> | null
4763
+ /**
4764
+ * The data used to create many workflow_runs.
4765
+ */
4766
+ data: workflow_runsCreateManyInput | workflow_runsCreateManyInput[]
4767
+ /**
4768
+ * Choose, which related nodes to fetch as well
4769
+ */
4770
+ include?: workflow_runsIncludeCreateManyAndReturn<ExtArgs> | null
4771
+ }
4772
+
4773
+ /**
4774
+ * workflow_runs update
4775
+ */
4776
+ export type workflow_runsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4777
+ /**
4778
+ * Select specific fields to fetch from the workflow_runs
4779
+ */
4780
+ select?: workflow_runsSelect<ExtArgs> | null
4781
+ /**
4782
+ * Omit specific fields from the workflow_runs
4783
+ */
4784
+ omit?: workflow_runsOmit<ExtArgs> | null
4785
+ /**
4786
+ * Choose, which related nodes to fetch as well
4787
+ */
4788
+ include?: workflow_runsInclude<ExtArgs> | null
4789
+ /**
4790
+ * The data needed to update a workflow_runs.
4791
+ */
4792
+ data: XOR<workflow_runsUpdateInput, workflow_runsUncheckedUpdateInput>
4793
+ /**
4794
+ * Choose, which workflow_runs to update.
4795
+ */
4796
+ where: workflow_runsWhereUniqueInput
4797
+ }
4798
+
4799
+ /**
4800
+ * workflow_runs updateMany
4801
+ */
4802
+ export type workflow_runsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4803
+ /**
4804
+ * The data used to update workflow_runs.
4805
+ */
4806
+ data: XOR<workflow_runsUpdateManyMutationInput, workflow_runsUncheckedUpdateManyInput>
4807
+ /**
4808
+ * Filter which workflow_runs to update
4809
+ */
4810
+ where?: workflow_runsWhereInput
4811
+ /**
4812
+ * Limit how many workflow_runs to update.
4813
+ */
4814
+ limit?: number
4815
+ }
4816
+
4817
+ /**
4818
+ * workflow_runs updateManyAndReturn
4819
+ */
4820
+ export type workflow_runsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4821
+ /**
4822
+ * Select specific fields to fetch from the workflow_runs
4823
+ */
4824
+ select?: workflow_runsSelectUpdateManyAndReturn<ExtArgs> | null
4825
+ /**
4826
+ * Omit specific fields from the workflow_runs
4827
+ */
4828
+ omit?: workflow_runsOmit<ExtArgs> | null
4829
+ /**
4830
+ * The data used to update workflow_runs.
4831
+ */
4832
+ data: XOR<workflow_runsUpdateManyMutationInput, workflow_runsUncheckedUpdateManyInput>
4833
+ /**
4834
+ * Filter which workflow_runs to update
4835
+ */
4836
+ where?: workflow_runsWhereInput
4837
+ /**
4838
+ * Limit how many workflow_runs to update.
4839
+ */
4840
+ limit?: number
4841
+ /**
4842
+ * Choose, which related nodes to fetch as well
4843
+ */
4844
+ include?: workflow_runsIncludeUpdateManyAndReturn<ExtArgs> | null
4845
+ }
4846
+
4847
+ /**
4848
+ * workflow_runs upsert
4849
+ */
4850
+ export type workflow_runsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4851
+ /**
4852
+ * Select specific fields to fetch from the workflow_runs
4853
+ */
4854
+ select?: workflow_runsSelect<ExtArgs> | null
4855
+ /**
4856
+ * Omit specific fields from the workflow_runs
4857
+ */
4858
+ omit?: workflow_runsOmit<ExtArgs> | null
4859
+ /**
4860
+ * Choose, which related nodes to fetch as well
4861
+ */
4862
+ include?: workflow_runsInclude<ExtArgs> | null
4863
+ /**
4864
+ * The filter to search for the workflow_runs to update in case it exists.
4865
+ */
4866
+ where: workflow_runsWhereUniqueInput
4867
+ /**
4868
+ * In case the workflow_runs found by the `where` argument doesn't exist, create a new workflow_runs with this data.
4869
+ */
4870
+ create: XOR<workflow_runsCreateInput, workflow_runsUncheckedCreateInput>
4871
+ /**
4872
+ * In case the workflow_runs was found with the provided `where` argument, update it with this data.
4873
+ */
4874
+ update: XOR<workflow_runsUpdateInput, workflow_runsUncheckedUpdateInput>
4875
+ }
4876
+
4877
+ /**
4878
+ * workflow_runs delete
4879
+ */
4880
+ export type workflow_runsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4881
+ /**
4882
+ * Select specific fields to fetch from the workflow_runs
4883
+ */
4884
+ select?: workflow_runsSelect<ExtArgs> | null
4885
+ /**
4886
+ * Omit specific fields from the workflow_runs
4887
+ */
4888
+ omit?: workflow_runsOmit<ExtArgs> | null
4889
+ /**
4890
+ * Choose, which related nodes to fetch as well
4891
+ */
4892
+ include?: workflow_runsInclude<ExtArgs> | null
4893
+ /**
4894
+ * Filter which workflow_runs to delete.
4895
+ */
4896
+ where: workflow_runsWhereUniqueInput
4897
+ }
4898
+
4899
+ /**
4900
+ * workflow_runs deleteMany
4901
+ */
4902
+ export type workflow_runsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4903
+ /**
4904
+ * Filter which workflow_runs to delete
4905
+ */
4906
+ where?: workflow_runsWhereInput
4907
+ /**
4908
+ * Limit how many workflow_runs to delete.
4909
+ */
4910
+ limit?: number
4911
+ }
4912
+
4913
+ /**
4914
+ * workflow_runs.user
4915
+ */
4916
+ export type workflow_runs$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4917
+ /**
4918
+ * Select specific fields to fetch from the users
4919
+ */
4920
+ select?: usersSelect<ExtArgs> | null
4921
+ /**
4922
+ * Omit specific fields from the users
4923
+ */
4924
+ omit?: usersOmit<ExtArgs> | null
4925
+ /**
4926
+ * Choose, which related nodes to fetch as well
4927
+ */
4928
+ include?: usersInclude<ExtArgs> | null
4929
+ where?: usersWhereInput
4930
+ }
4931
+
4932
+ /**
4933
+ * workflow_runs.workflowApiKey
4934
+ */
4935
+ export type workflow_runs$workflowApiKeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4936
+ /**
4937
+ * Select specific fields to fetch from the workflow_api_keys
4938
+ */
4939
+ select?: workflow_api_keysSelect<ExtArgs> | null
4940
+ /**
4941
+ * Omit specific fields from the workflow_api_keys
4942
+ */
4943
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4944
+ /**
4945
+ * Choose, which related nodes to fetch as well
4946
+ */
4947
+ include?: workflow_api_keysInclude<ExtArgs> | null
4948
+ where?: workflow_api_keysWhereInput
4949
+ }
4950
+
4951
+ /**
4952
+ * workflow_runs without action
4953
+ */
4954
+ export type workflow_runsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4955
+ /**
4956
+ * Select specific fields to fetch from the workflow_runs
4957
+ */
4958
+ select?: workflow_runsSelect<ExtArgs> | null
4959
+ /**
4960
+ * Omit specific fields from the workflow_runs
4961
+ */
4962
+ omit?: workflow_runsOmit<ExtArgs> | null
4963
+ /**
4964
+ * Choose, which related nodes to fetch as well
4965
+ */
4966
+ include?: workflow_runsInclude<ExtArgs> | null
4967
+ }
4968
+
4969
+
4970
+ /**
4971
+ * Model workflow_api_keys
4972
+ */
4973
+
4974
+ export type AggregateWorkflow_api_keys = {
4975
+ _count: Workflow_api_keysCountAggregateOutputType | null
4976
+ _avg: Workflow_api_keysAvgAggregateOutputType | null
4977
+ _sum: Workflow_api_keysSumAggregateOutputType | null
4978
+ _min: Workflow_api_keysMinAggregateOutputType | null
4979
+ _max: Workflow_api_keysMaxAggregateOutputType | null
4980
+ }
4981
+
4982
+ export type Workflow_api_keysAvgAggregateOutputType = {
4983
+ created_at: number | null
4984
+ }
4985
+
4986
+ export type Workflow_api_keysSumAggregateOutputType = {
4987
+ created_at: bigint | null
4988
+ }
4989
+
4990
+ export type Workflow_api_keysMinAggregateOutputType = {
4991
+ id: string | null
4992
+ workflow_slug: string | null
4993
+ api_key: string | null
4994
+ created_by_user_id: string | null
4995
+ created_at: bigint | null
4996
+ }
4997
+
4998
+ export type Workflow_api_keysMaxAggregateOutputType = {
4999
+ id: string | null
5000
+ workflow_slug: string | null
5001
+ api_key: string | null
5002
+ created_by_user_id: string | null
5003
+ created_at: bigint | null
5004
+ }
5005
+
5006
+ export type Workflow_api_keysCountAggregateOutputType = {
5007
+ id: number
5008
+ workflow_slug: number
5009
+ api_key: number
5010
+ created_by_user_id: number
5011
+ created_at: number
5012
+ _all: number
5013
+ }
5014
+
5015
+
5016
+ export type Workflow_api_keysAvgAggregateInputType = {
5017
+ created_at?: true
5018
+ }
5019
+
5020
+ export type Workflow_api_keysSumAggregateInputType = {
5021
+ created_at?: true
5022
+ }
5023
+
5024
+ export type Workflow_api_keysMinAggregateInputType = {
5025
+ id?: true
5026
+ workflow_slug?: true
5027
+ api_key?: true
5028
+ created_by_user_id?: true
5029
+ created_at?: true
5030
+ }
5031
+
5032
+ export type Workflow_api_keysMaxAggregateInputType = {
5033
+ id?: true
5034
+ workflow_slug?: true
5035
+ api_key?: true
5036
+ created_by_user_id?: true
5037
+ created_at?: true
5038
+ }
5039
+
5040
+ export type Workflow_api_keysCountAggregateInputType = {
5041
+ id?: true
5042
+ workflow_slug?: true
5043
+ api_key?: true
5044
+ created_by_user_id?: true
5045
+ created_at?: true
5046
+ _all?: true
5047
+ }
5048
+
5049
+ export type Workflow_api_keysAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5050
+ /**
5051
+ * Filter which workflow_api_keys to aggregate.
5052
+ */
5053
+ where?: workflow_api_keysWhereInput
5054
+ /**
5055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5056
+ *
5057
+ * Determine the order of workflow_api_keys to fetch.
5058
+ */
5059
+ orderBy?: workflow_api_keysOrderByWithRelationInput | workflow_api_keysOrderByWithRelationInput[]
5060
+ /**
5061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5062
+ *
5063
+ * Sets the start position
5064
+ */
5065
+ cursor?: workflow_api_keysWhereUniqueInput
5066
+ /**
5067
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5068
+ *
5069
+ * Take `±n` workflow_api_keys from the position of the cursor.
5070
+ */
5071
+ take?: number
5072
+ /**
5073
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5074
+ *
5075
+ * Skip the first `n` workflow_api_keys.
5076
+ */
5077
+ skip?: number
5078
+ /**
5079
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5080
+ *
5081
+ * Count returned workflow_api_keys
5082
+ **/
5083
+ _count?: true | Workflow_api_keysCountAggregateInputType
5084
+ /**
5085
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5086
+ *
5087
+ * Select which fields to average
5088
+ **/
5089
+ _avg?: Workflow_api_keysAvgAggregateInputType
5090
+ /**
5091
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5092
+ *
5093
+ * Select which fields to sum
5094
+ **/
5095
+ _sum?: Workflow_api_keysSumAggregateInputType
5096
+ /**
5097
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5098
+ *
5099
+ * Select which fields to find the minimum value
5100
+ **/
5101
+ _min?: Workflow_api_keysMinAggregateInputType
5102
+ /**
5103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5104
+ *
5105
+ * Select which fields to find the maximum value
5106
+ **/
5107
+ _max?: Workflow_api_keysMaxAggregateInputType
5108
+ }
5109
+
5110
+ export type GetWorkflow_api_keysAggregateType<T extends Workflow_api_keysAggregateArgs> = {
5111
+ [P in keyof T & keyof AggregateWorkflow_api_keys]: P extends '_count' | 'count'
5112
+ ? T[P] extends true
5113
+ ? number
5114
+ : GetScalarType<T[P], AggregateWorkflow_api_keys[P]>
5115
+ : GetScalarType<T[P], AggregateWorkflow_api_keys[P]>
5116
+ }
5117
+
5118
+
5119
+
5120
+
5121
+ export type workflow_api_keysGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5122
+ where?: workflow_api_keysWhereInput
5123
+ orderBy?: workflow_api_keysOrderByWithAggregationInput | workflow_api_keysOrderByWithAggregationInput[]
5124
+ by: Workflow_api_keysScalarFieldEnum[] | Workflow_api_keysScalarFieldEnum
5125
+ having?: workflow_api_keysScalarWhereWithAggregatesInput
5126
+ take?: number
5127
+ skip?: number
5128
+ _count?: Workflow_api_keysCountAggregateInputType | true
5129
+ _avg?: Workflow_api_keysAvgAggregateInputType
5130
+ _sum?: Workflow_api_keysSumAggregateInputType
5131
+ _min?: Workflow_api_keysMinAggregateInputType
5132
+ _max?: Workflow_api_keysMaxAggregateInputType
5133
+ }
5134
+
5135
+ export type Workflow_api_keysGroupByOutputType = {
5136
+ id: string
5137
+ workflow_slug: string
5138
+ api_key: string
5139
+ created_by_user_id: string
5140
+ created_at: bigint
5141
+ _count: Workflow_api_keysCountAggregateOutputType | null
5142
+ _avg: Workflow_api_keysAvgAggregateOutputType | null
5143
+ _sum: Workflow_api_keysSumAggregateOutputType | null
5144
+ _min: Workflow_api_keysMinAggregateOutputType | null
5145
+ _max: Workflow_api_keysMaxAggregateOutputType | null
5146
+ }
5147
+
5148
+ type GetWorkflow_api_keysGroupByPayload<T extends workflow_api_keysGroupByArgs> = Prisma.PrismaPromise<
5149
+ Array<
5150
+ PickEnumerable<Workflow_api_keysGroupByOutputType, T['by']> &
5151
+ {
5152
+ [P in ((keyof T) & (keyof Workflow_api_keysGroupByOutputType))]: P extends '_count'
5153
+ ? T[P] extends boolean
5154
+ ? number
5155
+ : GetScalarType<T[P], Workflow_api_keysGroupByOutputType[P]>
5156
+ : GetScalarType<T[P], Workflow_api_keysGroupByOutputType[P]>
5157
+ }
5158
+ >
5159
+ >
5160
+
5161
+
5162
+ export type workflow_api_keysSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5163
+ id?: boolean
5164
+ workflow_slug?: boolean
5165
+ api_key?: boolean
5166
+ created_by_user_id?: boolean
5167
+ created_at?: boolean
5168
+ workflowRuns?: boolean | workflow_api_keys$workflowRunsArgs<ExtArgs>
5169
+ _count?: boolean | Workflow_api_keysCountOutputTypeDefaultArgs<ExtArgs>
5170
+ }, ExtArgs["result"]["workflow_api_keys"]>
5171
+
5172
+ export type workflow_api_keysSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5173
+ id?: boolean
5174
+ workflow_slug?: boolean
5175
+ api_key?: boolean
5176
+ created_by_user_id?: boolean
5177
+ created_at?: boolean
5178
+ }, ExtArgs["result"]["workflow_api_keys"]>
5179
+
5180
+ export type workflow_api_keysSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5181
+ id?: boolean
5182
+ workflow_slug?: boolean
5183
+ api_key?: boolean
5184
+ created_by_user_id?: boolean
5185
+ created_at?: boolean
5186
+ }, ExtArgs["result"]["workflow_api_keys"]>
5187
+
5188
+ export type workflow_api_keysSelectScalar = {
5189
+ id?: boolean
5190
+ workflow_slug?: boolean
5191
+ api_key?: boolean
5192
+ created_by_user_id?: boolean
5193
+ created_at?: boolean
5194
+ }
5195
+
5196
+ export type workflow_api_keysOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workflow_slug" | "api_key" | "created_by_user_id" | "created_at", ExtArgs["result"]["workflow_api_keys"]>
5197
+ export type workflow_api_keysInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5198
+ workflowRuns?: boolean | workflow_api_keys$workflowRunsArgs<ExtArgs>
5199
+ _count?: boolean | Workflow_api_keysCountOutputTypeDefaultArgs<ExtArgs>
5200
+ }
5201
+ export type workflow_api_keysIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
5202
+ export type workflow_api_keysIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
5203
+
5204
+ export type $workflow_api_keysPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5205
+ name: "workflow_api_keys"
5206
+ objects: {
5207
+ workflowRuns: Prisma.$workflow_runsPayload<ExtArgs>[]
5208
+ }
5209
+ scalars: $Extensions.GetPayloadResult<{
5210
+ id: string
5211
+ workflow_slug: string
5212
+ api_key: string
5213
+ created_by_user_id: string
5214
+ created_at: bigint
5215
+ }, ExtArgs["result"]["workflow_api_keys"]>
5216
+ composites: {}
5217
+ }
5218
+
5219
+ type workflow_api_keysGetPayload<S extends boolean | null | undefined | workflow_api_keysDefaultArgs> = $Result.GetResult<Prisma.$workflow_api_keysPayload, S>
5220
+
5221
+ type workflow_api_keysCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
5222
+ Omit<workflow_api_keysFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
5223
+ select?: Workflow_api_keysCountAggregateInputType | true
5224
+ }
5225
+
5226
+ export interface workflow_api_keysDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
5227
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['workflow_api_keys'], meta: { name: 'workflow_api_keys' } }
5228
+ /**
5229
+ * Find zero or one Workflow_api_keys that matches the filter.
5230
+ * @param {workflow_api_keysFindUniqueArgs} args - Arguments to find a Workflow_api_keys
5231
+ * @example
5232
+ * // Get one Workflow_api_keys
5233
+ * const workflow_api_keys = await prisma.workflow_api_keys.findUnique({
5234
+ * where: {
5235
+ * // ... provide filter here
5236
+ * }
5237
+ * })
5238
+ */
5239
+ findUnique<T extends workflow_api_keysFindUniqueArgs>(args: SelectSubset<T, workflow_api_keysFindUniqueArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
5240
+
5241
+ /**
5242
+ * Find one Workflow_api_keys that matches the filter or throw an error with `error.code='P2025'`
5243
+ * if no matches were found.
5244
+ * @param {workflow_api_keysFindUniqueOrThrowArgs} args - Arguments to find a Workflow_api_keys
5245
+ * @example
5246
+ * // Get one Workflow_api_keys
5247
+ * const workflow_api_keys = await prisma.workflow_api_keys.findUniqueOrThrow({
5248
+ * where: {
5249
+ * // ... provide filter here
5250
+ * }
5251
+ * })
5252
+ */
5253
+ findUniqueOrThrow<T extends workflow_api_keysFindUniqueOrThrowArgs>(args: SelectSubset<T, workflow_api_keysFindUniqueOrThrowArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5254
+
5255
+ /**
5256
+ * Find the first Workflow_api_keys that matches the filter.
5257
+ * Note, that providing `undefined` is treated as the value not being there.
5258
+ * Read more here: https://pris.ly/d/null-undefined
5259
+ * @param {workflow_api_keysFindFirstArgs} args - Arguments to find a Workflow_api_keys
5260
+ * @example
5261
+ * // Get one Workflow_api_keys
5262
+ * const workflow_api_keys = await prisma.workflow_api_keys.findFirst({
5263
+ * where: {
5264
+ * // ... provide filter here
5265
+ * }
5266
+ * })
5267
+ */
5268
+ findFirst<T extends workflow_api_keysFindFirstArgs>(args?: SelectSubset<T, workflow_api_keysFindFirstArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
5269
+
5270
+ /**
5271
+ * Find the first Workflow_api_keys that matches the filter or
5272
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
5273
+ * Note, that providing `undefined` is treated as the value not being there.
5274
+ * Read more here: https://pris.ly/d/null-undefined
5275
+ * @param {workflow_api_keysFindFirstOrThrowArgs} args - Arguments to find a Workflow_api_keys
5276
+ * @example
5277
+ * // Get one Workflow_api_keys
5278
+ * const workflow_api_keys = await prisma.workflow_api_keys.findFirstOrThrow({
5279
+ * where: {
5280
+ * // ... provide filter here
5281
+ * }
5282
+ * })
5283
+ */
5284
+ findFirstOrThrow<T extends workflow_api_keysFindFirstOrThrowArgs>(args?: SelectSubset<T, workflow_api_keysFindFirstOrThrowArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5285
+
5286
+ /**
5287
+ * Find zero or more Workflow_api_keys that matches the filter.
5288
+ * Note, that providing `undefined` is treated as the value not being there.
5289
+ * Read more here: https://pris.ly/d/null-undefined
5290
+ * @param {workflow_api_keysFindManyArgs} args - Arguments to filter and select certain fields only.
5291
+ * @example
5292
+ * // Get all Workflow_api_keys
5293
+ * const workflow_api_keys = await prisma.workflow_api_keys.findMany()
5294
+ *
5295
+ * // Get first 10 Workflow_api_keys
5296
+ * const workflow_api_keys = await prisma.workflow_api_keys.findMany({ take: 10 })
5297
+ *
5298
+ * // Only select the `id`
5299
+ * const workflow_api_keysWithIdOnly = await prisma.workflow_api_keys.findMany({ select: { id: true } })
5300
+ *
5301
+ */
5302
+ findMany<T extends workflow_api_keysFindManyArgs>(args?: SelectSubset<T, workflow_api_keysFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
5303
+
5304
+ /**
5305
+ * Create a Workflow_api_keys.
5306
+ * @param {workflow_api_keysCreateArgs} args - Arguments to create a Workflow_api_keys.
5307
+ * @example
5308
+ * // Create one Workflow_api_keys
5309
+ * const Workflow_api_keys = await prisma.workflow_api_keys.create({
5310
+ * data: {
5311
+ * // ... data to create a Workflow_api_keys
5312
+ * }
5313
+ * })
5314
+ *
5315
+ */
5316
+ create<T extends workflow_api_keysCreateArgs>(args: SelectSubset<T, workflow_api_keysCreateArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5317
+
5318
+ /**
5319
+ * Create many Workflow_api_keys.
5320
+ * @param {workflow_api_keysCreateManyArgs} args - Arguments to create many Workflow_api_keys.
5321
+ * @example
5322
+ * // Create many Workflow_api_keys
5323
+ * const workflow_api_keys = await prisma.workflow_api_keys.createMany({
5324
+ * data: [
5325
+ * // ... provide data here
5326
+ * ]
5327
+ * })
5328
+ *
5329
+ */
5330
+ createMany<T extends workflow_api_keysCreateManyArgs>(args?: SelectSubset<T, workflow_api_keysCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4045
5331
 
4046
5332
  /**
4047
- * Create many Workflow_runs and returns the data saved in the database.
4048
- * @param {workflow_runsCreateManyAndReturnArgs} args - Arguments to create many Workflow_runs.
5333
+ * Create many Workflow_api_keys and returns the data saved in the database.
5334
+ * @param {workflow_api_keysCreateManyAndReturnArgs} args - Arguments to create many Workflow_api_keys.
4049
5335
  * @example
4050
- * // Create many Workflow_runs
4051
- * const workflow_runs = await prisma.workflow_runs.createManyAndReturn({
5336
+ * // Create many Workflow_api_keys
5337
+ * const workflow_api_keys = await prisma.workflow_api_keys.createManyAndReturn({
4052
5338
  * data: [
4053
5339
  * // ... provide data here
4054
5340
  * ]
4055
5341
  * })
4056
5342
  *
4057
- * // Create many Workflow_runs and only return the `id`
4058
- * const workflow_runsWithIdOnly = await prisma.workflow_runs.createManyAndReturn({
5343
+ * // Create many Workflow_api_keys and only return the `id`
5344
+ * const workflow_api_keysWithIdOnly = await prisma.workflow_api_keys.createManyAndReturn({
4059
5345
  * select: { id: true },
4060
5346
  * data: [
4061
5347
  * // ... provide data here
@@ -4065,28 +5351,28 @@ export namespace Prisma {
4065
5351
  * Read more here: https://pris.ly/d/null-undefined
4066
5352
  *
4067
5353
  */
4068
- createManyAndReturn<T extends workflow_runsCreateManyAndReturnArgs>(args?: SelectSubset<T, workflow_runsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
5354
+ createManyAndReturn<T extends workflow_api_keysCreateManyAndReturnArgs>(args?: SelectSubset<T, workflow_api_keysCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
4069
5355
 
4070
5356
  /**
4071
- * Delete a Workflow_runs.
4072
- * @param {workflow_runsDeleteArgs} args - Arguments to delete one Workflow_runs.
5357
+ * Delete a Workflow_api_keys.
5358
+ * @param {workflow_api_keysDeleteArgs} args - Arguments to delete one Workflow_api_keys.
4073
5359
  * @example
4074
- * // Delete one Workflow_runs
4075
- * const Workflow_runs = await prisma.workflow_runs.delete({
5360
+ * // Delete one Workflow_api_keys
5361
+ * const Workflow_api_keys = await prisma.workflow_api_keys.delete({
4076
5362
  * where: {
4077
- * // ... filter to delete one Workflow_runs
5363
+ * // ... filter to delete one Workflow_api_keys
4078
5364
  * }
4079
5365
  * })
4080
5366
  *
4081
5367
  */
4082
- delete<T extends workflow_runsDeleteArgs>(args: SelectSubset<T, workflow_runsDeleteArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5368
+ delete<T extends workflow_api_keysDeleteArgs>(args: SelectSubset<T, workflow_api_keysDeleteArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4083
5369
 
4084
5370
  /**
4085
- * Update one Workflow_runs.
4086
- * @param {workflow_runsUpdateArgs} args - Arguments to update one Workflow_runs.
5371
+ * Update one Workflow_api_keys.
5372
+ * @param {workflow_api_keysUpdateArgs} args - Arguments to update one Workflow_api_keys.
4087
5373
  * @example
4088
- * // Update one Workflow_runs
4089
- * const workflow_runs = await prisma.workflow_runs.update({
5374
+ * // Update one Workflow_api_keys
5375
+ * const workflow_api_keys = await prisma.workflow_api_keys.update({
4090
5376
  * where: {
4091
5377
  * // ... provide filter here
4092
5378
  * },
@@ -4096,30 +5382,30 @@ export namespace Prisma {
4096
5382
  * })
4097
5383
  *
4098
5384
  */
4099
- update<T extends workflow_runsUpdateArgs>(args: SelectSubset<T, workflow_runsUpdateArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5385
+ update<T extends workflow_api_keysUpdateArgs>(args: SelectSubset<T, workflow_api_keysUpdateArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4100
5386
 
4101
5387
  /**
4102
- * Delete zero or more Workflow_runs.
4103
- * @param {workflow_runsDeleteManyArgs} args - Arguments to filter Workflow_runs to delete.
5388
+ * Delete zero or more Workflow_api_keys.
5389
+ * @param {workflow_api_keysDeleteManyArgs} args - Arguments to filter Workflow_api_keys to delete.
4104
5390
  * @example
4105
- * // Delete a few Workflow_runs
4106
- * const { count } = await prisma.workflow_runs.deleteMany({
5391
+ * // Delete a few Workflow_api_keys
5392
+ * const { count } = await prisma.workflow_api_keys.deleteMany({
4107
5393
  * where: {
4108
5394
  * // ... provide filter here
4109
5395
  * }
4110
5396
  * })
4111
5397
  *
4112
5398
  */
4113
- deleteMany<T extends workflow_runsDeleteManyArgs>(args?: SelectSubset<T, workflow_runsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5399
+ deleteMany<T extends workflow_api_keysDeleteManyArgs>(args?: SelectSubset<T, workflow_api_keysDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4114
5400
 
4115
5401
  /**
4116
- * Update zero or more Workflow_runs.
5402
+ * Update zero or more Workflow_api_keys.
4117
5403
  * Note, that providing `undefined` is treated as the value not being there.
4118
5404
  * Read more here: https://pris.ly/d/null-undefined
4119
- * @param {workflow_runsUpdateManyArgs} args - Arguments to update one or more rows.
5405
+ * @param {workflow_api_keysUpdateManyArgs} args - Arguments to update one or more rows.
4120
5406
  * @example
4121
- * // Update many Workflow_runs
4122
- * const workflow_runs = await prisma.workflow_runs.updateMany({
5407
+ * // Update many Workflow_api_keys
5408
+ * const workflow_api_keys = await prisma.workflow_api_keys.updateMany({
4123
5409
  * where: {
4124
5410
  * // ... provide filter here
4125
5411
  * },
@@ -4129,14 +5415,14 @@ export namespace Prisma {
4129
5415
  * })
4130
5416
  *
4131
5417
  */
4132
- updateMany<T extends workflow_runsUpdateManyArgs>(args: SelectSubset<T, workflow_runsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5418
+ updateMany<T extends workflow_api_keysUpdateManyArgs>(args: SelectSubset<T, workflow_api_keysUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
4133
5419
 
4134
5420
  /**
4135
- * Update zero or more Workflow_runs and returns the data updated in the database.
4136
- * @param {workflow_runsUpdateManyAndReturnArgs} args - Arguments to update many Workflow_runs.
5421
+ * Update zero or more Workflow_api_keys and returns the data updated in the database.
5422
+ * @param {workflow_api_keysUpdateManyAndReturnArgs} args - Arguments to update many Workflow_api_keys.
4137
5423
  * @example
4138
- * // Update many Workflow_runs
4139
- * const workflow_runs = await prisma.workflow_runs.updateManyAndReturn({
5424
+ * // Update many Workflow_api_keys
5425
+ * const workflow_api_keys = await prisma.workflow_api_keys.updateManyAndReturn({
4140
5426
  * where: {
4141
5427
  * // ... provide filter here
4142
5428
  * },
@@ -4145,8 +5431,8 @@ export namespace Prisma {
4145
5431
  * ]
4146
5432
  * })
4147
5433
  *
4148
- * // Update zero or more Workflow_runs and only return the `id`
4149
- * const workflow_runsWithIdOnly = await prisma.workflow_runs.updateManyAndReturn({
5434
+ * // Update zero or more Workflow_api_keys and only return the `id`
5435
+ * const workflow_api_keysWithIdOnly = await prisma.workflow_api_keys.updateManyAndReturn({
4150
5436
  * select: { id: true },
4151
5437
  * where: {
4152
5438
  * // ... provide filter here
@@ -4159,56 +5445,56 @@ export namespace Prisma {
4159
5445
  * Read more here: https://pris.ly/d/null-undefined
4160
5446
  *
4161
5447
  */
4162
- updateManyAndReturn<T extends workflow_runsUpdateManyAndReturnArgs>(args: SelectSubset<T, workflow_runsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
5448
+ updateManyAndReturn<T extends workflow_api_keysUpdateManyAndReturnArgs>(args: SelectSubset<T, workflow_api_keysUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
4163
5449
 
4164
5450
  /**
4165
- * Create or update one Workflow_runs.
4166
- * @param {workflow_runsUpsertArgs} args - Arguments to update or create a Workflow_runs.
5451
+ * Create or update one Workflow_api_keys.
5452
+ * @param {workflow_api_keysUpsertArgs} args - Arguments to update or create a Workflow_api_keys.
4167
5453
  * @example
4168
- * // Update or create a Workflow_runs
4169
- * const workflow_runs = await prisma.workflow_runs.upsert({
5454
+ * // Update or create a Workflow_api_keys
5455
+ * const workflow_api_keys = await prisma.workflow_api_keys.upsert({
4170
5456
  * create: {
4171
- * // ... data to create a Workflow_runs
5457
+ * // ... data to create a Workflow_api_keys
4172
5458
  * },
4173
5459
  * update: {
4174
5460
  * // ... in case it already exists, update
4175
5461
  * },
4176
5462
  * where: {
4177
- * // ... the filter for the Workflow_runs we want to update
5463
+ * // ... the filter for the Workflow_api_keys we want to update
4178
5464
  * }
4179
5465
  * })
4180
5466
  */
4181
- upsert<T extends workflow_runsUpsertArgs>(args: SelectSubset<T, workflow_runsUpsertArgs<ExtArgs>>): Prisma__workflow_runsClient<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5467
+ upsert<T extends workflow_api_keysUpsertArgs>(args: SelectSubset<T, workflow_api_keysUpsertArgs<ExtArgs>>): Prisma__workflow_api_keysClient<$Result.GetResult<Prisma.$workflow_api_keysPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
4182
5468
 
4183
5469
 
4184
5470
  /**
4185
- * Count the number of Workflow_runs.
5471
+ * Count the number of Workflow_api_keys.
4186
5472
  * Note, that providing `undefined` is treated as the value not being there.
4187
5473
  * Read more here: https://pris.ly/d/null-undefined
4188
- * @param {workflow_runsCountArgs} args - Arguments to filter Workflow_runs to count.
5474
+ * @param {workflow_api_keysCountArgs} args - Arguments to filter Workflow_api_keys to count.
4189
5475
  * @example
4190
- * // Count the number of Workflow_runs
4191
- * const count = await prisma.workflow_runs.count({
5476
+ * // Count the number of Workflow_api_keys
5477
+ * const count = await prisma.workflow_api_keys.count({
4192
5478
  * where: {
4193
- * // ... the filter for the Workflow_runs we want to count
5479
+ * // ... the filter for the Workflow_api_keys we want to count
4194
5480
  * }
4195
5481
  * })
4196
5482
  **/
4197
- count<T extends workflow_runsCountArgs>(
4198
- args?: Subset<T, workflow_runsCountArgs>,
5483
+ count<T extends workflow_api_keysCountArgs>(
5484
+ args?: Subset<T, workflow_api_keysCountArgs>,
4199
5485
  ): Prisma.PrismaPromise<
4200
5486
  T extends $Utils.Record<'select', any>
4201
5487
  ? T['select'] extends true
4202
5488
  ? number
4203
- : GetScalarType<T['select'], Workflow_runsCountAggregateOutputType>
5489
+ : GetScalarType<T['select'], Workflow_api_keysCountAggregateOutputType>
4204
5490
  : number
4205
5491
  >
4206
5492
 
4207
5493
  /**
4208
- * Allows you to perform aggregations operations on a Workflow_runs.
5494
+ * Allows you to perform aggregations operations on a Workflow_api_keys.
4209
5495
  * Note, that providing `undefined` is treated as the value not being there.
4210
5496
  * Read more here: https://pris.ly/d/null-undefined
4211
- * @param {Workflow_runsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
5497
+ * @param {Workflow_api_keysAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
4212
5498
  * @example
4213
5499
  * // Ordered by age ascending
4214
5500
  * // Where email contains prisma.io
@@ -4228,13 +5514,13 @@ export namespace Prisma {
4228
5514
  * take: 10,
4229
5515
  * })
4230
5516
  **/
4231
- aggregate<T extends Workflow_runsAggregateArgs>(args: Subset<T, Workflow_runsAggregateArgs>): Prisma.PrismaPromise<GetWorkflow_runsAggregateType<T>>
5517
+ aggregate<T extends Workflow_api_keysAggregateArgs>(args: Subset<T, Workflow_api_keysAggregateArgs>): Prisma.PrismaPromise<GetWorkflow_api_keysAggregateType<T>>
4232
5518
 
4233
5519
  /**
4234
- * Group by Workflow_runs.
5520
+ * Group by Workflow_api_keys.
4235
5521
  * Note, that providing `undefined` is treated as the value not being there.
4236
5522
  * Read more here: https://pris.ly/d/null-undefined
4237
- * @param {workflow_runsGroupByArgs} args - Group by arguments.
5523
+ * @param {workflow_api_keysGroupByArgs} args - Group by arguments.
4238
5524
  * @example
4239
5525
  * // Group by city, order by createdAt, get count
4240
5526
  * const result = await prisma.user.groupBy({
@@ -4249,14 +5535,14 @@ export namespace Prisma {
4249
5535
  *
4250
5536
  **/
4251
5537
  groupBy<
4252
- T extends workflow_runsGroupByArgs,
5538
+ T extends workflow_api_keysGroupByArgs,
4253
5539
  HasSelectOrTake extends Or<
4254
5540
  Extends<'skip', Keys<T>>,
4255
5541
  Extends<'take', Keys<T>>
4256
5542
  >,
4257
5543
  OrderByArg extends True extends HasSelectOrTake
4258
- ? { orderBy: workflow_runsGroupByArgs['orderBy'] }
4259
- : { orderBy?: workflow_runsGroupByArgs['orderBy'] },
5544
+ ? { orderBy: workflow_api_keysGroupByArgs['orderBy'] }
5545
+ : { orderBy?: workflow_api_keysGroupByArgs['orderBy'] },
4260
5546
  OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
4261
5547
  ByFields extends MaybeTupleToUnion<T['by']>,
4262
5548
  ByValid extends Has<ByFields, OrderFields>,
@@ -4305,22 +5591,22 @@ export namespace Prisma {
4305
5591
  ? never
4306
5592
  : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
4307
5593
  }[OrderFields]
4308
- >(args: SubsetIntersection<T, workflow_runsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflow_runsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
5594
+ >(args: SubsetIntersection<T, workflow_api_keysGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflow_api_keysGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
4309
5595
  /**
4310
- * Fields of the workflow_runs model
5596
+ * Fields of the workflow_api_keys model
4311
5597
  */
4312
- readonly fields: workflow_runsFieldRefs;
5598
+ readonly fields: workflow_api_keysFieldRefs;
4313
5599
  }
4314
5600
 
4315
5601
  /**
4316
- * The delegate class that acts as a "Promise-like" for workflow_runs.
5602
+ * The delegate class that acts as a "Promise-like" for workflow_api_keys.
4317
5603
  * Why is this prefixed with `Prisma__`?
4318
5604
  * Because we want to prevent naming conflicts as mentioned in
4319
5605
  * https://github.com/prisma/prisma-client-js/issues/707
4320
5606
  */
4321
- export interface Prisma__workflow_runsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
5607
+ export interface Prisma__workflow_api_keysClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
4322
5608
  readonly [Symbol.toStringTag]: "PrismaPromise"
4323
- user<T extends usersDefaultArgs<ExtArgs> = {}>(args?: Subset<T, usersDefaultArgs<ExtArgs>>): Prisma__usersClient<$Result.GetResult<Prisma.$usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
5609
+ workflowRuns<T extends workflow_api_keys$workflowRunsArgs<ExtArgs> = {}>(args?: Subset<T, workflow_api_keys$workflowRunsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$workflow_runsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
4324
5610
  /**
4325
5611
  * Attaches callbacks for the resolution and/or rejection of the Promise.
4326
5612
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4347,417 +5633,403 @@ export namespace Prisma {
4347
5633
 
4348
5634
 
4349
5635
  /**
4350
- * Fields of the workflow_runs model
5636
+ * Fields of the workflow_api_keys model
4351
5637
  */
4352
- interface workflow_runsFieldRefs {
4353
- readonly id: FieldRef<"workflow_runs", 'String'>
4354
- readonly ran_by_user_id: FieldRef<"workflow_runs", 'String'>
4355
- readonly status: FieldRef<"workflow_runs", 'String'>
4356
- readonly started_at: FieldRef<"workflow_runs", 'BigInt'>
4357
- readonly completed_at: FieldRef<"workflow_runs", 'BigInt'>
4358
- readonly args: FieldRef<"workflow_runs", 'String'>
4359
- readonly error_message: FieldRef<"workflow_runs", 'String'>
4360
- readonly output: FieldRef<"workflow_runs", 'String'>
4361
- readonly workflow_slug: FieldRef<"workflow_runs", 'String'>
4362
- readonly session_id: FieldRef<"workflow_runs", 'String'>
4363
- readonly message_id: FieldRef<"workflow_runs", 'String'>
5638
+ interface workflow_api_keysFieldRefs {
5639
+ readonly id: FieldRef<"workflow_api_keys", 'String'>
5640
+ readonly workflow_slug: FieldRef<"workflow_api_keys", 'String'>
5641
+ readonly api_key: FieldRef<"workflow_api_keys", 'String'>
5642
+ readonly created_by_user_id: FieldRef<"workflow_api_keys", 'String'>
5643
+ readonly created_at: FieldRef<"workflow_api_keys", 'BigInt'>
4364
5644
  }
4365
5645
 
4366
5646
 
4367
5647
  // Custom InputTypes
4368
5648
  /**
4369
- * workflow_runs findUnique
5649
+ * workflow_api_keys findUnique
4370
5650
  */
4371
- export type workflow_runsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5651
+ export type workflow_api_keysFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4372
5652
  /**
4373
- * Select specific fields to fetch from the workflow_runs
5653
+ * Select specific fields to fetch from the workflow_api_keys
4374
5654
  */
4375
- select?: workflow_runsSelect<ExtArgs> | null
5655
+ select?: workflow_api_keysSelect<ExtArgs> | null
4376
5656
  /**
4377
- * Omit specific fields from the workflow_runs
5657
+ * Omit specific fields from the workflow_api_keys
4378
5658
  */
4379
- omit?: workflow_runsOmit<ExtArgs> | null
5659
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4380
5660
  /**
4381
5661
  * Choose, which related nodes to fetch as well
4382
5662
  */
4383
- include?: workflow_runsInclude<ExtArgs> | null
5663
+ include?: workflow_api_keysInclude<ExtArgs> | null
4384
5664
  /**
4385
- * Filter, which workflow_runs to fetch.
5665
+ * Filter, which workflow_api_keys to fetch.
4386
5666
  */
4387
- where: workflow_runsWhereUniqueInput
5667
+ where: workflow_api_keysWhereUniqueInput
4388
5668
  }
4389
5669
 
4390
5670
  /**
4391
- * workflow_runs findUniqueOrThrow
5671
+ * workflow_api_keys findUniqueOrThrow
4392
5672
  */
4393
- export type workflow_runsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5673
+ export type workflow_api_keysFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4394
5674
  /**
4395
- * Select specific fields to fetch from the workflow_runs
5675
+ * Select specific fields to fetch from the workflow_api_keys
4396
5676
  */
4397
- select?: workflow_runsSelect<ExtArgs> | null
5677
+ select?: workflow_api_keysSelect<ExtArgs> | null
4398
5678
  /**
4399
- * Omit specific fields from the workflow_runs
5679
+ * Omit specific fields from the workflow_api_keys
4400
5680
  */
4401
- omit?: workflow_runsOmit<ExtArgs> | null
5681
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4402
5682
  /**
4403
5683
  * Choose, which related nodes to fetch as well
4404
5684
  */
4405
- include?: workflow_runsInclude<ExtArgs> | null
5685
+ include?: workflow_api_keysInclude<ExtArgs> | null
4406
5686
  /**
4407
- * Filter, which workflow_runs to fetch.
5687
+ * Filter, which workflow_api_keys to fetch.
4408
5688
  */
4409
- where: workflow_runsWhereUniqueInput
5689
+ where: workflow_api_keysWhereUniqueInput
4410
5690
  }
4411
5691
 
4412
5692
  /**
4413
- * workflow_runs findFirst
5693
+ * workflow_api_keys findFirst
4414
5694
  */
4415
- export type workflow_runsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5695
+ export type workflow_api_keysFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4416
5696
  /**
4417
- * Select specific fields to fetch from the workflow_runs
5697
+ * Select specific fields to fetch from the workflow_api_keys
4418
5698
  */
4419
- select?: workflow_runsSelect<ExtArgs> | null
5699
+ select?: workflow_api_keysSelect<ExtArgs> | null
4420
5700
  /**
4421
- * Omit specific fields from the workflow_runs
5701
+ * Omit specific fields from the workflow_api_keys
4422
5702
  */
4423
- omit?: workflow_runsOmit<ExtArgs> | null
5703
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4424
5704
  /**
4425
5705
  * Choose, which related nodes to fetch as well
4426
5706
  */
4427
- include?: workflow_runsInclude<ExtArgs> | null
5707
+ include?: workflow_api_keysInclude<ExtArgs> | null
4428
5708
  /**
4429
- * Filter, which workflow_runs to fetch.
5709
+ * Filter, which workflow_api_keys to fetch.
4430
5710
  */
4431
- where?: workflow_runsWhereInput
5711
+ where?: workflow_api_keysWhereInput
4432
5712
  /**
4433
5713
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4434
5714
  *
4435
- * Determine the order of workflow_runs to fetch.
5715
+ * Determine the order of workflow_api_keys to fetch.
4436
5716
  */
4437
- orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
5717
+ orderBy?: workflow_api_keysOrderByWithRelationInput | workflow_api_keysOrderByWithRelationInput[]
4438
5718
  /**
4439
5719
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4440
5720
  *
4441
- * Sets the position for searching for workflow_runs.
5721
+ * Sets the position for searching for workflow_api_keys.
4442
5722
  */
4443
- cursor?: workflow_runsWhereUniqueInput
5723
+ cursor?: workflow_api_keysWhereUniqueInput
4444
5724
  /**
4445
5725
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4446
5726
  *
4447
- * Take `±n` workflow_runs from the position of the cursor.
5727
+ * Take `±n` workflow_api_keys from the position of the cursor.
4448
5728
  */
4449
5729
  take?: number
4450
5730
  /**
4451
5731
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4452
5732
  *
4453
- * Skip the first `n` workflow_runs.
5733
+ * Skip the first `n` workflow_api_keys.
4454
5734
  */
4455
5735
  skip?: number
4456
5736
  /**
4457
5737
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4458
5738
  *
4459
- * Filter by unique combinations of workflow_runs.
5739
+ * Filter by unique combinations of workflow_api_keys.
4460
5740
  */
4461
- distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
5741
+ distinct?: Workflow_api_keysScalarFieldEnum | Workflow_api_keysScalarFieldEnum[]
4462
5742
  }
4463
5743
 
4464
5744
  /**
4465
- * workflow_runs findFirstOrThrow
5745
+ * workflow_api_keys findFirstOrThrow
4466
5746
  */
4467
- export type workflow_runsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5747
+ export type workflow_api_keysFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4468
5748
  /**
4469
- * Select specific fields to fetch from the workflow_runs
5749
+ * Select specific fields to fetch from the workflow_api_keys
4470
5750
  */
4471
- select?: workflow_runsSelect<ExtArgs> | null
5751
+ select?: workflow_api_keysSelect<ExtArgs> | null
4472
5752
  /**
4473
- * Omit specific fields from the workflow_runs
5753
+ * Omit specific fields from the workflow_api_keys
4474
5754
  */
4475
- omit?: workflow_runsOmit<ExtArgs> | null
5755
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4476
5756
  /**
4477
5757
  * Choose, which related nodes to fetch as well
4478
5758
  */
4479
- include?: workflow_runsInclude<ExtArgs> | null
5759
+ include?: workflow_api_keysInclude<ExtArgs> | null
4480
5760
  /**
4481
- * Filter, which workflow_runs to fetch.
5761
+ * Filter, which workflow_api_keys to fetch.
4482
5762
  */
4483
- where?: workflow_runsWhereInput
5763
+ where?: workflow_api_keysWhereInput
4484
5764
  /**
4485
5765
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4486
5766
  *
4487
- * Determine the order of workflow_runs to fetch.
5767
+ * Determine the order of workflow_api_keys to fetch.
4488
5768
  */
4489
- orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
5769
+ orderBy?: workflow_api_keysOrderByWithRelationInput | workflow_api_keysOrderByWithRelationInput[]
4490
5770
  /**
4491
5771
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4492
5772
  *
4493
- * Sets the position for searching for workflow_runs.
5773
+ * Sets the position for searching for workflow_api_keys.
4494
5774
  */
4495
- cursor?: workflow_runsWhereUniqueInput
5775
+ cursor?: workflow_api_keysWhereUniqueInput
4496
5776
  /**
4497
5777
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4498
5778
  *
4499
- * Take `±n` workflow_runs from the position of the cursor.
5779
+ * Take `±n` workflow_api_keys from the position of the cursor.
4500
5780
  */
4501
5781
  take?: number
4502
5782
  /**
4503
5783
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4504
5784
  *
4505
- * Skip the first `n` workflow_runs.
5785
+ * Skip the first `n` workflow_api_keys.
4506
5786
  */
4507
5787
  skip?: number
4508
5788
  /**
4509
5789
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4510
5790
  *
4511
- * Filter by unique combinations of workflow_runs.
5791
+ * Filter by unique combinations of workflow_api_keys.
4512
5792
  */
4513
- distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
5793
+ distinct?: Workflow_api_keysScalarFieldEnum | Workflow_api_keysScalarFieldEnum[]
4514
5794
  }
4515
5795
 
4516
5796
  /**
4517
- * workflow_runs findMany
5797
+ * workflow_api_keys findMany
4518
5798
  */
4519
- export type workflow_runsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5799
+ export type workflow_api_keysFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4520
5800
  /**
4521
- * Select specific fields to fetch from the workflow_runs
5801
+ * Select specific fields to fetch from the workflow_api_keys
4522
5802
  */
4523
- select?: workflow_runsSelect<ExtArgs> | null
5803
+ select?: workflow_api_keysSelect<ExtArgs> | null
4524
5804
  /**
4525
- * Omit specific fields from the workflow_runs
5805
+ * Omit specific fields from the workflow_api_keys
4526
5806
  */
4527
- omit?: workflow_runsOmit<ExtArgs> | null
5807
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4528
5808
  /**
4529
5809
  * Choose, which related nodes to fetch as well
4530
5810
  */
4531
- include?: workflow_runsInclude<ExtArgs> | null
5811
+ include?: workflow_api_keysInclude<ExtArgs> | null
4532
5812
  /**
4533
- * Filter, which workflow_runs to fetch.
5813
+ * Filter, which workflow_api_keys to fetch.
4534
5814
  */
4535
- where?: workflow_runsWhereInput
5815
+ where?: workflow_api_keysWhereInput
4536
5816
  /**
4537
5817
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4538
5818
  *
4539
- * Determine the order of workflow_runs to fetch.
5819
+ * Determine the order of workflow_api_keys to fetch.
4540
5820
  */
4541
- orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
5821
+ orderBy?: workflow_api_keysOrderByWithRelationInput | workflow_api_keysOrderByWithRelationInput[]
4542
5822
  /**
4543
5823
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4544
5824
  *
4545
- * Sets the position for listing workflow_runs.
5825
+ * Sets the position for listing workflow_api_keys.
4546
5826
  */
4547
- cursor?: workflow_runsWhereUniqueInput
5827
+ cursor?: workflow_api_keysWhereUniqueInput
4548
5828
  /**
4549
5829
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4550
5830
  *
4551
- * Take `±n` workflow_runs from the position of the cursor.
5831
+ * Take `±n` workflow_api_keys from the position of the cursor.
4552
5832
  */
4553
5833
  take?: number
4554
5834
  /**
4555
5835
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4556
5836
  *
4557
- * Skip the first `n` workflow_runs.
5837
+ * Skip the first `n` workflow_api_keys.
4558
5838
  */
4559
5839
  skip?: number
4560
- distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
5840
+ distinct?: Workflow_api_keysScalarFieldEnum | Workflow_api_keysScalarFieldEnum[]
4561
5841
  }
4562
5842
 
4563
5843
  /**
4564
- * workflow_runs create
5844
+ * workflow_api_keys create
4565
5845
  */
4566
- export type workflow_runsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5846
+ export type workflow_api_keysCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4567
5847
  /**
4568
- * Select specific fields to fetch from the workflow_runs
5848
+ * Select specific fields to fetch from the workflow_api_keys
4569
5849
  */
4570
- select?: workflow_runsSelect<ExtArgs> | null
5850
+ select?: workflow_api_keysSelect<ExtArgs> | null
4571
5851
  /**
4572
- * Omit specific fields from the workflow_runs
5852
+ * Omit specific fields from the workflow_api_keys
4573
5853
  */
4574
- omit?: workflow_runsOmit<ExtArgs> | null
5854
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4575
5855
  /**
4576
5856
  * Choose, which related nodes to fetch as well
4577
5857
  */
4578
- include?: workflow_runsInclude<ExtArgs> | null
5858
+ include?: workflow_api_keysInclude<ExtArgs> | null
4579
5859
  /**
4580
- * The data needed to create a workflow_runs.
5860
+ * The data needed to create a workflow_api_keys.
4581
5861
  */
4582
- data: XOR<workflow_runsCreateInput, workflow_runsUncheckedCreateInput>
5862
+ data: XOR<workflow_api_keysCreateInput, workflow_api_keysUncheckedCreateInput>
4583
5863
  }
4584
5864
 
4585
5865
  /**
4586
- * workflow_runs createMany
5866
+ * workflow_api_keys createMany
4587
5867
  */
4588
- export type workflow_runsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5868
+ export type workflow_api_keysCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4589
5869
  /**
4590
- * The data used to create many workflow_runs.
5870
+ * The data used to create many workflow_api_keys.
4591
5871
  */
4592
- data: workflow_runsCreateManyInput | workflow_runsCreateManyInput[]
5872
+ data: workflow_api_keysCreateManyInput | workflow_api_keysCreateManyInput[]
4593
5873
  }
4594
5874
 
4595
5875
  /**
4596
- * workflow_runs createManyAndReturn
5876
+ * workflow_api_keys createManyAndReturn
4597
5877
  */
4598
- export type workflow_runsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4599
- /**
4600
- * Select specific fields to fetch from the workflow_runs
4601
- */
4602
- select?: workflow_runsSelectCreateManyAndReturn<ExtArgs> | null
5878
+ export type workflow_api_keysCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4603
5879
  /**
4604
- * Omit specific fields from the workflow_runs
5880
+ * Select specific fields to fetch from the workflow_api_keys
4605
5881
  */
4606
- omit?: workflow_runsOmit<ExtArgs> | null
5882
+ select?: workflow_api_keysSelectCreateManyAndReturn<ExtArgs> | null
4607
5883
  /**
4608
- * The data used to create many workflow_runs.
5884
+ * Omit specific fields from the workflow_api_keys
4609
5885
  */
4610
- data: workflow_runsCreateManyInput | workflow_runsCreateManyInput[]
5886
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4611
5887
  /**
4612
- * Choose, which related nodes to fetch as well
5888
+ * The data used to create many workflow_api_keys.
4613
5889
  */
4614
- include?: workflow_runsIncludeCreateManyAndReturn<ExtArgs> | null
5890
+ data: workflow_api_keysCreateManyInput | workflow_api_keysCreateManyInput[]
4615
5891
  }
4616
5892
 
4617
5893
  /**
4618
- * workflow_runs update
5894
+ * workflow_api_keys update
4619
5895
  */
4620
- export type workflow_runsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5896
+ export type workflow_api_keysUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4621
5897
  /**
4622
- * Select specific fields to fetch from the workflow_runs
5898
+ * Select specific fields to fetch from the workflow_api_keys
4623
5899
  */
4624
- select?: workflow_runsSelect<ExtArgs> | null
5900
+ select?: workflow_api_keysSelect<ExtArgs> | null
4625
5901
  /**
4626
- * Omit specific fields from the workflow_runs
5902
+ * Omit specific fields from the workflow_api_keys
4627
5903
  */
4628
- omit?: workflow_runsOmit<ExtArgs> | null
5904
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4629
5905
  /**
4630
5906
  * Choose, which related nodes to fetch as well
4631
5907
  */
4632
- include?: workflow_runsInclude<ExtArgs> | null
5908
+ include?: workflow_api_keysInclude<ExtArgs> | null
4633
5909
  /**
4634
- * The data needed to update a workflow_runs.
5910
+ * The data needed to update a workflow_api_keys.
4635
5911
  */
4636
- data: XOR<workflow_runsUpdateInput, workflow_runsUncheckedUpdateInput>
5912
+ data: XOR<workflow_api_keysUpdateInput, workflow_api_keysUncheckedUpdateInput>
4637
5913
  /**
4638
- * Choose, which workflow_runs to update.
5914
+ * Choose, which workflow_api_keys to update.
4639
5915
  */
4640
- where: workflow_runsWhereUniqueInput
5916
+ where: workflow_api_keysWhereUniqueInput
4641
5917
  }
4642
5918
 
4643
5919
  /**
4644
- * workflow_runs updateMany
5920
+ * workflow_api_keys updateMany
4645
5921
  */
4646
- export type workflow_runsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5922
+ export type workflow_api_keysUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4647
5923
  /**
4648
- * The data used to update workflow_runs.
5924
+ * The data used to update workflow_api_keys.
4649
5925
  */
4650
- data: XOR<workflow_runsUpdateManyMutationInput, workflow_runsUncheckedUpdateManyInput>
5926
+ data: XOR<workflow_api_keysUpdateManyMutationInput, workflow_api_keysUncheckedUpdateManyInput>
4651
5927
  /**
4652
- * Filter which workflow_runs to update
5928
+ * Filter which workflow_api_keys to update
4653
5929
  */
4654
- where?: workflow_runsWhereInput
5930
+ where?: workflow_api_keysWhereInput
4655
5931
  /**
4656
- * Limit how many workflow_runs to update.
5932
+ * Limit how many workflow_api_keys to update.
4657
5933
  */
4658
5934
  limit?: number
4659
5935
  }
4660
5936
 
4661
5937
  /**
4662
- * workflow_runs updateManyAndReturn
5938
+ * workflow_api_keys updateManyAndReturn
4663
5939
  */
4664
- export type workflow_runsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5940
+ export type workflow_api_keysUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4665
5941
  /**
4666
- * Select specific fields to fetch from the workflow_runs
5942
+ * Select specific fields to fetch from the workflow_api_keys
4667
5943
  */
4668
- select?: workflow_runsSelectUpdateManyAndReturn<ExtArgs> | null
5944
+ select?: workflow_api_keysSelectUpdateManyAndReturn<ExtArgs> | null
4669
5945
  /**
4670
- * Omit specific fields from the workflow_runs
5946
+ * Omit specific fields from the workflow_api_keys
4671
5947
  */
4672
- omit?: workflow_runsOmit<ExtArgs> | null
5948
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4673
5949
  /**
4674
- * The data used to update workflow_runs.
5950
+ * The data used to update workflow_api_keys.
4675
5951
  */
4676
- data: XOR<workflow_runsUpdateManyMutationInput, workflow_runsUncheckedUpdateManyInput>
5952
+ data: XOR<workflow_api_keysUpdateManyMutationInput, workflow_api_keysUncheckedUpdateManyInput>
4677
5953
  /**
4678
- * Filter which workflow_runs to update
5954
+ * Filter which workflow_api_keys to update
4679
5955
  */
4680
- where?: workflow_runsWhereInput
5956
+ where?: workflow_api_keysWhereInput
4681
5957
  /**
4682
- * Limit how many workflow_runs to update.
5958
+ * Limit how many workflow_api_keys to update.
4683
5959
  */
4684
5960
  limit?: number
4685
- /**
4686
- * Choose, which related nodes to fetch as well
4687
- */
4688
- include?: workflow_runsIncludeUpdateManyAndReturn<ExtArgs> | null
4689
5961
  }
4690
5962
 
4691
5963
  /**
4692
- * workflow_runs upsert
5964
+ * workflow_api_keys upsert
4693
5965
  */
4694
- export type workflow_runsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5966
+ export type workflow_api_keysUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4695
5967
  /**
4696
- * Select specific fields to fetch from the workflow_runs
5968
+ * Select specific fields to fetch from the workflow_api_keys
4697
5969
  */
4698
- select?: workflow_runsSelect<ExtArgs> | null
5970
+ select?: workflow_api_keysSelect<ExtArgs> | null
4699
5971
  /**
4700
- * Omit specific fields from the workflow_runs
5972
+ * Omit specific fields from the workflow_api_keys
4701
5973
  */
4702
- omit?: workflow_runsOmit<ExtArgs> | null
5974
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4703
5975
  /**
4704
5976
  * Choose, which related nodes to fetch as well
4705
5977
  */
4706
- include?: workflow_runsInclude<ExtArgs> | null
5978
+ include?: workflow_api_keysInclude<ExtArgs> | null
4707
5979
  /**
4708
- * The filter to search for the workflow_runs to update in case it exists.
5980
+ * The filter to search for the workflow_api_keys to update in case it exists.
4709
5981
  */
4710
- where: workflow_runsWhereUniqueInput
5982
+ where: workflow_api_keysWhereUniqueInput
4711
5983
  /**
4712
- * In case the workflow_runs found by the `where` argument doesn't exist, create a new workflow_runs with this data.
5984
+ * In case the workflow_api_keys found by the `where` argument doesn't exist, create a new workflow_api_keys with this data.
4713
5985
  */
4714
- create: XOR<workflow_runsCreateInput, workflow_runsUncheckedCreateInput>
5986
+ create: XOR<workflow_api_keysCreateInput, workflow_api_keysUncheckedCreateInput>
4715
5987
  /**
4716
- * In case the workflow_runs was found with the provided `where` argument, update it with this data.
5988
+ * In case the workflow_api_keys was found with the provided `where` argument, update it with this data.
4717
5989
  */
4718
- update: XOR<workflow_runsUpdateInput, workflow_runsUncheckedUpdateInput>
5990
+ update: XOR<workflow_api_keysUpdateInput, workflow_api_keysUncheckedUpdateInput>
4719
5991
  }
4720
5992
 
4721
5993
  /**
4722
- * workflow_runs delete
5994
+ * workflow_api_keys delete
4723
5995
  */
4724
- export type workflow_runsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5996
+ export type workflow_api_keysDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4725
5997
  /**
4726
- * Select specific fields to fetch from the workflow_runs
5998
+ * Select specific fields to fetch from the workflow_api_keys
4727
5999
  */
4728
- select?: workflow_runsSelect<ExtArgs> | null
6000
+ select?: workflow_api_keysSelect<ExtArgs> | null
4729
6001
  /**
4730
- * Omit specific fields from the workflow_runs
6002
+ * Omit specific fields from the workflow_api_keys
4731
6003
  */
4732
- omit?: workflow_runsOmit<ExtArgs> | null
6004
+ omit?: workflow_api_keysOmit<ExtArgs> | null
4733
6005
  /**
4734
6006
  * Choose, which related nodes to fetch as well
4735
6007
  */
4736
- include?: workflow_runsInclude<ExtArgs> | null
6008
+ include?: workflow_api_keysInclude<ExtArgs> | null
4737
6009
  /**
4738
- * Filter which workflow_runs to delete.
6010
+ * Filter which workflow_api_keys to delete.
4739
6011
  */
4740
- where: workflow_runsWhereUniqueInput
6012
+ where: workflow_api_keysWhereUniqueInput
4741
6013
  }
4742
6014
 
4743
6015
  /**
4744
- * workflow_runs deleteMany
6016
+ * workflow_api_keys deleteMany
4745
6017
  */
4746
- export type workflow_runsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6018
+ export type workflow_api_keysDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4747
6019
  /**
4748
- * Filter which workflow_runs to delete
6020
+ * Filter which workflow_api_keys to delete
4749
6021
  */
4750
- where?: workflow_runsWhereInput
6022
+ where?: workflow_api_keysWhereInput
4751
6023
  /**
4752
- * Limit how many workflow_runs to delete.
6024
+ * Limit how many workflow_api_keys to delete.
4753
6025
  */
4754
6026
  limit?: number
4755
6027
  }
4756
6028
 
4757
6029
  /**
4758
- * workflow_runs without action
6030
+ * workflow_api_keys.workflowRuns
4759
6031
  */
4760
- export type workflow_runsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6032
+ export type workflow_api_keys$workflowRunsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4761
6033
  /**
4762
6034
  * Select specific fields to fetch from the workflow_runs
4763
6035
  */
@@ -4770,6 +6042,30 @@ export namespace Prisma {
4770
6042
  * Choose, which related nodes to fetch as well
4771
6043
  */
4772
6044
  include?: workflow_runsInclude<ExtArgs> | null
6045
+ where?: workflow_runsWhereInput
6046
+ orderBy?: workflow_runsOrderByWithRelationInput | workflow_runsOrderByWithRelationInput[]
6047
+ cursor?: workflow_runsWhereUniqueInput
6048
+ take?: number
6049
+ skip?: number
6050
+ distinct?: Workflow_runsScalarFieldEnum | Workflow_runsScalarFieldEnum[]
6051
+ }
6052
+
6053
+ /**
6054
+ * workflow_api_keys without action
6055
+ */
6056
+ export type workflow_api_keysDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6057
+ /**
6058
+ * Select specific fields to fetch from the workflow_api_keys
6059
+ */
6060
+ select?: workflow_api_keysSelect<ExtArgs> | null
6061
+ /**
6062
+ * Omit specific fields from the workflow_api_keys
6063
+ */
6064
+ omit?: workflow_api_keysOmit<ExtArgs> | null
6065
+ /**
6066
+ * Choose, which related nodes to fetch as well
6067
+ */
6068
+ include?: workflow_api_keysInclude<ExtArgs> | null
4773
6069
  }
4774
6070
 
4775
6071
 
@@ -19129,11 +20425,24 @@ export namespace Prisma {
19129
20425
  error_message: 'error_message',
19130
20426
  output: 'output',
19131
20427
  workflow_slug: 'workflow_slug',
19132
- session_id: 'session_id',
19133
- message_id: 'message_id'
20428
+ session_id: 'session_id',
20429
+ message_id: 'message_id',
20430
+ run_source: 'run_source',
20431
+ workflow_api_key_id: 'workflow_api_key_id'
20432
+ };
20433
+
20434
+ export type Workflow_runsScalarFieldEnum = (typeof Workflow_runsScalarFieldEnum)[keyof typeof Workflow_runsScalarFieldEnum]
20435
+
20436
+
20437
+ export const Workflow_api_keysScalarFieldEnum: {
20438
+ id: 'id',
20439
+ workflow_slug: 'workflow_slug',
20440
+ api_key: 'api_key',
20441
+ created_by_user_id: 'created_by_user_id',
20442
+ created_at: 'created_at'
19134
20443
  };
19135
20444
 
19136
- export type Workflow_runsScalarFieldEnum = (typeof Workflow_runsScalarFieldEnum)[keyof typeof Workflow_runsScalarFieldEnum]
20445
+ export type Workflow_api_keysScalarFieldEnum = (typeof Workflow_api_keysScalarFieldEnum)[keyof typeof Workflow_api_keysScalarFieldEnum]
19137
20446
 
19138
20447
 
19139
20448
  export const Workflow_aborted_sessionsScalarFieldEnum: {
@@ -19458,7 +20767,7 @@ export namespace Prisma {
19458
20767
  OR?: workflow_runsWhereInput[]
19459
20768
  NOT?: workflow_runsWhereInput | workflow_runsWhereInput[]
19460
20769
  id?: StringFilter<"workflow_runs"> | string
19461
- ran_by_user_id?: StringFilter<"workflow_runs"> | string
20770
+ ran_by_user_id?: StringNullableFilter<"workflow_runs"> | string | null
19462
20771
  status?: StringFilter<"workflow_runs"> | string
19463
20772
  started_at?: BigIntFilter<"workflow_runs"> | bigint | number
19464
20773
  completed_at?: BigIntNullableFilter<"workflow_runs"> | bigint | number | null
@@ -19468,12 +20777,15 @@ export namespace Prisma {
19468
20777
  workflow_slug?: StringFilter<"workflow_runs"> | string
19469
20778
  session_id?: StringNullableFilter<"workflow_runs"> | string | null
19470
20779
  message_id?: StringNullableFilter<"workflow_runs"> | string | null
19471
- user?: XOR<UsersScalarRelationFilter, usersWhereInput>
20780
+ run_source?: StringFilter<"workflow_runs"> | string
20781
+ workflow_api_key_id?: StringNullableFilter<"workflow_runs"> | string | null
20782
+ user?: XOR<UsersNullableScalarRelationFilter, usersWhereInput> | null
20783
+ workflowApiKey?: XOR<Workflow_api_keysNullableScalarRelationFilter, workflow_api_keysWhereInput> | null
19472
20784
  }
19473
20785
 
19474
20786
  export type workflow_runsOrderByWithRelationInput = {
19475
20787
  id?: SortOrder
19476
- ran_by_user_id?: SortOrder
20788
+ ran_by_user_id?: SortOrderInput | SortOrder
19477
20789
  status?: SortOrder
19478
20790
  started_at?: SortOrder
19479
20791
  completed_at?: SortOrderInput | SortOrder
@@ -19483,7 +20795,10 @@ export namespace Prisma {
19483
20795
  workflow_slug?: SortOrder
19484
20796
  session_id?: SortOrderInput | SortOrder
19485
20797
  message_id?: SortOrderInput | SortOrder
20798
+ run_source?: SortOrder
20799
+ workflow_api_key_id?: SortOrderInput | SortOrder
19486
20800
  user?: usersOrderByWithRelationInput
20801
+ workflowApiKey?: workflow_api_keysOrderByWithRelationInput
19487
20802
  }
19488
20803
 
19489
20804
  export type workflow_runsWhereUniqueInput = Prisma.AtLeast<{
@@ -19491,7 +20806,7 @@ export namespace Prisma {
19491
20806
  AND?: workflow_runsWhereInput | workflow_runsWhereInput[]
19492
20807
  OR?: workflow_runsWhereInput[]
19493
20808
  NOT?: workflow_runsWhereInput | workflow_runsWhereInput[]
19494
- ran_by_user_id?: StringFilter<"workflow_runs"> | string
20809
+ ran_by_user_id?: StringNullableFilter<"workflow_runs"> | string | null
19495
20810
  status?: StringFilter<"workflow_runs"> | string
19496
20811
  started_at?: BigIntFilter<"workflow_runs"> | bigint | number
19497
20812
  completed_at?: BigIntNullableFilter<"workflow_runs"> | bigint | number | null
@@ -19501,12 +20816,15 @@ export namespace Prisma {
19501
20816
  workflow_slug?: StringFilter<"workflow_runs"> | string
19502
20817
  session_id?: StringNullableFilter<"workflow_runs"> | string | null
19503
20818
  message_id?: StringNullableFilter<"workflow_runs"> | string | null
19504
- user?: XOR<UsersScalarRelationFilter, usersWhereInput>
20819
+ run_source?: StringFilter<"workflow_runs"> | string
20820
+ workflow_api_key_id?: StringNullableFilter<"workflow_runs"> | string | null
20821
+ user?: XOR<UsersNullableScalarRelationFilter, usersWhereInput> | null
20822
+ workflowApiKey?: XOR<Workflow_api_keysNullableScalarRelationFilter, workflow_api_keysWhereInput> | null
19505
20823
  }, "id">
19506
20824
 
19507
20825
  export type workflow_runsOrderByWithAggregationInput = {
19508
20826
  id?: SortOrder
19509
- ran_by_user_id?: SortOrder
20827
+ ran_by_user_id?: SortOrderInput | SortOrder
19510
20828
  status?: SortOrder
19511
20829
  started_at?: SortOrder
19512
20830
  completed_at?: SortOrderInput | SortOrder
@@ -19516,6 +20834,8 @@ export namespace Prisma {
19516
20834
  workflow_slug?: SortOrder
19517
20835
  session_id?: SortOrderInput | SortOrder
19518
20836
  message_id?: SortOrderInput | SortOrder
20837
+ run_source?: SortOrder
20838
+ workflow_api_key_id?: SortOrderInput | SortOrder
19519
20839
  _count?: workflow_runsCountOrderByAggregateInput
19520
20840
  _avg?: workflow_runsAvgOrderByAggregateInput
19521
20841
  _max?: workflow_runsMaxOrderByAggregateInput
@@ -19528,7 +20848,7 @@ export namespace Prisma {
19528
20848
  OR?: workflow_runsScalarWhereWithAggregatesInput[]
19529
20849
  NOT?: workflow_runsScalarWhereWithAggregatesInput | workflow_runsScalarWhereWithAggregatesInput[]
19530
20850
  id?: StringWithAggregatesFilter<"workflow_runs"> | string
19531
- ran_by_user_id?: StringWithAggregatesFilter<"workflow_runs"> | string
20851
+ ran_by_user_id?: StringNullableWithAggregatesFilter<"workflow_runs"> | string | null
19532
20852
  status?: StringWithAggregatesFilter<"workflow_runs"> | string
19533
20853
  started_at?: BigIntWithAggregatesFilter<"workflow_runs"> | bigint | number
19534
20854
  completed_at?: BigIntNullableWithAggregatesFilter<"workflow_runs"> | bigint | number | null
@@ -19538,6 +20858,65 @@ export namespace Prisma {
19538
20858
  workflow_slug?: StringWithAggregatesFilter<"workflow_runs"> | string
19539
20859
  session_id?: StringNullableWithAggregatesFilter<"workflow_runs"> | string | null
19540
20860
  message_id?: StringNullableWithAggregatesFilter<"workflow_runs"> | string | null
20861
+ run_source?: StringWithAggregatesFilter<"workflow_runs"> | string
20862
+ workflow_api_key_id?: StringNullableWithAggregatesFilter<"workflow_runs"> | string | null
20863
+ }
20864
+
20865
+ export type workflow_api_keysWhereInput = {
20866
+ AND?: workflow_api_keysWhereInput | workflow_api_keysWhereInput[]
20867
+ OR?: workflow_api_keysWhereInput[]
20868
+ NOT?: workflow_api_keysWhereInput | workflow_api_keysWhereInput[]
20869
+ id?: StringFilter<"workflow_api_keys"> | string
20870
+ workflow_slug?: StringFilter<"workflow_api_keys"> | string
20871
+ api_key?: StringFilter<"workflow_api_keys"> | string
20872
+ created_by_user_id?: StringFilter<"workflow_api_keys"> | string
20873
+ created_at?: BigIntFilter<"workflow_api_keys"> | bigint | number
20874
+ workflowRuns?: Workflow_runsListRelationFilter
20875
+ }
20876
+
20877
+ export type workflow_api_keysOrderByWithRelationInput = {
20878
+ id?: SortOrder
20879
+ workflow_slug?: SortOrder
20880
+ api_key?: SortOrder
20881
+ created_by_user_id?: SortOrder
20882
+ created_at?: SortOrder
20883
+ workflowRuns?: workflow_runsOrderByRelationAggregateInput
20884
+ }
20885
+
20886
+ export type workflow_api_keysWhereUniqueInput = Prisma.AtLeast<{
20887
+ id?: string
20888
+ api_key?: string
20889
+ AND?: workflow_api_keysWhereInput | workflow_api_keysWhereInput[]
20890
+ OR?: workflow_api_keysWhereInput[]
20891
+ NOT?: workflow_api_keysWhereInput | workflow_api_keysWhereInput[]
20892
+ workflow_slug?: StringFilter<"workflow_api_keys"> | string
20893
+ created_by_user_id?: StringFilter<"workflow_api_keys"> | string
20894
+ created_at?: BigIntFilter<"workflow_api_keys"> | bigint | number
20895
+ workflowRuns?: Workflow_runsListRelationFilter
20896
+ }, "id" | "api_key">
20897
+
20898
+ export type workflow_api_keysOrderByWithAggregationInput = {
20899
+ id?: SortOrder
20900
+ workflow_slug?: SortOrder
20901
+ api_key?: SortOrder
20902
+ created_by_user_id?: SortOrder
20903
+ created_at?: SortOrder
20904
+ _count?: workflow_api_keysCountOrderByAggregateInput
20905
+ _avg?: workflow_api_keysAvgOrderByAggregateInput
20906
+ _max?: workflow_api_keysMaxOrderByAggregateInput
20907
+ _min?: workflow_api_keysMinOrderByAggregateInput
20908
+ _sum?: workflow_api_keysSumOrderByAggregateInput
20909
+ }
20910
+
20911
+ export type workflow_api_keysScalarWhereWithAggregatesInput = {
20912
+ AND?: workflow_api_keysScalarWhereWithAggregatesInput | workflow_api_keysScalarWhereWithAggregatesInput[]
20913
+ OR?: workflow_api_keysScalarWhereWithAggregatesInput[]
20914
+ NOT?: workflow_api_keysScalarWhereWithAggregatesInput | workflow_api_keysScalarWhereWithAggregatesInput[]
20915
+ id?: StringWithAggregatesFilter<"workflow_api_keys"> | string
20916
+ workflow_slug?: StringWithAggregatesFilter<"workflow_api_keys"> | string
20917
+ api_key?: StringWithAggregatesFilter<"workflow_api_keys"> | string
20918
+ created_by_user_id?: StringWithAggregatesFilter<"workflow_api_keys"> | string
20919
+ created_at?: BigIntWithAggregatesFilter<"workflow_api_keys"> | bigint | number
19541
20920
  }
19542
20921
 
19543
20922
  export type workflow_aborted_sessionsWhereInput = {
@@ -20492,12 +21871,14 @@ export namespace Prisma {
20492
21871
  workflow_slug: string
20493
21872
  session_id?: string | null
20494
21873
  message_id?: string | null
20495
- user: usersCreateNestedOneWithoutWorkflowRunsInput
21874
+ run_source: string
21875
+ user?: usersCreateNestedOneWithoutWorkflowRunsInput
21876
+ workflowApiKey?: workflow_api_keysCreateNestedOneWithoutWorkflowRunsInput
20496
21877
  }
20497
21878
 
20498
21879
  export type workflow_runsUncheckedCreateInput = {
20499
21880
  id?: string
20500
- ran_by_user_id: string
21881
+ ran_by_user_id?: string | null
20501
21882
  status: string
20502
21883
  started_at: bigint | number
20503
21884
  completed_at?: bigint | number | null
@@ -20507,6 +21888,8 @@ export namespace Prisma {
20507
21888
  workflow_slug: string
20508
21889
  session_id?: string | null
20509
21890
  message_id?: string | null
21891
+ run_source: string
21892
+ workflow_api_key_id?: string | null
20510
21893
  }
20511
21894
 
20512
21895
  export type workflow_runsUpdateInput = {
@@ -20520,12 +21903,14 @@ export namespace Prisma {
20520
21903
  workflow_slug?: StringFieldUpdateOperationsInput | string
20521
21904
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
20522
21905
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
20523
- user?: usersUpdateOneRequiredWithoutWorkflowRunsNestedInput
21906
+ run_source?: StringFieldUpdateOperationsInput | string
21907
+ user?: usersUpdateOneWithoutWorkflowRunsNestedInput
21908
+ workflowApiKey?: workflow_api_keysUpdateOneWithoutWorkflowRunsNestedInput
20524
21909
  }
20525
21910
 
20526
21911
  export type workflow_runsUncheckedUpdateInput = {
20527
21912
  id?: StringFieldUpdateOperationsInput | string
20528
- ran_by_user_id?: StringFieldUpdateOperationsInput | string
21913
+ ran_by_user_id?: NullableStringFieldUpdateOperationsInput | string | null
20529
21914
  status?: StringFieldUpdateOperationsInput | string
20530
21915
  started_at?: BigIntFieldUpdateOperationsInput | bigint | number
20531
21916
  completed_at?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
@@ -20535,11 +21920,13 @@ export namespace Prisma {
20535
21920
  workflow_slug?: StringFieldUpdateOperationsInput | string
20536
21921
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
20537
21922
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
21923
+ run_source?: StringFieldUpdateOperationsInput | string
21924
+ workflow_api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
20538
21925
  }
20539
21926
 
20540
21927
  export type workflow_runsCreateManyInput = {
20541
21928
  id?: string
20542
- ran_by_user_id: string
21929
+ ran_by_user_id?: string | null
20543
21930
  status: string
20544
21931
  started_at: bigint | number
20545
21932
  completed_at?: bigint | number | null
@@ -20549,6 +21936,8 @@ export namespace Prisma {
20549
21936
  workflow_slug: string
20550
21937
  session_id?: string | null
20551
21938
  message_id?: string | null
21939
+ run_source: string
21940
+ workflow_api_key_id?: string | null
20552
21941
  }
20553
21942
 
20554
21943
  export type workflow_runsUpdateManyMutationInput = {
@@ -20562,11 +21951,12 @@ export namespace Prisma {
20562
21951
  workflow_slug?: StringFieldUpdateOperationsInput | string
20563
21952
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
20564
21953
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
21954
+ run_source?: StringFieldUpdateOperationsInput | string
20565
21955
  }
20566
21956
 
20567
21957
  export type workflow_runsUncheckedUpdateManyInput = {
20568
21958
  id?: StringFieldUpdateOperationsInput | string
20569
- ran_by_user_id?: StringFieldUpdateOperationsInput | string
21959
+ ran_by_user_id?: NullableStringFieldUpdateOperationsInput | string | null
20570
21960
  status?: StringFieldUpdateOperationsInput | string
20571
21961
  started_at?: BigIntFieldUpdateOperationsInput | bigint | number
20572
21962
  completed_at?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
@@ -20576,6 +21966,68 @@ export namespace Prisma {
20576
21966
  workflow_slug?: StringFieldUpdateOperationsInput | string
20577
21967
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
20578
21968
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
21969
+ run_source?: StringFieldUpdateOperationsInput | string
21970
+ workflow_api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
21971
+ }
21972
+
21973
+ export type workflow_api_keysCreateInput = {
21974
+ id?: string
21975
+ workflow_slug: string
21976
+ api_key: string
21977
+ created_by_user_id: string
21978
+ created_at: bigint | number
21979
+ workflowRuns?: workflow_runsCreateNestedManyWithoutWorkflowApiKeyInput
21980
+ }
21981
+
21982
+ export type workflow_api_keysUncheckedCreateInput = {
21983
+ id?: string
21984
+ workflow_slug: string
21985
+ api_key: string
21986
+ created_by_user_id: string
21987
+ created_at: bigint | number
21988
+ workflowRuns?: workflow_runsUncheckedCreateNestedManyWithoutWorkflowApiKeyInput
21989
+ }
21990
+
21991
+ export type workflow_api_keysUpdateInput = {
21992
+ id?: StringFieldUpdateOperationsInput | string
21993
+ workflow_slug?: StringFieldUpdateOperationsInput | string
21994
+ api_key?: StringFieldUpdateOperationsInput | string
21995
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
21996
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
21997
+ workflowRuns?: workflow_runsUpdateManyWithoutWorkflowApiKeyNestedInput
21998
+ }
21999
+
22000
+ export type workflow_api_keysUncheckedUpdateInput = {
22001
+ id?: StringFieldUpdateOperationsInput | string
22002
+ workflow_slug?: StringFieldUpdateOperationsInput | string
22003
+ api_key?: StringFieldUpdateOperationsInput | string
22004
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
22005
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
22006
+ workflowRuns?: workflow_runsUncheckedUpdateManyWithoutWorkflowApiKeyNestedInput
22007
+ }
22008
+
22009
+ export type workflow_api_keysCreateManyInput = {
22010
+ id?: string
22011
+ workflow_slug: string
22012
+ api_key: string
22013
+ created_by_user_id: string
22014
+ created_at: bigint | number
22015
+ }
22016
+
22017
+ export type workflow_api_keysUpdateManyMutationInput = {
22018
+ id?: StringFieldUpdateOperationsInput | string
22019
+ workflow_slug?: StringFieldUpdateOperationsInput | string
22020
+ api_key?: StringFieldUpdateOperationsInput | string
22021
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
22022
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
22023
+ }
22024
+
22025
+ export type workflow_api_keysUncheckedUpdateManyInput = {
22026
+ id?: StringFieldUpdateOperationsInput | string
22027
+ workflow_slug?: StringFieldUpdateOperationsInput | string
22028
+ api_key?: StringFieldUpdateOperationsInput | string
22029
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
22030
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
20579
22031
  }
20580
22032
 
20581
22033
  export type workflow_aborted_sessionsCreateInput = {
@@ -21649,9 +23101,14 @@ export namespace Prisma {
21649
23101
  _max?: NestedBigIntNullableFilter<$PrismaModel>
21650
23102
  }
21651
23103
 
21652
- export type UsersScalarRelationFilter = {
21653
- is?: usersWhereInput
21654
- isNot?: usersWhereInput
23104
+ export type UsersNullableScalarRelationFilter = {
23105
+ is?: usersWhereInput | null
23106
+ isNot?: usersWhereInput | null
23107
+ }
23108
+
23109
+ export type Workflow_api_keysNullableScalarRelationFilter = {
23110
+ is?: workflow_api_keysWhereInput | null
23111
+ isNot?: workflow_api_keysWhereInput | null
21655
23112
  }
21656
23113
 
21657
23114
  export type workflow_runsCountOrderByAggregateInput = {
@@ -21666,6 +23123,8 @@ export namespace Prisma {
21666
23123
  workflow_slug?: SortOrder
21667
23124
  session_id?: SortOrder
21668
23125
  message_id?: SortOrder
23126
+ run_source?: SortOrder
23127
+ workflow_api_key_id?: SortOrder
21669
23128
  }
21670
23129
 
21671
23130
  export type workflow_runsAvgOrderByAggregateInput = {
@@ -21685,6 +23144,8 @@ export namespace Prisma {
21685
23144
  workflow_slug?: SortOrder
21686
23145
  session_id?: SortOrder
21687
23146
  message_id?: SortOrder
23147
+ run_source?: SortOrder
23148
+ workflow_api_key_id?: SortOrder
21688
23149
  }
21689
23150
 
21690
23151
  export type workflow_runsMinOrderByAggregateInput = {
@@ -21699,6 +23160,8 @@ export namespace Prisma {
21699
23160
  workflow_slug?: SortOrder
21700
23161
  session_id?: SortOrder
21701
23162
  message_id?: SortOrder
23163
+ run_source?: SortOrder
23164
+ workflow_api_key_id?: SortOrder
21702
23165
  }
21703
23166
 
21704
23167
  export type workflow_runsSumOrderByAggregateInput = {
@@ -21706,6 +23169,38 @@ export namespace Prisma {
21706
23169
  completed_at?: SortOrder
21707
23170
  }
21708
23171
 
23172
+ export type workflow_api_keysCountOrderByAggregateInput = {
23173
+ id?: SortOrder
23174
+ workflow_slug?: SortOrder
23175
+ api_key?: SortOrder
23176
+ created_by_user_id?: SortOrder
23177
+ created_at?: SortOrder
23178
+ }
23179
+
23180
+ export type workflow_api_keysAvgOrderByAggregateInput = {
23181
+ created_at?: SortOrder
23182
+ }
23183
+
23184
+ export type workflow_api_keysMaxOrderByAggregateInput = {
23185
+ id?: SortOrder
23186
+ workflow_slug?: SortOrder
23187
+ api_key?: SortOrder
23188
+ created_by_user_id?: SortOrder
23189
+ created_at?: SortOrder
23190
+ }
23191
+
23192
+ export type workflow_api_keysMinOrderByAggregateInput = {
23193
+ id?: SortOrder
23194
+ workflow_slug?: SortOrder
23195
+ api_key?: SortOrder
23196
+ created_by_user_id?: SortOrder
23197
+ created_at?: SortOrder
23198
+ }
23199
+
23200
+ export type workflow_api_keysSumOrderByAggregateInput = {
23201
+ created_at?: SortOrder
23202
+ }
23203
+
21709
23204
  export type workflow_aborted_sessionsCountOrderByAggregateInput = {
21710
23205
  session_id?: SortOrder
21711
23206
  created_at?: SortOrder
@@ -21744,6 +23239,11 @@ export namespace Prisma {
21744
23239
  value?: SortOrder
21745
23240
  }
21746
23241
 
23242
+ export type UsersScalarRelationFilter = {
23243
+ is?: usersWhereInput
23244
+ isNot?: usersWhereInput
23245
+ }
23246
+
21747
23247
  export type user_secretsUser_idKeyCompoundUniqueInput = {
21748
23248
  user_id: string
21749
23249
  key: string
@@ -22146,11 +23646,6 @@ export namespace Prisma {
22146
23646
  isNot?: resource_approved_snapshotsWhereInput | null
22147
23647
  }
22148
23648
 
22149
- export type UsersNullableScalarRelationFilter = {
22150
- is?: usersWhereInput | null
22151
- isNot?: usersWhereInput | null
22152
- }
22153
-
22154
23649
  export type resource_metadataResource_kindResource_slugCompoundUniqueInput = {
22155
23650
  resource_kind: string
22156
23651
  resource_slug: string
@@ -22672,14 +24167,74 @@ export namespace Prisma {
22672
24167
  connect?: usersWhereUniqueInput
22673
24168
  }
22674
24169
 
22675
- export type usersUpdateOneRequiredWithoutWorkflowRunsNestedInput = {
24170
+ export type workflow_api_keysCreateNestedOneWithoutWorkflowRunsInput = {
24171
+ create?: XOR<workflow_api_keysCreateWithoutWorkflowRunsInput, workflow_api_keysUncheckedCreateWithoutWorkflowRunsInput>
24172
+ connectOrCreate?: workflow_api_keysCreateOrConnectWithoutWorkflowRunsInput
24173
+ connect?: workflow_api_keysWhereUniqueInput
24174
+ }
24175
+
24176
+ export type usersUpdateOneWithoutWorkflowRunsNestedInput = {
22676
24177
  create?: XOR<usersCreateWithoutWorkflowRunsInput, usersUncheckedCreateWithoutWorkflowRunsInput>
22677
24178
  connectOrCreate?: usersCreateOrConnectWithoutWorkflowRunsInput
22678
24179
  upsert?: usersUpsertWithoutWorkflowRunsInput
24180
+ disconnect?: usersWhereInput | boolean
24181
+ delete?: usersWhereInput | boolean
22679
24182
  connect?: usersWhereUniqueInput
22680
24183
  update?: XOR<XOR<usersUpdateToOneWithWhereWithoutWorkflowRunsInput, usersUpdateWithoutWorkflowRunsInput>, usersUncheckedUpdateWithoutWorkflowRunsInput>
22681
24184
  }
22682
24185
 
24186
+ export type workflow_api_keysUpdateOneWithoutWorkflowRunsNestedInput = {
24187
+ create?: XOR<workflow_api_keysCreateWithoutWorkflowRunsInput, workflow_api_keysUncheckedCreateWithoutWorkflowRunsInput>
24188
+ connectOrCreate?: workflow_api_keysCreateOrConnectWithoutWorkflowRunsInput
24189
+ upsert?: workflow_api_keysUpsertWithoutWorkflowRunsInput
24190
+ disconnect?: workflow_api_keysWhereInput | boolean
24191
+ delete?: workflow_api_keysWhereInput | boolean
24192
+ connect?: workflow_api_keysWhereUniqueInput
24193
+ update?: XOR<XOR<workflow_api_keysUpdateToOneWithWhereWithoutWorkflowRunsInput, workflow_api_keysUpdateWithoutWorkflowRunsInput>, workflow_api_keysUncheckedUpdateWithoutWorkflowRunsInput>
24194
+ }
24195
+
24196
+ export type workflow_runsCreateNestedManyWithoutWorkflowApiKeyInput = {
24197
+ create?: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput> | workflow_runsCreateWithoutWorkflowApiKeyInput[] | workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput[]
24198
+ connectOrCreate?: workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput | workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput[]
24199
+ createMany?: workflow_runsCreateManyWorkflowApiKeyInputEnvelope
24200
+ connect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24201
+ }
24202
+
24203
+ export type workflow_runsUncheckedCreateNestedManyWithoutWorkflowApiKeyInput = {
24204
+ create?: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput> | workflow_runsCreateWithoutWorkflowApiKeyInput[] | workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput[]
24205
+ connectOrCreate?: workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput | workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput[]
24206
+ createMany?: workflow_runsCreateManyWorkflowApiKeyInputEnvelope
24207
+ connect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24208
+ }
24209
+
24210
+ export type workflow_runsUpdateManyWithoutWorkflowApiKeyNestedInput = {
24211
+ create?: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput> | workflow_runsCreateWithoutWorkflowApiKeyInput[] | workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput[]
24212
+ connectOrCreate?: workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput | workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput[]
24213
+ upsert?: workflow_runsUpsertWithWhereUniqueWithoutWorkflowApiKeyInput | workflow_runsUpsertWithWhereUniqueWithoutWorkflowApiKeyInput[]
24214
+ createMany?: workflow_runsCreateManyWorkflowApiKeyInputEnvelope
24215
+ set?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24216
+ disconnect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24217
+ delete?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24218
+ connect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24219
+ update?: workflow_runsUpdateWithWhereUniqueWithoutWorkflowApiKeyInput | workflow_runsUpdateWithWhereUniqueWithoutWorkflowApiKeyInput[]
24220
+ updateMany?: workflow_runsUpdateManyWithWhereWithoutWorkflowApiKeyInput | workflow_runsUpdateManyWithWhereWithoutWorkflowApiKeyInput[]
24221
+ deleteMany?: workflow_runsScalarWhereInput | workflow_runsScalarWhereInput[]
24222
+ }
24223
+
24224
+ export type workflow_runsUncheckedUpdateManyWithoutWorkflowApiKeyNestedInput = {
24225
+ create?: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput> | workflow_runsCreateWithoutWorkflowApiKeyInput[] | workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput[]
24226
+ connectOrCreate?: workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput | workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput[]
24227
+ upsert?: workflow_runsUpsertWithWhereUniqueWithoutWorkflowApiKeyInput | workflow_runsUpsertWithWhereUniqueWithoutWorkflowApiKeyInput[]
24228
+ createMany?: workflow_runsCreateManyWorkflowApiKeyInputEnvelope
24229
+ set?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24230
+ disconnect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24231
+ delete?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24232
+ connect?: workflow_runsWhereUniqueInput | workflow_runsWhereUniqueInput[]
24233
+ update?: workflow_runsUpdateWithWhereUniqueWithoutWorkflowApiKeyInput | workflow_runsUpdateWithWhereUniqueWithoutWorkflowApiKeyInput[]
24234
+ updateMany?: workflow_runsUpdateManyWithWhereWithoutWorkflowApiKeyInput | workflow_runsUpdateManyWithWhereWithoutWorkflowApiKeyInput[]
24235
+ deleteMany?: workflow_runsScalarWhereInput | workflow_runsScalarWhereInput[]
24236
+ }
24237
+
22683
24238
  export type usersCreateNestedOneWithoutUserSecretsInput = {
22684
24239
  create?: XOR<usersCreateWithoutUserSecretsInput, usersUncheckedCreateWithoutUserSecretsInput>
22685
24240
  connectOrCreate?: usersCreateOrConnectWithoutUserSecretsInput
@@ -23291,6 +24846,8 @@ export namespace Prisma {
23291
24846
  workflow_slug: string
23292
24847
  session_id?: string | null
23293
24848
  message_id?: string | null
24849
+ run_source: string
24850
+ workflowApiKey?: workflow_api_keysCreateNestedOneWithoutWorkflowRunsInput
23294
24851
  }
23295
24852
 
23296
24853
  export type workflow_runsUncheckedCreateWithoutUserInput = {
@@ -23304,6 +24861,8 @@ export namespace Prisma {
23304
24861
  workflow_slug: string
23305
24862
  session_id?: string | null
23306
24863
  message_id?: string | null
24864
+ run_source: string
24865
+ workflow_api_key_id?: string | null
23307
24866
  }
23308
24867
 
23309
24868
  export type workflow_runsCreateOrConnectWithoutUserInput = {
@@ -23468,7 +25027,7 @@ export namespace Prisma {
23468
25027
  OR?: workflow_runsScalarWhereInput[]
23469
25028
  NOT?: workflow_runsScalarWhereInput | workflow_runsScalarWhereInput[]
23470
25029
  id?: StringFilter<"workflow_runs"> | string
23471
- ran_by_user_id?: StringFilter<"workflow_runs"> | string
25030
+ ran_by_user_id?: StringNullableFilter<"workflow_runs"> | string | null
23472
25031
  status?: StringFilter<"workflow_runs"> | string
23473
25032
  started_at?: BigIntFilter<"workflow_runs"> | bigint | number
23474
25033
  completed_at?: BigIntNullableFilter<"workflow_runs"> | bigint | number | null
@@ -23478,6 +25037,8 @@ export namespace Prisma {
23478
25037
  workflow_slug?: StringFilter<"workflow_runs"> | string
23479
25038
  session_id?: StringNullableFilter<"workflow_runs"> | string | null
23480
25039
  message_id?: StringNullableFilter<"workflow_runs"> | string | null
25040
+ run_source?: StringFilter<"workflow_runs"> | string
25041
+ workflow_api_key_id?: StringNullableFilter<"workflow_runs"> | string | null
23481
25042
  }
23482
25043
 
23483
25044
  export type chat_sessionsUpsertWithWhereUniqueWithoutUserInput = {
@@ -23647,6 +25208,27 @@ export namespace Prisma {
23647
25208
  create: XOR<usersCreateWithoutWorkflowRunsInput, usersUncheckedCreateWithoutWorkflowRunsInput>
23648
25209
  }
23649
25210
 
25211
+ export type workflow_api_keysCreateWithoutWorkflowRunsInput = {
25212
+ id?: string
25213
+ workflow_slug: string
25214
+ api_key: string
25215
+ created_by_user_id: string
25216
+ created_at: bigint | number
25217
+ }
25218
+
25219
+ export type workflow_api_keysUncheckedCreateWithoutWorkflowRunsInput = {
25220
+ id?: string
25221
+ workflow_slug: string
25222
+ api_key: string
25223
+ created_by_user_id: string
25224
+ created_at: bigint | number
25225
+ }
25226
+
25227
+ export type workflow_api_keysCreateOrConnectWithoutWorkflowRunsInput = {
25228
+ where: workflow_api_keysWhereUniqueInput
25229
+ create: XOR<workflow_api_keysCreateWithoutWorkflowRunsInput, workflow_api_keysUncheckedCreateWithoutWorkflowRunsInput>
25230
+ }
25231
+
23650
25232
  export type usersUpsertWithoutWorkflowRunsInput = {
23651
25233
  update: XOR<usersUpdateWithoutWorkflowRunsInput, usersUncheckedUpdateWithoutWorkflowRunsInput>
23652
25234
  create: XOR<usersCreateWithoutWorkflowRunsInput, usersUncheckedCreateWithoutWorkflowRunsInput>
@@ -23692,6 +25274,88 @@ export namespace Prisma {
23692
25274
  userSecrets?: user_secretsUncheckedUpdateManyWithoutUserNestedInput
23693
25275
  }
23694
25276
 
25277
+ export type workflow_api_keysUpsertWithoutWorkflowRunsInput = {
25278
+ update: XOR<workflow_api_keysUpdateWithoutWorkflowRunsInput, workflow_api_keysUncheckedUpdateWithoutWorkflowRunsInput>
25279
+ create: XOR<workflow_api_keysCreateWithoutWorkflowRunsInput, workflow_api_keysUncheckedCreateWithoutWorkflowRunsInput>
25280
+ where?: workflow_api_keysWhereInput
25281
+ }
25282
+
25283
+ export type workflow_api_keysUpdateToOneWithWhereWithoutWorkflowRunsInput = {
25284
+ where?: workflow_api_keysWhereInput
25285
+ data: XOR<workflow_api_keysUpdateWithoutWorkflowRunsInput, workflow_api_keysUncheckedUpdateWithoutWorkflowRunsInput>
25286
+ }
25287
+
25288
+ export type workflow_api_keysUpdateWithoutWorkflowRunsInput = {
25289
+ id?: StringFieldUpdateOperationsInput | string
25290
+ workflow_slug?: StringFieldUpdateOperationsInput | string
25291
+ api_key?: StringFieldUpdateOperationsInput | string
25292
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
25293
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
25294
+ }
25295
+
25296
+ export type workflow_api_keysUncheckedUpdateWithoutWorkflowRunsInput = {
25297
+ id?: StringFieldUpdateOperationsInput | string
25298
+ workflow_slug?: StringFieldUpdateOperationsInput | string
25299
+ api_key?: StringFieldUpdateOperationsInput | string
25300
+ created_by_user_id?: StringFieldUpdateOperationsInput | string
25301
+ created_at?: BigIntFieldUpdateOperationsInput | bigint | number
25302
+ }
25303
+
25304
+ export type workflow_runsCreateWithoutWorkflowApiKeyInput = {
25305
+ id?: string
25306
+ status: string
25307
+ started_at: bigint | number
25308
+ completed_at?: bigint | number | null
25309
+ args?: string | null
25310
+ error_message?: string | null
25311
+ output?: string | null
25312
+ workflow_slug: string
25313
+ session_id?: string | null
25314
+ message_id?: string | null
25315
+ run_source: string
25316
+ user?: usersCreateNestedOneWithoutWorkflowRunsInput
25317
+ }
25318
+
25319
+ export type workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput = {
25320
+ id?: string
25321
+ ran_by_user_id?: string | null
25322
+ status: string
25323
+ started_at: bigint | number
25324
+ completed_at?: bigint | number | null
25325
+ args?: string | null
25326
+ error_message?: string | null
25327
+ output?: string | null
25328
+ workflow_slug: string
25329
+ session_id?: string | null
25330
+ message_id?: string | null
25331
+ run_source: string
25332
+ }
25333
+
25334
+ export type workflow_runsCreateOrConnectWithoutWorkflowApiKeyInput = {
25335
+ where: workflow_runsWhereUniqueInput
25336
+ create: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput>
25337
+ }
25338
+
25339
+ export type workflow_runsCreateManyWorkflowApiKeyInputEnvelope = {
25340
+ data: workflow_runsCreateManyWorkflowApiKeyInput | workflow_runsCreateManyWorkflowApiKeyInput[]
25341
+ }
25342
+
25343
+ export type workflow_runsUpsertWithWhereUniqueWithoutWorkflowApiKeyInput = {
25344
+ where: workflow_runsWhereUniqueInput
25345
+ update: XOR<workflow_runsUpdateWithoutWorkflowApiKeyInput, workflow_runsUncheckedUpdateWithoutWorkflowApiKeyInput>
25346
+ create: XOR<workflow_runsCreateWithoutWorkflowApiKeyInput, workflow_runsUncheckedCreateWithoutWorkflowApiKeyInput>
25347
+ }
25348
+
25349
+ export type workflow_runsUpdateWithWhereUniqueWithoutWorkflowApiKeyInput = {
25350
+ where: workflow_runsWhereUniqueInput
25351
+ data: XOR<workflow_runsUpdateWithoutWorkflowApiKeyInput, workflow_runsUncheckedUpdateWithoutWorkflowApiKeyInput>
25352
+ }
25353
+
25354
+ export type workflow_runsUpdateManyWithWhereWithoutWorkflowApiKeyInput = {
25355
+ where: workflow_runsScalarWhereInput
25356
+ data: XOR<workflow_runsUpdateManyMutationInput, workflow_runsUncheckedUpdateManyWithoutWorkflowApiKeyInput>
25357
+ }
25358
+
23695
25359
  export type usersCreateWithoutUserSecretsInput = {
23696
25360
  id?: string
23697
25361
  email: string
@@ -24658,6 +26322,8 @@ export namespace Prisma {
24658
26322
  workflow_slug: string
24659
26323
  session_id?: string | null
24660
26324
  message_id?: string | null
26325
+ run_source: string
26326
+ workflow_api_key_id?: string | null
24661
26327
  }
24662
26328
 
24663
26329
  export type chat_sessionsCreateManyUserInput = {
@@ -24711,6 +26377,8 @@ export namespace Prisma {
24711
26377
  workflow_slug?: StringFieldUpdateOperationsInput | string
24712
26378
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
24713
26379
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
26380
+ run_source?: StringFieldUpdateOperationsInput | string
26381
+ workflowApiKey?: workflow_api_keysUpdateOneWithoutWorkflowRunsNestedInput
24714
26382
  }
24715
26383
 
24716
26384
  export type workflow_runsUncheckedUpdateWithoutUserInput = {
@@ -24724,6 +26392,8 @@ export namespace Prisma {
24724
26392
  workflow_slug?: StringFieldUpdateOperationsInput | string
24725
26393
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
24726
26394
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
26395
+ run_source?: StringFieldUpdateOperationsInput | string
26396
+ workflow_api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
24727
26397
  }
24728
26398
 
24729
26399
  export type workflow_runsUncheckedUpdateManyWithoutUserInput = {
@@ -24737,6 +26407,8 @@ export namespace Prisma {
24737
26407
  workflow_slug?: StringFieldUpdateOperationsInput | string
24738
26408
  session_id?: NullableStringFieldUpdateOperationsInput | string | null
24739
26409
  message_id?: NullableStringFieldUpdateOperationsInput | string | null
26410
+ run_source?: StringFieldUpdateOperationsInput | string
26411
+ workflow_api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
24740
26412
  }
24741
26413
 
24742
26414
  export type chat_sessionsUpdateWithoutUserInput = {
@@ -24866,6 +26538,66 @@ export namespace Prisma {
24866
26538
  updated_at?: BigIntFieldUpdateOperationsInput | bigint | number
24867
26539
  }
24868
26540
 
26541
+ export type workflow_runsCreateManyWorkflowApiKeyInput = {
26542
+ id?: string
26543
+ ran_by_user_id?: string | null
26544
+ status: string
26545
+ started_at: bigint | number
26546
+ completed_at?: bigint | number | null
26547
+ args?: string | null
26548
+ error_message?: string | null
26549
+ output?: string | null
26550
+ workflow_slug: string
26551
+ session_id?: string | null
26552
+ message_id?: string | null
26553
+ run_source: string
26554
+ }
26555
+
26556
+ export type workflow_runsUpdateWithoutWorkflowApiKeyInput = {
26557
+ id?: StringFieldUpdateOperationsInput | string
26558
+ status?: StringFieldUpdateOperationsInput | string
26559
+ started_at?: BigIntFieldUpdateOperationsInput | bigint | number
26560
+ completed_at?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
26561
+ args?: NullableStringFieldUpdateOperationsInput | string | null
26562
+ error_message?: NullableStringFieldUpdateOperationsInput | string | null
26563
+ output?: NullableStringFieldUpdateOperationsInput | string | null
26564
+ workflow_slug?: StringFieldUpdateOperationsInput | string
26565
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
26566
+ message_id?: NullableStringFieldUpdateOperationsInput | string | null
26567
+ run_source?: StringFieldUpdateOperationsInput | string
26568
+ user?: usersUpdateOneWithoutWorkflowRunsNestedInput
26569
+ }
26570
+
26571
+ export type workflow_runsUncheckedUpdateWithoutWorkflowApiKeyInput = {
26572
+ id?: StringFieldUpdateOperationsInput | string
26573
+ ran_by_user_id?: NullableStringFieldUpdateOperationsInput | string | null
26574
+ status?: StringFieldUpdateOperationsInput | string
26575
+ started_at?: BigIntFieldUpdateOperationsInput | bigint | number
26576
+ completed_at?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
26577
+ args?: NullableStringFieldUpdateOperationsInput | string | null
26578
+ error_message?: NullableStringFieldUpdateOperationsInput | string | null
26579
+ output?: NullableStringFieldUpdateOperationsInput | string | null
26580
+ workflow_slug?: StringFieldUpdateOperationsInput | string
26581
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
26582
+ message_id?: NullableStringFieldUpdateOperationsInput | string | null
26583
+ run_source?: StringFieldUpdateOperationsInput | string
26584
+ }
26585
+
26586
+ export type workflow_runsUncheckedUpdateManyWithoutWorkflowApiKeyInput = {
26587
+ id?: StringFieldUpdateOperationsInput | string
26588
+ ran_by_user_id?: NullableStringFieldUpdateOperationsInput | string | null
26589
+ status?: StringFieldUpdateOperationsInput | string
26590
+ started_at?: BigIntFieldUpdateOperationsInput | bigint | number
26591
+ completed_at?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
26592
+ args?: NullableStringFieldUpdateOperationsInput | string | null
26593
+ error_message?: NullableStringFieldUpdateOperationsInput | string | null
26594
+ output?: NullableStringFieldUpdateOperationsInput | string | null
26595
+ workflow_slug?: StringFieldUpdateOperationsInput | string
26596
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
26597
+ message_id?: NullableStringFieldUpdateOperationsInput | string | null
26598
+ run_source?: StringFieldUpdateOperationsInput | string
26599
+ }
26600
+
24869
26601
  export type chat_session_tracked_filesCreateManySessionInput = {
24870
26602
  id?: string
24871
26603
  relative_path: string