@polaris-auth/client 0.0.0-stage → 0.7.0

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,944 @@
1
+ import type { Client } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ import type { Init } from "./namespace.js";
4
+ /** The `audit` plugin's routes as methods of `client.audit`. */
5
+ export declare function audit(client: Client<paths>): {
6
+ /** GET /audit/me: List the audit events where the caller is the actor or the subject */
7
+ me: (init_0?: ({
8
+ params?: {
9
+ query?: {
10
+ names?: string;
11
+ from?: string;
12
+ to?: string;
13
+ cursor?: string;
14
+ limit?: number;
15
+ };
16
+ header?: never;
17
+ path?: never;
18
+ cookie?: never;
19
+ };
20
+ } & {
21
+ body?: undefined;
22
+ } & {
23
+ baseUrl?: string;
24
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
25
+ parameters: {
26
+ query?: {
27
+ names?: string;
28
+ from?: string;
29
+ to?: string;
30
+ cursor?: string;
31
+ limit?: number;
32
+ };
33
+ header?: never;
34
+ path?: never;
35
+ cookie?: never;
36
+ };
37
+ requestBody?: never;
38
+ responses: {
39
+ 200: {
40
+ headers: {
41
+ [name: string]: unknown;
42
+ };
43
+ content: {
44
+ "application/json": {
45
+ data: {
46
+ id: string;
47
+ name: string;
48
+ occurred_at: string;
49
+ actor_type: string;
50
+ actor_id: string;
51
+ subject_id: string;
52
+ organization_id: string | null;
53
+ session_id: string;
54
+ ip: string;
55
+ user_agent: string;
56
+ data: {
57
+ amr: string[];
58
+ };
59
+ request_id: string | null;
60
+ }[];
61
+ next_cursor: string | null;
62
+ };
63
+ };
64
+ };
65
+ 401: {
66
+ headers: {
67
+ [name: string]: unknown;
68
+ };
69
+ content: {
70
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
71
+ };
72
+ };
73
+ 422: {
74
+ headers: {
75
+ [name: string]: unknown;
76
+ };
77
+ content: {
78
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
79
+ };
80
+ };
81
+ };
82
+ }>;
83
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
84
+ parameters: {
85
+ query?: {
86
+ names?: string;
87
+ from?: string;
88
+ to?: string;
89
+ cursor?: string;
90
+ limit?: number;
91
+ };
92
+ header?: never;
93
+ path?: never;
94
+ cookie?: never;
95
+ };
96
+ requestBody?: never;
97
+ responses: {
98
+ 200: {
99
+ headers: {
100
+ [name: string]: unknown;
101
+ };
102
+ content: {
103
+ "application/json": {
104
+ data: {
105
+ id: string;
106
+ name: string;
107
+ occurred_at: string;
108
+ actor_type: string;
109
+ actor_id: string;
110
+ subject_id: string;
111
+ organization_id: string | null;
112
+ session_id: string;
113
+ ip: string;
114
+ user_agent: string;
115
+ data: {
116
+ amr: string[];
117
+ };
118
+ request_id: string | null;
119
+ }[];
120
+ next_cursor: string | null;
121
+ };
122
+ };
123
+ };
124
+ 401: {
125
+ headers: {
126
+ [name: string]: unknown;
127
+ };
128
+ content: {
129
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
130
+ };
131
+ };
132
+ 422: {
133
+ headers: {
134
+ [name: string]: unknown;
135
+ };
136
+ content: {
137
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
138
+ };
139
+ };
140
+ };
141
+ }>;
142
+ pathSerializer?: import("openapi-fetch").PathSerializer;
143
+ parseAs?: import("openapi-fetch").ParseAs;
144
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
145
+ headers?: import("openapi-fetch").HeadersOptions;
146
+ middleware?: import("openapi-fetch").Middleware[];
147
+ } & Omit<RequestInit, "body" | "headers"> & {
148
+ [key: string]: unknown;
149
+ }) | undefined) => Promise<import("openapi-fetch").FetchResponse<{
150
+ parameters: {
151
+ query?: {
152
+ names?: string;
153
+ from?: string;
154
+ to?: string;
155
+ cursor?: string;
156
+ limit?: number;
157
+ };
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ requestBody?: never;
163
+ responses: {
164
+ 200: {
165
+ headers: {
166
+ [name: string]: unknown;
167
+ };
168
+ content: {
169
+ "application/json": {
170
+ data: {
171
+ id: string;
172
+ name: string;
173
+ occurred_at: string;
174
+ actor_type: string;
175
+ actor_id: string;
176
+ subject_id: string;
177
+ organization_id: string | null;
178
+ session_id: string;
179
+ ip: string;
180
+ user_agent: string;
181
+ data: {
182
+ amr: string[];
183
+ };
184
+ request_id: string | null;
185
+ }[];
186
+ next_cursor: string | null;
187
+ };
188
+ };
189
+ };
190
+ 401: {
191
+ headers: {
192
+ [name: string]: unknown;
193
+ };
194
+ content: {
195
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
196
+ };
197
+ };
198
+ 422: {
199
+ headers: {
200
+ [name: string]: unknown;
201
+ };
202
+ content: {
203
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
204
+ };
205
+ };
206
+ };
207
+ }, ({
208
+ params?: {
209
+ query?: {
210
+ names?: string;
211
+ from?: string;
212
+ to?: string;
213
+ cursor?: string;
214
+ limit?: number;
215
+ };
216
+ header?: never;
217
+ path?: never;
218
+ cookie?: never;
219
+ };
220
+ } & {
221
+ body?: undefined;
222
+ } & {
223
+ baseUrl?: string;
224
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
225
+ parameters: {
226
+ query?: {
227
+ names?: string;
228
+ from?: string;
229
+ to?: string;
230
+ cursor?: string;
231
+ limit?: number;
232
+ };
233
+ header?: never;
234
+ path?: never;
235
+ cookie?: never;
236
+ };
237
+ requestBody?: never;
238
+ responses: {
239
+ 200: {
240
+ headers: {
241
+ [name: string]: unknown;
242
+ };
243
+ content: {
244
+ "application/json": {
245
+ data: {
246
+ id: string;
247
+ name: string;
248
+ occurred_at: string;
249
+ actor_type: string;
250
+ actor_id: string;
251
+ subject_id: string;
252
+ organization_id: string | null;
253
+ session_id: string;
254
+ ip: string;
255
+ user_agent: string;
256
+ data: {
257
+ amr: string[];
258
+ };
259
+ request_id: string | null;
260
+ }[];
261
+ next_cursor: string | null;
262
+ };
263
+ };
264
+ };
265
+ 401: {
266
+ headers: {
267
+ [name: string]: unknown;
268
+ };
269
+ content: {
270
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
271
+ };
272
+ };
273
+ 422: {
274
+ headers: {
275
+ [name: string]: unknown;
276
+ };
277
+ content: {
278
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
279
+ };
280
+ };
281
+ };
282
+ }>;
283
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
284
+ parameters: {
285
+ query?: {
286
+ names?: string;
287
+ from?: string;
288
+ to?: string;
289
+ cursor?: string;
290
+ limit?: number;
291
+ };
292
+ header?: never;
293
+ path?: never;
294
+ cookie?: never;
295
+ };
296
+ requestBody?: never;
297
+ responses: {
298
+ 200: {
299
+ headers: {
300
+ [name: string]: unknown;
301
+ };
302
+ content: {
303
+ "application/json": {
304
+ data: {
305
+ id: string;
306
+ name: string;
307
+ occurred_at: string;
308
+ actor_type: string;
309
+ actor_id: string;
310
+ subject_id: string;
311
+ organization_id: string | null;
312
+ session_id: string;
313
+ ip: string;
314
+ user_agent: string;
315
+ data: {
316
+ amr: string[];
317
+ };
318
+ request_id: string | null;
319
+ }[];
320
+ next_cursor: string | null;
321
+ };
322
+ };
323
+ };
324
+ 401: {
325
+ headers: {
326
+ [name: string]: unknown;
327
+ };
328
+ content: {
329
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
330
+ };
331
+ };
332
+ 422: {
333
+ headers: {
334
+ [name: string]: unknown;
335
+ };
336
+ content: {
337
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
338
+ };
339
+ };
340
+ };
341
+ }>;
342
+ pathSerializer?: import("openapi-fetch").PathSerializer;
343
+ parseAs?: import("openapi-fetch").ParseAs;
344
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
345
+ headers?: import("openapi-fetch").HeadersOptions;
346
+ middleware?: import("openapi-fetch").Middleware[];
347
+ } & Omit<RequestInit, "body" | "headers"> & {
348
+ [key: string]: unknown;
349
+ }) | undefined, `${string}/${string}`>>;
350
+ /** GET /audit/organization/{id}: List an organization's audit events */
351
+ organization: (init_0: {
352
+ params: {
353
+ query?: {
354
+ names?: string;
355
+ from?: string;
356
+ to?: string;
357
+ cursor?: string;
358
+ limit?: number;
359
+ };
360
+ header?: never;
361
+ path: {
362
+ id: string;
363
+ };
364
+ cookie?: never;
365
+ };
366
+ } & {
367
+ body?: undefined;
368
+ } & {
369
+ baseUrl?: string;
370
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
371
+ parameters: {
372
+ query?: {
373
+ names?: string;
374
+ from?: string;
375
+ to?: string;
376
+ cursor?: string;
377
+ limit?: number;
378
+ };
379
+ header?: never;
380
+ path: {
381
+ id: string;
382
+ };
383
+ cookie?: never;
384
+ };
385
+ requestBody?: never;
386
+ responses: {
387
+ 200: {
388
+ headers: {
389
+ [name: string]: unknown;
390
+ };
391
+ content: {
392
+ "application/json": {
393
+ data: {
394
+ id: string;
395
+ name: string;
396
+ occurred_at: string;
397
+ actor_type: string;
398
+ actor_id: string;
399
+ subject_id: string;
400
+ organization_id: string;
401
+ session_id: string | null;
402
+ ip: string | null;
403
+ user_agent: string | null;
404
+ data: {
405
+ email: string;
406
+ };
407
+ request_id: string | null;
408
+ }[];
409
+ next_cursor: string | null;
410
+ };
411
+ };
412
+ };
413
+ 401: {
414
+ headers: {
415
+ [name: string]: unknown;
416
+ };
417
+ content: {
418
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
419
+ };
420
+ };
421
+ 403: {
422
+ headers: {
423
+ [name: string]: unknown;
424
+ };
425
+ content: {
426
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
427
+ };
428
+ };
429
+ 422: {
430
+ headers: {
431
+ [name: string]: unknown;
432
+ };
433
+ content: {
434
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
435
+ };
436
+ };
437
+ };
438
+ }>;
439
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
440
+ parameters: {
441
+ query?: {
442
+ names?: string;
443
+ from?: string;
444
+ to?: string;
445
+ cursor?: string;
446
+ limit?: number;
447
+ };
448
+ header?: never;
449
+ path: {
450
+ id: string;
451
+ };
452
+ cookie?: never;
453
+ };
454
+ requestBody?: never;
455
+ responses: {
456
+ 200: {
457
+ headers: {
458
+ [name: string]: unknown;
459
+ };
460
+ content: {
461
+ "application/json": {
462
+ data: {
463
+ id: string;
464
+ name: string;
465
+ occurred_at: string;
466
+ actor_type: string;
467
+ actor_id: string;
468
+ subject_id: string;
469
+ organization_id: string;
470
+ session_id: string | null;
471
+ ip: string | null;
472
+ user_agent: string | null;
473
+ data: {
474
+ email: string;
475
+ };
476
+ request_id: string | null;
477
+ }[];
478
+ next_cursor: string | null;
479
+ };
480
+ };
481
+ };
482
+ 401: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
488
+ };
489
+ };
490
+ 403: {
491
+ headers: {
492
+ [name: string]: unknown;
493
+ };
494
+ content: {
495
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
496
+ };
497
+ };
498
+ 422: {
499
+ headers: {
500
+ [name: string]: unknown;
501
+ };
502
+ content: {
503
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
504
+ };
505
+ };
506
+ };
507
+ }>;
508
+ pathSerializer?: import("openapi-fetch").PathSerializer;
509
+ parseAs?: import("openapi-fetch").ParseAs;
510
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
511
+ headers?: import("openapi-fetch").HeadersOptions;
512
+ middleware?: import("openapi-fetch").Middleware[];
513
+ } & Omit<RequestInit, "body" | "headers"> & {
514
+ [key: string]: unknown;
515
+ }) => Promise<import("openapi-fetch").FetchResponse<{
516
+ parameters: {
517
+ query?: {
518
+ names?: string;
519
+ from?: string;
520
+ to?: string;
521
+ cursor?: string;
522
+ limit?: number;
523
+ };
524
+ header?: never;
525
+ path: {
526
+ id: string;
527
+ };
528
+ cookie?: never;
529
+ };
530
+ requestBody?: never;
531
+ responses: {
532
+ 200: {
533
+ headers: {
534
+ [name: string]: unknown;
535
+ };
536
+ content: {
537
+ "application/json": {
538
+ data: {
539
+ id: string;
540
+ name: string;
541
+ occurred_at: string;
542
+ actor_type: string;
543
+ actor_id: string;
544
+ subject_id: string;
545
+ organization_id: string;
546
+ session_id: string | null;
547
+ ip: string | null;
548
+ user_agent: string | null;
549
+ data: {
550
+ email: string;
551
+ };
552
+ request_id: string | null;
553
+ }[];
554
+ next_cursor: string | null;
555
+ };
556
+ };
557
+ };
558
+ 401: {
559
+ headers: {
560
+ [name: string]: unknown;
561
+ };
562
+ content: {
563
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
564
+ };
565
+ };
566
+ 403: {
567
+ headers: {
568
+ [name: string]: unknown;
569
+ };
570
+ content: {
571
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
572
+ };
573
+ };
574
+ 422: {
575
+ headers: {
576
+ [name: string]: unknown;
577
+ };
578
+ content: {
579
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
580
+ };
581
+ };
582
+ };
583
+ }, {
584
+ params: {
585
+ query?: {
586
+ names?: string;
587
+ from?: string;
588
+ to?: string;
589
+ cursor?: string;
590
+ limit?: number;
591
+ };
592
+ header?: never;
593
+ path: {
594
+ id: string;
595
+ };
596
+ cookie?: never;
597
+ };
598
+ } & {
599
+ body?: undefined;
600
+ } & {
601
+ baseUrl?: string;
602
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
603
+ parameters: {
604
+ query?: {
605
+ names?: string;
606
+ from?: string;
607
+ to?: string;
608
+ cursor?: string;
609
+ limit?: number;
610
+ };
611
+ header?: never;
612
+ path: {
613
+ id: string;
614
+ };
615
+ cookie?: never;
616
+ };
617
+ requestBody?: never;
618
+ responses: {
619
+ 200: {
620
+ headers: {
621
+ [name: string]: unknown;
622
+ };
623
+ content: {
624
+ "application/json": {
625
+ data: {
626
+ id: string;
627
+ name: string;
628
+ occurred_at: string;
629
+ actor_type: string;
630
+ actor_id: string;
631
+ subject_id: string;
632
+ organization_id: string;
633
+ session_id: string | null;
634
+ ip: string | null;
635
+ user_agent: string | null;
636
+ data: {
637
+ email: string;
638
+ };
639
+ request_id: string | null;
640
+ }[];
641
+ next_cursor: string | null;
642
+ };
643
+ };
644
+ };
645
+ 401: {
646
+ headers: {
647
+ [name: string]: unknown;
648
+ };
649
+ content: {
650
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
651
+ };
652
+ };
653
+ 403: {
654
+ headers: {
655
+ [name: string]: unknown;
656
+ };
657
+ content: {
658
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
659
+ };
660
+ };
661
+ 422: {
662
+ headers: {
663
+ [name: string]: unknown;
664
+ };
665
+ content: {
666
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
667
+ };
668
+ };
669
+ };
670
+ }>;
671
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
672
+ parameters: {
673
+ query?: {
674
+ names?: string;
675
+ from?: string;
676
+ to?: string;
677
+ cursor?: string;
678
+ limit?: number;
679
+ };
680
+ header?: never;
681
+ path: {
682
+ id: string;
683
+ };
684
+ cookie?: never;
685
+ };
686
+ requestBody?: never;
687
+ responses: {
688
+ 200: {
689
+ headers: {
690
+ [name: string]: unknown;
691
+ };
692
+ content: {
693
+ "application/json": {
694
+ data: {
695
+ id: string;
696
+ name: string;
697
+ occurred_at: string;
698
+ actor_type: string;
699
+ actor_id: string;
700
+ subject_id: string;
701
+ organization_id: string;
702
+ session_id: string | null;
703
+ ip: string | null;
704
+ user_agent: string | null;
705
+ data: {
706
+ email: string;
707
+ };
708
+ request_id: string | null;
709
+ }[];
710
+ next_cursor: string | null;
711
+ };
712
+ };
713
+ };
714
+ 401: {
715
+ headers: {
716
+ [name: string]: unknown;
717
+ };
718
+ content: {
719
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
720
+ };
721
+ };
722
+ 403: {
723
+ headers: {
724
+ [name: string]: unknown;
725
+ };
726
+ content: {
727
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
728
+ };
729
+ };
730
+ 422: {
731
+ headers: {
732
+ [name: string]: unknown;
733
+ };
734
+ content: {
735
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
736
+ };
737
+ };
738
+ };
739
+ }>;
740
+ pathSerializer?: import("openapi-fetch").PathSerializer;
741
+ parseAs?: import("openapi-fetch").ParseAs;
742
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
743
+ headers?: import("openapi-fetch").HeadersOptions;
744
+ middleware?: import("openapi-fetch").Middleware[];
745
+ } & Omit<RequestInit, "body" | "headers">, `${string}/${string}`>>;
746
+ /** GET /audit/types: List the audit event names and their descriptions */
747
+ types: (init_0?: ({
748
+ params?: {
749
+ query?: never;
750
+ header?: never;
751
+ path?: never;
752
+ cookie?: never;
753
+ };
754
+ } & {
755
+ body?: undefined;
756
+ } & {
757
+ baseUrl?: string;
758
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
759
+ parameters: {
760
+ query?: never;
761
+ header?: never;
762
+ path?: never;
763
+ cookie?: never;
764
+ };
765
+ requestBody?: never;
766
+ responses: {
767
+ 200: {
768
+ headers: {
769
+ [name: string]: unknown;
770
+ };
771
+ content: {
772
+ "application/json": {
773
+ data: {
774
+ name: string;
775
+ description: string;
776
+ }[];
777
+ };
778
+ };
779
+ };
780
+ 401: {
781
+ headers: {
782
+ [name: string]: unknown;
783
+ };
784
+ content: {
785
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
786
+ };
787
+ };
788
+ };
789
+ }>;
790
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
791
+ parameters: {
792
+ query?: never;
793
+ header?: never;
794
+ path?: never;
795
+ cookie?: never;
796
+ };
797
+ requestBody?: never;
798
+ responses: {
799
+ 200: {
800
+ headers: {
801
+ [name: string]: unknown;
802
+ };
803
+ content: {
804
+ "application/json": {
805
+ data: {
806
+ name: string;
807
+ description: string;
808
+ }[];
809
+ };
810
+ };
811
+ };
812
+ 401: {
813
+ headers: {
814
+ [name: string]: unknown;
815
+ };
816
+ content: {
817
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
818
+ };
819
+ };
820
+ };
821
+ }>;
822
+ pathSerializer?: import("openapi-fetch").PathSerializer;
823
+ parseAs?: import("openapi-fetch").ParseAs;
824
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
825
+ headers?: import("openapi-fetch").HeadersOptions;
826
+ middleware?: import("openapi-fetch").Middleware[];
827
+ } & Omit<RequestInit, "body" | "headers"> & {
828
+ [key: string]: unknown;
829
+ }) | undefined) => Promise<import("openapi-fetch").FetchResponse<{
830
+ parameters: {
831
+ query?: never;
832
+ header?: never;
833
+ path?: never;
834
+ cookie?: never;
835
+ };
836
+ requestBody?: never;
837
+ responses: {
838
+ 200: {
839
+ headers: {
840
+ [name: string]: unknown;
841
+ };
842
+ content: {
843
+ "application/json": {
844
+ data: {
845
+ name: string;
846
+ description: string;
847
+ }[];
848
+ };
849
+ };
850
+ };
851
+ 401: {
852
+ headers: {
853
+ [name: string]: unknown;
854
+ };
855
+ content: {
856
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
857
+ };
858
+ };
859
+ };
860
+ }, ({
861
+ params?: {
862
+ query?: never;
863
+ header?: never;
864
+ path?: never;
865
+ cookie?: never;
866
+ };
867
+ } & {
868
+ body?: undefined;
869
+ } & {
870
+ baseUrl?: string;
871
+ querySerializer?: import("openapi-fetch").QuerySerializerOptions | import("openapi-fetch").QuerySerializer<{
872
+ parameters: {
873
+ query?: never;
874
+ header?: never;
875
+ path?: never;
876
+ cookie?: never;
877
+ };
878
+ requestBody?: never;
879
+ responses: {
880
+ 200: {
881
+ headers: {
882
+ [name: string]: unknown;
883
+ };
884
+ content: {
885
+ "application/json": {
886
+ data: {
887
+ name: string;
888
+ description: string;
889
+ }[];
890
+ };
891
+ };
892
+ };
893
+ 401: {
894
+ headers: {
895
+ [name: string]: unknown;
896
+ };
897
+ content: {
898
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
899
+ };
900
+ };
901
+ };
902
+ }>;
903
+ bodySerializer?: import("openapi-fetch").BodySerializer<{
904
+ parameters: {
905
+ query?: never;
906
+ header?: never;
907
+ path?: never;
908
+ cookie?: never;
909
+ };
910
+ requestBody?: never;
911
+ responses: {
912
+ 200: {
913
+ headers: {
914
+ [name: string]: unknown;
915
+ };
916
+ content: {
917
+ "application/json": {
918
+ data: {
919
+ name: string;
920
+ description: string;
921
+ }[];
922
+ };
923
+ };
924
+ };
925
+ 401: {
926
+ headers: {
927
+ [name: string]: unknown;
928
+ };
929
+ content: {
930
+ "application/problem+json": import("./schema.js").components["schemas"]["Problem"];
931
+ };
932
+ };
933
+ };
934
+ }>;
935
+ pathSerializer?: import("openapi-fetch").PathSerializer;
936
+ parseAs?: import("openapi-fetch").ParseAs;
937
+ fetch?: import("openapi-fetch").ClientOptions["fetch"];
938
+ headers?: import("openapi-fetch").HeadersOptions;
939
+ middleware?: import("openapi-fetch").Middleware[];
940
+ } & Omit<RequestInit, "body" | "headers"> & {
941
+ [key: string]: unknown;
942
+ }) | undefined, `${string}/${string}`>>;
943
+ };
944
+ export type AuditApi = ReturnType<typeof audit>;