@scalar/workspace-store 0.60.0 → 0.62.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 +68 -0
- package/README.md +6 -0
- package/dist/channel-example/build-connection-url.d.ts.map +1 -1
- package/dist/channel-example/build-connection-url.js +3 -3
- package/dist/channel-example/dedupe-requirements.d.ts +1 -1
- package/dist/channel-example/get-async-api-protocols.js +2 -2
- package/dist/channel-example/get-asyncapi-security-requirements.d.ts +1 -1
- package/dist/channel-example/get-channel-connection-security.d.ts +1 -1
- package/dist/channel-example/get-channel-operations.d.ts.map +1 -1
- package/dist/channel-example/get-channel-operations.js +4 -1
- package/dist/channel-example/get-channel-parameters.d.ts.map +1 -1
- package/dist/channel-example/get-channel-parameters.js +3 -1
- package/dist/channel-example/resolve-channel.d.ts.map +1 -1
- package/dist/channel-example/resolve-channel.js +2 -0
- package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -1
- package/dist/channel-example/resolve-operation-channel.js +4 -0
- package/dist/channel-example/resolve-operation-with-traits.js +2 -2
- package/dist/channel-example/servers.d.ts.map +1 -1
- package/dist/channel-example/servers.js +3 -1
- package/dist/channel-example/types.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -4
- package/dist/entities/auth/schema.d.ts +640 -200
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/entities/auth/schema.js +2 -2
- package/dist/events/definitions/auth.d.ts +2 -2
- package/dist/events/definitions/document.d.ts +1 -1
- package/dist/events/definitions/operation.d.ts +3 -2
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/server.d.ts +1 -1
- package/dist/events/old-definitions.d.ts +1 -1
- package/dist/helpers/create-chunk-writer.d.ts +6 -0
- package/dist/helpers/create-chunk-writer.d.ts.map +1 -0
- package/dist/helpers/create-chunk-writer.js +44 -0
- package/dist/helpers/dynamic-ref.d.ts +13 -2
- package/dist/helpers/dynamic-ref.d.ts.map +1 -1
- package/dist/helpers/dynamic-ref.js +20 -7
- package/dist/helpers/encode-chunk-name.d.ts +3 -0
- package/dist/helpers/encode-chunk-name.d.ts.map +1 -0
- package/dist/helpers/encode-chunk-name.js +9 -0
- package/dist/helpers/for-each-path-item-operation.d.ts +2 -2
- package/dist/helpers/get-first-server.d.ts +1 -1
- package/dist/helpers/get-resolved-ref-deep.d.ts +1 -1
- package/dist/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref.d.ts +6 -1
- package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref.js +3 -10
- package/dist/helpers/is-non-optional-security-requirement.d.ts +1 -1
- package/dist/helpers/merge-object.d.ts +2 -2
- package/dist/helpers/merge-object.d.ts.map +1 -1
- package/dist/helpers/merge-object.js +2 -5
- package/dist/mutators/auth.d.ts +1 -1
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +9 -4
- package/dist/mutators/index.d.ts +10 -10
- package/dist/mutators/operation/body.js +2 -2
- package/dist/mutators/operation/helpers/fetch-request-to-har.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/fetch-request-to-har.js +12 -2
- package/dist/mutators/operation/helpers/har-to-operation.d.ts +1 -1
- package/dist/mutators/operation/helpers/har-to-operation.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/har-to-operation.js +9 -5
- package/dist/mutators/operation/helpers/sync-path-parameters.d.ts +2 -2
- package/dist/mutators/operation/history.js +2 -2
- package/dist/mutators/operation/operation.d.ts.map +1 -1
- package/dist/mutators/operation/operation.js +4 -0
- package/dist/mutators/operation/parameters.js +1 -1
- package/dist/mutators/server.d.ts +3 -3
- package/dist/mutators/server.js +1 -1
- package/dist/mutators/tag.d.ts.map +1 -1
- package/dist/mutators/tag.js +4 -0
- package/dist/navigation/helpers/get-openapi-object.d.ts +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.js +2 -2
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +1 -1
- package/dist/navigation/helpers/traverse-examples.d.ts +12 -1
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-examples.js +22 -1
- package/dist/navigation/helpers/traverse-paths.d.ts +1 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts +1 -1
- package/dist/navigation/helpers/traverse-tags.d.ts +1 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts +1 -1
- package/dist/navigation/helpers/update-order-ids.d.ts +2 -2
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +1 -0
- package/dist/navigation/types.d.ts +1 -1
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +10 -10
- package/dist/persistence/indexdb.d.ts.map +1 -1
- package/dist/persistence/indexdb.js +7 -5
- package/dist/persistence/migrations/v2-team-to-local.d.ts.map +1 -1
- package/dist/persistence/migrations/v2-team-to-local.js +3 -4
- package/dist/plugins/bundler/index.d.ts +5 -2
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +24 -26
- package/dist/request-example/builder/body/build-request-body.d.ts +2 -1
- package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
- package/dist/request-example/builder/body/build-request-body.js +41 -5
- package/dist/request-example/builder/body/encode-multipart-body.d.ts +9 -0
- package/dist/request-example/builder/body/encode-multipart-body.d.ts.map +1 -0
- package/dist/request-example/builder/body/encode-multipart-body.js +29 -0
- package/dist/request-example/builder/body/get-request-body-example.d.ts +1 -1
- package/dist/request-example/builder/body/get-selected-body-content-type.d.ts +1 -1
- package/dist/request-example/builder/body/schema-value-coercion.d.ts +1 -1
- package/dist/request-example/builder/body/schema-value-coercion.js +1 -1
- package/dist/request-example/builder/body/serialize-form-property.d.ts +1 -1
- package/dist/request-example/builder/body/serialize-multipart-array.d.ts +16 -0
- package/dist/request-example/builder/body/serialize-multipart-array.d.ts.map +1 -0
- package/dist/request-example/builder/body/serialize-multipart-array.js +37 -0
- package/dist/request-example/builder/build-request.d.ts.map +1 -1
- package/dist/request-example/builder/build-request.js +14 -8
- package/dist/request-example/builder/header/build-request-parameters.d.ts +1 -1
- package/dist/request-example/builder/header/build-request-parameters.d.ts.map +1 -1
- package/dist/request-example/builder/header/build-request-parameters.js +7 -1
- package/dist/request-example/builder/header/de-serialize-parameter.d.ts +1 -1
- package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
- package/dist/request-example/builder/header/de-serialize-parameter.js +2 -1
- package/dist/request-example/builder/header/is-param-disabled.d.ts +1 -1
- package/dist/request-example/builder/header/serialize-parameter.d.ts.map +1 -1
- package/dist/request-example/builder/header/serialize-parameter.js +13 -14
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -1
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-example-from-schema.js +255 -20
- package/dist/request-example/builder/helpers/get-example.d.ts +1 -1
- package/dist/request-example/builder/helpers/get-example.js +2 -2
- package/dist/request-example/builder/helpers/get-resolved-url.d.ts +1 -1
- package/dist/request-example/builder/helpers/get-server-variables.d.ts +1 -1
- package/dist/request-example/builder/index.d.ts +1 -0
- package/dist/request-example/builder/index.d.ts.map +1 -1
- package/dist/request-example/builder/index.js +1 -0
- package/dist/request-example/builder/request-factory.d.ts +2 -2
- package/dist/request-example/builder/security/broker-scheme-types.d.ts.map +1 -1
- package/dist/request-example/builder/security/broker-scheme-types.js +2 -2
- package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
- package/dist/request-example/builder/security/build-request-security.js +3 -4
- package/dist/request-example/builder/security/secret-types.d.ts +13 -4
- package/dist/request-example/builder/security/secret-types.d.ts.map +1 -1
- package/dist/request-example/context/get-request-example-context.d.ts +3 -3
- package/dist/request-example/context/get-request-example-context.js +1 -1
- package/dist/request-example/context/headers.d.ts +1 -1
- package/dist/request-example/context/headers.js +1 -1
- package/dist/request-example/context/helpers/combine-params.d.ts +1 -1
- package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +16 -3
- package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
- package/dist/request-example/context/security/extract-security-scheme-secrets.js +21 -19
- package/dist/request-example/context/security/get-security-requirements.d.ts +2 -2
- package/dist/request-example/context/security/get-security-schemes.d.ts +1 -1
- package/dist/request-example/context/security/get-selected-security.d.ts +1 -1
- package/dist/request-example/context/security/is-auth-optional.d.ts +1 -1
- package/dist/request-example/context/security/merge-security.d.ts +3 -3
- package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
- package/dist/request-example/context/security/merge-security.js +40 -11
- package/dist/request-example/context/servers.d.ts +2 -2
- package/dist/request-example/functions.d.ts.map +1 -1
- package/dist/request-example/index.d.ts +1 -1
- package/dist/request-example/index.d.ts.map +1 -1
- package/dist/request-example/index.js +1 -1
- package/dist/resolve.d.ts +1 -1
- package/dist/resolve.js +1 -1
- package/dist/schemas/navigation.d.ts +4 -4
- package/dist/schemas/navigation.js +1 -1
- package/dist/schemas/reference-config/index.d.ts +128 -40
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +129 -41
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +1 -1
- package/dist/schemas/type-guards.d.ts +1 -1
- package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.1/openapi/index.js +11 -1
- package/dist/schemas/v3.1/strict/callback.d.ts +1 -1
- package/dist/schemas/v3.1/strict/components.d.ts +11 -11
- package/dist/schemas/v3.1/strict/encoding.d.ts +1 -1
- package/dist/schemas/v3.1/strict/header.d.ts +2 -2
- package/dist/schemas/v3.1/strict/media-type.d.ts +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1470 -1260
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.d.ts +3 -3
- package/dist/schemas/v3.1/strict/parameter.d.ts +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +10 -10
- package/dist/schemas/v3.1/strict/paths.d.ts +1 -1
- package/dist/schemas/v3.1/strict/reference.d.ts +14 -2
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js +13 -1
- package/dist/schemas/v3.1/strict/response.d.ts +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +13 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +11 -1
- package/dist/schemas/v3.2/openapi/index.d.ts +2 -0
- package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +16 -1
- package/dist/schemas/v3.2/strict/callback.d.ts +1 -1
- package/dist/schemas/v3.2/strict/components.d.ts +12 -12
- package/dist/schemas/v3.2/strict/encoding.d.ts +1 -1
- package/dist/schemas/v3.2/strict/header.d.ts +2 -2
- package/dist/schemas/v3.2/strict/media-type.d.ts +3 -3
- package/dist/schemas/v3.2/strict/oauth-flow.d.ts +23 -1
- package/dist/schemas/v3.2/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/oauth-flow.js +6 -1
- package/dist/schemas/v3.2/strict/oauthflows.d.ts +20 -0
- package/dist/schemas/v3.2/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +2839 -1541
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/openapi-document.js +2 -1
- package/dist/schemas/v3.2/strict/operation.d.ts +3 -3
- package/dist/schemas/v3.2/strict/parameter.d.ts +2 -2
- package/dist/schemas/v3.2/strict/path-item.d.ts +12 -12
- package/dist/schemas/v3.2/strict/paths.d.ts +1 -1
- package/dist/schemas/v3.2/strict/reference.d.ts +14 -2
- package/dist/schemas/v3.2/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/reference.js +13 -1
- package/dist/schemas/v3.2/strict/response.d.ts +2 -2
- package/dist/schemas/v3.2/strict/responses.d.ts +1 -1
- package/dist/schemas/v3.2/strict/security-scheme.d.ts +31 -8
- package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/security-scheme.js +17 -4
- package/dist/schemas/workspace-specification/index.d.ts +1 -1
- package/dist/schemas/workspace.d.ts +1 -1
- package/dist/server.d.ts +28 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +41 -27
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAuBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAQ1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,WAAW,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { Type } from '@scalar/typebox';
|
|
|
2
2
|
import { compose } from '../../schemas/compose.js';
|
|
3
3
|
import { XScalarCredentialsLocationSchema } from '../../schemas/extensions/security/x-scalar-credentials-location.js';
|
|
4
4
|
import { XScalarSecretClientCertificateSchema, XScalarSecretClientIdSchema, XScalarSecretClientSecretSchema, XScalarSecretHTTPSchema, XScalarSecretPrivateKeySchema, XScalarSecretRedirectUriSchema, XScalarSecretRefreshTokenSchema, XScalarSecretServiceNameSchema, XScalarSecretTokenSchema, } from '../../schemas/extensions/security/x-scalar-security-secrets.js';
|
|
5
|
-
import { OAuthFlowAuthorizationCodeSchema, OAuthFlowClientCredentialsSchema, OAuthFlowImplicitSchema, OAuthFlowPasswordSchema, } from '../../schemas/v3.
|
|
6
|
-
import { SecurityRequirementObjectSchema } from '../../schemas/v3.
|
|
5
|
+
import { OAuthFlowAuthorizationCodeSchema, OAuthFlowClientCredentialsSchema, OAuthFlowImplicitSchema, OAuthFlowPasswordSchema, } from '../../schemas/v3.2/strict/oauth-flow.js';
|
|
6
|
+
import { SecurityRequirementObjectSchema } from '../../schemas/v3.2/strict/openapi-document.js';
|
|
7
7
|
const SecretsApiKeySchema = compose(Type.Object({
|
|
8
8
|
type: Type.Literal('apiKey'),
|
|
9
9
|
}), XScalarSecretTokenSchema);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { PartialDeep } from 'type-fest';
|
|
3
3
|
import type { SecretsAuth } from '../../entities/auth/schema.js';
|
|
4
|
-
import type { OAuthFlowsObject, SecurityRequirementObject, SecuritySchemeObject } from '../../schemas/v3.
|
|
5
|
-
import type { ApiKeyObject, HttpObject, OAuth2Object, OpenIdConnectObject } from '../../schemas/v3.
|
|
4
|
+
import type { OAuthFlowsObject, SecurityRequirementObject, SecuritySchemeObject } from '../../schemas/v3.2/strict/openapi-document.js';
|
|
5
|
+
import type { ApiKeyObject, HttpObject, OAuth2Object, OpenIdConnectObject } from '../../schemas/v3.2/strict/security-scheme.js';
|
|
6
6
|
/**
|
|
7
7
|
* AuthMeta defines the meta information needed to specify whether the authentication operation
|
|
8
8
|
* is being performed at the document level (entire API), or for a specific operation (specific path and method).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PartialDeep } from 'type-fest';
|
|
2
|
-
import type { InfoObject } from '../../schemas/v3.
|
|
2
|
+
import type { InfoObject } from '../../schemas/v3.2/strict/info.js';
|
|
3
3
|
/** Event definitions for the openapi document */
|
|
4
4
|
export type DocumentEvents = {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { OperationObject, ParameterObject } from '../../schemas/v3.
|
|
2
|
+
import type { OperationObject, ParameterObject } from '../../schemas/v3.2/strict/openapi-document.js';
|
|
3
3
|
/**
|
|
4
4
|
* Describes the minimal identity for an operation in the workspace document.
|
|
5
5
|
* It is used by mutators to find the target operation under `paths`.
|
|
@@ -256,8 +256,9 @@ export type OperationEvents = {
|
|
|
256
256
|
/** The new value for the request body example */
|
|
257
257
|
payload: {
|
|
258
258
|
name: string;
|
|
259
|
-
value: string | File;
|
|
259
|
+
value: string | File | unknown[] | undefined;
|
|
260
260
|
isDisabled: boolean;
|
|
261
|
+
isArray?: boolean;
|
|
261
262
|
}[];
|
|
262
263
|
/** The content type of the request body */
|
|
263
264
|
contentType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE9F;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAK5B;;;OAGG;IACH,+BAA+B,EAAE,SAAS,CAAA;IAE1C,qCAAqC;IACrC,0BAA0B,EAAE,SAAS,CAAA;IAMrC;;;OAGG;IACH,4BAA4B,EAAE;QAC5B,8DAA8D;QAC9D,YAAY,EAAE,MAAM,CAAA;QACpB,4CAA4C;QAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,0EAA0E;QAC1E,IAAI,EAAE,MAAM,CAAA;QACZ,wCAAwC;QACxC,MAAM,EAAE,UAAU,CAAA;QAClB,qCAAqC;QACrC,SAAS,EAAE,eAAe,CAAA;QAC1B,yDAAyD;QACzD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;KACtC,CAAA;IAED;;;;OAIG;IACH,uBAAuB,EAAE;QACvB,gDAAgD;QAChD,OAAO,EAAE,OAAO,C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AAI,EAAE,aAAa,CAAA;KACpB,CAAA;IAKD;;;OAGG;IACH,0CAA0C,EAAE;QAC1C,OAAO,EAAE;YACP,gDAAgD;YAChD,WAAW,EAAE,MAAM,CAAA;SACpB,CAAA;QACD,uFAAuF;QACvF,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IAED;;;OAGG;IACH,oCAAoC,EAAE;QACpC,iDAAiD;QACjD,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QAClC,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAA;QACnB,6FAA6F;QAC7F,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IAED;;;;OAIG;IACH,wCAAwC,EAAE;QACxC,iDAAiD;QACjD,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE9F;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAK5B;;;OAGG;IACH,+BAA+B,EAAE,SAAS,CAAA;IAE1C,qCAAqC;IACrC,0BAA0B,EAAE,SAAS,CAAA;IAMrC;;;OAGG;IACH,4BAA4B,EAAE;QAC5B,8DAA8D;Q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;QACnB,8CAA8C;QAC9C,KAAK,EAAE,MAAM,CAAA;QACb,wDAAwD;QACxD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAA;KAChD,CAAA;CACF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { ServerObject } from '../../schemas/v3.
|
|
2
|
+
import type { ServerObject } from '../../schemas/v3.2/strict/openapi-document.js';
|
|
3
3
|
export type ServerMeta = {
|
|
4
4
|
type: 'document';
|
|
5
5
|
} | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import type { AvailableClients } from '@scalar/snippetz';
|
|
3
3
|
import type { Simplify } from 'type-fest';
|
|
4
|
-
import type { ServerObject } from '../schemas/v3.
|
|
4
|
+
import type { ServerObject } from '../schemas/v3.2/strict/openapi-document.js';
|
|
5
5
|
/**
|
|
6
6
|
* Event definitions for scalar blocks
|
|
7
7
|
*
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a JSON writer rooted at the real output directory. The caller must keep this
|
|
3
|
+
* directory and its ancestors safe from concurrent changes by untrusted processes.
|
|
4
|
+
*/
|
|
5
|
+
export declare const createChunkWriter: (directory: string) => Promise<(segments: string[], value: unknown) => Promise<void>>;
|
|
6
|
+
//# sourceMappingURL=create-chunk-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chunk-writer.d.ts","sourceRoot":"","sources":["../../src/helpers/create-chunk-writer.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,WAAW,MAAM,KAChB,OAAO,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAwC/D,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import fs from 'node:fs/promises';
|
|
2
|
+
import { dirname, isAbsolute, relative, resolve, sep } from 'node:path';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a JSON writer rooted at the real output directory. The caller must keep this
|
|
5
|
+
* directory and its ancestors safe from concurrent changes by untrusted processes.
|
|
6
|
+
*/
|
|
7
|
+
export const createChunkWriter = async (directory) => {
|
|
8
|
+
await fs.mkdir(directory, { recursive: true });
|
|
9
|
+
// Configured output roots may intentionally be symlinks, as may system directories such as /tmp.
|
|
10
|
+
const root = await fs.realpath(directory);
|
|
11
|
+
return async (segments, value) => {
|
|
12
|
+
const filename = resolve(root, ...segments);
|
|
13
|
+
const relativePath = relative(root, filename);
|
|
14
|
+
if (!relativePath || isAbsolute(relativePath) || relativePath === '..' || relativePath.startsWith(`..${sep}`)) {
|
|
15
|
+
throw new Error('Chunk path must stay inside the output directory');
|
|
16
|
+
}
|
|
17
|
+
// Check each ancestor before creating its children: recursive mkdir would follow a symlink
|
|
18
|
+
// and could create directories outside the root before we had a chance to validate it.
|
|
19
|
+
let parent = root;
|
|
20
|
+
const parentPath = relative(root, dirname(filename));
|
|
21
|
+
for (const segment of parentPath ? parentPath.split(sep) : []) {
|
|
22
|
+
parent = resolve(parent, segment);
|
|
23
|
+
await fs.mkdir(parent).catch((error) => {
|
|
24
|
+
if (!(error instanceof Error && 'code' in error && error.code === 'EEXIST')) {
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const stat = await fs.lstat(parent);
|
|
29
|
+
if (!stat.isDirectory() || stat.isSymbolicLink()) {
|
|
30
|
+
throw new Error('Chunk directories must be real directories, not symbolic links');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const stat = await fs.lstat(filename).catch((error) => {
|
|
34
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT') {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
throw error;
|
|
38
|
+
});
|
|
39
|
+
if (stat && (!stat.isFile() || stat.isSymbolicLink())) {
|
|
40
|
+
throw new Error('Chunk destinations must be regular files, not symbolic links');
|
|
41
|
+
}
|
|
42
|
+
await fs.writeFile(filename, JSON.stringify(value));
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaObject } from '../schemas/v3.
|
|
1
|
+
import type { SchemaObject } from '../schemas/v3.2/strict/schema.js';
|
|
2
2
|
/**
|
|
3
3
|
* The dynamic scope, ordered outermost-first.
|
|
4
4
|
*
|
|
@@ -11,7 +11,18 @@ export declare const isDynamicRef: (schema: unknown) => schema is SchemaObject &
|
|
|
11
11
|
$dynamicRef: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const collectDynamicAnchors: (resource: SchemaObject) => Map<string, SchemaObject>;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Append a schema resource to the dynamic scope when it could hold a `$dynamicAnchor`.
|
|
16
|
+
*
|
|
17
|
+
* A schema that carries the binding inline — its own `$dynamicAnchor`, or the `$id`/`$defs` binding
|
|
18
|
+
* written next to a `$ref` (how `Paginated<Planet>` is expressed) — enters the scope directly. A bare
|
|
19
|
+
* `$ref` to a *named* binding resource (e.g. `$ref: '#/components/schemas/PaginatedUserResponse'`)
|
|
20
|
+
* hides that resource's `$id`/`$defs` behind the ref, so the anchor is invisible here; follow the ref
|
|
21
|
+
* to reach the resource. Ordinary `$ref`s resolve to a schema without an anchor and are still skipped;
|
|
22
|
+
* an unresolved `$ref` resolves to `undefined` and is skipped too.
|
|
23
|
+
*
|
|
24
|
+
* See https://github.com/scalar/scalar/issues/9883.
|
|
25
|
+
*/
|
|
15
26
|
export declare const pushDynamicScope: (scope: DynamicScope, schema: SchemaObject) => DynamicScope;
|
|
16
27
|
/**
|
|
17
28
|
* Resolve a `$dynamicRef` fragment against the dynamic scope.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/dynamic-ref.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamic-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/dynamic-ref.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAiBhE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,MAAM,IAAI,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CACuB,CAAA;AAqBpH,eAAO,MAAM,qBAAqB,GAAI,UAAU,YAAY,KAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAiCtF,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,YAAY,EAAE,QAAQ,YAAY,KAAG,YAG5E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,OAAO,YAAY,KAAG,YAAY,GAAG,SAe1F,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
1
2
|
import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
|
|
2
3
|
import { unpackProxyObject } from '../helpers/unpack-proxy.js';
|
|
3
4
|
/** Narrow a schema to one that carries a `$dynamicRef`. */
|
|
4
|
-
export const isDynamicRef = (schema) => typeof schema === 'object' &&
|
|
5
|
-
schema !== null &&
|
|
6
|
-
'$dynamicRef' in schema &&
|
|
7
|
-
typeof schema.$dynamicRef === 'string';
|
|
5
|
+
export const isDynamicRef = (schema) => typeof schema === 'object' && schema !== null && '$dynamicRef' in schema && typeof schema.$dynamicRef === 'string';
|
|
8
6
|
/**
|
|
9
7
|
* Whether a schema introduces something a `$dynamicRef` could later bind to.
|
|
10
8
|
*
|
|
@@ -40,7 +38,8 @@ export const collectDynamicAnchors = (resource) => {
|
|
|
40
38
|
}
|
|
41
39
|
};
|
|
42
40
|
add(resource);
|
|
43
|
-
const
|
|
41
|
+
const schemaWithDefs = resource;
|
|
42
|
+
const defs = schemaWithDefs.$defs;
|
|
44
43
|
if (defs && typeof defs === 'object') {
|
|
45
44
|
for (const key of Object.keys(defs)) {
|
|
46
45
|
add(defs[key]);
|
|
@@ -49,8 +48,22 @@ export const collectDynamicAnchors = (resource) => {
|
|
|
49
48
|
anchorCache.set(cacheTarget, anchors);
|
|
50
49
|
return anchors;
|
|
51
50
|
};
|
|
52
|
-
/**
|
|
53
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Append a schema resource to the dynamic scope when it could hold a `$dynamicAnchor`.
|
|
53
|
+
*
|
|
54
|
+
* A schema that carries the binding inline — its own `$dynamicAnchor`, or the `$id`/`$defs` binding
|
|
55
|
+
* written next to a `$ref` (how `Paginated<Planet>` is expressed) — enters the scope directly. A bare
|
|
56
|
+
* `$ref` to a *named* binding resource (e.g. `$ref: '#/components/schemas/PaginatedUserResponse'`)
|
|
57
|
+
* hides that resource's `$id`/`$defs` behind the ref, so the anchor is invisible here; follow the ref
|
|
58
|
+
* to reach the resource. Ordinary `$ref`s resolve to a schema without an anchor and are still skipped;
|
|
59
|
+
* an unresolved `$ref` resolves to `undefined` and is skipped too.
|
|
60
|
+
*
|
|
61
|
+
* See https://github.com/scalar/scalar/issues/9883.
|
|
62
|
+
*/
|
|
63
|
+
export const pushDynamicScope = (scope, schema) => {
|
|
64
|
+
const resource = carriesDynamicAnchor(schema) ? schema : getResolvedRef(schema);
|
|
65
|
+
return isObject(resource) && carriesDynamicAnchor(resource) ? [...scope, resource] : scope;
|
|
66
|
+
};
|
|
54
67
|
/**
|
|
55
68
|
* Resolve a `$dynamicRef` fragment against the dynamic scope.
|
|
56
69
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode-chunk-name.d.ts","sourceRoot":"","sources":["../../src/helpers/encode-chunk-name.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAU9C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { escapeJsonPointer } from '@scalar/json-magic/helpers/escape-json-pointer';
|
|
2
|
+
/** Encodes a chunk name as one portable filename and URL segment. */
|
|
3
|
+
export const encodeChunkName = (name) => {
|
|
4
|
+
// JSON Pointer escaping preserves existing names and reserves ~x for filesystem escapes.
|
|
5
|
+
const escaped = escapeJsonPointer(name).replace(/[^a-zA-Z0-9_.~{}-]/gu, (character) => `~x${character.codePointAt(0)?.toString(16)}~`);
|
|
6
|
+
const portable = escaped.replace(/\.+$/, (dots) => dots.replaceAll('.', '~x2e~'));
|
|
7
|
+
// Windows device names remain reserved even when followed by a file extension.
|
|
8
|
+
return /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(portable) || portable === '' ? `~x~${portable}` : portable;
|
|
9
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import { type NodeInput } from '../helpers/get-resolved-ref.js';
|
|
3
|
-
import type { OperationObject } from '../schemas/v3.
|
|
4
|
-
import type { PathItemObject } from '../schemas/v3.
|
|
3
|
+
import type { OperationObject } from '../schemas/v3.2/strict/operation.js';
|
|
4
|
+
import type { PathItemObject } from '../schemas/v3.2/strict/path-item.js';
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a path item (or webhook path item), merging sibling properties alongside `$ref`.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Dereference } from '@scalar/workspace-store/helpers/get-resolved-ref';
|
|
2
2
|
type RefNode<Node> = Partial<Node> & {
|
|
3
3
|
$ref: string;
|
|
4
|
-
'$ref-value'
|
|
4
|
+
'$ref-value'?: Node | RefNode<Node>;
|
|
5
5
|
};
|
|
6
6
|
type NodeInput<Node> = Node | RefNode<Node>;
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-ref-deep.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref-deep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kDAAkD,CAAA;
|
|
1
|
+
{"version":3,"file":"get-resolved-ref-deep.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref-deep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kDAAkD,CAAA;AAMnG,KAAK,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAA;AAC1F,KAAK,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3C;;;;GAIG;AACH,KAAK,eAAe,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,GAC9C,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAC5B,eAAe,CAAC,CAAC,CAAC,EAAE,GACpB,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5G,CAAC,GACL,WAAW,CAAC,CAAC,CAAC,SAAS,MAAM,GAC3B;KACG,CAAC,IAAI,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,GAC/D,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,GACjD,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvC,GACD,WAAW,CAAC,CAAC,CAAC,CAAA;AAEpB;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,KAAG,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CA6D/F,CAAA"}
|
|
@@ -14,7 +14,12 @@ export declare const mergeSiblingReferences: <Node>(node: RefNode<Node>) => Node
|
|
|
14
14
|
* If the node contains a $ref, applies the provided transform (default: returns '$ref-value').
|
|
15
15
|
* Otherwise, returns the node as-is.
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare function getResolvedRef<Node, Result>(node: NodeInput<Node>, transform: (node: RefNode<Node>) => Result): Node | Result;
|
|
18
|
+
export declare function getResolvedRef<Node>(node: {
|
|
19
|
+
$ref: string;
|
|
20
|
+
'$ref-value': Node;
|
|
21
|
+
}): Node;
|
|
22
|
+
export declare function getResolvedRef<Node>(node: NodeInput<Node>): Node | undefined;
|
|
18
23
|
/**
|
|
19
24
|
* Type helper we can use if we have getResolvedRef higher in the stack
|
|
20
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AACjF,MAAM,MAAM,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"get-resolved-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/get-resolved-ref.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AACjF,MAAM,MAAM,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAOlD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAG,IAalE,CAAA;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EACrB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,MAAM,GACzC,IAAI,GAAG,MAAM,CAAA;AAChB,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAAA;AACtF,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;AAW7E;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
2
|
const defaultTransform = (node) => {
|
|
3
|
-
//
|
|
4
|
-
// type it as optional so unresolved `{ $ref }` objects pass through coercion untouched, but callers
|
|
5
|
-
// of `getResolvedRef` operate on resolved documents where the value is present.
|
|
3
|
+
// Unresolved references have no value; callers must account for that state.
|
|
6
4
|
return node['$ref-value'];
|
|
7
5
|
};
|
|
8
6
|
/**
|
|
@@ -22,14 +20,9 @@ export const mergeSiblingReferences = (node) => {
|
|
|
22
20
|
}
|
|
23
21
|
return { ...value, ...rest };
|
|
24
22
|
};
|
|
25
|
-
|
|
26
|
-
* Resolves a node that may be a $ref object to its actual value.
|
|
27
|
-
* If the node contains a $ref, applies the provided transform (default: returns '$ref-value').
|
|
28
|
-
* Otherwise, returns the node as-is.
|
|
29
|
-
*/
|
|
30
|
-
export const getResolvedRef = (node, transform = defaultTransform) => {
|
|
23
|
+
export function getResolvedRef(node, transform = defaultTransform) {
|
|
31
24
|
if (typeof node === 'object' && node !== null && '$ref' in node) {
|
|
32
25
|
return transform(node);
|
|
33
26
|
}
|
|
34
27
|
return node;
|
|
35
|
-
}
|
|
28
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SecurityRequirementObject } from '../schemas/v3.
|
|
1
|
+
import type { SecurityRequirementObject } from '../schemas/v3.2/strict/openapi-document.js';
|
|
2
2
|
/** Type guard to determine if a security requirement is non-optional */
|
|
3
3
|
export declare const isNonOptionalSecurityRequirement: (securityRequirement: SecurityRequirementObject | undefined) => securityRequirement is Record<string, string[]>;
|
|
4
4
|
//# sourceMappingURL=is-non-optional-security-requirement.d.ts.map
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
* const target = { age: 30 }
|
|
28
28
|
* mergeObjects(target, obj) // Safely merges without infinite recursion
|
|
29
29
|
*/
|
|
30
|
-
export declare const mergeObjects:
|
|
30
|
+
export declare const mergeObjects: (a: Record<string, unknown>, b: Record<string, unknown>,
|
|
31
31
|
/**
|
|
32
32
|
* By default we overwrite array indexes, our store is built on this assumption when coercing the document
|
|
33
33
|
* Alternatively we may want to prevent this behaviour when merging with defaults and replace the whole array instead
|
|
34
34
|
*/
|
|
35
|
-
replaceArrays?: boolean, cache?: Set<unknown>) =>
|
|
35
|
+
replaceArrays?: boolean, cache?: Set<unknown>) => Record<string, unknown>;
|
|
36
36
|
//# sourceMappingURL=merge-object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/helpers/merge-object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/helpers/merge-object.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,YAAY,GACvB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;AAC1B;;;GAGG;AACH,uBAAqB,EACrB,QAAO,GAAG,CAAC,OAAO,CAAa,KAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAsCxB,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isObjectLike } from '@scalar/helpers/object/is-object';
|
|
1
2
|
import { getRaw } from '@scalar/json-magic/magic-proxy';
|
|
2
3
|
/**
|
|
3
4
|
* Deep merges two objects, combining their properties recursively.
|
|
@@ -43,11 +44,7 @@ replaceArrays = false, cache = new Set()) => {
|
|
|
43
44
|
const bValue = b[key];
|
|
44
45
|
/** Replace whole array instead of replacing each index */
|
|
45
46
|
const shouldReplaceArrays = replaceArrays && (Array.isArray(aValue) || Array.isArray(bValue));
|
|
46
|
-
if (
|
|
47
|
-
aValue !== null &&
|
|
48
|
-
typeof bValue === 'object' &&
|
|
49
|
-
bValue !== null &&
|
|
50
|
-
!shouldReplaceArrays) {
|
|
47
|
+
if (isObjectLike(aValue) && isObjectLike(bValue) && !shouldReplaceArrays) {
|
|
51
48
|
const rawA = getRaw(aValue);
|
|
52
49
|
const rawB = getRaw(bValue);
|
|
53
50
|
// Check for circular references before recursive merge
|
package/dist/mutators/auth.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WorkspaceStore } from '../client.js';
|
|
2
2
|
import type { AuthEvents } from '../events/definitions/auth.js';
|
|
3
3
|
import type { WorkspaceDocument } from '../schemas.js';
|
|
4
|
-
import type { SecuritySchemeObject } from '../schemas/v3.
|
|
4
|
+
import type { SecuritySchemeObject } from '../schemas/v3.2/strict/security-scheme.js';
|
|
5
5
|
/**
|
|
6
6
|
* Updates the selected security schemes for either the entire document or a specific operation.
|
|
7
7
|
* - Adds newly created security schemes (if any) to the workspace document's components.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/mutators/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAQ3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAGlD,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAuC/F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,6BAA6B,GACxC,OAAO,cAAc,GAAG,IAAI,EAC5B,UAAU,iBAAiB,GAAG,IAAI,EAClC,4CAA4C,UAAU,CAAC,uCAAuC,CAAC,kBAgFhG,CAAA;AAwBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,iBAAiB,GAAG,IAAI,EAClC,mBAAmB,UAAU,CAAC,6BAA6B,CAAC,qCAwB7D,CAAA;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,cAAc,GAAG,IAAI,EAC5B,UAAU,iBAAiB,GAAG,IAAI,EAClC,iBAAiB,UAAU,CAAC,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C,6BAA6B,CAAC;2CAElC,UAAU,CAAC,qCAAqC,CAAC;0CAElD,UAAU,CAAC,oCAAoC,CAAC;qCAErD,UAAU,CAAC,0BAA0B,CAAC;oCAEvC,UAAU,CAAC,6BAA6B,CAAC;2BAElD,UAAU,CAAC,oBAAoB,CAAC;2BAChC,UAAU,CAAC,oBAAoB,CAAC;oCACvB,UAAU,CAAC,6BAA6B,CAAC;CAG5E,CAAA"}
|
package/dist/mutators/auth.js
CHANGED
|
@@ -25,11 +25,11 @@ const getAuthDocumentName = (document) => {
|
|
|
25
25
|
*/
|
|
26
26
|
const getDocumentSecuritySchemes = (document) => {
|
|
27
27
|
if (isOpenApiDocument(document)) {
|
|
28
|
-
return
|
|
28
|
+
return document.components?.securitySchemes ?? {};
|
|
29
29
|
}
|
|
30
30
|
if (isAsyncApiDocument(document)) {
|
|
31
31
|
const components = document.components ? getResolvedRef(document.components) : undefined;
|
|
32
|
-
return
|
|
32
|
+
return components?.securitySchemes ?? {};
|
|
33
33
|
}
|
|
34
34
|
return {};
|
|
35
35
|
};
|
|
@@ -102,7 +102,7 @@ export const updateSelectedSecuritySchemes = async (store, document, { selectedR
|
|
|
102
102
|
[uniqueSchemeName]: [],
|
|
103
103
|
};
|
|
104
104
|
}));
|
|
105
|
-
createdSchemes.push(...createdSecurityRequirements.filter(
|
|
105
|
+
createdSchemes.push(...createdSecurityRequirements.filter((requirement) => requirement !== undefined));
|
|
106
106
|
}
|
|
107
107
|
const target = getTarget();
|
|
108
108
|
const newSelectedSecuritySchemes = [...selectedRequirements, ...createdSchemes];
|
|
@@ -193,7 +193,10 @@ const updateSecuritySchemeSecrets = (store, document, { payload, name, overwrite
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
const auth = store?.auth.getAuthSecrets(documentName, name);
|
|
196
|
-
const result =
|
|
196
|
+
const result = auth
|
|
197
|
+
? unpackProxyObject(auth, { depth: 1 })
|
|
198
|
+
: { ...payload };
|
|
199
|
+
mergeObjects(result, payload);
|
|
197
200
|
store?.auth.setAuthSecrets(documentName, name, result);
|
|
198
201
|
};
|
|
199
202
|
const clearSecuritySchemeSecrets = (store, document, { name }) => {
|
|
@@ -559,6 +562,8 @@ export const deleteSecurityScheme = (store, document, { names }) => {
|
|
|
559
562
|
forEachPathItemOperation(pathItemRef, (method, operationRef) => {
|
|
560
563
|
// Get mutable reference for the operation (could resolve $ref proxies)
|
|
561
564
|
const resolvedOperation = getResolvedRef(operationRef);
|
|
565
|
+
if (!resolvedOperation)
|
|
566
|
+
return;
|
|
562
567
|
// Remove from operation-level security array
|
|
563
568
|
if ('security' in resolvedOperation && resolvedOperation['security']) {
|
|
564
569
|
resolvedOperation['security'] = filterSecuritySchemes(resolvedOperation['security']);
|
package/dist/mutators/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
|
|
|
66
66
|
auth: {
|
|
67
67
|
updateSelectedSecuritySchemes: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:selected-security-schemes"]) => Promise<void>;
|
|
68
68
|
clearSelectedSecuritySchemes: (payload: import("../events/definitions/auth.js").AuthEvents["auth:clear:selected-security-schemes"]) => void;
|
|
69
|
-
updateSecurityScheme: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme"]) => import("../schemas/v3.
|
|
69
|
+
updateSecurityScheme: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme"]) => import("../schemas/v3.2/strict/security-scheme.js").SecuritySchemeObject | undefined;
|
|
70
70
|
updateSecuritySchemeSecrets: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme-secrets"]) => void;
|
|
71
71
|
clearSecuritySchemeSecrets: (payload: import("../events/definitions/auth.js").AuthEvents["auth:clear:security-scheme-secrets"]) => void;
|
|
72
72
|
updateSelectedAuthTab: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:active-index"]) => void;
|
|
@@ -113,12 +113,12 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
|
|
|
113
113
|
reloadOperationHistory: (payload: import("../events/index.js").OperationEvents["operation:reload:history"]) => void;
|
|
114
114
|
};
|
|
115
115
|
server: {
|
|
116
|
-
initializeServers: (payload: import("../events/definitions/server.js").ServerEvents["server:initialize:servers"]) => import("../schemas/v3.
|
|
117
|
-
addServer: (payload: import("../events/definitions/server.js").ServerEvents["server:add:server"]) => import("../schemas/v3.
|
|
118
|
-
updateServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:server"]) => import("../schemas/v3.
|
|
116
|
+
initializeServers: (payload: import("../events/definitions/server.js").ServerEvents["server:initialize:servers"]) => import("../schemas/v3.2/strict/server.js").ServerObject[] | undefined;
|
|
117
|
+
addServer: (payload: import("../events/definitions/server.js").ServerEvents["server:add:server"]) => import("../schemas/v3.2/strict/server.js").ServerObject | undefined;
|
|
118
|
+
updateServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:server"]) => import("../schemas/v3.2/strict/server.js").ServerObject | undefined;
|
|
119
119
|
deleteServer: (payload: import("../events/definitions/server.js").ServerEvents["server:delete:server"]) => void;
|
|
120
120
|
clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
|
|
121
|
-
updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.
|
|
121
|
+
updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.2/strict/server-variable.js").ServerVariableObject | undefined;
|
|
122
122
|
updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
|
|
123
123
|
updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
|
|
124
124
|
updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
|
|
@@ -157,7 +157,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
|
|
|
157
157
|
auth: {
|
|
158
158
|
updateSelectedSecuritySchemes: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:selected-security-schemes"]) => Promise<void>;
|
|
159
159
|
clearSelectedSecuritySchemes: (payload: import("../events/definitions/auth.js").AuthEvents["auth:clear:selected-security-schemes"]) => void;
|
|
160
|
-
updateSecurityScheme: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme"]) => import("../schemas/v3.
|
|
160
|
+
updateSecurityScheme: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme"]) => import("../schemas/v3.2/strict/security-scheme.js").SecuritySchemeObject | undefined;
|
|
161
161
|
updateSecuritySchemeSecrets: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:security-scheme-secrets"]) => void;
|
|
162
162
|
clearSecuritySchemeSecrets: (payload: import("../events/definitions/auth.js").AuthEvents["auth:clear:security-scheme-secrets"]) => void;
|
|
163
163
|
updateSelectedAuthTab: (payload: import("../events/definitions/auth.js").AuthEvents["auth:update:active-index"]) => void;
|
|
@@ -204,12 +204,12 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
|
|
|
204
204
|
reloadOperationHistory: (payload: import("../events/index.js").OperationEvents["operation:reload:history"]) => void;
|
|
205
205
|
};
|
|
206
206
|
server: {
|
|
207
|
-
initializeServers: (payload: import("../events/definitions/server.js").ServerEvents["server:initialize:servers"]) => import("../schemas/v3.
|
|
208
|
-
addServer: (payload: import("../events/definitions/server.js").ServerEvents["server:add:server"]) => import("../schemas/v3.
|
|
209
|
-
updateServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:server"]) => import("../schemas/v3.
|
|
207
|
+
initializeServers: (payload: import("../events/definitions/server.js").ServerEvents["server:initialize:servers"]) => import("../schemas/v3.2/strict/server.js").ServerObject[] | undefined;
|
|
208
|
+
addServer: (payload: import("../events/definitions/server.js").ServerEvents["server:add:server"]) => import("../schemas/v3.2/strict/server.js").ServerObject | undefined;
|
|
209
|
+
updateServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:server"]) => import("../schemas/v3.2/strict/server.js").ServerObject | undefined;
|
|
210
210
|
deleteServer: (payload: import("../events/definitions/server.js").ServerEvents["server:delete:server"]) => void;
|
|
211
211
|
clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
|
|
212
|
-
updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.
|
|
212
|
+
updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.2/strict/server-variable.js").ServerVariableObject | undefined;
|
|
213
213
|
updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
|
|
214
214
|
updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
|
|
215
215
|
updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
|
|
@@ -17,7 +17,7 @@ const findOrCreateRequestBodyExample = (document, contentType, meta) => {
|
|
|
17
17
|
operation.requestBody = {
|
|
18
18
|
content: {},
|
|
19
19
|
};
|
|
20
|
-
requestBody =
|
|
20
|
+
requestBody = operation.requestBody;
|
|
21
21
|
}
|
|
22
22
|
// Ensure that the example exists
|
|
23
23
|
requestBody.content[contentType] ||= {};
|
|
@@ -53,7 +53,7 @@ export const updateOperationRequestBodyContentType = (document, { meta, payload
|
|
|
53
53
|
operation.requestBody = {
|
|
54
54
|
content: {},
|
|
55
55
|
};
|
|
56
|
-
requestBody =
|
|
56
|
+
requestBody = operation.requestBody;
|
|
57
57
|
}
|
|
58
58
|
if (!requestBody['x-scalar-selected-content-type']) {
|
|
59
59
|
requestBody['x-scalar-selected-content-type'] = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-request-to-har.d.ts","sourceRoot":"","sources":["../../../../src/mutators/operation/helpers/fetch-request-to-har.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAE7E,KAAK,sBAAsB,GAAG;IAC5B,2EAA2E;IAC3E,cAAc,EAAE,cAAc,CAAA;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,GAAU,8DAKrC,sBAAsB,KAAG,OAAO,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"fetch-request-to-har.d.ts","sourceRoot":"","sources":["../../../../src/mutators/operation/helpers/fetch-request-to-har.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAE7E,KAAK,sBAAsB,GAAG;IAC5B,2EAA2E;IAC3E,cAAc,EAAE,cAAc,CAAA;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iBAAiB,GAAU,8DAKrC,sBAAsB,KAAG,OAAO,CAAC,UAAU,CA6D7C,CAAA"}
|