@powersync/cli-schemas 0.9.5 → 0.10.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.
@@ -23,6 +23,26 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
23
23
  secret_ref: string;
24
24
  } | undefined;
25
25
  database?: string | undefined;
26
+ } & {
27
+ type: managementTypes.ConnectionType.CONVEX;
28
+ deployment_url: string;
29
+ deploy_key: {
30
+ secret: string;
31
+ } | {
32
+ secret_ref: string;
33
+ };
34
+ }) | ({
35
+ type: managementTypes.ConnectionType;
36
+ name?: string | undefined;
37
+ id?: string | undefined;
38
+ tag?: string | undefined;
39
+ username?: string | undefined;
40
+ password?: {
41
+ secret: string;
42
+ } | {
43
+ secret_ref: string;
44
+ } | undefined;
45
+ database?: string | undefined;
26
46
  } & {
27
47
  type: managementTypes.ConnectionType.MONGODB;
28
48
  uri: string;
@@ -157,7 +177,7 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
157
177
  } | {
158
178
  kty: "EC";
159
179
  alg: "ES256" | "ES384" | "ES512";
160
- crv: "P-256" | "P-384" | "P-512";
180
+ crv: "P-256" | "P-384" | "P-521";
161
181
  x: string;
162
182
  y: string;
163
183
  kid?: string | undefined;
@@ -188,6 +208,26 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
188
208
  secret_ref: string;
189
209
  } | undefined;
190
210
  database?: string | undefined;
211
+ } & {
212
+ type: managementTypes.ConnectionType.CONVEX;
213
+ deployment_url: string;
214
+ deploy_key: {
215
+ secret: string;
216
+ } | {
217
+ secret_ref: string;
218
+ };
219
+ }) | ({
220
+ type: managementTypes.ConnectionType;
221
+ name?: string | undefined;
222
+ id?: string | undefined;
223
+ tag?: string | undefined;
224
+ username?: string | undefined;
225
+ password?: {
226
+ secret: string;
227
+ } | {
228
+ secret_ref: string;
229
+ } | undefined;
230
+ database?: string | undefined;
191
231
  } & {
192
232
  type: managementTypes.ConnectionType.MONGODB;
193
233
  uri: string;
@@ -322,7 +362,7 @@ export declare const ServiceCloudConfig: t.Intersection<t.Codec<{
322
362
  } | {
323
363
  kty: "EC";
324
364
  alg: "ES256" | "ES384" | "ES512";
325
- crv: "P-256" | "P-384" | "P-512";
365
+ crv: "P-256" | "P-384" | "P-521";
326
366
  x: string;
327
367
  y: string;
328
368
  kid?: string | undefined;
@@ -40,7 +40,7 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
40
40
  } | {
41
41
  kty: "EC";
42
42
  alg: "ES256" | "ES384" | "ES512";
43
- crv: "P-256" | "P-384" | "P-512";
43
+ crv: "P-256" | "P-384" | "P-521";
44
44
  x: string;
45
45
  y: string;
46
46
  kid?: string | undefined;
@@ -135,7 +135,7 @@ export declare const BaseServiceSelfHostedConfig: t.Intersection<t.Codec<{
135
135
  } | {
136
136
  kty: "EC";
137
137
  alg: "ES256" | "ES384" | "ES512";
138
- crv: "P-256" | "P-384" | "P-512";
138
+ crv: "P-256" | "P-384" | "P-521";
139
139
  x: string;
140
140
  y: string;
141
141
  kid?: string | undefined;
@@ -235,7 +235,7 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
235
235
  } | {
236
236
  kty: "EC";
237
237
  alg: "ES256" | "ES384" | "ES512";
238
- crv: "P-256" | "P-384" | "P-512";
238
+ crv: "P-256" | "P-384" | "P-521";
239
239
  x: string;
240
240
  y: string;
241
241
  kid?: string | undefined;
@@ -332,7 +332,7 @@ export declare const ServiceSelfHostedConfig: t.Intersection<t.Codec<{
332
332
  } | {
333
333
  kty: "EC";
334
334
  alg: "ES256" | "ES384" | "ES512";
335
- crv: "P-256" | "P-384" | "P-512";
335
+ crv: "P-256" | "P-384" | "P-521";
336
336
  x: string;
337
337
  y: string;
338
338
  kid?: string | undefined;
@@ -515,6 +515,95 @@
515
515
  "required": [
516
516
  "type"
517
517
  ]
518
+ },
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "type": {
523
+ "type": "string",
524
+ "const": "convex"
525
+ },
526
+ "name": {
527
+ "type": "string"
528
+ },
529
+ "id": {
530
+ "type": "string"
531
+ },
532
+ "tag": {
533
+ "type": "string"
534
+ },
535
+ "username": {
536
+ "type": "string"
537
+ },
538
+ "password": {
539
+ "anyOf": [
540
+ {
541
+ "type": "object",
542
+ "properties": {
543
+ "secret_ref": {
544
+ "type": "string"
545
+ }
546
+ },
547
+ "additionalProperties": false,
548
+ "required": [
549
+ "secret_ref"
550
+ ]
551
+ },
552
+ {
553
+ "type": "object",
554
+ "properties": {
555
+ "secret": {
556
+ "type": "string"
557
+ }
558
+ },
559
+ "additionalProperties": false,
560
+ "required": [
561
+ "secret"
562
+ ]
563
+ }
564
+ ]
565
+ },
566
+ "database": {
567
+ "type": "string"
568
+ },
569
+ "deployment_url": {
570
+ "type": "string"
571
+ },
572
+ "deploy_key": {
573
+ "anyOf": [
574
+ {
575
+ "type": "object",
576
+ "properties": {
577
+ "secret_ref": {
578
+ "type": "string"
579
+ }
580
+ },
581
+ "additionalProperties": false,
582
+ "required": [
583
+ "secret_ref"
584
+ ]
585
+ },
586
+ {
587
+ "type": "object",
588
+ "properties": {
589
+ "secret": {
590
+ "type": "string"
591
+ }
592
+ },
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "secret"
596
+ ]
597
+ }
598
+ ]
599
+ }
600
+ },
601
+ "additionalProperties": false,
602
+ "required": [
603
+ "type",
604
+ "deployment_url",
605
+ "deploy_key"
606
+ ]
518
607
  }
519
608
  ]
