@powersync/service-schema 0.0.0-dev-20260602073133 → 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 +184 -136
- package/package.json +10 -16
|
@@ -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": {
|
|
@@ -765,6 +751,14 @@
|
|
|
765
751
|
"max_parameter_query_results": {
|
|
766
752
|
"description": "Related to max_buckets_per_connection, but this limit applies directly on the parameter\nquery results, _before_ we convert it into an unique set.\nDefault of 1000.",
|
|
767
753
|
"type": "number"
|
|
754
|
+
},
|
|
755
|
+
"checkpoint_request_retention_minutes": {
|
|
756
|
+
"description": "Number of minutes to keep client-requested write checkpoint records.\nExpired records are removed by the compact job.\nMust be a positive integer. Default of 60.",
|
|
757
|
+
"type": "number"
|
|
758
|
+
},
|
|
759
|
+
"bucket_count_cache_ttl_minutes": {
|
|
760
|
+
"description": "How long to keep cached bucket counts before refreshing them, in minutes.\nBucket counts may be affected by compacting.\nDefault of 60 (1 hour).",
|
|
761
|
+
"type": "number"
|
|
768
762
|
}
|
|
769
763
|
},
|
|
770
764
|
"additionalProperties": true,
|
|
@@ -786,6 +780,10 @@
|
|
|
786
780
|
"max_pool_size": {
|
|
787
781
|
"description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
|
|
788
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"
|
|
789
787
|
}
|
|
790
788
|
},
|
|
791
789
|
"additionalProperties": true,
|
|
@@ -803,6 +801,10 @@
|
|
|
803
801
|
"max_pool_size": {
|
|
804
802
|
"type": "number"
|
|
805
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
|
+
},
|
|
806
808
|
"id": {
|
|
807
809
|
"type": "string"
|
|
808
810
|
},
|
|
@@ -836,19 +838,11 @@
|
|
|
836
838
|
"type": "string"
|
|
837
839
|
},
|
|
838
840
|
"sslmode": {
|
|
839
|
-
"
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
{
|
|
845
|
-
"type": "string",
|
|
846
|
-
"const": "verify-ca"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"type": "string",
|
|
850
|
-
"const": "disable"
|
|
851
|
-
}
|
|
841
|
+
"type": "string",
|
|
842
|
+
"enum": [
|
|
843
|
+
"verify-full",
|
|
844
|
+
"verify-ca",
|
|
845
|
+
"disable"
|
|
852
846
|
]
|
|
853
847
|
},
|
|
854
848
|
"cacert": {
|
|
@@ -904,6 +898,14 @@
|
|
|
904
898
|
"type": "string",
|
|
905
899
|
"const": "mongodb"
|
|
906
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
|
+
},
|
|
907
909
|
"uri": {
|
|
908
910
|
"type": "string"
|
|
909
911
|
},
|
|
@@ -921,6 +923,69 @@
|
|
|
921
923
|
"items": {
|
|
922
924
|
"type": "string"
|
|
923
925
|
}
|
|
926
|
+
},
|
|
927
|
+
"bulk_read_preference": {
|
|
928
|
+
"type": "string",
|
|
929
|
+
"enum": [
|
|
930
|
+
"primary",
|
|
931
|
+
"primaryPreferred",
|
|
932
|
+
"secondary",
|
|
933
|
+
"secondaryPreferred",
|
|
934
|
+
"nearest"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"clear_batch_throttle_rate": {
|
|
938
|
+
"type": "number"
|
|
939
|
+
},
|
|
940
|
+
"object_storage": {
|
|
941
|
+
"type": "object",
|
|
942
|
+
"properties": {
|
|
943
|
+
"type": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"const": "s3"
|
|
946
|
+
},
|
|
947
|
+
"bucket": {
|
|
948
|
+
"type": "string"
|
|
949
|
+
},
|
|
950
|
+
"region": {
|
|
951
|
+
"type": "string"
|
|
952
|
+
},
|
|
953
|
+
"prefix": {
|
|
954
|
+
"type": "string"
|
|
955
|
+
},
|
|
956
|
+
"endpoint": {
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
"force_path_style": {
|
|
960
|
+
"type": "boolean"
|
|
961
|
+
},
|
|
962
|
+
"access_key_id": {
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
"secret_access_key": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
"concurrency_limit": {
|
|
969
|
+
"type": "number"
|
|
970
|
+
},
|
|
971
|
+
"defaults_mode": {
|
|
972
|
+
"type": "string",
|
|
973
|
+
"enum": [
|
|
974
|
+
"standard",
|
|
975
|
+
"in-region",
|
|
976
|
+
"cross-region",
|
|
977
|
+
"mobile"
|
|
978
|
+
]
|
|
979
|
+
},
|
|
980
|
+
"inline_threshold_bytes": {
|
|
981
|
+
"type": "number"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"additionalProperties": true,
|
|
985
|
+
"required": [
|
|
986
|
+
"type",
|
|
987
|
+
"bucket"
|
|
988
|
+
]
|
|
924
989
|
}
|
|
925
990
|
},
|
|
926
991
|
"additionalProperties": true,
|
|
@@ -946,6 +1011,10 @@
|
|
|
946
1011
|
"description": "Configuration for synchronization rules that define data access patterns.",
|
|
947
1012
|
"type": "object",
|
|
948
1013
|
"properties": {
|
|
1014
|
+
"version_label": {
|
|
1015
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1016
|
+
"type": "string"
|
|
1017
|
+
},
|
|
949
1018
|
"path": {
|
|
950
1019
|
"description": "Path to the sync config YAML file.",
|
|
951
1020
|
"type": "string"
|
|
@@ -966,6 +1035,10 @@
|
|
|
966
1035
|
"description": "Deprecated. Use sync_config instead.",
|
|
967
1036
|
"type": "object",
|
|
968
1037
|
"properties": {
|
|
1038
|
+
"version_label": {
|
|
1039
|
+
"description": "Optional label identifying this deployed sync config version.",
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
},
|
|
969
1042
|
"path": {
|
|
970
1043
|
"description": "Path to the sync config YAML file.",
|
|
971
1044
|
"type": "string"
|
|
@@ -1069,48 +1142,23 @@
|
|
|
1069
1142
|
"properties": {
|
|
1070
1143
|
"level": {
|
|
1071
1144
|
"description": "Log level for the service logs.",
|
|
1072
|
-
"
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
{
|
|
1082
|
-
"type": "string",
|
|
1083
|
-
"const": "verbose"
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
"type": "string",
|
|
1087
|
-
"const": "http"
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
"type": "string",
|
|
1091
|
-
"const": "info"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"type": "string",
|
|
1095
|
-
"const": "warn"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
"type": "string",
|
|
1099
|
-
"const": "error"
|
|
1100
|
-
}
|
|
1145
|
+
"type": "string",
|
|
1146
|
+
"enum": [
|
|
1147
|
+
"silly",
|
|
1148
|
+
"debug",
|
|
1149
|
+
"verbose",
|
|
1150
|
+
"http",
|
|
1151
|
+
"info",
|
|
1152
|
+
"warn",
|
|
1153
|
+
"error"
|
|
1101
1154
|
]
|
|
1102
1155
|
},
|
|
1103
1156
|
"format": {
|
|
1104
1157
|
"description": "Log output format.",
|
|
1105
|
-
"
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
"type": "string",
|
|
1112
|
-
"const": "text"
|
|
1113
|
-
}
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"enum": [
|
|
1160
|
+
"json",
|
|
1161
|
+
"text"
|
|
1114
1162
|
]
|
|
1115
1163
|
}
|
|
1116
1164
|
},
|
|
@@ -1126,6 +1174,9 @@
|
|
|
1126
1174
|
"type": "object",
|
|
1127
1175
|
"additionalProperties": {
|
|
1128
1176
|
"anyOf": [
|
|
1177
|
+
{
|
|
1178
|
+
"type": "null"
|
|
1179
|
+
},
|
|
1129
1180
|
{
|
|
1130
1181
|
"type": "number"
|
|
1131
1182
|
},
|
|
@@ -1134,9 +1185,6 @@
|
|
|
1134
1185
|
},
|
|
1135
1186
|
{
|
|
1136
1187
|
"type": "boolean"
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"type": "null"
|
|
1140
1188
|
}
|
|
1141
1189
|
]
|
|
1142
1190
|
},
|
package/package.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-schema",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "0.0.0-dev-20260909133214",
|
|
6
4
|
"license": "FSL-1.1-ALv2",
|
|
7
5
|
"type": "module",
|
|
8
6
|
"publishConfig": {
|
|
@@ -13,24 +11,20 @@
|
|
|
13
11
|
"json-schema/*"
|
|
14
12
|
],
|
|
15
13
|
"exports": {
|
|
16
|
-
".":
|
|
17
|
-
"import": "./dist/index.js",
|
|
18
|
-
"require": "./dist/index.js",
|
|
19
|
-
"default": "./dist/index.js"
|
|
20
|
-
},
|
|
14
|
+
".": "./dist/index.js",
|
|
21
15
|
"./schema.json": "./json-schema/powersync-config.json"
|
|
22
16
|
},
|
|
23
17
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
24
18
|
"devDependencies": {
|
|
25
19
|
"ts-codec": "^1.3.0",
|
|
26
|
-
"@powersync/service-module-postgres": "0.0.0-dev-
|
|
27
|
-
"@powersync/service-module-postgres-storage": "0.0.0-dev-
|
|
28
|
-
"@powersync/service-module-mongodb": "0.0.0-dev-
|
|
29
|
-
"@powersync/service-module-mongodb-storage": "0.0.0-dev-
|
|
30
|
-
"@powersync/service-module-convex": "0.0.0-dev-
|
|
31
|
-
"@powersync/service-module-mysql": "0.0.0-dev-
|
|
32
|
-
"@powersync/service-module-mssql": "0.0.0-dev-
|
|
33
|
-
"@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"
|
|
34
28
|
},
|
|
35
29
|
"scripts": {
|
|
36
30
|
"clean": "rm -r ./dist && tsc -b --clean",
|