@powersync/service-schema 0.0.0-dev-20260313100403 → 0.0.0-dev-20260515144844
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConvexConnectionConfig } from '@powersync/service-module-convex/types';
|
|
1
2
|
import { MongoStorageConfig } from '@powersync/service-module-mongodb-storage/types';
|
|
2
3
|
import { MongoConnectionConfig } from '@powersync/service-module-mongodb/types';
|
|
3
4
|
import { MSSQLConnectionConfig } from '@powersync/service-module-mssql/types';
|
|
@@ -18,7 +19,8 @@ const mergedDataSourceConfig = configFile.genericDataSourceConfig
|
|
|
18
19
|
.or(MongoConnectionConfig)
|
|
19
20
|
.or(MSSQLConnectionConfig)
|
|
20
21
|
.or(MySQLConnectionConfig)
|
|
21
|
-
.or(PostgresConnectionConfig)
|
|
22
|
+
.or(PostgresConnectionConfig)
|
|
23
|
+
.or(ConvexConnectionConfig);
|
|
22
24
|
const mergedStorageConfig = configFile.GenericStorageConfig.or(PostgresStorageConfig).or(MongoStorageConfig);
|
|
23
25
|
const mergedConfig = t.object({
|
|
24
26
|
...baseShape,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile-json-schema.js","sourceRoot":"","sources":["../../src/scripts/compile-json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,M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EAAE;IAC5D,eAAe,EAAE,IAAI;IACrB,OAAO,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAEH,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -174,44 +174,6 @@
|
|
|
174
174
|
"options"
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
|
-
{
|
|
178
|
-
"type": "object",
|
|
179
|
-
"properties": {
|
|
180
|
-
"type": {
|
|
181
|
-
"type": "string",
|
|
182
|
-
"const": "azure-active-directory-password"
|
|
183
|
-
},
|
|
184
|
-
"options": {
|
|
185
|
-
"type": "object",
|
|
186
|
-
"properties": {
|
|
187
|
-
"userName": {
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
"password": {
|
|
191
|
-
"type": "string"
|
|
192
|
-
},
|
|
193
|
-
"clientId": {
|
|
194
|
-
"type": "string"
|
|
195
|
-
},
|
|
196
|
-
"tenantId": {
|
|
197
|
-
"type": "string"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"additionalProperties": true,
|
|
201
|
-
"required": [
|
|
202
|
-
"userName",
|
|
203
|
-
"password",
|
|
204
|
-
"clientId",
|
|
205
|
-
"tenantId"
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
"additionalProperties": true,
|
|
210
|
-
"required": [
|
|
211
|
-
"type",
|
|
212
|
-
"options"
|
|
213
|
-
]
|
|
214
|
-
},
|
|
215
177
|
{
|
|
216
178
|
"type": "object",
|
|
217
179
|
"properties": {
|
|
@@ -439,6 +401,51 @@
|
|
|
439
401
|
"required": [
|
|
440
402
|
"type"
|
|
441
403
|
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "object",
|
|
407
|
+
"properties": {
|
|
408
|
+
"type": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"const": "convex"
|
|
411
|
+
},
|
|
412
|
+
"id": {
|
|
413
|
+
"description": "Unique identifier for the connection. Optional when only a single connection is present.",
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"tag": {
|
|
417
|
+
"description": "Additional meta tag for the connection, used for categorization or grouping.",
|
|
418
|
+
"type": "string"
|
|
419
|
+
},
|
|
420
|
+
"debug_api": {
|
|
421
|
+
"description": "When enabled, allows query execution.",
|
|
422
|
+
"type": "boolean"
|
|
423
|
+
},
|
|
424
|
+
"deployment_url": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
},
|
|
427
|
+
"deploy_key": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
"polling_interval_ms": {
|
|
431
|
+
"type": "number"
|
|
432
|
+
},
|
|
433
|
+
"request_timeout_ms": {
|
|
434
|
+
"type": "number"
|
|
435
|
+
},
|
|
436
|
+
"reject_ip_ranges": {
|
|
437
|
+
"type": "array",
|
|
438
|
+
"items": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"additionalProperties": true,
|
|
444
|
+
"required": [
|
|
445
|
+
"type",
|
|
446
|
+
"deployment_url",
|
|
447
|
+
"deploy_key"
|
|
448
|
+
]
|
|
442
449
|
}
|
|
443
450
|
]
|
|
444
451
|
}
|
|
@@ -645,7 +652,7 @@
|
|
|
645
652
|
"type": "string"
|
|
646
653
|
},
|
|
647
654
|
"crv": {
|
|
648
|
-
"description": "The cryptographic curve used with this key (P-256, P-384, or P-
|
|
655
|
+
"description": "The cryptographic curve used with this key (P-256, P-384, or P-521).",
|
|
649
656
|
"anyOf": [
|
|
650
657
|
{
|
|
651
658
|
"type": "string",
|
|
@@ -657,7 +664,7 @@
|
|
|
657
664
|
},
|
|
658
665
|
{
|
|
659
666
|
"type": "string",
|
|
660
|
-
"const": "P-
|
|
667
|
+
"const": "P-521"
|
|
661
668
|
}
|
|
662
669
|
]
|
|
663
670
|
},
|
|
@@ -752,7 +759,7 @@
|
|
|
752
759
|
"type": "number"
|
|
753
760
|
},
|
|
754
761
|
"max_buckets_per_connection": {
|
|
755
|
-
"description": "Maximum number of buckets for each connection.\nMore buckets increase latency and memory usage. While the actual number is controlled by sync
|
|
762
|
+
"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.",
|
|
756
763
|
"type": "number"
|
|
757
764
|
},
|
|
758
765
|
"max_parameter_query_results": {
|
|
@@ -1115,7 +1122,7 @@
|
|
|
1115
1122
|
"required": []
|
|
1116
1123
|
},
|
|
1117
1124
|
"parameters": {
|
|
1118
|
-
"description": "Global parameters that can be referenced in sync
|
|
1125
|
+
"description": "Global parameters that can be referenced in sync config and other configurations.",
|
|
1119
1126
|
"type": "object",
|
|
1120
1127
|
"additionalProperties": {
|
|
1121
1128
|
"anyOf": [
|
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-20260515144844",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"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-
|
|
30
|
-
"@powersync/service-module-
|
|
31
|
-
"@powersync/service-module-mssql": "0.0.0-dev-
|
|
32
|
-
"@powersync/service-types": "0.
|
|
26
|
+
"@powersync/service-module-postgres": "0.0.0-dev-20260515144844",
|
|
27
|
+
"@powersync/service-module-postgres-storage": "0.0.0-dev-20260515144844",
|
|
28
|
+
"@powersync/service-module-mongodb": "0.0.0-dev-20260515144844",
|
|
29
|
+
"@powersync/service-module-mysql": "0.0.0-dev-20260515144844",
|
|
30
|
+
"@powersync/service-module-mongodb-storage": "0.0.0-dev-20260515144844",
|
|
31
|
+
"@powersync/service-module-mssql": "0.0.0-dev-20260515144844",
|
|
32
|
+
"@powersync/service-types": "0.15.2",
|
|
33
|
+
"@powersync/service-module-convex": "0.0.0-dev-20260515144844"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
36
|
"clean": "rm -r ./dist && tsc -b --clean",
|