@scalar/workspace-store 0.69.3 → 0.71.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 +58 -0
- package/dist/channel-example/build-connection-url.d.ts +2 -2
- package/dist/channel-example/build-connection-url.d.ts.map +1 -1
- package/dist/channel-example/dedupe-requirements.d.ts.map +1 -1
- package/dist/channel-example/get-all-channel-messages.d.ts.map +1 -1
- package/dist/channel-example/get-async-api-protocols.d.ts +1 -1
- package/dist/channel-example/get-async-api-protocols.d.ts.map +1 -1
- package/dist/channel-example/get-asyncapi-security-requirements.d.ts.map +1 -1
- package/dist/channel-example/get-channel-connection-context.d.ts.map +1 -1
- package/dist/channel-example/get-channel-connection-security.d.ts.map +1 -1
- package/dist/channel-example/get-channel-operations.d.ts.map +1 -1
- package/dist/channel-example/get-channel-parameters.d.ts +1 -1
- package/dist/channel-example/get-channel-parameters.d.ts.map +1 -1
- package/dist/channel-example/resolve-channel.d.ts.map +1 -1
- package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -1
- package/dist/channel-example/resolve-operation-with-traits.d.ts.map +1 -1
- package/dist/channel-example/servers.d.ts.map +1 -1
- package/dist/client.d.ts +13 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +43 -5
- package/dist/entities/auth/index.d.ts.map +1 -1
- package/dist/entities/auth/schema.d.ts +155 -5
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/entities/history/index.d.ts.map +1 -1
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +9 -1
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/helpers/asyncapi-chunk-groups.d.ts.map +1 -1
- package/dist/helpers/asyncapi-model-chunk-reference.d.ts.map +1 -1
- package/dist/helpers/auth-secret-fields.d.ts.map +1 -1
- package/dist/helpers/chunk-index.d.ts +2 -2
- package/dist/helpers/chunk-index.d.ts.map +1 -1
- package/dist/helpers/chunk-index.js +11 -7
- package/dist/helpers/create-chunk-writer.d.ts.map +1 -1
- package/dist/helpers/deep-clone.d.ts.map +1 -1
- package/dist/helpers/detect-changes-proxy.d.ts.map +1 -1
- package/dist/helpers/document-revision.d.ts.map +1 -1
- package/dist/helpers/dynamic-ref.d.ts.map +1 -1
- package/dist/helpers/encode-chunk-name.d.ts.map +1 -1
- package/dist/helpers/encode-path-parameter.d.ts +1 -1
- package/dist/helpers/encode-path-parameter.d.ts.map +1 -1
- package/dist/helpers/external-examples.d.ts.map +1 -1
- package/dist/helpers/for-each-path-item-operation.d.ts.map +1 -1
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/get-async-api-schema-view.d.ts.map +1 -1
- package/dist/helpers/get-boolean-schema.d.ts.map +1 -1
- package/dist/helpers/get-example-value.d.ts.map +1 -1
- package/dist/helpers/get-fetch.d.ts +1 -1
- package/dist/helpers/get-fetch.d.ts.map +1 -1
- package/dist/helpers/get-first-server.d.ts.map +1 -1
- package/dist/helpers/get-name-from-ref.d.ts.map +1 -1
- package/dist/helpers/get-parameter-example.d.ts.map +1 -1
- package/dist/helpers/get-path-entries.d.ts +3 -0
- package/dist/helpers/get-path-entries.d.ts.map +1 -0
- package/dist/helpers/get-path-entries.js +2 -0
- package/dist/helpers/get-resolved-async-api-ref.d.ts +1 -1
- package/dist/helpers/get-resolved-async-api-ref.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
- package/dist/helpers/get-tag-kind.d.ts +1 -1
- package/dist/helpers/get-tag-kind.d.ts.map +1 -1
- package/dist/helpers/is-file-schema.d.ts +4 -0
- package/dist/helpers/is-file-schema.d.ts.map +1 -0
- package/dist/helpers/is-file-schema.js +53 -0
- package/dist/helpers/is-hidden.d.ts.map +1 -1
- package/dist/helpers/is-non-optional-security-requirement.d.ts.map +1 -1
- package/dist/helpers/merge-object.d.ts.map +1 -1
- package/dist/helpers/normalize-boolean-schemas.d.ts.map +1 -1
- package/dist/helpers/operation-examples.d.ts.map +1 -1
- package/dist/helpers/overrides-proxy.d.ts.map +1 -1
- package/dist/helpers/querystring-parameter.d.ts.map +1 -1
- package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
- package/dist/helpers/resolve-form-schema.d.ts +1 -1
- package/dist/helpers/resolve-form-schema.d.ts.map +1 -1
- package/dist/helpers/resolve-form-schema.js +13 -3
- package/dist/helpers/resolve-schema-with-annotations.d.ts.map +1 -1
- package/dist/helpers/resolve-security-requirements.d.ts.map +1 -1
- package/dist/helpers/resolve-traits.d.ts.map +1 -1
- package/dist/helpers/serialize-stream-example.d.ts.map +1 -1
- package/dist/helpers/snapshot-request-bodies.d.ts +7 -0
- package/dist/helpers/snapshot-request-bodies.d.ts.map +1 -0
- package/dist/helpers/snapshot-request-bodies.js +45 -0
- package/dist/helpers/snapshot-schema.d.ts.map +1 -1
- package/dist/helpers/unpack-proxy.d.ts.map +1 -1
- package/dist/helpers/use-external-examples.d.ts.map +1 -1
- package/dist/mutators/auth.d.ts +18 -18
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +3 -2
- package/dist/mutators/cookie.d.ts +7 -4
- package/dist/mutators/cookie.d.ts.map +1 -1
- package/dist/mutators/document.d.ts +10 -10
- package/dist/mutators/document.d.ts.map +1 -1
- package/dist/mutators/environment.d.ts +16 -8
- package/dist/mutators/environment.d.ts.map +1 -1
- package/dist/mutators/helpers.d.ts.map +1 -1
- package/dist/mutators/index.d.ts +123 -121
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/operation/body.d.ts +3 -3
- package/dist/mutators/operation/body.d.ts.map +1 -1
- package/dist/mutators/operation/extensions.d.ts +1 -1
- package/dist/mutators/operation/extensions.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/fetch-request-to-har.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/fetch-response-to-har.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/fetch-response-to-har.js +9 -5
- package/dist/mutators/operation/helpers/get-parameter-position.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/har-to-operation.d.ts.map +1 -1
- package/dist/mutators/operation/helpers/sync-path-parameters.d.ts.map +1 -1
- package/dist/mutators/operation/history.d.ts +2 -2
- package/dist/mutators/operation/history.d.ts.map +1 -1
- package/dist/mutators/operation/index.d.ts +18 -17
- package/dist/mutators/operation/index.d.ts.map +1 -1
- package/dist/mutators/operation/index.js +2 -0
- package/dist/mutators/operation/operation.d.ts +7 -7
- package/dist/mutators/operation/operation.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.d.ts +4 -4
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/reset-request-body.d.ts +5 -0
- package/dist/mutators/operation/reset-request-body.d.ts.map +1 -0
- package/dist/mutators/operation/reset-request-body.js +123 -0
- package/dist/mutators/server.d.ts +18 -18
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/tabs.d.ts +16 -16
- package/dist/mutators/tabs.d.ts.map +1 -1
- package/dist/mutators/tag.d.ts +6 -6
- package/dist/mutators/tag.d.ts.map +1 -1
- package/dist/mutators/tag.js +2 -1
- package/dist/mutators/workspace.d.ts +12 -12
- package/dist/mutators/workspace.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/helpers/get-navigation-tag-names.d.ts.map +1 -1
- package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -1
- package/dist/navigation/helpers/get-operation-entries.d.ts.map +1 -1
- package/dist/navigation/helpers/get-parent-entry.d.ts +1 -1
- package/dist/navigation/helpers/get-parent-entry.d.ts.map +1 -1
- package/dist/navigation/helpers/get-tag-entries.d.ts.map +1 -1
- package/dist/navigation/helpers/get-tag-external-docs.d.ts.map +1 -1
- package/dist/navigation/helpers/get-tag.d.ts +1 -1
- package/dist/navigation/helpers/get-tag.d.ts.map +1 -1
- package/dist/navigation/helpers/get-x-keys.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.d.ts +1 -1
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +2 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts +1 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts +1 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
- package/dist/navigation/helpers/utils.d.ts.map +1 -1
- package/dist/persistence/index.d.ts +6 -6
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/indexdb.d.ts.map +1 -1
- package/dist/persistence/migrations/v2-team-to-local.d.ts.map +1 -1
- package/dist/plugins/bundler/helpers.d.ts.map +1 -1
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +1 -1
- package/dist/plugins/client/persistence.d.ts.map +1 -1
- package/dist/request-example/builder/body/build-multipart.d.ts +2 -2
- package/dist/request-example/builder/body/build-multipart.d.ts.map +1 -1
- package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
- package/dist/request-example/builder/body/encode-multipart-body.d.ts.map +1 -1
- package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
- package/dist/request-example/builder/body/get-selected-body-content-type.d.ts.map +1 -1
- package/dist/request-example/builder/body/schema-value-coercion.d.ts.map +1 -1
- package/dist/request-example/builder/body/serialize-form-property.d.ts.map +1 -1
- package/dist/request-example/builder/body/serialize-multipart-array.d.ts.map +1 -1
- package/dist/request-example/builder/build-request.d.ts +1 -1
- package/dist/request-example/builder/build-request.d.ts.map +1 -1
- package/dist/request-example/builder/header/build-request-cookie-header.d.ts.map +1 -1
- package/dist/request-example/builder/header/build-request-parameters.d.ts.map +1 -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/filter-disabled-properties.d.ts.map +1 -1
- package/dist/request-example/builder/header/filter-global-cookies.d.ts.map +1 -1
- package/dist/request-example/builder/header/is-param-disabled.d.ts.map +1 -1
- package/dist/request-example/builder/header/matches-domain.d.ts.map +1 -1
- package/dist/request-example/builder/header/serialize-parameter.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/apply-allow-reserved-to-url.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-environment-variables.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -10
- 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 +578 -107
- package/dist/request-example/builder/helpers/get-example.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-resolved-url.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-server-variables.d.ts.map +1 -1
- package/dist/request-example/builder/request-factory.d.ts.map +1 -1
- package/dist/request-example/builder/resolve-request-factory-url.d.ts +2 -2
- package/dist/request-example/builder/resolve-request-factory-url.d.ts.map +1 -1
- package/dist/request-example/builder/security/broker-scheme-types.d.ts +2 -2
- package/dist/request-example/builder/security/broker-scheme-types.d.ts.map +1 -1
- package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
- package/dist/request-example/builder/security/secret-types.d.ts +4 -0
- package/dist/request-example/builder/security/secret-types.d.ts.map +1 -1
- package/dist/request-example/context/environment.d.ts.map +1 -1
- package/dist/request-example/context/get-request-example-context.d.ts.map +1 -1
- package/dist/request-example/context/headers.d.ts.map +1 -1
- package/dist/request-example/context/helpers/combine-params.d.ts +1 -1
- package/dist/request-example/context/helpers/combine-params.d.ts.map +1 -1
- package/dist/request-example/context/proxy.d.ts +1 -1
- package/dist/request-example/context/proxy.d.ts.map +1 -1
- package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +5 -1
- 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 +26 -6
- package/dist/request-example/context/security/get-security-requirements.d.ts +1 -1
- package/dist/request-example/context/security/get-security-requirements.d.ts.map +1 -1
- package/dist/request-example/context/security/get-security-schemes.d.ts.map +1 -1
- package/dist/request-example/context/security/get-selected-security.d.ts +1 -1
- package/dist/request-example/context/security/get-selected-security.d.ts.map +1 -1
- package/dist/request-example/context/security/get-selected-security.js +3 -3
- package/dist/request-example/context/security/is-auth-optional.d.ts +1 -1
- package/dist/request-example/context/security/is-auth-optional.d.ts.map +1 -1
- package/dist/request-example/context/security/merge-security.d.ts +1 -1
- package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
- package/dist/request-example/context/security/resolve-credential-placeholders.d.ts +13 -0
- package/dist/request-example/context/security/resolve-credential-placeholders.d.ts.map +1 -0
- package/dist/request-example/context/security/resolve-credential-placeholders.js +73 -0
- package/dist/request-example/context/security/uses-api-key-name-override.d.ts.map +1 -1
- package/dist/request-example/context/servers.d.ts.map +1 -1
- package/dist/request-example/functions.d.ts +1 -1
- package/dist/request-example/functions.d.ts.map +1 -1
- package/dist/request-example/index.d.ts +3 -1
- package/dist/request-example/index.d.ts.map +1 -1
- package/dist/request-example/index.js +3 -1
- package/dist/request-example/xml/get-xml-body-example.d.ts.map +1 -1
- package/dist/request-example/xml/get-xml-example.d.ts.map +1 -1
- package/dist/request-example/xml/get-xml-example.js +2 -6
- package/dist/request-example/xml/match-xml-property-pattern.d.ts.map +1 -1
- package/dist/request-example/xml/serialize-xml-part.d.ts.map +1 -1
- package/dist/request-example/xml/write-xml.d.ts.map +1 -1
- package/dist/resolve.d.ts.map +1 -1
- package/dist/schemas/compose.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +2 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +11 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js +2 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +3 -3
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credential-placeholders.d.ts +24 -0
- package/dist/schemas/extensions/security/x-scalar-credential-placeholders.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-credential-placeholders.js +17 -0
- package/dist/schemas/extensions.d.ts +8 -8
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.d.ts +3 -0
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.d.ts +32 -2
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +31 -1
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/type-guards.d.ts +2 -2
- package/dist/schemas/type-guards.d.ts.map +1 -1
- package/dist/schemas/typebox-coerce.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.d.ts +1 -0
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1050 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.d.ts +4 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +38 -38
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +27 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +2 -1
- package/dist/schemas/v3.1/strict/type-guards.d.ts +4 -4
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.d.ts +2 -1
- package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +9 -3
- package/dist/schemas/v3.2/openapi/reference.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/info.d.ts +1 -0
- package/dist/schemas/v3.2/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +1085 -35
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/operation.d.ts +4 -0
- package/dist/schemas/v3.2/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/paths.d.ts +1 -1
- package/dist/schemas/v3.2/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/paths.js +4 -2
- package/dist/schemas/v3.2/strict/ref-definitions.d.ts +38 -38
- package/dist/schemas/v3.2/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/security-scheme.d.ts +27 -1
- package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/security-scheme.js +2 -1
- package/dist/schemas/v3.2/strict/type-guards.d.ts +4 -4
- package/dist/schemas/v3.2/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +1 -1
- package/dist/schemas/workspace.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -0
- package/package.json +10 -9
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { SchemaObject } from './openapi-document.js';
|
|
2
2
|
import type { ParameterObject, ParameterWithContentObject } from './parameter.js';
|
|
3
3
|
export declare const isObjectSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
|
|
4
|
-
type:
|
|
4
|
+
type: 'object';
|
|
5
5
|
}>;
|
|
6
6
|
export declare const isArraySchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
|
|
7
|
-
type:
|
|
7
|
+
type: 'array';
|
|
8
8
|
}>;
|
|
9
9
|
export declare const isStringSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
|
|
10
|
-
type:
|
|
10
|
+
type: 'string';
|
|
11
11
|
}>;
|
|
12
12
|
export declare const isNumberSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
|
|
13
|
-
type:
|
|
13
|
+
type: 'number' | 'integer';
|
|
14
14
|
}>;
|
|
15
15
|
/** Special type guard to remove our internal type */
|
|
16
16
|
export declare const isSchema: (schema: SchemaObject | undefined) => schema is Exclude<SchemaObject, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAElG,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAElG,eAAO,MAAM,cAAc,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,aAAa,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAErG,CAAA;AAED,eAAO,MAAM,cAAc,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,cAAc,WACjB,YAAY,KACnB,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAQhE,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,QAAQ,WAAY,YAAY,GAAG,SAAS,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CACvE,CAAA;AAE1C;;;GAGG;AACH,eAAO,MAAM,4BAA4B,cAAe,eAAe,KAAG,SAAS,IAAI,0BAEtF,CAAA"}
|
|
@@ -38,6 +38,7 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema, optio
|
|
|
38
38
|
}>, import("@scalar/validation").ObjectSchema<{
|
|
39
39
|
'x-scalar-sdk-installation': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
|
|
40
40
|
lang: import("@scalar/validation").StringSchema;
|
|
41
|
+
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
41
42
|
description: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
42
43
|
source: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
43
44
|
}>>>;
|
|
@@ -58,7 +59,7 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema, optio
|
|
|
58
59
|
description: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
59
60
|
}>>>;
|
|
60
61
|
}>>>;
|
|
61
|
-
paths: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any
|
|
62
|
+
paths: import("@scalar/validation").OptionalSchema<import("@scalar/validation").EvaluateSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any>>>>>;
|
|
62
63
|
webhooks: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any>>>>;
|
|
63
64
|
components: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ObjectSchema<Record<string, any>>>;
|
|
64
65
|
security: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;AAgD3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA43BjG,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { any, array, boolean, evaluate, intersection, lazy, literal, number, object, optional, record, string, union, } from '@scalar/validation';
|
|
3
|
+
import { getPathEntries } from '../../../helpers/get-path-entries.js';
|
|
2
4
|
import { extensions } from '../../extensions.js';
|
|
3
5
|
import { XInternal } from '../../extensions/document/x-internal.js';
|
|
4
6
|
import { XScalarDefaultRequestBodyView } from '../../extensions/document/x-scalar-default-request-body-view.js';
|
|
@@ -33,6 +35,7 @@ import { XExamples } from '../../extensions/schema/x-examples.js';
|
|
|
33
35
|
import { XOrder } from '../../extensions/schema/x-order.js';
|
|
34
36
|
import { XVariable } from '../../extensions/schema/x-variable.js';
|
|
35
37
|
import { XDefaultScopes } from '../../extensions/security/x-default-scopes.js';
|
|
38
|
+
import { XScalarCredentialPlaceholders } from '../../extensions/security/x-scalar-credential-placeholders.js';
|
|
36
39
|
import { XScalarCredentialsLocation } from '../../extensions/security/x-scalar-credentials-location.js';
|
|
37
40
|
import { XScalarSecurityBody } from '../../extensions/security/x-scalar-security-body.js';
|
|
38
41
|
import { XScalarSecurityQuery } from '../../extensions/security/x-scalar-security-query.js';
|
|
@@ -311,6 +314,7 @@ export const generateSchema = (maybeRef, options = {}) => {
|
|
|
311
314
|
typeComment: 'Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.',
|
|
312
315
|
});
|
|
313
316
|
const securitySchemeBase = object({
|
|
317
|
+
...XScalarCredentialPlaceholders.properties,
|
|
314
318
|
deprecated: optional(boolean({ typeComment: 'Whether the security scheme is deprecated.' })),
|
|
315
319
|
description: optional(string({
|
|
316
320
|
typeComment: 'A description for security scheme. CommonMark syntax MAY be used for rich text representation.',
|
|
@@ -720,10 +724,12 @@ export const generateSchema = (maybeRef, options = {}) => {
|
|
|
720
724
|
typeComment: 'An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.',
|
|
721
725
|
typeName: 'OpenApiServers',
|
|
722
726
|
})),
|
|
723
|
-
paths: optional(
|
|
727
|
+
paths: optional(
|
|
728
|
+
// Extensions keep their original values when the coerced document is merged back.
|
|
729
|
+
evaluate((value) => Object.fromEntries(getPathEntries(isObject(value) ? value : undefined)), record(string(), pathItem, {
|
|
724
730
|
typeComment: 'The available paths and operations for the API.',
|
|
725
731
|
typeName: 'PathsObject',
|
|
726
|
-
})),
|
|
732
|
+
}))),
|
|
727
733
|
webhooks: optional(record(string(), pathItem, {
|
|
728
734
|
typeComment: 'The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.',
|
|
729
735
|
typeName: 'WebhooksObject',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/reference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,oBAAoB,CAAA;AAsC3B,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/reference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,oBAAoB,CAAA;AAsC3B,eAAO,MAAM,SAAS,WAAY,MAAM,KAAG,MAAoC,CAAA;AAkB/E,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MACkE,CAAA"}
|
|
@@ -23,6 +23,7 @@ export declare const InfoObjectSchemaDefinition: import("@scalar/typebox").TInte
|
|
|
23
23
|
}>, import("@scalar/typebox").TObject<{
|
|
24
24
|
'x-scalar-sdk-installation': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
25
25
|
lang: import("@scalar/typebox").TString;
|
|
26
|
+
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
26
27
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
27
28
|
source: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
28
29
|
}>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/info.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,8CAA8C,CAAA;AACpG,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;IAEnC,sCAAsC;;IAEtC,oMAAoM;;IAEpM,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;IAEnD,mDAAmD
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/info.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,8CAA8C,CAAA;AACpG,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;IAEnC,sCAAsC;;IAEtC,oMAAoM;;IAEpM,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;IAEnD,mDAAmD;;;;;;;;;;;;;;IAKtD,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,oMAAoM;IACpM,OAAO,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB,GAAG,sBAAsB,GACxB,YAAY,CAAA"}
|