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