@powersync/management-types 0.0.0-dev.85b697f3

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 +10 -0
  28. package/dist/errors.js +13 -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 +44 -0
@@ -0,0 +1,1055 @@
1
+ import { internal_routes } from '@powersync/service-types';
2
+ import * as t from 'ts-codec';
3
+ export declare enum MANAGE_ROUTES {
4
+ LIST = "/api/v1/instances/list",
5
+ CREATE = "/api/v1/instances/create",
6
+ DEPLOY = "/api/v1/instances/deploy",
7
+ DESTROY = "/api/v1/instances/destroy",
8
+ DEACTIVATE = "/api/v1/instances/deactivate",
9
+ COMPACT = "/api/v1/instances/compact",
10
+ CONFIG = "/api/v1/instances/config",
11
+ STATUS = "/api/v1/instances/status",
12
+ DIAGNOSTICS = "/api/v1/instances/diagnostics"
13
+ }
14
+ export declare const ListInstancesRequest: t.ObjectCodec<{
15
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
16
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
17
+ }>;
18
+ export type ListInstancesRequest = t.Encoded<typeof ListInstancesRequest>;
19
+ export declare const ListInstancesResponse: t.ObjectCodec<{
20
+ instances: t.ArrayCodec<t.ObjectCodec<{
21
+ id: t.IdentityCodec<t.CodecType.String>;
22
+ name: t.IdentityCodec<t.CodecType.String>;
23
+ has_config: t.IdentityCodec<t.CodecType.Boolean>;
24
+ deployable: t.IdentityCodec<t.CodecType.Boolean>;
25
+ }>>;
26
+ }>;
27
+ export type ListInstancesResponse = t.Encoded<typeof ListInstancesResponse>;
28
+ export declare const CreateInstanceRequest: t.ObjectCodec<{
29
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
30
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
31
+ name: t.IdentityCodec<t.CodecType.String>;
32
+ region: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
33
+ }>;
34
+ export type CreateInstanceRequest = t.Encoded<typeof CreateInstanceRequest>;
35
+ export declare const CreateInstanceResponse: t.ObjectCodec<{
36
+ id: t.IdentityCodec<t.CodecType.String>;
37
+ }>;
38
+ export type CreateInstanceResponse = t.Encoded<typeof CreateInstanceResponse>;
39
+ export declare const DeployInstanceRequest: t.Intersection<t.Codec<{
40
+ id: string;
41
+ org_id: import("bson").ObjectId;
42
+ app_id: import("bson").ObjectId;
43
+ }, {
44
+ id: string;
45
+ org_id: string;
46
+ app_id: string;
47
+ }, string, t.CodecProps>, t.ObjectCodec<{
48
+ name: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
49
+ config: t.ObjectCodec<{
50
+ region: t.Codec<string, string, t.CodecType.String, t.CodecProps>;
51
+ replication: t.OptionalCodec<t.Codec<{
52
+ connections?: (({
53
+ type: import("../index.js").ConnectionType;
54
+ name?: string | undefined;
55
+ id?: string | undefined;
56
+ tag?: string | undefined;
57
+ username?: string | undefined;
58
+ password?: {
59
+ secret: string;
60
+ } | {
61
+ secret_ref: string;
62
+ } | undefined;
63
+ database?: string | undefined;
64
+ } & {
65
+ type: import("../index.js").ConnectionType.MONGODB;
66
+ uri: string;
67
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
68
+ vpc_endpoint_hostname?: string | undefined;
69
+ }) | ({
70
+ type: import("../index.js").ConnectionType;
71
+ name?: string | undefined;
72
+ id?: string | undefined;
73
+ tag?: string | undefined;
74
+ username?: string | undefined;
75
+ password?: {
76
+ secret: string;
77
+ } | {
78
+ secret_ref: string;
79
+ } | undefined;
80
+ database?: string | undefined;
81
+ } & {
82
+ type: import("../index.js").ConnectionType.MSSQL;
83
+ uri?: string | undefined;
84
+ hostname?: string | undefined;
85
+ port?: number | undefined;
86
+ schema?: string | undefined;
87
+ authentication?: ({
88
+ type: "default";
89
+ options: {
90
+ password: string;
91
+ userName: string;
92
+ };
93
+ } & {
94
+ options: {
95
+ password: {
96
+ secret: string;
97
+ } | {
98
+ secret_ref: string;
99
+ };
100
+ };
101
+ }) | ({
102
+ type: "azure-active-directory-password";
103
+ options: {
104
+ password: string;
105
+ userName: string;
106
+ clientId: string;
107
+ tenantId: string;
108
+ };
109
+ } & {
110
+ options: {
111
+ password: {
112
+ secret: string;
113
+ } | {
114
+ secret_ref: string;
115
+ };
116
+ };
117
+ }) | ({
118
+ type: "azure-active-directory-service-principal-secret";
119
+ options: {
120
+ clientId: string;
121
+ tenantId: string;
122
+ clientSecret: string;
123
+ };
124
+ } & {
125
+ options: {
126
+ clientSecret: {
127
+ secret: string;
128
+ } | {
129
+ secret_ref: string;
130
+ };
131
+ };
132
+ }) | undefined;
133
+ additionalConfig?: {
134
+ pollingIntervalMs?: number | undefined;
135
+ pollingBatchSize?: number | undefined;
136
+ trustServerCertificate?: boolean | undefined;
137
+ } | undefined;
138
+ debug_api?: boolean | undefined;
139
+ }) | ({
140
+ type: import("../index.js").ConnectionType;
141
+ name?: string | undefined;
142
+ id?: string | undefined;
143
+ tag?: string | undefined;
144
+ username?: string | undefined;
145
+ password?: {
146
+ secret: string;
147
+ } | {
148
+ secret_ref: string;
149
+ } | undefined;
150
+ database?: string | undefined;
151
+ } & {
152
+ type: import("../index.js").ConnectionType.MYSQL;
153
+ uri?: string | undefined;
154
+ hostname?: string | undefined;
155
+ port?: number | undefined;
156
+ debug_api?: boolean | undefined;
157
+ client_certificate?: string | undefined;
158
+ client_private_key?: {
159
+ secret: string;
160
+ } | {
161
+ secret_ref: string;
162
+ } | undefined;
163
+ }) | ({
164
+ type: import("../index.js").ConnectionType;
165
+ name?: string | undefined;
166
+ id?: string | undefined;
167
+ tag?: string | undefined;
168
+ username?: string | undefined;
169
+ password?: {
170
+ secret: string;
171
+ } | {
172
+ secret_ref: string;
173
+ } | undefined;
174
+ database?: string | undefined;
175
+ } & {
176
+ type: import("../index.js").ConnectionType.POSTGRES;
177
+ uri?: string | undefined;
178
+ vpc_endpoint_hostname?: string | undefined;
179
+ hostname?: string | undefined;
180
+ port?: number | undefined;
181
+ debug_api?: boolean | undefined;
182
+ client_certificate?: string | undefined;
183
+ client_private_key?: {
184
+ secret: string;
185
+ } | {
186
+ secret_ref: string;
187
+ } | undefined;
188
+ sslmode?: "verify-full" | "verify-ca" | undefined;
189
+ cacert?: string | undefined;
190
+ }))[] | undefined;
191
+ }, {
192
+ connections?: (({
193
+ type: import("../index.js").ConnectionType;
194
+ name?: string | undefined;
195
+ id?: string | undefined;
196
+ tag?: string | undefined;
197
+ username?: string | undefined;
198
+ password?: {
199
+ secret: string;
200
+ } | {
201
+ secret_ref: string;
202
+ } | undefined;
203
+ database?: string | undefined;
204
+ } & {
205
+ type: import("../index.js").ConnectionType.MONGODB;
206
+ uri: string;
207
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
208
+ vpc_endpoint_hostname?: string | undefined;
209
+ }) | ({
210
+ type: import("../index.js").ConnectionType;
211
+ name?: string | undefined;
212
+ id?: string | undefined;
213
+ tag?: string | undefined;
214
+ username?: string | undefined;
215
+ password?: {
216
+ secret: string;
217
+ } | {
218
+ secret_ref: string;
219
+ } | undefined;
220
+ database?: string | undefined;
221
+ } & {
222
+ type: import("../index.js").ConnectionType.MSSQL;
223
+ uri?: string | undefined;
224
+ hostname?: string | undefined;
225
+ port?: number | undefined;
226
+ schema?: string | undefined;
227
+ authentication?: ({
228
+ type: "default";
229
+ options: {
230
+ password: string;
231
+ userName: string;
232
+ };
233
+ } & {
234
+ options: {
235
+ password: {
236
+ secret: string;
237
+ } | {
238
+ secret_ref: string;
239
+ };
240
+ };
241
+ }) | ({
242
+ type: "azure-active-directory-password";
243
+ options: {
244
+ password: string;
245
+ userName: string;
246
+ clientId: string;
247
+ tenantId: string;
248
+ };
249
+ } & {
250
+ options: {
251
+ password: {
252
+ secret: string;
253
+ } | {
254
+ secret_ref: string;
255
+ };
256
+ };
257
+ }) | ({
258
+ type: "azure-active-directory-service-principal-secret";
259
+ options: {
260
+ clientId: string;
261
+ tenantId: string;
262
+ clientSecret: string;
263
+ };
264
+ } & {
265
+ options: {
266
+ clientSecret: {
267
+ secret: string;
268
+ } | {
269
+ secret_ref: string;
270
+ };
271
+ };
272
+ }) | undefined;
273
+ additionalConfig?: {
274
+ pollingIntervalMs?: number | undefined;
275
+ pollingBatchSize?: number | undefined;
276
+ trustServerCertificate?: boolean | undefined;
277
+ } | undefined;
278
+ debug_api?: boolean | undefined;
279
+ }) | ({
280
+ type: import("../index.js").ConnectionType;
281
+ name?: string | undefined;
282
+ id?: string | undefined;
283
+ tag?: string | undefined;
284
+ username?: string | undefined;
285
+ password?: {
286
+ secret: string;
287
+ } | {
288
+ secret_ref: string;
289
+ } | undefined;
290
+ database?: string | undefined;
291
+ } & {
292
+ type: import("../index.js").ConnectionType.MYSQL;
293
+ uri?: string | undefined;
294
+ hostname?: string | undefined;
295
+ port?: number | undefined;
296
+ debug_api?: boolean | undefined;
297
+ client_certificate?: string | undefined;
298
+ client_private_key?: {
299
+ secret: string;
300
+ } | {
301
+ secret_ref: string;
302
+ } | undefined;
303
+ }) | ({
304
+ type: import("../index.js").ConnectionType;
305
+ name?: string | undefined;
306
+ id?: string | undefined;
307
+ tag?: string | undefined;
308
+ username?: string | undefined;
309
+ password?: {
310
+ secret: string;
311
+ } | {
312
+ secret_ref: string;
313
+ } | undefined;
314
+ database?: string | undefined;
315
+ } & {
316
+ type: import("../index.js").ConnectionType.POSTGRES;
317
+ uri?: string | undefined;
318
+ vpc_endpoint_hostname?: string | undefined;
319
+ hostname?: string | undefined;
320
+ port?: number | undefined;
321
+ debug_api?: boolean | undefined;
322
+ client_certificate?: string | undefined;
323
+ client_private_key?: {
324
+ secret: string;
325
+ } | {
326
+ secret_ref: string;
327
+ } | undefined;
328
+ sslmode?: "verify-full" | "verify-ca" | undefined;
329
+ cacert?: string | undefined;
330
+ }))[] | undefined;
331
+ }, string, t.CodecProps>>;
332
+ client_auth: t.OptionalCodec<t.Codec<{
333
+ jwks_uri?: string | undefined;
334
+ jwks?: {
335
+ keys: ({
336
+ kty: "oct";
337
+ kid: string;
338
+ k: {
339
+ secret: string;
340
+ } | {
341
+ secret_ref: string;
342
+ };
343
+ alg: "HS256" | "HS384" | "HS512";
344
+ use?: string | undefined;
345
+ } | {
346
+ kty: "RSA";
347
+ kid: string;
348
+ n: string;
349
+ e: string;
350
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
351
+ use?: string | undefined;
352
+ } | {
353
+ kty: "OKP";
354
+ alg: "EdDSA";
355
+ crv: "Ed25519" | "Ed448";
356
+ x: string;
357
+ kid?: string | undefined;
358
+ use?: string | undefined;
359
+ } | {
360
+ kty: "EC";
361
+ alg: "ES256" | "ES384" | "ES512";
362
+ crv: "P-256" | "P-384" | "P-512";
363
+ x: string;
364
+ y: string;
365
+ kid?: string | undefined;
366
+ use?: string | undefined;
367
+ })[];
368
+ } | undefined;
369
+ supabase?: boolean | undefined;
370
+ supabase_jwt_secret?: {
371
+ secret: string;
372
+ } | {
373
+ secret_ref: string;
374
+ } | undefined;
375
+ additional_audiences?: string[] | undefined;
376
+ allow_temporary_tokens?: boolean | undefined;
377
+ }, {
378
+ jwks_uri?: string | undefined;
379
+ jwks?: {
380
+ keys: ({
381
+ kty: "oct";
382
+ kid: string;
383
+ k: {
384
+ secret: string;
385
+ } | {
386
+ secret_ref: string;
387
+ };
388
+ alg: "HS256" | "HS384" | "HS512";
389
+ use?: string | undefined;
390
+ } | {
391
+ kty: "RSA";
392
+ kid: string;
393
+ n: string;
394
+ e: string;
395
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
396
+ use?: string | undefined;
397
+ } | {
398
+ kty: "OKP";
399
+ alg: "EdDSA";
400
+ crv: "Ed25519" | "Ed448";
401
+ x: string;
402
+ kid?: string | undefined;
403
+ use?: string | undefined;
404
+ } | {
405
+ kty: "EC";
406
+ alg: "ES256" | "ES384" | "ES512";
407
+ crv: "P-256" | "P-384" | "P-512";
408
+ x: string;
409
+ y: string;
410
+ kid?: string | undefined;
411
+ use?: string | undefined;
412
+ })[];
413
+ } | undefined;
414
+ supabase?: boolean | undefined;
415
+ supabase_jwt_secret?: {
416
+ secret: string;
417
+ } | {
418
+ secret_ref: string;
419
+ } | undefined;
420
+ additional_audiences?: string[] | undefined;
421
+ allow_temporary_tokens?: boolean | undefined;
422
+ }, string, t.CodecProps>>;
423
+ }>;
424
+ sync_rules: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
425
+ program_version: t.OptionalCodec<t.Codec<{
426
+ channel: string;
427
+ version_range?: string | undefined;
428
+ }, {
429
+ channel: string;
430
+ version_range?: string | undefined;
431
+ }, string, t.CodecProps>>;
432
+ }>>;
433
+ export type DeployInstanceRequest = t.Encoded<typeof DeployInstanceRequest>;
434
+ export declare const DeployInstanceResponse: t.ObjectCodec<{
435
+ id: t.IdentityCodec<t.CodecType.String>;
436
+ operation_id: t.IdentityCodec<t.CodecType.String>;
437
+ }>;
438
+ export type DeployInstanceResponse = t.Encoded<typeof DeployInstanceResponse>;
439
+ export declare const InstanceConfigRequest: t.ObjectCodec<{
440
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
441
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
442
+ id: t.IdentityCodec<t.CodecType.String>;
443
+ }>;
444
+ export type InstanceConfigRequest = t.Encoded<typeof InstanceConfigRequest>;
445
+ export declare const InstanceConfigResponse: t.ObjectCodec<{
446
+ id: t.IdentityCodec<t.CodecType.String>;
447
+ project_id: t.IdentityCodec<t.CodecType.String>;
448
+ org_id: t.IdentityCodec<t.CodecType.String>;
449
+ name: t.IdentityCodec<t.CodecType.String>;
450
+ config: t.OptionalCodec<t.Codec<{
451
+ region: string;
452
+ replication?: {
453
+ connections?: (({
454
+ type: import("../index.js").ConnectionType;
455
+ name?: string | undefined;
456
+ id?: string | undefined;
457
+ tag?: string | undefined;
458
+ username?: string | undefined;
459
+ password?: {
460
+ secret: string;
461
+ } | {
462
+ secret_ref: string;
463
+ } | undefined;
464
+ database?: string | undefined;
465
+ } & {
466
+ type: import("../index.js").ConnectionType.MONGODB;
467
+ uri: string;
468
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
469
+ vpc_endpoint_hostname?: string | undefined;
470
+ }) | ({
471
+ type: import("../index.js").ConnectionType;
472
+ name?: string | undefined;
473
+ id?: string | undefined;
474
+ tag?: string | undefined;
475
+ username?: string | undefined;
476
+ password?: {
477
+ secret: string;
478
+ } | {
479
+ secret_ref: string;
480
+ } | undefined;
481
+ database?: string | undefined;
482
+ } & {
483
+ type: import("../index.js").ConnectionType.MSSQL;
484
+ uri?: string | undefined;
485
+ hostname?: string | undefined;
486
+ port?: number | undefined;
487
+ schema?: string | undefined;
488
+ authentication?: ({
489
+ type: "default";
490
+ options: {
491
+ password: string;
492
+ userName: string;
493
+ };
494
+ } & {
495
+ options: {
496
+ password: {
497
+ secret: string;
498
+ } | {
499
+ secret_ref: string;
500
+ };
501
+ };
502
+ }) | ({
503
+ type: "azure-active-directory-password";
504
+ options: {
505
+ password: string;
506
+ userName: string;
507
+ clientId: string;
508
+ tenantId: string;
509
+ };
510
+ } & {
511
+ options: {
512
+ password: {
513
+ secret: string;
514
+ } | {
515
+ secret_ref: string;
516
+ };
517
+ };
518
+ }) | ({
519
+ type: "azure-active-directory-service-principal-secret";
520
+ options: {
521
+ clientId: string;
522
+ tenantId: string;
523
+ clientSecret: string;
524
+ };
525
+ } & {
526
+ options: {
527
+ clientSecret: {
528
+ secret: string;
529
+ } | {
530
+ secret_ref: string;
531
+ };
532
+ };
533
+ }) | undefined;
534
+ additionalConfig?: {
535
+ pollingIntervalMs?: number | undefined;
536
+ pollingBatchSize?: number | undefined;
537
+ trustServerCertificate?: boolean | undefined;
538
+ } | undefined;
539
+ debug_api?: boolean | undefined;
540
+ }) | ({
541
+ type: import("../index.js").ConnectionType;
542
+ name?: string | undefined;
543
+ id?: string | undefined;
544
+ tag?: string | undefined;
545
+ username?: string | undefined;
546
+ password?: {
547
+ secret: string;
548
+ } | {
549
+ secret_ref: string;
550
+ } | undefined;
551
+ database?: string | undefined;
552
+ } & {
553
+ type: import("../index.js").ConnectionType.MYSQL;
554
+ uri?: string | undefined;
555
+ hostname?: string | undefined;
556
+ port?: number | undefined;
557
+ debug_api?: boolean | undefined;
558
+ client_certificate?: string | undefined;
559
+ client_private_key?: {
560
+ secret: string;
561
+ } | {
562
+ secret_ref: string;
563
+ } | undefined;
564
+ }) | ({
565
+ type: import("../index.js").ConnectionType;
566
+ name?: string | undefined;
567
+ id?: string | undefined;
568
+ tag?: string | undefined;
569
+ username?: string | undefined;
570
+ password?: {
571
+ secret: string;
572
+ } | {
573
+ secret_ref: string;
574
+ } | undefined;
575
+ database?: string | undefined;
576
+ } & {
577
+ type: import("../index.js").ConnectionType.POSTGRES;
578
+ uri?: string | undefined;
579
+ vpc_endpoint_hostname?: string | undefined;
580
+ hostname?: string | undefined;
581
+ port?: number | undefined;
582
+ debug_api?: boolean | undefined;
583
+ client_certificate?: string | undefined;
584
+ client_private_key?: {
585
+ secret: string;
586
+ } | {
587
+ secret_ref: string;
588
+ } | undefined;
589
+ sslmode?: "verify-full" | "verify-ca" | undefined;
590
+ cacert?: string | undefined;
591
+ }))[] | undefined;
592
+ } | undefined;
593
+ client_auth?: {
594
+ jwks_uri?: string | undefined;
595
+ jwks?: {
596
+ keys: ({
597
+ kty: "oct";
598
+ kid: string;
599
+ k: {
600
+ secret: string;
601
+ } | {
602
+ secret_ref: string;
603
+ };
604
+ alg: "HS256" | "HS384" | "HS512";
605
+ use?: string | undefined;
606
+ } | {
607
+ kty: "RSA";
608
+ kid: string;
609
+ n: string;
610
+ e: string;
611
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
612
+ use?: string | undefined;
613
+ } | {
614
+ kty: "OKP";
615
+ alg: "EdDSA";
616
+ crv: "Ed25519" | "Ed448";
617
+ x: string;
618
+ kid?: string | undefined;
619
+ use?: string | undefined;
620
+ } | {
621
+ kty: "EC";
622
+ alg: "ES256" | "ES384" | "ES512";
623
+ crv: "P-256" | "P-384" | "P-512";
624
+ x: string;
625
+ y: string;
626
+ kid?: string | undefined;
627
+ use?: string | undefined;
628
+ })[];
629
+ } | undefined;
630
+ supabase?: boolean | undefined;
631
+ supabase_jwt_secret?: {
632
+ secret: string;
633
+ } | {
634
+ secret_ref: string;
635
+ } | undefined;
636
+ additional_audiences?: string[] | undefined;
637
+ allow_temporary_tokens?: boolean | undefined;
638
+ } | undefined;
639
+ }, {
640
+ region: string;
641
+ replication?: {
642
+ connections?: (({
643
+ type: import("../index.js").ConnectionType;
644
+ name?: string | undefined;
645
+ id?: string | undefined;
646
+ tag?: string | undefined;
647
+ username?: string | undefined;
648
+ password?: {
649
+ secret: string;
650
+ } | {
651
+ secret_ref: string;
652
+ } | undefined;
653
+ database?: string | undefined;
654
+ } & {
655
+ type: import("../index.js").ConnectionType.MONGODB;
656
+ uri: string;
657
+ post_images?: "off" | "auto_configure" | "read_only" | undefined;
658
+ vpc_endpoint_hostname?: string | undefined;
659
+ }) | ({
660
+ type: import("../index.js").ConnectionType;
661
+ name?: string | undefined;
662
+ id?: string | undefined;
663
+ tag?: string | undefined;
664
+ username?: string | undefined;
665
+ password?: {
666
+ secret: string;
667
+ } | {
668
+ secret_ref: string;
669
+ } | undefined;
670
+ database?: string | undefined;
671
+ } & {
672
+ type: import("../index.js").ConnectionType.MSSQL;
673
+ uri?: string | undefined;
674
+ hostname?: string | undefined;
675
+ port?: number | undefined;
676
+ schema?: string | undefined;
677
+ authentication?: ({
678
+ type: "default";
679
+ options: {
680
+ password: string;
681
+ userName: string;
682
+ };
683
+ } & {
684
+ options: {
685
+ password: {
686
+ secret: string;
687
+ } | {
688
+ secret_ref: string;
689
+ };
690
+ };
691
+ }) | ({
692
+ type: "azure-active-directory-password";
693
+ options: {
694
+ password: string;
695
+ userName: string;
696
+ clientId: string;
697
+ tenantId: string;
698
+ };
699
+ } & {
700
+ options: {
701
+ password: {
702
+ secret: string;
703
+ } | {
704
+ secret_ref: string;
705
+ };
706
+ };
707
+ }) | ({
708
+ type: "azure-active-directory-service-principal-secret";
709
+ options: {
710
+ clientId: string;
711
+ tenantId: string;
712
+ clientSecret: string;
713
+ };
714
+ } & {
715
+ options: {
716
+ clientSecret: {
717
+ secret: string;
718
+ } | {
719
+ secret_ref: string;
720
+ };
721
+ };
722
+ }) | undefined;
723
+ additionalConfig?: {
724
+ pollingIntervalMs?: number | undefined;
725
+ pollingBatchSize?: number | undefined;
726
+ trustServerCertificate?: boolean | undefined;
727
+ } | undefined;
728
+ debug_api?: boolean | undefined;
729
+ }) | ({
730
+ type: import("../index.js").ConnectionType;
731
+ name?: string | undefined;
732
+ id?: string | undefined;
733
+ tag?: string | undefined;
734
+ username?: string | undefined;
735
+ password?: {
736
+ secret: string;
737
+ } | {
738
+ secret_ref: string;
739
+ } | undefined;
740
+ database?: string | undefined;
741
+ } & {
742
+ type: import("../index.js").ConnectionType.MYSQL;
743
+ uri?: string | undefined;
744
+ hostname?: string | undefined;
745
+ port?: number | undefined;
746
+ debug_api?: boolean | undefined;
747
+ client_certificate?: string | undefined;
748
+ client_private_key?: {
749
+ secret: string;
750
+ } | {
751
+ secret_ref: string;
752
+ } | undefined;
753
+ }) | ({
754
+ type: import("../index.js").ConnectionType;
755
+ name?: string | undefined;
756
+ id?: string | undefined;
757
+ tag?: string | undefined;
758
+ username?: string | undefined;
759
+ password?: {
760
+ secret: string;
761
+ } | {
762
+ secret_ref: string;
763
+ } | undefined;
764
+ database?: string | undefined;
765
+ } & {
766
+ type: import("../index.js").ConnectionType.POSTGRES;
767
+ uri?: string | undefined;
768
+ vpc_endpoint_hostname?: string | undefined;
769
+ hostname?: string | undefined;
770
+ port?: number | undefined;
771
+ debug_api?: boolean | undefined;
772
+ client_certificate?: string | undefined;
773
+ client_private_key?: {
774
+ secret: string;
775
+ } | {
776
+ secret_ref: string;
777
+ } | undefined;
778
+ sslmode?: "verify-full" | "verify-ca" | undefined;
779
+ cacert?: string | undefined;
780
+ }))[] | undefined;
781
+ } | undefined;
782
+ client_auth?: {
783
+ jwks_uri?: string | undefined;
784
+ jwks?: {
785
+ keys: ({
786
+ kty: "oct";
787
+ kid: string;
788
+ k: {
789
+ secret: string;
790
+ } | {
791
+ secret_ref: string;
792
+ };
793
+ alg: "HS256" | "HS384" | "HS512";
794
+ use?: string | undefined;
795
+ } | {
796
+ kty: "RSA";
797
+ kid: string;
798
+ n: string;
799
+ e: string;
800
+ alg?: "RS256" | "RS384" | "RS512" | undefined;
801
+ use?: string | undefined;
802
+ } | {
803
+ kty: "OKP";
804
+ alg: "EdDSA";
805
+ crv: "Ed25519" | "Ed448";
806
+ x: string;
807
+ kid?: string | undefined;
808
+ use?: string | undefined;
809
+ } | {
810
+ kty: "EC";
811
+ alg: "ES256" | "ES384" | "ES512";
812
+ crv: "P-256" | "P-384" | "P-512";
813
+ x: string;
814
+ y: string;
815
+ kid?: string | undefined;
816
+ use?: string | undefined;
817
+ })[];
818
+ } | undefined;
819
+ supabase?: boolean | undefined;
820
+ supabase_jwt_secret?: {
821
+ secret: string;
822
+ } | {
823
+ secret_ref: string;
824
+ } | undefined;
825
+ additional_audiences?: string[] | undefined;
826
+ allow_temporary_tokens?: boolean | undefined;
827
+ } | undefined;
828
+ }, string, t.CodecProps>>;
829
+ sync_rules: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
830
+ program_version: t.ObjectCodec<{
831
+ channel: t.IdentityCodec<t.CodecType.String>;
832
+ version_range: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
833
+ }>;
834
+ }>;
835
+ export type InstanceConfigResponse = t.Encoded<typeof InstanceConfigResponse>;
836
+ export declare const InstanceStatusRequest: t.ObjectCodec<{
837
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
838
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
839
+ id: t.IdentityCodec<t.CodecType.String>;
840
+ }>;
841
+ export type InstanceStatusRequest = t.Encoded<typeof InstanceStatusRequest>;
842
+ export declare const InstanceDeployOperation: t.ObjectCodec<{
843
+ id: t.IdentityCodec<t.CodecType.String>;
844
+ type: t.Union<t.Codec<"up", "up", string, t.CodecProps>, t.LiteralCodec<"down">>;
845
+ status: t.Union<t.Codec<"pending" | "running" | "failed", "pending" | "running" | "failed", string, t.CodecProps>, t.LiteralCodec<"completed">>;
846
+ created_at: t.IdentityCodec<t.CodecType.String>;
847
+ started_at: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
848
+ finished_at: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
849
+ system_upgrade: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
850
+ teardown: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
851
+ compact: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
852
+ user_id: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
853
+ version: t.IdentityCodec<t.CodecType.String>;
854
+ }>;
855
+ export type InstanceDeployOperation = t.Encoded<typeof InstanceDeployOperation>;
856
+ export declare const InstanceStatusResponse: t.ObjectCodec<{
857
+ id: t.IdentityCodec<t.CodecType.String>;
858
+ /** True if provisioned at least once, and should therefore be running. */
859
+ provisioned: t.IdentityCodec<t.CodecType.Boolean>;
860
+ operations: t.ArrayCodec<t.ObjectCodec<{
861
+ id: t.IdentityCodec<t.CodecType.String>;
862
+ type: t.Union<t.Codec<"up", "up", string, t.CodecProps>, t.LiteralCodec<"down">>;
863
+ status: t.Union<t.Codec<"pending" | "running" | "failed", "pending" | "running" | "failed", string, t.CodecProps>, t.LiteralCodec<"completed">>;
864
+ created_at: t.IdentityCodec<t.CodecType.String>;
865
+ started_at: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
866
+ finished_at: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
867
+ system_upgrade: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
868
+ teardown: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
869
+ compact: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
870
+ user_id: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
871
+ version: t.IdentityCodec<t.CodecType.String>;
872
+ }>>;
873
+ instance_url: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
874
+ }>;
875
+ export type InstanceStatusResponse = t.Encoded<typeof InstanceStatusResponse>;
876
+ export declare const DestroyInstanceRequest: t.ObjectCodec<{
877
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
878
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
879
+ id: t.IdentityCodec<t.CodecType.String>;
880
+ }>;
881
+ export type DestroyInstanceRequest = t.Encoded<typeof DestroyInstanceRequest>;
882
+ export declare const DestroyInstanceResponse: t.ObjectCodec<{
883
+ id: t.IdentityCodec<t.CodecType.String>;
884
+ operation_id: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
885
+ }>;
886
+ export type DestroyInstanceResponse = t.Encoded<typeof DestroyInstanceResponse>;
887
+ export declare const DeactivateInstanceRequest: t.ObjectCodec<{
888
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
889
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
890
+ id: t.IdentityCodec<t.CodecType.String>;
891
+ }>;
892
+ export type DeactivateInstanceRequest = t.Encoded<typeof DeactivateInstanceRequest>;
893
+ export declare const DeactivateInstanceResponse: t.ObjectCodec<{
894
+ id: t.IdentityCodec<t.CodecType.String>;
895
+ operation_id: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
896
+ }>;
897
+ export type DeactivateInstanceResponse = t.Encoded<typeof DeactivateInstanceResponse>;
898
+ export declare const CompactInstanceRequest: t.ObjectCodec<{
899
+ org_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
900
+ app_id: t.Codec<import("bson").ObjectId, string, string, t.CodecProps>;
901
+ id: t.IdentityCodec<t.CodecType.String>;
902
+ }>;
903
+ export type CompactInstanceRequest = t.Encoded<typeof CompactInstanceRequest>;
904
+ export declare const CompactInstanceResponse: t.ObjectCodec<{
905
+ id: t.IdentityCodec<t.CodecType.String>;
906
+ operation_id: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
907
+ }>;
908
+ export type CompactInstanceResponse = t.Encoded<typeof CompactInstanceResponse>;
909
+ export declare const InstanceDiagnosticsRequest: t.Intersection<t.Codec<{
910
+ id: string;
911
+ org_id: import("bson").ObjectId;
912
+ app_id: import("bson").ObjectId;
913
+ }, {
914
+ id: string;
915
+ org_id: string;
916
+ app_id: string;
917
+ }, string, t.CodecProps>, t.ObjectCodec<{
918
+ sync_rules_content: t.OptionalCodec<t.Codec<boolean, boolean, string, t.CodecProps>>;
919
+ }>>;
920
+ export type InstanceDiagnosticsRequest = t.Encoded<typeof InstanceDiagnosticsRequest>;
921
+ export declare const InstanceDiagnosticsResponse: t.ObjectCodec<{
922
+ connections: t.ArrayCodec<t.ObjectCodec<{
923
+ id: t.IdentityCodec<t.CodecType.String>;
924
+ postgres_uri: t.IdentityCodec<t.CodecType.String>;
925
+ connected: t.IdentityCodec<t.CodecType.Boolean>;
926
+ errors: t.ArrayCodec<t.ObjectCodec<{
927
+ level: t.Union<t.Codec<"warning", "warning", string, t.CodecProps>, t.LiteralCodec<"fatal">>;
928
+ message: t.IdentityCodec<t.CodecType.String>;
929
+ ts: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
930
+ }>>;
931
+ }>>;
932
+ active_sync_rules: t.OptionalCodec<t.Codec<{
933
+ errors: {
934
+ level: "warning" | "fatal";
935
+ message: string;
936
+ ts?: string | undefined;
937
+ }[];
938
+ connections: {
939
+ id: string;
940
+ tag: string;
941
+ slot_name: string;
942
+ initial_replication_done: boolean;
943
+ tables: {
944
+ schema: string;
945
+ name: string;
946
+ replication_id: string[];
947
+ data_queries: boolean;
948
+ parameter_queries: boolean;
949
+ errors: {
950
+ level: "warning" | "fatal";
951
+ message: string;
952
+ ts?: string | undefined;
953
+ }[];
954
+ pattern?: string | undefined;
955
+ }[];
956
+ last_lsn?: string | undefined;
957
+ last_keepalive_ts?: string | undefined;
958
+ last_checkpoint_ts?: string | undefined;
959
+ replication_lag_bytes?: number | undefined;
960
+ }[];
961
+ content?: string | undefined;
962
+ }, {
963
+ errors: {
964
+ level: "warning" | "fatal";
965
+ message: string;
966
+ ts?: string | undefined;
967
+ }[];
968
+ connections: {
969
+ id: string;
970
+ tag: string;
971
+ slot_name: string;
972
+ initial_replication_done: boolean;
973
+ tables: {
974
+ schema: string;
975
+ name: string;
976
+ replication_id: string[];
977
+ data_queries: boolean;
978
+ parameter_queries: boolean;
979
+ errors: {
980
+ level: "warning" | "fatal";
981
+ message: string;
982
+ ts?: string | undefined;
983
+ }[];
984
+ pattern?: string | undefined;
985
+ }[];
986
+ last_lsn?: string | undefined;
987
+ last_keepalive_ts?: string | undefined;
988
+ last_checkpoint_ts?: string | undefined;
989
+ replication_lag_bytes?: number | undefined;
990
+ }[];
991
+ content?: string | undefined;
992
+ }, string, t.CodecProps>>;
993
+ deploying_sync_rules: t.OptionalCodec<t.Codec<{
994
+ errors: {
995
+ level: "warning" | "fatal";
996
+ message: string;
997
+ ts?: string | undefined;
998
+ }[];
999
+ connections: {
1000
+ id: string;
1001
+ tag: string;
1002
+ slot_name: string;
1003
+ initial_replication_done: boolean;
1004
+ tables: {
1005
+ schema: string;
1006
+ name: string;
1007
+ replication_id: string[];
1008
+ data_queries: boolean;
1009
+ parameter_queries: boolean;
1010
+ errors: {
1011
+ level: "warning" | "fatal";
1012
+ message: string;
1013
+ ts?: string | undefined;
1014
+ }[];
1015
+ pattern?: string | undefined;
1016
+ }[];
1017
+ last_lsn?: string | undefined;
1018
+ last_keepalive_ts?: string | undefined;
1019
+ last_checkpoint_ts?: string | undefined;
1020
+ replication_lag_bytes?: number | undefined;
1021
+ }[];
1022
+ content?: string | undefined;
1023
+ }, {
1024
+ errors: {
1025
+ level: "warning" | "fatal";
1026
+ message: string;
1027
+ ts?: string | undefined;
1028
+ }[];
1029
+ connections: {
1030
+ id: string;
1031
+ tag: string;
1032
+ slot_name: string;
1033
+ initial_replication_done: boolean;
1034
+ tables: {
1035
+ schema: string;
1036
+ name: string;
1037
+ replication_id: string[];
1038
+ data_queries: boolean;
1039
+ parameter_queries: boolean;
1040
+ errors: {
1041
+ level: "warning" | "fatal";
1042
+ message: string;
1043
+ ts?: string | undefined;
1044
+ }[];
1045
+ pattern?: string | undefined;
1046
+ }[];
1047
+ last_lsn?: string | undefined;
1048
+ last_keepalive_ts?: string | undefined;
1049
+ last_checkpoint_ts?: string | undefined;
1050
+ replication_lag_bytes?: number | undefined;
1051
+ }[];
1052
+ content?: string | undefined;
1053
+ }, string, t.CodecProps>>;
1054
+ }>;
1055
+ export type InstanceDiagnosticsResponse = internal_routes.DiagnosticsResponse;