@scalar/workspace-store 0.41.2 → 0.42.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 +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -1
- package/dist/schemas/extensions/document/x-internal.d.ts +3 -0
- package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.js +7 -0
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts +31 -0
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-environments.js +25 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +3 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.js +7 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.js +7 -0
- package/dist/schemas/extensions/document/x-scalar-is-dirty.d.ts +3 -0
- package/dist/schemas/extensions/document/x-scalar-is-dirty.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-is-dirty.js +9 -0
- package/dist/schemas/extensions/document/x-scalar-original-document-hash.d.ts +3 -0
- package/dist/schemas/extensions/document/x-scalar-original-document-hash.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-original-document-hash.js +7 -0
- package/dist/schemas/extensions/document/x-scalar-registry-meta.d.ts +6 -0
- package/dist/schemas/extensions/document/x-scalar-registry-meta.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-registry-meta.js +25 -10
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +7 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +23 -5
- package/dist/schemas/extensions/document/x-scalar-watch-mode.d.ts +3 -0
- package/dist/schemas/extensions/document/x-scalar-watch-mode.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-watch-mode.js +7 -0
- package/dist/schemas/extensions/document/x-tags.d.ts +4 -1
- package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-tags.js +8 -1
- package/dist/schemas/extensions/example/x-disabled.d.ts +7 -1
- package/dist/schemas/extensions/example/x-disabled.d.ts.map +1 -1
- package/dist/schemas/extensions/example/x-disabled.js +8 -1
- package/dist/schemas/extensions/general/x-scalar-active-environment.d.ts +3 -0
- package/dist/schemas/extensions/general/x-scalar-active-environment.d.ts.map +1 -1
- package/dist/schemas/extensions/general/x-scalar-active-environment.js +7 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts +16 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts.map +1 -1
- package/dist/schemas/extensions/general/x-scalar-cookies.js +19 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts +3 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts.map +1 -1
- package/dist/schemas/extensions/general/x-scalar-order.js +7 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts +12 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.js +23 -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 +17 -0
- package/dist/schemas/extensions/operation/x-draft-examples.d.ts +3 -0
- package/dist/schemas/extensions/operation/x-draft-examples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-draft-examples.js +7 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts +3 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js +9 -0
- package/dist/schemas/extensions/operation/x-scalar-disable-parameters.d.ts +9 -0
- package/dist/schemas/extensions/operation/x-scalar-disable-parameters.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-disable-parameters.js +17 -0
- package/dist/schemas/extensions/operation/x-scalar-selected-content-type.d.ts +3 -0
- package/dist/schemas/extensions/operation/x-scalar-selected-content-type.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-selected-content-type.js +9 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +3 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.js +9 -0
- package/dist/schemas/extensions/parameter/x-global.d.ts +7 -1
- package/dist/schemas/extensions/parameter/x-global.d.ts.map +1 -1
- package/dist/schemas/extensions/parameter/x-global.js +8 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +3 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.js +7 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +4 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.js +9 -0
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts +4 -0
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.js +8 -0
- package/dist/schemas/extensions/schema/x-examples.d.ts +3 -0
- package/dist/schemas/extensions/schema/x-examples.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-examples.js +7 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts +3 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.js +7 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +3 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.js +7 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +3 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +3 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.js +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +3 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.js +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +25 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +50 -0
- package/dist/schemas/extensions/security/x-tokenName.d.ts +3 -0
- package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-tokenName.js +7 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +3 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js +9 -0
- package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts +3 -0
- package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts.map +1 -1
- package/dist/schemas/extensions/server/x-scalar-selected-server.js +7 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts +3 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js +7 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +14 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js +22 -1
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts +3 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts.map +1 -1
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js +7 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts +13 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts.map +1 -1
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js +20 -0
- package/dist/schemas/v3.1/openapi/index.d.ts +3 -0
- package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -0
- package/dist/schemas/v3.1/openapi/index.js +661 -0
- package/dist/schemas/v3.1/openapi/reference.d.ts +4 -0
- package/dist/schemas/v3.1/openapi/reference.d.ts.map +1 -0
- package/dist/schemas/v3.1/openapi/reference.js +29 -0
- package/dist/schemas/v3.1/strict/example.js +2 -2
- package/dist/schemas/v3.1/strict/parameter.js +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +2 -2
- package/package.json +5 -3
|
@@ -30,4 +30,7 @@ export declare const XScalarCredentialsLocationSchema: import("@scalar/typebox")
|
|
|
30
30
|
export type XScalarCredentialsLocation = {
|
|
31
31
|
'x-scalar-credentials-location'?: 'header' | 'body';
|
|
32
32
|
};
|
|
33
|
+
export declare const XScalarCredentialsLocation: import("@scalar/validation").ObjectSchema<{
|
|
34
|
+
'x-scalar-credentials-location': import("@scalar/validation").OptionalSchema<import("@scalar/validation").UnionSchema<(import("@scalar/validation").LiteralSchema<"header"> | import("@scalar/validation").LiteralSchema<"body">)[]>>;
|
|
35
|
+
}>;
|
|
33
36
|
//# sourceMappingURL=x-scalar-credentials-location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-credentials-location.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-credentials-location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-credentials-location.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-credentials-location.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC;;EAE3C,CAAA;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,+BAA+B,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,0BAA0B;;EAQtC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { literal, object, optional, union } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* An OpenAPI extension to specify where OAuth2 credentials should be sent
|
|
4
5
|
*
|
|
@@ -15,3 +16,9 @@ import { Type } from '@scalar/typebox';
|
|
|
15
16
|
export const XScalarCredentialsLocationSchema = Type.Object({
|
|
16
17
|
'x-scalar-credentials-location': Type.Optional(Type.Union([Type.Literal('header'), Type.Literal('body')])),
|
|
17
18
|
});
|
|
19
|
+
export const XScalarCredentialsLocation = object({
|
|
20
|
+
'x-scalar-credentials-location': optional(union([literal('header'), literal('body')])),
|
|
21
|
+
}, {
|
|
22
|
+
typeName: 'XScalarCredentialsLocation',
|
|
23
|
+
typeComment: 'Where OAuth2 credentials are sent',
|
|
24
|
+
});
|
|
@@ -26,4 +26,7 @@ export declare const XScalarSecurityBodySchema: import("@scalar/typebox").TObjec
|
|
|
26
26
|
export type XScalarSecurityBody = {
|
|
27
27
|
'x-scalar-security-body'?: Record<string, string>;
|
|
28
28
|
};
|
|
29
|
+
export declare const XScalarSecurityBody: import("@scalar/validation").ObjectSchema<{
|
|
30
|
+
'x-scalar-security-body': import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").StringSchema>>;
|
|
31
|
+
}>;
|
|
29
32
|
//# sourceMappingURL=x-scalar-security-body.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-security-body.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-body.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-security-body.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-body.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;EAEpC,CAAA;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,mBAAmB;;EAQ/B,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, record, string } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* An OpenAPI extension to set any additional body parameters for the OAuth token request
|
|
4
5
|
*
|
|
@@ -13,3 +14,9 @@ import { Type } from '@scalar/typebox';
|
|
|
13
14
|
export const XScalarSecurityBodySchema = Type.Object({
|
|
14
15
|
'x-scalar-security-body': Type.Optional(Type.Record(Type.String(), Type.String())),
|
|
15
16
|
});
|
|
17
|
+
export const XScalarSecurityBody = object({
|
|
18
|
+
'x-scalar-security-body': optional(record(string(), string())),
|
|
19
|
+
}, {
|
|
20
|
+
typeName: 'XScalarSecurityBody',
|
|
21
|
+
typeComment: 'Additional OAuth token request body parameters',
|
|
22
|
+
});
|
|
@@ -26,4 +26,7 @@ export declare const XScalarSecurityQuerySchema: import("@scalar/typebox").TObje
|
|
|
26
26
|
export type XScalarSecurityQuery = {
|
|
27
27
|
'x-scalar-security-query'?: Record<string, string>;
|
|
28
28
|
};
|
|
29
|
+
export declare const XScalarSecurityQuery: import("@scalar/validation").ObjectSchema<{
|
|
30
|
+
'x-scalar-security-query': import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").StringSchema>>;
|
|
31
|
+
}>;
|
|
29
32
|
//# sourceMappingURL=x-scalar-security-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-security-query.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-security-query.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-query.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B;;EAErC,CAAA;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnD,CAAA;AAED,eAAO,MAAM,oBAAoB;;EAQhC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, record, string } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* An OpenAPI extension set any query parameters for the OAuth authorize request
|
|
4
5
|
*
|
|
@@ -13,3 +14,9 @@ import { Type } from '@scalar/typebox';
|
|
|
13
14
|
export const XScalarSecurityQuerySchema = Type.Object({
|
|
14
15
|
'x-scalar-security-query': Type.Optional(Type.Record(Type.String(), Type.String())),
|
|
15
16
|
});
|
|
17
|
+
export const XScalarSecurityQuery = object({
|
|
18
|
+
'x-scalar-security-query': optional(record(string(), string())),
|
|
19
|
+
}, {
|
|
20
|
+
typeName: 'XScalarSecurityQuery',
|
|
21
|
+
typeComment: 'Additional OAuth authorize query parameters',
|
|
22
|
+
});
|
|
@@ -14,6 +14,9 @@ export declare const XScalarSecretTokenSchema: import("@scalar/typebox").TObject
|
|
|
14
14
|
export type XScalarSecretToken = {
|
|
15
15
|
'x-scalar-secret-token': string;
|
|
16
16
|
};
|
|
17
|
+
export declare const XScalarSecretToken: import("@scalar/validation").ObjectSchema<{
|
|
18
|
+
'x-scalar-secret-token': import("@scalar/validation").StringSchema;
|
|
19
|
+
}>;
|
|
17
20
|
/**
|
|
18
21
|
* OAuth refresh token
|
|
19
22
|
*
|
|
@@ -30,6 +33,9 @@ export declare const XScalarSecretRefreshTokenSchema: import("@scalar/typebox").
|
|
|
30
33
|
export type XScalarSecretRefreshToken = {
|
|
31
34
|
'x-scalar-secret-refresh-token'?: string;
|
|
32
35
|
};
|
|
36
|
+
export declare const XScalarSecretRefreshToken: import("@scalar/validation").ObjectSchema<{
|
|
37
|
+
'x-scalar-secret-refresh-token': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
38
|
+
}>;
|
|
33
39
|
/**
|
|
34
40
|
* OAuth auth url
|
|
35
41
|
*
|
|
@@ -46,6 +52,9 @@ export declare const XScalarAuthUrlSchema: import("@scalar/typebox").TObject<{
|
|
|
46
52
|
export type XScalarAuthUrl = {
|
|
47
53
|
'x-scalar-secret-auth-url'?: string;
|
|
48
54
|
};
|
|
55
|
+
export declare const XScalarAuthUrl: import("@scalar/validation").ObjectSchema<{
|
|
56
|
+
'x-scalar-secret-auth-url': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
57
|
+
}>;
|
|
49
58
|
/**
|
|
50
59
|
* OAuth token url
|
|
51
60
|
*
|
|
@@ -62,6 +71,9 @@ export declare const XScalarTokenUrlSchema: import("@scalar/typebox").TObject<{
|
|
|
62
71
|
export type XScalarTokenUrl = {
|
|
63
72
|
'x-scalar-secret-token-url'?: string;
|
|
64
73
|
};
|
|
74
|
+
export declare const XScalarTokenUrl: import("@scalar/validation").ObjectSchema<{
|
|
75
|
+
'x-scalar-secret-token-url': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
76
|
+
}>;
|
|
65
77
|
/**
|
|
66
78
|
* Username and password for HTTP authentication
|
|
67
79
|
*
|
|
@@ -80,6 +92,10 @@ export type XScalarSecretHTTP = {
|
|
|
80
92
|
'x-scalar-secret-username': string;
|
|
81
93
|
'x-scalar-secret-password': string;
|
|
82
94
|
};
|
|
95
|
+
export declare const XScalarSecretHTTP: import("@scalar/validation").ObjectSchema<{
|
|
96
|
+
'x-scalar-secret-username': import("@scalar/validation").StringSchema;
|
|
97
|
+
'x-scalar-secret-password': import("@scalar/validation").StringSchema;
|
|
98
|
+
}>;
|
|
83
99
|
/**
|
|
84
100
|
* Oauth client secret
|
|
85
101
|
*
|
|
@@ -96,6 +112,9 @@ export declare const XScalarSecretClientSecretSchema: import("@scalar/typebox").
|
|
|
96
112
|
export type XScalarSecretClientSecret = {
|
|
97
113
|
'x-scalar-secret-client-secret': string;
|
|
98
114
|
};
|
|
115
|
+
export declare const XScalarSecretClientSecret: import("@scalar/validation").ObjectSchema<{
|
|
116
|
+
'x-scalar-secret-client-secret': import("@scalar/validation").StringSchema;
|
|
117
|
+
}>;
|
|
99
118
|
/**
|
|
100
119
|
* Oauth client ID
|
|
101
120
|
*
|
|
@@ -112,6 +131,9 @@ export declare const XScalarSecretClientIdSchema: import("@scalar/typebox").TObj
|
|
|
112
131
|
export type XScalarSecretClientId = {
|
|
113
132
|
'x-scalar-secret-client-id': string;
|
|
114
133
|
};
|
|
134
|
+
export declare const XScalarSecretClientId: import("@scalar/validation").ObjectSchema<{
|
|
135
|
+
'x-scalar-secret-client-id': import("@scalar/validation").StringSchema;
|
|
136
|
+
}>;
|
|
115
137
|
/**
|
|
116
138
|
* Oauth Redirect URI
|
|
117
139
|
*
|
|
@@ -128,4 +150,7 @@ export declare const XScalarSecretRedirectUriSchema: import("@scalar/typebox").T
|
|
|
128
150
|
export type XScalarSecretRedirectUri = {
|
|
129
151
|
'x-scalar-secret-redirect-uri': string;
|
|
130
152
|
};
|
|
153
|
+
export declare const XScalarSecretRedirectUri: import("@scalar/validation").ObjectSchema<{
|
|
154
|
+
'x-scalar-secret-redirect-uri': import("@scalar/validation").StringSchema;
|
|
155
|
+
}>;
|
|
131
156
|
//# sourceMappingURL=x-scalar-security-secrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-security-secrets.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-security-secrets.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;EAEnC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,kBAAkB;;EAQ9B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,+BAA+B,CAAC,EAAE,MAAM,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,yBAAyB;;EAQrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;EAE/B,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,cAAc;;EAQ1B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;EAEhC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2BAA2B,CAAC,EAAE,MAAM,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,eAAe;;EAQ3B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;EAGlC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,0BAA0B,EAAE,MAAM,CAAA;IAClC,0BAA0B,EAAE,MAAM,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,iBAAiB;;;EAS7B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,+BAA+B,EAAE,MAAM,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,yBAAyB;;EAQrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,2BAA2B,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,qBAAqB;;EAQjC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;EAEzC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,8BAA8B,EAAE,MAAM,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,wBAAwB;;EAQpC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* A scalar secret token
|
|
4
5
|
*
|
|
@@ -7,6 +8,12 @@ import { Type } from '@scalar/typebox';
|
|
|
7
8
|
export const XScalarSecretTokenSchema = Type.Object({
|
|
8
9
|
'x-scalar-secret-token': Type.String(),
|
|
9
10
|
});
|
|
11
|
+
export const XScalarSecretToken = object({
|
|
12
|
+
'x-scalar-secret-token': string(),
|
|
13
|
+
}, {
|
|
14
|
+
typeName: 'XScalarSecretToken',
|
|
15
|
+
typeComment: 'Persisted OAuth access token (sensitive)',
|
|
16
|
+
});
|
|
10
17
|
/**
|
|
11
18
|
* OAuth refresh token
|
|
12
19
|
*
|
|
@@ -15,6 +22,12 @@ export const XScalarSecretTokenSchema = Type.Object({
|
|
|
15
22
|
export const XScalarSecretRefreshTokenSchema = Type.Object({
|
|
16
23
|
'x-scalar-secret-refresh-token': Type.Optional(Type.String()),
|
|
17
24
|
});
|
|
25
|
+
export const XScalarSecretRefreshToken = object({
|
|
26
|
+
'x-scalar-secret-refresh-token': optional(string()),
|
|
27
|
+
}, {
|
|
28
|
+
typeName: 'XScalarSecretRefreshToken',
|
|
29
|
+
typeComment: 'Persisted OAuth refresh token (sensitive)',
|
|
30
|
+
});
|
|
18
31
|
/**
|
|
19
32
|
* OAuth auth url
|
|
20
33
|
*
|
|
@@ -23,6 +36,12 @@ export const XScalarSecretRefreshTokenSchema = Type.Object({
|
|
|
23
36
|
export const XScalarAuthUrlSchema = Type.Object({
|
|
24
37
|
'x-scalar-secret-auth-url': Type.Optional(Type.String()),
|
|
25
38
|
});
|
|
39
|
+
export const XScalarAuthUrl = object({
|
|
40
|
+
'x-scalar-secret-auth-url': optional(string()),
|
|
41
|
+
}, {
|
|
42
|
+
typeName: 'XScalarAuthUrl',
|
|
43
|
+
typeComment: 'Persisted OAuth authorization URL override',
|
|
44
|
+
});
|
|
26
45
|
/**
|
|
27
46
|
* OAuth token url
|
|
28
47
|
*
|
|
@@ -31,6 +50,12 @@ export const XScalarAuthUrlSchema = Type.Object({
|
|
|
31
50
|
export const XScalarTokenUrlSchema = Type.Object({
|
|
32
51
|
'x-scalar-secret-token-url': Type.Optional(Type.String()),
|
|
33
52
|
});
|
|
53
|
+
export const XScalarTokenUrl = object({
|
|
54
|
+
'x-scalar-secret-token-url': optional(string()),
|
|
55
|
+
}, {
|
|
56
|
+
typeName: 'XScalarTokenUrl',
|
|
57
|
+
typeComment: 'Persisted OAuth token URL override',
|
|
58
|
+
});
|
|
34
59
|
/**
|
|
35
60
|
* Username and password for HTTP authentication
|
|
36
61
|
*
|
|
@@ -40,6 +65,13 @@ export const XScalarSecretHTTPSchema = Type.Object({
|
|
|
40
65
|
'x-scalar-secret-username': Type.String(),
|
|
41
66
|
'x-scalar-secret-password': Type.String(),
|
|
42
67
|
});
|
|
68
|
+
export const XScalarSecretHTTP = object({
|
|
69
|
+
'x-scalar-secret-username': string(),
|
|
70
|
+
'x-scalar-secret-password': string(),
|
|
71
|
+
}, {
|
|
72
|
+
typeName: 'XScalarSecretHTTP',
|
|
73
|
+
typeComment: 'Persisted HTTP basic credentials (sensitive)',
|
|
74
|
+
});
|
|
43
75
|
/**
|
|
44
76
|
* Oauth client secret
|
|
45
77
|
*
|
|
@@ -48,6 +80,12 @@ export const XScalarSecretHTTPSchema = Type.Object({
|
|
|
48
80
|
export const XScalarSecretClientSecretSchema = Type.Object({
|
|
49
81
|
'x-scalar-secret-client-secret': Type.String(),
|
|
50
82
|
});
|
|
83
|
+
export const XScalarSecretClientSecret = object({
|
|
84
|
+
'x-scalar-secret-client-secret': string(),
|
|
85
|
+
}, {
|
|
86
|
+
typeName: 'XScalarSecretClientSecret',
|
|
87
|
+
typeComment: 'Persisted OAuth client secret (sensitive)',
|
|
88
|
+
});
|
|
51
89
|
/**
|
|
52
90
|
* Oauth client ID
|
|
53
91
|
*
|
|
@@ -56,6 +94,12 @@ export const XScalarSecretClientSecretSchema = Type.Object({
|
|
|
56
94
|
export const XScalarSecretClientIdSchema = Type.Object({
|
|
57
95
|
'x-scalar-secret-client-id': Type.String(),
|
|
58
96
|
});
|
|
97
|
+
export const XScalarSecretClientId = object({
|
|
98
|
+
'x-scalar-secret-client-id': string(),
|
|
99
|
+
}, {
|
|
100
|
+
typeName: 'XScalarSecretClientId',
|
|
101
|
+
typeComment: 'Persisted OAuth client ID',
|
|
102
|
+
});
|
|
59
103
|
/**
|
|
60
104
|
* Oauth Redirect URI
|
|
61
105
|
*
|
|
@@ -64,3 +108,9 @@ export const XScalarSecretClientIdSchema = Type.Object({
|
|
|
64
108
|
export const XScalarSecretRedirectUriSchema = Type.Object({
|
|
65
109
|
'x-scalar-secret-redirect-uri': Type.String(),
|
|
66
110
|
});
|
|
111
|
+
export const XScalarSecretRedirectUri = object({
|
|
112
|
+
'x-scalar-secret-redirect-uri': string(),
|
|
113
|
+
}, {
|
|
114
|
+
typeName: 'XScalarSecretRedirectUri',
|
|
115
|
+
typeComment: 'Persisted OAuth redirect URI',
|
|
116
|
+
});
|
|
@@ -20,4 +20,7 @@ export declare const XTokenNameSchema: import("@scalar/typebox").TObject<{
|
|
|
20
20
|
export type XTokenName = {
|
|
21
21
|
'x-tokenName'?: string;
|
|
22
22
|
};
|
|
23
|
+
export declare const XTokenName: import("@scalar/validation").ObjectSchema<{
|
|
24
|
+
'x-tokenName': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
25
|
+
}>;
|
|
23
26
|
//# sourceMappingURL=x-tokenName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-tokenName.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-tokenName.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-tokenName.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-tokenName.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;EAE3B,CAAA;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,UAAU;;EAQtB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* An OpenAPI extension to specify a custom token name for OAuth2 flows
|
|
4
5
|
*
|
|
@@ -10,3 +11,9 @@ import { Type } from '@scalar/typebox';
|
|
|
10
11
|
export const XTokenNameSchema = Type.Object({
|
|
11
12
|
'x-tokenName': Type.Optional(Type.String()),
|
|
12
13
|
});
|
|
14
|
+
export const XTokenName = object({
|
|
15
|
+
'x-tokenName': optional(string()),
|
|
16
|
+
}, {
|
|
17
|
+
typeName: 'XTokenName',
|
|
18
|
+
typeComment: 'Custom OAuth2 access token field name',
|
|
19
|
+
});
|
|
@@ -10,4 +10,7 @@ export type XusePkce = {
|
|
|
10
10
|
*/
|
|
11
11
|
'x-usePkce': 'SHA-256' | 'plain' | 'no';
|
|
12
12
|
};
|
|
13
|
+
export declare const XusePkce: import("@scalar/validation").ObjectSchema<{
|
|
14
|
+
'x-usePkce': import("@scalar/validation").UnionSchema<(import("@scalar/validation").LiteralSchema<"SHA-256"> | import("@scalar/validation").LiteralSchema<"plain"> | import("@scalar/validation").LiteralSchema<"no">)[]>;
|
|
15
|
+
}>;
|
|
13
16
|
//# sourceMappingURL=x-use-pkce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-use-pkce.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-use-pkce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-use-pkce.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-use-pkce.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;IACzB;;OAEG;;EAEH,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,QAAQ;;EAUpB,CAAA"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { literal, object, union } from '@scalar/validation';
|
|
2
3
|
export const XusePkceSchema = Type.Object({
|
|
3
4
|
/**
|
|
4
5
|
* Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.
|
|
5
6
|
*/
|
|
6
7
|
'x-usePkce': Type.Union([Type.Literal('SHA-256'), Type.Literal('plain'), Type.Literal('no')], { default: 'no' }),
|
|
7
8
|
});
|
|
9
|
+
export const XusePkce = object({
|
|
10
|
+
'x-usePkce': union([literal('SHA-256'), literal('plain'), literal('no')], {
|
|
11
|
+
typeComment: 'PKCE mode for the OAuth2 authorization code flow',
|
|
12
|
+
}),
|
|
13
|
+
}, {
|
|
14
|
+
typeName: 'XusePkce',
|
|
15
|
+
typeComment: 'PKCE setting for OAuth2',
|
|
16
|
+
});
|
|
@@ -5,4 +5,7 @@ export type XScalarSelectedServer = {
|
|
|
5
5
|
/** The URL of the currently selected server */
|
|
6
6
|
'x-scalar-selected-server'?: string;
|
|
7
7
|
};
|
|
8
|
+
export declare const XScalarSelectedServer: import("@scalar/validation").ObjectSchema<{
|
|
9
|
+
'x-scalar-selected-server': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
10
|
+
}>;
|
|
8
11
|
//# sourceMappingURL=x-scalar-selected-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-selected-server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-selected-server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,+CAA+C;IAC/C,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,qBAAqB;;EAQjC,CAAA"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
3
|
export const XScalarSelectedServerSchema = Type.Object({
|
|
3
4
|
'x-scalar-selected-server': Type.Optional(Type.String()),
|
|
4
5
|
});
|
|
6
|
+
export const XScalarSelectedServer = object({
|
|
7
|
+
'x-scalar-selected-server': optional(string({ typeComment: 'The URL of the currently selected server' })),
|
|
8
|
+
}, {
|
|
9
|
+
typeName: 'XScalarSelectedServer',
|
|
10
|
+
typeComment: 'The URL of the currently selected server',
|
|
11
|
+
});
|
|
@@ -20,4 +20,7 @@ export declare const XDisplayNameSchema: import("@scalar/typebox").TObject<{
|
|
|
20
20
|
export type XDisplayName = {
|
|
21
21
|
'x-displayName'?: string;
|
|
22
22
|
};
|
|
23
|
+
export declare const XDisplayName: import("@scalar/validation").ObjectSchema<{
|
|
24
|
+
'x-displayName': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
25
|
+
}>;
|
|
23
26
|
//# sourceMappingURL=x-display-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-display-name.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-display-name.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-display-name.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-display-name.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;EAE7B,CAAA;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,YAAY;;EAQxB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { object, optional, string } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* An OpenAPI extension to overwrite tag names with a display-friendly version
|
|
4
5
|
*
|
|
@@ -10,3 +11,9 @@ import { Type } from '@scalar/typebox';
|
|
|
10
11
|
export const XDisplayNameSchema = Type.Object({
|
|
11
12
|
'x-displayName': Type.Optional(Type.String()),
|
|
12
13
|
});
|
|
14
|
+
export const XDisplayName = object({
|
|
15
|
+
'x-displayName': optional(string()),
|
|
16
|
+
}, {
|
|
17
|
+
typeName: 'XDisplayName',
|
|
18
|
+
typeComment: 'Display-friendly name for a tag',
|
|
19
|
+
});
|
|
@@ -9,6 +9,12 @@ export type XTagGroup = {
|
|
|
9
9
|
*/
|
|
10
10
|
tags: string[];
|
|
11
11
|
} & XScalarOrder;
|
|
12
|
+
export declare const XTagGroup: import("@scalar/validation").IntersectionSchema<(import("@scalar/validation").ObjectSchema<{
|
|
13
|
+
'x-scalar-order': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>>;
|
|
14
|
+
}> | import("@scalar/validation").ObjectSchema<{
|
|
15
|
+
name: import("@scalar/validation").StringSchema;
|
|
16
|
+
tags: import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>;
|
|
17
|
+
}>)[]>;
|
|
12
18
|
/**
|
|
13
19
|
* x-tagGroups
|
|
14
20
|
*
|
|
@@ -36,4 +42,12 @@ export type XTagGroups = {
|
|
|
36
42
|
*/
|
|
37
43
|
'x-tagGroups'?: XTagGroup[];
|
|
38
44
|
};
|
|
45
|
+
export declare const XTagGroups: import("@scalar/validation").ObjectSchema<{
|
|
46
|
+
'x-tagGroups': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").IntersectionSchema<(import("@scalar/validation").ObjectSchema<{
|
|
47
|
+
'x-scalar-order': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>>;
|
|
48
|
+
}> | import("@scalar/validation").ObjectSchema<{
|
|
49
|
+
name: import("@scalar/validation").StringSchema;
|
|
50
|
+
tags: import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>;
|
|
51
|
+
}>)[]>>>;
|
|
52
|
+
}>;
|
|
39
53
|
//# sourceMappingURL=x-tag-groups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-tag-groups.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-tag-groups.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6CAA6C,CAAA;AAgBpD,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,GAAG,YAAY,CAAA;AAEhB,eAAO,MAAM,SAAS;;;;;MAiBrB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;QA/CzB;;WAEG;;QAEH;;WAEG;;;;;EA2CL,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;EAYtB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { array, intersection, object, optional, string } from '@scalar/validation';
|
|
2
3
|
import { compose } from '../../../schemas/compose.js';
|
|
3
|
-
import { XScalarOrderSchema } from '../../../schemas/extensions/general/x-scalar-order.js';
|
|
4
|
+
import { XScalarOrder as XScalarOrderFields, XScalarOrderSchema, } from '../../../schemas/extensions/general/x-scalar-order.js';
|
|
4
5
|
const XTagGroupSchema = compose(Type.Object({
|
|
5
6
|
/**
|
|
6
7
|
* The group name.
|
|
@@ -11,6 +12,18 @@ const XTagGroupSchema = compose(Type.Object({
|
|
|
11
12
|
*/
|
|
12
13
|
tags: Type.Array(Type.String()),
|
|
13
14
|
}), XScalarOrderSchema);
|
|
15
|
+
export const XTagGroup = intersection([
|
|
16
|
+
object({
|
|
17
|
+
name: string({ typeComment: 'The group name.' }),
|
|
18
|
+
tags: array(string(), { typeComment: 'List of tags to include in this group.' }),
|
|
19
|
+
}, {
|
|
20
|
+
typeName: 'XTagGroupBase',
|
|
21
|
+
}),
|
|
22
|
+
XScalarOrderFields,
|
|
23
|
+
], {
|
|
24
|
+
typeName: 'XTagGroup',
|
|
25
|
+
typeComment: 'A tag group with optional custom ordering',
|
|
26
|
+
});
|
|
14
27
|
/**
|
|
15
28
|
* x-tagGroups
|
|
16
29
|
*
|
|
@@ -19,3 +32,11 @@ const XTagGroupSchema = compose(Type.Object({
|
|
|
19
32
|
export const XTagGroupsSchema = Type.Object({
|
|
20
33
|
'x-tagGroups': Type.Optional(Type.Array(XTagGroupSchema)),
|
|
21
34
|
});
|
|
35
|
+
export const XTagGroups = object({
|
|
36
|
+
'x-tagGroups': optional(array(XTagGroup, {
|
|
37
|
+
typeComment: 'Tag groups for organizing tags in the UI',
|
|
38
|
+
})),
|
|
39
|
+
}, {
|
|
40
|
+
typeName: 'XTagGroups',
|
|
41
|
+
typeComment: 'Groups of tags for the OpenAPI document',
|
|
42
|
+
});
|
|
@@ -15,4 +15,7 @@ export type XScalarActiveProxy = {
|
|
|
15
15
|
/** The currently selected proxy */
|
|
16
16
|
'x-scalar-active-proxy'?: string | null;
|
|
17
17
|
};
|
|
18
|
+
export declare const XScalarActiveProxy: import("@scalar/validation").ObjectSchema<{
|
|
19
|
+
'x-scalar-active-proxy': import("@scalar/validation").OptionalSchema<import("@scalar/validation").UnionSchema<(import("@scalar/validation").StringSchema | import("@scalar/validation").NullableSchema)[]>>;
|
|
20
|
+
}>;
|
|
18
21
|
//# sourceMappingURL=x-scalar-active-proxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-active-proxy.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/workspace/x-scalar-active-proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-active-proxy.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/workspace/x-scalar-active-proxy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;EAEnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,kBAAkB;;EAQ9B,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { nullable, object, optional, string, union } from '@scalar/validation';
|
|
2
3
|
/**
|
|
3
4
|
* Schema for the x-scalar-active-proxy extension.
|
|
4
5
|
*
|
|
@@ -12,3 +13,9 @@ import { Type } from '@scalar/typebox';
|
|
|
12
13
|
export const XScalarActiveProxySchema = Type.Object({
|
|
13
14
|
'x-scalar-active-proxy': Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
14
15
|
});
|
|
16
|
+
export const XScalarActiveProxy = object({
|
|
17
|
+
'x-scalar-active-proxy': optional(union([string(), nullable()], { typeComment: 'The currently selected proxy' })),
|
|
18
|
+
}, {
|
|
19
|
+
typeName: 'XScalarActiveProxy',
|
|
20
|
+
typeComment: 'The currently selected proxy identifier',
|
|
21
|
+
});
|
|
@@ -4,6 +4,11 @@ export type Tab = {
|
|
|
4
4
|
title: string;
|
|
5
5
|
icon?: TabIcon;
|
|
6
6
|
};
|
|
7
|
+
export declare const Tab: import("@scalar/validation").ObjectSchema<{
|
|
8
|
+
path: import("@scalar/validation").StringSchema;
|
|
9
|
+
title: import("@scalar/validation").StringSchema;
|
|
10
|
+
icon: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
11
|
+
}>;
|
|
7
12
|
/**
|
|
8
13
|
* Schema for workspace tab configuration.
|
|
9
14
|
*
|
|
@@ -32,5 +37,13 @@ export type XScalarTabs = {
|
|
|
32
37
|
/** The identifier of the currently active/focused tab */
|
|
33
38
|
'x-scalar-active-tab'?: number;
|
|
34
39
|
};
|
|
40
|
+
export declare const XScalarTabs: import("@scalar/validation").ObjectSchema<{
|
|
41
|
+
'x-scalar-tabs': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
|
|
42
|
+
path: import("@scalar/validation").StringSchema;
|
|
43
|
+
title: import("@scalar/validation").StringSchema;
|
|
44
|
+
icon: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
|
|
45
|
+
}>>>;
|
|
46
|
+
'x-scalar-active-tab': import("@scalar/validation").OptionalSchema<import("@scalar/validation").NumberSchema>;
|
|
47
|
+
}>;
|
|
35
48
|
export {};
|
|
36
49
|
//# sourceMappingURL=x-scalar-tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-tabs.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/workspace/x-scalar-tabs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-tabs.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/workspace/x-scalar-tabs.ts"],"names":[],"mappings":"AAGA,KAAK,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAQrC,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,eAAO,MAAM,GAAG;;;;EAUf,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAC5B,wEAAwE;;;;;;IAExE,yDAAyD;;EAEzD,CAAA;AAEF;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,wEAAwE;IACxE,eAAe,CAAC,EAAE,GAAG,EAAE,CAAA;IACvB,yDAAyD;IACzD,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;EAiBvB,CAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { Type } from '@scalar/typebox';
|
|
2
|
+
import { array, number, object, optional, string } from '@scalar/validation';
|
|
2
3
|
const TabSchema = Type.Object({
|
|
3
4
|
path: Type.String(),
|
|
4
5
|
title: Type.String(),
|
|
5
6
|
icon: Type.Optional(Type.String()),
|
|
6
7
|
});
|
|
8
|
+
export const Tab = object({
|
|
9
|
+
path: string(),
|
|
10
|
+
title: string(),
|
|
11
|
+
icon: optional(string()),
|
|
12
|
+
}, {
|
|
13
|
+
typeName: 'Tab',
|
|
14
|
+
typeComment: 'An open tab in the workspace',
|
|
15
|
+
});
|
|
7
16
|
/**
|
|
8
17
|
* Schema for workspace tab configuration.
|
|
9
18
|
*
|
|
@@ -16,3 +25,14 @@ export const XScalarTabsSchema = Type.Object({
|
|
|
16
25
|
/** The identifier of the currently active/focused tab */
|
|
17
26
|
'x-scalar-active-tab': Type.Optional(Type.Number()),
|
|
18
27
|
});
|
|
28
|
+
export const XScalarTabs = object({
|
|
29
|
+
'x-scalar-tabs': optional(array(Tab, {
|
|
30
|
+
typeComment: 'Tabs that are open in the workspace',
|
|
31
|
+
})),
|
|
32
|
+
'x-scalar-active-tab': optional(number({
|
|
33
|
+
typeComment: 'The currently active or focused tab',
|
|
34
|
+
})),
|
|
35
|
+
}, {
|
|
36
|
+
typeName: 'XScalarTabs',
|
|
37
|
+
typeComment: 'Workspace tab configuration',
|
|
38
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AAyC3B,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,+GAgiCjE,CAAA"}
|