@scalar/workspace-store 0.75.0 → 0.77.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 +40 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +76 -62
- package/dist/entities/auth/index.d.ts.map +1 -1
- package/dist/entities/auth/index.js +26 -14
- package/dist/entities/auth/schema.d.ts +65 -0
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/entities/history/index.d.ts.map +1 -1
- package/dist/entities/history/index.js +25 -14
- package/dist/helpers/dynamic-ref.d.ts +4 -25
- package/dist/helpers/dynamic-ref.d.ts.map +1 -1
- package/dist/helpers/dynamic-ref.js +33 -76
- package/dist/helpers/get-resolved-security-scheme.d.ts +12 -0
- package/dist/helpers/get-resolved-security-scheme.d.ts.map +1 -0
- package/dist/helpers/get-resolved-security-scheme.js +24 -0
- package/dist/helpers/resolve-form-schema.js +1 -1
- package/dist/helpers/resolve-schema-with-annotations.js +1 -1
- package/dist/helpers/resolve-security-requirements.js +2 -2
- package/dist/mutators/document.js +3 -3
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +10 -0
- package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-asyncapi-document.js +37 -3
- package/dist/request-example/builder/body/aspnet-form-fields.d.ts +26 -0
- package/dist/request-example/builder/body/aspnet-form-fields.d.ts.map +1 -0
- package/dist/request-example/builder/body/aspnet-form-fields.js +179 -0
- package/dist/request-example/builder/body/build-multipart.d.ts.map +1 -1
- package/dist/request-example/builder/body/build-multipart.js +9 -5
- package/dist/request-example/builder/body/build-request-body.d.ts +5 -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 +38 -8
- 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 +21 -16
- package/dist/request-example/builder/helpers/get-example.js +1 -1
- package/dist/request-example/builder/helpers/get-resolved-url.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-resolved-url.js +2 -4
- package/dist/request-example/builder/helpers/get-server-variables.d.ts +1 -1
- package/dist/request-example/builder/helpers/get-server-variables.d.ts.map +1 -1
- package/dist/request-example/builder/helpers/get-server-variables.js +2 -12
- package/dist/request-example/builder/helpers/resolve-server-url.d.ts +4 -0
- package/dist/request-example/builder/helpers/resolve-server-url.d.ts.map +1 -0
- package/dist/request-example/builder/helpers/resolve-server-url.js +4 -0
- 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 +3 -1
- package/dist/request-example/builder/request-factory.d.ts.map +1 -1
- package/dist/request-example/builder/request-factory.js +6 -7
- package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
- package/dist/request-example/context/security/merge-security.js +13 -1
- package/dist/request-example/index.d.ts +2 -1
- package/dist/request-example/index.d.ts.map +1 -1
- package/dist/request-example/index.js +2 -1
- package/dist/request-example/xml/get-xml-example.js +7 -5
- package/dist/request-example/xml/write-xml.d.ts +2 -0
- package/dist/request-example/xml/write-xml.d.ts.map +1 -1
- package/dist/request-example/xml/write-xml.js +14 -4
- package/dist/{resolve.d.ts → resolve/index.d.ts} +3 -3
- package/dist/resolve/index.d.ts.map +1 -0
- package/dist/{resolve.js → resolve/index.js} +7 -5
- package/dist/schemas/navigation.d.ts +47 -2
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +11 -0
- package/dist/schemas/reference-config/index.d.ts +13 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +13 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +455 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +455 -0
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11 -10
- package/package.json +16 -15
- package/dist/resolve.d.ts.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MultipartNaming } from '@scalar/types/api-reference';
|
|
1
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
3
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
3
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document';
|
|
@@ -187,7 +188,7 @@ export type RequestFactory = {
|
|
|
187
188
|
* Builds a request object fastory which can be used to build a request object.
|
|
188
189
|
* @returns A request object factory
|
|
189
190
|
*/
|
|
190
|
-
export declare const requestFactory: ({ exampleName, globalCookies, method, operation, path, proxyUrl, server, defaultHeaders, isElectron, selectedSecuritySchemes, openapiVersion, jsonSchemaDialect, requestBodyCompositionSelection, }: RequestExampleMeta & {
|
|
191
|
+
export declare const requestFactory: ({ exampleName, globalCookies, method, operation, path, proxyUrl, server, defaultHeaders, isElectron, selectedSecuritySchemes, openapiVersion, jsonSchemaDialect, requestBodyCompositionSelection, multipartNaming, }: RequestExampleMeta & {
|
|
191
192
|
/** The operation object */
|
|
192
193
|
operation: OperationObject;
|
|
193
194
|
/** For environment variables in the inputs */
|
|
@@ -210,6 +211,7 @@ export declare const requestFactory: ({ exampleName, globalCookies, method, oper
|
|
|
210
211
|
/** Document default for schema resources without $schema. */
|
|
211
212
|
jsonSchemaDialect?: string;
|
|
212
213
|
requestBodyCompositionSelection?: Record<string, number>;
|
|
214
|
+
multipartNaming?: MultipartNaming;
|
|
213
215
|
}) => {
|
|
214
216
|
request: RequestFactory;
|
|
215
217
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-factory.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/request-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-factory.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/request-factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAE5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,KAAK,oBAAoB,EAA2B,MAAM,iCAAiC,CAAA;AAEpG,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,2DAA2D,CAAA;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AACjG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,OAAO,EAAE,KAAK,WAAW,EAAoB,MAAM,2BAA2B,CAAA;AAG9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,IAAI,EAAE;QACJ;;;;;WAKG;QACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QACjC,kDAAkD;QAClD,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;QAClC,gEAAgE;QAChE,kBAAkB,CAAC,E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tC,qEAAqE;IACrE,UAAU,EAAE,OAAO,CAAA;IACnB,8DAA8D;IAC9D,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,sEAAsE;IACtE,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,+BAA+B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxD,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,KAAG;IACF,OAAO,EAAE,cAAc,CAAA;CAgFxB,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { canMethodHaveBody } from '@scalar/helpers/http/can-method-have-body';
|
|
2
2
|
import { isHttpMethod } from '@scalar/helpers/http/is-http-method';
|
|
3
|
-
import { replacePathVariables } from '@scalar/helpers/regex/replace-variables';
|
|
4
3
|
import { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref';
|
|
5
4
|
import { getQuerystringParameter } from '../../helpers/querystring-parameter.js';
|
|
6
|
-
import {
|
|
5
|
+
import { resolveServerUrl } from './helpers/resolve-server-url.js';
|
|
7
6
|
import { buildRequestSecurity, } from './security/build-request-security.js';
|
|
8
7
|
import { filterDisabledDefaultHeaders } from '../context/headers.js';
|
|
9
8
|
import { buildRequestBody } from './body/build-request-body.js';
|
|
@@ -12,7 +11,7 @@ import { buildRequestParameters } from './header/build-request-parameters.js';
|
|
|
12
11
|
* Builds a request object fastory which can be used to build a request object.
|
|
13
12
|
* @returns A request object factory
|
|
14
13
|
*/
|
|
15
|
-
export const requestFactory = ({ exampleName, globalCookies, method, operation, path, proxyUrl, server, defaultHeaders, isElectron, selectedSecuritySchemes, openapiVersion, jsonSchemaDialect, requestBodyCompositionSelection, }) => {
|
|
14
|
+
export const requestFactory = ({ exampleName, globalCookies, method, operation, path, proxyUrl, server, defaultHeaders, isElectron, selectedSecuritySchemes, openapiVersion, jsonSchemaDialect, requestBodyCompositionSelection, multipartNaming, }) => {
|
|
16
15
|
const requestBody = getResolvedRef(operation.requestBody);
|
|
17
16
|
/** Build out the request parameters */
|
|
18
17
|
const params = buildRequestParameters(operation.parameters ?? [], exampleName, openapiVersion);
|
|
@@ -29,15 +28,15 @@ export const requestFactory = ({ exampleName, globalCookies, method, operation,
|
|
|
29
28
|
});
|
|
30
29
|
// If the method can have a body, build the request body, otherwise set it to null
|
|
31
30
|
const body = canMethodHaveBody(method)
|
|
32
|
-
? buildRequestBody(requestBody, exampleName, requestBodyCompositionSelection, openapiVersion, jsonSchemaDialect
|
|
31
|
+
? buildRequestBody(requestBody, exampleName, requestBodyCompositionSelection, openapiVersion, jsonSchemaDialect, {
|
|
32
|
+
multipartNaming,
|
|
33
|
+
})
|
|
33
34
|
: null;
|
|
34
35
|
// Delete the Content-Type header so the browser will set it automatically based on the request body
|
|
35
36
|
if (body?.mode === 'formdata' || body?.mode === 'urlencoded') {
|
|
36
37
|
headers.delete('Content-Type');
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
const serverVariables = getServerVariables(server);
|
|
40
|
-
const baseUrl = replacePathVariables(server?.url ?? '', serverVariables);
|
|
39
|
+
const baseUrl = resolveServerUrl(server);
|
|
41
40
|
const globalCookieFilter = operation['x-scalar-disable-parameters']?.['global-cookies']?.[exampleName] ?? {};
|
|
42
41
|
const cookiesList = [
|
|
43
42
|
...globalCookies.map((c) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/merge-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAgC,MAAM,4BAA4B,CAAA;AACxG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAKtE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAKjG,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AA4E9E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,4BAEpB,gBAAgB,CAAC,iBAAiB,CAAC,GACnC,WAAW,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,yBACrC,2BAA2B,CAAC,iBAAiB,CAAC,aAC1D,SAAS,gBACN,MAAM,sBACA,MAAM,KACzB,
|
|
1
|
+
{"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/merge-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAgC,MAAM,4BAA4B,CAAA;AACxG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAKtE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAKjG,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AA4E9E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,4BAEpB,gBAAgB,CAAC,iBAAiB,CAAC,GACnC,WAAW,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,yBACrC,2BAA2B,CAAC,iBAAiB,CAAC,aAC1D,SAAS,gBACN,MAAM,sBACA,MAAM,KACzB,qBAgFF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isObjectLike } from '@scalar/helpers/object/is-object';
|
|
1
|
+
import { isObject, isObjectLike } from '@scalar/helpers/object/is-object';
|
|
2
2
|
import { objectEntries } from '@scalar/helpers/object/object-entries';
|
|
3
3
|
import { Type } from '@scalar/typebox';
|
|
4
4
|
import { deepClone } from '@scalar/workspace-store/helpers/deep-clone';
|
|
@@ -119,6 +119,18 @@ export const mergeSecurity = (documentSecuritySchemes = {}, configSecurityScheme
|
|
|
119
119
|
}
|
|
120
120
|
// We coerce in case the scheme is missing any key fields like type.
|
|
121
121
|
const coerced = coerceValue(SecuritySchemeObjectSchema, scheme);
|
|
122
|
+
if (coerced.type === 'oauth2' && isObjectLike(scheme) && isObjectLike(scheme.flows)) {
|
|
123
|
+
// Casting fills missing fields but can drop flow configuration such as the client ID.
|
|
124
|
+
// Restore those fields per flow so normalized nested values still replace invalid inputs.
|
|
125
|
+
const flows = coerced.flows;
|
|
126
|
+
for (const [flowName, flow] of objectEntries(flows)) {
|
|
127
|
+
const originalFlow = scheme.flows[flowName];
|
|
128
|
+
if (isObject(flow) && isObject(originalFlow)) {
|
|
129
|
+
// Spread treats JSON keys as data, including __proto__.
|
|
130
|
+
flows[flowName] = { ...originalFlow, ...flow };
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
122
134
|
const merged = { ...(isObjectLike(scheme) ? scheme : {}), ...coerced };
|
|
123
135
|
const extracted = extractSecuritySchemeSecrets(merged, authStore, name, documentName, oauth2RedirectUri);
|
|
124
136
|
const configured = Object.hasOwn(configSecuritySchemes, name) ? configSecuritySchemes[name] : undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ApiKeyObjectSecret, BuildRequestData, BuildRequestFailureCode, BuildRequestResult, EncryptionObjectSecret, GssapiObjectSecret, HttpObjectSecret, OAuth2ObjectSecret, OAuthFlowAuthorizationCodeSecret, OAuthFlowClientCredentialsSecret, OAuthFlowDeviceAuthorizationSecret, OAuthFlowImplicitSecret, OAuthFlowPasswordSecret, OAuthFlowsObjectSecret, OpenIdConnectObjectSecret, RequestPayload, ResolveRequestFactoryUrlError, ResolveRequestFactoryUrlResult, SaslObjectSecret, SecuritySchemeObjectSecret, X509ObjectSecret, } from './builder/index.js';
|
|
2
|
-
export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, type RequestFactory, type SerializedFormProperty, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
|
|
2
|
+
export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, type RequestFactory, type SerializedFormProperty, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, resolveServerUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
|
|
3
|
+
export { getAspNetFormFields, usesAspNetFormNaming, } from './builder/body/aspnet-form-fields.js';
|
|
3
4
|
export { getMultipartItemSchema, needsMultipartEncoding } from './builder/body/build-multipart.js';
|
|
4
5
|
export { buildRequestBody } from './builder/body/build-request-body.js';
|
|
5
6
|
export { serializeMultipartBody } from './builder/body/encode-multipart-body.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-example/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,iCAAiC,EACjC,kBAAkB,EAClB,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,sBAAsB,EAAE,sBAAsB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AACtD,OAAO,EACL,KAAK,0BAA0B,EAC/B,aAAa,EACb,4BAA4B,EAC5B,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,aAAa,EACb,qCAAqC,EACrC,6BAA6B,GAC9B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAA;AAClG,OAAO,EACL,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAA;AACjE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,KAAK,iBAAiB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
|
|
1
|
+
export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, resolveServerUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
|
|
2
|
+
export { getAspNetFormFields, usesAspNetFormNaming, } from './builder/body/aspnet-form-fields.js';
|
|
2
3
|
export { getMultipartItemSchema, needsMultipartEncoding } from './builder/body/build-multipart.js';
|
|
3
4
|
export { buildRequestBody } from './builder/body/build-request-body.js';
|
|
4
5
|
export { serializeMultipartBody } from './builder/body/encode-multipart-body.js';
|
|
@@ -84,13 +84,14 @@ const buildXmlExample = (value, input, options, evaluation) => {
|
|
|
84
84
|
return { schema: source, scope: context.scope, evaluations: context.evaluation?.children ?? [] };
|
|
85
85
|
}
|
|
86
86
|
let schema = getResolvedRef(source, mergeSiblingReferences);
|
|
87
|
+
// A reference declared on a resource bookends against that resource, matching the magic proxy.
|
|
88
|
+
const scope = pushDynamicScope(context.scope, schema);
|
|
87
89
|
if (isDynamicRef(schema)) {
|
|
88
|
-
const bound = resolveDynamicRef(schema.$dynamicRef,
|
|
90
|
+
const bound = resolveDynamicRef(schema.$dynamicRef, scope);
|
|
89
91
|
if (bound) {
|
|
90
|
-
return shape(bound, context, seen);
|
|
92
|
+
return shape(bound, { ...context, scope }, seen);
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
|
-
const scope = pushDynamicScope(context.scope, schema);
|
|
94
95
|
const evaluations = [...(context.evaluation?.children ?? [])];
|
|
95
96
|
const contributions = context.evaluation?.children.filter((child) => child.path.length === context.path.length ||
|
|
96
97
|
(child.name === undefined &&
|
|
@@ -168,7 +169,8 @@ const buildXmlExample = (value, input, options, evaluation) => {
|
|
|
168
169
|
// In 3.2 a reference site and its target can describe different XML nodes.
|
|
169
170
|
// Resolving them into one object would erase an explicit wrapper or a transparent target.
|
|
170
171
|
const referenceTarget = source && '$ref-value' in source ? source['$ref-value'] : undefined;
|
|
171
|
-
const
|
|
172
|
+
const sourceScope = pushDynamicScope(context.scope, source);
|
|
173
|
+
const dynamicTarget = isDynamicRef(source) ? resolveDynamicRef(source.$dynamicRef, sourceScope) : undefined;
|
|
172
174
|
const target = referenceTarget ?? dynamicTarget;
|
|
173
175
|
if (version32 && target && typeof target === 'object') {
|
|
174
176
|
const localXml = source.xml ?? {};
|
|
@@ -181,7 +183,7 @@ const buildXmlExample = (value, input, options, evaluation) => {
|
|
|
181
183
|
const children = map(data, target, referenceName ?? inheritedName, {
|
|
182
184
|
...context,
|
|
183
185
|
depth: context.depth + 1,
|
|
184
|
-
scope:
|
|
186
|
+
scope: sourceScope,
|
|
185
187
|
evaluation: dynamicTarget ? context.evaluation?.children[0] : context.evaluation,
|
|
186
188
|
}, attributes);
|
|
187
189
|
if (localKind === 'none') {
|
|
@@ -3,6 +3,8 @@ import type { XmlExampleResult, XmlNode } from './xml-node.js';
|
|
|
3
3
|
export type WriteXmlOptions = {
|
|
4
4
|
format?: boolean;
|
|
5
5
|
xmlDeclaration?: boolean;
|
|
6
|
+
/** Use character references for line breaks and non-ASCII data in HTTP header examples. */
|
|
7
|
+
escapeForHttpHeader?: boolean;
|
|
6
8
|
};
|
|
7
9
|
/** Serialize an XML document, validating names, characters, and namespace bindings. */
|
|
8
10
|
export declare const writeXml: (nodes: XmlNode[], options?: WriteXmlOptions) => XmlExampleResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-xml.d.ts","sourceRoot":"","sources":["../../../src/request-example/xml/write-xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,gBAAgB,EAAW,OAAO,EAAE,MAAM,YAAY,CAAA;AAWnF,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"write-xml.d.ts","sourceRoot":"","sources":["../../../src/request-example/xml/write-xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,gBAAgB,EAAW,OAAO,EAAE,MAAM,YAAY,CAAA;AAWnF,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2FAA2F;IAC3F,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,uFAAuF;AACvF,eAAO,MAAM,QAAQ,UAAW,OAAO,EAAE,YAAW,eAAe,KAAQ,gBAuI1E,CAAA"}
|
|
@@ -11,13 +11,20 @@ export const writeXml = (nodes, options = {}) => {
|
|
|
11
11
|
const fail = (code, message, path) => {
|
|
12
12
|
diagnostics.push({ severity: 'error', code, message, path });
|
|
13
13
|
};
|
|
14
|
+
// XML parsers normalize carriage returns even in CDATA. Header examples also need single-line, ASCII data.
|
|
15
|
+
const referenceCharacters = options.escapeForHttpHeader ? /[\r\n\u007f-\u{10ffff}]/gu : /\r/g;
|
|
16
|
+
const characterReference = (character) => `&#${character.codePointAt(0)};`;
|
|
14
17
|
const escapeXml = (value, attribute, path) => {
|
|
15
18
|
if (invalidCharacter.test(value)) {
|
|
16
19
|
fail('invalid-character', 'The value contains a character XML 1.0 cannot represent.', path);
|
|
17
20
|
}
|
|
18
|
-
const escaped = value
|
|
21
|
+
const escaped = value
|
|
22
|
+
.replace(/&/g, '&')
|
|
23
|
+
.replace(/</g, '<')
|
|
24
|
+
.replace(/>/g, '>')
|
|
25
|
+
.replace(referenceCharacters, characterReference);
|
|
19
26
|
// XML parsers normalize literal whitespace in attributes, so encode it explicitly.
|
|
20
|
-
return attribute ? escaped.replace(/
|
|
27
|
+
return attribute ? escaped.replace(/\n/g, ' ').replace(/"/g, '"').replace(/\t/g, '	') : escaped;
|
|
21
28
|
};
|
|
22
29
|
let generatedPrefix = 0;
|
|
23
30
|
let count = 0;
|
|
@@ -33,8 +40,11 @@ export const writeXml = (nodes, options = {}) => {
|
|
|
33
40
|
if (invalidCharacter.test(node.value)) {
|
|
34
41
|
fail('invalid-character', 'The CDATA contains a character XML 1.0 cannot represent.', path);
|
|
35
42
|
}
|
|
36
|
-
//
|
|
37
|
-
|
|
43
|
+
// References are interpreted only outside CDATA.
|
|
44
|
+
const cdata = node.value
|
|
45
|
+
.replace(/]]>/g, ']]]]><![CDATA[>')
|
|
46
|
+
.replace(referenceCharacters, (character) => `]]>${characterReference(character)}<![CDATA[`);
|
|
47
|
+
return `<![CDATA[${cdata}]]>`;
|
|
38
48
|
}
|
|
39
49
|
const bindings = new Map(inherited);
|
|
40
50
|
const declarations = new Map();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { MaybeRefSchemaObject, SchemaObject } from '
|
|
1
|
+
import type { MaybeRefSchemaObject, SchemaObject } from '../schemas/v3.2/strict/schema.js';
|
|
2
|
+
export { DYNAMIC_REF_VALUE } from '@scalar/json-magic/magic-proxy';
|
|
2
3
|
/**
|
|
3
4
|
* A resolved schema is a read-only view.
|
|
4
5
|
*
|
|
@@ -13,5 +14,4 @@ type ResolvedSchema<T> = T extends undefined ? undefined : Readonly<SchemaObject
|
|
|
13
14
|
export declare const resolve: {
|
|
14
15
|
schema: <T extends MaybeRefSchemaObject | boolean | undefined>(schema: T) => ResolvedSchema<T>;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=resolve.d.ts.map
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resolve/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAGtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE;;;;;;;GAOG;AACH,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAoBrG,eAAO,MAAM,OAAO;IAClB,MAAM,GAAG,CAAC,SAAS,oBAAoB,GAAG,OAAO,GAAG,SAAS,UAAU,CAAC,KAAG,cAAc,CAAC,CAAC,CAAC;CAc7F,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
-
import { getBooleanSchema } from '
|
|
3
|
-
import { getResolvedRef, mergeSiblingReferences } from '
|
|
4
|
-
import { compose } from '
|
|
5
|
-
import { coerceValue } from '
|
|
6
|
-
import { SchemaObjectSchema } from '
|
|
2
|
+
import { getBooleanSchema } from '../helpers/get-boolean-schema.js';
|
|
3
|
+
import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
|
|
4
|
+
import { compose } from '../schemas/compose.js';
|
|
5
|
+
import { coerceValue } from '../schemas/typebox-coerce.js';
|
|
6
|
+
import { SchemaObjectSchema } from '../schemas/v3.2/strict/openapi-document.js';
|
|
7
|
+
// Consumers resolve schema references through the store, including virtual dynamic bindings.
|
|
8
|
+
export { DYNAMIC_REF_VALUE } from '@scalar/json-magic/magic-proxy';
|
|
7
9
|
/**
|
|
8
10
|
* The coercion target: a schema object that may still carry the `$ref` it was resolved from.
|
|
9
11
|
*
|
|
@@ -171,6 +171,32 @@ export type TraversedAsyncApiMessage = BaseSchema & {
|
|
|
171
171
|
/** Parent channel key in `document.channels` */
|
|
172
172
|
channelName: string;
|
|
173
173
|
};
|
|
174
|
+
export declare const TraversedAsyncApiReusableMessageSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
175
|
+
id: import("@scalar/typebox").TString;
|
|
176
|
+
title: import("@scalar/typebox").TString;
|
|
177
|
+
}>, import("@scalar/typebox").TObject<{
|
|
178
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
|
|
179
|
+
name: import("@scalar/typebox").TString;
|
|
180
|
+
}>]>;
|
|
181
|
+
/** A reusable message keyed by its name in `document.components.messages`. */
|
|
182
|
+
export type TraversedAsyncApiReusableMessage = BaseSchema & {
|
|
183
|
+
type: 'asyncapi-reusable-message';
|
|
184
|
+
name: string;
|
|
185
|
+
};
|
|
186
|
+
export declare const TraversedAsyncApiMessagesSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
187
|
+
id: import("@scalar/typebox").TString;
|
|
188
|
+
title: import("@scalar/typebox").TString;
|
|
189
|
+
}>, import("@scalar/typebox").TObject<{
|
|
190
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
|
|
191
|
+
name: import("@scalar/typebox").TString;
|
|
192
|
+
children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
|
|
193
|
+
}>]>;
|
|
194
|
+
/** The top-level Messages section for reusable AsyncAPI messages. */
|
|
195
|
+
export type TraversedAsyncApiMessages = BaseSchema & {
|
|
196
|
+
type: 'asyncapi-messages';
|
|
197
|
+
name: string;
|
|
198
|
+
children: TraversedEntry[];
|
|
199
|
+
};
|
|
174
200
|
export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
175
201
|
id: import("@scalar/typebox").TString;
|
|
176
202
|
title: import("@scalar/typebox").TString;
|
|
@@ -351,6 +377,19 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
351
377
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
352
378
|
id: import("@scalar/typebox").TString;
|
|
353
379
|
title: import("@scalar/typebox").TString;
|
|
380
|
+
}>, import("@scalar/typebox").TObject<{
|
|
381
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
|
|
382
|
+
name: import("@scalar/typebox").TString;
|
|
383
|
+
children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
|
|
384
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
385
|
+
id: import("@scalar/typebox").TString;
|
|
386
|
+
title: import("@scalar/typebox").TString;
|
|
387
|
+
}>, import("@scalar/typebox").TObject<{
|
|
388
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
|
|
389
|
+
name: import("@scalar/typebox").TString;
|
|
390
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
391
|
+
id: import("@scalar/typebox").TString;
|
|
392
|
+
title: import("@scalar/typebox").TString;
|
|
354
393
|
}>, import("@scalar/typebox").TObject<{
|
|
355
394
|
type: import("@scalar/typebox").TLiteral<"model">;
|
|
356
395
|
ref: import("@scalar/typebox").TString;
|
|
@@ -422,7 +461,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
422
461
|
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
423
462
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
424
463
|
}>]>]>;
|
|
425
|
-
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels | TraversedPluginEntry;
|
|
464
|
+
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedAsyncApiMessages | TraversedAsyncApiReusableMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels | TraversedPluginEntry;
|
|
426
465
|
/**
|
|
427
466
|
* Type helper for when we are storing the parent entry in the entry itself.
|
|
428
467
|
* The parent is recursively defined to also include its own parent, except for
|
|
@@ -510,7 +549,13 @@ type AsyncApiMessageProps = {
|
|
|
510
549
|
channelName: string;
|
|
511
550
|
type: 'asyncapi-message';
|
|
512
551
|
};
|
|
513
|
-
|
|
552
|
+
type AsyncApiReusableMessageProps = {
|
|
553
|
+
parentId: string;
|
|
554
|
+
/** Omitted when generating the Messages section ID. */
|
|
555
|
+
name?: string;
|
|
556
|
+
type: 'asyncapi-reusable-message';
|
|
557
|
+
};
|
|
558
|
+
export type IdGeneratorProps = DocumentIdProps | DescriptionIdProps | TagProps | OperationProps | AsyncApiOperationProps | AsyncApiChannelProps | AsyncApiMessageProps | AsyncApiReusableMessageProps | WebhookProps | ModelProps | ExampleProps;
|
|
514
559
|
export type IdGenerator = (props: IdGeneratorProps) => string;
|
|
515
560
|
export {};
|
|
516
561
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WA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AAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,oBAAoB,CAAA;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,2BAA2B,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,oBAAoB,GACpB,4BAA4B,GAC5B,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
|
|
@@ -48,6 +48,15 @@ export const TraversedAsyncApiMessageSchemaDefinition = compose(NavigationBaseSc
|
|
|
48
48
|
messageName: Type.String(),
|
|
49
49
|
channelName: Type.String(),
|
|
50
50
|
}));
|
|
51
|
+
export const TraversedAsyncApiReusableMessageSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
|
|
52
|
+
type: Type.Literal('asyncapi-reusable-message'),
|
|
53
|
+
name: Type.String(),
|
|
54
|
+
}));
|
|
55
|
+
export const TraversedAsyncApiMessagesSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
|
|
56
|
+
type: Type.Literal('asyncapi-messages'),
|
|
57
|
+
name: Type.String(),
|
|
58
|
+
children: Type.Array(TraversedEntryObjectRef),
|
|
59
|
+
}));
|
|
51
60
|
export const TraversedSchemaSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
|
|
52
61
|
type: Type.Literal('model'),
|
|
53
62
|
ref: Type.String(),
|
|
@@ -91,6 +100,8 @@ export const TraversedEntrySchemaDefinition = Type.Union([
|
|
|
91
100
|
TraversedAsyncApiOperationSchemaDefinition,
|
|
92
101
|
TraversedAsyncApiChannelSchemaDefinition,
|
|
93
102
|
TraversedAsyncApiMessageSchemaDefinition,
|
|
103
|
+
TraversedAsyncApiMessagesSchemaDefinition,
|
|
104
|
+
TraversedAsyncApiReusableMessageSchemaDefinition,
|
|
94
105
|
TraversedSchemaSchemaDefinition,
|
|
95
106
|
TraversedTagSchemaDefinition,
|
|
96
107
|
TraversedWebhookSchemaDefinition,
|
|
@@ -1958,6 +1958,19 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1958
1958
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1959
1959
|
id: import("@scalar/typebox").TString;
|
|
1960
1960
|
title: import("@scalar/typebox").TString;
|
|
1961
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1962
|
+
type: TLiteral<"asyncapi-messages">;
|
|
1963
|
+
name: import("@scalar/typebox").TString;
|
|
1964
|
+
children: TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
|
|
1965
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1966
|
+
id: import("@scalar/typebox").TString;
|
|
1967
|
+
title: import("@scalar/typebox").TString;
|
|
1968
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1969
|
+
type: TLiteral<"asyncapi-reusable-message">;
|
|
1970
|
+
name: import("@scalar/typebox").TString;
|
|
1971
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1972
|
+
id: import("@scalar/typebox").TString;
|
|
1973
|
+
title: import("@scalar/typebox").TString;
|
|
1961
1974
|
}>, import("@scalar/typebox").TObject<{
|
|
1962
1975
|
type: TLiteral<"model">;
|
|
1963
1976
|
ref: import("@scalar/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAA2C,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cAAc,CAAA;AACnF,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,QAAQ,CAAA;AAC3D,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAA2C,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
|
|
@@ -1944,6 +1944,19 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1944
1944
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1945
1945
|
id: import("@scalar/typebox").TString;
|
|
1946
1946
|
title: import("@scalar/typebox").TString;
|
|
1947
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1948
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
|
|
1949
|
+
name: import("@scalar/typebox").TString;
|
|
1950
|
+
children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
|
|
1951
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1952
|
+
id: import("@scalar/typebox").TString;
|
|
1953
|
+
title: import("@scalar/typebox").TString;
|
|
1954
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1955
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
|
|
1956
|
+
name: import("@scalar/typebox").TString;
|
|
1957
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1958
|
+
id: import("@scalar/typebox").TString;
|
|
1959
|
+
title: import("@scalar/typebox").TString;
|
|
1947
1960
|
}>, import("@scalar/typebox").TObject<{
|
|
1948
1961
|
type: import("@scalar/typebox").TLiteral<"model">;
|
|
1949
1962
|
ref: import("@scalar/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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