@skenion/contracts 0.35.0 → 0.37.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/generated/schemas.d.ts +1085 -0
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +1361 -0
- package/dist/generated/schemas.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/runtimeHttp.d.ts +5 -1
- package/dist/runtimeHttp.d.ts.map +1 -1
- package/dist/runtimeHttp.js +281 -21
- package/dist/runtimeHttp.js.map +1 -1
- package/dist/types.d.ts +207 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +8 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +163 -1
- package/dist/validate.js.map +1 -1
- package/package.json +13 -1
|
@@ -511,6 +511,107 @@ export declare const graphV02Schema: {
|
|
|
511
511
|
};
|
|
512
512
|
};
|
|
513
513
|
};
|
|
514
|
+
export declare const graphFragmentV02Schema: {
|
|
515
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
516
|
+
readonly $id: "https://skenion.dev/schemas/graph/v0.2/fragment.schema.json";
|
|
517
|
+
readonly title: "Skenion Graph Fragment v0.2";
|
|
518
|
+
readonly type: "object";
|
|
519
|
+
readonly required: readonly ["schema", "schemaVersion", "nodes", "edges"];
|
|
520
|
+
readonly properties: {
|
|
521
|
+
readonly schema: {
|
|
522
|
+
readonly const: "skenion.graph.fragment";
|
|
523
|
+
};
|
|
524
|
+
readonly schemaVersion: {
|
|
525
|
+
readonly const: "0.2.0";
|
|
526
|
+
};
|
|
527
|
+
readonly id: {
|
|
528
|
+
readonly type: "string";
|
|
529
|
+
readonly minLength: 1;
|
|
530
|
+
};
|
|
531
|
+
readonly nodes: {
|
|
532
|
+
readonly type: "array";
|
|
533
|
+
readonly items: {
|
|
534
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.2/graph.schema.json#/$defs/node";
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
readonly edges: {
|
|
538
|
+
readonly type: "array";
|
|
539
|
+
readonly items: {
|
|
540
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.2/graph.schema.json#/$defs/edge";
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
readonly view: {
|
|
544
|
+
readonly $ref: "#/$defs/fragmentView";
|
|
545
|
+
};
|
|
546
|
+
readonly omittedEdges: {
|
|
547
|
+
readonly type: "array";
|
|
548
|
+
readonly items: {
|
|
549
|
+
readonly $ref: "#/$defs/omittedEdge";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly metadata: {
|
|
553
|
+
readonly type: "object";
|
|
554
|
+
readonly additionalProperties: true;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
readonly additionalProperties: false;
|
|
558
|
+
readonly $defs: {
|
|
559
|
+
readonly fragmentView: {
|
|
560
|
+
readonly type: "object";
|
|
561
|
+
readonly properties: {
|
|
562
|
+
readonly nodes: {
|
|
563
|
+
readonly type: "object";
|
|
564
|
+
readonly additionalProperties: {
|
|
565
|
+
readonly $ref: "#/$defs/nodeView";
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly additionalProperties: false;
|
|
570
|
+
};
|
|
571
|
+
readonly nodeView: {
|
|
572
|
+
readonly type: "object";
|
|
573
|
+
readonly required: readonly ["x", "y"];
|
|
574
|
+
readonly properties: {
|
|
575
|
+
readonly x: {
|
|
576
|
+
readonly type: "number";
|
|
577
|
+
};
|
|
578
|
+
readonly y: {
|
|
579
|
+
readonly type: "number";
|
|
580
|
+
};
|
|
581
|
+
readonly width: {
|
|
582
|
+
readonly type: "number";
|
|
583
|
+
};
|
|
584
|
+
readonly height: {
|
|
585
|
+
readonly type: "number";
|
|
586
|
+
};
|
|
587
|
+
readonly collapsed: {
|
|
588
|
+
readonly type: "boolean";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly additionalProperties: false;
|
|
592
|
+
};
|
|
593
|
+
readonly omittedEdge: {
|
|
594
|
+
readonly type: "object";
|
|
595
|
+
readonly required: readonly ["id", "source", "target", "reason"];
|
|
596
|
+
readonly properties: {
|
|
597
|
+
readonly id: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
readonly minLength: 1;
|
|
600
|
+
};
|
|
601
|
+
readonly source: {
|
|
602
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.2/graph.schema.json#/$defs/portEndpoint";
|
|
603
|
+
};
|
|
604
|
+
readonly target: {
|
|
605
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.2/graph.schema.json#/$defs/portEndpoint";
|
|
606
|
+
};
|
|
607
|
+
readonly reason: {
|
|
608
|
+
readonly enum: readonly ["outside-fragment", "policy-omit"];
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
readonly additionalProperties: false;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
};
|
|
514
615
|
export declare const viewStateV01Schema: {
|
|
515
616
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
516
617
|
readonly $id: "https://skenion.dev/schemas/view/v0.1/view-state.schema.json";
|
|
@@ -733,6 +834,990 @@ export declare const projectV02Schema: {
|
|
|
733
834
|
};
|
|
734
835
|
};
|
|
735
836
|
};
|
|
837
|
+
export declare const runtimeOperationV0Schema: {
|
|
838
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
839
|
+
readonly $id: "https://skenion.dev/schemas/runtime/v0/operation.schema.json";
|
|
840
|
+
readonly title: "Skenion Runtime Operation Envelope v0";
|
|
841
|
+
readonly type: "object";
|
|
842
|
+
readonly required: readonly ["schema", "schemaVersion", "id", "kind", "request"];
|
|
843
|
+
readonly properties: {
|
|
844
|
+
readonly schema: {
|
|
845
|
+
readonly const: "skenion.runtime.operation";
|
|
846
|
+
};
|
|
847
|
+
readonly schemaVersion: {
|
|
848
|
+
readonly const: "0.1.0";
|
|
849
|
+
};
|
|
850
|
+
readonly id: {
|
|
851
|
+
readonly type: "string";
|
|
852
|
+
readonly minLength: 1;
|
|
853
|
+
};
|
|
854
|
+
readonly kind: {
|
|
855
|
+
readonly const: "pasteGraphFragment";
|
|
856
|
+
};
|
|
857
|
+
readonly request: {
|
|
858
|
+
readonly $ref: "#/$defs/pasteGraphFragmentRequest";
|
|
859
|
+
};
|
|
860
|
+
readonly attribution: {
|
|
861
|
+
readonly $ref: "#/$defs/runtimeOperationAttribution";
|
|
862
|
+
};
|
|
863
|
+
readonly correlationId: {
|
|
864
|
+
readonly type: "string";
|
|
865
|
+
readonly minLength: 1;
|
|
866
|
+
};
|
|
867
|
+
readonly createdAt: {
|
|
868
|
+
readonly type: "string";
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly additionalProperties: false;
|
|
872
|
+
readonly $defs: {
|
|
873
|
+
readonly patchPath: {
|
|
874
|
+
readonly oneOf: readonly [{
|
|
875
|
+
readonly type: "object";
|
|
876
|
+
readonly required: readonly ["kind"];
|
|
877
|
+
readonly properties: {
|
|
878
|
+
readonly kind: {
|
|
879
|
+
readonly const: "root";
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
readonly additionalProperties: false;
|
|
883
|
+
}, {
|
|
884
|
+
readonly type: "object";
|
|
885
|
+
readonly required: readonly ["kind", "patchId"];
|
|
886
|
+
readonly properties: {
|
|
887
|
+
readonly kind: {
|
|
888
|
+
readonly const: "project-patch-definition";
|
|
889
|
+
};
|
|
890
|
+
readonly patchId: {
|
|
891
|
+
readonly type: "string";
|
|
892
|
+
readonly minLength: 1;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
readonly additionalProperties: false;
|
|
896
|
+
}, {
|
|
897
|
+
readonly type: "object";
|
|
898
|
+
readonly required: readonly ["kind", "packageId", "patchId"];
|
|
899
|
+
readonly properties: {
|
|
900
|
+
readonly kind: {
|
|
901
|
+
readonly const: "package-patch-definition";
|
|
902
|
+
};
|
|
903
|
+
readonly packageId: {
|
|
904
|
+
readonly type: "string";
|
|
905
|
+
readonly minLength: 1;
|
|
906
|
+
};
|
|
907
|
+
readonly patchId: {
|
|
908
|
+
readonly type: "string";
|
|
909
|
+
readonly minLength: 1;
|
|
910
|
+
};
|
|
911
|
+
readonly version: {
|
|
912
|
+
readonly type: "string";
|
|
913
|
+
readonly minLength: 1;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly additionalProperties: false;
|
|
917
|
+
}, {
|
|
918
|
+
readonly type: "object";
|
|
919
|
+
readonly required: readonly ["kind", "ownerPath", "nodeId"];
|
|
920
|
+
readonly properties: {
|
|
921
|
+
readonly kind: {
|
|
922
|
+
readonly const: "embedded-patch-instance";
|
|
923
|
+
};
|
|
924
|
+
readonly ownerPath: {
|
|
925
|
+
readonly type: "array";
|
|
926
|
+
readonly items: {
|
|
927
|
+
readonly type: "string";
|
|
928
|
+
readonly minLength: 1;
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
readonly nodeId: {
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
readonly minLength: 1;
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
readonly additionalProperties: false;
|
|
937
|
+
}, {
|
|
938
|
+
readonly type: "object";
|
|
939
|
+
readonly required: readonly ["kind", "workingCopyId"];
|
|
940
|
+
readonly properties: {
|
|
941
|
+
readonly kind: {
|
|
942
|
+
readonly const: "help-working-copy";
|
|
943
|
+
};
|
|
944
|
+
readonly workingCopyId: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
readonly minLength: 1;
|
|
947
|
+
};
|
|
948
|
+
readonly sourcePackageId: {
|
|
949
|
+
readonly type: "string";
|
|
950
|
+
readonly minLength: 1;
|
|
951
|
+
};
|
|
952
|
+
readonly sourcePatchId: {
|
|
953
|
+
readonly type: "string";
|
|
954
|
+
readonly minLength: 1;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly additionalProperties: false;
|
|
958
|
+
}];
|
|
959
|
+
};
|
|
960
|
+
readonly graphTargetRef: {
|
|
961
|
+
readonly type: "object";
|
|
962
|
+
readonly required: readonly ["path", "baseRevision"];
|
|
963
|
+
readonly properties: {
|
|
964
|
+
readonly path: {
|
|
965
|
+
readonly $ref: "#/$defs/patchPath";
|
|
966
|
+
};
|
|
967
|
+
readonly baseRevision: {
|
|
968
|
+
readonly type: "string";
|
|
969
|
+
readonly minLength: 1;
|
|
970
|
+
};
|
|
971
|
+
readonly targetRevision: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
readonly minLength: 1;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
readonly additionalProperties: false;
|
|
977
|
+
};
|
|
978
|
+
readonly pastePlacement: {
|
|
979
|
+
readonly oneOf: readonly [{
|
|
980
|
+
readonly type: "object";
|
|
981
|
+
readonly required: readonly ["kind", "x", "y"];
|
|
982
|
+
readonly properties: {
|
|
983
|
+
readonly kind: {
|
|
984
|
+
readonly const: "position";
|
|
985
|
+
};
|
|
986
|
+
readonly x: {
|
|
987
|
+
readonly type: "number";
|
|
988
|
+
};
|
|
989
|
+
readonly y: {
|
|
990
|
+
readonly type: "number";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
readonly additionalProperties: false;
|
|
994
|
+
}, {
|
|
995
|
+
readonly type: "object";
|
|
996
|
+
readonly required: readonly ["kind", "nodeId"];
|
|
997
|
+
readonly properties: {
|
|
998
|
+
readonly kind: {
|
|
999
|
+
readonly const: "anchor";
|
|
1000
|
+
};
|
|
1001
|
+
readonly nodeId: {
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
readonly minLength: 1;
|
|
1004
|
+
};
|
|
1005
|
+
readonly offsetX: {
|
|
1006
|
+
readonly type: "number";
|
|
1007
|
+
};
|
|
1008
|
+
readonly offsetY: {
|
|
1009
|
+
readonly type: "number";
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
readonly additionalProperties: false;
|
|
1013
|
+
}];
|
|
1014
|
+
};
|
|
1015
|
+
readonly pasteGraphFragmentOptions: {
|
|
1016
|
+
readonly type: "object";
|
|
1017
|
+
readonly properties: {
|
|
1018
|
+
readonly outsideEndpointPolicy: {
|
|
1019
|
+
readonly enum: readonly ["reject", "omit"];
|
|
1020
|
+
readonly default: "reject";
|
|
1021
|
+
};
|
|
1022
|
+
readonly idConflictPolicy: {
|
|
1023
|
+
readonly enum: readonly ["remap", "reject"];
|
|
1024
|
+
readonly default: "remap";
|
|
1025
|
+
};
|
|
1026
|
+
readonly preserveRelativePositions: {
|
|
1027
|
+
readonly type: "boolean";
|
|
1028
|
+
readonly default: true;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
readonly additionalProperties: false;
|
|
1032
|
+
};
|
|
1033
|
+
readonly pasteGraphFragmentRequest: {
|
|
1034
|
+
readonly type: "object";
|
|
1035
|
+
readonly required: readonly ["target", "fragment"];
|
|
1036
|
+
readonly properties: {
|
|
1037
|
+
readonly target: {
|
|
1038
|
+
readonly $ref: "#/$defs/graphTargetRef";
|
|
1039
|
+
};
|
|
1040
|
+
readonly fragment: {
|
|
1041
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.2/fragment.schema.json";
|
|
1042
|
+
};
|
|
1043
|
+
readonly placement: {
|
|
1044
|
+
readonly $ref: "#/$defs/pastePlacement";
|
|
1045
|
+
};
|
|
1046
|
+
readonly options: {
|
|
1047
|
+
readonly $ref: "#/$defs/pasteGraphFragmentOptions";
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
readonly additionalProperties: false;
|
|
1051
|
+
};
|
|
1052
|
+
readonly runtimeOperationAttribution: {
|
|
1053
|
+
readonly type: "object";
|
|
1054
|
+
readonly properties: {
|
|
1055
|
+
readonly actorId: {
|
|
1056
|
+
readonly type: "string";
|
|
1057
|
+
readonly minLength: 1;
|
|
1058
|
+
};
|
|
1059
|
+
readonly clientId: {
|
|
1060
|
+
readonly type: "string";
|
|
1061
|
+
readonly minLength: 1;
|
|
1062
|
+
};
|
|
1063
|
+
readonly label: {
|
|
1064
|
+
readonly type: "string";
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
readonly additionalProperties: false;
|
|
1068
|
+
};
|
|
1069
|
+
readonly idRemapResult: {
|
|
1070
|
+
readonly type: "object";
|
|
1071
|
+
readonly required: readonly ["nodeIdMap", "edgeIdMap", "omittedEdgeIds"];
|
|
1072
|
+
readonly properties: {
|
|
1073
|
+
readonly nodeIdMap: {
|
|
1074
|
+
readonly type: "object";
|
|
1075
|
+
readonly additionalProperties: {
|
|
1076
|
+
readonly type: "string";
|
|
1077
|
+
readonly minLength: 1;
|
|
1078
|
+
};
|
|
1079
|
+
};
|
|
1080
|
+
readonly edgeIdMap: {
|
|
1081
|
+
readonly type: "object";
|
|
1082
|
+
readonly additionalProperties: {
|
|
1083
|
+
readonly type: "string";
|
|
1084
|
+
readonly minLength: 1;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
readonly omittedEdgeIds: {
|
|
1088
|
+
readonly type: "array";
|
|
1089
|
+
readonly items: {
|
|
1090
|
+
readonly type: "string";
|
|
1091
|
+
readonly minLength: 1;
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
};
|
|
1095
|
+
readonly additionalProperties: false;
|
|
1096
|
+
};
|
|
1097
|
+
readonly runtimeOperationDiagnosticSeverity: {
|
|
1098
|
+
readonly enum: readonly ["error", "warning", "info"];
|
|
1099
|
+
};
|
|
1100
|
+
readonly runtimeOperationDiagnostic: {
|
|
1101
|
+
readonly type: "object";
|
|
1102
|
+
readonly required: readonly ["severity", "code", "message"];
|
|
1103
|
+
readonly properties: {
|
|
1104
|
+
readonly severity: {
|
|
1105
|
+
readonly $ref: "#/$defs/runtimeOperationDiagnosticSeverity";
|
|
1106
|
+
};
|
|
1107
|
+
readonly code: {
|
|
1108
|
+
readonly enum: readonly ["base-revision-mismatch", "duplicate-edge-id", "duplicate-node-id", "duplicate-target-path", "fragment-edge-outside-selection", "id-conflict", "invalid-target-path", "operation-rebased", "target-not-found", "unsupported-operation"];
|
|
1109
|
+
};
|
|
1110
|
+
readonly message: {
|
|
1111
|
+
readonly type: "string";
|
|
1112
|
+
};
|
|
1113
|
+
readonly path: {
|
|
1114
|
+
readonly type: "string";
|
|
1115
|
+
readonly minLength: 1;
|
|
1116
|
+
};
|
|
1117
|
+
readonly target: {
|
|
1118
|
+
readonly $ref: "#/$defs/graphTargetRef";
|
|
1119
|
+
};
|
|
1120
|
+
readonly expectedRevision: {
|
|
1121
|
+
readonly type: "string";
|
|
1122
|
+
readonly minLength: 1;
|
|
1123
|
+
};
|
|
1124
|
+
readonly actualRevision: {
|
|
1125
|
+
readonly type: "string";
|
|
1126
|
+
readonly minLength: 1;
|
|
1127
|
+
};
|
|
1128
|
+
readonly duplicates: {
|
|
1129
|
+
readonly type: "array";
|
|
1130
|
+
readonly items: {
|
|
1131
|
+
readonly type: "string";
|
|
1132
|
+
readonly minLength: 1;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
readonly nodes: {
|
|
1136
|
+
readonly type: "array";
|
|
1137
|
+
readonly items: {
|
|
1138
|
+
readonly type: "string";
|
|
1139
|
+
readonly minLength: 1;
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
readonly edges: {
|
|
1143
|
+
readonly type: "array";
|
|
1144
|
+
readonly items: {
|
|
1145
|
+
readonly type: "string";
|
|
1146
|
+
readonly minLength: 1;
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
readonly additionalProperties: false;
|
|
1151
|
+
};
|
|
1152
|
+
readonly pasteGraphFragmentResponse: {
|
|
1153
|
+
readonly type: "object";
|
|
1154
|
+
readonly required: readonly ["schema", "schemaVersion", "ok", "applied", "conflict", "target", "revisionBefore", "revisionAfter", "historyEntryId", "idRemap", "diagnostics"];
|
|
1155
|
+
readonly properties: {
|
|
1156
|
+
readonly schema: {
|
|
1157
|
+
readonly const: "skenion.runtime.paste-graph-fragment.response";
|
|
1158
|
+
};
|
|
1159
|
+
readonly schemaVersion: {
|
|
1160
|
+
readonly const: "0.1.0";
|
|
1161
|
+
};
|
|
1162
|
+
readonly ok: {
|
|
1163
|
+
readonly type: "boolean";
|
|
1164
|
+
};
|
|
1165
|
+
readonly applied: {
|
|
1166
|
+
readonly type: "boolean";
|
|
1167
|
+
};
|
|
1168
|
+
readonly conflict: {
|
|
1169
|
+
readonly type: "boolean";
|
|
1170
|
+
};
|
|
1171
|
+
readonly target: {
|
|
1172
|
+
readonly $ref: "#/$defs/graphTargetRef";
|
|
1173
|
+
};
|
|
1174
|
+
readonly revisionBefore: {
|
|
1175
|
+
readonly type: "string";
|
|
1176
|
+
readonly minLength: 1;
|
|
1177
|
+
};
|
|
1178
|
+
readonly revisionAfter: {
|
|
1179
|
+
readonly anyOf: readonly [{
|
|
1180
|
+
readonly type: "string";
|
|
1181
|
+
readonly minLength: 1;
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly type: "null";
|
|
1184
|
+
}];
|
|
1185
|
+
};
|
|
1186
|
+
readonly historyEntryId: {
|
|
1187
|
+
readonly anyOf: readonly [{
|
|
1188
|
+
readonly type: "string";
|
|
1189
|
+
readonly minLength: 1;
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly type: "null";
|
|
1192
|
+
}];
|
|
1193
|
+
};
|
|
1194
|
+
readonly idRemap: {
|
|
1195
|
+
readonly $ref: "#/$defs/idRemapResult";
|
|
1196
|
+
};
|
|
1197
|
+
readonly diagnostics: {
|
|
1198
|
+
readonly type: "array";
|
|
1199
|
+
readonly items: {
|
|
1200
|
+
readonly $ref: "#/$defs/runtimeOperationDiagnostic";
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
readonly additionalProperties: false;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
export declare const runtimeSessionV0Schema: {
|
|
1209
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1210
|
+
readonly $id: "https://skenion.dev/schemas/runtime/v0/session.schema.json";
|
|
1211
|
+
readonly title: "Skenion Runtime Session Profile v0";
|
|
1212
|
+
readonly type: "object";
|
|
1213
|
+
readonly required: readonly ["schema", "schemaVersion", "ok", "sessionId", "lifecycle", "snapshot", "profile", "capabilities", "eventReplay", "diagnostics"];
|
|
1214
|
+
readonly properties: {
|
|
1215
|
+
readonly schema: {
|
|
1216
|
+
readonly const: "skenion.runtime.session.info";
|
|
1217
|
+
};
|
|
1218
|
+
readonly schemaVersion: {
|
|
1219
|
+
readonly const: "0.1.0";
|
|
1220
|
+
};
|
|
1221
|
+
readonly ok: {
|
|
1222
|
+
readonly type: "boolean";
|
|
1223
|
+
};
|
|
1224
|
+
readonly sessionId: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
readonly minLength: 1;
|
|
1227
|
+
};
|
|
1228
|
+
readonly lifecycle: {
|
|
1229
|
+
readonly $ref: "#/$defs/runtimeSessionLifecycleState";
|
|
1230
|
+
};
|
|
1231
|
+
readonly snapshot: {
|
|
1232
|
+
readonly $ref: "#/$defs/runtimeSessionSnapshot";
|
|
1233
|
+
};
|
|
1234
|
+
readonly profile: {
|
|
1235
|
+
readonly $ref: "#/$defs/runtimeConnectionProfile";
|
|
1236
|
+
};
|
|
1237
|
+
readonly capabilities: {
|
|
1238
|
+
readonly $ref: "#/$defs/runtimeSessionCapabilitySet";
|
|
1239
|
+
};
|
|
1240
|
+
readonly eventReplay: {
|
|
1241
|
+
readonly $ref: "#/$defs/runtimeEventReplayWindow";
|
|
1242
|
+
};
|
|
1243
|
+
readonly diagnostics: {
|
|
1244
|
+
readonly type: "array";
|
|
1245
|
+
readonly items: {
|
|
1246
|
+
readonly $ref: "#/$defs/runtimeDiagnostic";
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
readonly additionalProperties: false;
|
|
1251
|
+
readonly $defs: {
|
|
1252
|
+
readonly runtimeDiagnostic: {
|
|
1253
|
+
readonly type: "object";
|
|
1254
|
+
readonly required: readonly ["severity", "message"];
|
|
1255
|
+
readonly properties: {
|
|
1256
|
+
readonly severity: {
|
|
1257
|
+
readonly enum: readonly ["error", "warning", "info"];
|
|
1258
|
+
};
|
|
1259
|
+
readonly message: {
|
|
1260
|
+
readonly type: "string";
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
readonly additionalProperties: false;
|
|
1264
|
+
};
|
|
1265
|
+
readonly runtimeSessionLifecycleState: {
|
|
1266
|
+
readonly enum: readonly ["initializing", "ready", "closing", "closed", "error"];
|
|
1267
|
+
};
|
|
1268
|
+
readonly runtimeConnectionProfileMode: {
|
|
1269
|
+
readonly enum: readonly ["local-managed", "local-shared", "remote"];
|
|
1270
|
+
};
|
|
1271
|
+
readonly runtimeOwnershipMode: {
|
|
1272
|
+
readonly enum: readonly ["owned-child", "external", "remote"];
|
|
1273
|
+
};
|
|
1274
|
+
readonly runtimeEndpointMetadata: {
|
|
1275
|
+
readonly type: "object";
|
|
1276
|
+
readonly required: readonly ["url", "protocol"];
|
|
1277
|
+
readonly properties: {
|
|
1278
|
+
readonly url: {
|
|
1279
|
+
readonly type: "string";
|
|
1280
|
+
readonly minLength: 1;
|
|
1281
|
+
};
|
|
1282
|
+
readonly canonicalUrl: {
|
|
1283
|
+
readonly type: "string";
|
|
1284
|
+
readonly minLength: 1;
|
|
1285
|
+
};
|
|
1286
|
+
readonly protocol: {
|
|
1287
|
+
readonly enum: readonly ["http", "https"];
|
|
1288
|
+
};
|
|
1289
|
+
readonly host: {
|
|
1290
|
+
readonly type: "string";
|
|
1291
|
+
readonly minLength: 1;
|
|
1292
|
+
};
|
|
1293
|
+
readonly port: {
|
|
1294
|
+
readonly type: "integer";
|
|
1295
|
+
readonly minimum: 0;
|
|
1296
|
+
readonly maximum: 65535;
|
|
1297
|
+
};
|
|
1298
|
+
readonly tls: {
|
|
1299
|
+
readonly type: "boolean";
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
readonly additionalProperties: false;
|
|
1303
|
+
};
|
|
1304
|
+
readonly runtimeProcessMetadata: {
|
|
1305
|
+
readonly type: "object";
|
|
1306
|
+
readonly required: readonly ["ownedByHost"];
|
|
1307
|
+
readonly properties: {
|
|
1308
|
+
readonly ownedByHost: {
|
|
1309
|
+
readonly type: "boolean";
|
|
1310
|
+
};
|
|
1311
|
+
readonly pid: {
|
|
1312
|
+
readonly type: "integer";
|
|
1313
|
+
readonly minimum: 1;
|
|
1314
|
+
};
|
|
1315
|
+
readonly executablePath: {
|
|
1316
|
+
readonly type: "string";
|
|
1317
|
+
readonly minLength: 1;
|
|
1318
|
+
};
|
|
1319
|
+
readonly workingDirectory: {
|
|
1320
|
+
readonly type: "string";
|
|
1321
|
+
readonly minLength: 1;
|
|
1322
|
+
};
|
|
1323
|
+
readonly startedAt: {
|
|
1324
|
+
readonly type: "string";
|
|
1325
|
+
};
|
|
1326
|
+
readonly ownerWindowId: {
|
|
1327
|
+
readonly type: "string";
|
|
1328
|
+
readonly minLength: 1;
|
|
1329
|
+
};
|
|
1330
|
+
readonly platform: {
|
|
1331
|
+
readonly type: "string";
|
|
1332
|
+
readonly minLength: 1;
|
|
1333
|
+
};
|
|
1334
|
+
readonly arch: {
|
|
1335
|
+
readonly type: "string";
|
|
1336
|
+
readonly minLength: 1;
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
readonly additionalProperties: false;
|
|
1340
|
+
};
|
|
1341
|
+
readonly runtimeConnectionProfile: {
|
|
1342
|
+
readonly oneOf: readonly [{
|
|
1343
|
+
readonly $ref: "#/$defs/runtimeLocalManagedConnectionProfile";
|
|
1344
|
+
}, {
|
|
1345
|
+
readonly $ref: "#/$defs/runtimeLocalSharedConnectionProfile";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly $ref: "#/$defs/runtimeRemoteConnectionProfile";
|
|
1348
|
+
}];
|
|
1349
|
+
};
|
|
1350
|
+
readonly runtimeConnectionProfileBase: {
|
|
1351
|
+
readonly type: "object";
|
|
1352
|
+
readonly required: readonly ["mode", "ownership", "endpoint"];
|
|
1353
|
+
readonly properties: {
|
|
1354
|
+
readonly mode: {
|
|
1355
|
+
readonly $ref: "#/$defs/runtimeConnectionProfileMode";
|
|
1356
|
+
};
|
|
1357
|
+
readonly ownership: {
|
|
1358
|
+
readonly $ref: "#/$defs/runtimeOwnershipMode";
|
|
1359
|
+
};
|
|
1360
|
+
readonly displayName: {
|
|
1361
|
+
readonly type: "string";
|
|
1362
|
+
};
|
|
1363
|
+
readonly endpoint: {
|
|
1364
|
+
readonly $ref: "#/$defs/runtimeEndpointMetadata";
|
|
1365
|
+
};
|
|
1366
|
+
readonly process: {
|
|
1367
|
+
readonly oneOf: readonly [{
|
|
1368
|
+
readonly $ref: "#/$defs/runtimeProcessMetadata";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly type: "null";
|
|
1371
|
+
}];
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
readonly additionalProperties: false;
|
|
1375
|
+
};
|
|
1376
|
+
readonly runtimeLocalManagedConnectionProfile: {
|
|
1377
|
+
readonly allOf: readonly [{
|
|
1378
|
+
readonly $ref: "#/$defs/runtimeConnectionProfileBase";
|
|
1379
|
+
}, {
|
|
1380
|
+
readonly type: "object";
|
|
1381
|
+
readonly properties: {
|
|
1382
|
+
readonly mode: {
|
|
1383
|
+
readonly const: "local-managed";
|
|
1384
|
+
};
|
|
1385
|
+
readonly ownership: {
|
|
1386
|
+
readonly const: "owned-child";
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
}];
|
|
1390
|
+
};
|
|
1391
|
+
readonly runtimeLocalSharedConnectionProfile: {
|
|
1392
|
+
readonly allOf: readonly [{
|
|
1393
|
+
readonly $ref: "#/$defs/runtimeConnectionProfileBase";
|
|
1394
|
+
}, {
|
|
1395
|
+
readonly type: "object";
|
|
1396
|
+
readonly properties: {
|
|
1397
|
+
readonly mode: {
|
|
1398
|
+
readonly const: "local-shared";
|
|
1399
|
+
};
|
|
1400
|
+
readonly ownership: {
|
|
1401
|
+
readonly const: "external";
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
}];
|
|
1405
|
+
};
|
|
1406
|
+
readonly runtimeRemoteConnectionProfile: {
|
|
1407
|
+
readonly allOf: readonly [{
|
|
1408
|
+
readonly $ref: "#/$defs/runtimeConnectionProfileBase";
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly type: "object";
|
|
1411
|
+
readonly properties: {
|
|
1412
|
+
readonly mode: {
|
|
1413
|
+
readonly const: "remote";
|
|
1414
|
+
};
|
|
1415
|
+
readonly ownership: {
|
|
1416
|
+
readonly const: "remote";
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
}];
|
|
1420
|
+
};
|
|
1421
|
+
readonly runtimeProjectSnapshot: {
|
|
1422
|
+
readonly type: "object";
|
|
1423
|
+
readonly required: readonly ["graph", "viewState", "nodes"];
|
|
1424
|
+
readonly properties: {
|
|
1425
|
+
readonly graph: {
|
|
1426
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.1/graph.schema.json";
|
|
1427
|
+
};
|
|
1428
|
+
readonly viewState: {
|
|
1429
|
+
readonly $ref: "https://skenion.dev/schemas/view/v0.1/view-state.schema.json";
|
|
1430
|
+
};
|
|
1431
|
+
readonly nodes: {
|
|
1432
|
+
readonly type: "array";
|
|
1433
|
+
readonly items: {
|
|
1434
|
+
readonly $ref: "https://skenion.dev/schemas/node/v0.1/node-definition.schema.json";
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
readonly additionalProperties: false;
|
|
1439
|
+
};
|
|
1440
|
+
readonly runtimeSessionSnapshot: {
|
|
1441
|
+
readonly type: "object";
|
|
1442
|
+
readonly required: readonly ["sessionRevision", "viewRevision", "controlRevision", "project", "diagnostics", "plan"];
|
|
1443
|
+
readonly properties: {
|
|
1444
|
+
readonly sessionRevision: {
|
|
1445
|
+
readonly type: "integer";
|
|
1446
|
+
readonly minimum: 0;
|
|
1447
|
+
};
|
|
1448
|
+
readonly viewRevision: {
|
|
1449
|
+
readonly type: "integer";
|
|
1450
|
+
readonly minimum: 0;
|
|
1451
|
+
};
|
|
1452
|
+
readonly controlRevision: {
|
|
1453
|
+
readonly type: "integer";
|
|
1454
|
+
readonly minimum: 0;
|
|
1455
|
+
};
|
|
1456
|
+
readonly project: {
|
|
1457
|
+
readonly oneOf: readonly [{
|
|
1458
|
+
readonly $ref: "#/$defs/runtimeProjectSnapshot";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly type: "null";
|
|
1461
|
+
}];
|
|
1462
|
+
};
|
|
1463
|
+
readonly diagnostics: {
|
|
1464
|
+
readonly type: "array";
|
|
1465
|
+
readonly items: {
|
|
1466
|
+
readonly $ref: "#/$defs/runtimeDiagnostic";
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
readonly plan: {
|
|
1470
|
+
readonly oneOf: readonly [{
|
|
1471
|
+
readonly type: "object";
|
|
1472
|
+
}, {
|
|
1473
|
+
readonly type: "null";
|
|
1474
|
+
}];
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly additionalProperties: false;
|
|
1478
|
+
};
|
|
1479
|
+
readonly runtimeMutationRequest: {
|
|
1480
|
+
readonly type: "object";
|
|
1481
|
+
readonly properties: {
|
|
1482
|
+
readonly graphPatch: {
|
|
1483
|
+
readonly $ref: "https://skenion.dev/schemas/graph/v0.1/patch.schema.json";
|
|
1484
|
+
};
|
|
1485
|
+
readonly viewPatch: {
|
|
1486
|
+
readonly $ref: "#/$defs/runtimeViewPatch";
|
|
1487
|
+
};
|
|
1488
|
+
readonly clientId: {
|
|
1489
|
+
readonly type: "string";
|
|
1490
|
+
readonly minLength: 1;
|
|
1491
|
+
};
|
|
1492
|
+
readonly description: {
|
|
1493
|
+
readonly type: "string";
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
readonly additionalProperties: false;
|
|
1497
|
+
};
|
|
1498
|
+
readonly runtimeViewPatch: {
|
|
1499
|
+
readonly type: "object";
|
|
1500
|
+
readonly required: readonly ["baseViewRevision", "ops"];
|
|
1501
|
+
readonly properties: {
|
|
1502
|
+
readonly baseViewRevision: {
|
|
1503
|
+
readonly type: "integer";
|
|
1504
|
+
readonly minimum: 0;
|
|
1505
|
+
};
|
|
1506
|
+
readonly ops: {
|
|
1507
|
+
readonly type: "array";
|
|
1508
|
+
readonly items: {
|
|
1509
|
+
readonly oneOf: readonly [{
|
|
1510
|
+
readonly $ref: "#/$defs/runtimeSetNodeViewOperation";
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly $ref: "#/$defs/runtimeMoveNodeViewOperation";
|
|
1513
|
+
}];
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
readonly additionalProperties: false;
|
|
1518
|
+
};
|
|
1519
|
+
readonly runtimeSetNodeViewOperation: {
|
|
1520
|
+
readonly type: "object";
|
|
1521
|
+
readonly required: readonly ["op", "nodeId", "view"];
|
|
1522
|
+
readonly properties: {
|
|
1523
|
+
readonly op: {
|
|
1524
|
+
readonly const: "setNodeView";
|
|
1525
|
+
};
|
|
1526
|
+
readonly nodeId: {
|
|
1527
|
+
readonly type: "string";
|
|
1528
|
+
readonly minLength: 1;
|
|
1529
|
+
};
|
|
1530
|
+
readonly view: {
|
|
1531
|
+
readonly $ref: "#/$defs/runtimeCanvasNodeView";
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
readonly additionalProperties: false;
|
|
1535
|
+
};
|
|
1536
|
+
readonly runtimeMoveNodeViewOperation: {
|
|
1537
|
+
readonly type: "object";
|
|
1538
|
+
readonly required: readonly ["op", "nodeId", "to"];
|
|
1539
|
+
readonly properties: {
|
|
1540
|
+
readonly op: {
|
|
1541
|
+
readonly const: "moveNodeView";
|
|
1542
|
+
};
|
|
1543
|
+
readonly nodeId: {
|
|
1544
|
+
readonly type: "string";
|
|
1545
|
+
readonly minLength: 1;
|
|
1546
|
+
};
|
|
1547
|
+
readonly from: {
|
|
1548
|
+
readonly $ref: "#/$defs/runtimeCanvasNodeView";
|
|
1549
|
+
};
|
|
1550
|
+
readonly to: {
|
|
1551
|
+
readonly $ref: "#/$defs/runtimeCanvasNodeView";
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
readonly additionalProperties: false;
|
|
1555
|
+
};
|
|
1556
|
+
readonly runtimeCanvasNodeView: {
|
|
1557
|
+
readonly type: "object";
|
|
1558
|
+
readonly required: readonly ["x", "y"];
|
|
1559
|
+
readonly properties: {
|
|
1560
|
+
readonly x: {
|
|
1561
|
+
readonly type: "number";
|
|
1562
|
+
};
|
|
1563
|
+
readonly y: {
|
|
1564
|
+
readonly type: "number";
|
|
1565
|
+
};
|
|
1566
|
+
readonly width: {
|
|
1567
|
+
readonly type: "number";
|
|
1568
|
+
};
|
|
1569
|
+
readonly height: {
|
|
1570
|
+
readonly type: "number";
|
|
1571
|
+
};
|
|
1572
|
+
readonly collapsed: {
|
|
1573
|
+
readonly type: "boolean";
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
readonly additionalProperties: false;
|
|
1577
|
+
};
|
|
1578
|
+
readonly runtimeHistoryEntry: {
|
|
1579
|
+
readonly type: "object";
|
|
1580
|
+
readonly required: readonly ["id", "sequence", "kind", "mutation", "inverseMutation", "createdAt"];
|
|
1581
|
+
readonly properties: {
|
|
1582
|
+
readonly id: {
|
|
1583
|
+
readonly type: "string";
|
|
1584
|
+
readonly minLength: 1;
|
|
1585
|
+
};
|
|
1586
|
+
readonly sequence: {
|
|
1587
|
+
readonly type: "integer";
|
|
1588
|
+
readonly minimum: 1;
|
|
1589
|
+
};
|
|
1590
|
+
readonly kind: {
|
|
1591
|
+
readonly enum: readonly ["apply", "undo", "redo"];
|
|
1592
|
+
};
|
|
1593
|
+
readonly mutation: {
|
|
1594
|
+
readonly $ref: "#/$defs/runtimeMutationRequest";
|
|
1595
|
+
};
|
|
1596
|
+
readonly inverseMutation: {
|
|
1597
|
+
readonly $ref: "#/$defs/runtimeMutationRequest";
|
|
1598
|
+
};
|
|
1599
|
+
readonly subjectEventId: {
|
|
1600
|
+
readonly type: "string";
|
|
1601
|
+
readonly minLength: 1;
|
|
1602
|
+
};
|
|
1603
|
+
readonly clientId: {
|
|
1604
|
+
readonly type: "string";
|
|
1605
|
+
readonly minLength: 1;
|
|
1606
|
+
};
|
|
1607
|
+
readonly description: {
|
|
1608
|
+
readonly type: "string";
|
|
1609
|
+
};
|
|
1610
|
+
readonly createdAt: {
|
|
1611
|
+
readonly type: "string";
|
|
1612
|
+
readonly minLength: 1;
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
readonly additionalProperties: false;
|
|
1616
|
+
};
|
|
1617
|
+
readonly runtimeHistory: {
|
|
1618
|
+
readonly type: "object";
|
|
1619
|
+
readonly required: readonly ["schema", "schemaVersion", "entries", "canUndo", "canRedo", "undoDepth", "redoDepth"];
|
|
1620
|
+
readonly properties: {
|
|
1621
|
+
readonly schema: {
|
|
1622
|
+
readonly const: "skenion.runtime.history";
|
|
1623
|
+
};
|
|
1624
|
+
readonly schemaVersion: {
|
|
1625
|
+
readonly const: "0.1.0";
|
|
1626
|
+
};
|
|
1627
|
+
readonly entries: {
|
|
1628
|
+
readonly type: "array";
|
|
1629
|
+
readonly items: {
|
|
1630
|
+
readonly $ref: "#/$defs/runtimeHistoryEntry";
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
readonly canUndo: {
|
|
1634
|
+
readonly type: "boolean";
|
|
1635
|
+
};
|
|
1636
|
+
readonly canRedo: {
|
|
1637
|
+
readonly type: "boolean";
|
|
1638
|
+
};
|
|
1639
|
+
readonly undoDepth: {
|
|
1640
|
+
readonly type: "integer";
|
|
1641
|
+
readonly minimum: 0;
|
|
1642
|
+
};
|
|
1643
|
+
readonly redoDepth: {
|
|
1644
|
+
readonly type: "integer";
|
|
1645
|
+
readonly minimum: 0;
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
readonly additionalProperties: false;
|
|
1649
|
+
};
|
|
1650
|
+
readonly runtimeEventReplayWindow: {
|
|
1651
|
+
readonly type: "object";
|
|
1652
|
+
readonly required: readonly ["cursorKind", "currentCursor", "earliestSequence", "latestSequence", "replayLimit"];
|
|
1653
|
+
readonly properties: {
|
|
1654
|
+
readonly cursorKind: {
|
|
1655
|
+
readonly const: "sequence";
|
|
1656
|
+
};
|
|
1657
|
+
readonly currentCursor: {
|
|
1658
|
+
readonly type: "string";
|
|
1659
|
+
readonly minLength: 1;
|
|
1660
|
+
};
|
|
1661
|
+
readonly earliestSequence: {
|
|
1662
|
+
readonly type: "integer";
|
|
1663
|
+
readonly minimum: 1;
|
|
1664
|
+
};
|
|
1665
|
+
readonly latestSequence: {
|
|
1666
|
+
readonly type: "integer";
|
|
1667
|
+
readonly minimum: 0;
|
|
1668
|
+
};
|
|
1669
|
+
readonly replayLimit: {
|
|
1670
|
+
readonly oneOf: readonly [{
|
|
1671
|
+
readonly type: "integer";
|
|
1672
|
+
readonly minimum: 0;
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly type: "null";
|
|
1675
|
+
}];
|
|
1676
|
+
};
|
|
1677
|
+
readonly overflow: {
|
|
1678
|
+
readonly type: "boolean";
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
readonly additionalProperties: false;
|
|
1682
|
+
};
|
|
1683
|
+
readonly runtimeSessionCapabilitySet: {
|
|
1684
|
+
readonly type: "object";
|
|
1685
|
+
readonly required: readonly ["sessionAddressing", "defaultSessionAlias", "eventReplay", "multiWindow", "profiles", "authPolicy"];
|
|
1686
|
+
readonly properties: {
|
|
1687
|
+
readonly sessionAddressing: {
|
|
1688
|
+
readonly type: "boolean";
|
|
1689
|
+
};
|
|
1690
|
+
readonly defaultSessionAlias: {
|
|
1691
|
+
readonly type: "boolean";
|
|
1692
|
+
};
|
|
1693
|
+
readonly eventReplay: {
|
|
1694
|
+
readonly type: "boolean";
|
|
1695
|
+
};
|
|
1696
|
+
readonly multiWindow: {
|
|
1697
|
+
readonly type: "boolean";
|
|
1698
|
+
};
|
|
1699
|
+
readonly profiles: {
|
|
1700
|
+
readonly type: "array";
|
|
1701
|
+
readonly items: {
|
|
1702
|
+
readonly $ref: "#/$defs/runtimeConnectionProfileMode";
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
readonly authPolicy: {
|
|
1706
|
+
readonly const: "deferred";
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1709
|
+
readonly additionalProperties: false;
|
|
1710
|
+
};
|
|
1711
|
+
readonly runtimeEventReplayGap: {
|
|
1712
|
+
readonly type: "object";
|
|
1713
|
+
readonly description: "Gap metadata reports a missed retained range. expectedSequence must be less than actualSequence.";
|
|
1714
|
+
readonly required: readonly ["expectedSequence", "actualSequence", "reason"];
|
|
1715
|
+
readonly properties: {
|
|
1716
|
+
readonly expectedSequence: {
|
|
1717
|
+
readonly type: "integer";
|
|
1718
|
+
readonly minimum: 1;
|
|
1719
|
+
};
|
|
1720
|
+
readonly actualSequence: {
|
|
1721
|
+
readonly type: "integer";
|
|
1722
|
+
readonly minimum: 1;
|
|
1723
|
+
};
|
|
1724
|
+
readonly reason: {
|
|
1725
|
+
readonly enum: readonly ["retention-overflow", "stream-reset", "unknown"];
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
readonly additionalProperties: false;
|
|
1729
|
+
};
|
|
1730
|
+
readonly runtimeEventReplayMetadata: {
|
|
1731
|
+
readonly type: "object";
|
|
1732
|
+
readonly required: readonly ["cursor", "previousCursor", "replayed", "gap", "overflow"];
|
|
1733
|
+
readonly properties: {
|
|
1734
|
+
readonly cursor: {
|
|
1735
|
+
readonly type: "string";
|
|
1736
|
+
readonly minLength: 1;
|
|
1737
|
+
};
|
|
1738
|
+
readonly previousCursor: {
|
|
1739
|
+
readonly oneOf: readonly [{
|
|
1740
|
+
readonly type: "string";
|
|
1741
|
+
readonly minLength: 1;
|
|
1742
|
+
}, {
|
|
1743
|
+
readonly type: "null";
|
|
1744
|
+
}];
|
|
1745
|
+
};
|
|
1746
|
+
readonly replayed: {
|
|
1747
|
+
readonly type: "boolean";
|
|
1748
|
+
};
|
|
1749
|
+
readonly gap: {
|
|
1750
|
+
readonly oneOf: readonly [{
|
|
1751
|
+
readonly $ref: "#/$defs/runtimeEventReplayGap";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly type: "null";
|
|
1754
|
+
}];
|
|
1755
|
+
};
|
|
1756
|
+
readonly overflow: {
|
|
1757
|
+
readonly type: "boolean";
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
readonly additionalProperties: false;
|
|
1761
|
+
};
|
|
1762
|
+
readonly runtimeSessionEventKind: {
|
|
1763
|
+
readonly enum: readonly ["snapshot", "load", "clear", "mutate", "undo", "redo"];
|
|
1764
|
+
};
|
|
1765
|
+
readonly runtimeSessionEvent: {
|
|
1766
|
+
readonly type: "object";
|
|
1767
|
+
readonly required: readonly ["schema", "schemaVersion", "id", "sessionId", "sequence", "sessionRevision", "kind", "snapshot", "history", "replay", "diagnostics", "createdAt"];
|
|
1768
|
+
readonly properties: {
|
|
1769
|
+
readonly schema: {
|
|
1770
|
+
readonly const: "skenion.runtime.session.event";
|
|
1771
|
+
};
|
|
1772
|
+
readonly schemaVersion: {
|
|
1773
|
+
readonly const: "0.1.0";
|
|
1774
|
+
};
|
|
1775
|
+
readonly id: {
|
|
1776
|
+
readonly type: "string";
|
|
1777
|
+
readonly minLength: 1;
|
|
1778
|
+
};
|
|
1779
|
+
readonly sessionId: {
|
|
1780
|
+
readonly type: "string";
|
|
1781
|
+
readonly minLength: 1;
|
|
1782
|
+
};
|
|
1783
|
+
readonly sequence: {
|
|
1784
|
+
readonly type: "integer";
|
|
1785
|
+
readonly minimum: 1;
|
|
1786
|
+
};
|
|
1787
|
+
readonly sessionRevision: {
|
|
1788
|
+
readonly type: "integer";
|
|
1789
|
+
readonly minimum: 0;
|
|
1790
|
+
};
|
|
1791
|
+
readonly kind: {
|
|
1792
|
+
readonly $ref: "#/$defs/runtimeSessionEventKind";
|
|
1793
|
+
};
|
|
1794
|
+
readonly snapshot: {
|
|
1795
|
+
readonly $ref: "#/$defs/runtimeSessionSnapshot";
|
|
1796
|
+
};
|
|
1797
|
+
readonly history: {
|
|
1798
|
+
readonly $ref: "#/$defs/runtimeHistory";
|
|
1799
|
+
};
|
|
1800
|
+
readonly mutation: {
|
|
1801
|
+
readonly $ref: "#/$defs/runtimeHistoryEntry";
|
|
1802
|
+
};
|
|
1803
|
+
readonly replay: {
|
|
1804
|
+
readonly $ref: "#/$defs/runtimeEventReplayMetadata";
|
|
1805
|
+
};
|
|
1806
|
+
readonly diagnostics: {
|
|
1807
|
+
readonly type: "array";
|
|
1808
|
+
readonly items: {
|
|
1809
|
+
readonly $ref: "#/$defs/runtimeDiagnostic";
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
readonly createdAt: {
|
|
1813
|
+
readonly type: "string";
|
|
1814
|
+
readonly minLength: 1;
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
readonly additionalProperties: false;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
736
1821
|
export declare const graphPatchV01Schema: {
|
|
737
1822
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
738
1823
|
readonly $id: "https://skenion.dev/schemas/graph/v0.1/patch.schema.json";
|