@scalar/workspace-store 0.28.1 → 0.28.3
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 +28 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +42 -2
- package/dist/client.js.map +2 -2
- package/dist/entities/auth/index.d.ts +75 -0
- package/dist/entities/auth/index.d.ts.map +1 -0
- package/dist/entities/auth/index.js +89 -0
- package/dist/entities/auth/index.js.map +7 -0
- package/dist/entities/auth/schema.d.ts +7318 -0
- package/dist/entities/auth/schema.d.ts.map +1 -0
- package/dist/entities/auth/schema.js +74 -0
- package/dist/entities/auth/schema.js.map +7 -0
- package/dist/entities/history/index.d.ts +93 -0
- package/dist/entities/history/index.d.ts.map +1 -0
- package/dist/entities/history/index.js +62 -0
- package/dist/entities/history/index.js.map +7 -0
- package/dist/entities/history/schema.d.ts +234 -0
- package/dist/entities/history/schema.d.ts.map +1 -0
- package/dist/{schemas/extensions/operation/x-scalar-history.js → entities/history/schema.js} +5 -6
- package/dist/{schemas/extensions/operation/x-scalar-history.js.map → entities/history/schema.js.map} +3 -3
- package/dist/events/definitions/auth.d.ts +14 -0
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/mutators/auth.d.ts +10 -17
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +87 -57
- package/dist/mutators/auth.js.map +2 -2
- package/dist/mutators/index.d.ts +4 -12
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +1 -1
- package/dist/mutators/index.js.map +2 -2
- package/dist/mutators/operation.d.ts +2 -2
- package/dist/mutators/operation.d.ts.map +1 -1
- package/dist/mutators/operation.js +9 -16
- package/dist/mutators/operation.js.map +2 -2
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +0 -3
- package/dist/mutators/server.js.map +2 -2
- package/dist/persistence/index.d.ts +16 -3
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +47 -3
- package/dist/persistence/index.js.map +2 -2
- package/dist/plugins/bundler/index.d.ts +7 -0
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +17 -0
- package/dist/plugins/bundler/index.js.map +2 -2
- package/dist/plugins/client/persistence.d.ts.map +1 -1
- package/dist/plugins/client/persistence.js +12 -0
- package/dist/plugins/client/persistence.js.map +2 -2
- package/dist/resolve.d.ts +9 -0
- package/dist/resolve.d.ts.map +1 -0
- package/dist/resolve.js +28 -0
- package/dist/resolve.js.map +7 -0
- package/dist/schemas/extensions/security/index.d.ts +2 -0
- package/dist/schemas/extensions/security/index.d.ts.map +1 -0
- package/dist/schemas/extensions/security/index.js +1 -0
- package/dist/schemas/extensions/security/index.js.map +7 -0
- package/dist/schemas/inmemory-workspace.d.ts +2952 -149
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +5 -1
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +35 -149
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +35 -149
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +5 -35
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +1 -16
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +0 -29
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1245 -6744
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +2 -10
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +1 -70
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +1 -7
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +0 -1
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js +1 -3
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +50 -46
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +5 -2
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +3 -11
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +0 -7
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/workspace.d.ts +245 -1043
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/workspace-plugin.d.ts +8 -0
- package/dist/workspace-plugin.d.ts.map +1 -1
- package/package.json +26 -6
- package/dist/schemas/extensions/operation/x-scalar-history.d.ts +0 -217
- package/dist/schemas/extensions/operation/x-scalar-history.d.ts.map +0 -1
- package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts +0 -17
- package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts.map +0 -1
- package/dist/schemas/extensions/security/x-scalar-selected-security.js +0 -14
- package/dist/schemas/extensions/security/x-scalar-selected-security.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/operation.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { type XBadges, XBadgesSchema } from '@/schemas/extensions/operation/x-badge'\nimport { type XCodeSamples, XCodeSamplesSchema } from '@/schemas/extensions/operation/x-code-samples'\nimport {\n type XScalarDisableParameters,\n XScalarDisableParametersSchema,\n} from '@/schemas/extensions/operation/x-scalar-disable-parameters'\nimport { type
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAuB,qBAAqB;AAC5C,SAA4B,0BAA0B;AACtD;AAAA,EAEE;AAAA,OACK;AACP,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { type XBadges, XBadgesSchema } from '@/schemas/extensions/operation/x-badge'\nimport { type XCodeSamples, XCodeSamplesSchema } from '@/schemas/extensions/operation/x-code-samples'\nimport {\n type XScalarDisableParameters,\n XScalarDisableParametersSchema,\n} from '@/schemas/extensions/operation/x-scalar-disable-parameters'\nimport { type XScalarStability, XScalarStabilitySchema } from '@/schemas/extensions/operation/x-scalar-stability'\n\nimport type { CallbackObject } from './callback'\nimport type { ExternalDocumentationObject } from './external-documentation'\nimport type { ParameterObject } from './parameter'\nimport {\n CallbackObjectRef,\n ExternalDocumentationObjectRef,\n ParameterObjectRef,\n RequestBodyObjectRef,\n ResponsesObjectRef,\n SecurityRequirementObjectRef,\n ServerObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { RequestBodyObject } from './request-body'\nimport type { ResponsesObject } from './responses'\nimport type { SecurityRequirementObject } from './security-requirement'\nimport type { ServerObject } from './server'\n\nexport const OperationObjectSchemaDefinition = 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(ExternalDocumentationObjectRef),\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([ParameterObjectRef, reference(ParameterObjectRef)]))),\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([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectRef),\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(SecurityRequirementObjectRef)),\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(ServerObjectRef)),\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([CallbackObjectRef, reference(CallbackObjectRef)]))),\n }),\n XBadgesSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n XCodeSamplesSchema,\n XScalarStabilitySchema,\n XScalarDisableParametersSchema,\n)\n\nexport type OperationObject = {\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?: string[]\n /** A short summary of what the operation does. */\n summary?: string\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Additional external documentation for this operation. */\n externalDocs?: ExternalDocumentationObject\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?: 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?: ReferenceType<ParameterObject>[]\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?: ReferenceType<RequestBodyObject>\n /** The list of possible responses as they are returned from executing this operation. */\n responses?: ResponsesObject\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated?: 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?: SecurityRequirementObject[]\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?: ServerObject[]\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?: Record<string, ReferenceType<CallbackObject>>\n} & XBadges &\n XInternal &\n XScalarIgnore &\n XCodeSamples &\n XScalarStability &\n XScalarDisableParameters\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAuB,qBAAqB;AAC5C,SAA4B,0BAA0B;AACtD;AAAA,EAEE;AAAA,OACK;AACP,SAAgC,8BAA8B;AAK9D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAMvC,MAAM,kCAAkC;AAAA,EAC7C,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,IAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,8BAA8B;AAAA;AAAA,IAE1D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,IAErG,aAAa,KAAK,SAAS,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9F,WAAW,KAAK,SAAS,kBAAkB;AAAA;AAAA,IAE3C,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,MAAM,4BAA4B,CAAC;AAAA;AAAA,IAEhE,SAAS,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,IAElD,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA,EACpH,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -40,7 +40,6 @@ export declare const REF_DEFINITIONS: {
|
|
|
40
40
|
readonly TraversedTagObject: "TraversedTagObject";
|
|
41
41
|
readonly TraversedEntryObject: "TraversedEntryObject";
|
|
42
42
|
readonly TraversedDocumentObject: "TraversedDocumentObject";
|
|
43
|
-
readonly XScalarSelectedSecurity: "XScalarSelectedSecurity";
|
|
44
43
|
};
|
|
45
44
|
export declare const ComponentsObjectRef: import("@scalar/typebox").TRef<"ComponentsObject">;
|
|
46
45
|
export declare const SecurityRequirementObjectRef: import("@scalar/typebox").TRef<"SecurityRequirementObject">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-definitions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"ref-definitions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClB,CAAA;AAGV,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,4BAA4B,6DAAsD,CAAA;AAC/F,eAAO,MA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raversedEntryObject",
|
|
38
|
-
TraversedDocumentObject: "TraversedDocumentObject"
|
|
39
|
-
// Extensions
|
|
40
|
-
XScalarSelectedSecurity: "XScalarSelectedSecurity"
|
|
38
|
+
TraversedDocumentObject: "TraversedDocumentObject"
|
|
41
39
|
};
|
|
42
40
|
const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject);
|
|
43
41
|
const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Reference definitions for OpenAPI 3.1 objects.\n * These can be used with Type.Ref to create references to these objects in other schemas.\n *\n * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.\n */\nexport const REF_DEFINITIONS = {\n ComponentsObject: 'ComponentsObject',\n SecurityRequirementObject: 'SecurityRequirementObject',\n TagObject: 'TagObject',\n CallbackObject: 'CallbackObject',\n PathsObject: 'PathsObject',\n PathItemObject: 'PathItemObject',\n OperationObject: 'OperationObject',\n SchemaObject: 'SchemaObject',\n EncodingObject: 'EncodingObject',\n HeaderObject: 'HeaderObject',\n MediaTypeObject: 'MediaTypeObject',\n ServerObject: 'ServerObject',\n ExternalDocumentationObject: 'ExternalDocumentationObject',\n InfoObject: 'InfoObject',\n ContactObject: 'ContactObject',\n LicenseObject: 'LicenseObject',\n ResponseObject: 'ResponseObject',\n ResponsesObject: 'ResponsesObject',\n ParameterObject: 'ParameterObject',\n ExampleObject: 'ExampleObject',\n RequestBodyObject: 'RequestBodyObject',\n SecuritySchemeObject: 'SecuritySchemeObject',\n SecuritySchemes: 'SecuritySchemes',\n LinkObject: 'LinkObject',\n XMLObject: 'XMLObject',\n DiscriminatorObject: 'DiscriminatorObject',\n OAuthFlowsObject: 'OAuthFlowsObject',\n ServerVariableObject: 'ServerVariableObject',\n\n // Navigation schemas\n TraversedDescriptionObject: 'TraversedDescriptionObject',\n TraversedOperationObject: 'TraversedOperationObject',\n TraversedSchemaObject: 'TraversedSchemaObject',\n TraversedWebhookObject: 'TraversedWebhookObject',\n TraversedTagObject: 'TraversedTagObject',\n TraversedEntryObject: 'TraversedEntryObject',\n TraversedDocumentObject: 'TraversedDocumentObject',\n
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAQd,MAAM,kBAAkB;AAAA,EAC7B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA;AAAA,EAGtB,4BAA4B;AAAA,EAC5B,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,yBAAyB;
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Reference definitions for OpenAPI 3.1 objects.\n * These can be used with Type.Ref to create references to these objects in other schemas.\n *\n * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.\n */\nexport const REF_DEFINITIONS = {\n ComponentsObject: 'ComponentsObject',\n SecurityRequirementObject: 'SecurityRequirementObject',\n TagObject: 'TagObject',\n CallbackObject: 'CallbackObject',\n PathsObject: 'PathsObject',\n PathItemObject: 'PathItemObject',\n OperationObject: 'OperationObject',\n SchemaObject: 'SchemaObject',\n EncodingObject: 'EncodingObject',\n HeaderObject: 'HeaderObject',\n MediaTypeObject: 'MediaTypeObject',\n ServerObject: 'ServerObject',\n ExternalDocumentationObject: 'ExternalDocumentationObject',\n InfoObject: 'InfoObject',\n ContactObject: 'ContactObject',\n LicenseObject: 'LicenseObject',\n ResponseObject: 'ResponseObject',\n ResponsesObject: 'ResponsesObject',\n ParameterObject: 'ParameterObject',\n ExampleObject: 'ExampleObject',\n RequestBodyObject: 'RequestBodyObject',\n SecuritySchemeObject: 'SecuritySchemeObject',\n SecuritySchemes: 'SecuritySchemes',\n LinkObject: 'LinkObject',\n XMLObject: 'XMLObject',\n DiscriminatorObject: 'DiscriminatorObject',\n OAuthFlowsObject: 'OAuthFlowsObject',\n ServerVariableObject: 'ServerVariableObject',\n\n // Navigation schemas\n TraversedDescriptionObject: 'TraversedDescriptionObject',\n TraversedOperationObject: 'TraversedOperationObject',\n TraversedSchemaObject: 'TraversedSchemaObject',\n TraversedWebhookObject: 'TraversedWebhookObject',\n TraversedTagObject: 'TraversedTagObject',\n TraversedEntryObject: 'TraversedEntryObject',\n TraversedDocumentObject: 'TraversedDocumentObject',\n} as const\n\n// Type alias for schema definitions\nexport const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject)\nexport const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject)\nexport const TagObjectRef = Type.Ref(REF_DEFINITIONS.TagObject)\nexport const CallbackObjectRef = Type.Ref(REF_DEFINITIONS.CallbackObject)\nexport const PathItemObjectRef = Type.Ref(REF_DEFINITIONS.PathItemObject)\nexport const PathsObjectRef = Type.Ref(REF_DEFINITIONS.PathsObject)\nexport const OperationObjectRef = Type.Ref(REF_DEFINITIONS.OperationObject)\nexport const SchemaObjectRef = Type.Ref(REF_DEFINITIONS.SchemaObject)\nexport const EncodingObjectRef = Type.Ref(REF_DEFINITIONS.EncodingObject)\nexport const HeaderObjectRef = Type.Ref(REF_DEFINITIONS.HeaderObject)\nexport const MediaTypeObjectRef = Type.Ref(REF_DEFINITIONS.MediaTypeObject)\nexport const ServerObjectRef = Type.Ref(REF_DEFINITIONS.ServerObject)\nexport const ExternalDocumentationObjectRef = Type.Ref(REF_DEFINITIONS.ExternalDocumentationObject)\nexport const InfoObjectRef = Type.Ref(REF_DEFINITIONS.InfoObject)\nexport const ContactObjectRef = Type.Ref(REF_DEFINITIONS.ContactObject)\nexport const LicenseObjectRef = Type.Ref(REF_DEFINITIONS.LicenseObject)\nexport const ResponseObjectRef = Type.Ref(REF_DEFINITIONS.ResponseObject)\nexport const ResponsesObjectRef = Type.Ref(REF_DEFINITIONS.ResponsesObject)\nexport const ParameterObjectRef = Type.Ref(REF_DEFINITIONS.ParameterObject)\nexport const ExampleObjectRef = Type.Ref(REF_DEFINITIONS.ExampleObject)\nexport const RequestBodyObjectRef = Type.Ref(REF_DEFINITIONS.RequestBodyObject)\nexport const SecuritySchemeObjectRef = Type.Ref(REF_DEFINITIONS.SecuritySchemeObject)\nexport const LinkObjectRef = Type.Ref(REF_DEFINITIONS.LinkObject)\nexport const XMLObjectRef = Type.Ref(REF_DEFINITIONS.XMLObject)\nexport const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject)\nexport const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject)\nexport const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject)\n\n// Navigation schema references\nexport const TraversedEntryObjectRef = Type.Ref(REF_DEFINITIONS.TraversedEntryObject)\n// export const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\nexport const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.TraversedDocumentObject)\n"],
|
|
5
|
+
"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BAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,iCAAiC,KAAK,IAAI,gBAAgB,2BAA2B;AAC3F,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,uBAAuB,KAAK,IAAI,gBAAgB,iBAAiB;AACvE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAC7E,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,yBAAyB,KAAK,IAAI,gBAAgB,mBAAmB;AAC3E,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAG7E,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAE7E,MAAM,6BAA6B,KAAK,IAAI,gBAAgB,uBAAuB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,7 +9,10 @@ import { type XVariable } from '../../../schemas/extensions/schema/x-variable.js
|
|
|
9
9
|
import type { ExternalDocumentationObject } from '../../../schemas/v3.1/strict/external-documentation.js';
|
|
10
10
|
import type { XMLObject } from '../../../schemas/v3.1/strict/xml.js';
|
|
11
11
|
import type { DiscriminatorObject } from './discriminator.js';
|
|
12
|
-
import { type
|
|
12
|
+
import { type ReferenceObject } from './reference.js';
|
|
13
|
+
export type SchemaReferenceType<Value> = Value | (ReferenceObject & {
|
|
14
|
+
'$ref-value': unknown;
|
|
15
|
+
});
|
|
13
16
|
/** We use this type to ensure that we are parsing a schema object as every property can be optional */
|
|
14
17
|
type _InternalType = CoreProperties & {
|
|
15
18
|
__scalar_: string;
|
|
@@ -65,7 +68,7 @@ type CoreProperties = {
|
|
|
65
68
|
/** Content encoding. */
|
|
66
69
|
contentEncoding?: string;
|
|
67
70
|
/** Schema for content validation. */
|
|
68
|
-
contentSchema?:
|
|
71
|
+
contentSchema?: SchemaReferenceType<SchemaObject>;
|
|
69
72
|
/** Whether the schema is deprecated. */
|
|
70
73
|
deprecated?: boolean;
|
|
71
74
|
/** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */
|
|
@@ -90,13 +93,13 @@ type CoreProperties = {
|
|
|
90
93
|
*/
|
|
91
94
|
examples?: unknown[];
|
|
92
95
|
/** All schemas must be valid. */
|
|
93
|
-
allOf?:
|
|
96
|
+
allOf?: SchemaReferenceType<SchemaObject>[];
|
|
94
97
|
/** Exactly one schema must be valid. */
|
|
95
|
-
oneOf?:
|
|
98
|
+
oneOf?: SchemaReferenceType<SchemaObject>[];
|
|
96
99
|
/** At least one schema must be valid. */
|
|
97
|
-
anyOf?:
|
|
100
|
+
anyOf?: SchemaReferenceType<SchemaObject>[];
|
|
98
101
|
/** Schema must not be valid. */
|
|
99
|
-
not?:
|
|
102
|
+
not?: SchemaReferenceType<SchemaObject>;
|
|
100
103
|
};
|
|
101
104
|
type NumericObject = CoreProperties & {
|
|
102
105
|
type: 'number' | 'integer';
|
|
@@ -140,9 +143,9 @@ type ArrayObject = CoreProperties & {
|
|
|
140
143
|
/** Whether array items must be unique. */
|
|
141
144
|
uniqueItems?: boolean;
|
|
142
145
|
/** Schema for array items. */
|
|
143
|
-
items?:
|
|
146
|
+
items?: SchemaReferenceType<SchemaObject>;
|
|
144
147
|
/** Schema for tuple validation. */
|
|
145
|
-
prefixItems?:
|
|
148
|
+
prefixItems?: SchemaReferenceType<SchemaObject>[];
|
|
146
149
|
} & Extensions;
|
|
147
150
|
type ObjectObject = CoreProperties & {
|
|
148
151
|
type: 'object';
|
|
@@ -153,11 +156,11 @@ type ObjectObject = CoreProperties & {
|
|
|
153
156
|
/** Array of required property names. */
|
|
154
157
|
required?: string[];
|
|
155
158
|
/** Object property definitions. */
|
|
156
|
-
properties?: Record<string,
|
|
159
|
+
properties?: Record<string, SchemaReferenceType<SchemaObject>>;
|
|
157
160
|
/** Schema for additional properties. */
|
|
158
|
-
additionalProperties?: boolean |
|
|
161
|
+
additionalProperties?: boolean | SchemaReferenceType<SchemaObject>;
|
|
159
162
|
/** Properties matching regex patterns. */
|
|
160
|
-
patternProperties?: Record<string,
|
|
163
|
+
patternProperties?: Record<string, SchemaReferenceType<SchemaObject>>;
|
|
161
164
|
} & Extensions;
|
|
162
165
|
/** Builds the recursive schema schema */
|
|
163
166
|
export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -187,7 +190,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
187
190
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
188
191
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
189
192
|
}>]>, import("@scalar/typebox").TObject<{
|
|
190
|
-
'$ref-value': import("@scalar/typebox").
|
|
193
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
191
194
|
}>]>]>>;
|
|
192
195
|
/** Whether the schema is deprecated. */
|
|
193
196
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -221,7 +224,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
221
224
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
222
225
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
223
226
|
}>]>, import("@scalar/typebox").TObject<{
|
|
224
|
-
'$ref-value': import("@scalar/typebox").
|
|
227
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
225
228
|
}>]>]>>>;
|
|
226
229
|
/** Exactly one schema must be valid. */
|
|
227
230
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -232,7 +235,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
232
235
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
233
236
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
234
237
|
}>]>, import("@scalar/typebox").TObject<{
|
|
235
|
-
'$ref-value': import("@scalar/typebox").
|
|
238
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
236
239
|
}>]>]>>>;
|
|
237
240
|
/** At least one schema must be valid. */
|
|
238
241
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -243,7 +246,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
243
246
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
244
247
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
245
248
|
}>]>, import("@scalar/typebox").TObject<{
|
|
246
|
-
'$ref-value': import("@scalar/typebox").
|
|
249
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
247
250
|
}>]>]>>>;
|
|
248
251
|
/** Schema must not be valid. */
|
|
249
252
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -254,7 +257,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
254
257
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
255
258
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
256
259
|
}>]>, import("@scalar/typebox").TObject<{
|
|
257
|
-
'$ref-value': import("@scalar/typebox").
|
|
260
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
258
261
|
}>]>]>>;
|
|
259
262
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
260
263
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -301,7 +304,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
301
304
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
302
305
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
303
306
|
}>]>, import("@scalar/typebox").TObject<{
|
|
304
|
-
'$ref-value': import("@scalar/typebox").
|
|
307
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
305
308
|
}>]>]>>;
|
|
306
309
|
/** Whether the schema is deprecated. */
|
|
307
310
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -335,7 +338,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
335
338
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
336
339
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
337
340
|
}>]>, import("@scalar/typebox").TObject<{
|
|
338
|
-
'$ref-value': import("@scalar/typebox").
|
|
341
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
339
342
|
}>]>]>>>;
|
|
340
343
|
/** Exactly one schema must be valid. */
|
|
341
344
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -346,7 +349,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
346
349
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
347
350
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
348
351
|
}>]>, import("@scalar/typebox").TObject<{
|
|
349
|
-
'$ref-value': import("@scalar/typebox").
|
|
352
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
350
353
|
}>]>]>>>;
|
|
351
354
|
/** At least one schema must be valid. */
|
|
352
355
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -357,7 +360,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
357
360
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
358
361
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
359
362
|
}>]>, import("@scalar/typebox").TObject<{
|
|
360
|
-
'$ref-value': import("@scalar/typebox").
|
|
363
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
361
364
|
}>]>]>>>;
|
|
362
365
|
/** Schema must not be valid. */
|
|
363
366
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -368,7 +371,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
368
371
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
369
372
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
370
373
|
}>]>, import("@scalar/typebox").TObject<{
|
|
371
|
-
'$ref-value': import("@scalar/typebox").
|
|
374
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
372
375
|
}>]>]>>;
|
|
373
376
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
374
377
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -427,7 +430,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
427
430
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
428
431
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
429
432
|
}>]>, import("@scalar/typebox").TObject<{
|
|
430
|
-
'$ref-value': import("@scalar/typebox").
|
|
433
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
431
434
|
}>]>]>>;
|
|
432
435
|
/** Whether the schema is deprecated. */
|
|
433
436
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -461,7 +464,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
461
464
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
462
465
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
463
466
|
}>]>, import("@scalar/typebox").TObject<{
|
|
464
|
-
'$ref-value': import("@scalar/typebox").
|
|
467
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
465
468
|
}>]>]>>>;
|
|
466
469
|
/** Exactly one schema must be valid. */
|
|
467
470
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -472,7 +475,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
472
475
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
473
476
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
474
477
|
}>]>, import("@scalar/typebox").TObject<{
|
|
475
|
-
'$ref-value': import("@scalar/typebox").
|
|
478
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
476
479
|
}>]>]>>>;
|
|
477
480
|
/** At least one schema must be valid. */
|
|
478
481
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -483,7 +486,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
483
486
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
484
487
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
485
488
|
}>]>, import("@scalar/typebox").TObject<{
|
|
486
|
-
'$ref-value': import("@scalar/typebox").
|
|
489
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
487
490
|
}>]>]>>>;
|
|
488
491
|
/** Schema must not be valid. */
|
|
489
492
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -494,7 +497,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
494
497
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
495
498
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
496
499
|
}>]>, import("@scalar/typebox").TObject<{
|
|
497
|
-
'$ref-value': import("@scalar/typebox").
|
|
500
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
498
501
|
}>]>]>>;
|
|
499
502
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
500
503
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -549,7 +552,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
549
552
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
550
553
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
551
554
|
}>]>, import("@scalar/typebox").TObject<{
|
|
552
|
-
'$ref-value': import("@scalar/typebox").
|
|
555
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
553
556
|
}>]>]>>;
|
|
554
557
|
/** Whether the schema is deprecated. */
|
|
555
558
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -583,7 +586,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
583
586
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
584
587
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
585
588
|
}>]>, import("@scalar/typebox").TObject<{
|
|
586
|
-
'$ref-value': import("@scalar/typebox").
|
|
589
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
587
590
|
}>]>]>>>;
|
|
588
591
|
/** Exactly one schema must be valid. */
|
|
589
592
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -594,7 +597,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
594
597
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
595
598
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
596
599
|
}>]>, import("@scalar/typebox").TObject<{
|
|
597
|
-
'$ref-value': import("@scalar/typebox").
|
|
600
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
598
601
|
}>]>]>>>;
|
|
599
602
|
/** At least one schema must be valid. */
|
|
600
603
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -605,7 +608,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
605
608
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
606
609
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
607
610
|
}>]>, import("@scalar/typebox").TObject<{
|
|
608
|
-
'$ref-value': import("@scalar/typebox").
|
|
611
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
609
612
|
}>]>]>>>;
|
|
610
613
|
/** Schema must not be valid. */
|
|
611
614
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -616,7 +619,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
616
619
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
617
620
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
618
621
|
}>]>, import("@scalar/typebox").TObject<{
|
|
619
|
-
'$ref-value': import("@scalar/typebox").
|
|
622
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
620
623
|
}>]>]>>;
|
|
621
624
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
622
625
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -653,7 +656,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
653
656
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
654
657
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
655
658
|
}>]>, import("@scalar/typebox").TObject<{
|
|
656
|
-
'$ref-value': import("@scalar/typebox").
|
|
659
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
657
660
|
}>]>]>>>;
|
|
658
661
|
/** Schema for additional properties. */
|
|
659
662
|
additionalProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -664,7 +667,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
664
667
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
665
668
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
666
669
|
}>]>, import("@scalar/typebox").TObject<{
|
|
667
|
-
'$ref-value': import("@scalar/typebox").
|
|
670
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
668
671
|
}>]>]>]>>;
|
|
669
672
|
/** Properties matching regex patterns. */
|
|
670
673
|
patternProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -675,7 +678,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
675
678
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
676
679
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
677
680
|
}>]>, import("@scalar/typebox").TObject<{
|
|
678
|
-
'$ref-value': import("@scalar/typebox").
|
|
681
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
679
682
|
}>]>]>>>;
|
|
680
683
|
}>, import("@scalar/typebox").TObject<{
|
|
681
684
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -702,7 +705,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
702
705
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
703
706
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
704
707
|
}>]>, import("@scalar/typebox").TObject<{
|
|
705
|
-
'$ref-value': import("@scalar/typebox").
|
|
708
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
706
709
|
}>]>]>>;
|
|
707
710
|
/** Whether the schema is deprecated. */
|
|
708
711
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -736,7 +739,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
736
739
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
737
740
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
738
741
|
}>]>, import("@scalar/typebox").TObject<{
|
|
739
|
-
'$ref-value': import("@scalar/typebox").
|
|
742
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
740
743
|
}>]>]>>>;
|
|
741
744
|
/** Exactly one schema must be valid. */
|
|
742
745
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -747,7 +750,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
747
750
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
748
751
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
749
752
|
}>]>, import("@scalar/typebox").TObject<{
|
|
750
|
-
'$ref-value': import("@scalar/typebox").
|
|
753
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
751
754
|
}>]>]>>>;
|
|
752
755
|
/** At least one schema must be valid. */
|
|
753
756
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -758,7 +761,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
758
761
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
759
762
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
760
763
|
}>]>, import("@scalar/typebox").TObject<{
|
|
761
|
-
'$ref-value': import("@scalar/typebox").
|
|
764
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
762
765
|
}>]>]>>>;
|
|
763
766
|
/** Schema must not be valid. */
|
|
764
767
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -769,7 +772,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
769
772
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
770
773
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
771
774
|
}>]>, import("@scalar/typebox").TObject<{
|
|
772
|
-
'$ref-value': import("@scalar/typebox").
|
|
775
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
773
776
|
}>]>]>>;
|
|
774
777
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
775
778
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -806,7 +809,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
806
809
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
807
810
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
808
811
|
}>]>, import("@scalar/typebox").TObject<{
|
|
809
|
-
'$ref-value': import("@scalar/typebox").
|
|
812
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
810
813
|
}>]>]>>;
|
|
811
814
|
/** Schema for tuple validation. */
|
|
812
815
|
prefixItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -817,7 +820,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
817
820
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
818
821
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
819
822
|
}>]>, import("@scalar/typebox").TObject<{
|
|
820
|
-
'$ref-value': import("@scalar/typebox").
|
|
823
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
821
824
|
}>]>]>>>;
|
|
822
825
|
}>, import("@scalar/typebox").TObject<{
|
|
823
826
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -844,7 +847,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
844
847
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
845
848
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
846
849
|
}>]>, import("@scalar/typebox").TObject<{
|
|
847
|
-
'$ref-value': import("@scalar/typebox").
|
|
850
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
848
851
|
}>]>]>>;
|
|
849
852
|
/** Whether the schema is deprecated. */
|
|
850
853
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -878,7 +881,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
878
881
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
879
882
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
880
883
|
}>]>, import("@scalar/typebox").TObject<{
|
|
881
|
-
'$ref-value': import("@scalar/typebox").
|
|
884
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
882
885
|
}>]>]>>>;
|
|
883
886
|
/** Exactly one schema must be valid. */
|
|
884
887
|
oneOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -889,7 +892,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
889
892
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
890
893
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
891
894
|
}>]>, import("@scalar/typebox").TObject<{
|
|
892
|
-
'$ref-value': import("@scalar/typebox").
|
|
895
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
893
896
|
}>]>]>>>;
|
|
894
897
|
/** At least one schema must be valid. */
|
|
895
898
|
anyOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -900,7 +903,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
900
903
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
901
904
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
902
905
|
}>]>, import("@scalar/typebox").TObject<{
|
|
903
|
-
'$ref-value': import("@scalar/typebox").
|
|
906
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
904
907
|
}>]>]>>>;
|
|
905
908
|
/** Schema must not be valid. */
|
|
906
909
|
not: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -911,7 +914,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
911
914
|
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
912
915
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
913
916
|
}>]>, import("@scalar/typebox").TObject<{
|
|
914
|
-
'$ref-value': import("@scalar/typebox").
|
|
917
|
+
'$ref-value': import("@scalar/typebox").TUnknown;
|
|
915
918
|
}>]>]>>;
|
|
916
919
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
917
920
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -933,5 +936,6 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
933
936
|
'x-tags': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
934
937
|
}>]>]>]>;
|
|
935
938
|
export type SchemaObject = _InternalType | OtherTypes | NumericObject | StringObject | ObjectObject | ArrayObject;
|
|
939
|
+
export type MaybeRefSchemaObject = SchemaReferenceType<SchemaObject>;
|
|
936
940
|
export {};
|
|
937
941
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,0CAA0C,CAAA;AAC1F,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AAC5D,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,iDAAiD,CAAA;AACjH,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,6CAA6C,CAAA;AACrG,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,wCAAwC,CAAA;AACxF,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,wCAAwC,CAAA;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAA;AAC/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAO1D,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,0CAA0C,CAAA;AAC1F,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AAC5D,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0DAA0D,CAAA;AACjE,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,iDAAiD,CAAA;AACjH,OAAO,EAAE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AEzD;;;;OAIG;;IAEH;;;OAGG;;IAEH,iCAAiC;;;;;;;;;;;IAEjC,wCAAwC;;;;;;;;;;;IAExC,yCAAyC;;;;;;;;;;;IAEzC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6PhC,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAA;AACjH,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAA"}
|
|
@@ -16,8 +16,11 @@ import {
|
|
|
16
16
|
SchemaObjectRef,
|
|
17
17
|
XMLObjectRef
|
|
18
18
|
} from "./ref-definitions.js";
|
|
19
|
-
import {
|
|
20
|
-
const schemaOrReference = Type.Union([
|
|
19
|
+
import { ReferenceObjectSchema } from "./reference.js";
|
|
20
|
+
const schemaOrReference = Type.Union([
|
|
21
|
+
SchemaObjectRef,
|
|
22
|
+
compose(ReferenceObjectSchema, Type.Object({ "$ref-value": Type.Unknown() }))
|
|
23
|
+
]);
|
|
21
24
|
const OtherTypes = Type.Object({
|
|
22
25
|
type: Type.Union([
|
|
23
26
|
Type.Literal("null"),
|