@syncular/transport-http 0.0.1-100

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.
@@ -0,0 +1,1836 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/sync": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /**
16
+ * Combined push and pull
17
+ * @description Perform push and/or pull in a single request to reduce round-trips
18
+ */
19
+ post: operations["postSync"];
20
+ delete?: never;
21
+ options?: never;
22
+ head?: never;
23
+ patch?: never;
24
+ trace?: never;
25
+ };
26
+ "/sync/snapshot-chunks/{chunkId}": {
27
+ parameters: {
28
+ query?: never;
29
+ header?: never;
30
+ path?: never;
31
+ cookie?: never;
32
+ };
33
+ /**
34
+ * Download snapshot chunk
35
+ * @description Download an encoded bootstrap snapshot chunk
36
+ */
37
+ get: operations["getSyncSnapshotChunksByChunkId"];
38
+ put?: never;
39
+ post?: never;
40
+ delete?: never;
41
+ options?: never;
42
+ head?: never;
43
+ patch?: never;
44
+ trace?: never;
45
+ };
46
+ "/console/stats": {
47
+ parameters: {
48
+ query?: never;
49
+ header?: never;
50
+ path?: never;
51
+ cookie?: never;
52
+ };
53
+ /** Get sync statistics */
54
+ get: operations["getConsoleStats"];
55
+ put?: never;
56
+ post?: never;
57
+ delete?: never;
58
+ options?: never;
59
+ head?: never;
60
+ patch?: never;
61
+ trace?: never;
62
+ };
63
+ "/console/stats/timeseries": {
64
+ parameters: {
65
+ query?: never;
66
+ header?: never;
67
+ path?: never;
68
+ cookie?: never;
69
+ };
70
+ /** Get time-series statistics */
71
+ get: operations["getConsoleStatsTimeseries"];
72
+ put?: never;
73
+ post?: never;
74
+ delete?: never;
75
+ options?: never;
76
+ head?: never;
77
+ patch?: never;
78
+ trace?: never;
79
+ };
80
+ "/console/stats/latency": {
81
+ parameters: {
82
+ query?: never;
83
+ header?: never;
84
+ path?: never;
85
+ cookie?: never;
86
+ };
87
+ /** Get latency percentiles */
88
+ get: operations["getConsoleStatsLatency"];
89
+ put?: never;
90
+ post?: never;
91
+ delete?: never;
92
+ options?: never;
93
+ head?: never;
94
+ patch?: never;
95
+ trace?: never;
96
+ };
97
+ "/console/commits": {
98
+ parameters: {
99
+ query?: never;
100
+ header?: never;
101
+ path?: never;
102
+ cookie?: never;
103
+ };
104
+ /** List commits */
105
+ get: operations["getConsoleCommits"];
106
+ put?: never;
107
+ post?: never;
108
+ delete?: never;
109
+ options?: never;
110
+ head?: never;
111
+ patch?: never;
112
+ trace?: never;
113
+ };
114
+ "/console/commits/{seq}": {
115
+ parameters: {
116
+ query?: never;
117
+ header?: never;
118
+ path?: never;
119
+ cookie?: never;
120
+ };
121
+ /** Get commit details */
122
+ get: operations["getConsoleCommitsBySeq"];
123
+ put?: never;
124
+ post?: never;
125
+ delete?: never;
126
+ options?: never;
127
+ head?: never;
128
+ patch?: never;
129
+ trace?: never;
130
+ };
131
+ "/console/clients": {
132
+ parameters: {
133
+ query?: never;
134
+ header?: never;
135
+ path?: never;
136
+ cookie?: never;
137
+ };
138
+ /** List clients */
139
+ get: operations["getConsoleClients"];
140
+ put?: never;
141
+ post?: never;
142
+ delete?: never;
143
+ options?: never;
144
+ head?: never;
145
+ patch?: never;
146
+ trace?: never;
147
+ };
148
+ "/console/handlers": {
149
+ parameters: {
150
+ query?: never;
151
+ header?: never;
152
+ path?: never;
153
+ cookie?: never;
154
+ };
155
+ /** List registered handlers */
156
+ get: operations["getConsoleHandlers"];
157
+ put?: never;
158
+ post?: never;
159
+ delete?: never;
160
+ options?: never;
161
+ head?: never;
162
+ patch?: never;
163
+ trace?: never;
164
+ };
165
+ "/console/prune/preview": {
166
+ parameters: {
167
+ query?: never;
168
+ header?: never;
169
+ path?: never;
170
+ cookie?: never;
171
+ };
172
+ get?: never;
173
+ put?: never;
174
+ /** Preview pruning */
175
+ post: operations["postConsolePrunePreview"];
176
+ delete?: never;
177
+ options?: never;
178
+ head?: never;
179
+ patch?: never;
180
+ trace?: never;
181
+ };
182
+ "/console/prune": {
183
+ parameters: {
184
+ query?: never;
185
+ header?: never;
186
+ path?: never;
187
+ cookie?: never;
188
+ };
189
+ get?: never;
190
+ put?: never;
191
+ /** Trigger pruning */
192
+ post: operations["postConsolePrune"];
193
+ delete?: never;
194
+ options?: never;
195
+ head?: never;
196
+ patch?: never;
197
+ trace?: never;
198
+ };
199
+ "/console/compact": {
200
+ parameters: {
201
+ query?: never;
202
+ header?: never;
203
+ path?: never;
204
+ cookie?: never;
205
+ };
206
+ get?: never;
207
+ put?: never;
208
+ /** Trigger compaction */
209
+ post: operations["postConsoleCompact"];
210
+ delete?: never;
211
+ options?: never;
212
+ head?: never;
213
+ patch?: never;
214
+ trace?: never;
215
+ };
216
+ "/console/clients/{id}": {
217
+ parameters: {
218
+ query?: never;
219
+ header?: never;
220
+ path?: never;
221
+ cookie?: never;
222
+ };
223
+ get?: never;
224
+ put?: never;
225
+ post?: never;
226
+ /** Evict client */
227
+ delete: operations["deleteConsoleClientsById"];
228
+ options?: never;
229
+ head?: never;
230
+ patch?: never;
231
+ trace?: never;
232
+ };
233
+ "/console/events": {
234
+ parameters: {
235
+ query?: never;
236
+ header?: never;
237
+ path?: never;
238
+ cookie?: never;
239
+ };
240
+ /** List request events */
241
+ get: operations["getConsoleEvents"];
242
+ put?: never;
243
+ post?: never;
244
+ /** Clear all events */
245
+ delete: operations["deleteConsoleEvents"];
246
+ options?: never;
247
+ head?: never;
248
+ patch?: never;
249
+ trace?: never;
250
+ };
251
+ "/console/events/{id}": {
252
+ parameters: {
253
+ query?: never;
254
+ header?: never;
255
+ path?: never;
256
+ cookie?: never;
257
+ };
258
+ /** Get event details */
259
+ get: operations["getConsoleEventsById"];
260
+ put?: never;
261
+ post?: never;
262
+ delete?: never;
263
+ options?: never;
264
+ head?: never;
265
+ patch?: never;
266
+ trace?: never;
267
+ };
268
+ "/console/events/prune": {
269
+ parameters: {
270
+ query?: never;
271
+ header?: never;
272
+ path?: never;
273
+ cookie?: never;
274
+ };
275
+ get?: never;
276
+ put?: never;
277
+ /** Prune old events */
278
+ post: operations["postConsoleEventsPrune"];
279
+ delete?: never;
280
+ options?: never;
281
+ head?: never;
282
+ patch?: never;
283
+ trace?: never;
284
+ };
285
+ "/console/api-keys": {
286
+ parameters: {
287
+ query?: never;
288
+ header?: never;
289
+ path?: never;
290
+ cookie?: never;
291
+ };
292
+ /** List API keys */
293
+ get: operations["getConsoleApiKeys"];
294
+ put?: never;
295
+ /** Create API key */
296
+ post: operations["postConsoleApiKeys"];
297
+ delete?: never;
298
+ options?: never;
299
+ head?: never;
300
+ patch?: never;
301
+ trace?: never;
302
+ };
303
+ "/console/api-keys/{id}": {
304
+ parameters: {
305
+ query?: never;
306
+ header?: never;
307
+ path?: never;
308
+ cookie?: never;
309
+ };
310
+ /** Get API key */
311
+ get: operations["getConsoleApiKeysById"];
312
+ put?: never;
313
+ post?: never;
314
+ /** Revoke API key */
315
+ delete: operations["deleteConsoleApiKeysById"];
316
+ options?: never;
317
+ head?: never;
318
+ patch?: never;
319
+ trace?: never;
320
+ };
321
+ "/console/api-keys/{id}/rotate": {
322
+ parameters: {
323
+ query?: never;
324
+ header?: never;
325
+ path?: never;
326
+ cookie?: never;
327
+ };
328
+ get?: never;
329
+ put?: never;
330
+ /** Rotate API key */
331
+ post: operations["postConsoleApiKeysByIdRotate"];
332
+ delete?: never;
333
+ options?: never;
334
+ head?: never;
335
+ patch?: never;
336
+ trace?: never;
337
+ };
338
+ "/sync/blobs/upload": {
339
+ parameters: {
340
+ query?: never;
341
+ header?: never;
342
+ path?: never;
343
+ cookie?: never;
344
+ };
345
+ get?: never;
346
+ put?: never;
347
+ /**
348
+ * Initiate blob upload
349
+ * @description Initiates a blob upload and returns a presigned URL for uploading
350
+ */
351
+ post: operations["postSyncBlobsUpload"];
352
+ delete?: never;
353
+ options?: never;
354
+ head?: never;
355
+ patch?: never;
356
+ trace?: never;
357
+ };
358
+ "/sync/blobs/{hash}/complete": {
359
+ parameters: {
360
+ query?: never;
361
+ header?: never;
362
+ path?: never;
363
+ cookie?: never;
364
+ };
365
+ get?: never;
366
+ put?: never;
367
+ /**
368
+ * Complete blob upload
369
+ * @description Marks a blob upload as complete after the client has uploaded to the presigned URL
370
+ */
371
+ post: operations["postSyncBlobsByHashComplete"];
372
+ delete?: never;
373
+ options?: never;
374
+ head?: never;
375
+ patch?: never;
376
+ trace?: never;
377
+ };
378
+ "/sync/blobs/{hash}/url": {
379
+ parameters: {
380
+ query?: never;
381
+ header?: never;
382
+ path?: never;
383
+ cookie?: never;
384
+ };
385
+ /**
386
+ * Get blob download URL
387
+ * @description Returns a presigned URL for downloading a blob
388
+ */
389
+ get: operations["getSyncBlobsByHashUrl"];
390
+ put?: never;
391
+ post?: never;
392
+ delete?: never;
393
+ options?: never;
394
+ head?: never;
395
+ patch?: never;
396
+ trace?: never;
397
+ };
398
+ }
399
+ export type webhooks = Record<string, never>;
400
+ export interface components {
401
+ schemas: never;
402
+ responses: never;
403
+ parameters: never;
404
+ requestBodies: never;
405
+ headers: never;
406
+ pathItems: never;
407
+ }
408
+ export type $defs = Record<string, never>;
409
+ export interface operations {
410
+ postSync: {
411
+ parameters: {
412
+ query?: never;
413
+ header?: never;
414
+ path?: never;
415
+ cookie?: never;
416
+ };
417
+ requestBody?: {
418
+ content: {
419
+ "application/json": {
420
+ clientId: string;
421
+ push?: {
422
+ clientCommitId: string;
423
+ operations: {
424
+ table: string;
425
+ row_id: string;
426
+ /** @enum {string} */
427
+ op: "upsert" | "delete";
428
+ payload: {
429
+ [key: string]: unknown;
430
+ } | null;
431
+ base_version?: number | null;
432
+ }[];
433
+ schemaVersion: number;
434
+ };
435
+ pull?: {
436
+ limitCommits: number;
437
+ limitSnapshotRows?: number;
438
+ maxSnapshotPages?: number;
439
+ dedupeRows?: boolean;
440
+ subscriptions: {
441
+ id: string;
442
+ shape: string;
443
+ scopes: {
444
+ [key: string]: string | string[];
445
+ };
446
+ params?: {
447
+ [key: string]: unknown;
448
+ };
449
+ cursor: number;
450
+ bootstrapState?: {
451
+ asOfCommitSeq: number;
452
+ tables: string[];
453
+ tableIndex: number;
454
+ rowCursor: string | null;
455
+ } | null;
456
+ }[];
457
+ };
458
+ };
459
+ };
460
+ };
461
+ responses: {
462
+ /** @description Combined sync response */
463
+ 200: {
464
+ headers: {
465
+ [name: string]: unknown;
466
+ };
467
+ content: {
468
+ "application/json": {
469
+ /** @constant */
470
+ ok: true;
471
+ push?: {
472
+ /** @constant */
473
+ ok: true;
474
+ /** @enum {string} */
475
+ status: "applied" | "cached" | "rejected";
476
+ commitSeq?: number;
477
+ results: ({
478
+ opIndex: number;
479
+ /** @constant */
480
+ status: "applied";
481
+ } | {
482
+ opIndex: number;
483
+ /** @constant */
484
+ status: "conflict";
485
+ message: string;
486
+ server_version: number;
487
+ server_row: unknown;
488
+ } | {
489
+ opIndex: number;
490
+ /** @constant */
491
+ status: "error";
492
+ error: string;
493
+ code?: string;
494
+ retriable?: boolean;
495
+ })[];
496
+ };
497
+ pull?: {
498
+ /** @constant */
499
+ ok: true;
500
+ subscriptions: {
501
+ id: string;
502
+ /** @enum {string} */
503
+ status: "active" | "revoked";
504
+ scopes: {
505
+ [key: string]: string | string[];
506
+ };
507
+ bootstrap: boolean;
508
+ bootstrapState?: {
509
+ asOfCommitSeq: number;
510
+ tables: string[];
511
+ tableIndex: number;
512
+ rowCursor: string | null;
513
+ } | null;
514
+ nextCursor: number;
515
+ commits: {
516
+ commitSeq: number;
517
+ createdAt: string;
518
+ actorId: string;
519
+ changes: {
520
+ table: string;
521
+ row_id: string;
522
+ /** @enum {string} */
523
+ op: "upsert" | "delete";
524
+ row_json: unknown | null;
525
+ row_version: number | null;
526
+ scopes: {
527
+ [key: string]: string;
528
+ };
529
+ }[];
530
+ }[];
531
+ snapshots?: {
532
+ table: string;
533
+ rows: unknown[];
534
+ chunks?: {
535
+ id: string;
536
+ byteLength: number;
537
+ sha256: string;
538
+ /** @constant */
539
+ encoding: "json-row-frame-v1";
540
+ /** @constant */
541
+ compression: "gzip";
542
+ }[];
543
+ isFirstPage: boolean;
544
+ isLastPage: boolean;
545
+ }[];
546
+ }[];
547
+ };
548
+ };
549
+ };
550
+ };
551
+ /** @description Invalid request */
552
+ 400: {
553
+ headers: {
554
+ [name: string]: unknown;
555
+ };
556
+ content: {
557
+ "application/json": {
558
+ error: string;
559
+ message?: string;
560
+ code?: string;
561
+ };
562
+ };
563
+ };
564
+ /** @description Unauthenticated */
565
+ 401: {
566
+ headers: {
567
+ [name: string]: unknown;
568
+ };
569
+ content: {
570
+ "application/json": {
571
+ error: string;
572
+ message?: string;
573
+ code?: string;
574
+ };
575
+ };
576
+ };
577
+ };
578
+ };
579
+ getSyncSnapshotChunksByChunkId: {
580
+ parameters: {
581
+ query?: never;
582
+ header?: never;
583
+ path: {
584
+ chunkId: string;
585
+ };
586
+ cookie?: never;
587
+ };
588
+ requestBody?: never;
589
+ responses: {
590
+ /** @description Snapshot chunk data (gzip-compressed framed JSON rows) */
591
+ 200: {
592
+ headers: {
593
+ [name: string]: unknown;
594
+ };
595
+ content: {
596
+ "application/octet-stream": string;
597
+ };
598
+ };
599
+ /** @description Not modified (cached) */
600
+ 304: {
601
+ headers: {
602
+ [name: string]: unknown;
603
+ };
604
+ content?: never;
605
+ };
606
+ /** @description Unauthenticated */
607
+ 401: {
608
+ headers: {
609
+ [name: string]: unknown;
610
+ };
611
+ content: {
612
+ "application/json": {
613
+ error: string;
614
+ message?: string;
615
+ code?: string;
616
+ };
617
+ };
618
+ };
619
+ /** @description Forbidden */
620
+ 403: {
621
+ headers: {
622
+ [name: string]: unknown;
623
+ };
624
+ content: {
625
+ "application/json": {
626
+ error: string;
627
+ message?: string;
628
+ code?: string;
629
+ };
630
+ };
631
+ };
632
+ /** @description Not found */
633
+ 404: {
634
+ headers: {
635
+ [name: string]: unknown;
636
+ };
637
+ content: {
638
+ "application/json": {
639
+ error: string;
640
+ message?: string;
641
+ code?: string;
642
+ };
643
+ };
644
+ };
645
+ };
646
+ };
647
+ getConsoleStats: {
648
+ parameters: {
649
+ query?: never;
650
+ header?: never;
651
+ path?: never;
652
+ cookie?: never;
653
+ };
654
+ requestBody?: never;
655
+ responses: {
656
+ /** @description Sync statistics */
657
+ 200: {
658
+ headers: {
659
+ [name: string]: unknown;
660
+ };
661
+ content: {
662
+ "application/json": {
663
+ commitCount: number;
664
+ changeCount: number;
665
+ minCommitSeq: number;
666
+ maxCommitSeq: number;
667
+ clientCount: number;
668
+ activeClientCount: number;
669
+ minActiveClientCursor: number | null;
670
+ maxActiveClientCursor: number | null;
671
+ };
672
+ };
673
+ };
674
+ /** @description Unauthenticated */
675
+ 401: {
676
+ headers: {
677
+ [name: string]: unknown;
678
+ };
679
+ content: {
680
+ "application/json": {
681
+ error: string;
682
+ message?: string;
683
+ };
684
+ };
685
+ };
686
+ };
687
+ };
688
+ getConsoleStatsTimeseries: {
689
+ parameters: {
690
+ query?: {
691
+ interval?: "minute" | "hour" | "day";
692
+ range?: "1h" | "6h" | "24h" | "7d" | "30d";
693
+ };
694
+ header?: never;
695
+ path?: never;
696
+ cookie?: never;
697
+ };
698
+ requestBody?: never;
699
+ responses: {
700
+ /** @description Time-series statistics */
701
+ 200: {
702
+ headers: {
703
+ [name: string]: unknown;
704
+ };
705
+ content: {
706
+ "application/json": {
707
+ buckets: {
708
+ timestamp: string;
709
+ pushCount: number;
710
+ pullCount: number;
711
+ errorCount: number;
712
+ avgLatencyMs: number;
713
+ }[];
714
+ /** @enum {string} */
715
+ interval: "minute" | "hour" | "day";
716
+ /** @enum {string} */
717
+ range: "1h" | "6h" | "24h" | "7d" | "30d";
718
+ };
719
+ };
720
+ };
721
+ /** @description Unauthenticated */
722
+ 401: {
723
+ headers: {
724
+ [name: string]: unknown;
725
+ };
726
+ content: {
727
+ "application/json": {
728
+ error: string;
729
+ message?: string;
730
+ };
731
+ };
732
+ };
733
+ };
734
+ };
735
+ getConsoleStatsLatency: {
736
+ parameters: {
737
+ query?: {
738
+ range?: "1h" | "6h" | "24h" | "7d" | "30d";
739
+ };
740
+ header?: never;
741
+ path?: never;
742
+ cookie?: never;
743
+ };
744
+ requestBody?: never;
745
+ responses: {
746
+ /** @description Latency percentiles */
747
+ 200: {
748
+ headers: {
749
+ [name: string]: unknown;
750
+ };
751
+ content: {
752
+ "application/json": {
753
+ push: {
754
+ p50: number;
755
+ p90: number;
756
+ p99: number;
757
+ };
758
+ pull: {
759
+ p50: number;
760
+ p90: number;
761
+ p99: number;
762
+ };
763
+ /** @enum {string} */
764
+ range: "1h" | "6h" | "24h" | "7d" | "30d";
765
+ };
766
+ };
767
+ };
768
+ /** @description Unauthenticated */
769
+ 401: {
770
+ headers: {
771
+ [name: string]: unknown;
772
+ };
773
+ content: {
774
+ "application/json": {
775
+ error: string;
776
+ message?: string;
777
+ };
778
+ };
779
+ };
780
+ };
781
+ };
782
+ getConsoleCommits: {
783
+ parameters: {
784
+ query?: {
785
+ limit?: number;
786
+ offset?: number;
787
+ };
788
+ header?: never;
789
+ path?: never;
790
+ cookie?: never;
791
+ };
792
+ requestBody?: never;
793
+ responses: {
794
+ /** @description Paginated commit list */
795
+ 200: {
796
+ headers: {
797
+ [name: string]: unknown;
798
+ };
799
+ content: {
800
+ "application/json": {
801
+ items: {
802
+ commitSeq: number;
803
+ actorId: string;
804
+ clientId: string;
805
+ clientCommitId: string;
806
+ createdAt: string;
807
+ changeCount: number;
808
+ affectedTables: string[];
809
+ }[];
810
+ total: number;
811
+ offset: number;
812
+ limit: number;
813
+ };
814
+ };
815
+ };
816
+ /** @description Unauthenticated */
817
+ 401: {
818
+ headers: {
819
+ [name: string]: unknown;
820
+ };
821
+ content: {
822
+ "application/json": {
823
+ error: string;
824
+ message?: string;
825
+ };
826
+ };
827
+ };
828
+ };
829
+ };
830
+ getConsoleCommitsBySeq: {
831
+ parameters: {
832
+ query?: never;
833
+ header?: never;
834
+ path: {
835
+ seq: number;
836
+ };
837
+ cookie?: never;
838
+ };
839
+ requestBody?: never;
840
+ responses: {
841
+ /** @description Commit with changes */
842
+ 200: {
843
+ headers: {
844
+ [name: string]: unknown;
845
+ };
846
+ content: {
847
+ "application/json": {
848
+ commitSeq: number;
849
+ actorId: string;
850
+ clientId: string;
851
+ clientCommitId: string;
852
+ createdAt: string;
853
+ changeCount: number;
854
+ affectedTables: string[];
855
+ changes: {
856
+ changeId: number;
857
+ table: string;
858
+ rowId: string;
859
+ /** @enum {string} */
860
+ op: "upsert" | "delete";
861
+ rowJson: unknown | null;
862
+ rowVersion: number | null;
863
+ scopes: {
864
+ [key: string]: unknown;
865
+ };
866
+ }[];
867
+ };
868
+ };
869
+ };
870
+ /** @description Invalid request */
871
+ 400: {
872
+ headers: {
873
+ [name: string]: unknown;
874
+ };
875
+ content: {
876
+ "application/json": {
877
+ error: string;
878
+ message?: string;
879
+ };
880
+ };
881
+ };
882
+ /** @description Unauthenticated */
883
+ 401: {
884
+ headers: {
885
+ [name: string]: unknown;
886
+ };
887
+ content: {
888
+ "application/json": {
889
+ error: string;
890
+ message?: string;
891
+ };
892
+ };
893
+ };
894
+ /** @description Not found */
895
+ 404: {
896
+ headers: {
897
+ [name: string]: unknown;
898
+ };
899
+ content: {
900
+ "application/json": {
901
+ error: string;
902
+ message?: string;
903
+ };
904
+ };
905
+ };
906
+ };
907
+ };
908
+ getConsoleClients: {
909
+ parameters: {
910
+ query?: {
911
+ limit?: number;
912
+ offset?: number;
913
+ };
914
+ header?: never;
915
+ path?: never;
916
+ cookie?: never;
917
+ };
918
+ requestBody?: never;
919
+ responses: {
920
+ /** @description Paginated client list */
921
+ 200: {
922
+ headers: {
923
+ [name: string]: unknown;
924
+ };
925
+ content: {
926
+ "application/json": {
927
+ items: {
928
+ clientId: string;
929
+ actorId: string;
930
+ cursor: number;
931
+ lagCommitCount: number;
932
+ /** @enum {string} */
933
+ connectionPath: "direct" | "relay";
934
+ /** @enum {string} */
935
+ connectionMode: "polling" | "realtime";
936
+ realtimeConnectionCount: number;
937
+ isRealtimeConnected: boolean;
938
+ /** @enum {string} */
939
+ activityState: "active" | "idle" | "stale";
940
+ lastRequestAt: string | null;
941
+ lastRequestType: ("push" | "pull") | null;
942
+ lastRequestOutcome: string | null;
943
+ effectiveScopes: {
944
+ [key: string]: unknown;
945
+ };
946
+ updatedAt: string;
947
+ }[];
948
+ total: number;
949
+ offset: number;
950
+ limit: number;
951
+ };
952
+ };
953
+ };
954
+ /** @description Unauthenticated */
955
+ 401: {
956
+ headers: {
957
+ [name: string]: unknown;
958
+ };
959
+ content: {
960
+ "application/json": {
961
+ error: string;
962
+ message?: string;
963
+ };
964
+ };
965
+ };
966
+ };
967
+ };
968
+ getConsoleHandlers: {
969
+ parameters: {
970
+ query?: never;
971
+ header?: never;
972
+ path?: never;
973
+ cookie?: never;
974
+ };
975
+ requestBody?: never;
976
+ responses: {
977
+ /** @description Handler list */
978
+ 200: {
979
+ headers: {
980
+ [name: string]: unknown;
981
+ };
982
+ content: {
983
+ "application/json": {
984
+ items: {
985
+ table: string;
986
+ dependsOn?: string[];
987
+ snapshotChunkTtlMs?: number;
988
+ }[];
989
+ };
990
+ };
991
+ };
992
+ /** @description Unauthenticated */
993
+ 401: {
994
+ headers: {
995
+ [name: string]: unknown;
996
+ };
997
+ content: {
998
+ "application/json": {
999
+ error: string;
1000
+ message?: string;
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ };
1006
+ postConsolePrunePreview: {
1007
+ parameters: {
1008
+ query?: never;
1009
+ header?: never;
1010
+ path?: never;
1011
+ cookie?: never;
1012
+ };
1013
+ requestBody?: never;
1014
+ responses: {
1015
+ /** @description Prune preview */
1016
+ 200: {
1017
+ headers: {
1018
+ [name: string]: unknown;
1019
+ };
1020
+ content: {
1021
+ "application/json": {
1022
+ watermarkCommitSeq: number;
1023
+ commitsToDelete: number;
1024
+ };
1025
+ };
1026
+ };
1027
+ /** @description Unauthenticated */
1028
+ 401: {
1029
+ headers: {
1030
+ [name: string]: unknown;
1031
+ };
1032
+ content: {
1033
+ "application/json": {
1034
+ error: string;
1035
+ message?: string;
1036
+ };
1037
+ };
1038
+ };
1039
+ };
1040
+ };
1041
+ postConsolePrune: {
1042
+ parameters: {
1043
+ query?: never;
1044
+ header?: never;
1045
+ path?: never;
1046
+ cookie?: never;
1047
+ };
1048
+ requestBody?: never;
1049
+ responses: {
1050
+ /** @description Prune result */
1051
+ 200: {
1052
+ headers: {
1053
+ [name: string]: unknown;
1054
+ };
1055
+ content: {
1056
+ "application/json": {
1057
+ deletedCommits: number;
1058
+ };
1059
+ };
1060
+ };
1061
+ /** @description Unauthenticated */
1062
+ 401: {
1063
+ headers: {
1064
+ [name: string]: unknown;
1065
+ };
1066
+ content: {
1067
+ "application/json": {
1068
+ error: string;
1069
+ message?: string;
1070
+ };
1071
+ };
1072
+ };
1073
+ };
1074
+ };
1075
+ postConsoleCompact: {
1076
+ parameters: {
1077
+ query?: never;
1078
+ header?: never;
1079
+ path?: never;
1080
+ cookie?: never;
1081
+ };
1082
+ requestBody?: never;
1083
+ responses: {
1084
+ /** @description Compact result */
1085
+ 200: {
1086
+ headers: {
1087
+ [name: string]: unknown;
1088
+ };
1089
+ content: {
1090
+ "application/json": {
1091
+ deletedChanges: number;
1092
+ };
1093
+ };
1094
+ };
1095
+ /** @description Unauthenticated */
1096
+ 401: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ "application/json": {
1102
+ error: string;
1103
+ message?: string;
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ };
1109
+ deleteConsoleClientsById: {
1110
+ parameters: {
1111
+ query?: never;
1112
+ header?: never;
1113
+ path: {
1114
+ id: string;
1115
+ };
1116
+ cookie?: never;
1117
+ };
1118
+ requestBody?: never;
1119
+ responses: {
1120
+ /** @description Evict result */
1121
+ 200: {
1122
+ headers: {
1123
+ [name: string]: unknown;
1124
+ };
1125
+ content: {
1126
+ "application/json": {
1127
+ evicted: boolean;
1128
+ };
1129
+ };
1130
+ };
1131
+ /** @description Invalid request */
1132
+ 400: {
1133
+ headers: {
1134
+ [name: string]: unknown;
1135
+ };
1136
+ content: {
1137
+ "application/json": {
1138
+ error: string;
1139
+ message?: string;
1140
+ };
1141
+ };
1142
+ };
1143
+ /** @description Unauthenticated */
1144
+ 401: {
1145
+ headers: {
1146
+ [name: string]: unknown;
1147
+ };
1148
+ content: {
1149
+ "application/json": {
1150
+ error: string;
1151
+ message?: string;
1152
+ };
1153
+ };
1154
+ };
1155
+ };
1156
+ };
1157
+ getConsoleEvents: {
1158
+ parameters: {
1159
+ query?: {
1160
+ limit?: number;
1161
+ offset?: number;
1162
+ eventType?: "push" | "pull";
1163
+ actorId?: string;
1164
+ clientId?: string;
1165
+ outcome?: string;
1166
+ };
1167
+ header?: never;
1168
+ path?: never;
1169
+ cookie?: never;
1170
+ };
1171
+ requestBody?: never;
1172
+ responses: {
1173
+ /** @description Paginated event list */
1174
+ 200: {
1175
+ headers: {
1176
+ [name: string]: unknown;
1177
+ };
1178
+ content: {
1179
+ "application/json": {
1180
+ items: {
1181
+ eventId: number;
1182
+ /** @enum {string} */
1183
+ eventType: "push" | "pull";
1184
+ /** @enum {string} */
1185
+ transportPath: "direct" | "relay";
1186
+ actorId: string;
1187
+ clientId: string;
1188
+ statusCode: number;
1189
+ outcome: string;
1190
+ durationMs: number;
1191
+ commitSeq: number | null;
1192
+ operationCount: number | null;
1193
+ rowCount: number | null;
1194
+ tables: string[];
1195
+ errorMessage: string | null;
1196
+ createdAt: string;
1197
+ }[];
1198
+ total: number;
1199
+ offset: number;
1200
+ limit: number;
1201
+ };
1202
+ };
1203
+ };
1204
+ /** @description Unauthenticated */
1205
+ 401: {
1206
+ headers: {
1207
+ [name: string]: unknown;
1208
+ };
1209
+ content: {
1210
+ "application/json": {
1211
+ error: string;
1212
+ message?: string;
1213
+ };
1214
+ };
1215
+ };
1216
+ };
1217
+ };
1218
+ deleteConsoleEvents: {
1219
+ parameters: {
1220
+ query?: never;
1221
+ header?: never;
1222
+ path?: never;
1223
+ cookie?: never;
1224
+ };
1225
+ requestBody?: never;
1226
+ responses: {
1227
+ /** @description Clear result */
1228
+ 200: {
1229
+ headers: {
1230
+ [name: string]: unknown;
1231
+ };
1232
+ content: {
1233
+ "application/json": {
1234
+ deletedCount: number;
1235
+ };
1236
+ };
1237
+ };
1238
+ /** @description Unauthenticated */
1239
+ 401: {
1240
+ headers: {
1241
+ [name: string]: unknown;
1242
+ };
1243
+ content: {
1244
+ "application/json": {
1245
+ error: string;
1246
+ message?: string;
1247
+ };
1248
+ };
1249
+ };
1250
+ };
1251
+ };
1252
+ getConsoleEventsById: {
1253
+ parameters: {
1254
+ query?: never;
1255
+ header?: never;
1256
+ path: {
1257
+ id: number;
1258
+ };
1259
+ cookie?: never;
1260
+ };
1261
+ requestBody?: never;
1262
+ responses: {
1263
+ /** @description Event details */
1264
+ 200: {
1265
+ headers: {
1266
+ [name: string]: unknown;
1267
+ };
1268
+ content: {
1269
+ "application/json": {
1270
+ eventId: number;
1271
+ /** @enum {string} */
1272
+ eventType: "push" | "pull";
1273
+ /** @enum {string} */
1274
+ transportPath: "direct" | "relay";
1275
+ actorId: string;
1276
+ clientId: string;
1277
+ statusCode: number;
1278
+ outcome: string;
1279
+ durationMs: number;
1280
+ commitSeq: number | null;
1281
+ operationCount: number | null;
1282
+ rowCount: number | null;
1283
+ tables: string[];
1284
+ errorMessage: string | null;
1285
+ createdAt: string;
1286
+ };
1287
+ };
1288
+ };
1289
+ /** @description Invalid request */
1290
+ 400: {
1291
+ headers: {
1292
+ [name: string]: unknown;
1293
+ };
1294
+ content: {
1295
+ "application/json": {
1296
+ error: string;
1297
+ message?: string;
1298
+ };
1299
+ };
1300
+ };
1301
+ /** @description Unauthenticated */
1302
+ 401: {
1303
+ headers: {
1304
+ [name: string]: unknown;
1305
+ };
1306
+ content: {
1307
+ "application/json": {
1308
+ error: string;
1309
+ message?: string;
1310
+ };
1311
+ };
1312
+ };
1313
+ /** @description Not found */
1314
+ 404: {
1315
+ headers: {
1316
+ [name: string]: unknown;
1317
+ };
1318
+ content: {
1319
+ "application/json": {
1320
+ error: string;
1321
+ message?: string;
1322
+ };
1323
+ };
1324
+ };
1325
+ };
1326
+ };
1327
+ postConsoleEventsPrune: {
1328
+ parameters: {
1329
+ query?: never;
1330
+ header?: never;
1331
+ path?: never;
1332
+ cookie?: never;
1333
+ };
1334
+ requestBody?: never;
1335
+ responses: {
1336
+ /** @description Prune result */
1337
+ 200: {
1338
+ headers: {
1339
+ [name: string]: unknown;
1340
+ };
1341
+ content: {
1342
+ "application/json": {
1343
+ deletedCount: number;
1344
+ };
1345
+ };
1346
+ };
1347
+ /** @description Unauthenticated */
1348
+ 401: {
1349
+ headers: {
1350
+ [name: string]: unknown;
1351
+ };
1352
+ content: {
1353
+ "application/json": {
1354
+ error: string;
1355
+ message?: string;
1356
+ };
1357
+ };
1358
+ };
1359
+ };
1360
+ };
1361
+ getConsoleApiKeys: {
1362
+ parameters: {
1363
+ query?: {
1364
+ limit?: number;
1365
+ offset?: number;
1366
+ type?: "relay" | "proxy" | "admin";
1367
+ };
1368
+ header?: never;
1369
+ path?: never;
1370
+ cookie?: never;
1371
+ };
1372
+ requestBody?: never;
1373
+ responses: {
1374
+ /** @description Paginated API key list */
1375
+ 200: {
1376
+ headers: {
1377
+ [name: string]: unknown;
1378
+ };
1379
+ content: {
1380
+ "application/json": {
1381
+ items: {
1382
+ keyId: string;
1383
+ keyPrefix: string;
1384
+ name: string;
1385
+ /** @enum {string} */
1386
+ keyType: "relay" | "proxy" | "admin";
1387
+ scopeKeys: string[];
1388
+ actorId: string | null;
1389
+ createdAt: string;
1390
+ expiresAt: string | null;
1391
+ lastUsedAt: string | null;
1392
+ revokedAt: string | null;
1393
+ }[];
1394
+ total: number;
1395
+ offset: number;
1396
+ limit: number;
1397
+ };
1398
+ };
1399
+ };
1400
+ /** @description Unauthenticated */
1401
+ 401: {
1402
+ headers: {
1403
+ [name: string]: unknown;
1404
+ };
1405
+ content: {
1406
+ "application/json": {
1407
+ error: string;
1408
+ message?: string;
1409
+ };
1410
+ };
1411
+ };
1412
+ };
1413
+ };
1414
+ postConsoleApiKeys: {
1415
+ parameters: {
1416
+ query?: never;
1417
+ header?: never;
1418
+ path?: never;
1419
+ cookie?: never;
1420
+ };
1421
+ requestBody?: {
1422
+ content: {
1423
+ "application/json": {
1424
+ name: string;
1425
+ /** @enum {string} */
1426
+ keyType: "relay" | "proxy" | "admin";
1427
+ scopeKeys?: string[];
1428
+ actorId?: string;
1429
+ expiresInDays?: number;
1430
+ };
1431
+ };
1432
+ };
1433
+ responses: {
1434
+ /** @description Created API key */
1435
+ 201: {
1436
+ headers: {
1437
+ [name: string]: unknown;
1438
+ };
1439
+ content: {
1440
+ "application/json": {
1441
+ key: {
1442
+ keyId: string;
1443
+ keyPrefix: string;
1444
+ name: string;
1445
+ /** @enum {string} */
1446
+ keyType: "relay" | "proxy" | "admin";
1447
+ scopeKeys: string[];
1448
+ actorId: string | null;
1449
+ createdAt: string;
1450
+ expiresAt: string | null;
1451
+ lastUsedAt: string | null;
1452
+ revokedAt: string | null;
1453
+ };
1454
+ secretKey: string;
1455
+ };
1456
+ };
1457
+ };
1458
+ /** @description Invalid request */
1459
+ 400: {
1460
+ headers: {
1461
+ [name: string]: unknown;
1462
+ };
1463
+ content: {
1464
+ "application/json": {
1465
+ error: string;
1466
+ message?: string;
1467
+ };
1468
+ };
1469
+ };
1470
+ /** @description Unauthenticated */
1471
+ 401: {
1472
+ headers: {
1473
+ [name: string]: unknown;
1474
+ };
1475
+ content: {
1476
+ "application/json": {
1477
+ error: string;
1478
+ message?: string;
1479
+ };
1480
+ };
1481
+ };
1482
+ };
1483
+ };
1484
+ getConsoleApiKeysById: {
1485
+ parameters: {
1486
+ query?: never;
1487
+ header?: never;
1488
+ path: {
1489
+ id: string;
1490
+ };
1491
+ cookie?: never;
1492
+ };
1493
+ requestBody?: never;
1494
+ responses: {
1495
+ /** @description API key details */
1496
+ 200: {
1497
+ headers: {
1498
+ [name: string]: unknown;
1499
+ };
1500
+ content: {
1501
+ "application/json": {
1502
+ keyId: string;
1503
+ keyPrefix: string;
1504
+ name: string;
1505
+ /** @enum {string} */
1506
+ keyType: "relay" | "proxy" | "admin";
1507
+ scopeKeys: string[];
1508
+ actorId: string | null;
1509
+ createdAt: string;
1510
+ expiresAt: string | null;
1511
+ lastUsedAt: string | null;
1512
+ revokedAt: string | null;
1513
+ };
1514
+ };
1515
+ };
1516
+ /** @description Unauthenticated */
1517
+ 401: {
1518
+ headers: {
1519
+ [name: string]: unknown;
1520
+ };
1521
+ content: {
1522
+ "application/json": {
1523
+ error: string;
1524
+ message?: string;
1525
+ };
1526
+ };
1527
+ };
1528
+ /** @description Not found */
1529
+ 404: {
1530
+ headers: {
1531
+ [name: string]: unknown;
1532
+ };
1533
+ content: {
1534
+ "application/json": {
1535
+ error: string;
1536
+ message?: string;
1537
+ };
1538
+ };
1539
+ };
1540
+ };
1541
+ };
1542
+ deleteConsoleApiKeysById: {
1543
+ parameters: {
1544
+ query?: never;
1545
+ header?: never;
1546
+ path: {
1547
+ id: string;
1548
+ };
1549
+ cookie?: never;
1550
+ };
1551
+ requestBody?: never;
1552
+ responses: {
1553
+ /** @description Revoke result */
1554
+ 200: {
1555
+ headers: {
1556
+ [name: string]: unknown;
1557
+ };
1558
+ content: {
1559
+ "application/json": {
1560
+ revoked: boolean;
1561
+ };
1562
+ };
1563
+ };
1564
+ /** @description Unauthenticated */
1565
+ 401: {
1566
+ headers: {
1567
+ [name: string]: unknown;
1568
+ };
1569
+ content: {
1570
+ "application/json": {
1571
+ error: string;
1572
+ message?: string;
1573
+ };
1574
+ };
1575
+ };
1576
+ };
1577
+ };
1578
+ postConsoleApiKeysByIdRotate: {
1579
+ parameters: {
1580
+ query?: never;
1581
+ header?: never;
1582
+ path: {
1583
+ id: string;
1584
+ };
1585
+ cookie?: never;
1586
+ };
1587
+ requestBody?: never;
1588
+ responses: {
1589
+ /** @description Rotated API key */
1590
+ 200: {
1591
+ headers: {
1592
+ [name: string]: unknown;
1593
+ };
1594
+ content: {
1595
+ "application/json": {
1596
+ key: {
1597
+ keyId: string;
1598
+ keyPrefix: string;
1599
+ name: string;
1600
+ /** @enum {string} */
1601
+ keyType: "relay" | "proxy" | "admin";
1602
+ scopeKeys: string[];
1603
+ actorId: string | null;
1604
+ createdAt: string;
1605
+ expiresAt: string | null;
1606
+ lastUsedAt: string | null;
1607
+ revokedAt: string | null;
1608
+ };
1609
+ secretKey: string;
1610
+ };
1611
+ };
1612
+ };
1613
+ /** @description Unauthenticated */
1614
+ 401: {
1615
+ headers: {
1616
+ [name: string]: unknown;
1617
+ };
1618
+ content: {
1619
+ "application/json": {
1620
+ error: string;
1621
+ message?: string;
1622
+ };
1623
+ };
1624
+ };
1625
+ /** @description Not found */
1626
+ 404: {
1627
+ headers: {
1628
+ [name: string]: unknown;
1629
+ };
1630
+ content: {
1631
+ "application/json": {
1632
+ error: string;
1633
+ message?: string;
1634
+ };
1635
+ };
1636
+ };
1637
+ };
1638
+ };
1639
+ postSyncBlobsUpload: {
1640
+ parameters: {
1641
+ query?: never;
1642
+ header?: never;
1643
+ path?: never;
1644
+ cookie?: never;
1645
+ };
1646
+ requestBody?: {
1647
+ content: {
1648
+ "application/json": {
1649
+ hash: string;
1650
+ size: number;
1651
+ mimeType: string;
1652
+ };
1653
+ };
1654
+ };
1655
+ responses: {
1656
+ /** @description Upload initiated (or blob already exists) */
1657
+ 200: {
1658
+ headers: {
1659
+ [name: string]: unknown;
1660
+ };
1661
+ content: {
1662
+ "application/json": {
1663
+ exists: boolean;
1664
+ uploadId?: string;
1665
+ /** Format: uri */
1666
+ uploadUrl?: string;
1667
+ /** @enum {string} */
1668
+ uploadMethod?: "PUT" | "POST";
1669
+ uploadHeaders?: {
1670
+ [key: string]: string;
1671
+ };
1672
+ chunkSize?: number;
1673
+ };
1674
+ };
1675
+ };
1676
+ /** @description Invalid request */
1677
+ 400: {
1678
+ headers: {
1679
+ [name: string]: unknown;
1680
+ };
1681
+ content: {
1682
+ "application/json": {
1683
+ error: string;
1684
+ message?: string;
1685
+ code?: string;
1686
+ };
1687
+ };
1688
+ };
1689
+ /** @description Unauthenticated */
1690
+ 401: {
1691
+ headers: {
1692
+ [name: string]: unknown;
1693
+ };
1694
+ content: {
1695
+ "application/json": {
1696
+ error: string;
1697
+ message?: string;
1698
+ code?: string;
1699
+ };
1700
+ };
1701
+ };
1702
+ };
1703
+ };
1704
+ postSyncBlobsByHashComplete: {
1705
+ parameters: {
1706
+ query?: never;
1707
+ header?: never;
1708
+ path: {
1709
+ hash: string;
1710
+ };
1711
+ cookie?: never;
1712
+ };
1713
+ requestBody?: never;
1714
+ responses: {
1715
+ /** @description Upload completed */
1716
+ 200: {
1717
+ headers: {
1718
+ [name: string]: unknown;
1719
+ };
1720
+ content: {
1721
+ "application/json": {
1722
+ ok: boolean;
1723
+ metadata?: {
1724
+ hash: string;
1725
+ size: number;
1726
+ mimeType: string;
1727
+ createdAt: string;
1728
+ expiresAt?: string;
1729
+ uploadComplete: boolean;
1730
+ };
1731
+ error?: string;
1732
+ };
1733
+ };
1734
+ };
1735
+ /** @description Invalid request or upload failed */
1736
+ 400: {
1737
+ headers: {
1738
+ [name: string]: unknown;
1739
+ };
1740
+ content: {
1741
+ "application/json": {
1742
+ error: string;
1743
+ message?: string;
1744
+ code?: string;
1745
+ };
1746
+ };
1747
+ };
1748
+ /** @description Unauthenticated */
1749
+ 401: {
1750
+ headers: {
1751
+ [name: string]: unknown;
1752
+ };
1753
+ content: {
1754
+ "application/json": {
1755
+ error: string;
1756
+ message?: string;
1757
+ code?: string;
1758
+ };
1759
+ };
1760
+ };
1761
+ };
1762
+ };
1763
+ getSyncBlobsByHashUrl: {
1764
+ parameters: {
1765
+ query?: never;
1766
+ header?: never;
1767
+ path: {
1768
+ hash: string;
1769
+ };
1770
+ cookie?: never;
1771
+ };
1772
+ requestBody?: never;
1773
+ responses: {
1774
+ /** @description Download URL */
1775
+ 200: {
1776
+ headers: {
1777
+ [name: string]: unknown;
1778
+ };
1779
+ content: {
1780
+ "application/json": {
1781
+ /** Format: uri */
1782
+ url: string;
1783
+ expiresAt: string;
1784
+ metadata: {
1785
+ hash: string;
1786
+ size: number;
1787
+ mimeType: string;
1788
+ createdAt: string;
1789
+ uploadComplete: boolean;
1790
+ };
1791
+ };
1792
+ };
1793
+ };
1794
+ /** @description Unauthenticated */
1795
+ 401: {
1796
+ headers: {
1797
+ [name: string]: unknown;
1798
+ };
1799
+ content: {
1800
+ "application/json": {
1801
+ error: string;
1802
+ message?: string;
1803
+ code?: string;
1804
+ };
1805
+ };
1806
+ };
1807
+ /** @description Forbidden */
1808
+ 403: {
1809
+ headers: {
1810
+ [name: string]: unknown;
1811
+ };
1812
+ content: {
1813
+ "application/json": {
1814
+ error: string;
1815
+ message?: string;
1816
+ code?: string;
1817
+ };
1818
+ };
1819
+ };
1820
+ /** @description Not found */
1821
+ 404: {
1822
+ headers: {
1823
+ [name: string]: unknown;
1824
+ };
1825
+ content: {
1826
+ "application/json": {
1827
+ error: string;
1828
+ message?: string;
1829
+ code?: string;
1830
+ };
1831
+ };
1832
+ };
1833
+ };
1834
+ };
1835
+ }
1836
+ //# sourceMappingURL=api.d.ts.map