@powersync/service-schema 1.24.0 → 1.26.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/json-schema/powersync-config.json +104 -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": {
|
|
@@ -152,6 +144,12 @@
|
|
|
152
144
|
}
|
|
153
145
|
]
|
|
154
146
|
},
|
|
147
|
+
"cacert": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"tls_servername": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
155
153
|
"authentication": {
|
|
156
154
|
"anyOf": [
|
|
157
155
|
{
|
|
@@ -374,19 +372,11 @@
|
|
|
374
372
|
"type": "string"
|
|
375
373
|
},
|
|
376
374
|
"sslmode": {
|
|
377
|
-
"
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
{
|
|
383
|
-
"type": "string",
|
|
384
|
-
"const": "verify-ca"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"type": "string",
|
|
388
|
-
"const": "disable"
|
|
389
|
-
}
|
|
375
|
+
"type": "string",
|
|
376
|
+
"enum": [
|
|
377
|
+
"verify-full",
|
|
378
|
+
"verify-ca",
|
|
379
|
+
"disable"
|
|
390
380
|
]
|
|
391
381
|
},
|
|
392
382
|
"cacert": {
|
|
@@ -416,6 +406,9 @@
|
|
|
416
406
|
"connect_timeout": {
|
|
417
407
|
"type": "number"
|
|
418
408
|
},
|
|
409
|
+
"snapshot_socket_timeout": {
|
|
410
|
+
"type": "number"
|
|
411
|
+
},
|
|
419
412
|
"heartbeat_interval_seconds": {
|
|
420
413
|
"anyOf": [
|
|
421
414
|
{
|
|
@@ -546,19 +539,11 @@
|
|
|
546
539
|
},
|
|
547
540
|
"alg": {
|
|
548
541
|
"description": "The algorithm intended for use with this key (RS256, RS384, or RS512).",
|
|
549
|
-
"
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
{
|
|
555
|
-
"type": "string",
|
|
556
|
-
"const": "RS384"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"type": "string",
|
|
560
|
-
"const": "RS512"
|
|
561
|
-
}
|
|
542
|
+
"type": "string",
|
|
543
|
+
"enum": [
|
|
544
|
+
"RS256",
|
|
545
|
+
"RS384",
|
|
546
|
+
"RS512"
|
|
562
547
|
]
|
|
563
548
|
},
|
|
564
549
|
"use": {
|
|
@@ -593,19 +578,11 @@
|
|
|
593
578
|
},
|
|
594
579
|
"alg": {
|
|
595
580
|
"description": "The algorithm intended for use with this key (HS256, HS384, or HS512).",
|
|
596
|
-
"
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
{
|
|
602
|
-
"type": "string",
|
|
603
|
-
"const": "HS384"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"type": "string",
|
|
607
|
-
"const": "HS512"
|
|
608
|
-
}
|
|
581
|
+
"type": "string",
|
|
582
|
+
"enum": [
|
|
583
|
+
"HS256",
|
|
584
|
+
"HS384",
|
|
585
|
+
"HS512"
|
|
609
586
|
]
|
|
610
587
|
},
|
|
611
588
|
"use": {
|
|
@@ -635,15 +612,10 @@
|
|
|
635
612
|
},
|
|
636
613
|
"crv": {
|
|
637
614
|
"description": "The cryptographic curve used with this key. Only Ed25519 and Ed448 are supported.",
|
|
638
|
-
"
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
"type": "string",
|
|
645
|
-
"const": "Ed448"
|
|
646
|
-
}
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"Ed25519",
|
|
618
|
+
"Ed448"
|
|
647
619
|
]
|
|
648
620
|
},
|
|
649
621
|
"x": {
|
|
@@ -683,19 +655,11 @@
|
|
|
683
655
|
},
|
|
684
656
|
"crv": {
|
|
685
657
|
"description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
|
|
686
|
-
"
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
{
|
|
692
|
-
"type": "string",
|
|
693
|
-
"const": "P-384"
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
"type": "string",
|
|
697
|
-
"const": "P-521"
|
|
698
|
-
}
|
|
658
|
+
"type": "string",
|
|
659
|
+
"enum": [
|
|
660
|
+
"P-256",
|
|
661
|
+
"P-384",
|
|
662
|
+
"P-521"
|
|
699
663
|
]
|
|
700
664
|
},
|
|
701
665
|
"x": {
|
|
@@ -708,19 +672,11 @@
|
|
|
708
672
|
},
|
|
709
673
|
"alg": {
|
|
710
674
|
"description": "The algorithm intended for use with this key (ES256, ES384, or ES512).",
|
|
711
|
-
"
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
{
|
|
717
|
-
"type": "string",
|
|
718
|
-
"const": "ES384"
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
"type": "string",
|
|
722
|
-
"const": "ES512"
|
|
723
|
-
}
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"ES256",
|
|
678
|
+
"ES384",
|
|
679
|
+
"ES512"
|
|
724
680
|
]
|
|
725
681
|
},
|
|
726
682
|
"use": {
|
|
@@ -824,6 +780,10 @@
|
|
|
824
780
|
"max_pool_size": {
|
|
825
781
|
"description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
|
|
826
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"
|
|
827
787
|
}
|
|
828
788
|
},
|
|
829
789
|
"additionalProperties": true,
|
|
@@ -841,6 +801,10 @@
|
|
|
841
801
|
"max_pool_size": {
|
|
842
802
|
"type": "number"
|
|
843
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
|
+
},
|
|
844
808
|
"id": {
|
|
845
809
|
"type": "string"
|
|
846
810
|
},
|
|
@@ -874,19 +838,11 @@
|
|
|
874
838
|
"type": "string"
|
|
875
839
|
},
|
|
876
840
|
"sslmode": {
|
|
877
|
-
"
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
{
|
|
883
|
-
"type": "string",
|
|
884
|
-
"const": "verify-ca"
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"type": "string",
|
|
888
|
-
"const": "disable"
|
|
889
|
-
}
|
|
841
|
+
"type": "string",
|
|
842
|
+
"enum": [
|
|
843
|
+
"verify-full",
|
|
844
|
+
"verify-ca",
|
|
845
|
+
"disable"
|
|
890
846
|
]
|
|
891
847
|
},
|
|
892
848
|
"cacert": {
|
|
@@ -942,6 +898,14 @@
|
|
|
942
898
|
"type": "string",
|
|
943
899
|
"const": "mongodb"
|
|
944
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
|
+
},
|
|
945
909
|
"uri": {
|
|
946
910
|
"type": "string"
|
|
947
911
|
},
|
|
@@ -961,27 +925,13 @@
|
|
|
961
925
|
}
|
|
962
926
|
},
|
|
963
927
|
"bulk_read_preference": {
|
|
964
|
-
"
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
"const": "primaryPreferred"
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"type": "string",
|
|
975
|
-
"const": "secondary"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
"type": "string",
|
|
979
|
-
"const": "secondaryPreferred"
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"type": "string",
|
|
983
|
-
"const": "nearest"
|
|
984
|
-
}
|
|
928
|
+
"type": "string",
|
|
929
|
+
"enum": [
|
|
930
|
+
"primary",
|
|
931
|
+
"primaryPreferred",
|
|
932
|
+
"secondary",
|
|
933
|
+
"secondaryPreferred",
|
|
934
|
+
"nearest"
|
|
985
935
|
]
|
|
986
936
|
},
|
|
987
937
|
"clear_batch_throttle_rate": {
|
|
@@ -1018,6 +968,15 @@
|
|
|
1018
968
|
"concurrency_limit": {
|
|
1019
969
|
"type": "number"
|
|
1020
970
|
},
|
|
971
|
+
"defaults_mode": {
|
|
972
|
+
"type": "string",
|
|
973
|
+
"enum": [
|
|
974
|
+
"standard",
|
|
975
|
+
"in-region",
|
|
976
|
+
"cross-region",
|
|
977
|
+
"mobile"
|
|
978
|
+
]
|
|
979
|
+
},
|
|
1021
980
|
"inline_threshold_bytes": {
|
|
1022
981
|
"type": "number"
|
|
1023
982
|
}
|
|
@@ -1052,6 +1011,10 @@
|
|
|
1052
1011
|
"description": "Configuration for synchronization rules that define data access patterns.",
|
|
1053
1012
|
"type": "object",
|
|
1054
1013
|
"properties": {
|
|
1014
|
+
"version_label": {
|
|
1015
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1016
|
+
"type": "string"
|
|
1017
|
+
},
|
|
1055
1018
|
"path": {
|
|
1056
1019
|
"description": "Path to the sync config YAML file.",
|
|
1057
1020
|
"type": "string"
|
|
@@ -1072,6 +1035,10 @@
|
|
|
1072
1035
|
"description": "Deprecated. Use sync_config instead.",
|
|
1073
1036
|
"type": "object",
|
|
1074
1037
|
"properties": {
|
|
1038
|
+
"version_label": {
|
|
1039
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
},
|
|
1075
1042
|
"path": {
|
|
1076
1043
|
"description": "Path to the sync config YAML file.",
|
|
1077
1044
|
"type": "string"
|
|
@@ -1175,48 +1142,23 @@
|
|
|
1175
1142
|
"properties": {
|
|
1176
1143
|
"level": {
|
|
1177
1144
|
"description": "Log level for the service logs.",
|
|
1178
|
-
"
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
{
|
|
1188
|
-
"type": "string",
|
|
1189
|
-
"const": "verbose"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"type": "string",
|
|
1193
|
-
"const": "http"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"type": "string",
|
|
1197
|
-
"const": "info"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"type": "string",
|
|
1201
|
-
"const": "warn"
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
"type": "string",
|
|
1205
|
-
"const": "error"
|
|
1206
|
-
}
|
|
1145
|
+
"type": "string",
|
|
1146
|
+
"enum": [
|
|
1147
|
+
"silly",
|
|
1148
|
+
"debug",
|
|
1149
|
+
"verbose",
|
|
1150
|
+
"http",
|
|
1151
|
+
"info",
|
|
1152
|
+
"warn",
|
|
1153
|
+
"error"
|
|
1207
1154
|
]
|
|
1208
1155
|
},
|
|
1209
1156
|
"format": {
|
|
1210
1157
|
"description": "Log output format.",
|
|
1211
|
-
"
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
"type": "string",
|
|
1218
|
-
"const": "text"
|
|
1219
|
-
}
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"enum": [
|
|
1160
|
+
"json",
|
|
1161
|
+
"text"
|
|
1220
1162
|
]
|
|
1221
1163
|
}
|
|
1222
1164
|
},
|
|
@@ -1232,6 +1174,9 @@
|
|
|
1232
1174
|
"type": "object",
|
|
1233
1175
|
"additionalProperties": {
|
|
1234
1176
|
"anyOf": [
|
|
1177
|
+
{
|
|
1178
|
+
"type": "null"
|
|
1179
|
+
},
|
|
1235
1180
|
{
|
|
1236
1181
|
"type": "number"
|
|
1237
1182
|
},
|
|
@@ -1240,9 +1185,6 @@
|
|
|
1240
1185
|
},
|
|
1241
1186
|
{
|
|
1242
1187
|
"type": "boolean"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"type": "null"
|
|
1246
1188
|
}
|
|
1247
1189
|
]
|
|
1248
1190
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
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-
|
|
22
|
-
"@powersync/service-module-
|
|
23
|
-
"@powersync/service-module-mongodb-storage": "0.
|
|
24
|
-
"@powersync/service-module-convex": "0.
|
|
25
|
-
"@powersync/service-module-mysql": "0.
|
|
26
|
-
"@powersync/service-module-mssql": "0.
|
|
27
|
-
"@powersync/service-types": "0.
|
|
20
|
+
"@powersync/service-module-postgres": "0.23.0",
|
|
21
|
+
"@powersync/service-module-postgres-storage": "0.19.0",
|
|
22
|
+
"@powersync/service-module-mongodb": "0.21.0",
|
|
23
|
+
"@powersync/service-module-mongodb-storage": "0.21.0",
|
|
24
|
+
"@powersync/service-module-convex": "0.4.0",
|
|
25
|
+
"@powersync/service-module-mysql": "0.16.1",
|
|
26
|
+
"@powersync/service-module-mssql": "0.10.1",
|
|
27
|
+
"@powersync/service-types": "0.18.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -r ./dist && tsc -b --clean",
|