@highstate/backend 0.19.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/{chunk-V2NILDHS.js → chunk-52MY2TCE.js} +347 -19
  2. package/dist/chunk-52MY2TCE.js.map +1 -0
  3. package/dist/{chunk-I7BWSAN6.js → chunk-UAWBPTDW.js} +3 -3
  4. package/dist/{chunk-I7BWSAN6.js.map → chunk-UAWBPTDW.js.map} +1 -1
  5. package/dist/highstate.manifest.json +4 -4
  6. package/dist/index.js +4159 -785
  7. package/dist/index.js.map +1 -1
  8. package/dist/library/worker/main.js +5 -2
  9. package/dist/library/worker/main.js.map +1 -1
  10. package/dist/shared/index.js +2 -2
  11. package/package.json +7 -7
  12. package/prisma/backend/_schema/object.prisma +12 -0
  13. package/prisma/backend/sqlite/migrations/20260222113554_add_object_tracking/migration.sql +7 -0
  14. package/prisma/project/artifact.prisma +3 -0
  15. package/prisma/project/entity.prisma +125 -0
  16. package/prisma/project/instance.prisma +6 -0
  17. package/prisma/project/migrations/20260301210131_add_entity_tracking/migration.sql +70 -0
  18. package/prisma/project/migrations/20260302212734_add_resource_hooks_flag/migration.sql +1 -0
  19. package/prisma/project/operation.prisma +3 -0
  20. package/src/business/artifact.test.ts +22 -2
  21. package/src/business/artifact.ts +7 -1
  22. package/src/business/entity-snapshot.test.ts +684 -0
  23. package/src/business/entity-snapshot.ts +904 -0
  24. package/src/business/evaluation.test.ts +56 -0
  25. package/src/business/evaluation.ts +102 -22
  26. package/src/business/global-search.test.ts +344 -0
  27. package/src/business/global-search.ts +902 -0
  28. package/src/business/index.ts +4 -0
  29. package/src/business/instance-lock.ts +58 -74
  30. package/src/business/instance-state.test.ts +15 -1
  31. package/src/business/instance-state.ts +37 -14
  32. package/src/business/object-ref-index.test.ts +140 -0
  33. package/src/business/object-ref-index.ts +193 -0
  34. package/src/business/operation.test.ts +15 -1
  35. package/src/business/operation.ts +4 -0
  36. package/src/business/project-model.ts +154 -13
  37. package/src/business/project-unlock.ts +25 -2
  38. package/src/business/project.ts +9 -0
  39. package/src/business/secret.test.ts +35 -2
  40. package/src/business/secret.ts +32 -9
  41. package/src/business/settings.ts +761 -0
  42. package/src/business/unit-output.test.ts +477 -0
  43. package/src/business/unit-output.ts +461 -0
  44. package/src/business/worker.ts +55 -4
  45. package/src/database/_generated/backend/postgresql/browser.ts +6 -0
  46. package/src/database/_generated/backend/postgresql/client.ts +6 -0
  47. package/src/database/_generated/backend/postgresql/internal/class.ts +23 -5
  48. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +89 -5
  49. package/src/database/_generated/backend/postgresql/internal/prismaNamespaceBrowser.ts +9 -0
  50. package/src/database/_generated/backend/postgresql/models/Object.ts +1076 -0
  51. package/src/database/_generated/backend/postgresql/models.ts +1 -0
  52. package/src/database/_generated/backend/sqlite/browser.ts +6 -0
  53. package/src/database/_generated/backend/sqlite/client.ts +6 -0
  54. package/src/database/_generated/backend/sqlite/internal/class.ts +23 -5
  55. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +89 -5
  56. package/src/database/_generated/backend/sqlite/internal/prismaNamespaceBrowser.ts +9 -0
  57. package/src/database/_generated/backend/sqlite/models/Object.ts +1074 -0
  58. package/src/database/_generated/backend/sqlite/models.ts +1 -0
  59. package/src/database/_generated/project/browser.ts +23 -0
  60. package/src/database/_generated/project/client.ts +23 -0
  61. package/src/database/_generated/project/commonInputTypes.ts +87 -53
  62. package/src/database/_generated/project/enums.ts +8 -0
  63. package/src/database/_generated/project/internal/class.ts +53 -5
  64. package/src/database/_generated/project/internal/prismaNamespace.ts +367 -13
  65. package/src/database/_generated/project/internal/prismaNamespaceBrowser.ts +48 -1
  66. package/src/database/_generated/project/models/Artifact.ts +199 -11
  67. package/src/database/_generated/project/models/Entity.ts +1274 -0
  68. package/src/database/_generated/project/models/EntitySnapshot.ts +2389 -0
  69. package/src/database/_generated/project/models/EntitySnapshotContent.ts +1260 -0
  70. package/src/database/_generated/project/models/EntitySnapshotReference.ts +1449 -0
  71. package/src/database/_generated/project/models/InstanceState.ts +361 -1
  72. package/src/database/_generated/project/models/Operation.ts +148 -3
  73. package/src/database/_generated/project/models/OperationLog.ts +0 -4
  74. package/src/database/_generated/project/models.ts +4 -0
  75. package/src/database/migration.ts +3 -0
  76. package/src/library/worker/evaluator.ts +7 -1
  77. package/src/orchestrator/manager.ts +7 -0
  78. package/src/orchestrator/operation-context.captured-outputs.test.ts +118 -0
  79. package/src/orchestrator/operation-context.ts +154 -16
  80. package/src/orchestrator/operation-plan.destroy.test.md +33 -12
  81. package/src/orchestrator/operation-plan.destroy.test.ts +140 -2
  82. package/src/orchestrator/operation-plan.fixtures.ts +2 -0
  83. package/src/orchestrator/operation-plan.md +4 -1
  84. package/src/orchestrator/operation-plan.ts +286 -92
  85. package/src/orchestrator/operation-plan.update.test.md +286 -11
  86. package/src/orchestrator/operation-plan.update.test.ts +656 -5
  87. package/src/orchestrator/operation-workset.ts +72 -22
  88. package/src/orchestrator/operation.cancel.test.ts +4 -0
  89. package/src/orchestrator/operation.composite.test.ts +341 -0
  90. package/src/orchestrator/operation.destroy.test.ts +4 -0
  91. package/src/orchestrator/operation.output-validation.failure.test.ts +124 -0
  92. package/src/orchestrator/operation.preview.test.ts +4 -0
  93. package/src/orchestrator/operation.refresh.test.ts +4 -0
  94. package/src/orchestrator/operation.test-utils.ts +52 -13
  95. package/src/orchestrator/operation.ts +228 -68
  96. package/src/orchestrator/operation.update.failure.test.ts +4 -0
  97. package/src/orchestrator/operation.update.skip.test.ts +110 -0
  98. package/src/orchestrator/operation.update.test.ts +4 -0
  99. package/src/orchestrator/plan-test-builder.ts +1 -0
  100. package/src/orchestrator/unit-input-values.test.ts +450 -0
  101. package/src/orchestrator/unit-input-values.ts +281 -0
  102. package/src/pubsub/manager.ts +3 -0
  103. package/src/runner/abstractions.ts +23 -54
  104. package/src/runner/local.ts +109 -85
  105. package/src/services.ts +52 -1
  106. package/src/shared/models/prisma.ts +1 -0
  107. package/src/shared/models/project/entity.ts +121 -0
  108. package/src/shared/models/project/index.ts +1 -0
  109. package/src/shared/models/project/operation.ts +61 -3
  110. package/src/shared/models/project/state.ts +10 -0
  111. package/src/shared/models/project/worker.ts +7 -0
  112. package/src/shared/resolvers/effective-output-type.test.ts +494 -0
  113. package/src/shared/resolvers/effective-output-type.ts +162 -0
  114. package/src/shared/resolvers/index.ts +1 -0
  115. package/src/shared/resolvers/input.ts +59 -9
  116. package/src/shared/utils/index.ts +1 -0
  117. package/src/shared/utils/stable-json.ts +41 -0
  118. package/src/terminal/manager.ts +6 -0
  119. package/src/worker/manager.ts +97 -1
  120. package/dist/chunk-V2NILDHS.js.map +0 -1
@@ -59,6 +59,7 @@ export type InstanceStateMinAggregateOutputType = {
59
59
  outputHash: number | null
60
60
  dependencyOutputHash: number | null
61
61
  currentResourceCount: number | null
62
+ hasResourceHooks: boolean | null
62
63
  }
63
64
 
