@powersync/management-types 0.0.0-dev-20260225123311

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.
Files changed (64) hide show
  1. package/LICENSE +67 -0
  2. package/README.md +88 -0
  3. package/dist/config/HostedConfig.d.ts +1318 -0
  4. package/dist/config/HostedConfig.js +101 -0
  5. package/dist/config/HostedConfig.js.map +1 -0
  6. package/dist/config/HostedSecret.d.ts +18 -0
  7. package/dist/config/HostedSecret.js +12 -0
  8. package/dist/config/HostedSecret.js.map +1 -0
  9. package/dist/config/connections/ConnectionType.d.ts +6 -0
  10. package/dist/config/connections/ConnectionType.js +8 -0
  11. package/dist/config/connections/ConnectionType.js.map +1 -0
  12. package/dist/config/connections/HostedDatabaseSourceConfig.d.ts +23 -0
  13. package/dist/config/connections/HostedDatabaseSourceConfig.js +18 -0
  14. package/dist/config/connections/HostedDatabaseSourceConfig.js.map +1 -0
  15. package/dist/config/connections/HostedMSSQLConnection.d.ts +308 -0
  16. package/dist/config/connections/HostedMSSQLConnection.js +41 -0
  17. package/dist/config/connections/HostedMSSQLConnection.js.map +1 -0
  18. package/dist/config/connections/HostedMongoConnection.d.ts +33 -0
  19. package/dist/config/connections/HostedMongoConnection.js +10 -0
  20. package/dist/config/connections/HostedMongoConnection.js.map +1 -0
  21. package/dist/config/connections/HostedMySQLConnection.d.ts +46 -0
  22. package/dist/config/connections/HostedMySQLConnection.js +16 -0
  23. package/dist/config/connections/HostedMySQLConnection.js.map +1 -0
  24. package/dist/config/connections/HostedPostgresConnection.d.ts +52 -0
  25. package/dist/config/connections/HostedPostgresConnection.js +21 -0
  26. package/dist/config/connections/HostedPostgresConnection.js.map +1 -0
  27. package/dist/errors.d.ts +11 -0
  28. package/dist/errors.js +14 -0
  29. package/dist/errors.js.map +1 -0
  30. package/dist/index.d.ts +13 -0
  31. package/dist/index.js +14 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/routes/dashboard-routes.d.ts +13 -0
  34. package/dist/routes/dashboard-routes.js +16 -0
  35. package/dist/routes/dashboard-routes.js.map +1 -0
  36. package/dist/routes/dev-routes.d.ts +588 -0
  37. package/dist/routes/dev-routes.js +97 -0
  38. package/dist/routes/dev-routes.js.map +1 -0
  39. package/dist/routes/general-routes.d.ts +78 -0
  40. package/dist/routes/general-routes.js +57 -0
  41. package/dist/routes/general-routes.js.map +1 -0
  42. package/dist/routes/index.d.ts +6 -0
  43. package/dist/routes/index.js +7 -0
  44. package/dist/routes/index.js.map +1 -0
  45. package/dist/routes/manage-routes.d.ts +1055 -0
  46. package/dist/routes/manage-routes.js +109 -0
  47. package/dist/routes/manage-routes.js.map +1 -0
  48. package/dist/routes/reporting-routes.d.ts +112 -0
  49. package/dist/routes/reporting-routes.js +61 -0
  50. package/dist/routes/reporting-routes.js.map +1 -0
  51. package/dist/routes/schema.d.ts +131 -0
  52. package/dist/routes/schema.js +71 -0
  53. package/dist/routes/schema.js.map +1 -0
  54. package/dist/scripts/compile-json-schema.d.ts +1 -0
  55. package/dist/scripts/compile-json-schema.js +15 -0
  56. package/dist/scripts/compile-json-schema.js.map +1 -0
  57. package/dist/shared.d.ts +17 -0
  58. package/dist/shared.js +17 -0
  59. package/dist/shared.js.map +1 -0
  60. package/dist/utils/pagination.d.ts +12 -0
  61. package/dist/utils/pagination.js +13 -0
  62. package/dist/utils/pagination.js.map +1 -0
  63. package/json-schema/powersync-config.json +880 -0
  64. package/package.json +43 -0
