@scalar/openapi-types 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/helpers/is-dereferenced.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/base-path-item-object.d.ts +41 -544
- package/dist/schemas/3.1/processed/base-path-item-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/callback-object.d.ts +67 -67
- package/dist/schemas/3.1/processed/callback-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/components-object.d.ts +2127 -12344
- package/dist/schemas/3.1/processed/components-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/contact-object.d.ts +1 -12
- package/dist/schemas/3.1/processed/contact-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/discriminator-object.d.ts +1 -15
- package/dist/schemas/3.1/processed/discriminator-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/encoding-object.d.ts +16 -157
- package/dist/schemas/3.1/processed/encoding-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/example-object.d.ts +1 -25
- package/dist/schemas/3.1/processed/example-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/external-documentation-object.d.ts +1 -9
- package/dist/schemas/3.1/processed/external-documentation-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/header-object.d.ts +15 -124
- package/dist/schemas/3.1/processed/header-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/info-object.d.ts +3 -65
- package/dist/schemas/3.1/processed/info-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/license-object.d.ts +1 -14
- package/dist/schemas/3.1/processed/license-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/link-object.d.ts +6 -83
- package/dist/schemas/3.1/processed/link-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts +3 -44
- package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/media-type-object.d.ts +19 -253
- package/dist/schemas/3.1/processed/media-type-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/openapi-object.d.ts +4719 -27519
- package/dist/schemas/3.1/processed/openapi-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts +118 -1929
- package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/parameter-object.d.ts +37 -424
- package/dist/schemas/3.1/processed/parameter-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/path-item-object.d.ts +1738 -5818
- package/dist/schemas/3.1/processed/path-item-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/paths-object.d.ts +1722 -5778
- package/dist/schemas/3.1/processed/paths-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/request-body-object.d.ts +36 -536
- package/dist/schemas/3.1/processed/request-body-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/response-object.d.ts +41 -567
- package/dist/schemas/3.1/processed/response-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/responses-object.d.ts +41 -551
- package/dist/schemas/3.1/processed/responses-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/runtime-expression.d.ts +1 -1
- package/dist/schemas/3.1/processed/runtime-expression.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/runtime-expression.js +6 -6
- package/dist/schemas/3.1/processed/runtime-expression.js.map +2 -2
- package/dist/schemas/3.1/processed/schema-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/schema-object.js +4 -1
- package/dist/schemas/3.1/processed/schema-object.js.map +2 -2
- package/dist/schemas/3.1/processed/security-requirement-object.d.ts +1 -1
- package/dist/schemas/3.1/processed/security-requirement-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/security-scheme-object.d.ts +63 -715
- package/dist/schemas/3.1/processed/security-scheme-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/server-object.d.ts +3 -37
- package/dist/schemas/3.1/processed/server-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/server-variable-object.d.ts +2 -21
- package/dist/schemas/3.1/processed/server-variable-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/tag-object.d.ts +2 -25
- package/dist/schemas/3.1/processed/tag-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/webhooks-object.d.ts +66 -66
- package/dist/schemas/3.1/processed/webhooks-object.d.ts.map +1 -1
- package/dist/schemas/3.1/processed/xml-object.d.ts +1 -31
- package/dist/schemas/3.1/processed/xml-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts +54 -1745
- package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/callback-object.d.ts +83 -83
- package/dist/schemas/3.1/unprocessed/callback-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/components-object.d.ts +2823 -26982
- package/dist/schemas/3.1/unprocessed/components-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/contact-object.d.ts +1 -9
- package/dist/schemas/3.1/unprocessed/contact-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts +1 -7
- package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/encoding-object.d.ts +21 -365
- package/dist/schemas/3.1/unprocessed/encoding-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/example-object.d.ts +1 -11
- package/dist/schemas/3.1/unprocessed/example-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts +1 -7
- package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/header-object.d.ts +18 -179
- package/dist/schemas/3.1/unprocessed/header-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/info-object.d.ts +3 -43
- package/dist/schemas/3.1/unprocessed/info-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/license-object.d.ts +1 -9
- package/dist/schemas/3.1/unprocessed/license-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/link-object.d.ts +6 -60
- package/dist/schemas/3.1/unprocessed/link-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts +3 -31
- package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/media-type-object.d.ts +27 -688
- package/dist/schemas/3.1/unprocessed/media-type-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts +133 -3719
- package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/parameter-object.d.ts +48 -1129
- package/dist/schemas/3.1/unprocessed/parameter-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/path-item-object.d.ts +2052 -7728
- package/dist/schemas/3.1/unprocessed/path-item-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/paths-object.d.ts +2053 -7701
- package/dist/schemas/3.1/unprocessed/paths-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/reference-object.d.ts +1 -21
- package/dist/schemas/3.1/unprocessed/reference-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/request-body-object.d.ts +36 -522
- package/dist/schemas/3.1/unprocessed/request-body-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/response-object.d.ts +56 -1586
- package/dist/schemas/3.1/unprocessed/response-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/responses-object.d.ts +57 -1582
- package/dist/schemas/3.1/unprocessed/responses-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts +1 -1
- package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/schema-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/schema-object.js +4 -1
- package/dist/schemas/3.1/unprocessed/schema-object.js.map +2 -2
- package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts +1 -1
- package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts +63 -495
- package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/server-object.d.ts +3 -27
- package/dist/schemas/3.1/unprocessed/server-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts +2 -10
- package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/tag-object.d.ts +2 -22
- package/dist/schemas/3.1/unprocessed/tag-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts +86 -86
- package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts.map +1 -1
- package/dist/schemas/3.1/unprocessed/xml-object.d.ts +1 -13
- package/dist/schemas/3.1/unprocessed/xml-object.d.ts.map +1 -1
- package/dist/schemas/extensions/x-additional-properties-name.d.ts +1 -5
- package/dist/schemas/extensions/x-additional-properties-name.d.ts.map +1 -1
- package/dist/schemas/extensions/x-code-samples.d.ts +5 -57
- package/dist/schemas/extensions/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/x-display-name.d.ts +1 -5
- package/dist/schemas/extensions/x-display-name.d.ts.map +1 -1
- package/dist/schemas/extensions/x-enum-descriptions.d.ts +1 -5
- package/dist/schemas/extensions/x-enum-descriptions.d.ts.map +1 -1
- package/dist/schemas/extensions/x-internal.d.ts +1 -5
- package/dist/schemas/extensions/x-internal.d.ts.map +1 -1
- package/dist/schemas/extensions/x-post-response.d.ts +1 -5
- package/dist/schemas/extensions/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-credentials-location.d.ts +21 -0
- package/dist/schemas/extensions/x-scalar-credentials-location.d.ts.map +1 -0
- package/dist/schemas/extensions/x-scalar-credentials-location.js +8 -0
- package/dist/schemas/extensions/x-scalar-credentials-location.js.map +7 -0
- package/dist/schemas/extensions/x-scalar-icon.d.ts +1 -5
- package/dist/schemas/extensions/x-scalar-icon.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-ignore.d.ts +1 -5
- package/dist/schemas/extensions/x-scalar-ignore.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts +1 -5
- package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-sdk-installation.d.ts +2 -18
- package/dist/schemas/extensions/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-security-body.d.ts +1 -5
- package/dist/schemas/extensions/x-scalar-security-body.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-security-query.d.ts +1 -5
- package/dist/schemas/extensions/x-scalar-security-query.d.ts.map +1 -1
- package/dist/schemas/extensions/x-scalar-stability.d.ts +4 -6
- package/dist/schemas/extensions/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/x-tag-groups.d.ts +4 -28
- package/dist/schemas/extensions/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/x-tokenName.d.ts +1 -5
- package/dist/schemas/extensions/x-tokenName.d.ts.map +1 -1
- package/dist/schemas/extensions/x-use-pkce.d.ts +6 -9
- package/dist/schemas/extensions/x-use-pkce.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,220 +1,63 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ApiKeyInValues: readonly ["query", "header", "cookie"];
|
|
3
|
-
export declare const ApiKeySchema: z.ZodObject<
|
|
4
|
-
/**
|
|
5
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
6
|
-
*/
|
|
3
|
+
export declare const ApiKeySchema: z.ZodObject<{
|
|
7
4
|
description: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, {
|
|
9
|
-
/**
|
|
10
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
11
|
-
* "openIdConnect".
|
|
12
|
-
*/
|
|
13
5
|
type: z.ZodLiteral<"apiKey">;
|
|
14
|
-
/**
|
|
15
|
-
* REQUIRED. The name of the header, query or cookie parameter to be used.
|
|
16
|
-
*
|
|
17
|
-
* TODO: Why do we use an empty string as the default?
|
|
18
|
-
*/
|
|
19
6
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
type: "apiKey";
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
type: "apiKey";
|
|
31
|
-
description?: string | undefined;
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
in?: unknown;
|
|
34
|
-
}>;
|
|
35
|
-
export declare const HttpSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
36
|
-
/**
|
|
37
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
38
|
-
*/
|
|
7
|
+
in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
query: "query";
|
|
9
|
+
header: "header";
|
|
10
|
+
cookie: "cookie";
|
|
11
|
+
}>>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const HttpSchema: z.ZodObject<{
|
|
39
14
|
description: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, {
|
|
41
|
-
/**
|
|
42
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
43
|
-
* "openIdConnect".
|
|
44
|
-
*/
|
|
45
15
|
type: z.ZodLiteral<"http">;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an
|
|
54
|
-
* authorization server, so this information is primarily for documentation purposes.
|
|
55
|
-
*/
|
|
56
|
-
bearerFormat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodLiteral<"bearer">, z.ZodString]>>;
|
|
57
|
-
}>, "strip", z.ZodTypeAny, {
|
|
58
|
-
type: "http";
|
|
59
|
-
scheme: "basic" | "bearer";
|
|
60
|
-
description?: string | undefined;
|
|
61
|
-
bearerFormat?: string | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
type: "http";
|
|
64
|
-
description?: string | undefined;
|
|
65
|
-
scheme?: string | undefined;
|
|
66
|
-
bearerFormat?: string | undefined;
|
|
67
|
-
}>;
|
|
68
|
-
export declare const OpenIdConnectSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
69
|
-
/**
|
|
70
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
71
|
-
*/
|
|
16
|
+
scheme: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
17
|
+
basic: "basic";
|
|
18
|
+
bearer: "bearer";
|
|
19
|
+
}>>>>;
|
|
20
|
+
bearerFormat: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"JWT">, z.ZodLiteral<"bearer">, z.ZodString]>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const OpenIdConnectSchema: z.ZodObject<{
|
|
72
23
|
description: z.ZodOptional<z.ZodString>;
|
|
73
|
-
}, {
|
|
74
|
-
/**
|
|
75
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
76
|
-
* "openIdConnect".
|
|
77
|
-
*/
|
|
78
24
|
type: z.ZodLiteral<"openIdConnect">;
|
|
79
|
-
/**
|
|
80
|
-
* REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
|
|
81
|
-
*/
|
|
82
25
|
openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
83
|
-
}
|
|
84
|
-
type: "openIdConnect";
|
|
85
|
-
openIdConnectUrl: string;
|
|
86
|
-
description?: string | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
type: "openIdConnect";
|
|
89
|
-
description?: string | undefined;
|
|
90
|
-
openIdConnectUrl?: string | undefined;
|
|
91
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
92
27
|
/**
|
|
93
28
|
* OAuth Flow Object
|
|
94
29
|
*
|
|
95
30
|
* Configuration details for a supported OAuth Flow
|
|
96
31
|
*/
|
|
97
32
|
export declare const OAuthFlowObjectSchema: z.ZodObject<{
|
|
98
|
-
/**
|
|
99
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
100
|
-
* the use of TLS.
|
|
101
|
-
*/
|
|
102
33
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
-
/**
|
|
104
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
105
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
106
|
-
*/
|
|
107
34
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
refreshUrl?: string | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
refreshUrl?: string | undefined;
|
|
113
|
-
scopes?: unknown;
|
|
114
|
-
}>;
|
|
115
|
-
export declare const ImplicitFlowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
116
|
-
/**
|
|
117
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
118
|
-
* the use of TLS.
|
|
119
|
-
*/
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const ImplicitFlowSchema: z.ZodObject<{
|
|
120
37
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
121
|
-
/**
|
|
122
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
123
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
124
|
-
*/
|
|
125
38
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
126
|
-
}, {
|
|
127
39
|
type: z.ZodOptional<z.ZodLiteral<"implicit">>;
|
|
128
40
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
authorizationUrl: string;
|
|
132
|
-
type?: "implicit" | undefined;
|
|
133
|
-
refreshUrl?: string | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
type?: "implicit" | undefined;
|
|
136
|
-
refreshUrl?: string | undefined;
|
|
137
|
-
scopes?: unknown;
|
|
138
|
-
authorizationUrl?: string | undefined;
|
|
139
|
-
}>;
|
|
140
|
-
export declare const PasswordFlowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
-
/**
|
|
142
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
143
|
-
* the use of TLS.
|
|
144
|
-
*/
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const PasswordFlowSchema: z.ZodObject<{
|
|
145
43
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
146
|
-
/**
|
|
147
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
148
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
149
|
-
*/
|
|
150
44
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
151
|
-
}, {
|
|
152
45
|
type: z.ZodOptional<z.ZodLiteral<"password">>;
|
|
153
46
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
tokenUrl: string;
|
|
157
|
-
type?: "password" | undefined;
|
|
158
|
-
refreshUrl?: string | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
type?: "password" | undefined;
|
|
161
|
-
refreshUrl?: string | undefined;
|
|
162
|
-
scopes?: unknown;
|
|
163
|
-
tokenUrl?: string | undefined;
|
|
164
|
-
}>;
|
|
165
|
-
export declare const ClientCredentialsFlowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
166
|
-
/**
|
|
167
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
168
|
-
* the use of TLS.
|
|
169
|
-
*/
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const ClientCredentialsFlowSchema: z.ZodObject<{
|
|
170
49
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
171
|
-
/**
|
|
172
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
173
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
174
|
-
*/
|
|
175
50
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
176
|
-
}, {
|
|
177
51
|
type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
|
|
178
52
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
tokenUrl: string;
|
|
182
|
-
type?: "clientCredentials" | undefined;
|
|
183
|
-
refreshUrl?: string | undefined;
|
|
184
|
-
}, {
|
|
185
|
-
type?: "clientCredentials" | undefined;
|
|
186
|
-
refreshUrl?: string | undefined;
|
|
187
|
-
scopes?: unknown;
|
|
188
|
-
tokenUrl?: string | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
export declare const AuthorizationCodeFlowSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
191
|
-
/**
|
|
192
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
193
|
-
* the use of TLS.
|
|
194
|
-
*/
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const AuthorizationCodeFlowSchema: z.ZodObject<{
|
|
195
55
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
196
|
-
/**
|
|
197
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
198
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
199
|
-
*/
|
|
200
56
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
201
|
-
}, {
|
|
202
57
|
type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
|
|
203
58
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
204
59
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
205
|
-
}
|
|
206
|
-
scopes: Record<string, string | undefined>;
|
|
207
|
-
authorizationUrl: string;
|
|
208
|
-
tokenUrl: string;
|
|
209
|
-
type?: "authorizationCode" | undefined;
|
|
210
|
-
refreshUrl?: string | undefined;
|
|
211
|
-
}, {
|
|
212
|
-
type?: "authorizationCode" | undefined;
|
|
213
|
-
refreshUrl?: string | undefined;
|
|
214
|
-
scopes?: unknown;
|
|
215
|
-
authorizationUrl?: string | undefined;
|
|
216
|
-
tokenUrl?: string | undefined;
|
|
217
|
-
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
218
61
|
/**
|
|
219
62
|
* OAuth Flows Object
|
|
220
63
|
*
|
|
@@ -222,256 +65,41 @@ export declare const AuthorizationCodeFlowSchema: z.ZodObject<z.objectUtil.exten
|
|
|
222
65
|
*
|
|
223
66
|
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oauth-flows-object
|
|
224
67
|
*/
|
|
225
|
-
export declare const OAuthFlowsObjectSchema: z.ZodObject<
|
|
226
|
-
/**
|
|
227
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
228
|
-
*/
|
|
68
|
+
export declare const OAuthFlowsObjectSchema: z.ZodObject<{
|
|
229
69
|
description: z.ZodOptional<z.ZodString>;
|
|
230
|
-
}, {
|
|
231
|
-
/**
|
|
232
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
233
|
-
* "openIdConnect".
|
|
234
|
-
*/
|
|
235
70
|
type: z.ZodLiteral<"oauth2">;
|
|
236
|
-
/**
|
|
237
|
-
* REQUIRED. An object containing configuration information for the flow types supported.
|
|
238
|
-
*/
|
|
239
71
|
flows: z.ZodObject<{
|
|
240
|
-
implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<
|
|
241
|
-
/**
|
|
242
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
243
|
-
* the use of TLS.
|
|
244
|
-
*/
|
|
72
|
+
implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
245
73
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
246
|
-
/**
|
|
247
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
248
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
249
|
-
*/
|
|
250
74
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
251
|
-
}, {
|
|
252
75
|
type: z.ZodOptional<z.ZodLiteral<"implicit">>;
|
|
253
76
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
authorizationUrl: string;
|
|
257
|
-
type?: "implicit" | undefined;
|
|
258
|
-
refreshUrl?: string | undefined;
|
|
259
|
-
}, {
|
|
260
|
-
type?: "implicit" | undefined;
|
|
261
|
-
refreshUrl?: string | undefined;
|
|
262
|
-
scopes?: unknown;
|
|
263
|
-
authorizationUrl?: string | undefined;
|
|
264
|
-
}>>>;
|
|
265
|
-
password: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
266
|
-
/**
|
|
267
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
268
|
-
* the use of TLS.
|
|
269
|
-
*/
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
password: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
270
79
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
271
|
-
/**
|
|
272
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
273
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
274
|
-
*/
|
|
275
80
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
276
|
-
}, {
|
|
277
81
|
type: z.ZodOptional<z.ZodLiteral<"password">>;
|
|
278
82
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
tokenUrl: string;
|
|
282
|
-
type?: "password" | undefined;
|
|
283
|
-
refreshUrl?: string | undefined;
|
|
284
|
-
}, {
|
|
285
|
-
type?: "password" | undefined;
|
|
286
|
-
refreshUrl?: string | undefined;
|
|
287
|
-
scopes?: unknown;
|
|
288
|
-
tokenUrl?: string | undefined;
|
|
289
|
-
}>>>;
|
|
290
|
-
clientCredentials: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
291
|
-
/**
|
|
292
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
293
|
-
* the use of TLS.
|
|
294
|
-
*/
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
clientCredentials: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
295
85
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
296
|
-
/**
|
|
297
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
298
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
299
|
-
*/
|
|
300
86
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
301
|
-
}, {
|
|
302
87
|
type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
|
|
303
88
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
tokenUrl: string;
|
|
307
|
-
type?: "clientCredentials" | undefined;
|
|
308
|
-
refreshUrl?: string | undefined;
|
|
309
|
-
}, {
|
|
310
|
-
type?: "clientCredentials" | undefined;
|
|
311
|
-
refreshUrl?: string | undefined;
|
|
312
|
-
scopes?: unknown;
|
|
313
|
-
tokenUrl?: string | undefined;
|
|
314
|
-
}>>>;
|
|
315
|
-
authorizationCode: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
316
|
-
/**
|
|
317
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
318
|
-
* the use of TLS.
|
|
319
|
-
*/
|
|
89
|
+
}, z.core.$strip>>>;
|
|
90
|
+
authorizationCode: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
320
91
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
321
|
-
/**
|
|
322
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
323
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
324
|
-
*/
|
|
325
92
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
326
|
-
}, {
|
|
327
93
|
type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
|
|
328
94
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
329
95
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
type?: "authorizationCode" | undefined;
|
|
335
|
-
refreshUrl?: string | undefined;
|
|
336
|
-
}, {
|
|
337
|
-
type?: "authorizationCode" | undefined;
|
|
338
|
-
refreshUrl?: string | undefined;
|
|
339
|
-
scopes?: unknown;
|
|
340
|
-
authorizationUrl?: string | undefined;
|
|
341
|
-
tokenUrl?: string | undefined;
|
|
342
|
-
}>>>;
|
|
343
|
-
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
implicit?: {
|
|
345
|
-
scopes: Record<string, string | undefined>;
|
|
346
|
-
authorizationUrl: string;
|
|
347
|
-
type?: "implicit" | undefined;
|
|
348
|
-
refreshUrl?: string | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
password?: {
|
|
351
|
-
scopes: Record<string, string | undefined>;
|
|
352
|
-
tokenUrl: string;
|
|
353
|
-
type?: "password" | undefined;
|
|
354
|
-
refreshUrl?: string | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
clientCredentials?: {
|
|
357
|
-
scopes: Record<string, string | undefined>;
|
|
358
|
-
tokenUrl: string;
|
|
359
|
-
type?: "clientCredentials" | undefined;
|
|
360
|
-
refreshUrl?: string | undefined;
|
|
361
|
-
} | undefined;
|
|
362
|
-
authorizationCode?: {
|
|
363
|
-
scopes: Record<string, string | undefined>;
|
|
364
|
-
authorizationUrl: string;
|
|
365
|
-
tokenUrl: string;
|
|
366
|
-
type?: "authorizationCode" | undefined;
|
|
367
|
-
refreshUrl?: string | undefined;
|
|
368
|
-
} | undefined;
|
|
369
|
-
}, {
|
|
370
|
-
implicit?: {
|
|
371
|
-
type?: "implicit" | undefined;
|
|
372
|
-
refreshUrl?: string | undefined;
|
|
373
|
-
scopes?: unknown;
|
|
374
|
-
authorizationUrl?: string | undefined;
|
|
375
|
-
} | undefined;
|
|
376
|
-
password?: {
|
|
377
|
-
type?: "password" | undefined;
|
|
378
|
-
refreshUrl?: string | undefined;
|
|
379
|
-
scopes?: unknown;
|
|
380
|
-
tokenUrl?: string | undefined;
|
|
381
|
-
} | undefined;
|
|
382
|
-
clientCredentials?: {
|
|
383
|
-
type?: "clientCredentials" | undefined;
|
|
384
|
-
refreshUrl?: string | undefined;
|
|
385
|
-
scopes?: unknown;
|
|
386
|
-
tokenUrl?: string | undefined;
|
|
387
|
-
} | undefined;
|
|
388
|
-
authorizationCode?: {
|
|
389
|
-
type?: "authorizationCode" | undefined;
|
|
390
|
-
refreshUrl?: string | undefined;
|
|
391
|
-
scopes?: unknown;
|
|
392
|
-
authorizationUrl?: string | undefined;
|
|
393
|
-
tokenUrl?: string | undefined;
|
|
394
|
-
} | undefined;
|
|
395
|
-
}>;
|
|
396
|
-
}>, "strip", z.ZodTypeAny, {
|
|
397
|
-
type: "oauth2";
|
|
398
|
-
flows: {
|
|
399
|
-
implicit?: {
|
|
400
|
-
scopes: Record<string, string | undefined>;
|
|
401
|
-
authorizationUrl: string;
|
|
402
|
-
type?: "implicit" | undefined;
|
|
403
|
-
refreshUrl?: string | undefined;
|
|
404
|
-
} | undefined;
|
|
405
|
-
password?: {
|
|
406
|
-
scopes: Record<string, string | undefined>;
|
|
407
|
-
tokenUrl: string;
|
|
408
|
-
type?: "password" | undefined;
|
|
409
|
-
refreshUrl?: string | undefined;
|
|
410
|
-
} | undefined;
|
|
411
|
-
clientCredentials?: {
|
|
412
|
-
scopes: Record<string, string | undefined>;
|
|
413
|
-
tokenUrl: string;
|
|
414
|
-
type?: "clientCredentials" | undefined;
|
|
415
|
-
refreshUrl?: string | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
authorizationCode?: {
|
|
418
|
-
scopes: Record<string, string | undefined>;
|
|
419
|
-
authorizationUrl: string;
|
|
420
|
-
tokenUrl: string;
|
|
421
|
-
type?: "authorizationCode" | undefined;
|
|
422
|
-
refreshUrl?: string | undefined;
|
|
423
|
-
} | undefined;
|
|
424
|
-
};
|
|
425
|
-
description?: string | undefined;
|
|
426
|
-
}, {
|
|
427
|
-
type: "oauth2";
|
|
428
|
-
flows: {
|
|
429
|
-
implicit?: {
|
|
430
|
-
type?: "implicit" | undefined;
|
|
431
|
-
refreshUrl?: string | undefined;
|
|
432
|
-
scopes?: unknown;
|
|
433
|
-
authorizationUrl?: string | undefined;
|
|
434
|
-
} | undefined;
|
|
435
|
-
password?: {
|
|
436
|
-
type?: "password" | undefined;
|
|
437
|
-
refreshUrl?: string | undefined;
|
|
438
|
-
scopes?: unknown;
|
|
439
|
-
tokenUrl?: string | undefined;
|
|
440
|
-
} | undefined;
|
|
441
|
-
clientCredentials?: {
|
|
442
|
-
type?: "clientCredentials" | undefined;
|
|
443
|
-
refreshUrl?: string | undefined;
|
|
444
|
-
scopes?: unknown;
|
|
445
|
-
tokenUrl?: string | undefined;
|
|
446
|
-
} | undefined;
|
|
447
|
-
authorizationCode?: {
|
|
448
|
-
type?: "authorizationCode" | undefined;
|
|
449
|
-
refreshUrl?: string | undefined;
|
|
450
|
-
scopes?: unknown;
|
|
451
|
-
authorizationUrl?: string | undefined;
|
|
452
|
-
tokenUrl?: string | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
};
|
|
455
|
-
description?: string | undefined;
|
|
456
|
-
}>;
|
|
457
|
-
export declare const MutualTlsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
458
|
-
/**
|
|
459
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
460
|
-
*/
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const MutualTlsSchema: z.ZodObject<{
|
|
461
100
|
description: z.ZodOptional<z.ZodString>;
|
|
462
|
-
}, {
|
|
463
|
-
/**
|
|
464
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
465
|
-
* "openIdConnect".
|
|
466
|
-
*/
|
|
467
101
|
type: z.ZodLiteral<"mutualTLS">;
|
|
468
|
-
}
|
|
469
|
-
type: "mutualTLS";
|
|
470
|
-
description?: string | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
type: "mutualTLS";
|
|
473
|
-
description?: string | undefined;
|
|
474
|
-
}>;
|
|
102
|
+
}, z.core.$strip>;
|
|
475
103
|
/**
|
|
476
104
|
* Security Scheme Object
|
|
477
105
|
*
|
|
@@ -485,339 +113,59 @@ export declare const MutualTlsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
485
113
|
*
|
|
486
114
|
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object
|
|
487
115
|
*/
|
|
488
|
-
export declare const SecuritySchemeObjectSchema: z.ZodUnion<[z.ZodObject<
|
|
489
|
-
/**
|
|
490
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
491
|
-
*/
|
|
116
|
+
export declare const SecuritySchemeObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
492
117
|
description: z.ZodOptional<z.ZodString>;
|
|
493
|
-
}, {
|
|
494
|
-
/**
|
|
495
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
496
|
-
* "openIdConnect".
|
|
497
|
-
*/
|
|
498
118
|
type: z.ZodLiteral<"apiKey">;
|
|
499
|
-
/**
|
|
500
|
-
* REQUIRED. The name of the header, query or cookie parameter to be used.
|
|
501
|
-
*
|
|
502
|
-
* TODO: Why do we use an empty string as the default?
|
|
503
|
-
*/
|
|
504
119
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
in: "query" | "header" | "cookie";
|
|
512
|
-
type: "apiKey";
|
|
513
|
-
description?: string | undefined;
|
|
514
|
-
}, {
|
|
515
|
-
type: "apiKey";
|
|
516
|
-
description?: string | undefined;
|
|
517
|
-
name?: string | undefined;
|
|
518
|
-
in?: unknown;
|
|
519
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
520
|
-
/**
|
|
521
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
522
|
-
*/
|
|
120
|
+
in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
query: "query";
|
|
122
|
+
header: "header";
|
|
123
|
+
cookie: "cookie";
|
|
124
|
+
}>>>>;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
523
126
|
description: z.ZodOptional<z.ZodString>;
|
|
524
|
-
}, {
|
|
525
|
-
/**
|
|
526
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
527
|
-
* "openIdConnect".
|
|
528
|
-
*/
|
|
529
127
|
type: z.ZodLiteral<"http">;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an
|
|
538
|
-
* authorization server, so this information is primarily for documentation purposes.
|
|
539
|
-
*/
|
|
540
|
-
bearerFormat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodLiteral<"bearer">, z.ZodString]>>;
|
|
541
|
-
}>, "strip", z.ZodTypeAny, {
|
|
542
|
-
type: "http";
|
|
543
|
-
scheme: "basic" | "bearer";
|
|
544
|
-
description?: string | undefined;
|
|
545
|
-
bearerFormat?: string | undefined;
|
|
546
|
-
}, {
|
|
547
|
-
type: "http";
|
|
548
|
-
description?: string | undefined;
|
|
549
|
-
scheme?: string | undefined;
|
|
550
|
-
bearerFormat?: string | undefined;
|
|
551
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
552
|
-
/**
|
|
553
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
554
|
-
*/
|
|
128
|
+
scheme: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
129
|
+
basic: "basic";
|
|
130
|
+
bearer: "bearer";
|
|
131
|
+
}>>>>;
|
|
132
|
+
bearerFormat: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"JWT">, z.ZodLiteral<"bearer">, z.ZodString]>>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
134
|
description: z.ZodOptional<z.ZodString>;
|
|
556
|
-
}, {
|
|
557
|
-
/**
|
|
558
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
559
|
-
* "openIdConnect".
|
|
560
|
-
*/
|
|
561
135
|
type: z.ZodLiteral<"mutualTLS">;
|
|
562
|
-
}
|
|
563
|
-
type: "mutualTLS";
|
|
564
|
-
description?: string | undefined;
|
|
565
|
-
}, {
|
|
566
|
-
type: "mutualTLS";
|
|
567
|
-
description?: string | undefined;
|
|
568
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
569
|
-
/**
|
|
570
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
571
|
-
*/
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
572
137
|
description: z.ZodOptional<z.ZodString>;
|
|
573
|
-
}, {
|
|
574
|
-
/**
|
|
575
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
576
|
-
* "openIdConnect".
|
|
577
|
-
*/
|
|
578
138
|
type: z.ZodLiteral<"oauth2">;
|
|
579
|
-
/**
|
|
580
|
-
* REQUIRED. An object containing configuration information for the flow types supported.
|
|
581
|
-
*/
|
|
582
139
|
flows: z.ZodObject<{
|
|
583
|
-
implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<
|
|
584
|
-
/**
|
|
585
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
586
|
-
* the use of TLS.
|
|
587
|
-
*/
|
|
140
|
+
implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
588
141
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
589
|
-
/**
|
|
590
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
591
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
592
|
-
*/
|
|
593
142
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
594
|
-
}, {
|
|
595
143
|
type: z.ZodOptional<z.ZodLiteral<"implicit">>;
|
|
596
144
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
authorizationUrl: string;
|
|
600
|
-
type?: "implicit" | undefined;
|
|
601
|
-
refreshUrl?: string | undefined;
|
|
602
|
-
}, {
|
|
603
|
-
type?: "implicit" | undefined;
|
|
604
|
-
refreshUrl?: string | undefined;
|
|
605
|
-
scopes?: unknown;
|
|
606
|
-
authorizationUrl?: string | undefined;
|
|
607
|
-
}>>>;
|
|
608
|
-
password: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
609
|
-
/**
|
|
610
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
611
|
-
* the use of TLS.
|
|
612
|
-
*/
|
|
145
|
+
}, z.core.$strip>>>;
|
|
146
|
+
password: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
613
147
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
614
|
-
/**
|
|
615
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
616
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
617
|
-
*/
|
|
618
148
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
619
|
-
}, {
|
|
620
149
|
type: z.ZodOptional<z.ZodLiteral<"password">>;
|
|
621
150
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
tokenUrl: string;
|
|
625
|
-
type?: "password" | undefined;
|
|
626
|
-
refreshUrl?: string | undefined;
|
|
627
|
-
}, {
|
|
628
|
-
type?: "password" | undefined;
|
|
629
|
-
refreshUrl?: string | undefined;
|
|
630
|
-
scopes?: unknown;
|
|
631
|
-
tokenUrl?: string | undefined;
|
|
632
|
-
}>>>;
|
|
633
|
-
clientCredentials: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
634
|
-
/**
|
|
635
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
636
|
-
* the use of TLS.
|
|
637
|
-
*/
|
|
151
|
+
}, z.core.$strip>>>;
|
|
152
|
+
clientCredentials: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
638
153
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
639
|
-
/**
|
|
640
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
641
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
642
|
-
*/
|
|
643
154
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
644
|
-
}, {
|
|
645
155
|
type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
|
|
646
156
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
tokenUrl: string;
|
|
650
|
-
type?: "clientCredentials" | undefined;
|
|
651
|
-
refreshUrl?: string | undefined;
|
|
652
|
-
}, {
|
|
653
|
-
type?: "clientCredentials" | undefined;
|
|
654
|
-
refreshUrl?: string | undefined;
|
|
655
|
-
scopes?: unknown;
|
|
656
|
-
tokenUrl?: string | undefined;
|
|
657
|
-
}>>>;
|
|
658
|
-
authorizationCode: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
659
|
-
/**
|
|
660
|
-
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires
|
|
661
|
-
* the use of TLS.
|
|
662
|
-
*/
|
|
157
|
+
}, z.core.$strip>>>;
|
|
158
|
+
authorizationCode: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
663
159
|
refreshUrl: z.ZodOptional<z.ZodString>;
|
|
664
|
-
/**
|
|
665
|
-
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
666
|
-
* between the scope name and a short description for it. The map MAY be empty.
|
|
667
|
-
*/
|
|
668
160
|
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
|
|
669
|
-
}, {
|
|
670
161
|
type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
|
|
671
162
|
authorizationUrl: z.ZodDefault<z.ZodString>;
|
|
672
163
|
tokenUrl: z.ZodDefault<z.ZodString>;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
tokenUrl: string;
|
|
677
|
-
type?: "authorizationCode" | undefined;
|
|
678
|
-
refreshUrl?: string | undefined;
|
|
679
|
-
}, {
|
|
680
|
-
type?: "authorizationCode" | undefined;
|
|
681
|
-
refreshUrl?: string | undefined;
|
|
682
|
-
scopes?: unknown;
|
|
683
|
-
authorizationUrl?: string | undefined;
|
|
684
|
-
tokenUrl?: string | undefined;
|
|
685
|
-
}>>>;
|
|
686
|
-
}, "strip", z.ZodTypeAny, {
|
|
687
|
-
implicit?: {
|
|
688
|
-
scopes: Record<string, string | undefined>;
|
|
689
|
-
authorizationUrl: string;
|
|
690
|
-
type?: "implicit" | undefined;
|
|
691
|
-
refreshUrl?: string | undefined;
|
|
692
|
-
} | undefined;
|
|
693
|
-
password?: {
|
|
694
|
-
scopes: Record<string, string | undefined>;
|
|
695
|
-
tokenUrl: string;
|
|
696
|
-
type?: "password" | undefined;
|
|
697
|
-
refreshUrl?: string | undefined;
|
|
698
|
-
} | undefined;
|
|
699
|
-
clientCredentials?: {
|
|
700
|
-
scopes: Record<string, string | undefined>;
|
|
701
|
-
tokenUrl: string;
|
|
702
|
-
type?: "clientCredentials" | undefined;
|
|
703
|
-
refreshUrl?: string | undefined;
|
|
704
|
-
} | undefined;
|
|
705
|
-
authorizationCode?: {
|
|
706
|
-
scopes: Record<string, string | undefined>;
|
|
707
|
-
authorizationUrl: string;
|
|
708
|
-
tokenUrl: string;
|
|
709
|
-
type?: "authorizationCode" | undefined;
|
|
710
|
-
refreshUrl?: string | undefined;
|
|
711
|
-
} | undefined;
|
|
712
|
-
}, {
|
|
713
|
-
implicit?: {
|
|
714
|
-
type?: "implicit" | undefined;
|
|
715
|
-
refreshUrl?: string | undefined;
|
|
716
|
-
scopes?: unknown;
|
|
717
|
-
authorizationUrl?: string | undefined;
|
|
718
|
-
} | undefined;
|
|
719
|
-
password?: {
|
|
720
|
-
type?: "password" | undefined;
|
|
721
|
-
refreshUrl?: string | undefined;
|
|
722
|
-
scopes?: unknown;
|
|
723
|
-
tokenUrl?: string | undefined;
|
|
724
|
-
} | undefined;
|
|
725
|
-
clientCredentials?: {
|
|
726
|
-
type?: "clientCredentials" | undefined;
|
|
727
|
-
refreshUrl?: string | undefined;
|
|
728
|
-
scopes?: unknown;
|
|
729
|
-
tokenUrl?: string | undefined;
|
|
730
|
-
} | undefined;
|
|
731
|
-
authorizationCode?: {
|
|
732
|
-
type?: "authorizationCode" | undefined;
|
|
733
|
-
refreshUrl?: string | undefined;
|
|
734
|
-
scopes?: unknown;
|
|
735
|
-
authorizationUrl?: string | undefined;
|
|
736
|
-
tokenUrl?: string | undefined;
|
|
737
|
-
} | undefined;
|
|
738
|
-
}>;
|
|
739
|
-
}>, "strip", z.ZodTypeAny, {
|
|
740
|
-
type: "oauth2";
|
|
741
|
-
flows: {
|
|
742
|
-
implicit?: {
|
|
743
|
-
scopes: Record<string, string | undefined>;
|
|
744
|
-
authorizationUrl: string;
|
|
745
|
-
type?: "implicit" | undefined;
|
|
746
|
-
refreshUrl?: string | undefined;
|
|
747
|
-
} | undefined;
|
|
748
|
-
password?: {
|
|
749
|
-
scopes: Record<string, string | undefined>;
|
|
750
|
-
tokenUrl: string;
|
|
751
|
-
type?: "password" | undefined;
|
|
752
|
-
refreshUrl?: string | undefined;
|
|
753
|
-
} | undefined;
|
|
754
|
-
clientCredentials?: {
|
|
755
|
-
scopes: Record<string, string | undefined>;
|
|
756
|
-
tokenUrl: string;
|
|
757
|
-
type?: "clientCredentials" | undefined;
|
|
758
|
-
refreshUrl?: string | undefined;
|
|
759
|
-
} | undefined;
|
|
760
|
-
authorizationCode?: {
|
|
761
|
-
scopes: Record<string, string | undefined>;
|
|
762
|
-
authorizationUrl: string;
|
|
763
|
-
tokenUrl: string;
|
|
764
|
-
type?: "authorizationCode" | undefined;
|
|
765
|
-
refreshUrl?: string | undefined;
|
|
766
|
-
} | undefined;
|
|
767
|
-
};
|
|
768
|
-
description?: string | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
type: "oauth2";
|
|
771
|
-
flows: {
|
|
772
|
-
implicit?: {
|
|
773
|
-
type?: "implicit" | undefined;
|
|
774
|
-
refreshUrl?: string | undefined;
|
|
775
|
-
scopes?: unknown;
|
|
776
|
-
authorizationUrl?: string | undefined;
|
|
777
|
-
} | undefined;
|
|
778
|
-
password?: {
|
|
779
|
-
type?: "password" | undefined;
|
|
780
|
-
refreshUrl?: string | undefined;
|
|
781
|
-
scopes?: unknown;
|
|
782
|
-
tokenUrl?: string | undefined;
|
|
783
|
-
} | undefined;
|
|
784
|
-
clientCredentials?: {
|
|
785
|
-
type?: "clientCredentials" | undefined;
|
|
786
|
-
refreshUrl?: string | undefined;
|
|
787
|
-
scopes?: unknown;
|
|
788
|
-
tokenUrl?: string | undefined;
|
|
789
|
-
} | undefined;
|
|
790
|
-
authorizationCode?: {
|
|
791
|
-
type?: "authorizationCode" | undefined;
|
|
792
|
-
refreshUrl?: string | undefined;
|
|
793
|
-
scopes?: unknown;
|
|
794
|
-
authorizationUrl?: string | undefined;
|
|
795
|
-
tokenUrl?: string | undefined;
|
|
796
|
-
} | undefined;
|
|
797
|
-
};
|
|
798
|
-
description?: string | undefined;
|
|
799
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
800
|
-
/**
|
|
801
|
-
* A description for security scheme. CommonMark syntax MAY be used for rich text representation.
|
|
802
|
-
*/
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
803
167
|
description: z.ZodOptional<z.ZodString>;
|
|
804
|
-
}, {
|
|
805
|
-
/**
|
|
806
|
-
* REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2",
|
|
807
|
-
* "openIdConnect".
|
|
808
|
-
*/
|
|
809
168
|
type: z.ZodLiteral<"openIdConnect">;
|
|
810
|
-
/**
|
|
811
|
-
* REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
|
|
812
|
-
*/
|
|
813
169
|
openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
814
|
-
}
|
|
815
|
-
type: "openIdConnect";
|
|
816
|
-
openIdConnectUrl: string;
|
|
817
|
-
description?: string | undefined;
|
|
818
|
-
}, {
|
|
819
|
-
type: "openIdConnect";
|
|
820
|
-
description?: string | undefined;
|
|
821
|
-
openIdConnectUrl?: string | undefined;
|
|
822
|
-
}>]>;
|
|
170
|
+
}, z.core.$strip>]>;
|
|
823
171
|
//# sourceMappingURL=security-scheme-object.d.ts.map
|