@scalar/workspace-store 0.68.5 → 0.69.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 +16 -0
- package/dist/channel-example/get-channel-connection-context.d.ts +1 -1
- package/dist/channel-example/get-channel-connection-context.js +8 -8
- package/dist/channel-example/get-channel-connection-security.js +1 -1
- package/dist/channel-example/get-channel-parameters.js +1 -1
- package/dist/channel-example/servers.d.ts +1 -1
- package/dist/channel-example/servers.js +1 -1
- package/dist/entities/auth/index.d.ts +1 -1
- package/dist/entities/auth/index.js +1 -1
- package/dist/entities/history/index.d.ts +1 -1
- package/dist/entities/history/index.js +1 -1
- package/dist/events/definitions/cookie.d.ts +1 -1
- package/dist/events/definitions/environment.d.ts +1 -1
- package/dist/events/definitions/hooks.d.ts +1 -1
- package/dist/events/definitions/index.d.ts +5 -5
- package/dist/helpers/asyncapi-model-chunk-reference.js +1 -1
- package/dist/helpers/chunk-index.d.ts.map +1 -1
- package/dist/helpers/chunk-index.js +9 -1
- package/dist/helpers/document-revision.js +1 -1
- package/dist/helpers/dynamic-ref.js +2 -2
- package/dist/helpers/for-each-path-item-operation.d.ts +1 -1
- package/dist/helpers/for-each-path-item-operation.js +1 -1
- package/dist/helpers/get-example-value.js +1 -1
- package/dist/helpers/get-parameter-example.js +1 -1
- package/dist/helpers/operation-examples.js +1 -1
- package/dist/helpers/querystring-parameter.js +1 -1
- package/dist/helpers/resolve-async-api-schema.d.ts +16 -0
- package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -0
- package/dist/helpers/resolve-async-api-schema.js +42 -0
- package/dist/helpers/resolve-security-requirements.js +2 -2
- package/dist/helpers/snapshot-schema.js +1 -1
- package/dist/helpers/unpack-proxy.js +2 -2
- package/dist/helpers/use-external-examples.d.ts +1 -1
- package/dist/helpers/use-external-examples.js +1 -1
- package/dist/mutators/index.js +10 -10
- package/dist/mutators/operation/helpers/sync-path-parameters.js +1 -1
- package/dist/mutators/operation/index.js +5 -5
- package/dist/mutators/operation/operation.js +1 -1
- package/dist/navigation/get-navigation-options.d.ts +1 -1
- package/dist/navigation/helpers/get-navigation-tag-names.d.ts +1 -1
- package/dist/navigation/helpers/get-tag.d.ts +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.d.ts +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.js +10 -17
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-description.js +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +1 -1
- package/dist/navigation/helpers/traverse-document.js +1 -1
- package/dist/navigation/helpers/traverse-paths.d.ts +1 -1
- package/dist/navigation/helpers/traverse-paths.js +1 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +1 -1
- package/dist/navigation/helpers/traverse-tags.js +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +1 -1
- package/dist/navigation/helpers/update-order-ids.js +2 -2
- package/dist/navigation/helpers/utils.d.ts +1 -1
- package/dist/persistence/index.js +3 -3
- package/dist/persistence/migrations/v1-initial.d.ts +1 -1
- package/dist/persistence/migrations/v2-team-to-local.d.ts +1 -1
- package/dist/plugins/bundler/index.js +1 -1
- package/dist/request-example/builder/body/get-request-body-example.js +3 -3
- package/dist/request-example/builder/build-request.d.ts +2 -2
- package/dist/request-example/builder/build-request.js +5 -5
- package/dist/request-example/builder/header/build-request-parameters.js +1 -1
- package/dist/request-example/builder/header/is-param-disabled.js +1 -1
- package/dist/request-example/builder/helpers/get-resolved-url.js +1 -1
- package/dist/request-example/builder/request-factory.d.ts +3 -3
- package/dist/request-example/builder/request-factory.js +2 -2
- package/dist/request-example/builder/resolve-request-factory-url.d.ts +1 -1
- package/dist/request-example/builder/security/build-request-security.d.ts +1 -1
- package/dist/request-example/builder/security/secret-types.d.ts +1 -1
- package/dist/request-example/context/get-request-example-context.d.ts +4 -4
- package/dist/request-example/context/get-request-example-context.js +9 -9
- package/dist/request-example/context/headers.js +2 -2
- package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +1 -1
- package/dist/request-example/context/security/get-security-schemes.d.ts +2 -2
- package/dist/request-example/context/security/merge-security.d.ts +1 -1
- package/dist/request-example/context/security/merge-security.js +1 -1
- package/dist/request-example/variable-store/index.d.ts +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +1 -1
- package/dist/schemas/navigation.d.ts +5 -5
- package/dist/schemas/navigation.js +2 -2
- package/dist/schemas/reference-config/settings.d.ts +1 -1
- package/dist/schemas/reference-config/settings.js +1 -1
- package/dist/schemas/v3.1/strict/example.js +2 -2
- package/dist/schemas/v3.1/strict/header.js +1 -1
- package/dist/schemas/v3.1/strict/info.d.ts +2 -2
- package/dist/schemas/v3.1/strict/info.js +3 -3
- package/dist/schemas/v3.1/strict/link.js +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +8 -8
- package/dist/schemas/v3.1/strict/oauth-flow.js +9 -9
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +17 -17
- package/dist/schemas/v3.1/strict/openapi-document.js +18 -18
- package/dist/schemas/v3.1/strict/operation.d.ts +10 -10
- package/dist/schemas/v3.1/strict/operation.js +11 -11
- package/dist/schemas/v3.1/strict/parameter.d.ts +6 -6
- package/dist/schemas/v3.1/strict/parameter.js +6 -6
- package/dist/schemas/v3.1/strict/reference.js +1 -1
- package/dist/schemas/v3.1/strict/request-body.d.ts +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +11 -11
- package/dist/schemas/v3.1/strict/schema.js +10 -10
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +3 -3
- package/dist/schemas/v3.1/strict/security-scheme.js +4 -4
- package/dist/schemas/v3.1/strict/tag.d.ts +4 -4
- package/dist/schemas/v3.1/strict/tag.js +5 -5
- package/dist/schemas/v3.1/strict/type-guards.d.ts +2 -2
- package/dist/schemas/v3.2/openapi/index.js +43 -43
- package/dist/schemas/v3.2/strict/example.js +2 -2
- package/dist/schemas/v3.2/strict/header.js +1 -1
- package/dist/schemas/v3.2/strict/info.d.ts +2 -2
- package/dist/schemas/v3.2/strict/info.js +3 -3
- package/dist/schemas/v3.2/strict/link.js +1 -1
- package/dist/schemas/v3.2/strict/oauth-flow.d.ts +8 -8
- package/dist/schemas/v3.2/strict/oauth-flow.js +9 -9
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +17 -17
- package/dist/schemas/v3.2/strict/openapi-document.js +18 -18
- package/dist/schemas/v3.2/strict/operation.d.ts +10 -10
- package/dist/schemas/v3.2/strict/operation.js +11 -11
- package/dist/schemas/v3.2/strict/parameter.d.ts +6 -6
- package/dist/schemas/v3.2/strict/parameter.js +6 -6
- package/dist/schemas/v3.2/strict/reference.js +1 -1
- package/dist/schemas/v3.2/strict/request-body.d.ts +1 -1
- package/dist/schemas/v3.2/strict/request-body.js +2 -2
- package/dist/schemas/v3.2/strict/response.d.ts +2 -2
- package/dist/schemas/v3.2/strict/schema.d.ts +11 -11
- package/dist/schemas/v3.2/strict/schema.js +10 -10
- package/dist/schemas/v3.2/strict/security-scheme.d.ts +3 -3
- package/dist/schemas/v3.2/strict/security-scheme.js +4 -4
- package/dist/schemas/v3.2/strict/tag.d.ts +4 -4
- package/dist/schemas/v3.2/strict/tag.js +5 -5
- package/dist/schemas/v3.2/strict/type-guards.d.ts +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +3 -3
- package/dist/schemas/workspace-specification/index.js +3 -3
- package/dist/schemas/workspace.d.ts +7 -7
- package/dist/schemas/workspace.js +8 -8
- package/package.json +15 -15
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type XInternal } from '
|
|
2
|
-
import { type XScalarIgnore } from '
|
|
3
|
-
import { type XPostResponse } from '
|
|
4
|
-
import { type XPreRequest } from '
|
|
5
|
-
import { type XBadges } from '
|
|
6
|
-
import { type XCodeSamples } from '
|
|
7
|
-
import { type XDraftExamples } from '
|
|
8
|
-
import { type XScalarDisableParameters } from '
|
|
9
|
-
import { type XScalarStability } from '
|
|
10
|
-
import { type XScalarSelectedServer } from '
|
|
1
|
+
import { type XInternal } from '../../extensions/document/x-internal.js';
|
|
2
|
+
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
3
|
+
import { type XPostResponse } from '../../extensions/general/x-post-response.js';
|
|
4
|
+
import { type XPreRequest } from '../../extensions/general/x-pre-request.js';
|
|
5
|
+
import { type XBadges } from '../../extensions/operation/x-badge.js';
|
|
6
|
+
import { type XCodeSamples } from '../../extensions/operation/x-code-samples.js';
|
|
7
|
+
import { type XDraftExamples } from '../../extensions/operation/x-draft-examples.js';
|
|
8
|
+
import { type XScalarDisableParameters } from '../../extensions/operation/x-scalar-disable-parameters.js';
|
|
9
|
+
import { type XScalarStability } from '../../extensions/operation/x-scalar-stability.js';
|
|
10
|
+
import { type XScalarSelectedServer } from '../../extensions/server/x-scalar-selected-server.js';
|
|
11
11
|
import type { CallbackObject } from './callback.js';
|
|
12
12
|
import type { ExternalDocumentationObject } from './external-documentation.js';
|
|
13
13
|
import type { ParameterObject } from './parameter.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XInternalSchema } from '
|
|
4
|
-
import { XScalarIgnoreSchema } from '
|
|
5
|
-
import { XPostResponseSchema } from '
|
|
6
|
-
import { XPreRequestSchema } from '
|
|
7
|
-
import { XBadgesSchema } from '
|
|
8
|
-
import { XCodeSamplesSchema } from '
|
|
9
|
-
import { XDraftExamplesSchema } from '
|
|
10
|
-
import { XScalarDisableParametersSchema, } from '
|
|
11
|
-
import { XScalarStabilitySchema } from '
|
|
12
|
-
import { XScalarSelectedServerSchema, } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XInternalSchema } from '../../extensions/document/x-internal.js';
|
|
4
|
+
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
5
|
+
import { XPostResponseSchema } from '../../extensions/general/x-post-response.js';
|
|
6
|
+
import { XPreRequestSchema } from '../../extensions/general/x-pre-request.js';
|
|
7
|
+
import { XBadgesSchema } from '../../extensions/operation/x-badge.js';
|
|
8
|
+
import { XCodeSamplesSchema } from '../../extensions/operation/x-code-samples.js';
|
|
9
|
+
import { XDraftExamplesSchema } from '../../extensions/operation/x-draft-examples.js';
|
|
10
|
+
import { XScalarDisableParametersSchema, } from '../../extensions/operation/x-scalar-disable-parameters.js';
|
|
11
|
+
import { XScalarStabilitySchema } from '../../extensions/operation/x-scalar-stability.js';
|
|
12
|
+
import { XScalarSelectedServerSchema, } from '../../extensions/server/x-scalar-selected-server.js';
|
|
13
13
|
import { CallbackObjectRef, ExternalDocumentationObjectRef, ParameterObjectRef, RequestBodyObjectRef, ResponsesObjectRef, SecurityRequirementObjectRef, ServerObjectRef, } from './ref-definitions.js';
|
|
14
14
|
import { reference } from './reference.js';
|
|
15
15
|
export const OperationObjectSchemaDefinition = compose(Type.Object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type XInternal } from '
|
|
2
|
-
import { type XScalarIgnore } from '
|
|
3
|
-
import type { ExampleObject } from '
|
|
4
|
-
import type { MediaTypeObject } from '
|
|
5
|
-
import { type ReferenceType } from '
|
|
6
|
-
import type { SchemaObject } from '
|
|
1
|
+
import { type XInternal } from '../../extensions/document/x-internal.js';
|
|
2
|
+
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
3
|
+
import type { ExampleObject } from './example.js';
|
|
4
|
+
import type { MediaTypeObject } from './media-type.js';
|
|
5
|
+
import { type ReferenceType } from './reference.js';
|
|
6
|
+
import type { SchemaObject } from './schema.js';
|
|
7
7
|
type ParameterObjectBase = {
|
|
8
8
|
/** REQUIRED. The name of the parameter. Parameter names are case sensitive.
|
|
9
9
|
* - If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XInternalSchema } from '
|
|
4
|
-
import { XScalarIgnoreSchema } from '
|
|
5
|
-
import { XGlobalSchema } from '
|
|
6
|
-
import { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from '
|
|
7
|
-
import { reference } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XInternalSchema } from '../../extensions/document/x-internal.js';
|
|
4
|
+
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
5
|
+
import { XGlobalSchema } from '../../extensions/parameter/x-global.js';
|
|
6
|
+
import { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from './ref-definitions.js';
|
|
7
|
+
import { reference } from './reference.js';
|
|
8
8
|
const ParameterObjectBaseSchema = compose(Type.Object({
|
|
9
9
|
/** REQUIRED. The name of the parameter. Parameter names are case sensitive.
|
|
10
10
|
* - If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
3
|
export const ReferenceObjectExtensionsSchema = Type.Object({
|
|
4
4
|
/** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
|
|
5
5
|
'$status': Type.Optional(Type.Union([Type.Literal('loading'), Type.Literal('error')])),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type XScalarSelectedContentType } from '
|
|
1
|
+
import { type XScalarSelectedContentType } from '../../extensions/operation/x-scalar-selected-content-type.js';
|
|
2
2
|
import type { MediaTypeObject } from './media-type.js';
|
|
3
3
|
/** Describes a single request body. */
|
|
4
4
|
export declare const RequestBodyObjectSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XScalarSelectedContentTypeSchema, } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XScalarSelectedContentTypeSchema, } from '../../extensions/operation/x-scalar-selected-content-type.js';
|
|
4
4
|
import { MediaTypeObjectRef } from './ref-definitions.js';
|
|
5
5
|
/** Describes a single request body. */
|
|
6
6
|
export const RequestBodyObjectSchemaDefinition = compose(Type.Object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HeaderObject } from '
|
|
2
|
-
import type { MediaTypeObject } from '
|
|
1
|
+
import type { HeaderObject } from './header.js';
|
|
2
|
+
import type { MediaTypeObject } from './media-type.js';
|
|
3
3
|
import type { LinkObject } from './link.js';
|
|
4
4
|
import { type ReferenceType } from './reference.js';
|
|
5
5
|
export declare const ResponseObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type XInternal } from '
|
|
2
|
-
import { type XScalarIgnore } from '
|
|
3
|
-
import { type XTags } from '
|
|
4
|
-
import { type XAdditionalPropertiesName } from '
|
|
5
|
-
import { type XEnumDescriptions } from '
|
|
6
|
-
import { type XEnumVarNames } from '
|
|
7
|
-
import { type XExamples } from '
|
|
8
|
-
import { type XOrder } from '
|
|
9
|
-
import { type XVariable } from '
|
|
10
|
-
import type { ExternalDocumentationObject } from '
|
|
11
|
-
import type { XMLObject } from '
|
|
1
|
+
import { type XInternal } from '../../extensions/document/x-internal.js';
|
|
2
|
+
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
3
|
+
import { type XTags } from '../../extensions/document/x-tags.js';
|
|
4
|
+
import { type XAdditionalPropertiesName } from '../../extensions/schema/x-additional-properties-name.js';
|
|
5
|
+
import { type XEnumDescriptions } from '../../extensions/schema/x-enum-descriptions.js';
|
|
6
|
+
import { type XEnumVarNames } from '../../extensions/schema/x-enum-varnames.js';
|
|
7
|
+
import { type XExamples } from '../../extensions/schema/x-examples.js';
|
|
8
|
+
import { type XOrder } from '../../extensions/schema/x-order.js';
|
|
9
|
+
import { type XVariable } from '../../extensions/schema/x-variable.js';
|
|
10
|
+
import type { ExternalDocumentationObject } from './external-documentation.js';
|
|
11
|
+
import type { XMLObject } from './xml.js';
|
|
12
12
|
import type { DiscriminatorObject } from './discriminator.js';
|
|
13
13
|
import { type ReferenceObject } from './reference.js';
|
|
14
14
|
export type SchemaReferenceType<Value> = Value | (ReferenceObject & {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XInternalSchema } from '
|
|
4
|
-
import { XScalarIgnoreSchema } from '
|
|
5
|
-
import { XTagsSchema } from '
|
|
6
|
-
import { XAdditionalPropertiesNameSchema, } from '
|
|
7
|
-
import { XEnumDescriptionsSchema } from '
|
|
8
|
-
import { XEnumVarNamesSchema } from '
|
|
9
|
-
import { XExamplesSchema } from '
|
|
10
|
-
import { XOrderSchema } from '
|
|
11
|
-
import { XVariableSchema } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XInternalSchema } from '../../extensions/document/x-internal.js';
|
|
4
|
+
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
5
|
+
import { XTagsSchema } from '../../extensions/document/x-tags.js';
|
|
6
|
+
import { XAdditionalPropertiesNameSchema, } from '../../extensions/schema/x-additional-properties-name.js';
|
|
7
|
+
import { XEnumDescriptionsSchema } from '../../extensions/schema/x-enum-descriptions.js';
|
|
8
|
+
import { XEnumVarNamesSchema } from '../../extensions/schema/x-enum-varnames.js';
|
|
9
|
+
import { XExamplesSchema } from '../../extensions/schema/x-examples.js';
|
|
10
|
+
import { XOrderSchema } from '../../extensions/schema/x-order.js';
|
|
11
|
+
import { XVariableSchema } from '../../extensions/schema/x-variable.js';
|
|
12
12
|
import { DiscriminatorObjectRef, ExternalDocumentationObjectRef, SchemaObjectRef, XMLObjectRef, } from './ref-definitions.js';
|
|
13
13
|
import { ReferenceObjectSchema } from './reference.js';
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type XScalarIgnore } from '
|
|
2
|
-
import { type XDefaultScopes } from '
|
|
3
|
-
import type { OAuthFlowsObject } from '
|
|
1
|
+
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
2
|
+
import { type XDefaultScopes } from '../../extensions/security/x-default-scopes.js';
|
|
3
|
+
import type { OAuthFlowsObject } from './oauthflows.js';
|
|
4
4
|
type Description = {
|
|
5
5
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
6
6
|
description?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XScalarIgnoreSchema } from '
|
|
4
|
-
import { XDefaultScopesSchema } from '
|
|
5
|
-
import { OAuthFlowsObjectRef } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
4
|
+
import { XDefaultScopesSchema } from '../../extensions/security/x-default-scopes.js';
|
|
5
|
+
import { OAuthFlowsObjectRef } from './ref-definitions.js';
|
|
6
6
|
// Shared base for every security scheme: a description plus the ignore extension, so any
|
|
7
7
|
// scheme can be hidden from the auth UI with `x-scalar-ignore`. See documentation/openapi.md.
|
|
8
8
|
const DescriptionSchema = compose(Type.Object({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type XInternal } from '
|
|
2
|
-
import { type XScalarIgnore } from '
|
|
3
|
-
import { type XScalarOrder } from '
|
|
4
|
-
import { type XDisplayName } from '
|
|
1
|
+
import { type XInternal } from '../../extensions/document/x-internal.js';
|
|
2
|
+
import { type XScalarIgnore } from '../../extensions/document/x-scalar-ignore.js';
|
|
3
|
+
import { type XScalarOrder } from '../../extensions/general/x-scalar-order.js';
|
|
4
|
+
import { type XDisplayName } from '../../extensions/tag/x-display-name.js';
|
|
5
5
|
import type { ExternalDocumentationObject } from './external-documentation.js';
|
|
6
6
|
/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
|
|
7
7
|
export declare const TagObjectSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { XInternalSchema } from '
|
|
4
|
-
import { XScalarIgnoreSchema } from '
|
|
5
|
-
import { XScalarOrderSchema } from '
|
|
6
|
-
import { XDisplayNameSchema } from '
|
|
2
|
+
import { compose } from '../../compose.js';
|
|
3
|
+
import { XInternalSchema } from '../../extensions/document/x-internal.js';
|
|
4
|
+
import { XScalarIgnoreSchema } from '../../extensions/document/x-scalar-ignore.js';
|
|
5
|
+
import { XScalarOrderSchema } from '../../extensions/general/x-scalar-order.js';
|
|
6
|
+
import { XDisplayNameSchema } from '../../extensions/tag/x-display-name.js';
|
|
7
7
|
import { ExternalDocumentationObjectRef } from './ref-definitions.js';
|
|
8
8
|
/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
|
|
9
9
|
export const TagObjectSchemaDefinition = compose(Type.Object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SchemaObject } from '
|
|
2
|
-
import type { ParameterObject, ParameterWithContentObject } from '
|
|
1
|
+
import type { SchemaObject } from './openapi-document.js';
|
|
2
|
+
import type { ParameterObject, ParameterWithContentObject } from './parameter.js';
|
|
3
3
|
export declare const isObjectSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
|
|
4
4
|
type: "object";
|
|
5
5
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PartialDeep } from 'type-fest';
|
|
2
|
-
import type { OpenApiDocument } from '
|
|
3
|
-
import { type WorkspaceMeta } from '
|
|
4
|
-
import { type Info } from '
|
|
2
|
+
import type { OpenApiDocument } from '../v3.2/strict/openapi-document.js';
|
|
3
|
+
import { type WorkspaceMeta } from '../workspace.js';
|
|
4
|
+
import { type Info } from './info.js';
|
|
5
5
|
export declare const WorkspaceSpecificationSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
6
6
|
workspace: import("@scalar/typebox").TLiteral<"draft">;
|
|
7
7
|
info: import("@scalar/typebox").TObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { compose } from '
|
|
3
|
-
import { WorkspaceMetaSchema } from '
|
|
4
|
-
import { InfoSchema } from '
|
|
2
|
+
import { compose } from '../compose.js';
|
|
3
|
+
import { WorkspaceMetaSchema } from '../workspace.js';
|
|
4
|
+
import { InfoSchema } from './info.js';
|
|
5
5
|
export const WorkspaceSpecificationSchema = compose(Type.Object({
|
|
6
6
|
workspace: Type.Union([Type.Literal('draft')]),
|
|
7
7
|
info: InfoSchema,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
|
|
2
|
-
import { extensions } from '
|
|
3
|
-
import { type XScalarEnvironments } from '
|
|
4
|
-
import { type XScalarActiveEnvironment } from '
|
|
5
|
-
import { type XScalarCookies } from '
|
|
6
|
-
import { type XScalarOrder } from '
|
|
7
|
-
import { type XScalarActiveProxy } from '
|
|
8
|
-
import { type XScalarTabs } from '
|
|
2
|
+
import { extensions } from './extensions.js';
|
|
3
|
+
import { type XScalarEnvironments } from './extensions/document/x-scalar-environments.js';
|
|
4
|
+
import { type XScalarActiveEnvironment } from './extensions/general/x-scalar-active-environment.js';
|
|
5
|
+
import { type XScalarCookies } from './extensions/general/x-scalar-cookies.js';
|
|
6
|
+
import { type XScalarOrder } from './extensions/general/x-scalar-order.js';
|
|
7
|
+
import { type XScalarActiveProxy } from './extensions/workspace/x-scalar-active-proxy.js';
|
|
8
|
+
import { type XScalarTabs } from './extensions/workspace/x-scalar-tabs.js';
|
|
9
9
|
import type { OpenAPIExtensions, OpenApiDocument } from './v3.2/strict/openapi-document.js';
|
|
10
10
|
export type WorkspaceDocumentMeta = Omit<OpenAPIExtensions, 'x-original-oas-version' | 'x-scalar-original-source-url' | 'x-scalar-original-document-hash'>;
|
|
11
11
|
export type WorkspaceDocument = OpenApiDocument | AsyncApiDocument;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
2
|
import { AVAILABLE_CLIENTS } from '@scalar/types/snippetz';
|
|
3
|
-
import { compose } from '
|
|
4
|
-
import { extensions } from '
|
|
5
|
-
import { xScalarEnvironmentsSchema, } from '
|
|
6
|
-
import { XScalarActiveEnvironmentSchema, } from '
|
|
7
|
-
import { xScalarCookiesSchema } from '
|
|
8
|
-
import { XScalarOrderSchema } from '
|
|
9
|
-
import { XScalarActiveProxySchema } from '
|
|
10
|
-
import { XScalarTabsSchema } from '
|
|
3
|
+
import { compose } from './compose.js';
|
|
4
|
+
import { extensions } from './extensions.js';
|
|
5
|
+
import { xScalarEnvironmentsSchema, } from './extensions/document/x-scalar-environments.js';
|
|
6
|
+
import { XScalarActiveEnvironmentSchema, } from './extensions/general/x-scalar-active-environment.js';
|
|
7
|
+
import { xScalarCookiesSchema } from './extensions/general/x-scalar-cookies.js';
|
|
8
|
+
import { XScalarOrderSchema } from './extensions/general/x-scalar-order.js';
|
|
9
|
+
import { XScalarActiveProxySchema } from './extensions/workspace/x-scalar-active-proxy.js';
|
|
10
|
+
import { XScalarTabsSchema } from './extensions/workspace/x-scalar-tabs.js';
|
|
11
11
|
export const ColorModeSchema = Type.Union([Type.Literal('system'), Type.Literal('light'), Type.Literal('dark')]);
|
|
12
12
|
export const WorkspaceMetaSchema = Type.Partial(compose(Type.Object({
|
|
13
13
|
[extensions.workspace.colorMode]: ColorModeSchema,
|
package/package.json
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"openapi",
|
|
17
17
|
"scalar"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.
|
|
19
|
+
"version": "0.69.0",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=22"
|
|
21
|
+
"node": ">=22.19.0"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|
|
@@ -155,24 +155,24 @@
|
|
|
155
155
|
"dependencies": {
|
|
156
156
|
"@scalar/asyncapi-upgrader": "0.1.18",
|
|
157
157
|
"@scalar/helpers": "0.16.4",
|
|
158
|
-
"@scalar/json-magic": "0.
|
|
159
|
-
"@scalar/openapi-upgrader": "0.4.
|
|
160
|
-
"@scalar/schemas": "0.
|
|
161
|
-
"@scalar/snippetz": "0.10.
|
|
158
|
+
"@scalar/json-magic": "0.17.0",
|
|
159
|
+
"@scalar/openapi-upgrader": "0.4.6",
|
|
160
|
+
"@scalar/schemas": "0.15.0",
|
|
161
|
+
"@scalar/snippetz": "0.10.11",
|
|
162
162
|
"@scalar/typebox": "0.1.3",
|
|
163
|
-
"@scalar/types": "0.
|
|
163
|
+
"@scalar/types": "0.25.0",
|
|
164
164
|
"@scalar/validation": "0.6.7",
|
|
165
|
-
"js-base64": "^3.9.
|
|
166
|
-
"type-fest": "^5.
|
|
167
|
-
"vue": "^3.5.
|
|
168
|
-
"yaml": "^2.9.
|
|
165
|
+
"js-base64": "^3.9.4",
|
|
166
|
+
"type-fest": "^5.10.0",
|
|
167
|
+
"vue": "^3.5.44",
|
|
168
|
+
"yaml": "^2.9.1"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
|
-
"@google-cloud/storage": "
|
|
171
|
+
"@google-cloud/storage": "8.4.0",
|
|
172
172
|
"fake-indexeddb": "6.2.5",
|
|
173
|
-
"fastify": "^5.
|
|
174
|
-
"vite": "8.
|
|
175
|
-
"vitest": "4.1.
|
|
173
|
+
"fastify": "^5.12.7",
|
|
174
|
+
"vite": "8.3.4",
|
|
175
|
+
"vitest": "4.1.12"
|
|
176
176
|
},
|
|
177
177
|
"scripts": {
|
|
178
178
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|