@powersync/cli-schemas 0.10.1 → 0.10.2

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.
@@ -66,6 +66,8 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
66
66
  hostname?: string | undefined;
67
67
  port?: number | undefined;
68
68
  schema?: string | undefined;
69
+ cacert?: string | undefined;
70
+ tls_servername?: string | undefined;
69
71
  authentication?: {
70
72
  type: "default";
71
73
  options: {
@@ -136,6 +138,7 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
136
138
  vpc_endpoint_hostname?: string | undefined;
137
139
  hostname?: string | undefined;
138
140
  port?: number | undefined;
141
+ cacert?: string | undefined;
139
142
  debug_api?: boolean | undefined;
140
143
  client_certificate?: string | undefined;
141
144
  client_private_key?: {
@@ -144,7 +147,6 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
144
147
  secret_ref: string;
145
148
  } | undefined;
146
149
  sslmode?: "verify-full" | "verify-ca" | undefined;
147
- cacert?: string | undefined;
148
150
  }))[] | undefined;
149
151
  } | undefined;
150
152
  client_auth?: {
@@ -251,6 +253,8 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
251
253
  hostname?: string | undefined;
252
254
  port?: number | undefined;
253
255
  schema?: string | undefined;
256
+ cacert?: string | undefined;
257
+ tls_servername?: string | undefined;
254
258
  authentication?: {
255
259
  type: "default";
256
260
  options: {
@@ -321,6 +325,7 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
321
325
  vpc_endpoint_hostname?: string | undefined;
322
326
  hostname?: string | undefined;
323
327
  port?: number | undefined;
328
+ cacert?: string | undefined;
324
329
  debug_api?: boolean | undefined;
325
330
  client_certificate?: string | undefined;
326
331
  client_private_key?: {
@@ -329,7 +334,6 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
329
334
  secret_ref: string;
330
335
  } | undefined;
331
336
  sslmode?: "verify-full" | "verify-ca" | undefined;
332
- cacert?: string | undefined;
333
337
  }))[] | undefined;
334
338
  } | undefined;
