@powersync/service-schema 0.0.0-dev-20260803144812 → 0.0.0-dev-20260909133214
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 +129 -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,27 +925,13 @@
|
|
|
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": {
|
|
@@ -988,6 +968,15 @@
|
|
|
988
968
|
"concurrency_limit": {
|
|
989
969
|
"type": "number"
|
|
990
970
|
},
|
|
971
|
+
"defaults_mode": {
|
|
972
|
+
"type": "string",
|
|
973
|
+
"enum": [
|
|
974
|
+
"standard",
|
|
975
|
+
"in-region",
|
|
976
|
+
"cross-region",
|
|
977
|
+
"mobile"
|
|
978
|
+
]
|
|
979
|
+
},
|
|
991
980
|
"inline_threshold_bytes": {
|
|
992
981
|
"type": "number"
|
|
993
982
|
}
|
|
@@ -1022,6 +1011,10 @@
|
|
|
1022
1011
|
"description": "Configuration for synchronization rules that define data access patterns.",
|
|
1023
1012
|
"type": "object",
|
|
1024
1013
|
"properties": {
|
|
1014
|
+
"version_label": {
|
|
1015
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1016
|
+
"type": "string"
|
|
1017
|
+
},
|
|
1025
1018
|
"path": {
|
|
1026
1019
|
"description": "Path to the sync config YAML file.",
|
|
1027
1020
|
"type": "string"
|
|
@@ -1042,6 +1035,10 @@
|
|
|
1042
1035
|
"description": "Deprecated. Use sync_config instead.",
|
|
1043
1036
|
"type": "object",
|
|
1044
1037
|
"properties": {
|
|
1038
|
+
"version_label": {
|
|
1039
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
},
|
|
1045
1042
|
"path": {
|
|
1046
1043
|
"description": "Path to the sync config YAML file.",
|
|
1047
1044
|
"type": "string"
|
|
@@ -1145,48 +1142,23 @@
|
|
|
1145
1142
|
"properties": {
|
|
1146
1143
|
"level": {
|
|
1147
1144
|
"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
|
-
}
|
|
1145
|
+
"type": "string",
|
|
1146
|
+
"enum": [
|
|
1147
|
+
"silly",
|
|
1148
|
+
"debug",
|
|
1149
|
+
"verbose",
|
|
1150
|
+
"http",
|
|
1151
|
+
"info",
|
|
1152
|
+
"warn",
|
|
1153
|
+
"error"
|
|
1177
1154
|
]
|
|
1178
1155
|
},
|
|
1179
1156
|
"format": {
|
|
1180
1157
|
"description": "Log output format.",
|
|
1181
|
-
"
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"type": "string",
|
|
1188
|
-
"const": "text"
|
|
1189
|
-
}
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"enum": [
|
|
1160
|
+
"json",
|
|
1161
|
+
"text"
|
|
1190
1162
|
]
|
|
1191
1163
|
}
|
|
1192
1164
|
},
|
|
@@ -1202,6 +1174,9 @@
|
|
|
1202
1174
|
"type": "object",
|
|
1203
1175
|
"additionalProperties": {
|
|
1204
1176
|
"anyOf": [
|
|
1177
|
+
{
|
|
1178
|
+
"type": "null"
|
|
1179
|
+
},
|
|
1205
1180
|
{
|
|
1206
1181
|
"type": "number"
|
|
1207
1182
|
},
|
|
@@ -1210,9 +1185,6 @@
|
|
|
1210
1185
|
},
|
|
1211
1186
|
{
|
|
1212
1187
|
"type": "boolean"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
"type": "null"
|
|
1216
1188
|
}
|
|
1217
1189
|
]
|
|
1218
1190
|
},
|
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-20260909133214",
|
|
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-postgres-storage": "0.0.0-dev-
|
|
22
|
-
"@powersync/service-module-mongodb": "0.0.0-dev-
|
|
23
|
-
"@powersync/service-module-mongodb-storage": "0.0.0-dev-
|
|
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-20260909133214",
|
|
21
|
+
"@powersync/service-module-postgres-storage": "0.0.0-dev-20260909133214",
|
|
22
|
+
"@powersync/service-module-mongodb": "0.0.0-dev-20260909133214",
|
|
23
|
+
"@powersync/service-module-mongodb-storage": "0.0.0-dev-20260909133214",
|
|
24
|
+
"@powersync/service-module-convex": "0.0.0-dev-20260909133214",
|
|
25
|
+
"@powersync/service-module-mysql": "0.0.0-dev-20260909133214",
|
|
26
|
+
"@powersync/service-module-mssql": "0.0.0-dev-20260909133214",
|
|
27
|
+
"@powersync/service-types": "0.18.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -r ./dist && tsc -b --clean",
|