@scalar/workspace-store 0.16.2 → 0.17.1
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 +33 -0
- package/dist/client.d.ts +14 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +43 -20
- package/dist/client.js.map +2 -2
- package/dist/mutators/request.d.ts +1 -1
- package/dist/mutators/request.d.ts.map +1 -1
- package/dist/mutators/request.js.map +1 -1
- package/dist/navigation/helpers/traverse-examples.d.ts +8 -0
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -0
- package/dist/navigation/helpers/traverse-examples.js +46 -0
- package/dist/navigation/helpers/traverse-examples.js.map +7 -0
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +9 -1
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/schemas/extensions/example/x-disabled.d.ts +18 -0
- package/dist/schemas/extensions/example/x-disabled.d.ts.map +1 -0
- package/dist/schemas/extensions/example/x-disabled.js +8 -0
- package/dist/schemas/extensions/example/x-disabled.js.map +7 -0
- package/dist/schemas/extensions/parameter/x-global.d.ts +13 -0
- package/dist/schemas/extensions/parameter/x-global.d.ts.map +1 -0
- package/dist/schemas/extensions/parameter/x-global.js +8 -0
- package/dist/schemas/extensions/parameter/x-global.js.map +7 -0
- package/dist/schemas/inmemory-workspace.d.ts +40 -12
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/navigation.d.ts +21 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +12 -2
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +21 -7
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +20 -6
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js.map +1 -1
- package/dist/schemas/v3.1/strict/example.d.ts +13 -2
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +15 -10
- package/dist/schemas/v3.1/strict/example.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +646 -170
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.d.ts +21 -6
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +21 -17
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +1 -1
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +20 -6
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +22 -8
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js.map +1 -1
- package/dist/schemas/workspace.d.ts +135 -37
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-paths.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAGtE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAa,MAAM,wCAAwC,CAAA;AAIzG,eAAO,MAAM,qBAAqB,GAAI,WAAW,eAAe,YAE/D,CAAA;AAgDD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,GACxB,SAAS,eAAe;AACxB,oCAAoC;AACpC,SAAS,OAAO,EAChB,gBAAgB,mBAAmB,CAAC,gBAAgB,CAAC,SAkCtD,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { isHttpMethod } from "@scalar/helpers/http/is-http-method";
|
|
|
2
2
|
import { objectKeys } from "@scalar/helpers/object/object-keys";
|
|
3
3
|
import { escapeJsonPointer } from "@scalar/json-magic/helpers/escape-json-pointer";
|
|
4
4
|
import { getResolvedRef } from "../../helpers/get-resolved-ref.js";
|
|
5
|
+
import { traverseOperationExamples } from "../../navigation/helpers/traverse-examples.js";
|
|
5
6
|
import { XScalarStabilityValues } from "../../schemas/extensions/operation/x-scalar-stability.js";
|
|
6
7
|
import { getTag } from "./get-tag.js";
|
|
7
8
|
const isDeprecatedOperation = (operation) => {
|
|
@@ -11,6 +12,12 @@ const createOperationEntry = (ref, operation, method, path = "Unknown", tag, get
|
|
|
11
12
|
const id = getOperationId({ ...operation, method, path }, tag);
|
|
12
13
|
const title = operation.summary?.trim() ? operation.summary : path;
|
|
13
14
|
const isDeprecated = isDeprecatedOperation(operation);
|
|
15
|
+
const examples = traverseOperationExamples(operation).map((example) => ({
|
|
16
|
+
type: "example",
|
|
17
|
+
id: `${id}/example-${example}`,
|
|
18
|
+
title: example,
|
|
19
|
+
name: example
|
|
20
|
+
}));
|
|
14
21
|
const entry = {
|
|
15
22
|
id,
|
|
16
23
|
title,
|
|
@@ -18,7 +25,8 @@ const createOperationEntry = (ref, operation, method, path = "Unknown", tag, get
|
|
|
18
25
|
method,
|
|
19
26
|
ref,
|
|
20
27
|
type: "operation",
|
|
21
|
-
isDeprecated
|
|
28
|
+
isDeprecated,
|
|
29
|
+
children: examples.length ? examples : void 0
|
|
22
30
|
};
|
|
23
31
|
return entry;
|
|
24
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/navigation/helpers/traverse-paths.ts"],
|
|
4
|
-
"sourcesContent": ["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { isHttpMethod } from '@scalar/helpers/http/is-http-method'\nimport { objectKeys } from '@scalar/helpers/object/object-keys'\nimport { escapeJsonPointer } from '@scalar/json-magic/helpers/escape-json-pointer'\n\nimport { getResolvedRef } from '@/helpers/get-resolved-ref'\nimport type { TagsMap, TraverseSpecOptions } from '@/navigation/types'\nimport { XScalarStabilityValues } from '@/schemas/extensions/operation/x-scalar-stability'\nimport type { TraversedOperation } from '@/schemas/navigation'\nimport type { OpenApiDocument, OperationObject, TagObject } from '@/schemas/v3.1/strict/openapi-document'\n\nimport { getTag } from './get-tag'\n\nexport const isDeprecatedOperation = (operation: OperationObject) => {\n return operation.deprecated || operation['x-scalar-stability'] === XScalarStabilityValues.Deprecated\n}\n\n/**\n * Creates a traversed operation entry from an OpenAPI operation object.\n *\n * @param ref - JSON pointer reference to the operation in the OpenAPI document\n * @param operation - The OpenAPI operation object\n * @param method - HTTP method of the operation\n * @param path - API path of the operation, defaults to 'Unknown'\n * @param tag - Tag object associated with the operation\n * @param entitiesMap - Map to store operation IDs and titles for mobile header navigation\n * @param getOperationId - Function to generate unique IDs for operations\n * @returns A traversed operation entry with ID, title, path, method and reference\n */\nconst createOperationEntry = (\n ref: string,\n operation: OperationObject,\n method: HttpMethod,\n path = 'Unknown',\n tag: TagObject,\n getOperationId: TraverseSpecOptions['getOperationId'],\n): TraversedOperation => {\n const id = getOperationId({ ...operation, method, path }, tag)\n const title = operation.summary?.trim() ? operation.summary : path\n\n const isDeprecated = isDeprecatedOperation(operation)\n\n const entry = {\n id,\n title,\n path,\n method,\n ref,\n type: 'operation',\n isDeprecated,\n } satisfies TraversedOperation\n\n return entry\n}\n\n/**\n * Traverses the paths in an OpenAPI document to build a map of operations organized by tags.\n *\n * This function processes each path and its operations to:\n * - Filter out internal operations (marked with x-internal) and operations to ignore (marked with x-scalar-ignore)\n * - Group operations by their tags\n * - Create a default tag group for untagged operations\n * - Generate unique references and IDs for each operation\n *\n * TODO: filter out internal and scalar-ignore tags\n *\n * @param content - The OpenAPI document to traverse\n * @param tagsDict - Dictionary mapping tag names to their OpenAPI tag objects\n * @param entitiesMap - Map to store operation IDs and titles for mobile header navigation\n * @param getOperationId - Function to generate unique IDs for operations\n * @returns Map of tag names to arrays of traversed operations\n */\nexport const traversePaths = (\n content: OpenApiDocument,\n /** Map of tags and their entries */\n tagsMap: TagsMap,\n getOperationId: TraverseSpecOptions['getOperationId'],\n) => {\n // Traverse paths\n Object.entries(content.paths ?? {}).forEach(([path, pathItemObject]) => {\n const pathKeys = objectKeys(pathItemObject ?? {}).filter((key) => isHttpMethod(key))\n\n pathKeys.forEach((method) => {\n const _operation = pathItemObject?.[method]\n const operation = getResolvedRef(_operation)\n if (!operation) {\n return\n }\n\n // Skip if the operation is internal or scalar-ignore\n if (operation['x-internal'] || operation['x-scalar-ignore'] || !isHttpMethod(method)) {\n return\n }\n\n const ref = `#/paths/${escapeJsonPointer(path)}/${method}`\n\n // Traverse tags\n if (operation.tags?.length) {\n operation.tags.forEach((tagName: string) => {\n const { tag } = getTag(tagsMap, tagName)\n tagsMap.get(tagName)?.entries.push(createOperationEntry(ref, operation, method, path, tag, getOperationId))\n })\n }\n // Add to default tag\n else {\n const { tag } = getTag(tagsMap, 'default')\n tagsMap.get('default')?.entries.push(createOperationEntry(ref, operation, method, path, tag, getOperationId))\n }\n })\n })\n}\n"],
|
|
5
|
-
"mappings": "AACA,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAElC,SAAS,sBAAsB;
|
|
4
|
+
"sourcesContent": ["import type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { isHttpMethod } from '@scalar/helpers/http/is-http-method'\nimport { objectKeys } from '@scalar/helpers/object/object-keys'\nimport { escapeJsonPointer } from '@scalar/json-magic/helpers/escape-json-pointer'\n\nimport { getResolvedRef } from '@/helpers/get-resolved-ref'\nimport { traverseOperationExamples } from '@/navigation/helpers/traverse-examples'\nimport type { TagsMap, TraverseSpecOptions } from '@/navigation/types'\nimport { XScalarStabilityValues } from '@/schemas/extensions/operation/x-scalar-stability'\nimport type { TraversedExample, TraversedOperation } from '@/schemas/navigation'\nimport type { OpenApiDocument, OperationObject, TagObject } from '@/schemas/v3.1/strict/openapi-document'\n\nimport { getTag } from './get-tag'\n\nexport const isDeprecatedOperation = (operation: OperationObject) => {\n return operation.deprecated || operation['x-scalar-stability'] === XScalarStabilityValues.Deprecated\n}\n\n/**\n * Creates a traversed operation entry from an OpenAPI operation object.\n *\n * @param ref - JSON pointer reference to the operation in the OpenAPI document\n * @param operation - The OpenAPI operation object\n * @param method - HTTP method of the operation\n * @param path - API path of the operation, defaults to 'Unknown'\n * @param tag - Tag object associated with the operation\n * @param entitiesMap - Map to store operation IDs and titles for mobile header navigation\n * @param getOperationId - Function to generate unique IDs for operations\n * @returns A traversed operation entry with ID, title, path, method and reference\n */\nconst createOperationEntry = (\n ref: string,\n operation: OperationObject,\n method: HttpMethod,\n path = 'Unknown',\n tag: TagObject,\n getOperationId: TraverseSpecOptions['getOperationId'],\n): TraversedOperation => {\n const id = getOperationId({ ...operation, method, path }, tag)\n const title = operation.summary?.trim() ? operation.summary : path\n\n const isDeprecated = isDeprecatedOperation(operation)\n\n const examples: TraversedExample[] = traverseOperationExamples(operation).map((example) => ({\n type: 'example',\n id: `${id}/example-${example}`,\n title: example,\n name: example,\n }))\n\n const entry = {\n id,\n title,\n path,\n method,\n ref,\n type: 'operation',\n isDeprecated,\n children: examples.length ? examples : undefined,\n } satisfies TraversedOperation\n\n return entry\n}\n\n/**\n * Traverses the paths in an OpenAPI document to build a map of operations organized by tags.\n *\n * This function processes each path and its operations to:\n * - Filter out internal operations (marked with x-internal) and operations to ignore (marked with x-scalar-ignore)\n * - Group operations by their tags\n * - Create a default tag group for untagged operations\n * - Generate unique references and IDs for each operation\n *\n * TODO: filter out internal and scalar-ignore tags\n *\n * @param content - The OpenAPI document to traverse\n * @param tagsDict - Dictionary mapping tag names to their OpenAPI tag objects\n * @param entitiesMap - Map to store operation IDs and titles for mobile header navigation\n * @param getOperationId - Function to generate unique IDs for operations\n * @returns Map of tag names to arrays of traversed operations\n */\nexport const traversePaths = (\n content: OpenApiDocument,\n /** Map of tags and their entries */\n tagsMap: TagsMap,\n getOperationId: TraverseSpecOptions['getOperationId'],\n) => {\n // Traverse paths\n Object.entries(content.paths ?? {}).forEach(([path, pathItemObject]) => {\n const pathKeys = objectKeys(pathItemObject ?? {}).filter((key) => isHttpMethod(key))\n\n pathKeys.forEach((method) => {\n const _operation = pathItemObject?.[method]\n const operation = getResolvedRef(_operation)\n if (!operation) {\n return\n }\n\n // Skip if the operation is internal or scalar-ignore\n if (operation['x-internal'] || operation['x-scalar-ignore'] || !isHttpMethod(method)) {\n return\n }\n\n const ref = `#/paths/${escapeJsonPointer(path)}/${method}`\n\n // Traverse tags\n if (operation.tags?.length) {\n operation.tags.forEach((tagName: string) => {\n const { tag } = getTag(tagsMap, tagName)\n tagsMap.get(tagName)?.entries.push(createOperationEntry(ref, operation, method, path, tag, getOperationId))\n })\n }\n // Add to default tag\n else {\n const { tag } = getTag(tagsMap, 'default')\n tagsMap.get('default')?.entries.push(createOperationEntry(ref, operation, method, path, tag, getOperationId))\n }\n })\n })\n}\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAElC,SAAS,sBAAsB;AAC/B,SAAS,iCAAiC;AAE1C,SAAS,8BAA8B;AAIvC,SAAS,cAAc;AAEhB,MAAM,wBAAwB,CAAC,cAA+B;AACnE,SAAO,UAAU,cAAc,UAAU,oBAAoB,MAAM,uBAAuB;AAC5F;AAcA,MAAM,uBAAuB,CAC3B,KACA,WACA,QACA,OAAO,WACP,KACA,mBACuB;AACvB,QAAM,KAAK,eAAe,EAAE,GAAG,WAAW,QAAQ,KAAK,GAAG,GAAG;AA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SAAS;AACzC,gBAAQ,IAAI,SAAS,GAAG,QAAQ,KAAK,qBAAqB,KAAK,WAAW,QAAQ,MAAM,KAAK,cAAc,CAAC;AAAA,MAC9G;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI extension to control whether a parameter example is enabled (checkbox on) or disabled (checkbox off).
|
|
3
|
+
*
|
|
4
|
+
* This extension is typically used in API tools to determine if a parameter (such as a header, query, or cookie)
|
|
5
|
+
* should be included in the request when sending an example. If `x-disabled: true`, the parameter example is considered
|
|
6
|
+
* "off" (checkbox unchecked) and will not be sent with the request. If `x-disabled: false` or omitted, the parameter
|
|
7
|
+
* example is "on" (checkbox checked) and will be sent.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```yaml
|
|
11
|
+
* x-disabled: true # Do not send this parameter example in the request
|
|
12
|
+
* x-disabled: false # Send this parameter example in the request
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const XDisabled: import("@scalar/typebox").TObject<{
|
|
16
|
+
'x-disabled': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=x-disabled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-disabled.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/example/x-disabled.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS;;EAEpB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/extensions/example/x-disabled.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * OpenAPI extension to control whether a parameter example is enabled (checkbox on) or disabled (checkbox off).\n *\n * This extension is typically used in API tools to determine if a parameter (such as a header, query, or cookie)\n * should be included in the request when sending an example. If `x-disabled: true`, the parameter example is considered\n * \"off\" (checkbox unchecked) and will not be sent with the request. If `x-disabled: false` or omitted, the parameter\n * example is \"on\" (checkbox checked) and will be sent.\n *\n * @example\n * ```yaml\n * x-disabled: true # Do not send this parameter example in the request\n * x-disabled: false # Send this parameter example in the request\n * ```\n */\nexport const XDisabled = Type.Object({\n 'x-disabled': Type.Optional(Type.Boolean()),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAgBd,MAAM,YAAY,KAAK,OAAO;AAAA,EACnC,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC5C,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI extension used by the api-client application to determine if a parameter is considered global in scope
|
|
3
|
+
* for the entire workspace. When set, this parameter will be injected into every request automatically.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```yaml
|
|
7
|
+
* x-global: true
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare const XGlobal: import("@scalar/typebox").TObject<{
|
|
11
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=x-global.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-global.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/parameter/x-global.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;EAElB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/extensions/parameter/x-global.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * OpenAPI extension used by the api-client application to determine if a parameter is considered global in scope\n * for the entire workspace. When set, this parameter will be injected into every request automatically.\n *\n * @example\n * ```yaml\n * x-global: true\n * ```\n */\nexport const XGlobal = Type.Object({\n 'x-global': Type.Optional(Type.Boolean()),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAWd,MAAM,UAAU,KAAK,OAAO;AAAA,EACjC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC1C,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import { type Config } from '../schemas/workspace-specification/config.js';
|
|
|
3
3
|
export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<{
|
|
4
4
|
meta: import("@scalar/typebox").TObject<{
|
|
5
5
|
"x-scalar-dark-mode": import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
6
|
-
"x-scalar-default-client": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>;
|
|
6
|
+
"x-scalar-default-client": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>;
|
|
7
7
|
"x-scalar-active-document": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
8
|
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
9
|
}>;
|
|
@@ -309,7 +309,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
309
309
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
310
310
|
}>]>;
|
|
311
311
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
312
|
-
|
|
312
|
+
__scalar_: import("@scalar/typebox").TString;
|
|
313
313
|
}>, import("@scalar/typebox").TObject<{
|
|
314
314
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
315
315
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1025,7 +1025,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1025
1025
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1026
1026
|
'$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
|
|
1027
1027
|
}>]>]>>;
|
|
1028
|
-
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1028
|
+
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1029
1029
|
name: import("@scalar/typebox").TString;
|
|
1030
1030
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1031
1031
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1033,6 +1033,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1033
1033
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1034
1034
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1035
1035
|
}>, import("@scalar/typebox").TObject<{
|
|
1036
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1037
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1036
1038
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1037
1039
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1038
1040
|
schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1056,7 +1058,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1056
1058
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1057
1059
|
'$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
|
|
1058
1060
|
}>]>]>>>;
|
|
1059
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1061
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1060
1062
|
name: import("@scalar/typebox").TString;
|
|
1061
1063
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1062
1064
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1064,14 +1066,18 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1064
1066
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1065
1067
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1066
1068
|
}>, import("@scalar/typebox").TObject<{
|
|
1069
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1070
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1067
1071
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1068
1072
|
}>]>]>;
|
|
1069
|
-
ExampleObject: import("@scalar/typebox").TObject<{
|
|
1073
|
+
ExampleObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1070
1074
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1071
1075
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1072
1076
|
value: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
|
|
1073
1077
|
externalValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1074
|
-
}
|
|
1078
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1079
|
+
'x-disabled': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1080
|
+
}>]>;
|
|
1075
1081
|
RequestBodyObject: import("@scalar/typebox").TObject<{
|
|
1076
1082
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1077
1083
|
content: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>;
|
|
@@ -1276,6 +1282,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1276
1282
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1277
1283
|
path: import("@scalar/typebox").TString;
|
|
1278
1284
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1285
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1279
1286
|
}>]>;
|
|
1280
1287
|
TraversedSchemaObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1281
1288
|
id: import("@scalar/typebox").TString;
|
|
@@ -1322,6 +1329,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1322
1329
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1323
1330
|
path: import("@scalar/typebox").TString;
|
|
1324
1331
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1332
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1325
1333
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1326
1334
|
id: import("@scalar/typebox").TString;
|
|
1327
1335
|
title: import("@scalar/typebox").TString;
|
|
@@ -1349,6 +1357,12 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1349
1357
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1350
1358
|
name: import("@scalar/typebox").TString;
|
|
1351
1359
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1360
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1361
|
+
id: import("@scalar/typebox").TString;
|
|
1362
|
+
title: import("@scalar/typebox").TString;
|
|
1363
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1364
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
1365
|
+
name: import("@scalar/typebox").TString;
|
|
1352
1366
|
}>]>]>;
|
|
1353
1367
|
}, "ServerObject">>>;
|
|
1354
1368
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1385,7 +1399,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1385
1399
|
ogImage: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1386
1400
|
twitterCard: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1387
1401
|
}>>;
|
|
1388
|
-
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>>;
|
|
1402
|
+
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>>;
|
|
1389
1403
|
}>>;
|
|
1390
1404
|
}>>;
|
|
1391
1405
|
documents: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1686,7 +1700,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1686
1700
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
1687
1701
|
}>]>;
|
|
1688
1702
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1689
|
-
|
|
1703
|
+
__scalar_: import("@scalar/typebox").TString;
|
|
1690
1704
|
}>, import("@scalar/typebox").TObject<{
|
|
1691
1705
|
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1692
1706
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -2402,7 +2416,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2402
2416
|
}>]>, import("@scalar/typebox").TObject<{
|
|
2403
2417
|
'$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
|
|
2404
2418
|
}>]>]>>;
|
|
2405
|
-
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2419
|
+
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2406
2420
|
name: import("@scalar/typebox").TString;
|
|
2407
2421
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
2408
2422
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -2410,6 +2424,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2410
2424
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2411
2425
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2412
2426
|
}>, import("@scalar/typebox").TObject<{
|
|
2427
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2428
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
2413
2429
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2414
2430
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2415
2431
|
schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -2433,7 +2449,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2433
2449
|
}>]>, import("@scalar/typebox").TObject<{
|
|
2434
2450
|
'$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
|
|
2435
2451
|
}>]>]>>>;
|
|
2436
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2452
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2437
2453
|
name: import("@scalar/typebox").TString;
|
|
2438
2454
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
2439
2455
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -2441,14 +2457,18 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2441
2457
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2442
2458
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2443
2459
|
}>, import("@scalar/typebox").TObject<{
|
|
2460
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2461
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
2444
2462
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
2445
2463
|
}>]>]>;
|
|
2446
|
-
ExampleObject: import("@scalar/typebox").TObject<{
|
|
2464
|
+
ExampleObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2447
2465
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2448
2466
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2449
2467
|
value: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
|
|
2450
2468
|
externalValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2451
|
-
}
|
|
2469
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2470
|
+
'x-disabled': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2471
|
+
}>]>;
|
|
2452
2472
|
RequestBodyObject: import("@scalar/typebox").TObject<{
|
|
2453
2473
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2454
2474
|
content: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>;
|
|
@@ -2653,6 +2673,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2653
2673
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
2654
2674
|
path: import("@scalar/typebox").TString;
|
|
2655
2675
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2676
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2656
2677
|
}>]>;
|
|
2657
2678
|
TraversedSchemaObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2658
2679
|
id: import("@scalar/typebox").TString;
|
|
@@ -2699,6 +2720,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2699
2720
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
2700
2721
|
path: import("@scalar/typebox").TString;
|
|
2701
2722
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2723
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2702
2724
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2703
2725
|
id: import("@scalar/typebox").TString;
|
|
2704
2726
|
title: import("@scalar/typebox").TString;
|
|
@@ -2726,6 +2748,12 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2726
2748
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
2727
2749
|
name: import("@scalar/typebox").TString;
|
|
2728
2750
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2751
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2752
|
+
id: import("@scalar/typebox").TString;
|
|
2753
|
+
title: import("@scalar/typebox").TString;
|
|
2754
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2755
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
2756
|
+
name: import("@scalar/typebox").TString;
|
|
2729
2757
|
}>]>]>;
|
|
2730
2758
|
}, "OpenApiDocument">]>>;
|
|
2731
2759
|
originalDocuments: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,0CAA0C,CAAA;AAIpF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AA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CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC1D,CAAA"}
|
|
@@ -19,6 +19,17 @@ export type TraversedDescription = BaseSchema & {
|
|
|
19
19
|
type: 'text';
|
|
20
20
|
children?: TraversedEntry[];
|
|
21
21
|
};
|
|
22
|
+
export declare const TraversedExampleSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
23
|
+
id: import("@scalar/typebox").TString;
|
|
24
|
+
title: import("@scalar/typebox").TString;
|
|
25
|
+
}>, import("@scalar/typebox").TObject<{
|
|
26
|
+
type: TLiteral<"example">;
|
|
27
|
+
name: import("@scalar/typebox").TString;
|
|
28
|
+
}>]>;
|
|
29
|
+
export type TraversedExample = BaseSchema & {
|
|
30
|
+
type: 'example';
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
22
33
|
export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
23
34
|
id: import("@scalar/typebox").TString;
|
|
24
35
|
title: import("@scalar/typebox").TString;
|
|
@@ -28,6 +39,7 @@ export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox
|
|
|
28
39
|
method: TLiteral<HttpMethod>;
|
|
29
40
|
path: import("@scalar/typebox").TString;
|
|
30
41
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
42
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
31
43
|
}>]>;
|
|
32
44
|
export type TraversedOperation = BaseSchema & {
|
|
33
45
|
type: 'operation';
|
|
@@ -35,6 +47,7 @@ export type TraversedOperation = BaseSchema & {
|
|
|
35
47
|
method: HttpMethod;
|
|
36
48
|
path: string;
|
|
37
49
|
isDeprecated?: boolean;
|
|
50
|
+
children?: TraversedEntry[];
|
|
38
51
|
};
|
|
39
52
|
export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
40
53
|
id: import("@scalar/typebox").TString;
|
|
@@ -102,6 +115,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
102
115
|
method: TLiteral<HttpMethod>;
|
|
103
116
|
path: import("@scalar/typebox").TString;
|
|
104
117
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
118
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
105
119
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
106
120
|
id: import("@scalar/typebox").TString;
|
|
107
121
|
title: import("@scalar/typebox").TString;
|
|
@@ -129,7 +143,13 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
129
143
|
method: TLiteral<HttpMethod>;
|
|
130
144
|
name: import("@scalar/typebox").TString;
|
|
131
145
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
146
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
147
|
+
id: import("@scalar/typebox").TString;
|
|
148
|
+
title: import("@scalar/typebox").TString;
|
|
149
|
+
}>, import("@scalar/typebox").TObject<{
|
|
150
|
+
type: TLiteral<"example">;
|
|
151
|
+
name: import("@scalar/typebox").TString;
|
|
132
152
|
}>]>]>;
|
|
133
|
-
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook;
|
|
153
|
+
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample;
|
|
134
154
|
export {};
|
|
135
155
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAKrD,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;IAMhD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;YAK0C,QAAQ,CAAC,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAKrD,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;IAMhD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;IAM5C,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG;IAC1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AC,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;YAzE8C,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCpB,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;MA4C3G,CAAA;AAEF,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,eAAe,GACf,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,CAAA"}
|
|
@@ -13,6 +13,13 @@ const TraversedDescriptionSchemaDefinition = compose(
|
|
|
13
13
|
children: Type.Optional(Type.Array(TraversedEntryObjectRef))
|
|
14
14
|
})
|
|
15
15
|
);
|
|
16
|
+
const TraversedExampleSchemaDefinition = compose(
|
|
17
|
+
NavigationBaseSchemaDefinition,
|
|
18
|
+
Type.Object({
|
|
19
|
+
type: Type.Literal("example"),
|
|
20
|
+
name: Type.String()
|
|
21
|
+
})
|
|
22
|
+
);
|
|
16
23
|
const TraversedOperationSchemaDefinition = compose(
|
|
17
24
|
NavigationBaseSchemaDefinition,
|
|
18
25
|
Type.Object({
|
|
@@ -20,7 +27,8 @@ const TraversedOperationSchemaDefinition = compose(
|
|
|
20
27
|
ref: Type.String(),
|
|
21
28
|
method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))),
|
|
22
29
|
path: Type.String(),
|
|
23
|
-
isDeprecated: Type.Optional(Type.Boolean())
|
|
30
|
+
isDeprecated: Type.Optional(Type.Boolean()),
|
|
31
|
+
children: Type.Optional(Type.Array(TraversedEntryObjectRef))
|
|
24
32
|
})
|
|
25
33
|
);
|
|
26
34
|
const TraversedSchemaSchemaDefinition = compose(
|
|
@@ -58,12 +66,14 @@ const TraversedEntrySchemaDefinition = Type.Union([
|
|
|
58
66
|
TraversedOperationSchemaDefinition,
|
|
59
67
|
TraversedSchemaSchemaDefinition,
|
|
60
68
|
TraversedTagSchemaDefinition,
|
|
61
|
-
TraversedWebhookSchemaDefinition
|
|
69
|
+
TraversedWebhookSchemaDefinition,
|
|
70
|
+
TraversedExampleSchemaDefinition
|
|
62
71
|
]);
|
|
63
72
|
export {
|
|
64
73
|
NavigationBaseSchemaDefinition,
|
|
65
74
|
TraversedDescriptionSchemaDefinition,
|
|
66
75
|
TraversedEntrySchemaDefinition,
|
|
76
|
+
TraversedExampleSchemaDefinition,
|
|
67
77
|
TraversedOperationSchemaDefinition,
|
|
68
78
|
TraversedSchemaSchemaDefinition,
|
|
69
79
|
TraversedTagSchemaDefinition,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/navigation.ts"],
|
|
4
|
-
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n id: string\n title: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AACxB,SAAS,+BAA+B;AAEjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAOM,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAOO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC9B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,MAAM,aAAa,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC;AAAA,IACrE,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,
|
|
4
|
+
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n id: string\n title: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | Tra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