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