@syncular/transport-http 0.0.1-60

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,1834 @@
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: "ndjson";
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 NDJSON) */
592
+ 200: {
593
+ headers: {
594
+ [name: string]: unknown;
595
+ };
596
+ content?: never;
597
+ };
598
+ /** @description Not modified (cached) */
599
+ 304: {
600
+ headers: {
601
+ [name: string]: unknown;
602
+ };
603
+ content?: never;
604
+ };
605
+ /** @description Unauthenticated */
606
+ 401: {
607
+ headers: {
608
+ [name: string]: unknown;
609
+ };
610
+ content: {
611
+ "application/json": {
612
+ error: string;
613
+ message?: string;
614
+ code?: string;
615
+ };
616
+ };
617
+ };
618
+ /** @description Forbidden */
619
+ 403: {
620
+ headers: {
621
+ [name: string]: unknown;
622
+ };
623
+ content: {
624
+ "application/json": {
625
+ error: string;
626
+ message?: string;
627
+ code?: string;
628
+ };
629
+ };
630
+ };
631
+ /** @description Not found */
632
+ 404: {
633
+ headers: {
634
+ [name: string]: unknown;
635
+ };
636
+ content: {
637
+ "application/json": {
638
+ error: string;
639
+ message?: string;
640
+ code?: string;
641
+ };
642
+ };
643
+ };
644
+ };
645
+ };
646
+ getConsoleStats: {
647
+ parameters: {
648
+ query?: never;
649
+ header?: never;
650
+ path?: never;
651
+ cookie?: never;
652
+ };
653
+ requestBody?: never;
654
+ responses: {
655
+ /** @description Sync statistics */
656
+ 200: {
657
+ headers: {
658
+ [name: string]: unknown;
659
+ };
660
+ content: {
661
+ "application/json": {
662
+ commitCount: number;
663
+ changeCount: number;
664
+ minCommitSeq: number;
665
+ maxCommitSeq: number;
666
+ clientCount: number;
667
+ activeClientCount: number;
668
+ minActiveClientCursor: number | null;
669
+ maxActiveClientCursor: number | null;
670
+ };
671
+ };
672
+ };
673
+ /** @description Unauthenticated */
674
+ 401: {
675
+ headers: {
676
+ [name: string]: unknown;
677
+ };
678
+ content: {
679
+ "application/json": {
680
+ error: string;
681
+ message?: string;
682
+ };
683
+ };
684
+ };
685
+ };
686
+ };
687
+ getConsoleStatsTimeseries: {
688
+ parameters: {
689
+ query?: {
690
+ interval?: "minute" | "hour" | "day";
691
+ range?: "1h" | "6h" | "24h" | "7d" | "30d";
692
+ };
693
+ header?: never;
694
+ path?: never;
695
+ cookie?: never;
696
+ };
697
+ requestBody?: never;
698
+ responses: {
699
+ /** @description Time-series statistics */
700
+ 200: {
701
+ headers: {
702
+ [name: string]: unknown;
703
+ };
704
+ content: {
705
+ "application/json": {
706
+ buckets: {
707
+ timestamp: string;
708
+ pushCount: number;
709
+ pullCount: number;
710
+ errorCount: number;
711
+ avgLatencyMs: number;
712
+ }[];
713
+ /** @enum {string} */
714
+ interval: "minute" | "hour" | "day";
715
+ /** @enum {string} */
716
+ range: "1h" | "6h" | "24h" | "7d" | "30d";
717
+ };
718
+ };
719
+ };
720
+ /** @description Unauthenticated */
721
+ 401: {
722
+ headers: {
723
+ [name: string]: unknown;
724
+ };
725
+ content: {
726
+ "application/json": {
727
+ error: string;
728
+ message?: string;
729
+ };
730
+ };
731
+ };
732
+ };
733
+ };
734
+ getConsoleStatsLatency: {
735
+ parameters: {
736
+ query?: {
737
+ range?: "1h" | "6h" | "24h" | "7d" | "30d";
738
+ };
739
+ header?: never;
740
+ path?: never;
741
+ cookie?: never;
742
+ };
743
+ requestBody?: never;
744
+ responses: {
745
+ /** @description Latency percentiles */
746
+ 200: {
747
+ headers: {
748
+ [name: string]: unknown;
749
+ };
750
+ content: {
751
+ "application/json": {
752
+ push: {
753
+ p50: number;
754
+ p90: number;
755
+ p99: number;
756
+ };
757
+ pull: {
758
+ p50: number;
759
+ p90: number;
760
+ p99: number;
761
+ };
762
+ /** @enum {string} */
763
+ range: "1h" | "6h" | "24h" | "7d" | "30d";
764
+ };
765
+ };
766
+ };
767
+ /** @description Unauthenticated */
768
+ 401: {
769
+ headers: {
770
+ [name: string]: unknown;
771
+ };
772
+ content: {
773
+ "application/json": {
774
+ error: string;
775
+ message?: string;
776
+ };
777
+ };
778
+ };
779
+ };
780
+ };
781
+ getConsoleCommits: {
782
+ parameters: {
783
+ query?: {
784
+ limit?: number;
785
+ offset?: number;
786
+ };
787
+ header?: never;
788
+ path?: never;
789
+ cookie?: never;
790
+ };
791
+ requestBody?: never;
792
+ responses: {
793
+ /** @description Paginated commit list */
794
+ 200: {
795
+ headers: {
796
+ [name: string]: unknown;
797
+ };
798
+ content: {
799
+ "application/json": {
800
+ items: {
801
+ commitSeq: number;
802
+ actorId: string;
803
+ clientId: string;
804
+ clientCommitId: string;
805
+ createdAt: string;
806
+ changeCount: number;
807
+ affectedTables: string[];
808
+ }[];
809
+ total: number;
810
+ offset: number;
811
+ limit: number;
812
+ };
813
+ };
814
+ };
815
+ /** @description Unauthenticated */
816
+ 401: {
817
+ headers: {
818
+ [name: string]: unknown;
819
+ };
820
+ content: {
821
+ "application/json": {
822
+ error: string;
823
+ message?: string;
824
+ };
825
+ };
826
+ };
827
+ };
828
+ };
829
+ getConsoleCommitsBySeq: {
830
+ parameters: {
831
+ query?: never;
832
+ header?: never;
833
+ path: {
834
+ seq: number;
835
+ };
836
+ cookie?: never;
837
+ };
838
+ requestBody?: never;
839
+ responses: {
840
+ /** @description Commit with changes */
841
+ 200: {
842
+ headers: {
843
+ [name: string]: unknown;
844
+ };
845
+ content: {
846
+ "application/json": {
847
+ commitSeq: number;
848
+ actorId: string;
849
+ clientId: string;
850
+ clientCommitId: string;
851
+ createdAt: string;
852
+ changeCount: number;
853
+ affectedTables: string[];
854
+ changes: {
855
+ changeId: number;
856
+ table: string;
857
+ rowId: string;
858
+ /** @enum {string} */
859
+ op: "upsert" | "delete";
860
+ rowJson: unknown | null;
861
+ rowVersion: number | null;
862
+ scopes: {
863
+ [key: string]: unknown;
864
+ };
865
+ }[];
866
+ };
867
+ };
868
+ };
869
+ /** @description Invalid request */
870
+ 400: {
871
+ headers: {
872
+ [name: string]: unknown;
873
+ };
874
+ content: {
875
+ "application/json": {
876
+ error: string;
877
+ message?: string;
878
+ };
879
+ };
880
+ };
881
+ /** @description Unauthenticated */
882
+ 401: {
883
+ headers: {
884
+ [name: string]: unknown;
885
+ };
886
+ content: {
887
+ "application/json": {
888
+ error: string;
889
+ message?: string;
890
+ };
891
+ };
892
+ };
893
+ /** @description Not found */
894
+ 404: {
895
+ headers: {
896
+ [name: string]: unknown;
897
+ };
898
+ content: {
899
+ "application/json": {
900
+ error: string;
901
+ message?: string;
902
+ };
903
+ };
904
+ };
905
+ };
906
+ };
907
+ getConsoleClients: {
908
+ parameters: {
909
+ query?: {
910
+ limit?: number;
911
+ offset?: number;
912
+ };
913
+ header?: never;
914
+ path?: never;
915
+ cookie?: never;
916
+ };
917
+ requestBody?: never;
918
+ responses: {
919
+ /** @description Paginated client list */
920
+ 200: {
921
+ headers: {
922
+ [name: string]: unknown;
923
+ };
924
+ content: {
925
+ "application/json": {
926
+ items: {
927
+ clientId: string;
928
+ actorId: string;
929
+ cursor: number;
930
+ lagCommitCount: number;
931
+ /** @enum {string} */
932
+ connectionPath: "direct" | "relay";
933
+ /** @enum {string} */
934
+ connectionMode: "polling" | "realtime";
935
+ realtimeConnectionCount: number;
936
+ isRealtimeConnected: boolean;
937
+ /** @enum {string} */
938
+ activityState: "active" | "idle" | "stale";
939
+ lastRequestAt: string | null;
940
+ lastRequestType: ("push" | "pull") | null;
941
+ lastRequestOutcome: string | null;
942
+ effectiveScopes: {
943
+ [key: string]: unknown;
944
+ };
945
+ updatedAt: string;
946
+ }[];
947
+ total: number;
948
+ offset: number;
949
+ limit: number;
950
+ };
951
+ };
952
+ };
953
+ /** @description Unauthenticated */
954
+ 401: {
955
+ headers: {
956
+ [name: string]: unknown;
957
+ };
958
+ content: {
959
+ "application/json": {
960
+ error: string;
961
+ message?: string;
962
+ };
963
+ };
964
+ };
965
+ };
966
+ };
967
+ getConsoleHandlers: {
968
+ parameters: {
969
+ query?: never;
970
+ header?: never;
971
+ path?: never;
972
+ cookie?: never;
973
+ };
974
+ requestBody?: never;
975
+ responses: {
976
+ /** @description Handler list */
977
+ 200: {
978
+ headers: {
979
+ [name: string]: unknown;
980
+ };
981
+ content: {
982
+ "application/json": {
983
+ items: {
984
+ table: string;
985
+ dependsOn?: string[];
986
+ snapshotChunkTtlMs?: number;
987
+ }[];
988
+ };
989
+ };
990
+ };
991
+ /** @description Unauthenticated */
992
+ 401: {
993
+ headers: {
994
+ [name: string]: unknown;
995
+ };
996
+ content: {
997
+ "application/json": {
998
+ error: string;
999
+ message?: string;
1000
+ };
1001
+ };
1002
+ };
1003
+ };
1004
+ };
1005
+ postConsolePrunePreview: {
1006
+ parameters: {
1007
+ query?: never;
1008
+ header?: never;
1009
+ path?: never;
1010
+ cookie?: never;
1011
+ };
1012
+ requestBody?: never;
1013
+ responses: {
1014
+ /** @description Prune preview */
1015
+ 200: {
1016
+ headers: {
1017
+ [name: string]: unknown;
1018
+ };
1019
+ content: {
1020
+ "application/json": {
1021
+ watermarkCommitSeq: number;
1022
+ commitsToDelete: number;
1023
+ };
1024
+ };
1025
+ };
1026
+ /** @description Unauthenticated */
1027
+ 401: {
1028
+ headers: {
1029
+ [name: string]: unknown;
1030
+ };
1031
+ content: {
1032
+ "application/json": {
1033
+ error: string;
1034
+ message?: string;
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ };
1040
+ postConsolePrune: {
1041
+ parameters: {
1042
+ query?: never;
1043
+ header?: never;
1044
+ path?: never;
1045
+ cookie?: never;
1046
+ };
1047
+ requestBody?: never;
1048
+ responses: {
1049
+ /** @description Prune result */
1050
+ 200: {
1051
+ headers: {
1052
+ [name: string]: unknown;
1053
+ };
1054
+ content: {
1055
+ "application/json": {
1056
+ deletedCommits: number;
1057
+ };
1058
+ };
1059
+ };
1060
+ /** @description Unauthenticated */
1061
+ 401: {
1062
+ headers: {
1063
+ [name: string]: unknown;
1064
+ };
1065
+ content: {
1066
+ "application/json": {
1067
+ error: string;
1068
+ message?: string;
1069
+ };
1070
+ };
1071
+ };
1072
+ };
1073
+ };
1074
+ postConsoleCompact: {
1075
+ parameters: {
1076
+ query?: never;
1077
+ header?: never;
1078
+ path?: never;
1079
+ cookie?: never;
1080
+ };
1081
+ requestBody?: never;
1082
+ responses: {
1083
+ /** @description Compact result */
1084
+ 200: {
1085
+ headers: {
1086
+ [name: string]: unknown;
1087
+ };
1088
+ content: {
1089
+ "application/json": {
1090
+ deletedChanges: number;
1091
+ };
1092
+ };
1093
+ };
1094
+ /** @description Unauthenticated */
1095
+ 401: {
1096
+ headers: {
1097
+ [name: string]: unknown;
1098
+ };
1099
+ content: {
1100
+ "application/json": {
1101
+ error: string;
1102
+ message?: string;
1103
+ };
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ deleteConsoleClientsById: {
1109
+ parameters: {
1110
+ query?: never;
1111
+ header?: never;
1112
+ path: {
1113
+ id: string;
1114
+ };
1115
+ cookie?: never;
1116
+ };
1117
+ requestBody?: never;
1118
+ responses: {
1119
+ /** @description Evict result */
1120
+ 200: {
1121
+ headers: {
1122
+ [name: string]: unknown;
1123
+ };
1124
+ content: {
1125
+ "application/json": {
1126
+ evicted: boolean;
1127
+ };
1128
+ };
1129
+ };
1130
+ /** @description Invalid request */
1131
+ 400: {
1132
+ headers: {
1133
+ [name: string]: unknown;
1134
+ };
1135
+ content: {
1136
+ "application/json": {
1137
+ error: string;
1138
+ message?: string;
1139
+ };
1140
+ };
1141
+ };
1142
+ /** @description Unauthenticated */
1143
+ 401: {
1144
+ headers: {
1145
+ [name: string]: unknown;
1146
+ };
1147
+ content: {
1148
+ "application/json": {
1149
+ error: string;
1150
+ message?: string;
1151
+ };
1152
+ };
1153
+ };
1154
+ };
1155
+ };
1156
+ getConsoleEvents: {
1157
+ parameters: {
1158
+ query?: {
1159
+ limit?: number;
1160
+ offset?: number;
1161
+ eventType?: "push" | "pull";
1162
+ actorId?: string;
1163
+ clientId?: string;
1164
+ outcome?: string;
1165
+ };
1166
+ header?: never;
1167
+ path?: never;
1168
+ cookie?: never;
1169
+ };
1170
+ requestBody?: never;
1171
+ responses: {
1172
+ /** @description Paginated event list */
1173
+ 200: {
1174
+ headers: {
1175
+ [name: string]: unknown;
1176
+ };
1177
+ content: {
1178
+ "application/json": {
1179
+ items: {
1180
+ eventId: number;
1181
+ /** @enum {string} */
1182
+ eventType: "push" | "pull";
1183
+ /** @enum {string} */
1184
+ transportPath: "direct" | "relay";
1185
+ actorId: string;
1186
+ clientId: string;
1187
+ statusCode: number;
1188
+ outcome: string;
1189
+ durationMs: number;
1190
+ commitSeq: number | null;
1191
+ operationCount: number | null;
1192
+ rowCount: number | null;
1193
+ tables: string[];
1194
+ errorMessage: string | null;
1195
+ createdAt: string;
1196
+ }[];
1197
+ total: number;
1198
+ offset: number;
1199
+ limit: number;
1200
+ };
1201
+ };
1202
+ };
1203
+ /** @description Unauthenticated */
1204
+ 401: {
1205
+ headers: {
1206
+ [name: string]: unknown;
1207
+ };
1208
+ content: {
1209
+ "application/json": {
1210
+ error: string;
1211
+ message?: string;
1212
+ };
1213
+ };
1214
+ };
1215
+ };
1216
+ };
1217
+ deleteConsoleEvents: {
1218
+ parameters: {
1219
+ query?: never;
1220
+ header?: never;
1221
+ path?: never;
1222
+ cookie?: never;
1223
+ };
1224
+ requestBody?: never;
1225
+ responses: {
1226
+ /** @description Clear result */
1227
+ 200: {
1228
+ headers: {
1229
+ [name: string]: unknown;
1230
+ };
1231
+ content: {
1232
+ "application/json": {
1233
+ deletedCount: number;
1234
+ };
1235
+ };
1236
+ };
1237
+ /** @description Unauthenticated */
1238
+ 401: {
1239
+ headers: {
1240
+ [name: string]: unknown;
1241
+ };
1242
+ content: {
1243
+ "application/json": {
1244
+ error: string;
1245
+ message?: string;
1246
+ };
1247
+ };
1248
+ };
1249
+ };
1250
+ };
1251
+ getConsoleEventsById: {
1252
+ parameters: {
1253
+ query?: never;
1254
+ header?: never;
1255
+ path: {
1256
+ id: number;
1257
+ };
1258
+ cookie?: never;
1259
+ };
1260
+ requestBody?: never;
1261
+ responses: {
1262
+ /** @description Event details */
1263
+ 200: {
1264
+ headers: {
1265
+ [name: string]: unknown;
1266
+ };
1267
+ content: {
1268
+ "application/json": {
1269
+ eventId: number;
1270
+ /** @enum {string} */
1271
+ eventType: "push" | "pull";
1272
+ /** @enum {string} */
1273
+ transportPath: "direct" | "relay";
1274
+ actorId: string;
1275
+ clientId: string;
1276
+ statusCode: number;
1277
+ outcome: string;
1278
+ durationMs: number;
1279
+ commitSeq: number | null;
1280
+ operationCount: number | null;
1281
+ rowCount: number | null;
1282
+ tables: string[];
1283
+ errorMessage: string | null;
1284
+ createdAt: string;
1285
+ };
1286
+ };
1287
+ };
1288
+ /** @description Invalid request */
1289
+ 400: {
1290
+ headers: {
1291
+ [name: string]: unknown;
1292
+ };
1293
+ content: {
1294
+ "application/json": {
1295
+ error: string;
1296
+ message?: string;
1297
+ };
1298
+ };
1299
+ };
1300
+ /** @description Unauthenticated */
1301
+ 401: {
1302
+ headers: {
1303
+ [name: string]: unknown;
1304
+ };
1305
+ content: {
1306
+ "application/json": {
1307
+ error: string;
1308
+ message?: string;
1309
+ };
1310
+ };
1311
+ };
1312
+ /** @description Not found */
1313
+ 404: {
1314
+ headers: {
1315
+ [name: string]: unknown;
1316
+ };
1317
+ content: {
1318
+ "application/json": {
1319
+ error: string;
1320
+ message?: string;
1321
+ };
1322
+ };
1323
+ };
1324
+ };
1325
+ };
1326
+ postConsoleEventsPrune: {
1327
+ parameters: {
1328
+ query?: never;
1329
+ header?: never;
1330
+ path?: never;
1331
+ cookie?: never;
1332
+ };
1333
+ requestBody?: never;
1334
+ responses: {
1335
+ /** @description Prune result */
1336
+ 200: {
1337
+ headers: {
1338
+ [name: string]: unknown;
1339
+ };
1340
+ content: {
1341
+ "application/json": {
1342
+ deletedCount: number;
1343
+ };
1344
+ };
1345
+ };
1346
+ /** @description Unauthenticated */
1347
+ 401: {
1348
+ headers: {
1349
+ [name: string]: unknown;
1350
+ };
1351
+ content: {
1352
+ "application/json": {
1353
+ error: string;
1354
+ message?: string;
1355
+ };
1356
+ };
1357
+ };
1358
+ };
1359
+ };
1360
+ getConsoleApiKeys: {
1361
+ parameters: {
1362
+ query?: {
1363
+ limit?: number;
1364
+ offset?: number;
1365
+ type?: "relay" | "proxy" | "admin";
1366
+ };
1367
+ header?: never;
1368
+ path?: never;
1369
+ cookie?: never;
1370
+ };
1371
+ requestBody?: never;
1372
+ responses: {
1373
+ /** @description Paginated API key list */
1374
+ 200: {
1375
+ headers: {
1376
+ [name: string]: unknown;
1377
+ };
1378
+ content: {
1379
+ "application/json": {
1380
+ items: {
1381
+ keyId: string;
1382
+ keyPrefix: string;
1383
+ name: string;
1384
+ /** @enum {string} */
1385
+ keyType: "relay" | "proxy" | "admin";
1386
+ scopeKeys: string[];
1387
+ actorId: string | null;
1388
+ createdAt: string;
1389
+ expiresAt: string | null;
1390
+ lastUsedAt: string | null;
1391
+ revokedAt: string | null;
1392
+ }[];
1393
+ total: number;
1394
+ offset: number;
1395
+ limit: number;
1396
+ };
1397
+ };
1398
+ };
1399
+ /** @description Unauthenticated */
1400
+ 401: {
1401
+ headers: {
1402
+ [name: string]: unknown;
1403
+ };
1404
+ content: {
1405
+ "application/json": {
1406
+ error: string;
1407
+ message?: string;
1408
+ };
1409
+ };
1410
+ };
1411
+ };
1412
+ };
1413
+ postConsoleApiKeys: {
1414
+ parameters: {
1415
+ query?: never;
1416
+ header?: never;
1417
+ path?: never;
1418
+ cookie?: never;
1419
+ };
1420
+ requestBody?: {
1421
+ content: {
1422
+ "application/json": {
1423
+ name: string;
1424
+ /** @enum {string} */
1425
+ keyType: "relay" | "proxy" | "admin";
1426
+ scopeKeys?: string[];
1427
+ actorId?: string;
1428
+ expiresInDays?: number;
1429
+ };
1430
+ };
1431
+ };
1432
+ responses: {
1433
+ /** @description Created API key */
1434
+ 201: {
1435
+ headers: {
1436
+ [name: string]: unknown;
1437
+ };
1438
+ content: {
1439
+ "application/json": {
1440
+ key: {
1441
+ keyId: string;
1442
+ keyPrefix: string;
1443
+ name: string;
1444
+ /** @enum {string} */
1445
+ keyType: "relay" | "proxy" | "admin";
1446
+ scopeKeys: string[];
1447
+ actorId: string | null;
1448
+ createdAt: string;
1449
+ expiresAt: string | null;
1450
+ lastUsedAt: string | null;
1451
+ revokedAt: string | null;
1452
+ };
1453
+ secretKey: string;
1454
+ };
1455
+ };
1456
+ };
1457
+ /** @description Invalid request */
1458
+ 400: {
1459
+ headers: {
1460
+ [name: string]: unknown;
1461
+ };
1462
+ content: {
1463
+ "application/json": {
1464
+ error: string;
1465
+ message?: string;
1466
+ };
1467
+ };
1468
+ };
1469
+ /** @description Unauthenticated */
1470
+ 401: {
1471
+ headers: {
1472
+ [name: string]: unknown;
1473
+ };
1474
+ content: {
1475
+ "application/json": {
1476
+ error: string;
1477
+ message?: string;
1478
+ };
1479
+ };
1480
+ };
1481
+ };
1482
+ };
1483
+ getConsoleApiKeysById: {
1484
+ parameters: {
1485
+ query?: never;
1486
+ header?: never;
1487
+ path: {
1488
+ id: string;
1489
+ };
1490
+ cookie?: never;
1491
+ };
1492
+ requestBody?: never;
1493
+ responses: {
1494
+ /** @description API key details */
1495
+ 200: {
1496
+ headers: {
1497
+ [name: string]: unknown;
1498
+ };
1499
+ content: {
1500
+ "application/json": {
1501
+ keyId: string;
1502
+ keyPrefix: string;
1503
+ name: string;
1504
+ /** @enum {string} */
1505
+ keyType: "relay" | "proxy" | "admin";
1506
+ scopeKeys: string[];
1507
+ actorId: string | null;
1508
+ createdAt: string;
1509
+ expiresAt: string | null;
1510
+ lastUsedAt: string | null;
1511
+ revokedAt: string | null;
1512
+ };
1513
+ };
1514
+ };
1515
+ /** @description Unauthenticated */
1516
+ 401: {
1517
+ headers: {
1518
+ [name: string]: unknown;
1519
+ };
1520
+ content: {
1521
+ "application/json": {
1522
+ error: string;
1523
+ message?: string;
1524
+ };
1525
+ };
1526
+ };
1527
+ /** @description Not found */
1528
+ 404: {
1529
+ headers: {
1530
+ [name: string]: unknown;
1531
+ };
1532
+ content: {
1533
+ "application/json": {
1534
+ error: string;
1535
+ message?: string;
1536
+ };
1537
+ };
1538
+ };
1539
+ };
1540
+ };
1541
+ deleteConsoleApiKeysById: {
1542
+ parameters: {
1543
+ query?: never;
1544
+ header?: never;
1545
+ path: {
1546
+ id: string;
1547
+ };
1548
+ cookie?: never;
1549
+ };
1550
+ requestBody?: never;
1551
+ responses: {
1552
+ /** @description Revoke result */
1553
+ 200: {
1554
+ headers: {
1555
+ [name: string]: unknown;
1556
+ };
1557
+ content: {
1558
+ "application/json": {
1559
+ revoked: boolean;
1560
+ };
1561
+ };
1562
+ };
1563
+ /** @description Unauthenticated */
1564
+ 401: {
1565
+ headers: {
1566
+ [name: string]: unknown;
1567
+ };
1568
+ content: {
1569
+ "application/json": {
1570
+ error: string;
1571
+ message?: string;
1572
+ };
1573
+ };
1574
+ };
1575
+ };
1576
+ };
1577
+ postConsoleApiKeysByIdRotate: {
1578
+ parameters: {
1579
+ query?: never;
1580
+ header?: never;
1581
+ path: {
1582
+ id: string;
1583
+ };
1584
+ cookie?: never;
1585
+ };
1586
+ requestBody?: never;
1587
+ responses: {
1588
+ /** @description Rotated API key */
1589
+ 200: {
1590
+ headers: {
1591
+ [name: string]: unknown;
1592
+ };
1593
+ content: {
1594
+ "application/json": {
1595
+ key: {
1596
+ keyId: string;
1597
+ keyPrefix: string;
1598
+ name: string;
1599
+ /** @enum {string} */
1600
+ keyType: "relay" | "proxy" | "admin";
1601
+ scopeKeys: string[];
1602
+ actorId: string | null;
1603
+ createdAt: string;
1604
+ expiresAt: string | null;
1605
+ lastUsedAt: string | null;
1606
+ revokedAt: string | null;
1607
+ };
1608
+ secretKey: string;
1609
+ };
1610
+ };
1611
+ };
1612
+ /** @description Unauthenticated */
1613
+ 401: {
1614
+ headers: {
1615
+ [name: string]: unknown;
1616
+ };
1617
+ content: {
1618
+ "application/json": {
1619
+ error: string;
1620
+ message?: string;
1621
+ };
1622
+ };
1623
+ };
1624
+ /** @description Not found */
1625
+ 404: {
1626
+ headers: {
1627
+ [name: string]: unknown;
1628
+ };
1629
+ content: {
1630
+ "application/json": {
1631
+ error: string;
1632
+ message?: string;
1633
+ };
1634
+ };
1635
+ };
1636
+ };
1637
+ };
1638
+ postSyncBlobsUpload: {
1639
+ parameters: {
1640
+ query?: never;
1641
+ header?: never;
1642
+ path?: never;
1643
+ cookie?: never;
1644
+ };
1645
+ requestBody?: {
1646
+ content: {
1647
+ "application/json": {
1648
+ hash: string;
1649
+ size: number;
1650
+ mimeType: string;
1651
+ };
1652
+ };
1653
+ };
1654
+ responses: {
1655
+ /** @description Upload initiated (or blob already exists) */
1656
+ 200: {
1657
+ headers: {
1658
+ [name: string]: unknown;
1659
+ };
1660
+ content: {
1661
+ "application/json": {
1662
+ exists: boolean;
1663
+ uploadId?: string;
1664
+ /** Format: uri */
1665
+ uploadUrl?: string;
1666
+ /** @enum {string} */
1667
+ uploadMethod?: "PUT" | "POST";
1668
+ uploadHeaders?: {
1669
+ [key: string]: string;
1670
+ };
1671
+ chunkSize?: number;
1672
+ };
1673
+ };
1674
+ };
1675
+ /** @description Invalid request */
1676
+ 400: {
1677
+ headers: {
1678
+ [name: string]: unknown;
1679
+ };
1680
+ content: {
1681
+ "application/json": {
1682
+ error: string;
1683
+ message?: string;
1684
+ code?: string;
1685
+ };
1686
+ };
1687
+ };
1688
+ /** @description Unauthenticated */
1689
+ 401: {
1690
+ headers: {
1691
+ [name: string]: unknown;
1692
+ };
1693
+ content: {
1694
+ "application/json": {
1695
+ error: string;
1696
+ message?: string;
1697
+ code?: string;
1698
+ };
1699
+ };
1700
+ };
1701
+ };
1702
+ };
1703
+ postSyncBlobsByHashComplete: {
1704
+ parameters: {
1705
+ query?: never;
1706
+ header?: never;
1707
+ path: {
1708
+ hash: string;
1709
+ };
1710
+ cookie?: never;
1711
+ };
1712
+ requestBody?: never;
1713
+ responses: {
1714
+ /** @description Upload completed */
1715
+ 200: {
1716
+ headers: {
1717
+ [name: string]: unknown;
1718
+ };
1719
+ content: {
1720
+ "application/json": {
1721
+ ok: boolean;
1722
+ metadata?: {
1723
+ hash: string;
1724
+ size: number;
1725
+ mimeType: string;
1726
+ createdAt: string;
1727
+ expiresAt?: string;
1728
+ uploadComplete: boolean;
1729
+ };
1730
+ error?: string;
1731
+ };
1732
+ };
1733
+ };
1734
+ /** @description Invalid request or upload failed */
1735
+ 400: {
1736
+ headers: {
1737
+ [name: string]: unknown;
1738
+ };
1739
+ content: {
1740
+ "application/json": {
1741
+ error: string;
1742
+ message?: string;
1743
+ code?: string;
1744
+ };
1745
+ };
1746
+ };
1747
+ /** @description Unauthenticated */
1748
+ 401: {
1749
+ headers: {
1750
+ [name: string]: unknown;
1751
+ };
1752
+ content: {
1753
+ "application/json": {
1754
+ error: string;
1755
+ message?: string;
1756
+ code?: string;
1757
+ };
1758
+ };
1759
+ };
1760
+ };
1761
+ };
1762
+ getSyncBlobsByHashUrl: {
1763
+ parameters: {
1764
+ query?: never;
1765
+ header?: never;
1766
+ path: {
1767
+ hash: string;
1768
+ };
1769
+ cookie?: never;
1770
+ };
1771
+ requestBody?: never;
1772
+ responses: {
1773
+ /** @description Download URL */
1774
+ 200: {
1775
+ headers: {
1776
+ [name: string]: unknown;
1777
+ };
1778
+ content: {
1779
+ "application/json": {
1780
+ /** Format: uri */
1781
+ url: string;
1782
+ expiresAt: string;
1783
+ metadata: {
1784
+ hash: string;
1785
+ size: number;
1786
+ mimeType: string;
1787
+ createdAt: string;
1788
+ uploadComplete: boolean;
1789
+ };
1790
+ };
1791
+ };
1792
+ };
1793
+ /** @description Unauthenticated */
1794
+ 401: {
1795
+ headers: {
1796
+ [name: string]: unknown;
1797
+ };
1798
+ content: {
1799
+ "application/json": {
1800
+ error: string;
1801
+ message?: string;
1802
+ code?: string;
1803
+ };
1804
+ };
1805
+ };
1806
+ /** @description Forbidden */
1807
+ 403: {
1808
+ headers: {
1809
+ [name: string]: unknown;
1810
+ };
1811
+ content: {
1812
+ "application/json": {
1813
+ error: string;
1814
+ message?: string;
1815
+ code?: string;
1816
+ };
1817
+ };
1818
+ };
1819
+ /** @description Not found */
1820
+ 404: {
1821
+ headers: {
1822
+ [name: string]: unknown;
1823
+ };
1824
+ content: {
1825
+ "application/json": {
1826
+ error: string;
1827
+ message?: string;
1828
+ code?: string;
1829
+ };
1830
+ };
1831
+ };
1832
+ };
1833
+ };
1834
+ }