@powersync/service-schema 1.25.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.
@@ -72,19 +72,11 @@
72
72
  }
73
73
  },
74
74
  "post_images": {
75
- "anyOf": [
76
- {
77
- "type": "string",
78
- "const": "off"
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
- "anyOf": [
384
- {
385
- "type": "string",
386
- "const": "verify-full"
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
- "anyOf": [
556
- {
557
- "type": "string",
558
- "const": "RS256"
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
- "anyOf": [
603
- {
604
- "type": "string",
605
- "const": "HS256"
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
- "anyOf": [
645
- {
646
- "type": "string",
647
- "const": "Ed25519"
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
- "anyOf": [
693
- {
694
- "type": "string",
695
- "const": "P-256"
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
- "anyOf": [
718
- {
719
- "type": "string",
720
- "const": "ES256"
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
- "anyOf": [
884
- {
885
- "type": "string",
886
- "const": "verify-full"
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,27 +925,13 @@
967
925
  }
968
926
  },
969
927
  "bulk_read_preference": {
970
- "anyOf": [
971
- {
972
- "type": "string",
973
- "const": "primary"
974
- },
975
- {
976
- "type": "string",
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": {
@@ -1024,6 +968,15 @@
1024
968
  "concurrency_limit": {
1025
969
  "type": "number"
1026
970
  },
971
+ "defaults_mode": {
972
+ "type": "string",
973
+ "enum": [
974
+ "standard",
975
+ "in-region",
976
+ "cross-region",
977
+ "mobile"
978
+ ]
979
+ },
1027
980
  "inline_threshold_bytes": {
1028
981
  "type": "number"
1029
982
  }
@@ -1058,6 +1011,10 @@
1058
1011
  "description": "Configuration for synchronization rules that define data access patterns.",
1059
1012
  "type": "object",
1060
1013
  "properties": {
1014
+ "version_label": {
1015
+ "description": "Optional label identifying this deployed sync config version.",
1016
+ "type": "string"
1017
+ },
1061
1018
  "path": {
1062
1019
  "description": "Path to the sync config YAML file.",
1063
1020
  "type": "string"
@@ -1078,6 +1035,10 @@
1078
1035
  "description": "Deprecated. Use sync_config instead.",
1079
1036
  "type": "object",
1080
1037
  "properties": {
1038
+ "version_label": {
1039
+ "description": "Optional label identifying this deployed sync config version.",
1040
+ "type": "string"
1041
+ },
1081
1042
  "path": {
1082
1043
  "description": "Path to the sync config YAML file.",
1083
1044
  "type": "string"
@@ -1181,48 +1142,23 @@
1181
1142
  "properties": {
1182
1143
  "level": {
1183
1144
  "description": "Log level for the service logs.",
1184
- "anyOf": [
1185
- {
1186
- "type": "string",
1187
- "const": "silly"
1188
- },
1189
- {
1190
- "type": "string",
1191
- "const": "debug"
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
- }
1145
+ "type": "string",
1146
+ "enum": [
1147
+ "silly",
1148
+ "debug",
1149
+ "verbose",
1150
+ "http",
1151
+ "info",
1152
+ "warn",
1153
+ "error"
1213
1154
  ]
1214
1155
  },
1215
1156
  "format": {
1216
1157
  "description": "Log output format.",
1217
- "anyOf": [
1218
- {
1219
- "type": "string",
1220
- "const": "json"
1221
- },
1222
- {
1223
- "type": "string",
1224
- "const": "text"
1225
- }
1158
+ "type": "string",
1159
+ "enum": [
1160
+ "json",
1161
+ "text"
1226
1162
  ]
1227
1163
  }
1228
1164
  },
@@ -1238,6 +1174,9 @@
1238
1174
  "type": "object",
1239
1175
  "additionalProperties": {
1240
1176
  "anyOf": [
1177
+ {
1178
+ "type": "null"
1179
+ },
1241
1180
  {
1242
1181
  "type": "number"
1243
1182
  },
@@ -1246,9 +1185,6 @@
1246
1185
  },
1247
1186
  {
1248
1187
  "type": "boolean"
1249
- },
1250
- {
1251
- "type": "null"
1252
1188
  }
1253
1189
  ]
1254
1190
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/service-schema",
3
- "version": "1.25.0",
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.22.1",
21
- "@powersync/service-module-postgres-storage": "0.18.0",
22
- "@powersync/service-module-mongodb": "0.20.1",
23
- "@powersync/service-module-mongodb-storage": "0.20.0",
24
- "@powersync/service-module-convex": "0.3.1",
25
- "@powersync/service-module-mysql": "0.16.0",
26
- "@powersync/service-module-mssql": "0.10.0",
27
- "@powersync/service-types": "0.17.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",