@orpc/openapi 0.0.0-next.fa8d145 → 0.0.0-next.fb0d07c
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/plugins/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, HTTPPath, Router } from '@orpc/server';
|
|
2
2
|
import { StandardHandlerInterceptorOptions, StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
|
3
|
-
import { Value } from '@orpc/shared';
|
|
3
|
+
import { Value, Promisable } from '@orpc/shared';
|
|
4
4
|
import { OpenAPIV3_1 } from 'openapi-types';
|
|
5
5
|
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.CwdCLgSU.mjs';
|
|
6
6
|
import '@orpc/contract';
|
|
@@ -12,7 +12,7 @@ interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGenera
|
|
|
12
12
|
* Options to pass to the OpenAPI generate.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
specGenerateOptions?: Value<OpenAPIGeneratorGenerateOptions
|
|
15
|
+
specGenerateOptions?: Value<Promisable<OpenAPIGeneratorGenerateOptions>, [StandardHandlerInterceptorOptions<T>]>;
|
|
16
16
|
/**
|
|
17
17
|
* The URL path at which to serve the OpenAPI JSON.
|
|
18
18
|
*
|
|
@@ -30,23 +30,23 @@ interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGenera
|
|
|
30
30
|
*
|
|
31
31
|
* @default 'API Reference'
|
|
32
32
|
*/
|
|
33
|
-
docsTitle?: Value<string
|
|
33
|
+
docsTitle?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
34
34
|
/**
|
|
35
35
|
* Arbitrary configuration object for the UI.
|
|
36
36
|
*/
|
|
37
|
-
docsConfig?: Value<Record<string, unknown
|
|
37
|
+
docsConfig?: Value<Promisable<Record<string, unknown>>, [StandardHandlerInterceptorOptions<T>]>;
|
|
38
38
|
/**
|
|
39
39
|
* HTML to inject into the <head> of the docs page.
|
|
40
40
|
*
|
|
41
41
|
* @default ''
|
|
42
42
|
*/
|
|
43
|
-
docsHead?: Value<string
|
|
43
|
+
docsHead?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
44
44
|
/**
|
|
45
45
|
* URL of the external script bundle for the reference UI.
|
|
46
46
|
*
|
|
47
47
|
* @default 'https://cdn.jsdelivr.net/npm/@scalar/api-reference'
|
|
48
48
|
*/
|
|
49
|
-
docsScriptUrl?: Value<string
|
|
49
|
+
docsScriptUrl?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
50
50
|
/**
|
|
51
51
|
* Override function to generate the full HTML for the docs page.
|
|
52
52
|
*/
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, HTTPPath, Router } from '@orpc/server';
|
|
2
2
|
import { StandardHandlerInterceptorOptions, StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
|
3
|
-
import { Value } from '@orpc/shared';
|
|
3
|
+
import { Value, Promisable } from '@orpc/shared';
|
|
4
4
|
import { OpenAPIV3_1 } from 'openapi-types';
|
|
5
5
|
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.CwdCLgSU.js';
|
|
6
6
|
import '@orpc/contract';
|
|
@@ -12,7 +12,7 @@ interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGenera
|
|
|
12
12
|
* Options to pass to the OpenAPI generate.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
specGenerateOptions?: Value<OpenAPIGeneratorGenerateOptions
|
|
15
|
+
specGenerateOptions?: Value<Promisable<OpenAPIGeneratorGenerateOptions>, [StandardHandlerInterceptorOptions<T>]>;
|
|
16
16
|
/**
|
|
17
17
|
* The URL path at which to serve the OpenAPI JSON.
|
|
18
18
|
*
|
|
@@ -30,23 +30,23 @@ interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGenera
|
|
|
30
30
|
*
|
|
31
31
|
* @default 'API Reference'
|
|
32
32
|
*/
|
|
33
|
-
docsTitle?: Value<string
|
|
33
|
+
docsTitle?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
34
34
|
/**
|
|
35
35
|
* Arbitrary configuration object for the UI.
|
|
36
36
|
*/
|
|
37
|
-
docsConfig?: Value<Record<string, unknown
|
|
37
|
+
docsConfig?: Value<Promisable<Record<string, unknown>>, [StandardHandlerInterceptorOptions<T>]>;
|
|
38
38
|
/**
|
|
39
39
|
* HTML to inject into the <head> of the docs page.
|
|
40
40
|
*
|
|
41
41
|
* @default ''
|
|
42
42
|
*/
|
|
43
|
-
docsHead?: Value<string
|
|
43
|
+
docsHead?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
44
44
|
/**
|
|
45
45
|
* URL of the external script bundle for the reference UI.
|
|
46
46
|
*
|
|
47
47
|
* @default 'https://cdn.jsdelivr.net/npm/@scalar/api-reference'
|
|
48
48
|
*/
|
|
49
|
-
docsScriptUrl?: Value<string
|
|
49
|
+
docsScriptUrl?: Value<Promisable<string>, [StandardHandlerInterceptorOptions<T>]>;
|
|
50
50
|
/**
|
|
51
51
|
* Override function to generate the full HTML for the docs page.
|
|
52
52
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.fb0d07c",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"json-schema-typed": "^8.0.1",
|
|
48
48
|
"openapi-types": "^12.1.3",
|
|
49
49
|
"rou3": "^0.6.0",
|
|
50
|
-
"@orpc/client": "0.0.0-next.
|
|
51
|
-
"@orpc/contract": "0.0.0-next.
|
|
52
|
-
"@orpc/openapi-client": "0.0.0-next.
|
|
53
|
-
"@orpc/
|
|
54
|
-
"@orpc/
|
|
55
|
-
"@orpc/standard-server": "0.0.0-next.
|
|
50
|
+
"@orpc/client": "0.0.0-next.fb0d07c",
|
|
51
|
+
"@orpc/contract": "0.0.0-next.fb0d07c",
|
|
52
|
+
"@orpc/openapi-client": "0.0.0-next.fb0d07c",
|
|
53
|
+
"@orpc/shared": "0.0.0-next.fb0d07c",
|
|
54
|
+
"@orpc/server": "0.0.0-next.fb0d07c",
|
|
55
|
+
"@orpc/standard-server": "0.0.0-next.fb0d07c"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"zod": "3.25.
|
|
58
|
+
"zod": "^3.25.11"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "unbuild",
|