64
65
  export type InstanceStateMaxAggregateOutputType = {
@@ -74,6 +75,7 @@ export type InstanceStateMaxAggregateOutputType = {
74
75
  outputHash: number | null
75
76
  dependencyOutputHash: number | null
76
77
  currentResourceCount: number | null
78
+ hasResourceHooks: boolean | null
77
79
  }
78
80
 
79
81
  export type InstanceStateCountAggregateOutputType = {
@@ -93,6 +95,7 @@ export type InstanceStateCountAggregateOutputType = {
93
95
  resolvedInputs: number
94
96
  currentResourceCount: number
95
97
  statusFields: number
98
+ hasResourceHooks: number
96
99
  _all: number
97
100
  }
98
101
 
@@ -128,6 +131,7 @@ export type InstanceStateMinAggregateInputType = {
128
131
  outputHash?: true
129
132
  dependencyOutputHash?: true
130
133
  currentResourceCount?: true
134
+ hasResourceHooks?: true
131
135
  }
132
136
 
133
137
  export type InstanceStateMaxAggregateInputType = {
@@ -143,6 +147,7 @@ export type InstanceStateMaxAggregateInputType = {
143
147
  outputHash?: true
144
148
  dependencyOutputHash?: true
145
149
  currentResourceCount?: true
150
+ hasResourceHooks?: true
146
151
  }
147
152
 
148
153
  export type InstanceStateCountAggregateInputType = {
@@ -162,6 +167,7 @@ export type InstanceStateCountAggregateInputType = {
162
167
  resolvedInputs?: true
163
168
  currentResourceCount?: true
164
169
  statusFields?: true
170
+ hasResourceHooks?: true
165
171
  _all?: true
166
172
  }
167
173
 
@@ -268,6 +274,7 @@ export type InstanceStateGroupByOutputType = {
268
274
  resolvedInputs:PrismaJson.InstanceResolvedInputs | null
269
275
  currentResourceCount: number | null
270
276
  statusFields:PrismaJson.InstanceStatusFields | null
277
+ hasResourceHooks: boolean
271
278
  _count: InstanceStateCountAggregateOutputType | null
272
279
  _avg: InstanceStateAvgAggregateOutputType | null
273
280
  _sum: InstanceStateSumAggregateOutputType | null
@@ -310,6 +317,7 @@ export type InstanceStateWhereInput = {
310
317
  resolvedInputs?: Prisma.JsonNullableFilter<"InstanceState">
311
318
  currentResourceCount?: Prisma.IntNullableFilter<"InstanceState"> | number | null
312
319
  statusFields?: Prisma.JsonNullableFilter<"InstanceState">
320
+ hasResourceHooks?: Prisma.BoolFilter<"InstanceState"> | boolean
313
321
  parent?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
314
322
  children?: Prisma.InstanceStateListRelationFilter
315
323
  evaluationState?: Prisma.XOR<Prisma.InstanceEvaluationStateNullableScalarRelationFilter, Prisma.InstanceEvaluationStateWhereInput> | null
@@ -324,6 +332,7 @@ export type InstanceStateWhereInput = {
324
332
  artifacts?: Prisma.ArtifactListRelationFilter
325
333
  operationLogs?: Prisma.OperationLogListRelationFilter
326
334
  userViewports?: Prisma.UserCompositeViewportListRelationFilter
335
+ entitySnapshots?: Prisma.EntitySnapshotListRelationFilter
327
336
  }
328
337
 
329
338
  export type InstanceStateOrderByWithRelationInput = {
@@ -343,6 +352,7 @@ export type InstanceStateOrderByWithRelationInput = {
343
352
  resolvedInputs?: Prisma.SortOrderInput | Prisma.SortOrder
344
353
  currentResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
345
354
  statusFields?: Prisma.SortOrderInput | Prisma.SortOrder
355
+ hasResourceHooks?: Prisma.SortOrder
346
356
  parent?: Prisma.InstanceStateOrderByWithRelationInput
347
357
  children?: Prisma.InstanceStateOrderByRelationAggregateInput
348
358
  evaluationState?: Prisma.InstanceEvaluationStateOrderByWithRelationInput
@@ -357,6 +367,7 @@ export type InstanceStateOrderByWithRelationInput = {
357
367
  artifacts?: Prisma.ArtifactOrderByRelationAggregateInput
358
368
  operationLogs?: Prisma.OperationLogOrderByRelationAggregateInput
359
369
  userViewports?: Prisma.UserCompositeViewportOrderByRelationAggregateInput
370
+ entitySnapshots?: Prisma.EntitySnapshotOrderByRelationAggregateInput
360
371
  }
361
372
 
362
373
  export type InstanceStateWhereUniqueInput = Prisma.AtLeast<{
@@ -379,6 +390,7 @@ export type InstanceStateWhereUniqueInput = Prisma.AtLeast<{
379
390
  resolvedInputs?: Prisma.JsonNullableFilter<"InstanceState">
380
391
  currentResourceCount?: Prisma.IntNullableFilter<"InstanceState"> | number | null
381
392
  statusFields?: Prisma.JsonNullableFilter<"InstanceState">
393
+ hasResourceHooks?: Prisma.BoolFilter<"InstanceState"> | boolean
382
394
  parent?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
383
395
  children?: Prisma.InstanceStateListRelationFilter
384
396
  evaluationState?: Prisma.XOR<Prisma.InstanceEvaluationStateNullableScalarRelationFilter, Prisma.InstanceEvaluationStateWhereInput> | null
@@ -393,6 +405,7 @@ export type InstanceStateWhereUniqueInput = Prisma.AtLeast<{
393
405
  artifacts?: Prisma.ArtifactListRelationFilter
394
406
  operationLogs?: Prisma.OperationLogListRelationFilter
395
407
  userViewports?: Prisma.UserCompositeViewportListRelationFilter
408
+ entitySnapshots?: Prisma.EntitySnapshotListRelationFilter
396
409
  }, "id" | "instanceId">
397
410
 
398
411
  export type InstanceStateOrderByWithAggregationInput = {
@@ -412,6 +425,7 @@ export type InstanceStateOrderByWithAggregationInput = {
412
425
  resolvedInputs?: Prisma.SortOrderInput | Prisma.SortOrder
413
426
  currentResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
414
427
  statusFields?: Prisma.SortOrderInput | Prisma.SortOrder
428
+ hasResourceHooks?: Prisma.SortOrder
415
429
  _count?: Prisma.InstanceStateCountOrderByAggregateInput
416
430
  _avg?: Prisma.InstanceStateAvgOrderByAggregateInput
417
431
  _max?: Prisma.InstanceStateMaxOrderByAggregateInput
@@ -439,6 +453,7 @@ export type InstanceStateScalarWhereWithAggregatesInput = {
439
453
  resolvedInputs?: Prisma.JsonNullableWithAggregatesFilter<"InstanceState">
440
454
  currentResourceCount?: Prisma.IntNullableWithAggregatesFilter<"InstanceState"> | number | null
441
455
  statusFields?: Prisma.JsonNullableWithAggregatesFilter<"InstanceState">
456
+ hasResourceHooks?: Prisma.BoolWithAggregatesFilter<"InstanceState"> | boolean
442
457
  }
443
458
 
444
459
  export type InstanceStateCreateInput = {
@@ -457,6 +472,7 @@ export type InstanceStateCreateInput = {
457
472
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
458
473
  currentResourceCount?: number | null
459
474
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
475
+ hasResourceHooks?: boolean
460
476
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
461
477
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
462
478
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -471,6 +487,7 @@ export type InstanceStateCreateInput = {
471
487
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
472
488
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
473
489
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
490
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
474
491
  }
475
492
 
476
493
  export type InstanceStateUncheckedCreateInput = {
@@ -490,6 +507,7 @@ export type InstanceStateUncheckedCreateInput = {
490
507
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
491
508
  currentResourceCount?: number | null
492
509
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
510
+ hasResourceHooks?: boolean
493
511
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
494
512
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
495
513
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -503,6 +521,7 @@ export type InstanceStateUncheckedCreateInput = {
503
521
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
504
522
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
505
523
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
524
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
506
525
  }
507
526
 
508
527
  export type InstanceStateUpdateInput = {
@@ -521,6 +540,7 @@ export type InstanceStateUpdateInput = {
521
540
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
522
541
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
523
542
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
543
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
524
544
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
525
545
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
526
546
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -535,6 +555,7 @@ export type InstanceStateUpdateInput = {
535
555
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
536
556
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
537
557
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
558
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
538
559
  }
539
560
 
540
561
  export type InstanceStateUncheckedUpdateInput = {
@@ -554,6 +575,7 @@ export type InstanceStateUncheckedUpdateInput = {
554
575
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
555
576
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
556
577
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
578
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
557
579
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
558
580
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
559
581
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -567,6 +589,7 @@ export type InstanceStateUncheckedUpdateInput = {
567
589
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
568
590
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
569
591
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
592
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
570
593
  }
571
594
 
572
595
  export type InstanceStateCreateManyInput = {
@@ -586,6 +609,7 @@ export type InstanceStateCreateManyInput = {
586
609
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
587
610
  currentResourceCount?: number | null
588
611
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
612
+ hasResourceHooks?: boolean
589
613
  }
590
614
 
591
615
  export type InstanceStateUpdateManyMutationInput = {
@@ -604,6 +628,7 @@ export type InstanceStateUpdateManyMutationInput = {
604
628
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
605
629
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
606
630
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
631
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
607
632
  }
608
633
 
609
634
  export type InstanceStateUncheckedUpdateManyInput = {
@@ -623,6 +648,7 @@ export type InstanceStateUncheckedUpdateManyInput = {
623
648
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
624
649
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
625
650
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
651
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
626
652
  }
627
653
 
628
654
  export type InstanceStateListRelationFilter = {
@@ -662,6 +688,7 @@ export type InstanceStateCountOrderByAggregateInput = {
662
688
  resolvedInputs?: Prisma.SortOrder
663
689
  currentResourceCount?: Prisma.SortOrder
664
690
  statusFields?: Prisma.SortOrder
691
+ hasResourceHooks?: Prisma.SortOrder
665
692
  }
666
693
 
667
694
  export type InstanceStateAvgOrderByAggregateInput = {
@@ -686,6 +713,7 @@ export type InstanceStateMaxOrderByAggregateInput = {
686
713
  outputHash?: Prisma.SortOrder
687
714
  dependencyOutputHash?: Prisma.SortOrder
688
715
  currentResourceCount?: Prisma.SortOrder
716
+ hasResourceHooks?: Prisma.SortOrder
689
717
  }
690
718
 
691
719
  export type InstanceStateMinOrderByAggregateInput = {
@@ -701,6 +729,7 @@ export type InstanceStateMinOrderByAggregateInput = {
701
729
  outputHash?: Prisma.SortOrder
702
730
  dependencyOutputHash?: Prisma.SortOrder
703
731
  currentResourceCount?: Prisma.SortOrder
732
+ hasResourceHooks?: Prisma.SortOrder
704
733
  }
705
734
 
706
735
  export type InstanceStateSumOrderByAggregateInput = {
@@ -764,6 +793,20 @@ export type InstanceStateUpdateOneRequiredWithoutCustomStatusesNestedInput = {
764
793
  update?: Prisma.XOR<Prisma.XOR<Prisma.InstanceStateUpdateToOneWithWhereWithoutCustomStatusesInput, Prisma.InstanceStateUpdateWithoutCustomStatusesInput>, Prisma.InstanceStateUncheckedUpdateWithoutCustomStatusesInput>
765
794
  }
766
795
 
796
+ export type InstanceStateCreateNestedOneWithoutEntitySnapshotsInput = {
797
+ create?: Prisma.XOR<Prisma.InstanceStateCreateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedCreateWithoutEntitySnapshotsInput>
798
+ connectOrCreate?: Prisma.InstanceStateCreateOrConnectWithoutEntitySnapshotsInput
799
+ connect?: Prisma.InstanceStateWhereUniqueInput
800
+ }
801
+
802
+ export type InstanceStateUpdateOneRequiredWithoutEntitySnapshotsNestedInput = {
803
+ create?: Prisma.XOR<Prisma.InstanceStateCreateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedCreateWithoutEntitySnapshotsInput>
804
+ connectOrCreate?: Prisma.InstanceStateCreateOrConnectWithoutEntitySnapshotsInput
805
+ upsert?: Prisma.InstanceStateUpsertWithoutEntitySnapshotsInput
806
+ connect?: Prisma.InstanceStateWhereUniqueInput
807
+ update?: Prisma.XOR<Prisma.XOR<Prisma.InstanceStateUpdateToOneWithWhereWithoutEntitySnapshotsInput, Prisma.InstanceStateUpdateWithoutEntitySnapshotsInput>, Prisma.InstanceStateUncheckedUpdateWithoutEntitySnapshotsInput>
808
+ }
809
+
767
810
  export type InstanceStateCreateNestedOneWithoutEvaluationStateInput = {
768
811
  create?: Prisma.XOR<Prisma.InstanceStateCreateWithoutEvaluationStateInput, Prisma.InstanceStateUncheckedCreateWithoutEvaluationStateInput>
769
812
  connectOrCreate?: Prisma.InstanceStateCreateOrConnectWithoutEvaluationStateInput
@@ -814,6 +857,10 @@ export type NullableIntFieldUpdateOperationsInput = {
814
857
  divide?: number
815
858
  }
816
859
 
860
+ export type BoolFieldUpdateOperationsInput = {
861
+ set?: boolean
862
+ }
863
+
817
864
  export type InstanceStateUpdateOneWithoutChildrenNestedInput = {
818
865
  create?: Prisma.XOR<Prisma.InstanceStateCreateWithoutChildrenInput, Prisma.InstanceStateUncheckedCreateWithoutChildrenInput>
819
866
  connectOrCreate?: Prisma.InstanceStateCreateOrConnectWithoutChildrenInput
@@ -1002,6 +1049,7 @@ export type InstanceStateCreateWithoutArtifactsInput = {
1002
1049
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1003
1050
  currentResourceCount?: number | null
1004
1051
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1052
+ hasResourceHooks?: boolean
1005
1053
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1006
1054
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1007
1055
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -1015,6 +1063,7 @@ export type InstanceStateCreateWithoutArtifactsInput = {
1015
1063
  workerRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutStateInput
1016
1064
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1017
1065
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1066
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1018
1067
  }
1019
1068
 
1020
1069
  export type InstanceStateUncheckedCreateWithoutArtifactsInput = {
@@ -1034,6 +1083,7 @@ export type InstanceStateUncheckedCreateWithoutArtifactsInput = {
1034
1083
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1035
1084
  currentResourceCount?: number | null
1036
1085
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1086
+ hasResourceHooks?: boolean
1037
1087
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1038
1088
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1039
1089
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -1046,6 +1096,7 @@ export type InstanceStateUncheckedCreateWithoutArtifactsInput = {
1046
1096
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutStateInput
1047
1097
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1048
1098
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1099
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1049
1100
  }
1050
1101
 
1051
1102
  export type InstanceStateCreateOrConnectWithoutArtifactsInput = {
@@ -1089,6 +1140,7 @@ export type InstanceStateScalarWhereInput = {
1089
1140
  resolvedInputs?: Prisma.JsonNullableFilter<"InstanceState">
1090
1141
  currentResourceCount?: Prisma.IntNullableFilter<"InstanceState"> | number | null
1091
1142
  statusFields?: Prisma.JsonNullableFilter<"InstanceState">
1143
+ hasResourceHooks?: Prisma.BoolFilter<"InstanceState"> | boolean
1092
1144
  }
1093
1145
 
1094
1146
  export type InstanceStateCreateWithoutCustomStatusesInput = {
@@ -1107,6 +1159,7 @@ export type InstanceStateCreateWithoutCustomStatusesInput = {
1107
1159
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1108
1160
  currentResourceCount?: number | null
1109
1161
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1162
+ hasResourceHooks?: boolean
1110
1163
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1111
1164
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1112
1165
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -1120,6 +1173,7 @@ export type InstanceStateCreateWithoutCustomStatusesInput = {
1120
1173
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1121
1174
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1122
1175
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1176
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1123
1177
  }
1124
1178
 
1125
1179
  export type InstanceStateUncheckedCreateWithoutCustomStatusesInput = {
@@ -1139,6 +1193,7 @@ export type InstanceStateUncheckedCreateWithoutCustomStatusesInput = {
1139
1193
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1140
1194
  currentResourceCount?: number | null
1141
1195
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1196
+ hasResourceHooks?: boolean
1142
1197
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1143
1198
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1144
1199
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -1151,6 +1206,7 @@ export type InstanceStateUncheckedCreateWithoutCustomStatusesInput = {
1151
1206
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1152
1207
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1153
1208
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1209
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1154
1210
  }
1155
1211
 
1156
1212
  export type InstanceStateCreateOrConnectWithoutCustomStatusesInput = {
@@ -1185,6 +1241,7 @@ export type InstanceStateUpdateWithoutCustomStatusesInput = {
1185
1241
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1186
1242
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1187
1243
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1244
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1188
1245
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1189
1246
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1190
1247
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -1198,6 +1255,7 @@ export type InstanceStateUpdateWithoutCustomStatusesInput = {
1198
1255
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1199
1256
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1200
1257
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
1258
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1201
1259
  }
1202
1260
 
1203
1261
  export type InstanceStateUncheckedUpdateWithoutCustomStatusesInput = {
@@ -1217,6 +1275,7 @@ export type InstanceStateUncheckedUpdateWithoutCustomStatusesInput = {
1217
1275
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1218
1276
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1219
1277
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1278
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1220
1279
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
1221
1280
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
1222
1281
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -1229,6 +1288,155 @@ export type InstanceStateUncheckedUpdateWithoutCustomStatusesInput = {
1229
1288
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1230
1289
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1231
1290
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
1291
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
1292
+ }
1293
+
1294
+ export type InstanceStateCreateWithoutEntitySnapshotsInput = {
1295
+ id?: string
1296
+ instanceId:PrismaJson.InstanceId
1297
+ status: $Enums.InstanceStatus
1298
+ source: $Enums.InstanceSource
1299
+ kind:PrismaJson.InstanceKind
1300
+ inputHashNonce?: number | null
1301
+ selfHash?: number | null
1302
+ inputHash?: number | null
1303
+ outputHash?: number | null
1304
+ dependencyOutputHash?: number | null
1305
+ exportedArtifactIds?:PrismaJson.InstanceArtifactIds | Prisma.NullableJsonNullValueInput
1306
+ model?:PrismaJson.InstanceModel | Prisma.NullableJsonNullValueInput
1307
+ resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1308
+ currentResourceCount?: number | null
1309
+ statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1310
+ hasResourceHooks?: boolean
1311
+ parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1312
+ children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1313
+ evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
1314
+ operationStates?: Prisma.InstanceOperationStateCreateNestedManyWithoutStateInput
1315
+ secrets?: Prisma.SecretCreateNestedManyWithoutStateInput
1316
+ terminals?: Prisma.TerminalCreateNestedManyWithoutStateInput
1317
+ pages?: Prisma.PageCreateNestedManyWithoutStateInput
1318
+ triggers?: Prisma.TriggerCreateNestedManyWithoutStateInput
1319
+ customStatuses?: Prisma.InstanceCustomStatusCreateNestedManyWithoutStateInput
1320
+ lock?: Prisma.InstanceLockCreateNestedOneWithoutStateInput
1321
+ workerRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutStateInput
1322
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1323
+ operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1324
+ userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1325
+ }
1326
+
1327
+ export type InstanceStateUncheckedCreateWithoutEntitySnapshotsInput = {
1328
+ id?: string
1329
+ instanceId:PrismaJson.InstanceId
1330
+ status: $Enums.InstanceStatus
1331
+ source: $Enums.InstanceSource
1332
+ kind:PrismaJson.InstanceKind
1333
+ parentId?: string | null
1334
+ inputHashNonce?: number | null
1335
+ selfHash?: number | null
1336
+ inputHash?: number | null
1337
+ outputHash?: number | null
1338
+ dependencyOutputHash?: number | null
1339
+ exportedArtifactIds?:PrismaJson.InstanceArtifactIds | Prisma.NullableJsonNullValueInput
1340
+ model?:PrismaJson.InstanceModel | Prisma.NullableJsonNullValueInput
1341
+ resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1342
+ currentResourceCount?: number | null
1343
+ statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1344
+ hasResourceHooks?: boolean
1345
+ children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1346
+ evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1347
+ operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
1348
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutStateInput
1349
+ terminals?: Prisma.TerminalUncheckedCreateNestedManyWithoutStateInput
1350
+ pages?: Prisma.PageUncheckedCreateNestedManyWithoutStateInput
1351
+ triggers?: Prisma.TriggerUncheckedCreateNestedManyWithoutStateInput
1352
+ customStatuses?: Prisma.InstanceCustomStatusUncheckedCreateNestedManyWithoutStateInput
1353
+ lock?: Prisma.InstanceLockUncheckedCreateNestedOneWithoutStateInput
1354
+ workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutStateInput
1355
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1356
+ operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1357
+ userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1358
+ }
1359
+
1360
+ export type InstanceStateCreateOrConnectWithoutEntitySnapshotsInput = {
1361
+ where: Prisma.InstanceStateWhereUniqueInput
1362
+ create: Prisma.XOR<Prisma.InstanceStateCreateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedCreateWithoutEntitySnapshotsInput>
1363
+ }
1364
+
1365
+ export type InstanceStateUpsertWithoutEntitySnapshotsInput = {
1366
+ update: Prisma.XOR<Prisma.InstanceStateUpdateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedUpdateWithoutEntitySnapshotsInput>
1367
+ create: Prisma.XOR<Prisma.InstanceStateCreateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedCreateWithoutEntitySnapshotsInput>
1368
+ where?: Prisma.InstanceStateWhereInput
1369
+ }
1370
+
1371
+ export type InstanceStateUpdateToOneWithWhereWithoutEntitySnapshotsInput = {
1372
+ where?: Prisma.InstanceStateWhereInput
1373
+ data: Prisma.XOR<Prisma.InstanceStateUpdateWithoutEntitySnapshotsInput, Prisma.InstanceStateUncheckedUpdateWithoutEntitySnapshotsInput>
1374
+ }
1375
+
1376
+ export type InstanceStateUpdateWithoutEntitySnapshotsInput = {
1377
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1378
+ instanceId?: Prisma.StringFieldUpdateOperationsInput | string
1379
+ status?: Prisma.EnumInstanceStatusFieldUpdateOperationsInput | $Enums.InstanceStatus
1380
+ source?: Prisma.EnumInstanceSourceFieldUpdateOperationsInput | $Enums.InstanceSource
1381
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1382
+ inputHashNonce?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1383
+ selfHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1384
+ inputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1385
+ outputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1386
+ dependencyOutputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1387
+ exportedArtifactIds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1388
+ model?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1389
+ resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1390
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1391
+ statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1392
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1393
+ parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1394
+ children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1395
+ evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
1396
+ operationStates?: Prisma.InstanceOperationStateUpdateManyWithoutStateNestedInput
1397
+ secrets?: Prisma.SecretUpdateManyWithoutStateNestedInput
1398
+ terminals?: Prisma.TerminalUpdateManyWithoutStateNestedInput
1399
+ pages?: Prisma.PageUpdateManyWithoutStateNestedInput
1400
+ triggers?: Prisma.TriggerUpdateManyWithoutStateNestedInput
1401
+ customStatuses?: Prisma.InstanceCustomStatusUpdateManyWithoutStateNestedInput
1402
+ lock?: Prisma.InstanceLockUpdateOneWithoutStateNestedInput
1403
+ workerRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutStateNestedInput
1404
+ artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1405
+ operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1406
+ userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
1407
+ }
1408
+
1409
+ export type InstanceStateUncheckedUpdateWithoutEntitySnapshotsInput = {
1410
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1411
+ instanceId?: Prisma.StringFieldUpdateOperationsInput | string
1412
+ status?: Prisma.EnumInstanceStatusFieldUpdateOperationsInput | $Enums.InstanceStatus
1413
+ source?: Prisma.EnumInstanceSourceFieldUpdateOperationsInput | $Enums.InstanceSource
1414
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1415
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1416
+ inputHashNonce?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1417
+ selfHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1418
+ inputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1419
+ outputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1420
+ dependencyOutputHash?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1421
+ exportedArtifactIds?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1422
+ model?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1423
+ resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1424
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1425
+ statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1426
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1427
+ children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
1428
+ evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
1429
+ operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
1430
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutStateNestedInput
1431
+ terminals?: Prisma.TerminalUncheckedUpdateManyWithoutStateNestedInput
1432
+ pages?: Prisma.PageUncheckedUpdateManyWithoutStateNestedInput
1433
+ triggers?: Prisma.TriggerUncheckedUpdateManyWithoutStateNestedInput
1434
+ customStatuses?: Prisma.InstanceCustomStatusUncheckedUpdateManyWithoutStateNestedInput
1435
+ lock?: Prisma.InstanceLockUncheckedUpdateOneWithoutStateNestedInput
1436
+ workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutStateNestedInput
1437
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1438
+ operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1439
+ userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
1232
1440
  }
1233
1441
 
1234
1442
  export type InstanceStateCreateWithoutEvaluationStateInput = {
@@ -1247,6 +1455,7 @@ export type InstanceStateCreateWithoutEvaluationStateInput = {
1247
1455
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1248
1456
  currentResourceCount?: number | null
1249
1457
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1458
+ hasResourceHooks?: boolean
1250
1459
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1251
1460
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1252
1461
  operationStates?: Prisma.InstanceOperationStateCreateNestedManyWithoutStateInput
@@ -1260,6 +1469,7 @@ export type InstanceStateCreateWithoutEvaluationStateInput = {
1260
1469
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1261
1470
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1262
1471
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1472
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1263
1473
  }
1264
1474
 
1265
1475
  export type InstanceStateUncheckedCreateWithoutEvaluationStateInput = {
@@ -1279,6 +1489,7 @@ export type InstanceStateUncheckedCreateWithoutEvaluationStateInput = {
1279
1489
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1280
1490
  currentResourceCount?: number | null
1281
1491
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1492
+ hasResourceHooks?: boolean
1282
1493
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1283
1494
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
1284
1495
  secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutStateInput
@@ -1291,6 +1502,7 @@ export type InstanceStateUncheckedCreateWithoutEvaluationStateInput = {
1291
1502
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1292
1503
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1293
1504
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1505
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1294
1506
  }
1295
1507
 
1296
1508
  export type InstanceStateCreateOrConnectWithoutEvaluationStateInput = {
@@ -1325,6 +1537,7 @@ export type InstanceStateUpdateWithoutEvaluationStateInput = {
1325
1537
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1326
1538
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1327
1539
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1540
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1328
1541
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1329
1542
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1330
1543
  operationStates?: Prisma.InstanceOperationStateUpdateManyWithoutStateNestedInput
@@ -1338,6 +1551,7 @@ export type InstanceStateUpdateWithoutEvaluationStateInput = {
1338
1551
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1339
1552
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1340
1553
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
1554
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1341
1555
  }
1342
1556
 
1343
1557
  export type InstanceStateUncheckedUpdateWithoutEvaluationStateInput = {
@@ -1357,6 +1571,7 @@ export type InstanceStateUncheckedUpdateWithoutEvaluationStateInput = {
1357
1571
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1358
1572
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1359
1573
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1574
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1360
1575
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
1361
1576
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
1362
1577
  secrets?: Prisma.SecretUncheckedUpdateManyWithoutStateNestedInput
@@ -1369,6 +1584,7 @@ export type InstanceStateUncheckedUpdateWithoutEvaluationStateInput = {
1369
1584
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1370
1585
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1371
1586
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
1587
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
1372
1588
  }
1373
1589
 
1374
1590
  export type InstanceStateCreateWithoutChildrenInput = {
@@ -1387,6 +1603,7 @@ export type InstanceStateCreateWithoutChildrenInput = {
1387
1603
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1388
1604
  currentResourceCount?: number | null
1389
1605
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1606
+ hasResourceHooks?: boolean
1390
1607
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1391
1608
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
1392
1609
  operationStates?: Prisma.InstanceOperationStateCreateNestedManyWithoutStateInput
@@ -1400,6 +1617,7 @@ export type InstanceStateCreateWithoutChildrenInput = {
1400
1617
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1401
1618
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1402
1619
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1620
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1403
1621
  }
1404
1622
 
1405
1623
  export type InstanceStateUncheckedCreateWithoutChildrenInput = {
@@ -1419,6 +1637,7 @@ export type InstanceStateUncheckedCreateWithoutChildrenInput = {
1419
1637
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1420
1638
  currentResourceCount?: number | null
1421
1639
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1640
+ hasResourceHooks?: boolean
1422
1641
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1423
1642
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
1424
1643
  secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutStateInput
@@ -1431,6 +1650,7 @@ export type InstanceStateUncheckedCreateWithoutChildrenInput = {
1431
1650
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1432
1651
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1433
1652
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1653
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1434
1654
  }
1435
1655
 
1436
1656
  export type InstanceStateCreateOrConnectWithoutChildrenInput = {
@@ -1454,6 +1674,7 @@ export type InstanceStateCreateWithoutParentInput = {
1454
1674
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1455
1675
  currentResourceCount?: number | null
1456
1676
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1677
+ hasResourceHooks?: boolean
1457
1678
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1458
1679
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
1459
1680
  operationStates?: Prisma.InstanceOperationStateCreateNestedManyWithoutStateInput
@@ -1467,6 +1688,7 @@ export type InstanceStateCreateWithoutParentInput = {
1467
1688
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1468
1689
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1469
1690
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
1691
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1470
1692
  }
1471
1693
 
1472
1694
  export type InstanceStateUncheckedCreateWithoutParentInput = {
@@ -1485,6 +1707,7 @@ export type InstanceStateUncheckedCreateWithoutParentInput = {
1485
1707
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1486
1708
  currentResourceCount?: number | null
1487
1709
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1710
+ hasResourceHooks?: boolean
1488
1711
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1489
1712
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1490
1713
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -1498,6 +1721,7 @@ export type InstanceStateUncheckedCreateWithoutParentInput = {
1498
1721
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1499
1722
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1500
1723
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
1724
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1501
1725
  }
1502
1726
 
1503
1727
  export type InstanceStateCreateOrConnectWithoutParentInput = {
@@ -1536,6 +1760,7 @@ export type InstanceStateUpdateWithoutChildrenInput = {
1536
1760
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1537
1761
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1538
1762
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1763
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1539
1764
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1540
1765
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
1541
1766
  operationStates?: Prisma.InstanceOperationStateUpdateManyWithoutStateNestedInput
@@ -1549,6 +1774,7 @@ export type InstanceStateUpdateWithoutChildrenInput = {
1549
1774
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1550
1775
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1551
1776
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
1777
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1552
1778
  }
1553
1779
 
1554
1780
  export type InstanceStateUncheckedUpdateWithoutChildrenInput = {
@@ -1568,6 +1794,7 @@ export type InstanceStateUncheckedUpdateWithoutChildrenInput = {
1568
1794
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1569
1795
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1570
1796
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1797
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1571
1798
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
1572
1799
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
1573
1800
  secrets?: Prisma.SecretUncheckedUpdateManyWithoutStateNestedInput
@@ -1580,6 +1807,7 @@ export type InstanceStateUncheckedUpdateWithoutChildrenInput = {
1580
1807
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1581
1808
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1582
1809
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
1810
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
1583
1811
  }
1584
1812
 
1585
1813
  export type InstanceStateUpsertWithWhereUniqueWithoutParentInput = {
@@ -1614,6 +1842,7 @@ export type InstanceStateCreateWithoutUserViewportsInput = {
1614
1842
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1615
1843
  currentResourceCount?: number | null
1616
1844
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1845
+ hasResourceHooks?: boolean
1617
1846
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1618
1847
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1619
1848
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -1627,6 +1856,7 @@ export type InstanceStateCreateWithoutUserViewportsInput = {
1627
1856
  workerRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutStateInput
1628
1857
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1629
1858
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1859
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1630
1860
  }
1631
1861
 
1632
1862
  export type InstanceStateUncheckedCreateWithoutUserViewportsInput = {
@@ -1646,6 +1876,7 @@ export type InstanceStateUncheckedCreateWithoutUserViewportsInput = {
1646
1876
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1647
1877
  currentResourceCount?: number | null
1648
1878
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1879
+ hasResourceHooks?: boolean
1649
1880
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1650
1881
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1651
1882
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -1658,6 +1889,7 @@ export type InstanceStateUncheckedCreateWithoutUserViewportsInput = {
1658
1889
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutStateInput
1659
1890
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1660
1891
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1892
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1661
1893
  }
1662
1894
 
1663
1895
  export type InstanceStateCreateOrConnectWithoutUserViewportsInput = {
@@ -1692,6 +1924,7 @@ export type InstanceStateUpdateWithoutUserViewportsInput = {
1692
1924
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1693
1925
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1694
1926
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1927
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1695
1928
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1696
1929
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1697
1930
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -1705,6 +1938,7 @@ export type InstanceStateUpdateWithoutUserViewportsInput = {
1705
1938
  workerRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutStateNestedInput
1706
1939
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1707
1940
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1941
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1708
1942
  }
1709
1943
 
1710
1944
  export type InstanceStateUncheckedUpdateWithoutUserViewportsInput = {
@@ -1724,6 +1958,7 @@ export type InstanceStateUncheckedUpdateWithoutUserViewportsInput = {
1724
1958
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1725
1959
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1726
1960
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1961
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1727
1962
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
1728
1963
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
1729
1964
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -1736,6 +1971,7 @@ export type InstanceStateUncheckedUpdateWithoutUserViewportsInput = {
1736
1971
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutStateNestedInput
1737
1972
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1738
1973
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1974
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
1739
1975
  }
1740
1976
 
1741
1977
  export type InstanceStateCreateWithoutLockInput = {
@@ -1754,6 +1990,7 @@ export type InstanceStateCreateWithoutLockInput = {
1754
1990
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1755
1991
  currentResourceCount?: number | null
1756
1992
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
1993
+ hasResourceHooks?: boolean
1757
1994
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1758
1995
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1759
1996
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -1767,6 +2004,7 @@ export type InstanceStateCreateWithoutLockInput = {
1767
2004
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1768
2005
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1769
2006
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2007
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1770
2008
  }
1771
2009
 
1772
2010
  export type InstanceStateUncheckedCreateWithoutLockInput = {
@@ -1786,6 +2024,7 @@ export type InstanceStateUncheckedCreateWithoutLockInput = {
1786
2024
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1787
2025
  currentResourceCount?: number | null
1788
2026
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2027
+ hasResourceHooks?: boolean
1789
2028
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1790
2029
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1791
2030
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -1798,6 +2037,7 @@ export type InstanceStateUncheckedCreateWithoutLockInput = {
1798
2037
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1799
2038
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1800
2039
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2040
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1801
2041
  }
1802
2042
 
1803
2043
  export type InstanceStateCreateOrConnectWithoutLockInput = {
@@ -1832,6 +2072,7 @@ export type InstanceStateUpdateWithoutLockInput = {
1832
2072
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1833
2073
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1834
2074
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2075
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1835
2076
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1836
2077
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1837
2078
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -1845,6 +2086,7 @@ export type InstanceStateUpdateWithoutLockInput = {
1845
2086
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1846
2087
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1847
2088
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2089
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1848
2090
  }
1849
2091
 
1850
2092
  export type InstanceStateUncheckedUpdateWithoutLockInput = {
@@ -1864,6 +2106,7 @@ export type InstanceStateUncheckedUpdateWithoutLockInput = {
1864
2106
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1865
2107
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1866
2108
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2109
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1867
2110
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
1868
2111
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
1869
2112
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -1876,6 +2119,7 @@ export type InstanceStateUncheckedUpdateWithoutLockInput = {
1876
2119
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
1877
2120
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
1878
2121
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2122
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
1879
2123
  }
1880
2124
 
1881
2125
  export type InstanceStateCreateWithoutOperationStatesInput = {
@@ -1894,6 +2138,7 @@ export type InstanceStateCreateWithoutOperationStatesInput = {
1894
2138
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1895
2139
  currentResourceCount?: number | null
1896
2140
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2141
+ hasResourceHooks?: boolean
1897
2142
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
1898
2143
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
1899
2144
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -1907,6 +2152,7 @@ export type InstanceStateCreateWithoutOperationStatesInput = {
1907
2152
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
1908
2153
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
1909
2154
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2155
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
1910
2156
  }
1911
2157
 
1912
2158
  export type InstanceStateUncheckedCreateWithoutOperationStatesInput = {
@@ -1926,6 +2172,7 @@ export type InstanceStateUncheckedCreateWithoutOperationStatesInput = {
1926
2172
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
1927
2173
  currentResourceCount?: number | null
1928
2174
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2175
+ hasResourceHooks?: boolean
1929
2176
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
1930
2177
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
1931
2178
  secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutStateInput
@@ -1938,6 +2185,7 @@ export type InstanceStateUncheckedCreateWithoutOperationStatesInput = {
1938
2185
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
1939
2186
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
1940
2187
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2188
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
1941
2189
  }
1942
2190
 
1943
2191
  export type InstanceStateCreateOrConnectWithoutOperationStatesInput = {
@@ -1972,6 +2220,7 @@ export type InstanceStateUpdateWithoutOperationStatesInput = {
1972
2220
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1973
2221
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1974
2222
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2223
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
1975
2224
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
1976
2225
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
1977
2226
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -1985,6 +2234,7 @@ export type InstanceStateUpdateWithoutOperationStatesInput = {
1985
2234
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
1986
2235
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
1987
2236
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2237
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
1988
2238
  }
1989
2239
 
1990
2240
  export type InstanceStateUncheckedUpdateWithoutOperationStatesInput = {
@@ -2004,6 +2254,7 @@ export type InstanceStateUncheckedUpdateWithoutOperationStatesInput = {
2004
2254
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2005
2255
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2006
2256
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2257
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2007
2258
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2008
2259
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2009
2260
  secrets?: Prisma.SecretUncheckedUpdateManyWithoutStateNestedInput
@@ -2016,6 +2267,7 @@ export type InstanceStateUncheckedUpdateWithoutOperationStatesInput = {
2016
2267
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2017
2268
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2018
2269
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2270
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2019
2271
  }
2020
2272
 
2021
2273
  export type InstanceStateCreateWithoutOperationLogsInput = {
@@ -2034,6 +2286,7 @@ export type InstanceStateCreateWithoutOperationLogsInput = {
2034
2286
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2035
2287
  currentResourceCount?: number | null
2036
2288
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2289
+ hasResourceHooks?: boolean
2037
2290
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2038
2291
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2039
2292
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2047,6 +2300,7 @@ export type InstanceStateCreateWithoutOperationLogsInput = {
2047
2300
  workerRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutStateInput
2048
2301
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2049
2302
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2303
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2050
2304
  }
2051
2305
 
2052
2306
  export type InstanceStateUncheckedCreateWithoutOperationLogsInput = {
@@ -2066,6 +2320,7 @@ export type InstanceStateUncheckedCreateWithoutOperationLogsInput = {
2066
2320
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2067
2321
  currentResourceCount?: number | null
2068
2322
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2323
+ hasResourceHooks?: boolean
2069
2324
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2070
2325
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2071
2326
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2078,6 +2333,7 @@ export type InstanceStateUncheckedCreateWithoutOperationLogsInput = {
2078
2333
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutStateInput
2079
2334
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2080
2335
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2336
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2081
2337
  }
2082
2338
 
2083
2339
  export type InstanceStateCreateOrConnectWithoutOperationLogsInput = {
@@ -2112,6 +2368,7 @@ export type InstanceStateUpdateWithoutOperationLogsInput = {
2112
2368
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2113
2369
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2114
2370
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2371
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2115
2372
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2116
2373
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2117
2374
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2125,6 +2382,7 @@ export type InstanceStateUpdateWithoutOperationLogsInput = {
2125
2382
  workerRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutStateNestedInput
2126
2383
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2127
2384
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2385
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2128
2386
  }
2129
2387
 
2130
2388
  export type InstanceStateUncheckedUpdateWithoutOperationLogsInput = {
@@ -2144,6 +2402,7 @@ export type InstanceStateUncheckedUpdateWithoutOperationLogsInput = {
2144
2402
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2145
2403
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2146
2404
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2405
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2147
2406
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2148
2407
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2149
2408
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2156,6 +2415,7 @@ export type InstanceStateUncheckedUpdateWithoutOperationLogsInput = {
2156
2415
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutStateNestedInput
2157
2416
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2158
2417
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2418
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2159
2419
  }
2160
2420
 
2161
2421
  export type InstanceStateCreateWithoutPagesInput = {
@@ -2174,6 +2434,7 @@ export type InstanceStateCreateWithoutPagesInput = {
2174
2434
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2175
2435
  currentResourceCount?: number | null
2176
2436
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2437
+ hasResourceHooks?: boolean
2177
2438
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2178
2439
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2179
2440
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2187,6 +2448,7 @@ export type InstanceStateCreateWithoutPagesInput = {
2187
2448
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2188
2449
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
2189
2450
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2451
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2190
2452
  }
2191
2453
 
2192
2454
  export type InstanceStateUncheckedCreateWithoutPagesInput = {
@@ -2206,6 +2468,7 @@ export type InstanceStateUncheckedCreateWithoutPagesInput = {
2206
2468
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2207
2469
  currentResourceCount?: number | null
2208
2470
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2471
+ hasResourceHooks?: boolean
2209
2472
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2210
2473
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2211
2474
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2218,6 +2481,7 @@ export type InstanceStateUncheckedCreateWithoutPagesInput = {
2218
2481
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2219
2482
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
2220
2483
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2484
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2221
2485
  }
2222
2486
 
2223
2487
  export type InstanceStateCreateOrConnectWithoutPagesInput = {
@@ -2252,6 +2516,7 @@ export type InstanceStateUpdateWithoutPagesInput = {
2252
2516
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2253
2517
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2254
2518
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2519
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2255
2520
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2256
2521
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2257
2522
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2265,6 +2530,7 @@ export type InstanceStateUpdateWithoutPagesInput = {
2265
2530
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2266
2531
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2267
2532
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2533
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2268
2534
  }
2269
2535
 
2270
2536
  export type InstanceStateUncheckedUpdateWithoutPagesInput = {
@@ -2284,6 +2550,7 @@ export type InstanceStateUncheckedUpdateWithoutPagesInput = {
2284
2550
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2285
2551
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2286
2552
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2553
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2287
2554
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2288
2555
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2289
2556
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2296,6 +2563,7 @@ export type InstanceStateUncheckedUpdateWithoutPagesInput = {
2296
2563
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2297
2564
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2298
2565
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2566
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2299
2567
  }
2300
2568
 
2301
2569
  export type InstanceStateCreateWithoutSecretsInput = {
@@ -2314,6 +2582,7 @@ export type InstanceStateCreateWithoutSecretsInput = {
2314
2582
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2315
2583
  currentResourceCount?: number | null
2316
2584
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2585
+ hasResourceHooks?: boolean
2317
2586
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2318
2587
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2319
2588
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2327,6 +2596,7 @@ export type InstanceStateCreateWithoutSecretsInput = {
2327
2596
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2328
2597
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
2329
2598
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2599
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2330
2600
  }
2331
2601
 
2332
2602
  export type InstanceStateUncheckedCreateWithoutSecretsInput = {
@@ -2346,6 +2616,7 @@ export type InstanceStateUncheckedCreateWithoutSecretsInput = {
2346
2616
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2347
2617
  currentResourceCount?: number | null
2348
2618
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2619
+ hasResourceHooks?: boolean
2349
2620
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2350
2621
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2351
2622
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2358,6 +2629,7 @@ export type InstanceStateUncheckedCreateWithoutSecretsInput = {
2358
2629
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2359
2630
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
2360
2631
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2632
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2361
2633
  }
2362
2634
 
2363
2635
  export type InstanceStateCreateOrConnectWithoutSecretsInput = {
@@ -2392,6 +2664,7 @@ export type InstanceStateUpdateWithoutSecretsInput = {
2392
2664
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2393
2665
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2394
2666
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2667
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2395
2668
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2396
2669
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2397
2670
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2405,6 +2678,7 @@ export type InstanceStateUpdateWithoutSecretsInput = {
2405
2678
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2406
2679
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2407
2680
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2681
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2408
2682
  }
2409
2683
 
2410
2684
  export type InstanceStateUncheckedUpdateWithoutSecretsInput = {
@@ -2424,6 +2698,7 @@ export type InstanceStateUncheckedUpdateWithoutSecretsInput = {
2424
2698
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2425
2699
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2426
2700
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2701
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2427
2702
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2428
2703
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2429
2704
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2436,6 +2711,7 @@ export type InstanceStateUncheckedUpdateWithoutSecretsInput = {
2436
2711
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2437
2712
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2438
2713
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2714
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2439
2715
  }
2440
2716
 
2441
2717
  export type InstanceStateCreateWithoutTerminalsInput = {
@@ -2454,6 +2730,7 @@ export type InstanceStateCreateWithoutTerminalsInput = {
2454
2730
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2455
2731
  currentResourceCount?: number | null
2456
2732
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2733
+ hasResourceHooks?: boolean
2457
2734
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2458
2735
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2459
2736
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2467,6 +2744,7 @@ export type InstanceStateCreateWithoutTerminalsInput = {
2467
2744
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2468
2745
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
2469
2746
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2747
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2470
2748
  }
2471
2749
 
2472
2750
  export type InstanceStateUncheckedCreateWithoutTerminalsInput = {
@@ -2486,6 +2764,7 @@ export type InstanceStateUncheckedCreateWithoutTerminalsInput = {
2486
2764
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2487
2765
  currentResourceCount?: number | null
2488
2766
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2767
+ hasResourceHooks?: boolean
2489
2768
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2490
2769
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2491
2770
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2498,6 +2777,7 @@ export type InstanceStateUncheckedCreateWithoutTerminalsInput = {
2498
2777
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2499
2778
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
2500
2779
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2780
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2501
2781
  }
2502
2782
 
2503
2783
  export type InstanceStateCreateOrConnectWithoutTerminalsInput = {
@@ -2532,6 +2812,7 @@ export type InstanceStateUpdateWithoutTerminalsInput = {
2532
2812
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2533
2813
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2534
2814
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2815
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2535
2816
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2536
2817
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2537
2818
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2545,6 +2826,7 @@ export type InstanceStateUpdateWithoutTerminalsInput = {
2545
2826
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2546
2827
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2547
2828
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2829
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2548
2830
  }
2549
2831
 
2550
2832
  export type InstanceStateUncheckedUpdateWithoutTerminalsInput = {
@@ -2564,6 +2846,7 @@ export type InstanceStateUncheckedUpdateWithoutTerminalsInput = {
2564
2846
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2565
2847
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2566
2848
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2849
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2567
2850
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2568
2851
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2569
2852
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2576,6 +2859,7 @@ export type InstanceStateUncheckedUpdateWithoutTerminalsInput = {
2576
2859
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2577
2860
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2578
2861
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
2862
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2579
2863
  }
2580
2864
 
2581
2865
  export type InstanceStateCreateWithoutTriggersInput = {
@@ -2594,6 +2878,7 @@ export type InstanceStateCreateWithoutTriggersInput = {
2594
2878
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2595
2879
  currentResourceCount?: number | null
2596
2880
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2881
+ hasResourceHooks?: boolean
2597
2882
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2598
2883
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2599
2884
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2607,6 +2892,7 @@ export type InstanceStateCreateWithoutTriggersInput = {
2607
2892
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2608
2893
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
2609
2894
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
2895
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2610
2896
  }
2611
2897
 
2612
2898
  export type InstanceStateUncheckedCreateWithoutTriggersInput = {
@@ -2626,6 +2912,7 @@ export type InstanceStateUncheckedCreateWithoutTriggersInput = {
2626
2912
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2627
2913
  currentResourceCount?: number | null
2628
2914
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
2915
+ hasResourceHooks?: boolean
2629
2916
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2630
2917
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2631
2918
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2638,6 +2925,7 @@ export type InstanceStateUncheckedCreateWithoutTriggersInput = {
2638
2925
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2639
2926
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
2640
2927
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
2928
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2641
2929
  }
2642
2930
 
2643
2931
  export type InstanceStateCreateOrConnectWithoutTriggersInput = {
@@ -2672,6 +2960,7 @@ export type InstanceStateUpdateWithoutTriggersInput = {
2672
2960
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2673
2961
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2674
2962
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2963
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2675
2964
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2676
2965
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2677
2966
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2685,6 +2974,7 @@ export type InstanceStateUpdateWithoutTriggersInput = {
2685
2974
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2686
2975
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2687
2976
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
2977
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2688
2978
  }
2689
2979
 
2690
2980
  export type InstanceStateUncheckedUpdateWithoutTriggersInput = {
@@ -2704,6 +2994,7 @@ export type InstanceStateUncheckedUpdateWithoutTriggersInput = {
2704
2994
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2705
2995
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2706
2996
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2997
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2707
2998
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2708
2999
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2709
3000
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2716,6 +3007,7 @@ export type InstanceStateUncheckedUpdateWithoutTriggersInput = {
2716
3007
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2717
3008
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2718
3009
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
3010
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2719
3011
  }
2720
3012
 
2721
3013
  export type InstanceStateCreateWithoutWorkerRegistrationsInput = {
@@ -2734,6 +3026,7 @@ export type InstanceStateCreateWithoutWorkerRegistrationsInput = {
2734
3026
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2735
3027
  currentResourceCount?: number | null
2736
3028
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
3029
+ hasResourceHooks?: boolean
2737
3030
  parent?: Prisma.InstanceStateCreateNestedOneWithoutChildrenInput
2738
3031
  children?: Prisma.InstanceStateCreateNestedManyWithoutParentInput
2739
3032
  evaluationState?: Prisma.InstanceEvaluationStateCreateNestedOneWithoutStateInput
@@ -2747,6 +3040,7 @@ export type InstanceStateCreateWithoutWorkerRegistrationsInput = {
2747
3040
  artifacts?: Prisma.ArtifactCreateNestedManyWithoutInstancesInput
2748
3041
  operationLogs?: Prisma.OperationLogCreateNestedManyWithoutStateInput
2749
3042
  userViewports?: Prisma.UserCompositeViewportCreateNestedManyWithoutStateInput
3043
+ entitySnapshots?: Prisma.EntitySnapshotCreateNestedManyWithoutStateInput
2750
3044
  }
2751
3045
 
2752
3046
  export type InstanceStateUncheckedCreateWithoutWorkerRegistrationsInput = {
@@ -2766,6 +3060,7 @@ export type InstanceStateUncheckedCreateWithoutWorkerRegistrationsInput = {
2766
3060
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2767
3061
  currentResourceCount?: number | null
2768
3062
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
3063
+ hasResourceHooks?: boolean
2769
3064
  children?: Prisma.InstanceStateUncheckedCreateNestedManyWithoutParentInput
2770
3065
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedCreateNestedOneWithoutStateInput
2771
3066
  operationStates?: Prisma.InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput
@@ -2778,6 +3073,7 @@ export type InstanceStateUncheckedCreateWithoutWorkerRegistrationsInput = {
2778
3073
  artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutInstancesInput
2779
3074
  operationLogs?: Prisma.OperationLogUncheckedCreateNestedManyWithoutStateInput
2780
3075
  userViewports?: Prisma.UserCompositeViewportUncheckedCreateNestedManyWithoutStateInput
3076
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedCreateNestedManyWithoutStateInput
2781
3077
  }
2782
3078
 
2783
3079
  export type InstanceStateCreateOrConnectWithoutWorkerRegistrationsInput = {
@@ -2812,6 +3108,7 @@ export type InstanceStateUpdateWithoutWorkerRegistrationsInput = {
2812
3108
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2813
3109
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2814
3110
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3111
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2815
3112
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2816
3113
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2817
3114
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2825,6 +3122,7 @@ export type InstanceStateUpdateWithoutWorkerRegistrationsInput = {
2825
3122
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2826
3123
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2827
3124
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
3125
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2828
3126
  }
2829
3127
 
2830
3128
  export type InstanceStateUncheckedUpdateWithoutWorkerRegistrationsInput = {
@@ -2844,6 +3142,7 @@ export type InstanceStateUncheckedUpdateWithoutWorkerRegistrationsInput = {
2844
3142
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2845
3143
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2846
3144
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3145
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2847
3146
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2848
3147
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2849
3148
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2856,6 +3155,7 @@ export type InstanceStateUncheckedUpdateWithoutWorkerRegistrationsInput = {
2856
3155
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
2857
3156
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2858
3157
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
3158
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2859
3159
  }
2860
3160
 
2861
3161
  export type InstanceStateUpdateWithoutArtifactsInput = {
@@ -2874,6 +3174,7 @@ export type InstanceStateUpdateWithoutArtifactsInput = {
2874
3174
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2875
3175
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2876
3176
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3177
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2877
3178
  parent?: Prisma.InstanceStateUpdateOneWithoutChildrenNestedInput
2878
3179
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2879
3180
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
@@ -2887,6 +3188,7 @@ export type InstanceStateUpdateWithoutArtifactsInput = {
2887
3188
  workerRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutStateNestedInput
2888
3189
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2889
3190
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
3191
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2890
3192
  }
2891
3193
 
2892
3194
  export type InstanceStateUncheckedUpdateWithoutArtifactsInput = {
@@ -2906,6 +3208,7 @@ export type InstanceStateUncheckedUpdateWithoutArtifactsInput = {
2906
3208
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2907
3209
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2908
3210
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3211
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2909
3212
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
2910
3213
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
2911
3214
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -2918,6 +3221,7 @@ export type InstanceStateUncheckedUpdateWithoutArtifactsInput = {
2918
3221
  workerRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutStateNestedInput
2919
3222
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
2920
3223
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
3224
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
2921
3225
  }
2922
3226
 
2923
3227
  export type InstanceStateUncheckedUpdateManyWithoutArtifactsInput = {
@@ -2937,6 +3241,7 @@ export type InstanceStateUncheckedUpdateManyWithoutArtifactsInput = {
2937
3241
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2938
3242
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2939
3243
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3244
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2940
3245
  }
2941
3246
 
2942
3247
  export type InstanceStateCreateManyParentInput = {
@@ -2955,6 +3260,7 @@ export type InstanceStateCreateManyParentInput = {
2955
3260
  resolvedInputs?:PrismaJson.InstanceResolvedInputs | Prisma.NullableJsonNullValueInput
2956
3261
  currentResourceCount?: number | null
2957
3262
  statusFields?:PrismaJson.InstanceStatusFields | Prisma.NullableJsonNullValueInput
3263
+ hasResourceHooks?: boolean
2958
3264
  }
2959
3265
 
2960
3266
  export type InstanceStateUpdateWithoutParentInput = {
@@ -2973,6 +3279,7 @@ export type InstanceStateUpdateWithoutParentInput = {
2973
3279
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
2974
3280
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
2975
3281
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3282
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
2976
3283
  children?: Prisma.InstanceStateUpdateManyWithoutParentNestedInput
2977
3284
  evaluationState?: Prisma.InstanceEvaluationStateUpdateOneWithoutStateNestedInput
2978
3285
  operationStates?: Prisma.InstanceOperationStateUpdateManyWithoutStateNestedInput
@@ -2986,6 +3293,7 @@ export type InstanceStateUpdateWithoutParentInput = {
2986
3293
  artifacts?: Prisma.ArtifactUpdateManyWithoutInstancesNestedInput
2987
3294
  operationLogs?: Prisma.OperationLogUpdateManyWithoutStateNestedInput
2988
3295
  userViewports?: Prisma.UserCompositeViewportUpdateManyWithoutStateNestedInput
3296
+ entitySnapshots?: Prisma.EntitySnapshotUpdateManyWithoutStateNestedInput
2989
3297
  }
2990
3298
 
2991
3299
  export type InstanceStateUncheckedUpdateWithoutParentInput = {
@@ -3004,6 +3312,7 @@ export type InstanceStateUncheckedUpdateWithoutParentInput = {
3004
3312
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3005
3313
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
3006
3314
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3315
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
3007
3316
  children?: Prisma.InstanceStateUncheckedUpdateManyWithoutParentNestedInput
3008
3317
  evaluationState?: Prisma.InstanceEvaluationStateUncheckedUpdateOneWithoutStateNestedInput
3009
3318
  operationStates?: Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput
@@ -3017,6 +3326,7 @@ export type InstanceStateUncheckedUpdateWithoutParentInput = {
3017
3326
  artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutInstancesNestedInput
3018
3327
  operationLogs?: Prisma.OperationLogUncheckedUpdateManyWithoutStateNestedInput
3019
3328
  userViewports?: Prisma.UserCompositeViewportUncheckedUpdateManyWithoutStateNestedInput
3329
+ entitySnapshots?: Prisma.EntitySnapshotUncheckedUpdateManyWithoutStateNestedInput
3020
3330
  }
3021
3331
 
3022
3332
  export type InstanceStateUncheckedUpdateManyWithoutParentInput = {
@@ -3035,6 +3345,7 @@ export type InstanceStateUncheckedUpdateManyWithoutParentInput = {
3035
3345
  resolvedInputs?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3036
3346
  currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
3037
3347
  statusFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
3348
+ hasResourceHooks?: Prisma.BoolFieldUpdateOperationsInput | boolean
3038
3349
  }
3039
3350
 
3040
3351
 
@@ -3054,6 +3365,7 @@ export type InstanceStateCountOutputType = {
3054
3365
  artifacts: number
3055
3366
  operationLogs: number
3056
3367
  userViewports: number
3368
+ entitySnapshots: number
3057
3369
  }
3058
3370
 
3059
3371
  export type InstanceStateCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -3068,6 +3380,7 @@ export type InstanceStateCountOutputTypeSelect<ExtArgs extends runtime.Types.Ext
3068
3380
  artifacts?: boolean | InstanceStateCountOutputTypeCountArtifactsArgs
3069
3381
  operationLogs?: boolean | InstanceStateCountOutputTypeCountOperationLogsArgs
3070
3382
  userViewports?: boolean | InstanceStateCountOutputTypeCountUserViewportsArgs
3383
+ entitySnapshots?: boolean | InstanceStateCountOutputTypeCountEntitySnapshotsArgs
3071
3384
  }
3072
3385
 
3073
3386
  /**
@@ -3157,6 +3470,13 @@ export type InstanceStateCountOutputTypeCountUserViewportsArgs<ExtArgs extends r
3157
3470
  where?: Prisma.UserCompositeViewportWhereInput
3158
3471
  }
3159
3472
 
3473
+ /**
3474
+ * InstanceStateCountOutputType without action
3475
+ */
3476
+ export type InstanceStateCountOutputTypeCountEntitySnapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3477
+ where?: Prisma.EntitySnapshotWhereInput
3478
+ }
3479
+
3160
3480
 
3161
3481
  export type InstanceStateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3162
3482
  id?: boolean
@@ -3175,6 +3495,7 @@ export type InstanceStateSelect<ExtArgs extends runtime.Types.Extensions.Interna
3175
3495
  resolvedInputs?: boolean
3176
3496
  currentResourceCount?: boolean
3177
3497
  statusFields?: boolean
3498
+ hasResourceHooks?: boolean
3178
3499
  parent?: boolean | Prisma.InstanceState$parentArgs<ExtArgs>
3179
3500
  children?: boolean | Prisma.InstanceState$childrenArgs<ExtArgs>
3180
3501
  evaluationState?: boolean | Prisma.InstanceState$evaluationStateArgs<ExtArgs>
@@ -3189,6 +3510,7 @@ export type InstanceStateSelect<ExtArgs extends runtime.Types.Extensions.Interna
3189
3510
  artifacts?: boolean | Prisma.InstanceState$artifactsArgs<ExtArgs>
3190
3511
  operationLogs?: boolean | Prisma.InstanceState$operationLogsArgs<ExtArgs>
3191
3512
  userViewports?: boolean | Prisma.InstanceState$userViewportsArgs<ExtArgs>
3513
+ entitySnapshots?: boolean | Prisma.InstanceState$entitySnapshotsArgs<ExtArgs>
3192
3514
  _count?: boolean | Prisma.InstanceStateCountOutputTypeDefaultArgs<ExtArgs>
3193
3515
  }, ExtArgs["result"]["instanceState"]>
3194
3516
 
@@ -3209,6 +3531,7 @@ export type InstanceStateSelectCreateManyAndReturn<ExtArgs extends runtime.Types
3209
3531
  resolvedInputs?: boolean
3210
3532
  currentResourceCount?: boolean
3211
3533
  statusFields?: boolean
3534
+ hasResourceHooks?: boolean
3212
3535
  parent?: boolean | Prisma.InstanceState$parentArgs<ExtArgs>
3213
3536
  }, ExtArgs["result"]["instanceState"]>
3214
3537
 
@@ -3229,6 +3552,7 @@ export type InstanceStateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types
3229
3552
  resolvedInputs?: boolean
3230
3553
  currentResourceCount?: boolean
3231
3554
  statusFields?: boolean
3555
+ hasResourceHooks?: boolean
3232
3556
  parent?: boolean | Prisma.InstanceState$parentArgs<ExtArgs>
3233
3557
  }, ExtArgs["result"]["instanceState"]>
3234
3558
 
@@ -3249,9 +3573,10 @@ export type InstanceStateSelectScalar = {
3249
3573
  resolvedInputs?: boolean
3250
3574
  currentResourceCount?: boolean
3251
3575
  statusFields?: boolean
3576
+ hasResourceHooks?: boolean
3252
3577
  }
3253
3578
 
3254
- export type InstanceStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "instanceId" | "status" | "source" | "kind" | "parentId" | "inputHashNonce" | "selfHash" | "inputHash" | "outputHash" | "dependencyOutputHash" | "exportedArtifactIds" | "model" | "resolvedInputs" | "currentResourceCount" | "statusFields", ExtArgs["result"]["instanceState"]>
3579
+ export type InstanceStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "instanceId" | "status" | "source" | "kind" | "parentId" | "inputHashNonce" | "selfHash" | "inputHash" | "outputHash" | "dependencyOutputHash" | "exportedArtifactIds" | "model" | "resolvedInputs" | "currentResourceCount" | "statusFields" | "hasResourceHooks", ExtArgs["result"]["instanceState"]>
3255
3580
  export type InstanceStateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3256
3581
  parent?: boolean | Prisma.InstanceState$parentArgs<ExtArgs>
3257
3582
  children?: boolean | Prisma.InstanceState$childrenArgs<ExtArgs>
@@ -3267,6 +3592,7 @@ export type InstanceStateInclude<ExtArgs extends runtime.Types.Extensions.Intern
3267
3592
  artifacts?: boolean | Prisma.InstanceState$artifactsArgs<ExtArgs>
3268
3593
  operationLogs?: boolean | Prisma.InstanceState$operationLogsArgs<ExtArgs>
3269
3594
  userViewports?: boolean | Prisma.InstanceState$userViewportsArgs<ExtArgs>
3595
+ entitySnapshots?: boolean | Prisma.InstanceState$entitySnapshotsArgs<ExtArgs>
3270
3596
  _count?: boolean | Prisma.InstanceStateCountOutputTypeDefaultArgs<ExtArgs>
3271
3597
  }
3272
3598
  export type InstanceStateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -3335,6 +3661,10 @@ export type $InstanceStatePayload<ExtArgs extends runtime.Types.Extensions.Inter
3335
3661
  * The user viewports associated with this instance.
3336
3662
  */
3337
3663
  userViewports: Prisma.$UserCompositeViewportPayload<ExtArgs>[]
3664
+ /**
3665
+ * The entity snapshots associated with this instance.
3666
+ */
3667
+ entitySnapshots: Prisma.$EntitySnapshotPayload<ExtArgs>[]
3338
3668
  }
3339
3669
  scalars: runtime.Types.Extensions.GetPayloadResult<{
3340
3670
  /**
@@ -3443,6 +3773,10 @@ export type $InstanceStatePayload<ExtArgs extends runtime.Types.Extensions.Inter
3443
3773
  * [InstanceStatusFields]
3444
3774
  */
3445
3775
  statusFields:PrismaJson.InstanceStatusFields | null
3776
+ /**
3777
+ * Whether the instance has resource hooks and requires running program on destroy to properly clean up resources.
3778
+ */
3779
+ hasResourceHooks: boolean
3446
3780
  }, ExtArgs["result"]["instanceState"]>
3447
3781
  composites: {}
3448
3782
  }
@@ -3851,6 +4185,7 @@ export interface Prisma__InstanceStateClient<T, Null = never, ExtArgs extends ru
3851
4185
  artifacts<T extends Prisma.InstanceState$artifactsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceState$artifactsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3852
4186
  operationLogs<T extends Prisma.InstanceState$operationLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceState$operationLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3853
4187
  userViewports<T extends Prisma.InstanceState$userViewportsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceState$userViewportsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserCompositeViewportPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
4188
+ entitySnapshots<T extends Prisma.InstanceState$entitySnapshotsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceState$entitySnapshotsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EntitySnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3854
4189
  /**
3855
4190
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3856
4191
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3896,6 +4231,7 @@ export interface InstanceStateFieldRefs {
3896
4231
  readonly resolvedInputs: Prisma.FieldRef<"InstanceState", 'Json'>
3897
4232
  readonly currentResourceCount: Prisma.FieldRef<"InstanceState", 'Int'>
3898
4233
  readonly statusFields: Prisma.FieldRef<"InstanceState", 'Json'>
4234
+ readonly hasResourceHooks: Prisma.FieldRef<"InstanceState", 'Boolean'>
3899
4235
  }
3900
4236
 
3901
4237
 
@@ -4610,6 +4946,30 @@ export type InstanceState$userViewportsArgs<ExtArgs extends runtime.Types.Extens
4610
4946
  distinct?: Prisma.UserCompositeViewportScalarFieldEnum | Prisma.UserCompositeViewportScalarFieldEnum[]
4611
4947
  }
4612
4948
 
4949
+ /**
4950
+ * InstanceState.entitySnapshots
4951
+ */
4952
+ export type InstanceState$entitySnapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4953
+ /**
4954
+ * Select specific fields to fetch from the EntitySnapshot
4955
+ */
4956
+ select?: Prisma.EntitySnapshotSelect<ExtArgs> | null
4957
+ /**
4958
+ * Omit specific fields from the EntitySnapshot
4959
+ */
4960
+ omit?: Prisma.EntitySnapshotOmit<ExtArgs> | null
4961
+ /**
4962
+ * Choose, which related nodes to fetch as well
4963
+ */
4964
+ include?: Prisma.EntitySnapshotInclude<ExtArgs> | null
4965
+ where?: Prisma.EntitySnapshotWhereInput
4966
+ orderBy?: Prisma.EntitySnapshotOrderByWithRelationInput | Prisma.EntitySnapshotOrderByWithRelationInput[]
4967
+ cursor?: Prisma.EntitySnapshotWhereUniqueInput
4968
+ take?: number
4969
+ skip?: number
4970
+ distinct?: Prisma.EntitySnapshotScalarFieldEnum | Prisma.EntitySnapshotScalarFieldEnum[]
4971
+ }
4972
+
4613
4973
  /**
4614
4974
  * InstanceState without action
4615
4975
  */