@scalar/oas-utils 0.2.121 → 0.2.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/entities/cookie/cookie.d.ts +4 -4
- package/dist/entities/cookie/cookie.js +1 -1
- package/dist/entities/cookie/index.d.ts +1 -1
- package/dist/entities/cookie/index.d.ts.map +1 -1
- package/dist/entities/environment/environment.d.ts +2 -2
- package/dist/entities/environment/environment.js +1 -1
- package/dist/entities/environment/index.d.ts +1 -1
- package/dist/entities/environment/index.d.ts.map +1 -1
- package/dist/entities/hotkeys/index.d.ts +1 -1
- package/dist/entities/hotkeys/index.d.ts.map +1 -1
- package/dist/entities/shared/index.d.ts +1 -1
- package/dist/entities/shared/index.d.ts.map +1 -1
- package/dist/entities/shared/index.js +1 -1
- package/dist/entities/shared/utility.d.ts +0 -16
- package/dist/entities/shared/utility.d.ts.map +1 -1
- package/dist/entities/shared/utility.js +1 -8
- package/dist/entities/spec/collection.d.ts +24 -24
- package/dist/entities/spec/collection.d.ts.map +1 -1
- package/dist/entities/spec/collection.js +3 -2
- package/dist/entities/spec/index.d.ts +10 -11
- package/dist/entities/spec/index.d.ts.map +1 -1
- package/dist/entities/spec/index.js +8 -8
- package/dist/entities/spec/operation.d.ts +23 -23
- package/dist/entities/spec/operation.d.ts.map +1 -1
- package/dist/entities/spec/parameters.d.ts +6 -6
- package/dist/entities/spec/request-examples.d.ts +244 -244
- package/dist/entities/spec/request-examples.d.ts.map +1 -1
- package/dist/entities/spec/request-examples.js +6 -71
- package/dist/entities/spec/requests.d.ts +47 -47
- package/dist/entities/spec/requests.d.ts.map +1 -1
- package/dist/entities/spec/requests.js +3 -2
- package/dist/entities/spec/security.d.ts +39 -39
- package/dist/entities/spec/security.d.ts.map +1 -1
- package/dist/entities/spec/security.js +4 -4
- package/dist/entities/spec/server.d.ts +99 -28
- package/dist/entities/spec/server.d.ts.map +1 -1
- package/dist/entities/spec/server.js +1 -1
- package/dist/entities/spec/spec-objects.d.ts +3 -3
- package/dist/entities/spec/spec-objects.js +1 -1
- package/dist/entities/spec/x-scalar-environments.d.ts +9 -9
- package/dist/entities/spec/x-scalar-secrets.d.ts +4 -4
- package/dist/entities/workspace/index.d.ts +1 -1
- package/dist/entities/workspace/index.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.d.ts +18 -18
- package/dist/entities/workspace/workspace.js +1 -1
- package/dist/helpers/{createHash.d.ts → create-hash.d.ts} +1 -1
- package/dist/helpers/create-hash.d.ts.map +1 -0
- package/dist/helpers/ensure-protocol.js +1 -1
- package/dist/helpers/{fetchSpecFromUrl.d.ts → fetch-spec-from-url.d.ts} +1 -1
- package/dist/helpers/fetch-spec-from-url.d.ts.map +1 -0
- package/dist/helpers/{fetchSpecFromUrl.js → fetch-spec-from-url.js} +1 -1
- package/dist/helpers/{fetchWithProxyFallback.d.ts → fetch-with-proxy-fallback.d.ts} +1 -1
- package/dist/helpers/fetch-with-proxy-fallback.d.ts.map +1 -0
- package/dist/helpers/{fetchWithProxyFallback.js → fetch-with-proxy-fallback.js} +1 -1
- package/dist/helpers/find-variables.d.ts +5 -0
- package/dist/helpers/find-variables.d.ts.map +1 -0
- package/dist/helpers/{findVariables.js → find-variables.js} +1 -1
- package/dist/helpers/{httpMethods.d.ts → http-methods.d.ts} +2 -2
- package/dist/helpers/http-methods.d.ts.map +1 -0
- package/dist/helpers/{httpStatusCodes.d.ts → http-status-codes.d.ts} +1 -1
- package/dist/helpers/http-status-codes.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +27 -26
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +21 -20
- package/dist/helpers/{isLocalUrl.d.ts → is-local-url.d.ts} +1 -1
- package/dist/helpers/is-local-url.d.ts.map +1 -0
- package/dist/helpers/{isValidUrl.d.ts → is-valid-url.d.ts} +1 -1
- package/dist/helpers/is-valid-url.d.ts.map +1 -0
- package/dist/helpers/{iterateTitle.d.ts → iterate-title.d.ts} +1 -1
- package/dist/helpers/iterate-title.d.ts.map +1 -0
- package/dist/helpers/{makeUrlAbsolute.d.ts → make-url-absolute.d.ts} +1 -1
- package/dist/helpers/make-url-absolute.d.ts.map +1 -0
- package/dist/helpers/merge-urls.d.ts.map +1 -1
- package/dist/helpers/merge-urls.js +2 -2
- package/dist/helpers/{normalizeMimeTypeObject.d.ts → normalize-mime-type-object.d.ts} +1 -1
- package/dist/helpers/normalize-mime-type-object.d.ts.map +1 -0
- package/dist/helpers/{normalizeMimeTypeObject.js → normalize-mime-type-object.js} +1 -1
- package/dist/helpers/{normalizeMimeType.d.ts → normalize-mime-type.d.ts} +1 -1
- package/dist/helpers/normalize-mime-type.d.ts.map +1 -0
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/{prettyPrintJson.d.ts → pretty-print-json.d.ts} +1 -1
- package/dist/helpers/pretty-print-json.d.ts.map +1 -0
- package/dist/helpers/{redirectToProxy.d.ts → redirect-to-proxy.d.ts} +1 -1
- package/dist/helpers/redirect-to-proxy.d.ts.map +1 -0
- package/dist/helpers/{redirectToProxy.js → redirect-to-proxy.js} +2 -2
- package/dist/helpers/{regexHelpers.d.ts → regex-helpers.d.ts} +1 -1
- package/dist/helpers/regex-helpers.d.ts.map +1 -0
- package/dist/helpers/{replaceVariables.d.ts → replace-variables.d.ts} +1 -1
- package/dist/helpers/replace-variables.d.ts.map +1 -0
- package/dist/helpers/{shouldIgnoreEntity.d.ts → should-ignore-entity.d.ts} +3 -2
- package/dist/helpers/should-ignore-entity.d.ts.map +1 -0
- package/dist/helpers/{ssrState.d.ts → ssr-state.d.ts} +1 -1
- package/dist/helpers/ssr-state.d.ts.map +1 -0
- package/dist/helpers/string.d.ts.map +1 -1
- package/dist/helpers/string.js +1 -1
- package/dist/migrations/index.d.ts +3 -3
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/local-storage.d.ts +1 -1
- package/dist/migrations/local-storage.d.ts.map +1 -1
- package/dist/migrations/migrator.d.ts +1 -1
- package/dist/migrations/migrator.d.ts.map +1 -1
- package/dist/migrations/semver.js +1 -1
- package/dist/migrations/v-2.1.0/migration.d.ts +2 -2
- package/dist/migrations/v-2.1.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.1.0/migration.js +1 -1
- package/dist/migrations/v-2.2.0/migration.d.ts +2 -2
- package/dist/migrations/v-2.2.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.3.0/migration.d.ts +2 -2
- package/dist/migrations/v-2.3.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.4.0/migration.d.ts +2 -2
- package/dist/migrations/v-2.4.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.d.ts +2 -2
- package/dist/migrations/v-2.5.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.js +2 -3
- package/dist/migrations/v-2.5.0/types.generated.d.ts +9 -4
- package/dist/migrations/v-2.5.0/types.generated.d.ts.map +1 -1
- package/dist/spec-getters/{getExampleFromSchema.d.ts → get-example-from-schema.d.ts} +1 -1
- package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -0
- package/dist/spec-getters/{getParametersFromOperation.d.ts → get-parameters-from-operation.d.ts} +1 -1
- package/dist/spec-getters/get-parameters-from-operation.d.ts.map +1 -0
- package/dist/spec-getters/{getParametersFromOperation.js → get-parameters-from-operation.js} +1 -1
- package/dist/spec-getters/{getRequestBodyFromOperation.d.ts → get-request-body-from-operation.d.ts} +2 -2
- package/dist/spec-getters/get-request-body-from-operation.d.ts.map +1 -0
- package/dist/spec-getters/{getRequestBodyFromOperation.js → get-request-body-from-operation.js} +7 -7
- package/dist/spec-getters/{getServerVariableExamples.d.ts → get-server-variable-examples.d.ts} +2 -2
- package/dist/spec-getters/get-server-variable-examples.d.ts.map +1 -0
- package/dist/spec-getters/index.d.ts +4 -4
- package/dist/spec-getters/index.d.ts.map +1 -1
- package/dist/spec-getters/index.js +4 -4
- package/dist/transforms/import-spec.d.ts +7 -3
- package/dist/transforms/import-spec.d.ts.map +1 -1
- package/dist/transforms/import-spec.js +35 -26
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.d.ts.map +1 -1
- package/dist/transforms/index.js +1 -1
- package/package.json +7 -45
- package/dist/diff/diff.d.ts +0 -13
- package/dist/diff/diff.d.ts.map +0 -1
- package/dist/diff/diff.js +0 -41
- package/dist/diff/index.d.ts +0 -2
- package/dist/diff/index.d.ts.map +0 -1
- package/dist/diff/index.js +0 -1
- package/dist/entities/index.d.ts +0 -2
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -1
- package/dist/helpers/createHash.d.ts.map +0 -1
- package/dist/helpers/fetchSpecFromUrl.d.ts.map +0 -1
- package/dist/helpers/fetchWithProxyFallback.d.ts.map +0 -1
- package/dist/helpers/findVariables.d.ts +0 -5
- package/dist/helpers/findVariables.d.ts.map +0 -1
- package/dist/helpers/httpMethods.d.ts.map +0 -1
- package/dist/helpers/httpStatusCodes.d.ts.map +0 -1
- package/dist/helpers/isLocalUrl.d.ts.map +0 -1
- package/dist/helpers/isValidUrl.d.ts.map +0 -1
- package/dist/helpers/iterateTitle.d.ts.map +0 -1
- package/dist/helpers/makeUrlAbsolute.d.ts.map +0 -1
- package/dist/helpers/normalizeMimeType.d.ts.map +0 -1
- package/dist/helpers/normalizeMimeTypeObject.d.ts.map +0 -1
- package/dist/helpers/prettyPrintJson.d.ts.map +0 -1
- package/dist/helpers/redirectToProxy.d.ts.map +0 -1
- package/dist/helpers/regexHelpers.d.ts.map +0 -1
- package/dist/helpers/replaceVariables.d.ts.map +0 -1
- package/dist/helpers/shouldIgnoreEntity.d.ts.map +0 -1
- package/dist/helpers/ssrState.d.ts.map +0 -1
- package/dist/migrations/v-0.0.0/index.d.ts +0 -2
- package/dist/migrations/v-0.0.0/index.d.ts.map +0 -1
- package/dist/migrations/v-0.0.0/index.js +0 -1
- package/dist/migrations/v-2.1.0/index.d.ts +0 -3
- package/dist/migrations/v-2.1.0/index.d.ts.map +0 -1
- package/dist/migrations/v-2.1.0/index.js +0 -1
- package/dist/migrations/v-2.2.0/index.d.ts +0 -3
- package/dist/migrations/v-2.2.0/index.d.ts.map +0 -1
- package/dist/migrations/v-2.2.0/index.js +0 -1
- package/dist/migrations/v-2.3.0/index.d.ts +0 -3
- package/dist/migrations/v-2.3.0/index.d.ts.map +0 -1
- package/dist/migrations/v-2.3.0/index.js +0 -1
- package/dist/migrations/v-2.4.0/index.d.ts +0 -3
- package/dist/migrations/v-2.4.0/index.d.ts.map +0 -1
- package/dist/migrations/v-2.4.0/index.js +0 -1
- package/dist/migrations/v-2.5.0/index.d.ts +0 -3
- package/dist/migrations/v-2.5.0/index.d.ts.map +0 -1
- package/dist/migrations/v-2.5.0/index.js +0 -1
- package/dist/spec-getters/getExampleFromSchema.d.ts.map +0 -1
- package/dist/spec-getters/getParametersFromOperation.d.ts.map +0 -1
- package/dist/spec-getters/getRequestBodyFromOperation.d.ts.map +0 -1
- package/dist/spec-getters/getServerVariableExamples.d.ts.map +0 -1
- /package/dist/helpers/{createHash.js → create-hash.js} +0 -0
- /package/dist/helpers/{httpMethods.js → http-methods.js} +0 -0
- /package/dist/helpers/{httpStatusCodes.js → http-status-codes.js} +0 -0
- /package/dist/helpers/{isLocalUrl.js → is-local-url.js} +0 -0
- /package/dist/helpers/{isValidUrl.js → is-valid-url.js} +0 -0
- /package/dist/helpers/{iterateTitle.js → iterate-title.js} +0 -0
- /package/dist/helpers/{makeUrlAbsolute.js → make-url-absolute.js} +0 -0
- /package/dist/helpers/{normalizeMimeType.js → normalize-mime-type.js} +0 -0
- /package/dist/helpers/{prettyPrintJson.js → pretty-print-json.js} +0 -0
- /package/dist/helpers/{regexHelpers.js → regex-helpers.js} +0 -0
- /package/dist/helpers/{replaceVariables.js → replace-variables.js} +0 -0
- /package/dist/helpers/{shouldIgnoreEntity.js → should-ignore-entity.js} +0 -0
- /package/dist/helpers/{ssrState.js → ssr-state.js} +0 -0
- /package/dist/spec-getters/{getExampleFromSchema.js → get-example-from-schema.js} +0 -0
- /package/dist/spec-getters/{getServerVariableExamples.js → get-server-variable-examples.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @scalar/oas-utils
|
|
2
2
|
|
|
3
|
+
## 0.2.123
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 52f6f4c: chore: updated oas-utils to use stricter node tsconfig
|
|
8
|
+
- Updated dependencies [8efedf3]
|
|
9
|
+
- Updated dependencies [82a4ba8]
|
|
10
|
+
- Updated dependencies [57feba6]
|
|
11
|
+
- @scalar/types@0.1.4
|
|
12
|
+
- @scalar/themes@0.9.82
|
|
13
|
+
|
|
14
|
+
## 0.2.122
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [543a16c]
|
|
19
|
+
- Updated dependencies [57e96a0]
|
|
20
|
+
- @scalar/types@0.1.3
|
|
21
|
+
- @scalar/themes@0.9.81
|
|
22
|
+
|
|
3
23
|
## 0.2.121
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -9,17 +9,17 @@ export declare const cookieSchema: z.ZodObject<{
|
|
|
9
9
|
/** Indicates the path that must exist in the requested URL for the browser to send the Cookie header. */
|
|
10
10
|
path: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
value: string;
|
|
13
12
|
uid: string & z.BRAND<"cookie">;
|
|
14
13
|
name: string;
|
|
15
|
-
|
|
14
|
+
value: string;
|
|
16
15
|
domain?: string | undefined;
|
|
17
|
-
}, {
|
|
18
16
|
path?: string | undefined;
|
|
19
|
-
|
|
17
|
+
}, {
|
|
20
18
|
uid?: string | undefined;
|
|
21
19
|
name?: string | undefined;
|
|
20
|
+
value?: string | undefined;
|
|
22
21
|
domain?: string | undefined;
|
|
22
|
+
path?: string | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* Cookies
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { type Cookie, cookieSchema } from './cookie.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/cookie/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/cookie/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -6,15 +6,15 @@ export declare const environmentSchema: z.ZodObject<{
|
|
|
6
6
|
value: z.ZodDefault<z.ZodString>;
|
|
7
7
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
value: string;
|
|
10
9
|
uid: string & z.BRAND<"environment">;
|
|
11
10
|
name: string;
|
|
11
|
+
value: string;
|
|
12
12
|
color: string;
|
|
13
13
|
isDefault?: boolean | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
value?: string | undefined;
|
|
16
15
|
uid?: string | undefined;
|
|
17
16
|
name?: string | undefined;
|
|
17
|
+
value?: string | undefined;
|
|
18
18
|
color?: string | undefined;
|
|
19
19
|
isDefault?: boolean | undefined;
|
|
20
20
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { type Environment, environmentSchema } from './environment.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { type HotkeyEventName, type KeydownKey, HOTKEY_EVENT_NAMES, KEYDOWN_KEYS } from './hotkeys.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/hotkeys/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/hotkeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type SelectedSecuritySchemeUids, selectedSecuritySchemeUidSchema, } from './utility.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,+BAA+B,GAChC,MAAM,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { selectedSecuritySchemeUidSchema } from './utility.js';
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/** Generates a default value */
|
|
3
|
-
export declare const nanoidSchema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
|
-
/** UID format for objects */
|
|
5
|
-
export type Nanoid = z.infer<typeof nanoidSchema>;
|
|
6
|
-
/** All of our Zod brands for entities, used to brand nanoidSchemas. */
|
|
7
|
-
export type ENTITY_BRANDS = {
|
|
8
|
-
COLLECTION: 'collection';
|
|
9
|
-
COOKIE: 'cookie';
|
|
10
|
-
ENVIRONMENT: 'environment';
|
|
11
|
-
EXAMPLE: 'example';
|
|
12
|
-
OPERATION: 'operation';
|
|
13
|
-
SECURITY_SCHEME: 'securityScheme';
|
|
14
|
-
SERVER: 'server';
|
|
15
|
-
TAG: 'tag';
|
|
16
|
-
WORKSPACE: 'workspace';
|
|
17
|
-
};
|
|
18
2
|
/** Schema for selectedSecuritySchemeUids */
|
|
19
3
|
export declare const selectedSecuritySchemeUidSchema: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
|
|
20
4
|
export type SelectedSecuritySchemeUids = z.infer<typeof selectedSecuritySchemeUidSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/utility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/utility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B,8JAM9B,CAAA;AAEd,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { nanoid } from 'nanoid';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
|
|
4
|
-
/** Generates a default value */
|
|
5
|
-
const nanoidSchema = z
|
|
6
|
-
.string()
|
|
7
|
-
.min(7)
|
|
8
|
-
.optional()
|
|
9
|
-
.default(() => nanoid());
|
|
10
3
|
/** Schema for selectedSecuritySchemeUids */
|
|
11
4
|
const selectedSecuritySchemeUidSchema = z
|
|
12
5
|
.union([
|
|
@@ -16,4 +9,4 @@ const selectedSecuritySchemeUidSchema = z
|
|
|
16
9
|
.array()
|
|
17
10
|
.default([]);
|
|
18
11
|
|
|
19
|
-
export {
|
|
12
|
+
export { selectedSecuritySchemeUidSchema };
|
|
@@ -146,33 +146,33 @@ export declare const oasCollectionSchema: z.ZodObject<{
|
|
|
146
146
|
default: string;
|
|
147
147
|
description?: string | undefined;
|
|
148
148
|
}, {
|
|
149
|
-
default?: string | undefined;
|
|
150
149
|
description?: string | undefined;
|
|
150
|
+
default?: string | undefined;
|
|
151
151
|
}>, z.ZodString]>>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
variables: Record<string, string | {
|
|
154
154
|
default: string;
|
|
155
155
|
description?: string | undefined;
|
|
156
156
|
}>;
|
|
157
|
-
description?: string | undefined;
|
|
158
157
|
color?: string | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
159
159
|
}, {
|
|
160
160
|
variables: Record<string, string | {
|
|
161
|
-
default?: string | undefined;
|
|
162
161
|
description?: string | undefined;
|
|
162
|
+
default?: string | undefined;
|
|
163
163
|
}>;
|
|
164
|
-
description?: string | undefined;
|
|
165
164
|
color?: string | undefined;
|
|
165
|
+
description?: string | undefined;
|
|
166
166
|
}>>>;
|
|
167
167
|
'x-scalar-secrets': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
168
168
|
description: z.ZodOptional<z.ZodString>;
|
|
169
169
|
example: z.ZodOptional<z.ZodString>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
example?: string | undefined;
|
|
172
171
|
description?: string | undefined;
|
|
173
|
-
}, {
|
|
174
172
|
example?: string | undefined;
|
|
173
|
+
}, {
|
|
175
174
|
description?: string | undefined;
|
|
175
|
+
example?: string | undefined;
|
|
176
176
|
}>>>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
type: "collection";
|
|
@@ -209,12 +209,12 @@ export declare const oasCollectionSchema: z.ZodObject<{
|
|
|
209
209
|
default: string;
|
|
210
210
|
description?: string | undefined;
|
|
211
211
|
}>;
|
|
212
|
-
description?: string | undefined;
|
|
213
212
|
color?: string | undefined;
|
|
213
|
+
description?: string | undefined;
|
|
214
214
|
}> | undefined;
|
|
215
215
|
'x-scalar-secrets'?: Record<string, {
|
|
216
|
-
example?: string | undefined;
|
|
217
216
|
description?: string | undefined;
|
|
217
|
+
example?: string | undefined;
|
|
218
218
|
}> | undefined;
|
|
219
219
|
}, {
|
|
220
220
|
type?: "collection" | undefined;
|
|
@@ -232,15 +232,15 @@ export declare const oasCollectionSchema: z.ZodObject<{
|
|
|
232
232
|
'x-scalar-active-environment'?: string | undefined;
|
|
233
233
|
'x-scalar-environments'?: Record<string, {
|
|
234
234
|
variables: Record<string, string | {
|
|
235
|
-
default?: string | undefined;
|
|
236
235
|
description?: string | undefined;
|
|
236
|
+
default?: string | undefined;
|
|
237
237
|
}>;
|
|
238
|
-
description?: string | undefined;
|
|
239
238
|
color?: string | undefined;
|
|
239
|
+
description?: string | undefined;
|
|
240
240
|
}> | undefined;
|
|
241
241
|
'x-scalar-secrets'?: Record<string, {
|
|
242
|
-
example?: string | undefined;
|
|
243
242
|
description?: string | undefined;
|
|
243
|
+
example?: string | undefined;
|
|
244
244
|
}> | undefined;
|
|
245
245
|
}>;
|
|
246
246
|
export declare const extendedCollectionSchema: z.ZodObject<{
|
|
@@ -454,33 +454,33 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
454
454
|
default: string;
|
|
455
455
|
description?: string | undefined;
|
|
456
456
|
}, {
|
|
457
|
-
default?: string | undefined;
|
|
458
457
|
description?: string | undefined;
|
|
458
|
+
default?: string | undefined;
|
|
459
459
|
}>, z.ZodString]>>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
variables: Record<string, string | {
|
|
462
462
|
default: string;
|
|
463
463
|
description?: string | undefined;
|
|
464
464
|
}>;
|
|
465
|
-
description?: string | undefined;
|
|
466
465
|
color?: string | undefined;
|
|
466
|
+
description?: string | undefined;
|
|
467
467
|
}, {
|
|
468
468
|
variables: Record<string, string | {
|
|
469
|
-
default?: string | undefined;
|
|
470
469
|
description?: string | undefined;
|
|
470
|
+
default?: string | undefined;
|
|
471
471
|
}>;
|
|
472
|
-
description?: string | undefined;
|
|
473
472
|
color?: string | undefined;
|
|
473
|
+
description?: string | undefined;
|
|
474
474
|
}>>>;
|
|
475
475
|
'x-scalar-secrets': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
476
|
description: z.ZodOptional<z.ZodString>;
|
|
477
477
|
example: z.ZodOptional<z.ZodString>;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
example?: string | undefined;
|
|
480
479
|
description?: string | undefined;
|
|
481
|
-
}, {
|
|
482
480
|
example?: string | undefined;
|
|
481
|
+
}, {
|
|
483
482
|
description?: string | undefined;
|
|
483
|
+
example?: string | undefined;
|
|
484
484
|
}>>>;
|
|
485
485
|
}, {
|
|
486
486
|
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "collection">;
|
|
@@ -520,8 +520,8 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
520
520
|
*/
|
|
521
521
|
watchModeStatus: z.ZodDefault<z.ZodOptional<z.ZodEnum<["IDLE", "WATCHING", "ERROR"]>>>;
|
|
522
522
|
}>, "strip", z.ZodTypeAny, {
|
|
523
|
-
type: "collection";
|
|
524
523
|
uid: string & z.BRAND<"collection">;
|
|
524
|
+
type: "collection";
|
|
525
525
|
children: ((string & z.BRAND<"tag">) | (string & z.BRAND<"operation">))[];
|
|
526
526
|
openapi: string;
|
|
527
527
|
info: {
|
|
@@ -563,19 +563,19 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
563
563
|
default: string;
|
|
564
564
|
description?: string | undefined;
|
|
565
565
|
}>;
|
|
566
|
-
description?: string | undefined;
|
|
567
566
|
color?: string | undefined;
|
|
567
|
+
description?: string | undefined;
|
|
568
568
|
}> | undefined;
|
|
569
569
|
'x-scalar-secrets'?: Record<string, {
|
|
570
|
-
example?: string | undefined;
|
|
571
570
|
description?: string | undefined;
|
|
571
|
+
example?: string | undefined;
|
|
572
572
|
}> | undefined;
|
|
573
573
|
selectedServerUid?: (string & z.BRAND<"server">) | undefined;
|
|
574
574
|
documentUrl?: string | undefined;
|
|
575
575
|
integration?: string | null | undefined;
|
|
576
576
|
}, {
|
|
577
|
-
type?: "collection" | undefined;
|
|
578
577
|
uid?: string | undefined;
|
|
578
|
+
type?: "collection" | undefined;
|
|
579
579
|
externalDocs?: {
|
|
580
580
|
url: string;
|
|
581
581
|
description?: unknown;
|
|
@@ -591,15 +591,15 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
591
591
|
'x-scalar-active-environment'?: string | undefined;
|
|
592
592
|
'x-scalar-environments'?: Record<string, {
|
|
593
593
|
variables: Record<string, string | {
|
|
594
|
-
default?: string | undefined;
|
|
595
594
|
description?: string | undefined;
|
|
595
|
+
default?: string | undefined;
|
|
596
596
|
}>;
|
|
597
|
-
description?: string | undefined;
|
|
598
597
|
color?: string | undefined;
|
|
598
|
+
description?: string | undefined;
|
|
599
599
|
}> | undefined;
|
|
600
600
|
'x-scalar-secrets'?: Record<string, {
|
|
601
|
-
example?: string | undefined;
|
|
602
601
|
description?: string | undefined;
|
|
602
|
+
example?: string | undefined;
|
|
603
603
|
}> | undefined;
|
|
604
604
|
securitySchemes?: string[] | undefined;
|
|
605
605
|
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB;IAC9B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAA;AAEF,eAAO,MAAM,wBAAwB;;IAEnC,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,gBAAgB;IAnF3B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAehD,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI8E,CAAA;AACnF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { selectedSecuritySchemeUidSchema } from '../shared/utility.js';
|
|
2
2
|
import { xScalarEnvironmentsSchema } from './x-scalar-environments.js';
|
|
3
3
|
import { xScalarSecretsSchema } from './x-scalar-secrets.js';
|
|
4
|
+
import { oasSecurityRequirementSchema } from '@scalar/types/entities';
|
|
5
|
+
import { nanoidSchema } from '@scalar/types/utils';
|
|
4
6
|
import { z } from 'zod';
|
|
5
|
-
import { oasSecurityRequirementSchema } from './security.js';
|
|
6
7
|
import { oasInfoSchema, oasExternalDocumentationSchema } from './spec-objects.js';
|
|
7
8
|
|
|
8
9
|
const oasCollectionSchema = z.object({
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
export type
|
|
11
|
-
export { type Operation, type OperationPayload, operationSchema, } from './operation.js';
|
|
1
|
+
export { collectionSchema, type Collection, type CollectionPayload } from './collection.ts';
|
|
2
|
+
export { oasParameterSchema, type RequestParameter, type RequestParameterPayload } from './parameters.ts';
|
|
3
|
+
export { serverSchema, type Server, type ServerPayload } from './server.ts';
|
|
4
|
+
export { requestSchema, type Request, type RequestPayload, type RequestMethod, type ResponseInstance, type RequestEvent, } from './requests.ts';
|
|
5
|
+
export { requestExampleSchema, createExampleFromRequest, requestExampleParametersSchema, type RequestExample, type RequestExampleParameter, } from './request-examples.ts';
|
|
6
|
+
export { tagSchema, oasExternalDocumentationSchema, oasInfoSchema, oasContactSchema, oasLicenseSchema, type Tag, type TagPayload, } from './spec-objects.ts';
|
|
7
|
+
export { type Operation, type OperationPayload, operationSchema, } from './operation.ts';
|
|
8
|
+
export { xScalarEnvironmentsSchema, type XScalarEnvironment, type XScalarEnvironments, } from './x-scalar-environments.ts';
|
|
9
|
+
/** Re-exported here for ease of use but we should use the other ones directly */
|
|
10
|
+
export { type Oauth2Flow, type Oauth2FlowPayload, type SecuritySchemaHttp, type SecuritySchemaOpenId, type SecurityScheme, type SecuritySchemeApiKey, type SecuritySchemeOauth2, type SecuritySchemeOauth2Payload, type SecuritySchemePayload, oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeSchema, } from '@scalar/types/entities';
|
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC3F,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzG,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,EACL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,GAClB,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,SAAS,EACT,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GAAG,EACR,KAAK,UAAU,GAChB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,eAAe,GAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAA;AAEnC,iFAAiF;AACjF,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { collectionSchema
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export { oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeApiKeyIn, securitySchemeSchema } from './security.js';
|
|
8
|
-
export { xScalarEnvVarSchema, xScalarEnvironmentSchema, xScalarEnvironmentsSchema } from './x-scalar-environments.js';
|
|
1
|
+
export { collectionSchema } from './collection.js';
|
|
2
|
+
export { oasParameterSchema } from './parameters.js';
|
|
3
|
+
export { serverSchema } from './server.js';
|
|
4
|
+
export { requestSchema } from './requests.js';
|
|
5
|
+
export { createExampleFromRequest, requestExampleParametersSchema, requestExampleSchema } from './request-examples.js';
|
|
6
|
+
export { oasContactSchema, oasExternalDocumentationSchema, oasInfoSchema, oasLicenseSchema, tagSchema } from './spec-objects.js';
|
|
9
7
|
export { operationSchema } from './operation.js';
|
|
8
|
+
export { xScalarEnvironmentsSchema } from './x-scalar-environments.js';
|
|
9
|
+
export { oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeSchema } from '@scalar/types/entities';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Aliases Request to Operation which is closer to the spec,
|
|
3
3
|
* also will not conflict with the builtin Request class
|
|
4
4
|
*/
|
|
5
|
-
import { type RequestPayload, type Request as RequestType } from './requests.
|
|
5
|
+
import { type RequestPayload, type Request as RequestType } from './requests.ts';
|
|
6
6
|
export type Operation = RequestType;
|
|
7
7
|
export type OperationPayload = RequestPayload;
|
|
8
8
|
export declare const operationSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Omit<{
|
|
@@ -33,12 +33,12 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
33
33
|
summary?: string | undefined;
|
|
34
34
|
}>>, import("zod").ZodArray<import("zod").ZodUnknown, "many">]>>;
|
|
35
35
|
}, "strip", import("zod").ZodTypeAny, {
|
|
36
|
-
required: boolean;
|
|
37
36
|
name: string;
|
|
38
|
-
|
|
37
|
+
required: boolean;
|
|
38
|
+
in: "cookie" | "path" | "query" | "header";
|
|
39
39
|
deprecated: boolean;
|
|
40
|
-
example?: unknown;
|
|
41
40
|
description?: string | undefined;
|
|
41
|
+
example?: unknown;
|
|
42
42
|
schema?: unknown;
|
|
43
43
|
content?: unknown;
|
|
44
44
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -48,10 +48,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
48
48
|
}> | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
name: string;
|
|
51
|
-
in: "
|
|
52
|
-
example?: unknown;
|
|
53
|
-
required?: boolean | undefined;
|
|
51
|
+
in: "cookie" | "path" | "query" | "header";
|
|
54
52
|
description?: string | undefined;
|
|
53
|
+
required?: boolean | undefined;
|
|
54
|
+
example?: unknown;
|
|
55
55
|
deprecated?: boolean | undefined;
|
|
56
56
|
schema?: unknown;
|
|
57
57
|
content?: unknown;
|
|
@@ -96,14 +96,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
96
96
|
}>>>;
|
|
97
97
|
}, "strip", import("zod").ZodTypeAny, {
|
|
98
98
|
content: string | Record<string, any>;
|
|
99
|
-
encoding: "application/json" | "
|
|
99
|
+
encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
|
|
100
100
|
file?: {
|
|
101
101
|
url: string;
|
|
102
102
|
base64?: string | undefined;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
content: string | Record<string, any>;
|
|
106
|
-
encoding: "application/json" | "
|
|
106
|
+
encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
|
|
107
107
|
file?: {
|
|
108
108
|
url: string;
|
|
109
109
|
base64?: string | undefined;
|
|
@@ -116,26 +116,26 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
116
116
|
cookies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
117
117
|
}, "strip", import("zod").ZodTypeAny, {
|
|
118
118
|
path?: Record<string, string> | undefined;
|
|
119
|
-
cookies?: Record<string, string> | undefined;
|
|
120
119
|
query?: Record<string, string> | undefined;
|
|
121
120
|
headers?: Record<string, string> | undefined;
|
|
121
|
+
cookies?: Record<string, string> | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
path?: Record<string, string> | undefined;
|
|
124
|
-
cookies?: Record<string, string> | undefined;
|
|
125
124
|
query?: Record<string, string> | undefined;
|
|
126
125
|
headers?: Record<string, string> | undefined;
|
|
126
|
+
cookies?: Record<string, string> | undefined;
|
|
127
127
|
}>;
|
|
128
128
|
}, "strip", import("zod").ZodTypeAny, {
|
|
129
129
|
parameters: {
|
|
130
130
|
path?: Record<string, string> | undefined;
|
|
131
|
-
cookies?: Record<string, string> | undefined;
|
|
132
131
|
query?: Record<string, string> | undefined;
|
|
133
132
|
headers?: Record<string, string> | undefined;
|
|
133
|
+
cookies?: Record<string, string> | undefined;
|
|
134
134
|
};
|
|
135
135
|
name?: string | undefined;
|
|
136
136
|
body?: {
|
|
137
137
|
content: string | Record<string, any>;
|
|
138
|
-
encoding: "application/json" | "
|
|
138
|
+
encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
|
|
139
139
|
file?: {
|
|
140
140
|
url: string;
|
|
141
141
|
base64?: string | undefined;
|
|
@@ -144,14 +144,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
144
144
|
}, {
|
|
145
145
|
parameters: {
|
|
146
146
|
path?: Record<string, string> | undefined;
|
|
147
|
-
cookies?: Record<string, string> | undefined;
|
|
148
147
|
query?: Record<string, string> | undefined;
|
|
149
148
|
headers?: Record<string, string> | undefined;
|
|
149
|
+
cookies?: Record<string, string> | undefined;
|
|
150
150
|
};
|
|
151
151
|
name?: string | undefined;
|
|
152
152
|
body?: {
|
|
153
153
|
content: string | Record<string, any>;
|
|
154
|
-
encoding: "application/json" | "
|
|
154
|
+
encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
|
|
155
155
|
file?: {
|
|
156
156
|
url: string;
|
|
157
157
|
base64?: string | undefined;
|
|
@@ -172,9 +172,9 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
172
172
|
examples: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "example">, "many">>;
|
|
173
173
|
selectedSecuritySchemeUids: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodBranded<import("zod").ZodString, "securityScheme">, import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "securityScheme">, "many">]>, "many">>;
|
|
174
174
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
175
|
+
uid: string & import("zod").BRAND<"operation">;
|
|
175
176
|
path: string;
|
|
176
177
|
type: "request";
|
|
177
|
-
uid: string & import("zod").BRAND<"operation">;
|
|
178
178
|
selectedSecuritySchemeUids: ((string & import("zod").BRAND<"securityScheme">) | (string & import("zod").BRAND<"securityScheme">)[])[];
|
|
179
179
|
selectedServerUid: (string & import("zod").BRAND<"server">) | null;
|
|
180
180
|
servers: (string & import("zod").BRAND<"server">)[];
|
|
@@ -193,12 +193,12 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
193
193
|
deprecated?: boolean | undefined;
|
|
194
194
|
operationId?: string | undefined;
|
|
195
195
|
parameters?: {
|
|
196
|
-
required: boolean;
|
|
197
196
|
name: string;
|
|
198
|
-
|
|
197
|
+
required: boolean;
|
|
198
|
+
in: "cookie" | "path" | "query" | "header";
|
|
199
199
|
deprecated: boolean;
|
|
200
|
-
example?: unknown;
|
|
201
200
|
description?: string | undefined;
|
|
201
|
+
example?: unknown;
|
|
202
202
|
schema?: unknown;
|
|
203
203
|
content?: unknown;
|
|
204
204
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -211,9 +211,9 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
211
211
|
responses?: Record<string, any> | undefined;
|
|
212
212
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
213
213
|
}, {
|
|
214
|
+
uid?: string | undefined;
|
|
214
215
|
path?: string | undefined;
|
|
215
216
|
type?: "request" | undefined;
|
|
216
|
-
uid?: string | undefined;
|
|
217
217
|
description?: string | undefined;
|
|
218
218
|
summary?: string | undefined;
|
|
219
219
|
externalDocs?: {
|
|
@@ -232,10 +232,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
232
232
|
operationId?: string | undefined;
|
|
233
233
|
parameters?: {
|
|
234
234
|
name: string;
|
|
235
|
-
in: "
|
|
236
|
-
example?: unknown;
|
|
237
|
-
required?: boolean | undefined;
|
|
235
|
+
in: "cookie" | "path" | "query" | "header";
|
|
238
236
|
description?: string | undefined;
|
|
237
|
+
required?: boolean | undefined;
|
|
238
|
+
example?: unknown;
|
|
239
239
|
deprecated?: boolean | undefined;
|
|
240
240
|
schema?: unknown;
|
|
241
241
|
content?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,eAAe,CAAA;AAE/F,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAC7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAA"}
|
|
@@ -30,12 +30,12 @@ export declare const oasParameterSchema: z.ZodObject<{
|
|
|
30
30
|
summary?: string | undefined;
|
|
31
31
|
}>>, z.ZodArray<z.ZodUnknown, "many">]>>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
required: boolean;
|
|
34
33
|
name: string;
|
|
35
|
-
|
|
34
|
+
required: boolean;
|
|
35
|
+
in: "cookie" | "path" | "query" | "header";
|
|
36
36
|
deprecated: boolean;
|
|
37
|
-
example?: unknown;
|
|
38
37
|
description?: string | undefined;
|
|
38
|
+
example?: unknown;
|
|
39
39
|
schema?: unknown;
|
|
40
40
|
content?: unknown;
|
|
41
41
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -45,10 +45,10 @@ export declare const oasParameterSchema: z.ZodObject<{
|
|
|
45
45
|
}> | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
name: string;
|
|
48
|
-
in: "
|
|
49
|
-
example?: unknown;
|
|
50
|
-
required?: boolean | undefined;
|
|
48
|
+
in: "cookie" | "path" | "query" | "header";
|
|
51
49
|
description?: string | undefined;
|
|
50
|
+
required?: boolean | undefined;
|
|
51
|
+
example?: unknown;
|
|
52
52
|
deprecated?: boolean | undefined;
|
|
53
53
|
schema?: unknown;
|
|
54
54
|
content?: unknown;
|