335
339
  client_auth?: {
@@ -3,6 +3,7 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
3
3
  storage: {
4
4
  type: string;
5
5
  max_pool_size?: number | undefined;
6
+ default_storage_version?: number | undefined;
6
7
  } & Record<string, any>;
7
8
  replication?: {
8
9
  connections?: ({
@@ -59,15 +60,19 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
59
60
  max_data_fetch_concurrency?: number | undefined;
60
61
  max_buckets_per_connection?: number | undefined;
61
62
  max_parameter_query_results?: number | undefined;
63
+ checkpoint_request_retention_minutes?: number | undefined;
64
+ bucket_count_cache_ttl_minutes?: number | undefined;
62
65
  } | undefined;
63
66
  } | undefined;
64
67
  port?: number | undefined;
65
68
  sync_config?: {
69
+ version_label?: string | undefined;
66
70
  content?: string | undefined;
67
71
  path?: string | undefined;
68
72
  exit_on_error?: boolean | undefined;
69
73
  } | undefined;
70
74
  sync_rules?: {
75
+ version_label?: string | undefined;
71
76
  content?: string | undefined;
72
77
  path?: string | undefined;
73
78
  exit_on_error?: boolean | undefined;
@@ -98,6 +103,7 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
98
103
  storage: {
99
104
  type: string;
100
105
  max_pool_size?: number | undefined;
106
+ default_storage_version?: number | undefined;
101
107
  } & Record<string, any>;
102
108
  replication?: {
103
109
  connections?: ({
@@ -154,15 +160,19 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
154
160
  max_data_fetch_concurrency?: number | undefined;
155
161
  max_buckets_per_connection?: number | undefined;
156
162
  max_parameter_query_results?: number | undefined;
163
+ checkpoint_request_retention_minutes?: number | undefined;
164
+ bucket_count_cache_ttl_minutes?: number | undefined;
157
165
  } | undefined;
158
166
  } | undefined;
159
167
  port?: string | number | undefined;
160
168
  sync_config?: {
169
+ version_label?: string | undefined;
161
170
  content?: string | undefined;
162
171
  path?: string | undefined;
163
172
  exit_on_error?: boolean | undefined;
164
173
  } | undefined;
165
174
  sync_rules?: {
175
+ version_label?: string | undefined;
166
176
  content?: string | undefined;
167
177
  path?: string | undefined;
168
178
  exit_on_error?: boolean | undefined;
@@ -198,6 +208,7 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
198
208
  storage: {
199
209
  type: string;
200
210
  max_pool_size?: number | undefined;
211
+ default_storage_version?: number | undefined;
201
212
  } & Record<string, any>;
202
213
  replication?: {
203
214
  connections?: ({
@@ -254,15 +265,19 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
254
265
  max_data_fetch_concurrency?: number | undefined;
255
266
  max_buckets_per_connection?: number | undefined;
256
267
  max_parameter_query_results?: number | undefined;
268
+ checkpoint_request_retention_minutes?: number | undefined;
269
+ bucket_count_cache_ttl_minutes?: number | undefined;
257
270
  } | undefined;
258
271
  } | undefined;
259
272
  port?: number | undefined;
260
273
  sync_config?: {
274
+ version_label?: string | undefined;
261
275
  content?: string | undefined;
262
276
  path?: string | undefined;
263
277
  exit_on_error?: boolean | undefined;
264
278
  } | undefined;
265
279
  sync_rules?: {
280
+ version_label?: string | undefined;
266
281
  content?: string | undefined;
267
282
  path?: string | undefined;
268
283
  exit_on_error?: boolean | undefined;
@@ -295,6 +310,7 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
295
310
  storage: {
296
311
  type: string;
297
312
  max_pool_size?: number | undefined;
313
+ default_storage_version?: number | undefined;
298
314
  } & Record<string, any>;
299
315
  replication?: {
300
316
  connections?: ({
@@ -351,15 +367,19 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
351
367
  max_data_fetch_concurrency?: number | undefined;
352
368
  max_buckets_per_connection?: number | undefined;
353
369
  max_parameter_query_results?: number | undefined;
370
+ checkpoint_request_retention_minutes?: number | undefined;
371
+ bucket_count_cache_ttl_minutes?: number | undefined;
354
372
  } | undefined;
355
373
  } | undefined;
356
374
  port?: string | number | undefined;
357
375
  sync_config?: {
376
+ version_label?: string | undefined;
358
377
  content?: string | undefined;
359
378
  path?: string | undefined;
360
379
  exit_on_error?: boolean | undefined;
361
380
  } | undefined;
362
381
  sync_rules?: {
382
+ version_label?: string | undefined;
363
383
  content?: string | undefined;
364
384
  path?: string | undefined;
365
385
  exit_on_error?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import _SyncSchema from '@powersync/service-sync-rules/schema/sync_rules.json' with { type: 'json' };
1
+ import _SyncSchema from '@powersync/service-sync-rules/schema/sync_config.json' with { type: 'json' };
2
2
  import { mkdirSync, writeFileSync } from 'node:fs';
3
3
  import { dirname, join } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
@@ -373,6 +373,12 @@
373
373
  "schema": {
374
374
  "type": "string"
375
375
  },
376
+ "cacert": {
377
+ "type": "string"
378
+ },
379
+ "tls_servername": {
380
+ "type": "string"
381
+ },
376
382
  "authentication": {
377
383
  "anyOf": [
378
384
  {
@@ -651,19 +657,11 @@
651
657
  },
652
658
  "alg": {
653
659
  "description": "The algorithm intended for use with this key (RS256, RS384, or RS512).",
654
- "anyOf": [
655
- {
656
- "type": "string",
657
- "const": "RS256"
658
- },
659
- {
660
- "type": "string",
661
- "const": "RS384"
662
- },
663
- {
664
- "type": "string",
665
- "const": "RS512"
666
- }
660
+ "type": "string",
661
+ "enum": [
662
+ "RS256",
663
+ "RS384",
664
+ "RS512"
667
665
  ]
668
666
  },
669
667
  "use": {
@@ -765,15 +763,10 @@
765
763
  },
766
764
  "crv": {
767
765
  "description": "The cryptographic curve used with this key. Only Ed25519 and Ed448 are supported.",
768
- "anyOf": [
769
- {
770
- "type": "string",
771
- "const": "Ed25519"
772
- },
773
- {
774
- "type": "string",
775
- "const": "Ed448"
776
- }
766
+ "type": "string",
767
+ "enum": [
768
+ "Ed25519",
769
+ "Ed448"
777
770
  ]
778
771
  },
779
772
  "x": {
@@ -813,19 +806,11 @@
813
806
  },
814
807
  "crv": {
815
808
  "description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
816
- "anyOf": [
817
- {
818
- "type": "string",
819
- "const": "P-256"
820
- },
821
- {
822
- "type": "string",
823
- "const": "P-384"
824
- },
825
- {
826
- "type": "string",
827
- "const": "P-521"
828
- }
809
+ "type": "string",
810
+ "enum": [
811
+ "P-256",
812
+ "P-384",
813
+ "P-521"
829
814
  ]
830
815
  },
831
816
  "x": {
@@ -838,19 +823,11 @@
838
823
  },
839
824
  "alg": {
840
825
  "description": "The algorithm intended for use with this key (ES256, ES384, or ES512).",
841
- "anyOf": [
842
- {
843
- "type": "string",
844
- "const": "ES256"
845
- },
846
- {
847
- "type": "string",
848
- "const": "ES384"
849
- },
850
- {
851
- "type": "string",
852
- "const": "ES512"
853
- }
826
+ "type": "string",
827
+ "enum": [
828
+ "ES256",
829
+ "ES384",
830
+ "ES512"
854
831
  ]
855
832
  },
856
833
  "use": {
@@ -1013,18 +990,20 @@
1013
990
  }
1014
991
  },
1015
992
  "post_images": {
993
+ "type": "string",
994
+ "enum": [
995
+ "off",
996
+ "auto_configure",
997
+ "read_only"
998
+ ]
999
+ },
1000
+ "heartbeat_interval_seconds": {
1016
1001
  "anyOf": [
1017
1002
  {
1018
- "type": "string",
1019
- "const": "off"
1020
- },
1021
- {
1022
- "type": "string",
1023
- "const": "auto_configure"
1003
+ "type": "number"
1024
1004
  },
1025
1005
  {
1026
- "type": "string",
1027
- "const": "read_only"
1006
+ "type": "null"
1028
1007
  }
1029
1008
  ]
1030
1009
  }
@@ -1083,6 +1062,12 @@
1083
1062
  }
1084
1063
  ]
1085
1064
  },
1065
+ "cacert": {
1066
+ "type": "string"
1067
+ },
1068
+ "tls_servername": {
1069
+ "type": "string"
1070
+ },
1086
1071
  "authentication": {
1087
1072
  "anyOf": [
1088
1073
  {
@@ -1172,6 +1157,16 @@
1172
1157
  },
1173
1158
  "additionalProperties": true,
1174
1159
  "required": []
1160
+ },
1161
+ "heartbeat_interval_seconds": {
1162
+ "anyOf": [
1163
+ {
1164
+ "type": "number"
1165
+ },
1166
+ {
1167
+ "type": "null"
1168
+ }
1169
+ ]
1175
1170
  }
1176
1171
  },
1177
1172
  "additionalProperties": true,
@@ -1295,19 +1290,11 @@
1295
1290
  "type": "string"
1296
1291
  },
1297
1292
  "sslmode": {
1298
- "anyOf": [
1299
- {
1300
- "type": "string",
1301
- "const": "verify-full"
1302
- },
1303
- {
1304
- "type": "string",
1305
- "const": "verify-ca"
1306
- },
1307
- {
1308
- "type": "string",
1309
- "const": "disable"
1310
- }
1293
+ "type": "string",
1294
+ "enum": [
1295
+ "verify-full",
1296
+ "verify-ca",
1297
+ "disable"
1311
1298
  ]
1312
1299
  },
1313
1300
  "cacert": {
@@ -1336,6 +1323,19 @@
1336
1323
  },
1337
1324
  "connect_timeout": {
1338
1325
  "type": "number"
1326
+ },
1327
+ "snapshot_socket_timeout": {
1328
+ "type": "number"
1329
+ },
1330
+ "heartbeat_interval_seconds": {
1331
+ "anyOf": [
1332
+ {
1333
+ "type": "number"
1334
+ },
1335
+ {
1336
+ "type": "null"
1337
+ }
1338
+ ]
1339
1339
  }
1340
1340
  },
1341
1341
  "additionalProperties": true,
@@ -1457,19 +1457,11 @@
1457
1457
  },
1458
1458
  "alg": {
1459
1459
  "description": "The algorithm intended for use with this key (RS256, RS384, or RS512).",
1460
- "anyOf": [
1461
- {
1462
- "type": "string",
1463
- "const": "RS256"
1464
- },
1465
- {
1466
- "type": "string",
1467
- "const": "RS384"
1468
- },
1469
- {
1470
- "type": "string",
1471
- "const": "RS512"
1472
- }
1460
+ "type": "string",
1461
+ "enum": [
1462
+ "RS256",
1463
+ "RS384",
1464
+ "RS512"
1473
1465
  ]
1474
1466
  },
1475
1467
  "use": {
@@ -1504,19 +1496,11 @@
1504
1496
  },
1505
1497
  "alg": {
1506
1498
  "description": "The algorithm intended for use with this key (HS256, HS384, or HS512).",
1507
- "anyOf": [
1508
- {
1509
- "type": "string",
1510
- "const": "HS256"
1511
- },
1512
- {
1513
- "type": "string",
1514
- "const": "HS384"
1515
- },
1516
- {
1517
- "type": "string",
1518
- "const": "HS512"
1519
- }
1499
+ "type": "string",
1500
+ "enum": [
1501
+ "HS256",
1502
+ "HS384",
1503
+ "HS512"
1520
1504
  ]
1521
1505
  },
1522
1506
  "use": {
@@ -1546,15 +1530,10 @@
1546
1530
  },
1547
1531
  "crv": {
1548
1532
  "description": "The cryptographic curve used with this key. Only Ed25519 and Ed448 are supported.",
1549
- "anyOf": [
1550
- {
1551
- "type": "string",
1552
- "const": "Ed25519"
1553
- },
1554
- {
1555
- "type": "string",
1556
- "const": "Ed448"
1557
- }
1533
+ "type": "string",
1534
+ "enum": [
1535
+ "Ed25519",
1536
+ "Ed448"
1558
1537
  ]
1559
1538
  },
1560
1539
  "x": {
@@ -1594,19 +1573,11 @@
1594
1573
  },
1595
1574
  "crv": {
1596
1575
  "description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
1597
- "anyOf": [
1598
- {
1599
- "type": "string",
1600
- "const": "P-256"
1601
- },
1602
- {
1603
- "type": "string",
1604
- "const": "P-384"
1605
- },
1606
- {
1607
- "type": "string",
1608
- "const": "P-521"
1609
- }
1576
+ "type": "string",
1577
+ "enum": [
1578
+ "P-256",
1579
+ "P-384",
1580
+ "P-521"
1610
1581
  ]
1611
1582
  },
1612
1583
  "x": {
@@ -1619,19 +1590,11 @@
1619
1590
  },
1620
1591
  "alg": {
1621
1592
  "description": "The algorithm intended for use with this key (ES256, ES384, or ES512).",
1622
- "anyOf": [
1623
- {
1624
- "type": "string",
1625
- "const": "ES256"
1626
- },
1627
- {
1628
- "type": "string",
1629
- "const": "ES384"
1630
- },
1631
- {
1632
- "type": "string",
1633
- "const": "ES512"
1634
- }
1593
+ "type": "string",
1594
+ "enum": [
1595
+ "ES256",
1596
+ "ES384",
1597
+ "ES512"
1635
1598
  ]
1636
1599
  },
1637
1600
  "use": {
@@ -1706,6 +1669,14 @@
1706
1669
  "max_parameter_query_results": {
1707
1670
  "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.",
1708
1671
  "type": "number"
1672
+ },
1673
+ "checkpoint_request_retention_minutes": {
1674
+ "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.",
1675
+ "type": "number"
1676
+ },
1677
+ "bucket_count_cache_ttl_minutes": {
1678
+ "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).",
1679
+ "type": "number"
1709
1680
  }
1710
1681
  },
1711
1682
  "additionalProperties": true,
@@ -1727,6 +1698,10 @@
1727
1698
  "max_pool_size": {
1728
1699
  "description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
1729
1700
  "type": "number"
1701
+ },
1702
+ "default_storage_version": {
1703
+ "description": "Storage version to use when deploying a sync config that does not specify storage_version.",
1704
+ "type": "number"
1730
1705
  }
1731
1706
  },
1732
1707
  "additionalProperties": true,
@@ -1744,6 +1719,10 @@
1744
1719
  "max_pool_size": {
1745
1720
  "type": "number"
1746
1721
  },
1722
+ "default_storage_version": {
1723
+ "description": "Storage version to use when deploying a sync config that does not specify storage_version.",
1724
+ "type": "number"
1725
+ },
1747
1726
  "id": {
1748
1727
  "type": "string"
1749
1728
  },
@@ -1777,19 +1756,11 @@
1777
1756
  "type": "string"
1778
1757
  },
1779
1758
  "sslmode": {
1780
- "anyOf": [
1781
- {
1782
- "type": "string",
1783
- "const": "verify-full"
1784
- },
1785
- {
1786
- "type": "string",
1787
- "const": "verify-ca"
1788
- },
1789
- {
1790
- "type": "string",
1791
- "const": "disable"
1792
- }
1759
+ "type": "string",
1760
+ "enum": [
1761
+ "verify-full",
1762
+ "verify-ca",
1763
+ "disable"
1793
1764
  ]
1794
1765
  },
1795
1766
  "cacert": {
@@ -1845,6 +1816,14 @@
1845
1816
  "type": "string",
1846
1817
  "const": "mongodb"
1847
1818
  },
1819
+ "max_pool_size": {
1820
+ "description": "Maximum number of connections to the storage database, per process. Defaults to 8.",
1821
+ "type": "number"
1822
+ },
1823
+ "default_storage_version": {
1824
+ "description": "Storage version to use when deploying a sync config that does not specify storage_version.",
1825
+ "type": "number"
1826
+ },
1848
1827
  "uri": {
1849
1828
  "type": "string"
1850
1829
  },
@@ -1862,6 +1841,72 @@
1862
1841
  "items": {
1863
1842
  "type": "string"
1864
1843
  }
1844
+ },
1845
+ "bulk_read_preference": {
1846
+ "type": "string",
1847
+ "enum": [
1848
+ "primary",
1849
+ "primaryPreferred",
1850
+ "secondary",
1851
+ "secondaryPreferred",
1852
+ "nearest"
1853
+ ]
1854
+ },
1855
+ "clear_batch_throttle_rate": {
1856
+ "type": "number"
1857
+ },
1858
+ "chunk_compaction_concurrency": {
1859
+ "type": "number"
1860
+ },
1861
+ "object_storage": {
1862
+ "type": "object",
1863
+ "properties": {
1864
+ "type": {
1865
+ "type": "string",
1866
+ "const": "s3"
1867
+ },
1868
+ "bucket": {
1869
+ "type": "string"
1870
+ },
1871
+ "region": {
1872
+ "type": "string"
1873
+ },
1874
+ "prefix": {
1875
+ "type": "string"
1876
+ },
1877
+ "endpoint": {
1878
+ "type": "string"
1879
+ },
1880
+ "force_path_style": {
1881
+ "type": "boolean"
1882
+ },
1883
+ "access_key_id": {
1884
+ "type": "string"
1885
+ },
1886
+ "secret_access_key": {
1887
+ "type": "string"
1888
+ },
1889
+ "concurrency_limit": {
1890
+ "type": "number"
1891
+ },
1892
+ "defaults_mode": {
1893
+ "type": "string",
1894
+ "enum": [
1895
+ "standard",
1896
+ "in-region",
1897
+ "cross-region",
1898
+ "mobile"
1899
+ ]
1900
+ },
1901
+ "inline_threshold_bytes": {
1902
+ "type": "number"
1903
+ }
1904
+ },
1905
+ "additionalProperties": true,
1906
+ "required": [
1907
+ "type",
1908
+ "bucket"
1909
+ ]
1865
1910
  }
1866
1911
  },
1867
1912
  "additionalProperties": true,
@@ -1887,6 +1932,10 @@
1887
1932
  "description": "Configuration for synchronization rules that define data access patterns.",
1888
1933
  "type": "object",
1889
1934
  "properties": {
1935
+ "version_label": {
1936
+ "description": "Optional label identifying this deployed sync config version.",
1937
+ "type": "string"
1938
+ },
1890
1939
  "path": {
1891
1940
  "description": "Path to the sync config YAML file.",
1892
1941
  "type": "string"
@@ -1907,6 +1956,10 @@
1907
1956
  "description": "Deprecated. Use sync_config instead.",
1908
1957
  "type": "object",
1909
1958
  "properties": {
1959
+ "version_label": {
1960
+ "description": "Optional label identifying this deployed sync config version.",
1961
+ "type": "string"
1962
+ },
1910
1963
  "path": {
1911
1964
  "description": "Path to the sync config YAML file.",
1912
1965
  "type": "string"
@@ -2010,48 +2063,23 @@
2010
2063
  "properties": {
2011
2064
  "level": {
2012
2065
  "description": "Log level for the service logs.",
2013
- "anyOf": [
2014
- {
2015
- "type": "string",
2016
- "const": "silly"
2017
- },
2018
- {
2019
- "type": "string",
2020
- "const": "debug"
2021
- },
2022
- {
2023
- "type": "string",
2024
- "const": "verbose"
2025
- },
2026
- {
2027
- "type": "string",
2028
- "const": "http"
2029
- },
2030
- {
2031
- "type": "string",
2032
- "const": "info"
2033
- },
2034
- {
2035
- "type": "string",
2036
- "const": "warn"
2037
- },
2038
- {
2039
- "type": "string",
2040
- "const": "error"
2041
- }
2066
+ "type": "string",
2067
+ "enum": [
2068
+ "silly",
2069
+ "debug",
2070
+ "verbose",
2071
+ "http",
2072
+ "info",
2073
+ "warn",
2074
+ "error"
2042
2075
  ]
2043
2076
  },
2044
2077
  "format": {
2045
2078
  "description": "Log output format.",
2046
- "anyOf": [
2047
- {
2048
- "type": "string",
2049
- "const": "json"
2050
- },
2051
- {
2052
- "type": "string",
2053
- "const": "text"
2054
- }
2079
+ "type": "string",
2080
+ "enum": [
2081
+ "json",
2082
+ "text"
2055
2083
  ]
2056
2084
  }
2057
2085
  },
@@ -2067,6 +2095,9 @@
2067
2095
  "type": "object",
2068
2096
  "additionalProperties": {
2069
2097
  "anyOf": [
2098
+ {
2099
+ "type": "null"
2100
+ },
2070
2101
  {
2071
2102
  "type": "number"
2072
2103
  },
@@ -2075,9 +2106,6 @@
2075
2106
  },
2076
2107
  {
2077
2108
  "type": "boolean"
2078
- },
2079
- {
2080
- "type": "null"
2081
2109
  }
2082
2110
  ]
2083
2111
  },
@@ -180,11 +180,11 @@
180
180
  },
181
181
  "storage_version": {
182
182
  "type": "integer",
183
- "description": "Storage version used by the storage database. By default, the latest stable version is used.",
184
- "default": 2,
183
+ "description": "Storage version used by the storage database.",
185
184
  "enum": [
186
185
  2,
187
- 3
186
+ 3,
187
+ 4
188
188
  ]
189
189
  },
190
190
  "timestamp_max_precision": {
@@ -215,6 +215,10 @@
215
215
  "unstable_sqlite_expression_engine": {
216
216
  "type": "boolean",
217
217
  "description": "Enabled by default starting from edition null: Experimental option to evaluate functions and operators in Sync Streams with SQLite instead of a JavaScript implementation."
218
+ },
219
+ "fixed_booleans_in_json": {
220
+ "type": "boolean",
221
+ "description": "Enabled by default starting from edition null: Consistently sync boolean values of a JSON object or array in source data as booleans (instead of integers 0/1)."
218
222
  }
219
223
  },
220
224
  "additionalProperties": false
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powersync/cli-schemas",
3
3
  "description": "PowerSync CLI schema definitions and JSON Schema generation",
4
- "version": "0.10.1",
4
+ "version": "0.10.2",
5
5
  "author": "POWERSYNC",
6
6
  "license": "FSL-1.1-ALv2",
7
7
  "type": "module",
@@ -32,15 +32,15 @@
32
32
  },
33
33
  "bugs": "https://github.com/powersync-ja/powersync-cli/issues",
34
34
  "dependencies": {
35
- "@powersync/management-types": "^0.2.2",
36
- "@powersync/service-schema": "^1.22.0",
37
- "@powersync/service-types": "^0.15.2",
35
+ "@powersync/management-types": "^0.3.0",
36
+ "@powersync/service-schema": "^1.27.0",
37
+ "@powersync/service-types": "^0.19.0",
38
38
  "ajv": "^8.20.0",
39
39
  "better-ajv-errors": "^2.0.3",
40
40
  "ts-codec": "^1.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@powersync/service-sync-rules": "^0.37.0",
43
+ "@powersync/service-sync-rules": "^0.43.0",
44
44
  "@types/node": "^24.12.2",
45
45
  "tsx": "^4.21.0",
46
46
  "typescript": "^5.9.3"