@scalar/schemas 0.2.0 → 0.3.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 +19 -0
- package/dist/api-reference/api-reference-configuration.d.ts +18 -16
- package/dist/api-reference/api-reference-configuration.d.ts.map +1 -1
- package/dist/api-reference/api-reference-configuration.js +11 -1
- package/dist/api-reference/base-configuration.d.ts +6 -6
- package/dist/api-reference/source-configuration.d.ts +2 -2
- package/dist/api-reference/source-configuration.d.ts.map +1 -1
- package/dist/asyncapi/3.1/asyncapi-object.d.ts +50 -0
- package/dist/asyncapi/3.1/asyncapi-object.d.ts.map +1 -0
- package/dist/asyncapi/3.1/asyncapi-object.js +48 -0
- package/dist/asyncapi/3.1/bindings.d.ts +6 -0
- package/dist/asyncapi/3.1/bindings.d.ts.map +1 -0
- package/dist/asyncapi/3.1/bindings.js +42 -0
- package/dist/asyncapi/3.1/channel.d.ts +4 -0
- package/dist/asyncapi/3.1/channel.d.ts.map +1 -0
- package/dist/asyncapi/3.1/channel.js +29 -0
- package/dist/asyncapi/3.1/components.d.ts +22 -0
- package/dist/asyncapi/3.1/components.d.ts.map +1 -0
- package/dist/asyncapi/3.1/components.js +44 -0
- package/dist/asyncapi/3.1/contact.d.ts +6 -0
- package/dist/asyncapi/3.1/contact.d.ts.map +1 -0
- package/dist/asyncapi/3.1/contact.js +8 -0
- package/dist/asyncapi/3.1/correlation-id.d.ts +3 -0
- package/dist/asyncapi/3.1/correlation-id.d.ts.map +1 -0
- package/dist/asyncapi/3.1/correlation-id.js +11 -0
- package/dist/asyncapi/3.1/external-documentation.d.ts +3 -0
- package/dist/asyncapi/3.1/external-documentation.d.ts.map +1 -0
- package/dist/asyncapi/3.1/external-documentation.js +11 -0
- package/dist/asyncapi/3.1/index.d.ts +26 -0
- package/dist/asyncapi/3.1/index.d.ts.map +1 -0
- package/dist/asyncapi/3.1/index.js +25 -0
- package/dist/asyncapi/3.1/info.d.ts +15 -0
- package/dist/asyncapi/3.1/info.d.ts.map +1 -0
- package/dist/asyncapi/3.1/info.js +19 -0
- package/dist/asyncapi/3.1/license.d.ts +3 -0
- package/dist/asyncapi/3.1/license.d.ts.map +1 -0
- package/dist/asyncapi/3.1/license.js +9 -0
- package/dist/asyncapi/3.1/message-example.d.ts +7 -0
- package/dist/asyncapi/3.1/message-example.d.ts.map +1 -0
- package/dist/asyncapi/3.1/message-example.js +9 -0
- package/dist/asyncapi/3.1/message-trait.d.ts +3 -0
- package/dist/asyncapi/3.1/message-trait.d.ts.map +1 -0
- package/dist/asyncapi/3.1/message-trait.js +26 -0
- package/dist/asyncapi/3.1/message.d.ts +4 -0
- package/dist/asyncapi/3.1/message.d.ts.map +1 -0
- package/dist/asyncapi/3.1/message.js +33 -0
- package/dist/asyncapi/3.1/oauth.d.ts +13 -0
- package/dist/asyncapi/3.1/oauth.d.ts.map +1 -0
- package/dist/asyncapi/3.1/oauth.js +22 -0
- package/dist/asyncapi/3.1/operation-reply-address.d.ts +3 -0
- package/dist/asyncapi/3.1/operation-reply-address.d.ts.map +1 -0
- package/dist/asyncapi/3.1/operation-reply-address.js +11 -0
- package/dist/asyncapi/3.1/operation-reply.d.ts +3 -0
- package/dist/asyncapi/3.1/operation-reply.d.ts.map +1 -0
- package/dist/asyncapi/3.1/operation-reply.js +13 -0
- package/dist/asyncapi/3.1/operation-trait.d.ts +3 -0
- package/dist/asyncapi/3.1/operation-trait.d.ts.map +1 -0
- package/dist/asyncapi/3.1/operation-trait.js +20 -0
- package/dist/asyncapi/3.1/operation.d.ts +4 -0
- package/dist/asyncapi/3.1/operation.d.ts.map +1 -0
- package/dist/asyncapi/3.1/operation.js +37 -0
- package/dist/asyncapi/3.1/parameter.d.ts +3 -0
- package/dist/asyncapi/3.1/parameter.d.ts.map +1 -0
- package/dist/asyncapi/3.1/parameter.js +14 -0
- package/dist/asyncapi/3.1/parameters.d.ts +2 -0
- package/dist/asyncapi/3.1/parameters.d.ts.map +1 -0
- package/dist/asyncapi/3.1/parameters.js +6 -0
- package/dist/asyncapi/3.1/reference.d.ts +25 -0
- package/dist/asyncapi/3.1/reference.d.ts.map +1 -0
- package/dist/asyncapi/3.1/reference.js +25 -0
- package/dist/asyncapi/3.1/schema-payload.d.ts +7 -0
- package/dist/asyncapi/3.1/schema-payload.d.ts.map +1 -0
- package/dist/asyncapi/3.1/schema-payload.js +22 -0
- package/dist/asyncapi/3.1/security-scheme.d.ts +3 -0
- package/dist/asyncapi/3.1/security-scheme.d.ts.map +1 -0
- package/dist/asyncapi/3.1/security-scheme.js +39 -0
- package/dist/asyncapi/3.1/server-variable.d.ts +3 -0
- package/dist/asyncapi/3.1/server-variable.d.ts.map +1 -0
- package/dist/asyncapi/3.1/server-variable.js +13 -0
- package/dist/asyncapi/3.1/server.d.ts +4 -0
- package/dist/asyncapi/3.1/server.d.ts.map +1 -0
- package/dist/asyncapi/3.1/server.js +36 -0
- package/dist/asyncapi/3.1/tag.d.ts +4 -0
- package/dist/asyncapi/3.1/tag.d.ts.map +1 -0
- package/dist/asyncapi/3.1/tag.js +15 -0
- package/dist/extensions/document/index.d.ts +21 -0
- package/dist/extensions/document/index.d.ts.map +1 -0
- package/dist/extensions/document/index.js +20 -0
- package/dist/extensions/document/x-internal.d.ts +4 -0
- package/dist/extensions/document/x-internal.d.ts.map +1 -0
- package/dist/extensions/document/x-internal.js +11 -0
- package/dist/extensions/document/x-original-aas-version.d.ts +4 -0
- package/dist/extensions/document/x-original-aas-version.d.ts.map +1 -0
- package/dist/extensions/document/x-original-aas-version.js +8 -0
- package/dist/extensions/document/x-original-oas-version.d.ts +4 -0
- package/dist/extensions/document/x-original-oas-version.d.ts.map +1 -0
- package/dist/extensions/document/x-original-oas-version.js +8 -0
- package/dist/extensions/document/x-scalar-environments.d.ts +34 -0
- package/dist/extensions/document/x-scalar-environments.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-environments.js +41 -0
- package/dist/extensions/document/x-scalar-icon.d.ts +4 -0
- package/dist/extensions/document/x-scalar-icon.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-icon.js +11 -0
- package/dist/extensions/document/x-scalar-ignore.d.ts +5 -0
- package/dist/extensions/document/x-scalar-ignore.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-ignore.js +12 -0
- package/dist/extensions/document/x-scalar-is-dirty.d.ts +4 -0
- package/dist/extensions/document/x-scalar-is-dirty.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-is-dirty.js +13 -0
- package/dist/extensions/document/x-scalar-navigation.d.ts +4 -0
- package/dist/extensions/document/x-scalar-navigation.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-navigation.js +9 -0
- package/dist/extensions/document/x-scalar-original-document-hash.d.ts +4 -0
- package/dist/extensions/document/x-scalar-original-document-hash.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-original-document-hash.js +10 -0
- package/dist/extensions/document/x-scalar-original-source-url.d.ts +4 -0
- package/dist/extensions/document/x-scalar-original-source-url.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-original-source-url.js +8 -0
- package/dist/extensions/document/x-scalar-registry-meta.d.ts +11 -0
- package/dist/extensions/document/x-scalar-registry-meta.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-registry-meta.js +31 -0
- package/dist/extensions/document/x-scalar-sdk-installation.d.ts +8 -0
- package/dist/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-sdk-installation.js +23 -0
- package/dist/extensions/document/x-scalar-watch-mode.d.ts +4 -0
- package/dist/extensions/document/x-scalar-watch-mode.d.ts.map +1 -0
- package/dist/extensions/document/x-scalar-watch-mode.js +8 -0
- package/dist/extensions/document/x-tags.d.ts +4 -0
- package/dist/extensions/document/x-tags.d.ts.map +1 -0
- package/dist/extensions/document/x-tags.js +15 -0
- package/dist/extensions/example/index.d.ts +7 -0
- package/dist/extensions/example/index.d.ts.map +1 -0
- package/dist/extensions/example/index.js +6 -0
- package/dist/extensions/example/x-disabled.d.ts +17 -0
- package/dist/extensions/example/x-disabled.d.ts.map +1 -0
- package/dist/extensions/example/x-disabled.js +23 -0
- package/dist/extensions/general/index.d.ts +12 -0
- package/dist/extensions/general/index.d.ts.map +1 -0
- package/dist/extensions/general/index.js +11 -0
- package/dist/extensions/general/x-post-response.d.ts +19 -0
- package/dist/extensions/general/x-post-response.d.ts.map +1 -0
- package/dist/extensions/general/x-post-response.js +31 -0
- package/dist/extensions/general/x-pre-request.d.ts +19 -0
- package/dist/extensions/general/x-pre-request.d.ts.map +1 -0
- package/dist/extensions/general/x-pre-request.js +30 -0
- package/dist/extensions/general/x-scalar-active-environment.d.ts +5 -0
- package/dist/extensions/general/x-scalar-active-environment.d.ts.map +1 -0
- package/dist/extensions/general/x-scalar-active-environment.js +12 -0
- package/dist/extensions/general/x-scalar-cookies.d.ts +17 -0
- package/dist/extensions/general/x-scalar-cookies.d.ts.map +1 -0
- package/dist/extensions/general/x-scalar-cookies.js +26 -0
- package/dist/extensions/general/x-scalar-order.d.ts +4 -0
- package/dist/extensions/general/x-scalar-order.d.ts.map +1 -0
- package/dist/extensions/general/x-scalar-order.js +16 -0
- package/dist/extensions/operation/index.d.ts +13 -0
- package/dist/extensions/operation/index.d.ts.map +1 -0
- package/dist/extensions/operation/index.js +12 -0
- package/dist/extensions/operation/x-badge.d.ts +38 -0
- package/dist/extensions/operation/x-badge.d.ts.map +1 -0
- package/dist/extensions/operation/x-badge.js +60 -0
- package/dist/extensions/operation/x-code-samples.d.ts +23 -0
- package/dist/extensions/operation/x-code-samples.d.ts.map +1 -0
- package/dist/extensions/operation/x-code-samples.js +24 -0
- package/dist/extensions/operation/x-draft-examples.d.ts +4 -0
- package/dist/extensions/operation/x-draft-examples.d.ts.map +1 -0
- package/dist/extensions/operation/x-draft-examples.js +15 -0
- package/dist/extensions/operation/x-scalar-disable-parameters.d.ts +8 -0
- package/dist/extensions/operation/x-scalar-disable-parameters.d.ts.map +1 -0
- package/dist/extensions/operation/x-scalar-disable-parameters.js +74 -0
- package/dist/extensions/operation/x-scalar-selected-content-type.d.ts +10 -0
- package/dist/extensions/operation/x-scalar-selected-content-type.d.ts.map +1 -0
- package/dist/extensions/operation/x-scalar-selected-content-type.js +21 -0
- package/dist/extensions/operation/x-scalar-stability.d.ts +9 -0
- package/dist/extensions/operation/x-scalar-stability.d.ts.map +1 -0
- package/dist/extensions/operation/x-scalar-stability.js +18 -0
- package/dist/extensions/parameter/index.d.ts +8 -0
- package/dist/extensions/parameter/index.d.ts.map +1 -0
- package/dist/extensions/parameter/index.js +7 -0
- package/dist/extensions/parameter/x-global.d.ts +13 -0
- package/dist/extensions/parameter/x-global.d.ts.map +1 -0
- package/dist/extensions/parameter/x-global.js +22 -0
- package/dist/extensions/schema/index.d.ts +12 -0
- package/dist/extensions/schema/index.d.ts.map +1 -0
- package/dist/extensions/schema/index.js +11 -0
- package/dist/extensions/schema/x-additional-properties-name.d.ts +10 -0
- package/dist/extensions/schema/x-additional-properties-name.d.ts.map +1 -0
- package/dist/extensions/schema/x-additional-properties-name.js +19 -0
- package/dist/extensions/schema/x-enum-descriptions.d.ts +20 -0
- package/dist/extensions/schema/x-enum-descriptions.d.ts.map +1 -0
- package/dist/extensions/schema/x-enum-descriptions.js +33 -0
- package/dist/extensions/schema/x-enum-varnames.d.ts +22 -0
- package/dist/extensions/schema/x-enum-varnames.d.ts.map +1 -0
- package/dist/extensions/schema/x-enum-varnames.js +34 -0
- package/dist/extensions/schema/x-examples.d.ts +4 -0
- package/dist/extensions/schema/x-examples.d.ts.map +1 -0
- package/dist/extensions/schema/x-examples.js +16 -0
- package/dist/extensions/schema/x-variable.d.ts +4 -0
- package/dist/extensions/schema/x-variable.d.ts.map +1 -0
- package/dist/extensions/schema/x-variable.js +11 -0
- package/dist/extensions/security/index.d.ts +14 -0
- package/dist/extensions/security/index.d.ts.map +1 -0
- package/dist/extensions/security/index.js +13 -0
- package/dist/extensions/security/x-default-scopes.d.ts +14 -0
- package/dist/extensions/security/x-default-scopes.d.ts.map +1 -0
- package/dist/extensions/security/x-default-scopes.js +23 -0
- package/dist/extensions/security/x-scalar-credentials-location.d.ts +17 -0
- package/dist/extensions/security/x-scalar-credentials-location.d.ts.map +1 -0
- package/dist/extensions/security/x-scalar-credentials-location.js +26 -0
- package/dist/extensions/security/x-scalar-security-body.d.ts +14 -0
- package/dist/extensions/security/x-scalar-security-body.d.ts.map +1 -0
- package/dist/extensions/security/x-scalar-security-body.js +25 -0
- package/dist/extensions/security/x-scalar-security-query.d.ts +14 -0
- package/dist/extensions/security/x-scalar-security-query.d.ts.map +1 -0
- package/dist/extensions/security/x-scalar-security-query.js +25 -0
- package/dist/extensions/security/x-scalar-security-secrets.d.ts +26 -0
- package/dist/extensions/security/x-scalar-security-secrets.d.ts.map +1 -0
- package/dist/extensions/security/x-scalar-security-secrets.js +57 -0
- package/dist/extensions/security/x-tokenName.d.ts +12 -0
- package/dist/extensions/security/x-tokenName.d.ts.map +1 -0
- package/dist/extensions/security/x-tokenName.js +21 -0
- package/dist/extensions/security/x-use-pkce.d.ts +7 -0
- package/dist/extensions/security/x-use-pkce.d.ts.map +1 -0
- package/dist/extensions/security/x-use-pkce.js +13 -0
- package/dist/extensions/server/index.d.ts +7 -0
- package/dist/extensions/server/index.d.ts.map +1 -0
- package/dist/extensions/server/index.js +6 -0
- package/dist/extensions/server/x-scalar-selected-server.d.ts +4 -0
- package/dist/extensions/server/x-scalar-selected-server.d.ts.map +1 -0
- package/dist/extensions/server/x-scalar-selected-server.js +11 -0
- package/dist/extensions/tag/index.d.ts +8 -0
- package/dist/extensions/tag/index.d.ts.map +1 -0
- package/dist/extensions/tag/index.js +7 -0
- package/dist/extensions/tag/x-display-name.d.ts +12 -0
- package/dist/extensions/tag/x-display-name.d.ts.map +1 -0
- package/dist/extensions/tag/x-display-name.js +21 -0
- package/dist/extensions/tag/x-tag-groups.d.ts +20 -0
- package/dist/extensions/tag/x-tag-groups.d.ts.map +1 -0
- package/dist/extensions/tag/x-tag-groups.js +33 -0
- package/dist/extensions/type-comment.d.ts +17 -0
- package/dist/extensions/type-comment.d.ts.map +1 -0
- package/dist/extensions/type-comment.js +14 -0
- package/dist/extensions/workspace/index.d.ts +9 -0
- package/dist/extensions/workspace/index.d.ts.map +1 -0
- package/dist/extensions/workspace/index.js +8 -0
- package/dist/extensions/workspace/x-scalar-active-proxy.d.ts +14 -0
- package/dist/extensions/workspace/x-scalar-active-proxy.d.ts.map +1 -0
- package/dist/extensions/workspace/x-scalar-active-proxy.js +23 -0
- package/dist/extensions/workspace/x-scalar-tabs.d.ts +20 -0
- package/dist/extensions/workspace/x-scalar-tabs.d.ts.map +1 -0
- package/dist/extensions/workspace/x-scalar-tabs.js +33 -0
- package/dist/general/bundler-extensions.d.ts +5 -0
- package/dist/general/bundler-extensions.d.ts.map +1 -0
- package/dist/general/bundler-extensions.js +9 -0
- package/dist/openapi/3.1/callback.d.ts +2 -0
- package/dist/openapi/3.1/callback.d.ts.map +1 -0
- package/dist/openapi/3.1/callback.js +6 -0
- package/dist/openapi/3.1/components.d.ts +36 -0
- package/dist/openapi/3.1/components.d.ts.map +1 -0
- package/dist/openapi/3.1/components.js +24 -0
- package/dist/openapi/3.1/contact.d.ts +6 -0
- package/dist/openapi/3.1/contact.d.ts.map +1 -0
- package/dist/openapi/3.1/contact.js +8 -0
- package/dist/openapi/3.1/discriminator.d.ts +5 -0
- package/dist/openapi/3.1/discriminator.d.ts.map +1 -0
- package/dist/openapi/3.1/discriminator.js +9 -0
- package/dist/openapi/3.1/document.d.ts +201 -0
- package/dist/openapi/3.1/document.d.ts.map +1 -0
- package/dist/openapi/3.1/document.js +67 -0
- package/dist/openapi/3.1/example.d.ts +9 -0
- package/dist/openapi/3.1/example.d.ts.map +1 -0
- package/dist/openapi/3.1/example.js +17 -0
- package/dist/openapi/3.1/external-docs.d.ts +5 -0
- package/dist/openapi/3.1/external-docs.d.ts.map +1 -0
- package/dist/openapi/3.1/external-docs.js +9 -0
- package/dist/openapi/3.1/index.d.ts +25 -0
- package/dist/openapi/3.1/index.d.ts.map +1 -0
- package/dist/openapi/3.1/index.js +24 -0
- package/dist/openapi/3.1/info.d.ts +24 -0
- package/dist/openapi/3.1/info.d.ts.map +1 -0
- package/dist/openapi/3.1/info.js +20 -0
- package/dist/openapi/3.1/license.d.ts +6 -0
- package/dist/openapi/3.1/license.d.ts.map +1 -0
- package/dist/openapi/3.1/license.js +10 -0
- package/dist/openapi/3.1/link.d.ts +17 -0
- package/dist/openapi/3.1/link.d.ts.map +1 -0
- package/dist/openapi/3.1/link.js +21 -0
- package/dist/openapi/3.1/media-type.d.ts +16 -0
- package/dist/openapi/3.1/media-type.d.ts.map +1 -0
- package/dist/openapi/3.1/media-type.js +49 -0
- package/dist/openapi/3.1/operation.d.ts +68 -0
- package/dist/openapi/3.1/operation.d.ts.map +1 -0
- package/dist/openapi/3.1/operation.js +48 -0
- package/dist/openapi/3.1/parameter.d.ts +44 -0
- package/dist/openapi/3.1/parameter.d.ts.map +1 -0
- package/dist/openapi/3.1/parameter.js +76 -0
- package/dist/openapi/3.1/path-item.d.ts +25 -0
- package/dist/openapi/3.1/path-item.d.ts.map +1 -0
- package/dist/openapi/3.1/path-item.js +27 -0
- package/dist/openapi/3.1/reference.d.ts +16 -0
- package/dist/openapi/3.1/reference.d.ts.map +1 -0
- package/dist/openapi/3.1/reference.js +34 -0
- package/dist/openapi/3.1/request-body.d.ts +16 -0
- package/dist/openapi/3.1/request-body.d.ts.map +1 -0
- package/dist/openapi/3.1/request-body.js +16 -0
- package/dist/openapi/3.1/response.d.ts +16 -0
- package/dist/openapi/3.1/response.d.ts.map +1 -0
- package/dist/openapi/3.1/response.js +15 -0
- package/dist/openapi/3.1/schema.d.ts +3 -0
- package/dist/openapi/3.1/schema.d.ts.map +1 -0
- package/dist/openapi/3.1/schema.js +100 -0
- package/dist/openapi/3.1/security-requirement.d.ts +2 -0
- package/dist/openapi/3.1/security-requirement.d.ts.map +1 -0
- package/dist/openapi/3.1/security-requirement.js +5 -0
- package/dist/openapi/3.1/security-schemes.d.ts +96 -0
- package/dist/openapi/3.1/security-schemes.d.ts.map +1 -0
- package/dist/openapi/3.1/security-schemes.js +107 -0
- package/dist/openapi/3.1/server-variable.d.ts +6 -0
- package/dist/openapi/3.1/server-variable.d.ts.map +1 -0
- package/dist/openapi/3.1/server-variable.js +12 -0
- package/dist/openapi/3.1/server.d.ts +10 -0
- package/dist/openapi/3.1/server.d.ts.map +1 -0
- package/dist/openapi/3.1/server.js +13 -0
- package/dist/openapi/3.1/tag.d.ts +17 -0
- package/dist/openapi/3.1/tag.d.ts.map +1 -0
- package/dist/openapi/3.1/tag.js +18 -0
- package/dist/openapi/3.1/xml.d.ts +8 -0
- package/dist/openapi/3.1/xml.d.ts.map +1 -0
- package/dist/openapi/3.1/xml.js +16 -0
- package/package.json +16 -4
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correlation-id.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/correlation-id.ts"],"names":[],"mappings":"AAIA,+CAA+C;AAC/C,eAAO,MAAM,2BAA2B,qCAevC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
/** Correlation ID Object | Reference Object */
|
|
4
|
+
export const asyncApiCorrelationIdObject = recursiveRef(object({
|
|
5
|
+
description: optional(string({
|
|
6
|
+
typeComment: 'An optional description of the identifier. CommonMark syntax MAY be used for rich text representation.',
|
|
7
|
+
})),
|
|
8
|
+
location: string({
|
|
9
|
+
typeComment: 'REQUIRED. A runtime expression that specifies the location of the correlation ID.',
|
|
10
|
+
}),
|
|
11
|
+
}, { typeName: 'AsyncApiCorrelationIdObject' }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/external-documentation.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,eAAO,MAAM,mCAAmC,qCAe/C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
/** External Documentation Object | Reference Object */
|
|
4
|
+
export const asyncApiExternalDocumentationObject = recursiveRef(object({
|
|
5
|
+
description: optional(string({
|
|
6
|
+
typeComment: 'A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.',
|
|
7
|
+
})),
|
|
8
|
+
url: string({
|
|
9
|
+
typeComment: 'REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.',
|
|
10
|
+
}),
|
|
11
|
+
}, { typeName: 'AsyncApiExternalDocumentationObject' }));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { asyncApiObjectSchema } from './asyncapi-object.js';
|
|
2
|
+
export { asyncApiChannelBindingsObject, asyncApiMessageBindingsObject, asyncApiOperationBindingsObject, asyncApiServerBindingsObject, } from './bindings.js';
|
|
3
|
+
export { asyncApiChannelObject, asyncApiChannelsObject } from './channel.js';
|
|
4
|
+
export { asyncApiComponentsObject } from './components.js';
|
|
5
|
+
export { asyncApiContactObject } from './contact.js';
|
|
6
|
+
export { asyncApiCorrelationIdObject } from './correlation-id.js';
|
|
7
|
+
export { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
8
|
+
export { asyncApiInfoObject } from './info.js';
|
|
9
|
+
export { asyncApiLicenseObject } from './license.js';
|
|
10
|
+
export { asyncApiMessageObject, asyncApiMessagesObject } from './message.js';
|
|
11
|
+
export { asyncApiMessageExampleObject } from './message-example.js';
|
|
12
|
+
export { asyncApiMessageTraitObject } from './message-trait.js';
|
|
13
|
+
export { asyncApiOAuthFlowObject, asyncApiOAuthFlowsObject } from './oauth.js';
|
|
14
|
+
export { asyncApiOperationObject, asyncApiOperationsObject } from './operation.js';
|
|
15
|
+
export { asyncApiOperationReplyObject } from './operation-reply.js';
|
|
16
|
+
export { asyncApiOperationReplyAddressObject } from './operation-reply-address.js';
|
|
17
|
+
export { asyncApiOperationTraitObject } from './operation-trait.js';
|
|
18
|
+
export { asyncApiParameterObject } from './parameter.js';
|
|
19
|
+
export { asyncApiParametersObject } from './parameters.js';
|
|
20
|
+
export { type MaybeRefFn, asyncApiReferenceObject, asyncApiResolvedReference, recursiveRef, } from './reference.js';
|
|
21
|
+
export { asyncApiMultiFormatSchemaObject, asyncApiSchemaPayload } from './schema-payload.js';
|
|
22
|
+
export { asyncApiSecuritySchemeObject } from './security-scheme.js';
|
|
23
|
+
export { asyncApiServerObject, asyncApiServersObject } from './server.js';
|
|
24
|
+
export { asyncApiServerVariableObject } from './server-variable.js';
|
|
25
|
+
export { asyncApiTagObject, asyncApiTagsObject } from './tag.js';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAC3E,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,KAAK,UAAU,EACf,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,GACb,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { asyncApiObjectSchema } from './asyncapi-object.js';
|
|
2
|
+
export { asyncApiChannelBindingsObject, asyncApiMessageBindingsObject, asyncApiOperationBindingsObject, asyncApiServerBindingsObject, } from './bindings.js';
|
|
3
|
+
export { asyncApiChannelObject, asyncApiChannelsObject } from './channel.js';
|
|
4
|
+
export { asyncApiComponentsObject } from './components.js';
|
|
5
|
+
export { asyncApiContactObject } from './contact.js';
|
|
6
|
+
export { asyncApiCorrelationIdObject } from './correlation-id.js';
|
|
7
|
+
export { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
8
|
+
export { asyncApiInfoObject } from './info.js';
|
|
9
|
+
export { asyncApiLicenseObject } from './license.js';
|
|
10
|
+
export { asyncApiMessageObject, asyncApiMessagesObject } from './message.js';
|
|
11
|
+
export { asyncApiMessageExampleObject } from './message-example.js';
|
|
12
|
+
export { asyncApiMessageTraitObject } from './message-trait.js';
|
|
13
|
+
export { asyncApiOAuthFlowObject, asyncApiOAuthFlowsObject } from './oauth.js';
|
|
14
|
+
export { asyncApiOperationObject, asyncApiOperationsObject } from './operation.js';
|
|
15
|
+
export { asyncApiOperationReplyObject } from './operation-reply.js';
|
|
16
|
+
export { asyncApiOperationReplyAddressObject } from './operation-reply-address.js';
|
|
17
|
+
export { asyncApiOperationTraitObject } from './operation-trait.js';
|
|
18
|
+
export { asyncApiParameterObject } from './parameter.js';
|
|
19
|
+
export { asyncApiParametersObject } from './parameters.js';
|
|
20
|
+
export { asyncApiReferenceObject, asyncApiResolvedReference, recursiveRef, } from './reference.js';
|
|
21
|
+
export { asyncApiMultiFormatSchemaObject, asyncApiSchemaPayload } from './schema-payload.js';
|
|
22
|
+
export { asyncApiSecuritySchemeObject } from './security-scheme.js';
|
|
23
|
+
export { asyncApiServerObject, asyncApiServersObject } from './server.js';
|
|
24
|
+
export { asyncApiServerVariableObject } from './server-variable.js';
|
|
25
|
+
export { asyncApiTagObject, asyncApiTagsObject } from './tag.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const asyncApiInfoObject: import("@scalar/validation").ObjectSchema<{
|
|
2
|
+
title: import("@scalar/validation").StringSchema;
|
|
3
|
+
version: import("@scalar/validation").StringSchema;
|
|
4
|
+
description: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
5
|
+
termsOfService: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
6
|
+
contact: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ObjectSchema<{
|
|
7
|
+
name: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
8
|
+
url: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
9
|
+
email: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
10
|
+
}>>;
|
|
11
|
+
license: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
12
|
+
tags: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").Schema>>;
|
|
13
|
+
externalDocs: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/info.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAoB9B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { asyncApiContactObject } from './contact.js';
|
|
3
|
+
import { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
4
|
+
import { asyncApiLicenseObject } from './license.js';
|
|
5
|
+
import { asyncApiTagsObject } from './tag.js';
|
|
6
|
+
export const asyncApiInfoObject = object({
|
|
7
|
+
title: string({ typeComment: 'REQUIRED. The title of the application.' }),
|
|
8
|
+
version: string({
|
|
9
|
+
typeComment: 'REQUIRED. Provides the version of the application API (not to be confused with the AsyncAPI Specification version).',
|
|
10
|
+
}),
|
|
11
|
+
description: optional(string({
|
|
12
|
+
typeComment: 'A short description of the application. CommonMark syntax MAY be used for rich text representation.',
|
|
13
|
+
})),
|
|
14
|
+
termsOfService: optional(string({ typeComment: 'A URL to the Terms of Service for the API (absolute URL).' })),
|
|
15
|
+
contact: optional(asyncApiContactObject),
|
|
16
|
+
license: optional(asyncApiLicenseObject),
|
|
17
|
+
tags: optional(asyncApiTagsObject),
|
|
18
|
+
externalDocs: optional(asyncApiExternalDocumentationObject),
|
|
19
|
+
}, { typeName: 'AsyncApiInfoObject' });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/license.ts"],"names":[],"mappings":"AAIA,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,qCAYjC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
/** License Object | Reference Object */
|
|
4
|
+
export const asyncApiLicenseObject = recursiveRef(object({
|
|
5
|
+
name: string({ typeComment: 'REQUIRED. The license name used for the API.' }),
|
|
6
|
+
url: optional(string({
|
|
7
|
+
typeComment: 'A URL to the license used for the API. This MUST be in the form of an absolute URL.',
|
|
8
|
+
})),
|
|
9
|
+
}, { typeName: 'AsyncApiLicenseObject' }));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const asyncApiMessageExampleObject: import("@scalar/validation").ObjectSchema<{
|
|
2
|
+
headers: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").UnknownSchema>>;
|
|
3
|
+
payload: import("@scalar/validation").OptionalSchema<import("@scalar/validation").UnknownSchema>;
|
|
4
|
+
name: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
5
|
+
summary: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=message-example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-example.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/message-example.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;EAcxC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { object, optional, record, string, unknown } from '@scalar/validation';
|
|
2
|
+
export const asyncApiMessageExampleObject = object({
|
|
3
|
+
headers: optional(record(string(), unknown(), {
|
|
4
|
+
typeComment: 'Example headers; MUST validate against the Message Object headers field when present.',
|
|
5
|
+
})),
|
|
6
|
+
payload: optional(unknown({ typeComment: 'Example payload; MUST validate against the Message Object payload field when present.' })),
|
|
7
|
+
name: optional(string({ typeComment: 'A machine-friendly name.' })),
|
|
8
|
+
summary: optional(string({ typeComment: 'A short summary of what the example is about.' })),
|
|
9
|
+
}, { typeName: 'AsyncApiMessageExampleObject' });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-trait.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/message-trait.ts"],"names":[],"mappings":"AAUA,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,qCA2BtC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { array, object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { asyncApiMessageBindingsObject } from './bindings.js';
|
|
3
|
+
import { asyncApiCorrelationIdObject } from './correlation-id.js';
|
|
4
|
+
import { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
5
|
+
import { asyncApiMessageExampleObject } from './message-example.js';
|
|
6
|
+
import { recursiveRef } from './reference.js';
|
|
7
|
+
import { asyncApiSchemaPayload } from './schema-payload.js';
|
|
8
|
+
import { asyncApiTagsObject } from './tag.js';
|
|
9
|
+
/** Message Trait Object | Reference Object */
|
|
10
|
+
export const asyncApiMessageTraitObject = recursiveRef(object({
|
|
11
|
+
headers: optional(asyncApiSchemaPayload),
|
|
12
|
+
correlationId: optional(asyncApiCorrelationIdObject),
|
|
13
|
+
contentType: optional(string({
|
|
14
|
+
typeComment: 'The content type to use when encoding/decoding a message payload (for example application/json).',
|
|
15
|
+
})),
|
|
16
|
+
name: optional(string({ typeComment: 'A machine-friendly name for the message.' })),
|
|
17
|
+
title: optional(string({ typeComment: 'A human-friendly title for the message.' })),
|
|
18
|
+
summary: optional(string({ typeComment: 'A short summary of what the message is about.' })),
|
|
19
|
+
description: optional(string({
|
|
20
|
+
typeComment: 'A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.',
|
|
21
|
+
})),
|
|
22
|
+
tags: optional(asyncApiTagsObject),
|
|
23
|
+
externalDocs: optional(asyncApiExternalDocumentationObject),
|
|
24
|
+
bindings: optional(recursiveRef(asyncApiMessageBindingsObject)),
|
|
25
|
+
examples: optional(array(recursiveRef(asyncApiMessageExampleObject))),
|
|
26
|
+
}, { typeName: 'AsyncApiMessageTraitObject' }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Message Object | Reference Object */
|
|
2
|
+
export declare const asyncApiMessageObject: import("@scalar/validation").LazySchema<() => import("@scalar/validation").Schema>;
|
|
3
|
+
export declare const asyncApiMessagesObject: import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").LazySchema<() => import("@scalar/validation").Schema>>;
|
|
4
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/message.ts"],"names":[],"mappings":"AAWA,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,oFA+BjC,CAAA;AAED,eAAO,MAAM,sBAAsB,0KAGjC,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { array, lazy, object, optional, record, string } from '@scalar/validation';
|
|
2
|
+
import { asyncApiMessageBindingsObject } from './bindings.js';
|
|
3
|
+
import { asyncApiCorrelationIdObject } from './correlation-id.js';
|
|
4
|
+
import { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
5
|
+
import { asyncApiMessageExampleObject } from './message-example.js';
|
|
6
|
+
import { asyncApiMessageTraitObject } from './message-trait.js';
|
|
7
|
+
import { recursiveRef } from './reference.js';
|
|
8
|
+
import { asyncApiSchemaPayload } from './schema-payload.js';
|
|
9
|
+
import { asyncApiTagsObject } from './tag.js';
|
|
10
|
+
/** Message Object | Reference Object */
|
|
11
|
+
export const asyncApiMessageObject = lazy(() => recursiveRef(object({
|
|
12
|
+
headers: optional(asyncApiSchemaPayload),
|
|
13
|
+
payload: optional(asyncApiSchemaPayload),
|
|
14
|
+
correlationId: optional(asyncApiCorrelationIdObject),
|
|
15
|
+
contentType: optional(string({
|
|
16
|
+
typeComment: 'The content type to use when encoding/decoding a message payload (for example application/json).',
|
|
17
|
+
})),
|
|
18
|
+
name: optional(string({ typeComment: 'A machine-friendly name for the message.' })),
|
|
19
|
+
title: optional(string({ typeComment: 'A human-friendly title for the message.' })),
|
|
20
|
+
summary: optional(string({ typeComment: 'A short summary of what the message is about.' })),
|
|
21
|
+
description: optional(string({
|
|
22
|
+
typeComment: 'A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.',
|
|
23
|
+
})),
|
|
24
|
+
tags: optional(asyncApiTagsObject),
|
|
25
|
+
externalDocs: optional(asyncApiExternalDocumentationObject),
|
|
26
|
+
bindings: optional(recursiveRef(asyncApiMessageBindingsObject)),
|
|
27
|
+
examples: optional(array(recursiveRef(asyncApiMessageExampleObject))),
|
|
28
|
+
traits: optional(array(asyncApiMessageTraitObject)),
|
|
29
|
+
}, { typeName: 'AsyncApiMessageObject' })));
|
|
30
|
+
export const asyncApiMessagesObject = record(string(), asyncApiMessageObject, {
|
|
31
|
+
typeName: 'AsyncApiMessagesObject',
|
|
32
|
+
typeComment: 'Map of messageId to Message Object or Reference Object.',
|
|
33
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const asyncApiOAuthFlowObject: import("@scalar/validation").ObjectSchema<{
|
|
2
|
+
authorizationUrl: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
3
|
+
tokenUrl: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
4
|
+
refreshUrl: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
5
|
+
availableScopes: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").StringSchema>>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const asyncApiOAuthFlowsObject: import("@scalar/validation").ObjectSchema<{
|
|
8
|
+
implicit: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
9
|
+
password: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
10
|
+
clientCredentials: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
11
|
+
authorizationCode: import("@scalar/validation").OptionalSchema<import("@scalar/validation").Schema>;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/oauth.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;;;;;EAyBnC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;EAQpC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { object, optional, record, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
export const asyncApiOAuthFlowObject = object({
|
|
4
|
+
authorizationUrl: optional(string({
|
|
5
|
+
typeComment: 'REQUIRED for implicit and authorizationCode flows. The authorization URL (absolute URL).',
|
|
6
|
+
})),
|
|
7
|
+
tokenUrl: optional(string({
|
|
8
|
+
typeComment: 'REQUIRED for password, clientCredentials, and authorizationCode flows. The token URL (absolute URL).',
|
|
9
|
+
})),
|
|
10
|
+
refreshUrl: optional(string({
|
|
11
|
+
typeComment: 'The URL to be used for obtaining refresh tokens. This MUST be in the form of an absolute URL.',
|
|
12
|
+
})),
|
|
13
|
+
availableScopes: optional(record(string(), string(), {
|
|
14
|
+
typeComment: 'REQUIRED for OAuth2 flows. Map of scope name to a short description.',
|
|
15
|
+
})),
|
|
16
|
+
}, { typeName: 'AsyncApiOAuthFlowObject' });
|
|
17
|
+
export const asyncApiOAuthFlowsObject = object({
|
|
18
|
+
implicit: optional(recursiveRef(asyncApiOAuthFlowObject)),
|
|
19
|
+
password: optional(recursiveRef(asyncApiOAuthFlowObject)),
|
|
20
|
+
clientCredentials: optional(recursiveRef(asyncApiOAuthFlowObject)),
|
|
21
|
+
authorizationCode: optional(recursiveRef(asyncApiOAuthFlowObject)),
|
|
22
|
+
}, { typeName: 'AsyncApiOAuthFlowsObject' });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-reply-address.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/operation-reply-address.ts"],"names":[],"mappings":"AAIA,wDAAwD;AACxD,eAAO,MAAM,mCAAmC,qCAe/C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
/** Operation Reply Address Object | Reference Object */
|
|
4
|
+
export const asyncApiOperationReplyAddressObject = recursiveRef(object({
|
|
5
|
+
description: optional(string({
|
|
6
|
+
typeComment: 'An optional description of the address. CommonMark syntax MAY be used for rich text representation.',
|
|
7
|
+
})),
|
|
8
|
+
location: string({
|
|
9
|
+
typeComment: 'REQUIRED. A runtime expression that specifies the location of the reply address.',
|
|
10
|
+
}),
|
|
11
|
+
}, { typeName: 'AsyncApiOperationReplyAddressObject' }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-reply.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/operation-reply.ts"],"names":[],"mappings":"AAOA,gDAAgD;AAChD,eAAO,MAAM,4BAA4B,oFAgBxC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { array, lazy, object, optional } from '@scalar/validation';
|
|
2
|
+
import { asyncApiChannelObject } from './channel.js';
|
|
3
|
+
import { asyncApiMessageObject } from './message.js';
|
|
4
|
+
import { asyncApiOperationReplyAddressObject } from './operation-reply-address.js';
|
|
5
|
+
import { asyncApiResolvedReference, recursiveRef } from './reference.js';
|
|
6
|
+
/** Operation Reply Object | Reference Object */
|
|
7
|
+
export const asyncApiOperationReplyObject = lazy(() => recursiveRef(object({
|
|
8
|
+
address: optional(asyncApiOperationReplyAddressObject),
|
|
9
|
+
channel: optional(asyncApiResolvedReference(asyncApiChannelObject)),
|
|
10
|
+
messages: optional(array(asyncApiResolvedReference(asyncApiMessageObject), {
|
|
11
|
+
typeComment: 'List of $ref pointers to Message Objects used as reply payloads (Reference Objects only in the raw document).',
|
|
12
|
+
})),
|
|
13
|
+
}, { typeName: 'AsyncApiOperationReplyObject' })));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-trait.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/operation-trait.ts"],"names":[],"mappings":"AAQA,gDAAgD;AAChD,eAAO,MAAM,4BAA4B,qCAuBxC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { array, object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { asyncApiOperationBindingsObject } from './bindings.js';
|
|
3
|
+
import { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
4
|
+
import { recursiveRef } from './reference.js';
|
|
5
|
+
import { asyncApiSecuritySchemeObject } from './security-scheme.js';
|
|
6
|
+
import { asyncApiTagsObject } from './tag.js';
|
|
7
|
+
/** Operation Trait Object | Reference Object */
|
|
8
|
+
export const asyncApiOperationTraitObject = recursiveRef(object({
|
|
9
|
+
title: optional(string({ typeComment: 'A human-friendly title for the operation.' })),
|
|
10
|
+
summary: optional(string({ typeComment: 'A short summary of what the operation is about.' })),
|
|
11
|
+
description: optional(string({
|
|
12
|
+
typeComment: 'A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.',
|
|
13
|
+
})),
|
|
14
|
+
security: optional(array(asyncApiSecuritySchemeObject, {
|
|
15
|
+
typeComment: 'Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.',
|
|
16
|
+
})),
|
|
17
|
+
tags: optional(asyncApiTagsObject),
|
|
18
|
+
externalDocs: optional(asyncApiExternalDocumentationObject),
|
|
19
|
+
bindings: optional(recursiveRef(asyncApiOperationBindingsObject)),
|
|
20
|
+
}, { typeName: 'AsyncApiOperationTraitObject' }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Operation Object | Reference Object */
|
|
2
|
+
export declare const asyncApiOperationObject: import("@scalar/validation").LazySchema<() => import("@scalar/validation").Schema>;
|
|
3
|
+
export declare const asyncApiOperationsObject: import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").LazySchema<() => import("@scalar/validation").Schema>>;
|
|
4
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/operation.ts"],"names":[],"mappings":"AAYA,0CAA0C;AAC1C,eAAO,MAAM,uBAAuB,oFAsCnC,CAAA;AAED,eAAO,MAAM,wBAAwB,0KAGnC,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { array, lazy, literal, object, optional, record, string, union } from '@scalar/validation';
|
|
2
|
+
import { asyncApiOperationBindingsObject } from './bindings.js';
|
|
3
|
+
import { asyncApiChannelObject } from './channel.js';
|
|
4
|
+
import { asyncApiExternalDocumentationObject } from './external-documentation.js';
|
|
5
|
+
import { asyncApiMessageObject } from './message.js';
|
|
6
|
+
import { asyncApiOperationReplyObject } from './operation-reply.js';
|
|
7
|
+
import { asyncApiOperationTraitObject } from './operation-trait.js';
|
|
8
|
+
import { asyncApiResolvedReference, recursiveRef } from './reference.js';
|
|
9
|
+
import { asyncApiSecuritySchemeObject } from './security-scheme.js';
|
|
10
|
+
import { asyncApiTagsObject } from './tag.js';
|
|
11
|
+
/** Operation Object | Reference Object */
|
|
12
|
+
export const asyncApiOperationObject = lazy(() => recursiveRef(object({
|
|
13
|
+
action: union([literal('send'), literal('receive')], {
|
|
14
|
+
typeComment: 'REQUIRED. send when the application sends to the channel; receive when it receives from the channel.',
|
|
15
|
+
}),
|
|
16
|
+
channel: asyncApiResolvedReference(asyncApiChannelObject),
|
|
17
|
+
title: optional(string({ typeComment: 'A human-friendly title for the operation.' })),
|
|
18
|
+
summary: optional(string({ typeComment: 'A short summary of what the operation is about.' })),
|
|
19
|
+
description: optional(string({
|
|
20
|
+
typeComment: 'A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.',
|
|
21
|
+
})),
|
|
22
|
+
security: optional(array(asyncApiSecuritySchemeObject, {
|
|
23
|
+
typeComment: 'Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.',
|
|
24
|
+
})),
|
|
25
|
+
tags: optional(asyncApiTagsObject),
|
|
26
|
+
externalDocs: optional(asyncApiExternalDocumentationObject),
|
|
27
|
+
bindings: optional(recursiveRef(asyncApiOperationBindingsObject)),
|
|
28
|
+
traits: optional(array(asyncApiOperationTraitObject)),
|
|
29
|
+
messages: optional(array(asyncApiResolvedReference(asyncApiMessageObject), {
|
|
30
|
+
typeComment: 'Subset of channel messages as Reference Objects only. Omit to include all channel messages; use [] for none.',
|
|
31
|
+
})),
|
|
32
|
+
reply: optional(asyncApiOperationReplyObject),
|
|
33
|
+
}, { typeName: 'AsyncApiOperationObject' })));
|
|
34
|
+
export const asyncApiOperationsObject = record(string(), asyncApiOperationObject, {
|
|
35
|
+
typeName: 'AsyncApiOperationsObject',
|
|
36
|
+
typeComment: 'Map of operationId to Operation Object or Reference Object.',
|
|
37
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/parameter.ts"],"names":[],"mappings":"AAIA,0CAA0C;AAC1C,eAAO,MAAM,uBAAuB,qCAsBnC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { array, object, optional, string } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
/** Parameter Object | Reference Object */
|
|
4
|
+
export const asyncApiParameterObject = recursiveRef(object({
|
|
5
|
+
enum: optional(array(string(), { typeComment: 'An enumeration of string values for substitution.' })),
|
|
6
|
+
default: optional(string({
|
|
7
|
+
typeComment: 'The default value to use for substitution, and to send, if an alternate value is not supplied.',
|
|
8
|
+
})),
|
|
9
|
+
description: optional(string({
|
|
10
|
+
typeComment: 'An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.',
|
|
11
|
+
})),
|
|
12
|
+
examples: optional(array(string(), { typeComment: 'Examples of the parameter value.' })),
|
|
13
|
+
location: optional(string({ typeComment: 'A runtime expression that specifies the location of the parameter value.' })),
|
|
14
|
+
}, { typeName: 'AsyncApiParameterObject' }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/parameters.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB,2HAGnC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { record, string } from '@scalar/validation';
|
|
2
|
+
import { asyncApiParameterObject } from './parameter.js';
|
|
3
|
+
export const asyncApiParametersObject = record(string(), asyncApiParameterObject, {
|
|
4
|
+
typeName: 'AsyncApiParametersObject',
|
|
5
|
+
typeComment: 'Map of parameter name to Parameter Object or Reference Object.',
|
|
6
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Schema } from '@scalar/validation';
|
|
2
|
+
/**
|
|
3
|
+
* Wraps an inline schema so it may also be satisfied by an AsyncAPI Reference Object.
|
|
4
|
+
*
|
|
5
|
+
* Schemas in this folder use {@link recursiveRef} directly. Use {@link recursiveRef} only when
|
|
6
|
+
* generating types for resolved or proxy documents (see `generate-types.ts`).
|
|
7
|
+
*/
|
|
8
|
+
export type MaybeRefFn = (inner: Schema) => Schema;
|
|
9
|
+
/**
|
|
10
|
+
* AsyncAPI Reference Object (JSON Reference). Only `$ref` is defined; additional
|
|
11
|
+
* properties SHALL be ignored per the specification.
|
|
12
|
+
*/
|
|
13
|
+
export declare const asyncApiReferenceObject: import("@scalar/validation").ObjectSchema<{
|
|
14
|
+
$ref: import("@scalar/validation").StringSchema;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Reference Object with resolved `$ref-value` and bundle extensions.
|
|
18
|
+
*
|
|
19
|
+
* Use when the specification allows only a Reference Object (not an inline object), for example
|
|
20
|
+
* `operation.channel` or `channel.servers`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const asyncApiResolvedReference: (schema: Schema) => Schema;
|
|
23
|
+
/** Inline object or Reference Object with resolved `$ref-value`. */
|
|
24
|
+
export declare const recursiveRef: (schema: Schema) => Schema;
|
|
25
|
+
//# sourceMappingURL=reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/reference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAiD,MAAM,oBAAoB,CAAA;AAI/F;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;EAKnC,CAAA;AAUD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,QAAQ,MAAM,KAAG,MACkD,CAAA;AAE7G,oEAAoE;AACpE,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,MAA4D,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { evaluate, intersection, object, string, union } from '@scalar/validation';
|
|
3
|
+
import { referenceExtensions } from '../../general/bundler-extensions.js';
|
|
4
|
+
/**
|
|
5
|
+
* AsyncAPI Reference Object (JSON Reference). Only `$ref` is defined; additional
|
|
6
|
+
* properties SHALL be ignored per the specification.
|
|
7
|
+
*/
|
|
8
|
+
export const asyncApiReferenceObject = object({
|
|
9
|
+
'$ref': string({ typeComment: 'REQUIRED. The reference string.' }),
|
|
10
|
+
}, { typeName: 'AsyncApiReferenceObject', typeComment: 'JSON Reference for AsyncAPI components.' });
|
|
11
|
+
const e = (value) => {
|
|
12
|
+
if (isObject(value) && '$ref' in value) {
|
|
13
|
+
return e(value['$ref-value']);
|
|
14
|
+
}
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Reference Object with resolved `$ref-value` and bundle extensions.
|
|
19
|
+
*
|
|
20
|
+
* Use when the specification allows only a Reference Object (not an inline object), for example
|
|
21
|
+
* `operation.channel` or `channel.servers`.
|
|
22
|
+
*/
|
|
23
|
+
export const asyncApiResolvedReference = (schema) => intersection([asyncApiReferenceObject, object({ '$ref-value': evaluate(e, schema) }), referenceExtensions]);
|
|
24
|
+
/** Inline object or Reference Object with resolved `$ref-value`. */
|
|
25
|
+
export const recursiveRef = (schema) => union([schema, asyncApiResolvedReference(schema)]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const asyncApiMultiFormatSchemaObject: import("@scalar/validation").ObjectSchema<{
|
|
2
|
+
schemaFormat: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
3
|
+
schema: import("@scalar/validation").UnknownSchema;
|
|
4
|
+
}>;
|
|
5
|
+
/** Multi Format Schema Object | Schema Object | Reference Object */
|
|
6
|
+
export declare const asyncApiSchemaPayload: import("@scalar/validation").Schema;
|
|
7
|
+
//# sourceMappingURL=schema-payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-payload.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/schema-payload.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,+BAA+B;;;EAa3C,CAAA;AAcD,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,qCAIjC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { literal, object, optional, string, union, unknown } from '@scalar/validation';
|
|
2
|
+
import { recursiveRef } from './reference.js';
|
|
3
|
+
export const asyncApiMultiFormatSchemaObject = object({
|
|
4
|
+
schemaFormat: optional(string({
|
|
5
|
+
typeComment: 'Media type identifying the schema format. When omitted, defaults to the AsyncAPI JSON Schema vocabulary for the document version.',
|
|
6
|
+
})),
|
|
7
|
+
schema: unknown({
|
|
8
|
+
typeComment: 'REQUIRED. Schema definition in the format given by schemaFormat.',
|
|
9
|
+
}),
|
|
10
|
+
}, { typeName: 'AsyncApiMultiFormatSchemaObject' });
|
|
11
|
+
const asyncApiSchemaJsonShape = union([
|
|
12
|
+
literal(true),
|
|
13
|
+
literal(false),
|
|
14
|
+
unknown({
|
|
15
|
+
typeName: 'AsyncApiSchemaObject',
|
|
16
|
+
typeComment: 'JSON Schema Draft 07 compatible schema (boolean true/false or object); see AsyncAPI Schema Object.',
|
|
17
|
+
}),
|
|
18
|
+
], { typeName: 'AsyncApiSchemaJsonShape' });
|
|
19
|
+
/** Multi Format Schema Object | Schema Object | Reference Object */
|
|
20
|
+
export const asyncApiSchemaPayload = recursiveRef(union([asyncApiMultiFormatSchemaObject, asyncApiSchemaJsonShape], {
|
|
21
|
+
typeName: 'AsyncApiMultiFormatSchemaOrSchemaObject',
|
|
22
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../src/asyncapi/3.1/security-scheme.ts"],"names":[],"mappings":"AAKA,gDAAgD;AAChD,eAAO,MAAM,4BAA4B,qCA6DxC,CAAA"}
|