@allbluecn/database 0.14.7 → 0.14.9

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.
@@ -0,0 +1,1770 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `HarnessSshHost` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model HarnessSshHost
17
+ * SSH 执行目标主机档案(任务 16,仅桌面):设备本地信任锚,不注册 sync。
18
+ * 凭据明文只进 HarnessConnectorAccount(credentialId 引用,以主机记录 id 为 label),
19
+ * 库里只存指纹固定值 pinnedFingerprint(TOFU 首次信任后逐次比对)。
20
+ */
21
+ export type HarnessSshHostModel = runtime.Types.Result.DefaultSelection<Prisma.$HarnessSshHostPayload>
22
+
23
+ export type AggregateHarnessSshHost = {
24
+ _count: HarnessSshHostCountAggregateOutputType | null
25
+ _avg: HarnessSshHostAvgAggregateOutputType | null
26
+ _sum: HarnessSshHostSumAggregateOutputType | null
27
+ _min: HarnessSshHostMinAggregateOutputType | null
28
+ _max: HarnessSshHostMaxAggregateOutputType | null
29
+ }
30
+
31
+ export type HarnessSshHostAvgAggregateOutputType = {
32
+ port: number | null
33
+ }
34
+
35
+ export type HarnessSshHostSumAggregateOutputType = {
36
+ port: number | null
37
+ }
38
+
39
+ export type HarnessSshHostMinAggregateOutputType = {
40
+ id: string | null
41
+ userId: string | null
42
+ name: string | null
43
+ host: string | null
44
+ port: number | null
45
+ username: string | null
46
+ authMethod: string | null
47
+ credentialId: string | null
48
+ pinnedFingerprint: string | null
49
+ createdAt: Date | null
50
+ updatedAt: Date | null
51
+ }
52
+
53
+ export type HarnessSshHostMaxAggregateOutputType = {
54
+ id: string | null
55
+ userId: string | null
56
+ name: string | null
57
+ host: string | null
58
+ port: number | null
59
+ username: string | null
60
+ authMethod: string | null
61
+ credentialId: string | null
62
+ pinnedFingerprint: string | null
63
+ createdAt: Date | null
64
+ updatedAt: Date | null
65
+ }
66
+
67
+ export type HarnessSshHostCountAggregateOutputType = {
68
+ id: number
69
+ userId: number
70
+ name: number
71
+ host: number
72
+ port: number
73
+ username: number
74
+ authMethod: number
75
+ credentialId: number
76
+ pinnedFingerprint: number
77
+ createdAt: number
78
+ updatedAt: number
79
+ _all: number
80
+ }
81
+
82
+
83
+ export type HarnessSshHostAvgAggregateInputType = {
84
+ port?: true
85
+ }
86
+
87
+ export type HarnessSshHostSumAggregateInputType = {
88
+ port?: true
89
+ }
90
+
91
+ export type HarnessSshHostMinAggregateInputType = {
92
+ id?: true
93
+ userId?: true
94
+ name?: true
95
+ host?: true
96
+ port?: true
97
+ username?: true
98
+ authMethod?: true
99
+ credentialId?: true
100
+ pinnedFingerprint?: true
101
+ createdAt?: true
102
+ updatedAt?: true
103
+ }
104
+
105
+ export type HarnessSshHostMaxAggregateInputType = {
106
+ id?: true
107
+ userId?: true
108
+ name?: true
109
+ host?: true
110
+ port?: true
111
+ username?: true
112
+ authMethod?: true
113
+ credentialId?: true
114
+ pinnedFingerprint?: true
115
+ createdAt?: true
116
+ updatedAt?: true
117
+ }
118
+
119
+ export type HarnessSshHostCountAggregateInputType = {
120
+ id?: true
121
+ userId?: true
122
+ name?: true
123
+ host?: true
124
+ port?: true
125
+ username?: true
126
+ authMethod?: true
127
+ credentialId?: true
128
+ pinnedFingerprint?: true
129
+ createdAt?: true
130
+ updatedAt?: true
131
+ _all?: true
132
+ }
133
+
134
+ export type HarnessSshHostAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
135
+ /**
136
+ * Filter which HarnessSshHost to aggregate.
137
+ */
138
+ where?: Prisma.HarnessSshHostWhereInput
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
141
+ *
142
+ * Determine the order of HarnessSshHosts to fetch.
143
+ */
144
+ orderBy?: Prisma.HarnessSshHostOrderByWithRelationInput | Prisma.HarnessSshHostOrderByWithRelationInput[]
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
147
+ *
148
+ * Sets the start position
149
+ */
150
+ cursor?: Prisma.HarnessSshHostWhereUniqueInput
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
153
+ *
154
+ * Take `±n` HarnessSshHosts from the position of the cursor.
155
+ */
156
+ take?: number
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
159
+ *
160
+ * Skip the first `n` HarnessSshHosts.
161
+ */
162
+ skip?: number
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Count returned HarnessSshHosts
167
+ **/
168
+ _count?: true | HarnessSshHostCountAggregateInputType
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to average
173
+ **/
174
+ _avg?: HarnessSshHostAvgAggregateInputType
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
+ *
178
+ * Select which fields to sum
179
+ **/
180
+ _sum?: HarnessSshHostSumAggregateInputType
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
+ *
184
+ * Select which fields to find the minimum value
185
+ **/
186
+ _min?: HarnessSshHostMinAggregateInputType
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
+ *
190
+ * Select which fields to find the maximum value
191
+ **/
192
+ _max?: HarnessSshHostMaxAggregateInputType
193
+ }
194
+
195
+ export type GetHarnessSshHostAggregateType<T extends HarnessSshHostAggregateArgs> = {
196
+ [P in keyof T & keyof AggregateHarnessSshHost]: P extends '_count' | 'count'
197
+ ? T[P] extends true
198
+ ? number
199
+ : Prisma.GetScalarType<T[P], AggregateHarnessSshHost[P]>
200
+ : Prisma.GetScalarType<T[P], AggregateHarnessSshHost[P]>
201
+ }
202
+
203
+
204
+
205
+
206
+ export type HarnessSshHostGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
207
+ where?: Prisma.HarnessSshHostWhereInput
208
+ orderBy?: Prisma.HarnessSshHostOrderByWithAggregationInput | Prisma.HarnessSshHostOrderByWithAggregationInput[]
209
+ by: Prisma.HarnessSshHostScalarFieldEnum[] | Prisma.HarnessSshHostScalarFieldEnum
210
+ having?: Prisma.HarnessSshHostScalarWhereWithAggregatesInput
211
+ take?: number
212
+ skip?: number
213
+ _count?: HarnessSshHostCountAggregateInputType | true
214
+ _avg?: HarnessSshHostAvgAggregateInputType
215
+ _sum?: HarnessSshHostSumAggregateInputType
216
+ _min?: HarnessSshHostMinAggregateInputType
217
+ _max?: HarnessSshHostMaxAggregateInputType
218
+ }
219
+
220
+ export type HarnessSshHostGroupByOutputType = {
221
+ id: string
222
+ userId: string
223
+ name: string
224
+ host: string
225
+ port: number
226
+ username: string
227
+ authMethod: string
228
+ credentialId: string
229
+ pinnedFingerprint: string
230
+ createdAt: Date
231
+ updatedAt: Date
232
+ _count: HarnessSshHostCountAggregateOutputType | null
233
+ _avg: HarnessSshHostAvgAggregateOutputType | null
234
+ _sum: HarnessSshHostSumAggregateOutputType | null
235
+ _min: HarnessSshHostMinAggregateOutputType | null
236
+ _max: HarnessSshHostMaxAggregateOutputType | null
237
+ }
238
+
239
+ export type GetHarnessSshHostGroupByPayload<T extends HarnessSshHostGroupByArgs> = Prisma.PrismaPromise<
240
+ Array<
241
+ Prisma.PickEnumerable<HarnessSshHostGroupByOutputType, T['by']> &
242
+ {
243
+ [P in ((keyof T) & (keyof HarnessSshHostGroupByOutputType))]: P extends '_count'
244
+ ? T[P] extends boolean
245
+ ? number
246
+ : Prisma.GetScalarType<T[P], HarnessSshHostGroupByOutputType[P]>
247
+ : Prisma.GetScalarType<T[P], HarnessSshHostGroupByOutputType[P]>
248
+ }
249
+ >
250
+ >
251
+
252
+
253
+
254
+ export type HarnessSshHostWhereInput = {
255
+ AND?: Prisma.HarnessSshHostWhereInput | Prisma.HarnessSshHostWhereInput[]
256
+ OR?: Prisma.HarnessSshHostWhereInput[]
257
+ NOT?: Prisma.HarnessSshHostWhereInput | Prisma.HarnessSshHostWhereInput[]
258
+ id?: Prisma.StringFilter<"HarnessSshHost"> | string
259
+ userId?: Prisma.StringFilter<"HarnessSshHost"> | string
260
+ name?: Prisma.StringFilter<"HarnessSshHost"> | string
261
+ host?: Prisma.StringFilter<"HarnessSshHost"> | string
262
+ port?: Prisma.IntFilter<"HarnessSshHost"> | number
263
+ username?: Prisma.StringFilter<"HarnessSshHost"> | string
264
+ authMethod?: Prisma.StringFilter<"HarnessSshHost"> | string
265
+ credentialId?: Prisma.StringFilter<"HarnessSshHost"> | string
266
+ pinnedFingerprint?: Prisma.StringFilter<"HarnessSshHost"> | string
267
+ createdAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
268
+ updatedAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
269
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
270
+ threads?: Prisma.ChatThreadListRelationFilter
271
+ }
272
+
273
+ export type HarnessSshHostOrderByWithRelationInput = {
274
+ id?: Prisma.SortOrder
275
+ userId?: Prisma.SortOrder
276
+ name?: Prisma.SortOrder
277
+ host?: Prisma.SortOrder
278
+ port?: Prisma.SortOrder
279
+ username?: Prisma.SortOrder
280
+ authMethod?: Prisma.SortOrder
281
+ credentialId?: Prisma.SortOrder
282
+ pinnedFingerprint?: Prisma.SortOrder
283
+ createdAt?: Prisma.SortOrder
284
+ updatedAt?: Prisma.SortOrder
285
+ user?: Prisma.UserOrderByWithRelationInput
286
+ threads?: Prisma.ChatThreadOrderByRelationAggregateInput
287
+ }
288
+
289
+ export type HarnessSshHostWhereUniqueInput = Prisma.AtLeast<{
290
+ id?: string
291
+ userId_name?: Prisma.HarnessSshHostUserIdNameCompoundUniqueInput
292
+ AND?: Prisma.HarnessSshHostWhereInput | Prisma.HarnessSshHostWhereInput[]
293
+ OR?: Prisma.HarnessSshHostWhereInput[]
294
+ NOT?: Prisma.HarnessSshHostWhereInput | Prisma.HarnessSshHostWhereInput[]
295
+ userId?: Prisma.StringFilter<"HarnessSshHost"> | string
296
+ name?: Prisma.StringFilter<"HarnessSshHost"> | string
297
+ host?: Prisma.StringFilter<"HarnessSshHost"> | string
298
+ port?: Prisma.IntFilter<"HarnessSshHost"> | number
299
+ username?: Prisma.StringFilter<"HarnessSshHost"> | string
300
+ authMethod?: Prisma.StringFilter<"HarnessSshHost"> | string
301
+ credentialId?: Prisma.StringFilter<"HarnessSshHost"> | string
302
+ pinnedFingerprint?: Prisma.StringFilter<"HarnessSshHost"> | string
303
+ createdAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
304
+ updatedAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
305
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
306
+ threads?: Prisma.ChatThreadListRelationFilter
307
+ }, "id" | "userId_name">
308
+
309
+ export type HarnessSshHostOrderByWithAggregationInput = {
310
+ id?: Prisma.SortOrder
311
+ userId?: Prisma.SortOrder
312
+ name?: Prisma.SortOrder
313
+ host?: Prisma.SortOrder
314
+ port?: Prisma.SortOrder
315
+ username?: Prisma.SortOrder
316
+ authMethod?: Prisma.SortOrder
317
+ credentialId?: Prisma.SortOrder
318
+ pinnedFingerprint?: Prisma.SortOrder
319
+ createdAt?: Prisma.SortOrder
320
+ updatedAt?: Prisma.SortOrder
321
+ _count?: Prisma.HarnessSshHostCountOrderByAggregateInput
322
+ _avg?: Prisma.HarnessSshHostAvgOrderByAggregateInput
323
+ _max?: Prisma.HarnessSshHostMaxOrderByAggregateInput
324
+ _min?: Prisma.HarnessSshHostMinOrderByAggregateInput
325
+ _sum?: Prisma.HarnessSshHostSumOrderByAggregateInput
326
+ }
327
+
328
+ export type HarnessSshHostScalarWhereWithAggregatesInput = {
329
+ AND?: Prisma.HarnessSshHostScalarWhereWithAggregatesInput | Prisma.HarnessSshHostScalarWhereWithAggregatesInput[]
330
+ OR?: Prisma.HarnessSshHostScalarWhereWithAggregatesInput[]
331
+ NOT?: Prisma.HarnessSshHostScalarWhereWithAggregatesInput | Prisma.HarnessSshHostScalarWhereWithAggregatesInput[]
332
+ id?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
333
+ userId?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
334
+ name?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
335
+ host?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
336
+ port?: Prisma.IntWithAggregatesFilter<"HarnessSshHost"> | number
337
+ username?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
338
+ authMethod?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
339
+ credentialId?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
340
+ pinnedFingerprint?: Prisma.StringWithAggregatesFilter<"HarnessSshHost"> | string
341
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"HarnessSshHost"> | Date | string
342
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HarnessSshHost"> | Date | string
343
+ }
344
+
345
+ export type HarnessSshHostCreateInput = {
346
+ id?: string
347
+ name: string
348
+ host: string
349
+ port?: number
350
+ username: string
351
+ authMethod: string
352
+ credentialId: string
353
+ pinnedFingerprint: string
354
+ createdAt?: Date | string
355
+ updatedAt?: Date | string
356
+ user: Prisma.UserCreateNestedOneWithoutHarnessSshHostsInput
357
+ threads?: Prisma.ChatThreadCreateNestedManyWithoutSshHostInput
358
+ }
359
+
360
+ export type HarnessSshHostUncheckedCreateInput = {
361
+ id?: string
362
+ userId: string
363
+ name: string
364
+ host: string
365
+ port?: number
366
+ username: string
367
+ authMethod: string
368
+ credentialId: string
369
+ pinnedFingerprint: string
370
+ createdAt?: Date | string
371
+ updatedAt?: Date | string
372
+ threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutSshHostInput
373
+ }
374
+
375
+ export type HarnessSshHostUpdateInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string
377
+ name?: Prisma.StringFieldUpdateOperationsInput | string
378
+ host?: Prisma.StringFieldUpdateOperationsInput | string
379
+ port?: Prisma.IntFieldUpdateOperationsInput | number
380
+ username?: Prisma.StringFieldUpdateOperationsInput | string
381
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
382
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
383
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
385
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
386
+ user?: Prisma.UserUpdateOneRequiredWithoutHarnessSshHostsNestedInput
387
+ threads?: Prisma.ChatThreadUpdateManyWithoutSshHostNestedInput
388
+ }
389
+
390
+ export type HarnessSshHostUncheckedUpdateInput = {
391
+ id?: Prisma.StringFieldUpdateOperationsInput | string
392
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
393
+ name?: Prisma.StringFieldUpdateOperationsInput | string
394
+ host?: Prisma.StringFieldUpdateOperationsInput | string
395
+ port?: Prisma.IntFieldUpdateOperationsInput | number
396
+ username?: Prisma.StringFieldUpdateOperationsInput | string
397
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
398
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
399
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
401
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
402
+ threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutSshHostNestedInput
403
+ }
404
+
405
+ export type HarnessSshHostCreateManyInput = {
406
+ id?: string
407
+ userId: string
408
+ name: string
409
+ host: string
410
+ port?: number
411
+ username: string
412
+ authMethod: string
413
+ credentialId: string
414
+ pinnedFingerprint: string
415
+ createdAt?: Date | string
416
+ updatedAt?: Date | string
417
+ }
418
+
419
+ export type HarnessSshHostUpdateManyMutationInput = {
420
+ id?: Prisma.StringFieldUpdateOperationsInput | string
421
+ name?: Prisma.StringFieldUpdateOperationsInput | string
422
+ host?: Prisma.StringFieldUpdateOperationsInput | string
423
+ port?: Prisma.IntFieldUpdateOperationsInput | number
424
+ username?: Prisma.StringFieldUpdateOperationsInput | string
425
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
426
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
427
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
428
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
429
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
430
+ }
431
+
432
+ export type HarnessSshHostUncheckedUpdateManyInput = {
433
+ id?: Prisma.StringFieldUpdateOperationsInput | string
434
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
435
+ name?: Prisma.StringFieldUpdateOperationsInput | string
436
+ host?: Prisma.StringFieldUpdateOperationsInput | string
437
+ port?: Prisma.IntFieldUpdateOperationsInput | number
438
+ username?: Prisma.StringFieldUpdateOperationsInput | string
439
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
440
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
441
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
442
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
443
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
444
+ }
445
+
446
+ export type HarnessSshHostListRelationFilter = {
447
+ every?: Prisma.HarnessSshHostWhereInput
448
+ some?: Prisma.HarnessSshHostWhereInput
449
+ none?: Prisma.HarnessSshHostWhereInput
450
+ }
451
+
452
+ export type HarnessSshHostOrderByRelationAggregateInput = {
453
+ _count?: Prisma.SortOrder
454
+ }
455
+
456
+ export type HarnessSshHostNullableScalarRelationFilter = {
457
+ is?: Prisma.HarnessSshHostWhereInput | null
458
+ isNot?: Prisma.HarnessSshHostWhereInput | null
459
+ }
460
+
461
+ export type HarnessSshHostUserIdNameCompoundUniqueInput = {
462
+ userId: string
463
+ name: string
464
+ }
465
+
466
+ export type HarnessSshHostCountOrderByAggregateInput = {
467
+ id?: Prisma.SortOrder
468
+ userId?: Prisma.SortOrder
469
+ name?: Prisma.SortOrder
470
+ host?: Prisma.SortOrder
471
+ port?: Prisma.SortOrder
472
+ username?: Prisma.SortOrder
473
+ authMethod?: Prisma.SortOrder
474
+ credentialId?: Prisma.SortOrder
475
+ pinnedFingerprint?: Prisma.SortOrder
476
+ createdAt?: Prisma.SortOrder
477
+ updatedAt?: Prisma.SortOrder
478
+ }
479
+
480
+ export type HarnessSshHostAvgOrderByAggregateInput = {
481
+ port?: Prisma.SortOrder
482
+ }
483
+
484
+ export type HarnessSshHostMaxOrderByAggregateInput = {
485
+ id?: Prisma.SortOrder
486
+ userId?: Prisma.SortOrder
487
+ name?: Prisma.SortOrder
488
+ host?: Prisma.SortOrder
489
+ port?: Prisma.SortOrder
490
+ username?: Prisma.SortOrder
491
+ authMethod?: Prisma.SortOrder
492
+ credentialId?: Prisma.SortOrder
493
+ pinnedFingerprint?: Prisma.SortOrder
494
+ createdAt?: Prisma.SortOrder
495
+ updatedAt?: Prisma.SortOrder
496
+ }
497
+
498
+ export type HarnessSshHostMinOrderByAggregateInput = {
499
+ id?: Prisma.SortOrder
500
+ userId?: Prisma.SortOrder
501
+ name?: Prisma.SortOrder
502
+ host?: Prisma.SortOrder
503
+ port?: Prisma.SortOrder
504
+ username?: Prisma.SortOrder
505
+ authMethod?: Prisma.SortOrder
506
+ credentialId?: Prisma.SortOrder
507
+ pinnedFingerprint?: Prisma.SortOrder
508
+ createdAt?: Prisma.SortOrder
509
+ updatedAt?: Prisma.SortOrder
510
+ }
511
+
512
+ export type HarnessSshHostSumOrderByAggregateInput = {
513
+ port?: Prisma.SortOrder
514
+ }
515
+
516
+ export type HarnessSshHostCreateNestedManyWithoutUserInput = {
517
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput> | Prisma.HarnessSshHostCreateWithoutUserInput[] | Prisma.HarnessSshHostUncheckedCreateWithoutUserInput[]
518
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutUserInput | Prisma.HarnessSshHostCreateOrConnectWithoutUserInput[]
519
+ createMany?: Prisma.HarnessSshHostCreateManyUserInputEnvelope
520
+ connect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
521
+ }
522
+
523
+ export type HarnessSshHostUncheckedCreateNestedManyWithoutUserInput = {
524
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput> | Prisma.HarnessSshHostCreateWithoutUserInput[] | Prisma.HarnessSshHostUncheckedCreateWithoutUserInput[]
525
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutUserInput | Prisma.HarnessSshHostCreateOrConnectWithoutUserInput[]
526
+ createMany?: Prisma.HarnessSshHostCreateManyUserInputEnvelope
527
+ connect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
528
+ }
529
+
530
+ export type HarnessSshHostUpdateManyWithoutUserNestedInput = {
531
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput> | Prisma.HarnessSshHostCreateWithoutUserInput[] | Prisma.HarnessSshHostUncheckedCreateWithoutUserInput[]
532
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutUserInput | Prisma.HarnessSshHostCreateOrConnectWithoutUserInput[]
533
+ upsert?: Prisma.HarnessSshHostUpsertWithWhereUniqueWithoutUserInput | Prisma.HarnessSshHostUpsertWithWhereUniqueWithoutUserInput[]
534
+ createMany?: Prisma.HarnessSshHostCreateManyUserInputEnvelope
535
+ set?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
536
+ disconnect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
537
+ delete?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
538
+ connect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
539
+ update?: Prisma.HarnessSshHostUpdateWithWhereUniqueWithoutUserInput | Prisma.HarnessSshHostUpdateWithWhereUniqueWithoutUserInput[]
540
+ updateMany?: Prisma.HarnessSshHostUpdateManyWithWhereWithoutUserInput | Prisma.HarnessSshHostUpdateManyWithWhereWithoutUserInput[]
541
+ deleteMany?: Prisma.HarnessSshHostScalarWhereInput | Prisma.HarnessSshHostScalarWhereInput[]
542
+ }
543
+
544
+ export type HarnessSshHostUncheckedUpdateManyWithoutUserNestedInput = {
545
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput> | Prisma.HarnessSshHostCreateWithoutUserInput[] | Prisma.HarnessSshHostUncheckedCreateWithoutUserInput[]
546
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutUserInput | Prisma.HarnessSshHostCreateOrConnectWithoutUserInput[]
547
+ upsert?: Prisma.HarnessSshHostUpsertWithWhereUniqueWithoutUserInput | Prisma.HarnessSshHostUpsertWithWhereUniqueWithoutUserInput[]
548
+ createMany?: Prisma.HarnessSshHostCreateManyUserInputEnvelope
549
+ set?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
550
+ disconnect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
551
+ delete?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
552
+ connect?: Prisma.HarnessSshHostWhereUniqueInput | Prisma.HarnessSshHostWhereUniqueInput[]
553
+ update?: Prisma.HarnessSshHostUpdateWithWhereUniqueWithoutUserInput | Prisma.HarnessSshHostUpdateWithWhereUniqueWithoutUserInput[]
554
+ updateMany?: Prisma.HarnessSshHostUpdateManyWithWhereWithoutUserInput | Prisma.HarnessSshHostUpdateManyWithWhereWithoutUserInput[]
555
+ deleteMany?: Prisma.HarnessSshHostScalarWhereInput | Prisma.HarnessSshHostScalarWhereInput[]
556
+ }
557
+
558
+ export type HarnessSshHostCreateNestedOneWithoutThreadsInput = {
559
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedCreateWithoutThreadsInput>
560
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutThreadsInput
561
+ connect?: Prisma.HarnessSshHostWhereUniqueInput
562
+ }
563
+
564
+ export type HarnessSshHostUpdateOneWithoutThreadsNestedInput = {
565
+ create?: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedCreateWithoutThreadsInput>
566
+ connectOrCreate?: Prisma.HarnessSshHostCreateOrConnectWithoutThreadsInput
567
+ upsert?: Prisma.HarnessSshHostUpsertWithoutThreadsInput
568
+ disconnect?: Prisma.HarnessSshHostWhereInput | boolean
569
+ delete?: Prisma.HarnessSshHostWhereInput | boolean
570
+ connect?: Prisma.HarnessSshHostWhereUniqueInput
571
+ update?: Prisma.XOR<Prisma.XOR<Prisma.HarnessSshHostUpdateToOneWithWhereWithoutThreadsInput, Prisma.HarnessSshHostUpdateWithoutThreadsInput>, Prisma.HarnessSshHostUncheckedUpdateWithoutThreadsInput>
572
+ }
573
+
574
+ export type HarnessSshHostCreateWithoutUserInput = {
575
+ id?: string
576
+ name: string
577
+ host: string
578
+ port?: number
579
+ username: string
580
+ authMethod: string
581
+ credentialId: string
582
+ pinnedFingerprint: string
583
+ createdAt?: Date | string
584
+ updatedAt?: Date | string
585
+ threads?: Prisma.ChatThreadCreateNestedManyWithoutSshHostInput
586
+ }
587
+
588
+ export type HarnessSshHostUncheckedCreateWithoutUserInput = {
589
+ id?: string
590
+ name: string
591
+ host: string
592
+ port?: number
593
+ username: string
594
+ authMethod: string
595
+ credentialId: string
596
+ pinnedFingerprint: string
597
+ createdAt?: Date | string
598
+ updatedAt?: Date | string
599
+ threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutSshHostInput
600
+ }
601
+
602
+ export type HarnessSshHostCreateOrConnectWithoutUserInput = {
603
+ where: Prisma.HarnessSshHostWhereUniqueInput
604
+ create: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput>
605
+ }
606
+
607
+ export type HarnessSshHostCreateManyUserInputEnvelope = {
608
+ data: Prisma.HarnessSshHostCreateManyUserInput | Prisma.HarnessSshHostCreateManyUserInput[]
609
+ skipDuplicates?: boolean
610
+ }
611
+
612
+ export type HarnessSshHostUpsertWithWhereUniqueWithoutUserInput = {
613
+ where: Prisma.HarnessSshHostWhereUniqueInput
614
+ update: Prisma.XOR<Prisma.HarnessSshHostUpdateWithoutUserInput, Prisma.HarnessSshHostUncheckedUpdateWithoutUserInput>
615
+ create: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutUserInput, Prisma.HarnessSshHostUncheckedCreateWithoutUserInput>
616
+ }
617
+
618
+ export type HarnessSshHostUpdateWithWhereUniqueWithoutUserInput = {
619
+ where: Prisma.HarnessSshHostWhereUniqueInput
620
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateWithoutUserInput, Prisma.HarnessSshHostUncheckedUpdateWithoutUserInput>
621
+ }
622
+
623
+ export type HarnessSshHostUpdateManyWithWhereWithoutUserInput = {
624
+ where: Prisma.HarnessSshHostScalarWhereInput
625
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateManyMutationInput, Prisma.HarnessSshHostUncheckedUpdateManyWithoutUserInput>
626
+ }
627
+
628
+ export type HarnessSshHostScalarWhereInput = {
629
+ AND?: Prisma.HarnessSshHostScalarWhereInput | Prisma.HarnessSshHostScalarWhereInput[]
630
+ OR?: Prisma.HarnessSshHostScalarWhereInput[]
631
+ NOT?: Prisma.HarnessSshHostScalarWhereInput | Prisma.HarnessSshHostScalarWhereInput[]
632
+ id?: Prisma.StringFilter<"HarnessSshHost"> | string
633
+ userId?: Prisma.StringFilter<"HarnessSshHost"> | string
634
+ name?: Prisma.StringFilter<"HarnessSshHost"> | string
635
+ host?: Prisma.StringFilter<"HarnessSshHost"> | string
636
+ port?: Prisma.IntFilter<"HarnessSshHost"> | number
637
+ username?: Prisma.StringFilter<"HarnessSshHost"> | string
638
+ authMethod?: Prisma.StringFilter<"HarnessSshHost"> | string
639
+ credentialId?: Prisma.StringFilter<"HarnessSshHost"> | string
640
+ pinnedFingerprint?: Prisma.StringFilter<"HarnessSshHost"> | string
641
+ createdAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
642
+ updatedAt?: Prisma.DateTimeFilter<"HarnessSshHost"> | Date | string
643
+ }
644
+
645
+ export type HarnessSshHostCreateWithoutThreadsInput = {
646
+ id?: string
647
+ name: string
648
+ host: string
649
+ port?: number
650
+ username: string
651
+ authMethod: string
652
+ credentialId: string
653
+ pinnedFingerprint: string
654
+ createdAt?: Date | string
655
+ updatedAt?: Date | string
656
+ user: Prisma.UserCreateNestedOneWithoutHarnessSshHostsInput
657
+ }
658
+
659
+ export type HarnessSshHostUncheckedCreateWithoutThreadsInput = {
660
+ id?: string
661
+ userId: string
662
+ name: string
663
+ host: string
664
+ port?: number
665
+ username: string
666
+ authMethod: string
667
+ credentialId: string
668
+ pinnedFingerprint: string
669
+ createdAt?: Date | string
670
+ updatedAt?: Date | string
671
+ }
672
+
673
+ export type HarnessSshHostCreateOrConnectWithoutThreadsInput = {
674
+ where: Prisma.HarnessSshHostWhereUniqueInput
675
+ create: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedCreateWithoutThreadsInput>
676
+ }
677
+
678
+ export type HarnessSshHostUpsertWithoutThreadsInput = {
679
+ update: Prisma.XOR<Prisma.HarnessSshHostUpdateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedUpdateWithoutThreadsInput>
680
+ create: Prisma.XOR<Prisma.HarnessSshHostCreateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedCreateWithoutThreadsInput>
681
+ where?: Prisma.HarnessSshHostWhereInput
682
+ }
683
+
684
+ export type HarnessSshHostUpdateToOneWithWhereWithoutThreadsInput = {
685
+ where?: Prisma.HarnessSshHostWhereInput
686
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateWithoutThreadsInput, Prisma.HarnessSshHostUncheckedUpdateWithoutThreadsInput>
687
+ }
688
+
689
+ export type HarnessSshHostUpdateWithoutThreadsInput = {
690
+ id?: Prisma.StringFieldUpdateOperationsInput | string
691
+ name?: Prisma.StringFieldUpdateOperationsInput | string
692
+ host?: Prisma.StringFieldUpdateOperationsInput | string
693
+ port?: Prisma.IntFieldUpdateOperationsInput | number
694
+ username?: Prisma.StringFieldUpdateOperationsInput | string
695
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
696
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
697
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
698
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
699
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
700
+ user?: Prisma.UserUpdateOneRequiredWithoutHarnessSshHostsNestedInput
701
+ }
702
+
703
+ export type HarnessSshHostUncheckedUpdateWithoutThreadsInput = {
704
+ id?: Prisma.StringFieldUpdateOperationsInput | string
705
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
706
+ name?: Prisma.StringFieldUpdateOperationsInput | string
707
+ host?: Prisma.StringFieldUpdateOperationsInput | string
708
+ port?: Prisma.IntFieldUpdateOperationsInput | number
709
+ username?: Prisma.StringFieldUpdateOperationsInput | string
710
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
711
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
712
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
713
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
714
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
715
+ }
716
+
717
+ export type HarnessSshHostCreateManyUserInput = {
718
+ id?: string
719
+ name: string
720
+ host: string
721
+ port?: number
722
+ username: string
723
+ authMethod: string
724
+ credentialId: string
725
+ pinnedFingerprint: string
726
+ createdAt?: Date | string
727
+ updatedAt?: Date | string
728
+ }
729
+
730
+ export type HarnessSshHostUpdateWithoutUserInput = {
731
+ id?: Prisma.StringFieldUpdateOperationsInput | string
732
+ name?: Prisma.StringFieldUpdateOperationsInput | string
733
+ host?: Prisma.StringFieldUpdateOperationsInput | string
734
+ port?: Prisma.IntFieldUpdateOperationsInput | number
735
+ username?: Prisma.StringFieldUpdateOperationsInput | string
736
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
737
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
738
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
739
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
740
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
741
+ threads?: Prisma.ChatThreadUpdateManyWithoutSshHostNestedInput
742
+ }
743
+
744
+ export type HarnessSshHostUncheckedUpdateWithoutUserInput = {
745
+ id?: Prisma.StringFieldUpdateOperationsInput | string
746
+ name?: Prisma.StringFieldUpdateOperationsInput | string
747
+ host?: Prisma.StringFieldUpdateOperationsInput | string
748
+ port?: Prisma.IntFieldUpdateOperationsInput | number
749
+ username?: Prisma.StringFieldUpdateOperationsInput | string
750
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
751
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
752
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
754
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
755
+ threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutSshHostNestedInput
756
+ }
757
+
758
+ export type HarnessSshHostUncheckedUpdateManyWithoutUserInput = {
759
+ id?: Prisma.StringFieldUpdateOperationsInput | string
760
+ name?: Prisma.StringFieldUpdateOperationsInput | string
761
+ host?: Prisma.StringFieldUpdateOperationsInput | string
762
+ port?: Prisma.IntFieldUpdateOperationsInput | number
763
+ username?: Prisma.StringFieldUpdateOperationsInput | string
764
+ authMethod?: Prisma.StringFieldUpdateOperationsInput | string
765
+ credentialId?: Prisma.StringFieldUpdateOperationsInput | string
766
+ pinnedFingerprint?: Prisma.StringFieldUpdateOperationsInput | string
767
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
768
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
769
+ }
770
+
771
+
772
+ /**
773
+ * Count Type HarnessSshHostCountOutputType
774
+ */
775
+
776
+ export type HarnessSshHostCountOutputType = {
777
+ threads: number
778
+ }
779
+
780
+ export type HarnessSshHostCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
781
+ threads?: boolean | HarnessSshHostCountOutputTypeCountThreadsArgs
782
+ }
783
+
784
+ /**
785
+ * HarnessSshHostCountOutputType without action
786
+ */
787
+ export type HarnessSshHostCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
788
+ /**
789
+ * Select specific fields to fetch from the HarnessSshHostCountOutputType
790
+ */
791
+ select?: Prisma.HarnessSshHostCountOutputTypeSelect<ExtArgs> | null
792
+ }
793
+
794
+ /**
795
+ * HarnessSshHostCountOutputType without action
796
+ */
797
+ export type HarnessSshHostCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ where?: Prisma.ChatThreadWhereInput
799
+ }
800
+
801
+
802
+ export type HarnessSshHostSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
803
+ id?: boolean
804
+ userId?: boolean
805
+ name?: boolean
806
+ host?: boolean
807
+ port?: boolean
808
+ username?: boolean
809
+ authMethod?: boolean
810
+ credentialId?: boolean
811
+ pinnedFingerprint?: boolean
812
+ createdAt?: boolean
813
+ updatedAt?: boolean
814
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
815
+ threads?: boolean | Prisma.HarnessSshHost$threadsArgs<ExtArgs>
816
+ _count?: boolean | Prisma.HarnessSshHostCountOutputTypeDefaultArgs<ExtArgs>
817
+ }, ExtArgs["result"]["harnessSshHost"]>
818
+
819
+ export type HarnessSshHostSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
820
+ id?: boolean
821
+ userId?: boolean
822
+ name?: boolean
823
+ host?: boolean
824
+ port?: boolean
825
+ username?: boolean
826
+ authMethod?: boolean
827
+ credentialId?: boolean
828
+ pinnedFingerprint?: boolean
829
+ createdAt?: boolean
830
+ updatedAt?: boolean
831
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
832
+ }, ExtArgs["result"]["harnessSshHost"]>
833
+
834
+ export type HarnessSshHostSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
835
+ id?: boolean
836
+ userId?: boolean
837
+ name?: boolean
838
+ host?: boolean
839
+ port?: boolean
840
+ username?: boolean
841
+ authMethod?: boolean
842
+ credentialId?: boolean
843
+ pinnedFingerprint?: boolean
844
+ createdAt?: boolean
845
+ updatedAt?: boolean
846
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
847
+ }, ExtArgs["result"]["harnessSshHost"]>
848
+
849
+ export type HarnessSshHostSelectScalar = {
850
+ id?: boolean
851
+ userId?: boolean
852
+ name?: boolean
853
+ host?: boolean
854
+ port?: boolean
855
+ username?: boolean
856
+ authMethod?: boolean
857
+ credentialId?: boolean
858
+ pinnedFingerprint?: boolean
859
+ createdAt?: boolean
860
+ updatedAt?: boolean
861
+ }
862
+
863
+ export type HarnessSshHostOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "host" | "port" | "username" | "authMethod" | "credentialId" | "pinnedFingerprint" | "createdAt" | "updatedAt", ExtArgs["result"]["harnessSshHost"]>
864
+ export type HarnessSshHostInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
866
+ threads?: boolean | Prisma.HarnessSshHost$threadsArgs<ExtArgs>
867
+ _count?: boolean | Prisma.HarnessSshHostCountOutputTypeDefaultArgs<ExtArgs>
868
+ }
869
+ export type HarnessSshHostIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
870
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
871
+ }
872
+ export type HarnessSshHostIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
873
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
874
+ }
875
+
876
+ export type $HarnessSshHostPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
877
+ name: "HarnessSshHost"
878
+ objects: {
879
+ user: Prisma.$UserPayload<ExtArgs>
880
+ threads: Prisma.$ChatThreadPayload<ExtArgs>[]
881
+ }
882
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
883
+ id: string
884
+ userId: string
885
+ name: string
886
+ host: string
887
+ port: number
888
+ username: string
889
+ authMethod: string
890
+ credentialId: string
891
+ pinnedFingerprint: string
892
+ createdAt: Date
893
+ updatedAt: Date
894
+ }, ExtArgs["result"]["harnessSshHost"]>
895
+ composites: {}
896
+ }
897
+
898
+ export type HarnessSshHostGetPayload<S extends boolean | null | undefined | HarnessSshHostDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload, S>
899
+
900
+ export type HarnessSshHostCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
901
+ Omit<HarnessSshHostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
902
+ select?: HarnessSshHostCountAggregateInputType | true
903
+ }
904
+
905
+ export interface HarnessSshHostDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
906
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HarnessSshHost'], meta: { name: 'HarnessSshHost' } }
907
+ /**
908
+ * Find zero or one HarnessSshHost that matches the filter.
909
+ * @param {HarnessSshHostFindUniqueArgs} args - Arguments to find a HarnessSshHost
910
+ * @example
911
+ * // Get one HarnessSshHost
912
+ * const harnessSshHost = await prisma.harnessSshHost.findUnique({
913
+ * where: {
914
+ * // ... provide filter here
915
+ * }
916
+ * })
917
+ */
918
+ findUnique<T extends HarnessSshHostFindUniqueArgs>(args: Prisma.SelectSubset<T, HarnessSshHostFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
919
+
920
+ /**
921
+ * Find one HarnessSshHost that matches the filter or throw an error with `error.code='P2025'`
922
+ * if no matches were found.
923
+ * @param {HarnessSshHostFindUniqueOrThrowArgs} args - Arguments to find a HarnessSshHost
924
+ * @example
925
+ * // Get one HarnessSshHost
926
+ * const harnessSshHost = await prisma.harnessSshHost.findUniqueOrThrow({
927
+ * where: {
928
+ * // ... provide filter here
929
+ * }
930
+ * })
931
+ */
932
+ findUniqueOrThrow<T extends HarnessSshHostFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HarnessSshHostFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
933
+
934
+ /**
935
+ * Find the first HarnessSshHost that matches the filter.
936
+ * Note, that providing `undefined` is treated as the value not being there.
937
+ * Read more here: https://pris.ly/d/null-undefined
938
+ * @param {HarnessSshHostFindFirstArgs} args - Arguments to find a HarnessSshHost
939
+ * @example
940
+ * // Get one HarnessSshHost
941
+ * const harnessSshHost = await prisma.harnessSshHost.findFirst({
942
+ * where: {
943
+ * // ... provide filter here
944
+ * }
945
+ * })
946
+ */
947
+ findFirst<T extends HarnessSshHostFindFirstArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostFindFirstArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
948
+
949
+ /**
950
+ * Find the first HarnessSshHost that matches the filter or
951
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
952
+ * Note, that providing `undefined` is treated as the value not being there.
953
+ * Read more here: https://pris.ly/d/null-undefined
954
+ * @param {HarnessSshHostFindFirstOrThrowArgs} args - Arguments to find a HarnessSshHost
955
+ * @example
956
+ * // Get one HarnessSshHost
957
+ * const harnessSshHost = await prisma.harnessSshHost.findFirstOrThrow({
958
+ * where: {
959
+ * // ... provide filter here
960
+ * }
961
+ * })
962
+ */
963
+ findFirstOrThrow<T extends HarnessSshHostFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
964
+
965
+ /**
966
+ * Find zero or more HarnessSshHosts that matches the filter.
967
+ * Note, that providing `undefined` is treated as the value not being there.
968
+ * Read more here: https://pris.ly/d/null-undefined
969
+ * @param {HarnessSshHostFindManyArgs} args - Arguments to filter and select certain fields only.
970
+ * @example
971
+ * // Get all HarnessSshHosts
972
+ * const harnessSshHosts = await prisma.harnessSshHost.findMany()
973
+ *
974
+ * // Get first 10 HarnessSshHosts
975
+ * const harnessSshHosts = await prisma.harnessSshHost.findMany({ take: 10 })
976
+ *
977
+ * // Only select the `id`
978
+ * const harnessSshHostWithIdOnly = await prisma.harnessSshHost.findMany({ select: { id: true } })
979
+ *
980
+ */
981
+ findMany<T extends HarnessSshHostFindManyArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
982
+
983
+ /**
984
+ * Create a HarnessSshHost.
985
+ * @param {HarnessSshHostCreateArgs} args - Arguments to create a HarnessSshHost.
986
+ * @example
987
+ * // Create one HarnessSshHost
988
+ * const HarnessSshHost = await prisma.harnessSshHost.create({
989
+ * data: {
990
+ * // ... data to create a HarnessSshHost
991
+ * }
992
+ * })
993
+ *
994
+ */
995
+ create<T extends HarnessSshHostCreateArgs>(args: Prisma.SelectSubset<T, HarnessSshHostCreateArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
996
+
997
+ /**
998
+ * Create many HarnessSshHosts.
999
+ * @param {HarnessSshHostCreateManyArgs} args - Arguments to create many HarnessSshHosts.
1000
+ * @example
1001
+ * // Create many HarnessSshHosts
1002
+ * const harnessSshHost = await prisma.harnessSshHost.createMany({
1003
+ * data: [
1004
+ * // ... provide data here
1005
+ * ]
1006
+ * })
1007
+ *
1008
+ */
1009
+ createMany<T extends HarnessSshHostCreateManyArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1010
+
1011
+ /**
1012
+ * Create many HarnessSshHosts and returns the data saved in the database.
1013
+ * @param {HarnessSshHostCreateManyAndReturnArgs} args - Arguments to create many HarnessSshHosts.
1014
+ * @example
1015
+ * // Create many HarnessSshHosts
1016
+ * const harnessSshHost = await prisma.harnessSshHost.createManyAndReturn({
1017
+ * data: [
1018
+ * // ... provide data here
1019
+ * ]
1020
+ * })
1021
+ *
1022
+ * // Create many HarnessSshHosts and only return the `id`
1023
+ * const harnessSshHostWithIdOnly = await prisma.harnessSshHost.createManyAndReturn({
1024
+ * select: { id: true },
1025
+ * data: [
1026
+ * // ... provide data here
1027
+ * ]
1028
+ * })
1029
+ * Note, that providing `undefined` is treated as the value not being there.
1030
+ * Read more here: https://pris.ly/d/null-undefined
1031
+ *
1032
+ */
1033
+ createManyAndReturn<T extends HarnessSshHostCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1034
+
1035
+ /**
1036
+ * Delete a HarnessSshHost.
1037
+ * @param {HarnessSshHostDeleteArgs} args - Arguments to delete one HarnessSshHost.
1038
+ * @example
1039
+ * // Delete one HarnessSshHost
1040
+ * const HarnessSshHost = await prisma.harnessSshHost.delete({
1041
+ * where: {
1042
+ * // ... filter to delete one HarnessSshHost
1043
+ * }
1044
+ * })
1045
+ *
1046
+ */
1047
+ delete<T extends HarnessSshHostDeleteArgs>(args: Prisma.SelectSubset<T, HarnessSshHostDeleteArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1048
+
1049
+ /**
1050
+ * Update one HarnessSshHost.
1051
+ * @param {HarnessSshHostUpdateArgs} args - Arguments to update one HarnessSshHost.
1052
+ * @example
1053
+ * // Update one HarnessSshHost
1054
+ * const harnessSshHost = await prisma.harnessSshHost.update({
1055
+ * where: {
1056
+ * // ... provide filter here
1057
+ * },
1058
+ * data: {
1059
+ * // ... provide data here
1060
+ * }
1061
+ * })
1062
+ *
1063
+ */
1064
+ update<T extends HarnessSshHostUpdateArgs>(args: Prisma.SelectSubset<T, HarnessSshHostUpdateArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1065
+
1066
+ /**
1067
+ * Delete zero or more HarnessSshHosts.
1068
+ * @param {HarnessSshHostDeleteManyArgs} args - Arguments to filter HarnessSshHosts to delete.
1069
+ * @example
1070
+ * // Delete a few HarnessSshHosts
1071
+ * const { count } = await prisma.harnessSshHost.deleteMany({
1072
+ * where: {
1073
+ * // ... provide filter here
1074
+ * }
1075
+ * })
1076
+ *
1077
+ */
1078
+ deleteMany<T extends HarnessSshHostDeleteManyArgs>(args?: Prisma.SelectSubset<T, HarnessSshHostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1079
+
1080
+ /**
1081
+ * Update zero or more HarnessSshHosts.
1082
+ * Note, that providing `undefined` is treated as the value not being there.
1083
+ * Read more here: https://pris.ly/d/null-undefined
1084
+ * @param {HarnessSshHostUpdateManyArgs} args - Arguments to update one or more rows.
1085
+ * @example
1086
+ * // Update many HarnessSshHosts
1087
+ * const harnessSshHost = await prisma.harnessSshHost.updateMany({
1088
+ * where: {
1089
+ * // ... provide filter here
1090
+ * },
1091
+ * data: {
1092
+ * // ... provide data here
1093
+ * }
1094
+ * })
1095
+ *
1096
+ */
1097
+ updateMany<T extends HarnessSshHostUpdateManyArgs>(args: Prisma.SelectSubset<T, HarnessSshHostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1098
+
1099
+ /**
1100
+ * Update zero or more HarnessSshHosts and returns the data updated in the database.
1101
+ * @param {HarnessSshHostUpdateManyAndReturnArgs} args - Arguments to update many HarnessSshHosts.
1102
+ * @example
1103
+ * // Update many HarnessSshHosts
1104
+ * const harnessSshHost = await prisma.harnessSshHost.updateManyAndReturn({
1105
+ * where: {
1106
+ * // ... provide filter here
1107
+ * },
1108
+ * data: [
1109
+ * // ... provide data here
1110
+ * ]
1111
+ * })
1112
+ *
1113
+ * // Update zero or more HarnessSshHosts and only return the `id`
1114
+ * const harnessSshHostWithIdOnly = await prisma.harnessSshHost.updateManyAndReturn({
1115
+ * select: { id: true },
1116
+ * where: {
1117
+ * // ... provide filter here
1118
+ * },
1119
+ * data: [
1120
+ * // ... provide data here
1121
+ * ]
1122
+ * })
1123
+ * Note, that providing `undefined` is treated as the value not being there.
1124
+ * Read more here: https://pris.ly/d/null-undefined
1125
+ *
1126
+ */
1127
+ updateManyAndReturn<T extends HarnessSshHostUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HarnessSshHostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1128
+
1129
+ /**
1130
+ * Create or update one HarnessSshHost.
1131
+ * @param {HarnessSshHostUpsertArgs} args - Arguments to update or create a HarnessSshHost.
1132
+ * @example
1133
+ * // Update or create a HarnessSshHost
1134
+ * const harnessSshHost = await prisma.harnessSshHost.upsert({
1135
+ * create: {
1136
+ * // ... data to create a HarnessSshHost
1137
+ * },
1138
+ * update: {
1139
+ * // ... in case it already exists, update
1140
+ * },
1141
+ * where: {
1142
+ * // ... the filter for the HarnessSshHost we want to update
1143
+ * }
1144
+ * })
1145
+ */
1146
+ upsert<T extends HarnessSshHostUpsertArgs>(args: Prisma.SelectSubset<T, HarnessSshHostUpsertArgs<ExtArgs>>): Prisma.Prisma__HarnessSshHostClient<runtime.Types.Result.GetResult<Prisma.$HarnessSshHostPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1147
+
1148
+
1149
+ /**
1150
+ * Count the number of HarnessSshHosts.
1151
+ * Note, that providing `undefined` is treated as the value not being there.
1152
+ * Read more here: https://pris.ly/d/null-undefined
1153
+ * @param {HarnessSshHostCountArgs} args - Arguments to filter HarnessSshHosts to count.
1154
+ * @example
1155
+ * // Count the number of HarnessSshHosts
1156
+ * const count = await prisma.harnessSshHost.count({
1157
+ * where: {
1158
+ * // ... the filter for the HarnessSshHosts we want to count
1159
+ * }
1160
+ * })
1161
+ **/
1162
+ count<T extends HarnessSshHostCountArgs>(
1163
+ args?: Prisma.Subset<T, HarnessSshHostCountArgs>,
1164
+ ): Prisma.PrismaPromise<
1165
+ T extends runtime.Types.Utils.Record<'select', any>
1166
+ ? T['select'] extends true
1167
+ ? number
1168
+ : Prisma.GetScalarType<T['select'], HarnessSshHostCountAggregateOutputType>
1169
+ : number
1170
+ >
1171
+
1172
+ /**
1173
+ * Allows you to perform aggregations operations on a HarnessSshHost.
1174
+ * Note, that providing `undefined` is treated as the value not being there.
1175
+ * Read more here: https://pris.ly/d/null-undefined
1176
+ * @param {HarnessSshHostAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1177
+ * @example
1178
+ * // Ordered by age ascending
1179
+ * // Where email contains prisma.io
1180
+ * // Limited to the 10 users
1181
+ * const aggregations = await prisma.user.aggregate({
1182
+ * _avg: {
1183
+ * age: true,
1184
+ * },
1185
+ * where: {
1186
+ * email: {
1187
+ * contains: "prisma.io",
1188
+ * },
1189
+ * },
1190
+ * orderBy: {
1191
+ * age: "asc",
1192
+ * },
1193
+ * take: 10,
1194
+ * })
1195
+ **/
1196
+ aggregate<T extends HarnessSshHostAggregateArgs>(args: Prisma.Subset<T, HarnessSshHostAggregateArgs>): Prisma.PrismaPromise<GetHarnessSshHostAggregateType<T>>
1197
+
1198
+ /**
1199
+ * Group by HarnessSshHost.
1200
+ * Note, that providing `undefined` is treated as the value not being there.
1201
+ * Read more here: https://pris.ly/d/null-undefined
1202
+ * @param {HarnessSshHostGroupByArgs} args - Group by arguments.
1203
+ * @example
1204
+ * // Group by city, order by createdAt, get count
1205
+ * const result = await prisma.user.groupBy({
1206
+ * by: ['city', 'createdAt'],
1207
+ * orderBy: {
1208
+ * createdAt: true
1209
+ * },
1210
+ * _count: {
1211
+ * _all: true
1212
+ * },
1213
+ * })
1214
+ *
1215
+ **/
1216
+ groupBy<
1217
+ T extends HarnessSshHostGroupByArgs,
1218
+ HasSelectOrTake extends Prisma.Or<
1219
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1220
+ Prisma.Extends<'take', Prisma.Keys<T>>
1221
+ >,
1222
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1223
+ ? { orderBy: HarnessSshHostGroupByArgs['orderBy'] }
1224
+ : { orderBy?: HarnessSshHostGroupByArgs['orderBy'] },
1225
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1226
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1227
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1228
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1229
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1230
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1231
+ InputErrors extends ByEmpty extends Prisma.True
1232
+ ? `Error: "by" must not be empty.`
1233
+ : HavingValid extends Prisma.False
1234
+ ? {
1235
+ [P in HavingFields]: P extends ByFields
1236
+ ? never
1237
+ : P extends string
1238
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1239
+ : [
1240
+ Error,
1241
+ 'Field ',
1242
+ P,
1243
+ ` in "having" needs to be provided in "by"`,
1244
+ ]
1245
+ }[HavingFields]
1246
+ : 'take' extends Prisma.Keys<T>
1247
+ ? 'orderBy' extends Prisma.Keys<T>
1248
+ ? ByValid extends Prisma.True
1249
+ ? {}
1250
+ : {
1251
+ [P in OrderFields]: P extends ByFields
1252
+ ? never
1253
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1254
+ }[OrderFields]
1255
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1256
+ : 'skip' extends Prisma.Keys<T>
1257
+ ? 'orderBy' extends Prisma.Keys<T>
1258
+ ? ByValid extends Prisma.True
1259
+ ? {}
1260
+ : {
1261
+ [P in OrderFields]: P extends ByFields
1262
+ ? never
1263
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1264
+ }[OrderFields]
1265
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1266
+ : ByValid extends Prisma.True
1267
+ ? {}
1268
+ : {
1269
+ [P in OrderFields]: P extends ByFields
1270
+ ? never
1271
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1272
+ }[OrderFields]
1273
+ >(args: Prisma.SubsetIntersection<T, HarnessSshHostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHarnessSshHostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1274
+ /**
1275
+ * Fields of the HarnessSshHost model
1276
+ */
1277
+ readonly fields: HarnessSshHostFieldRefs;
1278
+ }
1279
+
1280
+ /**
1281
+ * The delegate class that acts as a "Promise-like" for HarnessSshHost.
1282
+ * Why is this prefixed with `Prisma__`?
1283
+ * Because we want to prevent naming conflicts as mentioned in
1284
+ * https://github.com/prisma/prisma-client-js/issues/707
1285
+ */
1286
+ export interface Prisma__HarnessSshHostClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1287
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1288
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1289
+ threads<T extends Prisma.HarnessSshHost$threadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HarnessSshHost$threadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1290
+ /**
1291
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1292
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1293
+ * @param onrejected The callback to execute when the Promise is rejected.
1294
+ * @returns A Promise for the completion of which ever callback is executed.
1295
+ */
1296
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1297
+ /**
1298
+ * Attaches a callback for only the rejection of the Promise.
1299
+ * @param onrejected The callback to execute when the Promise is rejected.
1300
+ * @returns A Promise for the completion of the callback.
1301
+ */
1302
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1303
+ /**
1304
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1305
+ * resolved value cannot be modified from the callback.
1306
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1307
+ * @returns A Promise for the completion of the callback.
1308
+ */
1309
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1310
+ }
1311
+
1312
+
1313
+
1314
+
1315
+ /**
1316
+ * Fields of the HarnessSshHost model
1317
+ */
1318
+ export interface HarnessSshHostFieldRefs {
1319
+ readonly id: Prisma.FieldRef<"HarnessSshHost", 'String'>
1320
+ readonly userId: Prisma.FieldRef<"HarnessSshHost", 'String'>
1321
+ readonly name: Prisma.FieldRef<"HarnessSshHost", 'String'>
1322
+ readonly host: Prisma.FieldRef<"HarnessSshHost", 'String'>
1323
+ readonly port: Prisma.FieldRef<"HarnessSshHost", 'Int'>
1324
+ readonly username: Prisma.FieldRef<"HarnessSshHost", 'String'>
1325
+ readonly authMethod: Prisma.FieldRef<"HarnessSshHost", 'String'>
1326
+ readonly credentialId: Prisma.FieldRef<"HarnessSshHost", 'String'>
1327
+ readonly pinnedFingerprint: Prisma.FieldRef<"HarnessSshHost", 'String'>
1328
+ readonly createdAt: Prisma.FieldRef<"HarnessSshHost", 'DateTime'>
1329
+ readonly updatedAt: Prisma.FieldRef<"HarnessSshHost", 'DateTime'>
1330
+ }
1331
+
1332
+
1333
+ // Custom InputTypes
1334
+ /**
1335
+ * HarnessSshHost findUnique
1336
+ */
1337
+ export type HarnessSshHostFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1338
+ /**
1339
+ * Select specific fields to fetch from the HarnessSshHost
1340
+ */
1341
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1342
+ /**
1343
+ * Omit specific fields from the HarnessSshHost
1344
+ */
1345
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1346
+ /**
1347
+ * Choose, which related nodes to fetch as well
1348
+ */
1349
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1350
+ /**
1351
+ * Filter, which HarnessSshHost to fetch.
1352
+ */
1353
+ where: Prisma.HarnessSshHostWhereUniqueInput
1354
+ }
1355
+
1356
+ /**
1357
+ * HarnessSshHost findUniqueOrThrow
1358
+ */
1359
+ export type HarnessSshHostFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
+ /**
1361
+ * Select specific fields to fetch from the HarnessSshHost
1362
+ */
1363
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1364
+ /**
1365
+ * Omit specific fields from the HarnessSshHost
1366
+ */
1367
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1368
+ /**
1369
+ * Choose, which related nodes to fetch as well
1370
+ */
1371
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1372
+ /**
1373
+ * Filter, which HarnessSshHost to fetch.
1374
+ */
1375
+ where: Prisma.HarnessSshHostWhereUniqueInput
1376
+ }
1377
+
1378
+ /**
1379
+ * HarnessSshHost findFirst
1380
+ */
1381
+ export type HarnessSshHostFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1382
+ /**
1383
+ * Select specific fields to fetch from the HarnessSshHost
1384
+ */
1385
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1386
+ /**
1387
+ * Omit specific fields from the HarnessSshHost
1388
+ */
1389
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1390
+ /**
1391
+ * Choose, which related nodes to fetch as well
1392
+ */
1393
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1394
+ /**
1395
+ * Filter, which HarnessSshHost to fetch.
1396
+ */
1397
+ where?: Prisma.HarnessSshHostWhereInput
1398
+ /**
1399
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1400
+ *
1401
+ * Determine the order of HarnessSshHosts to fetch.
1402
+ */
1403
+ orderBy?: Prisma.HarnessSshHostOrderByWithRelationInput | Prisma.HarnessSshHostOrderByWithRelationInput[]
1404
+ /**
1405
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1406
+ *
1407
+ * Sets the position for searching for HarnessSshHosts.
1408
+ */
1409
+ cursor?: Prisma.HarnessSshHostWhereUniqueInput
1410
+ /**
1411
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1412
+ *
1413
+ * Take `±n` HarnessSshHosts from the position of the cursor.
1414
+ */
1415
+ take?: number
1416
+ /**
1417
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1418
+ *
1419
+ * Skip the first `n` HarnessSshHosts.
1420
+ */
1421
+ skip?: number
1422
+ /**
1423
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1424
+ *
1425
+ * Filter by unique combinations of HarnessSshHosts.
1426
+ */
1427
+ distinct?: Prisma.HarnessSshHostScalarFieldEnum | Prisma.HarnessSshHostScalarFieldEnum[]
1428
+ }
1429
+
1430
+ /**
1431
+ * HarnessSshHost findFirstOrThrow
1432
+ */
1433
+ export type HarnessSshHostFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1434
+ /**
1435
+ * Select specific fields to fetch from the HarnessSshHost
1436
+ */
1437
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1438
+ /**
1439
+ * Omit specific fields from the HarnessSshHost
1440
+ */
1441
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1442
+ /**
1443
+ * Choose, which related nodes to fetch as well
1444
+ */
1445
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1446
+ /**
1447
+ * Filter, which HarnessSshHost to fetch.
1448
+ */
1449
+ where?: Prisma.HarnessSshHostWhereInput
1450
+ /**
1451
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1452
+ *
1453
+ * Determine the order of HarnessSshHosts to fetch.
1454
+ */
1455
+ orderBy?: Prisma.HarnessSshHostOrderByWithRelationInput | Prisma.HarnessSshHostOrderByWithRelationInput[]
1456
+ /**
1457
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1458
+ *
1459
+ * Sets the position for searching for HarnessSshHosts.
1460
+ */
1461
+ cursor?: Prisma.HarnessSshHostWhereUniqueInput
1462
+ /**
1463
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1464
+ *
1465
+ * Take `±n` HarnessSshHosts from the position of the cursor.
1466
+ */
1467
+ take?: number
1468
+ /**
1469
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1470
+ *
1471
+ * Skip the first `n` HarnessSshHosts.
1472
+ */
1473
+ skip?: number
1474
+ /**
1475
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1476
+ *
1477
+ * Filter by unique combinations of HarnessSshHosts.
1478
+ */
1479
+ distinct?: Prisma.HarnessSshHostScalarFieldEnum | Prisma.HarnessSshHostScalarFieldEnum[]
1480
+ }
1481
+
1482
+ /**
1483
+ * HarnessSshHost findMany
1484
+ */
1485
+ export type HarnessSshHostFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1486
+ /**
1487
+ * Select specific fields to fetch from the HarnessSshHost
1488
+ */
1489
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1490
+ /**
1491
+ * Omit specific fields from the HarnessSshHost
1492
+ */
1493
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1494
+ /**
1495
+ * Choose, which related nodes to fetch as well
1496
+ */
1497
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1498
+ /**
1499
+ * Filter, which HarnessSshHosts to fetch.
1500
+ */
1501
+ where?: Prisma.HarnessSshHostWhereInput
1502
+ /**
1503
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1504
+ *
1505
+ * Determine the order of HarnessSshHosts to fetch.
1506
+ */
1507
+ orderBy?: Prisma.HarnessSshHostOrderByWithRelationInput | Prisma.HarnessSshHostOrderByWithRelationInput[]
1508
+ /**
1509
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1510
+ *
1511
+ * Sets the position for listing HarnessSshHosts.
1512
+ */
1513
+ cursor?: Prisma.HarnessSshHostWhereUniqueInput
1514
+ /**
1515
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1516
+ *
1517
+ * Take `±n` HarnessSshHosts from the position of the cursor.
1518
+ */
1519
+ take?: number
1520
+ /**
1521
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1522
+ *
1523
+ * Skip the first `n` HarnessSshHosts.
1524
+ */
1525
+ skip?: number
1526
+ /**
1527
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1528
+ *
1529
+ * Filter by unique combinations of HarnessSshHosts.
1530
+ */
1531
+ distinct?: Prisma.HarnessSshHostScalarFieldEnum | Prisma.HarnessSshHostScalarFieldEnum[]
1532
+ }
1533
+
1534
+ /**
1535
+ * HarnessSshHost create
1536
+ */
1537
+ export type HarnessSshHostCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1538
+ /**
1539
+ * Select specific fields to fetch from the HarnessSshHost
1540
+ */
1541
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1542
+ /**
1543
+ * Omit specific fields from the HarnessSshHost
1544
+ */
1545
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1546
+ /**
1547
+ * Choose, which related nodes to fetch as well
1548
+ */
1549
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1550
+ /**
1551
+ * The data needed to create a HarnessSshHost.
1552
+ */
1553
+ data: Prisma.XOR<Prisma.HarnessSshHostCreateInput, Prisma.HarnessSshHostUncheckedCreateInput>
1554
+ }
1555
+
1556
+ /**
1557
+ * HarnessSshHost createMany
1558
+ */
1559
+ export type HarnessSshHostCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1560
+ /**
1561
+ * The data used to create many HarnessSshHosts.
1562
+ */
1563
+ data: Prisma.HarnessSshHostCreateManyInput | Prisma.HarnessSshHostCreateManyInput[]
1564
+ skipDuplicates?: boolean
1565
+ }
1566
+
1567
+ /**
1568
+ * HarnessSshHost createManyAndReturn
1569
+ */
1570
+ export type HarnessSshHostCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1571
+ /**
1572
+ * Select specific fields to fetch from the HarnessSshHost
1573
+ */
1574
+ select?: Prisma.HarnessSshHostSelectCreateManyAndReturn<ExtArgs> | null
1575
+ /**
1576
+ * Omit specific fields from the HarnessSshHost
1577
+ */
1578
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1579
+ /**
1580
+ * The data used to create many HarnessSshHosts.
1581
+ */
1582
+ data: Prisma.HarnessSshHostCreateManyInput | Prisma.HarnessSshHostCreateManyInput[]
1583
+ skipDuplicates?: boolean
1584
+ /**
1585
+ * Choose, which related nodes to fetch as well
1586
+ */
1587
+ include?: Prisma.HarnessSshHostIncludeCreateManyAndReturn<ExtArgs> | null
1588
+ }
1589
+
1590
+ /**
1591
+ * HarnessSshHost update
1592
+ */
1593
+ export type HarnessSshHostUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1594
+ /**
1595
+ * Select specific fields to fetch from the HarnessSshHost
1596
+ */
1597
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1598
+ /**
1599
+ * Omit specific fields from the HarnessSshHost
1600
+ */
1601
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1602
+ /**
1603
+ * Choose, which related nodes to fetch as well
1604
+ */
1605
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1606
+ /**
1607
+ * The data needed to update a HarnessSshHost.
1608
+ */
1609
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateInput, Prisma.HarnessSshHostUncheckedUpdateInput>
1610
+ /**
1611
+ * Choose, which HarnessSshHost to update.
1612
+ */
1613
+ where: Prisma.HarnessSshHostWhereUniqueInput
1614
+ }
1615
+
1616
+ /**
1617
+ * HarnessSshHost updateMany
1618
+ */
1619
+ export type HarnessSshHostUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
+ /**
1621
+ * The data used to update HarnessSshHosts.
1622
+ */
1623
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateManyMutationInput, Prisma.HarnessSshHostUncheckedUpdateManyInput>
1624
+ /**
1625
+ * Filter which HarnessSshHosts to update
1626
+ */
1627
+ where?: Prisma.HarnessSshHostWhereInput
1628
+ /**
1629
+ * Limit how many HarnessSshHosts to update.
1630
+ */
1631
+ limit?: number
1632
+ }
1633
+
1634
+ /**
1635
+ * HarnessSshHost updateManyAndReturn
1636
+ */
1637
+ export type HarnessSshHostUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1638
+ /**
1639
+ * Select specific fields to fetch from the HarnessSshHost
1640
+ */
1641
+ select?: Prisma.HarnessSshHostSelectUpdateManyAndReturn<ExtArgs> | null
1642
+ /**
1643
+ * Omit specific fields from the HarnessSshHost
1644
+ */
1645
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1646
+ /**
1647
+ * The data used to update HarnessSshHosts.
1648
+ */
1649
+ data: Prisma.XOR<Prisma.HarnessSshHostUpdateManyMutationInput, Prisma.HarnessSshHostUncheckedUpdateManyInput>
1650
+ /**
1651
+ * Filter which HarnessSshHosts to update
1652
+ */
1653
+ where?: Prisma.HarnessSshHostWhereInput
1654
+ /**
1655
+ * Limit how many HarnessSshHosts to update.
1656
+ */
1657
+ limit?: number
1658
+ /**
1659
+ * Choose, which related nodes to fetch as well
1660
+ */
1661
+ include?: Prisma.HarnessSshHostIncludeUpdateManyAndReturn<ExtArgs> | null
1662
+ }
1663
+
1664
+ /**
1665
+ * HarnessSshHost upsert
1666
+ */
1667
+ export type HarnessSshHostUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1668
+ /**
1669
+ * Select specific fields to fetch from the HarnessSshHost
1670
+ */
1671
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1672
+ /**
1673
+ * Omit specific fields from the HarnessSshHost
1674
+ */
1675
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1676
+ /**
1677
+ * Choose, which related nodes to fetch as well
1678
+ */
1679
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1680
+ /**
1681
+ * The filter to search for the HarnessSshHost to update in case it exists.
1682
+ */
1683
+ where: Prisma.HarnessSshHostWhereUniqueInput
1684
+ /**
1685
+ * In case the HarnessSshHost found by the `where` argument doesn't exist, create a new HarnessSshHost with this data.
1686
+ */
1687
+ create: Prisma.XOR<Prisma.HarnessSshHostCreateInput, Prisma.HarnessSshHostUncheckedCreateInput>
1688
+ /**
1689
+ * In case the HarnessSshHost was found with the provided `where` argument, update it with this data.
1690
+ */
1691
+ update: Prisma.XOR<Prisma.HarnessSshHostUpdateInput, Prisma.HarnessSshHostUncheckedUpdateInput>
1692
+ }
1693
+
1694
+ /**
1695
+ * HarnessSshHost delete
1696
+ */
1697
+ export type HarnessSshHostDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1698
+ /**
1699
+ * Select specific fields to fetch from the HarnessSshHost
1700
+ */
1701
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1702
+ /**
1703
+ * Omit specific fields from the HarnessSshHost
1704
+ */
1705
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1706
+ /**
1707
+ * Choose, which related nodes to fetch as well
1708
+ */
1709
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1710
+ /**
1711
+ * Filter which HarnessSshHost to delete.
1712
+ */
1713
+ where: Prisma.HarnessSshHostWhereUniqueInput
1714
+ }
1715
+
1716
+ /**
1717
+ * HarnessSshHost deleteMany
1718
+ */
1719
+ export type HarnessSshHostDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1720
+ /**
1721
+ * Filter which HarnessSshHosts to delete
1722
+ */
1723
+ where?: Prisma.HarnessSshHostWhereInput
1724
+ /**
1725
+ * Limit how many HarnessSshHosts to delete.
1726
+ */
1727
+ limit?: number
1728
+ }
1729
+
1730
+ /**
1731
+ * HarnessSshHost.threads
1732
+ */
1733
+ export type HarnessSshHost$threadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1734
+ /**
1735
+ * Select specific fields to fetch from the ChatThread
1736
+ */
1737
+ select?: Prisma.ChatThreadSelect<ExtArgs> | null
1738
+ /**
1739
+ * Omit specific fields from the ChatThread
1740
+ */
1741
+ omit?: Prisma.ChatThreadOmit<ExtArgs> | null
1742
+ /**
1743
+ * Choose, which related nodes to fetch as well
1744
+ */
1745
+ include?: Prisma.ChatThreadInclude<ExtArgs> | null
1746
+ where?: Prisma.ChatThreadWhereInput
1747
+ orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
1748
+ cursor?: Prisma.ChatThreadWhereUniqueInput
1749
+ take?: number
1750
+ skip?: number
1751
+ distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
1752
+ }
1753
+
1754
+ /**
1755
+ * HarnessSshHost without action
1756
+ */
1757
+ export type HarnessSshHostDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1758
+ /**
1759
+ * Select specific fields to fetch from the HarnessSshHost
1760
+ */
1761
+ select?: Prisma.HarnessSshHostSelect<ExtArgs> | null
1762
+ /**
1763
+ * Omit specific fields from the HarnessSshHost
1764
+ */
1765
+ omit?: Prisma.HarnessSshHostOmit<ExtArgs> | null
1766
+ /**
1767
+ * Choose, which related nodes to fetch as well
1768
+ */
1769
+ include?: Prisma.HarnessSshHostInclude<ExtArgs> | null
1770
+ }