@powersync/service-schema 0.0.0-dev-20260803144812 → 0.0.0-dev-20260929095716
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 +132 -157
- package/package.json +9 -9
|
@@ -72,18 +72,20 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"post_images": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"off",
|
|
78
|
+
"auto_configure",
|
|
79
|
+
"read_only"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"heartbeat_interval_seconds": {
|
|
75
83
|
"anyOf": [
|
|
76
84
|
{
|
|
77
|
-
"type": "
|
|
78
|
-
"const": "off"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "string",
|
|
82
|
-
"const": "auto_configure"
|
|
85
|
+
"type": "number"
|
|
83
86
|
},
|
|
84
87
|
{
|
|
85
|
-
"type": "
|
|
86
|
-
"const": "read_only"
|
|
88
|
+
"type": "null"
|
|
87
89
|
}
|
|
88
90
|
]
|
|
89
91
|
}
|
|
@@ -142,6 +144,12 @@
|
|
|
142
144
|
}
|
|
143
145
|
]
|
|
144
146
|
},
|
|
147
|
+
"cacert": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"tls_servername": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
145
153
|
"authentication": {
|
|
146
154
|
"anyOf": [
|
|
147
155
|
{
|
|
@@ -231,6 +239,16 @@
|
|
|
231
239
|
},
|
|
232
240
|
"additionalProperties": true,
|
|
233
241
|
"required": []
|
|
242
|
+
},
|
|
243
|
+
"heartbeat_interval_seconds": {
|
|
244
|
+
"anyOf": [
|
|
245
|
+
{
|
|
246
|
+
"type": "number"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "null"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
234
252
|
}
|
|
235
253
|
},
|
|
236
254
|
"additionalProperties": true,
|
|
@@ -354,19 +372,11 @@
|
|
|
354
372
|
"type": "string"
|
|
355
373
|
},
|
|
356
374
|
"sslmode": {
|
|
357
|
-
"
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
{
|
|
363
|
-
"type": "string",
|
|
364
|
-
"const": "verify-ca"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"type": "string",
|
|
368
|
-
"const": "disable"
|
|
369
|
-
}
|
|
375
|
+
"type": "string",
|
|
376
|
+
"enum": [
|
|
377
|
+
"verify-full",
|
|
378
|
+
"verify-ca",
|
|
379
|
+
"disable"
|
|
370
380
|
]
|
|
371
381
|
},
|
|
372
382
|
"cacert": {
|
|
@@ -395,6 +405,19 @@
|
|
|
395
405
|
},
|
|
396
406
|
"connect_timeout": {
|
|
397
407
|
"type": "number"
|
|
408
|
+
},
|
|
409
|
+
"snapshot_socket_timeout": {
|
|
410
|
+
"type": "number"
|
|
411
|
+
},
|
|
412
|
+
"heartbeat_interval_seconds": {
|
|
413
|
+
"anyOf": [
|
|
414
|
+
{
|
|
415
|
+
"type": "number"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"type": "null"
|
|
419
|
+
}
|
|
420
|
+
]
|
|
398
421
|
}
|
|
399
422
|
},
|
|
400
423
|
"additionalProperties": true,
|
|
@@ -516,19 +539,11 @@
|
|
|
516
539
|
},
|
|
517
540
|
"alg": {
|
|
518
541
|
"description": "The algorithm intended for use with this key (RS256, RS384, or RS512).",
|
|
519
|
-
"
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
{
|
|
525
|
-
"type": "string",
|
|
526
|
-
"const": "RS384"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"type": "string",
|
|
530
|
-
"const": "RS512"
|
|
531
|
-
}
|
|
542
|
+
"type": "string",
|
|
543
|
+
"enum": [
|
|
544
|
+
"RS256",
|
|
545
|
+
"RS384",
|
|
546
|
+
"RS512"
|
|
532
547
|
]
|
|
533
548
|
},
|
|
534
549
|
"use": {
|
|
@@ -563,19 +578,11 @@
|
|
|
563
578
|
},
|
|
564
579
|
"alg": {
|
|
565
580
|
"description": "The algorithm intended for use with this key (HS256, HS384, or HS512).",
|
|
566
|
-
"
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
{
|
|
572
|
-
"type": "string",
|
|
573
|
-
"const": "HS384"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"type": "string",
|
|
577
|
-
"const": "HS512"
|
|
578
|
-
}
|
|
581
|
+
"type": "string",
|
|
582
|
+
"enum": [
|
|
583
|
+
"HS256",
|
|
584
|
+
"HS384",
|
|
585
|
+
"HS512"
|
|
579
586
|
]
|
|
580
587
|
},
|
|
581
588
|
"use": {
|
|
@@ -605,15 +612,10 @@
|
|
|
605
612
|
},
|
|
606
613
|
"crv": {
|
|
607
614
|
"description": "The cryptographic curve used with this key. Only Ed25519 and Ed448 are supported.",
|
|
608
|
-
"
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"type": "string",
|
|
615
|
-
"const": "Ed448"
|
|
616
|
-
}
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"Ed25519",
|
|
618
|
+
"Ed448"
|
|
617
619
|
]
|
|
618
620
|
},
|
|
619
621
|
"x": {
|
|
@@ -653,19 +655,11 @@
|
|
|
653
655
|
},
|
|
654
656
|
"crv": {
|
|
655
657
|
"description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
|
|
656
|
-
"
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
{
|
|
662
|
-
"type": "string",
|
|
663
|
-
"const": "P-384"
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"type": "string",
|
|
667
|
-
"const": "P-521"
|
|
668
|
-
}
|
|
658
|
+
"type": "string",
|
|
659
|
+
"enum": [
|
|
660
|
+
"P-256",
|
|
661
|
+
"P-384",
|
|
662
|
+
"P-521"
|
|
669
663
|
]
|
|
670
664
|
},
|
|
671
665
|
"x": {
|
|
@@ -678,19 +672,11 @@
|
|
|
678
672
|
},
|
|
679
673
|
"alg": {
|
|
680
674
|
"description": "The algorithm intended for use with this key (ES256, ES384, or ES512).",
|
|
681
|
-
"
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
{
|
|
687
|
-
"type": "string",
|
|
688
|
-
"const": "ES384"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
"type": "string",
|
|
692
|
-
"const": "ES512"
|
|
693
|
-
}
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"ES256",
|
|
678
|
+
"ES384",
|
|
679
|
+
"ES512"
|
|
694
680
|
]
|
|
695
681
|
},
|
|
696
682
|
"use": {
|
|
@@ -794,6 +780,10 @@
|
|
|
794
780
|
"max_pool_size": {
|
|
795
781
|
"description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
|
|
796
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"
|
|
797
787
|
}
|
|
798
788
|
},
|
|
799
789
|
"additionalProperties": true,
|
|
@@ -811,6 +801,10 @@
|
|
|
811
801
|
"max_pool_size": {
|
|
812
802
|
"type": "number"
|
|
813
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
|
+
},
|
|
814
808
|
"id": {
|
|
815
809
|
"type": "string"
|
|
816
810
|
},
|
|
@@ -844,19 +838,11 @@
|
|
|
844
838
|
"type": "string"
|
|
845
839
|
},
|
|
846
840
|
"sslmode": {
|
|
847
|
-
"
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
{
|
|
853
|
-
"type": "string",
|
|
854
|
-
"const": "verify-ca"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"type": "string",
|
|
858
|
-
"const": "disable"
|
|
859
|
-
}
|
|
841
|
+
"type": "string",
|
|
842
|
+
"enum": [
|
|
843
|
+
"verify-full",
|
|
844
|
+
"verify-ca",
|
|
845
|
+
"disable"
|
|
860
846
|
]
|
|
861
847
|
},
|
|
862
848
|
"cacert": {
|
|
@@ -912,6 +898,14 @@
|
|
|
912
898
|
"type": "string",
|
|
913
899
|
"const": "mongodb"
|
|
914
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
|
+
},
|
|
915
909
|
"uri": {
|
|
916
910
|
"type": "string"
|
|
917
911
|
},
|
|
@@ -931,32 +925,21 @@
|
|
|
931
925
|
}
|
|
932
926
|
},
|
|
933
927
|
"bulk_read_preference": {
|
|
934
|
-
"
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
"const": "primaryPreferred"
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"type": "string",
|
|
945
|
-
"const": "secondary"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"type": "string",
|
|
949
|
-
"const": "secondaryPreferred"
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"type": "string",
|
|
953
|
-
"const": "nearest"
|
|
954
|
-
}
|
|
928
|
+
"type": "string",
|
|
929
|
+
"enum": [
|
|
930
|
+
"primary",
|
|
931
|
+
"primaryPreferred",
|
|
932
|
+
"secondary",
|
|
933
|
+
"secondaryPreferred",
|
|
934
|
+
"nearest"
|
|
955
935
|
]
|
|
956
936
|
},
|
|
957
937
|
"clear_batch_throttle_rate": {
|
|
958
938
|
"type": "number"
|
|
959
939
|
},
|
|
940
|
+
"chunk_compaction_concurrency": {
|
|
941
|
+
"type": "number"
|
|
942
|
+
},
|
|
960
943
|
"object_storage": {
|
|
961
944
|
"type": "object",
|
|
962
945
|
"properties": {
|
|
@@ -988,6 +971,15 @@
|
|
|
988
971
|
"concurrency_limit": {
|
|
989
972
|
"type": "number"
|
|
990
973
|
},
|
|
974
|
+
"defaults_mode": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"enum": [
|
|
977
|
+
"standard",
|
|
978
|
+
"in-region",
|
|
979
|
+
"cross-region",
|
|
980
|
+
"mobile"
|
|
981
|
+
]
|
|
982
|
+
},
|
|
991
983
|
"inline_threshold_bytes": {
|
|
992
984
|
"type": "number"
|
|
993
985
|
}
|
|
@@ -1022,6 +1014,10 @@
|
|
|
1022
1014
|
"description": "Configuration for synchronization rules that define data access patterns.",
|
|
1023
1015
|
"type": "object",
|
|
1024
1016
|
"properties": {
|
|
1017
|
+
"version_label": {
|
|
1018
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
},
|
|
1025
1021
|
"path": {
|
|
1026
1022
|
"description": "Path to the sync config YAML file.",
|
|
1027
1023
|
"type": "string"
|
|
@@ -1042,6 +1038,10 @@
|
|
|
1042
1038
|
"description": "Deprecated. Use sync_config instead.",
|
|
1043
1039
|
"type": "object",
|
|
1044
1040
|
"properties": {
|
|
1041
|
+
"version_label": {
|
|
1042
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1043
|
+
"type": "string"
|
|
1044
|
+
},
|
|
1045
1045
|
"path": {
|
|
1046
1046
|
"description": "Path to the sync config YAML file.",
|
|
1047
1047
|
"type": "string"
|
|
@@ -1145,48 +1145,23 @@
|
|
|
1145
1145
|
"properties": {
|
|
1146
1146
|
"level": {
|
|
1147
1147
|
"description": "Log level for the service logs.",
|
|
1148
|
-
"
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
{
|
|
1158
|
-
"type": "string",
|
|
1159
|
-
"const": "verbose"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
"type": "string",
|
|
1163
|
-
"const": "http"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"type": "string",
|
|
1167
|
-
"const": "info"
|
|
1168
|
-
},
|
|
1169
|
-
{
|
|
1170
|
-
"type": "string",
|
|
1171
|
-
"const": "warn"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
"type": "string",
|
|
1175
|
-
"const": "error"
|
|
1176
|
-
}
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"enum": [
|
|
1150
|
+
"silly",
|
|
1151
|
+
"debug",
|
|
1152
|
+
"verbose",
|
|
1153
|
+
"http",
|
|
1154
|
+
"info",
|
|
1155
|
+
"warn",
|
|
1156
|
+
"error"
|
|
1177
1157
|
]
|
|
1178
1158
|
},
|
|
1179
1159
|
"format": {
|
|
1180
1160
|
"description": "Log output format.",
|
|
1181
|
-
"
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"type": "string",
|
|
1188
|
-
"const": "text"
|
|
1189
|
-
}
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"enum": [
|
|
1163
|
+
"json",
|
|
1164
|
+
"text"
|
|
1190
1165
|
]
|
|
1191
1166
|
}
|
|
1192
1167
|
},
|
|
@@ -1202,6 +1177,9 @@
|
|
|
1202
1177
|
"type": "object",
|
|
1203
1178
|
"additionalProperties": {
|
|
1204
1179
|
"anyOf": [
|
|
1180
|
+
{
|
|
1181
|
+
"type": "null"
|
|
1182
|
+
},
|
|
1205
1183
|
{
|
|
1206
1184
|
"type": "number"
|
|
1207
1185
|
},
|
|
@@ -1210,9 +1188,6 @@
|
|
|
1210
1188
|
},
|
|
1211
1189
|
{
|
|
1212
1190
|
"type": "boolean"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
"type": "null"
|
|
1216
1191
|
}
|
|
1217
1192
|
]
|
|
1218
1193
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-schema",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260929095716",
|
|
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.0.0-dev-
|
|
21
|
-
"@powersync/service-module-
|
|
22
|
-
"@powersync/service-module-mongodb": "0.0.0-dev-
|
|
23
|
-
"@powersync/service-module-
|
|
24
|
-
"@powersync/service-module-convex": "0.0.0-dev-
|
|
25
|
-
"@powersync/service-module-mysql": "0.0.0-dev-
|
|
26
|
-
"@powersync/service-module-mssql": "0.0.0-dev-
|
|
27
|
-
"@powersync/service-types": "0.
|
|
20
|
+
"@powersync/service-module-postgres": "0.0.0-dev-20260929095716",
|
|
21
|
+
"@powersync/service-module-mongodb": "0.0.0-dev-20260929095716",
|
|
22
|
+
"@powersync/service-module-mongodb-storage": "0.0.0-dev-20260929095716",
|
|
23
|
+
"@powersync/service-module-postgres-storage": "0.0.0-dev-20260929095716",
|
|
24
|
+
"@powersync/service-module-convex": "0.0.0-dev-20260929095716",
|
|
25
|
+
"@powersync/service-module-mysql": "0.0.0-dev-20260929095716",
|
|
26
|
+
"@powersync/service-module-mssql": "0.0.0-dev-20260929095716",
|
|
27
|
+
"@powersync/service-types": "0.18.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -r ./dist && tsc -b --clean",
|