@powersync/service-schema 1.25.0 → 1.26.1
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/json-schema/powersync-config.json +101 -162
- package/package.json +9 -9
|
@@ -72,19 +72,11 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"post_images": {
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{
|
|
81
|
-
"type": "string",
|
|
82
|
-
"const": "auto_configure"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"type": "string",
|
|
86
|
-
"const": "read_only"
|
|
87
|
-
}
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"off",
|
|
78
|
+
"auto_configure",
|
|
79
|
+
"read_only"
|
|
88
80
|
]
|
|
89
81
|
},
|
|
90
82
|
"heartbeat_interval_seconds": {
|
|
@@ -380,19 +372,11 @@
|
|
|
380
372
|
"type": "string"
|
|
381
373
|
},
|
|
382
374
|
"sslmode": {
|
|
383
|
-
"
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
{
|
|
389
|
-
"type": "string",
|
|
390
|
-
"const": "verify-ca"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"type": "string",
|
|
394
|
-
"const": "disable"
|
|
395
|
-
}
|
|
375
|
+
"type": "string",
|
|
376
|
+
"enum": [
|
|
377
|
+
"verify-full",
|
|
378
|
+
"verify-ca",
|
|
379
|
+
"disable"
|
|
396
380
|
]
|
|
397
381
|
},
|
|
398
382
|
"cacert": {
|
|
@@ -422,6 +406,9 @@
|
|
|
422
406
|
"connect_timeout": {
|
|
423
407
|
"type": "number"
|
|
424
408
|
},
|
|
409
|
+
"snapshot_socket_timeout": {
|
|
410
|
+
"type": "number"
|
|
411
|
+
},
|
|
425
412
|
"heartbeat_interval_seconds": {
|
|
426
413
|
"anyOf": [
|
|
427
414
|
{
|
|
@@ -552,19 +539,11 @@
|
|
|
552
539
|
},
|
|
553
540
|
"alg": {
|
|
554
541
|
"description": "The algorithm intended for use with this key (RS256, RS384, or RS512).",
|
|
555
|
-
"
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
{
|
|
561
|
-
"type": "string",
|
|
562
|
-
"const": "RS384"
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
"type": "string",
|
|
566
|
-
"const": "RS512"
|
|
567
|
-
}
|
|
542
|
+
"type": "string",
|
|
543
|
+
"enum": [
|
|
544
|
+
"RS256",
|
|
545
|
+
"RS384",
|
|
546
|
+
"RS512"
|
|
568
547
|
]
|
|
569
548
|
},
|
|
570
549
|
"use": {
|
|
@@ -599,19 +578,11 @@
|
|
|
599
578
|
},
|
|
600
579
|
"alg": {
|
|
601
580
|
"description": "The algorithm intended for use with this key (HS256, HS384, or HS512).",
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
{
|
|
608
|
-
"type": "string",
|
|
609
|
-
"const": "HS384"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"type": "string",
|
|
613
|
-
"const": "HS512"
|
|
614
|
-
}
|
|
581
|
+
"type": "string",
|
|
582
|
+
"enum": [
|
|
583
|
+
"HS256",
|
|
584
|
+
"HS384",
|
|
585
|
+
"HS512"
|
|
615
586
|
]
|
|
616
587
|
},
|
|
617
588
|
"use": {
|
|
@@ -641,15 +612,10 @@
|
|
|
641
612
|
},
|
|
642
613
|
"crv": {
|
|
643
614
|
"description": "The cryptographic curve used with this key. Only Ed25519 and Ed448 are supported.",
|
|
644
|
-
"
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"type": "string",
|
|
651
|
-
"const": "Ed448"
|
|
652
|
-
}
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"Ed25519",
|
|
618
|
+
"Ed448"
|
|
653
619
|
]
|
|
654
620
|
},
|
|
655
621
|
"x": {
|
|
@@ -689,19 +655,11 @@
|
|
|
689
655
|
},
|
|
690
656
|
"crv": {
|
|
691
657
|
"description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
|
|
692
|
-
"
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
{
|
|
698
|
-
"type": "string",
|
|
699
|
-
"const": "P-384"
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"type": "string",
|
|
703
|
-
"const": "P-521"
|
|
704
|
-
}
|
|
658
|
+
"type": "string",
|
|
659
|
+
"enum": [
|
|
660
|
+
"P-256",
|
|
661
|
+
"P-384",
|
|
662
|
+
"P-521"
|
|
705
663
|
]
|
|
706
664
|
},
|
|
707
665
|
"x": {
|
|
@@ -714,19 +672,11 @@
|
|
|
714
672
|
},
|
|
715
673
|
"alg": {
|
|
716
674
|
"description": "The algorithm intended for use with this key (ES256, ES384, or ES512).",
|
|
717
|
-
"
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
{
|
|
723
|
-
"type": "string",
|
|
724
|
-
"const": "ES384"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
"type": "string",
|
|
728
|
-
"const": "ES512"
|
|
729
|
-
}
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"ES256",
|
|
678
|
+
"ES384",
|
|
679
|
+
"ES512"
|
|
730
680
|
]
|
|
731
681
|
},
|
|
732
682
|
"use": {
|
|
@@ -830,6 +780,10 @@
|
|
|
830
780
|
"max_pool_size": {
|
|
831
781
|
"description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
|
|
832
782
|
"type": "number"
|
|
783
|
+
},
|
|
784
|
+
"default_storage_version": {
|
|
785
|
+
"description": "Storage version to use when deploying a sync config that does not specify storage_version. Defaults to 2.",
|
|
786
|
+
"type": "number"
|
|
833
787
|
}
|
|
834
788
|
},
|
|
835
789
|
"additionalProperties": true,
|
|
@@ -847,6 +801,10 @@
|
|
|
847
801
|
"max_pool_size": {
|
|
848
802
|
"type": "number"
|
|
849
803
|
},
|
|
804
|
+
"default_storage_version": {
|
|
805
|
+
"description": "Storage version to use when deploying a sync config that does not specify storage_version. Defaults to 2.",
|
|
806
|
+
"type": "number"
|
|
807
|
+
},
|
|
850
808
|
"id": {
|
|
851
809
|
"type": "string"
|
|
852
810
|
},
|
|
@@ -880,19 +838,11 @@
|
|
|
880
838
|
"type": "string"
|
|
881
839
|
},
|
|
882
840
|
"sslmode": {
|
|
883
|
-
"
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
{
|
|
889
|
-
"type": "string",
|
|
890
|
-
"const": "verify-ca"
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"type": "string",
|
|
894
|
-
"const": "disable"
|
|
895
|
-
}
|
|
841
|
+
"type": "string",
|
|
842
|
+
"enum": [
|
|
843
|
+
"verify-full",
|
|
844
|
+
"verify-ca",
|
|
845
|
+
"disable"
|
|
896
846
|
]
|
|
897
847
|
},
|
|
898
848
|
"cacert": {
|
|
@@ -948,6 +898,14 @@
|
|
|
948
898
|
"type": "string",
|
|
949
899
|
"const": "mongodb"
|
|
950
900
|
},
|
|
901
|
+
"max_pool_size": {
|
|
902
|
+
"description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
|
|
903
|
+
"type": "number"
|
|
904
|
+
},
|
|
905
|
+
"default_storage_version": {
|
|
906
|
+
"description": "Storage version to use when deploying a sync config that does not specify storage_version. Defaults to 2.",
|
|
907
|
+
"type": "number"
|
|
908
|
+
},
|
|
951
909
|
"uri": {
|
|
952
910
|
"type": "string"
|
|
953
911
|
},
|
|
@@ -967,32 +925,21 @@
|
|
|
967
925
|
}
|
|
968
926
|
},
|
|
969
927
|
"bulk_read_preference": {
|
|
970
|
-
"
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
"const": "primaryPreferred"
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"type": "string",
|
|
981
|
-
"const": "secondary"
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"type": "string",
|
|
985
|
-
"const": "secondaryPreferred"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"type": "string",
|
|
989
|
-
"const": "nearest"
|
|
990
|
-
}
|
|
928
|
+
"type": "string",
|
|
929
|
+
"enum": [
|
|
930
|
+
"primary",
|
|
931
|
+
"primaryPreferred",
|
|
932
|
+
"secondary",
|
|
933
|
+
"secondaryPreferred",
|
|
934
|
+
"nearest"
|
|
991
935
|
]
|
|
992
936
|
},
|
|
993
937
|
"clear_batch_throttle_rate": {
|
|
994
938
|
"type": "number"
|
|
995
939
|
},
|
|
940
|
+
"chunk_compaction_concurrency": {
|
|
941
|
+
"type": "number"
|
|
942
|
+
},
|
|
996
943
|
"object_storage": {
|
|
997
944
|
"type": "object",
|
|
998
945
|
"properties": {
|
|
@@ -1024,6 +971,15 @@
|
|
|
1024
971
|
"concurrency_limit": {
|
|
1025
972
|
"type": "number"
|
|
1026
973
|
},
|
|
974
|
+
"defaults_mode": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"enum": [
|
|
977
|
+
"standard",
|
|
978
|
+
"in-region",
|
|
979
|
+
"cross-region",
|
|
980
|
+
"mobile"
|
|
981
|
+
]
|
|
982
|
+
},
|
|
1027
983
|
"inline_threshold_bytes": {
|
|
1028
984
|
"type": "number"
|
|
1029
985
|
}
|
|
@@ -1058,6 +1014,10 @@
|
|
|
1058
1014
|
"description": "Configuration for synchronization rules that define data access patterns.",
|
|
1059
1015
|
"type": "object",
|
|
1060
1016
|
"properties": {
|
|
1017
|
+
"version_label": {
|
|
1018
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
},
|
|
1061
1021
|
"path": {
|
|
1062
1022
|
"description": "Path to the sync config YAML file.",
|
|
1063
1023
|
"type": "string"
|
|
@@ -1078,6 +1038,10 @@
|
|
|
1078
1038
|
"description": "Deprecated. Use sync_config instead.",
|
|
1079
1039
|
"type": "object",
|
|
1080
1040
|
"properties": {
|
|
1041
|
+
"version_label": {
|
|
1042
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1043
|
+
"type": "string"
|
|
1044
|
+
},
|
|
1081
1045
|
"path": {
|
|
1082
1046
|
"description": "Path to the sync config YAML file.",
|
|
1083
1047
|
"type": "string"
|
|
@@ -1181,48 +1145,23 @@
|
|
|
1181
1145
|
"properties": {
|
|
1182
1146
|
"level": {
|
|
1183
1147
|
"description": "Log level for the service logs.",
|
|
1184
|
-
"
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
{
|
|
1194
|
-
"type": "string",
|
|
1195
|
-
"const": "verbose"
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
"type": "string",
|
|
1199
|
-
"const": "http"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"type": "string",
|
|
1203
|
-
"const": "info"
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
"type": "string",
|
|
1207
|
-
"const": "warn"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
"type": "string",
|
|
1211
|
-
"const": "error"
|
|
1212
|
-
}
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"enum": [
|
|
1150
|
+
"silly",
|
|
1151
|
+
"debug",
|
|
1152
|
+
"verbose",
|
|
1153
|
+
"http",
|
|
1154
|
+
"info",
|
|
1155
|
+
"warn",
|
|
1156
|
+
"error"
|
|
1213
1157
|
]
|
|
1214
1158
|
},
|
|
1215
1159
|
"format": {
|
|
1216
1160
|
"description": "Log output format.",
|
|
1217
|
-
"
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
"type": "string",
|
|
1224
|
-
"const": "text"
|
|
1225
|
-
}
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"enum": [
|
|
1163
|
+
"json",
|
|
1164
|
+
"text"
|
|
1226
1165
|
]
|
|
1227
1166
|
}
|
|
1228
1167
|
},
|
|
@@ -1238,6 +1177,9 @@
|
|
|
1238
1177
|
"type": "object",
|
|
1239
1178
|
"additionalProperties": {
|
|
1240
1179
|
"anyOf": [
|
|
1180
|
+
{
|
|
1181
|
+
"type": "null"
|
|
1182
|
+
},
|
|
1241
1183
|
{
|
|
1242
1184
|
"type": "number"
|
|
1243
1185
|
},
|
|
@@ -1246,9 +1188,6 @@
|
|
|
1246
1188
|
},
|
|
1247
1189
|
{
|
|
1248
1190
|
"type": "boolean"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
"type": "null"
|
|
1252
1191
|
}
|
|
1253
1192
|
]
|
|
1254
1193
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"license": "FSL-1.1-ALv2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"ts-codec": "^1.3.0",
|
|
20
|
-
"@powersync/service-module-postgres": "0.
|
|
21
|
-
"@powersync/service-module-postgres-storage": "0.
|
|
22
|
-
"@powersync/service-module-mongodb": "0.
|
|
23
|
-
"@powersync/service-module-mongodb-storage": "0.
|
|
24
|
-
"@powersync/service-module-convex": "0.
|
|
25
|
-
"@powersync/service-module-mysql": "0.16.
|
|
26
|
-
"@powersync/service-module-mssql": "0.10.
|
|
27
|
-
"@powersync/service-types": "0.
|
|
20
|
+
"@powersync/service-module-postgres": "0.23.1",
|
|
21
|
+
"@powersync/service-module-postgres-storage": "0.19.1",
|
|
22
|
+
"@powersync/service-module-mongodb": "0.21.1",
|
|
23
|
+
"@powersync/service-module-mongodb-storage": "0.22.0",
|
|
24
|
+
"@powersync/service-module-convex": "0.4.1",
|
|
25
|
+
"@powersync/service-module-mysql": "0.16.2",
|
|
26
|
+
"@powersync/service-module-mssql": "0.10.2",
|
|
27
|
+
"@powersync/service-types": "0.18.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -r ./dist && tsc -b --clean",
|