@highstate/backend 0.18.0 → 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.
- package/dist/{chunk-JT4KWE3B.js → chunk-52MY2TCE.js} +348 -19
- package/dist/chunk-52MY2TCE.js.map +1 -0
- package/dist/{chunk-I7BWSAN6.js → chunk-UAWBPTDW.js} +3 -3
- package/dist/{chunk-I7BWSAN6.js.map → chunk-UAWBPTDW.js.map} +1 -1
- package/dist/highstate.manifest.json +4 -4
- package/dist/index.js +4159 -785
- package/dist/index.js.map +1 -1
- package/dist/library/worker/main.js +5 -2
- package/dist/library/worker/main.js.map +1 -1
- package/dist/shared/index.js +2 -2
- package/package.json +7 -7
- package/prisma/backend/_schema/object.prisma +12 -0
- package/prisma/backend/sqlite/migrations/20260222113554_add_object_tracking/migration.sql +7 -0
- package/prisma/project/artifact.prisma +3 -0
- package/prisma/project/entity.prisma +125 -0
- package/prisma/project/instance.prisma +6 -0
- package/prisma/project/migrations/20260301210131_add_entity_tracking/migration.sql +70 -0
- package/prisma/project/migrations/20260302212734_add_resource_hooks_flag/migration.sql +1 -0
- package/prisma/project/operation.prisma +3 -0
- package/src/business/artifact.test.ts +22 -2
- package/src/business/artifact.ts +7 -1
- package/src/business/entity-snapshot.test.ts +684 -0
- package/src/business/entity-snapshot.ts +904 -0
- package/src/business/evaluation.test.ts +56 -0
- package/src/business/evaluation.ts +102 -22
- package/src/business/global-search.test.ts +344 -0
- package/src/business/global-search.ts +902 -0
- package/src/business/index.ts +4 -0
- package/src/business/instance-lock.ts +58 -74
- package/src/business/instance-state.test.ts +15 -1
- package/src/business/instance-state.ts +37 -14
- package/src/business/object-ref-index.test.ts +140 -0
- package/src/business/object-ref-index.ts +193 -0
- package/src/business/operation.test.ts +15 -1
- package/src/business/operation.ts +4 -0
- package/src/business/project-model.ts +154 -13
- package/src/business/project-unlock.ts +25 -2
- package/src/business/project.ts +9 -0
- package/src/business/secret.test.ts +35 -2
- package/src/business/secret.ts +32 -9
- package/src/business/settings.ts +761 -0
- package/src/business/unit-output.test.ts +477 -0
- package/src/business/unit-output.ts +461 -0
- package/src/business/worker.ts +55 -4
- package/src/database/_generated/backend/postgresql/browser.ts +6 -0
- package/src/database/_generated/backend/postgresql/client.ts +6 -0
- package/src/database/_generated/backend/postgresql/internal/class.ts +23 -5
- package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +89 -5
- package/src/database/_generated/backend/postgresql/internal/prismaNamespaceBrowser.ts +9 -0
- package/src/database/_generated/backend/postgresql/models/Object.ts +1076 -0
- package/src/database/_generated/backend/postgresql/models.ts +1 -0
- package/src/database/_generated/backend/sqlite/browser.ts +6 -0
- package/src/database/_generated/backend/sqlite/client.ts +6 -0
- package/src/database/_generated/backend/sqlite/internal/class.ts +23 -5
- package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +89 -5
- package/src/database/_generated/backend/sqlite/internal/prismaNamespaceBrowser.ts +9 -0
- package/src/database/_generated/backend/sqlite/models/Object.ts +1074 -0
- package/src/database/_generated/backend/sqlite/models.ts +1 -0
- package/src/database/_generated/project/browser.ts +23 -0
- package/src/database/_generated/project/client.ts +23 -0
- package/src/database/_generated/project/commonInputTypes.ts +87 -53
- package/src/database/_generated/project/enums.ts +8 -0
- package/src/database/_generated/project/internal/class.ts +53 -5
- package/src/database/_generated/project/internal/prismaNamespace.ts +367 -13
- package/src/database/_generated/project/internal/prismaNamespaceBrowser.ts +48 -1
- package/src/database/_generated/project/models/Artifact.ts +199 -11
- package/src/database/_generated/project/models/Entity.ts +1274 -0
- package/src/database/_generated/project/models/EntitySnapshot.ts +2389 -0
- package/src/database/_generated/project/models/EntitySnapshotContent.ts +1260 -0
- package/src/database/_generated/project/models/EntitySnapshotReference.ts +1449 -0
- package/src/database/_generated/project/models/InstanceState.ts +361 -1
- package/src/database/_generated/project/models/Operation.ts +148 -3
- package/src/database/_generated/project/models/OperationLog.ts +0 -4
- package/src/database/_generated/project/models.ts +4 -0
- package/src/database/migration.ts +3 -0
- package/src/library/worker/evaluator.ts +7 -1
- package/src/orchestrator/manager.ts +7 -0
- package/src/orchestrator/operation-context.captured-outputs.test.ts +118 -0
- package/src/orchestrator/operation-context.ts +154 -16
- package/src/orchestrator/operation-plan.destroy.test.md +33 -12
- package/src/orchestrator/operation-plan.destroy.test.ts +140 -2
- package/src/orchestrator/operation-plan.fixtures.ts +2 -0
- package/src/orchestrator/operation-plan.md +4 -1
- package/src/orchestrator/operation-plan.ts +286 -92
- package/src/orchestrator/operation-plan.update.test.md +286 -11
- package/src/orchestrator/operation-plan.update.test.ts +656 -5
- package/src/orchestrator/operation-workset.ts +72 -22
- package/src/orchestrator/operation.cancel.test.ts +4 -0
- package/src/orchestrator/operation.composite.test.ts +341 -0
- package/src/orchestrator/operation.destroy.test.ts +4 -0
- package/src/orchestrator/operation.output-validation.failure.test.ts +124 -0
- package/src/orchestrator/operation.preview.test.ts +4 -0
- package/src/orchestrator/operation.refresh.test.ts +4 -0
- package/src/orchestrator/operation.test-utils.ts +52 -13
- package/src/orchestrator/operation.ts +228 -68
- package/src/orchestrator/operation.update.failure.test.ts +4 -0
- package/src/orchestrator/operation.update.skip.test.ts +110 -0
- package/src/orchestrator/operation.update.test.ts +4 -0
- package/src/orchestrator/plan-test-builder.ts +1 -0
- package/src/orchestrator/unit-input-values.test.ts +450 -0
- package/src/orchestrator/unit-input-values.ts +281 -0
- package/src/pubsub/manager.ts +3 -0
- package/src/runner/abstractions.ts +23 -54
- package/src/runner/local.ts +109 -85
- package/src/services.ts +52 -1
- package/src/shared/models/prisma.ts +1 -0
- package/src/shared/models/project/entity.ts +121 -0
- package/src/shared/models/project/index.ts +1 -0
- package/src/shared/models/project/operation.ts +61 -3
- package/src/shared/models/project/state.ts +10 -0
- package/src/shared/models/project/worker.ts +7 -0
- package/src/shared/resolvers/effective-output-type.test.ts +494 -0
- package/src/shared/resolvers/effective-output-type.ts +162 -0
- package/src/shared/resolvers/index.ts +1 -0
- package/src/shared/resolvers/input.ts +61 -9
- package/src/shared/utils/index.ts +1 -0
- package/src/shared/utils/stable-json.ts +41 -0
- package/src/terminal/manager.ts +6 -0
- package/src/worker/manager.ts +97 -1
- package/dist/chunk-JT4KWE3B.js.map +0 -1
|
@@ -80,12 +80,12 @@ export type PrismaVersion = {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Prisma Client JS version: 7.
|
|
84
|
-
* Query Engine version:
|
|
83
|
+
* Prisma Client JS version: 7.4.1
|
|
84
|
+
* Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
|
|
85
85
|
*/
|
|
86
86
|
export const prismaVersion: PrismaVersion = {
|
|
87
|
-
client: "7.
|
|
88
|
-
engine: "
|
|
87
|
+
client: "7.4.1",
|
|
88
|
+
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -387,6 +387,10 @@ export const ModelName = {
|
|
|
387
387
|
ApiKey: 'ApiKey',
|
|
388
388
|
Artifact: 'Artifact',
|
|
389
389
|
InstanceCustomStatus: 'InstanceCustomStatus',
|
|
390
|
+
Entity: 'Entity',
|
|
391
|
+
EntitySnapshot: 'EntitySnapshot',
|
|
392
|
+
EntitySnapshotReference: 'EntitySnapshotReference',
|
|
393
|
+
EntitySnapshotContent: 'EntitySnapshotContent',
|
|
390
394
|
InstanceEvaluationState: 'InstanceEvaluationState',
|
|
391
395
|
InstanceState: 'InstanceState',
|
|
392
396
|
UserProjectViewport: 'UserProjectViewport',
|
|
@@ -424,7 +428,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
424
428
|
omit: GlobalOmitOptions
|
|
425
429
|
}
|
|
426
430
|
meta: {
|
|
427
|
-
modelProps: "apiKey" | "artifact" | "instanceCustomStatus" | "instanceEvaluationState" | "instanceState" | "userProjectViewport" | "userCompositeViewport" | "instanceLock" | "instanceModel" | "hubModel" | "operation" | "instanceOperationState" | "operationLog" | "page" | "secret" | "serviceAccount" | "terminal" | "terminalSession" | "terminalSessionLog" | "trigger" | "unlockMethod" | "worker" | "workerVersion" | "workerUnitRegistration" | "workerVersionLog"
|
|
431
|
+
modelProps: "apiKey" | "artifact" | "instanceCustomStatus" | "entity" | "entitySnapshot" | "entitySnapshotReference" | "entitySnapshotContent" | "instanceEvaluationState" | "instanceState" | "userProjectViewport" | "userCompositeViewport" | "instanceLock" | "instanceModel" | "hubModel" | "operation" | "instanceOperationState" | "operationLog" | "page" | "secret" | "serviceAccount" | "terminal" | "terminalSession" | "terminalSessionLog" | "trigger" | "unlockMethod" | "worker" | "workerVersion" | "workerUnitRegistration" | "workerVersionLog"
|
|
428
432
|
txIsolationLevel: TransactionIsolationLevel
|
|
429
433
|
}
|
|
430
434
|
model: {
|
|
@@ -650,6 +654,302 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
650
654
|
}
|
|
651
655
|
}
|
|
652
656
|
}
|
|
657
|
+
Entity: {
|
|
658
|
+
payload: Prisma.$EntityPayload<ExtArgs>
|
|
659
|
+
fields: Prisma.EntityFieldRefs
|
|
660
|
+
operations: {
|
|
661
|
+
findUnique: {
|
|
662
|
+
args: Prisma.EntityFindUniqueArgs<ExtArgs>
|
|
663
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload> | null
|
|
664
|
+
}
|
|
665
|
+
findUniqueOrThrow: {
|
|
666
|
+
args: Prisma.EntityFindUniqueOrThrowArgs<ExtArgs>
|
|
667
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
668
|
+
}
|
|
669
|
+
findFirst: {
|
|
670
|
+
args: Prisma.EntityFindFirstArgs<ExtArgs>
|
|
671
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload> | null
|
|
672
|
+
}
|
|
673
|
+
findFirstOrThrow: {
|
|
674
|
+
args: Prisma.EntityFindFirstOrThrowArgs<ExtArgs>
|
|
675
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
676
|
+
}
|
|
677
|
+
findMany: {
|
|
678
|
+
args: Prisma.EntityFindManyArgs<ExtArgs>
|
|
679
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>[]
|
|
680
|
+
}
|
|
681
|
+
create: {
|
|
682
|
+
args: Prisma.EntityCreateArgs<ExtArgs>
|
|
683
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
684
|
+
}
|
|
685
|
+
createMany: {
|
|
686
|
+
args: Prisma.EntityCreateManyArgs<ExtArgs>
|
|
687
|
+
result: BatchPayload
|
|
688
|
+
}
|
|
689
|
+
createManyAndReturn: {
|
|
690
|
+
args: Prisma.EntityCreateManyAndReturnArgs<ExtArgs>
|
|
691
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>[]
|
|
692
|
+
}
|
|
693
|
+
delete: {
|
|
694
|
+
args: Prisma.EntityDeleteArgs<ExtArgs>
|
|
695
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
696
|
+
}
|
|
697
|
+
update: {
|
|
698
|
+
args: Prisma.EntityUpdateArgs<ExtArgs>
|
|
699
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
700
|
+
}
|
|
701
|
+
deleteMany: {
|
|
702
|
+
args: Prisma.EntityDeleteManyArgs<ExtArgs>
|
|
703
|
+
result: BatchPayload
|
|
704
|
+
}
|
|
705
|
+
updateMany: {
|
|
706
|
+
args: Prisma.EntityUpdateManyArgs<ExtArgs>
|
|
707
|
+
result: BatchPayload
|
|
708
|
+
}
|
|
709
|
+
updateManyAndReturn: {
|
|
710
|
+
args: Prisma.EntityUpdateManyAndReturnArgs<ExtArgs>
|
|
711
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>[]
|
|
712
|
+
}
|
|
713
|
+
upsert: {
|
|
714
|
+
args: Prisma.EntityUpsertArgs<ExtArgs>
|
|
715
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntityPayload>
|
|
716
|
+
}
|
|
717
|
+
aggregate: {
|
|
718
|
+
args: Prisma.EntityAggregateArgs<ExtArgs>
|
|
719
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEntity>
|
|
720
|
+
}
|
|
721
|
+
groupBy: {
|
|
722
|
+
args: Prisma.EntityGroupByArgs<ExtArgs>
|
|
723
|
+
result: runtime.Types.Utils.Optional<Prisma.EntityGroupByOutputType>[]
|
|
724
|
+
}
|
|
725
|
+
count: {
|
|
726
|
+
args: Prisma.EntityCountArgs<ExtArgs>
|
|
727
|
+
result: runtime.Types.Utils.Optional<Prisma.EntityCountAggregateOutputType> | number
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
EntitySnapshot: {
|
|
732
|
+
payload: Prisma.$EntitySnapshotPayload<ExtArgs>
|
|
733
|
+
fields: Prisma.EntitySnapshotFieldRefs
|
|
734
|
+
operations: {
|
|
735
|
+
findUnique: {
|
|
736
|
+
args: Prisma.EntitySnapshotFindUniqueArgs<ExtArgs>
|
|
737
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload> | null
|
|
738
|
+
}
|
|
739
|
+
findUniqueOrThrow: {
|
|
740
|
+
args: Prisma.EntitySnapshotFindUniqueOrThrowArgs<ExtArgs>
|
|
741
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
742
|
+
}
|
|
743
|
+
findFirst: {
|
|
744
|
+
args: Prisma.EntitySnapshotFindFirstArgs<ExtArgs>
|
|
745
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload> | null
|
|
746
|
+
}
|
|
747
|
+
findFirstOrThrow: {
|
|
748
|
+
args: Prisma.EntitySnapshotFindFirstOrThrowArgs<ExtArgs>
|
|
749
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
750
|
+
}
|
|
751
|
+
findMany: {
|
|
752
|
+
args: Prisma.EntitySnapshotFindManyArgs<ExtArgs>
|
|
753
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>[]
|
|
754
|
+
}
|
|
755
|
+
create: {
|
|
756
|
+
args: Prisma.EntitySnapshotCreateArgs<ExtArgs>
|
|
757
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
758
|
+
}
|
|
759
|
+
createMany: {
|
|
760
|
+
args: Prisma.EntitySnapshotCreateManyArgs<ExtArgs>
|
|
761
|
+
result: BatchPayload
|
|
762
|
+
}
|
|
763
|
+
createManyAndReturn: {
|
|
764
|
+
args: Prisma.EntitySnapshotCreateManyAndReturnArgs<ExtArgs>
|
|
765
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>[]
|
|
766
|
+
}
|
|
767
|
+
delete: {
|
|
768
|
+
args: Prisma.EntitySnapshotDeleteArgs<ExtArgs>
|
|
769
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
770
|
+
}
|
|
771
|
+
update: {
|
|
772
|
+
args: Prisma.EntitySnapshotUpdateArgs<ExtArgs>
|
|
773
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
774
|
+
}
|
|
775
|
+
deleteMany: {
|
|
776
|
+
args: Prisma.EntitySnapshotDeleteManyArgs<ExtArgs>
|
|
777
|
+
result: BatchPayload
|
|
778
|
+
}
|
|
779
|
+
updateMany: {
|
|
780
|
+
args: Prisma.EntitySnapshotUpdateManyArgs<ExtArgs>
|
|
781
|
+
result: BatchPayload
|
|
782
|
+
}
|
|
783
|
+
updateManyAndReturn: {
|
|
784
|
+
args: Prisma.EntitySnapshotUpdateManyAndReturnArgs<ExtArgs>
|
|
785
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>[]
|
|
786
|
+
}
|
|
787
|
+
upsert: {
|
|
788
|
+
args: Prisma.EntitySnapshotUpsertArgs<ExtArgs>
|
|
789
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotPayload>
|
|
790
|
+
}
|
|
791
|
+
aggregate: {
|
|
792
|
+
args: Prisma.EntitySnapshotAggregateArgs<ExtArgs>
|
|
793
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEntitySnapshot>
|
|
794
|
+
}
|
|
795
|
+
groupBy: {
|
|
796
|
+
args: Prisma.EntitySnapshotGroupByArgs<ExtArgs>
|
|
797
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotGroupByOutputType>[]
|
|
798
|
+
}
|
|
799
|
+
count: {
|
|
800
|
+
args: Prisma.EntitySnapshotCountArgs<ExtArgs>
|
|
801
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotCountAggregateOutputType> | number
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
EntitySnapshotReference: {
|
|
806
|
+
payload: Prisma.$EntitySnapshotReferencePayload<ExtArgs>
|
|
807
|
+
fields: Prisma.EntitySnapshotReferenceFieldRefs
|
|
808
|
+
operations: {
|
|
809
|
+
findUnique: {
|
|
810
|
+
args: Prisma.EntitySnapshotReferenceFindUniqueArgs<ExtArgs>
|
|
811
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload> | null
|
|
812
|
+
}
|
|
813
|
+
findUniqueOrThrow: {
|
|
814
|
+
args: Prisma.EntitySnapshotReferenceFindUniqueOrThrowArgs<ExtArgs>
|
|
815
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
816
|
+
}
|
|
817
|
+
findFirst: {
|
|
818
|
+
args: Prisma.EntitySnapshotReferenceFindFirstArgs<ExtArgs>
|
|
819
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload> | null
|
|
820
|
+
}
|
|
821
|
+
findFirstOrThrow: {
|
|
822
|
+
args: Prisma.EntitySnapshotReferenceFindFirstOrThrowArgs<ExtArgs>
|
|
823
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
824
|
+
}
|
|
825
|
+
findMany: {
|
|
826
|
+
args: Prisma.EntitySnapshotReferenceFindManyArgs<ExtArgs>
|
|
827
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>[]
|
|
828
|
+
}
|
|
829
|
+
create: {
|
|
830
|
+
args: Prisma.EntitySnapshotReferenceCreateArgs<ExtArgs>
|
|
831
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
832
|
+
}
|
|
833
|
+
createMany: {
|
|
834
|
+
args: Prisma.EntitySnapshotReferenceCreateManyArgs<ExtArgs>
|
|
835
|
+
result: BatchPayload
|
|
836
|
+
}
|
|
837
|
+
createManyAndReturn: {
|
|
838
|
+
args: Prisma.EntitySnapshotReferenceCreateManyAndReturnArgs<ExtArgs>
|
|
839
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>[]
|
|
840
|
+
}
|
|
841
|
+
delete: {
|
|
842
|
+
args: Prisma.EntitySnapshotReferenceDeleteArgs<ExtArgs>
|
|
843
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
844
|
+
}
|
|
845
|
+
update: {
|
|
846
|
+
args: Prisma.EntitySnapshotReferenceUpdateArgs<ExtArgs>
|
|
847
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
848
|
+
}
|
|
849
|
+
deleteMany: {
|
|
850
|
+
args: Prisma.EntitySnapshotReferenceDeleteManyArgs<ExtArgs>
|
|
851
|
+
result: BatchPayload
|
|
852
|
+
}
|
|
853
|
+
updateMany: {
|
|
854
|
+
args: Prisma.EntitySnapshotReferenceUpdateManyArgs<ExtArgs>
|
|
855
|
+
result: BatchPayload
|
|
856
|
+
}
|
|
857
|
+
updateManyAndReturn: {
|
|
858
|
+
args: Prisma.EntitySnapshotReferenceUpdateManyAndReturnArgs<ExtArgs>
|
|
859
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>[]
|
|
860
|
+
}
|
|
861
|
+
upsert: {
|
|
862
|
+
args: Prisma.EntitySnapshotReferenceUpsertArgs<ExtArgs>
|
|
863
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotReferencePayload>
|
|
864
|
+
}
|
|
865
|
+
aggregate: {
|
|
866
|
+
args: Prisma.EntitySnapshotReferenceAggregateArgs<ExtArgs>
|
|
867
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEntitySnapshotReference>
|
|
868
|
+
}
|
|
869
|
+
groupBy: {
|
|
870
|
+
args: Prisma.EntitySnapshotReferenceGroupByArgs<ExtArgs>
|
|
871
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotReferenceGroupByOutputType>[]
|
|
872
|
+
}
|
|
873
|
+
count: {
|
|
874
|
+
args: Prisma.EntitySnapshotReferenceCountArgs<ExtArgs>
|
|
875
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotReferenceCountAggregateOutputType> | number
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
EntitySnapshotContent: {
|
|
880
|
+
payload: Prisma.$EntitySnapshotContentPayload<ExtArgs>
|
|
881
|
+
fields: Prisma.EntitySnapshotContentFieldRefs
|
|
882
|
+
operations: {
|
|
883
|
+
findUnique: {
|
|
884
|
+
args: Prisma.EntitySnapshotContentFindUniqueArgs<ExtArgs>
|
|
885
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload> | null
|
|
886
|
+
}
|
|
887
|
+
findUniqueOrThrow: {
|
|
888
|
+
args: Prisma.EntitySnapshotContentFindUniqueOrThrowArgs<ExtArgs>
|
|
889
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
890
|
+
}
|
|
891
|
+
findFirst: {
|
|
892
|
+
args: Prisma.EntitySnapshotContentFindFirstArgs<ExtArgs>
|
|
893
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload> | null
|
|
894
|
+
}
|
|
895
|
+
findFirstOrThrow: {
|
|
896
|
+
args: Prisma.EntitySnapshotContentFindFirstOrThrowArgs<ExtArgs>
|
|
897
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
898
|
+
}
|
|
899
|
+
findMany: {
|
|
900
|
+
args: Prisma.EntitySnapshotContentFindManyArgs<ExtArgs>
|
|
901
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>[]
|
|
902
|
+
}
|
|
903
|
+
create: {
|
|
904
|
+
args: Prisma.EntitySnapshotContentCreateArgs<ExtArgs>
|
|
905
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
906
|
+
}
|
|
907
|
+
createMany: {
|
|
908
|
+
args: Prisma.EntitySnapshotContentCreateManyArgs<ExtArgs>
|
|
909
|
+
result: BatchPayload
|
|
910
|
+
}
|
|
911
|
+
createManyAndReturn: {
|
|
912
|
+
args: Prisma.EntitySnapshotContentCreateManyAndReturnArgs<ExtArgs>
|
|
913
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>[]
|
|
914
|
+
}
|
|
915
|
+
delete: {
|
|
916
|
+
args: Prisma.EntitySnapshotContentDeleteArgs<ExtArgs>
|
|
917
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
918
|
+
}
|
|
919
|
+
update: {
|
|
920
|
+
args: Prisma.EntitySnapshotContentUpdateArgs<ExtArgs>
|
|
921
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
922
|
+
}
|
|
923
|
+
deleteMany: {
|
|
924
|
+
args: Prisma.EntitySnapshotContentDeleteManyArgs<ExtArgs>
|
|
925
|
+
result: BatchPayload
|
|
926
|
+
}
|
|
927
|
+
updateMany: {
|
|
928
|
+
args: Prisma.EntitySnapshotContentUpdateManyArgs<ExtArgs>
|
|
929
|
+
result: BatchPayload
|
|
930
|
+
}
|
|
931
|
+
updateManyAndReturn: {
|
|
932
|
+
args: Prisma.EntitySnapshotContentUpdateManyAndReturnArgs<ExtArgs>
|
|
933
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>[]
|
|
934
|
+
}
|
|
935
|
+
upsert: {
|
|
936
|
+
args: Prisma.EntitySnapshotContentUpsertArgs<ExtArgs>
|
|
937
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EntitySnapshotContentPayload>
|
|
938
|
+
}
|
|
939
|
+
aggregate: {
|
|
940
|
+
args: Prisma.EntitySnapshotContentAggregateArgs<ExtArgs>
|
|
941
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEntitySnapshotContent>
|
|
942
|
+
}
|
|
943
|
+
groupBy: {
|
|
944
|
+
args: Prisma.EntitySnapshotContentGroupByArgs<ExtArgs>
|
|
945
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotContentGroupByOutputType>[]
|
|
946
|
+
}
|
|
947
|
+
count: {
|
|
948
|
+
args: Prisma.EntitySnapshotContentCountArgs<ExtArgs>
|
|
949
|
+
result: runtime.Types.Utils.Optional<Prisma.EntitySnapshotContentCountAggregateOutputType> | number
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
653
953
|
InstanceEvaluationState: {
|
|
654
954
|
payload: Prisma.$InstanceEvaluationStatePayload<ExtArgs>
|
|
655
955
|
fields: Prisma.InstanceEvaluationStateFieldRefs
|
|
@@ -2354,6 +2654,48 @@ export const InstanceCustomStatusScalarFieldEnum = {
|
|
|
2354
2654
|
export type InstanceCustomStatusScalarFieldEnum = (typeof InstanceCustomStatusScalarFieldEnum)[keyof typeof InstanceCustomStatusScalarFieldEnum]
|
|
2355
2655
|
|
|
2356
2656
|
|
|
2657
|
+
export const EntityScalarFieldEnum = {
|
|
2658
|
+
id: 'id',
|
|
2659
|
+
type: 'type',
|
|
2660
|
+
identity: 'identity'
|
|
2661
|
+
} as const
|
|
2662
|
+
|
|
2663
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
export const EntitySnapshotScalarFieldEnum = {
|
|
2667
|
+
id: 'id',
|
|
2668
|
+
contentHash: 'contentHash',
|
|
2669
|
+
entityId: 'entityId',
|
|
2670
|
+
operationId: 'operationId',
|
|
2671
|
+
stateId: 'stateId',
|
|
2672
|
+
referencedInOutputs: 'referencedInOutputs',
|
|
2673
|
+
exportedInOutputs: 'exportedInOutputs',
|
|
2674
|
+
createdAt: 'createdAt'
|
|
2675
|
+
} as const
|
|
2676
|
+
|
|
2677
|
+
export type EntitySnapshotScalarFieldEnum = (typeof EntitySnapshotScalarFieldEnum)[keyof typeof EntitySnapshotScalarFieldEnum]
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
export const EntitySnapshotReferenceScalarFieldEnum = {
|
|
2681
|
+
fromId: 'fromId',
|
|
2682
|
+
toId: 'toId',
|
|
2683
|
+
kind: 'kind',
|
|
2684
|
+
group: 'group'
|
|
2685
|
+
} as const
|
|
2686
|
+
|
|
2687
|
+
export type EntitySnapshotReferenceScalarFieldEnum = (typeof EntitySnapshotReferenceScalarFieldEnum)[keyof typeof EntitySnapshotReferenceScalarFieldEnum]
|
|
2688
|
+
|
|
2689
|
+
|
|
2690
|
+
export const EntitySnapshotContentScalarFieldEnum = {
|
|
2691
|
+
hash: 'hash',
|
|
2692
|
+
meta: 'meta',
|
|
2693
|
+
content: 'content'
|
|
2694
|
+
} as const
|
|
2695
|
+
|
|
2696
|
+
export type EntitySnapshotContentScalarFieldEnum = (typeof EntitySnapshotContentScalarFieldEnum)[keyof typeof EntitySnapshotContentScalarFieldEnum]
|
|
2697
|
+
|
|
2698
|
+
|
|
2357
2699
|
export const InstanceEvaluationStateScalarFieldEnum = {
|
|
2358
2700
|
stateId: 'stateId',
|
|
2359
2701
|
status: 'status',
|
|
@@ -2381,7 +2723,8 @@ export const InstanceStateScalarFieldEnum = {
|
|
|
2381
2723
|
model: 'model',
|
|
2382
2724
|
resolvedInputs: 'resolvedInputs',
|
|
2383
2725
|
currentResourceCount: 'currentResourceCount',
|
|
2384
|
-
statusFields: 'statusFields'
|
|
2726
|
+
statusFields: 'statusFields',
|
|
2727
|
+
hasResourceHooks: 'hasResourceHooks'
|
|
2385
2728
|
} as const
|
|
2386
2729
|
|
|
2387
2730
|
export type InstanceStateScalarFieldEnum = (typeof InstanceStateScalarFieldEnum)[keyof typeof InstanceStateScalarFieldEnum]
|
|
@@ -2712,6 +3055,13 @@ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'In
|
|
|
2712
3055
|
|
|
2713
3056
|
|
|
2714
3057
|
|
|
3058
|
+
/**
|
|
3059
|
+
* Reference to a field of type 'EntityReferenceKind'
|
|
3060
|
+
*/
|
|
3061
|
+
export type EnumEntityReferenceKindFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EntityReferenceKind'>
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
2715
3065
|
/**
|
|
2716
3066
|
* Reference to a field of type 'InstanceEvaluationStatus'
|
|
2717
3067
|
*/
|
|
@@ -2733,6 +3083,13 @@ export type EnumInstanceSourceFieldRefInput<$PrismaModel> = FieldRefInputType<$P
|
|
|
2733
3083
|
|
|
2734
3084
|
|
|
2735
3085
|
|
|
3086
|
+
/**
|
|
3087
|
+
* Reference to a field of type 'Boolean'
|
|
3088
|
+
*/
|
|
3089
|
+
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
|
|
2736
3093
|
/**
|
|
2737
3094
|
* Reference to a field of type 'OperationType'
|
|
2738
3095
|
*/
|
|
@@ -2754,13 +3111,6 @@ export type EnumInstanceOperationStatusFieldRefInput<$PrismaModel> = FieldRefInp
|
|
|
2754
3111
|
|
|
2755
3112
|
|
|
2756
3113
|
|
|
2757
|
-
/**
|
|
2758
|
-
* Reference to a field of type 'Boolean'
|
|
2759
|
-
*/
|
|
2760
|
-
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
3114
|
/**
|
|
2765
3115
|
* Reference to a field of type 'TerminalStatus'
|
|
2766
3116
|
*/
|
|
@@ -2886,6 +3236,10 @@ export type GlobalOmitConfig = {
|
|
|
2886
3236
|
apiKey?: Prisma.ApiKeyOmit
|
|
2887
3237
|
artifact?: Prisma.ArtifactOmit
|
|
2888
3238
|
instanceCustomStatus?: Prisma.InstanceCustomStatusOmit
|
|
3239
|
+
entity?: Prisma.EntityOmit
|
|
3240
|
+
entitySnapshot?: Prisma.EntitySnapshotOmit
|
|
3241
|
+
entitySnapshotReference?: Prisma.EntitySnapshotReferenceOmit
|
|
3242
|
+
entitySnapshotContent?: Prisma.EntitySnapshotContentOmit
|
|
2889
3243
|
instanceEvaluationState?: Prisma.InstanceEvaluationStateOmit
|
|
2890
3244
|
instanceState?: Prisma.InstanceStateOmit
|
|
2891
3245
|
userProjectViewport?: Prisma.UserProjectViewportOmit
|
|
@@ -54,6 +54,10 @@ export const ModelName = {
|
|
|
54
54
|
ApiKey: 'ApiKey',
|
|
55
55
|
Artifact: 'Artifact',
|
|
56
56
|
InstanceCustomStatus: 'InstanceCustomStatus',
|
|
57
|
+
Entity: 'Entity',
|
|
58
|
+
EntitySnapshot: 'EntitySnapshot',
|
|
59
|
+
EntitySnapshotReference: 'EntitySnapshotReference',
|
|
60
|
+
EntitySnapshotContent: 'EntitySnapshotContent',
|
|
57
61
|
InstanceEvaluationState: 'InstanceEvaluationState',
|
|
58
62
|
InstanceState: 'InstanceState',
|
|
59
63
|
UserProjectViewport: 'UserProjectViewport',
|
|
@@ -131,6 +135,48 @@ export const InstanceCustomStatusScalarFieldEnum = {
|
|
|
131
135
|
export type InstanceCustomStatusScalarFieldEnum = (typeof InstanceCustomStatusScalarFieldEnum)[keyof typeof InstanceCustomStatusScalarFieldEnum]
|
|
132
136
|
|
|
133
137
|
|
|
138
|
+
export const EntityScalarFieldEnum = {
|
|
139
|
+
id: 'id',
|
|
140
|
+
type: 'type',
|
|
141
|
+
identity: 'identity'
|
|
142
|
+
} as const
|
|
143
|
+
|
|
144
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
export const EntitySnapshotScalarFieldEnum = {
|
|
148
|
+
id: 'id',
|
|
149
|
+
contentHash: 'contentHash',
|
|
150
|
+
entityId: 'entityId',
|
|
151
|
+
operationId: 'operationId',
|
|
152
|
+
stateId: 'stateId',
|
|
153
|
+
referencedInOutputs: 'referencedInOutputs',
|
|
154
|
+
exportedInOutputs: 'exportedInOutputs',
|
|
155
|
+
createdAt: 'createdAt'
|
|
156
|
+
} as const
|
|
157
|
+
|
|
158
|
+
export type EntitySnapshotScalarFieldEnum = (typeof EntitySnapshotScalarFieldEnum)[keyof typeof EntitySnapshotScalarFieldEnum]
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
export const EntitySnapshotReferenceScalarFieldEnum = {
|
|
162
|
+
fromId: 'fromId',
|
|
163
|
+
toId: 'toId',
|
|
164
|
+
kind: 'kind',
|
|
165
|
+
group: 'group'
|
|
166
|
+
} as const
|
|
167
|
+
|
|
168
|
+
export type EntitySnapshotReferenceScalarFieldEnum = (typeof EntitySnapshotReferenceScalarFieldEnum)[keyof typeof EntitySnapshotReferenceScalarFieldEnum]
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
export const EntitySnapshotContentScalarFieldEnum = {
|
|
172
|
+
hash: 'hash',
|
|
173
|
+
meta: 'meta',
|
|
174
|
+
content: 'content'
|
|
175
|
+
} as const
|
|
176
|
+
|
|
177
|
+
export type EntitySnapshotContentScalarFieldEnum = (typeof EntitySnapshotContentScalarFieldEnum)[keyof typeof EntitySnapshotContentScalarFieldEnum]
|
|
178
|
+
|
|
179
|
+
|
|
134
180
|
export const InstanceEvaluationStateScalarFieldEnum = {
|
|
135
181
|
stateId: 'stateId',
|
|
136
182
|
status: 'status',
|
|
@@ -158,7 +204,8 @@ export const InstanceStateScalarFieldEnum = {
|
|
|
158
204
|
model: 'model',
|
|
159
205
|
resolvedInputs: 'resolvedInputs',
|
|
160
206
|
currentResourceCount: 'currentResourceCount',
|
|
161
|
-
statusFields: 'statusFields'
|
|
207
|
+
statusFields: 'statusFields',
|
|
208
|
+
hasResourceHooks: 'hasResourceHooks'
|
|
162
209
|
} as const
|
|
163
210
|
|
|
164
211
|
export type InstanceStateScalarFieldEnum = (typeof InstanceStateScalarFieldEnum)[keyof typeof InstanceStateScalarFieldEnum]
|