@kubb/plugin-redoc 4.21.2 → 4.22.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.
package/dist/index.d.cts CHANGED
@@ -1,62 +1,9 @@
1
1
  import * as _kubb_core0 from "@kubb/core";
2
2
  import { Output, PluginFactoryOptions } from "@kubb/core";
3
- import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
- import BaseOas from "oas";
5
- import { Operation } from "oas/operation";
6
- import { DiscriminatorObject, OASDocument, SchemaObject } from "oas/types";
3
+ import { Oas } from "@kubb/oas";
7
4
 
8
5
  //#region rolldown:runtime
9
6
  //#endregion
10
- //#region ../oas/src/types.d.ts
11
- type contentType = 'application/json' | (string & {});
12
- type SchemaObject$1 = SchemaObject & {
13
- 'x-nullable'?: boolean;
14
- $ref?: string;
15
- };
16
- type Document = OASDocument;
17
- type Operation$1 = Operation;
18
- type DiscriminatorObject$1 = DiscriminatorObject;
19
- //#endregion
20
- //#region ../oas/src/Oas.d.ts
21
- type OasOptions = {
22
- contentType?: contentType;
23
- discriminator?: 'strict' | 'inherit';
24
- /**
25
- * Resolve name collisions when schemas from different components share the same name (case-insensitive).
26
- * @default false
27
- */
28
- collisionDetection?: boolean;
29
- };
30
- declare class Oas extends BaseOas {
31
- #private;
32
- document: Document;
33
- constructor(document: Document);
34
- setOptions(options: OasOptions): void;
35
- get options(): OasOptions;
36
- get<T = unknown>($ref: string): T | null;
37
- getKey($ref: string): string | undefined;
38
- set($ref: string, value: unknown): false | undefined;
39
- getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
40
- dereferenceWithRef<T = unknown>(schema?: T): T;
41
- getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
42
- getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
43
- getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
44
- validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
45
- flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
46
- /**
47
- * Get schemas from OpenAPI components (schemas, responses, requestBodies).
48
- * Returns schemas in dependency order along with name mapping for collision resolution.
49
- */
50
- getSchemas(options?: {
51
- contentType?: contentType;
52
- includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
53
- collisionDetection?: boolean;
54
- }): {
55
- schemas: Record<string, SchemaObject$1>;
56
- nameMapping: Map<string, string>;
57
- };
58
- }
59
- //#endregion
60
7
  //#region src/types.d.ts
61
8
  type Options = {
62
9
  output?: {
package/dist/index.d.ts CHANGED
@@ -1,61 +1,8 @@
1
1
  import { t as __name } from "./chunk-jHaXqnEa.js";
2
2
  import * as _kubb_core0 from "@kubb/core";
3
3
  import { Output, PluginFactoryOptions } from "@kubb/core";
4
- import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
5
- import BaseOas from "oas";
6
- import { Operation } from "oas/operation";
7
- import { DiscriminatorObject, OASDocument, SchemaObject } from "oas/types";
4
+ import { Oas } from "@kubb/oas";
8
5
 
9
- //#region ../oas/src/types.d.ts
10
- type contentType = 'application/json' | (string & {});
11
- type SchemaObject$1 = SchemaObject & {
12
- 'x-nullable'?: boolean;
13
- $ref?: string;
14
- };
15
- type Document = OASDocument;
16
- type Operation$1 = Operation;
17
- type DiscriminatorObject$1 = DiscriminatorObject;
18
- //#endregion
19
- //#region ../oas/src/Oas.d.ts
20
- type OasOptions = {
21
- contentType?: contentType;
22
- discriminator?: 'strict' | 'inherit';
23
- /**
24
- * Resolve name collisions when schemas from different components share the same name (case-insensitive).
25
- * @default false
26
- */
27
- collisionDetection?: boolean;
28
- };
29
- declare class Oas extends BaseOas {
30
- #private;
31
- document: Document;
32
- constructor(document: Document);
33
- setOptions(options: OasOptions): void;
34
- get options(): OasOptions;
35
- get<T = unknown>($ref: string): T | null;
36
- getKey($ref: string): string | undefined;
37
- set($ref: string, value: unknown): false | undefined;
38
- getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
39
- dereferenceWithRef<T = unknown>(schema?: T): T;
40
- getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
41
- getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
42
- getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
43
- validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
44
- flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
45
- /**
46
- * Get schemas from OpenAPI components (schemas, responses, requestBodies).
47
- * Returns schemas in dependency order along with name mapping for collision resolution.
48
- */
49
- getSchemas(options?: {
50
- contentType?: contentType;
51
- includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
52
- collisionDetection?: boolean;
53
- }): {
54
- schemas: Record<string, SchemaObject$1>;
55
- nameMapping: Map<string, string>;
56
- };
57
- }
58
- //#endregion
59
6
  //#region src/types.d.ts
60
7
  type Options = {
61
8
  output?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-redoc",
3
- "version": "4.21.2",
3
+ "version": "4.22.0",
4
4
  "description": "Redoc documentation generator plugin for Kubb, creating beautiful, interactive API documentation from OpenAPI specifications.",
5
5
  "keywords": [
6
6
  "redoc",
@@ -54,9 +54,9 @@
54
54
  "dependencies": {
55
55
  "@kubb/react-fabric": "0.12.11",
56
56
  "handlebars": "^4.7.8",
57
- "@kubb/core": "4.21.2",
58
- "@kubb/oas": "4.21.2",
59
- "@kubb/plugin-oas": "4.21.2"
57
+ "@kubb/core": "4.22.0",
58
+ "@kubb/oas": "4.22.0",
59
+ "@kubb/plugin-oas": "4.22.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@kubb/react-fabric": "0.12.11"