akanjs 2.3.5 → 2.3.6-rc.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,35 @@
1
+ import type { SerializedSignal } from "../types.d.ts";
2
+ type OpenApiSchema = Record<string, unknown>;
3
+ type OpenApiOperation = Record<string, unknown>;
4
+ type OpenApiPathItem = Record<string, OpenApiOperation>;
5
+ export interface OpenApiDocumentOptions {
6
+ title?: string;
7
+ version?: string;
8
+ servers?: {
9
+ url: string;
10
+ description?: string;
11
+ }[];
12
+ description?: string;
13
+ resolveDescription?: (key: string) => string | undefined;
14
+ excludeSignals?: string[];
15
+ includeNonStandardPaths?: boolean;
16
+ }
17
+ export interface OpenApiDocument {
18
+ openapi: "3.1.0";
19
+ info: {
20
+ title: string;
21
+ version: string;
22
+ description?: string;
23
+ };
24
+ servers?: {
25
+ url: string;
26
+ description?: string;
27
+ }[];
28
+ paths: Record<string, OpenApiPathItem>;
29
+ components: {
30
+ schemas: Record<string, OpenApiSchema>;
31
+ securitySchemes?: Record<string, OpenApiSchema>;
32
+ };
33
+ }
34
+ export declare const createOpenApiDocument: (serializedSignal: Record<string, SerializedSignal>, options?: OpenApiDocumentOptions) => OpenApiDocument;
35
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./openapi/index.d.ts";