@scalar/workspace-store 0.21.0 → 0.22.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 +28 -0
- package/dist/client.d.ts +14 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -6
- package/dist/client.js.map +2 -2
- package/dist/events/bus.d.ts +1 -1
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/events/bus.js.map +1 -1
- package/dist/events/definitions/auth.d.ts +2 -1
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/events/definitions/document.d.ts +11 -0
- package/dist/events/definitions/document.d.ts.map +1 -1
- package/dist/events/definitions/index.d.ts +3 -1
- package/dist/events/definitions/index.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +20 -1
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/tabs.d.ts +16 -1
- package/dist/events/definitions/tabs.d.ts.map +1 -1
- package/dist/events/definitions/tag.d.ts +15 -0
- package/dist/events/definitions/tag.d.ts.map +1 -0
- package/dist/events/definitions/tag.js +1 -0
- package/dist/events/definitions/tag.js.map +7 -0
- package/dist/events/definitions/ui.d.ts +118 -61
- package/dist/events/definitions/ui.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js.map +2 -2
- package/dist/mutators/auth.d.ts +6 -1
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/document.d.ts +3 -0
- package/dist/mutators/document.d.ts.map +1 -1
- package/dist/mutators/document.js +24 -0
- package/dist/mutators/document.js.map +2 -2
- package/dist/mutators/index.d.ts +28 -8
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +24 -1
- package/dist/mutators/index.js.map +2 -2
- package/dist/mutators/operation.d.ts +27 -8
- package/dist/mutators/operation.d.ts.map +1 -1
- package/dist/mutators/operation.js +75 -7
- package/dist/mutators/operation.js.map +2 -2
- package/dist/mutators/request.d.ts +2 -1
- package/dist/mutators/request.d.ts.map +1 -1
- package/dist/mutators/request.js.map +1 -1
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +1 -1
- package/dist/mutators/server.js.map +2 -2
- package/dist/mutators/tabs.d.ts +44 -0
- package/dist/mutators/tabs.d.ts.map +1 -0
- package/dist/mutators/tabs.js +133 -0
- package/dist/mutators/tabs.js.map +7 -0
- package/dist/mutators/tag.d.ts +12 -0
- package/dist/mutators/tag.d.ts.map +1 -0
- package/dist/mutators/tag.js +19 -0
- package/dist/mutators/tag.js.map +7 -0
- package/dist/navigation/helpers/get-openapi-object.d.ts +35 -0
- package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -0
- package/dist/navigation/helpers/get-openapi-object.js +31 -0
- package/dist/navigation/helpers/get-openapi-object.js.map +7 -0
- package/dist/navigation/helpers/get-operation-entries.d.ts +24 -0
- package/dist/navigation/helpers/get-operation-entries.d.ts.map +1 -0
- package/dist/navigation/helpers/get-operation-entries.js +33 -0
- package/dist/navigation/helpers/get-operation-entries.js.map +7 -0
- package/dist/navigation/helpers/get-parent-entry.d.ts +15 -0
- package/dist/navigation/helpers/get-parent-entry.d.ts.map +1 -0
- package/dist/navigation/helpers/get-parent-entry.js +13 -0
- package/dist/navigation/helpers/get-parent-entry.js.map +7 -0
- package/dist/navigation/helpers/traverse-description.d.ts +0 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js +0 -1
- package/dist/navigation/helpers/traverse-description.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.js +1 -1
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.js +1 -1
- package/dist/navigation/helpers/traverse-paths.js.map +1 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +2 -2
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/utils.d.ts +2 -1
- package/dist/navigation/helpers/utils.d.ts.map +1 -1
- package/dist/navigation/helpers/utils.js.map +1 -1
- package/dist/navigation/index.d.ts +2 -1
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +5 -3
- package/dist/navigation/index.js.map +2 -2
- package/dist/schemas/extensions/operation/index.d.ts +4 -1
- package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/index.js +22 -0
- package/dist/schemas/extensions/operation/index.js.map +3 -3
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +0 -5
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js +0 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/operation/x-post-response.d.ts +0 -18
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +2 -13
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js +0 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/extensions/workspace/index.d.ts +4 -0
- package/dist/schemas/extensions/workspace/index.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/index.js +15 -0
- package/dist/schemas/extensions/workspace/index.js.map +7 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts +36 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js +16 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js.map +7 -0
- package/dist/schemas/inmemory-workspace.d.ts +5 -6
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/navigation.d.ts +8 -0
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js.map +1 -1
- package/dist/schemas/reference-config/index.d.ts +2 -3
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +2 -3
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.d.ts +0 -45
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +1 -3
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +0 -99
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +0 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +71 -104
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +0 -1
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +1 -101
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +1 -4
- package/dist/schemas/v3.1/strict/parameter.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 +0 -2
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +28 -11
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +2 -2
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +1 -54
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +0 -5
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +2 -3
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +2 -3
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +35 -22
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +11 -6
- package/dist/schemas/workspace.js.map +2 -2
- package/package.json +50 -36
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAA;AAGV,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,4BAA4B,6DAAsD,CAAA;AAC/F,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,cAAc,+CAAwC,CAAA;AACnE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,8BAA8B,+DAAwD,CAAA;AACnG,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,kBAAkB,mD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eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,oBAAoB,qDAA8C,CAAA;AAC/E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AACrF,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,sBAAsB,uDAAgD,CAAA;AACnF,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AAGrF,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AAErF,eAAO,MAAM,0BAA0B,2DAAoD,CAAA"}
|
|
@@ -64,7 +64,6 @@ const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject);
|
|
|
64
64
|
const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject);
|
|
65
65
|
const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject);
|
|
66
66
|
const TraversedEntryObjectRef = Type.Ref(REF_DEFINITIONS.TraversedEntryObject);
|
|
67
|
-
const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject);
|
|
68
67
|
const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.TraversedDocumentObject);
|
|
69
68
|
export {
|
|
70
69
|
CallbackObjectRef,
|
|
@@ -96,7 +95,6 @@ export {
|
|
|
96
95
|
TagObjectRef,
|
|
97
96
|
TraversedDocumentObjectRef,
|
|
98
97
|
TraversedEntryObjectRef,
|
|
99
|
-
TraversedTagObjectRef,
|
|
100
98
|
XMLObjectRef
|
|
101
99
|
};
|
|
102
100
|
//# sourceMappingURL=ref-definitions.js.map
|
|
@@ -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 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)\
|
|
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;AAAA,EACtB,yBAAyB;AAC3B;AAGO,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,+BAA+B,KAAK,IAAI,gBAAgB,yBAAyB;AACvF,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,iBAAiB,KAAK,IAAI,gBAAgB,WAAW;AAC3D,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,qBAAqB,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;
|
|
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)\n// export const TraversedTagObjectRef = Type.Ref(REF_DEFINITIONS.TraversedTagObject)\nexport const TraversedDocumentObjectRef = Type.Ref(REF_DEFINITIONS.TraversedDocumentObject)\n"],
|
|
5
|
+
"mappings": "AAAA,SAA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nE,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
|
}
|
|
@@ -27,8 +27,25 @@ type OtherType = 'boolean' | 'null' | ('string' | 'number' | 'boolean' | 'object
|
|
|
27
27
|
type OtherTypes = CoreProperties & {
|
|
28
28
|
type: OtherType;
|
|
29
29
|
} & Extensions;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
declare const Extensions: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
31
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
32
|
+
}>, import("@scalar/typebox").TObject<{
|
|
33
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
34
|
+
}>, import("@scalar/typebox").TObject<{
|
|
35
|
+
'x-variable': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
36
|
+
}>, import("@scalar/typebox").TObject<{
|
|
37
|
+
'x-enumDescriptions': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>, import("@scalar/typebox").TArray<import("@scalar/typebox").TString>]>>;
|
|
38
|
+
'x-enum-descriptions': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>, import("@scalar/typebox").TArray<import("@scalar/typebox").TString>]>>;
|
|
39
|
+
}>, import("@scalar/typebox").TObject<{
|
|
40
|
+
'x-enum-varnames': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
41
|
+
'x-enumNames': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
42
|
+
}>, import("@scalar/typebox").TObject<{
|
|
43
|
+
'x-additionalPropertiesName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
44
|
+
}>, import("@scalar/typebox").TObject<{
|
|
45
|
+
'x-tags': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
46
|
+
}>]>;
|
|
47
|
+
type Extensions = XScalarIgnore & XInternal & XVariable & XEnumDescriptions & XEnumVarNames & XAdditionalPropertiesName & XTags;
|
|
48
|
+
type CoreProperties = {
|
|
32
49
|
name?: string;
|
|
33
50
|
/** A title for the schema. */
|
|
34
51
|
title?: string;
|
|
@@ -78,7 +95,7 @@ export type CoreProperties = {
|
|
|
78
95
|
/** Schema must not be valid. */
|
|
79
96
|
not?: ReferenceType<SchemaObject>;
|
|
80
97
|
};
|
|
81
|
-
|
|
98
|
+
type NumericObject = CoreProperties & {
|
|
82
99
|
type: 'number' | 'integer';
|
|
83
100
|
/** Different subtypes */
|
|
84
101
|
format?: 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'double-int' | 'float' | 'double' | 'decimal' | 'decimal128' | 'sf-integer' | 'sf-decimal' | (string & {});
|
|
@@ -87,11 +104,11 @@ export type NumericObject = CoreProperties & {
|
|
|
87
104
|
/** Maximum value (inclusive). */
|
|
88
105
|
maximum?: number;
|
|
89
106
|
/** Maximum value (exclusive). */
|
|
90
|
-
exclusiveMaximum?:
|
|
107
|
+
exclusiveMaximum?: number;
|
|
91
108
|
/** Minimum value (inclusive). */
|
|
92
109
|
minimum?: number;
|
|
93
110
|
/** Minimum value (exclusive). */
|
|
94
|
-
exclusiveMinimum?:
|
|
111
|
+
exclusiveMinimum?: number;
|
|
95
112
|
} & Extensions;
|
|
96
113
|
/**
|
|
97
114
|
* Supported string formats in OpenAPI schemas.
|
|
@@ -99,8 +116,8 @@ export type NumericObject = CoreProperties & {
|
|
|
99
116
|
* These provide better type safety for string format validation. We wanted to allow any arbitrary string
|
|
100
117
|
* in the schema, so we type it in typescript instead. This gives us autocomplete while allowing any string!
|
|
101
118
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
type StringFormat = 'date' | 'date-time' | 'date-time-local' | 'time' | 'time-local' | 'duration' | 'http-date' | 'email' | 'idn-email' | 'hostname' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'uri-template' | 'iri' | 'iri-reference' | 'uuid' | 'binary' | 'byte' | 'base64url' | 'html' | 'commonmark' | 'password' | 'regex' | 'json-pointer' | 'relative-json-pointer' | 'media-range' | 'char' | 'sf-string' | 'sf-token' | 'sf-binary' | 'sf-boolean' | (string & {});
|
|
120
|
+
type StringObject = CoreProperties & {
|
|
104
121
|
type: 'string';
|
|
105
122
|
/** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */
|
|
106
123
|
format?: StringFormat;
|
|
@@ -111,7 +128,7 @@ export type StringObject = CoreProperties & {
|
|
|
111
128
|
/** Regular expression pattern. */
|
|
112
129
|
pattern?: string;
|
|
113
130
|
} & Extensions;
|
|
114
|
-
|
|
131
|
+
type ArrayObject = CoreProperties & {
|
|
115
132
|
type: 'array';
|
|
116
133
|
/** Maximum number of items in array. */
|
|
117
134
|
maxItems?: number;
|
|
@@ -124,7 +141,7 @@ export type ArrayObject = CoreProperties & {
|
|
|
124
141
|
/** Schema for tuple validation. */
|
|
125
142
|
prefixItems?: ReferenceType<SchemaObject>[];
|
|
126
143
|
} & Extensions;
|
|
127
|
-
|
|
144
|
+
type ObjectObject = CoreProperties & {
|
|
128
145
|
type: 'object';
|
|
129
146
|
/** Maximum number of properties. */
|
|
130
147
|
maxProperties?: number;
|
|
@@ -373,11 +390,11 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
373
390
|
/** Maximum value (inclusive). */
|
|
374
391
|
maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
375
392
|
/** Maximum value (exclusive). */
|
|
376
|
-
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
393
|
+
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
377
394
|
/** Minimum value (inclusive). */
|
|
378
395
|
minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
379
396
|
/** Minimum value (exclusive). */
|
|
380
|
-
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
397
|
+
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
381
398
|
}>, import("@scalar/typebox").TObject<{
|
|
382
399
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
383
400
|
/** 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;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,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,aAAa,EAAa,MAAM,aAAa,CAAA;AAI3D,uGAAuG;AACvG,KAAK,aAAa,GAAG,cAAc,GAAG;IACpC,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,UAAU,CAAA;AAEd;;;;;;GAMG;AACH,QAAA,MAAM,UAAU;;EAgBd,CAAA;AAEF,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,EAAE,CAAA;AAEnH,KAAK,UAAU,GAAG,cAAc,GAAG;IACjC,IAAI,EAAE,SAAS,CAAA;CAChB,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/schema.ts"],"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;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"}
|
|
@@ -102,11 +102,11 @@ const NumericProperties = Type.Object({
|
|
|
102
102
|
/** Maximum value (inclusive). */
|
|
103
103
|
maximum: Type.Optional(Type.Number()),
|
|
104
104
|
/** Maximum value (exclusive). */
|
|
105
|
-
exclusiveMaximum: Type.Optional(Type.
|
|
105
|
+
exclusiveMaximum: Type.Optional(Type.Number({ minimum: 0 })),
|
|
106
106
|
/** Minimum value (inclusive). */
|
|
107
107
|
minimum: Type.Optional(Type.Number()),
|
|
108
108
|
/** Minimum value (exclusive). */
|
|
109
|
-
exclusiveMinimum: Type.Optional(Type.
|
|
109
|
+
exclusiveMinimum: Type.Optional(Type.Number({ minimum: 0 }))
|
|
110
110
|
});
|
|
111
111
|
const StringValidationProperties = Type.Object({
|
|
112
112
|
type: Type.Literal("string"),
|
|
@@ -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 __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,M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AA,EAEnD,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEtC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEvC,KAAK,KAAK,SAAS,YAAY;AAAA;AAAA,EAE/B,cAAc,KAAK,SAAS,8BAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1D,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKrC,UAAU,KAAK,SAAS,KAAK,MAAM,KAAK,QAAQ,CAAC,CAAC;AAAA;AAAA,EAElD,OAAO,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA;AAAA,EAElD,OAAO,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA;AAAA,EAElD,OAAO,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA;AAAA,EAElD,KAAK,KAAK,SAAS,iBAAiB;AACtC,CAAC;AAwDD,MAAM,oBAAoB,KAAK,OAAO;AAAA,EACpC,MAAM,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,SAAS,CAAC,CAAC;AAAA;AAAA,EAElE,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEnC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEvC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,kBAAkB,KAAK,SAAS,KAAK,
|
|
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\ntype 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\ntype 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.Number({ minimum: 0 })),\n /** Minimum value (inclusive). */\n minimum: Type.Optional(Type.Number()),\n /** Minimum value (exclusive). */\n exclusiveMinimum: Type.Optional(Type.Number({ minimum: 0 })),\n})\n\ntype 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?: number\n /** Minimum value (inclusive). */\n minimum?: number\n /** Minimum value (exclusive). */\n exclusiveMinimum?: 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 */\ntype 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\ntype 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\ntype 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\ntype 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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K,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKrD,QAAQ,KAAK,OAAO,EAAE,WAAW,KAAK,OAAO,EAAE,CAAC,GAAG,0BAA0B,UAAU;AAAA,EACvF,QAAQ,YAAY,0BAA0B,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
|
}
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import { type XDefaultScopes } from '../../../schemas/extensions/security/x-default-scopes.js';
|
|
2
2
|
import { type XScalarSecretHTTP, type XScalarSecretToken } from '../../../schemas/extensions/security/x-scalar-security-secrets.js';
|
|
3
3
|
import type { OAuthFlowsObject } from '../../../schemas/v3.1/strict/oauthflows.js';
|
|
4
|
-
export declare const DescriptionSchema: import("@scalar/typebox").TObject<{
|
|
5
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
7
|
-
}>;
|
|
8
4
|
type Description = {
|
|
9
5
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
10
6
|
description?: string;
|
|
11
7
|
};
|
|
12
|
-
export declare const ApiKeySchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
13
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
14
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
15
|
-
}>, import("@scalar/typebox").TObject<{
|
|
16
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
17
|
-
}>, import("@scalar/typebox").TObject<{
|
|
18
|
-
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
19
|
-
type: import("@scalar/typebox").TLiteral<"apiKey">;
|
|
20
|
-
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
21
|
-
name: import("@scalar/typebox").TString;
|
|
22
|
-
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
23
|
-
in: import("@scalar/typebox").TString;
|
|
24
|
-
}>]>;
|
|
25
8
|
export type ApiKeyObject = Description & {
|
|
26
9
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
27
10
|
type: 'apiKey';
|
|
@@ -30,22 +13,6 @@ export type ApiKeyObject = Description & {
|
|
|
30
13
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
31
14
|
in: string;
|
|
32
15
|
} & XScalarSecretToken;
|
|
33
|
-
export declare const HttpSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
34
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
35
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
36
|
-
}>, import("@scalar/typebox").TObject<{
|
|
37
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
38
|
-
}>, import("@scalar/typebox").TObject<{
|
|
39
|
-
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
40
|
-
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
41
|
-
}>, import("@scalar/typebox").TObject<{
|
|
42
|
-
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
43
|
-
type: import("@scalar/typebox").TLiteral<"http">;
|
|
44
|
-
/** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
|
|
45
|
-
scheme: import("@scalar/typebox").TString;
|
|
46
|
-
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
47
|
-
bearerFormat: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
48
|
-
}>]>;
|
|
49
16
|
export type HttpObject = Description & {
|
|
50
17
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
51
18
|
type: 'http';
|
|
@@ -54,33 +21,13 @@ export type HttpObject = Description & {
|
|
|
54
21
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
55
22
|
bearerFormat?: string;
|
|
56
23
|
} & XScalarSecretHTTP & XScalarSecretToken;
|
|
57
|
-
export declare const OAuth2: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
58
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
59
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
60
|
-
}>, import("@scalar/typebox").TObject<{
|
|
61
|
-
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
62
|
-
type: import("@scalar/typebox").TLiteral<"oauth2">;
|
|
63
|
-
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
64
|
-
flows: import("@scalar/typebox").TRef<"OAuthFlowsObject">;
|
|
65
|
-
}>, import("@scalar/typebox").TObject<{
|
|
66
|
-
'x-default-scopes': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
67
|
-
}>]>;
|
|
68
24
|
export type OAuth2Object = Description & {
|
|
69
25
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
70
26
|
type: 'oauth2';
|
|
71
27
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
72
28
|
flows: OAuthFlowsObject;
|
|
73
29
|
} & XDefaultScopes;
|
|
74
|
-
|
|
75
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
76
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
77
|
-
}>, import("@scalar/typebox").TObject<{
|
|
78
|
-
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
79
|
-
type: import("@scalar/typebox").TLiteral<"openIdConnect">;
|
|
80
|
-
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
81
|
-
openIdConnectUrl: import("@scalar/typebox").TString;
|
|
82
|
-
}>]>;
|
|
83
|
-
export type OpenIdConnectObject = Description & {
|
|
30
|
+
type OpenIdConnectObject = Description & {
|
|
84
31
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
85
32
|
type: 'openIdConnect';
|
|
86
33
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAA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GAAG,UAAU,GAAG,YAAY,GAAG,mBAAmB,CAAA"}
|
|
@@ -56,11 +56,6 @@ const OpenIdConnect = compose(
|
|
|
56
56
|
);
|
|
57
57
|
const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
|
|
58
58
|
export {
|
|
59
|
-
ApiKeySchema,
|
|
60
|
-
DescriptionSchema,
|
|
61
|
-
HttpSchema,
|
|
62
|
-
OAuth2,
|
|
63
|
-
OpenIdConnect,
|
|
64
59
|
SecuritySchemeObjectSchemaDefinition
|
|
65
60
|
};
|
|
66
61
|
//# sourceMappingURL=security-scheme.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/security-scheme.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XDefaultScopes, XDefaultScopesSchema } from '@/schemas/extensions/security/x-default-scopes'\nimport {\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport type { OAuthFlowsObject } from '@/schemas/v3.1/strict/oauthflows'\nimport { OAuthFlowsObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAA8B,4BAA4B;AAC1D;AAAA,EAEE;AAAA,EAEA;AAAA,OACK;AAEP,SAAS,2BAA2B;
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XDefaultScopes, XDefaultScopesSchema } from '@/schemas/extensions/security/x-default-scopes'\nimport {\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport type { OAuthFlowsObject } from '@/schemas/v3.1/strict/oauthflows'\nimport { OAuthFlowsObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nconst DescriptionSchema = Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n\ntype Description = {\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n}\n\nconst ApiKeySchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.String(),\n }),\n)\n\nexport type ApiKeyObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'apiKey'\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: string\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: string\n} & XScalarSecretToken\n\nconst HttpSchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n XScalarSecretHTTPSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.String(),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport type HttpObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'http'\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: string\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat?: string\n} & XScalarSecretHTTP &\n XScalarSecretToken\n\nconst OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectRef,\n }),\n XDefaultScopesSchema,\n)\n\nexport type OAuth2Object = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'oauth2'\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObject\n} & XDefaultScopes\n\nconst OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\ntype OpenIdConnectObject = Description & {\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: 'openIdConnect'\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: string\n}\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n\nexport type SecuritySchemeObject = ApiKeyObject | HttpObject | OAuth2Object | OpenIdConnectObject\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAA8B,4BAA4B;AAC1D;AAAA,EAEE;AAAA,EAEA;AAAA,OACK;AAEP,SAAS,2BAA2B;AAEpC,MAAM,oBAAoB,KAAK,OAAO;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;AAOD,MAAM,eAAe;AAAA,EACnB;AAAA,EACA;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA,EAClB,CAAC;AACH;AAWA,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,MAAM;AAAA;AAAA,IAEzB,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC3C,CAAC;AACH;AAYA,MAAM,SAAS;AAAA,EACb;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,OAAO;AAAA,EACT,CAAC;AAAA,EACD;AACF;AASA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,eAAe;AAAA;AAAA,IAElC,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AAcO,MAAM,uCAAuC,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -482,9 +482,9 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
482
482
|
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
483
483
|
multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
484
484
|
maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
485
|
-
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
485
|
+
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
486
486
|
minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
487
|
-
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
487
|
+
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
488
488
|
}>, import("@scalar/typebox").TObject<{
|
|
489
489
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
490
490
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1253,7 +1253,6 @@ export declare const ConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1253
1253
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1254
1254
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1255
1255
|
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1256
|
-
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1257
1256
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1258
1257
|
}>, import("@scalar/typebox").TObject<{
|
|
1259
1258
|
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIxB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,2BAA2B,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;CAC3D,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GACxC,WAAW,CAAC;IACV,2BAA2B,EAAE;QAC3B,OAAO,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAA;QAC1C,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;QACzD,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE;YAChC,IAAI,EAAE,MAAM,CAAA;YACZ,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,MAAM,EAAE,MAAM,CAAA;YACd,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB,KAAK,MAAM,CAAA;QACZ,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAA;QAC5D,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAA;QACxD,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAA;QAC1D,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,MAAM,CAAA;KAC7E,CAAA;CACF,CAAC,CAAA"}
|
|
@@ -494,9 +494,9 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
494
494
|
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
495
495
|
multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
496
496
|
maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
497
|
-
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
497
|
+
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
498
498
|
minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
499
|
-
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
499
|
+
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
500
500
|
}>, import("@scalar/typebox").TObject<{
|
|
501
501
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
502
502
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1265,7 +1265,6 @@ export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIn
|
|
|
1265
1265
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1266
1266
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1267
1267
|
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1268
|
-
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1269
1268
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1270
1269
|
}>, import("@scalar/typebox").TObject<{
|
|
1271
1270
|
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -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,WAAW,CAAA;AAG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