@scalar/workspace-store 0.1.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/.turbo/turbo-build.log +10 -0
- package/CHANGELOG.md +13 -0
- package/README.md +199 -0
- package/dist/create-server-workspace-store.d.ts +151 -0
- package/dist/create-server-workspace-store.d.ts.map +1 -0
- package/dist/create-server-workspace-store.js +199 -0
- package/dist/create-server-workspace-store.js.map +7 -0
- package/dist/create-workspace-store.d.ts +19773 -0
- package/dist/create-workspace-store.d.ts.map +1 -0
- package/dist/create-workspace-store.js +186 -0
- package/dist/create-workspace-store.js.map +7 -0
- package/dist/helpers/general.d.ts +88 -0
- package/dist/helpers/general.d.ts.map +1 -0
- package/dist/helpers/general.js +38 -0
- package/dist/helpers/general.js.map +7 -0
- package/dist/helpers/json-path-utils.d.ts +23 -0
- package/dist/helpers/json-path-utils.d.ts.map +1 -0
- package/dist/helpers/json-path-utils.js +16 -0
- package/dist/helpers/json-path-utils.js.map +7 -0
- package/dist/helpers/proxy.d.ts +63 -0
- package/dist/helpers/proxy.d.ts.map +1 -0
- package/dist/helpers/proxy.js +100 -0
- package/dist/helpers/proxy.js.map +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +7 -0
- package/dist/schemas/callback.d.ts +1095 -0
- package/dist/schemas/callback.d.ts.map +1 -0
- package/dist/schemas/callback.js +11 -0
- package/dist/schemas/callback.js.map +7 -0
- package/dist/schemas/components.d.ts +2461 -0
- package/dist/schemas/components.d.ts.map +1 -0
- package/dist/schemas/components.js +38 -0
- package/dist/schemas/components.js.map +7 -0
- package/dist/schemas/contact.d.ts +10 -0
- package/dist/schemas/contact.d.ts.map +1 -0
- package/dist/schemas/contact.js +13 -0
- package/dist/schemas/contact.js.map +7 -0
- package/dist/schemas/discriminator.d.ts +12 -0
- package/dist/schemas/discriminator.d.ts.map +1 -0
- package/dist/schemas/discriminator.js +11 -0
- package/dist/schemas/discriminator.js.map +7 -0
- package/dist/schemas/encoding.d.ts +23 -0
- package/dist/schemas/encoding.d.ts.map +1 -0
- package/dist/schemas/encoding.js +13 -0
- package/dist/schemas/encoding.js.map +7 -0
- package/dist/schemas/example.d.ts +16 -0
- package/dist/schemas/example.d.ts.map +1 -0
- package/dist/schemas/example.js +15 -0
- package/dist/schemas/example.js.map +7 -0
- package/dist/schemas/external-documentation.d.ts +8 -0
- package/dist/schemas/external-documentation.d.ts.map +1 -0
- package/dist/schemas/external-documentation.js +11 -0
- package/dist/schemas/external-documentation.js.map +7 -0
- package/dist/schemas/header.d.ts +18 -0
- package/dist/schemas/header.d.ts.map +1 -0
- package/dist/schemas/header.js +13 -0
- package/dist/schemas/header.js.map +7 -0
- package/dist/schemas/info.d.ts +28 -0
- package/dist/schemas/info.d.ts.map +1 -0
- package/dist/schemas/info.js +23 -0
- package/dist/schemas/info.js.map +7 -0
- package/dist/schemas/license.d.ts +10 -0
- package/dist/schemas/license.d.ts.map +1 -0
- package/dist/schemas/license.js +13 -0
- package/dist/schemas/license.js.map +7 -0
- package/dist/schemas/link.d.ts +30 -0
- package/dist/schemas/link.d.ts.map +1 -0
- package/dist/schemas/link.js +20 -0
- package/dist/schemas/link.js.map +7 -0
- package/dist/schemas/media-type.d.ts +55 -0
- package/dist/schemas/media-type.d.ts.map +1 -0
- package/dist/schemas/media-type.js +19 -0
- package/dist/schemas/media-type.js.map +7 -0
- package/dist/schemas/oauth-flow.d.ts +12 -0
- package/dist/schemas/oauth-flow.d.ts.map +1 -0
- package/dist/schemas/oauth-flow.js +15 -0
- package/dist/schemas/oauth-flow.js.map +7 -0
- package/dist/schemas/oauthflows.d.ts +34 -0
- package/dist/schemas/oauthflows.d.ts.map +1 -0
- package/dist/schemas/oauthflows.js +16 -0
- package/dist/schemas/oauthflows.js.map +7 -0
- package/dist/schemas/openapi-document.d.ts +4683 -0
- package/dist/schemas/openapi-document.d.ts.map +1 -0
- package/dist/schemas/openapi-document.js +35 -0
- package/dist/schemas/openapi-document.js.map +7 -0
- package/dist/schemas/operation-without-callback.d.ts +190 -0
- package/dist/schemas/operation-without-callback.d.ts.map +1 -0
- package/dist/schemas/operation-without-callback.js +39 -0
- package/dist/schemas/operation-without-callback.js.map +7 -0
- package/dist/schemas/parameter.d.ts +25 -0
- package/dist/schemas/parameter.d.ts.map +1 -0
- package/dist/schemas/parameter.js +22 -0
- package/dist/schemas/parameter.js.map +7 -0
- package/dist/schemas/path-item.d.ts +1106 -0
- package/dist/schemas/path-item.d.ts.map +1 -0
- package/dist/schemas/path-item.js +37 -0
- package/dist/schemas/path-item.js.map +7 -0
- package/dist/schemas/paths.d.ts +1093 -0
- package/dist/schemas/paths.d.ts.map +1 -0
- package/dist/schemas/paths.js +11 -0
- package/dist/schemas/paths.js.map +7 -0
- package/dist/schemas/reference.d.ts +17 -0
- package/dist/schemas/reference.d.ts.map +1 -0
- package/dist/schemas/reference.js +15 -0
- package/dist/schemas/reference.js.map +7 -0
- package/dist/schemas/request-body.d.ts +54 -0
- package/dist/schemas/request-body.d.ts.map +1 -0
- package/dist/schemas/request-body.js +14 -0
- package/dist/schemas/request-body.js.map +7 -0
- package/dist/schemas/response.d.ts +84 -0
- package/dist/schemas/response.d.ts.map +1 -0
- package/dist/schemas/response.js +19 -0
- package/dist/schemas/response.js.map +7 -0
- package/dist/schemas/responses.d.ts +94 -0
- package/dist/schemas/responses.d.ts.map +1 -0
- package/dist/schemas/responses.js +8 -0
- package/dist/schemas/responses.js.map +7 -0
- package/dist/schemas/schema.d.ts +34 -0
- package/dist/schemas/schema.d.ts.map +1 -0
- package/dist/schemas/schema.js +22 -0
- package/dist/schemas/schema.js.map +7 -0
- package/dist/schemas/security-requirement.d.ts +11 -0
- package/dist/schemas/security-requirement.d.ts.map +1 -0
- package/dist/schemas/security-requirement.js +10 -0
- package/dist/schemas/security-requirement.js.map +7 -0
- package/dist/schemas/security-scheme.d.ts +137 -0
- package/dist/schemas/security-scheme.d.ts.map +1 -0
- package/dist/schemas/security-scheme.js +56 -0
- package/dist/schemas/security-scheme.js.map +7 -0
- package/dist/schemas/server-variable.d.ts +10 -0
- package/dist/schemas/server-variable.d.ts.map +1 -0
- package/dist/schemas/server-variable.js +13 -0
- package/dist/schemas/server-variable.js.map +7 -0
- package/dist/schemas/server-workspace.d.ts +14043 -0
- package/dist/schemas/server-workspace.d.ts.map +1 -0
- package/dist/schemas/server-workspace.js +29 -0
- package/dist/schemas/server-workspace.js.map +7 -0
- package/dist/schemas/server.d.ts +14 -0
- package/dist/schemas/server.d.ts.map +1 -0
- package/dist/schemas/server.js +14 -0
- package/dist/schemas/server.js.map +7 -0
- package/dist/schemas/tag.d.ts +13 -0
- package/dist/schemas/tag.d.ts.map +1 -0
- package/dist/schemas/tag.js +14 -0
- package/dist/schemas/tag.js.map +7 -0
- package/dist/schemas/xml.d.ts +18 -0
- package/dist/schemas/xml.d.ts.map +1 -0
- package/dist/schemas/xml.js +17 -0
- package/dist/schemas/xml.js.map +7 -0
- package/esbuild.ts +6 -0
- package/package.json +54 -0
- package/src/create-server-workspace-store.test.ts +429 -0
- package/src/create-server-workspace-store.ts +339 -0
- package/src/create-workspace-store.test.ts +488 -0
- package/src/create-workspace-store.ts +282 -0
- package/src/helpers/general.ts +115 -0
- package/src/helpers/json-path-utils.test.ts +13 -0
- package/src/helpers/json-path-utils.ts +38 -0
- package/src/helpers/proxy.test.ts +61 -0
- package/src/helpers/proxy.ts +213 -0
- package/src/index.ts +8 -0
- package/src/schemas/callback.ts +13 -0
- package/src/schemas/components.ts +36 -0
- package/src/schemas/contact.ts +11 -0
- package/src/schemas/discriminator.ts +13 -0
- package/src/schemas/encoding.ts +17 -0
- package/src/schemas/example.ts +17 -0
- package/src/schemas/external-documentation.ts +9 -0
- package/src/schemas/header.ts +19 -0
- package/src/schemas/info.ts +23 -0
- package/src/schemas/license.ts +11 -0
- package/src/schemas/link.ts +24 -0
- package/src/schemas/media-type.ts +21 -0
- package/src/schemas/oauth-flow.ts +13 -0
- package/src/schemas/oauthflows.ts +16 -0
- package/src/schemas/openapi-document.ts +34 -0
- package/src/schemas/operation-without-callback.ts +37 -0
- package/src/schemas/parameter.ts +26 -0
- package/src/schemas/path-item.ts +35 -0
- package/src/schemas/paths.ts +11 -0
- package/src/schemas/reference.ts +18 -0
- package/src/schemas/request-body.ts +12 -0
- package/src/schemas/response.ts +16 -0
- package/src/schemas/responses.ts +14 -0
- package/src/schemas/schema.ts +26 -0
- package/src/schemas/security-requirement.ts +16 -0
- package/src/schemas/security-scheme.ts +58 -0
- package/src/schemas/server-variable.ts +11 -0
- package/src/schemas/server-workspace.ts +36 -0
- package/src/schemas/server.ts +12 -0
- package/src/schemas/tag.ts +12 -0
- package/src/schemas/xml.ts +19 -0
- package/test/helpers.ts +16 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +8 -0
- package/vite.config.ts +9 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { ExampleObject } from "./example.js";
|
|
3
|
+
import { ReferenceObject } from "./reference.js";
|
|
4
|
+
import { EncodingObject } from "./encoding.js";
|
|
5
|
+
import { SchemaObject } from "./schema.js";
|
|
6
|
+
const MediaTypeObject = Type.Object({
|
|
7
|
+
/** The schema defining the content of the request, response, parameter, or header. */
|
|
8
|
+
schema: Type.Optional(SchemaObject),
|
|
9
|
+
/** Example of the media type */
|
|
10
|
+
example: Type.Optional(Type.Any()),
|
|
11
|
+
/** Examples of the media type */
|
|
12
|
+
examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObject, ReferenceObject]))),
|
|
13
|
+
/** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */
|
|
14
|
+
encoding: Type.Optional(Type.Record(Type.String(), EncodingObject))
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
MediaTypeObject
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=media-type.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/schemas/media-type.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { ExampleObject } from './example'\nimport { ReferenceObject } from './reference'\nimport { EncodingObject } from './encoding'\nimport { SchemaObject } from './schema'\n\n/**\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * When example or examples are provided, the example SHOULD match the specified schema and be in the correct format as specified by the media type and its encoding. The example and examples fields are mutually exclusive, and if either is present it SHALL override any example in the schema. See Working With Examples for further guidance regarding the different ways of specifying examples, including non-JSON/YAML values.\n */\nexport const MediaTypeObject = Type.Object({\n /** The schema defining the content of the request, response, parameter, or header. */\n schema: Type.Optional(SchemaObject),\n /** Example of the media type */\n example: Type.Optional(Type.Any()),\n /** Examples of the media type */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObject, ReferenceObject]))),\n /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */\n encoding: Type.Optional(Type.Record(Type.String(), EncodingObject)),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAOtB,MAAM,kBAAkB,KAAK,OAAO;AAAA;AAAA,EAEzC,QAAQ,KAAK,SAAS,YAAY;AAAA;AAAA,EAElC,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,eAAe,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,EAEhG,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,cAAc,CAAC;AACpE,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Configuration details for a supported OAuth Flow */
|
|
2
|
+
export declare const OAuthFlowObject: import("@sinclair/typebox").TObject<{
|
|
3
|
+
/** 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. */
|
|
4
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
5
|
+
/** 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. */
|
|
6
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
7
|
+
/** 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. */
|
|
8
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
/** 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. */
|
|
10
|
+
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=oauth-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth-flow.ts"],"names":[],"mappings":"AAEA,uDAAuD;AACvD,eAAO,MAAM,eAAe;IAC1B,gJAAgJ;;IAEhJ,wIAAwI;;IAExI,uIAAuI;;IAEvI,wJAAwJ;;EAExJ,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const OAuthFlowObject = Type.Object({
|
|
3
|
+
/** 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. */
|
|
4
|
+
authorizationUrl: Type.String(),
|
|
5
|
+
/** 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. */
|
|
6
|
+
tokenUrl: Type.String(),
|
|
7
|
+
/** 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. */
|
|
8
|
+
refreshUrl: Type.Optional(Type.String()),
|
|
9
|
+
/** 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. */
|
|
10
|
+
scopes: Type.Record(Type.String(), Type.String())
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
OAuthFlowObject
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=oauth-flow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/schemas/oauth-flow.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/** Configuration details for a supported OAuth Flow */\nexport const OAuthFlowObject = 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 /** 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"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,kBAAkB,KAAK,OAAO;AAAA;AAAA,EAEzC,kBAAkB,KAAK,OAAO;AAAA;AAAA,EAE9B,UAAU,KAAK,OAAO;AAAA;AAAA,EAEtB,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEvC,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAClD,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allows configuration of the supported OAuth Flows.
|
|
3
|
+
*/
|
|
4
|
+
export declare const OAuthFlowsObject: import("@sinclair/typebox").TObject<{
|
|
5
|
+
/** Configuration for the OAuth Implicit flow */
|
|
6
|
+
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
7
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
8
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
9
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
11
|
+
}>>;
|
|
12
|
+
/** Configuration for the OAuth Resource Owner Password flow */
|
|
13
|
+
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
14
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
15
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
16
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
18
|
+
}>>;
|
|
19
|
+
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
20
|
+
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
21
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
22
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
23
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
25
|
+
}>>;
|
|
26
|
+
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
27
|
+
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
28
|
+
authorizationUrl: import("@sinclair/typebox").TString;
|
|
29
|
+
tokenUrl: import("@sinclair/typebox").TString;
|
|
30
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
31
|
+
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
32
|
+
}>>;
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=oauthflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauthflows.d.ts","sourceRoot":"","sources":["../../src/schemas/oauthflows.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,gDAAgD;;;;;;;IAEhD,+DAA+D;;;;;;;IAE/D,yGAAyG;;;;;;;IAEzG,wGAAwG;;;;;;;EAExG,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { OAuthFlowObject } from "./oauth-flow.js";
|
|
3
|
+
const OAuthFlowsObject = Type.Object({
|
|
4
|
+
/** Configuration for the OAuth Implicit flow */
|
|
5
|
+
implicit: Type.Optional(OAuthFlowObject),
|
|
6
|
+
/** Configuration for the OAuth Resource Owner Password flow */
|
|
7
|
+
password: Type.Optional(OAuthFlowObject),
|
|
8
|
+
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
9
|
+
clientCredentials: Type.Optional(OAuthFlowObject),
|
|
10
|
+
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
11
|
+
authorizationCode: Type.Optional(OAuthFlowObject)
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
OAuthFlowsObject
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=oauthflows.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/schemas/oauthflows.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { OAuthFlowObject } from './oauth-flow'\n\n/**\n * Allows configuration of the supported OAuth Flows.\n */\nexport const OAuthFlowsObject = Type.Object({\n /** Configuration for the OAuth Implicit flow */\n implicit: Type.Optional(OAuthFlowObject),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: Type.Optional(OAuthFlowObject),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: Type.Optional(OAuthFlowObject),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode: Type.Optional(OAuthFlowObject),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAKzB,MAAM,mBAAmB,KAAK,OAAO;AAAA;AAAA,EAE1C,UAAU,KAAK,SAAS,eAAe;AAAA;AAAA,EAEvC,UAAU,KAAK,SAAS,eAAe;AAAA;AAAA,EAEvC,mBAAmB,KAAK,SAAS,eAAe;AAAA;AAAA,EAEhD,mBAAmB,KAAK,SAAS,eAAe;AAClD,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|