@scalar/workspace-store 0.72.0 → 0.74.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 +38 -0
- package/README.md +10 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +96 -34
- package/dist/entities/auth/schema.d.ts +235 -40
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts +5 -0
- package/dist/helpers/async-api-schema-resources/load-inline.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/load-inline.js +71 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts +8 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/protobuf-imports.js +25 -0
- package/dist/helpers/async-api-schema-resources/raml-source.d.ts +12 -0
- package/dist/helpers/async-api-schema-resources/raml-source.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/raml-source.js +32 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts +10 -0
- package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/resources.js +124 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts +3 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts.map +1 -0
- package/dist/helpers/async-api-schema-resources/schema-resource-path.js +9 -0
- package/dist/helpers/compact-upgrade-metadata.d.ts +3 -0
- package/dist/helpers/compact-upgrade-metadata.d.ts.map +1 -0
- package/dist/helpers/compact-upgrade-metadata.js +71 -0
- package/dist/helpers/is-file-schema.js +1 -1
- package/dist/helpers/querystring-parameter.d.ts +3 -1
- package/dist/helpers/querystring-parameter.d.ts.map +1 -1
- package/dist/helpers/querystring-parameter.js +2 -2
- package/dist/helpers/resolve-async-api-schema.d.ts +2 -0
- package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
- package/dist/helpers/resolve-async-api-schema.js +23 -1
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.js +9 -1
- package/dist/mutators/operation/reset-request-body.d.ts.map +1 -1
- package/dist/mutators/operation/reset-request-body.js +3 -1
- package/dist/navigation/helpers/traverse-plugin-document.d.ts +11 -0
- package/dist/navigation/helpers/traverse-plugin-document.d.ts.map +1 -0
- package/dist/navigation/helpers/traverse-plugin-document.js +24 -0
- package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
- package/dist/navigation/helpers/update-order-ids.js +2 -1
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +1 -0
- package/dist/plugins/bundler/async-api-schema-resources.d.ts +4 -0
- package/dist/plugins/bundler/async-api-schema-resources.d.ts.map +1 -0
- package/dist/plugins/bundler/async-api-schema-resources.js +20 -0
- package/dist/plugins/bundler/index.d.ts +1 -1
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +7 -4
- package/dist/plugins/bundler/openapi-document.d.ts +5 -1
- package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
- package/dist/plugins/bundler/openapi-document.js +9 -7
- package/dist/plugins/bundler/upgrade-documents.d.ts +4 -0
- package/dist/plugins/bundler/upgrade-documents.d.ts.map +1 -0
- package/dist/plugins/bundler/upgrade-documents.js +357 -0
- package/dist/request-example/builder/body/build-request-body.d.ts +1 -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 +2 -2
- package/dist/request-example/builder/body/get-request-body-example.d.ts +2 -2
- package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
- package/dist/request-example/builder/body/get-request-body-example.js +7 -3
- package/dist/request-example/builder/helpers/array-contains.d.ts +15 -0
- package/dist/request-example/builder/helpers/array-contains.d.ts.map +1 -0
- package/dist/request-example/builder/helpers/array-contains.js +199 -0
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +6 -0
- 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 +30 -2
- 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 +5 -3
- package/dist/schemas/navigation.d.ts +32 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +7 -0
- package/dist/schemas/plugin-document.d.ts +67 -0
- package/dist/schemas/plugin-document.d.ts.map +1 -0
- package/dist/schemas/plugin-document.js +20 -0
- package/dist/schemas/reference-config/index.d.ts +47 -8
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +47 -8
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/type-guards.d.ts +4 -2
- package/dist/schemas/type-guards.d.ts.map +1 -1
- package/dist/schemas/type-guards.js +7 -4
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1645 -280
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts +62 -10
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +10 -2
- package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +5 -2
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +1645 -280
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/schema.d.ts +62 -10
- package/dist/schemas/v3.2/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/schema.js +10 -2
- package/dist/schemas/workspace.d.ts +2 -1
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +33 -3
- package/package.json +17 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-document.d.ts","sourceRoot":"","sources":["../../src/schemas/plugin-document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,2BAA2B,CAAA;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,GAAG;IAC/E,6EAA6E;IAC7E,wBAAwB,EAAE,MAAM,CAAA;IAChC;;;OAGG;IACH,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3F,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE3B;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,sFAAsF;IACtF,IAAI,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,OAAO,CAAA;IAC5C;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,KAAK,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/G;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,cAAc,CAAA;KAAE,KAAK,cAAc,EAAE,CAAA;CAChH,CAAA;AAED,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,UAAW,OAAO,KAAG,KAAK,IAAI,cACa,CAAA;AAExE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,kBACZ,SAAS,sBAAsB,EAAE,GAAG,SAAS,YAClD,aAAa,KACtB,sBAAsB,GAAG,SAQxB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
/** Document extension that marks a document as owned by a registered document type. */
|
|
3
|
+
export const PLUGIN_DOCUMENT_TYPE_KEY = 'x-scalar-document-type';
|
|
4
|
+
/** Narrow a value to a document claimed by a registered document type. */
|
|
5
|
+
export const isPluginDocument = (value) => isObject(value) && typeof value[PLUGIN_DOCUMENT_TYPE_KEY] === 'string';
|
|
6
|
+
/**
|
|
7
|
+
* Find the registered document type that claims a raw document, if any.
|
|
8
|
+
*
|
|
9
|
+
* Every document goes through `detect`, so one that throws counts as "not mine". Otherwise a bug in a
|
|
10
|
+
* single document type would stop OpenAPI and AsyncAPI documents from loading too.
|
|
11
|
+
*/
|
|
12
|
+
export const findDocumentType = (documentTypes, document) => documentTypes?.find((documentType) => {
|
|
13
|
+
try {
|
|
14
|
+
return documentType.detect(document);
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
console.error(`Document type '${documentType.type}' failed to detect a document:`, error);
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -424,6 +424,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
424
424
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
425
425
|
__scalar_: import("@scalar/typebox").TString;
|
|
426
426
|
}>, import("@scalar/typebox").TObject<{
|
|
427
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
427
428
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
428
429
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
429
430
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -517,6 +518,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
517
518
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
518
519
|
type: import("@scalar/typebox").TUnion<[TLiteral<"null">, TLiteral<"boolean">]>;
|
|
519
520
|
}>, import("@scalar/typebox").TObject<{
|
|
521
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
520
522
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
521
523
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
522
524
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -617,6 +619,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
617
619
|
minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
618
620
|
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
619
621
|
}>]>, import("@scalar/typebox").TObject<{
|
|
622
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
620
623
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
621
624
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
622
625
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -715,6 +718,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
715
718
|
minLength: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
716
719
|
pattern: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
717
720
|
}>]>, import("@scalar/typebox").TObject<{
|
|
721
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
718
722
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
719
723
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
720
724
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -852,6 +856,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
852
856
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
853
857
|
}>]>]>>;
|
|
854
858
|
}>]>, import("@scalar/typebox").TObject<{
|
|
859
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
855
860
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
856
861
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
857
862
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -945,10 +950,22 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
945
950
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
946
951
|
type: TLiteral<"array">;
|
|
947
952
|
}>, import("@scalar/typebox").TObject<{
|
|
953
|
+
contains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
954
|
+
$ref: import("@scalar/typebox").TString;
|
|
955
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
956
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
957
|
+
}>, import("@scalar/typebox").TObject<{
|
|
958
|
+
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"loading">, TLiteral<"error">]>>;
|
|
959
|
+
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
960
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
961
|
+
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
962
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
963
|
+
minContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
964
|
+
maxContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
948
965
|
maxItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
949
966
|
minItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
950
967
|
uniqueItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
951
|
-
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
968
|
+
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
952
969
|
$ref: import("@scalar/typebox").TString;
|
|
953
970
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
954
971
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -957,8 +974,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
957
974
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
958
975
|
}>]>, import("@scalar/typebox").TObject<{
|
|
959
976
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
960
|
-
}>]>]>>;
|
|
961
|
-
prefixItems: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
977
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
978
|
+
prefixItems: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
962
979
|
$ref: import("@scalar/typebox").TString;
|
|
963
980
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
964
981
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -967,8 +984,9 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
967
984
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
968
985
|
}>]>, import("@scalar/typebox").TObject<{
|
|
969
986
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
970
|
-
}>]>]>>>;
|
|
987
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>>;
|
|
971
988
|
}>]>, import("@scalar/typebox").TObject<{
|
|
989
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
972
990
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
973
991
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
974
992
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1073,10 +1091,22 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1073
1091
|
minLength: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1074
1092
|
pattern: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1075
1093
|
}>, import("@scalar/typebox").TObject<{
|
|
1094
|
+
contains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1095
|
+
$ref: import("@scalar/typebox").TString;
|
|
1096
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1097
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1098
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1099
|
+
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"loading">, TLiteral<"error">]>>;
|
|
1100
|
+
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1101
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1102
|
+
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1103
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
1104
|
+
minContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1105
|
+
maxContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1076
1106
|
maxItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1077
1107
|
minItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1078
1108
|
uniqueItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1079
|
-
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1109
|
+
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1080
1110
|
$ref: import("@scalar/typebox").TString;
|
|
1081
1111
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1082
1112
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1085,8 +1115,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1085
1115
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1086
1116
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1087
1117
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1088
|
-
}>]>]>>;
|
|
1089
|
-
prefixItems: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1118
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
1119
|
+
prefixItems: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1090
1120
|
$ref: import("@scalar/typebox").TString;
|
|
1091
1121
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1092
1122
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1095,7 +1125,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1095
1125
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1096
1126
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1097
1127
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1098
|
-
}>]>]>>>;
|
|
1128
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>>;
|
|
1099
1129
|
}>, import("@scalar/typebox").TObject<{
|
|
1100
1130
|
maxProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1101
1131
|
minProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
@@ -1141,6 +1171,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1141
1171
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1142
1172
|
}>]>]>>;
|
|
1143
1173
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1174
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1144
1175
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1145
1176
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1146
1177
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1947,6 +1978,14 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1947
1978
|
type: TLiteral<"models">;
|
|
1948
1979
|
name: import("@scalar/typebox").TString;
|
|
1949
1980
|
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1981
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1982
|
+
id: import("@scalar/typebox").TString;
|
|
1983
|
+
title: import("@scalar/typebox").TString;
|
|
1984
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1985
|
+
type: TLiteral<"plugin">;
|
|
1986
|
+
documentType: import("@scalar/typebox").TString;
|
|
1987
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1988
|
+
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1950
1989
|
}>]>]>;
|
|
1951
1990
|
TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1952
1991
|
id: 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,MA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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"}
|
|
@@ -410,6 +410,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
410
410
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
411
411
|
__scalar_: import("@scalar/typebox").TString;
|
|
412
412
|
}>, import("@scalar/typebox").TObject<{
|
|
413
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
413
414
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
414
415
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
415
416
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -503,6 +504,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
503
504
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
504
505
|
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"null">, import("@scalar/typebox").TLiteral<"boolean">]>;
|
|
505
506
|
}>, import("@scalar/typebox").TObject<{
|
|
507
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
506
508
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
507
509
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
508
510
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -603,6 +605,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
603
605
|
minimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
604
606
|
exclusiveMinimum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
605
607
|
}>]>, import("@scalar/typebox").TObject<{
|
|
608
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
606
609
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
607
610
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
608
611
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -701,6 +704,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
701
704
|
minLength: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
702
705
|
pattern: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
703
706
|
}>]>, import("@scalar/typebox").TObject<{
|
|
707
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
704
708
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
705
709
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
706
710
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -838,6 +842,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
838
842
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
839
843
|
}>]>]>>;
|
|
840
844
|
}>]>, import("@scalar/typebox").TObject<{
|
|
845
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
841
846
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
842
847
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
843
848
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -931,10 +936,22 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
931
936
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
932
937
|
type: import("@scalar/typebox").TLiteral<"array">;
|
|
933
938
|
}>, import("@scalar/typebox").TObject<{
|
|
939
|
+
contains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
940
|
+
$ref: import("@scalar/typebox").TString;
|
|
941
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
942
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
943
|
+
}>, import("@scalar/typebox").TObject<{
|
|
944
|
+
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
945
|
+
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
946
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
947
|
+
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
948
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
949
|
+
minContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
950
|
+
maxContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
934
951
|
maxItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
935
952
|
minItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
936
953
|
uniqueItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
937
|
-
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
954
|
+
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
938
955
|
$ref: import("@scalar/typebox").TString;
|
|
939
956
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
940
957
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -943,8 +960,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
943
960
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
944
961
|
}>]>, import("@scalar/typebox").TObject<{
|
|
945
962
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
946
|
-
}>]>]>>;
|
|
947
|
-
prefixItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
963
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
964
|
+
prefixItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
948
965
|
$ref: import("@scalar/typebox").TString;
|
|
949
966
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
950
967
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -953,8 +970,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
953
970
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
954
971
|
}>]>, import("@scalar/typebox").TObject<{
|
|
955
972
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
956
|
-
}>]>]>>>;
|
|
973
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>>;
|
|
957
974
|
}>]>, import("@scalar/typebox").TObject<{
|
|
975
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
958
976
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
959
977
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
960
978
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1059,10 +1077,22 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1059
1077
|
minLength: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1060
1078
|
pattern: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1061
1079
|
}>, import("@scalar/typebox").TObject<{
|
|
1080
|
+
contains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1081
|
+
$ref: import("@scalar/typebox").TString;
|
|
1082
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1083
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1084
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1085
|
+
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
|
|
1086
|
+
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1087
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1088
|
+
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1089
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
1090
|
+
minContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1091
|
+
maxContains: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1062
1092
|
maxItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1063
1093
|
minItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1064
1094
|
uniqueItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1065
|
-
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1095
|
+
items: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1066
1096
|
$ref: import("@scalar/typebox").TString;
|
|
1067
1097
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1068
1098
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1071,8 +1101,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1071
1101
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1072
1102
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1073
1103
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1074
|
-
}>]>]>>;
|
|
1075
|
-
prefixItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1104
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>;
|
|
1105
|
+
prefixItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1076
1106
|
$ref: import("@scalar/typebox").TString;
|
|
1077
1107
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1078
1108
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1081,7 +1111,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1081
1111
|
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1082
1112
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1083
1113
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1084
|
-
}>]>]>>>;
|
|
1114
|
+
}>]>]>, import("@scalar/typebox").TBoolean]>>>;
|
|
1085
1115
|
}>, import("@scalar/typebox").TObject<{
|
|
1086
1116
|
maxProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
1087
1117
|
minProperties: import("@scalar/typebox").TOptional<import("@scalar/typebox").TInteger>;
|
|
@@ -1127,6 +1157,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1127
1157
|
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1128
1158
|
}>]>]>>;
|
|
1129
1159
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1160
|
+
$schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1130
1161
|
$id: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1131
1162
|
$anchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1132
1163
|
$dynamicAnchor: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1933,6 +1964,14 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1933
1964
|
type: import("@scalar/typebox").TLiteral<"models">;
|
|
1934
1965
|
name: import("@scalar/typebox").TString;
|
|
1935
1966
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1967
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1968
|
+
id: import("@scalar/typebox").TString;
|
|
1969
|
+
title: import("@scalar/typebox").TString;
|
|
1970
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1971
|
+
type: import("@scalar/typebox").TLiteral<"plugin">;
|
|
1972
|
+
documentType: import("@scalar/typebox").TString;
|
|
1973
|
+
kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1974
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1936
1975
|
}>]>]>;
|
|
1937
1976
|
TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1938
1977
|
id: 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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
|
|
@@ -5,13 +5,15 @@ import type { OpenApiDocument } from './v3.2/strict/openapi-document.js';
|
|
|
5
5
|
*
|
|
6
6
|
* Discriminated by the required `openapi` string field on OAS documents. Accepts `unknown`
|
|
7
7
|
* so it can narrow at any call site (e.g., workspace lookups typed as `WorkspaceDocument`,
|
|
8
|
-
* or broader contexts that mix documents with the workspace itself).
|
|
8
|
+
* or broader contexts that mix documents with the workspace itself). Documents claimed by a registered
|
|
9
|
+
* document type are excluded, whatever fields they carry.
|
|
9
10
|
*/
|
|
10
11
|
export declare const isOpenApiDocument: (value: unknown) => value is OpenApiDocument;
|
|
11
12
|
/**
|
|
12
13
|
* Narrow a value to an AsyncAPI document.
|
|
13
14
|
*
|
|
14
|
-
* Discriminated by the required `asyncapi` string field on AsyncAPI documents.
|
|
15
|
+
* Discriminated by the required `asyncapi` string field on AsyncAPI documents. Documents claimed by a
|
|
16
|
+
* registered document type are excluded, whatever fields they carry.
|
|
15
17
|
*/
|
|
16
18
|
export declare const isAsyncApiDocument: (value: unknown) => value is AsyncApiDocument;
|
|
17
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../src/schemas/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../src/schemas/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAGlE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eAC4C,CAAA;AAExG;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,KAAK,IAAI,gBAC6C,CAAA;AAE1G;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,SAAS,GAAG,UAAU,GAAG,SAUzE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,iBAAkB,SAAS,GAAG,UAAU,GAAG,SAAS,KAAG,MAClC,CAAA"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { isObject } from '@scalar/helpers/object/is-object';
|
|
2
|
+
import { isPluginDocument } from './plugin-document.js';
|
|
2
3
|
/**
|
|
3
4
|
* Narrow a value to an OpenAPI document.
|
|
4
5
|
*
|
|
5
6
|
* Discriminated by the required `openapi` string field on OAS documents. Accepts `unknown`
|
|
6
7
|
* so it can narrow at any call site (e.g., workspace lookups typed as `WorkspaceDocument`,
|
|
7
|
-
* or broader contexts that mix documents with the workspace itself).
|
|
8
|
+
* or broader contexts that mix documents with the workspace itself). Documents claimed by a registered
|
|
9
|
+
* document type are excluded, whatever fields they carry.
|
|
8
10
|
*/
|
|
9
|
-
export const isOpenApiDocument = (value) => isObject(value) && 'openapi' in value && typeof value.openapi === 'string';
|
|
11
|
+
export const isOpenApiDocument = (value) => isObject(value) && 'openapi' in value && typeof value.openapi === 'string' && !isPluginDocument(value);
|
|
10
12
|
/**
|
|
11
13
|
* Narrow a value to an AsyncAPI document.
|
|
12
14
|
*
|
|
13
|
-
* Discriminated by the required `asyncapi` string field on AsyncAPI documents.
|
|
15
|
+
* Discriminated by the required `asyncapi` string field on AsyncAPI documents. Documents claimed by a
|
|
16
|
+
* registered document type are excluded, whatever fields they carry.
|
|
14
17
|
*/
|
|
15
|
-
export const isAsyncApiDocument = (value) => isObject(value) && 'asyncapi' in value && typeof value.asyncapi === 'string';
|
|
18
|
+
export const isAsyncApiDocument = (value) => isObject(value) && 'asyncapi' in value && typeof value.asyncapi === 'string' && !isPluginDocument(value);
|
|
16
19
|
/**
|
|
17
20
|
* Identify the document type of a value.
|
|
18
21
|
*
|