@scalar/oas-utils 0.2.42 → 0.2.44
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 +24 -0
- package/dist/diff/diff.d.ts +13 -0
- package/dist/diff/diff.d.ts.map +1 -0
- package/dist/diff/index.d.ts +1 -0
- package/dist/diff/index.d.ts.map +1 -0
- package/dist/diff/index.js +1 -0
- package/dist/entities/{workspace/cookie → cookie}/cookie.d.ts +1 -17
- package/dist/entities/cookie/cookie.d.ts.map +1 -0
- package/dist/entities/{workspace/cookie → cookie}/cookie.js +1 -4
- package/dist/entities/cookie/index.d.ts.map +1 -0
- package/dist/entities/cookie/index.js +1 -0
- package/dist/entities/environment/environment.d.ts +24 -0
- package/dist/entities/environment/environment.d.ts.map +1 -0
- package/dist/entities/environment/environment.js +12 -0
- package/dist/entities/environment/index.d.ts.map +1 -0
- package/dist/entities/environment/index.js +1 -0
- package/dist/entities/{workspace/consts/hot-keys.d.ts → hotkeys/hotkeys.d.ts} +2 -2
- package/dist/entities/hotkeys/hotkeys.d.ts.map +1 -0
- package/dist/entities/{workspace/consts/hot-keys.js → hotkeys/hotkeys.js} +1 -0
- package/dist/entities/hotkeys/index.d.ts +2 -0
- package/dist/entities/hotkeys/index.d.ts.map +1 -0
- package/dist/entities/hotkeys/index.js +1 -0
- package/dist/entities/index.d.ts +1 -1
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +1 -1
- package/dist/entities/shared/index.d.ts.map +1 -0
- package/dist/entities/shared/utility.d.ts.map +1 -0
- package/dist/entities/spec/collection.d.ts +489 -0
- package/dist/entities/spec/collection.d.ts.map +1 -0
- package/dist/entities/spec/collection.js +63 -0
- package/dist/entities/spec/index.d.ts +10 -0
- package/dist/entities/spec/index.d.ts.map +1 -0
- package/dist/entities/spec/index.js +7 -0
- package/dist/entities/spec/parameters.d.ts +42 -0
- package/dist/entities/spec/parameters.d.ts.map +1 -0
- package/dist/entities/spec/parameters.js +30 -0
- package/dist/entities/spec/request-examples.d.ts +915 -0
- package/dist/entities/spec/request-examples.d.ts.map +1 -0
- package/dist/entities/spec/request-examples.js +168 -0
- package/dist/entities/spec/requests.d.ts +317 -0
- package/dist/entities/spec/requests.d.ts.map +1 -0
- package/dist/entities/{workspace/spec → spec}/requests.js +56 -32
- package/dist/entities/spec/security.d.ts +964 -0
- package/dist/entities/spec/security.d.ts.map +1 -0
- package/dist/entities/spec/security.js +222 -0
- package/dist/entities/spec/server.d.ts +82 -0
- package/dist/entities/spec/server.d.ts.map +1 -0
- package/dist/entities/{workspace/server → spec}/server.js +11 -13
- package/dist/entities/spec/spec-objects.d.ts +279 -0
- package/dist/entities/spec/spec-objects.d.ts.map +1 -0
- package/dist/entities/{workspace/collection/collection.js → spec/spec-objects.js} +21 -45
- package/dist/entities/workspace/index.js +1 -1
- package/dist/entities/workspace/workspace.d.ts +24 -43
- package/dist/entities/workspace/workspace.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.js +6 -7
- package/dist/helpers/httpMethods.d.ts +16 -82
- package/dist/helpers/httpMethods.d.ts.map +1 -1
- package/dist/helpers/httpMethods.js +45 -41
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +4 -2
- package/dist/helpers/local-storage.d.ts +16 -0
- package/dist/helpers/local-storage.d.ts.map +1 -0
- package/dist/helpers/local-storage.js +17 -0
- package/dist/helpers/redirectToProxy.d.ts +2 -0
- package/dist/helpers/redirectToProxy.d.ts.map +1 -1
- package/dist/helpers/redirectToProxy.js +6 -7
- package/dist/helpers/regexHelpers.d.ts +2 -0
- package/dist/helpers/regexHelpers.d.ts.map +1 -0
- package/dist/helpers/regexHelpers.js +3 -0
- package/dist/helpers/schema-model.d.ts +2 -2
- package/dist/helpers/schema-model.d.ts.map +1 -1
- package/dist/helpers/schema-model.js +11 -17
- package/dist/migrations/data-version.d.ts +12 -0
- package/dist/migrations/data-version.d.ts.map +1 -0
- package/dist/migrations/data-version.js +13 -0
- package/dist/migrations/generate-types.d.ts +2 -0
- package/dist/migrations/generate-types.d.ts.map +1 -0
- package/dist/migrations/index.d.ts +4 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +3 -0
- package/dist/migrations/local-storage.d.ts +8 -0
- package/dist/migrations/local-storage.d.ts.map +1 -0
- package/dist/migrations/local-storage.js +36 -0
- package/dist/migrations/migrator.d.ts +4 -0
- package/dist/migrations/migrator.d.ts.map +1 -0
- package/dist/migrations/migrator.js +40 -0
- package/dist/migrations/semver.d.ts +5 -0
- package/dist/migrations/semver.d.ts.map +1 -0
- package/dist/migrations/semver.js +25 -0
- package/dist/migrations/v-0.0.0/index.d.ts +2 -0
- package/dist/migrations/v-0.0.0/index.d.ts.map +1 -0
- package/dist/migrations/v-0.0.0/index.js +1 -0
- package/dist/migrations/v-0.0.0/types.generated.d.ts +347 -0
- package/dist/migrations/v-0.0.0/types.generated.d.ts.map +1 -0
- package/dist/migrations/v-2.1.0/index.d.ts +3 -0
- package/dist/migrations/v-2.1.0/index.d.ts.map +1 -0
- package/dist/migrations/v-2.1.0/index.js +1 -0
- package/dist/migrations/v-2.1.0/migration.d.ts +334 -0
- package/dist/migrations/v-2.1.0/migration.d.ts.map +1 -0
- package/dist/migrations/v-2.1.0/migration.js +249 -0
- package/dist/migrations/v-2.1.0/types.generated.d.ts +42 -0
- package/dist/migrations/v-2.1.0/types.generated.d.ts.map +1 -0
- package/dist/spec-getters/getExampleFromSchema.d.ts.map +1 -1
- package/dist/spec-getters/getExampleFromSchema.js +21 -8
- package/dist/spec-getters/getParametersFromOperation.d.ts +1 -1
- package/dist/spec-getters/getParametersFromOperation.d.ts.map +1 -1
- package/dist/spec-getters/getParametersFromOperation.js +8 -7
- package/dist/spec-getters/getRequestBodyFromOperation.d.ts +12 -40
- package/dist/spec-getters/getRequestBodyFromOperation.d.ts.map +1 -1
- package/dist/spec-getters/getRequestBodyFromOperation.js +34 -23
- package/dist/spec-getters/getRequestFromOperation.d.ts.map +1 -1
- package/dist/spec-getters/getRequestFromOperation.js +1 -2
- package/dist/spec-getters/getServerVariableExamples.d.ts +4 -0
- package/dist/spec-getters/getServerVariableExamples.d.ts.map +1 -0
- package/dist/spec-getters/getServerVariableExamples.js +12 -0
- package/dist/spec-getters/index.d.ts +1 -0
- package/dist/spec-getters/index.d.ts.map +1 -1
- package/dist/spec-getters/index.js +1 -0
- package/dist/transforms/export-spec.d.ts +68 -0
- package/dist/transforms/export-spec.d.ts.map +1 -0
- package/dist/transforms/import-spec.d.ts +20 -68
- package/dist/transforms/import-spec.d.ts.map +1 -1
- package/dist/transforms/import-spec.js +209 -126
- package/package.json +43 -37
- package/dist/entities/workspace/collection/collection.d.ts +0 -330
- package/dist/entities/workspace/collection/collection.d.ts.map +0 -1
- package/dist/entities/workspace/collection/index.d.ts +0 -2
- package/dist/entities/workspace/collection/index.d.ts.map +0 -1
- package/dist/entities/workspace/collection/index.js +0 -1
- package/dist/entities/workspace/consts/hot-keys.d.ts.map +0 -1
- package/dist/entities/workspace/consts/index.d.ts +0 -2
- package/dist/entities/workspace/consts/index.d.ts.map +0 -1
- package/dist/entities/workspace/consts/index.js +0 -1
- package/dist/entities/workspace/cookie/cookie.d.ts.map +0 -1
- package/dist/entities/workspace/cookie/index.d.ts.map +0 -1
- package/dist/entities/workspace/cookie/index.js +0 -1
- package/dist/entities/workspace/environment/environment.d.ts +0 -55
- package/dist/entities/workspace/environment/environment.d.ts.map +0 -1
- package/dist/entities/workspace/environment/environment.js +0 -23
- package/dist/entities/workspace/environment/index.d.ts.map +0 -1
- package/dist/entities/workspace/environment/index.js +0 -1
- package/dist/entities/workspace/folder/folder.d.ts +0 -36
- package/dist/entities/workspace/folder/folder.d.ts.map +0 -1
- package/dist/entities/workspace/folder/folder.js +0 -21
- package/dist/entities/workspace/folder/index.d.ts +0 -2
- package/dist/entities/workspace/folder/index.d.ts.map +0 -1
- package/dist/entities/workspace/folder/index.js +0 -1
- package/dist/entities/workspace/security/index.d.ts +0 -3
- package/dist/entities/workspace/security/index.d.ts.map +0 -1
- package/dist/entities/workspace/security/index.js +0 -2
- package/dist/entities/workspace/security/security-requirement.d.ts +0 -13
- package/dist/entities/workspace/security/security-requirement.d.ts.map +0 -1
- package/dist/entities/workspace/security/security-requirement.js +0 -15
- package/dist/entities/workspace/security/security-schemes.d.ts +0 -696
- package/dist/entities/workspace/security/security-schemes.d.ts.map +0 -1
- package/dist/entities/workspace/security/security-schemes.js +0 -139
- package/dist/entities/workspace/server/index.d.ts +0 -2
- package/dist/entities/workspace/server/index.d.ts.map +0 -1
- package/dist/entities/workspace/server/index.js +0 -1
- package/dist/entities/workspace/server/server.d.ts +0 -91
- package/dist/entities/workspace/server/server.d.ts.map +0 -1
- package/dist/entities/workspace/shared/index.d.ts.map +0 -1
- package/dist/entities/workspace/shared/utility.d.ts.map +0 -1
- package/dist/entities/workspace/spec/components.d.ts +0 -3
- package/dist/entities/workspace/spec/components.d.ts.map +0 -1
- package/dist/entities/workspace/spec/index.d.ts +0 -5
- package/dist/entities/workspace/spec/index.d.ts.map +0 -1
- package/dist/entities/workspace/spec/index.js +0 -2
- package/dist/entities/workspace/spec/parameters.d.ts +0 -16
- package/dist/entities/workspace/spec/parameters.d.ts.map +0 -1
- package/dist/entities/workspace/spec/refs.d.ts +0 -30
- package/dist/entities/workspace/spec/refs.d.ts.map +0 -1
- package/dist/entities/workspace/spec/refs.js +0 -9
- package/dist/entities/workspace/spec/request-examples.d.ts +0 -1573
- package/dist/entities/workspace/spec/request-examples.d.ts.map +0 -1
- package/dist/entities/workspace/spec/request-examples.js +0 -96
- package/dist/entities/workspace/spec/requests.d.ts +0 -181
- package/dist/entities/workspace/spec/requests.d.ts.map +0 -1
- package/dist/entities/workspace/spec/spec.d.ts +0 -18
- package/dist/entities/workspace/spec/spec.d.ts.map +0 -1
- package/dist/entities/workspace/spec/spec.js +0 -8
- /package/dist/entities/{workspace/cookie → cookie}/index.d.ts +0 -0
- /package/dist/entities/{workspace/environment → environment}/index.d.ts +0 -0
- /package/dist/entities/{workspace/shared → shared}/index.d.ts +0 -0
- /package/dist/entities/{workspace/shared → shared}/index.js +0 -0
- /package/dist/entities/{workspace/shared → shared}/utility.d.ts +0 -0
- /package/dist/entities/{workspace/shared → shared}/utility.js +0 -0
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* External Documentation
|
|
4
|
-
* Allows referencing an external resource for extended documentation.
|
|
5
|
-
*
|
|
6
|
-
* @see https://spec.openapis.org/oas/latest.html#external-documentation-object
|
|
7
|
-
*/
|
|
8
|
-
declare const exteralDocumentationSchema: z.ZodObject<{
|
|
9
|
-
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
/** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */
|
|
12
|
-
url: z.ZodDefault<z.ZodString>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
url: string;
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
description?: string | undefined;
|
|
18
|
-
url?: string | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
export type ExternalDocumentation = z.infer<typeof exteralDocumentationSchema>;
|
|
21
|
-
declare const collectionSchema: z.ZodObject<{
|
|
22
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23
|
-
spec: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
24
|
-
openapi: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"3.1.0">, z.ZodLiteral<"4.0.0">]>>>;
|
|
25
|
-
/**
|
|
26
|
-
* A declaration of which security mechanisms can be used across the API. The list of
|
|
27
|
-
* values includes alternative security requirement objects that can be used. Only
|
|
28
|
-
* one of the security requirement objects need to be satisfied to authorize a request.
|
|
29
|
-
* Individual operations can override this definition. To make security optional, an empty
|
|
30
|
-
* security requirement ({}) can be included in the array.
|
|
31
|
-
*/
|
|
32
|
-
security: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>, "many">>>;
|
|
33
|
-
/** OAS info */
|
|
34
|
-
info: z.ZodOptional<z.ZodObject<{
|
|
35
|
-
/** REQUIRED. The title of the API. */
|
|
36
|
-
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
37
|
-
/** A short summary of the API. */
|
|
38
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
39
|
-
/** A description of the API. CommonMark syntax MAY be used for rich text representation. */
|
|
40
|
-
description: z.ZodOptional<z.ZodString>;
|
|
41
|
-
/** A URL to the Terms of Service for the API. This MUST be in the form of a URL. */
|
|
42
|
-
termsOfService: z.ZodOptional<z.ZodString>;
|
|
43
|
-
/** The contact information for the exposed API. */
|
|
44
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
/** The identifying name of the contact person/organization. */
|
|
46
|
-
name: z.ZodOptional<z.ZodString>;
|
|
47
|
-
/** The URL pointing to the contact information. This MUST be in the form of a URL. */
|
|
48
|
-
url: z.ZodOptional<z.ZodString>;
|
|
49
|
-
/** The email address of the contact person/organization. This MUST be in the form of an email address. */
|
|
50
|
-
email: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
name?: string | undefined;
|
|
53
|
-
url?: string | undefined;
|
|
54
|
-
email?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
name?: string | undefined;
|
|
57
|
-
url?: string | undefined;
|
|
58
|
-
email?: string | undefined;
|
|
59
|
-
}>>;
|
|
60
|
-
/** The license information for the exposed API. */
|
|
61
|
-
license: z.ZodOptional<z.ZodObject<{
|
|
62
|
-
/** REQUIRED. The license name used for the API. */
|
|
63
|
-
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
64
|
-
/** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
|
|
65
|
-
identifier: z.ZodOptional<z.ZodString>;
|
|
66
|
-
/**
|
|
67
|
-
* A URL to the license used for the API. This MUST be in the form of a URL. The url field
|
|
68
|
-
* is mutually exclusive of the identifier field.
|
|
69
|
-
*/
|
|
70
|
-
url: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
name: string;
|
|
73
|
-
identifier?: string | undefined;
|
|
74
|
-
url?: string | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
name?: string | undefined;
|
|
77
|
-
identifier?: string | undefined;
|
|
78
|
-
url?: string | undefined;
|
|
79
|
-
}>>;
|
|
80
|
-
/**
|
|
81
|
-
* REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI
|
|
82
|
-
* Specification version or the API implementation version).
|
|
83
|
-
*/
|
|
84
|
-
version: z.ZodDefault<z.ZodString>;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
title: string;
|
|
87
|
-
version: string;
|
|
88
|
-
description?: string | undefined;
|
|
89
|
-
summary?: string | undefined;
|
|
90
|
-
termsOfService?: string | undefined;
|
|
91
|
-
contact?: {
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
url?: string | undefined;
|
|
94
|
-
email?: string | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
license?: {
|
|
97
|
-
name: string;
|
|
98
|
-
identifier?: string | undefined;
|
|
99
|
-
url?: string | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
description?: string | undefined;
|
|
103
|
-
title?: string | undefined;
|
|
104
|
-
summary?: string | undefined;
|
|
105
|
-
termsOfService?: string | undefined;
|
|
106
|
-
contact?: {
|
|
107
|
-
name?: string | undefined;
|
|
108
|
-
url?: string | undefined;
|
|
109
|
-
email?: string | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
license?: {
|
|
112
|
-
name?: string | undefined;
|
|
113
|
-
identifier?: string | undefined;
|
|
114
|
-
url?: string | undefined;
|
|
115
|
-
} | undefined;
|
|
116
|
-
version?: string | undefined;
|
|
117
|
-
}>>;
|
|
118
|
-
/** Uids which refer to servers on the workspace base */
|
|
119
|
-
serverUids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
120
|
-
/** OAS Tags */
|
|
121
|
-
tags: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
122
|
-
/** REQUIRED. The name of the tag. */
|
|
123
|
-
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
124
|
-
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
125
|
-
description: z.ZodOptional<z.ZodString>;
|
|
126
|
-
/** Additional external documentation for this tag. */
|
|
127
|
-
externalDocs: z.ZodOptional<z.ZodObject<{
|
|
128
|
-
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
129
|
-
description: z.ZodOptional<z.ZodString>;
|
|
130
|
-
/** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */
|
|
131
|
-
url: z.ZodDefault<z.ZodString>;
|
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
url: string;
|
|
134
|
-
description?: string | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
description?: string | undefined;
|
|
137
|
-
url?: string | undefined;
|
|
138
|
-
}>>;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
name: string;
|
|
141
|
-
description?: string | undefined;
|
|
142
|
-
externalDocs?: {
|
|
143
|
-
url: string;
|
|
144
|
-
description?: string | undefined;
|
|
145
|
-
} | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
name?: string | undefined;
|
|
148
|
-
description?: string | undefined;
|
|
149
|
-
externalDocs?: {
|
|
150
|
-
description?: string | undefined;
|
|
151
|
-
url?: string | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
}>, "many">>;
|
|
154
|
-
externalDocs: z.ZodOptional<z.ZodObject<{
|
|
155
|
-
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
156
|
-
description: z.ZodOptional<z.ZodString>;
|
|
157
|
-
/** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */
|
|
158
|
-
url: z.ZodDefault<z.ZodString>;
|
|
159
|
-
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
url: string;
|
|
161
|
-
description?: string | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
description?: string | undefined;
|
|
164
|
-
url?: string | undefined;
|
|
165
|
-
}>>;
|
|
166
|
-
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
openapi: string;
|
|
168
|
-
security: Record<string, string[]>[];
|
|
169
|
-
serverUids: string[];
|
|
170
|
-
tags: {
|
|
171
|
-
name: string;
|
|
172
|
-
description?: string | undefined;
|
|
173
|
-
externalDocs?: {
|
|
174
|
-
url: string;
|
|
175
|
-
description?: string | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
}[];
|
|
178
|
-
externalDocs?: {
|
|
179
|
-
url: string;
|
|
180
|
-
description?: string | undefined;
|
|
181
|
-
} | undefined;
|
|
182
|
-
info?: {
|
|
183
|
-
title: string;
|
|
184
|
-
version: string;
|
|
185
|
-
description?: string | undefined;
|
|
186
|
-
summary?: string | undefined;
|
|
187
|
-
termsOfService?: string | undefined;
|
|
188
|
-
contact?: {
|
|
189
|
-
name?: string | undefined;
|
|
190
|
-
url?: string | undefined;
|
|
191
|
-
email?: string | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
license?: {
|
|
194
|
-
name: string;
|
|
195
|
-
identifier?: string | undefined;
|
|
196
|
-
url?: string | undefined;
|
|
197
|
-
} | undefined;
|
|
198
|
-
} | undefined;
|
|
199
|
-
}, {
|
|
200
|
-
externalDocs?: {
|
|
201
|
-
description?: string | undefined;
|
|
202
|
-
url?: string | undefined;
|
|
203
|
-
} | undefined;
|
|
204
|
-
openapi?: string | undefined;
|
|
205
|
-
security?: Record<string, string[] | undefined>[] | undefined;
|
|
206
|
-
info?: {
|
|
207
|
-
description?: string | undefined;
|
|
208
|
-
title?: string | undefined;
|
|
209
|
-
summary?: string | undefined;
|
|
210
|
-
termsOfService?: string | undefined;
|
|
211
|
-
contact?: {
|
|
212
|
-
name?: string | undefined;
|
|
213
|
-
url?: string | undefined;
|
|
214
|
-
email?: string | undefined;
|
|
215
|
-
} | undefined;
|
|
216
|
-
license?: {
|
|
217
|
-
name?: string | undefined;
|
|
218
|
-
identifier?: string | undefined;
|
|
219
|
-
url?: string | undefined;
|
|
220
|
-
} | undefined;
|
|
221
|
-
version?: string | undefined;
|
|
222
|
-
} | undefined;
|
|
223
|
-
serverUids?: string[] | undefined;
|
|
224
|
-
tags?: {
|
|
225
|
-
name?: string | undefined;
|
|
226
|
-
description?: string | undefined;
|
|
227
|
-
externalDocs?: {
|
|
228
|
-
description?: string | undefined;
|
|
229
|
-
url?: string | undefined;
|
|
230
|
-
} | undefined;
|
|
231
|
-
}[] | undefined;
|
|
232
|
-
}>>>;
|
|
233
|
-
/** A dictionary which maps the openapi spec name keys to the security-scheme UID's for lookup */
|
|
234
|
-
securitySchemeDict: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
235
|
-
/** The currently selected server */
|
|
236
|
-
selectedServerUid: z.ZodDefault<z.ZodString>;
|
|
237
|
-
/** List of uids that correspond to collection requests or folders */
|
|
238
|
-
childUids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
uid: string;
|
|
241
|
-
spec: {
|
|
242
|
-
openapi: string;
|
|
243
|
-
security: Record<string, string[]>[];
|
|
244
|
-
serverUids: string[];
|
|
245
|
-
tags: {
|
|
246
|
-
name: string;
|
|
247
|
-
description?: string | undefined;
|
|
248
|
-
externalDocs?: {
|
|
249
|
-
url: string;
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
}[];
|
|
253
|
-
externalDocs?: {
|
|
254
|
-
url: string;
|
|
255
|
-
description?: string | undefined;
|
|
256
|
-
} | undefined;
|
|
257
|
-
info?: {
|
|
258
|
-
title: string;
|
|
259
|
-
version: string;
|
|
260
|
-
description?: string | undefined;
|
|
261
|
-
summary?: string | undefined;
|
|
262
|
-
termsOfService?: string | undefined;
|
|
263
|
-
contact?: {
|
|
264
|
-
name?: string | undefined;
|
|
265
|
-
url?: string | undefined;
|
|
266
|
-
email?: string | undefined;
|
|
267
|
-
} | undefined;
|
|
268
|
-
license?: {
|
|
269
|
-
name: string;
|
|
270
|
-
identifier?: string | undefined;
|
|
271
|
-
url?: string | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
} | undefined;
|
|
274
|
-
};
|
|
275
|
-
securitySchemeDict: Record<string, string>;
|
|
276
|
-
selectedServerUid: string;
|
|
277
|
-
childUids: string[];
|
|
278
|
-
}, {
|
|
279
|
-
uid?: string | undefined;
|
|
280
|
-
spec?: {
|
|
281
|
-
externalDocs?: {
|
|
282
|
-
description?: string | undefined;
|
|
283
|
-
url?: string | undefined;
|
|
284
|
-
} | undefined;
|
|
285
|
-
openapi?: string | undefined;
|
|
286
|
-
security?: Record<string, string[] | undefined>[] | undefined;
|
|
287
|
-
info?: {
|
|
288
|
-
description?: string | undefined;
|
|
289
|
-
title?: string | undefined;
|
|
290
|
-
summary?: string | undefined;
|
|
291
|
-
termsOfService?: string | undefined;
|
|
292
|
-
contact?: {
|
|
293
|
-
name?: string | undefined;
|
|
294
|
-
url?: string | undefined;
|
|
295
|
-
email?: string | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
license?: {
|
|
298
|
-
name?: string | undefined;
|
|
299
|
-
identifier?: string | undefined;
|
|
300
|
-
url?: string | undefined;
|
|
301
|
-
} | undefined;
|
|
302
|
-
version?: string | undefined;
|
|
303
|
-
} | undefined;
|
|
304
|
-
serverUids?: string[] | undefined;
|
|
305
|
-
tags?: {
|
|
306
|
-
name?: string | undefined;
|
|
307
|
-
description?: string | undefined;
|
|
308
|
-
externalDocs?: {
|
|
309
|
-
description?: string | undefined;
|
|
310
|
-
url?: string | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
}[] | undefined;
|
|
313
|
-
} | undefined;
|
|
314
|
-
securitySchemeDict?: Record<string, string> | undefined;
|
|
315
|
-
selectedServerUid?: string | undefined;
|
|
316
|
-
childUids?: string[] | undefined;
|
|
317
|
-
}>;
|
|
318
|
-
/**
|
|
319
|
-
* A collection must be able to map 1:1 with an OAS 3.1 spec file
|
|
320
|
-
*
|
|
321
|
-
* Collections will have two modes of display:
|
|
322
|
-
* - Standard: Ordered by tag similar to ApiReference Sidebar
|
|
323
|
-
* - Folder: Ordered into arbitrary folders. See x-scalar-folder.yaml
|
|
324
|
-
*/
|
|
325
|
-
export type Collection = z.infer<typeof collectionSchema>;
|
|
326
|
-
export type CollectionPayload = z.input<typeof collectionSchema>;
|
|
327
|
-
/** Create Collction helper */
|
|
328
|
-
export declare const createCollection: (payload: CollectionPayload) => Collection;
|
|
329
|
-
export {};
|
|
330
|
-
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/collection/collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+DvB;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B;IAC9B,6GAA6G;;IAE7G,yFAAyF;;;;;;;;EAEzF,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAwC9E,QAAA,MAAM,gBAAgB;;;;QAjBpB;;;;;;WAMG;;QAEH,eAAe;;YA9Df,sCAAsC;;YAEtC,kCAAkC;;YAElC,4FAA4F;;YAE5F,oFAAoF;;YAEpF,mDAAmD;;gBAxBnD,+DAA+D;;gBAE/D,sFAAsF;;gBAEtF,0GAA0G;;;;;;;;;;;YAsB1G,mDAAmD;;gBA5CnD,mDAAmD;;gBAEnD,2GAA2G;;gBAE3G;;;mBAGG;;;;;;;;;;;YAuCH;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiDH,wDAAwD;;QAExD,eAAe;;YAzBf,qCAAqC;;YAErC,6FAA6F;;YAE7F,sDAAsD;;gBAnBtD,6GAA6G;;gBAE7G,yFAAyF;;;;;;;;;;;;;;;;;;;;;;;;;YAFzF,6GAA6G;;YAE7G,yFAAyF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CzF,iGAAiG;;IAEjG,oCAAoC;;IAEpC,sEAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtE,CAAA;AAEF;;;;;;GAMG;AACH,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;AAEhE,8BAA8B;AAC9B,eAAO,MAAM,gBAAgB,YAAa,iBAAiB,KAAG,UACS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/collection/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createCollection } from './collection.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hot-keys.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/consts/hot-keys.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,8RAerB,CAAA;AACV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,8hBAyFf,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/consts/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HOTKEY_EVENT_NAMES, KEYDOWN_KEYS } from './hot-keys.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/cookie/cookie.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,QAAA,MAAM,YAAY;;IAEhB,kGAAkG;;;IAGlG,yDAAyD;;IAEzD,oHAAoH;;IAEpH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH,yGAAyG;;IAEzG;;;OAGG;;IAIH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACjD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAExD,2BAA2B;AAC3B,eAAO,MAAM,YAAY,YAAa,aAAa;;;;;;;;;;;;CACP,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/cookie/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createCookie } from './cookie.js';
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const environmentSchema: z.ZodObject<{
|
|
3
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
|
-
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5
|
-
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6
|
-
raw: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
parsed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
-
key: z.ZodString;
|
|
9
|
-
value: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
value: string;
|
|
12
|
-
key: string;
|
|
13
|
-
}, {
|
|
14
|
-
value: string;
|
|
15
|
-
key: string;
|
|
16
|
-
}>, "many">>>;
|
|
17
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
uid: string;
|
|
20
|
-
name: string;
|
|
21
|
-
color: string;
|
|
22
|
-
raw: string;
|
|
23
|
-
parsed: {
|
|
24
|
-
value: string;
|
|
25
|
-
key: string;
|
|
26
|
-
}[];
|
|
27
|
-
isDefault?: boolean | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
uid?: string | undefined;
|
|
30
|
-
name?: string | undefined;
|
|
31
|
-
color?: string | undefined;
|
|
32
|
-
raw?: string | undefined;
|
|
33
|
-
parsed?: {
|
|
34
|
-
value: string;
|
|
35
|
-
key: string;
|
|
36
|
-
}[] | undefined;
|
|
37
|
-
isDefault?: boolean | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
/** Environment */
|
|
40
|
-
export type Environment = z.infer<typeof environmentSchema>;
|
|
41
|
-
export type EnvironmentPayload = z.input<typeof environmentSchema>;
|
|
42
|
-
/** Create environment helper */
|
|
43
|
-
export declare const createEnvironment: (payload: EnvironmentPayload) => {
|
|
44
|
-
uid: string;
|
|
45
|
-
name: string;
|
|
46
|
-
color: string;
|
|
47
|
-
raw: string;
|
|
48
|
-
parsed: {
|
|
49
|
-
value: string;
|
|
50
|
-
key: string;
|
|
51
|
-
}[];
|
|
52
|
-
isDefault?: boolean | undefined;
|
|
53
|
-
};
|
|
54
|
-
export {};
|
|
55
|
-
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/environment/environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AASvB,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAA;AAEF,kBAAkB;AAClB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAElE,gCAAgC;AAChC,eAAO,MAAM,iBAAiB,YAAa,kBAAkB;;;;;;;;;;CACZ,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { deepMerge } from '@scalar/object-utils/merge';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { nanoidSchema } from '../shared/utility.js';
|
|
4
|
-
|
|
5
|
-
const parsed = z.object({
|
|
6
|
-
key: z.string(),
|
|
7
|
-
value: z.string(),
|
|
8
|
-
});
|
|
9
|
-
const environmentSchema = z.object({
|
|
10
|
-
uid: nanoidSchema,
|
|
11
|
-
name: z.string().optional().default('Default Environment'),
|
|
12
|
-
color: z.string().optional().default('blue'),
|
|
13
|
-
raw: z
|
|
14
|
-
.string()
|
|
15
|
-
.optional()
|
|
16
|
-
.default(JSON.stringify({ exampleKey: 'exampleValue' }, null, 2)),
|
|
17
|
-
parsed: z.array(parsed).optional().default([]),
|
|
18
|
-
isDefault: z.boolean().optional(),
|
|
19
|
-
});
|
|
20
|
-
/** Create environment helper */
|
|
21
|
-
const createEnvironment = (payload) => deepMerge(environmentSchema.parse({}), payload);
|
|
22
|
-
|
|
23
|
-
export { createEnvironment };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/environment/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createEnvironment } from './environment.js';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const folderSchema: z.ZodObject<{
|
|
3
|
-
/** Used for database sync only */
|
|
4
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5
|
-
/** Will correspond to the slash separate path some, some/nested or some/nested/folder */
|
|
6
|
-
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
/** Folder descriptions */
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
/**
|
|
10
|
-
* List of uids that correspond to requests or folders
|
|
11
|
-
* WARNING: while uids are used we must check that corresponding $refs are not duplicated
|
|
12
|
-
*/
|
|
13
|
-
childUids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
uid: string;
|
|
16
|
-
name: string;
|
|
17
|
-
childUids: string[];
|
|
18
|
-
description?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
uid?: string | undefined;
|
|
21
|
-
name?: string | undefined;
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
childUids?: string[] | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
/** Folders will correspond to the x- */
|
|
26
|
-
export type Folder = z.infer<typeof folderSchema>;
|
|
27
|
-
export type FolderPayload = z.input<typeof folderSchema>;
|
|
28
|
-
/** Create folder helper */
|
|
29
|
-
export declare const createFolder: (payload: FolderPayload) => {
|
|
30
|
-
uid: string;
|
|
31
|
-
name: string;
|
|
32
|
-
childUids: string[];
|
|
33
|
-
description?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=folder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/folder/folder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,YAAY;IAChB,kCAAkC;;IAElC,yFAAyF;;IAEzF,0BAA0B;;IAE1B;;;OAGG;;;;;;;;;;;;EAEH,CAAA;AAEF,wCAAwC;AACxC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACjD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAExD,2BAA2B;AAC3B,eAAO,MAAM,YAAY,YAAa,aAAa;;;;;CACP,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { deepMerge } from '@scalar/object-utils/merge';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { nanoidSchema } from '../shared/utility.js';
|
|
4
|
-
|
|
5
|
-
const folderSchema = z.object({
|
|
6
|
-
/** Used for database sync only */
|
|
7
|
-
uid: nanoidSchema,
|
|
8
|
-
/** Will correspond to the slash separate path some, some/nested or some/nested/folder */
|
|
9
|
-
name: z.string().optional().default('Folder'),
|
|
10
|
-
/** Folder descriptions */
|
|
11
|
-
description: z.string().optional(),
|
|
12
|
-
/**
|
|
13
|
-
* List of uids that correspond to requests or folders
|
|
14
|
-
* WARNING: while uids are used we must check that corresponding $refs are not duplicated
|
|
15
|
-
*/
|
|
16
|
-
childUids: z.array(z.string()).default([]),
|
|
17
|
-
});
|
|
18
|
-
/** Create folder helper */
|
|
19
|
-
const createFolder = (payload) => deepMerge(folderSchema.parse({}), payload);
|
|
20
|
-
|
|
21
|
-
export { createFolder };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/folder/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createFolder } from './folder.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/security/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Security Requirement
|
|
4
|
-
* Lists the required security schemes to execute this operation OR the whole collection/spec.
|
|
5
|
-
* The name used for each property MUST correspond to a security scheme declared in the Security
|
|
6
|
-
* Schemes under the Components Object.
|
|
7
|
-
*
|
|
8
|
-
* The key (name) here will be matched to the key of the securityScheme for linking
|
|
9
|
-
*
|
|
10
|
-
* @see https://spec.openapis.org/oas/latest.html#security-requirement-object
|
|
11
|
-
*/
|
|
12
|
-
export declare const securityRequirement: z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
|
|
13
|
-
//# sourceMappingURL=security-requirement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"security-requirement.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/security/security-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,wFAG/B,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Security Requirement
|
|
5
|
-
* Lists the required security schemes to execute this operation OR the whole collection/spec.
|
|
6
|
-
* The name used for each property MUST correspond to a security scheme declared in the Security
|
|
7
|
-
* Schemes under the Components Object.
|
|
8
|
-
*
|
|
9
|
-
* The key (name) here will be matched to the key of the securityScheme for linking
|
|
10
|
-
*
|
|
11
|
-
* @see https://spec.openapis.org/oas/latest.html#security-requirement-object
|
|
12
|
-
*/
|
|
13
|
-
const securityRequirement = z.record(z.string(), z.array(z.string()).optional().default([]));
|
|
14
|
-
|
|
15
|
-
export { securityRequirement };
|