@scalar/openapi-types
Advanced tools
+6
-0
| # @scalar/openapi-types | ||
| ## 0.6.1 | ||
| ### Patch Changes | ||
| - [#8466](https://github.com/scalar/scalar/pull/8466): chore: new build pipeline | ||
| ## 0.6.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,5 +0,1 @@ | ||
| import { isDereferenced } from "./is-dereferenced.js"; | ||
| export { | ||
| isDereferenced | ||
| }; | ||
| //# sourceMappingURL=index.js.map | ||
| export { isDereferenced } from './is-dereferenced.js'; |
@@ -1,5 +0,7 @@ | ||
| const isDereferenced = (obj) => typeof obj === "object" && obj !== null && !("$ref" in obj && typeof obj.$ref === "string"); | ||
| export { | ||
| isDereferenced | ||
| }; | ||
| //# sourceMappingURL=is-dereferenced.js.map | ||
| /** | ||
| * Type guard to check if an object is not a ReferenceObject. | ||
| * A ReferenceObject is defined by having a $ref property that is a string. | ||
| */ | ||
| export const isDereferenced = (obj) => typeof obj === 'object' && | ||
| obj !== null && | ||
| !('$ref' in obj && typeof obj.$ref === 'string'); |
+1
-2
@@ -1,2 +0,1 @@ | ||
| export * from "./openapi-types.js"; | ||
| //# sourceMappingURL=index.js.map | ||
| export * from './openapi-types.js'; |
@@ -1,1 +0,9 @@ | ||
| //# sourceMappingURL=openapi-types.js.map | ||
| /** | ||
| * These types are copied from openapi-types, with two modifications: | ||
| * | ||
| * - all attributes are optional, you can't rely on the specification for user input | ||
| * - extensions (basically any attributes, not only prefixed with an `x-`) are allowed | ||
| * | ||
| * We deal with user input and can't assume they really stick to any official specification. | ||
| */ | ||
| export {}; |
@@ -1,29 +0,32 @@ | ||
| import { z } from "zod"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| const BasePathItemObjectSchema = z.object({ | ||
| /** | ||
| * An optional, string summary, intended to apply to all operations in this path. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used | ||
| * for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * An alternative server array to service all operations in this path. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * A list of parameters that are applicable for all the operations described under this path. These parameters can be | ||
| * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined at the OpenAPI Object's components/parameters. | ||
| */ | ||
| parameters: z.array(ParameterObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { ServerObjectSchema } from './server-object.js'; | ||
| /** | ||
| * Base Path Item Object Schema | ||
| * | ||
| * This helps break circular dependencies between path-item-object and callback-object | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const BasePathItemObjectSchema = z.object({ | ||
| /** | ||
| * An optional, string summary, intended to apply to all operations in this path. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used | ||
| * for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * An alternative server array to service all operations in this path. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * A list of parameters that are applicable for all the operations described under this path. These parameters can be | ||
| * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined at the OpenAPI Object's components/parameters. | ||
| */ | ||
| parameters: z.array(ParameterObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| BasePathItemObjectSchema | ||
| }; | ||
| //# sourceMappingURL=base-path-item-object.js.map |
@@ -1,8 +0,14 @@ | ||
| import { z } from "zod"; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from "./path-item-object-without-callbacks.js"; | ||
| import { RuntimeExpressionSchema } from "./runtime-expression.js"; | ||
| const CallbackObjectSchema = z.record(RuntimeExpressionSchema, PathItemObjectSchemaWithoutCallbacks); | ||
| export { | ||
| CallbackObjectSchema | ||
| }; | ||
| //# sourceMappingURL=callback-object.js.map | ||
| import { z } from 'zod'; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks.js'; | ||
| import { RuntimeExpressionSchema } from './runtime-expression.js'; | ||
| /** | ||
| * Callback Object | ||
| * | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#callback-object | ||
| */ | ||
| export const CallbackObjectSchema = z.record(RuntimeExpressionSchema, PathItemObjectSchemaWithoutCallbacks); |
@@ -1,57 +0,61 @@ | ||
| import { z } from "zod"; | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| import { SecuritySchemeObjectSchema } from "./security-scheme-object.js"; | ||
| const ComponentsObjectSchema = z.object({ | ||
| /** | ||
| * An object to hold reusable Schema Objects. | ||
| */ | ||
| schemas: z.record(z.string(), SchemaObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Response Objects. | ||
| */ | ||
| responses: z.record(z.string(), ResponseObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Parameter Objects. | ||
| */ | ||
| parameters: z.record(z.string(), ParameterObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Example Objects. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Request Body Objects. | ||
| */ | ||
| requestBodies: z.record(z.string(), RequestBodyObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Header Objects. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Security Scheme Objects. | ||
| */ | ||
| securitySchemes: z.record(z.string(), SecuritySchemeObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Link Objects. | ||
| */ | ||
| links: z.record(z.string(), LinkObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Callback Objects. | ||
| */ | ||
| callbacks: z.record(z.string(), CallbackObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Path Item Objects. | ||
| */ | ||
| pathItems: z.record(z.string(), PathItemObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { CallbackObjectSchema } from './callback-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| import { LinkObjectSchema } from './link-object.js'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { PathItemObjectSchema } from './path-item-object.js'; | ||
| import { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| import { ResponseObjectSchema } from './response-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| import { SecuritySchemeObjectSchema } from './security-scheme-object.js'; | ||
| /** | ||
| * Components Object | ||
| * | ||
| * Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object | ||
| * will have no effect on the API unless they are explicitly referenced from outside the Components Object. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#components-object | ||
| */ | ||
| export const ComponentsObjectSchema = z.object({ | ||
| /** | ||
| * An object to hold reusable Schema Objects. | ||
| */ | ||
| schemas: z.record(z.string(), SchemaObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Response Objects. | ||
| */ | ||
| responses: z.record(z.string(), ResponseObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Parameter Objects. | ||
| */ | ||
| parameters: z.record(z.string(), ParameterObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Example Objects. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Request Body Objects. | ||
| */ | ||
| requestBodies: z.record(z.string(), RequestBodyObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Header Objects. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Security Scheme Objects. | ||
| */ | ||
| securitySchemes: z.record(z.string(), SecuritySchemeObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Link Objects. | ||
| */ | ||
| links: z.record(z.string(), LinkObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Callback Objects. | ||
| */ | ||
| callbacks: z.record(z.string(), CallbackObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Path Item Objects. | ||
| */ | ||
| pathItems: z.record(z.string(), PathItemObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ComponentsObjectSchema | ||
| }; | ||
| //# sourceMappingURL=components-object.js.map |
@@ -1,13 +0,16 @@ | ||
| import { z } from "zod"; | ||
| const ContactObjectSchema = z.object({ | ||
| /** The identifying name of the contact person/organization. */ | ||
| name: z.string().optional(), | ||
| /** The URL pointing to the contact information. This MUST be in the form of a URL. */ | ||
| url: z.string().url().optional().catch(void 0), | ||
| /** The email address of the contact person/organization. This MUST be in the form of an email address. */ | ||
| email: z.string().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Contact Object | ||
| * | ||
| * Contact information for the exposed API. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object | ||
| */ | ||
| export const ContactObjectSchema = z.object({ | ||
| /** The identifying name of the contact person/organization. */ | ||
| name: z.string().optional(), | ||
| /** The URL pointing to the contact information. This MUST be in the form of a URL. */ | ||
| url: z.string().url().optional().catch(undefined), | ||
| /** The email address of the contact person/organization. This MUST be in the form of an email address. */ | ||
| email: z.string().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| ContactObjectSchema | ||
| }; | ||
| //# sourceMappingURL=contact-object.js.map |
@@ -1,17 +0,25 @@ | ||
| import { z } from "zod"; | ||
| const DiscriminatorObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The name of the property in the payload that will hold the discriminator value. | ||
| * This property SHOULD be required in the payload schema. | ||
| */ | ||
| propertyName: z.string(), | ||
| /** | ||
| * An object to hold mappings between payload values and schema names or references. | ||
| * Keys MUST be strings, but implementations MAY convert response values to strings for comparison. | ||
| */ | ||
| mapping: z.record(z.string(), z.string()).optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Discriminator Object | ||
| * | ||
| * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a | ||
| * hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and | ||
| * validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named | ||
| * property with alternative schemas. | ||
| * | ||
| * Note that discriminator MUST NOT change the validation outcome of the schema. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#discriminator-object | ||
| */ | ||
| export const DiscriminatorObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The name of the property in the payload that will hold the discriminator value. | ||
| * This property SHOULD be required in the payload schema. | ||
| */ | ||
| propertyName: z.string(), | ||
| /** | ||
| * An object to hold mappings between payload values and schema names or references. | ||
| * Keys MUST be strings, but implementations MAY convert response values to strings for comparison. | ||
| */ | ||
| mapping: z.record(z.string(), z.string()).optional(), | ||
| }); | ||
| export { | ||
| DiscriminatorObjectSchema | ||
| }; | ||
| //# sourceMappingURL=discriminator-object.js.map |
@@ -1,19 +0,27 @@ | ||
| import { z } from "zod"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| const EncodingObjectSchema = z.object({ | ||
| /** | ||
| * The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is | ||
| * either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the | ||
| * property type as shown in the table below. | ||
| */ | ||
| contentType: z.string(), | ||
| /** | ||
| * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be | ||
| * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| /** | ||
| * Encoding Object | ||
| * | ||
| * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting | ||
| * values of various types to string representations. | ||
| * | ||
| * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with | ||
| * application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is | ||
| * implementation-defined. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#encoding-object | ||
| */ | ||
| export const EncodingObjectSchema = z.object({ | ||
| /** | ||
| * The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is | ||
| * either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the | ||
| * property type as shown in the table below. | ||
| */ | ||
| contentType: z.string(), | ||
| /** | ||
| * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be | ||
| * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| EncodingObjectSchema | ||
| }; | ||
| //# sourceMappingURL=encoding-object.js.map |
@@ -1,25 +0,32 @@ | ||
| import { z } from "zod"; | ||
| const ExampleObjectSchema = z.object({ | ||
| /** | ||
| * Short description for the example. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * Long description for the example. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. | ||
| */ | ||
| value: z.any().optional(), | ||
| /** | ||
| * A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be | ||
| * included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules | ||
| * for resolving Relative References. | ||
| */ | ||
| externalValue: z.string().optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Example Object | ||
| * | ||
| * An object grouping an internal or external example value with basic summary and description metadata. This object is | ||
| * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) | ||
| * fields that do not support referencing or metadata. | ||
| * | ||
| * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object | ||
| */ | ||
| export const ExampleObjectSchema = z.object({ | ||
| /** | ||
| * Short description for the example. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * Long description for the example. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. | ||
| */ | ||
| value: z.any().optional(), | ||
| /** | ||
| * A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be | ||
| * included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules | ||
| * for resolving Relative References. | ||
| */ | ||
| externalValue: z.string().optional(), | ||
| }); | ||
| export { | ||
| ExampleObjectSchema | ||
| }; | ||
| //# sourceMappingURL=example-object.js.map |
@@ -1,11 +0,14 @@ | ||
| import { z } from "zod"; | ||
| const ExternalDocumentationObjectSchema = z.object({ | ||
| /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */ | ||
| description: z.string().optional(), | ||
| /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */ | ||
| url: z.string() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * External Documentation Object | ||
| * | ||
| * Allows referencing an external resource for extended documentation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object | ||
| */ | ||
| export const ExternalDocumentationObjectSchema = z.object({ | ||
| /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */ | ||
| description: z.string().optional(), | ||
| /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */ | ||
| url: z.string(), | ||
| }); | ||
| export { | ||
| ExternalDocumentationObjectSchema | ||
| }; | ||
| //# sourceMappingURL=external-documentation-object.js.map |
@@ -1,50 +0,63 @@ | ||
| import { z } from "zod"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const HeaderObjectSchema = z.object({ | ||
| /** | ||
| * A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text | ||
| * representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Determines whether this header is mandatory. The default value is false. | ||
| */ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. | ||
| */ | ||
| deprecated: z.boolean().optional(), | ||
| /** | ||
| * Describes how the parameter value will be serialized. Only "simple" is allowed for headers. | ||
| */ | ||
| style: z.enum(["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]).optional(), | ||
| /** | ||
| * When this is true, parameter values of type array or object generate separate parameters | ||
| * for each value of the array or key-value pair of the map. | ||
| */ | ||
| explode: z.boolean().optional(), | ||
| /** | ||
| * The schema defining the type used for the header. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the parameter's potential value. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. | ||
| * The key is the media type and the value describes it. | ||
| * Only one of content or schema should be specified. | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional() | ||
| import { z } from 'zod'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Header Object | ||
| * | ||
| * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant | ||
| * Response Object and Encoding Object documentation for restrictions on which headers can be described. | ||
| * | ||
| * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy | ||
| * based on whether schema or content is present, with the following changes: | ||
| * | ||
| * - name MUST NOT be specified, it is given in the corresponding headers map. | ||
| * - in MUST NOT be specified, it is implicitly in header. | ||
| * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). | ||
| * This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to | ||
| * "simple". | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object | ||
| */ | ||
| export const HeaderObjectSchema = z.object({ | ||
| /** | ||
| * A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text | ||
| * representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Determines whether this header is mandatory. The default value is false. | ||
| */ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. | ||
| */ | ||
| deprecated: z.boolean().optional(), | ||
| /** | ||
| * Describes how the parameter value will be serialized. Only "simple" is allowed for headers. | ||
| */ | ||
| style: z.enum(['matrix', 'label', 'simple', 'form', 'spaceDelimited', 'pipeDelimited', 'deepObject']).optional(), | ||
| /** | ||
| * When this is true, parameter values of type array or object generate separate parameters | ||
| * for each value of the array or key-value pair of the map. | ||
| */ | ||
| explode: z.boolean().optional(), | ||
| /** | ||
| * The schema defining the type used for the header. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the parameter's potential value. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. | ||
| * The key is the media type and the value describes it. | ||
| * Only one of content or schema should be specified. | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional(), | ||
| }); | ||
| export { | ||
| HeaderObjectSchema | ||
| }; | ||
| //# sourceMappingURL=header-object.js.map |
@@ -1,87 +0,30 @@ | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { ComponentsObjectSchema } from "./components-object.js"; | ||
| import { ContactObjectSchema } from "./contact-object.js"; | ||
| import { DiscriminatorObjectSchema } from "./discriminator-object.js"; | ||
| import { EncodingObjectSchema } from "./encoding-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { InfoObjectSchema } from "./info-object.js"; | ||
| import { LicenseObjectSchema } from "./license-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js"; | ||
| import { OpenApiObjectSchema } from "./openapi-object.js"; | ||
| import { OperationObjectSchema } from "./operation-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| import { PathsObjectSchema } from "./paths-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| import { ResponsesObjectSchema } from "./responses-object.js"; | ||
| import { RuntimeExpressionSchema } from "./runtime-expression.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| import { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| ClientCredentialsFlowSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema, | ||
| PasswordFlowSchema, | ||
| SecuritySchemeObjectSchema | ||
| } from "./security-scheme-object.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| import { ServerVariableObjectSchema } from "./server-variable-object.js"; | ||
| import { TagObjectSchema } from "./tag-object.js"; | ||
| import { WebhooksObjectSchema } from "./webhooks-object.js"; | ||
| import { XmlObjectSchema } from "./xml-object.js"; | ||
| export { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| CallbackObjectSchema, | ||
| ClientCredentialsFlowSchema, | ||
| ComponentsObjectSchema, | ||
| ContactObjectSchema, | ||
| DiscriminatorObjectSchema, | ||
| EncodingObjectSchema, | ||
| ExampleObjectSchema, | ||
| ExternalDocumentationObjectSchema, | ||
| HeaderObjectSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| InfoObjectSchema, | ||
| LicenseObjectSchema, | ||
| LinkObjectSchema, | ||
| MediaTypeObjectSchema, | ||
| MediaTypeObjectSchemaWithoutEncoding, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenApiObjectSchema, | ||
| OpenIdConnectSchema, | ||
| OperationObjectSchema, | ||
| ParameterObjectSchema, | ||
| PasswordFlowSchema, | ||
| PathItemObjectSchema, | ||
| PathsObjectSchema, | ||
| RequestBodyObjectSchema, | ||
| ResponseObjectSchema, | ||
| ResponsesObjectSchema, | ||
| RuntimeExpressionSchema, | ||
| SchemaObjectSchema, | ||
| SecurityRequirementObjectSchema, | ||
| SecuritySchemeObjectSchema, | ||
| ServerObjectSchema, | ||
| ServerVariableObjectSchema, | ||
| TagObjectSchema, | ||
| WebhooksObjectSchema, | ||
| XmlObjectSchema | ||
| }; | ||
| //# sourceMappingURL=index.js.map | ||
| export { CallbackObjectSchema } from './callback-object.js'; | ||
| export { ComponentsObjectSchema } from './components-object.js'; | ||
| export { ContactObjectSchema } from './contact-object.js'; | ||
| export { DiscriminatorObjectSchema } from './discriminator-object.js'; | ||
| export { EncodingObjectSchema } from './encoding-object.js'; | ||
| export { ExampleObjectSchema } from './example-object.js'; | ||
| export { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| export { HeaderObjectSchema } from './header-object.js'; | ||
| export { InfoObjectSchema } from './info-object.js'; | ||
| export { LicenseObjectSchema } from './license-object.js'; | ||
| export { LinkObjectSchema } from './link-object.js'; | ||
| export { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| export { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding.js'; | ||
| export { OpenApiObjectSchema } from './openapi-object.js'; | ||
| export { OperationObjectSchema } from './operation-object.js'; | ||
| export { ParameterObjectSchema } from './parameter-object.js'; | ||
| export { PathItemObjectSchema } from './path-item-object.js'; | ||
| export { PathsObjectSchema } from './paths-object.js'; | ||
| export { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| export { ResponseObjectSchema } from './response-object.js'; | ||
| export { ResponsesObjectSchema } from './responses-object.js'; | ||
| export { RuntimeExpressionSchema } from './runtime-expression.js'; | ||
| export { SchemaObjectSchema } from './schema-object.js'; | ||
| export { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| export { ApiKeyInValues, ApiKeySchema, AuthorizationCodeFlowSchema, ClientCredentialsFlowSchema, HttpSchema, ImplicitFlowSchema, MutualTlsSchema, OAuthFlowObjectSchema, OAuthFlowsObjectSchema, OpenIdConnectSchema, PasswordFlowSchema, SecuritySchemeObjectSchema, } from './security-scheme-object.js'; | ||
| export { ServerObjectSchema } from './server-object.js'; | ||
| export { ServerVariableObjectSchema } from './server-variable-object.js'; | ||
| export { TagObjectSchema } from './tag-object.js'; | ||
| export { WebhooksObjectSchema } from './webhooks-object.js'; | ||
| export { XmlObjectSchema } from './xml-object.js'; |
@@ -1,38 +0,42 @@ | ||
| import { z } from "zod"; | ||
| import { ContactObjectSchema } from "./contact-object.js"; | ||
| import { LicenseObjectSchema } from "./license-object.js"; | ||
| const InfoObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The title of the API. | ||
| */ | ||
| title: z.string().catch("API"), | ||
| /** | ||
| * A short summary of the API. | ||
| */ | ||
| summary: z.string().optional().catch(void 0), | ||
| /** | ||
| * A description of the API. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional().catch(void 0), | ||
| /** | ||
| * A URL to the Terms of Service for the API. This MUST be in the form of a URL. | ||
| */ | ||
| termsOfService: z.string().url().optional().catch(void 0), | ||
| /** | ||
| * The contact information for the exposed API. | ||
| */ | ||
| contact: ContactObjectSchema.optional().catch(void 0), | ||
| /** | ||
| * The license information for the exposed API. | ||
| **/ | ||
| license: LicenseObjectSchema.optional().catch(void 0), | ||
| /** | ||
| * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the | ||
| * version of the API being described or the version of the OpenAPI Description). | ||
| */ | ||
| version: z.string().catch("1.0") | ||
| import { z } from 'zod'; | ||
| import { ContactObjectSchema } from './contact-object.js'; | ||
| import { LicenseObjectSchema } from './license-object.js'; | ||
| /** | ||
| * Info Object | ||
| * | ||
| * The object provides metadata about the API. The metadata MAY be used by the clients if needed, | ||
| * and MAY be presented in editing or documentation generation tools for convenience. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object | ||
| */ | ||
| export const InfoObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The title of the API. | ||
| */ | ||
| title: z.string().catch('API'), | ||
| /** | ||
| * A short summary of the API. | ||
| */ | ||
| summary: z.string().optional().catch(undefined), | ||
| /** | ||
| * A description of the API. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional().catch(undefined), | ||
| /** | ||
| * A URL to the Terms of Service for the API. This MUST be in the form of a URL. | ||
| */ | ||
| termsOfService: z.string().url().optional().catch(undefined), | ||
| /** | ||
| * The contact information for the exposed API. | ||
| */ | ||
| contact: ContactObjectSchema.optional().catch(undefined), | ||
| /** | ||
| * The license information for the exposed API. | ||
| **/ | ||
| license: LicenseObjectSchema.optional().catch(undefined), | ||
| /** | ||
| * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the | ||
| * version of the API being described or the version of the OpenAPI Description). | ||
| */ | ||
| version: z.string().catch('1.0'), | ||
| }); | ||
| export { | ||
| InfoObjectSchema | ||
| }; | ||
| //# sourceMappingURL=info-object.js.map |
@@ -1,15 +0,18 @@ | ||
| import { z } from "zod"; | ||
| const LicenseObjectSchema = z.object({ | ||
| /** REQUIRED. The license name used for the API. */ | ||
| name: z.string().optional().nullable().catch(null), | ||
| /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */ | ||
| identifier: z.string().optional().catch(void 0), | ||
| /** | ||
| * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. | ||
| */ | ||
| url: z.string().url().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| /** | ||
| * License Object | ||
| * | ||
| * License information for the exposed API. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object | ||
| */ | ||
| export const LicenseObjectSchema = z.object({ | ||
| /** REQUIRED. The license name used for the API. */ | ||
| name: z.string().optional().nullable().catch(null), | ||
| /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */ | ||
| identifier: z.string().optional().catch(undefined), | ||
| /** | ||
| * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. | ||
| */ | ||
| url: z.string().url().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| LicenseObjectSchema | ||
| }; | ||
| //# sourceMappingURL=license-object.js.map |
@@ -1,38 +0,49 @@ | ||
| import { z } from "zod"; | ||
| import { RuntimeExpressionSchema } from "./runtime-expression.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| const LinkObjectSchema = z.object({ | ||
| /** | ||
| * A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to | ||
| * an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. | ||
| */ | ||
| operationRef: z.string().optional(), | ||
| /** | ||
| * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually | ||
| * exclusive of the operationRef field. | ||
| */ | ||
| operationId: z.string().optional(), | ||
| /** | ||
| * A map representing parameters to pass to an operation as specified with operationId or identified via | ||
| * operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. | ||
| * path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated | ||
| * and passed to the linked operation. | ||
| */ | ||
| parameters: z.record(z.string(), RuntimeExpressionSchema).optional(), | ||
| /** | ||
| * A literal value or {expression} to use as a request body when calling the target operation. | ||
| */ | ||
| requestBody: RuntimeExpressionSchema.optional(), | ||
| /** | ||
| * A description of the link. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * A server object to be used by the target operation. | ||
| */ | ||
| server: ServerObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { RuntimeExpressionSchema } from './runtime-expression.js'; | ||
| import { ServerObjectSchema } from './server-object.js'; | ||
| /** | ||
| * Link Object | ||
| * | ||
| * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the | ||
| * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between | ||
| * responses and other operations. | ||
| * | ||
| * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link | ||
| * information in the runtime response. | ||
| * | ||
| * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an | ||
| * operation and using them as parameters while invoking the linked operation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object | ||
| */ | ||
| export const LinkObjectSchema = z.object({ | ||
| /** | ||
| * A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to | ||
| * an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. | ||
| */ | ||
| operationRef: z.string().optional(), | ||
| /** | ||
| * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually | ||
| * exclusive of the operationRef field. | ||
| */ | ||
| operationId: z.string().optional(), | ||
| /** | ||
| * A map representing parameters to pass to an operation as specified with operationId or identified via | ||
| * operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. | ||
| * path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated | ||
| * and passed to the linked operation. | ||
| */ | ||
| parameters: z.record(z.string(), RuntimeExpressionSchema).optional(), | ||
| /** | ||
| * A literal value or {expression} to use as a request body when calling the target operation. | ||
| */ | ||
| requestBody: RuntimeExpressionSchema.optional(), | ||
| /** | ||
| * A description of the link. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * A server object to be used by the target operation. | ||
| */ | ||
| server: ServerObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| LinkObjectSchema | ||
| }; | ||
| //# sourceMappingURL=link-object.js.map |
@@ -1,28 +0,31 @@ | ||
| import { z } from "zod"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const MediaTypeObjectSchemaWithoutEncoding = z.object({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional() | ||
| // Note: Don't add `encoding` here. | ||
| // The MediaTypeObjectSchema is used in multiple places. And when it's used in headers, we don't want the encoding. | ||
| // That's what the OpenAPI specification says. | ||
| import { z } from 'zod'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Media Type Object (without encoding) | ||
| * | ||
| * Each Media Type Object provides schema and examples for the media type identified by its key. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object | ||
| */ | ||
| export const MediaTypeObjectSchemaWithoutEncoding = z.object({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| // Note: Don't add `encoding` here. | ||
| // The MediaTypeObjectSchema is used in multiple places. And when it's used in headers, we don't want the encoding. | ||
| // That's what the OpenAPI specification says. | ||
| }); | ||
| export { | ||
| MediaTypeObjectSchemaWithoutEncoding | ||
| }; | ||
| //# sourceMappingURL=media-type-object-without-encoding.js.map |
@@ -1,32 +0,35 @@ | ||
| import { z } from "zod"; | ||
| import { EncodingObjectSchema } from "./encoding-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const MediaTypeObjectSchema = z.object({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map between a property name and its encoding information. The key, being the property name, MUST exist in the | ||
| * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is | ||
| * multipart or application/x-www-form-urlencoded. | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { EncodingObjectSchema } from './encoding-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Media Type Object | ||
| * | ||
| * Each Media Type Object provides schema and examples for the media type identified by its key. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object | ||
| */ | ||
| export const MediaTypeObjectSchema = z.object({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map between a property name and its encoding information. The key, being the property name, MUST exist in the | ||
| * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is | ||
| * multipart or application/x-www-form-urlencoded. | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| MediaTypeObjectSchema | ||
| }; | ||
| //# sourceMappingURL=media-type-object.js.map |
@@ -1,70 +0,73 @@ | ||
| import { z } from "zod"; | ||
| import { ComponentsObjectSchema } from "./components-object.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { InfoObjectSchema } from "./info-object.js"; | ||
| import { PathsObjectSchema } from "./paths-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| import { TagObjectSchema } from "./tag-object.js"; | ||
| import { WebhooksObjectSchema } from "./webhooks-object.js"; | ||
| const OpenApiObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The | ||
| * openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API | ||
| * info.version string. | ||
| */ | ||
| openapi: z.string().regex(/^3\.1\.\d+$/), | ||
| /** | ||
| * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. | ||
| */ | ||
| info: InfoObjectSchema, | ||
| /** | ||
| * The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be | ||
| * in the form of a URI. | ||
| */ | ||
| jsonSchemaDialect: z.string().optional(), | ||
| /** | ||
| * An array of Server Objects, which provide connectivity information to a target server. If the servers field is | ||
| * not provided, or is an empty array, the default value would be a Server Object with a url value of /. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * The available paths and operations for the API. | ||
| */ | ||
| paths: PathsObjectSchema.optional(), | ||
| /** | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, | ||
| * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| */ | ||
| webhooks: WebhooksObjectSchema.optional(), | ||
| /** | ||
| * An element to hold various Objects for the OpenAPI Description. | ||
| */ | ||
| components: ComponentsObjectSchema.optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of values includes alternative | ||
| * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied | ||
| * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to | ||
| * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included | ||
| * in the array. | ||
| */ | ||
| security: z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to | ||
| * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. | ||
| * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list | ||
| * MUST be unique. | ||
| */ | ||
| tags: z.array(TagObjectSchema).optional(), | ||
| /** | ||
| * Additional external documentation. | ||
| */ | ||
| externalDocs: ExternalDocumentationObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { ComponentsObjectSchema } from './components-object.js'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| import { InfoObjectSchema } from './info-object.js'; | ||
| import { PathsObjectSchema } from './paths-object.js'; | ||
| import { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| import { ServerObjectSchema } from './server-object.js'; | ||
| import { TagObjectSchema } from './tag-object.js'; | ||
| import { WebhooksObjectSchema } from './webhooks-object.js'; | ||
| /** | ||
| * OpenAPI Object | ||
| * | ||
| * This is the root object of the OpenAPI Description. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object | ||
| */ | ||
| export const OpenApiObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The | ||
| * openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API | ||
| * info.version string. | ||
| */ | ||
| openapi: z.string().regex(/^3\.1\.\d+$/), | ||
| /** | ||
| * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. | ||
| */ | ||
| info: InfoObjectSchema, | ||
| /** | ||
| * The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be | ||
| * in the form of a URI. | ||
| */ | ||
| jsonSchemaDialect: z.string().optional(), | ||
| /** | ||
| * An array of Server Objects, which provide connectivity information to a target server. If the servers field is | ||
| * not provided, or is an empty array, the default value would be a Server Object with a url value of /. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * The available paths and operations for the API. | ||
| */ | ||
| paths: PathsObjectSchema.optional(), | ||
| /** | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, | ||
| * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| */ | ||
| webhooks: WebhooksObjectSchema.optional(), | ||
| /** | ||
| * An element to hold various Objects for the OpenAPI Description. | ||
| */ | ||
| components: ComponentsObjectSchema.optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of values includes alternative | ||
| * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied | ||
| * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to | ||
| * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included | ||
| * in the array. | ||
| */ | ||
| security: z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to | ||
| * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. | ||
| * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list | ||
| * MUST be unique. | ||
| */ | ||
| tags: z.array(TagObjectSchema).optional(), | ||
| /** | ||
| * Additional external documentation. | ||
| */ | ||
| externalDocs: ExternalDocumentationObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| OpenApiObjectSchema | ||
| }; | ||
| //# sourceMappingURL=openapi-object.js.map |
@@ -1,66 +0,69 @@ | ||
| import { z } from "zod"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| const OperationObjectSchemaWithoutCallbacks = z.object({ | ||
| /** | ||
| * A list of tags for API documentation control. Tags can be used for logical | ||
| * grouping of operations by resources or any other qualifier. | ||
| */ | ||
| "tags": z.string().array().optional(), | ||
| /** | ||
| * A short summary of what the operation does. | ||
| */ | ||
| "summary": z.string().optional(), | ||
| /** | ||
| * A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| "description": z.string().optional(), | ||
| /** | ||
| * External documentation object | ||
| */ | ||
| "externalDocs": ExternalDocumentationObjectSchema.optional(), | ||
| /** | ||
| * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. | ||
| * The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an | ||
| * operation, therefore, it is RECOMMENDED to follow bin common programming naming conventions. | ||
| */ | ||
| "operationId": z.string().optional(), | ||
| /** | ||
| * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, | ||
| * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined in the OpenAPI Object's components.parameters. | ||
| */ | ||
| "parameters": ParameterObjectSchema.array().optional(), | ||
| /** | ||
| * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the | ||
| * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the | ||
| * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined | ||
| * semantics and SHOULD be avoided if possible. | ||
| */ | ||
| "requestBody": RequestBodyObjectSchema.optional(), | ||
| /** | ||
| * The list of possible responses as they are returned from executing this operation. | ||
| */ | ||
| "responses": z.record(z.string(), ResponseObjectSchema).optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of | ||
| * values includes alternative security requirement objects that can be used. Only | ||
| * one of the security requirement objects need to be satisfied to authorize a request. | ||
| * Individual operations can override this definition. To make security optional, an empty | ||
| * security requirement ({}) can be included in the array. | ||
| */ | ||
| "security": z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default | ||
| * value is false. | ||
| */ | ||
| "deprecated": z.boolean().optional() | ||
| import { z } from 'zod'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| import { ResponseObjectSchema } from './response-object.js'; | ||
| import { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| /** | ||
| * Operation Object (without callbacks, used in callbacks) | ||
| * | ||
| * Describes a single API operation on a path. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object | ||
| */ | ||
| export const OperationObjectSchemaWithoutCallbacks = z.object({ | ||
| /** | ||
| * A list of tags for API documentation control. Tags can be used for logical | ||
| * grouping of operations by resources or any other qualifier. | ||
| */ | ||
| 'tags': z.string().array().optional(), | ||
| /** | ||
| * A short summary of what the operation does. | ||
| */ | ||
| 'summary': z.string().optional(), | ||
| /** | ||
| * A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| 'description': z.string().optional(), | ||
| /** | ||
| * External documentation object | ||
| */ | ||
| 'externalDocs': ExternalDocumentationObjectSchema.optional(), | ||
| /** | ||
| * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. | ||
| * The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an | ||
| * operation, therefore, it is RECOMMENDED to follow bin common programming naming conventions. | ||
| */ | ||
| 'operationId': z.string().optional(), | ||
| /** | ||
| * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, | ||
| * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined in the OpenAPI Object's components.parameters. | ||
| */ | ||
| 'parameters': ParameterObjectSchema.array().optional(), | ||
| /** | ||
| * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the | ||
| * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the | ||
| * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined | ||
| * semantics and SHOULD be avoided if possible. | ||
| */ | ||
| 'requestBody': RequestBodyObjectSchema.optional(), | ||
| /** | ||
| * The list of possible responses as they are returned from executing this operation. | ||
| */ | ||
| 'responses': z.record(z.string(), ResponseObjectSchema).optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of | ||
| * values includes alternative security requirement objects that can be used. Only | ||
| * one of the security requirement objects need to be satisfied to authorize a request. | ||
| * Individual operations can override this definition. To make security optional, an empty | ||
| * security requirement ({}) can be included in the array. | ||
| */ | ||
| 'security': z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default | ||
| * value is false. | ||
| */ | ||
| 'deprecated': z.boolean().optional(), | ||
| }); | ||
| export { | ||
| OperationObjectSchemaWithoutCallbacks | ||
| }; | ||
| //# sourceMappingURL=operation-object-without-callbacks.js.map |
@@ -1,16 +0,19 @@ | ||
| import { z } from "zod"; | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js"; | ||
| const OperationObjectSchema = OperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| */ | ||
| "callbacks": z.record(z.string(), CallbackObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { CallbackObjectSchema } from './callback-object.js'; | ||
| import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js'; | ||
| /** | ||
| * Operation Object | ||
| * | ||
| * Describes a single API operation on a path. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object | ||
| */ | ||
| export const OperationObjectSchema = OperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| */ | ||
| 'callbacks': z.record(z.string(), CallbackObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| OperationObjectSchema | ||
| }; | ||
| //# sourceMappingURL=operation-object.js.map |
@@ -1,85 +0,90 @@ | ||
| import { z } from "zod"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const ParameterObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The name of the parameter. Parameter names are case sensitive. | ||
| * | ||
| * - If in is "path", the name field MUST correspond to a template expression occurring within the path field in the | ||
| * Paths Object. See Path Templating for further information. | ||
| * - If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition | ||
| * SHALL be ignored. | ||
| * - For all other cases, the name corresponds to the parameter name used by the in property. | ||
| **/ | ||
| name: z.string(), | ||
| /** | ||
| * REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". | ||
| **/ | ||
| in: z.enum(["query", "header", "path", "cookie"]), | ||
| /** | ||
| * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich | ||
| * text representation. | ||
| **/ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and | ||
| * its value MUST be true. Otherwise, the property MAY be included and its default value is false. | ||
| **/ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. | ||
| **/ | ||
| deprecated: z.boolean().optional(), | ||
| /** | ||
| * Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a | ||
| * parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be | ||
| * serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is | ||
| * likely to be removed in a later revision. | ||
| **/ | ||
| allowEmptyValue: z.boolean().optional(), | ||
| /** | ||
| * Describes how the parameter value will be serialized depending on the type of the parameter value. Default values | ||
| * (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form. | ||
| **/ | ||
| style: z.enum(["matrix", "label", "form", "simple", "spaceDelimited", "pipeDelimited", "deepObject"]).optional(), | ||
| /** | ||
| * When this is true, parameter values of type array or object generate separate parameters for each value of the | ||
| * array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, | ||
| * the default value is true. For all other styles, the default value is false. */ | ||
| explode: z.boolean().optional(), | ||
| /** | ||
| * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= | ||
| * to be included without percent-encoding. This property only applies to parameters with an in value of query. | ||
| * The default value is false. | ||
| **/ | ||
| allowReserved: z.boolean().optional(), | ||
| /** | ||
| * The schema defining the type used for the parameter. | ||
| **/ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the parameter's potential value. The example SHOULD match the specified schema and encoding properties | ||
| * if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema | ||
| * that contains an example, the example value SHALL override the example provided by the schema. To represent | ||
| * examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the | ||
| * example with escaping where necessary. | ||
| **/ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as | ||
| * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore, | ||
| * if referencing a schema that contains an example, the examples value SHALL override the example provided by the | ||
| * schema. | ||
| **/ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. The key is the media type and the value describes it. | ||
| * The map MUST only contain one entry. | ||
| **/ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Parameter Object | ||
| * | ||
| * Describes a single operation parameter. | ||
| * | ||
| * A unique parameter is defined by a combination of a name and location. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object | ||
| */ | ||
| export const ParameterObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The name of the parameter. Parameter names are case sensitive. | ||
| * | ||
| * - If in is "path", the name field MUST correspond to a template expression occurring within the path field in the | ||
| * Paths Object. See Path Templating for further information. | ||
| * - If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition | ||
| * SHALL be ignored. | ||
| * - For all other cases, the name corresponds to the parameter name used by the in property. | ||
| **/ | ||
| name: z.string(), | ||
| /** | ||
| * REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". | ||
| **/ | ||
| in: z.enum(['query', 'header', 'path', 'cookie']), | ||
| /** | ||
| * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich | ||
| * text representation. | ||
| **/ | ||
| description: z.string().optional(), | ||
| /** | ||
| * Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and | ||
| * its value MUST be true. Otherwise, the property MAY be included and its default value is false. | ||
| **/ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. | ||
| **/ | ||
| deprecated: z.boolean().optional(), | ||
| /** | ||
| * Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a | ||
| * parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be | ||
| * serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is | ||
| * likely to be removed in a later revision. | ||
| **/ | ||
| allowEmptyValue: z.boolean().optional(), | ||
| /** | ||
| * Describes how the parameter value will be serialized depending on the type of the parameter value. Default values | ||
| * (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form. | ||
| **/ | ||
| style: z.enum(['matrix', 'label', 'form', 'simple', 'spaceDelimited', 'pipeDelimited', 'deepObject']).optional(), | ||
| /** | ||
| * When this is true, parameter values of type array or object generate separate parameters for each value of the | ||
| * array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, | ||
| * the default value is true. For all other styles, the default value is false. */ | ||
| explode: z.boolean().optional(), | ||
| /** | ||
| * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= | ||
| * to be included without percent-encoding. This property only applies to parameters with an in value of query. | ||
| * The default value is false. | ||
| **/ | ||
| allowReserved: z.boolean().optional(), | ||
| /** | ||
| * The schema defining the type used for the parameter. | ||
| **/ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the parameter's potential value. The example SHOULD match the specified schema and encoding properties | ||
| * if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema | ||
| * that contains an example, the example value SHALL override the example provided by the schema. To represent | ||
| * examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the | ||
| * example with escaping where necessary. | ||
| **/ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as | ||
| * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore, | ||
| * if referencing a schema that contains an example, the examples value SHALL override the example provided by the | ||
| * schema. | ||
| **/ | ||
| examples: z.record(z.string(), ExampleObjectSchema).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. The key is the media type and the value describes it. | ||
| * The map MUST only contain one entry. | ||
| **/ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ParameterObjectSchema | ||
| }; | ||
| //# sourceMappingURL=parameter-object.js.map |
@@ -1,40 +0,45 @@ | ||
| import { BasePathItemObjectSchema } from "./base-path-item-object.js"; | ||
| import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js"; | ||
| const PathItemObjectSchemaWithoutCallbacks = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchemaWithoutCallbacks.optional() | ||
| import { BasePathItemObjectSchema } from './base-path-item-object.js'; | ||
| import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js'; | ||
| /** | ||
| * Path Item Object (without callbacks) | ||
| * | ||
| * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path | ||
| * itself is still exposed to the documentation viewer but they will not know which operations and parameters are | ||
| * available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const PathItemObjectSchemaWithoutCallbacks = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| }); | ||
| export { | ||
| PathItemObjectSchemaWithoutCallbacks | ||
| }; | ||
| //# sourceMappingURL=path-item-object-without-callbacks.js.map |
@@ -1,40 +0,45 @@ | ||
| import { BasePathItemObjectSchema } from "./base-path-item-object.js"; | ||
| import { OperationObjectSchema } from "./operation-object.js"; | ||
| const PathItemObjectSchema = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchema.optional() | ||
| import { BasePathItemObjectSchema } from './base-path-item-object.js'; | ||
| import { OperationObjectSchema } from './operation-object.js'; | ||
| /** | ||
| * Path Item Object | ||
| * | ||
| * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path | ||
| * itself is still exposed to the documentation viewer but they will not know which operations and parameters are | ||
| * available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const PathItemObjectSchema = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| PathItemObjectSchema | ||
| }; | ||
| //# sourceMappingURL=path-item-object.js.map |
@@ -1,17 +0,20 @@ | ||
| import { z } from "zod"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| const PathsObjectSchema = z.record( | ||
| /** | ||
| * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended | ||
| * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full | ||
| * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their | ||
| * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as | ||
| * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. | ||
| */ | ||
| z.string(), | ||
| PathItemObjectSchema | ||
| ); | ||
| export { | ||
| PathsObjectSchema | ||
| }; | ||
| //# sourceMappingURL=paths-object.js.map | ||
| import { z } from 'zod'; | ||
| import { PathItemObjectSchema } from './path-item-object.js'; | ||
| /** | ||
| * Paths Object | ||
| * | ||
| * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the | ||
| * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) | ||
| * constraints. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object | ||
| */ | ||
| export const PathsObjectSchema = z.record( | ||
| /** | ||
| * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended | ||
| * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full | ||
| * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their | ||
| * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as | ||
| * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. | ||
| */ | ||
| z.string(), PathItemObjectSchema); |
@@ -1,27 +0,30 @@ | ||
| import { z } from "zod"; | ||
| import { EncodingObjectSchema } from "./encoding-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| const RequestBodyObjectSchema = z.object({ | ||
| /** | ||
| * A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema), | ||
| /** | ||
| * Determines if the request body is required in the request. Defaults to false. | ||
| */ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Only mentioned in the example: | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { EncodingObjectSchema } from './encoding-object.js'; | ||
| import { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| /** | ||
| * Request Body Object | ||
| * | ||
| * Describes a single request body. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object | ||
| */ | ||
| export const RequestBodyObjectSchema = z.object({ | ||
| /** | ||
| * A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** | ||
| * REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema), | ||
| /** | ||
| * Determines if the request body is required in the request. Defaults to false. | ||
| */ | ||
| required: z.boolean().optional(), | ||
| /** | ||
| * Only mentioned in the example: | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| RequestBodyObjectSchema | ||
| }; | ||
| //# sourceMappingURL=request-body-object.js.map |
@@ -1,30 +0,33 @@ | ||
| import { z } from "zod"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| const ResponseObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string(), | ||
| /** | ||
| * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is | ||
| * defined with the name "Content-Type", it SHALL be ignored. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional(), | ||
| /** | ||
| * A map containing descriptions of potential response payloads. The key is a media type or media type range and the | ||
| * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. | ||
| * "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| /** | ||
| * A map of operations links that can be followed from the response. The key of the map is a short name for the link, | ||
| * following the naming constraints of the names for Component Objects. | ||
| */ | ||
| links: z.record(z.string(), LinkObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| import { LinkObjectSchema } from './link-object.js'; | ||
| import { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| /** | ||
| * Response Object | ||
| * | ||
| * Describes a single response from an API operation, including design-time, static links to operations based on the response. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object | ||
| */ | ||
| export const ResponseObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string(), | ||
| /** | ||
| * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is | ||
| * defined with the name "Content-Type", it SHALL be ignored. | ||
| */ | ||
| headers: z.record(z.string(), HeaderObjectSchema).optional(), | ||
| /** | ||
| * A map containing descriptions of potential response payloads. The key is a media type or media type range and the | ||
| * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. | ||
| * "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| /** | ||
| * A map of operations links that can be followed from the response. The key of the map is a short name for the link, | ||
| * following the naming constraints of the names for Component Objects. | ||
| */ | ||
| links: z.record(z.string(), LinkObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ResponseObjectSchema | ||
| }; | ||
| //# sourceMappingURL=response-object.js.map |
@@ -1,18 +0,28 @@ | ||
| import { z } from "zod"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| const ResponsesObjectSchema = z.record( | ||
| /** | ||
| * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per | ||
| * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks | ||
| * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY | ||
| * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299. | ||
| * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an | ||
| * explicit code, the explicit code definition takes precedence over the range definition for that code. | ||
| */ | ||
| z.string(), | ||
| ResponseObjectSchema | ||
| ); | ||
| export { | ||
| ResponsesObjectSchema | ||
| }; | ||
| //# sourceMappingURL=responses-object.js.map | ||
| import { z } from 'zod'; | ||
| import { ResponseObjectSchema } from './response-object.js'; | ||
| /** | ||
| * Responses Object | ||
| * | ||
| * A container for the expected responses of an operation. The container maps a HTTP response code to the expected | ||
| * response. | ||
| * | ||
| * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known | ||
| * in advance. However, documentation is expected to cover a successful operation response and any known errors. | ||
| * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the | ||
| * Responses Object. | ||
| * | ||
| * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be | ||
| * the response for a successful operation call. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object | ||
| */ | ||
| export const ResponsesObjectSchema = z.record( | ||
| /** | ||
| * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per | ||
| * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks | ||
| * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY | ||
| * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299. | ||
| * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an | ||
| * explicit code, the explicit code definition takes precedence over the range definition for that code. | ||
| */ | ||
| z.string(), ResponseObjectSchema); |
@@ -1,55 +0,87 @@ | ||
| import { z } from "zod"; | ||
| import { z } from 'zod'; | ||
| // Helper for validating the expression syntax | ||
| const isValidRuntimeExpression = (value) => { | ||
| if (value.startsWith("$")) { | ||
| return validatePureExpression(value); | ||
| } | ||
| if (value.includes("{")) { | ||
| const expressions = value.match(/\{([^}]+)\}/g); | ||
| if (!expressions) { | ||
| return false; | ||
| // Handle pure runtime expressions starting with $ | ||
| if (value.startsWith('$')) { | ||
| return validatePureExpression(value); | ||
| } | ||
| return expressions.every((expr) => { | ||
| const innerExpr = expr.slice(1, -1); | ||
| return validatePureExpression(innerExpr); | ||
| }); | ||
| } | ||
| return false; | ||
| // Handle embedded expressions in strings | ||
| if (value.includes('{')) { | ||
| // Extract all expressions within curly braces | ||
| const expressions = value.match(/\{([^}]+)\}/g); | ||
| if (!expressions) { | ||
| return false; | ||
| } | ||
| // Validate each embedded expression | ||
| return expressions.every((expr) => { | ||
| // Remove curly braces and validate the inner expression | ||
| const innerExpr = expr.slice(1, -1); | ||
| return validatePureExpression(innerExpr); | ||
| }); | ||
| } | ||
| return false; | ||
| }; | ||
| // Helper to validate a pure runtime expression (without curly braces) | ||
| const validatePureExpression = (value) => { | ||
| const expression = value.startsWith("$") ? value.slice(1) : value; | ||
| if (["method", "url", "statusCode"].includes(expression)) { | ||
| return true; | ||
| } | ||
| const [mainPart, jsonPointer] = expression.split("#"); | ||
| const [source, type, ...rest] = mainPart?.split(".") ?? []; | ||
| if (!["request", "response"].includes(source ?? "")) { | ||
| return false; | ||
| } | ||
| if (!["header", "query", "path", "body"].includes(type ?? "")) { | ||
| return false; | ||
| } | ||
| if (type === "body") { | ||
| if (jsonPointer === void 0) { | ||
| return false; | ||
| // Remove $ prefix if present | ||
| const expression = value.startsWith('$') ? value.slice(1) : value; | ||
| // Basic expressions without references | ||
| if (['method', 'url', 'statusCode'].includes(expression)) { | ||
| return true; | ||
| } | ||
| if (jsonPointer === "" || jsonPointer === "/") { | ||
| return true; | ||
| // First split on # to separate the JSON pointer if it exists | ||
| const [mainPart, jsonPointer] = expression.split('#'); | ||
| // Request and response references | ||
| const [source, type, ...rest] = mainPart?.split('.') ?? []; | ||
| if (!['request', 'response'].includes(source ?? '')) { | ||
| return false; | ||
| } | ||
| if (!jsonPointer.startsWith("/")) { | ||
| return false; | ||
| if (!['header', 'query', 'path', 'body'].includes(type ?? '')) { | ||
| return false; | ||
| } | ||
| const segments = jsonPointer.slice(1).split("/"); | ||
| return segments.every((segment) => { | ||
| const decoded = segment.replace(/~1/g, "/").replace(/~0/g, "~"); | ||
| return decoded.length > 0; | ||
| }); | ||
| } | ||
| if (type === "header") { | ||
| const headerName = rest.join("."); | ||
| return !headerName.includes(" "); | ||
| } | ||
| return rest.length === 1; | ||
| // For body references, validate JSON pointer syntax | ||
| if (type === 'body') { | ||
| if (jsonPointer === undefined) { | ||
| return false; | ||
| } | ||
| // Empty pointer ('') and root pointer ('/') are valid | ||
| if (jsonPointer === '' || jsonPointer === '/') { | ||
| return true; | ||
| } | ||
| // For other pointers, validate the path | ||
| if (!jsonPointer.startsWith('/')) { | ||
| return false; | ||
| } | ||
| // Split on / and validate each segment | ||
| const segments = jsonPointer.slice(1).split('/'); | ||
| return segments.every((segment) => { | ||
| // Decode any JSON Pointer escape sequences | ||
| const decoded = segment.replace(/~1/g, '/').replace(/~0/g, '~'); | ||
| // Segment must not be empty unless it's the last one | ||
| return decoded.length > 0; | ||
| }); | ||
| } | ||
| // For header references, validate header name | ||
| if (type === 'header') { | ||
| // Header names cannot contain spaces | ||
| const headerName = rest.join('.'); | ||
| return !headerName.includes(' '); | ||
| } | ||
| // For other types (query, path), ensure there's a field name | ||
| return rest.length === 1; | ||
| }; | ||
| const RuntimeExpressionSchema = z.string().refine(isValidRuntimeExpression, { | ||
| message: `Invalid runtime expression. Runtime expressions must: | ||
| /** | ||
| * Runtime Expression Schema | ||
| * | ||
| * Runtime expressions allow defining values based on information that will only be available within the HTTP message in | ||
| * an actual API call. This mechanism is used by Link Objects and Callback Objects. | ||
| * | ||
| * Expressions can be: | ||
| * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id) | ||
| * 2. Embedded expressions in strings using curly braces (e.g. "Hello {$request.body#/name}!") | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions | ||
| */ | ||
| export const RuntimeExpressionSchema = z.string().refine(isValidRuntimeExpression, { | ||
| message: `Invalid runtime expression. Runtime expressions must: | ||
| - Start with $ or contain expressions in curly braces {} | ||
@@ -62,7 +94,3 @@ - Use one of: $method, $url, $statusCode | ||
| - Pure: $method, $request.path.id, $response.body#/status | ||
| - Embedded: "Hello {$request.body#/name}!", "Status: {$statusCode}"` | ||
| - Embedded: "Hello {$request.body#/name}!", "Status: {$statusCode}"`, | ||
| }); | ||
| export { | ||
| RuntimeExpressionSchema | ||
| }; | ||
| //# sourceMappingURL=runtime-expression.js.map |
@@ -1,93 +0,92 @@ | ||
| import { z } from "zod"; | ||
| import { DiscriminatorObjectSchema } from "./discriminator-object.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { XmlObjectSchema } from "./xml-object.js"; | ||
| const SchemaObjectSchema = z.object({ | ||
| // Standard JSON Schema fields | ||
| title: z.string().optional(), | ||
| description: z.string().optional(), | ||
| default: z.any().optional(), | ||
| examples: z.array(z.any()).optional(), | ||
| multipleOf: z.number().optional(), | ||
| maximum: z.number().optional(), | ||
| exclusiveMaximum: z.number().positive().optional(), | ||
| minimum: z.number().optional(), | ||
| exclusiveMinimum: z.number().positive().optional(), | ||
| maxLength: z.number().int().optional(), | ||
| minLength: z.number().int().optional(), | ||
| pattern: z.string().optional(), | ||
| maxItems: z.number().int().optional(), | ||
| minItems: z.number().int().optional(), | ||
| uniqueItems: z.boolean().optional(), | ||
| maxProperties: z.number().int().optional(), | ||
| minProperties: z.number().int().optional(), | ||
| required: z.array(z.string()).optional(), | ||
| enum: z.array(z.any()).optional(), | ||
| type: z.union([ | ||
| z.literal("array"), | ||
| z.literal("boolean"), | ||
| z.literal("integer"), | ||
| z.literal("number"), | ||
| z.literal("object"), | ||
| z.literal("string"), | ||
| z.literal("null"), | ||
| z.array( | ||
| z.union([ | ||
| z.literal("array"), | ||
| z.literal("boolean"), | ||
| z.literal("integer"), | ||
| z.literal("number"), | ||
| z.literal("object"), | ||
| z.literal("string"), | ||
| z.literal("null") | ||
| ]) | ||
| ) | ||
| ]).optional(), | ||
| // JSON Schema fields | ||
| $ref: z.string().optional(), | ||
| $id: z.string().optional(), | ||
| $schema: z.string().optional(), | ||
| $defs: z.record( | ||
| z.string(), | ||
| z.lazy(() => SchemaObjectSchema) | ||
| ).optional(), | ||
| const: z.any().optional(), | ||
| $dynamicRef: z.string().optional(), | ||
| $dynamicAnchor: z.string().optional(), | ||
| // OpenAPI specific fields | ||
| format: z.string().optional(), | ||
| contentMediaType: z.string().optional(), | ||
| contentEncoding: z.string().optional(), | ||
| contentSchema: z.lazy(() => SchemaObjectSchema).optional(), | ||
| deprecated: z.boolean().optional(), | ||
| readOnly: z.boolean().optional(), | ||
| writeOnly: z.boolean().optional(), | ||
| example: z.any().optional(), | ||
| // Object-related fields | ||
| properties: z.record( | ||
| z.string(), | ||
| z.lazy(() => SchemaObjectSchema) | ||
| ).optional(), | ||
| additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema)]).optional(), | ||
| patternProperties: z.record( | ||
| z.string(), | ||
| z.lazy(() => SchemaObjectSchema) | ||
| ).optional(), | ||
| // Array-related fields | ||
| items: z.lazy(() => SchemaObjectSchema).optional(), | ||
| prefixItems: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| // Composition-related fields | ||
| allOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| oneOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| anyOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| not: z.lazy(() => SchemaObjectSchema).optional(), | ||
| // Discriminator (only valid with oneOf, anyOf, or allOf) | ||
| discriminator: DiscriminatorObjectSchema.optional(), | ||
| // Additional metadata | ||
| externalDocs: ExternalDocumentationObjectSchema.optional(), | ||
| xml: XmlObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { DiscriminatorObjectSchema } from './discriminator-object.js'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| import { XmlObjectSchema } from './xml-object.js'; | ||
| /** | ||
| * The Schema Object allows the definition of input and output data types. | ||
| * These types can be objects, but also primitives and arrays. | ||
| */ | ||
| export const SchemaObjectSchema = z.object({ | ||
| // Standard JSON Schema fields | ||
| title: z.string().optional(), | ||
| description: z.string().optional(), | ||
| default: z.any().optional(), | ||
| examples: z.array(z.any()).optional(), | ||
| multipleOf: z.number().optional(), | ||
| maximum: z.number().optional(), | ||
| exclusiveMaximum: z.number().positive().optional(), | ||
| minimum: z.number().optional(), | ||
| exclusiveMinimum: z.number().positive().optional(), | ||
| maxLength: z.number().int().optional(), | ||
| minLength: z.number().int().optional(), | ||
| pattern: z.string().optional(), | ||
| maxItems: z.number().int().optional(), | ||
| minItems: z.number().int().optional(), | ||
| uniqueItems: z.boolean().optional(), | ||
| maxProperties: z.number().int().optional(), | ||
| minProperties: z.number().int().optional(), | ||
| required: z.array(z.string()).optional(), | ||
| enum: z.array(z.any()).optional(), | ||
| type: z | ||
| .union([ | ||
| z.literal('array'), | ||
| z.literal('boolean'), | ||
| z.literal('integer'), | ||
| z.literal('number'), | ||
| z.literal('object'), | ||
| z.literal('string'), | ||
| z.literal('null'), | ||
| z.array(z.union([ | ||
| z.literal('array'), | ||
| z.literal('boolean'), | ||
| z.literal('integer'), | ||
| z.literal('number'), | ||
| z.literal('object'), | ||
| z.literal('string'), | ||
| z.literal('null'), | ||
| ])), | ||
| ]) | ||
| .optional(), | ||
| // JSON Schema fields | ||
| $ref: z.string().optional(), | ||
| $id: z.string().optional(), | ||
| $schema: z.string().optional(), | ||
| $defs: z | ||
| .record(z.string(), z.lazy(() => SchemaObjectSchema)) | ||
| .optional(), | ||
| const: z.any().optional(), | ||
| $dynamicRef: z.string().optional(), | ||
| $dynamicAnchor: z.string().optional(), | ||
| // OpenAPI specific fields | ||
| format: z.string().optional(), | ||
| contentMediaType: z.string().optional(), | ||
| contentEncoding: z.string().optional(), | ||
| contentSchema: z.lazy(() => SchemaObjectSchema).optional(), | ||
| deprecated: z.boolean().optional(), | ||
| readOnly: z.boolean().optional(), | ||
| writeOnly: z.boolean().optional(), | ||
| example: z.any().optional(), | ||
| // Object-related fields | ||
| properties: z | ||
| .record(z.string(), z.lazy(() => SchemaObjectSchema)) | ||
| .optional(), | ||
| additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema)]).optional(), | ||
| patternProperties: z | ||
| .record(z.string(), z.lazy(() => SchemaObjectSchema)) | ||
| .optional(), | ||
| // Array-related fields | ||
| items: z.lazy(() => SchemaObjectSchema).optional(), | ||
| prefixItems: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| // Composition-related fields | ||
| allOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| oneOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| anyOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(), | ||
| not: z.lazy(() => SchemaObjectSchema).optional(), | ||
| // Discriminator (only valid with oneOf, anyOf, or allOf) | ||
| discriminator: DiscriminatorObjectSchema.optional(), | ||
| // Additional metadata | ||
| externalDocs: ExternalDocumentationObjectSchema.optional(), | ||
| xml: XmlObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| SchemaObjectSchema | ||
| }; | ||
| //# sourceMappingURL=schema-object.js.map | ||
| // not used but kept for consistency | ||
| // export type SchemaObject = z.infer<typeof SchemaObjectSchema> |
@@ -1,21 +0,34 @@ | ||
| import { z } from "zod"; | ||
| const SecurityRequirementObjectSchema = z.record( | ||
| /** | ||
| * Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components | ||
| * Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names | ||
| * required for the execution, and the list MAY be empty if authorization does not require a specified scope. | ||
| * | ||
| * For other security scheme types, the array MAY contain a list of role names which are required for the execution, | ||
| * but are not otherwise defined or exchanged in-band. | ||
| **/ | ||
| z.string(), | ||
| /** | ||
| * A list of scope names required for the execution, and the list MAY be empty if authorization does not require a | ||
| * specified scope. | ||
| */ | ||
| z.array(z.string()) | ||
| ); | ||
| export { | ||
| SecurityRequirementObjectSchema | ||
| }; | ||
| //# sourceMappingURL=security-requirement-object.js.map | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Security Requirement Object | ||
| * | ||
| * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a | ||
| * security scheme declared in the Security Schemes under the Components Object. | ||
| * | ||
| * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for | ||
| * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are | ||
| * required to convey security information. | ||
| * | ||
| * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security | ||
| * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This | ||
| * enables support for scenarios where the API allows multiple, independent security schemes. | ||
| * | ||
| * An empty Security Requirement Object ({}) indicates anonymous access is supported. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object | ||
| */ | ||
| export const SecurityRequirementObjectSchema = z.record( | ||
| /** | ||
| * Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components | ||
| * Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names | ||
| * required for the execution, and the list MAY be empty if authorization does not require a specified scope. | ||
| * | ||
| * For other security scheme types, the array MAY contain a list of role names which are required for the execution, | ||
| * but are not otherwise defined or exchanged in-band. | ||
| **/ | ||
| z.string(), | ||
| /** | ||
| * A list of scope names required for the execution, and the list MAY be empty if authorization does not require a | ||
| * specified scope. | ||
| */ | ||
| z.array(z.string())); |
@@ -1,142 +0,167 @@ | ||
| import { z } from "zod"; | ||
| import { z } from 'zod'; | ||
| const DescriptionSchema = z.object({ | ||
| /** | ||
| * A description for security scheme. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional() | ||
| /** | ||
| * A description for security scheme. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| }); | ||
| const ApiKeyInValues = ["query", "header", "cookie"]; | ||
| const ApiKeySchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal("apiKey"), | ||
| /** | ||
| * REQUIRED. The name of the header, query or cookie parameter to be used. | ||
| * | ||
| * TODO: Why do we use an empty string as the default? | ||
| */ | ||
| name: z.string().optional().default(""), | ||
| /** | ||
| * REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". | ||
| */ | ||
| in: z.enum(ApiKeyInValues).optional().default("header").catch("header") | ||
| export const ApiKeyInValues = ['query', 'header', 'cookie']; | ||
| export const ApiKeySchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal('apiKey'), | ||
| /** | ||
| * REQUIRED. The name of the header, query or cookie parameter to be used. | ||
| * | ||
| * TODO: Why do we use an empty string as the default? | ||
| */ | ||
| name: z.string().optional().default(''), | ||
| /** | ||
| * REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". | ||
| */ | ||
| in: z.enum(ApiKeyInValues).optional().default('header').catch('header'), | ||
| }); | ||
| const HttpSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal("http"), | ||
| /** | ||
| * REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. | ||
| * The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, | ||
| * as defined in RFC7235. | ||
| */ | ||
| scheme: z.string().toLowerCase().pipe(z.enum(["basic", "bearer"])).optional().default("basic"), | ||
| /** | ||
| * A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an | ||
| * authorization server, so this information is primarily for documentation purposes. | ||
| */ | ||
| bearerFormat: z.union([z.literal("JWT"), z.literal("bearer"), z.string()]).optional() | ||
| export const HttpSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal('http'), | ||
| /** | ||
| * REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. | ||
| * The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, | ||
| * as defined in RFC7235. | ||
| */ | ||
| scheme: z | ||
| .string() | ||
| .toLowerCase() | ||
| .pipe(z.enum(['basic', 'bearer'])) | ||
| .optional() | ||
| .default('basic'), | ||
| /** | ||
| * A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an | ||
| * authorization server, so this information is primarily for documentation purposes. | ||
| */ | ||
| bearerFormat: z.union([z.literal('JWT'), z.literal('bearer'), z.string()]).optional(), | ||
| }); | ||
| const OpenIdConnectSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal("openIdConnect"), | ||
| /** | ||
| * REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. | ||
| */ | ||
| openIdConnectUrl: z.string().optional().default("") | ||
| export const OpenIdConnectSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal('openIdConnect'), | ||
| /** | ||
| * REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. | ||
| */ | ||
| openIdConnectUrl: z.string().optional().default(''), | ||
| }); | ||
| const authorizationUrl = z.string().default(""); | ||
| const tokenUrl = z.string().default(""); | ||
| const OAuthFlowObjectSchema = z.object({ | ||
| /** | ||
| * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires | ||
| * the use of TLS. | ||
| */ | ||
| refreshUrl: z.string().optional(), | ||
| /** | ||
| * REQUIRED. The available scopes for the OAuth2 security scheme. A map | ||
| * between the scope name and a short description for it. The map MAY be empty. | ||
| */ | ||
| scopes: z.record(z.string(), z.string().optional()).optional().default({}).catch({}) | ||
| /** | ||
| * REQUIRED. The authorization URL to be used for this flow. This MUST be in | ||
| * the form of a URL. The OAuth2 standard requires the use of TLS. | ||
| */ | ||
| const authorizationUrl = z.string().default(''); | ||
| /** | ||
| * REQUIRED. The token URL to be used for this flow. This MUST be in the | ||
| * form of a URL. The OAuth2 standard requires the use of TLS. | ||
| */ | ||
| const tokenUrl = z.string().default(''); | ||
| /** | ||
| * OAuth Flow Object | ||
| * | ||
| * Configuration details for a supported OAuth Flow | ||
| */ | ||
| export const OAuthFlowObjectSchema = z.object({ | ||
| /** | ||
| * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires | ||
| * the use of TLS. | ||
| */ | ||
| refreshUrl: z.string().optional(), | ||
| /** | ||
| * REQUIRED. The available scopes for the OAuth2 security scheme. A map | ||
| * between the scope name and a short description for it. The map MAY be empty. | ||
| */ | ||
| scopes: z.record(z.string(), z.string().optional()).optional().default({}).catch({}), | ||
| }); | ||
| const ImplicitFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal("implicit").optional(), | ||
| authorizationUrl | ||
| export const ImplicitFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal('implicit').optional(), | ||
| authorizationUrl, | ||
| }); | ||
| const PasswordFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal("password").optional(), | ||
| tokenUrl | ||
| export const PasswordFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal('password').optional(), | ||
| tokenUrl, | ||
| }); | ||
| const ClientCredentialsFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal("clientCredentials").optional(), | ||
| tokenUrl | ||
| export const ClientCredentialsFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal('clientCredentials').optional(), | ||
| tokenUrl, | ||
| }); | ||
| const AuthorizationCodeFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal("authorizationCode").optional(), | ||
| authorizationUrl, | ||
| tokenUrl | ||
| export const AuthorizationCodeFlowSchema = OAuthFlowObjectSchema.extend({ | ||
| type: z.literal('authorizationCode').optional(), | ||
| authorizationUrl, | ||
| tokenUrl, | ||
| }); | ||
| const OAuthFlowsObjectSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal("oauth2"), | ||
| /** | ||
| * REQUIRED. An object containing configuration information for the flow types supported. | ||
| */ | ||
| flows: z.object({ | ||
| /** | ||
| * OAuth Flows Object | ||
| * | ||
| * Allows configuration of the supported OAuth Flows. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oauth-flows-object | ||
| */ | ||
| export const OAuthFlowsObjectSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * Configuration for the OAuth Implicit flow | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| implicit: ImplicitFlowSchema.optional(), | ||
| type: z.literal('oauth2'), | ||
| /** | ||
| * Configuration for the OAuth Resource Owner Password flow | ||
| * REQUIRED. An object containing configuration information for the flow types supported. | ||
| */ | ||
| password: PasswordFlowSchema.optional(), | ||
| flows: z | ||
| .object({ | ||
| /** | ||
| * Configuration for the OAuth Implicit flow | ||
| */ | ||
| implicit: ImplicitFlowSchema.optional(), | ||
| /** | ||
| * Configuration for the OAuth Resource Owner Password flow | ||
| */ | ||
| password: PasswordFlowSchema.optional(), | ||
| /** | ||
| * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. | ||
| */ | ||
| clientCredentials: ClientCredentialsFlowSchema.optional(), | ||
| /** | ||
| * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. | ||
| */ | ||
| authorizationCode: AuthorizationCodeFlowSchema.optional(), | ||
| }) | ||
| .partial(), | ||
| }); | ||
| export const MutualTlsSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| clientCredentials: ClientCredentialsFlowSchema.optional(), | ||
| /** | ||
| * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. | ||
| */ | ||
| authorizationCode: AuthorizationCodeFlowSchema.optional() | ||
| }).partial() | ||
| type: z.literal('mutualTLS'), | ||
| }); | ||
| const MutualTlsSchema = DescriptionSchema.extend({ | ||
| /** | ||
| * REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", | ||
| * "openIdConnect". | ||
| */ | ||
| type: z.literal("mutualTLS") | ||
| }); | ||
| const SecuritySchemeObjectSchema = z.union([ | ||
| ApiKeySchema, | ||
| HttpSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema | ||
| /** | ||
| * Security Scheme Object | ||
| * | ||
| * Defines a security scheme that can be used by the operations. | ||
| * | ||
| * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query | ||
| * parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials | ||
| * and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit | ||
| * flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is | ||
| * Authorization Code Grant flow with PKCE. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object | ||
| */ | ||
| export const SecuritySchemeObjectSchema = z.union([ | ||
| ApiKeySchema, | ||
| HttpSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema, | ||
| ]); | ||
| export { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| ClientCredentialsFlowSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema, | ||
| PasswordFlowSchema, | ||
| SecuritySchemeObjectSchema | ||
| }; | ||
| //# sourceMappingURL=security-scheme-object.js.map |
@@ -1,21 +0,24 @@ | ||
| import { z } from "zod"; | ||
| import { ServerVariableObjectSchema } from "./server-variable-object.js"; | ||
| const ServerObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that | ||
| * the host location is relative to the location where the OpenAPI document is being served. Variable substitutions | ||
| * will be made when a variable is named in {brackets}. | ||
| */ | ||
| url: z.string(), | ||
| /** | ||
| * An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text | ||
| * representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */ | ||
| variables: z.record(z.string(), ServerVariableObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { ServerVariableObjectSchema } from './server-variable-object.js'; | ||
| /** | ||
| * Server Object | ||
| * | ||
| * An object representing a Server. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object | ||
| */ | ||
| export const ServerObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that | ||
| * the host location is relative to the location where the OpenAPI document is being served. Variable substitutions | ||
| * will be made when a variable is named in {brackets}. | ||
| */ | ||
| url: z.string(), | ||
| /** | ||
| * An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text | ||
| * representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */ | ||
| variables: z.record(z.string(), ServerVariableObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ServerObjectSchema | ||
| }; | ||
| //# sourceMappingURL=server-object.js.map |
@@ -1,21 +0,24 @@ | ||
| import { z } from "zod"; | ||
| const ServerVariableObjectSchema = z.object({ | ||
| /** | ||
| * An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. | ||
| */ | ||
| enum: z.array(z.string()).optional(), | ||
| /** | ||
| * REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. | ||
| * Note this behavior is different than the Schema Object's treatment of default values, because in those cases | ||
| * parameter values are optional. If the enum is defined, the value MUST exist in the enum's values. | ||
| */ | ||
| default: z.string().optional(), | ||
| /** | ||
| * An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Server Variable Object | ||
| * | ||
| * An object representing a Server Variable for server URL template substitution. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object | ||
| */ | ||
| export const ServerVariableObjectSchema = z.object({ | ||
| /** | ||
| * An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. | ||
| */ | ||
| enum: z.array(z.string()).optional(), | ||
| /** | ||
| * REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. | ||
| * Note this behavior is different than the Schema Object's treatment of default values, because in those cases | ||
| * parameter values are optional. If the enum is defined, the value MUST exist in the enum's values. | ||
| */ | ||
| default: z.string().optional(), | ||
| /** | ||
| * An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. | ||
| */ | ||
| description: z.string().optional(), | ||
| }); | ||
| export { | ||
| ServerVariableObjectSchema | ||
| }; | ||
| //# sourceMappingURL=server-variable-object.js.map |
@@ -1,14 +0,18 @@ | ||
| import { z } from "zod"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| const TagObjectSchema = z.object({ | ||
| /** REQUIRED. The name of the tag. */ | ||
| "name": z.string(), | ||
| /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */ | ||
| "description": z.string().optional().catch(void 0), | ||
| /** Additional external documentation for this tag. */ | ||
| "externalDocs": ExternalDocumentationObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| /** | ||
| * Tag Object | ||
| * | ||
| * Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag | ||
| * defined in the Operation Object instances. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object | ||
| */ | ||
| export const TagObjectSchema = z.object({ | ||
| /** REQUIRED. The name of the tag. */ | ||
| 'name': z.string(), | ||
| /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */ | ||
| 'description': z.string().optional().catch(undefined), | ||
| /** Additional external documentation for this tag. */ | ||
| 'externalDocs': ExternalDocumentationObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| TagObjectSchema | ||
| }; | ||
| //# sourceMappingURL=tag-object.js.map |
@@ -1,7 +0,16 @@ | ||
| import { z } from "zod"; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from "./path-item-object-without-callbacks.js"; | ||
| const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks); | ||
| export { | ||
| WebhooksObjectSchema | ||
| }; | ||
| //# sourceMappingURL=webhooks-object.js.map | ||
| import { z } from 'zod'; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks.js'; | ||
| /** | ||
| * Webhooks Object | ||
| * | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for | ||
| * example by an out of band registration. | ||
| * | ||
| * The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks | ||
| */ | ||
| export const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks); |
@@ -1,30 +0,39 @@ | ||
| import { z } from "zod"; | ||
| const XmlObjectSchema = z.object({ | ||
| /** | ||
| * Replaces the name of the element/attribute used for the described schema property. | ||
| */ | ||
| name: z.string().optional(), | ||
| /** | ||
| * The URI of the namespace definition. Value MUST be in the form of a URL. | ||
| */ | ||
| namespace: z.string().optional(), | ||
| /** | ||
| * The prefix to be used for the name. | ||
| */ | ||
| prefix: z.string().optional(), | ||
| /** | ||
| * Declares whether the property definition translates to an attribute instead of an element. | ||
| * Default value is false. | ||
| */ | ||
| attribute: z.boolean().optional(), | ||
| /** | ||
| * MAY be used only for an array definition. | ||
| * Signifies whether the array is wrapped (for example, <books><book/><book/></books>) | ||
| * or unwrapped (<book/><book/>). Default value is false. | ||
| */ | ||
| wrapped: z.boolean().optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * | ||
| * XML Object | ||
| * | ||
| * A metadata object that allows for more fine-tuned XML model definitions. | ||
| * | ||
| * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used | ||
| * to add that information. See examples for expected behavior. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#xml-object | ||
| */ | ||
| export const XmlObjectSchema = z.object({ | ||
| /** | ||
| * Replaces the name of the element/attribute used for the described schema property. | ||
| */ | ||
| name: z.string().optional(), | ||
| /** | ||
| * The URI of the namespace definition. Value MUST be in the form of a URL. | ||
| */ | ||
| namespace: z.string().optional(), | ||
| /** | ||
| * The prefix to be used for the name. | ||
| */ | ||
| prefix: z.string().optional(), | ||
| /** | ||
| * Declares whether the property definition translates to an attribute instead of an element. | ||
| * Default value is false. | ||
| */ | ||
| attribute: z.boolean().optional(), | ||
| /** | ||
| * MAY be used only for an array definition. | ||
| * Signifies whether the array is wrapped (for example, <books><book/><book/></books>) | ||
| * or unwrapped (<book/><book/>). Default value is false. | ||
| */ | ||
| wrapped: z.boolean().optional(), | ||
| }); | ||
| export { | ||
| XmlObjectSchema | ||
| }; | ||
| //# sourceMappingURL=xml-object.js.map | ||
| // not used but kept for consistency | ||
| // export type XMLObject = z.infer<typeof XmlObjectSchema> |
@@ -1,17 +0,20 @@ | ||
| import { z } from "zod"; | ||
| import { BasePathItemObjectSchema as OriginalBasePathItemObjectSchema } from "../processed/base-path-item-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const BasePathItemObjectSchema = OriginalBasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A list of parameters that are applicable for all the operations described under this path. These parameters can be | ||
| * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined at the OpenAPI Object's components/parameters. | ||
| */ | ||
| parameters: z.array(z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional() | ||
| import { z } from 'zod'; | ||
| import { BasePathItemObjectSchema as OriginalBasePathItemObjectSchema } from '../processed/base-path-item-object.js'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Base Path Item Object Schema | ||
| * | ||
| * This helps break circular dependencies between path-item-object and callback-object | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const BasePathItemObjectSchema = OriginalBasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A list of parameters that are applicable for all the operations described under this path. These parameters can be | ||
| * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined at the OpenAPI Object's components/parameters. | ||
| */ | ||
| parameters: z.array(z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional(), | ||
| }); | ||
| export { | ||
| BasePathItemObjectSchema | ||
| }; | ||
| //# sourceMappingURL=base-path-item-object.js.map |
@@ -1,6 +0,12 @@ | ||
| import { CallbackObjectSchema as OriginalCallbackObjectSchema } from "../processed/callback-object.js"; | ||
| const CallbackObjectSchema = OriginalCallbackObjectSchema; | ||
| export { | ||
| CallbackObjectSchema | ||
| }; | ||
| //# sourceMappingURL=callback-object.js.map | ||
| import { CallbackObjectSchema as OriginalCallbackObjectSchema } from '../processed/callback-object.js'; | ||
| /** | ||
| * Callback Object | ||
| * | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#callback-object | ||
| */ | ||
| export const CallbackObjectSchema = OriginalCallbackObjectSchema; |
@@ -1,59 +0,63 @@ | ||
| import { z } from "zod"; | ||
| import { ComponentsObjectSchema as OriginalComponentsObjectSchema } from "../processed/components-object.js"; | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| import { SecuritySchemeObjectSchema } from "./security-scheme-object.js"; | ||
| const ComponentsObjectSchema = OriginalComponentsObjectSchema.extend({ | ||
| /** | ||
| * An object to hold reusable Schema Objects. | ||
| */ | ||
| schemas: z.record(z.string(), SchemaObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Response Objects. | ||
| */ | ||
| responses: z.record(z.string(), z.union([ReferenceObjectSchema, ResponseObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Parameter Objects. | ||
| */ | ||
| parameters: z.record(z.string(), z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Example Objects. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Request Body Objects. | ||
| */ | ||
| requestBodies: z.record(z.string(), z.union([ReferenceObjectSchema, RequestBodyObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Header Objects. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Security Scheme Objects. | ||
| */ | ||
| securitySchemes: z.record(z.string(), z.union([ReferenceObjectSchema, SecuritySchemeObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Link Objects. | ||
| */ | ||
| links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Callback Objects. | ||
| */ | ||
| callbacks: z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Path Item Objects. | ||
| */ | ||
| pathItems: z.record(z.string(), PathItemObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { ComponentsObjectSchema as OriginalComponentsObjectSchema } from '../processed/components-object.js'; | ||
| import { CallbackObjectSchema } from './callback-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| import { LinkObjectSchema } from './link-object.js'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { PathItemObjectSchema } from './path-item-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| import { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| import { ResponseObjectSchema } from './response-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| import { SecuritySchemeObjectSchema } from './security-scheme-object.js'; | ||
| /** | ||
| * Components Object | ||
| * | ||
| * Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object | ||
| * will have no effect on the API unless they are explicitly referenced from outside the Components Object. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#components-object | ||
| */ | ||
| export const ComponentsObjectSchema = OriginalComponentsObjectSchema.extend({ | ||
| /** | ||
| * An object to hold reusable Schema Objects. | ||
| */ | ||
| schemas: z.record(z.string(), SchemaObjectSchema).optional(), | ||
| /** | ||
| * An object to hold reusable Response Objects. | ||
| */ | ||
| responses: z.record(z.string(), z.union([ReferenceObjectSchema, ResponseObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Parameter Objects. | ||
| */ | ||
| parameters: z.record(z.string(), z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Example Objects. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Request Body Objects. | ||
| */ | ||
| requestBodies: z.record(z.string(), z.union([ReferenceObjectSchema, RequestBodyObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Header Objects. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Security Scheme Objects. | ||
| */ | ||
| securitySchemes: z.record(z.string(), z.union([ReferenceObjectSchema, SecuritySchemeObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Link Objects. | ||
| */ | ||
| links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Callback Objects. | ||
| */ | ||
| callbacks: z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(), | ||
| /** | ||
| * An object to hold reusable Path Item Objects. | ||
| */ | ||
| pathItems: z.record(z.string(), PathItemObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ComponentsObjectSchema | ||
| }; | ||
| //# sourceMappingURL=components-object.js.map |
@@ -1,6 +0,9 @@ | ||
| import { ContactObjectSchema as OriginalContactObjectSchema } from "../processed/contact-object.js"; | ||
| const ContactObjectSchema = OriginalContactObjectSchema; | ||
| export { | ||
| ContactObjectSchema | ||
| }; | ||
| //# sourceMappingURL=contact-object.js.map | ||
| import { ContactObjectSchema as OriginalContactObjectSchema } from '../processed/contact-object.js'; | ||
| /** | ||
| * Contact Object | ||
| * | ||
| * Contact information for the exposed API. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object | ||
| */ | ||
| export const ContactObjectSchema = OriginalContactObjectSchema; |
@@ -1,6 +0,14 @@ | ||
| import { DiscriminatorObjectSchema as OriginalDiscriminatorObjectSchema } from "../processed/discriminator-object.js"; | ||
| const DiscriminatorObjectSchema = OriginalDiscriminatorObjectSchema; | ||
| export { | ||
| DiscriminatorObjectSchema | ||
| }; | ||
| //# sourceMappingURL=discriminator-object.js.map | ||
| import { DiscriminatorObjectSchema as OriginalDiscriminatorObjectSchema } from '../processed/discriminator-object.js'; | ||
| /** | ||
| * Discriminator Object | ||
| * | ||
| * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a | ||
| * hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and | ||
| * validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named | ||
| * property with alternative schemas. | ||
| * | ||
| * Note that discriminator MUST NOT change the validation outcome of the schema. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#discriminator-object | ||
| */ | ||
| export const DiscriminatorObjectSchema = OriginalDiscriminatorObjectSchema; |
@@ -1,15 +0,23 @@ | ||
| import { z } from "zod"; | ||
| import { EncodingObjectSchema as OriginalEncodingObjectSchema } from "../processed/encoding-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const EncodingObjectSchema = OriginalEncodingObjectSchema.extend({ | ||
| /** | ||
| * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be | ||
| * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional() | ||
| import { z } from 'zod'; | ||
| import { EncodingObjectSchema as OriginalEncodingObjectSchema } from '../processed/encoding-object.js'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Encoding Object | ||
| * | ||
| * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting | ||
| * values of various types to string representations. | ||
| * | ||
| * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with | ||
| * application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is | ||
| * implementation-defined. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#encoding-object | ||
| */ | ||
| export const EncodingObjectSchema = OriginalEncodingObjectSchema.extend({ | ||
| /** | ||
| * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be | ||
| * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(), | ||
| }); | ||
| export { | ||
| EncodingObjectSchema | ||
| }; | ||
| //# sourceMappingURL=encoding-object.js.map |
@@ -1,6 +0,13 @@ | ||
| import { ExampleObjectSchema as OriginalExampleObjectSchema } from "../processed/example-object.js"; | ||
| const ExampleObjectSchema = OriginalExampleObjectSchema; | ||
| export { | ||
| ExampleObjectSchema | ||
| }; | ||
| //# sourceMappingURL=example-object.js.map | ||
| import { ExampleObjectSchema as OriginalExampleObjectSchema } from '../processed/example-object.js'; | ||
| /** | ||
| * Example Object | ||
| * | ||
| * An object grouping an internal or external example value with basic summary and description metadata. This object is | ||
| * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) | ||
| * fields that do not support referencing or metadata. | ||
| * | ||
| * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object | ||
| */ | ||
| export const ExampleObjectSchema = OriginalExampleObjectSchema; |
@@ -1,6 +0,9 @@ | ||
| import { ExternalDocumentationObjectSchema as OriginalExternalDocumentationObjectSchema } from "../processed/external-documentation-object.js"; | ||
| const ExternalDocumentationObjectSchema = OriginalExternalDocumentationObjectSchema; | ||
| export { | ||
| ExternalDocumentationObjectSchema | ||
| }; | ||
| //# sourceMappingURL=external-documentation-object.js.map | ||
| import { ExternalDocumentationObjectSchema as OriginalExternalDocumentationObjectSchema } from '../processed/external-documentation-object.js'; | ||
| /** | ||
| * External Documentation Object | ||
| * | ||
| * Allows referencing an external resource for extended documentation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object | ||
| */ | ||
| export const ExternalDocumentationObjectSchema = OriginalExternalDocumentationObjectSchema; |
@@ -1,26 +0,39 @@ | ||
| import { z } from "zod"; | ||
| import { HeaderObjectSchema as OriginalHeaderObjectSchema } from "../processed/header-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const HeaderObjectSchema = OriginalHeaderObjectSchema.extend({ | ||
| /** | ||
| * The schema defining the type used for the header. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. | ||
| * The key is the media type and the value describes it. | ||
| * Only one of content or schema should be specified. | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional() | ||
| import { z } from 'zod'; | ||
| import { HeaderObjectSchema as OriginalHeaderObjectSchema } from '../processed/header-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Header Object | ||
| * | ||
| * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant | ||
| * Response Object and Encoding Object documentation for restrictions on which headers can be described. | ||
| * | ||
| * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy | ||
| * based on whether schema or content is present, with the following changes: | ||
| * | ||
| * - name MUST NOT be specified, it is given in the corresponding headers map. | ||
| * - in MUST NOT be specified, it is implicitly in header. | ||
| * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). | ||
| * This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to | ||
| * "simple". | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object | ||
| */ | ||
| export const HeaderObjectSchema = OriginalHeaderObjectSchema.extend({ | ||
| /** | ||
| * The schema defining the type used for the header. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Examples of the parameter's potential value. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. | ||
| * The key is the media type and the value describes it. | ||
| * Only one of content or schema should be specified. | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional(), | ||
| }); | ||
| export { | ||
| HeaderObjectSchema | ||
| }; | ||
| //# sourceMappingURL=header-object.js.map |
@@ -1,89 +0,31 @@ | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { ComponentsObjectSchema } from "./components-object.js"; | ||
| import { ContactObjectSchema } from "./contact-object.js"; | ||
| import { DiscriminatorObjectSchema } from "./discriminator-object.js"; | ||
| import { EncodingObjectSchema } from "./encoding-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { InfoObjectSchema } from "./info-object.js"; | ||
| import { LicenseObjectSchema } from "./license-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| import { MediaTypeObjectSchemaWithoutEncoding } from "./media-type-object-without-encoding.js"; | ||
| import { OpenApiObjectSchema } from "./openapi-object.js"; | ||
| import { OperationObjectSchema } from "./operation-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| import { PathsObjectSchema } from "./paths-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| import { ResponsesObjectSchema } from "./responses-object.js"; | ||
| import { RuntimeExpressionSchema } from "./runtime-expression.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| import { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| ClientCredentialsFlowSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema, | ||
| PasswordFlowSchema, | ||
| SecuritySchemeObjectSchema | ||
| } from "./security-scheme-object.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| import { ServerVariableObjectSchema } from "./server-variable-object.js"; | ||
| import { TagObjectSchema } from "./tag-object.js"; | ||
| import { WebhooksObjectSchema } from "./webhooks-object.js"; | ||
| import { XmlObjectSchema } from "./xml-object.js"; | ||
| export { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| CallbackObjectSchema, | ||
| ClientCredentialsFlowSchema, | ||
| ComponentsObjectSchema, | ||
| ContactObjectSchema, | ||
| DiscriminatorObjectSchema, | ||
| EncodingObjectSchema, | ||
| ExampleObjectSchema, | ||
| ExternalDocumentationObjectSchema, | ||
| HeaderObjectSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| InfoObjectSchema, | ||
| LicenseObjectSchema, | ||
| LinkObjectSchema, | ||
| MediaTypeObjectSchema, | ||
| MediaTypeObjectSchemaWithoutEncoding, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenApiObjectSchema, | ||
| OpenIdConnectSchema, | ||
| OperationObjectSchema, | ||
| ParameterObjectSchema, | ||
| PasswordFlowSchema, | ||
| PathItemObjectSchema, | ||
| PathsObjectSchema, | ||
| ReferenceObjectSchema, | ||
| RequestBodyObjectSchema, | ||
| ResponseObjectSchema, | ||
| ResponsesObjectSchema, | ||
| RuntimeExpressionSchema, | ||
| SchemaObjectSchema, | ||
| SecurityRequirementObjectSchema, | ||
| SecuritySchemeObjectSchema, | ||
| ServerObjectSchema, | ||
| ServerVariableObjectSchema, | ||
| TagObjectSchema, | ||
| WebhooksObjectSchema, | ||
| XmlObjectSchema | ||
| }; | ||
| //# sourceMappingURL=index.js.map | ||
| export { CallbackObjectSchema } from './callback-object.js'; | ||
| export { ComponentsObjectSchema } from './components-object.js'; | ||
| export { ContactObjectSchema } from './contact-object.js'; | ||
| export { DiscriminatorObjectSchema } from './discriminator-object.js'; | ||
| export { EncodingObjectSchema } from './encoding-object.js'; | ||
| export { ExampleObjectSchema } from './example-object.js'; | ||
| export { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| export { HeaderObjectSchema } from './header-object.js'; | ||
| export { InfoObjectSchema } from './info-object.js'; | ||
| export { LicenseObjectSchema } from './license-object.js'; | ||
| export { LinkObjectSchema } from './link-object.js'; | ||
| export { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| export { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding.js'; | ||
| export { OpenApiObjectSchema } from './openapi-object.js'; | ||
| export { OperationObjectSchema } from './operation-object.js'; | ||
| export { ParameterObjectSchema } from './parameter-object.js'; | ||
| export { PathItemObjectSchema } from './path-item-object.js'; | ||
| export { PathsObjectSchema } from './paths-object.js'; | ||
| export { ReferenceObjectSchema } from './reference-object.js'; | ||
| export { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| export { ResponseObjectSchema } from './response-object.js'; | ||
| export { ResponsesObjectSchema } from './responses-object.js'; | ||
| export { RuntimeExpressionSchema } from './runtime-expression.js'; | ||
| export { SchemaObjectSchema } from './schema-object.js'; | ||
| export { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| export { ApiKeyInValues, ApiKeySchema, AuthorizationCodeFlowSchema, ClientCredentialsFlowSchema, HttpSchema, ImplicitFlowSchema, MutualTlsSchema, OAuthFlowObjectSchema, OAuthFlowsObjectSchema, OpenIdConnectSchema, PasswordFlowSchema, SecuritySchemeObjectSchema, } from './security-scheme-object.js'; | ||
| export { ServerObjectSchema } from './server-object.js'; | ||
| export { ServerVariableObjectSchema } from './server-variable-object.js'; | ||
| export { TagObjectSchema } from './tag-object.js'; | ||
| export { WebhooksObjectSchema } from './webhooks-object.js'; | ||
| export { XmlObjectSchema } from './xml-object.js'; |
@@ -1,6 +0,10 @@ | ||
| import { InfoObjectSchema as OriginalInfoObjectSchema } from "../processed/info-object.js"; | ||
| const InfoObjectSchema = OriginalInfoObjectSchema; | ||
| export { | ||
| InfoObjectSchema | ||
| }; | ||
| //# sourceMappingURL=info-object.js.map | ||
| import { InfoObjectSchema as OriginalInfoObjectSchema } from '../processed/info-object.js'; | ||
| /** | ||
| * Info Object | ||
| * | ||
| * The object provides metadata about the API. The metadata MAY be used by the clients if needed, | ||
| * and MAY be presented in editing or documentation generation tools for convenience. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object | ||
| */ | ||
| export const InfoObjectSchema = OriginalInfoObjectSchema; |
@@ -1,6 +0,9 @@ | ||
| import { LicenseObjectSchema as OriginalLicenseObjectSchema } from "../processed/license-object.js"; | ||
| const LicenseObjectSchema = OriginalLicenseObjectSchema; | ||
| export { | ||
| LicenseObjectSchema | ||
| }; | ||
| //# sourceMappingURL=license-object.js.map | ||
| import { LicenseObjectSchema as OriginalLicenseObjectSchema } from '../processed/license-object.js'; | ||
| /** | ||
| * License Object | ||
| * | ||
| * License information for the exposed API. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object | ||
| */ | ||
| export const LicenseObjectSchema = OriginalLicenseObjectSchema; |
@@ -1,6 +0,17 @@ | ||
| import { LinkObjectSchema as OriginalLinkObjectSchema } from "../processed/link-object.js"; | ||
| const LinkObjectSchema = OriginalLinkObjectSchema; | ||
| export { | ||
| LinkObjectSchema | ||
| }; | ||
| //# sourceMappingURL=link-object.js.map | ||
| import { LinkObjectSchema as OriginalLinkObjectSchema } from '../processed/link-object.js'; | ||
| /** | ||
| * Link Object | ||
| * | ||
| * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the | ||
| * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between | ||
| * responses and other operations. | ||
| * | ||
| * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link | ||
| * information in the runtime response. | ||
| * | ||
| * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an | ||
| * operation and using them as parameters while invoking the linked operation. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object | ||
| */ | ||
| export const LinkObjectSchema = OriginalLinkObjectSchema; |
@@ -1,6 +0,9 @@ | ||
| import { MediaTypeObjectSchemaWithoutEncoding as OriginalMediaTypeObjectSchemaWithoutEncoding } from "../processed/media-type-object-without-encoding.js"; | ||
| const MediaTypeObjectSchemaWithoutEncoding = OriginalMediaTypeObjectSchemaWithoutEncoding; | ||
| export { | ||
| MediaTypeObjectSchemaWithoutEncoding | ||
| }; | ||
| //# sourceMappingURL=media-type-object-without-encoding.js.map | ||
| import { MediaTypeObjectSchemaWithoutEncoding as OriginalMediaTypeObjectSchemaWithoutEncoding } from '../processed/media-type-object-without-encoding.js'; | ||
| /** | ||
| * Media Type Object (without encoding) | ||
| * | ||
| * Each Media Type Object provides schema and examples for the media type identified by its key. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object | ||
| */ | ||
| export const MediaTypeObjectSchemaWithoutEncoding = OriginalMediaTypeObjectSchemaWithoutEncoding; |
@@ -1,34 +0,37 @@ | ||
| import { z } from "zod"; | ||
| import { MediaTypeObjectSchema as OriginalMediaTypeObjectSchema } from "../processed/media-type-object.js"; | ||
| import { EncodingObjectSchema } from "./encoding-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { SchemaObjectSchema } from "./schema-object.js"; | ||
| const MediaTypeObjectSchema = OriginalMediaTypeObjectSchema.extend({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map between a property name and its encoding information. The key, being the property name, MUST exist in the | ||
| * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is | ||
| * multipart or application/x-www-form-urlencoded. | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { MediaTypeObjectSchema as OriginalMediaTypeObjectSchema } from '../processed/media-type-object.js'; | ||
| import { EncodingObjectSchema } from './encoding-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| import { SchemaObjectSchema } from './schema-object.js'; | ||
| /** | ||
| * Media Type Object | ||
| * | ||
| * Each Media Type Object provides schema and examples for the media type identified by its key. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object | ||
| */ | ||
| export const MediaTypeObjectSchema = OriginalMediaTypeObjectSchema.extend({ | ||
| /** | ||
| * The schema defining the content of the request, response, or parameter. | ||
| */ | ||
| schema: SchemaObjectSchema.optional(), | ||
| /** | ||
| * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. | ||
| * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains | ||
| * an example, the example value SHALL override the example provided by the schema. | ||
| */ | ||
| example: z.any().optional(), | ||
| /** | ||
| * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. | ||
| * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains | ||
| * an example, the examples value SHALL override the example provided by the schema. | ||
| */ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map between a property name and its encoding information. The key, being the property name, MUST exist in the | ||
| * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is | ||
| * multipart or application/x-www-form-urlencoded. | ||
| */ | ||
| encoding: z.record(z.string(), EncodingObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| MediaTypeObjectSchema | ||
| }; | ||
| //# sourceMappingURL=media-type-object.js.map |
@@ -1,60 +0,63 @@ | ||
| import { z } from "zod"; | ||
| import { OpenApiObjectSchema as OriginalOpenApiObjectSchema } from "../processed/openapi-object.js"; | ||
| import { ComponentsObjectSchema } from "./components-object.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { InfoObjectSchema } from "./info-object.js"; | ||
| import { PathsObjectSchema } from "./paths-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| import { ServerObjectSchema } from "./server-object.js"; | ||
| import { TagObjectSchema } from "./tag-object.js"; | ||
| import { WebhooksObjectSchema } from "./webhooks-object.js"; | ||
| const OpenApiObjectSchema = OriginalOpenApiObjectSchema.extend({ | ||
| /** | ||
| * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. | ||
| */ | ||
| info: InfoObjectSchema, | ||
| /** | ||
| * An array of Server Objects, which provide connectivity information to a target server. If the servers field is | ||
| * not provided, or is an empty array, the default value would be a Server Object with a url value of /. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * The available paths and operations for the API. | ||
| */ | ||
| paths: PathsObjectSchema.optional(), | ||
| /** | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, | ||
| * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| */ | ||
| webhooks: WebhooksObjectSchema.optional(), | ||
| /** | ||
| * An element to hold various Objects for the OpenAPI Description. | ||
| */ | ||
| components: ComponentsObjectSchema.optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of values includes alternative | ||
| * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied | ||
| * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to | ||
| * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included | ||
| * in the array. | ||
| */ | ||
| security: z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to | ||
| * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. | ||
| * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list | ||
| * MUST be unique. | ||
| */ | ||
| tags: z.array(TagObjectSchema).optional(), | ||
| /** | ||
| * Additional external documentation. | ||
| */ | ||
| externalDocs: ExternalDocumentationObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { OpenApiObjectSchema as OriginalOpenApiObjectSchema } from '../processed/openapi-object.js'; | ||
| import { ComponentsObjectSchema } from './components-object.js'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| import { InfoObjectSchema } from './info-object.js'; | ||
| import { PathsObjectSchema } from './paths-object.js'; | ||
| import { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| import { ServerObjectSchema } from './server-object.js'; | ||
| import { TagObjectSchema } from './tag-object.js'; | ||
| import { WebhooksObjectSchema } from './webhooks-object.js'; | ||
| /** | ||
| * OpenAPI Object | ||
| * | ||
| * This is the root object of the OpenAPI Description. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object | ||
| */ | ||
| export const OpenApiObjectSchema = OriginalOpenApiObjectSchema.extend({ | ||
| /** | ||
| * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. | ||
| */ | ||
| info: InfoObjectSchema, | ||
| /** | ||
| * An array of Server Objects, which provide connectivity information to a target server. If the servers field is | ||
| * not provided, or is an empty array, the default value would be a Server Object with a url value of /. | ||
| */ | ||
| servers: z.array(ServerObjectSchema).optional(), | ||
| /** | ||
| * The available paths and operations for the API. | ||
| */ | ||
| paths: PathsObjectSchema.optional(), | ||
| /** | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, | ||
| * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| */ | ||
| webhooks: WebhooksObjectSchema.optional(), | ||
| /** | ||
| * An element to hold various Objects for the OpenAPI Description. | ||
| */ | ||
| components: ComponentsObjectSchema.optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of values includes alternative | ||
| * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied | ||
| * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to | ||
| * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included | ||
| * in the array. | ||
| */ | ||
| security: z.array(SecurityRequirementObjectSchema).optional(), | ||
| /** | ||
| * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to | ||
| * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. | ||
| * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list | ||
| * MUST be unique. | ||
| */ | ||
| tags: z.array(TagObjectSchema).optional(), | ||
| /** | ||
| * Additional external documentation. | ||
| */ | ||
| externalDocs: ExternalDocumentationObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| OpenApiObjectSchema | ||
| }; | ||
| //# sourceMappingURL=openapi-object.js.map |
@@ -1,39 +0,42 @@ | ||
| import { z } from "zod"; | ||
| import { OperationObjectSchemaWithoutCallbacks as OriginalOperationObjectSchemaWithoutCallbacks } from "../processed/operation-object-without-callbacks.js"; | ||
| import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js"; | ||
| import { ParameterObjectSchema } from "./parameter-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { RequestBodyObjectSchema } from "./request-body-object.js"; | ||
| import { SecurityRequirementObjectSchema } from "./security-requirement-object.js"; | ||
| const OperationObjectSchemaWithoutCallbacks = OriginalOperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * External documentation object | ||
| */ | ||
| "externalDocs": ExternalDocumentationObjectSchema.optional(), | ||
| /** | ||
| * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, | ||
| * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined in the OpenAPI Object's components.parameters. | ||
| */ | ||
| "parameters": z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(), | ||
| /** | ||
| * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the | ||
| * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the | ||
| * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined | ||
| * semantics and SHOULD be avoided if possible. | ||
| */ | ||
| "requestBody": z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of | ||
| * values includes alternative security requirement objects that can be used. Only | ||
| * one of the security requirement objects need to be satisfied to authorize a request. | ||
| * Individual operations can override this definition. To make security optional, an empty | ||
| * security requirement ({}) can be included in the array. | ||
| */ | ||
| "security": z.array(SecurityRequirementObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { OperationObjectSchemaWithoutCallbacks as OriginalOperationObjectSchemaWithoutCallbacks } from '../processed/operation-object-without-callbacks.js'; | ||
| import { ExternalDocumentationObjectSchema } from './external-documentation-object.js'; | ||
| import { ParameterObjectSchema } from './parameter-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| import { RequestBodyObjectSchema } from './request-body-object.js'; | ||
| import { SecurityRequirementObjectSchema } from './security-requirement-object.js'; | ||
| /** | ||
| * Operation Object (without callbacks, used in callbacks) | ||
| * | ||
| * Describes a single API operation on a path. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object | ||
| */ | ||
| export const OperationObjectSchemaWithoutCallbacks = OriginalOperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * External documentation object | ||
| */ | ||
| 'externalDocs': ExternalDocumentationObjectSchema.optional(), | ||
| /** | ||
| * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, | ||
| * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A | ||
| * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link | ||
| * to parameters that are defined in the OpenAPI Object's components.parameters. | ||
| */ | ||
| 'parameters': z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(), | ||
| /** | ||
| * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the | ||
| * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the | ||
| * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined | ||
| * semantics and SHOULD be avoided if possible. | ||
| */ | ||
| 'requestBody': z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(), | ||
| /** | ||
| * A declaration of which security mechanisms can be used across the API. The list of | ||
| * values includes alternative security requirement objects that can be used. Only | ||
| * one of the security requirement objects need to be satisfied to authorize a request. | ||
| * Individual operations can override this definition. To make security optional, an empty | ||
| * security requirement ({}) can be included in the array. | ||
| */ | ||
| 'security': z.array(SecurityRequirementObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| OperationObjectSchemaWithoutCallbacks | ||
| }; | ||
| //# sourceMappingURL=operation-object-without-callbacks.js.map |
@@ -1,17 +0,20 @@ | ||
| import { z } from "zod"; | ||
| import { CallbackObjectSchema } from "./callback-object.js"; | ||
| import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const OperationObjectSchema = OperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| */ | ||
| "callbacks": z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional() | ||
| import { z } from 'zod'; | ||
| import { CallbackObjectSchema } from './callback-object.js'; | ||
| import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Operation Object | ||
| * | ||
| * Describes a single API operation on a path. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object | ||
| */ | ||
| export const OperationObjectSchema = OperationObjectSchemaWithoutCallbacks.extend({ | ||
| /** | ||
| * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a | ||
| * Path Item Object that describes a set of requests that may be initiated by the API provider and the | ||
| * expected responses. The key value used to identify the callback object is an expression, evaluated | ||
| * at runtime, that identifies a URL to be used for the callback operation. | ||
| */ | ||
| 'callbacks': z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(), | ||
| }); | ||
| export { | ||
| OperationObjectSchema | ||
| }; | ||
| //# sourceMappingURL=operation-object.js.map |
@@ -1,23 +0,28 @@ | ||
| import { z } from "zod"; | ||
| import { ParameterObjectSchema as OriginalParameterObjectSchema } from "../processed/parameter-object.js"; | ||
| import { ExampleObjectSchema } from "./example-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const ParameterObjectSchema = OriginalParameterObjectSchema.extend({ | ||
| /** | ||
| * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as | ||
| * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore, | ||
| * if referencing a schema that contains an example, the examples value SHALL override the example provided by the | ||
| * schema. | ||
| **/ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. The key is the media type and the value describes it. | ||
| * The map MUST only contain one entry. | ||
| **/ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional() | ||
| import { z } from 'zod'; | ||
| import { ParameterObjectSchema as OriginalParameterObjectSchema } from '../processed/parameter-object.js'; | ||
| import { ExampleObjectSchema } from './example-object.js'; | ||
| import { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Parameter Object | ||
| * | ||
| * Describes a single operation parameter. | ||
| * | ||
| * A unique parameter is defined by a combination of a name and location. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object | ||
| */ | ||
| export const ParameterObjectSchema = OriginalParameterObjectSchema.extend({ | ||
| /** | ||
| * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as | ||
| * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore, | ||
| * if referencing a schema that contains an example, the examples value SHALL override the example provided by the | ||
| * schema. | ||
| **/ | ||
| examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(), | ||
| /** | ||
| * A map containing the representations for the parameter. The key is the media type and the value describes it. | ||
| * The map MUST only contain one entry. | ||
| **/ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| }); | ||
| export { | ||
| ParameterObjectSchema | ||
| }; | ||
| //# sourceMappingURL=parameter-object.js.map |
@@ -1,40 +0,45 @@ | ||
| import { BasePathItemObjectSchema } from "./base-path-item-object.js"; | ||
| import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js"; | ||
| const PathItemObjectSchemaWithoutCallbacks = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchemaWithoutCallbacks.optional() | ||
| import { BasePathItemObjectSchema } from './base-path-item-object.js'; | ||
| import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js'; | ||
| /** | ||
| * Path Item Object (without callbacks) | ||
| * | ||
| * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path | ||
| * itself is still exposed to the documentation viewer but they will not know which operations and parameters are | ||
| * available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const PathItemObjectSchemaWithoutCallbacks = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchemaWithoutCallbacks.optional(), | ||
| }); | ||
| export { | ||
| PathItemObjectSchemaWithoutCallbacks | ||
| }; | ||
| //# sourceMappingURL=path-item-object-without-callbacks.js.map |
@@ -1,54 +0,59 @@ | ||
| import { z } from "zod"; | ||
| import { BasePathItemObjectSchema } from "./base-path-item-object.js"; | ||
| import { OperationObjectSchema } from "./operation-object.js"; | ||
| const PathItemObjectSchema = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced | ||
| * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined | ||
| * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References. | ||
| * | ||
| * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to | ||
| * bring it into closer alignment with the behavior of the Reference Object. | ||
| * | ||
| * Q: Why don't we just use `ReferenceObjectSchema`? | ||
| * A: References work a little bit different here. It's the only place where they can be combined with other | ||
| * properties. | ||
| */ | ||
| "$ref": z.string().optional(), | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchema.optional() | ||
| import { z } from 'zod'; | ||
| import { BasePathItemObjectSchema } from './base-path-item-object.js'; | ||
| import { OperationObjectSchema } from './operation-object.js'; | ||
| /** | ||
| * Path Item Object | ||
| * | ||
| * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path | ||
| * itself is still exposed to the documentation viewer but they will not know which operations and parameters are | ||
| * available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object | ||
| */ | ||
| export const PathItemObjectSchema = BasePathItemObjectSchema.extend({ | ||
| /** | ||
| * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced | ||
| * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined | ||
| * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References. | ||
| * | ||
| * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to | ||
| * bring it into closer alignment with the behavior of the Reference Object. | ||
| * | ||
| * Q: Why don't we just use `ReferenceObjectSchema`? | ||
| * A: References work a little bit different here. It's the only place where they can be combined with other | ||
| * properties. | ||
| */ | ||
| '$ref': z.string().optional(), | ||
| /** | ||
| * A definition of a GET operation on this path. | ||
| */ | ||
| get: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PUT operation on this path. | ||
| */ | ||
| put: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a POST operation on this path. | ||
| */ | ||
| post: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a DELETE operation on this path. | ||
| */ | ||
| delete: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a OPTIONS operation on this path. | ||
| */ | ||
| options: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a HEAD operation on this path. | ||
| */ | ||
| head: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a PATCH operation on this path. | ||
| */ | ||
| patch: OperationObjectSchema.optional(), | ||
| /** | ||
| * A definition of a TRACE operation on this path. | ||
| */ | ||
| trace: OperationObjectSchema.optional(), | ||
| }); | ||
| export { | ||
| PathItemObjectSchema | ||
| }; | ||
| //# sourceMappingURL=path-item-object.js.map |
@@ -1,18 +0,21 @@ | ||
| import { z } from "zod"; | ||
| import { PathItemObjectSchema } from "./path-item-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const PathsObjectSchema = z.record( | ||
| /** | ||
| * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended | ||
| * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full | ||
| * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their | ||
| * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as | ||
| * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. | ||
| */ | ||
| z.string(), | ||
| z.union([ReferenceObjectSchema, PathItemObjectSchema]) | ||
| ); | ||
| export { | ||
| PathsObjectSchema | ||
| }; | ||
| //# sourceMappingURL=paths-object.js.map | ||
| import { z } from 'zod'; | ||
| import { PathItemObjectSchema } from './path-item-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Paths Object | ||
| * | ||
| * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the | ||
| * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) | ||
| * constraints. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object | ||
| */ | ||
| export const PathsObjectSchema = z.record( | ||
| /** | ||
| * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended | ||
| * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full | ||
| * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their | ||
| * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as | ||
| * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. | ||
| */ | ||
| z.string(), z.union([ReferenceObjectSchema, PathItemObjectSchema])); |
@@ -1,22 +0,27 @@ | ||
| import { z } from "zod"; | ||
| const ReferenceObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The reference identifier. This MUST be in the form of a URI. | ||
| */ | ||
| $ref: z.string(), | ||
| /** | ||
| * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type | ||
| * does not allow a summary field, then this field has no effect. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for | ||
| * rich text representation. If the referenced object-type does not allow a description field, then this field has no | ||
| * effect. | ||
| */ | ||
| description: z.string().optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * Reference Object | ||
| * | ||
| * A simple object to allow referencing other components in the OpenAPI Description, internally and externally. | ||
| * | ||
| * The $ref string value contains a URI RFC3986, which identifies the value being referenced. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#reference-object | ||
| */ | ||
| export const ReferenceObjectSchema = z.object({ | ||
| /** | ||
| * REQUIRED. The reference identifier. This MUST be in the form of a URI. | ||
| */ | ||
| $ref: z.string(), | ||
| /** | ||
| * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type | ||
| * does not allow a summary field, then this field has no effect. | ||
| */ | ||
| summary: z.string().optional(), | ||
| /** | ||
| * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for | ||
| * rich text representation. If the referenced object-type does not allow a description field, then this field has no | ||
| * effect. | ||
| */ | ||
| description: z.string().optional(), | ||
| }); | ||
| export { | ||
| ReferenceObjectSchema | ||
| }; | ||
| //# sourceMappingURL=reference-object.js.map |
@@ -1,6 +0,9 @@ | ||
| import { RequestBodyObjectSchema as OriginalRequestBodyObjectSchema } from "../processed/request-body-object.js"; | ||
| const RequestBodyObjectSchema = OriginalRequestBodyObjectSchema; | ||
| export { | ||
| RequestBodyObjectSchema | ||
| }; | ||
| //# sourceMappingURL=request-body-object.js.map | ||
| import { RequestBodyObjectSchema as OriginalRequestBodyObjectSchema } from '../processed/request-body-object.js'; | ||
| /** | ||
| * Request Body Object | ||
| * | ||
| * Describes a single request body. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object | ||
| */ | ||
| export const RequestBodyObjectSchema = OriginalRequestBodyObjectSchema; |
@@ -1,28 +0,31 @@ | ||
| import { z } from "zod"; | ||
| import { ResponseObjectSchema as OriginalResponseObjectSchema } from "../processed/response-object.js"; | ||
| import { HeaderObjectSchema } from "./header-object.js"; | ||
| import { LinkObjectSchema } from "./link-object.js"; | ||
| import { MediaTypeObjectSchema } from "./media-type-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const ResponseObjectSchema = OriginalResponseObjectSchema.extend({ | ||
| /** | ||
| * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is | ||
| * defined with the name "Content-Type", it SHALL be ignored. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(), | ||
| /** | ||
| * A map containing descriptions of potential response payloads. The key is a media type or media type range and the | ||
| * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. | ||
| * "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| /** | ||
| * A map of operations links that can be followed from the response. The key of the map is a short name for the link, | ||
| * following the naming constraints of the names for Component Objects. | ||
| */ | ||
| links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional() | ||
| import { z } from 'zod'; | ||
| import { ResponseObjectSchema as OriginalResponseObjectSchema } from '../processed/response-object.js'; | ||
| import { HeaderObjectSchema } from './header-object.js'; | ||
| import { LinkObjectSchema } from './link-object.js'; | ||
| import { MediaTypeObjectSchema } from './media-type-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * Response Object | ||
| * | ||
| * Describes a single response from an API operation, including design-time, static links to operations based on the response. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object | ||
| */ | ||
| export const ResponseObjectSchema = OriginalResponseObjectSchema.extend({ | ||
| /** | ||
| * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is | ||
| * defined with the name "Content-Type", it SHALL be ignored. | ||
| */ | ||
| headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(), | ||
| /** | ||
| * A map containing descriptions of potential response payloads. The key is a media type or media type range and the | ||
| * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. | ||
| * "text/plain" overrides "text/*" | ||
| */ | ||
| content: z.record(z.string(), MediaTypeObjectSchema).optional(), | ||
| /** | ||
| * A map of operations links that can be followed from the response. The key of the map is a short name for the link, | ||
| * following the naming constraints of the names for Component Objects. | ||
| */ | ||
| links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(), | ||
| }); | ||
| export { | ||
| ResponseObjectSchema | ||
| }; | ||
| //# sourceMappingURL=response-object.js.map |
@@ -1,19 +0,29 @@ | ||
| import { z } from "zod"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| import { ResponseObjectSchema } from "./response-object.js"; | ||
| const ResponsesObjectSchema = z.record( | ||
| /** | ||
| * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per | ||
| * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks | ||
| * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY | ||
| * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299. | ||
| * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an | ||
| * explicit code, the explicit code definition takes precedence over the range definition for that code. | ||
| */ | ||
| z.string(), | ||
| z.union([ReferenceObjectSchema, ResponseObjectSchema]) | ||
| ); | ||
| export { | ||
| ResponsesObjectSchema | ||
| }; | ||
| //# sourceMappingURL=responses-object.js.map | ||
| import { z } from 'zod'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| import { ResponseObjectSchema } from './response-object.js'; | ||
| /** | ||
| * Responses Object | ||
| * | ||
| * A container for the expected responses of an operation. The container maps a HTTP response code to the expected | ||
| * response. | ||
| * | ||
| * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known | ||
| * in advance. However, documentation is expected to cover a successful operation response and any known errors. | ||
| * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the | ||
| * Responses Object. | ||
| * | ||
| * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be | ||
| * the response for a successful operation call. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object | ||
| */ | ||
| export const ResponsesObjectSchema = z.record( | ||
| /** | ||
| * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per | ||
| * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks | ||
| * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY | ||
| * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299. | ||
| * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an | ||
| * explicit code, the explicit code definition takes precedence over the range definition for that code. | ||
| */ | ||
| z.string(), z.union([ReferenceObjectSchema, ResponseObjectSchema])); |
@@ -1,6 +0,14 @@ | ||
| import { RuntimeExpressionSchema as OriginalRuntimeExpressionSchema } from "../processed/runtime-expression.js"; | ||
| const RuntimeExpressionSchema = OriginalRuntimeExpressionSchema; | ||
| export { | ||
| RuntimeExpressionSchema | ||
| }; | ||
| //# sourceMappingURL=runtime-expression.js.map | ||
| import { RuntimeExpressionSchema as OriginalRuntimeExpressionSchema } from '../processed/runtime-expression.js'; | ||
| /** | ||
| * Runtime Expression Schema | ||
| * | ||
| * Runtime expressions allow defining values based on information that will only be available within the HTTP message in | ||
| * an actual API call. This mechanism is used by Link Objects and Callback Objects. | ||
| * | ||
| * Expressions can be: | ||
| * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id) | ||
| * 2. Embedded expressions in strings using curly braces (e.g. "Hello {$request.body#/name}!") | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions | ||
| */ | ||
| export const RuntimeExpressionSchema = OriginalRuntimeExpressionSchema; |
@@ -1,34 +0,31 @@ | ||
| import { z } from "zod"; | ||
| import { SchemaObjectSchema as OriginalSchemaObjectSchema } from "../processed/schema-object.js"; | ||
| import { ReferenceObjectSchema } from "./reference-object.js"; | ||
| const SchemaObjectSchema = z.lazy( | ||
| () => z.intersection( | ||
| OriginalSchemaObjectSchema, | ||
| z.object({ | ||
| // Reference-related fields | ||
| $ref: z.string().optional(), | ||
| $id: z.string().optional(), | ||
| $schema: z.string().optional(), | ||
| $defs: z.record( | ||
| z.string(), | ||
| z.lazy(() => SchemaObjectSchema) | ||
| ).optional(), | ||
| $dynamicRef: z.string().optional(), | ||
| $dynamicAnchor: z.string().optional(), | ||
| // Override the recursive fields to use this schema instead of the original | ||
| properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(), | ||
| patternProperties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(), | ||
| prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional() | ||
| }) | ||
| ) | ||
| ); | ||
| export { | ||
| SchemaObjectSchema | ||
| }; | ||
| //# sourceMappingURL=schema-object.js.map | ||
| import { z } from 'zod'; | ||
| import { SchemaObjectSchema as OriginalSchemaObjectSchema } from '../processed/schema-object.js'; | ||
| import { ReferenceObjectSchema } from './reference-object.js'; | ||
| /** | ||
| * The Schema Object with reference fields. | ||
| * This extends the base Schema Object to include reference-related fields | ||
| * that are processed differently in the unprocessed schema. | ||
| */ | ||
| export const SchemaObjectSchema = z.lazy(() => z.intersection(OriginalSchemaObjectSchema, z.object({ | ||
| // Reference-related fields | ||
| $ref: z.string().optional(), | ||
| $id: z.string().optional(), | ||
| $schema: z.string().optional(), | ||
| $defs: z | ||
| .record(z.string(), z.lazy(() => SchemaObjectSchema)) | ||
| .optional(), | ||
| $dynamicRef: z.string().optional(), | ||
| $dynamicAnchor: z.string().optional(), | ||
| // Override the recursive fields to use this schema instead of the original | ||
| properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(), | ||
| patternProperties: z | ||
| .record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])) | ||
| .optional(), | ||
| items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(), | ||
| prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(), | ||
| not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(), | ||
| }))); |
@@ -1,6 +0,20 @@ | ||
| import { SecurityRequirementObjectSchema as OriginalSecurityRequirementObjectSchema } from "../processed/security-requirement-object.js"; | ||
| const SecurityRequirementObjectSchema = OriginalSecurityRequirementObjectSchema; | ||
| export { | ||
| SecurityRequirementObjectSchema | ||
| }; | ||
| //# sourceMappingURL=security-requirement-object.js.map | ||
| import { SecurityRequirementObjectSchema as OriginalSecurityRequirementObjectSchema } from '../processed/security-requirement-object.js'; | ||
| /** | ||
| * Security Requirement Object | ||
| * | ||
| * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a | ||
| * security scheme declared in the Security Schemes under the Components Object. | ||
| * | ||
| * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for | ||
| * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are | ||
| * required to convey security information. | ||
| * | ||
| * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security | ||
| * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This | ||
| * enables support for scenarios where the API allows multiple, independent security schemes. | ||
| * | ||
| * An empty Security Requirement Object ({}) indicates anonymous access is supported. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object | ||
| */ | ||
| export const SecurityRequirementObjectSchema = OriginalSecurityRequirementObjectSchema; |
@@ -1,41 +0,26 @@ | ||
| import { | ||
| ApiKeyInValues as OriginalApiKeyInValues, | ||
| ApiKeySchema as OriginalApiKeySchema, | ||
| AuthorizationCodeFlowSchema as OriginalAuthorizationCodeFlowSchema, | ||
| ClientCredentialsFlowSchema as OriginalClientCredentialsFlowSchema, | ||
| HttpSchema as OriginalHttpSchema, | ||
| ImplicitFlowSchema as OriginalImplicitFlowSchema, | ||
| MutualTlsSchema as OriginalMutualTlsSchema, | ||
| OAuthFlowObjectSchema as OriginalOAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema as OriginalOAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema as OriginalOpenIdConnectSchema, | ||
| PasswordFlowSchema as OriginalPasswordFlowSchema, | ||
| SecuritySchemeObjectSchema as OriginalSecuritySchemeObjectSchema | ||
| } from "../processed/security-scheme-object.js"; | ||
| const SecuritySchemeObjectSchema = OriginalSecuritySchemeObjectSchema; | ||
| const ApiKeyInValues = OriginalApiKeyInValues; | ||
| const ApiKeySchema = OriginalApiKeySchema; | ||
| const HttpSchema = OriginalHttpSchema; | ||
| const MutualTlsSchema = OriginalMutualTlsSchema; | ||
| const OpenIdConnectSchema = OriginalOpenIdConnectSchema; | ||
| const OAuthFlowsObjectSchema = OriginalOAuthFlowsObjectSchema; | ||
| const OAuthFlowObjectSchema = OriginalOAuthFlowObjectSchema; | ||
| const AuthorizationCodeFlowSchema = OriginalAuthorizationCodeFlowSchema; | ||
| const ClientCredentialsFlowSchema = OriginalClientCredentialsFlowSchema; | ||
| const ImplicitFlowSchema = OriginalImplicitFlowSchema; | ||
| const PasswordFlowSchema = OriginalPasswordFlowSchema; | ||
| export { | ||
| ApiKeyInValues, | ||
| ApiKeySchema, | ||
| AuthorizationCodeFlowSchema, | ||
| ClientCredentialsFlowSchema, | ||
| HttpSchema, | ||
| ImplicitFlowSchema, | ||
| MutualTlsSchema, | ||
| OAuthFlowObjectSchema, | ||
| OAuthFlowsObjectSchema, | ||
| OpenIdConnectSchema, | ||
| PasswordFlowSchema, | ||
| SecuritySchemeObjectSchema | ||
| }; | ||
| //# sourceMappingURL=security-scheme-object.js.map | ||
| import { ApiKeyInValues as OriginalApiKeyInValues, ApiKeySchema as OriginalApiKeySchema, AuthorizationCodeFlowSchema as OriginalAuthorizationCodeFlowSchema, ClientCredentialsFlowSchema as OriginalClientCredentialsFlowSchema, HttpSchema as OriginalHttpSchema, ImplicitFlowSchema as OriginalImplicitFlowSchema, MutualTlsSchema as OriginalMutualTlsSchema, OAuthFlowObjectSchema as OriginalOAuthFlowObjectSchema, OAuthFlowsObjectSchema as OriginalOAuthFlowsObjectSchema, OpenIdConnectSchema as OriginalOpenIdConnectSchema, PasswordFlowSchema as OriginalPasswordFlowSchema, SecuritySchemeObjectSchema as OriginalSecuritySchemeObjectSchema, } from '../processed/security-scheme-object.js'; | ||
| /** | ||
| * Security Scheme Object | ||
| * | ||
| * Defines a security scheme that can be used by the operations. | ||
| * | ||
| * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query | ||
| * parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials | ||
| * and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit | ||
| * flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is | ||
| * Authorization Code Grant flow with PKCE. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object | ||
| */ | ||
| export const SecuritySchemeObjectSchema = OriginalSecuritySchemeObjectSchema; | ||
| export const ApiKeyInValues = OriginalApiKeyInValues; | ||
| export const ApiKeySchema = OriginalApiKeySchema; | ||
| export const HttpSchema = OriginalHttpSchema; | ||
| export const MutualTlsSchema = OriginalMutualTlsSchema; | ||
| export const OpenIdConnectSchema = OriginalOpenIdConnectSchema; | ||
| export const OAuthFlowsObjectSchema = OriginalOAuthFlowsObjectSchema; | ||
| export const OAuthFlowObjectSchema = OriginalOAuthFlowObjectSchema; | ||
| export const AuthorizationCodeFlowSchema = OriginalAuthorizationCodeFlowSchema; | ||
| export const ClientCredentialsFlowSchema = OriginalClientCredentialsFlowSchema; | ||
| export const ImplicitFlowSchema = OriginalImplicitFlowSchema; | ||
| export const PasswordFlowSchema = OriginalPasswordFlowSchema; |
@@ -1,6 +0,9 @@ | ||
| import { ServerObjectSchema as OriginalServerObjectSchema } from "../processed/server-object.js"; | ||
| const ServerObjectSchema = OriginalServerObjectSchema; | ||
| export { | ||
| ServerObjectSchema | ||
| }; | ||
| //# sourceMappingURL=server-object.js.map | ||
| import { ServerObjectSchema as OriginalServerObjectSchema } from '../processed/server-object.js'; | ||
| /** | ||
| * Server Object | ||
| * | ||
| * An object representing a Server. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object | ||
| */ | ||
| export const ServerObjectSchema = OriginalServerObjectSchema; |
@@ -1,6 +0,9 @@ | ||
| import { ServerVariableObjectSchema as OriginalServerVariableObjectSchema } from "../processed/server-variable-object.js"; | ||
| const ServerVariableObjectSchema = OriginalServerVariableObjectSchema; | ||
| export { | ||
| ServerVariableObjectSchema | ||
| }; | ||
| //# sourceMappingURL=server-variable-object.js.map | ||
| import { ServerVariableObjectSchema as OriginalServerVariableObjectSchema } from '../processed/server-variable-object.js'; | ||
| /** | ||
| * Server Variable Object | ||
| * | ||
| * An object representing a Server Variable for server URL template substitution. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object | ||
| */ | ||
| export const ServerVariableObjectSchema = OriginalServerVariableObjectSchema; |
@@ -1,6 +0,10 @@ | ||
| import { TagObjectSchema as OriginalTagObjectSchema } from "../processed/tag-object.js"; | ||
| const TagObjectSchema = OriginalTagObjectSchema; | ||
| export { | ||
| TagObjectSchema | ||
| }; | ||
| //# sourceMappingURL=tag-object.js.map | ||
| import { TagObjectSchema as OriginalTagObjectSchema } from '../processed/tag-object.js'; | ||
| /** | ||
| * Tag Object | ||
| * | ||
| * Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag | ||
| * defined in the Operation Object instances. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object | ||
| */ | ||
| export const TagObjectSchema = OriginalTagObjectSchema; |
@@ -1,7 +0,16 @@ | ||
| import { z } from "zod"; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from "./path-item-object-without-callbacks.js"; | ||
| const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks); | ||
| export { | ||
| WebhooksObjectSchema | ||
| }; | ||
| //# sourceMappingURL=webhooks-object.js.map | ||
| import { z } from 'zod'; | ||
| import { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks.js'; | ||
| /** | ||
| * Webhooks Object | ||
| * | ||
| * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. | ||
| * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for | ||
| * example by an out of band registration. | ||
| * | ||
| * The key name is a unique string to refer to each webhook, while the | ||
| * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the | ||
| * expected responses. An example is available. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks | ||
| */ | ||
| export const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks); |
@@ -1,6 +0,13 @@ | ||
| import { XmlObjectSchema as OriginalXmlObjectSchema } from "../processed/xml-object.js"; | ||
| const XmlObjectSchema = OriginalXmlObjectSchema; | ||
| export { | ||
| XmlObjectSchema | ||
| }; | ||
| //# sourceMappingURL=xml-object.js.map | ||
| import { XmlObjectSchema as OriginalXmlObjectSchema } from '../processed/xml-object.js'; | ||
| /** | ||
| * | ||
| * XML Object | ||
| * | ||
| * A metadata object that allows for more fine-tuned XML model definitions. | ||
| * | ||
| * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used | ||
| * to add that information. See examples for expected behavior. | ||
| * | ||
| * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#xml-object | ||
| */ | ||
| export const XmlObjectSchema = OriginalXmlObjectSchema; |
@@ -1,34 +0,13 @@ | ||
| import { XAdditionalPropertiesNameSchema } from "./x-additional-properties-name.js"; | ||
| import { XCodeSampleSchema, XCodeSamplesSchema } from "./x-code-samples.js"; | ||
| import { XEnumDescriptionsSchema } from "./x-enum-descriptions.js"; | ||
| import { XInternalSchema } from "./x-internal.js"; | ||
| import { PostResponseSchema, XPostResponseSchema } from "./x-post-response.js"; | ||
| import { XScalarIconSchema } from "./x-scalar-icon.js"; | ||
| import { XScalarIgnoreSchema } from "./x-scalar-ignore.js"; | ||
| import { XScalarRedirectUriSchema } from "./x-scalar-redirect-uri.js"; | ||
| import { XScalarSdkInstallationSchema } from "./x-scalar-sdk-installation.js"; | ||
| import { XScalarSecurityQuery } from "./x-scalar-security-query.js"; | ||
| import { XScalarStabilitySchema, XScalarStabilityValues } from "./x-scalar-stability.js"; | ||
| import { XTagGroupSchema, XTagGroupsSchema } from "./x-tag-groups.js"; | ||
| import { XUsePkceValues, XusePkceSchema } from "./x-use-pkce.js"; | ||
| export { | ||
| PostResponseSchema, | ||
| XAdditionalPropertiesNameSchema, | ||
| XCodeSampleSchema, | ||
| XCodeSamplesSchema, | ||
| XEnumDescriptionsSchema, | ||
| XInternalSchema, | ||
| XPostResponseSchema, | ||
| XScalarIconSchema, | ||
| XScalarIgnoreSchema, | ||
| XScalarRedirectUriSchema, | ||
| XScalarSdkInstallationSchema, | ||
| XScalarSecurityQuery, | ||
| XScalarStabilitySchema, | ||
| XScalarStabilityValues, | ||
| XTagGroupSchema, | ||
| XTagGroupsSchema, | ||
| XUsePkceValues, | ||
| XusePkceSchema | ||
| }; | ||
| //# sourceMappingURL=index.js.map | ||
| export { XAdditionalPropertiesNameSchema } from './x-additional-properties-name.js'; | ||
| export { XCodeSampleSchema, XCodeSamplesSchema } from './x-code-samples.js'; | ||
| export { XEnumDescriptionsSchema } from './x-enum-descriptions.js'; | ||
| export { XInternalSchema } from './x-internal.js'; | ||
| export { PostResponseSchema, XPostResponseSchema } from './x-post-response.js'; | ||
| export { XScalarIconSchema } from './x-scalar-icon.js'; | ||
| export { XScalarIgnoreSchema } from './x-scalar-ignore.js'; | ||
| export { XScalarRedirectUriSchema } from './x-scalar-redirect-uri.js'; | ||
| export { XScalarSdkInstallationSchema } from './x-scalar-sdk-installation.js'; | ||
| export { XScalarSecurityQuery } from './x-scalar-security-query.js'; | ||
| export { XScalarStabilitySchema, XScalarStabilityValues } from './x-scalar-stability.js'; | ||
| export { XTagGroupSchema, XTagGroupsSchema } from './x-tag-groups.js'; | ||
| export { XUsePkceValues, XusePkceSchema } from './x-use-pkce.js'; |
@@ -1,8 +0,11 @@ | ||
| import { z } from "zod"; | ||
| const XAdditionalPropertiesNameSchema = z.object({ | ||
| "x-additionalPropertiesName": z.string().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| /** | ||
| * x-additionalPropertiesName | ||
| * | ||
| * Custom attribute name for additionalProperties in a schema. | ||
| * This allows specifying a descriptive name for additional properties | ||
| * that may be present in an object. | ||
| */ | ||
| export const XAdditionalPropertiesNameSchema = z.object({ | ||
| 'x-additionalPropertiesName': z.string().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XAdditionalPropertiesNameSchema | ||
| }; | ||
| //# sourceMappingURL=x-additional-properties-name.js.map |
@@ -1,16 +0,11 @@ | ||
| import { z } from "zod"; | ||
| const XCodeSampleSchema = z.object({ | ||
| lang: z.string().optional().catch(void 0), | ||
| label: z.string().optional().catch(void 0), | ||
| source: z.string() | ||
| import { z } from 'zod'; | ||
| export const XCodeSampleSchema = z.object({ | ||
| lang: z.string().optional().catch(undefined), | ||
| label: z.string().optional().catch(undefined), | ||
| source: z.string(), | ||
| }); | ||
| const XCodeSamplesSchema = z.object({ | ||
| "x-codeSamples": XCodeSampleSchema.array().optional().catch(void 0), | ||
| "x-code-samples": XCodeSampleSchema.array().optional().catch(void 0), | ||
| "x-custom-examples": XCodeSampleSchema.array().optional().catch(void 0) | ||
| export const XCodeSamplesSchema = z.object({ | ||
| 'x-codeSamples': XCodeSampleSchema.array().optional().catch(undefined), | ||
| 'x-code-samples': XCodeSampleSchema.array().optional().catch(undefined), | ||
| 'x-custom-examples': XCodeSampleSchema.array().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XCodeSampleSchema, | ||
| XCodeSamplesSchema | ||
| }; | ||
| //# sourceMappingURL=x-code-samples.js.map |
@@ -1,8 +0,12 @@ | ||
| import { z } from "zod"; | ||
| const XDisplayNameSchema = z.object({ | ||
| "x-displayName": z.string().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| /** | ||
| * An OpenAPI extension to overwrite tag names with a display-friendly version | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-displayName: planets | ||
| * ``` | ||
| */ | ||
| export const XDisplayNameSchema = z.object({ | ||
| 'x-displayName': z.string().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XDisplayNameSchema | ||
| }; | ||
| //# sourceMappingURL=x-display-name.js.map |
@@ -1,8 +0,17 @@ | ||
| import { z } from "zod"; | ||
| const XEnumDescriptionsSchema = z.object({ | ||
| "x-enumDescriptions": z.record(z.string(), z.string()).catch({}) | ||
| import { z } from 'zod'; | ||
| /** | ||
| * x-enumDescriptions | ||
| * | ||
| * Maps enum values to their descriptions. Each key should correspond to | ||
| * an enum value, and the value is the description for that enum value. | ||
| * | ||
| * Example: | ||
| * x-enumDescriptions: | ||
| * missing_features: "Missing features" | ||
| * too_expensive: "Too expensive" | ||
| * unused: "Unused" | ||
| * other: "Other" | ||
| */ | ||
| export const XEnumDescriptionsSchema = z.object({ | ||
| 'x-enumDescriptions': z.record(z.string(), z.string()).catch({}), | ||
| }); | ||
| export { | ||
| XEnumDescriptionsSchema | ||
| }; | ||
| //# sourceMappingURL=x-enum-descriptions.js.map |
@@ -1,8 +0,4 @@ | ||
| import { z } from "zod"; | ||
| const XInternalSchema = z.object({ | ||
| "x-internal": z.boolean().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| export const XInternalSchema = z.object({ | ||
| 'x-internal': z.boolean().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XInternalSchema | ||
| }; | ||
| //# sourceMappingURL=x-internal.js.map |
@@ -1,10 +0,21 @@ | ||
| import { z } from "zod"; | ||
| const PostResponseSchema = z.string(); | ||
| const XPostResponseSchema = z.object({ | ||
| "x-post-response": PostResponseSchema.optional() | ||
| import { z } from 'zod'; | ||
| /** The code to execute */ | ||
| export const PostResponseSchema = z.string(); | ||
| /** | ||
| * Post response scripts allow to execute arbitrary code after a response is received | ||
| * | ||
| * This is useful for: | ||
| * - Extracting data from the response, or | ||
| * - Testing the response | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-post-response: | | ||
| * pm.test("Status code is 200", () => { | ||
| * pm.response.to.have.status(200) | ||
| * }) | ||
| * ``` | ||
| */ | ||
| export const XPostResponseSchema = z.object({ | ||
| 'x-post-response': PostResponseSchema.optional(), | ||
| }); | ||
| export { | ||
| PostResponseSchema, | ||
| XPostResponseSchema | ||
| }; | ||
| //# sourceMappingURL=x-post-response.js.map |
@@ -1,8 +0,17 @@ | ||
| import { z } from "zod"; | ||
| const XScalarCredentialsLocationSchema = z.object({ | ||
| "x-scalar-credentials-location": z.enum(["header", "body"]).optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * An OpenAPI extension to specify where OAuth2 credentials should be sent | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-scalar-credentials-location: header | ||
| * ``` | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-scalar-credentials-location: body | ||
| * ``` | ||
| */ | ||
| export const XScalarCredentialsLocationSchema = z.object({ | ||
| 'x-scalar-credentials-location': z.enum(['header', 'body']).optional(), | ||
| }); | ||
| export { | ||
| XScalarCredentialsLocationSchema | ||
| }; | ||
| //# sourceMappingURL=x-scalar-credentials-location.js.map |
@@ -1,8 +0,4 @@ | ||
| import { z } from "zod"; | ||
| const XScalarIconSchema = z.object({ | ||
| "x-scalar-icon": z.string().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| export const XScalarIconSchema = z.object({ | ||
| 'x-scalar-icon': z.string().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XScalarIconSchema | ||
| }; | ||
| //# sourceMappingURL=x-scalar-icon.js.map |
@@ -1,8 +0,4 @@ | ||
| import { z } from "zod"; | ||
| const XScalarIgnoreSchema = z.object({ | ||
| "x-scalar-ignore": z.boolean().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| export const XScalarIgnoreSchema = z.object({ | ||
| 'x-scalar-ignore': z.boolean().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XScalarIgnoreSchema | ||
| }; | ||
| //# sourceMappingURL=x-scalar-ignore.js.map |
@@ -1,8 +0,4 @@ | ||
| import { z } from "zod"; | ||
| const XScalarRedirectUriSchema = z.object({ | ||
| "x-scalar-redirect-uri": z.string().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| export const XScalarRedirectUriSchema = z.object({ | ||
| 'x-scalar-redirect-uri': z.string().optional().catch(undefined), | ||
| }); | ||
| export { | ||
| XScalarRedirectUriSchema | ||
| }; | ||
| //# sourceMappingURL=x-scalar-redirect-uri.js.map |
@@ -1,12 +0,12 @@ | ||
| import { z } from "zod"; | ||
| const XScalarSdkInstallationSchema = z.object({ | ||
| "x-scalar-sdk-installation": z.object({ | ||
| lang: z.string(), | ||
| source: z.string().optional().catch(void 0), | ||
| description: z.string().optional().catch(void 0) | ||
| }).array().optional().catch(void 0) | ||
| import { z } from 'zod'; | ||
| export const XScalarSdkInstallationSchema = z.object({ | ||
| 'x-scalar-sdk-installation': z | ||
| .object({ | ||
| lang: z.string(), | ||
| source: z.string().optional().catch(undefined), | ||
| description: z.string().optional().catch(undefined), | ||
| }) | ||
| .array() | ||
| .optional() | ||
| .catch(undefined), | ||
| }); | ||
| export { | ||
| XScalarSdkInstallationSchema | ||
| }; | ||
| //# sourceMappingURL=x-scalar-sdk-installation.js.map |
@@ -1,8 +0,15 @@ | ||
| import { z } from "zod"; | ||
| const XScalarSecurityBody = z.object({ | ||
| "x-scalar-security-body": z.record(z.string(), z.string()).optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * An OpenAPI extension to set any additional body parameters for the OAuth token request | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-scalar-security-body: { | ||
| * audience: 'https://api.example.com', | ||
| * resource: 'user-profile' | ||
| * } | ||
| * ``` | ||
| */ | ||
| export const XScalarSecurityBody = z.object({ | ||
| 'x-scalar-security-body': z.record(z.string(), z.string()).optional(), | ||
| }); | ||
| export { | ||
| XScalarSecurityBody | ||
| }; | ||
| //# sourceMappingURL=x-scalar-security-body.js.map |
@@ -1,8 +0,15 @@ | ||
| import { z } from "zod"; | ||
| const XScalarSecurityQuery = z.object({ | ||
| "x-scalar-security-query": z.record(z.string(), z.string()).optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * An OpenAPI extension set any query parameters for the OAuth authorize request | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-scalar-security-query: { | ||
| * prompt: 'consent', | ||
| * audience: 'scalar' | ||
| * } | ||
| * ``` | ||
| */ | ||
| export const XScalarSecurityQuery = z.object({ | ||
| 'x-scalar-security-query': z.record(z.string(), z.string()).optional(), | ||
| }); | ||
| export { | ||
| XScalarSecurityQuery | ||
| }; | ||
| //# sourceMappingURL=x-scalar-security-query.js.map |
@@ -1,14 +0,20 @@ | ||
| import { z } from "zod"; | ||
| const XScalarStabilityValues = { | ||
| Deprecated: "deprecated", | ||
| Experimental: "experimental", | ||
| Stable: "stable" | ||
| import { z } from 'zod'; | ||
| export const XScalarStabilityValues = { | ||
| Deprecated: 'deprecated', | ||
| Experimental: 'experimental', | ||
| Stable: 'stable', | ||
| }; | ||
| const XScalarStabilitySchema = z.object({ | ||
| "x-scalar-stability": z.enum(Object.values(XScalarStabilityValues)).optional().catch(void 0) | ||
| /** | ||
| * An OpenAPI extension to indicate the stability of the operation | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-scalar-stability: deprecated | ||
| * ``` | ||
| */ | ||
| export const XScalarStabilitySchema = z.object({ | ||
| 'x-scalar-stability': z | ||
| .enum(Object.values(XScalarStabilityValues)) | ||
| .optional() | ||
| .catch(undefined), | ||
| }); | ||
| export { | ||
| XScalarStabilitySchema, | ||
| XScalarStabilityValues | ||
| }; | ||
| //# sourceMappingURL=x-scalar-stability.js.map |
@@ -1,17 +0,17 @@ | ||
| import { z } from "zod"; | ||
| const XTagGroupSchema = z.object({ | ||
| /** | ||
| * The group name. | ||
| */ | ||
| name: z.string(), | ||
| /** | ||
| * List of tags to include in this group. | ||
| */ | ||
| tags: z.coerce.string().array().catch([]) | ||
| import { z } from 'zod'; | ||
| export const XTagGroupSchema = z.object({ | ||
| /** | ||
| * The group name. | ||
| */ | ||
| name: z.string(), | ||
| /** | ||
| * List of tags to include in this group. | ||
| */ | ||
| tags: z.coerce.string().array().catch([]), | ||
| }); | ||
| const XTagGroupsSchema = XTagGroupSchema.array().catch([]); | ||
| export { | ||
| XTagGroupSchema, | ||
| XTagGroupsSchema | ||
| }; | ||
| //# sourceMappingURL=x-tag-groups.js.map | ||
| /** | ||
| * x-tagGroups | ||
| * | ||
| * List of tags to include in this group. | ||
| */ | ||
| export const XTagGroupsSchema = XTagGroupSchema.array().catch([]); |
@@ -1,8 +0,12 @@ | ||
| import { z } from "zod"; | ||
| const XTokenName = z.object({ | ||
| "x-tokenName": z.string().optional() | ||
| import { z } from 'zod'; | ||
| /** | ||
| * An OpenAPI extension to specify a custom token name for OAuth2 flows | ||
| * | ||
| * @example | ||
| * ```yaml | ||
| * x-tokenName: 'custom_access_token' | ||
| * ``` | ||
| */ | ||
| export const XTokenName = z.object({ | ||
| 'x-tokenName': z.string().optional(), | ||
| }); | ||
| export { | ||
| XTokenName | ||
| }; | ||
| //# sourceMappingURL=x-tokenName.js.map |
@@ -1,13 +0,9 @@ | ||
| import { z } from "zod"; | ||
| const XUsePkceValues = ["SHA-256", "plain", "no"]; | ||
| const XusePkceSchema = z.object({ | ||
| /** | ||
| * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow. | ||
| */ | ||
| "x-usePkce": z.enum(XUsePkceValues).optional().default("no") | ||
| import { z } from 'zod'; | ||
| /** Options for the x-usePkce extension */ | ||
| export const XUsePkceValues = ['SHA-256', 'plain', 'no']; | ||
| export const XusePkceSchema = z.object({ | ||
| /** | ||
| * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow. | ||
| */ | ||
| 'x-usePkce': z.enum(XUsePkceValues).optional().default('no'), | ||
| }); | ||
| export { | ||
| XUsePkceValues, | ||
| XusePkceSchema | ||
| }; | ||
| //# sourceMappingURL=x-use-pkce.js.map |
+4
-9
@@ -19,3 +19,3 @@ { | ||
| ], | ||
| "version": "0.6.0", | ||
| "version": "0.6.1", | ||
| "engines": { | ||
@@ -61,13 +61,8 @@ "node": ">=22" | ||
| }, | ||
| "devDependencies": { | ||
| "@scalar/build-tooling": "0.5.0" | ||
| }, | ||
| "devDependencies": {}, | ||
| "scripts": { | ||
| "build": "scalar-build-esbuild", | ||
| "lint:check": "eslint .", | ||
| "lint:fix": "eslint . --fix", | ||
| "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", | ||
| "test": "vitest", | ||
| "types:build": "scalar-types-build", | ||
| "types:check": "scalar-types-check" | ||
| "types:check": "tsc --noEmit" | ||
| } | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../src/helpers/index.ts"], | ||
| "sourcesContent": ["export { isDereferenced } from './is-dereferenced'\n"], | ||
| "mappings": "AAAA,SAAS,sBAAsB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../src/helpers/is-dereferenced.ts"], | ||
| "sourcesContent": ["import type { OpenAPIV3_1 } from '../openapi-types'\n\n/**\n * Type guard to check if an object is not a ReferenceObject.\n * A ReferenceObject is defined by having a $ref property that is a string.\n */\nexport const isDereferenced = <T>(obj: T | OpenAPIV3_1.ReferenceObject): obj is T =>\n typeof obj === 'object' &&\n obj !== null &&\n !('$ref' in obj && typeof (obj as OpenAPIV3_1.ReferenceObject).$ref === 'string')\n"], | ||
| "mappings": "AAMO,MAAM,iBAAiB,CAAI,QAChC,OAAO,QAAQ,YACf,QAAQ,QACR,EAAE,UAAU,OAAO,OAAQ,IAAoC,SAAS;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../src/index.ts"], | ||
| "sourcesContent": ["export * from './openapi-types'\n"], | ||
| "mappings": "AAAA,cAAc;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": [], | ||
| "sourcesContent": [], | ||
| "mappings": "", | ||
| "names": [] | ||
| } |
| import { describe, expectTypeOf, it } from "vitest"; | ||
| describe("OpenAPI", () => { | ||
| it("has a generic type", () => { | ||
| const document = { | ||
| // anything | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to Swagger 2.0", () => { | ||
| const document = { | ||
| swagger: "2.0" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.0.0", () => { | ||
| const document = { | ||
| openapi: "3.0.0" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.0.4", () => { | ||
| const document = { | ||
| openapi: "3.0.4" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.1.0", () => { | ||
| const document = { | ||
| openapi: "3.1.0" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.1.1", () => { | ||
| const document = { | ||
| openapi: "3.1.1" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.1.2", () => { | ||
| const document = { | ||
| openapi: "3.1.2" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("narrows it down to OpenAPI 3.2.0", () => { | ||
| const document = { | ||
| openapi: "3.2.0" | ||
| }; | ||
| expectTypeOf(document).toEqualTypeOf(); | ||
| }); | ||
| it("types a custom extension", () => { | ||
| const document = {}; | ||
| expectTypeOf(document["random-attribute"]).toEqualTypeOf(); | ||
| expectTypeOf(document["x-custom"]).toEqualTypeOf(); | ||
| }); | ||
| it("has a HttpMethod type", () => { | ||
| expectTypeOf("get").toEqualTypeOf(); | ||
| assertType("NOT_A_METHOD"); | ||
| }); | ||
| }); | ||
| //# sourceMappingURL=openapi-types.test-d.js.map |
| { | ||
| "version": 3, | ||
| "sources": ["../src/openapi-types.test-d.ts"], | ||
| "sourcesContent": ["import { describe, expectTypeOf, it } from 'vitest'\n\nimport type { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1, OpenAPIV3_2 } from './openapi-types'\n\ndescribe('OpenAPI', () => {\n it('has a generic type', () => {\n const document: OpenAPI.Document = {\n // anything\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPI.Document>()\n })\n\n it('narrows it down to Swagger 2.0', () => {\n const document: OpenAPI.Document = {\n swagger: '2.0',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV2.Document>()\n })\n\n it('narrows it down to OpenAPI 3.0.0', () => {\n const document: OpenAPI.Document = {\n openapi: '3.0.0',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3.Document>()\n })\n\n it('narrows it down to OpenAPI 3.0.4', () => {\n const document: OpenAPI.Document = {\n openapi: '3.0.4',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3.Document>()\n })\n\n it('narrows it down to OpenAPI 3.1.0', () => {\n const document: OpenAPI.Document = {\n openapi: '3.1.0',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3_1.Document>()\n })\n\n it('narrows it down to OpenAPI 3.1.1', () => {\n const document: OpenAPI.Document = {\n openapi: '3.1.1',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3_1.Document>()\n })\n\n it('narrows it down to OpenAPI 3.1.2', () => {\n const document: OpenAPI.Document = {\n openapi: '3.1.2',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3_1.Document>()\n })\n\n it('narrows it down to OpenAPI 3.2.0', () => {\n const document: OpenAPI.Document = {\n openapi: '3.2.0',\n }\n\n expectTypeOf(document).toEqualTypeOf<OpenAPIV3_2.Document>()\n })\n\n it('types a custom extension', () => {\n const document: OpenAPI.Document<{\n 'x-custom'?: boolean\n 'random-attribute'?: any\n }> = {}\n\n expectTypeOf(document['random-attribute']).toEqualTypeOf<any>()\n expectTypeOf(document['x-custom']).toEqualTypeOf<boolean | undefined>()\n })\n\n it('has a HttpMethod type', () => {\n expectTypeOf('get' as OpenAPI.HttpMethod).toEqualTypeOf<OpenAPI.HttpMethod>()\n\n // @ts-expect-error name is a string\n assertType('NOT_A_METHOD' as OpenAPI.HttpMethod)\n })\n})\n"], | ||
| "mappings": "AAAA,SAAS,UAAU,cAAc,UAAU;AAI3C,SAAS,WAAW,MAAM;AACxB,KAAG,sBAAsB,MAAM;AAC7B,UAAM,WAA6B;AAAA;AAAA,IAEnC;AAEA,iBAAa,QAAQ,EAAE,cAAgC;AAAA,EACzD,CAAC;AAED,KAAG,kCAAkC,MAAM;AACzC,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAkC;AAAA,EAC3D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAkC;AAAA,EAC3D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAkC;AAAA,EAC3D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAoC;AAAA,EAC7D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAoC;AAAA,EAC7D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAoC;AAAA,EAC7D,CAAC;AAED,KAAG,oCAAoC,MAAM;AAC3C,UAAM,WAA6B;AAAA,MACjC,SAAS;AAAA,IACX;AAEA,iBAAa,QAAQ,EAAE,cAAoC;AAAA,EAC7D,CAAC;AAED,KAAG,4BAA4B,MAAM;AACnC,UAAM,WAGD,CAAC;AAEN,iBAAa,SAAS,kBAAkB,CAAC,EAAE,cAAmB;AAC9D,iBAAa,SAAS,UAAU,CAAC,EAAE,cAAmC;AAAA,EACxE,CAAC;AAED,KAAG,yBAAyB,MAAM;AAChC,iBAAa,KAA2B,EAAE,cAAkC;AAG5E,eAAW,cAAoC;AAAA,EACjD,CAAC;AACH,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/base-path-item-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { ServerObjectSchema } from './server-object'\n\n/**\n * Base Path Item Object Schema\n *\n * This helps break circular dependencies between path-item-object and callback-object\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const BasePathItemObjectSchema = z.object({\n /**\n * An optional, string summary, intended to apply to all operations in this path.\n */\n summary: z.string().optional(),\n /**\n * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used\n * for rich text representation.\n */\n description: z.string().optional(),\n /**\n * An alternative server array to service all operations in this path.\n */\n servers: z.array(ServerObjectSchema).optional(),\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be\n * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A\n * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link\n * to parameters that are defined at the OpenAPI Object's components/parameters.\n */\n parameters: z.array(ParameterObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AAS5B,MAAM,2BAA2B,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI/C,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7B,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,SAAS,EAAE,MAAM,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO9C,YAAY,EAAE,MAAM,qBAAqB,EAAE,SAAS;AACtD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/callback-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks'\nimport { RuntimeExpressionSchema } from './runtime-expression'\n\n/**\n * Callback Object\n *\n * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a\n * Path Item Object that describes a set of requests that may be initiated by the API provider and the\n * expected responses. The key value used to identify the callback object is an expression, evaluated\n * at runtime, that identifies a URL to be used for the callback operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#callback-object\n */\nexport const CallbackObjectSchema = z.record(RuntimeExpressionSchema, PathItemObjectSchemaWithoutCallbacks)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4CAA4C;AACrD,SAAS,+BAA+B;AAYjC,MAAM,uBAAuB,EAAE,OAAO,yBAAyB,oCAAoC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/components-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { CallbackObjectSchema } from './callback-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { HeaderObjectSchema } from './header-object'\nimport { LinkObjectSchema } from './link-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { PathItemObjectSchema } from './path-item-object'\nimport { RequestBodyObjectSchema } from './request-body-object'\nimport { ResponseObjectSchema } from './response-object'\nimport { SchemaObjectSchema } from './schema-object'\nimport { SecuritySchemeObjectSchema } from './security-scheme-object'\n\n/**\n * Components Object\n *\n * Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object\n * will have no effect on the API unless they are explicitly referenced from outside the Components Object.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#components-object\n */\nexport const ComponentsObjectSchema = z.object({\n /**\n * An object to hold reusable Schema Objects.\n */\n schemas: z.record(z.string(), SchemaObjectSchema).optional(),\n /**\n * An object to hold reusable Response Objects.\n */\n responses: z.record(z.string(), ResponseObjectSchema).optional(),\n /**\n * An object to hold reusable Parameter Objects.\n */\n parameters: z.record(z.string(), ParameterObjectSchema).optional(),\n /**\n * An object to hold reusable Example Objects.\n */\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n /**\n * An object to hold reusable Request Body Objects.\n */\n requestBodies: z.record(z.string(), RequestBodyObjectSchema).optional(),\n /**\n * An object to hold reusable Header Objects.\n */\n headers: z.record(z.string(), HeaderObjectSchema).optional(),\n /**\n * An object to hold reusable Security Scheme Objects.\n */\n securitySchemes: z.record(z.string(), SecuritySchemeObjectSchema).optional(),\n /**\n * An object to hold reusable Link Objects.\n */\n links: z.record(z.string(), LinkObjectSchema).optional(),\n /**\n * An object to hold reusable Callback Objects.\n */\n callbacks: z.record(z.string(), CallbackObjectSchema).optional(),\n /**\n * An object to hold reusable Path Item Objects.\n */\n pathItems: z.record(z.string(), PathItemObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AACnC,SAAS,kCAAkC;AAUpC,MAAM,yBAAyB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI7C,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7D,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,uBAAuB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAItE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,0BAA0B,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,gBAAgB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/D,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AACjE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/contact-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Contact Object\n *\n * Contact information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object\n */\nexport const ContactObjectSchema = z.object({\n /** The identifying name of the contact person/organization. */\n name: z.string().optional(),\n /** The URL pointing to the contact information. This MUST be in the form of a URL. */\n url: z.string().url().optional().catch(undefined),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: z.string().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AASX,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA,EAE1C,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAE1B,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEhD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAC9C,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/discriminator-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Discriminator Object\n *\n * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a\n * hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and\n * validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named\n * property with alternative schemas.\n *\n * Note that discriminator MUST NOT change the validation outcome of the schema.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#discriminator-object\n */\nexport const DiscriminatorObjectSchema = z.object({\n /**\n * REQUIRED. The name of the property in the payload that will hold the discriminator value.\n * This property SHOULD be required in the payload schema.\n */\n propertyName: z.string(),\n\n /**\n * An object to hold mappings between payload values and schema names or references.\n * Keys MUST be strings, but implementations MAY convert response values to strings for comparison.\n */\n mapping: z.record(z.string(), z.string()).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAcX,MAAM,4BAA4B,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhD,cAAc,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AACrD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/encoding-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { HeaderObjectSchema } from './header-object'\n\n/**\n * Encoding Object\n *\n * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting\n * values of various types to string representations.\n *\n * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with\n * application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is\n * implementation-defined.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#encoding-object\n */\nexport const EncodingObjectSchema = z.object({\n /**\n * The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is\n * either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the\n * property type as shown in the table below.\n */\n contentType: z.string(),\n /**\n * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be\n * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart.\n */\n headers: z.record(z.string(), HeaderObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,0BAA0B;AAc5B,MAAM,uBAAuB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3C,aAAa,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,SAAS;AAC7D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/example-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Example Object\n *\n * An object grouping an internal or external example value with basic summary and description metadata. This object is\n * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular)\n * fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object\n */\nexport const ExampleObjectSchema = z.object({\n /**\n * Short description for the example.\n */\n summary: z.string().optional(),\n /**\n * Long description for the example. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n /**\n * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.\n */\n value: z.any().optional(),\n /**\n * A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be\n * included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules\n * for resolving Relative References.\n */\n externalValue: z.string().optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI1C,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7B,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,eAAe,EAAE,OAAO,EAAE,SAAS;AACrC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/external-documentation-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * External Documentation Object\n *\n * Allows referencing an external resource for extended documentation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object\n */\nexport const ExternalDocumentationObjectSchema = z.object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional(),\n /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */\n url: z.string(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AASX,MAAM,oCAAoC,EAAE,OAAO;AAAA;AAAA,EAExD,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAEjC,KAAK,EAAE,OAAO;AAChB,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/header-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Header Object\n *\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant\n * Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy\n * based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style).\n * This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to\n * \"simple\".\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object\n */\nexport const HeaderObjectSchema = z.object({\n /**\n * A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text\n * representation.\n */\n description: z.string().optional(),\n /**\n * Determines whether this header is mandatory. The default value is false.\n */\n required: z.boolean().optional(),\n /**\n * Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.\n */\n deprecated: z.boolean().optional(),\n /**\n * Describes how the parameter value will be serialized. Only \"simple\" is allowed for headers.\n */\n style: z.enum(['matrix', 'label', 'simple', 'form', 'spaceDelimited', 'pipeDelimited', 'deepObject']).optional(),\n /**\n * When this is true, parameter values of type array or object generate separate parameters\n * for each value of the array or key-value pair of the map.\n */\n explode: z.boolean().optional(),\n /**\n * The schema defining the type used for the header.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the parameter's potential value.\n */\n example: z.any().optional(),\n /**\n * Examples of the parameter's potential value.\n */\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n /**\n * A map containing the representations for the parameter.\n * The key is the media type and the value describes it.\n * Only one of content or schema should be specified.\n */\n content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,2BAA2B;AACpC,SAAS,4CAA4C;AACrD,SAAS,0BAA0B;AAmB5B,MAAM,qBAAqB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKzC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,UAAU,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/B,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,UAAU,QAAQ,kBAAkB,iBAAiB,YAAY,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/G,SAAS,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9B,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,oCAAoC,EAAE,SAAS;AAC/E,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/index.ts"], | ||
| "sourcesContent": ["export { CallbackObjectSchema } from './callback-object'\nexport { ComponentsObjectSchema } from './components-object'\nexport { ContactObjectSchema } from './contact-object'\nexport { DiscriminatorObjectSchema } from './discriminator-object'\nexport { EncodingObjectSchema } from './encoding-object'\nexport { ExampleObjectSchema } from './example-object'\nexport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nexport { HeaderObjectSchema } from './header-object'\nexport { InfoObjectSchema } from './info-object'\nexport { LicenseObjectSchema } from './license-object'\nexport { LinkObjectSchema } from './link-object'\nexport { MediaTypeObjectSchema } from './media-type-object'\nexport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nexport { OpenApiObjectSchema, type OpenApiObject } from './openapi-object'\nexport { OperationObjectSchema } from './operation-object'\nexport { ParameterObjectSchema } from './parameter-object'\nexport { PathItemObjectSchema } from './path-item-object'\nexport { PathsObjectSchema } from './paths-object'\nexport { RequestBodyObjectSchema } from './request-body-object'\nexport { ResponseObjectSchema } from './response-object'\nexport { ResponsesObjectSchema } from './responses-object'\nexport { RuntimeExpressionSchema } from './runtime-expression'\nexport { SchemaObjectSchema } from './schema-object'\nexport { SecurityRequirementObjectSchema } from './security-requirement-object'\nexport {\n ApiKeyInValues,\n ApiKeySchema,\n AuthorizationCodeFlowSchema,\n ClientCredentialsFlowSchema,\n HttpSchema,\n ImplicitFlowSchema,\n MutualTlsSchema,\n OAuthFlowObjectSchema,\n OAuthFlowsObjectSchema,\n OpenIdConnectSchema,\n PasswordFlowSchema,\n SecuritySchemeObjectSchema,\n} from './security-scheme-object'\nexport { ServerObjectSchema } from './server-object'\nexport { ServerVariableObjectSchema } from './server-variable-object'\nexport { TagObjectSchema } from './tag-object'\nexport { WebhooksObjectSchema } from './webhooks-object'\nexport { XmlObjectSchema } from './xml-object'\n"], | ||
| "mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,yCAAyC;AAClD,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,4CAA4C;AACrD,SAAS,2BAA+C;AACxD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,uCAAuC;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0BAA0B;AACnC,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/info-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ContactObjectSchema } from './contact-object'\nimport { LicenseObjectSchema } from './license-object'\n\n/**\n * Info Object\n *\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed,\n * and MAY be presented in editing or documentation generation tools for convenience.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object\n */\nexport const InfoObjectSchema = z.object({\n /**\n * REQUIRED. The title of the API.\n */\n title: z.string().catch('API'),\n /**\n * A short summary of the API.\n */\n summary: z.string().optional().catch(undefined),\n /**\n * A description of the API. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional().catch(undefined),\n /**\n * A URL to the Terms of Service for the API. This MUST be in the form of a URL.\n */\n termsOfService: z.string().url().optional().catch(undefined),\n /**\n * The contact information for the exposed API.\n */\n contact: ContactObjectSchema.optional().catch(undefined),\n /**\n * The license information for the exposed API.\n **/\n license: LicenseObjectSchema.optional().catch(undefined),\n /**\n * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the\n * version of the API being described or the version of the OpenAPI Description).\n */\n version: z.string().catch('1.0'),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AAU7B,MAAM,mBAAmB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIvC,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK;AAAA;AAAA;AAAA;AAAA,EAI7B,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIlD,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,SAAS,oBAAoB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,SAAS,oBAAoB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvD,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK;AACjC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/license-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const LicenseObjectSchema = z.object({\n /** REQUIRED. The license name used for the API. */\n name: z.string().optional().nullable().catch(null),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: z.string().optional().catch(undefined),\n /**\n * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.\n */\n url: z.string().url().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AASX,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA,EAE1C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI;AAAA;AAAA,EAEjD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIjD,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAClD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/link-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { RuntimeExpressionSchema } from './runtime-expression'\nimport { ServerObjectSchema } from './server-object'\n\n/**\n * Link Object\n *\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the\n * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between\n * responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link\n * information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an\n * operation and using them as parameters while invoking the linked operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object\n */\nexport const LinkObjectSchema = z.object({\n /**\n * A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to\n * an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description.\n */\n operationRef: z.string().optional(),\n /**\n * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually\n * exclusive of the operationRef field.\n */\n operationId: z.string().optional(),\n /**\n * A map representing parameters to pass to an operation as specified with operationId or identified via\n * operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g.\n * path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated\n * and passed to the linked operation.\n */\n parameters: z.record(z.string(), RuntimeExpressionSchema).optional(),\n /**\n * A literal value or {expression} to use as a request body when calling the target operation.\n */\n requestBody: RuntimeExpressionSchema.optional(),\n /**\n * A description of the link. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n /**\n * A server object to be used by the target operation.\n */\n server: ServerObjectSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AAiB5B,MAAM,mBAAmB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvC,cAAc,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,uBAAuB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAInE,aAAa,wBAAwB,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,QAAQ,mBAAmB,SAAS;AACtC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/media-type-object-without-encoding.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ExampleObjectSchema } from './example-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Media Type Object (without encoding)\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchemaWithoutEncoding = z.object({\n /**\n * The schema defining the content of the request, response, or parameter.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.\n * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains\n * an example, the example value SHALL override the example provided by the schema.\n */\n example: z.any().optional(),\n /**\n * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.\n * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains\n * an example, the examples value SHALL override the example provided by the schema.\n */\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n // Note: Don't add `encoding` here.\n // The MediaTypeObjectSchema is used in multiple places. And when it's used in headers, we don't want the encoding.\n // That's what the OpenAPI specification says.\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AAS5B,MAAM,uCAAuC,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3D,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAI/D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/media-type-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { EncodingObjectSchema } from './encoding-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Media Type Object\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchema = z.object({\n /**\n * The schema defining the content of the request, response, or parameter.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.\n * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains\n * an example, the example value SHALL override the example provided by the schema.\n */\n example: z.any().optional(),\n /**\n * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.\n * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains\n * an example, the examples value SHALL override the example provided by the schema.\n */\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n /**\n * A map between a property name and its encoding information. The key, being the property name, MUST exist in the\n * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is\n * multipart or application/x-www-form-urlencoded.\n */\n encoding: z.record(z.string(), EncodingObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AAS5B,MAAM,wBAAwB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI5C,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/openapi-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ComponentsObjectSchema } from './components-object'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { InfoObjectSchema } from './info-object'\nimport { PathsObjectSchema } from './paths-object'\nimport { SecurityRequirementObjectSchema } from './security-requirement-object'\nimport { ServerObjectSchema } from './server-object'\nimport { TagObjectSchema } from './tag-object'\nimport { WebhooksObjectSchema } from './webhooks-object'\n\nexport type OpenApiObject = z.infer<typeof OpenApiObjectSchema>\n\n/**\n * OpenAPI Object\n *\n * This is the root object of the OpenAPI Description.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object\n */\nexport const OpenApiObjectSchema = z.object({\n /**\n * REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The\n * openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API\n * info.version string.\n */\n openapi: z.string().regex(/^3\\.1\\.\\d+$/),\n /**\n * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.\n */\n info: InfoObjectSchema,\n /**\n * The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be\n * in the form of a URI.\n */\n jsonSchemaDialect: z.string().optional(),\n /**\n * An array of Server Objects, which provide connectivity information to a target server. If the servers field is\n * not provided, or is an empty array, the default value would be a Server Object with a url value of /.\n */\n servers: z.array(ServerObjectSchema).optional(),\n /**\n * The available paths and operations for the API.\n */\n paths: PathsObjectSchema.optional(),\n /**\n * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.\n * Closely related to the callbacks feature, this section describes requests initiated other than by an API call,\n * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the\n * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the\n * expected responses. An example is available.\n */\n webhooks: WebhooksObjectSchema.optional(),\n /**\n * An element to hold various Objects for the OpenAPI Description.\n */\n components: ComponentsObjectSchema.optional(),\n /**\n * A declaration of which security mechanisms can be used across the API. The list of values includes alternative\n * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied\n * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to\n * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included\n * in the array.\n */\n security: z.array(SecurityRequirementObjectSchema).optional(),\n /**\n * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to\n * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared.\n * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list\n * MUST be unique.\n */\n tags: z.array(TagObjectSchema).optional(),\n /**\n * Additional external documentation.\n */\n externalDocs: ExternalDocumentationObjectSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,8BAA8B;AACvC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAW9B,MAAM,sBAAsB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1C,SAAS,EAAE,OAAO,EAAE,MAAM,aAAa;AAAA;AAAA;AAAA;AAAA,EAIvC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKN,mBAAmB,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvC,SAAS,EAAE,MAAM,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,OAAO,kBAAkB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlC,UAAU,qBAAqB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,YAAY,uBAAuB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5C,UAAU,EAAE,MAAM,+BAA+B,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5D,MAAM,EAAE,MAAM,eAAe,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,cAAc,kCAAkC,SAAS;AAC3D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/operation-object-without-callbacks.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { RequestBodyObjectSchema } from './request-body-object'\nimport { ResponseObjectSchema } from './response-object'\nimport { SecurityRequirementObjectSchema } from './security-requirement-object'\n\n/**\n * Operation Object (without callbacks, used in callbacks)\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchemaWithoutCallbacks = z.object({\n /**\n * A list of tags for API documentation control. Tags can be used for logical\n * grouping of operations by resources or any other qualifier.\n */\n 'tags': z.string().array().optional(),\n /**\n * A short summary of what the operation does.\n */\n 'summary': z.string().optional(),\n /**\n * A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.\n */\n 'description': z.string().optional(),\n /**\n * External documentation object\n */\n 'externalDocs': ExternalDocumentationObjectSchema.optional(),\n /**\n * Unique string used to identify the operation. The id MUST be unique among all operations described in the API.\n * The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an\n * operation, therefore, it is RECOMMENDED to follow bin common programming naming conventions.\n */\n 'operationId': z.string().optional(),\n /**\n * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item,\n * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A\n * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link\n * to parameters that are defined in the OpenAPI Object's components.parameters.\n */\n 'parameters': ParameterObjectSchema.array().optional(),\n /**\n * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the\n * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the\n * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined\n * semantics and SHOULD be avoided if possible.\n */\n 'requestBody': RequestBodyObjectSchema.optional(),\n /**\n * The list of possible responses as they are returned from executing this operation.\n */\n 'responses': z.record(z.string(), ResponseObjectSchema).optional(),\n /**\n * A declaration of which security mechanisms can be used across the API. The list of\n * values includes alternative security requirement objects that can be used. Only\n * one of the security requirement objects need to be satisfied to authorize a request.\n * Individual operations can override this definition. To make security optional, an empty\n * security requirement ({}) can be included in the array.\n */\n 'security': z.array(SecurityRequirementObjectSchema).optional(),\n /**\n * Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default\n * value is false.\n */\n 'deprecated': z.boolean().optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,uCAAuC;AASzC,MAAM,wCAAwC,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAK5D,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,WAAW,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/B,eAAe,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAInC,gBAAgB,kCAAkC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3D,eAAe,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOnC,cAAc,sBAAsB,MAAM,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOrD,eAAe,wBAAwB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIhD,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjE,YAAY,EAAE,MAAM,+BAA+B,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK9D,cAAc,EAAE,QAAQ,EAAE,SAAS;AACrC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/operation-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { CallbackObjectSchema } from './callback-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\n\ntype OperationObject = z.infer<typeof OperationObjectSchemaWithoutCallbacks> & {\n callbacks?: Record<string, z.infer<typeof CallbackObjectSchema>>\n}\n\n/**\n * Operation Object\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchema: z.ZodType<OperationObject> = OperationObjectSchemaWithoutCallbacks.extend({\n /**\n * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a\n * Path Item Object that describes a set of requests that may be initiated by the API provider and the\n * expected responses. The key value used to identify the callback object is an expression, evaluated\n * at runtime, that identifies a URL to be used for the callback operation.\n */\n 'callbacks': z.record(z.string(), CallbackObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,6CAA6C;AAa/C,MAAM,wBAAoD,sCAAsC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5G,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AACnE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/parameter-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Parameter Object\n *\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object\n */\nexport const ParameterObjectSchema = z.object({\n /**\n * REQUIRED. The name of the parameter. Parameter names are case sensitive.\n *\n * - If in is \"path\", the name field MUST correspond to a template expression occurring within the path field in the\n * Paths Object. See Path Templating for further information.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition\n * SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in property.\n **/\n name: z.string(),\n /**\n * REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\".\n **/\n in: z.enum(['query', 'header', 'path', 'cookie']),\n /**\n * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich\n * text representation.\n **/\n description: z.string().optional(),\n /**\n * Determines whether this parameter is mandatory. If the parameter location is \"path\", this property is REQUIRED and\n * its value MUST be true. Otherwise, the property MAY be included and its default value is false.\n **/\n required: z.boolean().optional(),\n /**\n * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.\n **/\n deprecated: z.boolean().optional(),\n /**\n * Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a\n * parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be\n * serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is\n * likely to be removed in a later revision.\n **/\n allowEmptyValue: z.boolean().optional(),\n /**\n * Describes how the parameter value will be serialized depending on the type of the parameter value. Default values\n * (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.\n **/\n style: z.enum(['matrix', 'label', 'form', 'simple', 'spaceDelimited', 'pipeDelimited', 'deepObject']).optional(),\n /**\n * When this is true, parameter values of type array or object generate separate parameters for each value of the\n * array or key-value pair of the map. For other types of parameters this property has no effect. When style is form,\n * the default value is true. For all other styles, the default value is false. */\n explode: z.boolean().optional(),\n /**\n * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;=\n * to be included without percent-encoding. This property only applies to parameters with an in value of query.\n * The default value is false.\n **/\n allowReserved: z.boolean().optional(),\n /**\n * The schema defining the type used for the parameter.\n **/\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the parameter's potential value. The example SHOULD match the specified schema and encoding properties\n * if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema\n * that contains an example, the example value SHALL override the example provided by the schema. To represent\n * examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the\n * example with escaping where necessary.\n **/\n example: z.any().optional(),\n /**\n * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as\n * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,\n * if referencing a schema that contains an example, the examples value SHALL override the example provided by the\n * schema.\n **/\n examples: z.record(z.string(), ExampleObjectSchema).optional(),\n /**\n * A map containing the representations for the parameter. The key is the media type and the value describes it.\n * The map MUST only contain one entry.\n **/\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAElB,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AAW5B,MAAM,wBAAwB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU5C,MAAM,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIf,IAAI,EAAE,KAAK,CAAC,SAAS,UAAU,QAAQ,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhD,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjC,UAAU,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/B,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjC,iBAAiB,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtC,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,QAAQ,UAAU,kBAAkB,iBAAiB,YAAY,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/G,SAAS,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM9B,eAAe,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/path-item-object-without-callbacks.ts"], | ||
| "sourcesContent": ["import type { z } from 'zod'\nimport { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\n\ntype PathItemObjectSchemaWithoutCallbacks = z.infer<typeof BasePathItemObjectSchema> & {\n get?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n put?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n post?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n delete?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n options?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n head?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n patch?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n trace?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n}\n\n/**\n * Path Item Object (without callbacks)\n *\n * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path\n * itself is still exposed to the documentation viewer but they will not know which operations and parameters are\n * available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const PathItemObjectSchemaWithoutCallbacks: z.ZodType<PathItemObjectSchemaWithoutCallbacks> =\n BasePathItemObjectSchema.extend({\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchemaWithoutCallbacks.optional(),\n })\n"], | ||
| "mappings": "AACA,SAAS,gCAAgC;AACzC,SAAS,6CAA6C;AAsB/C,MAAM,uCACX,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI9B,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,QAAQ,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,SAAS,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,OAAO,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAItD,OAAO,sCAAsC,SAAS;AACxD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/path-item-object.ts"], | ||
| "sourcesContent": ["import { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchema } from './operation-object'\n\n/**\n * Path Item Object\n *\n * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path\n * itself is still exposed to the documentation viewer but they will not know which operations and parameters are\n * available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const PathItemObjectSchema = BasePathItemObjectSchema.extend({\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchema.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchema.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchema.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchema.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchema.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchema.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchema.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,gCAAgC;AACzC,SAAS,6BAA6B;AAW/B,MAAM,uBAAuB,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIlE,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,QAAQ,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvC,SAAS,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,OAAO,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAItC,OAAO,sBAAsB,SAAS;AACxC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/paths-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { PathItemObjectSchema } from './path-item-object'\n\n/**\n * Paths Object\n *\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the\n * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL)\n * constraints.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object\n */\nexport const PathsObjectSchema = z.record(\n /**\n * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended\n * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full\n * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their\n * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as\n * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use.\n */\n z.string(),\n PathItemObjectSchema,\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AAW9B,MAAM,oBAAoB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,EAAE,OAAO;AAAA,EACT;AACF;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/request-body-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { EncodingObjectSchema } from './encoding-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\n\n/**\n * Request Body Object\n *\n * Describes a single request body.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object\n */\nexport const RequestBodyObjectSchema = z.object({\n /**\n * A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n /**\n * REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/*\"\n */\n content: z.record(z.string(), MediaTypeObjectSchema),\n /**\n * Determines if the request body is required in the request. Defaults to false.\n */\n required: z.boolean().optional(),\n /**\n * Only mentioned in the example:\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object\n */\n encoding: z.record(z.string(), EncodingObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AAS/B,MAAM,0BAA0B,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI9C,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjC,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB;AAAA;AAAA;AAAA;AAAA,EAInD,UAAU,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/response-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { HeaderObjectSchema } from './header-object'\nimport { LinkObjectSchema } from './link-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\n\n/**\n * Response Object\n *\n * Describes a single response from an API operation, including design-time, static links to operations based on the response.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object\n */\nexport const ResponseObjectSchema = z.object({\n /**\n * REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string(),\n /**\n * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is\n * defined with the name \"Content-Type\", it SHALL be ignored.\n */\n headers: z.record(z.string(), HeaderObjectSchema).optional(),\n /**\n * A map containing descriptions of potential response payloads. The key is a media type or media type range and the\n * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.\n * \"text/plain\" overrides \"text/*\"\n */\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n /**\n * A map of operations links that can be followed from the response. The key of the map is a short name for the link,\n * following the naming constraints of the names for Component Objects.\n */\n links: z.record(z.string(), LinkObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AAS/B,MAAM,uBAAuB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,aAAa,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK9D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,gBAAgB,EAAE,SAAS;AACzD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/responses-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ResponseObjectSchema } from './response-object'\n\n/**\n * Responses Object\n *\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected\n * response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known\n * in advance. However, documentation is expected to cover a successful operation response and any known errors.\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the\n * Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be\n * the response for a successful operation call.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object\n */\nexport const ResponsesObjectSchema = z.record(\n /**\n * Response Object | Reference Object\tAny HTTP status code can be used as the property name, but only one property per\n * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks\n * (for example, \"200\") for compatibility between JSON and YAML. To define a range of response codes, this field MAY\n * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299.\n * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an\n * explicit code, the explicit code definition takes precedence over the range definition for that code.\n */\n z.string(),\n ResponseObjectSchema,\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AAkB9B,MAAM,wBAAwB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrC,EAAE,OAAO;AAAA,EACT;AACF;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/runtime-expression.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n// Helper for validating the expression syntax\nconst isValidRuntimeExpression = (value: string): boolean => {\n // Handle pure runtime expressions starting with $\n if (value.startsWith('$')) {\n return validatePureExpression(value)\n }\n\n // Handle embedded expressions in strings\n if (value.includes('{')) {\n // Extract all expressions within curly braces\n const expressions = value.match(/\\{([^}]+)\\}/g)\n if (!expressions) {\n return false\n }\n\n // Validate each embedded expression\n return expressions.every((expr) => {\n // Remove curly braces and validate the inner expression\n const innerExpr = expr.slice(1, -1)\n return validatePureExpression(innerExpr)\n })\n }\n\n return false\n}\n\n// Helper to validate a pure runtime expression (without curly braces)\nconst validatePureExpression = (value: string): boolean => {\n // Remove $ prefix if present\n const expression = value.startsWith('$') ? value.slice(1) : value\n\n // Basic expressions without references\n if (['method', 'url', 'statusCode'].includes(expression)) {\n return true\n }\n\n // First split on # to separate the JSON pointer if it exists\n const [mainPart, jsonPointer] = expression.split('#')\n\n // Request and response references\n const [source, type, ...rest] = mainPart?.split('.') ?? []\n\n if (!['request', 'response'].includes(source ?? '')) {\n return false\n }\n\n if (!['header', 'query', 'path', 'body'].includes(type ?? '')) {\n return false\n }\n\n // For body references, validate JSON pointer syntax\n if (type === 'body') {\n if (jsonPointer === undefined) {\n return false\n }\n\n // Empty pointer ('') and root pointer ('/') are valid\n if (jsonPointer === '' || jsonPointer === '/') {\n return true\n }\n\n // For other pointers, validate the path\n if (!jsonPointer.startsWith('/')) {\n return false\n }\n\n // Split on / and validate each segment\n const segments = jsonPointer.slice(1).split('/')\n\n return segments.every((segment) => {\n // Decode any JSON Pointer escape sequences\n const decoded = segment.replace(/~1/g, '/').replace(/~0/g, '~')\n\n // Segment must not be empty unless it's the last one\n return decoded.length > 0\n })\n }\n\n // For header references, validate header name\n if (type === 'header') {\n // Header names cannot contain spaces\n const headerName = rest.join('.')\n return !headerName.includes(' ')\n }\n\n // For other types (query, path), ensure there's a field name\n return rest.length === 1\n}\n\n/**\n * Runtime Expression Schema\n *\n * Runtime expressions allow defining values based on information that will only be available within the HTTP message in\n * an actual API call. This mechanism is used by Link Objects and Callback Objects.\n *\n * Expressions can be:\n * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id)\n * 2. Embedded expressions in strings using curly braces (e.g. \"Hello {$request.body#/name}!\")\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions\n */\nexport const RuntimeExpressionSchema = z.string().refine(isValidRuntimeExpression, {\n message: `Invalid runtime expression. Runtime expressions must:\n - Start with $ or contain expressions in curly braces {}\n - Use one of: $method, $url, $statusCode\n - Or follow pattern: $request|response.(header|query|path|body)\n - For body refs, include valid JSON pointer (e.g. #/user/id)\n - For headers, use valid header names without spaces\n Example valid expressions:\n - Pure: $method, $request.path.id, $response.body#/status\n - Embedded: \"Hello {$request.body#/name}!\", \"Status: {$statusCode}\"`,\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAGlB,MAAM,2BAA2B,CAAC,UAA2B;AAE3D,MAAI,MAAM,WAAW,GAAG,GAAG;AACzB,WAAO,uBAAuB,KAAK;AAAA,EACrC;AAGA,MAAI,MAAM,SAAS,GAAG,GAAG;AAEvB,UAAM,cAAc,MAAM,MAAM,cAAc;AAC9C,QAAI,CAAC,aAAa;AAChB,aAAO;AAAA,IACT;AAGA,WAAO,YAAY,MAAM,CAAC,SAAS;AAEjC,YAAM,YAAY,KAAK,MAAM,GAAG,EAAE;AAClC,aAAO,uBAAuB,SAAS;AAAA,IACzC,CAAC;AAAA,EACH;AAEA,SAAO;AACT;AAGA,MAAM,yBAAyB,CAAC,UAA2B;AAEzD,QAAM,aAAa,MAAM,WAAW,GAAG,IAAI,MAAM,MAAM,CAAC,IAAI;AAG5D,MAAI,CAAC,UAAU,OAAO,YAAY,EAAE,SAAS,UAAU,GAAG;AACxD,WAAO;AAAA,EACT;AAGA,QAAM,CAAC,UAAU,WAAW,IAAI,WAAW,MAAM,GAAG;AAGpD,QAAM,CAAC,QAAQ,MAAM,GAAG,IAAI,IAAI,UAAU,MAAM,GAAG,KAAK,CAAC;AAEzD,MAAI,CAAC,CAAC,WAAW,UAAU,EAAE,SAAS,UAAU,EAAE,GAAG;AACnD,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,CAAC,UAAU,SAAS,QAAQ,MAAM,EAAE,SAAS,QAAQ,EAAE,GAAG;AAC7D,WAAO;AAAA,EACT;AAGA,MAAI,SAAS,QAAQ;AACnB,QAAI,gBAAgB,QAAW;AAC7B,aAAO;AAAA,IACT;AAGA,QAAI,gBAAgB,MAAM,gBAAgB,KAAK;AAC7C,aAAO;AAAA,IACT;AAGA,QAAI,CAAC,YAAY,WAAW,GAAG,GAAG;AAChC,aAAO;AAAA,IACT;AAGA,UAAM,WAAW,YAAY,MAAM,CAAC,EAAE,MAAM,GAAG;AAE/C,WAAO,SAAS,MAAM,CAAC,YAAY;AAEjC,YAAM,UAAU,QAAQ,QAAQ,OAAO,GAAG,EAAE,QAAQ,OAAO,GAAG;AAG9D,aAAO,QAAQ,SAAS;AAAA,IAC1B,CAAC;AAAA,EACH;AAGA,MAAI,SAAS,UAAU;AAErB,UAAM,aAAa,KAAK,KAAK,GAAG;AAChC,WAAO,CAAC,WAAW,SAAS,GAAG;AAAA,EACjC;AAGA,SAAO,KAAK,WAAW;AACzB;AAcO,MAAM,0BAA0B,EAAE,OAAO,EAAE,OAAO,0BAA0B;AAAA,EACjF,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/schema-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nimport { DiscriminatorObjectSchema } from './discriminator-object'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { XmlObjectSchema } from './xml-object'\n\n/**\n * The Schema Object allows the definition of input and output data types.\n * These types can be objects, but also primitives and arrays.\n */\nexport const SchemaObjectSchema: z.ZodType<Record<string, any>> = z.object({\n // Standard JSON Schema fields\n title: z.string().optional(),\n description: z.string().optional(),\n default: z.any().optional(),\n examples: z.array(z.any()).optional(),\n multipleOf: z.number().optional(),\n maximum: z.number().optional(),\n exclusiveMaximum: z.number().positive().optional(),\n minimum: z.number().optional(),\n exclusiveMinimum: z.number().positive().optional(),\n maxLength: z.number().int().optional(),\n minLength: z.number().int().optional(),\n pattern: z.string().optional(),\n maxItems: z.number().int().optional(),\n minItems: z.number().int().optional(),\n uniqueItems: z.boolean().optional(),\n maxProperties: z.number().int().optional(),\n minProperties: z.number().int().optional(),\n required: z.array(z.string()).optional(),\n enum: z.array(z.any()).optional(),\n type: z\n .union([\n z.literal('array'),\n z.literal('boolean'),\n z.literal('integer'),\n z.literal('number'),\n z.literal('object'),\n z.literal('string'),\n z.literal('null'),\n z.array(\n z.union([\n z.literal('array'),\n z.literal('boolean'),\n z.literal('integer'),\n z.literal('number'),\n z.literal('object'),\n z.literal('string'),\n z.literal('null'),\n ]),\n ),\n ])\n .optional(),\n\n // JSON Schema fields\n $ref: z.string().optional(),\n $id: z.string().optional(),\n $schema: z.string().optional(),\n $defs: z\n .record(\n z.string(),\n z.lazy(() => SchemaObjectSchema),\n )\n .optional(),\n const: z.any().optional(),\n $dynamicRef: z.string().optional(),\n $dynamicAnchor: z.string().optional(),\n\n // OpenAPI specific fields\n format: z.string().optional(),\n contentMediaType: z.string().optional(),\n contentEncoding: z.string().optional(),\n contentSchema: z.lazy(() => SchemaObjectSchema).optional(),\n deprecated: z.boolean().optional(),\n readOnly: z.boolean().optional(),\n writeOnly: z.boolean().optional(),\n example: z.any().optional(),\n\n // Object-related fields\n properties: z\n .record(\n z.string(),\n z.lazy(() => SchemaObjectSchema),\n )\n .optional(),\n additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema)]).optional(),\n patternProperties: z\n .record(\n z.string(),\n z.lazy(() => SchemaObjectSchema),\n )\n .optional(),\n\n // Array-related fields\n items: z.lazy(() => SchemaObjectSchema).optional(),\n prefixItems: z.array(z.lazy(() => SchemaObjectSchema)).optional(),\n\n // Composition-related fields\n allOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(),\n oneOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(),\n anyOf: z.array(z.lazy(() => SchemaObjectSchema)).optional(),\n not: z.lazy(() => SchemaObjectSchema).optional(),\n\n // Discriminator (only valid with oneOf, anyOf, or allOf)\n discriminator: DiscriminatorObjectSchema.optional(),\n\n // Additional metadata\n externalDocs: ExternalDocumentationObjectSchema.optional(),\n xml: XmlObjectSchema.optional(),\n})\n\n// not used but kept for consistency\n// export type SchemaObject = z.infer<typeof SchemaObjectSchema>\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAElB,SAAS,iCAAiC;AAC1C,SAAS,yCAAyC;AAClD,SAAS,uBAAuB;AAMzB,MAAM,qBAAqD,EAAE,OAAO;AAAA;AAAA,EAEzE,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA,EAC1B,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EACpC,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAAA,EACjD,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAAA,EACjD,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACrC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACrC,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACpC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACpC,aAAa,EAAE,QAAQ,EAAE,SAAS;AAAA,EAClC,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACzC,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACzC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA,EACvC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EAChC,MAAM,EACH,MAAM;AAAA,IACL,EAAE,QAAQ,OAAO;AAAA,IACjB,EAAE,QAAQ,SAAS;AAAA,IACnB,EAAE,QAAQ,SAAS;AAAA,IACnB,EAAE,QAAQ,QAAQ;AAAA,IAClB,EAAE,QAAQ,QAAQ;AAAA,IAClB,EAAE,QAAQ,QAAQ;AAAA,IAClB,EAAE,QAAQ,MAAM;AAAA,IAChB,EAAE;AAAA,MACA,EAAE,MAAM;AAAA,QACN,EAAE,QAAQ,OAAO;AAAA,QACjB,EAAE,QAAQ,SAAS;AAAA,QACnB,EAAE,QAAQ,SAAS;AAAA,QACnB,EAAE,QAAQ,QAAQ;AAAA,QAClB,EAAE,QAAQ,QAAQ;AAAA,QAClB,EAAE,QAAQ,QAAQ;AAAA,QAClB,EAAE,QAAQ,MAAM;AAAA,MAClB,CAAC;AAAA,IACH;AAAA,EACF,CAAC,EACA,SAAS;AAAA;AAAA,EAGZ,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,KAAK,EAAE,OAAO,EAAE,SAAS;AAAA,EACzB,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,OAAO,EACJ;AAAA,IACC,EAAE,OAAO;AAAA,IACT,EAAE,KAAK,MAAM,kBAAkB;AAAA,EACjC,EACC,SAAS;AAAA,EACZ,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACxB,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,gBAAgB,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAGpC,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA,EAC5B,kBAAkB,EAAE,OAAO,EAAE,SAAS;AAAA,EACtC,iBAAiB,EAAE,OAAO,EAAE,SAAS;AAAA,EACrC,eAAe,EAAE,KAAK,MAAM,kBAAkB,EAAE,SAAS;AAAA,EACzD,YAAY,EAAE,QAAQ,EAAE,SAAS;AAAA,EACjC,UAAU,EAAE,QAAQ,EAAE,SAAS;AAAA,EAC/B,WAAW,EAAE,QAAQ,EAAE,SAAS;AAAA,EAChC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA,EAG1B,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,IACT,EAAE,KAAK,MAAM,kBAAkB;AAAA,EACjC,EACC,SAAS;AAAA,EACZ,sBAAsB,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,KAAK,MAAM,kBAAkB,CAAC,CAAC,EAAE,SAAS;AAAA,EACxF,mBAAmB,EAChB;AAAA,IACC,EAAE,OAAO;AAAA,IACT,EAAE,KAAK,MAAM,kBAAkB;AAAA,EACjC,EACC,SAAS;AAAA;AAAA,EAGZ,OAAO,EAAE,KAAK,MAAM,kBAAkB,EAAE,SAAS;AAAA,EACjD,aAAa,EAAE,MAAM,EAAE,KAAK,MAAM,kBAAkB,CAAC,EAAE,SAAS;AAAA;AAAA,EAGhE,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,kBAAkB,CAAC,EAAE,SAAS;AAAA,EAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,kBAAkB,CAAC,EAAE,SAAS;AAAA,EAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,kBAAkB,CAAC,EAAE,SAAS;AAAA,EAC1D,KAAK,EAAE,KAAK,MAAM,kBAAkB,EAAE,SAAS;AAAA;AAAA,EAG/C,eAAe,0BAA0B,SAAS;AAAA;AAAA,EAGlD,cAAc,kCAAkC,SAAS;AAAA,EACzD,KAAK,gBAAgB,SAAS;AAChC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/security-requirement-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Security Requirement Object\n *\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a\n * security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for\n * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are\n * required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security\n * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This\n * enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object\n */\nexport const SecurityRequirementObjectSchema = z.record(\n /**\n * Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components\n * Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names\n * required for the execution, and the list MAY be empty if authorization does not require a specified scope.\n *\n * For other security scheme types, the array MAY contain a list of role names which are required for the execution,\n * but are not otherwise defined or exchanged in-band.\n **/\n z.string(),\n /**\n * A list of scope names required for the execution, and the list MAY be empty if authorization does not require a\n * specified scope.\n */\n z.array(z.string()),\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAoBX,MAAM,kCAAkC,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS/C,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKT,EAAE,MAAM,EAAE,OAAO,CAAC;AACpB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/security-scheme-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nconst DescriptionSchema = z.object({\n /**\n * A description for security scheme. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n})\n\nexport const ApiKeyInValues = ['query', 'header', 'cookie'] as const\n\nexport const ApiKeySchema = DescriptionSchema.extend({\n /**\n * REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\",\n * \"openIdConnect\".\n */\n type: z.literal('apiKey'),\n /**\n * REQUIRED. The name of the header, query or cookie parameter to be used.\n *\n * TODO: Why do we use an empty string as the default?\n */\n name: z.string().optional().default(''),\n /**\n * REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\".\n */\n in: z.enum(ApiKeyInValues).optional().default('header').catch('header'),\n})\n\nexport const HttpSchema = DescriptionSchema.extend({\n /**\n * REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\",\n * \"openIdConnect\".\n */\n type: z.literal('http'),\n /**\n * REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.\n * The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive,\n * as defined in RFC7235.\n */\n scheme: z\n .string()\n .toLowerCase()\n .pipe(z.enum(['basic', 'bearer']))\n .optional()\n .default('basic'),\n /**\n * A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an\n * authorization server, so this information is primarily for documentation purposes.\n */\n bearerFormat: z.union([z.literal('JWT'), z.literal('bearer'), z.string()]).optional(),\n})\n\nexport const OpenIdConnectSchema = DescriptionSchema.extend({\n /**\n * REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\",\n * \"openIdConnect\".\n */\n type: z.literal('openIdConnect'),\n /**\n * REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.\n */\n openIdConnectUrl: z.string().optional().default(''),\n})\n\n/**\n * REQUIRED. The authorization URL to be used for this flow. This MUST be in\n * the form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst authorizationUrl = z.string().default('')\n\n/**\n * REQUIRED. The token URL to be used for this flow. This MUST be in the\n * form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst tokenUrl = z.string().default('')\n\n/**\n * OAuth Flow Object\n *\n * Configuration details for a supported OAuth Flow\n */\nexport const OAuthFlowObjectSchema = z.object({\n /**\n * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires\n * the use of TLS.\n */\n refreshUrl: z.string().optional(),\n /**\n * REQUIRED. The available scopes for the OAuth2 security scheme. A map\n * between the scope name and a short description for it. The map MAY be empty.\n */\n scopes: z.record(z.string(), z.string().optional()).optional().default({}).catch({}),\n})\n\nexport const ImplicitFlowSchema = OAuthFlowObjectSchema.extend({\n type: z.literal('implicit').optional(),\n authorizationUrl,\n})\n\nexport const PasswordFlowSchema = OAuthFlowObjectSchema.extend({\n type: z.literal('password').optional(),\n tokenUrl,\n})\n\nexport const ClientCredentialsFlowSchema = OAuthFlowObjectSchema.extend({\n type: z.literal('clientCredentials').optional(),\n tokenUrl,\n})\n\nexport const AuthorizationCodeFlowSchema = OAuthFlowObjectSchema.extend({\n type: z.literal('authorizationCode').optional(),\n authorizationUrl,\n tokenUrl,\n})\n\n/**\n * OAuth Flows Object\n *\n * Allows configuration of the supported OAuth Flows.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oauth-flows-object\n */\nexport const OAuthFlowsObjectSchema = DescriptionSchema.extend({\n /**\n * REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\",\n * \"openIdConnect\".\n */\n type: z.literal('oauth2'),\n /**\n * REQUIRED. An object containing configuration information for the flow types supported.\n */\n flows: z\n .object({\n /**\n * Configuration for the OAuth Implicit flow\n */\n implicit: ImplicitFlowSchema.optional(),\n /**\n * Configuration for the OAuth Resource Owner Password flow\n */\n password: PasswordFlowSchema.optional(),\n /**\n * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.\n */\n clientCredentials: ClientCredentialsFlowSchema.optional(),\n /**\n * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.\n */\n authorizationCode: AuthorizationCodeFlowSchema.optional(),\n })\n .partial(),\n})\n\nexport const MutualTlsSchema = DescriptionSchema.extend({\n /**\n * REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\",\n * \"openIdConnect\".\n */\n type: z.literal('mutualTLS'),\n})\n\n/**\n * Security Scheme Object\n *\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query\n * parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials\n * and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit\n * flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is\n * Authorization Code Grant flow with PKCE.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object\n */\nexport const SecuritySchemeObjectSchema = z.union([\n ApiKeySchema,\n HttpSchema,\n MutualTlsSchema,\n OAuthFlowsObjectSchema,\n OpenIdConnectSchema,\n])\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAElB,MAAM,oBAAoB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIjC,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;AAEM,MAAM,iBAAiB,CAAC,SAAS,UAAU,QAAQ;AAEnD,MAAM,eAAe,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKnD,MAAM,EAAE,QAAQ,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAAA;AAAA;AAAA;AAAA,EAItC,IAAI,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,QAAQ,QAAQ,EAAE,MAAM,QAAQ;AACxE,CAAC;AAEM,MAAM,aAAa,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjD,MAAM,EAAE,QAAQ,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMtB,QAAQ,EACL,OAAO,EACP,YAAY,EACZ,KAAK,EAAE,KAAK,CAAC,SAAS,QAAQ,CAAC,CAAC,EAChC,SAAS,EACT,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,cAAc,EAAE,MAAM,CAAC,EAAE,QAAQ,KAAK,GAAG,EAAE,QAAQ,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS;AACtF,CAAC;AAEM,MAAM,sBAAsB,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAK1D,MAAM,EAAE,QAAQ,eAAe;AAAA;AAAA;AAAA;AAAA,EAI/B,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AACpD,CAAC;AAMD,MAAM,mBAAmB,EAAE,OAAO,EAAE,QAAQ,EAAE;AAM9C,MAAM,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE;AAO/B,MAAM,wBAAwB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAK5C,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhC,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrF,CAAC;AAEM,MAAM,qBAAqB,sBAAsB,OAAO;AAAA,EAC7D,MAAM,EAAE,QAAQ,UAAU,EAAE,SAAS;AAAA,EACrC;AACF,CAAC;AAEM,MAAM,qBAAqB,sBAAsB,OAAO;AAAA,EAC7D,MAAM,EAAE,QAAQ,UAAU,EAAE,SAAS;AAAA,EACrC;AACF,CAAC;AAEM,MAAM,8BAA8B,sBAAsB,OAAO;AAAA,EACtE,MAAM,EAAE,QAAQ,mBAAmB,EAAE,SAAS;AAAA,EAC9C;AACF,CAAC;AAEM,MAAM,8BAA8B,sBAAsB,OAAO;AAAA,EACtE,MAAM,EAAE,QAAQ,mBAAmB,EAAE,SAAS;AAAA,EAC9C;AAAA,EACA;AACF,CAAC;AASM,MAAM,yBAAyB,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7D,MAAM,EAAE,QAAQ,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIxB,OAAO,EACJ,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,UAAU,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA,IAItC,UAAU,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA,IAItC,mBAAmB,4BAA4B,SAAS;AAAA;AAAA;AAAA;AAAA,IAIxD,mBAAmB,4BAA4B,SAAS;AAAA,EAC1D,CAAC,EACA,QAAQ;AACb,CAAC;AAEM,MAAM,kBAAkB,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtD,MAAM,EAAE,QAAQ,WAAW;AAC7B,CAAC;AAeM,MAAM,6BAA6B,EAAE,MAAM;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/server-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ServerVariableObjectSchema } from './server-variable-object'\n\n/**\n * Server Object\n *\n * An object representing a Server.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object\n */\nexport const ServerObjectSchema = z.object({\n /**\n * REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that\n * the host location is relative to the location where the OpenAPI document is being served. Variable substitutions\n * will be made when a variable is named in {brackets}.\n */\n url: z.string(),\n /**\n * An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text\n * representation.\n */\n description: z.string().optional(),\n /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */\n variables: z.record(z.string(), ServerVariableObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,kCAAkC;AASpC,MAAM,qBAAqB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzC,KAAK,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKd,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAEjC,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,0BAA0B,EAAE,SAAS;AACvE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/server-variable-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Server Variable Object\n *\n * An object representing a Server Variable for server URL template substitution.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object\n */\nexport const ServerVariableObjectSchema = z.object({\n /**\n * An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.\n */\n enum: z.array(z.string()).optional(),\n /**\n * REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied.\n * Note this behavior is different than the Schema Object's treatment of default values, because in those cases\n * parameter values are optional. If the enum is defined, the value MUST exist in the enum's values.\n */\n default: z.string().optional(),\n /**\n * An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.\n */\n description: z.string().optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AASX,MAAM,6BAA6B,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIjD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7B,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/tag-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\n\n/**\n * Tag Object\n *\n * Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag\n * defined in the Operation Object instances.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object\n */\nexport const TagObjectSchema = z.object({\n /** REQUIRED. The name of the tag. */\n 'name': z.string(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n 'description': z.string().optional().catch(undefined),\n /** Additional external documentation for this tag. */\n 'externalDocs': ExternalDocumentationObjectSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yCAAyC;AAU3C,MAAM,kBAAkB,EAAE,OAAO;AAAA;AAAA,EAEtC,QAAQ,EAAE,OAAO;AAAA;AAAA,EAEjB,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEpD,gBAAgB,kCAAkC,SAAS;AAC7D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/webhooks-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks'\n\n/**\n * Webhooks Object\n *\n * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.\n * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for\n * example by an out of band registration.\n *\n * The key name is a unique string to refer to each webhook, while the\n * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the\n * expected responses. An example is available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks\n */\nexport const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4CAA4C;AAe9C,MAAM,uBAAuB,EAAE,OAAO,EAAE,OAAO,GAAG,oCAAoC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/processed/xml-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n *\n * XML Object\n *\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used\n * to add that information. See examples for expected behavior.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#xml-object\n */\nexport const XmlObjectSchema = z.object({\n /**\n * Replaces the name of the element/attribute used for the described schema property.\n */\n name: z.string().optional(),\n\n /**\n * The URI of the namespace definition. Value MUST be in the form of a URL.\n */\n namespace: z.string().optional(),\n\n /**\n * The prefix to be used for the name.\n */\n prefix: z.string().optional(),\n\n /**\n * Declares whether the property definition translates to an attribute instead of an element.\n * Default value is false.\n */\n attribute: z.boolean().optional(),\n\n /**\n * MAY be used only for an array definition.\n * Signifies whether the array is wrapped (for example, <books><book/><book/></books>)\n * or unwrapped (<book/><book/>). Default value is false.\n */\n wrapped: z.boolean().optional(),\n})\n\n// not used but kept for consistency\n// export type XMLObject = z.infer<typeof XmlObjectSchema>\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,kBAAkB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAItC,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAK1B,WAAW,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAK/B,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAM5B,WAAW,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOhC,SAAS,EAAE,QAAQ,EAAE,SAAS;AAChC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/base-path-item-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { BasePathItemObjectSchema as OriginalBasePathItemObjectSchema } from '../processed/base-path-item-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Base Path Item Object Schema\n *\n * This helps break circular dependencies between path-item-object and callback-object\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const BasePathItemObjectSchema = OriginalBasePathItemObjectSchema.extend({\n /**\n * A list of parameters that are applicable for all the operations described under this path. These parameters can be\n * overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A\n * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link\n * to parameters that are defined at the OpenAPI Object's components/parameters.\n */\n parameters: z.array(z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B,wCAAwC;AAC7E,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AAS/B,MAAM,2BAA2B,iCAAiC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO9E,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,EAAE,SAAS;AACxF,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/callback-object.ts"], | ||
| "sourcesContent": ["import { CallbackObjectSchema as OriginalCallbackObjectSchema } from '../processed/callback-object'\n\n/**\n * Callback Object\n *\n * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a\n * Path Item Object that describes a set of requests that may be initiated by the API provider and the\n * expected responses. The key value used to identify the callback object is an expression, evaluated\n * at runtime, that identifies a URL to be used for the callback operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#callback-object\n */\nexport const CallbackObjectSchema = OriginalCallbackObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,wBAAwB,oCAAoC;AAY9D,MAAM,uBAAuB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/components-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ComponentsObjectSchema as OriginalComponentsObjectSchema } from '../processed/components-object'\nimport { CallbackObjectSchema } from './callback-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { HeaderObjectSchema } from './header-object'\nimport { LinkObjectSchema } from './link-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { PathItemObjectSchema } from './path-item-object'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { RequestBodyObjectSchema } from './request-body-object'\nimport { ResponseObjectSchema } from './response-object'\nimport { SchemaObjectSchema } from './schema-object'\nimport { SecuritySchemeObjectSchema } from './security-scheme-object'\n\n/**\n * Components Object\n *\n * Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object\n * will have no effect on the API unless they are explicitly referenced from outside the Components Object.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#components-object\n */\nexport const ComponentsObjectSchema = OriginalComponentsObjectSchema.extend({\n /**\n * An object to hold reusable Schema Objects.\n */\n schemas: z.record(z.string(), SchemaObjectSchema).optional(),\n /**\n * An object to hold reusable Response Objects.\n */\n responses: z.record(z.string(), z.union([ReferenceObjectSchema, ResponseObjectSchema])).optional(),\n /**\n * An object to hold reusable Parameter Objects.\n */\n parameters: z.record(z.string(), z.union([ReferenceObjectSchema, ParameterObjectSchema])).optional(),\n /**\n * An object to hold reusable Example Objects.\n */\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * An object to hold reusable Request Body Objects.\n */\n requestBodies: z.record(z.string(), z.union([ReferenceObjectSchema, RequestBodyObjectSchema])).optional(),\n /**\n * An object to hold reusable Header Objects.\n */\n headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),\n /**\n * An object to hold reusable Security Scheme Objects.\n */\n securitySchemes: z.record(z.string(), z.union([ReferenceObjectSchema, SecuritySchemeObjectSchema])).optional(),\n /**\n * An object to hold reusable Link Objects.\n */\n links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(),\n /**\n * An object to hold reusable Callback Objects.\n */\n callbacks: z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(),\n /**\n * An object to hold reusable Path Item Objects.\n */\n pathItems: z.record(z.string(), PathItemObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,0BAA0B,sCAAsC;AACzE,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,0BAA0B;AACnC,SAAS,kCAAkC;AAUpC,MAAM,yBAAyB,+BAA+B,OAAO;AAAA;AAAA;AAAA;AAAA,EAI1E,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI3D,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjG,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAInG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/F,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,uBAAuB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,kBAAkB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,0BAA0B,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7G,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,gBAAgB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIzF,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIjG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AACjE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/contact-object.ts"], | ||
| "sourcesContent": ["import { ContactObjectSchema as OriginalContactObjectSchema } from '../processed/contact-object'\n\n/**\n * Contact Object\n *\n * Contact information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object\n */\nexport const ContactObjectSchema = OriginalContactObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,uBAAuB,mCAAmC;AAS5D,MAAM,sBAAsB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/discriminator-object.ts"], | ||
| "sourcesContent": ["import { DiscriminatorObjectSchema as OriginalDiscriminatorObjectSchema } from '../processed/discriminator-object'\n\n/**\n * Discriminator Object\n *\n * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a\n * hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and\n * validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named\n * property with alternative schemas.\n *\n * Note that discriminator MUST NOT change the validation outcome of the schema.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#discriminator-object\n */\nexport const DiscriminatorObjectSchema = OriginalDiscriminatorObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,6BAA6B,yCAAyC;AAcxE,MAAM,4BAA4B;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/encoding-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { EncodingObjectSchema as OriginalEncodingObjectSchema } from '../processed/encoding-object'\nimport { HeaderObjectSchema } from './header-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Encoding Object\n *\n * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting\n * values of various types to string representations.\n *\n * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with\n * application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is\n * implementation-defined.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#encoding-object\n */\nexport const EncodingObjectSchema = OriginalEncodingObjectSchema.extend({\n /**\n * A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be\n * ignored in this section. This field SHALL be ignored if the request body media type is not a multipart.\n */\n headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,wBAAwB,oCAAoC;AACrE,SAAS,0BAA0B;AACnC,SAAS,6BAA6B;AAc/B,MAAM,uBAAuB,6BAA6B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,kBAAkB,CAAC,CAAC,EAAE,SAAS;AAC/F,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/example-object.ts"], | ||
| "sourcesContent": ["import { ExampleObjectSchema as OriginalExampleObjectSchema } from '../processed/example-object'\n\n/**\n * Example Object\n *\n * An object grouping an internal or external example value with basic summary and description metadata. This object is\n * typically used in fields named examples (plural), and is a referenceable alternative to older example (singular)\n * fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#example-object\n */\nexport const ExampleObjectSchema = OriginalExampleObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,uBAAuB,mCAAmC;AAa5D,MAAM,sBAAsB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/external-documentation-object.ts"], | ||
| "sourcesContent": ["import { ExternalDocumentationObjectSchema as OriginalExternalDocumentationObjectSchema } from '../processed/external-documentation-object'\n\n/**\n * External Documentation Object\n *\n * Allows referencing an external resource for extended documentation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object\n */\nexport const ExternalDocumentationObjectSchema = OriginalExternalDocumentationObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,qCAAqC,iDAAiD;AASxF,MAAM,oCAAoC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/header-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { HeaderObjectSchema as OriginalHeaderObjectSchema } from '../processed/header-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Header Object\n *\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant\n * Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy\n * based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style).\n * This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to\n * \"simple\".\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#header-object\n */\nexport const HeaderObjectSchema = OriginalHeaderObjectSchema.extend({\n /**\n * The schema defining the type used for the header.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Examples of the parameter's potential value.\n */\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * A map containing the representations for the parameter.\n * The key is the media type and the value describes it.\n * Only one of content or schema should be specified.\n */\n content: z.record(z.string(), MediaTypeObjectSchemaWithoutEncoding).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,sBAAsB,kCAAkC;AACjE,SAAS,2BAA2B;AACpC,SAAS,4CAA4C;AACrD,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AAmB5B,MAAM,qBAAqB,2BAA2B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIlE,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,oCAAoC,EAAE,SAAS;AAC/E,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/index.ts"], | ||
| "sourcesContent": ["export { CallbackObjectSchema } from './callback-object'\nexport { ComponentsObjectSchema } from './components-object'\nexport { ContactObjectSchema } from './contact-object'\nexport { DiscriminatorObjectSchema } from './discriminator-object'\nexport { EncodingObjectSchema } from './encoding-object'\nexport { ExampleObjectSchema } from './example-object'\nexport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nexport { HeaderObjectSchema } from './header-object'\nexport { InfoObjectSchema } from './info-object'\nexport { LicenseObjectSchema } from './license-object'\nexport { LinkObjectSchema } from './link-object'\nexport { MediaTypeObjectSchema } from './media-type-object'\nexport { MediaTypeObjectSchemaWithoutEncoding } from './media-type-object-without-encoding'\nexport { OpenApiObjectSchema, type OpenApiObject } from './openapi-object'\nexport { OperationObjectSchema } from './operation-object'\nexport { ParameterObjectSchema } from './parameter-object'\nexport { PathItemObjectSchema } from './path-item-object'\nexport { PathsObjectSchema } from './paths-object'\nexport { ReferenceObjectSchema } from './reference-object'\nexport { RequestBodyObjectSchema } from './request-body-object'\nexport { ResponseObjectSchema } from './response-object'\nexport { ResponsesObjectSchema } from './responses-object'\nexport { RuntimeExpressionSchema } from './runtime-expression'\nexport { SchemaObjectSchema } from './schema-object'\nexport { SecurityRequirementObjectSchema } from './security-requirement-object'\nexport {\n ApiKeyInValues,\n ApiKeySchema,\n AuthorizationCodeFlowSchema,\n ClientCredentialsFlowSchema,\n HttpSchema,\n ImplicitFlowSchema,\n MutualTlsSchema,\n OAuthFlowObjectSchema,\n OAuthFlowsObjectSchema,\n OpenIdConnectSchema,\n PasswordFlowSchema,\n SecuritySchemeObjectSchema,\n} from './security-scheme-object'\nexport { ServerObjectSchema } from './server-object'\nexport { ServerVariableObjectSchema } from './server-variable-object'\nexport { TagObjectSchema } from './tag-object'\nexport { WebhooksObjectSchema } from './webhooks-object'\nexport { XmlObjectSchema } from './xml-object'\n"], | ||
| "mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,yCAAyC;AAClD,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,4CAA4C;AACrD,SAAS,2BAA+C;AACxD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,uCAAuC;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0BAA0B;AACnC,SAAS,kCAAkC;AAC3C,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/info-object.ts"], | ||
| "sourcesContent": ["import { InfoObjectSchema as OriginalInfoObjectSchema } from '../processed/info-object'\n\n/**\n * Info Object\n *\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed,\n * and MAY be presented in editing or documentation generation tools for convenience.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object\n */\nexport const InfoObjectSchema = OriginalInfoObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,oBAAoB,gCAAgC;AAUtD,MAAM,mBAAmB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/license-object.ts"], | ||
| "sourcesContent": ["import { LicenseObjectSchema as OriginalLicenseObjectSchema } from '../processed/license-object'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const LicenseObjectSchema = OriginalLicenseObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,uBAAuB,mCAAmC;AAS5D,MAAM,sBAAsB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/link-object.ts"], | ||
| "sourcesContent": ["import { LinkObjectSchema as OriginalLinkObjectSchema } from '../processed/link-object'\n\n/**\n * Link Object\n *\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the\n * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between\n * responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link\n * information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an\n * operation and using them as parameters while invoking the linked operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object\n */\nexport const LinkObjectSchema = OriginalLinkObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,oBAAoB,gCAAgC;AAiBtD,MAAM,mBAAmB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/media-type-object-without-encoding.ts"], | ||
| "sourcesContent": ["import { MediaTypeObjectSchemaWithoutEncoding as OriginalMediaTypeObjectSchemaWithoutEncoding } from '../processed/media-type-object-without-encoding'\n\n/**\n * Media Type Object (without encoding)\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchemaWithoutEncoding = OriginalMediaTypeObjectSchemaWithoutEncoding\n"], | ||
| "mappings": "AAAA,SAAS,wCAAwC,oDAAoD;AAS9F,MAAM,uCAAuC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/media-type-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { MediaTypeObjectSchema as OriginalMediaTypeObjectSchema } from '../processed/media-type-object'\nimport { EncodingObjectSchema } from './encoding-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Media Type Object\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchema = OriginalMediaTypeObjectSchema.extend({\n /**\n * The schema defining the content of the request, response, or parameter.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.\n * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains\n * an example, the example value SHALL override the example provided by the schema.\n */\n example: z.any().optional(),\n /**\n * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.\n * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains\n * an example, the examples value SHALL override the example provided by the schema.\n */\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * A map between a property name and its encoding information. The key, being the property name, MUST exist in the\n * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is\n * multipart or application/x-www-form-urlencoded.\n */\n encoding: z.record(z.string(), EncodingObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yBAAyB,qCAAqC;AACvE,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AAS5B,MAAM,wBAAwB,8BAA8B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxE,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/openapi-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { OpenApiObjectSchema as OriginalOpenApiObjectSchema } from '../processed/openapi-object'\nimport { ComponentsObjectSchema } from './components-object'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { InfoObjectSchema } from './info-object'\nimport { PathsObjectSchema } from './paths-object'\nimport { SecurityRequirementObjectSchema } from './security-requirement-object'\nimport { ServerObjectSchema } from './server-object'\nimport { TagObjectSchema } from './tag-object'\nimport { WebhooksObjectSchema } from './webhooks-object'\n\nexport type OpenApiObject = {\n openapi: string\n info: z.infer<typeof InfoObjectSchema>\n jsonSchemaDialect?: string\n servers?: z.infer<typeof ServerObjectSchema>[]\n paths?: z.infer<typeof PathsObjectSchema>\n webhooks?: z.infer<typeof WebhooksObjectSchema>\n components?: z.infer<typeof ComponentsObjectSchema>\n security?: z.infer<typeof SecurityRequirementObjectSchema>[]\n tags?: z.infer<typeof TagObjectSchema>[]\n externalDocs?: z.infer<typeof ExternalDocumentationObjectSchema>\n}\n\n/**\n * OpenAPI Object\n *\n * This is the root object of the OpenAPI Description.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object\n */\nexport const OpenApiObjectSchema = OriginalOpenApiObjectSchema.extend({\n /**\n * REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.\n */\n info: InfoObjectSchema,\n /**\n * An array of Server Objects, which provide connectivity information to a target server. If the servers field is\n * not provided, or is an empty array, the default value would be a Server Object with a url value of /.\n */\n servers: z.array(ServerObjectSchema).optional(),\n /**\n * The available paths and operations for the API.\n */\n paths: PathsObjectSchema.optional(),\n /**\n * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.\n * Closely related to the callbacks feature, this section describes requests initiated other than by an API call,\n * for example by an out of band registration. The key name is a unique string to refer to each webhook, while the\n * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the\n * expected responses. An example is available.\n */\n webhooks: WebhooksObjectSchema.optional(),\n /**\n * An element to hold various Objects for the OpenAPI Description.\n */\n components: ComponentsObjectSchema.optional(),\n /**\n * A declaration of which security mechanisms can be used across the API. The list of values includes alternative\n * Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied\n * to authorize a request. Individual operations can override this definition. The list can be incomplete, up to\n * being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included\n * in the array.\n */\n security: z.array(SecurityRequirementObjectSchema).optional(),\n /**\n * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to\n * reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared.\n * The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list\n * MUST be unique.\n */\n tags: z.array(TagObjectSchema).optional(),\n /**\n * Additional external documentation.\n */\n externalDocs: ExternalDocumentationObjectSchema.optional(),\n}) as z.ZodType<OpenApiObject>\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,uBAAuB,mCAAmC;AACnE,SAAS,8BAA8B;AACvC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAClC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AAsB9B,MAAM,sBAAsB,4BAA4B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIpE,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKN,SAAS,EAAE,MAAM,kBAAkB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI9C,OAAO,kBAAkB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlC,UAAU,qBAAqB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,YAAY,uBAAuB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5C,UAAU,EAAE,MAAM,+BAA+B,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5D,MAAM,EAAE,MAAM,eAAe,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,cAAc,kCAAkC,SAAS;AAC3D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/operation-object-without-callbacks.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { OperationObjectSchemaWithoutCallbacks as OriginalOperationObjectSchemaWithoutCallbacks } from '../processed/operation-object-without-callbacks'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { RequestBodyObjectSchema } from './request-body-object'\nimport { SecurityRequirementObjectSchema } from './security-requirement-object'\n\n/**\n * Operation Object (without callbacks, used in callbacks)\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchemaWithoutCallbacks = OriginalOperationObjectSchemaWithoutCallbacks.extend({\n /**\n * External documentation object\n */\n 'externalDocs': ExternalDocumentationObjectSchema.optional(),\n /**\n * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item,\n * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A\n * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link\n * to parameters that are defined in the OpenAPI Object's components.parameters.\n */\n 'parameters': z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(),\n /**\n * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the\n * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the\n * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined\n * semantics and SHOULD be avoided if possible.\n */\n 'requestBody': z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(),\n /**\n * A declaration of which security mechanisms can be used across the API. The list of\n * values includes alternative security requirement objects that can be used. Only\n * one of the security requirement objects need to be satisfied to authorize a request.\n * Individual operations can override this definition. To make security optional, an empty\n * security requirement ({}) can be included in the array.\n */\n 'security': z.array(SecurityRequirementObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yCAAyC,qDAAqD;AACvG,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,uCAAuC;AASzC,MAAM,wCAAwC,8CAA8C,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxG,gBAAgB,kCAAkC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO3D,cAAc,EAAE,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,EAAE,MAAM,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvF,eAAe,EAAE,MAAM,CAAC,uBAAuB,uBAAuB,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlF,YAAY,EAAE,MAAM,+BAA+B,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/operation-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { CallbackObjectSchema } from './callback-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\nimport { ReferenceObjectSchema } from './reference-object'\n\ntype OperationObject = z.infer<typeof OperationObjectSchemaWithoutCallbacks> & {\n callbacks?: Record<string, z.infer<typeof ReferenceObjectSchema> | z.infer<typeof CallbackObjectSchema>>\n}\n\n/**\n * Operation Object\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchema: z.ZodType<OperationObject> = OperationObjectSchemaWithoutCallbacks.extend({\n /**\n * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a\n * Path Item Object that describes a set of requests that may be initiated by the API provider and the\n * expected responses. The key value used to identify the callback object is an expression, evaluated\n * at runtime, that identifies a URL to be used for the callback operation.\n */\n 'callbacks': z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,6CAA6C;AACtD,SAAS,6BAA6B;AAa/B,MAAM,wBAAoD,sCAAsC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5G,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC,CAAC,EAAE,SAAS;AACrG,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/parameter-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ParameterObjectSchema as OriginalParameterObjectSchema } from '../processed/parameter-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Parameter Object\n *\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object\n */\nexport const ParameterObjectSchema = OriginalParameterObjectSchema.extend({\n /**\n * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as\n * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,\n * if referencing a schema that contains an example, the examples value SHALL override the example provided by the\n * schema.\n **/\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * A map containing the representations for the parameter. The key is the media type and the value describes it.\n * The map MUST only contain one entry.\n **/\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yBAAyB,qCAAqC;AACvE,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AAW/B,MAAM,wBAAwB,8BAA8B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/path-item-object-without-callbacks.ts"], | ||
| "sourcesContent": ["import type { z } from 'zod'\nimport { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\n\ntype PathItemObjectSchemaWithoutCallbacks = z.infer<typeof BasePathItemObjectSchema> & {\n get?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n put?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n post?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n delete?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n options?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n head?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n patch?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n trace?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n}\n\n/**\n * Path Item Object (without callbacks)\n *\n * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path\n * itself is still exposed to the documentation viewer but they will not know which operations and parameters are\n * available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const PathItemObjectSchemaWithoutCallbacks: z.ZodType<PathItemObjectSchemaWithoutCallbacks> =\n BasePathItemObjectSchema.extend({\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchemaWithoutCallbacks.optional(),\n })\n"], | ||
| "mappings": "AACA,SAAS,gCAAgC;AACzC,SAAS,6CAA6C;AAsB/C,MAAM,uCACX,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI9B,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,QAAQ,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,SAAS,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,OAAO,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAItD,OAAO,sCAAsC,SAAS;AACxD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/path-item-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchema } from './operation-object'\n\n/**\n * Path Item Object\n *\n * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path\n * itself is still exposed to the documentation viewer but they will not know which operations and parameters are\n * available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const PathItemObjectSchema = BasePathItemObjectSchema.extend({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced\n * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined\n * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to\n * bring it into closer alignment with the behavior of the Reference Object.\n *\n * Q: Why don't we just use `ReferenceObjectSchema`?\n * A: References work a little bit different here. It's the only place where they can be combined with other\n * properties.\n */\n '$ref': z.string().optional(),\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchema.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchema.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchema.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchema.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchema.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchema.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchema.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,gCAAgC;AACzC,SAAS,6BAA6B;AAW/B,MAAM,uBAAuB,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalE,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI5B,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,QAAQ,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvC,SAAS,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,OAAO,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAItC,OAAO,sBAAsB,SAAS;AACxC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/paths-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { PathItemObjectSchema } from './path-item-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Paths Object\n *\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the\n * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL)\n * constraints.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object\n */\nexport const PathsObjectSchema = z.record(\n /**\n * A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended\n * (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full\n * URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their\n * templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as\n * they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use.\n */\n z.string(),\n z.union([ReferenceObjectSchema, PathItemObjectSchema]),\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AAW/B,MAAM,oBAAoB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjC,EAAE,OAAO;AAAA,EACT,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC;AACvD;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/reference-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Reference Object\n *\n * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.\n *\n * The $ref string value contains a URI RFC3986, which identifies the value being referenced.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#reference-object\n */\nexport const ReferenceObjectSchema = z.object({\n /**\n * REQUIRED. The reference identifier. This MUST be in the form of a URI.\n */\n $ref: z.string(),\n /**\n * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type\n * does not allow a summary field, then this field has no effect.\n */\n summary: z.string().optional(),\n /**\n * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for\n * rich text representation. If the referenced object-type does not allow a description field, then this field has no\n * effect.\n */\n description: z.string().optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAWX,MAAM,wBAAwB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI5C,MAAM,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKf,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7B,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/request-body-object.ts"], | ||
| "sourcesContent": ["import { RequestBodyObjectSchema as OriginalRequestBodyObjectSchema } from '../processed/request-body-object'\n\n/**\n * Request Body Object\n *\n * Describes a single request body.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object\n */\nexport const RequestBodyObjectSchema = OriginalRequestBodyObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,2BAA2B,uCAAuC;AASpE,MAAM,0BAA0B;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/response-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ResponseObjectSchema as OriginalResponseObjectSchema } from '../processed/response-object'\nimport { HeaderObjectSchema } from './header-object'\nimport { LinkObjectSchema } from './link-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Response Object\n *\n * Describes a single response from an API operation, including design-time, static links to operations based on the response.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object\n */\nexport const ResponseObjectSchema = OriginalResponseObjectSchema.extend({\n /**\n * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is\n * defined with the name \"Content-Type\", it SHALL be ignored.\n */\n headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),\n /**\n * A map containing descriptions of potential response payloads. The key is a media type or media type range and the\n * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.\n * \"text/plain\" overrides \"text/*\"\n */\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n /**\n * A map of operations links that can be followed from the response. The key of the map is a short name for the link,\n * following the naming constraints of the names for Component Objects.\n */\n links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,wBAAwB,oCAAoC;AACrE,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AAS/B,MAAM,uBAAuB,6BAA6B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,kBAAkB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK9D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,gBAAgB,CAAC,CAAC,EAAE,SAAS;AAC3F,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/responses-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { ResponseObjectSchema } from './response-object'\n\n/**\n * Responses Object\n *\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected\n * response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known\n * in advance. However, documentation is expected to cover a successful operation response and any known errors.\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the\n * Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be\n * the response for a successful operation call.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object\n */\nexport const ResponsesObjectSchema = z.record(\n /**\n * Response Object | Reference Object\tAny HTTP status code can be used as the property name, but only one property per\n * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks\n * (for example, \"200\") for compatibility between JSON and YAML. To define a range of response codes, this field MAY\n * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299.\n * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an\n * explicit code, the explicit code definition takes precedence over the range definition for that code.\n */\n z.string(),\n z.union([ReferenceObjectSchema, ResponseObjectSchema]),\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AAkB9B,MAAM,wBAAwB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrC,EAAE,OAAO;AAAA,EACT,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC;AACvD;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/runtime-expression.ts"], | ||
| "sourcesContent": ["import { RuntimeExpressionSchema as OriginalRuntimeExpressionSchema } from '../processed/runtime-expression'\n\n/**\n * Runtime Expression Schema\n *\n * Runtime expressions allow defining values based on information that will only be available within the HTTP message in\n * an actual API call. This mechanism is used by Link Objects and Callback Objects.\n *\n * Expressions can be:\n * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id)\n * 2. Embedded expressions in strings using curly braces (e.g. \"Hello {$request.body#/name}!\")\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions\n */\nexport const RuntimeExpressionSchema = OriginalRuntimeExpressionSchema\n"], | ||
| "mappings": "AAAA,SAAS,2BAA2B,uCAAuC;AAcpE,MAAM,0BAA0B;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/schema-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nimport { SchemaObjectSchema as OriginalSchemaObjectSchema } from '../processed/schema-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * The Schema Object with reference fields.\n * This extends the base Schema Object to include reference-related fields\n * that are processed differently in the unprocessed schema.\n */\nexport const SchemaObjectSchema: z.ZodType<any> = z.lazy(() =>\n z.intersection(\n OriginalSchemaObjectSchema,\n z.object({\n // Reference-related fields\n $ref: z.string().optional(),\n $id: z.string().optional(),\n $schema: z.string().optional(),\n $defs: z\n .record(\n z.string(),\n z.lazy(() => SchemaObjectSchema),\n )\n .optional(),\n $dynamicRef: z.string().optional(),\n $dynamicAnchor: z.string().optional(),\n\n // Override the recursive fields to use this schema instead of the original\n properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n patternProperties: z\n .record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]))\n .optional(),\n items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n }),\n ),\n)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAElB,SAAS,sBAAsB,kCAAkC;AACjE,SAAS,6BAA6B;AAO/B,MAAM,qBAAqC,EAAE;AAAA,EAAK,MACvD,EAAE;AAAA,IACA;AAAA,IACA,EAAE,OAAO;AAAA;AAAA,MAEP,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,MAC1B,KAAK,EAAE,OAAO,EAAE,SAAS;AAAA,MACzB,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,MAC7B,OAAO,EACJ;AAAA,QACC,EAAE,OAAO;AAAA,QACT,EAAE,KAAK,MAAM,kBAAkB;AAAA,MACjC,EACC,SAAS;AAAA,MACZ,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,MACjC,gBAAgB,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,MAGpC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC9G,sBAAsB,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,MAC/G,mBAAmB,EAChB,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EACrF,SAAS;AAAA,MACZ,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,MACnF,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAClG,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,IACnF,CAAC;AAAA,EACH;AACF;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/security-requirement-object.ts"], | ||
| "sourcesContent": ["import { SecurityRequirementObjectSchema as OriginalSecurityRequirementObjectSchema } from '../processed/security-requirement-object'\n\n/**\n * Security Requirement Object\n *\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a\n * security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for\n * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are\n * required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security\n * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This\n * enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object\n */\nexport const SecurityRequirementObjectSchema = OriginalSecurityRequirementObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,mCAAmC,+CAA+C;AAoBpF,MAAM,kCAAkC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/security-scheme-object.ts"], | ||
| "sourcesContent": ["import {\n ApiKeyInValues as OriginalApiKeyInValues,\n ApiKeySchema as OriginalApiKeySchema,\n AuthorizationCodeFlowSchema as OriginalAuthorizationCodeFlowSchema,\n ClientCredentialsFlowSchema as OriginalClientCredentialsFlowSchema,\n HttpSchema as OriginalHttpSchema,\n ImplicitFlowSchema as OriginalImplicitFlowSchema,\n MutualTlsSchema as OriginalMutualTlsSchema,\n OAuthFlowObjectSchema as OriginalOAuthFlowObjectSchema,\n OAuthFlowsObjectSchema as OriginalOAuthFlowsObjectSchema,\n OpenIdConnectSchema as OriginalOpenIdConnectSchema,\n PasswordFlowSchema as OriginalPasswordFlowSchema,\n SecuritySchemeObjectSchema as OriginalSecuritySchemeObjectSchema,\n} from '../processed/security-scheme-object'\n\n/**\n * Security Scheme Object\n *\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query\n * parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials\n * and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit\n * flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is\n * Authorization Code Grant flow with PKCE.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object\n */\nexport const SecuritySchemeObjectSchema = OriginalSecuritySchemeObjectSchema\n\nexport const ApiKeyInValues = OriginalApiKeyInValues\nexport const ApiKeySchema = OriginalApiKeySchema\nexport const HttpSchema = OriginalHttpSchema\nexport const MutualTlsSchema = OriginalMutualTlsSchema\nexport const OpenIdConnectSchema = OriginalOpenIdConnectSchema\n\nexport const OAuthFlowsObjectSchema = OriginalOAuthFlowsObjectSchema\nexport const OAuthFlowObjectSchema = OriginalOAuthFlowObjectSchema\nexport const AuthorizationCodeFlowSchema = OriginalAuthorizationCodeFlowSchema\nexport const ClientCredentialsFlowSchema = OriginalClientCredentialsFlowSchema\nexport const ImplicitFlowSchema = OriginalImplicitFlowSchema\nexport const PasswordFlowSchema = OriginalPasswordFlowSchema\n"], | ||
| "mappings": "AAAA;AAAA,EACE,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,+BAA+B;AAAA,EAC/B,+BAA+B;AAAA,EAC/B,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,yBAAyB;AAAA,EACzB,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,8BAA8B;AAAA,OACzB;AAeA,MAAM,6BAA6B;AAEnC,MAAM,iBAAiB;AACvB,MAAM,eAAe;AACrB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,sBAAsB;AAE5B,MAAM,yBAAyB;AAC/B,MAAM,wBAAwB;AAC9B,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/server-object.ts"], | ||
| "sourcesContent": ["import { ServerObjectSchema as OriginalServerObjectSchema } from '../processed/server-object'\n/**\n * Server Object\n *\n * An object representing a Server.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-object\n */\nexport const ServerObjectSchema = OriginalServerObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,sBAAsB,kCAAkC;AAQ1D,MAAM,qBAAqB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/server-variable-object.ts"], | ||
| "sourcesContent": ["import { ServerVariableObjectSchema as OriginalServerVariableObjectSchema } from '../processed/server-variable-object'\n\n/**\n * Server Variable Object\n *\n * An object representing a Server Variable for server URL template substitution.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#server-variable-object\n */\nexport const ServerVariableObjectSchema = OriginalServerVariableObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,8BAA8B,0CAA0C;AAS1E,MAAM,6BAA6B;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/tag-object.ts"], | ||
| "sourcesContent": ["import { TagObjectSchema as OriginalTagObjectSchema } from '../processed/tag-object'\n\n/**\n * Tag Object\n *\n * Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag\n * defined in the Operation Object instances.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object\n */\nexport const TagObjectSchema = OriginalTagObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,mBAAmB,+BAA+B;AAUpD,MAAM,kBAAkB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/webhooks-object.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\nimport { PathItemObjectSchemaWithoutCallbacks } from './path-item-object-without-callbacks'\n\n/**\n * Webhooks Object\n *\n * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.\n * Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for\n * example by an out of band registration.\n *\n * The key name is a unique string to refer to each webhook, while the\n * (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the\n * expected responses. An example is available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oas-webhooks\n */\nexport const WebhooksObjectSchema = z.record(z.string(), PathItemObjectSchemaWithoutCallbacks)\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4CAA4C;AAe9C,MAAM,uBAAuB,EAAE,OAAO,EAAE,OAAO,GAAG,oCAAoC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../../src/schemas/3.1/unprocessed/xml-object.ts"], | ||
| "sourcesContent": ["import { XmlObjectSchema as OriginalXmlObjectSchema } from '../processed/xml-object'\n\n/**\n *\n * XML Object\n *\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used\n * to add that information. See examples for expected behavior.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#xml-object\n */\nexport const XmlObjectSchema = OriginalXmlObjectSchema\n"], | ||
| "mappings": "AAAA,SAAS,mBAAmB,+BAA+B;AAapD,MAAM,kBAAkB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/index.ts"], | ||
| "sourcesContent": ["export { XAdditionalPropertiesNameSchema } from './x-additional-properties-name'\nexport { type XCodeSample, XCodeSampleSchema, XCodeSamplesSchema } from './x-code-samples'\nexport { XEnumDescriptionsSchema } from './x-enum-descriptions'\nexport { XInternalSchema } from './x-internal'\nexport { PostResponseSchema, XPostResponseSchema } from './x-post-response'\nexport { XScalarIconSchema } from './x-scalar-icon'\nexport { XScalarIgnoreSchema } from './x-scalar-ignore'\nexport { XScalarRedirectUriSchema } from './x-scalar-redirect-uri'\nexport { XScalarSdkInstallationSchema } from './x-scalar-sdk-installation'\nexport { XScalarSecurityQuery } from './x-scalar-security-query'\nexport { XScalarStabilitySchema, XScalarStabilityValues } from './x-scalar-stability'\nexport { XTagGroupSchema, XTagGroupsSchema } from './x-tag-groups'\nexport { XUsePkceValues, XusePkceSchema } from './x-use-pkce'\n"], | ||
| "mappings": "AAAA,SAAS,uCAAuC;AAChD,SAA2B,mBAAmB,0BAA0B;AACxE,SAAS,+BAA+B;AACxC,SAAS,uBAAuB;AAChC,SAAS,oBAAoB,2BAA2B;AACxD,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,gCAAgC;AACzC,SAAS,oCAAoC;AAC7C,SAAS,4BAA4B;AACrC,SAAS,wBAAwB,8BAA8B;AAC/D,SAAS,iBAAiB,wBAAwB;AAClD,SAAS,gBAAgB,sBAAsB;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-additional-properties-name.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * x-additionalPropertiesName\n *\n * Custom attribute name for additionalProperties in a schema.\n * This allows specifying a descriptive name for additional properties\n * that may be present in an object.\n */\nexport const XAdditionalPropertiesNameSchema = z.object({\n 'x-additionalPropertiesName': z.string().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AASX,MAAM,kCAAkC,EAAE,OAAO;AAAA,EACtD,8BAA8B,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AACrE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-code-samples.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XCodeSampleSchema = z.object({\n lang: z.string().optional().catch(undefined),\n label: z.string().optional().catch(undefined),\n source: z.string(),\n})\n\nexport const XCodeSamplesSchema = z.object({\n 'x-codeSamples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-code-samples': XCodeSampleSchema.array().optional().catch(undefined),\n 'x-custom-examples': XCodeSampleSchema.array().optional().catch(undefined),\n})\n\nexport type XCodeSample = z.infer<typeof XCodeSampleSchema>\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EAC3C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EAC5C,QAAQ,EAAE,OAAO;AACnB,CAAC;AAEM,MAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,iBAAiB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EACrE,kBAAkB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EACtE,qBAAqB,kBAAkB,MAAM,EAAE,SAAS,EAAE,MAAM,MAAS;AAC3E,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-display-name.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to overwrite tag names with a display-friendly version\n *\n * @example\n * ```yaml\n * x-displayName: planets\n * ```\n */\nexport const XDisplayNameSchema = z.object({\n 'x-displayName': z.string().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAUX,MAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AACxD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-enum-descriptions.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * x-enumDescriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enumDescriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\nexport const XEnumDescriptionsSchema = z.object({\n 'x-enumDescriptions': z.record(z.string(), z.string()).catch({}),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAeX,MAAM,0BAA0B,EAAE,OAAO;AAAA,EAC9C,sBAAsB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-internal.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XInternalSchema = z.object({\n 'x-internal': z.boolean().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,MAAS;AACtD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-post-response.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/** The code to execute */\nexport const PostResponseSchema = z.string()\n\n/**\n * Post response scripts allow to execute arbitrary code after a response is received\n *\n * This is useful for:\n * - Extracting data from the response, or\n * - Testing the response\n *\n * @example\n * ```yaml\n * x-post-response: |\n * pm.test(\"Status code is 200\", () => {\n * pm.response.to.have.status(200)\n * })\n * ```\n */\nexport const XPostResponseSchema = z.object({\n 'x-post-response': PostResponseSchema.optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAGX,MAAM,qBAAqB,EAAE,OAAO;AAiBpC,MAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,mBAAmB,mBAAmB,SAAS;AACjD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-credentials-location.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to specify where OAuth2 credentials should be sent\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: header\n * ```\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: body\n * ```\n */\nexport const XScalarCredentialsLocationSchema = z.object({\n 'x-scalar-credentials-location': z.enum(['header', 'body']).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAeX,MAAM,mCAAmC,EAAE,OAAO;AAAA,EACvD,iCAAiC,EAAE,KAAK,CAAC,UAAU,MAAM,CAAC,EAAE,SAAS;AACvE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-icon.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XScalarIconSchema = z.object({\n 'x-scalar-icon': z.string().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AACxD,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-ignore.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XScalarIgnoreSchema = z.object({\n 'x-scalar-ignore': z.boolean().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,mBAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,MAAS;AAC3D,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-redirect-uri.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XScalarRedirectUriSchema = z.object({\n 'x-scalar-redirect-uri': z.string().optional().catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAChE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-sdk-installation.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XScalarSdkInstallationSchema = z.object({\n 'x-scalar-sdk-installation': z\n .object({\n lang: z.string(),\n source: z.string().optional().catch(undefined),\n description: z.string().optional().catch(undefined),\n })\n .array()\n .optional()\n .catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,+BAA+B,EAAE,OAAO;AAAA,EACnD,6BAA6B,EAC1B,OAAO;AAAA,IACN,MAAM,EAAE,OAAO;AAAA,IACf,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,IAC7C,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA,EACpD,CAAC,EACA,MAAM,EACN,SAAS,EACT,MAAM,MAAS;AACpB,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-security-body.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to set any additional body parameters for the OAuth token request\n *\n * @example\n * ```yaml\n * x-scalar-security-body: {\n * audience: 'https://api.example.com',\n * resource: 'user-profile'\n * }\n * ```\n */\nexport const XScalarSecurityBody = z.object({\n 'x-scalar-security-body': z.record(z.string(), z.string()).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,0BAA0B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AACtE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-security-query.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension set any query parameters for the OAuth authorize request\n *\n * @example\n * ```yaml\n * x-scalar-security-query: {\n * prompt: 'consent',\n * audience: 'scalar'\n * }\n * ```\n */\nexport const XScalarSecurityQuery = z.object({\n 'x-scalar-security-query': z.record(z.string(), z.string()).optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAaX,MAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,2BAA2B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,SAAS;AACvE,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-scalar-stability.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XScalarStabilityValues = {\n Deprecated: 'deprecated',\n Experimental: 'experimental',\n Stable: 'stable',\n} as const\n\nexport type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeof XScalarStabilityValues]\n\n/**\n * An OpenAPI extension to indicate the stability of the operation\n *\n * @example\n * ```yaml\n * x-scalar-stability: deprecated\n * ```\n */\nexport const XScalarStabilitySchema = z.object({\n 'x-scalar-stability': z\n .enum(Object.values(XScalarStabilityValues) as [string, ...string[]])\n .optional()\n .catch(undefined),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,yBAAyB;AAAA,EACpC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AACV;AAYO,MAAM,yBAAyB,EAAE,OAAO;AAAA,EAC7C,sBAAsB,EACnB,KAAK,OAAO,OAAO,sBAAsB,CAA0B,EACnE,SAAS,EACT,MAAM,MAAS;AACpB,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-tag-groups.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\nexport const XTagGroupSchema = z.object({\n /**\n * The group name.\n */\n name: z.string(),\n /**\n * List of tags to include in this group.\n */\n tags: z.coerce.string().array().catch([]),\n})\n\n/**\n * x-tagGroups\n *\n * List of tags to include in this group.\n */\nexport const XTagGroupsSchema = XTagGroupSchema.array().catch([])\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAEX,MAAM,kBAAkB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAItC,MAAM,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIf,MAAM,EAAE,OAAO,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,CAAC;AAOM,MAAM,mBAAmB,gBAAgB,MAAM,EAAE,MAAM,CAAC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-tokenName.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/**\n * An OpenAPI extension to specify a custom token name for OAuth2 flows\n *\n * @example\n * ```yaml\n * x-tokenName: 'custom_access_token'\n * ```\n */\nexport const XTokenName = z.object({\n 'x-tokenName': z.string().optional(),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAUX,MAAM,aAAa,EAAE,OAAO;AAAA,EACjC,eAAe,EAAE,OAAO,EAAE,SAAS;AACrC,CAAC;", | ||
| "names": [] | ||
| } |
| { | ||
| "version": 3, | ||
| "sources": ["../../../src/schemas/extensions/x-use-pkce.ts"], | ||
| "sourcesContent": ["import { z } from 'zod'\n\n/** Options for the x-usePkce extension */\nexport const XUsePkceValues = ['SHA-256', 'plain', 'no'] as const\n\nexport const XusePkceSchema = z.object({\n /**\n * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.\n */\n 'x-usePkce': z.enum(XUsePkceValues).optional().default('no'),\n})\n"], | ||
| "mappings": "AAAA,SAAS,SAAS;AAGX,MAAM,iBAAiB,CAAC,WAAW,SAAS,IAAI;AAEhD,MAAM,iBAAiB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAIrC,aAAa,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,QAAQ,IAAI;AAC7D,CAAC;", | ||
| "names": [] | ||
| } |
0
-100%39792
0.55%2119679
-6.35%276
-25.2%