@scalar/workspace-store 0.65.0 → 0.67.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 +55 -0
- package/dist/client.js +1 -1
- package/dist/entities/auth/schema.d.ts +115 -20
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/events/definitions/auth.d.ts +1 -2
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +5 -4
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/server.d.ts +1 -2
- package/dist/events/definitions/server.d.ts.map +1 -1
- package/dist/events/definitions/ui.d.ts +3 -4
- package/dist/events/definitions/ui.d.ts.map +1 -1
- package/dist/events/old-definitions.d.ts +1 -2
- package/dist/events/old-definitions.d.ts.map +1 -1
- package/dist/helpers/encode-chunk-name.d.ts.map +1 -1
- package/dist/helpers/encode-chunk-name.js +6 -1
- package/dist/helpers/for-each-path-item-operation.d.ts +6 -5
- package/dist/helpers/for-each-path-item-operation.d.ts.map +1 -1
- package/dist/helpers/for-each-path-item-operation.js +36 -10
- package/dist/helpers/get-parameter-example.d.ts +14 -0
- package/dist/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/helpers/get-parameter-example.js +19 -0
- package/dist/helpers/merge-object.d.ts.map +1 -1
- package/dist/helpers/merge-object.js +9 -3
- package/dist/helpers/querystring-parameter.d.ts +21 -0
- package/dist/helpers/querystring-parameter.d.ts.map +1 -0
- package/dist/helpers/querystring-parameter.js +108 -0
- package/dist/mutators/operation/operation.d.ts.map +1 -1
- package/dist/mutators/operation/operation.js +4 -7
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.js +43 -3
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +19 -4
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +2 -2
- package/dist/navigation/helpers/update-order-ids.d.ts +1 -2
- package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +3 -2
- 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 +4 -4
- 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 +29 -5
- package/dist/request-example/builder/build-request.d.ts.map +1 -1
- package/dist/request-example/builder/build-request.js +2 -1
- package/dist/request-example/builder/header/build-request-parameters.d.ts +2 -0
- package/dist/request-example/builder/header/build-request-parameters.d.ts.map +1 -1
- package/dist/request-example/builder/header/build-request-parameters.js +49 -10
- package/dist/request-example/builder/header/is-param-disabled.d.ts.map +1 -1
- package/dist/request-example/builder/header/is-param-disabled.js +3 -1
- package/dist/request-example/builder/helpers/example-evaluation.d.ts +19 -0
- package/dist/request-example/builder/helpers/example-evaluation.d.ts.map +1 -0
- package/dist/request-example/builder/helpers/example-evaluation.js +2 -0
- package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +11 -3
- 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 +66 -17
- package/dist/request-example/builder/request-factory.d.ts +10 -1
- package/dist/request-example/builder/request-factory.d.ts.map +1 -1
- package/dist/request-example/builder/request-factory.js +12 -3
- package/dist/request-example/builder/resolve-request-factory-url.d.ts.map +1 -1
- package/dist/request-example/builder/resolve-request-factory-url.js +18 -2
- package/dist/request-example/context/headers.d.ts +1 -2
- package/dist/request-example/context/headers.d.ts.map +1 -1
- package/dist/request-example/index.d.ts +4 -0
- package/dist/request-example/index.d.ts.map +1 -1
- package/dist/request-example/index.js +3 -0
- package/dist/request-example/types.d.ts +1 -2
- package/dist/request-example/types.d.ts.map +1 -1
- package/dist/request-example/xml/get-xml-body-example.d.ts +8 -0
- package/dist/request-example/xml/get-xml-body-example.d.ts.map +1 -0
- package/dist/request-example/xml/get-xml-body-example.js +21 -0
- package/dist/request-example/xml/get-xml-example.d.ts +21 -0
- package/dist/request-example/xml/get-xml-example.d.ts.map +1 -0
- package/dist/request-example/xml/get-xml-example.js +352 -0
- package/dist/request-example/xml/match-xml-property-pattern.d.ts +10 -0
- package/dist/request-example/xml/match-xml-property-pattern.d.ts.map +1 -0
- package/dist/request-example/xml/match-xml-property-pattern.js +48 -0
- package/dist/request-example/xml/serialize-xml-part.d.ts +4 -5
- package/dist/request-example/xml/serialize-xml-part.d.ts.map +1 -1
- package/dist/request-example/xml/serialize-xml-part.js +14 -8
- package/dist/request-example/xml/write-xml.d.ts +9 -0
- package/dist/request-example/xml/write-xml.d.ts.map +1 -0
- package/dist/request-example/xml/write-xml.js +119 -0
- package/dist/request-example/xml/xml-node.d.ts +32 -0
- package/dist/request-example/xml/xml-node.d.ts.map +1 -0
- package/dist/request-example/xml/xml-node.js +1 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +22 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js +4 -0
- package/dist/schemas/navigation.d.ts +40 -34
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +2 -3
- package/dist/schemas/reference-config/index.d.ts +23 -4
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +23 -4
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +770 -140
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.d.ts +8 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.d.ts +19 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +5 -0
- package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/index.js +2 -0
- package/dist/schemas/v3.2/openapi/reference.d.ts.map +1 -1
- package/dist/schemas/v3.2/openapi/reference.js +11 -3
- package/dist/schemas/v3.2/strict/openapi-document.d.ts +805 -140
- package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/operation.d.ts +8 -0
- package/dist/schemas/v3.2/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/parameter.d.ts +14 -0
- package/dist/schemas/v3.2/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.2/strict/parameter.js +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +34 -13
- package/package.json +9 -9
|
@@ -3,16 +3,22 @@ export declare const XCodeSamplesSchema: import("@scalar/typebox").TObject<{
|
|
|
3
3
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4
4
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
5
|
source: import("@scalar/typebox").TString;
|
|
6
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
7
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6
8
|
}>>>;
|
|
7
9
|
'x-code-samples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
8
10
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
11
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
12
|
source: import("@scalar/typebox").TString;
|
|
13
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
11
15
|
}>>>;
|
|
12
16
|
'x-custom-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
13
17
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
18
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
15
19
|
source: import("@scalar/typebox").TString;
|
|
20
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
21
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
16
22
|
}>>>;
|
|
17
23
|
'x-readme': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
18
24
|
'code-samples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
@@ -38,12 +44,18 @@ export declare const XCodeSamplesSchema: import("@scalar/typebox").TObject<{
|
|
|
38
44
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
39
45
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
40
46
|
source: import("@scalar/typebox").TString;
|
|
47
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
48
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
41
49
|
}>>>;
|
|
42
50
|
}>;
|
|
43
51
|
export type XCodeSample = {
|
|
44
52
|
lang?: string;
|
|
45
53
|
label?: string;
|
|
46
54
|
source: string;
|
|
55
|
+
/** Request body example key used by this sample. */
|
|
56
|
+
example?: string;
|
|
57
|
+
/** Request body media type used by this sample. */
|
|
58
|
+
contentType?: string;
|
|
47
59
|
};
|
|
48
60
|
/** A single ReadMe custom code sample. */
|
|
49
61
|
export type XReadmeCodeSample = {
|
|
@@ -63,6 +75,8 @@ export declare const XCodeSample: import("@scalar/validation").ObjectSchema<{
|
|
|
63
75
|
lang: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
64
76
|
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
65
77
|
source: import("@scalar/validation").StringSchema;
|
|
78
|
+
example: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
79
|
+
contentType: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
66
80
|
}>;
|
|
67
81
|
export type XCodeSamples = {
|
|
68
82
|
'x-codeSamples'?: XCodeSample[];
|
|
@@ -81,16 +95,22 @@ export declare const XCodeSamples: import("@scalar/validation").ObjectSchema<{
|
|
|
81
95
|
lang: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
82
96
|
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
83
97
|
source: import("@scalar/validation").StringSchema;
|
|
98
|
+
example: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
99
|
+
contentType: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
84
100
|
}>>>;
|
|
85
101
|
'x-code-samples': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
|
|
86
102
|
lang: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
87
103
|
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
88
104
|
source: import("@scalar/validation").StringSchema;
|
|
105
|
+
example: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
106
|
+
contentType: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
89
107
|
}>>>;
|
|
90
108
|
'x-custom-examples': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
|
|
91
109
|
lang: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
92
110
|
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
93
111
|
source: import("@scalar/validation").StringSchema;
|
|
112
|
+
example: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
113
|
+
contentType: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
94
114
|
}>>>;
|
|
95
115
|
'x-readme': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ObjectSchema<{
|
|
96
116
|
'code-samples': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
|
|
@@ -116,6 +136,8 @@ export declare const XCodeSamples: import("@scalar/validation").ObjectSchema<{
|
|
|
116
136
|
lang: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
117
137
|
label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
118
138
|
source: import("@scalar/validation").StringSchema;
|
|
139
|
+
example: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
140
|
+
contentType: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
119
141
|
}>>>;
|
|
120
142
|
}>;
|
|
121
143
|
//# sourceMappingURL=x-code-samples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAA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.Optional(Type.String()),
|
|
5
5
|
label: Type.Optional(Type.String()),
|
|
6
6
|
source: Type.String(),
|
|
7
|
+
example: Type.Optional(Type.String()),
|
|
8
|
+
contentType: Type.Optional(Type.String()),
|
|
7
9
|
});
|
|
8
10
|
/** A single ReadMe custom code sample (`x-readme.code-samples`). */
|
|
9
11
|
const XReadmeCodeSampleSchema = Type.Object({
|
|
@@ -42,6 +44,8 @@ export const XCodeSample = object({
|
|
|
42
44
|
lang: optional(string()),
|
|
43
45
|
label: optional(string()),
|
|
44
46
|
source: string(),
|
|
47
|
+
example: optional(string()),
|
|
48
|
+
contentType: optional(string()),
|
|
45
49
|
});
|
|
46
50
|
const XReadmeCodeSample = object({
|
|
47
51
|
language: optional(string()),
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type TLiteral } from '@scalar/typebox';
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
3
2
|
import type { AsyncApiInfoObject } from '@scalar/types/asyncapi/3.1';
|
|
3
|
+
import type { LiteralUnion } from 'type-fest';
|
|
4
4
|
import type { InfoObject } from '../schemas/v3.2/strict/info.js';
|
|
5
5
|
import type { OperationObject } from '../schemas/v3.2/strict/operation.js';
|
|
6
6
|
import type { SchemaObject } from '../schemas/v3.2/strict/schema.js';
|
|
7
7
|
import type { TagObject } from '../schemas/v3.2/strict/tag.js';
|
|
8
|
+
/**
|
|
9
|
+
* An operation method, including document-defined extension methods.
|
|
10
|
+
* Known methods retain editor completion; the open string branch still requires
|
|
11
|
+
* consumers to handle unknown methods rather than rely on an exhaustive switch.
|
|
12
|
+
*/
|
|
13
|
+
export type OperationMethod = LiteralUnion<HttpMethod, string>;
|
|
8
14
|
export declare const NavigationBaseSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
9
15
|
id: import("@scalar/typebox").TString;
|
|
10
16
|
title: import("@scalar/typebox").TString;
|
|
@@ -23,7 +29,7 @@ export declare const TraversedDocumentSchemaDefinition: import("@scalar/typebox"
|
|
|
23
29
|
id: import("@scalar/typebox").TString;
|
|
24
30
|
title: import("@scalar/typebox").TString;
|
|
25
31
|
}>, import("@scalar/typebox").TObject<{
|
|
26
|
-
type: TLiteral<"document">;
|
|
32
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
27
33
|
name: import("@scalar/typebox").TString;
|
|
28
34
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
29
35
|
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -45,7 +51,7 @@ export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typeb
|
|
|
45
51
|
id: import("@scalar/typebox").TString;
|
|
46
52
|
title: import("@scalar/typebox").TString;
|
|
47
53
|
}>, import("@scalar/typebox").TObject<{
|
|
48
|
-
type: TLiteral<"text">;
|
|
54
|
+
type: import("@scalar/typebox").TLiteral<"text">;
|
|
49
55
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
50
56
|
}>]>;
|
|
51
57
|
/**
|
|
@@ -59,7 +65,7 @@ export declare const TraversedExampleSchemaDefinition: import("@scalar/typebox")
|
|
|
59
65
|
id: import("@scalar/typebox").TString;
|
|
60
66
|
title: import("@scalar/typebox").TString;
|
|
61
67
|
}>, import("@scalar/typebox").TObject<{
|
|
62
|
-
type: TLiteral<"example">;
|
|
68
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
63
69
|
name: import("@scalar/typebox").TString;
|
|
64
70
|
}>]>;
|
|
65
71
|
/**
|
|
@@ -73,9 +79,9 @@ export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox
|
|
|
73
79
|
id: import("@scalar/typebox").TString;
|
|
74
80
|
title: import("@scalar/typebox").TString;
|
|
75
81
|
}>, import("@scalar/typebox").TObject<{
|
|
76
|
-
type: TLiteral<"operation">;
|
|
82
|
+
type: import("@scalar/typebox").TLiteral<"operation">;
|
|
77
83
|
ref: import("@scalar/typebox").TString;
|
|
78
|
-
method:
|
|
84
|
+
method: import("@scalar/typebox").TString;
|
|
79
85
|
path: import("@scalar/typebox").TString;
|
|
80
86
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
81
87
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -86,7 +92,7 @@ export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox
|
|
|
86
92
|
export type TraversedOperation = BaseSchema & {
|
|
87
93
|
type: 'operation';
|
|
88
94
|
ref: string;
|
|
89
|
-
method:
|
|
95
|
+
method: OperationMethod;
|
|
90
96
|
path: string;
|
|
91
97
|
isDeprecated?: boolean;
|
|
92
98
|
children?: TraversedEntry[];
|
|
@@ -95,9 +101,9 @@ export declare const TraversedAsyncApiOperationSchemaDefinition: import("@scalar
|
|
|
95
101
|
id: import("@scalar/typebox").TString;
|
|
96
102
|
title: import("@scalar/typebox").TString;
|
|
97
103
|
}>, import("@scalar/typebox").TObject<{
|
|
98
|
-
type: TLiteral<"asyncapi-operation">;
|
|
104
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-operation">;
|
|
99
105
|
operationName: import("@scalar/typebox").TString;
|
|
100
|
-
action: import("@scalar/typebox").TUnion<[TLiteral<"send">, TLiteral<"receive">]>;
|
|
106
|
+
action: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"send">, import("@scalar/typebox").TLiteral<"receive">]>;
|
|
101
107
|
channelName: import("@scalar/typebox").TString;
|
|
102
108
|
channelAddress: import("@scalar/typebox").TString;
|
|
103
109
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -121,7 +127,7 @@ export declare const TraversedAsyncApiChannelSchemaDefinition: import("@scalar/t
|
|
|
121
127
|
id: import("@scalar/typebox").TString;
|
|
122
128
|
title: import("@scalar/typebox").TString;
|
|
123
129
|
}>, import("@scalar/typebox").TObject<{
|
|
124
|
-
type: TLiteral<"asyncapi-channel">;
|
|
130
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-channel">;
|
|
125
131
|
channelName: import("@scalar/typebox").TString;
|
|
126
132
|
channelAddress: import("@scalar/typebox").TString;
|
|
127
133
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -142,7 +148,7 @@ export declare const TraversedAsyncApiMessageSchemaDefinition: import("@scalar/t
|
|
|
142
148
|
id: import("@scalar/typebox").TString;
|
|
143
149
|
title: import("@scalar/typebox").TString;
|
|
144
150
|
}>, import("@scalar/typebox").TObject<{
|
|
145
|
-
type: TLiteral<"asyncapi-message">;
|
|
151
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-message">;
|
|
146
152
|
messageName: import("@scalar/typebox").TString;
|
|
147
153
|
channelName: import("@scalar/typebox").TString;
|
|
148
154
|
}>]>;
|
|
@@ -160,7 +166,7 @@ export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").
|
|
|
160
166
|
id: import("@scalar/typebox").TString;
|
|
161
167
|
title: import("@scalar/typebox").TString;
|
|
162
168
|
}>, import("@scalar/typebox").TObject<{
|
|
163
|
-
type: TLiteral<"model">;
|
|
169
|
+
type: import("@scalar/typebox").TLiteral<"model">;
|
|
164
170
|
ref: import("@scalar/typebox").TString;
|
|
165
171
|
name: import("@scalar/typebox").TString;
|
|
166
172
|
}>]>;
|
|
@@ -176,9 +182,9 @@ export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox")
|
|
|
176
182
|
id: import("@scalar/typebox").TString;
|
|
177
183
|
title: import("@scalar/typebox").TString;
|
|
178
184
|
}>, import("@scalar/typebox").TObject<{
|
|
179
|
-
type: TLiteral<"webhook">;
|
|
185
|
+
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
180
186
|
ref: import("@scalar/typebox").TString;
|
|
181
|
-
method:
|
|
187
|
+
method: import("@scalar/typebox").TString;
|
|
182
188
|
name: import("@scalar/typebox").TString;
|
|
183
189
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
184
190
|
}>]>;
|
|
@@ -188,7 +194,7 @@ export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox")
|
|
|
188
194
|
export type TraversedWebhook = BaseSchema & {
|
|
189
195
|
type: 'webhook';
|
|
190
196
|
ref: string;
|
|
191
|
-
method:
|
|
197
|
+
method: OperationMethod;
|
|
192
198
|
name: string;
|
|
193
199
|
isDeprecated?: boolean;
|
|
194
200
|
};
|
|
@@ -196,7 +202,7 @@ export declare const TraversedTagSchemaDefinition: import("@scalar/typebox").TIn
|
|
|
196
202
|
id: import("@scalar/typebox").TString;
|
|
197
203
|
title: import("@scalar/typebox").TString;
|
|
198
204
|
}>, import("@scalar/typebox").TObject<{
|
|
199
|
-
type: TLiteral<"tag">;
|
|
205
|
+
type: import("@scalar/typebox").TLiteral<"tag">;
|
|
200
206
|
name: import("@scalar/typebox").TString;
|
|
201
207
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
202
208
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -229,7 +235,7 @@ export declare const TraversedModelsSchemaDefinition: import("@scalar/typebox").
|
|
|
229
235
|
id: import("@scalar/typebox").TString;
|
|
230
236
|
title: import("@scalar/typebox").TString;
|
|
231
237
|
}>, import("@scalar/typebox").TObject<{
|
|
232
|
-
type: TLiteral<"models">;
|
|
238
|
+
type: import("@scalar/typebox").TLiteral<"models">;
|
|
233
239
|
name: import("@scalar/typebox").TString;
|
|
234
240
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
235
241
|
}>]>;
|
|
@@ -245,15 +251,15 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
245
251
|
id: import("@scalar/typebox").TString;
|
|
246
252
|
title: import("@scalar/typebox").TString;
|
|
247
253
|
}>, import("@scalar/typebox").TObject<{
|
|
248
|
-
type: TLiteral<"text">;
|
|
254
|
+
type: import("@scalar/typebox").TLiteral<"text">;
|
|
249
255
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
250
256
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
251
257
|
id: import("@scalar/typebox").TString;
|
|
252
258
|
title: import("@scalar/typebox").TString;
|
|
253
259
|
}>, import("@scalar/typebox").TObject<{
|
|
254
|
-
type: TLiteral<"operation">;
|
|
260
|
+
type: import("@scalar/typebox").TLiteral<"operation">;
|
|
255
261
|
ref: import("@scalar/typebox").TString;
|
|
256
|
-
method:
|
|
262
|
+
method: import("@scalar/typebox").TString;
|
|
257
263
|
path: import("@scalar/typebox").TString;
|
|
258
264
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
259
265
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -261,9 +267,9 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
261
267
|
id: import("@scalar/typebox").TString;
|
|
262
268
|
title: import("@scalar/typebox").TString;
|
|
263
269
|
}>, import("@scalar/typebox").TObject<{
|
|
264
|
-
type: TLiteral<"asyncapi-operation">;
|
|
270
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-operation">;
|
|
265
271
|
operationName: import("@scalar/typebox").TString;
|
|
266
|
-
action: import("@scalar/typebox").TUnion<[TLiteral<"send">, TLiteral<"receive">]>;
|
|
272
|
+
action: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"send">, import("@scalar/typebox").TLiteral<"receive">]>;
|
|
267
273
|
channelName: import("@scalar/typebox").TString;
|
|
268
274
|
channelAddress: import("@scalar/typebox").TString;
|
|
269
275
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -271,7 +277,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
271
277
|
id: import("@scalar/typebox").TString;
|
|
272
278
|
title: import("@scalar/typebox").TString;
|
|
273
279
|
}>, import("@scalar/typebox").TObject<{
|
|
274
|
-
type: TLiteral<"asyncapi-channel">;
|
|
280
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-channel">;
|
|
275
281
|
channelName: import("@scalar/typebox").TString;
|
|
276
282
|
channelAddress: import("@scalar/typebox").TString;
|
|
277
283
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -279,21 +285,21 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
279
285
|
id: import("@scalar/typebox").TString;
|
|
280
286
|
title: import("@scalar/typebox").TString;
|
|
281
287
|
}>, import("@scalar/typebox").TObject<{
|
|
282
|
-
type: TLiteral<"asyncapi-message">;
|
|
288
|
+
type: import("@scalar/typebox").TLiteral<"asyncapi-message">;
|
|
283
289
|
messageName: import("@scalar/typebox").TString;
|
|
284
290
|
channelName: import("@scalar/typebox").TString;
|
|
285
291
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
286
292
|
id: import("@scalar/typebox").TString;
|
|
287
293
|
title: import("@scalar/typebox").TString;
|
|
288
294
|
}>, import("@scalar/typebox").TObject<{
|
|
289
|
-
type: TLiteral<"model">;
|
|
295
|
+
type: import("@scalar/typebox").TLiteral<"model">;
|
|
290
296
|
ref: import("@scalar/typebox").TString;
|
|
291
297
|
name: import("@scalar/typebox").TString;
|
|
292
298
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
293
299
|
id: import("@scalar/typebox").TString;
|
|
294
300
|
title: import("@scalar/typebox").TString;
|
|
295
301
|
}>, import("@scalar/typebox").TObject<{
|
|
296
|
-
type: TLiteral<"tag">;
|
|
302
|
+
type: import("@scalar/typebox").TLiteral<"tag">;
|
|
297
303
|
name: import("@scalar/typebox").TString;
|
|
298
304
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
299
305
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -305,22 +311,22 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
305
311
|
id: import("@scalar/typebox").TString;
|
|
306
312
|
title: import("@scalar/typebox").TString;
|
|
307
313
|
}>, import("@scalar/typebox").TObject<{
|
|
308
|
-
type: TLiteral<"webhook">;
|
|
314
|
+
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
309
315
|
ref: import("@scalar/typebox").TString;
|
|
310
|
-
method:
|
|
316
|
+
method: import("@scalar/typebox").TString;
|
|
311
317
|
name: import("@scalar/typebox").TString;
|
|
312
318
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
313
319
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
314
320
|
id: import("@scalar/typebox").TString;
|
|
315
321
|
title: import("@scalar/typebox").TString;
|
|
316
322
|
}>, import("@scalar/typebox").TObject<{
|
|
317
|
-
type: TLiteral<"example">;
|
|
323
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
318
324
|
name: import("@scalar/typebox").TString;
|
|
319
325
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
320
326
|
id: import("@scalar/typebox").TString;
|
|
321
327
|
title: import("@scalar/typebox").TString;
|
|
322
328
|
}>, import("@scalar/typebox").TObject<{
|
|
323
|
-
type: TLiteral<"document">;
|
|
329
|
+
type: import("@scalar/typebox").TLiteral<"document">;
|
|
324
330
|
name: import("@scalar/typebox").TString;
|
|
325
331
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
326
332
|
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -328,7 +334,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
328
334
|
id: import("@scalar/typebox").TString;
|
|
329
335
|
title: import("@scalar/typebox").TString;
|
|
330
336
|
}>, import("@scalar/typebox").TObject<{
|
|
331
|
-
type: TLiteral<"models">;
|
|
337
|
+
type: import("@scalar/typebox").TLiteral<"models">;
|
|
332
338
|
name: import("@scalar/typebox").TString;
|
|
333
339
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
334
340
|
}>]>]>;
|
|
@@ -378,7 +384,7 @@ type OperationProps = {
|
|
|
378
384
|
parentId: string;
|
|
379
385
|
operation: OperationObject;
|
|
380
386
|
path: string;
|
|
381
|
-
method:
|
|
387
|
+
method: OperationMethod;
|
|
382
388
|
type: 'operation';
|
|
383
389
|
parentTag?: ParentTag;
|
|
384
390
|
};
|
|
@@ -386,7 +392,7 @@ type WebhookProps = {
|
|
|
386
392
|
parentId: string;
|
|
387
393
|
webhook?: OperationObject;
|
|
388
394
|
name: string;
|
|
389
|
-
method?:
|
|
395
|
+
method?: OperationMethod;
|
|
390
396
|
type: 'webhook';
|
|
391
397
|
parentTag?: ParentTag;
|
|
392
398
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA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AAgB,GACxB,eAAe,GACf,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,oBAAoB,GACpB,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HTTP_METHODS } from '@scalar/helpers/http/http-methods';
|
|
2
1
|
import { Type } from '@scalar/typebox';
|
|
3
2
|
import { compose } from '../schemas/compose.js';
|
|
4
3
|
import { TraversedEntryObjectRef } from '../schemas/v3.2/strict/ref-definitions.js';
|
|
@@ -23,7 +22,7 @@ export const TraversedExampleSchemaDefinition = compose(NavigationBaseSchemaDefi
|
|
|
23
22
|
export const TraversedOperationSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
|
|
24
23
|
type: Type.Literal('operation'),
|
|
25
24
|
ref: Type.String(),
|
|
26
|
-
method: Type.
|
|
25
|
+
method: Type.String(),
|
|
27
26
|
path: Type.String(),
|
|
28
27
|
isDeprecated: Type.Optional(Type.Boolean()),
|
|
29
28
|
children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
|
|
@@ -55,7 +54,7 @@ export const TraversedSchemaSchemaDefinition = compose(NavigationBaseSchemaDefin
|
|
|
55
54
|
export const TraversedWebhookSchemaDefinition = compose(NavigationBaseSchemaDefinition, Type.Object({
|
|
56
55
|
type: Type.Literal('webhook'),
|
|
57
56
|
ref: Type.String(),
|
|
58
|
-
method: Type.
|
|
57
|
+
method: Type.String(),
|
|
59
58
|
name: Type.String(),
|
|
60
59
|
isDeprecated: Type.Optional(Type.Boolean()),
|
|
61
60
|
}));
|
|
@@ -348,16 +348,22 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
348
348
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
349
349
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
350
350
|
source: import("@scalar/typebox").TString;
|
|
351
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
352
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
351
353
|
}>>>;
|
|
352
354
|
'x-code-samples': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
353
355
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
354
356
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
355
357
|
source: import("@scalar/typebox").TString;
|
|
358
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
359
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
356
360
|
}>>>;
|
|
357
361
|
'x-custom-examples': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
358
362
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
359
363
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
360
364
|
source: import("@scalar/typebox").TString;
|
|
365
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
366
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
361
367
|
}>>>;
|
|
362
368
|
'x-readme': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
363
369
|
'code-samples': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
@@ -383,6 +389,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
383
389
|
lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
384
390
|
label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
385
391
|
source: import("@scalar/typebox").TString;
|
|
392
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
393
|
+
contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
386
394
|
}>>>;
|
|
387
395
|
}>, import("@scalar/typebox").TObject<{
|
|
388
396
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"deprecated">, TLiteral<"experimental">, TLiteral<"stable">]>>;
|
|
@@ -1432,6 +1440,17 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1432
1440
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1433
1441
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1434
1442
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1443
|
+
example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnknown>;
|
|
1444
|
+
examples: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ExampleObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1445
|
+
$ref: import("@scalar/typebox").TString;
|
|
1446
|
+
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1447
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1448
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1449
|
+
$status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"loading">, TLiteral<"error">]>>;
|
|
1450
|
+
$global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1451
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1452
|
+
'$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExampleObject">>;
|
|
1453
|
+
}>]>]>>>;
|
|
1435
1454
|
}>]>]>;
|
|
1436
1455
|
ExampleObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1437
1456
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1733,7 +1752,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1733
1752
|
}>, import("@scalar/typebox").TObject<{
|
|
1734
1753
|
type: TLiteral<"operation">;
|
|
1735
1754
|
ref: import("@scalar/typebox").TString;
|
|
1736
|
-
method:
|
|
1755
|
+
method: import("@scalar/typebox").TString;
|
|
1737
1756
|
path: import("@scalar/typebox").TString;
|
|
1738
1757
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1739
1758
|
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -1780,7 +1799,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1780
1799
|
}>, import("@scalar/typebox").TObject<{
|
|
1781
1800
|
type: TLiteral<"webhook">;
|
|
1782
1801
|
ref: import("@scalar/typebox").TString;
|
|
1783
|
-
method:
|
|
1802
|
+
method: import("@scalar/typebox").TString;
|
|
1784
1803
|
name: import("@scalar/typebox").TString;
|
|
1785
1804
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1786
1805
|
}>]>;
|
|
@@ -1809,7 +1828,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1809
1828
|
}>, import("@scalar/typebox").TObject<{
|
|
1810
1829
|
type: TLiteral<"operation">;
|
|
1811
1830
|
ref: import("@scalar/typebox").TString;
|
|
1812
|
-
method:
|
|
1831
|
+
method: import("@scalar/typebox").TString;
|
|
1813
1832
|
path: import("@scalar/typebox").TString;
|
|
1814
1833
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1815
1834
|
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
@@ -1863,7 +1882,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1863
1882
|
}>, import("@scalar/typebox").TObject<{
|
|
1864
1883
|
type: TLiteral<"webhook">;
|
|
1865
1884
|
ref: import("@scalar/typebox").TString;
|
|
1866
|
-
method:
|
|
1885
|
+
method: import("@scalar/typebox").TString;
|
|
1867
1886
|
name: import("@scalar/typebox").TString;
|
|
1868
1887
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1869
1888
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -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,EA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