@scalar/workspace-store 0.15.8 → 0.16.2
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 +31 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +2 -2
- package/dist/mutators/index.d.ts +6 -24
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +0 -2
- package/dist/mutators/index.js.map +2 -2
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js.map +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +2 -182
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +1 -1
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +2 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +2 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +1 -0
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +2 -1
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
- package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -2
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
- package/dist/schemas/extensions/document/x-tags.d.ts +3 -0
- package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-tags.js.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/x-badge.d.ts +62 -22
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.js +24 -3
- package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +10 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.d.ts +18 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +11 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +10 -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.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +30 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts +38 -0
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.js.map +1 -1
- 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.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +33 -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-credentials-location.d.ts +16 -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.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +68 -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-tokenName.d.ts +12 -1
- package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-tokenName.js +2 -2
- package/dist/schemas/extensions/security/x-tokenName.js.map +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +7 -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/extensions/tag/x-display-name.d.ts +11 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +18 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +207 -86
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +4 -1
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/navigation.d.ts +50 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +5 -9
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/appearance.d.ts +9 -2
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
- package/dist/schemas/reference-config/appearance.js.map +2 -2
- package/dist/schemas/reference-config/features.d.ts +11 -2
- package/dist/schemas/reference-config/features.d.ts.map +1 -1
- package/dist/schemas/reference-config/features.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +114 -45
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js +5 -5
- package/dist/schemas/reference-config/index.js.map +2 -2
- package/dist/schemas/reference-config/meta.d.ts +8 -2
- package/dist/schemas/reference-config/meta.d.ts.map +1 -1
- package/dist/schemas/reference-config/meta.js.map +2 -2
- package/dist/schemas/reference-config/routing.d.ts +4 -2
- package/dist/schemas/reference-config/routing.d.ts.map +1 -1
- package/dist/schemas/reference-config/routing.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +105 -45
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/v3.1/strict/callback.d.ts +4 -0
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/callback.js +2 -2
- package/dist/schemas/v3.1/strict/callback.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +19 -3
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +10 -4
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +2 -2
- package/dist/schemas/v3.1/strict/components.d.ts +34 -0
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +1 -1
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts +9 -0
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.d.ts +11 -0
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.d.ts +15 -0
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts +15 -0
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +9 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +3 -3
- package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
- package/dist/schemas/v3.1/strict/header.d.ts +41 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +2 -2
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/info.d.ts +24 -2
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +7 -5
- package/dist/schemas/v3.1/strict/info.js.map +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts +9 -0
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.d.ts +22 -0
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +2 -2
- package/dist/schemas/v3.1/strict/media-type.d.ts +19 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +2 -2
- package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +171 -29
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +43 -15
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +78 -12
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +3369 -1476
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +45 -44
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +44 -17
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +2 -3
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +45 -0
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +38 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +1 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/paths.d.ts +5 -0
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +1 -1
- package/dist/schemas/v3.1/strict/paths.js.map +2 -2
- package/dist/schemas/v3.1/strict/reference.d.ts +21 -4
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +2 -2
- package/dist/schemas/v3.1/strict/request-body.d.ts +10 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +1 -1
- package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +17 -0
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +1 -1
- package/dist/schemas/v3.1/strict/response.js.map +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +12 -0
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +1 -1
- package/dist/schemas/v3.1/strict/responses.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +144 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +40 -60
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.d.ts +12 -0
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +49 -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/v3.1/strict/server-variable.d.ts +9 -0
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.d.ts +10 -0
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +13 -0
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/type-guards.d.ts +1 -1
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/type-guards.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.d.ts +17 -0
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/workspace-specification/config.d.ts +101 -44
- 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 +110 -44
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js.map +2 -2
- package/dist/schemas/workspace-specification/info.d.ts +4 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/info.js.map +1 -1
- package/dist/schemas/workspace.d.ts +707 -300
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +11 -3
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +6 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +2 -2
- package/package.json +9 -14
- package/dist/mutators/request-example.d.ts +0 -21
- package/dist/mutators/request-example.d.ts.map +0 -1
- package/dist/mutators/request-example.js +0 -55
- package/dist/mutators/request-example.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +0 -4
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +0 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +0 -8
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +0 -7
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
- package/dist/types.d.ts +0 -18
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- /package/dist/{types.js.map → schemas/extensions/operation/index.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/document/x-tags.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XTags = Type.Object({\n 'x-tags': Type.Optional(Type.Array(Type.String())),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XTags = Type.Object({\n 'x-tags': Type.Optional(Type.Array(Type.String())),\n})\n\nexport type XTags = {\n 'x-tags'?: string[]\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,QAAQ,KAAK,OAAO;AAAA,EAC/B,UAAU,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AACnD,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
/**
|
|
3
2
|
* Schema for individual badge configuration in x-badges extension.
|
|
4
3
|
* Badges are indicators that can be displayed in API documentation.
|
|
5
4
|
*/
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const XBadgeSchema: import("@scalar/typebox").TObject<{
|
|
7
6
|
/** The text that displays in the badge. This is required for all badges. */
|
|
8
7
|
name: import("@scalar/typebox").TString;
|
|
9
8
|
/**
|
|
@@ -17,29 +16,46 @@ export declare const BadgeSchema: import("@scalar/typebox").TObject<{
|
|
|
17
16
|
*/
|
|
18
17
|
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
19
18
|
}>;
|
|
20
|
-
export type XBadge = Static<typeof BadgeSchema>;
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* ```yaml
|
|
25
|
-
* openapi: 3.1.0
|
|
26
|
-
* info:
|
|
27
|
-
* title: x-badges
|
|
28
|
-
* version: 1.0.0
|
|
29
|
-
* paths:
|
|
30
|
-
* /hello-world:
|
|
31
|
-
* get:
|
|
32
|
-
* summary: Hello World
|
|
33
|
-
* x-badges:
|
|
34
|
-
* - name: 'Alpha'
|
|
35
|
-
* - name: 'Beta'
|
|
36
|
-
* position: before
|
|
37
|
-
* - name: 'Gamma'
|
|
38
|
-
* position: after
|
|
39
|
-
* color: '#ffcc00'
|
|
40
|
-
```
|
|
20
|
+
* Schema for individual badge configuration in x-badges extension.
|
|
21
|
+
* Badges are indicators that can be displayed in API documentation.
|
|
41
22
|
*/
|
|
23
|
+
export type XBadge = {
|
|
24
|
+
/** The text that displays in the badge. This is required for all badges. */
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* The position of the badge in relation to the header.
|
|
28
|
+
* @default 'after'
|
|
29
|
+
*/
|
|
30
|
+
position?: 'before' | 'after';
|
|
31
|
+
/**
|
|
32
|
+
* The color of the badge. Can be defined in various formats such as color keywords,
|
|
33
|
+
* RGB, RGBA, HSL, HSLA, and Hexadecimal.
|
|
34
|
+
*/
|
|
35
|
+
color?: string;
|
|
36
|
+
};
|
|
42
37
|
export declare const XBadgesSchema: import("@scalar/typebox").TObject<{
|
|
38
|
+
/**
|
|
39
|
+
* You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:
|
|
40
|
+
*
|
|
41
|
+
* ```yaml
|
|
42
|
+
* openapi: 3.1.0
|
|
43
|
+
* info:
|
|
44
|
+
* title: x-badges
|
|
45
|
+
* version: 1.0.0
|
|
46
|
+
* paths:
|
|
47
|
+
* /hello-world:
|
|
48
|
+
* get:
|
|
49
|
+
* summary: Hello World
|
|
50
|
+
* x-badges:
|
|
51
|
+
* - name: 'Alpha'
|
|
52
|
+
* - name: 'Beta'
|
|
53
|
+
* position: before
|
|
54
|
+
* - name: 'Gamma'
|
|
55
|
+
* position: after
|
|
56
|
+
* color: '#ffcc00'
|
|
57
|
+
```
|
|
58
|
+
*/
|
|
43
59
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
44
60
|
/** The text that displays in the badge. This is required for all badges. */
|
|
45
61
|
name: import("@scalar/typebox").TString;
|
|
@@ -55,4 +71,28 @@ export declare const XBadgesSchema: import("@scalar/typebox").TObject<{
|
|
|
55
71
|
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
56
72
|
}>>>;
|
|
57
73
|
}>;
|
|
74
|
+
export type XBadges = {
|
|
75
|
+
/**
|
|
76
|
+
* You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:
|
|
77
|
+
*
|
|
78
|
+
* ```yaml
|
|
79
|
+
* openapi: 3.1.0
|
|
80
|
+
* info:
|
|
81
|
+
* title: x-badges
|
|
82
|
+
* version: 1.0.0
|
|
83
|
+
* paths:
|
|
84
|
+
* /hello-world:
|
|
85
|
+
* get:
|
|
86
|
+
* summary: Hello World
|
|
87
|
+
* x-badges:
|
|
88
|
+
* - name: 'Alpha'
|
|
89
|
+
* - name: 'Beta'
|
|
90
|
+
* position: before
|
|
91
|
+
* - name: 'Gamma'
|
|
92
|
+
* position: after
|
|
93
|
+
* color: '#ffcc00'
|
|
94
|
+
```
|
|
95
|
+
*/
|
|
96
|
+
'x-badges'?: XBadge[];
|
|
97
|
+
};
|
|
58
98
|
//# sourceMappingURL=x-badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-badge.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-badge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-badge.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-badge.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,YAAY;IAErB,4EAA4E;;IAK5E;;;OAGG;;IAOH;;;OAGG;;EAYN,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,aAAa;IACxB;;;;;;;;;;;;;;;;;;;;OAoBG;;QAxED,4EAA4E;;QAK5E;;;WAGG;;QAOH;;;WAGG;;;EAwDL,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
|
-
const
|
|
2
|
+
const XBadgeSchema = Type.Object(
|
|
3
3
|
{
|
|
4
4
|
/** The text that displays in the badge. This is required for all badges. */
|
|
5
5
|
name: Type.String({
|
|
@@ -32,10 +32,31 @@ const BadgeSchema = Type.Object(
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
const XBadgesSchema = Type.Object({
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:
|
|
37
|
+
*
|
|
38
|
+
* ```yaml
|
|
39
|
+
* openapi: 3.1.0
|
|
40
|
+
* info:
|
|
41
|
+
* title: x-badges
|
|
42
|
+
* version: 1.0.0
|
|
43
|
+
* paths:
|
|
44
|
+
* /hello-world:
|
|
45
|
+
* get:
|
|
46
|
+
* summary: Hello World
|
|
47
|
+
* x-badges:
|
|
48
|
+
* - name: 'Alpha'
|
|
49
|
+
* - name: 'Beta'
|
|
50
|
+
* position: before
|
|
51
|
+
* - name: 'Gamma'
|
|
52
|
+
* position: after
|
|
53
|
+
* color: '#ffcc00'
|
|
54
|
+
```
|
|
55
|
+
*/
|
|
56
|
+
"x-badges": Type.Optional(Type.Array(XBadgeSchema))
|
|
36
57
|
});
|
|
37
58
|
export {
|
|
38
|
-
|
|
59
|
+
XBadgeSchema,
|
|
39
60
|
XBadgesSchema
|
|
40
61
|
};
|
|
41
62
|
//# sourceMappingURL=x-badge.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/operation/x-badge.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Schema for individual badge configuration in x-badges extension.\n * Badges are indicators that can be displayed in API documentation.\n */\nexport const XBadgeSchema = Type.Object(\n {\n /** The text that displays in the badge. This is required for all badges. */\n name: Type.String({\n description: 'The text that displays in the badge',\n minLength: 1,\n }),\n /**\n * The position of the badge in relation to the header.\n * Defaults to 'after' if not specified.\n */\n position: Type.Optional(\n Type.Union([Type.Literal('before'), Type.Literal('after')], {\n description: 'The position of the badge in relation to the header',\n default: 'after',\n }),\n ),\n /**\n * The color of the badge. Can be defined in various formats such as color keywords,\n * RGB, RGBA, HSL, HSLA, and Hexadecimal.\n */\n color: Type.Optional(\n Type.String({\n description: 'The color of the badge in various formats (keywords, RGB, RGBA, HSL, HSLA, Hexadecimal)',\n pattern:\n '^(#([0-9A-Fa-f]{3}){1,2}|rgb\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*\\\\)|rgba\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*[0-9.]*\\\\s*\\\\)|hsl\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*\\\\d+%\\\\s*\\\\)|hsla\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*[0-9.]*\\\\s*\\\\)|[a-zA-Z]+)$',\n }),\n ),\n },\n {\n description: 'Configuration for a single badge in the x-badges extension',\n },\n)\n\n/**\n * Schema for individual badge configuration in x-badges extension.\n * Badges are indicators that can be displayed in API documentation.\n */\nexport type XBadge = {\n /** The text that displays in the badge. This is required for all badges. */\n name: string\n /**\n * The position of the badge in relation to the header.\n * @default 'after'\n */\n position?: 'before' | 'after'\n /**\n * The color of the badge. Can be defined in various formats such as color keywords,\n * RGB, RGBA, HSL, HSLA, and Hexadecimal.\n */\n color?: string\n}\n\nexport const XBadgesSchema = Type.Object({\n /**\n * You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:\n *\n * ```yaml\n * openapi: 3.1.0\n * info:\n * title: x-badges\n * version: 1.0.0\n * paths:\n * /hello-world:\n * get:\n * summary: Hello World\n * x-badges:\n * - name: 'Alpha'\n * - name: 'Beta'\n * position: before\n * - name: 'Gamma'\n * position: after\n * color: '#ffcc00'\n ```\n */\n 'x-badges': Type.Optional(Type.Array(XBadgeSchema)),\n})\n\nexport type XBadges = {\n /**\n * You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:\n *\n * ```yaml\n * openapi: 3.1.0\n * info:\n * title: x-badges\n * version: 1.0.0\n * paths:\n * /hello-world:\n * get:\n * summary: Hello World\n * x-badges:\n * - name: 'Alpha'\n * - name: 'Beta'\n * position: before\n * - name: 'Gamma'\n * position: after\n * color: '#ffcc00'\n ```\n */\n 'x-badges'?: XBadge[]\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAMd,MAAM,eAAe,KAAK;AAAA,EAC/B;AAAA;AAAA,IAEE,MAAM,KAAK,OAAO;AAAA,MAChB,aAAa;AAAA,MACb,WAAW;AAAA,IACb,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKD,UAAU,KAAK;AAAA,MACb,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,OAAO,CAAC,GAAG;AAAA,QAC1D,aAAa;AAAA,QACb,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAO,KAAK;AAAA,MACV,KAAK,OAAO;AAAA,QACV,aAAa;AAAA,QACb,SACE;AAAA,MACJ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,EACf;AACF;AAqBO,MAAM,gBAAgB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBvC,YAAY,KAAK,SAAS,KAAK,MAAM,YAAY,CAAC;AACpD,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -20,4 +20,14 @@ export declare const XCodeSamplesSchema: import("@scalar/typebox").TObject<{
|
|
|
20
20
|
source: import("@scalar/typebox").TString;
|
|
21
21
|
}>>>;
|
|
22
22
|
}>;
|
|
23
|
+
export type XCodeSample = {
|
|
24
|
+
lang?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
source: string;
|
|
27
|
+
};
|
|
28
|
+
export type XCodeSamples = {
|
|
29
|
+
'x-codeSamples'?: XCodeSample[];
|
|
30
|
+
'x-code-samples'?: XCodeSample[];
|
|
31
|
+
'x-custom-examples'?: XCodeSample[];
|
|
32
|
+
};
|
|
23
33
|
//# 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":"AAEA,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAA;IAC/B,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAA;IAChC,mBAAmB,CAAC,EAAE,WAAW,EAAE,CAAA;CACpC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/operation/x-code-samples.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XCodeSampleSchema = Type.Object({\n lang: Type.Optional(Type.String()),\n label: Type.Optional(Type.String()),\n source: Type.String(),\n})\n\nexport const XCodeSamplesSchema = Type.Object({\n 'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XCodeSampleSchema = Type.Object({\n lang: Type.Optional(Type.String()),\n label: Type.Optional(Type.String()),\n source: Type.String(),\n})\n\nexport const XCodeSamplesSchema = Type.Object({\n 'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),\n})\n\nexport type XCodeSample = {\n lang?: string\n label?: string\n source: string\n}\n\nexport type XCodeSamples = {\n 'x-codeSamples'?: XCodeSample[]\n 'x-code-samples'?: XCodeSample[]\n 'x-custom-examples'?: XCodeSample[]\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACjC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,QAAQ,KAAK,OAAO;AACtB,CAAC;AAEM,MAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,iBAAiB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC5D,kBAAkB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC7D,qBAAqB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAClE,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -16,4 +16,22 @@
|
|
|
16
16
|
export declare const XPostResponseSchema: import("@scalar/typebox").TObject<{
|
|
17
17
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
18
18
|
}>;
|
|
19
|
+
export type XPostResponse = {
|
|
20
|
+
/**
|
|
21
|
+
* Post response scripts allow to execute arbitrary code after a response is received
|
|
22
|
+
*
|
|
23
|
+
* This is useful for:
|
|
24
|
+
* - Extracting data from the response, or
|
|
25
|
+
* - Testing the response
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```yaml
|
|
29
|
+
* x-post-response: |
|
|
30
|
+
* pm.test("Status code is 200", () => {
|
|
31
|
+
* pm.response.to.have.status(200)
|
|
32
|
+
* })
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
'x-post-response'?: string;
|
|
36
|
+
};
|
|
19
37
|
//# sourceMappingURL=x-post-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-post-response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-post-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB;;EAE9B,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-post-response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-post-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB;;EAE9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/operation/x-post-response.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Post response scripts allow to execute arbitrary code after a response is received\n *\n * This is useful for:\n * - Extracting data from the response, or\n * - Testing the response\n *\n * @example\n * ```yaml\n * x-post-response: |\n * pm.test(\"Status code is 200\", () => {\n * pm.response.to.have.status(200)\n * })\n * ```\n */\nexport const XPostResponseSchema = Type.Object({\n 'x-post-response': Type.Optional(Type.String()),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Post response scripts allow to execute arbitrary code after a response is received\n *\n * This is useful for:\n * - Extracting data from the response, or\n * - Testing the response\n *\n * @example\n * ```yaml\n * x-post-response: |\n * pm.test(\"Status code is 200\", () => {\n * pm.response.to.have.status(200)\n * })\n * ```\n */\nexport const XPostResponseSchema = Type.Object({\n 'x-post-response': Type.Optional(Type.String()),\n})\n\nexport type XPostResponse = {\n /**\n * Post response scripts allow to execute arbitrary code after a response is received\n *\n * This is useful for:\n * - Extracting data from the response, or\n * - Testing the response\n *\n * @example\n * ```yaml\n * x-post-response: |\n * pm.test(\"Status code is 200\", () => {\n * pm.response.to.have.status(200)\n * })\n * ```\n */\n 'x-post-response'?: string\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAiBd,MAAM,sBAAsB,KAAK,OAAO;AAAA,EAC7C,mBAAmB,KAAK,SAAS,KAAK,OAAO,CAAC;AAChD,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -15,4 +15,15 @@ export type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeo
|
|
|
15
15
|
export declare const XScalarStabilitySchema: import("@scalar/typebox").TObject<{
|
|
16
16
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
17
17
|
}>;
|
|
18
|
+
export type XScalarStability = {
|
|
19
|
+
/**
|
|
20
|
+
* An OpenAPI extension to indicate the stability of the operation
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```yaml
|
|
24
|
+
* x-scalar-stability: deprecated
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
'x-scalar-stability'?: XScalarStabilityValues;
|
|
28
|
+
};
|
|
18
29
|
//# sourceMappingURL=x-scalar-stability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-stability.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-scalar-stability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEzG;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;EAIjC,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-scalar-stability.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-scalar-stability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEzG;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;EAIjC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,sBAAsB,CAAA;CAC9C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/operation/x-scalar-stability.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarStabilityValues = {\n Deprecated: 'deprecated',\n Experimental: 'experimental',\n Stable: 'stable',\n} as const\n\nexport type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeof XScalarStabilityValues]\n\n/**\n * An OpenAPI extension to indicate the stability of the operation\n *\n * @example\n * ```yaml\n * x-scalar-stability: deprecated\n * ```\n */\nexport const XScalarStabilitySchema = Type.Object({\n 'x-scalar-stability': Type.Optional(\n Type.Union([Type.Literal('deprecated'), Type.Literal('experimental'), Type.Literal('stable')]),\n ),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarStabilityValues = {\n Deprecated: 'deprecated',\n Experimental: 'experimental',\n Stable: 'stable',\n} as const\n\nexport type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeof XScalarStabilityValues]\n\n/**\n * An OpenAPI extension to indicate the stability of the operation\n *\n * @example\n * ```yaml\n * x-scalar-stability: deprecated\n * ```\n */\nexport const XScalarStabilitySchema = Type.Object({\n 'x-scalar-stability': Type.Optional(\n Type.Union([Type.Literal('deprecated'), Type.Literal('experimental'), Type.Literal('stable')]),\n ),\n})\n\nexport type XScalarStability = {\n /**\n * An OpenAPI extension to indicate the stability of the operation\n *\n * @example\n * ```yaml\n * x-scalar-stability: deprecated\n * ```\n */\n 'x-scalar-stability'?: XScalarStabilityValues\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,yBAAyB;AAAA,EACpC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AACV;AAYO,MAAM,yBAAyB,KAAK,OAAO;AAAA,EAChD,sBAAsB,KAAK;AAAA,IACzB,KAAK,MAAM,CAAC,KAAK,QAAQ,YAAY,GAAG,KAAK,QAAQ,cAAc,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA,EAC/F;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -8,4 +8,14 @@
|
|
|
8
8
|
export declare const XAdditionalPropertiesNameSchema: import("@scalar/typebox").TObject<{
|
|
9
9
|
'x-additionalPropertiesName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
10
|
}>;
|
|
11
|
+
export type XAdditionalPropertiesName = {
|
|
12
|
+
/**
|
|
13
|
+
* x-additionalPropertiesName
|
|
14
|
+
*
|
|
15
|
+
* Custom attribute name for additionalProperties in a schema.
|
|
16
|
+
* This allows specifying a descriptive name for additional properties
|
|
17
|
+
* that may be present in an object.
|
|
18
|
+
*/
|
|
19
|
+
'x-additionalPropertiesName'?: string;
|
|
20
|
+
};
|
|
11
21
|
//# sourceMappingURL=x-additional-properties-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-additional-properties-name.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-additional-properties-name.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-additional-properties-name.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-additional-properties-name.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;;;OAMG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAA;CACtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/schema/x-additional-properties-name.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-additionalPropertiesName\n *\n * Custom attribute name for additionalProperties in a schema.\n * This allows specifying a descriptive name for additional properties\n * that may be present in an object.\n */\nexport const XAdditionalPropertiesNameSchema = Type.Object({\n 'x-additionalPropertiesName': Type.Optional(Type.String()),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-additionalPropertiesName\n *\n * Custom attribute name for additionalProperties in a schema.\n * This allows specifying a descriptive name for additional properties\n * that may be present in an object.\n */\nexport const XAdditionalPropertiesNameSchema = Type.Object({\n 'x-additionalPropertiesName': Type.Optional(Type.String()),\n})\n\nexport type XAdditionalPropertiesName = {\n /**\n * x-additionalPropertiesName\n *\n * Custom attribute name for additionalProperties in a schema.\n * This allows specifying a descriptive name for additional properties\n * that may be present in an object.\n */\n 'x-additionalPropertiesName'?: string\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AASd,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,8BAA8B,KAAK,SAAS,KAAK,OAAO,CAAC;AAC3D,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -15,4 +15,34 @@ export declare const XEnumDescriptionsSchema: import("@scalar/typebox").TObject<
|
|
|
15
15
|
'x-enumDescriptions': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>, import("@scalar/typebox").TArray<import("@scalar/typebox").TString>]>>;
|
|
16
16
|
'x-enum-descriptions': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>, import("@scalar/typebox").TArray<import("@scalar/typebox").TString>]>>;
|
|
17
17
|
}>;
|
|
18
|
+
export type XEnumDescriptions = {
|
|
19
|
+
/**
|
|
20
|
+
* x-enumDescriptions
|
|
21
|
+
*
|
|
22
|
+
* Maps enum values to their descriptions. Each key should correspond to
|
|
23
|
+
* an enum value, and the value is the description for that enum value.
|
|
24
|
+
*
|
|
25
|
+
* Example:
|
|
26
|
+
* x-enumDescriptions:
|
|
27
|
+
* missing_features: "Missing features"
|
|
28
|
+
* too_expensive: "Too expensive"
|
|
29
|
+
* unused: "Unused"
|
|
30
|
+
* other: "Other"
|
|
31
|
+
*/
|
|
32
|
+
'x-enumDescriptions'?: Record<string, string> | string[];
|
|
33
|
+
/**
|
|
34
|
+
* x-enum-descriptions
|
|
35
|
+
*
|
|
36
|
+
* Maps enum values to their descriptions. Each key should correspond to
|
|
37
|
+
* an enum value, and the value is the description for that enum value.
|
|
38
|
+
*
|
|
39
|
+
* Example:
|
|
40
|
+
* x-enum-descriptions:
|
|
41
|
+
* missing_features: "Missing features"
|
|
42
|
+
* too_expensive: "Too expensive"
|
|
43
|
+
* unused: "Unused"
|
|
44
|
+
* other: "Other"
|
|
45
|
+
*/
|
|
46
|
+
'x-enum-descriptions'?: Record<string, string> | string[];
|
|
47
|
+
};
|
|
18
48
|
//# sourceMappingURL=x-enum-descriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-enum-descriptions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-enum-descriptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;EAOlC,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-enum-descriptions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-enum-descriptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;EAOlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;;;;;;;;OAYG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACxD;;;;;;;;;;;;OAYG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;CAC1D,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/schema/x-enum-descriptions.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-enumDescriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enumDescriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\nexport const XEnumDescriptionsSchema = Type.Object({\n 'x-enumDescriptions': Type.Optional(\n Type.Union([Type.Record(Type.String(), Type.String()), Type.Array(Type.String())]),\n ),\n 'x-enum-descriptions': Type.Optional(\n Type.Union([Type.Record(Type.String(), Type.String()), Type.Array(Type.String())]),\n ),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-enumDescriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enumDescriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\nexport const XEnumDescriptionsSchema = Type.Object({\n 'x-enumDescriptions': Type.Optional(\n Type.Union([Type.Record(Type.String(), Type.String()), Type.Array(Type.String())]),\n ),\n 'x-enum-descriptions': Type.Optional(\n Type.Union([Type.Record(Type.String(), Type.String()), Type.Array(Type.String())]),\n ),\n})\n\nexport type XEnumDescriptions = {\n /**\n * x-enumDescriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enumDescriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\n 'x-enumDescriptions'?: Record<string, string> | string[]\n /**\n * x-enum-descriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enum-descriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\n 'x-enum-descriptions'?: Record<string, string> | string[]\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAed,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,sBAAsB,KAAK;AAAA,IACzB,KAAK,MAAM,CAAC,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,GAAG,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC;AAAA,EACnF;AAAA,EACA,uBAAuB,KAAK;AAAA,IAC1B,KAAK,MAAM,CAAC,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,GAAG,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC;AAAA,EACnF;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -19,4 +19,42 @@ export declare const XEnumVarNamesSchema: import("@scalar/typebox").TObject<{
|
|
|
19
19
|
'x-enum-varnames': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
20
20
|
'x-enumNames': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
21
21
|
}>;
|
|
22
|
+
export type XEnumVarNames = {
|
|
23
|
+
/**
|
|
24
|
+
* x-enum-varnames
|
|
25
|
+
*
|
|
26
|
+
* Names the enum values, must be in the same order as the enum values.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```yaml
|
|
30
|
+
* enum:
|
|
31
|
+
* - moon
|
|
32
|
+
* - asteroid
|
|
33
|
+
* - comet
|
|
34
|
+
* x-enum-varnames:
|
|
35
|
+
* - Moon
|
|
36
|
+
* - Asteroid
|
|
37
|
+
* - Comet
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
'x-enum-varnames'?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* x-enumNames
|
|
43
|
+
*
|
|
44
|
+
* Names the enum values, must be in the same order as the enum values.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```yaml
|
|
48
|
+
* enum:
|
|
49
|
+
* - moon
|
|
50
|
+
* - asteroid
|
|
51
|
+
* - comet
|
|
52
|
+
* x-enumNames:
|
|
53
|
+
* - Moon
|
|
54
|
+
* - Asteroid
|
|
55
|
+
* - Comet
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
'x-enumNames'?: string[];
|
|
59
|
+
};
|
|
22
60
|
//# sourceMappingURL=x-enum-varnames.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-enum-varnames.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-enum-varnames.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-enum-varnames.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-enum-varnames.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/schema/x-enum-varnames.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-enum-varnames\n *\n * Names the enum values, must be in the same order as the enum values.\n *\n * @example\n * ```yaml\n * enum:\n * - moon\n * - asteroid\n * - comet\n * x-enum-varnames:\n * - Moon\n * - Asteroid\n * - Comet\n * ```\n */\nexport const XEnumVarNamesSchema = Type.Object({\n 'x-enum-varnames': Type.Optional(Type.Array(Type.String())),\n 'x-enumNames': Type.Optional(Type.Array(Type.String())),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * x-enum-varnames\n *\n * Names the enum values, must be in the same order as the enum values.\n *\n * @example\n * ```yaml\n * enum:\n * - moon\n * - asteroid\n * - comet\n * x-enum-varnames:\n * - Moon\n * - Asteroid\n * - Comet\n * ```\n */\nexport const XEnumVarNamesSchema = Type.Object({\n 'x-enum-varnames': Type.Optional(Type.Array(Type.String())),\n 'x-enumNames': Type.Optional(Type.Array(Type.String())),\n})\n\nexport type XEnumVarNames = {\n /**\n * x-enum-varnames\n *\n * Names the enum values, must be in the same order as the enum values.\n *\n * @example\n * ```yaml\n * enum:\n * - moon\n * - asteroid\n * - comet\n * x-enum-varnames:\n * - Moon\n * - Asteroid\n * - Comet\n * ```\n */\n 'x-enum-varnames'?: string[]\n /**\n * x-enumNames\n *\n * Names the enum values, must be in the same order as the enum values.\n *\n * @example\n * ```yaml\n * enum:\n * - moon\n * - asteroid\n * - comet\n * x-enumNames:\n * - Moon\n * - Asteroid\n * - Comet\n * ```\n */\n 'x-enumNames'?: string[]\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAmBd,MAAM,sBAAsB,KAAK,OAAO;AAAA,EAC7C,mBAAmB,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA,EAC1D,eAAe,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AACxD,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const XVariableSchema: import("@scalar/typebox").TObject<{
|
|
2
2
|
'x-variable': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
3
3
|
}>;
|
|
4
|
+
export type XVariable = {
|
|
5
|
+
'x-variable'?: string;
|
|
6
|
+
};
|
|
4
7
|
//# sourceMappingURL=x-variable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-variable.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;EAE1B,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-variable.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;EAE1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/schema/x-variable.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XVariableSchema = Type.Object({\n 'x-variable': Type.Optional(Type.String()),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XVariableSchema = Type.Object({\n 'x-variable': Type.Optional(Type.String()),\n})\n\nexport type XVariable = {\n 'x-variable'?: string\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,kBAAkB,KAAK,OAAO;AAAA,EACzC,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAC3C,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default selected scopes for the oauth flow
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "x-default-scopes": [
|
|
8
|
+
* "profile",
|
|
9
|
+
* "email"
|
|
10
|
+
* ]
|
|
11
|
+
* }
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const XDefaultScopesSchema: import("@scalar/typebox").TObject<{
|
|
15
|
+
'x-default-scopes': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type XDefaultScopes = {
|
|
18
|
+
/**
|
|
19
|
+
* Default selected scopes for the oauth flow
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```json
|
|
23
|
+
* {
|
|
24
|
+
* "x-default-scopes": [
|
|
25
|
+
* "profile",
|
|
26
|
+
* "email"
|
|
27
|
+
* ]
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
'x-default-scopes'?: string[];
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=x-default-scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-default-scopes.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-default-scopes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;EAE/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/extensions/security/x-default-scopes.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Default selected scopes for the oauth flow\n *\n * @example\n * ```json\n * {\n * \"x-default-scopes\": [\n * \"profile\",\n * \"email\"\n * ]\n * }\n * ```\n */\nexport const XDefaultScopesSchema = Type.Object({\n 'x-default-scopes': Type.Optional(Type.Array(Type.String())),\n})\n\nexport type XDefaultScopes = {\n /**\n * Default selected scopes for the oauth flow\n *\n * @example\n * ```json\n * {\n * \"x-default-scopes\": [\n * \"profile\",\n * \"email\"\n * ]\n * }\n * ```\n */\n 'x-default-scopes'?: string[]\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAed,MAAM,uBAAuB,KAAK,OAAO;AAAA,EAC9C,oBAAoB,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAC7D,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -14,4 +14,20 @@
|
|
|
14
14
|
export declare const XScalarCredentialsLocationSchema: import("@scalar/typebox").TObject<{
|
|
15
15
|
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
16
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* An OpenAPI extension to specify where OAuth2 credentials should be sent
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```yaml
|
|
22
|
+
* x-scalar-credentials-location: header
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```yaml
|
|
27
|
+
* x-scalar-credentials-location: body
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export type XScalarCredentialsLocation = {
|
|
31
|
+
'x-scalar-credentials-location'?: 'header' | 'body';
|
|
32
|
+
};
|
|
17
33
|
//# 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":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC;;EAE3C,CAAA"}
|
|
1
|
+
{"version":3,"file":"x-scalar-credentials-location.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-credentials-location.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/security/x-scalar-credentials-location.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An OpenAPI extension to specify where OAuth2 credentials should be sent\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: header\n * ```\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: body\n * ```\n */\nexport const XScalarCredentialsLocationSchema = Type.Object({\n 'x-scalar-credentials-location': Type.Optional(Type.Union([Type.Literal('header'), Type.Literal('body')])),\n})\n"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An OpenAPI extension to specify where OAuth2 credentials should be sent\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: header\n * ```\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: body\n * ```\n */\nexport const XScalarCredentialsLocationSchema = Type.Object({\n 'x-scalar-credentials-location': Type.Optional(Type.Union([Type.Literal('header'), Type.Literal('body')])),\n})\n\n/**\n * An OpenAPI extension to specify where OAuth2 credentials should be sent\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: header\n * ```\n *\n * @example\n * ```yaml\n * x-scalar-credentials-location: body\n * ```\n */\nexport type XScalarCredentialsLocation = {\n 'x-scalar-credentials-location'?: 'header' | 'body'\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAed,MAAM,mCAAmC,KAAK,OAAO;AAAA,EAC1D,iCAAiC,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,MAAM,CAAC,CAAC,CAAC;AAC3G,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,7 +9,21 @@
|
|
|
9
9
|
* }
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const XScalarSecurityBodySchema: import("@scalar/typebox").TObject<{
|
|
13
13
|
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
14
14
|
}>;
|
|
15
|
+
/**
|
|
16
|
+
* An OpenAPI extension to set any additional body parameters for the OAuth token request
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```yaml
|
|
20
|
+
* x-scalar-security-body: {
|
|
21
|
+
* audience: 'https://api.example.com',
|
|
22
|
+
* resource: 'user-profile'
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export type XScalarSecurityBody = {
|
|
27
|
+
'x-scalar-security-body'?: Record<string, string>;
|
|
28
|
+
};
|
|
15
29
|
//# 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":"AAEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"x-scalar-security-body.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-security-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;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"}
|