@orpc/openapi 1.7.9 → 1.7.11
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.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/plugins/index.d.mts +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.mjs +2 -2
- package/dist/shared/{openapi.C4JezVzx.mjs → openapi.DRqtR2lw.mjs} +1 -1
- package/dist/shared/{openapi.DPAN3GVs.d.mts → openapi.TOD62C7O.d.mts} +1 -1
- package/dist/shared/{openapi.DPAN3GVs.d.ts → openapi.TOD62C7O.d.ts} +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { OpenAPI, AnyContractProcedure } from '@orpc/contract';
|
2
2
|
export { OpenAPI } from '@orpc/contract';
|
3
|
-
export { e as CompositeSchemaConverter, C as ConditionalSchemaConverter, b as OpenAPIGenerator, a as OpenAPIGeneratorGenerateOptions, O as OpenAPIGeneratorOptions, c as SchemaConvertOptions, d as SchemaConverter, S as SchemaConverterComponent } from './shared/openapi.
|
3
|
+
export { e as CompositeSchemaConverter, C as ConditionalSchemaConverter, b as OpenAPIGenerator, a as OpenAPIGeneratorGenerateOptions, O as OpenAPIGeneratorOptions, c as SchemaConvertOptions, d as SchemaConverter, S as SchemaConverterComponent } from './shared/openapi.TOD62C7O.mjs';
|
4
4
|
import { HTTPPath, HTTPMethod } from '@orpc/client';
|
5
|
-
import { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
6
|
-
export { JSONSchema, ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from 'json-schema-typed/draft-2020-12';
|
5
|
+
import { JSONSchema } from '@orpc/json-schema-typed/draft-2020-12';
|
6
|
+
export { JSONSchema, ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from '@orpc/json-schema-typed/draft-2020-12';
|
7
7
|
import { JsonifiedClient } from '@orpc/openapi-client';
|
8
8
|
import { AnyRouter, ClientContext, Lazyable, CreateProcedureClientOptions, InferRouterInitialContext, Schema, ErrorMap, Meta, RouterClient } from '@orpc/server';
|
9
9
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { OpenAPI, AnyContractProcedure } from '@orpc/contract';
|
2
2
|
export { OpenAPI } from '@orpc/contract';
|
3
|
-
export { e as CompositeSchemaConverter, C as ConditionalSchemaConverter, b as OpenAPIGenerator, a as OpenAPIGeneratorGenerateOptions, O as OpenAPIGeneratorOptions, c as SchemaConvertOptions, d as SchemaConverter, S as SchemaConverterComponent } from './shared/openapi.
|
3
|
+
export { e as CompositeSchemaConverter, C as ConditionalSchemaConverter, b as OpenAPIGenerator, a as OpenAPIGeneratorGenerateOptions, O as OpenAPIGeneratorOptions, c as SchemaConvertOptions, d as SchemaConverter, S as SchemaConverterComponent } from './shared/openapi.TOD62C7O.js';
|
4
4
|
import { HTTPPath, HTTPMethod } from '@orpc/client';
|
5
|
-
import { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
6
|
-
export { JSONSchema, ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from 'json-schema-typed/draft-2020-12';
|
5
|
+
import { JSONSchema } from '@orpc/json-schema-typed/draft-2020-12';
|
6
|
+
export { JSONSchema, ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from '@orpc/json-schema-typed/draft-2020-12';
|
7
7
|
import { JsonifiedClient } from '@orpc/openapi-client';
|
8
8
|
import { AnyRouter, ClientContext, Lazyable, CreateProcedureClientOptions, InferRouterInitialContext, Schema, ErrorMap, Meta, RouterClient } from '@orpc/server';
|
9
9
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
package/dist/index.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { c as customOpenAPIOperation } from './shared/openapi.
|
2
|
-
export { C as CompositeSchemaConverter, L as LOGIC_KEYWORDS, O as OpenAPIGenerator, a as applyCustomOpenAPIOperation, n as applySchemaOptionality, h as checkParamsSchema, p as expandArrayableSchema, o as expandUnionSchema, m as filterSchemaBranches, g as getCustomOpenAPIOperation, l as isAnySchema, j as isFileSchema, k as isObjectSchema, q as isPrimitiveSchema, r as resolveOpenAPIJsonSchemaRef, s as separateObjectSchema, d as toOpenAPIContent, e as toOpenAPIEventIteratorContent, b as toOpenAPIMethod, f as toOpenAPIParameters, t as toOpenAPIPath, i as toOpenAPISchema } from './shared/openapi.
|
1
|
+
import { c as customOpenAPIOperation } from './shared/openapi.DRqtR2lw.mjs';
|
2
|
+
export { C as CompositeSchemaConverter, L as LOGIC_KEYWORDS, O as OpenAPIGenerator, a as applyCustomOpenAPIOperation, n as applySchemaOptionality, h as checkParamsSchema, p as expandArrayableSchema, o as expandUnionSchema, m as filterSchemaBranches, g as getCustomOpenAPIOperation, l as isAnySchema, j as isFileSchema, k as isObjectSchema, q as isPrimitiveSchema, r as resolveOpenAPIJsonSchemaRef, s as separateObjectSchema, d as toOpenAPIContent, e as toOpenAPIEventIteratorContent, b as toOpenAPIMethod, f as toOpenAPIParameters, t as toOpenAPIPath, i as toOpenAPISchema } from './shared/openapi.DRqtR2lw.mjs';
|
3
3
|
import { createORPCErrorFromJson } from '@orpc/client';
|
4
4
|
import { StandardOpenAPISerializer, StandardOpenAPIJsonSerializer, StandardBracketNotationSerializer } from '@orpc/openapi-client/standard';
|
5
5
|
import { ORPCError, createRouterClient } from '@orpc/server';
|
6
6
|
import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
7
|
-
export { ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from 'json-schema-typed/draft-2020-12';
|
7
|
+
export { ContentEncoding as JSONSchemaContentEncoding, Format as JSONSchemaFormat, TypeName as JSONSchemaTypeName } from '@orpc/json-schema-typed/draft-2020-12';
|
8
8
|
import '@orpc/client/standard';
|
9
9
|
import '@orpc/contract';
|
10
10
|
|
package/dist/plugins/index.d.mts
CHANGED
@@ -2,9 +2,9 @@ import { OpenAPI } from '@orpc/contract';
|
|
2
2
|
import { Context, HTTPPath, Router } from '@orpc/server';
|
3
3
|
import { StandardHandlerInterceptorOptions, StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
4
4
|
import { Value, Promisable } from '@orpc/shared';
|
5
|
-
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.
|
5
|
+
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.TOD62C7O.mjs';
|
6
6
|
import '@orpc/openapi-client/standard';
|
7
|
-
import 'json-schema-typed/draft-2020-12';
|
7
|
+
import '@orpc/json-schema-typed/draft-2020-12';
|
8
8
|
|
9
9
|
interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGeneratorOptions {
|
10
10
|
/**
|
package/dist/plugins/index.d.ts
CHANGED
@@ -2,9 +2,9 @@ import { OpenAPI } from '@orpc/contract';
|
|
2
2
|
import { Context, HTTPPath, Router } from '@orpc/server';
|
3
3
|
import { StandardHandlerInterceptorOptions, StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard';
|
4
4
|
import { Value, Promisable } from '@orpc/shared';
|
5
|
-
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.
|
5
|
+
import { O as OpenAPIGeneratorOptions, a as OpenAPIGeneratorGenerateOptions } from '../shared/openapi.TOD62C7O.js';
|
6
6
|
import '@orpc/openapi-client/standard';
|
7
|
-
import 'json-schema-typed/draft-2020-12';
|
7
|
+
import '@orpc/json-schema-typed/draft-2020-12';
|
8
8
|
|
9
9
|
interface OpenAPIReferencePluginOptions<T extends Context> extends OpenAPIGeneratorOptions {
|
10
10
|
/**
|
package/dist/plugins/index.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { stringifyJSON, once, value } from '@orpc/shared';
|
2
|
-
import { O as OpenAPIGenerator } from '../shared/openapi.
|
2
|
+
import { O as OpenAPIGenerator } from '../shared/openapi.DRqtR2lw.mjs';
|
3
3
|
import '@orpc/client';
|
4
4
|
import '@orpc/client/standard';
|
5
5
|
import '@orpc/contract';
|
6
6
|
import '@orpc/openapi-client/standard';
|
7
7
|
import '@orpc/server';
|
8
|
-
import 'json-schema-typed/draft-2020-12';
|
8
|
+
import '@orpc/json-schema-typed/draft-2020-12';
|
9
9
|
|
10
10
|
class OpenAPIReferencePlugin {
|
11
11
|
generator;
|
@@ -4,7 +4,7 @@ import { fallbackContractConfig, getEventIteratorSchemaDetails } from '@orpc/con
|
|
4
4
|
import { standardizeHTTPPath, StandardOpenAPIJsonSerializer, getDynamicParams } from '@orpc/openapi-client/standard';
|
5
5
|
import { isProcedure, resolveContractProcedures } from '@orpc/server';
|
6
6
|
import { isObject, stringifyJSON, findDeepMatches, toArray, clone, value } from '@orpc/shared';
|
7
|
-
import { TypeName } from 'json-schema-typed/draft-2020-12';
|
7
|
+
import { TypeName } from '@orpc/json-schema-typed/draft-2020-12';
|
8
8
|
|
9
9
|
const OPERATION_EXTENDER_SYMBOL = Symbol("ORPC_OPERATION_EXTENDER");
|
10
10
|
function customOpenAPIOperation(o, extend) {
|
@@ -2,7 +2,7 @@ import { AnySchema, OpenAPI, AnyContractProcedure, AnyContractRouter } from '@or
|
|
2
2
|
import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
|
3
3
|
import { AnyProcedure, TraverseContractProcedureCallbackOptions, AnyRouter } from '@orpc/server';
|
4
4
|
import { Promisable, Value } from '@orpc/shared';
|
5
|
-
import { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
5
|
+
import { JSONSchema } from '@orpc/json-schema-typed/draft-2020-12';
|
6
6
|
|
7
7
|
interface SchemaConverterComponent {
|
8
8
|
allowedStrategies: readonly SchemaConvertOptions['strategy'][];
|
@@ -2,7 +2,7 @@ import { AnySchema, OpenAPI, AnyContractProcedure, AnyContractRouter } from '@or
|
|
2
2
|
import { StandardOpenAPIJsonSerializerOptions } from '@orpc/openapi-client/standard';
|
3
3
|
import { AnyProcedure, TraverseContractProcedureCallbackOptions, AnyRouter } from '@orpc/server';
|
4
4
|
import { Promisable, Value } from '@orpc/shared';
|
5
|
-
import { JSONSchema } from 'json-schema-typed/draft-2020-12';
|
5
|
+
import { JSONSchema } from '@orpc/json-schema-typed/draft-2020-12';
|
6
6
|
|
7
7
|
interface SchemaConverterComponent {
|
8
8
|
allowedStrategies: readonly SchemaConvertOptions['strategy'][];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/openapi",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.7.
|
4
|
+
"version": "1.7.11",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -49,14 +49,14 @@
|
|
49
49
|
"dist"
|
50
50
|
],
|
51
51
|
"dependencies": {
|
52
|
-
"json-schema-typed": "^8.0.1",
|
53
52
|
"rou3": "^0.7.3",
|
54
|
-
"@orpc/client": "1.7.
|
55
|
-
"@orpc/contract": "1.7.
|
56
|
-
"@orpc/
|
57
|
-
"@orpc/
|
58
|
-
"@orpc/
|
59
|
-
"@orpc/
|
53
|
+
"@orpc/client": "1.7.11",
|
54
|
+
"@orpc/contract": "1.7.11",
|
55
|
+
"@orpc/json-schema-typed": "1.7.11",
|
56
|
+
"@orpc/openapi-client": "1.7.11",
|
57
|
+
"@orpc/server": "1.7.11",
|
58
|
+
"@orpc/shared": "1.7.11",
|
59
|
+
"@orpc/standard-server": "1.7.11"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
62
|
"zod": "^4.0.14"
|