520
609
  }
@@ -723,7 +812,7 @@
723
812
  "type": "string"
724
813
  },
725
814
  "crv": {
726
- "description": "The cryptographic curve used with this key (P-256, P-384, or P-512).",
815
+ "description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
727
816
  "anyOf": [
728
817
  {
729
818
  "type": "string",
@@ -735,7 +824,7 @@
735
824
  },
736
825
  {
737
826
  "type": "string",
738
- "const": "P-512"
827
+ "const": "P-521"
739
828
  }
740
829
  ]
741
830
  },
@@ -1253,6 +1342,51 @@
1253
1342
  "required": [
1254
1343
  "type"
1255
1344
  ]
1345
+ },
1346
+ {
1347
+ "type": "object",
1348
+ "properties": {
1349
+ "type": {
1350
+ "type": "string",
1351
+ "const": "convex"
1352
+ },
1353
+ "id": {
1354
+ "description": "Unique identifier for the connection. Optional when only a single connection is present.",
1355
+ "type": "string"
1356
+ },
1357
+ "tag": {
1358
+ "description": "Additional meta tag for the connection, used for categorization or grouping.",
1359
+ "type": "string"
1360
+ },
1361
+ "debug_api": {
1362
+ "description": "When enabled, allows query execution.",
1363
+ "type": "boolean"
1364
+ },
1365
+ "deployment_url": {
1366
+ "type": "string"
1367
+ },
1368
+ "deploy_key": {
1369
+ "type": "string"
1370
+ },
1371
+ "polling_interval_ms": {
1372
+ "type": "number"
1373
+ },
1374
+ "request_timeout_ms": {
1375
+ "type": "number"
1376
+ },
1377
+ "reject_ip_ranges": {
1378
+ "type": "array",
1379
+ "items": {
1380
+ "type": "string"
1381
+ }
1382
+ }
1383
+ },
1384
+ "additionalProperties": true,
1385
+ "required": [
1386
+ "type",
1387
+ "deployment_url",
1388
+ "deploy_key"
1389
+ ]
1256
1390
  }
