@scalar/workspace-store 0.15.7 → 0.16.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 +22 -0
- package/dist/client.d.ts +1 -38
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -5
- package/dist/client.js.map +2 -2
- package/dist/navigation/get-navigation-options.d.ts +9 -0
- package/dist/navigation/get-navigation-options.d.ts.map +1 -0
- package/dist/navigation/get-navigation-options.js +77 -0
- package/dist/navigation/get-navigation-options.js.map +7 -0
- package/dist/navigation/helpers/get-x-keys.d.ts +10 -0
- package/dist/navigation/helpers/get-x-keys.d.ts.map +1 -0
- package/dist/navigation/helpers/get-x-keys.js +10 -0
- package/dist/navigation/helpers/get-x-keys.js.map +7 -0
- package/dist/navigation/helpers/traverse-description.d.ts +3 -5
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js +4 -5
- package/dist/navigation/helpers/traverse-description.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.d.ts +121 -28
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js +16 -21
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts +4 -5
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +14 -7
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +3 -6
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +7 -7
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +2 -5
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +16 -13
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +3 -6
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +27 -7
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +2 -0
- package/dist/navigation/index.js.map +2 -2
- package/dist/navigation/types.d.ts +3 -4
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/index.d.ts +2 -0
- package/dist/schemas/extensions/operation/index.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/index.js +1 -0
- package/dist/schemas/extensions/operation/index.js.map +7 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +2 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +17 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-default-scopes.js +8 -0
- package/dist/schemas/extensions/security/x-default-scopes.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +6 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +27 -3
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +15 -3
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js +1 -3
- package/dist/schemas/extensions/security/x-use-pkce.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +312 -134
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/navigation.d.ts +60 -128
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +40 -44
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +156 -67
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +156 -67
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +135 -24
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +37 -15
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +67 -12
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +12434 -1877
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +32 -4
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +1 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +2 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +8 -0
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js +12 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +2 -44
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +12 -8
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +3 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +188 -67
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/config.js.map +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +156 -67
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +1092 -469
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/server.d.ts +3 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +2 -2
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAOnD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAOnD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,154 +1,86 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import { type TLiteral } from '@scalar/typebox';
|
|
3
|
+
export declare const NavigationBaseSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
4
4
|
id: import("@scalar/typebox").TString;
|
|
5
5
|
title: import("@scalar/typebox").TString;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const
|
|
8
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
7
|
+
export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
9
8
|
id: import("@scalar/typebox").TString;
|
|
10
9
|
title: import("@scalar/typebox").TString;
|
|
11
10
|
}>, import("@scalar/typebox").TObject<{
|
|
12
|
-
type:
|
|
13
|
-
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").
|
|
14
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
15
|
-
id: import("@scalar/typebox").TString;
|
|
16
|
-
title: import("@scalar/typebox").TString;
|
|
17
|
-
}>>>;
|
|
11
|
+
type: TLiteral<"text">;
|
|
12
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
18
13
|
}>]>;
|
|
19
|
-
export
|
|
20
|
-
export declare const TraversedOperationSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
21
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
14
|
+
export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
22
15
|
id: import("@scalar/typebox").TString;
|
|
23
16
|
title: import("@scalar/typebox").TString;
|
|
24
17
|
}>, import("@scalar/typebox").TObject<{
|
|
25
|
-
type:
|
|
18
|
+
type: TLiteral<"operation">;
|
|
26
19
|
ref: import("@scalar/typebox").TString;
|
|
27
|
-
method:
|
|
20
|
+
method: TLiteral<HttpMethod>;
|
|
28
21
|
path: import("@scalar/typebox").TString;
|
|
22
|
+
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
29
23
|
}>]>;
|
|
30
|
-
export
|
|
31
|
-
export declare const TraversedSchemaSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
32
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
24
|
+
export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
33
25
|
id: import("@scalar/typebox").TString;
|
|
34
26
|
title: import("@scalar/typebox").TString;
|
|
35
27
|
}>, import("@scalar/typebox").TObject<{
|
|
36
|
-
type:
|
|
28
|
+
type: TLiteral<"model">;
|
|
37
29
|
ref: import("@scalar/typebox").TString;
|
|
38
30
|
name: import("@scalar/typebox").TString;
|
|
39
31
|
}>]>;
|
|
40
|
-
export
|
|
41
|
-
export declare const TraversedWebhookSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
42
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
32
|
+
export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
43
33
|
id: import("@scalar/typebox").TString;
|
|
44
34
|
title: import("@scalar/typebox").TString;
|
|
45
35
|
}>, import("@scalar/typebox").TObject<{
|
|
46
|
-
type:
|
|
36
|
+
type: TLiteral<"webhook">;
|
|
47
37
|
ref: import("@scalar/typebox").TString;
|
|
48
|
-
method:
|
|
38
|
+
method: TLiteral<HttpMethod>;
|
|
49
39
|
name: import("@scalar/typebox").TString;
|
|
40
|
+
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
50
41
|
}>]>;
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}>, import("@scalar/typebox").TObject<{
|
|
96
|
-
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
97
|
-
ref: import("@scalar/typebox").TString;
|
|
98
|
-
method: import("@scalar/typebox").TString;
|
|
99
|
-
name: import("@scalar/typebox").TString;
|
|
100
|
-
}>]>]>;
|
|
101
|
-
}, "TraversedTagSchema">;
|
|
102
|
-
export declare const TraversedEntrySchema: import("@scalar/typebox").TImport<{
|
|
103
|
-
TraversedTagSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
104
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
105
|
-
id: import("@scalar/typebox").TString;
|
|
106
|
-
title: import("@scalar/typebox").TString;
|
|
107
|
-
}>, import("@scalar/typebox").TObject<{
|
|
108
|
-
type: import("@scalar/typebox").TLiteral<"tag">;
|
|
109
|
-
name: import("@scalar/typebox").TString;
|
|
110
|
-
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntrySchema">>>;
|
|
111
|
-
isGroup: import("@scalar/typebox").TBoolean;
|
|
112
|
-
}>]>;
|
|
113
|
-
TraversedEntrySchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"TraversedTagSchema">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
114
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
115
|
-
id: import("@scalar/typebox").TString;
|
|
116
|
-
title: import("@scalar/typebox").TString;
|
|
117
|
-
}>, import("@scalar/typebox").TObject<{
|
|
118
|
-
type: import("@scalar/typebox").TLiteral<"text">;
|
|
119
|
-
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
120
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
121
|
-
id: import("@scalar/typebox").TString;
|
|
122
|
-
title: import("@scalar/typebox").TString;
|
|
123
|
-
}>>>;
|
|
124
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
125
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
126
|
-
id: import("@scalar/typebox").TString;
|
|
127
|
-
title: import("@scalar/typebox").TString;
|
|
128
|
-
}>, import("@scalar/typebox").TObject<{
|
|
129
|
-
type: import("@scalar/typebox").TLiteral<"operation">;
|
|
130
|
-
ref: import("@scalar/typebox").TString;
|
|
131
|
-
method: import("@scalar/typebox").TString;
|
|
132
|
-
path: import("@scalar/typebox").TString;
|
|
133
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
134
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
135
|
-
id: import("@scalar/typebox").TString;
|
|
136
|
-
title: import("@scalar/typebox").TString;
|
|
137
|
-
}>, import("@scalar/typebox").TObject<{
|
|
138
|
-
type: import("@scalar/typebox").TLiteral<"model">;
|
|
139
|
-
ref: import("@scalar/typebox").TString;
|
|
140
|
-
name: import("@scalar/typebox").TString;
|
|
141
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
142
|
-
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"text">, import("@scalar/typebox").TLiteral<"operation">, import("@scalar/typebox").TLiteral<"model">, import("@scalar/typebox").TLiteral<"tag">, import("@scalar/typebox").TLiteral<"webhook">]>;
|
|
143
|
-
id: import("@scalar/typebox").TString;
|
|
144
|
-
title: import("@scalar/typebox").TString;
|
|
145
|
-
}>, import("@scalar/typebox").TObject<{
|
|
146
|
-
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
147
|
-
ref: import("@scalar/typebox").TString;
|
|
148
|
-
method: import("@scalar/typebox").TString;
|
|
149
|
-
name: import("@scalar/typebox").TString;
|
|
150
|
-
}>]>]>;
|
|
151
|
-
}, "TraversedEntrySchema">;
|
|
152
|
-
export type TraversedTag = Static<typeof TraversedTagSchema>;
|
|
153
|
-
export type TraversedEntry = Static<typeof TraversedEntrySchema>;
|
|
42
|
+
export declare const TraversedTagSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
43
|
+
id: import("@scalar/typebox").TString;
|
|
44
|
+
title: import("@scalar/typebox").TString;
|
|
45
|
+
}>, import("@scalar/typebox").TObject<{
|
|
46
|
+
type: TLiteral<"tag">;
|
|
47
|
+
name: import("@scalar/typebox").TString;
|
|
48
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
49
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
50
|
+
isGroup: import("@scalar/typebox").TBoolean;
|
|
51
|
+
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
52
|
+
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
53
|
+
}>]>;
|
|
54
|
+
export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"TraversedTagObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
55
|
+
id: import("@scalar/typebox").TString;
|
|
56
|
+
title: import("@scalar/typebox").TString;
|
|
57
|
+
}>, import("@scalar/typebox").TObject<{
|
|
58
|
+
type: TLiteral<"text">;
|
|
59
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
60
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
61
|
+
id: import("@scalar/typebox").TString;
|
|
62
|
+
title: import("@scalar/typebox").TString;
|
|
63
|
+
}>, import("@scalar/typebox").TObject<{
|
|
64
|
+
type: TLiteral<"operation">;
|
|
65
|
+
ref: import("@scalar/typebox").TString;
|
|
66
|
+
method: TLiteral<HttpMethod>;
|
|
67
|
+
path: import("@scalar/typebox").TString;
|
|
68
|
+
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
69
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
70
|
+
id: import("@scalar/typebox").TString;
|
|
71
|
+
title: import("@scalar/typebox").TString;
|
|
72
|
+
}>, import("@scalar/typebox").TObject<{
|
|
73
|
+
type: TLiteral<"model">;
|
|
74
|
+
ref: import("@scalar/typebox").TString;
|
|
75
|
+
name: import("@scalar/typebox").TString;
|
|
76
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
77
|
+
id: import("@scalar/typebox").TString;
|
|
78
|
+
title: import("@scalar/typebox").TString;
|
|
79
|
+
}>, import("@scalar/typebox").TObject<{
|
|
80
|
+
type: TLiteral<"webhook">;
|
|
81
|
+
ref: import("@scalar/typebox").TString;
|
|
82
|
+
method: TLiteral<HttpMethod>;
|
|
83
|
+
name: import("@scalar/typebox").TString;
|
|
84
|
+
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
85
|
+
}>]>]>;
|
|
154
86
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAKrD,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;IAMhD,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;YAO3B,QAAQ,CAAC,UAAU,CAAC;;;IAIvC,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;;;;IAO3C,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;YAOzB,QAAQ,CAAC,UAAU,CAAC;;;IAIvC,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;IAWxC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;YAzCvB,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;YAsBpB,QAAQ,CAAC,UAAU,CAAC;;;MAyBtC,CAAA"}
|
|
@@ -1,80 +1,76 @@
|
|
|
1
|
+
import { httpMethods } from "@scalar/helpers/http/http-methods";
|
|
1
2
|
import { Type } from "@scalar/typebox";
|
|
2
3
|
import { compose } from "../schemas/compose.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Type.Literal("text"),
|
|
6
|
-
Type.Literal("operation"),
|
|
7
|
-
Type.Literal("model"),
|
|
8
|
-
Type.Literal("tag"),
|
|
9
|
-
Type.Literal("webhook")
|
|
10
|
-
]),
|
|
4
|
+
import { TraversedEntryObjectRef, TraversedTagObjectRef } from "../schemas/v3.1/strict/ref-definitions.js";
|
|
5
|
+
const NavigationBaseSchemaDefinition = Type.Object({
|
|
11
6
|
id: Type.String(),
|
|
12
7
|
title: Type.String()
|
|
13
8
|
});
|
|
14
|
-
const
|
|
15
|
-
|
|
9
|
+
const TraversedDescriptionSchemaDefinition = compose(
|
|
10
|
+
NavigationBaseSchemaDefinition,
|
|
16
11
|
Type.Object({
|
|
17
12
|
type: Type.Literal("text"),
|
|
18
|
-
children: Type.Optional(Type.Array(
|
|
13
|
+
children: Type.Optional(Type.Array(TraversedEntryObjectRef))
|
|
19
14
|
})
|
|
20
15
|
);
|
|
21
|
-
const
|
|
22
|
-
|
|
16
|
+
const TraversedOperationSchemaDefinition = compose(
|
|
17
|
+
NavigationBaseSchemaDefinition,
|
|
23
18
|
Type.Object({
|
|
24
19
|
type: Type.Literal("operation"),
|
|
25
20
|
ref: Type.String(),
|
|
26
|
-
method: Type.
|
|
27
|
-
|
|
21
|
+
method: Type.Union(
|
|
22
|
+
Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
|
|
23
|
+
),
|
|
24
|
+
path: Type.String(),
|
|
25
|
+
isDeprecated: Type.Optional(Type.Boolean())
|
|
28
26
|
})
|
|
29
27
|
);
|
|
30
|
-
const
|
|
31
|
-
|
|
28
|
+
const TraversedSchemaSchemaDefinition = compose(
|
|
29
|
+
NavigationBaseSchemaDefinition,
|
|
32
30
|
Type.Object({
|
|
33
31
|
type: Type.Literal("model"),
|
|
34
32
|
ref: Type.String(),
|
|
35
33
|
name: Type.String()
|
|
36
34
|
})
|
|
37
35
|
);
|
|
38
|
-
const
|
|
39
|
-
|
|
36
|
+
const TraversedWebhookSchemaDefinition = compose(
|
|
37
|
+
NavigationBaseSchemaDefinition,
|
|
40
38
|
Type.Object({
|
|
41
39
|
type: Type.Literal("webhook"),
|
|
42
40
|
ref: Type.String(),
|
|
43
|
-
method: Type.
|
|
44
|
-
|
|
41
|
+
method: Type.Union(
|
|
42
|
+
Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
|
|
43
|
+
),
|
|
44
|
+
name: Type.String(),
|
|
45
|
+
isDeprecated: Type.Optional(Type.Boolean())
|
|
45
46
|
})
|
|
46
47
|
);
|
|
47
|
-
const TraversedEntryRef = Type.Ref("TraversedEntrySchema");
|
|
48
|
-
const TraversedTagRef = Type.Ref("TraversedTagSchema");
|
|
49
48
|
const TraversedTagSchemaDefinition = compose(
|
|
50
|
-
|
|
49
|
+
NavigationBaseSchemaDefinition,
|
|
51
50
|
Type.Object({
|
|
52
51
|
type: Type.Literal("tag"),
|
|
53
52
|
name: Type.String(),
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
description: Type.Optional(Type.String()),
|
|
54
|
+
children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
|
|
55
|
+
isGroup: Type.Boolean(),
|
|
56
|
+
isWebhooks: Type.Optional(Type.Boolean()),
|
|
57
|
+
xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
56
58
|
})
|
|
57
59
|
);
|
|
58
60
|
const TraversedEntrySchemaDefinition = Type.Union([
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
TraversedTagObjectRef,
|
|
62
|
+
TraversedDescriptionSchemaDefinition,
|
|
63
|
+
TraversedOperationSchemaDefinition,
|
|
64
|
+
TraversedSchemaSchemaDefinition,
|
|
65
|
+
TraversedWebhookSchemaDefinition
|
|
64
66
|
]);
|
|
65
|
-
const module = Type.Module({
|
|
66
|
-
TraversedTagSchema: TraversedTagSchemaDefinition,
|
|
67
|
-
TraversedEntrySchema: TraversedEntrySchemaDefinition
|
|
68
|
-
});
|
|
69
|
-
const TraversedTagSchema = module.Import("TraversedTagSchema");
|
|
70
|
-
const TraversedEntrySchema = module.Import("TraversedEntrySchema");
|
|
71
67
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
NavigationBaseSchemaDefinition,
|
|
69
|
+
TraversedDescriptionSchemaDefinition,
|
|
70
|
+
TraversedEntrySchemaDefinition,
|
|
71
|
+
TraversedOperationSchemaDefinition,
|
|
72
|
+
TraversedSchemaSchemaDefinition,
|
|
73
|
+
TraversedTagSchemaDefinition,
|
|
74
|
+
TraversedWebhookSchemaDefinition
|
|
79
75
|
};
|
|
80
76
|
//# sourceMappingURL=navigation.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/navigation.ts"],
|
|
4
|
-
"sourcesContent": ["import { type
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { type HttpMethod, httpMethods } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { TraversedEntryObjectRef, TraversedTagObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(\n Array.from(httpMethods.keys()).map((method) => Type.Literal(method)),\n ) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(\n Array.from(httpMethods.keys()).map((method) => Type.Literal(method)),\n ) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedTagObjectRef,\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n])\n"],
|
|
5
|
+
"mappings": "AAAA,SAA0B,mBAAmB;AAC7C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AACxB,SAAS,yBAAyB,6BAA6B;AAExD,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OA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