@scalar/workspace-store 0.4.1 → 0.5.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 +20 -0
- package/dist/client.d.ts +39257 -4989
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -4
- package/dist/client.js.map +2 -2
- package/dist/helpers/general.d.ts +1 -0
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/general.js +5 -1
- package/dist/helpers/general.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.d.ts +2 -2
- 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 +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +4 -0
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +1 -1
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +2 -2
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +4 -0
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +11 -10
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/schemas/typebox-coerce.d.ts +26 -0
- package/dist/schemas/typebox-coerce.d.ts.map +1 -0
- package/dist/schemas/typebox-coerce.js +8 -0
- package/dist/schemas/typebox-coerce.js.map +7 -0
- package/dist/schemas/v3.1/compose.d.ts +6 -0
- package/dist/schemas/v3.1/compose.d.ts.map +1 -0
- package/dist/schemas/v3.1/compose.js +8 -0
- package/dist/schemas/v3.1/compose.js.map +7 -0
- package/dist/schemas/v3.1/strict/callback.d.ts +3 -0
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/callback.js +15 -0
- package/dist/schemas/v3.1/strict/callback.js.map +7 -0
- package/dist/schemas/v3.1/strict/components.d.ts +7824 -0
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/components.js +46 -0
- package/dist/schemas/v3.1/strict/components.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/contact.d.ts +4 -2
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/contact.js +18 -0
- package/dist/schemas/v3.1/strict/contact.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/discriminator.d.ts +4 -2
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/discriminator.js +16 -0
- package/dist/schemas/v3.1/strict/discriminator.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/encoding.d.ts +7 -16
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/encoding.js +17 -0
- package/dist/schemas/v3.1/strict/encoding.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/example.d.ts +4 -2
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/example.js +20 -0
- package/dist/schemas/v3.1/strict/example.js.map +7 -0
- package/dist/schemas/v3.1/strict/extensions.d.ts +4 -0
- package/dist/schemas/v3.1/strict/extensions.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/extensions.js +6 -0
- package/dist/schemas/v3.1/strict/extensions.js.map +7 -0
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +10 -0
- package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/external-documentation.js +16 -0
- package/dist/schemas/v3.1/strict/external-documentation.js.map +7 -0
- package/dist/schemas/v3.1/strict/header.d.ts +133 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/header.js +48 -0
- package/dist/schemas/v3.1/strict/header.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/info.d.ts +8 -6
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/info.js +28 -0
- package/dist/schemas/v3.1/strict/info.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/license.d.ts +4 -2
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/license.js +18 -0
- package/dist/schemas/v3.1/strict/license.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/link.d.ts +8 -6
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/link.js +25 -0
- package/dist/schemas/v3.1/strict/link.js.map +7 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +329 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.js +19 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/media-type.d.ts +20 -34
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/media-type.js +27 -0
- package/dist/schemas/v3.1/strict/media-type.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/oauth-flow.d.ts +4 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/oauth-flow.js +20 -0
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/oauthflows.d.ts +12 -10
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/oauthflows.js +21 -0
- package/dist/schemas/v3.1/strict/oauthflows.js.map +7 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +49 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/openapi-document.js +55 -0
- package/dist/schemas/v3.1/strict/openapi-document.js.map +7 -0
- package/dist/schemas/v3.1/strict/operation.d.ts +572 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/operation.js +46 -0
- package/dist/schemas/v3.1/strict/operation.js.map +7 -0
- package/dist/schemas/v3.1/strict/parameter.d.ts +396 -0
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/parameter.js +56 -0
- package/dist/schemas/v3.1/strict/parameter.js.map +7 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts +205 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/path-item.js +41 -0
- package/dist/schemas/v3.1/strict/path-item.js.map +7 -0
- package/dist/schemas/v3.1/strict/path-operations.d.ts +7816 -0
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/path-operations.js +19 -0
- package/dist/schemas/v3.1/strict/path-operations.js.map +7 -0
- package/dist/schemas/v3.1/strict/paths.d.ts +3536 -0
- package/dist/schemas/{openapi-v3/openapi-document.d.ts.map → v3.1/strict/paths.d.ts.map} +1 -1
- package/dist/schemas/v3.1/strict/paths.js +16 -0
- package/dist/schemas/v3.1/strict/paths.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/reference.d.ts +15 -6
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/reference.js +26 -0
- package/dist/schemas/v3.1/strict/reference.js.map +7 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts +112 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/request-body.js +19 -0
- package/dist/schemas/v3.1/strict/request-body.js.map +7 -0
- package/dist/schemas/v3.1/strict/response.d.ts +242 -0
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/response.js +23 -0
- package/dist/schemas/v3.1/strict/response.js.map +7 -0
- package/dist/schemas/v3.1/strict/responses.d.ts +254 -0
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/responses.js +13 -0
- package/dist/schemas/v3.1/strict/responses.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/schema.d.ts +12 -8
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/schema.js +34 -0
- package/dist/schemas/v3.1/strict/schema.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/security-requirement.d.ts +3 -1
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/security-requirement.js +15 -0
- package/dist/schemas/v3.1/strict/security-requirement.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.d.ts +40 -38
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.js +21 -16
- package/dist/schemas/v3.1/strict/security-scheme.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/server-variable.d.ts +4 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/server-variable.js +18 -0
- package/dist/schemas/v3.1/strict/server-variable.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/server.d.ts +6 -4
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/server.js +19 -0
- package/dist/schemas/v3.1/strict/server.js.map +7 -0
- package/dist/schemas/v3.1/strict/tag.d.ts +17 -0
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/tag.js +25 -0
- package/dist/schemas/v3.1/strict/tag.js.map +7 -0
- package/dist/schemas/{openapi-v3 → v3.1/strict}/xml.d.ts +4 -2
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/xml.js +22 -0
- package/dist/schemas/v3.1/strict/xml.js.map +7 -0
- package/dist/schemas/v3.1/type-guard.d.ts +3 -0
- package/dist/schemas/v3.1/type-guard.d.ts.map +1 -0
- package/dist/schemas/v3.1/type-guard.js +7 -0
- package/dist/schemas/v3.1/type-guard.js.map +7 -0
- package/dist/schemas/workspace.d.ts +49 -14750
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +5 -4
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js.map +2 -2
- package/dist/server.d.ts +2579 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +16 -8
- package/dist/server.js.map +2 -2
- package/package.json +5 -4
- package/dist/schemas/openapi-v3/callback.d.ts +0 -1156
- package/dist/schemas/openapi-v3/callback.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/callback.js +0 -11
- package/dist/schemas/openapi-v3/callback.js.map +0 -7
- package/dist/schemas/openapi-v3/components.d.ts +0 -2597
- package/dist/schemas/openapi-v3/components.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/components.js +0 -38
- package/dist/schemas/openapi-v3/components.js.map +0 -7
- package/dist/schemas/openapi-v3/contact.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/contact.js +0 -13
- package/dist/schemas/openapi-v3/contact.js.map +0 -7
- package/dist/schemas/openapi-v3/discriminator.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/discriminator.js +0 -11
- package/dist/schemas/openapi-v3/discriminator.js.map +0 -7
- package/dist/schemas/openapi-v3/encoding.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/encoding.js +0 -13
- package/dist/schemas/openapi-v3/encoding.js.map +0 -7
- package/dist/schemas/openapi-v3/example.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/example.js +0 -15
- package/dist/schemas/openapi-v3/example.js.map +0 -7
- package/dist/schemas/openapi-v3/external-documentation.d.ts +0 -8
- package/dist/schemas/openapi-v3/external-documentation.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/external-documentation.js +0 -11
- package/dist/schemas/openapi-v3/external-documentation.js.map +0 -7
- package/dist/schemas/openapi-v3/header.d.ts +0 -18
- package/dist/schemas/openapi-v3/header.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/header.js +0 -13
- package/dist/schemas/openapi-v3/header.js.map +0 -7
- package/dist/schemas/openapi-v3/info.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/info.js +0 -23
- package/dist/schemas/openapi-v3/info.js.map +0 -7
- package/dist/schemas/openapi-v3/license.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/license.js +0 -13
- package/dist/schemas/openapi-v3/license.js.map +0 -7
- package/dist/schemas/openapi-v3/link.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/link.js +0 -20
- package/dist/schemas/openapi-v3/link.js.map +0 -7
- package/dist/schemas/openapi-v3/media-type.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/media-type.js +0 -19
- package/dist/schemas/openapi-v3/media-type.js.map +0 -7
- package/dist/schemas/openapi-v3/oauth-flow.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/oauth-flow.js +0 -15
- package/dist/schemas/openapi-v3/oauth-flow.js.map +0 -7
- package/dist/schemas/openapi-v3/oauthflows.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/oauthflows.js +0 -16
- package/dist/schemas/openapi-v3/oauthflows.js.map +0 -7
- package/dist/schemas/openapi-v3/openapi-document.d.ts +0 -4941
- package/dist/schemas/openapi-v3/openapi-document.js +0 -35
- package/dist/schemas/openapi-v3/openapi-document.js.map +0 -7
- package/dist/schemas/openapi-v3/operation-without-callback.d.ts +0 -200
- package/dist/schemas/openapi-v3/operation-without-callback.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/operation-without-callback.js +0 -39
- package/dist/schemas/openapi-v3/operation-without-callback.js.map +0 -7
- package/dist/schemas/openapi-v3/parameter.d.ts +0 -25
- package/dist/schemas/openapi-v3/parameter.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/parameter.js +0 -22
- package/dist/schemas/openapi-v3/parameter.js.map +0 -7
- package/dist/schemas/openapi-v3/path-item.d.ts +0 -1167
- package/dist/schemas/openapi-v3/path-item.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/path-item.js +0 -37
- package/dist/schemas/openapi-v3/path-item.js.map +0 -7
- package/dist/schemas/openapi-v3/paths.d.ts +0 -1154
- package/dist/schemas/openapi-v3/paths.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/paths.js +0 -11
- package/dist/schemas/openapi-v3/paths.js.map +0 -7
- package/dist/schemas/openapi-v3/reference.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/reference.js +0 -17
- package/dist/schemas/openapi-v3/reference.js.map +0 -7
- package/dist/schemas/openapi-v3/request-body.d.ts +0 -56
- package/dist/schemas/openapi-v3/request-body.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/request-body.js +0 -14
- package/dist/schemas/openapi-v3/request-body.js.map +0 -7
- package/dist/schemas/openapi-v3/response.d.ts +0 -88
- package/dist/schemas/openapi-v3/response.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/response.js +0 -19
- package/dist/schemas/openapi-v3/response.js.map +0 -7
- package/dist/schemas/openapi-v3/responses.d.ts +0 -99
- package/dist/schemas/openapi-v3/responses.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/responses.js +0 -8
- package/dist/schemas/openapi-v3/responses.js.map +0 -7
- package/dist/schemas/openapi-v3/schema.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/schema.js +0 -22
- package/dist/schemas/openapi-v3/schema.js.map +0 -7
- package/dist/schemas/openapi-v3/security-requirement.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/security-requirement.js +0 -10
- package/dist/schemas/openapi-v3/security-requirement.js.map +0 -7
- package/dist/schemas/openapi-v3/security-scheme.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/security-scheme.js.map +0 -7
- package/dist/schemas/openapi-v3/server-variable.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/server-variable.js +0 -13
- package/dist/schemas/openapi-v3/server-variable.js.map +0 -7
- package/dist/schemas/openapi-v3/server.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/server.js +0 -14
- package/dist/schemas/openapi-v3/server.js.map +0 -7
- package/dist/schemas/openapi-v3/tag.d.ts +0 -13
- package/dist/schemas/openapi-v3/tag.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/tag.js +0 -14
- package/dist/schemas/openapi-v3/tag.js.map +0 -7
- package/dist/schemas/openapi-v3/xml.d.ts.map +0 -1
- package/dist/schemas/openapi-v3/xml.js +0 -17
- package/dist/schemas/openapi-v3/xml.js.map +0 -7
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const DescriptionSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
2
3
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
3
4
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
5
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
6
|
+
export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
6
7
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
7
8
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
9
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
9
10
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
10
11
|
type: import("@sinclair/typebox").TLiteral<"apiKey">;
|
|
11
12
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
@@ -13,10 +14,10 @@ export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[impor
|
|
|
13
14
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
14
15
|
in: import("@sinclair/typebox").TString;
|
|
15
16
|
}>]>;
|
|
16
|
-
export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
17
|
+
export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
17
18
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
18
19
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
20
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
20
21
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
21
22
|
type: import("@sinclair/typebox").TLiteral<"http">;
|
|
22
23
|
/** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
|
|
@@ -24,44 +25,44 @@ export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import(
|
|
|
24
25
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
25
26
|
bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
27
|
}>]>;
|
|
27
|
-
export declare const OAuth2: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
28
|
+
export declare const OAuth2: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
28
29
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
29
30
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
31
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
31
32
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
32
33
|
type: import("@sinclair/typebox").TLiteral<"oauth2">;
|
|
33
34
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
34
|
-
flows: import("@sinclair/typebox").TObject<{
|
|
35
|
-
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
35
|
+
flows: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
36
|
+
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
36
37
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
37
38
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
38
39
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
39
40
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
40
|
-
}>>;
|
|
41
|
-
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
41
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
42
|
+
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
42
43
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
43
44
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
44
45
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
46
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
46
|
-
}>>;
|
|
47
|
-
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
47
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
48
|
+
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
48
49
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
49
50
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
50
51
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
51
52
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
52
|
-
}>>;
|
|
53
|
-
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
53
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
54
|
+
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
54
55
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
55
56
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
56
57
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
57
58
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
58
|
-
}>>;
|
|
59
|
-
}>;
|
|
59
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
60
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
60
61
|
}>]>;
|
|
61
|
-
export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
62
|
+
export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
62
63
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
63
64
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
65
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
65
66
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
66
67
|
type: import("@sinclair/typebox").TLiteral<"openIdConnect">;
|
|
67
68
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
@@ -72,66 +73,67 @@ export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[impo
|
|
|
72
73
|
*
|
|
73
74
|
* Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.
|
|
74
75
|
*/
|
|
75
|
-
export declare const
|
|
76
|
+
export declare const SecuritySchemeObjectSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
76
77
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
77
78
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
78
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
79
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
79
80
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
80
81
|
type: import("@sinclair/typebox").TLiteral<"apiKey">;
|
|
81
82
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
82
83
|
name: import("@sinclair/typebox").TString;
|
|
83
84
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
84
85
|
in: import("@sinclair/typebox").TString;
|
|
85
|
-
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
86
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
86
87
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
87
88
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
88
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
89
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
89
90
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
90
91
|
type: import("@sinclair/typebox").TLiteral<"http">;
|
|
91
92
|
/** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
|
|
92
93
|
scheme: import("@sinclair/typebox").TString;
|
|
93
94
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
94
95
|
bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
95
|
-
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
96
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
96
97
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
97
98
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
98
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
99
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
99
100
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
100
101
|
type: import("@sinclair/typebox").TLiteral<"oauth2">;
|
|
101
102
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
102
|
-
flows: import("@sinclair/typebox").TObject<{
|
|
103
|
-
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
103
|
+
flows: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
104
|
+
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
104
105
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
105
106
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
106
107
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
107
108
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
108
|
-
}>>;
|
|
109
|
-
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
109
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
110
|
+
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
110
111
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
111
112
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
112
113
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
113
114
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
114
|
-
}>>;
|
|
115
|
-
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
115
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
116
|
+
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
116
117
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
117
118
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
118
119
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
119
120
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
120
|
-
}>>;
|
|
121
|
-
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
121
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
122
|
+
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
122
123
|
authorizationUrl: import("@sinclair/typebox").TString;
|
|
123
124
|
tokenUrl: import("@sinclair/typebox").TString;
|
|
124
125
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
125
126
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
126
|
-
}>>;
|
|
127
|
-
}>;
|
|
128
|
-
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
127
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
128
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
129
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
129
130
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
130
131
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
131
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
132
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
|
|
132
133
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
133
134
|
type: import("@sinclair/typebox").TLiteral<"openIdConnect">;
|
|
134
135
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
135
136
|
openIdConnectUrl: import("@sinclair/typebox").TString;
|
|
136
137
|
}>]>]>;
|
|
138
|
+
export type SecuritySchemeObject = Static<typeof SecuritySchemeObjectSchema>;
|
|
137
139
|
//# sourceMappingURL=security-scheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAKrD,eAAO,MAAM,iBAAiB;IAE1B,qGAAqG;;kJAIxG,CAAA;AAED,eAAO,MAAM,YAAY;IANrB,qGAAqG;;;IASrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;IAGjG,CAAA;AAED,eAAO,MAAM,UAAU;IAlBnB,qGAAqG;;;IAqBrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;IAG1M,CAAA;AAED,eAAO,MAAM,MAAM;IA9Bf,qGAAqG;;;IAiCrG,4HAA4H;;IAE5H,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGhG,CAAA;AAED,eAAO,MAAM,aAAa;IAxCtB,qGAAqG;;;IA2CrG,4HAA4H;;IAE5H,+FAA+F;;IAGlG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;IAvDnC,qGAAqG;;;IASrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IAb9F,qGAAqG;;;IAqBrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IAzBvM,qGAAqG;;;IAiCrG,4HAA4H;;IAE5H,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAnC7F,qGAAqG;;;IA2CrG,4HAA4H;;IAE5H,+FAA+F;;MAUI,CAAA;AAEvG,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { OAuthFlowsObjectSchema } from "./oauthflows.js";
|
|
3
|
+
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
4
|
+
import { compose } from "../../../schemas/v3.1/compose.js";
|
|
5
|
+
const DescriptionSchema = compose(
|
|
6
|
+
Type.Object({
|
|
7
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
8
|
+
description: Type.Optional(Type.String())
|
|
9
|
+
}),
|
|
10
|
+
ExtensionsSchema
|
|
11
|
+
);
|
|
12
|
+
const ApiKeySchema = compose(
|
|
8
13
|
DescriptionSchema,
|
|
9
14
|
Type.Object({
|
|
10
15
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
@@ -14,8 +19,8 @@ const ApiKeySchema = Type.Intersect([
|
|
|
14
19
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
15
20
|
in: Type.String()
|
|
16
21
|
})
|
|
17
|
-
|
|
18
|
-
const HttpSchema =
|
|
22
|
+
);
|
|
23
|
+
const HttpSchema = compose(
|
|
19
24
|
DescriptionSchema,
|
|
20
25
|
Type.Object({
|
|
21
26
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
@@ -25,17 +30,17 @@ const HttpSchema = Type.Intersect([
|
|
|
25
30
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
26
31
|
bearerFormat: Type.Optional(Type.String())
|
|
27
32
|
})
|
|
28
|
-
|
|
29
|
-
const OAuth2 =
|
|
33
|
+
);
|
|
34
|
+
const OAuth2 = compose(
|
|
30
35
|
DescriptionSchema,
|
|
31
36
|
Type.Object({
|
|
32
37
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
33
38
|
type: Type.Literal("oauth2"),
|
|
34
39
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
35
|
-
flows:
|
|
40
|
+
flows: OAuthFlowsObjectSchema
|
|
36
41
|
})
|
|
37
|
-
|
|
38
|
-
const OpenIdConnect =
|
|
42
|
+
);
|
|
43
|
+
const OpenIdConnect = compose(
|
|
39
44
|
DescriptionSchema,
|
|
40
45
|
Type.Object({
|
|
41
46
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
@@ -43,14 +48,14 @@ const OpenIdConnect = Type.Intersect([
|
|
|
43
48
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
44
49
|
openIdConnectUrl: Type.String()
|
|
45
50
|
})
|
|
46
|
-
|
|
47
|
-
const
|
|
51
|
+
);
|
|
52
|
+
const SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
|
|
48
53
|
export {
|
|
49
54
|
ApiKeySchema,
|
|
50
55
|
DescriptionSchema,
|
|
51
56
|
HttpSchema,
|
|
52
57
|
OAuth2,
|
|
53
58
|
OpenIdConnect,
|
|
54
|
-
|
|
59
|
+
SecuritySchemeObjectSchema
|
|
55
60
|
};
|
|
56
61
|
//# sourceMappingURL=security-scheme.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/strict/security-scheme.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { OAuthFlowsObjectSchema } from './oauthflows'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nexport const DescriptionSchema = compose(\n Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport const ApiKeySchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.String(),\n }),\n)\n\nexport const HttpSchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.String(),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport const OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectSchema,\n }),\n)\n\nexport const OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n\nexport type SecuritySchemeObject = Static<typeof SecuritySchemeObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,oBAAoB;AAAA,EAC/B,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA,EAClB,CAAC;AACH;AAEO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,MAAM;AAAA;AAAA,IAEzB,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,OAAO;AAAA,EACT,CAAC;AACH;AAEO,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,eAAe;AAAA;AAAA,IAElC,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AAOO,MAAM,6BAA6B,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
1
2
|
/** An object representing a Server Variable for server URL template substitution. */
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const ServerVariableObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
3
4
|
/** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
|
|
4
5
|
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
5
6
|
/** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
|
|
6
7
|
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
8
|
/** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
|
|
8
9
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
-
}>;
|
|
10
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
11
|
+
export type ServerVariableObject = Static<typeof ServerVariableObjectSchema>;
|
|
10
12
|
//# sourceMappingURL=server-variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server-variable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,qFAAqF;AACrF,eAAO,MAAM,0BAA0B;IAEnC,kIAAkI;;IAElI,+VAA+V;;IAE/V,mHAAmH;;kJAItH,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { compose } from "../../../schemas/v3.1/compose.js";
|
|
2
|
+
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
|
+
import { Type } from "@sinclair/typebox";
|
|
4
|
+
const ServerVariableObjectSchema = compose(
|
|
5
|
+
Type.Object({
|
|
6
|
+
/** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
|
|
7
|
+
enum: Type.Optional(Type.Array(Type.String())),
|
|
8
|
+
/** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
|
|
9
|
+
default: Type.Optional(Type.String()),
|
|
10
|
+
/** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
|
|
11
|
+
description: Type.Optional(Type.String())
|
|
12
|
+
}),
|
|
13
|
+
ExtensionsSchema
|
|
14
|
+
);
|
|
15
|
+
export {
|
|
16
|
+
ServerVariableObjectSchema
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=server-variable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/strict/server-variable.ts"],
|
|
4
|
+
"sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** An object representing a Server Variable for server URL template substitution. */\nexport const ServerVariableObjectSchema = compose(\n Type.Object({\n /** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */\n enum: Type.Optional(Type.Array(Type.String())),\n /** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */\n default: Type.Optional(Type.String()),\n /** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ServerVariableObject = Static<typeof ServerVariableObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,6BAA6B;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,IAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
1
2
|
/** An object representing a Server. */
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const ServerObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
3
4
|
/** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
|
|
4
5
|
url: import("@sinclair/typebox").TString;
|
|
5
6
|
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
6
7
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
8
|
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
8
|
-
variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
9
|
+
variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
9
10
|
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
10
11
|
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
12
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
-
}>>>;
|
|
13
|
-
}>;
|
|
13
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>>;
|
|
14
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
15
|
+
export type ServerObject = Static<typeof ServerObjectSchema>;
|
|
14
16
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAKrD,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAE3B,4SAA4S;;IAE5S,gIAAgI;;IAEhI,oHAAoH;;;;;;kJAIvH,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { ServerVariableObjectSchema } from "./server-variable.js";
|
|
3
|
+
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
4
|
+
import { compose } from "../../../schemas/v3.1/compose.js";
|
|
5
|
+
const ServerObjectSchema = compose(
|
|
6
|
+
Type.Object({
|
|
7
|
+
/** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
|
|
8
|
+
url: Type.String(),
|
|
9
|
+
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
10
|
+
description: Type.Optional(Type.String()),
|
|
11
|
+
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
12
|
+
variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectSchema))
|
|
13
|
+
}),
|
|
14
|
+
ExtensionsSchema
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
ServerObjectSchema
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/strict/server.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ServerVariableObjectSchema } from './server-variable'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/** An object representing a Server. */\nexport const ServerObjectSchema = compose(\n Type.Object({\n /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */\n url: Type.String(),\n /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */\n variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectSchema)),\n }),\n ExtensionsSchema,\n)\n\nexport type ServerObject = Static<typeof ServerObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAGjB,MAAM,qBAAqB;AAAA,EAChC,KAAK,OAAO;AAAA;AAAA,IAEV,KAAK,KAAK,OAAO;AAAA;AAAA,IAEjB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,0BAA0B,CAAC;AAAA,EACjF,CAAC;AAAA,EACD;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
|
|
3
|
+
export declare const TagObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
4
|
+
/** REQUIRED. The name of the tag. */
|
|
5
|
+
name: import("@sinclair/typebox").TString;
|
|
6
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
7
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
/** Additional external documentation for this tag. */
|
|
9
|
+
externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
10
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
url: import("@sinclair/typebox").TString;
|
|
12
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
13
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
14
|
+
'x-displayName': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
16
|
+
export type TagObject = Static<typeof TagObjectSchema>;
|
|
17
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAWrD,sKAAsK;AACtK,eAAO,MAAM,eAAe;IAExB,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;;;;;;kJAKzD,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
|
|
3
|
+
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
4
|
+
import { compose } from "../../../schemas/v3.1/compose.js";
|
|
5
|
+
const TagExtensionsSchema = Type.Partial(
|
|
6
|
+
Type.Object({
|
|
7
|
+
"x-displayName": Type.String()
|
|
8
|
+
})
|
|
9
|
+
);
|
|
10
|
+
const TagObjectSchema = compose(
|
|
11
|
+
Type.Object({
|
|
12
|
+
/** REQUIRED. The name of the tag. */
|
|
13
|
+
name: Type.String(),
|
|
14
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
15
|
+
description: Type.Optional(Type.String()),
|
|
16
|
+
/** Additional external documentation for this tag. */
|
|
17
|
+
externalDocs: Type.Optional(ExternalDocumentationObjectSchema)
|
|
18
|
+
}),
|
|
19
|
+
TagExtensionsSchema,
|
|
20
|
+
ExtensionsSchema
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
TagObjectSchema
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/strict/tag.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nconst TagExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-displayName': Type.String(),\n }),\n)\n\n/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */\nexport const TagObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the tag. */\n name: Type.String(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this tag. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n }),\n TagExtensionsSchema,\n ExtensionsSchema,\n)\n\nexport type TagObject = Static<typeof TagObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAExB,MAAM,sBAAsB,KAAK;AAAA,EAC/B,KAAK,OAAO;AAAA,IACV,iBAAiB,KAAK,OAAO;AAAA,EAC/B,CAAC;AACH;AAGO,MAAM,kBAAkB;AAAA,EAC7B,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
1
2
|
/**
|
|
2
3
|
* A metadata object that allows for more fine-tuned XML model definitions.
|
|
3
4
|
*
|
|
4
5
|
* When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.
|
|
5
6
|
*/
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const XMLObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
7
8
|
/** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
|
|
8
9
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
10
|
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
@@ -14,5 +15,6 @@ export declare const XMLObject: import("@sinclair/typebox").TObject<{
|
|
|
14
15
|
attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
16
|
/** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
|
|
16
17
|
wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17
|
-
}>;
|
|
18
|
+
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
19
|
+
export type XMLObject = Static<typeof XMLObjectSchema>;
|
|
18
20
|
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/xml.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAExB,wWAAwW;;IAExW,4FAA4F;;IAE5F,0CAA0C;;IAE1C,yHAAyH;;IAEzH,2RAA2R;;kJAI9R,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { compose } from "../../../schemas/v3.1/compose.js";
|
|
2
|
+
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
|
+
import { Type } from "@sinclair/typebox";
|
|
4
|
+
const XMLObjectSchema = compose(
|
|
5
|
+
Type.Object({
|
|
6
|
+
/** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
|
|
7
|
+
name: Type.Optional(Type.String()),
|
|
8
|
+
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
9
|
+
namespace: Type.Optional(Type.String()),
|
|
10
|
+
/** The prefix to be used for the name. */
|
|
11
|
+
prefix: Type.Optional(Type.String()),
|
|
12
|
+
/** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
|
|
13
|
+
attribute: Type.Optional(Type.Boolean()),
|
|
14
|
+
/** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
|
|
15
|
+
wrapped: Type.Optional(Type.Boolean())
|
|
16
|
+
}),
|
|
17
|
+
ExtensionsSchema
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
XMLObjectSchema
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=xml.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/strict/xml.ts"],
|
|
4
|
+
"sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.\n */\nexport const XMLObjectSchema = compose(\n Type.Object({\n /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being \"array\" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */\n name: Type.Optional(Type.String()),\n /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */\n namespace: Type.Optional(Type.String()),\n /** The prefix to be used for the name. */\n prefix: Type.Optional(Type.String()),\n /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */\n attribute: Type.Optional(Type.Boolean()),\n /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being \"array\" (outside the items). */\n wrapped: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport type XMLObject = Static<typeof XMLObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAO3B,MAAM,kBAAkB;AAAA,EAC7B,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,WAAW,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEtC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEvC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EACvC,CAAC;AAAA,EACD;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guard.d.ts","sourceRoot":"","sources":["../../../src/schemas/v3.1/type-guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,eAAO,MAAM,WAAW,UAAW,OAAO,KAAG,KAAK,IAAI,eAErD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/v3.1/type-guard.ts"],
|
|
4
|
+
"sourcesContent": ["import type { ReferenceObject } from '@/schemas/v3.1/strict/reference'\n\nexport const isReference = (value: unknown): value is ReferenceObject => {\n return typeof value === 'object' && value !== null && '$ref' in value\n}\n"],
|
|
5
|
+
"mappings": "AAEO,MAAM,cAAc,CAAC,UAA6C;AACvE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|