@orpc/openapi 2.0.0-beta.24 → 2.0.0-beta.25
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/extensions/route.d.mts +1 -1
- package/dist/extensions/route.d.ts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/shared/{openapi.W_GSmPls.d.mts → openapi.BLIDkvGl.d.mts} +5 -0
- package/dist/shared/{openapi.DPcT6OhO.d.ts → openapi.CIWc8Aoj.d.ts} +5 -0
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyORPCError } from '@orpc/client';
|
|
2
2
|
import { ErrorMap, AnySchema } from '@orpc/contract';
|
|
3
3
|
import { Context } from '@orpc/server';
|
|
4
|
-
import { O as OpenAPIMeta } from '../shared/openapi.
|
|
4
|
+
import { O as OpenAPIMeta } from '../shared/openapi.BLIDkvGl.mjs';
|
|
5
5
|
import '@orpc/shared';
|
|
6
6
|
import '@standardserver/core';
|
|
7
7
|
import '../shared/openapi.zfTTuQ4S.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyORPCError } from '@orpc/client';
|
|
2
2
|
import { ErrorMap, AnySchema } from '@orpc/contract';
|
|
3
3
|
import { Context } from '@orpc/server';
|
|
4
|
-
import { O as OpenAPIMeta } from '../shared/openapi.
|
|
4
|
+
import { O as OpenAPIMeta } from '../shared/openapi.CIWc8Aoj.js';
|
|
5
5
|
import '@orpc/shared';
|
|
6
6
|
import '@standardserver/core';
|
|
7
7
|
import '../shared/openapi.zfTTuQ4S.js';
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ export { COMMON_ERROR_STATUS_MAP } from '@orpc/client';
|
|
|
5
5
|
import { RouterContract, RouterContractClient, AnyProcedureContract, ProcedureContract } from '@orpc/contract';
|
|
6
6
|
import { J as JsonifiedClient, O as OpenAPIDocument } from './shared/openapi.zfTTuQ4S.mjs';
|
|
7
7
|
export { a as JsonifiedArray, b as JsonifiedClientError, c as JsonifiedValue, d as OpenAPIOperationObject } from './shared/openapi.zfTTuQ4S.mjs';
|
|
8
|
-
export { a as OpenAPIFunction, O as OpenAPIMeta, b as OpenAPIMetaPlugin, c as OpenAPIMethodMetaPlugin, d as OpenAPIPathMetaPlugin, e as OpenAPIPrefixMetaPlugin, f as OpenAPISpecMetaPlugin, g as getOpenAPIMeta, o as openapi } from './shared/openapi.
|
|
8
|
+
export { a as OpenAPIFunction, O as OpenAPIMeta, b as OpenAPIMetaPlugin, c as OpenAPIMethodMetaPlugin, d as OpenAPIPathMetaPlugin, e as OpenAPIPrefixMetaPlugin, f as OpenAPISpecMetaPlugin, g as getOpenAPIMeta, o as openapi } from './shared/openapi.BLIDkvGl.mjs';
|
|
9
9
|
import { JsonSchema, JsonSchemaConverter } from '@orpc/json-schema';
|
|
10
10
|
import { AnyRouter, AnyProcedure } from '@orpc/server';
|
|
11
11
|
import { Value } from '@orpc/shared';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { COMMON_ERROR_STATUS_MAP } from '@orpc/client';
|
|
|
5
5
|
import { RouterContract, RouterContractClient, AnyProcedureContract, ProcedureContract } from '@orpc/contract';
|
|
6
6
|
import { J as JsonifiedClient, O as OpenAPIDocument } from './shared/openapi.zfTTuQ4S.js';
|
|
7
7
|
export { a as JsonifiedArray, b as JsonifiedClientError, c as JsonifiedValue, d as OpenAPIOperationObject } from './shared/openapi.zfTTuQ4S.js';
|
|
8
|
-
export { a as OpenAPIFunction, O as OpenAPIMeta, b as OpenAPIMetaPlugin, c as OpenAPIMethodMetaPlugin, d as OpenAPIPathMetaPlugin, e as OpenAPIPrefixMetaPlugin, f as OpenAPISpecMetaPlugin, g as getOpenAPIMeta, o as openapi } from './shared/openapi.
|
|
8
|
+
export { a as OpenAPIFunction, O as OpenAPIMeta, b as OpenAPIMetaPlugin, c as OpenAPIMethodMetaPlugin, d as OpenAPIPathMetaPlugin, e as OpenAPIPrefixMetaPlugin, f as OpenAPISpecMetaPlugin, g as getOpenAPIMeta, o as openapi } from './shared/openapi.CIWc8Aoj.js';
|
|
9
9
|
import { JsonSchema, JsonSchemaConverter } from '@orpc/json-schema';
|
|
10
10
|
import { AnyRouter, AnyProcedure } from '@orpc/server';
|
|
11
11
|
import { Value } from '@orpc/shared';
|
|
@@ -314,6 +314,11 @@ interface OpenAPIFunction {
|
|
|
314
314
|
* @see {@link https://orpc.dev/docs/openapi/specification | OpenAPI Specification}
|
|
315
315
|
*/
|
|
316
316
|
declare const openapi: OpenAPIFunction;
|
|
317
|
+
/**
|
|
318
|
+
* Retrieves the OpenAPI metadata attached to a procedure or router, or `undefined` if not set.
|
|
319
|
+
*
|
|
320
|
+
* @see {@link https://orpc.dev/docs/rpc/handler#enabling-the-get-method | RPC Handler - Enabling the GET Method}
|
|
321
|
+
*/
|
|
317
322
|
declare function getOpenAPIMeta(procedureOrLazy: AnyProcedureContract | Lazy<any>): OpenAPIMeta | undefined;
|
|
318
323
|
|
|
319
324
|
export { getOpenAPIMeta as g, openapi as o };
|
|
@@ -314,6 +314,11 @@ interface OpenAPIFunction {
|
|
|
314
314
|
* @see {@link https://orpc.dev/docs/openapi/specification | OpenAPI Specification}
|
|
315
315
|
*/
|
|
316
316
|
declare const openapi: OpenAPIFunction;
|
|
317
|
+
/**
|
|
318
|
+
* Retrieves the OpenAPI metadata attached to a procedure or router, or `undefined` if not set.
|
|
319
|
+
*
|
|
320
|
+
* @see {@link https://orpc.dev/docs/rpc/handler#enabling-the-get-method | RPC Handler - Enabling the GET Method}
|
|
321
|
+
*/
|
|
317
322
|
declare function getOpenAPIMeta(procedureOrLazy: AnyProcedureContract | Lazy<any>): OpenAPIMeta | undefined;
|
|
318
323
|
|
|
319
324
|
export { getOpenAPIMeta as g, openapi as o };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.25",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
"@standardserver/core": "^0.7.1",
|
|
89
89
|
"@standardserver/fetch": "^0.7.1",
|
|
90
90
|
"rou3": "^0.9.1",
|
|
91
|
-
"@orpc/client": "2.0.0-beta.
|
|
92
|
-
"@orpc/
|
|
93
|
-
"@orpc/
|
|
94
|
-
"@orpc/
|
|
95
|
-
"@orpc/
|
|
91
|
+
"@orpc/client": "2.0.0-beta.25",
|
|
92
|
+
"@orpc/json-schema": "2.0.0-beta.25",
|
|
93
|
+
"@orpc/contract": "2.0.0-beta.25",
|
|
94
|
+
"@orpc/shared": "2.0.0-beta.25",
|
|
95
|
+
"@orpc/server": "2.0.0-beta.25"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@scalar/api-reference": "^1.
|
|
98
|
+
"@scalar/api-reference": "^1.64.0",
|
|
99
99
|
"@standardserver/aws-lambda": "^0.7.1",
|
|
100
100
|
"@types/swagger-ui": "^5.32.0",
|
|
101
101
|
"fastify": "^5.11.0",
|