@@ -0,0 +1,1318 @@
1
+ import * as t from 'ts-codec';
2
+ export declare const AnyHostedConnection: t.Union<t.Codec<({
3
+ type: import("./connections/ConnectionType.js").ConnectionType;
4
+ name?: string | undefined;
5
+ id?: string | undefined;
6
+ tag?: string | undefined;
7
+ username?: string | undefined;
8
+ password?: {
9
+ secret: string;
10
+ } | {
11
+ secret_ref: string;
12
+ } | undefined;
13
+ database?: string | undefined;
14
+ } & {
15
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
16
+ uri: string;
17
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
18
+ vpc_endpoint_hostname?: string | undefined;
19
+ }) | ({
20
+ type: import("./connections/ConnectionType.js").ConnectionType;
21
+ name?: string | undefined;
22
+ id?: string | undefined;
23
+ tag?: string | undefined;
24
+ username?: string | undefined;
25
+ password?: {
26
+ secret: string;
27
+ } | {
28
+ secret_ref: string;
29
+ } | undefined;
30
+ database?: string | undefined;
31
+ } & {
32
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
33
+ uri?: string | undefined;
34
+ hostname?: string | undefined;
35
+ port?: number | undefined;
36
+ debug_api?: boolean | undefined;
37
+ client_certificate?: string | undefined;
38
+ client_private_key?: {
39
+ secret: string;
40
+ } | {
41
+ secret_ref: string;
42
+ } | undefined;
43
+ }) | ({
44
+ type: import("./connections/ConnectionType.js").ConnectionType;
45
+ name?: string | undefined;
46
+ id?: string | undefined;
47
+ tag?: string | undefined;
48
+ username?: string | undefined;
49
+ password?: {
50
+ secret: string;
51
+ } | {
52
+ secret_ref: string;
53
+ } | undefined;
54
+ database?: string | undefined;
55
+ } & {
56
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
57
+ uri?: string | undefined;
58
+ vpc_endpoint_hostname?: string | undefined;
59
+ hostname?: string | undefined;
60
+ port?: number | undefined;
61
+ debug_api?: boolean | undefined;
62
+ client_certificate?: string | undefined;
63
+ client_private_key?: {
64
+ secret: string;
65
+ } | {
66
+ secret_ref: string;
67
+ } | undefined;
68
+ sslmode?: "verify-full" | "verify-ca" | undefined;
69
+ cacert?: string | undefined;
70
+ }), ({
71
+ type: import("./connections/ConnectionType.js").ConnectionType;
72
+ name?: string | undefined;
73
+ id?: string | undefined;
74
+ tag?: string | undefined;
75
+ username?: string | undefined;
76
+ password?: {
77
+ secret: string;
78
+ } | {
79
+ secret_ref: string;
80
+ } | undefined;
81
+ database?: string | undefined;
82
+ } & {
83
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
84
+ uri: string;
85
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
86
+ vpc_endpoint_hostname?: string | undefined;
87
+ }) | ({
88
+ type: import("./connections/ConnectionType.js").ConnectionType;
89
+ name?: string | undefined;
90
+ id?: string | undefined;
91
+ tag?: string | undefined;
92
+ username?: string | undefined;
93
+ password?: {
94
+ secret: string;
95
+ } | {
96
+ secret_ref: string;
97
+ } | undefined;
98
+ database?: string | undefined;
99
+ } & {
100
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
101
+ uri?: string | undefined;
102
+ hostname?: string | undefined;
103
+ port?: number | undefined;
104
+ debug_api?: boolean | undefined;
105
+ client_certificate?: string | undefined;
106
+ client_private_key?: {
107
+ secret: string;
108
+ } | {
109
+ secret_ref: string;
110
+ } | undefined;
111
+ }) | ({
112
+ type: import("./connections/ConnectionType.js").ConnectionType;
113
+ name?: string | undefined;
114
+ id?: string | undefined;
115
+ tag?: string | undefined;
116
+ username?: string | undefined;
117
+ password?: {
118
+ secret: string;
119
+ } | {
120
+ secret_ref: string;
121
+ } | undefined;
122
+ database?: string | undefined;
123
+ } & {
124
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
125
+ uri?: string | undefined;
126
+ vpc_endpoint_hostname?: string | undefined;
127
+ hostname?: string | undefined;
128
+ port?: number | undefined;
129
+ debug_api?: boolean | undefined;
130
+ client_certificate?: string | undefined;
131
+ client_private_key?: {
132
+ secret: string;
133
+ } | {
134
+ secret_ref: string;
135
+ } | undefined;
136
+ sslmode?: "verify-full" | "verify-ca" | undefined;
137
+ cacert?: string | undefined;
138
+ }), string, t.CodecProps>, t.Intersection<t.Codec<{
139
+ type: import("./connections/ConnectionType.js").ConnectionType;
140
+ name?: string | undefined;
141
+ id?: string | undefined;
142
+ tag?: string | undefined;
143
+ username?: string | undefined;
144
+ password?: {
145
+ secret: string;
146
+ } | {
147
+ secret_ref: string;
148
+ } | undefined;
149
+ database?: string | undefined;
150
+ }, {
151
+ type: import("./connections/ConnectionType.js").ConnectionType;
152
+ name?: string | undefined;
153
+ id?: string | undefined;
154
+ tag?: string | undefined;
155
+ username?: string | undefined;
156
+ password?: {
157
+ secret: string;
158
+ } | {
159
+ secret_ref: string;
160
+ } | undefined;
161
+ database?: string | undefined;
162
+ }, string, t.CodecProps>, t.ObjectCodec<{
163
+ type: t.LiteralCodec<import("./connections/ConnectionType.js").ConnectionType.MSSQL>;
164
+ uri: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
165
+ hostname: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
166
+ port: t.OptionalCodec<t.Codec<number, number, string, t.CodecProps>>;
167
+ schema: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
168
+ authentication: t.OptionalCodec<t.Codec<({
169
+ type: "default";
170
+ options: {
171
+ password: string;
172
+ userName: string;
173
+ };
174
+ } & {
175
+ options: {
176
+ password: {
177
+ secret: string;
178
+ } | {
179
+ secret_ref: string;
180
+ };
181
+ };
182
+ }) | ({
183
+ type: "azure-active-directory-password";
184
+ options: {
185
+ password: string;
186
+ userName: string;
187
+ clientId: string;
188
+ tenantId: string;
189
+ };
190
+ } & {
191
+ options: {
192
+ password: {
193
+ secret: string;
194
+ } | {
195
+ secret_ref: string;
196
+ };
197
+ };
198
+ }) | ({
199
+ type: "azure-active-directory-service-principal-secret";
200
+ options: {
201
+ clientId: string;
202
+ tenantId: string;
203
+ clientSecret: string;
204
+ };
205
+ } & {
206
+ options: {
207
+ clientSecret: {
208
+ secret: string;
209
+ } | {
210
+ secret_ref: string;
211
+ };
212
+ };
213
+ }), ({
214
+ type: "default";
215
+ options: {
216
+ password: string;
217
+ userName: string;
218
+ };
219
+ } & {
220
+ options: {
221
+ password: {
222
+ secret: string;
223
+ } | {
224
+ secret_ref: string;
225
+ };
226
+ };
227
+ }) | ({
228
+ type: "azure-active-directory-password";
229
+ options: {
230
+ password: string;
231
+ userName: string;
232
+ clientId: string;
233
+ tenantId: string;
234
+ };
235
+ } & {
236
+ options: {
237
+ password: {
238
+ secret: string;
239
+ } | {
240
+ secret_ref: string;
241
+ };
242
+ };
243
+ }) | ({
244
+ type: "azure-active-directory-service-principal-secret";
245
+ options: {
246
+ clientId: string;
247
+ tenantId: string;
248
+ clientSecret: string;
249
+ };
250
+ } & {
251
+ options: {
252
+ clientSecret: {
253
+ secret: string;
254
+ } | {
255
+ secret_ref: string;
256
+ };
257
+ };
258
+ }), string, t.CodecProps>>;
259
+ additionalConfig: t.OptionalCodec<t.Codec<{
260
+ pollingIntervalMs?: number | undefined;
261
+ pollingBatchSize?: number | undefined;
262
+ trustServerCertificate?: boolean | undefined;
263
+ }, {
264
+ pollingIntervalMs?: number | undefined;
265
+ pollingBatchSize?: number | undefined;
266
+ trustServerCertificate?: boolean | undefined;
267
+ }, string, t.CodecProps>>;
268
+ debug_api: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
269
+ }>>>;
270
+ export type AnyHostedConnection = t.Encoded<typeof AnyHostedConnection>;
271
+ export type AnyHostedConnectionDecoded = t.Decoded<typeof AnyHostedConnection>;
272
+ export declare const JwkHmac: t.ObjectCodec<{
273
+ kty: t.Codec<"oct", "oct", t.CodecType.Literal, {
274
+ value: "oct";
275
+ }>;
276
+ kid: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
277
+ k: t.Codec<{
278
+ secret: string;
279
+ } | {
280
+ secret_ref: string;
281
+ }, {
282
+ secret: string;
283
+ } | {
284
+ secret_ref: string;
285
+ }, t.CodecType.Union, {
286
+ codecs: t.AnyCodec[];
287
+ }>;
288
+ alg: t.Codec<"HS256" | "HS384" | "HS512", "HS256" | "HS384" | "HS512", t.CodecType.Union, {
289
+ codecs: t.AnyCodec[];
290
+ }>;
291
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
292
+ }>;
293
+ export declare const Jwk: t.Union<t.Union<t.Union<t.Codec<{
294
+ kty: "RSA";
295
+ kid: string;
296
+ n: string;
297
+ e: string;
298
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
299
+ use?: string | undefined;
300
+ }, {
301
+ kty: "RSA";
302
+ kid: string;
303
+ n: string;
304
+ e: string;
305
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
306
+ use?: string | undefined;
307
+ }, t.CodecType.Object, {
308
+ shape: {
309
+ kty: t.Codec<"RSA", "RSA", t.CodecType.Literal, {
310
+ value: "RSA";
311
+ }>;
312
+ kid: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
313
+ n: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
314
+ e: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
315
+ alg: t.OptionalCodec<t.Codec<"RS256" | "RS384" | "RS512", "RS256" | "RS384" | "RS512", string, t.CodecProps>>;
316
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
317
+ };
318
+ }>, t.ObjectCodec<{
319
+ kty: t.Codec<"oct", "oct", t.CodecType.Literal, {
320
+ value: "oct";
321
+ }>;
322
+ kid: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
323
+ k: t.Codec<{
324
+ secret: string;
325
+ } | {
326
+ secret_ref: string;
327
+ }, {
328
+ secret: string;
329
+ } | {
330
+ secret_ref: string;
331
+ }, t.CodecType.Union, {
332
+ codecs: t.AnyCodec[];
333
+ }>;
334
+ alg: t.Codec<"HS256" | "HS384" | "HS512", "HS256" | "HS384" | "HS512", t.CodecType.Union, {
335
+ codecs: t.AnyCodec[];
336
+ }>;
337
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
338
+ }>>, t.Codec<{
339
+ kty: "OKP";
340
+ alg: "EdDSA";
341
+ crv: "Ed25519" | "Ed448";
342
+ x: string;
343
+ kid?: string | undefined;
344
+ use?: string | undefined;
345
+ }, {
346
+ kty: "OKP";
347
+ alg: "EdDSA";
348
+ crv: "Ed25519" | "Ed448";
349
+ x: string;
350
+ kid?: string | undefined;
351
+ use?: string | undefined;
352
+ }, t.CodecType.Object, {
353
+ shape: {
354
+ kty: t.Codec<"OKP", "OKP", t.CodecType.Literal, {
355
+ value: "OKP";
356
+ }>;
357
+ kid: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
358
+ crv: t.Codec<"Ed25519" | "Ed448", "Ed25519" | "Ed448", t.CodecType.Union, {
359
+ codecs: t.AnyCodec[];
360
+ }>;
361
+ x: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
362
+ alg: t.Codec<"EdDSA", "EdDSA", t.CodecType.Literal, {
363
+ value: "EdDSA";
364
+ }>;
365
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
366
+ };
367
+ }>>, t.Codec<{
368
+ kty: "EC";
369
+ alg: "ES256" | "ES384" | "ES512";
370
+ crv: "P-256" | "P-384" | "P-512";
371
+ x: string;
372
+ y: string;
373
+ kid?: string | undefined;
374
+ use?: string | undefined;
375
+ }, {
376
+ kty: "EC";
377
+ alg: "ES256" | "ES384" | "ES512";
378
+ crv: "P-256" | "P-384" | "P-512";
379
+ x: string;
380
+ y: string;
381
+ kid?: string | undefined;
382
+ use?: string | undefined;
383
+ }, t.CodecType.Object, {
384
+ shape: {
385
+ kty: t.Codec<"EC", "EC", t.CodecType.Literal, {
386
+ value: "EC";
387
+ }>;
388
+ kid: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
389
+ crv: t.Codec<"P-256" | "P-384" | "P-512", "P-256" | "P-384" | "P-512", t.CodecType.Union, {
390
+ codecs: t.AnyCodec[];
391
+ }>;
392
+ x: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
393
+ y: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
394
+ alg: t.Codec<"ES256" | "ES384" | "ES512", "ES256" | "ES384" | "ES512", t.CodecType.Union, {
395
+ codecs: t.AnyCodec[];
396
+ }>;
397
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
398
+ };
399
+ }>>;
400
+ export type Jwk = t.Encoded<typeof Jwk>;
401
+ export type JwkDecoded = t.Decoded<typeof Jwk>;
402
+ export declare const Jwks: t.ObjectCodec<{
403
+ keys: t.Codec<({
404
+ kty: "oct";
405
+ kid: string;
406
+ k: {
407
+ secret: string;
408
+ } | {
409
+ secret_ref: string;
410
+ };
411
+ alg: "HS256" | "HS384" | "HS512";
412
+ use?: string | undefined;
413
+ } | {
414
+ kty: "RSA";
415
+ kid: string;
416
+ n: string;
417
+ e: string;
418
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
419
+ use?: string | undefined;
420
+ } | {
421
+ kty: "OKP";
422
+ alg: "EdDSA";
423
+ crv: "Ed25519" | "Ed448";
424
+ x: string;
425
+ kid?: string | undefined;
426
+ use?: string | undefined;
427
+ } | {
428
+ kty: "EC";
429
+ alg: "ES256" | "ES384" | "ES512";
430
+ crv: "P-256" | "P-384" | "P-512";
431
+ x: string;
432
+ y: string;
433
+ kid?: string | undefined;
434
+ use?: string | undefined;
435
+ })[], ({
436
+ kty: "oct";
437
+ kid: string;
438
+ k: {
439
+ secret: string;
440
+ } | {
441
+ secret_ref: string;
442
+ };
443
+ alg: "HS256" | "HS384" | "HS512";
444
+ use?: string | undefined;
445
+ } | {
446
+ kty: "RSA";
447
+ kid: string;
448
+ n: string;
449
+ e: string;
450
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
451
+ use?: string | undefined;
452
+ } | {
453
+ kty: "OKP";
454
+ alg: "EdDSA";
455
+ crv: "Ed25519" | "Ed448";
456
+ x: string;
457
+ kid?: string | undefined;
458
+ use?: string | undefined;
459
+ } | {
460
+ kty: "EC";
461
+ alg: "ES256" | "ES384" | "ES512";
462
+ crv: "P-256" | "P-384" | "P-512";
463
+ x: string;
464
+ y: string;
465
+ kid?: string | undefined;
466
+ use?: string | undefined;
467
+ })[], t.CodecType.Array, {
468
+ type: t.Union<t.Union<t.Union<t.Codec<{
469
+ kty: "RSA";
470
+ kid: string;
471
+ n: string;
472
+ e: string;
473
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
474
+ use?: string | undefined;
475
+ }, {
476
+ kty: "RSA";
477
+ kid: string;
478
+ n: string;
479
+ e: string;
480
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
481
+ use?: string | undefined;
482
+ }, t.CodecType.Object, {
483
+ shape: {
484
+ kty: t.Codec<"RSA", "RSA", t.CodecType.Literal, {
485
+ value: "RSA";
486
+ }>;
487
+ kid: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
488
+ n: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
489
+ e: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
490
+ alg: t.OptionalCodec<t.Codec<"RS256" | "RS384" | "RS512", "RS256" | "RS384" | "RS512", string, t.CodecProps>>;
491
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
492
+ };
493
+ }>, t.ObjectCodec<{
494
+ kty: t.Codec<"oct", "oct", t.CodecType.Literal, {
495
+ value: "oct";
496
+ }>;
497
+ kid: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
498
+ k: t.Codec<{
499
+ secret: string;
500
+ } | {
501
+ secret_ref: string;
502
+ }, {
503
+ secret: string;
504
+ } | {
505
+ secret_ref: string;
506
+ }, t.CodecType.Union, {
507
+ codecs: t.AnyCodec[];
508
+ }>;
509
+ alg: t.Codec<"HS256" | "HS384" | "HS512", "HS256" | "HS384" | "HS512", t.CodecType.Union, {
510
+ codecs: t.AnyCodec[];
511
+ }>;
512
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
513
+ }>>, t.Codec<{
514
+ kty: "OKP";
515
+ alg: "EdDSA";
516
+ crv: "Ed25519" | "Ed448";
517
+ x: string;
518
+ kid?: string | undefined;
519
+ use?: string | undefined;
520
+ }, {
521
+ kty: "OKP";
522
+ alg: "EdDSA";
523
+ crv: "Ed25519" | "Ed448";
524
+ x: string;
525
+ kid?: string | undefined;
526
+ use?: string | undefined;
527
+ }, t.CodecType.Object, {
528
+ shape: {
529
+ kty: t.Codec<"OKP", "OKP", t.CodecType.Literal, {
530
+ value: "OKP";
531
+ }>;
532
+ kid: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
533
+ crv: t.Codec<"Ed25519" | "Ed448", "Ed25519" | "Ed448", t.CodecType.Union, {
534
+ codecs: t.AnyCodec[];
535
+ }>;
536
+ x: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
537
+ alg: t.Codec<"EdDSA", "EdDSA", t.CodecType.Literal, {
538
+ value: "EdDSA";
539
+ }>;
540
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
541
+ };
542
+ }>>, t.Codec<{
543
+ kty: "EC";
544
+ alg: "ES256" | "ES384" | "ES512";
545
+ crv: "P-256" | "P-384" | "P-512";
546
+ x: string;
547
+ y: string;
548
+ kid?: string | undefined;
549
+ use?: string | undefined;
550
+ }, {
551
+ kty: "EC";
552
+ alg: "ES256" | "ES384" | "ES512";
553
+ crv: "P-256" | "P-384" | "P-512";
554
+ x: string;
555
+ y: string;
556
+ kid?: string | undefined;
557
+ use?: string | undefined;
558
+ }, t.CodecType.Object, {
559
+ shape: {
560
+ kty: t.Codec<"EC", "EC", t.CodecType.Literal, {
561
+ value: "EC";
562
+ }>;
563
+ kid: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
564
+ crv: t.Codec<"P-256" | "P-384" | "P-512", "P-256" | "P-384" | "P-512", t.CodecType.Union, {
565
+ codecs: t.AnyCodec[];
566
+ }>;
567
+ x: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
568
+ y: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
569
+ alg: t.Codec<"ES256" | "ES384" | "ES512", "ES256" | "ES384" | "ES512", t.CodecType.Union, {
570
+ codecs: t.AnyCodec[];
571
+ }>;
572
+ use: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
573
+ };
574
+ }>>;
575
+ }>;
576
+ }>;
577
+ declare const ReplicationConfig: t.ObjectCodec<{
578
+ connections: t.OptionalCodec<t.Codec<(({
579
+ type: import("./connections/ConnectionType.js").ConnectionType;
580
+ name?: string | undefined;
581
+ id?: string | undefined;
582
+ tag?: string | undefined;
583
+ username?: string | undefined;
584
+ password?: {
585
+ secret: string;
586
+ } | {
587
+ secret_ref: string;
588
+ } | undefined;
589
+ database?: string | undefined;
590
+ } & {
591
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
592
+ uri: string;
593
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
594
+ vpc_endpoint_hostname?: string | undefined;
595
+ }) | ({
596
+ type: import("./connections/ConnectionType.js").ConnectionType;
597
+ name?: string | undefined;
598
+ id?: string | undefined;
599
+ tag?: string | undefined;
600
+ username?: string | undefined;
601
+ password?: {
602
+ secret: string;
603
+ } | {
604
+ secret_ref: string;
605
+ } | undefined;
606
+ database?: string | undefined;
607
+ } & {
608
+ type: import("./connections/ConnectionType.js").ConnectionType.MSSQL;
609
+ uri?: string | undefined;
610
+ hostname?: string | undefined;
611
+ port?: number | undefined;
612
+ schema?: string | undefined;
613
+ authentication?: ({
614
+ type: "default";
615
+ options: {
616
+ password: string;
617
+ userName: string;
618
+ };
619
+ } & {
620
+ options: {
621
+ password: {
622
+ secret: string;
623
+ } | {
624
+ secret_ref: string;
625
+ };
626
+ };
627
+ }) | ({
628
+ type: "azure-active-directory-password";
629
+ options: {
630
+ password: string;
631
+ userName: string;
632
+ clientId: string;
633
+ tenantId: string;
634
+ };
635
+ } & {
636
+ options: {
637
+ password: {
638
+ secret: string;
639
+ } | {
640
+ secret_ref: string;
641
+ };
642
+ };
643
+ }) | ({
644
+ type: "azure-active-directory-service-principal-secret";
645
+ options: {
646
+ clientId: string;
647
+ tenantId: string;
648
+ clientSecret: string;
649
+ };
650
+ } & {
651
+ options: {
652
+ clientSecret: {
653
+ secret: string;
654
+ } | {
655
+ secret_ref: string;
656
+ };
657
+ };
658
+ }) | undefined;
659
+ additionalConfig?: {
660
+ pollingIntervalMs?: number | undefined;
661
+ pollingBatchSize?: number | undefined;
662
+ trustServerCertificate?: boolean | undefined;
663
+ } | undefined;
664
+ debug_api?: boolean | undefined;
665
+ }) | ({
666
+ type: import("./connections/ConnectionType.js").ConnectionType;
667
+ name?: string | undefined;
668
+ id?: string | undefined;
669
+ tag?: string | undefined;
670
+ username?: string | undefined;
671
+ password?: {
672
+ secret: string;
673
+ } | {
674
+ secret_ref: string;
675
+ } | undefined;
676
+ database?: string | undefined;
677
+ } & {
678
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
679
+ uri?: string | undefined;
680
+ hostname?: string | undefined;
681
+ port?: number | undefined;
682
+ debug_api?: boolean | undefined;
683
+ client_certificate?: string | undefined;
684
+ client_private_key?: {
685
+ secret: string;
686
+ } | {
687
+ secret_ref: string;
688
+ } | undefined;
689
+ }) | ({
690
+ type: import("./connections/ConnectionType.js").ConnectionType;
691
+ name?: string | undefined;
692
+ id?: string | undefined;
693
+ tag?: string | undefined;
694
+ username?: string | undefined;
695
+ password?: {
696
+ secret: string;
697
+ } | {
698
+ secret_ref: string;
699
+ } | undefined;
700
+ database?: string | undefined;
701
+ } & {
702
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
703
+ uri?: string | undefined;
704
+ vpc_endpoint_hostname?: string | undefined;
705
+ hostname?: string | undefined;
706
+ port?: number | undefined;
707
+ debug_api?: boolean | undefined;
708
+ client_certificate?: string | undefined;
709
+ client_private_key?: {
710
+ secret: string;
711
+ } | {
712
+ secret_ref: string;
713
+ } | undefined;
714
+ sslmode?: "verify-full" | "verify-ca" | undefined;
715
+ cacert?: string | undefined;
716
+ }))[], (({
717
+ type: import("./connections/ConnectionType.js").ConnectionType;
718
+ name?: string | undefined;
719
+ id?: string | undefined;
720
+ tag?: string | undefined;
721
+ username?: string | undefined;
722
+ password?: {
723
+ secret: string;
724
+ } | {
725
+ secret_ref: string;
726
+ } | undefined;
727
+ database?: string | undefined;
728
+ } & {
729
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
730
+ uri: string;
731
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
732
+ vpc_endpoint_hostname?: string | undefined;
733
+ }) | ({
734
+ type: import("./connections/ConnectionType.js").ConnectionType;
735
+ name?: string | undefined;
736
+ id?: string | undefined;
737
+ tag?: string | undefined;
738
+ username?: string | undefined;
739
+ password?: {
740
+ secret: string;
741
+ } | {
742
+ secret_ref: string;
743
+ } | undefined;
744
+ database?: string | undefined;
745
+ } & {
746
+ type: import("./connections/ConnectionType.js").ConnectionType.MSSQL;
747
+ uri?: string | undefined;
748
+ hostname?: string | undefined;
749
+ port?: number | undefined;
750
+ schema?: string | undefined;
751
+ authentication?: ({
752
+ type: "default";
753
+ options: {
754
+ password: string;
755
+ userName: string;
756
+ };
757
+ } & {
758
+ options: {
759
+ password: {
760
+ secret: string;
761
+ } | {
762
+ secret_ref: string;
763
+ };
764
+ };
765
+ }) | ({
766
+ type: "azure-active-directory-password";
767
+ options: {
768
+ password: string;
769
+ userName: string;
770
+ clientId: string;
771
+ tenantId: string;
772
+ };
773
+ } & {
774
+ options: {
775
+ password: {
776
+ secret: string;
777
+ } | {
778
+ secret_ref: string;
779
+ };
780
+ };
781
+ }) | ({
782
+ type: "azure-active-directory-service-principal-secret";
783
+ options: {
784
+ clientId: string;
785
+ tenantId: string;
786
+ clientSecret: string;
787
+ };
788
+ } & {
789
+ options: {
790
+ clientSecret: {
791
+ secret: string;
792
+ } | {
793
+ secret_ref: string;
794
+ };
795
+ };
796
+ }) | undefined;
797
+ additionalConfig?: {
798
+ pollingIntervalMs?: number | undefined;
799
+ pollingBatchSize?: number | undefined;
800
+ trustServerCertificate?: boolean | undefined;
801
+ } | undefined;
802
+ debug_api?: boolean | undefined;
803
+ }) | ({
804
+ type: import("./connections/ConnectionType.js").ConnectionType;
805
+ name?: string | undefined;
806
+ id?: string | undefined;
807
+ tag?: string | undefined;
808
+ username?: string | undefined;
809
+ password?: {
810
+ secret: string;
811
+ } | {
812
+ secret_ref: string;
813
+ } | undefined;
814
+ database?: string | undefined;
815
+ } & {
816
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
817
+ uri?: string | undefined;
818
+ hostname?: string | undefined;
819
+ port?: number | undefined;
820
+ debug_api?: boolean | undefined;
821
+ client_certificate?: string | undefined;
822
+ client_private_key?: {
823
+ secret: string;
824
+ } | {
825
+ secret_ref: string;
826
+ } | undefined;
827
+ }) | ({
828
+ type: import("./connections/ConnectionType.js").ConnectionType;
829
+ name?: string | undefined;
830
+ id?: string | undefined;
831
+ tag?: string | undefined;
832
+ username?: string | undefined;
833
+ password?: {
834
+ secret: string;
835
+ } | {
836
+ secret_ref: string;
837
+ } | undefined;
838
+ database?: string | undefined;
839
+ } & {
840
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
841
+ uri?: string | undefined;
842
+ vpc_endpoint_hostname?: string | undefined;
843
+ hostname?: string | undefined;
844
+ port?: number | undefined;
845
+ debug_api?: boolean | undefined;
846
+ client_certificate?: string | undefined;
847
+ client_private_key?: {
848
+ secret: string;
849
+ } | {
850
+ secret_ref: string;
851
+ } | undefined;
852
+ sslmode?: "verify-full" | "verify-ca" | undefined;
853
+ cacert?: string | undefined;
854
+ }))[], string, t.CodecProps>>;
855
+ }>;
856
+ export type ReplicationConfig = t.Encoded<typeof ReplicationConfig>;
857
+ declare const ClientAuthConfig: t.ObjectCodec<{
858
+ jwks_uri: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
859
+ jwks: t.OptionalCodec<t.Codec<{
860
+ keys: ({
861
+ kty: "oct";
862
+ kid: string;
863
+ k: {
864
+ secret: string;
865
+ } | {
866
+ secret_ref: string;
867
+ };
868
+ alg: "HS256" | "HS384" | "HS512";
869
+ use?: string | undefined;
870
+ } | {
871
+ kty: "RSA";
872
+ kid: string;
873
+ n: string;
874
+ e: string;
875
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
876
+ use?: string | undefined;
877
+ } | {
878
+ kty: "OKP";
879
+ alg: "EdDSA";
880
+ crv: "Ed25519" | "Ed448";
881
+ x: string;
882
+ kid?: string | undefined;
883
+ use?: string | undefined;
884
+ } | {
885
+ kty: "EC";
886
+ alg: "ES256" | "ES384" | "ES512";
887
+ crv: "P-256" | "P-384" | "P-512";
888
+ x: string;
889
+ y: string;
890
+ kid?: string | undefined;
891
+ use?: string | undefined;
892
+ })[];
893
+ }, {
894
+ keys: ({
895
+ kty: "oct";
896
+ kid: string;
897
+ k: {
898
+ secret: string;
899
+ } | {
900
+ secret_ref: string;
901
+ };
902
+ alg: "HS256" | "HS384" | "HS512";
903
+ use?: string | undefined;
904
+ } | {
905
+ kty: "RSA";
906
+ kid: string;
907
+ n: string;
908
+ e: string;
909
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
910
+ use?: string | undefined;
911
+ } | {
912
+ kty: "OKP";
913
+ alg: "EdDSA";
914
+ crv: "Ed25519" | "Ed448";
915
+ x: string;
916
+ kid?: string | undefined;
917
+ use?: string | undefined;
918
+ } | {
919
+ kty: "EC";
920
+ alg: "ES256" | "ES384" | "ES512";
921
+ crv: "P-256" | "P-384" | "P-512";
922
+ x: string;
923
+ y: string;
924
+ kid?: string | undefined;
925
+ use?: string | undefined;
926
+ })[];
927
+ }, string, t.CodecProps>>;
928
+ supabase: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
929
+ supabase_jwt_secret: t.OptionalCodec<t.Codec<{
930
+ secret: string;
931
+ } | {
932
+ secret_ref: string;
933
+ }, {
934
+ secret: string;
935
+ } | {
936
+ secret_ref: string;
937
+ }, string, t.CodecProps>>;
938
+ additional_audiences: t.OptionalCodec<t.Codec<string[], string[], string, t.CodecProps>>;
939
+ allow_temporary_tokens: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
940
+ }>;
941
+ export type ClientAuthConfig = t.Encoded<typeof ClientAuthConfig>;
942
+ export declare const BasePowerSyncHostedConfig: t.ObjectCodec<{
943
+ region: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
944
+ replication: t.OptionalCodec<t.Codec<{
945
+ connections?: (({
946
+ type: import("./connections/ConnectionType.js").ConnectionType;
947
+ name?: string | undefined;
948
+ id?: string | undefined;
949
+ tag?: string | undefined;
950
+ username?: string | undefined;
951
+ password?: {
952
+ secret: string;
953
+ } | {
954
+ secret_ref: string;
955
+ } | undefined;
956
+ database?: string | undefined;
957
+ } & {
958
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
959
+ uri: string;
960
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
961
+ vpc_endpoint_hostname?: string | undefined;
962
+ }) | ({
963
+ type: import("./connections/ConnectionType.js").ConnectionType;
964
+ name?: string | undefined;
965
+ id?: string | undefined;
966
+ tag?: string | undefined;
967
+ username?: string | undefined;
968
+ password?: {
969
+ secret: string;
970
+ } | {
971
+ secret_ref: string;
972
+ } | undefined;
973
+ database?: string | undefined;
974
+ } & {
975
+ type: import("./connections/ConnectionType.js").ConnectionType.MSSQL;
976
+ uri?: string | undefined;
977
+ hostname?: string | undefined;
978
+ port?: number | undefined;
979
+ schema?: string | undefined;
980
+ authentication?: ({
981
+ type: "default";
982
+ options: {
983
+ password: string;
984
+ userName: string;
985
+ };
986
+ } & {
987
+ options: {
988
+ password: {
989
+ secret: string;
990
+ } | {
991
+ secret_ref: string;
992
+ };
993
+ };
994
+ }) | ({
995
+ type: "azure-active-directory-password";
996
+ options: {
997
+ password: string;
998
+ userName: string;
999
+ clientId: string;
1000
+ tenantId: string;
1001
+ };
1002
+ } & {
1003
+ options: {
1004
+ password: {
1005
+ secret: string;
1006
+ } | {
1007
+ secret_ref: string;
1008
+ };
1009
+ };
1010
+ }) | ({
1011
+ type: "azure-active-directory-service-principal-secret";
1012
+ options: {
1013
+ clientId: string;
1014
+ tenantId: string;
1015
+ clientSecret: string;
1016
+ };
1017
+ } & {
1018
+ options: {
1019
+ clientSecret: {
1020
+ secret: string;
1021
+ } | {
1022
+ secret_ref: string;
1023
+ };
1024
+ };
1025
+ }) | undefined;
1026
+ additionalConfig?: {
1027
+ pollingIntervalMs?: number | undefined;
1028
+ pollingBatchSize?: number | undefined;
1029
+ trustServerCertificate?: boolean | undefined;
1030
+ } | undefined;
1031
+ debug_api?: boolean | undefined;
1032
+ }) | ({
1033
+ type: import("./connections/ConnectionType.js").ConnectionType;
1034
+ name?: string | undefined;
1035
+ id?: string | undefined;
1036
+ tag?: string | undefined;
1037
+ username?: string | undefined;
1038
+ password?: {
1039
+ secret: string;
1040
+ } | {
1041
+ secret_ref: string;
1042
+ } | undefined;
1043
+ database?: string | undefined;
1044
+ } & {
1045
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
1046
+ uri?: string | undefined;
1047
+ hostname?: string | undefined;
1048
+ port?: number | undefined;
1049
+ debug_api?: boolean | undefined;
1050
+ client_certificate?: string | undefined;
1051
+ client_private_key?: {
1052
+ secret: string;
1053
+ } | {
1054
+ secret_ref: string;
1055
+ } | undefined;
1056
+ }) | ({
1057
+ type: import("./connections/ConnectionType.js").ConnectionType;
1058
+ name?: string | undefined;
1059
+ id?: string | undefined;
1060
+ tag?: string | undefined;
1061
+ username?: string | undefined;
1062
+ password?: {
1063
+ secret: string;
1064
+ } | {
1065
+ secret_ref: string;
1066
+ } | undefined;
1067
+ database?: string | undefined;
1068
+ } & {
1069
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
1070
+ uri?: string | undefined;
1071
+ vpc_endpoint_hostname?: string | undefined;
1072
+ hostname?: string | undefined;
1073
+ port?: number | undefined;
1074
+ debug_api?: boolean | undefined;
1075
+ client_certificate?: string | undefined;
1076
+ client_private_key?: {
1077
+ secret: string;
1078
+ } | {
1079
+ secret_ref: string;
1080
+ } | undefined;
1081
+ sslmode?: "verify-full" | "verify-ca" | undefined;
1082
+ cacert?: string | undefined;
1083
+ }))[] | undefined;
1084
+ }, {
1085
+ connections?: (({
1086
+ type: import("./connections/ConnectionType.js").ConnectionType;
1087
+ name?: string | undefined;
1088
+ id?: string | undefined;
1089
+ tag?: string | undefined;
1090
+ username?: string | undefined;
1091
+ password?: {
1092
+ secret: string;
1093
+ } | {
1094
+ secret_ref: string;
1095
+ } | undefined;
1096
+ database?: string | undefined;
1097
+ } & {
1098
+ type: import("./connections/ConnectionType.js").ConnectionType.MONGODB;
1099
+ uri: string;
1100
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
1101
+ vpc_endpoint_hostname?: string | undefined;
1102
+ }) | ({
1103
+ type: import("./connections/ConnectionType.js").ConnectionType;
1104
+ name?: string | undefined;
1105
+ id?: string | undefined;
1106
+ tag?: string | undefined;
1107
+ username?: string | undefined;
1108
+ password?: {
1109
+ secret: string;
1110
+ } | {
1111
+ secret_ref: string;
1112
+ } | undefined;
1113
+ database?: string | undefined;
1114
+ } & {
1115
+ type: import("./connections/ConnectionType.js").ConnectionType.MSSQL;
1116
+ uri?: string | undefined;
1117
+ hostname?: string | undefined;
1118
+ port?: number | undefined;
1119
+ schema?: string | undefined;
1120
+ authentication?: ({
1121
+ type: "default";
1122
+ options: {
1123
+ password: string;
1124
+ userName: string;
1125
+ };
1126
+ } & {
1127
+ options: {
1128
+ password: {
1129
+ secret: string;
1130
+ } | {
1131
+ secret_ref: string;
1132
+ };
1133
+ };
1134
+ }) | ({
1135
+ type: "azure-active-directory-password";
1136
+ options: {
1137
+ password: string;
1138
+ userName: string;
1139
+ clientId: string;
1140
+ tenantId: string;
1141
+ };
1142
+ } & {
1143
+ options: {
1144
+ password: {
1145
+ secret: string;
1146
+ } | {
1147
+ secret_ref: string;
1148
+ };
1149
+ };
1150
+ }) | ({
1151
+ type: "azure-active-directory-service-principal-secret";
1152
+ options: {
1153
+ clientId: string;
1154
+ tenantId: string;
1155
+ clientSecret: string;
1156
+ };
1157
+ } & {
1158
+ options: {
1159
+ clientSecret: {
1160
+ secret: string;
1161
+ } | {
1162
+ secret_ref: string;
1163
+ };
1164
+ };
1165
+ }) | undefined;
1166
+ additionalConfig?: {
1167
+ pollingIntervalMs?: number | undefined;
1168
+ pollingBatchSize?: number | undefined;
1169
+ trustServerCertificate?: boolean | undefined;
1170
+ } | undefined;
1171
+ debug_api?: boolean | undefined;
1172
+ }) | ({
1173
+ type: import("./connections/ConnectionType.js").ConnectionType;
1174
+ name?: string | undefined;
1175
+ id?: string | undefined;
1176
+ tag?: string | undefined;
1177
+ username?: string | undefined;
1178
+ password?: {
1179
+ secret: string;
1180
+ } | {
1181
+ secret_ref: string;
1182
+ } | undefined;
1183
+ database?: string | undefined;
1184
+ } & {
1185
+ type: import("./connections/ConnectionType.js").ConnectionType.MYSQL;
1186
+ uri?: string | undefined;
1187
+ hostname?: string | undefined;
1188
+ port?: number | undefined;
1189
+ debug_api?: boolean | undefined;
1190
+ client_certificate?: string | undefined;
1191
+ client_private_key?: {
1192
+ secret: string;
1193
+ } | {
1194
+ secret_ref: string;
1195
+ } | undefined;
1196
+ }) | ({
1197
+ type: import("./connections/ConnectionType.js").ConnectionType;
1198
+ name?: string | undefined;
1199
+ id?: string | undefined;
1200
+ tag?: string | undefined;
1201
+ username?: string | undefined;
1202
+ password?: {
1203
+ secret: string;
1204
+ } | {
1205
+ secret_ref: string;
1206
+ } | undefined;
1207
+ database?: string | undefined;
1208
+ } & {
1209
+ type: import("./connections/ConnectionType.js").ConnectionType.POSTGRES;
1210
+ uri?: string | undefined;
1211
+ vpc_endpoint_hostname?: string | undefined;
1212
+ hostname?: string | undefined;
1213
+ port?: number | undefined;
1214
+ debug_api?: boolean | undefined;
1215
+ client_certificate?: string | undefined;
1216
+ client_private_key?: {
1217
+ secret: string;
1218
+ } | {
1219
+ secret_ref: string;
1220
+ } | undefined;
1221
+ sslmode?: "verify-full" | "verify-ca" | undefined;
1222
+ cacert?: string | undefined;
1223
+ }))[] | undefined;
1224
+ }, string, t.CodecProps>>;
1225
+ client_auth: t.OptionalCodec<t.Codec<{
1226
+ jwks_uri?: string | undefined;
1227
+ jwks?: {
1228
+ keys: ({
1229
+ kty: "oct";
1230
+ kid: string;
1231
+ k: {
1232
+ secret: string;
1233
+ } | {
1234
+ secret_ref: string;
1235
+ };
1236
+ alg: "HS256" | "HS384" | "HS512";
1237
+ use?: string | undefined;
1238
+ } | {
1239
+ kty: "RSA";
1240
+ kid: string;
1241
+ n: string;
1242
+ e: string;
1243
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
1244
+ use?: string | undefined;
1245
+ } | {
1246
+ kty: "OKP";
1247
+ alg: "EdDSA";
1248
+ crv: "Ed25519" | "Ed448";
1249
+ x: string;
1250
+ kid?: string | undefined;
1251
+ use?: string | undefined;
1252
+ } | {
1253
+ kty: "EC";
1254
+ alg: "ES256" | "ES384" | "ES512";
1255
+ crv: "P-256" | "P-384" | "P-512";
1256
+ x: string;
1257
+ y: string;
1258
+ kid?: string | undefined;
1259
+ use?: string | undefined;
1260
+ })[];
1261
+ } | undefined;
1262
+ supabase?: boolean | undefined;
1263
+ supabase_jwt_secret?: {
1264
+ secret: string;
1265
+ } | {
1266
+ secret_ref: string;
1267
+ } | undefined;
1268
+ additional_audiences?: string[] | undefined;
1269
+ allow_temporary_tokens?: boolean | undefined;
1270
+ }, {
1271
+ jwks_uri?: string | undefined;
1272
+ jwks?: {
1273
+ keys: ({
1274
+ kty: "oct";
1275
+ kid: string;
1276
+ k: {
1277
+ secret: string;
1278
+ } | {
1279
+ secret_ref: string;
1280
+ };
1281
+ alg: "HS256" | "HS384" | "HS512";
1282
+ use?: string | undefined;
1283
+ } | {
1284
+ kty: "RSA";
1285
+ kid: string;
1286
+ n: string;
1287
+ e: string;
1288
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
1289
+ use?: string | undefined;
1290
+ } | {
1291
+ kty: "OKP";
1292
+ alg: "EdDSA";
1293
+ crv: "Ed25519" | "Ed448";
1294
+ x: string;
1295
+ kid?: string | undefined;
1296
+ use?: string | undefined;
1297
+ } | {
1298
+ kty: "EC";
1299
+ alg: "ES256" | "ES384" | "ES512";
1300
+ crv: "P-256" | "P-384" | "P-512";
1301
+ x: string;
1302
+ y: string;
1303
+ kid?: string | undefined;
1304
+ use?: string | undefined;
1305
+ })[];
1306
+ } | undefined;
1307
+ supabase?: boolean | undefined;
1308
+ supabase_jwt_secret?: {
1309
+ secret: string;
1310
+ } | {
1311
+ secret_ref: string;
1312
+ } | undefined;
1313
+ additional_audiences?: string[] | undefined;
1314
+ allow_temporary_tokens?: boolean | undefined;
1315
+ }, string, t.CodecProps>>;
1316
+ }>;
1317
+ export type BasePowerSyncHostedConfigDecoded = t.Decoded<typeof BasePowerSyncHostedConfig>;
1318
+ export {};