@scalar/workspace-store 0.17.0 → 0.18.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 +64 -0
- package/dist/client.d.ts +38 -26
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +286 -84
- package/dist/client.js.map +3 -3
- package/dist/events/bus.d.ts +86 -0
- package/dist/events/bus.d.ts.map +1 -0
- package/dist/events/bus.js +58 -0
- package/dist/events/bus.js.map +7 -0
- package/dist/events/definitions/analytics.d.ts +27 -0
- package/dist/events/definitions/analytics.d.ts.map +1 -0
- package/dist/events/definitions/analytics.js +1 -0
- package/dist/events/definitions/analytics.js.map +7 -0
- package/dist/events/definitions/auth.d.ts +30 -0
- package/dist/events/definitions/auth.d.ts.map +1 -0
- package/dist/events/definitions/auth.js +1 -0
- package/dist/events/definitions/auth.js.map +7 -0
- package/dist/events/definitions/document.d.ts +14 -0
- package/dist/events/definitions/document.d.ts.map +1 -0
- package/dist/events/definitions/document.js +1 -0
- package/dist/events/definitions/document.js.map +7 -0
- package/dist/events/definitions/index.d.ts +10 -0
- package/dist/events/definitions/index.d.ts.map +1 -0
- package/dist/events/definitions/index.js +1 -0
- package/dist/events/definitions/index.js.map +7 -0
- package/dist/events/definitions/meta.d.ts +11 -0
- package/dist/events/definitions/meta.d.ts.map +1 -0
- package/dist/events/definitions/meta.js +1 -0
- package/dist/events/definitions/meta.js.map +7 -0
- package/dist/events/definitions/operation.d.ts +11 -0
- package/dist/events/definitions/operation.d.ts.map +1 -0
- package/dist/events/definitions/operation.js +1 -0
- package/dist/events/definitions/operation.js.map +7 -0
- package/dist/events/definitions/server.d.ts +50 -0
- package/dist/events/definitions/server.d.ts.map +1 -0
- package/dist/events/definitions/server.js +1 -0
- package/dist/events/definitions/server.js.map +7 -0
- package/dist/events/definitions/ui.d.ts +52 -0
- package/dist/events/definitions/ui.d.ts.map +1 -0
- package/dist/events/definitions/ui.js +1 -0
- package/dist/events/definitions/ui.js.map +7 -0
- package/dist/events/index.d.ts +2 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -1
- package/dist/events/index.js.map +2 -2
- package/dist/events/listeners.d.ts +2 -1
- package/dist/events/listeners.d.ts.map +1 -1
- package/dist/events/listeners.js.map +2 -2
- package/dist/events/{definitions.d.ts → old-definitions.d.ts} +35 -11
- package/dist/events/old-definitions.d.ts.map +1 -0
- package/dist/events/{definitions.js → old-definitions.js} +1 -1
- package/dist/events/old-definitions.js.map +7 -0
- package/dist/helpers/debounce.d.ts +28 -0
- package/dist/helpers/debounce.d.ts.map +1 -0
- package/dist/helpers/debounce.js +31 -0
- package/dist/helpers/debounce.js.map +7 -0
- package/dist/helpers/detect-changes-proxy.d.ts +47 -0
- package/dist/helpers/detect-changes-proxy.d.ts.map +1 -0
- package/dist/helpers/detect-changes-proxy.js +59 -0
- package/dist/helpers/detect-changes-proxy.js.map +7 -0
- package/dist/helpers/overrides-proxy.d.ts +17 -6
- package/dist/helpers/overrides-proxy.d.ts.map +1 -1
- package/dist/helpers/overrides-proxy.js +33 -18
- package/dist/helpers/overrides-proxy.js.map +3 -3
- package/dist/helpers/unpack-proxy.d.ts +6 -0
- package/dist/helpers/unpack-proxy.d.ts.map +1 -0
- package/dist/helpers/unpack-proxy.js +9 -0
- package/dist/helpers/unpack-proxy.js.map +7 -0
- package/dist/mutators/request.d.ts +1 -1
- package/dist/mutators/request.d.ts.map +1 -1
- package/dist/mutators/request.js.map +1 -1
- package/dist/navigation/get-navigation-options.d.ts +1 -1
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +66 -54
- package/dist/navigation/get-navigation-options.js.map +2 -2
- package/dist/navigation/helpers/get-tag.d.ts +7 -2
- package/dist/navigation/helpers/get-tag.d.ts.map +1 -1
- package/dist/navigation/helpers/get-tag.js +16 -2
- package/dist/navigation/helpers/get-tag.js.map +2 -2
- package/dist/navigation/helpers/traverse-description.d.ts +7 -2
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js +24 -6
- package/dist/navigation/helpers/traverse-description.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.d.ts +5 -2
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js +53 -15
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts +9 -3
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +63 -9
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +7 -8
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +35 -7
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +8 -4
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +65 -17
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +9 -3
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +43 -17
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +5 -24
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/persistence/index.d.ts +86 -0
- package/dist/persistence/index.d.ts.map +1 -0
- package/dist/persistence/index.js +196 -0
- package/dist/persistence/index.js.map +7 -0
- package/dist/persistence/indexdb.d.ts +87 -0
- package/dist/persistence/indexdb.d.ts.map +1 -0
- package/dist/persistence/indexdb.js +125 -0
- package/dist/persistence/indexdb.js.map +7 -0
- package/dist/{plugins.d.ts → plugins/bundler/index.d.ts} +1 -1
- package/dist/plugins/bundler/index.d.ts.map +1 -0
- package/dist/{plugins.js → plugins/bundler/index.js} +2 -2
- package/dist/{plugins.js.map → plugins/bundler/index.js.map} +1 -1
- package/dist/plugins/client/index.d.ts +3 -0
- package/dist/plugins/client/index.d.ts.map +1 -0
- package/dist/plugins/client/index.js +5 -0
- package/dist/plugins/client/index.js.map +7 -0
- package/dist/plugins/client/persistence.d.ts +13 -0
- package/dist/plugins/client/persistence.d.ts.map +1 -0
- package/dist/plugins/client/persistence.js +57 -0
- package/dist/plugins/client/persistence.js.map +7 -0
- package/dist/schemas/extensions.d.ts +1 -0
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/extensions.js +1 -0
- package/dist/schemas/extensions.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +73 -14
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +1 -9
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/navigation.d.ts +128 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +20 -1
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +233 -200
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +35 -3
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +1 -1
- package/dist/schemas/reference-config/settings.js.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1165 -71
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +16 -9
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +23 -1
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +5 -1
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +2 -0
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js +4 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +1 -1
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +35 -8
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/config.js.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +38 -5
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js.map +1 -1
- package/dist/schemas/workspace.d.ts +245 -17
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +3 -1
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +4 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +7 -6
- package/dist/server.js.map +2 -2
- package/dist/workspace-plugin.d.ts +49 -0
- package/dist/workspace-plugin.d.ts.map +1 -0
- package/dist/workspace-plugin.js +1 -0
- package/dist/workspace-plugin.js.map +7 -0
- package/package.json +22 -10
- package/dist/events/definitions.d.ts.map +0 -1
- package/dist/events/definitions.js.map +0 -7
- package/dist/plugins.d.ts.map +0 -1
|
@@ -33,7 +33,8 @@ const REF_DEFINITIONS = {
|
|
|
33
33
|
TraversedSchemaObject: "TraversedSchemaObject",
|
|
34
34
|
TraversedWebhookObject: "TraversedWebhookObject",
|
|
35
35
|
TraversedTagObject: "TraversedTagObject",
|
|
36
|
-
TraversedEntryObject: "TraversedEntryObject"
|
|
36
|
+
TraversedEntryObject: "TraversedEntryObject",
|
|
37
|
+
TraversedDocumentObject: "TraversedDocumentObject"
|
|
37
38
|
};
|
|
38
39
|
const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject);
|
|
39
40
|
const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject);
|
|
@@ -64,6 +65,7 @@ const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject);
|
|
|
64
65
|
const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject);
|
|
65
66
|
const TraversedEntryObjectRef = Type.Ref(REF_DEFINITIONS.TraversedEntryObject);
|
|
66
67
|
const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject);
|
|
68
|
+
const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.TraversedDocumentObject);
|
|
67
69
|
export {
|
|
68
70
|
CallbackObjectRef,
|
|
69
71
|
ComponentsObjectRef,
|
|
@@ -92,6 +94,7 @@ export {
|
|
|
92
94
|
ServerObjectRef,
|
|
93
95
|
ServerVariableObjectRef,
|
|
94
96
|
TagObjectRef,
|
|
97
|
+
TraversedDocumentObjectRef,
|
|
95
98
|
TraversedEntryObjectRef,
|
|
96
99
|
TraversedTagObjectRef,
|
|
97
100
|
XMLObjectRef
|
|
@@ -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 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} 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)\nexport const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\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,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;
|
|
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 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)\nexport const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\nexport const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.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,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;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,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;AAC7E,MAAM,wBAAwB,KAAK,IAAI,gBAAgB,kBAAkB;AACzE,MAAM,6BAA6B,KAAK,IAAI,gBAAgB,uBAAuB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ import type { DiscriminatorObject } from './discriminator.js';
|
|
|
11
11
|
import { type ReferenceType } from './reference.js';
|
|
12
12
|
/** We use this type to ensure that we are parsing a schema object as every property can be optional */
|
|
13
13
|
type _InternalType = CoreProperties & {
|
|
14
|
-
|
|
14
|
+
__scalar_: string;
|
|
15
15
|
} & Extensions;
|
|
16
16
|
/**
|
|
17
17
|
* Primitive types that don't have additional validation properties.
|
|
@@ -141,7 +141,7 @@ export type ObjectObject = CoreProperties & {
|
|
|
141
141
|
} & Extensions;
|
|
142
142
|
/** Builds the recursive schema schema */
|
|
143
143
|
export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
144
|
-
|
|
144
|
+
__scalar_: import("@scalar/typebox").TString;
|
|
145
145
|
}>, import("@scalar/typebox").TObject<{
|
|
146
146
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
147
147
|
/** A title for the schema. */
|
|
@@ -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;A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;IAEpC,+BAA+B;;IAE/B,8CAA8C;;IAE9C,yCAAyC;;IAEzC,wBAAwB;;IAExB,qCAAqC;;;;;;;;;;;IAErC,wCAAwC;;IAExC,0LAA0L;;IAE1L,uCAAuC;;IAEvC,wCAAwC;;IAExC,iKAAiK;;IAEjK,yDAAyD;;IAEzD;;;;OAIG;;IAEH;;;OAGG;;IAEH,iCAAiC;;;;;;;;;;;IAEjC,wCAAwC;;;;;;;;;;;IAExC,yCAAyC;;;;;;;;;;;IAEzC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuLhC,wCAAwC;;IAExC,wCAAwC;;IAExC,0CAA0C;;IAE1C,8BAA8B;;;;;;;;;;;IAE9B,mCAAmC;;;;;;;;;;;;;IA5OnC,8BAA8B;;IAE9B,mCAAmC;;IAEnC,oCAAoC;;IAEpC,+BAA+B;;IAE/B,8CAA8C;;IAE9C,yCAAyC;;IAEzC,wBAAwB;;IAExB,qCAAqC;;;;;;;;;;;IAErC,wCAAwC;;IAExC,0LAA0L;;IAE1L,uCAAuC;;IAEvC,wCAAwC;;IAExC,iKAAiK;;IAEjK,yDAAyD;;IAEzD;;;;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"}
|
|
@@ -152,7 +152,7 @@ const SchemaObjectSchemaDefinition = Type.Union([
|
|
|
152
152
|
// Make sure there is always a required field so not all properties are optional
|
|
153
153
|
// When all properties are optional (1) typescript will not throw any warnings/error and accepts anything
|
|
154
154
|
// even a non resolved ref and (2) it will match any schema so it will not validate the refs correctly
|
|
155
|
-
compose(Type.Object({
|
|
155
|
+
compose(Type.Object({ __scalar_: Type.String() }), CorePropertiesWithSchema, Extensions),
|
|
156
156
|
compose(OtherTypes, CorePropertiesWithSchema, Extensions),
|
|
157
157
|
compose(NumericProperties, CorePropertiesWithSchema, Extensions),
|
|
158
158
|
compose(StringValidationProperties, CorePropertiesWithSchema, Extensions),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/schema.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 { XTags } from '@/schemas/extensions/document/x-tags'\nimport {\n type XAdditionalPropertiesName,\n XAdditionalPropertiesNameSchema,\n} from '@/schemas/extensions/schema/x-additional-properties-name'\nimport { type XEnumDescriptions, XEnumDescriptionsSchema } from '@/schemas/extensions/schema/x-enum-descriptions'\nimport { type XEnumVarNames, XEnumVarNamesSchema } from '@/schemas/extensions/schema/x-enum-varnames'\nimport { type XVariable, XVariableSchema } from '@/schemas/extensions/schema/x-variable'\nimport type { ExternalDocumentationObject } from '@/schemas/v3.1/strict/external-documentation'\nimport type { XMLObject } from '@/schemas/v3.1/strict/xml'\n\nimport type { DiscriminatorObject } from './discriminator'\nimport {\n DiscriminatorObjectRef,\n ExternalDocumentationObjectRef,\n SchemaObjectRef,\n XMLObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nconst schemaOrReference = Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])\n\n/** We use this type to ensure that we are parsing a schema object as every property can be optional */\ntype _InternalType = CoreProperties & {\n _: string\n} & Extensions\n\n/**\n * Primitive types that don't have additional validation properties.\n * These types (null, boolean, string, number, integer, object, array) can be used\n * without additional validation constraints.\n *\n * TODO: Type array will actually validate against every union type but we can cross that bridge when we come to it\n */\nconst OtherTypes = Type.Object({\n type: Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Array(\n Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Literal('string'),\n Type.Literal('number'),\n Type.Literal('integer'),\n Type.Literal('object'),\n Type.Literal('array'),\n ]),\n ),\n ]),\n})\n\ntype OtherType = 'boolean' | 'null' | ('string' | 'number' | 'boolean' | 'object' | 'null' | 'integer' | 'array')[]\n\ntype OtherTypes = CoreProperties & {\n type: OtherType\n} & Extensions\n\nconst Extensions = compose(\n XScalarIgnoreSchema,\n XInternalSchema,\n XVariableSchema,\n XEnumDescriptionsSchema,\n XEnumVarNamesSchema,\n XAdditionalPropertiesNameSchema,\n XTags,\n)\n\nexport type Extensions = XScalarIgnore &\n XInternal &\n XVariable &\n XEnumDescriptions &\n XEnumVarNames &\n XAdditionalPropertiesName &\n XTags\n\nconst CorePropertiesWithSchema = Type.Object({\n name: Type.Optional(Type.String()),\n /** A title for the schema. */\n title: Type.Optional(Type.String()),\n /** A description of the schema. */\n description: Type.Optional(Type.String()),\n /** Default value for the schema. */\n default: Type.Optional(Type.Unknown()),\n /** Array of allowed values. */\n enum: Type.Optional(Type.Array(Type.Unknown())),\n /** Constant value that must match exactly. */\n const: Type.Optional(Type.Unknown()),\n /** Media type for content validation. */\n contentMediaType: Type.Optional(Type.String()),\n /** Content encoding. */\n contentEncoding: Type.Optional(Type.String()),\n /** Schema for content validation. */\n contentSchema: Type.Optional(schemaOrReference),\n /** Whether the schema is deprecated. */\n deprecated: Type.Optional(Type.Boolean()),\n /** 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. */\n discriminator: Type.Optional(DiscriminatorObjectRef),\n /** Whether the schema is read-only. */\n readOnly: Type.Optional(Type.Boolean()),\n /** Whether the schema is write-only. */\n writeOnly: Type.Optional(Type.Boolean()),\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml: Type.Optional(XMLObjectRef),\n /** Additional external documentation for this schema. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example: Type.Optional(Type.Unknown()),\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples: Type.Optional(Type.Array(Type.Unknown())),\n /** All schemas must be valid. */\n allOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Exactly one schema must be valid. */\n oneOf: Type.Optional(Type.Array(schemaOrReference)),\n /** At least one schema must be valid. */\n anyOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Schema must not be valid. */\n not: Type.Optional(schemaOrReference),\n})\n\nexport type CoreProperties = {\n name?: string\n /** A title for the schema. */\n title?: string\n /** A description of the schema. */\n description?: string\n /** Default value for the schema. */\n default?: unknown\n /** Array of allowed values. */\n enum?: unknown[]\n /** Constant value that must match exactly. */\n const?: unknown\n /** Media type for content validation. */\n contentMediaType?: string\n /** Content encoding. */\n contentEncoding?: string\n /** Schema for content validation. */\n contentSchema?: ReferenceType<SchemaObject>\n /** Whether the schema is deprecated. */\n deprecated?: boolean\n /** 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. */\n discriminator?: DiscriminatorObject\n /** Whether the schema is read-only. */\n readOnly?: boolean\n /** Whether the schema is write-only. */\n writeOnly?: boolean\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml?: XMLObject\n /** Additional external documentation for this schema. */\n externalDocs?: ExternalDocumentationObject\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example?: unknown\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples?: unknown[]\n /** All schemas must be valid. */\n allOf?: ReferenceType<SchemaObject>[]\n /** Exactly one schema must be valid. */\n oneOf?: ReferenceType<SchemaObject>[]\n /** At least one schema must be valid. */\n anyOf?: ReferenceType<SchemaObject>[]\n /** Schema must not be valid. */\n not?: ReferenceType<SchemaObject>\n}\n\n/**\n * Numeric validation properties for number and integer types.\n */\nconst NumericProperties = Type.Object({\n type: Type.Union([Type.Literal('number'), Type.Literal('integer')]),\n /** Different subtypes */\n format: Type.Optional(Type.String()),\n /** Number must be a multiple of this value. */\n multipleOf: Type.Optional(Type.Number()),\n /** Maximum value (inclusive). */\n maximum: Type.Optional(Type.Number()),\n /** Maximum value (exclusive). */\n exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n /** Minimum value (inclusive). */\n minimum: Type.Optional(Type.Number()),\n /** Minimum value (exclusive). */\n exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n})\n\nexport type NumericObject = CoreProperties & {\n type: 'number' | 'integer'\n /** Different subtypes */\n format?:\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'double-int'\n | 'float'\n | 'double'\n | 'decimal'\n | 'decimal128'\n | 'sf-integer'\n | 'sf-decimal'\n | (string & {})\n /** Number must be a multiple of this value. */\n multipleOf?: number\n /** Maximum value (inclusive). */\n maximum?: number\n /** Maximum value (exclusive). */\n exclusiveMaximum?: boolean | number\n /** Minimum value (inclusive). */\n minimum?: number\n /** Minimum value (exclusive). */\n exclusiveMinimum?: boolean | number\n} & Extensions\n\n/**\n * String validation properties for string types.\n */\nconst StringValidationProperties = Type.Object({\n type: Type.Literal('string'),\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format: Type.Optional(Type.String()),\n /** Maximum string length. */\n maxLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum string length. */\n minLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Regular expression pattern. */\n pattern: Type.Optional(Type.String()),\n})\n\n/**\n * Supported string formats in OpenAPI schemas.\n *\n * These provide better type safety for string format validation. We wanted to allow any arbitrary string\n * in the schema, so we type it in typescript instead. This gives us autocomplete while allowing any string!\n */\nexport type StringFormat =\n // Date and time formats\n | 'date'\n | 'date-time'\n | 'date-time-local'\n | 'time'\n | 'time-local'\n | 'duration'\n | 'http-date'\n // Network formats\n | 'email'\n | 'idn-email'\n | 'hostname'\n | 'idn-hostname'\n | 'ipv4'\n | 'ipv6'\n | 'uri'\n | 'uri-reference'\n | 'uri-template'\n | 'iri'\n | 'iri-reference'\n | 'uuid'\n // Content formats\n | 'binary'\n | 'byte'\n | 'base64url'\n | 'html'\n | 'commonmark'\n | 'password'\n | 'regex'\n | 'json-pointer'\n | 'relative-json-pointer'\n | 'media-range'\n // Character formats\n | 'char'\n // Structured field string formats\n | 'sf-string'\n | 'sf-token'\n | 'sf-binary'\n | 'sf-boolean'\n | (string & {})\n\nexport type StringObject = CoreProperties & {\n type: 'string'\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format?: StringFormat\n /** Maximum string length. */\n maxLength?: number\n /** Minimum string length. */\n minLength?: number\n /** Regular expression pattern. */\n pattern?: string\n} & Extensions\n\nconst ArrayValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('array'),\n /** Maximum number of items in array. */\n maxItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of items in array. */\n minItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Whether array items must be unique. */\n uniqueItems: Type.Optional(Type.Boolean()),\n /** Schema for array items. */\n items: Type.Optional(schemaOrReference),\n /** Schema for tuple validation. */\n prefixItems: Type.Optional(Type.Array(schemaOrReference)),\n})\n\nexport type ArrayObject = CoreProperties & {\n type: 'array'\n /** Maximum number of items in array. */\n maxItems?: number\n /** Minimum number of items in array. */\n minItems?: number\n /** Whether array items must be unique. */\n uniqueItems?: boolean\n /** Schema for array items. */\n items?: ReferenceType<SchemaObject>\n /** Schema for tuple validation. */\n prefixItems?: ReferenceType<SchemaObject>[]\n} & Extensions\n\nconst ObjectValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('object'),\n /** Maximum number of properties. */\n maxProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of properties. */\n minProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Array of required property names. */\n required: Type.Optional(Type.Array(Type.String())),\n /** Object property definitions. */\n properties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n /** Schema for additional properties. */\n additionalProperties: Type.Optional(Type.Union([Type.Boolean(), schemaOrReference])),\n /** Properties matching regex patterns. */\n patternProperties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n})\n\nexport type ObjectObject = CoreProperties & {\n type: 'object'\n /** Maximum number of properties. */\n maxProperties?: number\n /** Minimum number of properties. */\n minProperties?: number\n /** Array of required property names. */\n required?: string[]\n /** Object property definitions. */\n properties?: Record<string, ReferenceType<SchemaObject>>\n /** Schema for additional properties. */\n additionalProperties?: boolean | ReferenceType<SchemaObject>\n /** Properties matching regex patterns. */\n patternProperties?: Record<string, ReferenceType<SchemaObject>>\n} & Extensions\n\n/** Builds the recursive schema schema */\nexport const SchemaObjectSchemaDefinition = Type.Union([\n // Keep compositions first so they get priority when union is evaluated\n // Make sure there is always a required field so not all properties are optional\n // When all properties are optional (1) typescript will not throw any warnings/error and accepts anything\n // even a non resolved ref and (2) it will match any schema so it will not validate the refs correctly\n compose(Type.Object({ _: Type.String() }), CorePropertiesWithSchema, Extensions),\n compose(OtherTypes, CorePropertiesWithSchema, Extensions),\n compose(NumericProperties, CorePropertiesWithSchema, Extensions),\n compose(StringValidationProperties, CorePropertiesWithSchema, Extensions),\n compose(ObjectValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n compose(ArrayValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n])\n\nexport type SchemaObject = _InternalType | OtherTypes | NumericObject | StringObject | ObjectObject | ArrayObject\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAS,aAAa;AACtB;AAAA,EAEE;AAAA,OACK;AACP,SAAiC,+BAA+B;AAChE,SAA6B,2BAA2B;AACxD,SAAyB,uBAAuB;AAKhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAE9C,MAAM,oBAAoB,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC;AAclF,MAAM,aAAa,KAAK,OAAO;AAAA,EAC7B,MAAM,KAAK,MAAM;AAAA,IACf,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,SAAS;AAAA,IACtB,KAAK;AAAA,MACH,KAAK,MAAM;AAAA,QACT,KAAK,QAAQ,MAAM;AAAA,QACnB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,OAAO;AAAA,MACtB,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AAQD,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAUA,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,O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K,MAAM,iBAAiB,CAAC;AAC1D,CAAC;AAgBD,MAAM,uCAAuC,KAAK,OAAO;AAAA,EACvD,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,EAE3B,eAAe,KAAK,SAAS,KAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA;AAAA,EAEzD,eAAe,KAAK,SAAS,KAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA;AAAA,EAEzD,UAAU,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,EAEjD,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAAA;AAAA,EAEvE,sBAAsB,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,GAAG,iBAAiB,CAAC,CAAC;AAAA;AAAA,EAEnF,mBAAmB,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAChF,CAAC;AAmBM,MAAM,+BAA+B,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKrD,QAAQ,KAAK,OAAO,EAAE,
|
|
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 { XTags } from '@/schemas/extensions/document/x-tags'\nimport {\n type XAdditionalPropertiesName,\n XAdditionalPropertiesNameSchema,\n} from '@/schemas/extensions/schema/x-additional-properties-name'\nimport { type XEnumDescriptions, XEnumDescriptionsSchema } from '@/schemas/extensions/schema/x-enum-descriptions'\nimport { type XEnumVarNames, XEnumVarNamesSchema } from '@/schemas/extensions/schema/x-enum-varnames'\nimport { type XVariable, XVariableSchema } from '@/schemas/extensions/schema/x-variable'\nimport type { ExternalDocumentationObject } from '@/schemas/v3.1/strict/external-documentation'\nimport type { XMLObject } from '@/schemas/v3.1/strict/xml'\n\nimport type { DiscriminatorObject } from './discriminator'\nimport {\n DiscriminatorObjectRef,\n ExternalDocumentationObjectRef,\n SchemaObjectRef,\n XMLObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nconst schemaOrReference = Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])\n\n/** We use this type to ensure that we are parsing a schema object as every property can be optional */\ntype _InternalType = CoreProperties & {\n __scalar_: string\n} & Extensions\n\n/**\n * Primitive types that don't have additional validation properties.\n * These types (null, boolean, string, number, integer, object, array) can be used\n * without additional validation constraints.\n *\n * TODO: Type array will actually validate against every union type but we can cross that bridge when we come to it\n */\nconst OtherTypes = Type.Object({\n type: Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Array(\n Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Literal('string'),\n Type.Literal('number'),\n Type.Literal('integer'),\n Type.Literal('object'),\n Type.Literal('array'),\n ]),\n ),\n ]),\n})\n\ntype OtherType = 'boolean' | 'null' | ('string' | 'number' | 'boolean' | 'object' | 'null' | 'integer' | 'array')[]\n\ntype OtherTypes = CoreProperties & {\n type: OtherType\n} & Extensions\n\nconst Extensions = compose(\n XScalarIgnoreSchema,\n XInternalSchema,\n XVariableSchema,\n XEnumDescriptionsSchema,\n XEnumVarNamesSchema,\n XAdditionalPropertiesNameSchema,\n XTags,\n)\n\nexport type Extensions = XScalarIgnore &\n XInternal &\n XVariable &\n XEnumDescriptions &\n XEnumVarNames &\n XAdditionalPropertiesName &\n XTags\n\nconst CorePropertiesWithSchema = Type.Object({\n name: Type.Optional(Type.String()),\n /** A title for the schema. */\n title: Type.Optional(Type.String()),\n /** A description of the schema. */\n description: Type.Optional(Type.String()),\n /** Default value for the schema. */\n default: Type.Optional(Type.Unknown()),\n /** Array of allowed values. */\n enum: Type.Optional(Type.Array(Type.Unknown())),\n /** Constant value that must match exactly. */\n const: Type.Optional(Type.Unknown()),\n /** Media type for content validation. */\n contentMediaType: Type.Optional(Type.String()),\n /** Content encoding. */\n contentEncoding: Type.Optional(Type.String()),\n /** Schema for content validation. */\n contentSchema: Type.Optional(schemaOrReference),\n /** Whether the schema is deprecated. */\n deprecated: Type.Optional(Type.Boolean()),\n /** 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. */\n discriminator: Type.Optional(DiscriminatorObjectRef),\n /** Whether the schema is read-only. */\n readOnly: Type.Optional(Type.Boolean()),\n /** Whether the schema is write-only. */\n writeOnly: Type.Optional(Type.Boolean()),\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml: Type.Optional(XMLObjectRef),\n /** Additional external documentation for this schema. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example: Type.Optional(Type.Unknown()),\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples: Type.Optional(Type.Array(Type.Unknown())),\n /** All schemas must be valid. */\n allOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Exactly one schema must be valid. */\n oneOf: Type.Optional(Type.Array(schemaOrReference)),\n /** At least one schema must be valid. */\n anyOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Schema must not be valid. */\n not: Type.Optional(schemaOrReference),\n})\n\nexport type CoreProperties = {\n name?: string\n /** A title for the schema. */\n title?: string\n /** A description of the schema. */\n description?: string\n /** Default value for the schema. */\n default?: unknown\n /** Array of allowed values. */\n enum?: unknown[]\n /** Constant value that must match exactly. */\n const?: unknown\n /** Media type for content validation. */\n contentMediaType?: string\n /** Content encoding. */\n contentEncoding?: string\n /** Schema for content validation. */\n contentSchema?: ReferenceType<SchemaObject>\n /** Whether the schema is deprecated. */\n deprecated?: boolean\n /** 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. */\n discriminator?: DiscriminatorObject\n /** Whether the schema is read-only. */\n readOnly?: boolean\n /** Whether the schema is write-only. */\n writeOnly?: boolean\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml?: XMLObject\n /** Additional external documentation for this schema. */\n externalDocs?: ExternalDocumentationObject\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example?: unknown\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples?: unknown[]\n /** All schemas must be valid. */\n allOf?: ReferenceType<SchemaObject>[]\n /** Exactly one schema must be valid. */\n oneOf?: ReferenceType<SchemaObject>[]\n /** At least one schema must be valid. */\n anyOf?: ReferenceType<SchemaObject>[]\n /** Schema must not be valid. */\n not?: ReferenceType<SchemaObject>\n}\n\n/**\n * Numeric validation properties for number and integer types.\n */\nconst NumericProperties = Type.Object({\n type: Type.Union([Type.Literal('number'), Type.Literal('integer')]),\n /** Different subtypes */\n format: Type.Optional(Type.String()),\n /** Number must be a multiple of this value. */\n multipleOf: Type.Optional(Type.Number()),\n /** Maximum value (inclusive). */\n maximum: Type.Optional(Type.Number()),\n /** Maximum value (exclusive). */\n exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n /** Minimum value (inclusive). */\n minimum: Type.Optional(Type.Number()),\n /** Minimum value (exclusive). */\n exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n})\n\nexport type NumericObject = CoreProperties & {\n type: 'number' | 'integer'\n /** Different subtypes */\n format?:\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'double-int'\n | 'float'\n | 'double'\n | 'decimal'\n | 'decimal128'\n | 'sf-integer'\n | 'sf-decimal'\n | (string & {})\n /** Number must be a multiple of this value. */\n multipleOf?: number\n /** Maximum value (inclusive). */\n maximum?: number\n /** Maximum value (exclusive). */\n exclusiveMaximum?: boolean | number\n /** Minimum value (inclusive). */\n minimum?: number\n /** Minimum value (exclusive). */\n exclusiveMinimum?: boolean | number\n} & Extensions\n\n/**\n * String validation properties for string types.\n */\nconst StringValidationProperties = Type.Object({\n type: Type.Literal('string'),\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format: Type.Optional(Type.String()),\n /** Maximum string length. */\n maxLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum string length. */\n minLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Regular expression pattern. */\n pattern: Type.Optional(Type.String()),\n})\n\n/**\n * Supported string formats in OpenAPI schemas.\n *\n * These provide better type safety for string format validation. We wanted to allow any arbitrary string\n * in the schema, so we type it in typescript instead. This gives us autocomplete while allowing any string!\n */\nexport type StringFormat =\n // Date and time formats\n | 'date'\n | 'date-time'\n | 'date-time-local'\n | 'time'\n | 'time-local'\n | 'duration'\n | 'http-date'\n // Network formats\n | 'email'\n | 'idn-email'\n | 'hostname'\n | 'idn-hostname'\n | 'ipv4'\n | 'ipv6'\n | 'uri'\n | 'uri-reference'\n | 'uri-template'\n | 'iri'\n | 'iri-reference'\n | 'uuid'\n // Content formats\n | 'binary'\n | 'byte'\n | 'base64url'\n | 'html'\n | 'commonmark'\n | 'password'\n | 'regex'\n | 'json-pointer'\n | 'relative-json-pointer'\n | 'media-range'\n // Character formats\n | 'char'\n // Structured field string formats\n | 'sf-string'\n | 'sf-token'\n | 'sf-binary'\n | 'sf-boolean'\n | (string & {})\n\nexport type StringObject = CoreProperties & {\n type: 'string'\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format?: StringFormat\n /** Maximum string length. */\n maxLength?: number\n /** Minimum string length. */\n minLength?: number\n /** Regular expression pattern. */\n pattern?: string\n} & Extensions\n\nconst ArrayValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('array'),\n /** Maximum number of items in array. */\n maxItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of items in array. */\n minItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Whether array items must be unique. */\n uniqueItems: Type.Optional(Type.Boolean()),\n /** Schema for array items. */\n items: Type.Optional(schemaOrReference),\n /** Schema for tuple validation. */\n prefixItems: Type.Optional(Type.Array(schemaOrReference)),\n})\n\nexport type ArrayObject = CoreProperties & {\n type: 'array'\n /** Maximum number of items in array. */\n maxItems?: number\n /** Minimum number of items in array. */\n minItems?: number\n /** Whether array items must be unique. */\n uniqueItems?: boolean\n /** Schema for array items. */\n items?: ReferenceType<SchemaObject>\n /** Schema for tuple validation. */\n prefixItems?: ReferenceType<SchemaObject>[]\n} & Extensions\n\nconst ObjectValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('object'),\n /** Maximum number of properties. */\n maxProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of properties. */\n minProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Array of required property names. */\n required: Type.Optional(Type.Array(Type.String())),\n /** Object property definitions. */\n properties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n /** Schema for additional properties. */\n additionalProperties: Type.Optional(Type.Union([Type.Boolean(), schemaOrReference])),\n /** Properties matching regex patterns. */\n patternProperties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n})\n\nexport type ObjectObject = CoreProperties & {\n type: 'object'\n /** Maximum number of properties. */\n maxProperties?: number\n /** Minimum number of properties. */\n minProperties?: number\n /** Array of required property names. */\n required?: string[]\n /** Object property definitions. */\n properties?: Record<string, ReferenceType<SchemaObject>>\n /** Schema for additional properties. */\n additionalProperties?: boolean | ReferenceType<SchemaObject>\n /** Properties matching regex patterns. */\n patternProperties?: Record<string, ReferenceType<SchemaObject>>\n} & Extensions\n\n/** Builds the recursive schema schema */\nexport const SchemaObjectSchemaDefinition = Type.Union([\n // Keep compositions first so they get priority when union is evaluated\n // Make sure there is always a required field so not all properties are optional\n // When all properties are optional (1) typescript will not throw any warnings/error and accepts anything\n // even a non resolved ref and (2) it will match any schema so it will not validate the refs correctly\n compose(Type.Object({ __scalar_: Type.String() }), CorePropertiesWithSchema, Extensions),\n compose(OtherTypes, CorePropertiesWithSchema, Extensions),\n compose(NumericProperties, CorePropertiesWithSchema, Extensions),\n compose(StringValidationProperties, CorePropertiesWithSchema, Extensions),\n compose(ObjectValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n compose(ArrayValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n])\n\nexport type SchemaObject = _InternalType | OtherTypes | NumericObject | StringObject | ObjectObject | ArrayObject\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAS,aAAa;AACtB;AAAA,EAEE;AAAA,OACK;AACP,SAAiC,+BAA+B;AAChE,SAA6B,2BAA2B;AACxD,SAAyB,uBAAuB;AAKhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAE9C,MAAM,oBAAoB,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC;AAclF,MAAM,aAAa,KAAK,OAAO;AAAA,EAC7B,MAAM,KAAK,MAAM;AAAA,IACf,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,SAAS;AAAA,IACtB,KAAK;AAAA,MACH,KAAK,MAAM;AAAA,QACT,KAAK,QAAQ,MAAM;AAAA,QACnB,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A0B,UAAU;AAAA,EACxD,QAAQ,mBAAmB,0BAA0B,UAAU;AAAA,EAC/D,QAAQ,4BAA4B,0BAA0B,UAAU;AAAA,EACxE,QAAQ,sCAAsC,0BAA0B,UAAU;AAAA,EAClF,QAAQ,qCAAqC,0BAA0B,UAAU;AACnF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -303,7 +303,7 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
303
303
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
304
304
|
}>]>;
|
|
305
305
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
306
|
-
|
|
306
|
+
__scalar_: import("@scalar/typebox").TString;
|
|
307
307
|
}>, import("@scalar/typebox").TObject<{
|
|
308
308
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
309
309
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1028,6 +1028,10 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1028
1028
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1029
1029
|
}>, import("@scalar/typebox").TObject<{
|
|
1030
1030
|
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1031
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1032
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1033
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1034
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1031
1035
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1032
1036
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1033
1037
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -1061,6 +1065,10 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1061
1065
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1062
1066
|
}>, import("@scalar/typebox").TObject<{
|
|
1063
1067
|
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1068
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1069
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1070
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1071
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1064
1072
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1065
1073
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1066
1074
|
}>]>]>;
|
|
@@ -1253,12 +1261,16 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1253
1261
|
}>>>;
|
|
1254
1262
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1255
1263
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1256
|
-
|
|
1264
|
+
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1265
|
+
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1266
|
+
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1257
1267
|
}>, import("@scalar/typebox").TObject<{
|
|
1258
1268
|
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1259
1269
|
name: import("@scalar/typebox").TString;
|
|
1260
1270
|
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1261
1271
|
}>>>;
|
|
1272
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1273
|
+
'x-scalar-original-document-hash': import("@scalar/typebox").TString;
|
|
1262
1274
|
}>]>]>;
|
|
1263
1275
|
TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1264
1276
|
id: import("@scalar/typebox").TString;
|
|
@@ -1357,7 +1369,27 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1357
1369
|
}>, import("@scalar/typebox").TObject<{
|
|
1358
1370
|
type: import("@scalar/typebox").TLiteral<"example">;
|
|
1359
1371
|
name: import("@scalar/typebox").TString;
|
|
1372
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1373
|
+
id: import("@scalar/typebox").TString;
|
|
1374
|
+
title: import("@scalar/typebox").TString;
|
|
1375
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1376
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1377
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1378
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1379
|
+
id: import("@scalar/typebox").TString;
|
|
1380
|
+
title: import("@scalar/typebox").TString;
|
|
1381
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1382
|
+
type: import("@scalar/typebox").TLiteral<"models">;
|
|
1383
|
+
name: import("@scalar/typebox").TString;
|
|
1384
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1360
1385
|
}>]>]>;
|
|
1386
|
+
TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1387
|
+
id: import("@scalar/typebox").TString;
|
|
1388
|
+
title: import("@scalar/typebox").TString;
|
|
1389
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1390
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1391
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1392
|
+
}>]>;
|
|
1361
1393
|
}, "ServerObject">>>;
|
|
1362
1394
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1363
1395
|
}>>;
|
|
@@ -1393,7 +1425,7 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1393
1425
|
ogImage: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1394
1426
|
twitterCard: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1395
1427
|
}>>;
|
|
1396
|
-
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").
|
|
1428
|
+
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">>>;
|
|
1397
1429
|
}>>;
|
|
1398
1430
|
}>;
|
|
1399
1431
|
export type Config = {
|
|
@@ -1403,11 +1435,6 @@ export type DocumentConfiguration = Config & PartialDeep<{
|
|
|
1403
1435
|
'x-scalar-reference-config': {
|
|
1404
1436
|
tagSort: TraverseSpecOptions['tagsSorter'];
|
|
1405
1437
|
operationsSorter: TraverseSpecOptions['operationsSorter'];
|
|
1406
|
-
getHeadingId: TraverseSpecOptions['getHeadingId'];
|
|
1407
|
-
getOperationId: TraverseSpecOptions['getOperationId'];
|
|
1408
|
-
getWebhookId: TraverseSpecOptions['getWebhookId'];
|
|
1409
|
-
getModelId: TraverseSpecOptions['getModelId'];
|
|
1410
|
-
getTagId: TraverseSpecOptions['getTagId'];
|
|
1411
1438
|
generateOperationSlug?: (details: {
|
|
1412
1439
|
path: string;
|
|
1413
1440
|
operationId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/schemas/workspace-specification/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,4BAA4B,CAAA;AAExF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/schemas/workspace-specification/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,4BAA4B,CAAA;AAExF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAA;KAC7E,CAAA;CACF,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/workspace-specification/config.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { PartialDeep } from 'type-fest'\n\nimport type { TraverseSpecOptions } from '@/navigation/types'\nimport { type ReferenceConfig, ReferenceConfigSchema } from '@/schemas/reference-config'\n\nexport const ConfigSchema = Type.Partial(\n Type.Object({\n 'x-scalar-reference-config': ReferenceConfigSchema,\n }),\n)\n\nexport type Config = {\n 'x-scalar-reference-config'?: PartialDeep<ReferenceConfig>\n}\n\nexport type DocumentConfiguration = Config &\n PartialDeep<{\n 'x-scalar-reference-config': {\n tagSort: TraverseSpecOptions['tagsSorter']\n operationsSorter: TraverseSpecOptions['operationsSorter']\n
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { PartialDeep } from 'type-fest'\n\nimport type { TraverseSpecOptions } from '@/navigation/types'\nimport { type ReferenceConfig, ReferenceConfigSchema } from '@/schemas/reference-config'\n\nexport const ConfigSchema = Type.Partial(\n Type.Object({\n 'x-scalar-reference-config': ReferenceConfigSchema,\n }),\n)\n\nexport type Config = {\n 'x-scalar-reference-config'?: PartialDeep<ReferenceConfig>\n}\n\nexport type DocumentConfiguration = Config &\n PartialDeep<{\n 'x-scalar-reference-config': {\n tagSort: TraverseSpecOptions['tagsSorter']\n operationsSorter: TraverseSpecOptions['operationsSorter']\n generateOperationSlug?: (details: {\n path: string\n operationId?: string\n method: string\n summary?: string\n }) => string\n generateHeadingSlug?: (details: { slug?: string }) => string\n generateTagSlug?: (details: { name?: string }) => string\n generateModelSlug?: (details: { name?: string }) => string\n generateWebhookSlug?: (details: { name: string; method?: string }) => string\n }\n }>\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAIrB,SAA+B,6BAA6B;AAErD,MAAM,eAAe,KAAK;AAAA,EAC/B,KAAK,OAAO;AAAA,IACV,6BAA6B;AAAA,EAC/B,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PartialDeep } from 'type-fest
|
|
1
|
+
import type { PartialDeep } from 'type-fest';
|
|
2
2
|
import type { OpenApiDocument } from '../../schemas/v3.1/strict/openapi-document.js';
|
|
3
3
|
import { type WorkspaceMeta } from '../../schemas/workspace.js';
|
|
4
4
|
import { type Config } from '../../schemas/workspace-specification/config.js';
|
|
@@ -315,7 +315,7 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
315
315
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
316
316
|
}>]>;
|
|
317
317
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
318
|
-
|
|
318
|
+
__scalar_: import("@scalar/typebox").TString;
|
|
319
319
|
}>, import("@scalar/typebox").TObject<{
|
|
320
320
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
321
321
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1040,6 +1040,10 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1040
1040
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1041
1041
|
}>, import("@scalar/typebox").TObject<{
|
|
1042
1042
|
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1043
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1044
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1045
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1046
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1043
1047
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1044
1048
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1045
1049
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -1073,6 +1077,10 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1073
1077
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1074
1078
|
}>, import("@scalar/typebox").TObject<{
|
|
1075
1079
|
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1080
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1081
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1082
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1083
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1076
1084
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1077
1085
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1078
1086
|
}>]>]>;
|
|
@@ -1265,12 +1273,16 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1265
1273
|
}>>>;
|
|
1266
1274
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1267
1275
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1268
|
-
|
|
1276
|
+
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1277
|
+
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1278
|
+
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1269
1279
|
}>, import("@scalar/typebox").TObject<{
|
|
1270
1280
|
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1271
1281
|
name: import("@scalar/typebox").TString;
|
|
1272
1282
|
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1273
1283
|
}>>>;
|
|
1284
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1285
|
+
'x-scalar-original-document-hash': import("@scalar/typebox").TString;
|
|
1274
1286
|
}>]>]>;
|
|
1275
1287
|
TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1276
1288
|
id: import("@scalar/typebox").TString;
|
|
@@ -1369,7 +1381,27 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1369
1381
|
}>, import("@scalar/typebox").TObject<{
|
|
1370
1382
|
type: import("@scalar/typebox").TLiteral<"example">;
|
|
1371
1383
|
name: import("@scalar/typebox").TString;
|
|
1384
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1385
|
+
id: import("@scalar/typebox").TString;
|
|
1386
|
+
title: import("@scalar/typebox").TString;
|
|
1387
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1388
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1389
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1390
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1391
|
+
id: import("@scalar/typebox").TString;
|
|
1392
|
+
title: import("@scalar/typebox").TString;
|
|
1393
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1394
|
+
type: import("@scalar/typebox").TLiteral<"models">;
|
|
1395
|
+
name: import("@scalar/typebox").TString;
|
|
1396
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1372
1397
|
}>]>]>;
|
|
1398
|
+
TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1399
|
+
id: import("@scalar/typebox").TString;
|
|
1400
|
+
title: import("@scalar/typebox").TString;
|
|
1401
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1402
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1403
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1404
|
+
}>]>;
|
|
1373
1405
|
}, "ServerObject">>>;
|
|
1374
1406
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1375
1407
|
}>>;
|
|
@@ -1405,13 +1437,14 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1405
1437
|
ogImage: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1406
1438
|
twitterCard: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1407
1439
|
}>>;
|
|
1408
|
-
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").
|
|
1440
|
+
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">>>;
|
|
1409
1441
|
}>>;
|
|
1410
1442
|
}>, import("@scalar/typebox").TObject<{
|
|
1411
1443
|
"x-scalar-dark-mode": import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1412
1444
|
"x-scalar-default-client": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>;
|
|
1413
1445
|
"x-scalar-active-document": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1414
|
-
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
1446
|
+
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none">[]>>;
|
|
1447
|
+
"x-scalar-sidebar-width": import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
1415
1448
|
}>]>;
|
|
1416
1449
|
export type WorkspaceSpecification = {
|
|
1417
1450
|
workspace: 'draft';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/workspace-specification/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/workspace-specification/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAG5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,0CAA0C,CAAA;AACpF,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,wCAAwC,CAAA;AAE9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;CACzD,GAAG,MAAM,GACR,aAAa,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/workspace-specification/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { PartialDeep } from 'type-fest
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { PartialDeep } from 'type-fest'\n\nimport { compose } from '@/schemas/compose'\nimport type { OpenApiDocument } from '@/schemas/v3.1/strict/openapi-document'\nimport { type WorkspaceMeta, WorkspaceMetaSchema } from '@/schemas/workspace'\nimport { type Config, ConfigSchema } from '@/schemas/workspace-specification/config'\nimport { type Info, InfoSchema } from '@/schemas/workspace-specification/info'\n\nexport const WorkspaceSpecificationSchema = compose(\n Type.Object({\n workspace: Type.Union([Type.Literal('draft')]),\n info: InfoSchema,\n documents: Type.Optional(\n Type.Record(\n Type.String(),\n Type.Object({\n $ref: Type.String(),\n }),\n ),\n ),\n overrides: Type.Optional(Type.Record(Type.String(), Type.Any())),\n }),\n ConfigSchema,\n WorkspaceMetaSchema,\n)\n\nexport type WorkspaceSpecification = {\n workspace: 'draft'\n info: Info\n documents?: Record<string, { $ref: string }>\n overrides?: Record<string, PartialDeep<OpenApiDocument>>\n} & Config &\n WorkspaceMeta\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,eAAe;AAExB,SAA6B,2BAA2B;AACxD,SAAsB,oBAAoB;AAC1C,SAAoB,kBAAkB;AAE/B,MAAM,+BAA+B;AAAA,EAC1C,KAAK,OAAO;AAAA,IACV,WAAW,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,IAC7C,MAAM;AAAA,IACN,WAAW,KAAK;AAAA,MACd,KAAK;AAAA,QACH,KAAK,OAAO;AAAA,QACZ,KAAK,OAAO;AAAA,UACV,MAAM,KAAK,OAAO;AAAA,QACpB,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC;AAAA,EACjE,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|