@scalar/workspace-store 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +116 -0
- package/dist/client.d.ts +71 -44614
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +146 -11
- package/dist/client.js.map +2 -2
- package/dist/helpers/apply-selective-updates.d.ts +17 -0
- package/dist/helpers/apply-selective-updates.d.ts.map +1 -0
- package/dist/helpers/apply-selective-updates.js +13 -0
- package/dist/helpers/apply-selective-updates.js.map +7 -0
- package/dist/helpers/general.d.ts +33 -0
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/general.js +14 -1
- package/dist/helpers/general.js.map +2 -2
- package/dist/helpers/json-path-utils.d.ts +1 -1
- package/dist/helpers/json-path-utils.d.ts.map +1 -1
- package/dist/helpers/json-path-utils.js.map +2 -2
- package/dist/helpers/merge-object.d.ts +23 -0
- package/dist/helpers/merge-object.d.ts.map +1 -0
- package/dist/helpers/merge-object.js +20 -0
- package/dist/helpers/merge-object.js.map +7 -0
- package/dist/helpers/proxy.d.ts +1 -1
- package/dist/helpers/proxy.d.ts.map +1 -1
- package/dist/helpers/proxy.js.map +2 -2
- package/dist/mutators/cookie.d.ts +17 -0
- package/dist/mutators/cookie.d.ts.map +1 -0
- package/dist/mutators/cookie.js +31 -0
- package/dist/mutators/cookie.js.map +7 -0
- package/dist/mutators/environment.d.ts +17 -0
- package/dist/mutators/environment.d.ts.map +1 -0
- package/dist/mutators/environment.js +31 -0
- package/dist/mutators/environment.js.map +7 -0
- package/dist/mutators/helpers.d.ts +34492 -0
- package/dist/mutators/helpers.d.ts.map +1 -0
- package/dist/mutators/helpers.js +11 -0
- package/dist/mutators/helpers.js.map +7 -0
- package/dist/mutators/index.d.ts +108 -0
- package/dist/mutators/index.d.ts.map +1 -0
- package/dist/mutators/index.js +67 -0
- package/dist/mutators/index.js.map +7 -0
- package/dist/mutators/request-example.d.ts +21 -0
- package/dist/mutators/request-example.d.ts.map +1 -0
- package/dist/mutators/request-example.js +58 -0
- package/dist/mutators/request-example.js.map +7 -0
- package/dist/mutators/request.d.ts +22 -0
- package/dist/mutators/request.d.ts.map +1 -0
- package/dist/mutators/request.js +53 -0
- package/dist/mutators/request.js.map +7 -0
- package/dist/mutators/security-schemes.d.ts +14 -0
- package/dist/mutators/security-schemes.d.ts.map +1 -0
- package/dist/mutators/security-schemes.js +27 -0
- package/dist/mutators/security-schemes.js.map +7 -0
- package/dist/mutators/server.d.ts +12 -0
- package/dist/mutators/server.d.ts.map +1 -0
- package/dist/mutators/server.js +24 -0
- package/dist/mutators/server.js.map +7 -0
- package/dist/schemas/compose.d.ts.map +1 -0
- package/dist/schemas/{v3.1/compose.js.map → compose.js.map} +1 -1
- package/dist/schemas/reference-config/appearance.d.ts +13 -0
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
- package/dist/schemas/reference-config/appearance.js +26 -0
- package/dist/schemas/reference-config/appearance.js.map +7 -0
- package/dist/schemas/reference-config/features.d.ts +15 -0
- package/dist/schemas/reference-config/features.d.ts.map +1 -0
- package/dist/schemas/reference-config/features.js +30 -0
- package/dist/schemas/reference-config/features.js.map +7 -0
- package/dist/schemas/reference-config/index.d.ts +53 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -0
- package/dist/schemas/reference-config/index.js +66 -0
- package/dist/schemas/reference-config/index.js.map +7 -0
- package/dist/schemas/reference-config/meta.d.ts +12 -0
- package/dist/schemas/reference-config/meta.d.ts.map +1 -0
- package/dist/schemas/reference-config/meta.js +24 -0
- package/dist/schemas/reference-config/meta.js.map +7 -0
- package/dist/schemas/reference-config/routing.d.ts +8 -0
- package/dist/schemas/reference-config/routing.d.ts.map +1 -0
- package/dist/schemas/reference-config/routing.js +16 -0
- package/dist/schemas/reference-config/routing.js.map +7 -0
- package/dist/schemas/reference-config/settings.d.ts +8 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -0
- package/dist/schemas/reference-config/settings.js +16 -0
- package/dist/schemas/reference-config/settings.js.map +7 -0
- package/dist/schemas/v3.1/strict/callback.js +1 -1
- package/dist/schemas/v3.1/strict/callback.js.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +23 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
- package/dist/schemas/v3.1/strict/components.d.ts +45 -7821
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +4 -2
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.js +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +1 -1
- package/dist/schemas/v3.1/strict/example.js.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js.map +1 -1
- package/dist/schemas/v3.1/strict/header.d.ts +2 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +1 -1
- package/dist/schemas/v3.1/strict/header.js.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +1 -1
- package/dist/schemas/v3.1/strict/info.js.map +1 -1
- package/dist/schemas/v3.1/strict/license.js +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.js +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +1 -1
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +1 -1
- package/dist/schemas/v3.1/strict/media-type.js.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +45 -8
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +12 -9
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +16 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +9 -2
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +29 -2
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +8 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +2 -2
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +11 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +7 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-operations.d.ts +4133 -260
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.d.ts +1935 -15
- 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 +1 -1
- package/dist/schemas/v3.1/strict/reference.js +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.d.ts +2 -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 +1 -1
- package/dist/schemas/v3.1/strict/response.d.ts +4 -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 +1 -1
- package/dist/schemas/v3.1/strict/responses.d.ts +4 -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 +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +8 -3
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.js +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/v3.1/type-guard.d.ts +5 -0
- package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
- package/dist/schemas/v3.1/type-guard.js +1 -3
- package/dist/schemas/v3.1/type-guard.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +48 -0
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/config.js +11 -0
- package/dist/schemas/workspace-specification/config.js.map +7 -0
- package/dist/schemas/workspace-specification/index.d.ts +163 -0
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/index.js +27 -0
- package/dist/schemas/workspace-specification/index.js.map +7 -0
- package/dist/schemas/workspace-specification/info.d.ts +5 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/info.js +9 -0
- package/dist/schemas/workspace-specification/info.js.map +7 -0
- package/dist/schemas/workspace.d.ts +147 -79
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +19 -4
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +1371 -673
- package/dist/server.d.ts.map +1 -1
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +7 -0
- package/package.json +23 -9
- package/dist/schemas/v3.1/compose.d.ts.map +0 -1
- /package/dist/schemas/{v3.1/compose.d.ts → compose.d.ts} +0 -0
- /package/dist/schemas/{v3.1/compose.js → compose.js} +0 -0
|
@@ -1,20 +1,57 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/
|
|
1
|
+
import { compose } from "../../../schemas/compose.js";
|
|
2
2
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
3
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
const
|
|
4
|
+
const OAuthFlowCommonSchema = Type.Object({
|
|
5
|
+
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
6
|
+
refreshUrl: Type.Optional(Type.String()),
|
|
7
|
+
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
8
|
+
scopes: Type.Record(Type.String(), Type.String())
|
|
9
|
+
});
|
|
10
|
+
const OAuthFlowImplicitSchema = compose(
|
|
11
|
+
OAuthFlowCommonSchema,
|
|
12
|
+
Type.Object({
|
|
13
|
+
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
14
|
+
authorizationUrl: Type.String()
|
|
15
|
+
}),
|
|
16
|
+
ExtensionsSchema
|
|
17
|
+
);
|
|
18
|
+
const OAuthFlowPasswordSchema = compose(
|
|
19
|
+
OAuthFlowCommonSchema,
|
|
20
|
+
Type.Object({
|
|
21
|
+
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
22
|
+
tokenUrl: Type.String()
|
|
23
|
+
}),
|
|
24
|
+
ExtensionsSchema
|
|
25
|
+
);
|
|
26
|
+
const OAuthFlowClientCredentialsSchema = compose(
|
|
27
|
+
OAuthFlowCommonSchema,
|
|
28
|
+
Type.Object({
|
|
29
|
+
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
30
|
+
tokenUrl: Type.String()
|
|
31
|
+
}),
|
|
32
|
+
ExtensionsSchema
|
|
33
|
+
);
|
|
34
|
+
const OAuthFlowAuthorizationCodeSchema = compose(
|
|
35
|
+
OAuthFlowCommonSchema,
|
|
5
36
|
Type.Object({
|
|
6
37
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
7
38
|
authorizationUrl: Type.String(),
|
|
8
39
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
9
|
-
tokenUrl: Type.String()
|
|
10
|
-
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
11
|
-
refreshUrl: Type.Optional(Type.String()),
|
|
12
|
-
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
13
|
-
scopes: Type.Record(Type.String(), Type.String())
|
|
40
|
+
tokenUrl: Type.String()
|
|
14
41
|
}),
|
|
15
42
|
ExtensionsSchema
|
|
16
43
|
);
|
|
44
|
+
const OAuthFlowObjectSchema = Type.Union([
|
|
45
|
+
OAuthFlowImplicitSchema,
|
|
46
|
+
OAuthFlowPasswordSchema,
|
|
47
|
+
OAuthFlowClientCredentialsSchema,
|
|
48
|
+
OAuthFlowAuthorizationCodeSchema
|
|
49
|
+
]);
|
|
17
50
|
export {
|
|
18
|
-
|
|
51
|
+
OAuthFlowAuthorizationCodeSchema,
|
|
52
|
+
OAuthFlowClientCredentialsSchema,
|
|
53
|
+
OAuthFlowImplicitSchema,
|
|
54
|
+
OAuthFlowObjectSchema,
|
|
55
|
+
OAuthFlowPasswordSchema
|
|
19
56
|
};
|
|
20
57
|
//# sourceMappingURL=oauth-flow.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],
|
|
4
|
-
"sourcesContent": ["import { compose } from '@/schemas/
|
|
5
|
-
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;
|
|
4
|
+
"sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.Optional(Type.String()),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n})\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Union of all OAuth flow schemas */\nexport const OAuthFlowObjectSchema = Type.Union([\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n])\n\nexport type OAuthFlowObject = Static<typeof OAuthFlowObjectSchema>\nexport type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>\nexport type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>\nexport type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>\nexport type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAGlC,MAAM,wBAAwB,KAAK,OAAO;AAAA;AAAA,EAExC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEvC,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAClD,CAAC;AAGM,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AAGO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,wBAAwB,KAAK,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,35 +2,36 @@ import { type Static } from '@sinclair/typebox';
|
|
|
2
2
|
/**
|
|
3
3
|
* Allows configuration of the supported OAuth Flows.
|
|
4
4
|
*/
|
|
5
|
-
export declare const OAuthFlowsObjectSchema: import("@sinclair/typebox").
|
|
5
|
+
export declare const OAuthFlowsObjectSchema: import("@sinclair/typebox").TObject<{
|
|
6
6
|
/** Configuration for the OAuth Implicit flow */
|
|
7
7
|
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
8
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
9
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
10
8
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
9
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
10
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
11
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
12
12
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
13
13
|
/** Configuration for the OAuth Resource Owner Password flow */
|
|
14
14
|
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
15
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
16
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
17
15
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
16
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
17
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
18
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
19
19
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
20
20
|
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
21
21
|
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
22
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
23
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
24
22
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
23
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
24
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
25
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
26
26
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
27
27
|
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
28
28
|
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
29
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
30
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
31
29
|
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32
30
|
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
31
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
32
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
33
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
33
34
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
34
|
-
}
|
|
35
|
+
}>;
|
|
35
36
|
export type OAuthFlowsObject = Static<typeof OAuthFlowsObjectSchema>;
|
|
36
37
|
//# sourceMappingURL=oauthflows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthflows.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauthflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"oauthflows.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauthflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AASrD;;GAEG;AACH,eAAO,MAAM,sBAAsB;IAE/B,gDAAgD;;;;;;;IAEhD,+DAA+D;;;;;;;IAE/D,yGAAyG;;;;;;;IAEzG,wGAAwG;;;;;;;;EAG3G,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import {
|
|
3
|
+
OAuthFlowImplicitSchema,
|
|
4
|
+
OAuthFlowPasswordSchema,
|
|
5
|
+
OAuthFlowClientCredentialsSchema,
|
|
6
|
+
OAuthFlowAuthorizationCodeSchema
|
|
7
|
+
} from "./oauth-flow.js";
|
|
8
|
+
import { compose } from "../../../schemas/compose.js";
|
|
5
9
|
const OAuthFlowsObjectSchema = compose(
|
|
6
10
|
Type.Object({
|
|
7
11
|
/** Configuration for the OAuth Implicit flow */
|
|
8
|
-
implicit: Type.Optional(
|
|
12
|
+
implicit: Type.Optional(OAuthFlowImplicitSchema),
|
|
9
13
|
/** Configuration for the OAuth Resource Owner Password flow */
|
|
10
|
-
password: Type.Optional(
|
|
14
|
+
password: Type.Optional(OAuthFlowPasswordSchema),
|
|
11
15
|
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
12
|
-
clientCredentials: Type.Optional(
|
|
16
|
+
clientCredentials: Type.Optional(OAuthFlowClientCredentialsSchema),
|
|
13
17
|
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
14
|
-
authorizationCode: Type.Optional(
|
|
15
|
-
})
|
|
16
|
-
ExtensionsSchema
|
|
18
|
+
authorizationCode: Type.Optional(OAuthFlowAuthorizationCodeSchema)
|
|
19
|
+
})
|
|
17
20
|
);
|
|
18
21
|
export {
|
|
19
22
|
OAuthFlowsObjectSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/oauthflows.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport {
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAyB;AAClC,
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport {\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n} from './oauth-flow'\nimport { compose } from '@/schemas/compose'\n\n/**\n * Allows configuration of the supported OAuth Flows.\n */\nexport const OAuthFlowsObjectSchema = compose(\n Type.Object({\n /** Configuration for the OAuth Implicit flow */\n implicit: Type.Optional(OAuthFlowImplicitSchema),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: Type.Optional(OAuthFlowPasswordSchema),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: Type.Optional(OAuthFlowClientCredentialsSchema),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode: Type.Optional(OAuthFlowAuthorizationCodeSchema),\n }),\n)\n\nexport type OAuthFlowsObject = Static<typeof OAuthFlowsObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AAKjB,MAAM,yBAAyB;AAAA,EACpC,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,IAE/C,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,IAE/C,mBAAmB,KAAK,SAAS,gCAAgC;AAAA;AAAA,IAEjE,mBAAmB,KAAK,SAAS,gCAAgC;AAAA,EACnE,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -21,6 +21,22 @@ declare const OpenApiExtensionsSchema: TObject<{
|
|
|
21
21
|
}>, TObject<{
|
|
22
22
|
'x-displayName': TOptional<TString>;
|
|
23
23
|
}>, TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
|
|
24
|
+
'x-scalar-client-config-active-environment': TOptional<TString>;
|
|
25
|
+
'x-scalar-client-config-icon': TOptional<TString>;
|
|
26
|
+
'x-scalar-client-config-environments': TOptional<TRecord<TString, TObject<{
|
|
27
|
+
description: TOptional<TString>;
|
|
28
|
+
color: TOptional<TString>;
|
|
29
|
+
variables: TRecord<TString, import("@sinclair/typebox").TUnion<[TObject<{
|
|
30
|
+
description: TOptional<TString>;
|
|
31
|
+
default: TOptional<TString>;
|
|
32
|
+
}>, TString]>>;
|
|
33
|
+
}>>>;
|
|
34
|
+
'x-scalar-client-config-cookies': TOptional<TRecord<TString, TObject<{
|
|
35
|
+
name: TString;
|
|
36
|
+
value: TString;
|
|
37
|
+
domain: TOptional<TString>;
|
|
38
|
+
path: TOptional<TString>;
|
|
39
|
+
}>>>;
|
|
24
40
|
}>;
|
|
25
41
|
/**
|
|
26
42
|
* The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-document.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/openapi-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"openapi-document.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/openapi-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACb,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAI5E,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD;IACE,OAAO,CAAC;QACN,OAAO,EAAE,OAAO,CAAA;QAChB,IAAI,EAAE,OAAO,gBAAgB,CAAA;QAC7B,iBAAiB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;QACrC,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAA;QACrD,KAAK,EAAE,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAA;QAC1C,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAA;QAClE,UAAU,EAAE,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAA;QACpD,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAA;QACnE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,CAAA;QAC/C,YAAY,EAAE,SAAS,CAAC,OAAO,iCAAiC,CAAC,CAAA;KAClE,CAAC;IACF,OAAO,gBAAgB;IACvB,OAAO,uBAAuB;CAC/B,CACF,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,yBAyBnC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -9,8 +9,10 @@ import { SecurityRequirementObjectSchema } from "./security-requirement.js";
|
|
|
9
9
|
import { TagObjectSchema } from "./tag.js";
|
|
10
10
|
import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
|
|
11
11
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
12
|
-
import { compose } from "../../../schemas/
|
|
12
|
+
import { compose } from "../../../schemas/compose.js";
|
|
13
13
|
import { PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
|
|
14
|
+
import { xScalarClientConfigEnvironmentsSchema } from "../../../schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js";
|
|
15
|
+
import { xScalarClientConfigCookiesSchema } from "../../../schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js";
|
|
14
16
|
const OpenApiExtensionsSchema = Type.Partial(
|
|
15
17
|
Type.Object({
|
|
16
18
|
"x-tagGroups": Type.Array(
|
|
@@ -20,7 +22,12 @@ const OpenApiExtensionsSchema = Type.Partial(
|
|
|
20
22
|
}),
|
|
21
23
|
TagObjectSchema
|
|
22
24
|
)
|
|
23
|
-
)
|
|
25
|
+
),
|
|
26
|
+
"x-scalar-client-config-active-environment": Type.String(),
|
|
27
|
+
/** A custom icon representing the collection */
|
|
28
|
+
"x-scalar-client-config-icon": Type.String(),
|
|
29
|
+
"x-scalar-client-config-environments": xScalarClientConfigEnvironmentsSchema,
|
|
30
|
+
"x-scalar-client-config-cookies": xScalarClientConfigCookiesSchema
|
|
24
31
|
})
|
|
25
32
|
);
|
|
26
33
|
const OpenAPIDocumentSchema = compose(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/openapi-document.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n Type,\n type Static,\n type TArray,\n type TIntersect,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n} from '@sinclair/typebox'\nimport { InfoObjectSchema } from './info'\nimport { ServerObjectSchema } from './server'\nimport { PathsObjectSchema } from './paths'\nimport { ComponentsObjectSchema } from './components'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { TagObjectSchema } from './tag'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/
|
|
5
|
-
"mappings": "AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,uCAAuC;AAChD,SAAS,uBAAuB;AAChC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,4BAA4B;
|
|
4
|
+
"sourcesContent": ["import {\n Type,\n type Static,\n type TArray,\n type TIntersect,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n} from '@sinclair/typebox'\nimport { InfoObjectSchema } from './info'\nimport { ServerObjectSchema } from './server'\nimport { PathsObjectSchema } from './paths'\nimport { ComponentsObjectSchema } from './components'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { TagObjectSchema } from './tag'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\nimport { PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\nimport { xScalarClientConfigEnvironmentsSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments'\nimport { xScalarClientConfigCookiesSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies'\n\nconst OpenApiExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-tagGroups': Type.Array(\n compose(\n Type.Object({\n tags: Type.Array(Type.String()),\n }),\n TagObjectSchema,\n ),\n ),\n 'x-scalar-client-config-active-environment': Type.String(),\n /** A custom icon representing the collection */\n 'x-scalar-client-config-icon': Type.String(),\n 'x-scalar-client-config-environments': xScalarClientConfigEnvironmentsSchema,\n 'x-scalar-client-config-cookies': xScalarClientConfigCookiesSchema,\n }),\n)\n\n/**\n * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.\n * This is due to the complex nested structure of the OpenAPI document schema, which includes multiple optional fields,\n * arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.\n */\nexport type OpenApiDocumentSchemaType = TIntersect<\n [\n TObject<{\n openapi: TString\n info: typeof InfoObjectSchema\n jsonSchemaDialect: TOptional<TString>\n servers: TOptional<TArray<typeof ServerObjectSchema>>\n paths: TOptional<typeof PathsObjectSchema>\n webhooks: TOptional<TRecord<TString, typeof PathItemObjectSchema>>\n components: TOptional<typeof ComponentsObjectSchema>\n security: TOptional<TArray<typeof SecurityRequirementObjectSchema>>\n tags: TOptional<TArray<typeof TagObjectSchema>>\n externalDocs: TOptional<typeof ExternalDocumentationObjectSchema>\n }>,\n typeof ExtensionsSchema,\n typeof OpenApiExtensionsSchema,\n ]\n>\n\nexport const OpenAPIDocumentSchema: OpenApiDocumentSchemaType = compose(\n Type.Object({\n /** REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string. */\n openapi: Type.String(),\n /** REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. */\n info: InfoObjectSchema,\n /** The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI. */\n jsonSchemaDialect: Type.Optional(Type.String()),\n /** An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** The available paths and operations for the API. */\n paths: Type.Optional(PathsObjectSchema),\n /** The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An example is available. */\n webhooks: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n /** An element to hold various Objects for the OpenAPI Description. */\n components: Type.Optional(ComponentsObjectSchema),\n /** A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included in the array. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectSchema)),\n /** A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique. */\n tags: Type.Optional(Type.Array(TagObjectSchema)),\n /** Additional external documentation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n }),\n ExtensionsSchema,\n OpenApiExtensionsSchema,\n)\n\nexport type OpenApiDocument = Static<typeof OpenAPIDocumentSchema>\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,uCAAuC;AAChD,SAAS,uBAAuB;AAChC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,4BAA4B;AACrC,SAAS,6CAA6C;AACtD,SAAS,wCAAwC;AAEjD,MAAM,0BAA0B,KAAK;AAAA,EACnC,KAAK,OAAO;AAAA,IACV,eAAe,KAAK;AAAA,MAClB;AAAA,QACE,KAAK,OAAO;AAAA,UACV,MAAM,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,QAChC,CAAC;AAAA,QACD;AAAA,MACF;AAAA,IACF;AAAA,IACA,6CAA6C,KAAK,OAAO;AAAA;AAAA,IAEzD,+BAA+B,KAAK,OAAO;AAAA,IAC3C,uCAAuC;AAAA,IACvC,kCAAkC;AAAA,EACpC,CAAC;AACH;AA0BO,MAAM,wBAAmD;AAAA,EAC9D,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,OAAO;AAAA;AAAA,IAErB,MAAM;AAAA;AAAA,IAEN,mBAAmB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE9C,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,OAAO,KAAK,SAAS,iBAAiB;AAAA;AAAA,IAEtC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAAA;AAAA,IAExE,YAAY,KAAK,SAAS,sBAAsB;AAAA;AAAA,IAEhD,UAAU,KAAK,SAAS,KAAK,MAAM,+BAA+B,CAAC;AAAA;AAAA,IAEnE,MAAM,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,IAE/C,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -16,7 +16,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
16
16
|
/** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */
|
|
17
17
|
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
18
18
|
name: import("@sinclair/typebox").TString;
|
|
19
|
-
in: import("@sinclair/typebox").
|
|
19
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
20
20
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
21
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
22
22
|
deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -41,6 +41,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
41
41
|
url: import("@sinclair/typebox").TString;
|
|
42
42
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
43
43
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
44
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
44
45
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
45
46
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
46
47
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -67,7 +68,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
67
68
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
|
|
68
69
|
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
69
70
|
name: import("@sinclair/typebox").TString;
|
|
70
|
-
in: import("@sinclair/typebox").
|
|
71
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
71
72
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
72
73
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
73
74
|
deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -91,6 +92,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
91
92
|
url: import("@sinclair/typebox").TString;
|
|
92
93
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
93
94
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
95
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
94
96
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
95
97
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
96
98
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -134,6 +136,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
134
136
|
url: import("@sinclair/typebox").TString;
|
|
135
137
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
136
138
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
139
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
137
140
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
138
141
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
139
142
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -203,6 +206,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
203
206
|
url: import("@sinclair/typebox").TString;
|
|
204
207
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
205
208
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
209
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
206
210
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
207
211
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
208
212
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -246,6 +250,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
246
250
|
url: import("@sinclair/typebox").TString;
|
|
247
251
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
248
252
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
253
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
249
254
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
250
255
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
251
256
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -322,6 +327,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
322
327
|
url: import("@sinclair/typebox").TString;
|
|
323
328
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
324
329
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
330
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
325
331
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
326
332
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
327
333
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -369,6 +375,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
369
375
|
url: import("@sinclair/typebox").TString;
|
|
370
376
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
371
377
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
378
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
372
379
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
373
380
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
374
381
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -424,6 +431,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
424
431
|
url: import("@sinclair/typebox").TString;
|
|
425
432
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
426
433
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
434
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
427
435
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
428
436
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
429
437
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -467,6 +475,7 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
467
475
|
url: import("@sinclair/typebox").TString;
|
|
468
476
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
469
477
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
478
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
470
479
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
471
480
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
472
481
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -561,6 +570,24 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
|
|
|
561
570
|
$status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
|
|
562
571
|
$global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
563
572
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
|
|
573
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
574
|
+
'x-scalar-client-config-request-example': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
575
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
576
|
+
body: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
577
|
+
encoding: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary">[]>;
|
|
578
|
+
content: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>, import("@sinclair/typebox").TString]>;
|
|
579
|
+
file: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
580
|
+
url: import("@sinclair/typebox").TString;
|
|
581
|
+
base64: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
582
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
583
|
+
}>>;
|
|
584
|
+
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
585
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
586
|
+
query: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
587
|
+
header: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
588
|
+
cookie: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
589
|
+
}>>;
|
|
590
|
+
}>>>;
|
|
564
591
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
565
592
|
$ref: import("@sinclair/typebox").TString;
|
|
566
593
|
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAkBtD,eAAO,MAAM,4BAA4B,GAAI,CAAC,SAAS,OAAO,YAAY,CAAC;IAInE,6IAA6I;;IAE7I,kDAAkD;;IAElD,mHAAmH;;IAEnH,4DAA4D;;;;;IAE5D,2TAA2T;;IAE3T,waAAwa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExa,wXAAwX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExX,yFAAyF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEzF,uIAAuI;;IAEvI,ieAAie;;IAEje,oLAAoL;;;;;;;;;;IAEpL,iRAAiR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oJAOrR,CAAA"}
|
|
@@ -6,8 +6,14 @@ import { RequestBodyObjectSchema } from "./request-body.js";
|
|
|
6
6
|
import { ResponsesObjectSchema } from "./responses.js";
|
|
7
7
|
import { SecurityRequirementObjectSchema } from "./security-requirement.js";
|
|
8
8
|
import { ServerObjectSchema } from "./server.js";
|
|
9
|
+
import { compose } from "../../../schemas/compose.js";
|
|
10
|
+
import { xScalarClientConfigRequestExampleSchema } from "../../../schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js";
|
|
9
11
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
10
|
-
|
|
12
|
+
const OperationExtensionsSchema = Type.Partial(
|
|
13
|
+
Type.Object({
|
|
14
|
+
"x-scalar-client-config-request-example": Type.Record(Type.String(), xScalarClientConfigRequestExampleSchema)
|
|
15
|
+
})
|
|
16
|
+
);
|
|
11
17
|
const operationObjectSchemaBuilder = (callback) => Type.Union([
|
|
12
18
|
compose(
|
|
13
19
|
Type.Object({
|
|
@@ -36,6 +42,7 @@ const operationObjectSchemaBuilder = (callback) => Type.Union([
|
|
|
36
42
|
/** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */
|
|
37
43
|
callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([callback, ReferenceObjectSchema])))
|
|
38
44
|
}),
|
|
45
|
+
OperationExtensionsSchema,
|
|
39
46
|
ExtensionsSchema
|
|
40
47
|
),
|
|
41
48
|
ReferenceObjectSchema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/operation.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { ResponsesObjectSchema } from './responses'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { ServerObjectSchema } from './server'\nimport {
|
|
5
|
-
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,6BAA6B;AACtC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { ResponsesObjectSchema } from './responses'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { ServerObjectSchema } from './server'\nimport { compose } from '@/schemas/compose'\nimport { xScalarClientConfigRequestExampleSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\n\nconst OperationExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-scalar-client-config-request-example': Type.Record(Type.String(), xScalarClientConfigRequestExampleSchema),\n }),\n)\n\nexport const operationObjectSchemaBuilder = <C extends TSchema>(callback: C) =>\n Type.Union([\n compose(\n Type.Object({\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags: Type.Optional(Type.Array(Type.String())),\n /** A short summary of what the operation does. */\n summary: Type.Optional(Type.String()),\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this operation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId: Type.Optional(Type.String()),\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody: Type.Optional(Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectSchema),\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectSchema)),\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([callback, ReferenceObjectSchema]))),\n }),\n OperationExtensionsSchema,\n ExtensionsSchema,\n ),\n ReferenceObjectSchema,\n ])\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,6BAA6B;AACtC,SAAS,uCAAuC;AAChD,SAAS,0BAA0B;AACnC,SAAS,eAAe;AACxB,SAAS,+CAA+C;AACxD,SAAS,wBAAwB;AAEjC,MAAM,4BAA4B,KAAK;AAAA,EACrC,KAAK,OAAO;AAAA,IACV,0CAA0C,KAAK,OAAO,KAAK,OAAO,GAAG,uCAAuC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,+BAA+B,CAAoB,aAC9D,KAAK,MAAM;AAAA,EACT;AAAA,IACE,KAAK,OAAO;AAAA;AAAA,MAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,MAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAExC,cAAc,KAAK,SAAS,iCAAiC;AAAA;AAAA,MAE7D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,MAExC,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,MAEhG,aAAa,KAAK,SAAS,KAAK,MAAM,CAAC,yBAAyB,qBAAqB,CAAC,CAAC;AAAA;AAAA,MAEvF,WAAW,KAAK,SAAS,qBAAqB;AAAA;AAAA,MAE9C,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,MAExC,UAAU,KAAK,SAAS,KAAK,MAAM,+BAA+B,CAAC;AAAA;AAAA,MAEnE,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,MAErD,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,UAAU,qBAAqB,CAAC,CAAC,CAAC;AAAA,IACpG,CAAC;AAAA,IACD;AAAA,IACA;AAAA,EACF;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|