@scalar/workspace-store 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +71 -1
- package/dist/client.d.ts +37 -45150
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +124 -14
- package/dist/client.js.map +2 -2
- package/dist/helpers/apply-selective-updates.d.ts +17 -0
- package/dist/helpers/apply-selective-updates.d.ts.map +1 -0
- package/dist/helpers/apply-selective-updates.js +13 -0
- package/dist/helpers/apply-selective-updates.js.map +7 -0
- package/dist/helpers/general.d.ts +33 -0
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/general.js +14 -1
- package/dist/helpers/general.js.map +2 -2
- package/dist/helpers/proxy.d.ts +1 -1
- package/dist/helpers/proxy.d.ts.map +1 -1
- package/dist/helpers/proxy.js.map +2 -2
- package/dist/mutators/cookie.d.ts +17 -0
- package/dist/mutators/cookie.d.ts.map +1 -0
- package/dist/mutators/cookie.js +31 -0
- package/dist/mutators/cookie.js.map +7 -0
- package/dist/mutators/environment.d.ts +17 -0
- package/dist/mutators/environment.d.ts.map +1 -0
- package/dist/mutators/environment.js +31 -0
- package/dist/mutators/environment.js.map +7 -0
- package/dist/mutators/helpers.d.ts +34492 -0
- package/dist/mutators/helpers.d.ts.map +1 -0
- package/dist/mutators/helpers.js +11 -0
- package/dist/mutators/helpers.js.map +7 -0
- package/dist/mutators/index.d.ts +108 -0
- package/dist/mutators/index.d.ts.map +1 -0
- package/dist/mutators/index.js +67 -0
- package/dist/mutators/index.js.map +7 -0
- package/dist/mutators/request-example.d.ts +21 -0
- package/dist/mutators/request-example.d.ts.map +1 -0
- package/dist/mutators/request-example.js +58 -0
- package/dist/mutators/request-example.js.map +7 -0
- package/dist/mutators/request.d.ts +22 -0
- package/dist/mutators/request.d.ts.map +1 -0
- package/dist/mutators/request.js +53 -0
- package/dist/mutators/request.js.map +7 -0
- package/dist/mutators/security-schemes.d.ts +14 -0
- package/dist/mutators/security-schemes.d.ts.map +1 -0
- package/dist/mutators/security-schemes.js +27 -0
- package/dist/mutators/security-schemes.js.map +7 -0
- package/dist/mutators/server.d.ts +12 -0
- package/dist/mutators/server.d.ts.map +1 -0
- package/dist/mutators/server.js +24 -0
- package/dist/mutators/server.js.map +7 -0
- package/dist/schemas/compose.d.ts.map +1 -0
- package/dist/schemas/{v3.1/compose.js.map → compose.js.map} +1 -1
- package/dist/schemas/reference-config/index.d.ts +1 -1
- package/dist/schemas/v3.1/strict/callback.js +1 -1
- package/dist/schemas/v3.1/strict/callback.js.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +23 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
- package/dist/schemas/v3.1/strict/components.d.ts +45 -7948
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +4 -2
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.js +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +1 -1
- package/dist/schemas/v3.1/strict/example.js.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +1 -1
- package/dist/schemas/v3.1/strict/header.js.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +1 -1
- package/dist/schemas/v3.1/strict/info.js.map +1 -1
- package/dist/schemas/v3.1/strict/license.js +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.js +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +1 -1
- package/dist/schemas/v3.1/strict/media-type.js.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +16 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +9 -2
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +18 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +8 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.js +1 -1
- package/dist/schemas/v3.1/strict/parameter.js.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.d.ts +6 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +7 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-operations.d.ts +3975 -228
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.d.ts +1864 -1
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +1 -1
- package/dist/schemas/v3.1/strict/paths.js.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +1 -1
- package/dist/schemas/v3.1/strict/request-body.js.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +1 -1
- package/dist/schemas/v3.1/strict/response.js.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +1 -1
- package/dist/schemas/v3.1/strict/responses.js.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +1 -1
- package/dist/schemas/v3.1/strict/schema.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/workspace-specification/config.d.ts +48 -0
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/config.js +11 -0
- package/dist/schemas/workspace-specification/config.js.map +7 -0
- package/dist/schemas/workspace-specification/index.d.ts +163 -0
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/index.js +27 -0
- package/dist/schemas/workspace-specification/index.js.map +7 -0
- package/dist/schemas/workspace-specification/info.d.ts +5 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/info.js +9 -0
- package/dist/schemas/workspace-specification/info.js.map +7 -0
- package/dist/schemas/workspace.d.ts +147 -79
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +19 -4
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +780 -108
- package/dist/server.d.ts.map +1 -1
- package/package.json +12 -10
- package/dist/schemas/v3.1/compose.d.ts.map +0 -1
- /package/dist/schemas/{v3.1/compose.d.ts → compose.d.ts} +0 -0
- /package/dist/schemas/{v3.1/compose.js → compose.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/operation.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { ResponsesObjectSchema } from './responses'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { ServerObjectSchema } from './server'\nimport {
|
|
5
|
-
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,6BAA6B;AACtC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { ResponsesObjectSchema } from './responses'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { ServerObjectSchema } from './server'\nimport { compose } from '@/schemas/compose'\nimport { xScalarClientConfigRequestExampleSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\n\nconst OperationExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-scalar-client-config-request-example': Type.Record(Type.String(), xScalarClientConfigRequestExampleSchema),\n }),\n)\n\nexport const operationObjectSchemaBuilder = <C extends TSchema>(callback: C) =>\n Type.Union([\n compose(\n Type.Object({\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags: Type.Optional(Type.Array(Type.String())),\n /** A short summary of what the operation does. */\n summary: Type.Optional(Type.String()),\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this operation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n /** 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 common programming naming conventions. */\n operationId: Type.Optional(Type.String()),\n /** 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. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n /** 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. */\n requestBody: Type.Optional(Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectSchema),\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** A declaration of which security mechanisms can be used for this operation. 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. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectSchema)),\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([callback, ReferenceObjectSchema]))),\n }),\n OperationExtensionsSchema,\n ExtensionsSchema,\n ),\n ReferenceObjectSchema,\n ])\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,6BAA6B;AACtC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,eAAe;AACxB,SAAS,+CAA+C;AACxD,SAAS,wBAAwB;AAEjC,MAAM,4BAA4B,KAAK;AAAA,EACrC,KAAK,OAAO;AAAA,IACV,0CAA0C,KAAK,OAAO,KAAK,OAAO,GAAG,uCAAuC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,+BAA+B,CAAoB,aAC9D,KAAK,MAAM;AAAA,EACT;AAAA,IACE,KAAK,OAAO;AAAA;AAAA,MAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,MAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAExC,cAAc,KAAK,SAAS,iCAAiC;AAAA;AAAA,MAE7D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAExC,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,MAEhG,aAAa,KAAK,SAAS,KAAK,MAAM,CAAC,yBAAyB,qBAAqB,CAAC,CAAC;AAAA;AAAA,MAEvF,WAAW,KAAK,SAAS,qBAAqB;AAAA;AAAA,MAE9C,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,MAExC,UAAU,KAAK,SAAS,KAAK,MAAM,+BAA+B,CAAC;AAAA;AAAA,MAEnE,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,MAErD,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,UAAU,qBAAqB,CAAC,CAAC,CAAC;AAAA,IACpG,CAAC;AAAA,IACD;AAAA,IACA;AAAA,EACF;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/
|
|
1
|
+
import { compose } from "../../../schemas/compose.js";
|
|
2
2
|
import { MediaTypeObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
|
|
3
3
|
import { ExampleObjectSchema } from "../../../schemas/v3.1/strict/example.js";
|
|
4
4
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/parameter.ts"],
|
|
4
|
-
"sourcesContent": ["import { compose } from '@/schemas/
|
|
4
|
+
"sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { MediaTypeObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type Static } from '@sinclair/typebox'\n\nexport const ParameterObjectBaseSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the parameter. Parameter names are case sensitive.\n * - 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.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in field. */\n name: Type.String(),\n /** REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\". */\n in: Type.Union([Type.Literal('query'), Type.Literal('header'), Type.Literal('path'), Type.Literal('cookie')]),\n /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this parameter is mandatory. If the parameter location is \"path\", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely, which the server SHOULD interpret as the parameter being unused. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Interactions between this field and the parameter's Schema Object are implementation-defined. This field is valid only for query parameters. Use of this field is NOT RECOMMENDED, and it is likely to be removed in a later revision. */\n allowEmptyValue: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const ParameterObjectWithSchemaSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const ParameterObjectWithContentSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectSchema)),\n }),\n)\n\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 Appendix E for a detailed examination of percent-encoding concerns, including interactions with the application/x-www-form-urlencoded query string format.\n */\nexport const ParameterObjectSchema = Type.Union([ParameterObjectWithSchemaSchema, ParameterObjectWithContentSchema])\n\nexport type ParameterObject = Static<typeof ParameterObjectSchema>\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAAyB;AAE3B,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA;AAAA,IAE5G,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAExC,iBAAiB,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC/C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC;AAAA;AAAA,IAE7E,SAAS,KAAK,IAAI;AAAA;AAAA,IAElB,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,qBAAqB,CAAC;AAAA,EAC1E,CAAC;AACH;AASO,MAAM,wBAAwB,KAAK,MAAM,CAAC,iCAAiC,gCAAgC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -20,6 +20,12 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
20
20
|
delete: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
21
21
|
/** A definition of a PATCH operation on this path. */
|
|
22
22
|
patch: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
23
|
+
/** A definition of a CONNECT operation on this path. */
|
|
24
|
+
connect: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
25
|
+
/** A definition of a OPTIONS operation on this path. */
|
|
26
|
+
options: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
27
|
+
/** A definition of a HEAD operation on this path. */
|
|
28
|
+
head: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
23
29
|
/** A definition of a TRACE operation on this path. */
|
|
24
30
|
trace: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
|
|
25
31
|
/** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIhb,CAAA"}
|
|
1
|
+
{"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,wDAAwD;;IAExD,wDAAwD;;IAExD,qDAAqD;;IAErD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIhb,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { ParameterObjectSchema } from "./parameter.js";
|
|
|
3
3
|
import { ReferenceObjectSchema } from "./reference.js";
|
|
4
4
|
import { ServerObjectSchema } from "./server.js";
|
|
5
5
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
6
|
-
import { compose } from "../../../schemas/
|
|
6
|
+
import { compose } from "../../../schemas/compose.js";
|
|
7
7
|
const pathItemObjectSchemaBuilder = (operation) => compose(
|
|
8
8
|
Type.Object({
|
|
9
9
|
/**
|
|
@@ -26,6 +26,12 @@ const pathItemObjectSchemaBuilder = (operation) => compose(
|
|
|
26
26
|
delete: Type.Optional(operation),
|
|
27
27
|
/** A definition of a PATCH operation on this path. */
|
|
28
28
|
patch: Type.Optional(operation),
|
|
29
|
+
/** A definition of a CONNECT operation on this path. */
|
|
30
|
+
connect: Type.Optional(operation),
|
|
31
|
+
/** A definition of a OPTIONS operation on this path. */
|
|
32
|
+
options: Type.Optional(operation),
|
|
33
|
+
/** A definition of a HEAD operation on this path. */
|
|
34
|
+
head: Type.Optional(operation),
|
|
29
35
|
/** A definition of a TRACE operation on this path. */
|
|
30
36
|
trace: Type.Optional(operation),
|
|
31
37
|
/** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/path-item.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/
|
|
5
|
-
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,cAC7D;AAAA,EACE,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMV,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,QAAQ,KAAK,SAAS,SAAS;AAAA;AAAA,IAE/B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAClG,CAAC;AAAA,EACD;AACF;",
|
|
4
|
+
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\nexport const pathItemObjectSchemaBuilder = <O extends TSchema>(operation: O) =>\n compose(\n Type.Object({\n /**\n * 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.\n *\n * 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.\n */\n '$ref': Type.Optional(Type.String()),\n /** An optional string summary, intended to apply to all operations in this path. */\n summary: Type.Optional(Type.String()),\n /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A definition of a GET operation on this path. */\n get: Type.Optional(operation),\n /** A definition of a PUT operation on this path. */\n put: Type.Optional(operation),\n /** A definition of a POST operation on this path. */\n post: Type.Optional(operation),\n /** A definition of a DELETE operation on this path. */\n delete: Type.Optional(operation),\n /** A definition of a PATCH operation on this path. */\n patch: Type.Optional(operation),\n /** A definition of a CONNECT operation on this path. */\n connect: Type.Optional(operation),\n /** A definition of a OPTIONS operation on this path. */\n options: Type.Optional(operation),\n /** A definition of a HEAD operation on this path. */\n head: Type.Optional(operation),\n /** A definition of a TRACE operation on this path. */\n trace: Type.Optional(operation),\n /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** 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 in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n }),\n ExtensionsSchema,\n )\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,cAC7D;AAAA,EACE,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMV,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,QAAQ,KAAK,SAAS,SAAS;AAAA;AAAA,IAE/B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,SAAS;AAAA;AAAA,IAEhC,SAAS,KAAK,SAAS,SAAS;AAAA;AAAA,IAEhC,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAClG,CAAC;AAAA,EACD;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|