1257
1391
  ]
1258
1392
  }
@@ -1459,7 +1593,7 @@
1459
1593
  "type": "string"
1460
1594
  },
1461
1595
  "crv": {
1462
- "description": "The cryptographic curve used with this key (P-256, P-384, or P-512).",
1596
+ "description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
1463
1597
  "anyOf": [
1464
1598
  {
1465
1599
  "type": "string",
@@ -1471,7 +1605,7 @@
1471
1605
  },
1472
1606
  {
1473
1607
  "type": "string",
1474
- "const": "P-512"
1608
+ "const": "P-521"
1475
1609
  }
1476
1610
  ]
1477
1611
  },
@@ -1566,7 +1700,7 @@
1566
1700
  "type": "number"
1567
1701
  },
1568
1702
  "max_buckets_per_connection": {
1569
- "description": "Maximum number of buckets for each connection.\nMore buckets increase latency and memory usage. While the actual number is controlled by sync rules,\nhaving a hard limit ensures that the service errors instead of crashing when a sync rule is misconfigured.\nDefault of 1000.",
1703
+ "description": "Maximum number of buckets for each connection.\nMore buckets increase latency and memory usage. While the actual number is controlled by sync config,\nhaving a hard limit ensures that the service errors instead of crashing when the sync config is misconfigured.\nDefault of 1000.",
1570
1704
  "type": "number"
1571
1705
  },
1572
1706
  "max_parameter_query_results": {
@@ -1929,7 +2063,7 @@
1929
2063
  "required": []
1930
2064
  },
1931
2065
  "parameters": {
1932
- "description": "Global parameters that can be referenced in sync rules and other configurations.",
2066
+ "description": "Global parameters that can be referenced in sync config and other configurations.",
1933
2067
  "type": "object",
1934
2068
  "additionalProperties": {
1935
2069
  "anyOf": [
@@ -178,6 +178,15 @@
178
178
  "minimum": 1,
179
179
  "exclusiveMaximum": 4
180
180
  },
181
+ "storage_version": {
182
+ "type": "integer",
183
+ "description": "Storage version used by the storage database. By default, the latest stable version is used.",
184
+ "default": 2,
185
+ "enum": [
186
+ 2,
187
+ 3
188
+ ]
189
+ },
181
190
  "timestamp_max_precision": {
182
191
  "type": "string",
183
192
  "enum": [
@@ -202,6 +211,10 @@
202
211
  "custom_postgres_types": {
203
212
  "type": "boolean",
204
213
  "description": "Enabled by default starting from edition 2: Map custom Postgres types into appropriate structures instead of syncing the raw string."
214
+ },
215
+ "unstable_sqlite_expression_engine": {
216
+ "type": "boolean",
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."
205
218
  }
206
219
  },
207
220
  "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.9.5",
4
+ "version": "0.10.0",
5
5
  "author": "POWERSYNC",
6
6
  "license": "FSL-1.1-ALv2",
7
7
  "type": "module",
@@ -32,19 +32,18 @@
32
32
  },
33
33
  "bugs": "https://github.com/powersync-ja/powersync-cli/issues",
34
34
  "dependencies": {
35
- "@powersync/management-types": "^0.0.5",
36
- "@powersync/service-schema": "^1.20.2",
37
- "@powersync/service-types": "^0.15.0",
38
- "ajv": "^8.12.0",
35
+ "@powersync/management-types": "^0.2.2",
36
+ "@powersync/service-schema": "^1.22.0",
37
+ "@powersync/service-types": "^0.15.2",
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.34.0",
44
- "@types/node": "^22",
45
- "shx": "^0.3.3",
46
- "tsx": "^4",
47
- "typescript": "^5"
43
+ "@powersync/service-sync-rules": "^0.37.0",
44
+ "@types/node": "^24.12.2",
45
+ "tsx": "^4.21.0",
46
+ "typescript": "^5.9.3"
48
47
  },
49
48
  "engines": {
50
49
  "node": ">=18.0.0"