@scalar/openapi-types 0.1.9 → 0.2.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.
Files changed (246) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +76 -0
  3. package/dist/schemas/3.1/processed/base-path-item-object.d.ts +603 -0
  4. package/dist/schemas/3.1/processed/base-path-item-object.d.ts.map +1 -0
  5. package/dist/schemas/3.1/processed/base-path-item-object.js +35 -0
  6. package/dist/schemas/3.1/processed/callback-object.d.ts +169 -0
  7. package/dist/schemas/3.1/processed/callback-object.d.ts.map +1 -0
  8. package/dist/schemas/3.1/processed/callback-object.js +17 -0
  9. package/dist/schemas/3.1/processed/components-object.d.ts +14411 -0
  10. package/dist/schemas/3.1/processed/components-object.d.ts.map +1 -0
  11. package/dist/schemas/3.1/processed/components-object.js +64 -0
  12. package/dist/schemas/3.1/processed/contact-object.d.ts +25 -0
  13. package/dist/schemas/3.1/processed/contact-object.d.ts.map +1 -0
  14. package/dist/schemas/3.1/processed/contact-object.js +19 -0
  15. package/dist/schemas/3.1/processed/discriminator-object.d.ts +32 -0
  16. package/dist/schemas/3.1/processed/discriminator-object.d.ts.map +1 -0
  17. package/dist/schemas/3.1/processed/discriminator-object.js +28 -0
  18. package/dist/schemas/3.1/processed/encoding-object.d.ts +191 -0
  19. package/dist/schemas/3.1/processed/encoding-object.d.ts.map +1 -0
  20. package/dist/schemas/3.1/processed/encoding-object.js +30 -0
  21. package/dist/schemas/3.1/processed/example-object.d.ts +43 -0
  22. package/dist/schemas/3.1/processed/example-object.d.ts.map +1 -0
  23. package/dist/schemas/3.1/processed/example-object.js +35 -0
  24. package/dist/schemas/3.1/processed/external-documentation-object.d.ts +21 -0
  25. package/dist/schemas/3.1/processed/external-documentation-object.d.ts.map +1 -0
  26. package/dist/schemas/3.1/processed/external-documentation-object.js +17 -0
  27. package/dist/schemas/3.1/processed/header-object.d.ts +161 -0
  28. package/dist/schemas/3.1/processed/header-object.d.ts.map +1 -0
  29. package/dist/schemas/3.1/processed/header-object.js +66 -0
  30. package/dist/schemas/3.1/processed/index.d.ts +31 -0
  31. package/dist/schemas/3.1/processed/index.d.ts.map +1 -0
  32. package/dist/schemas/3.1/processed/index.js +30 -0
  33. package/dist/schemas/3.1/processed/info-object.d.ts +89 -0
  34. package/dist/schemas/3.1/processed/info-object.d.ts.map +1 -0
  35. package/dist/schemas/3.1/processed/info-object.js +45 -0
  36. package/dist/schemas/3.1/processed/license-object.d.ts +27 -0
  37. package/dist/schemas/3.1/processed/license-object.d.ts.map +1 -0
  38. package/dist/schemas/3.1/processed/license-object.js +21 -0
  39. package/dist/schemas/3.1/processed/link-object.d.ts +110 -0
  40. package/dist/schemas/3.1/processed/link-object.d.ts.map +1 -0
  41. package/dist/schemas/3.1/processed/link-object.js +52 -0
  42. package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts +60 -0
  43. package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts.map +1 -0
  44. package/dist/schemas/3.1/processed/media-type-object-without-encoding.js +34 -0
  45. package/dist/schemas/3.1/processed/media-type-object.d.ts +289 -0
  46. package/dist/schemas/3.1/processed/media-type-object.d.ts.map +1 -0
  47. package/dist/schemas/3.1/processed/media-type-object.js +38 -0
  48. package/dist/schemas/3.1/processed/openapi-object.d.ts +31 -0
  49. package/dist/schemas/3.1/processed/openapi-object.d.ts.map +1 -0
  50. package/dist/schemas/3.1/processed/openapi-object.js +78 -0
  51. package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts +2094 -0
  52. package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts.map +1 -0
  53. package/dist/schemas/3.1/processed/operation-object-without-callbacks.js +72 -0
  54. package/dist/schemas/3.1/processed/operation-object.d.ts +16 -0
  55. package/dist/schemas/3.1/processed/operation-object.d.ts.map +1 -0
  56. package/dist/schemas/3.1/processed/operation-object.js +22 -0
  57. package/dist/schemas/3.1/processed/parameter-object.d.ts +476 -0
  58. package/dist/schemas/3.1/processed/parameter-object.d.ts.map +1 -0
  59. package/dist/schemas/3.1/processed/parameter-object.js +93 -0
  60. package/dist/schemas/3.1/processed/path-item-object-without-callbacks.d.ts +25 -0
  61. package/dist/schemas/3.1/processed/path-item-object-without-callbacks.d.ts.map +1 -0
  62. package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js +48 -0
  63. package/dist/schemas/3.1/processed/path-item-object.d.ts +7741 -0
  64. package/dist/schemas/3.1/processed/path-item-object.d.ts.map +1 -0
  65. package/dist/schemas/3.1/processed/path-item-object.js +48 -0
  66. package/dist/schemas/3.1/processed/paths-object.d.ts +7718 -0
  67. package/dist/schemas/3.1/processed/paths-object.d.ts.map +1 -0
  68. package/dist/schemas/3.1/processed/paths-object.js +23 -0
  69. package/dist/schemas/3.1/processed/request-body-object.d.ts +595 -0
  70. package/dist/schemas/3.1/processed/request-body-object.d.ts.map +1 -0
  71. package/dist/schemas/3.1/processed/request-body-object.js +33 -0
  72. package/dist/schemas/3.1/processed/response-object.d.ts +633 -0
  73. package/dist/schemas/3.1/processed/response-object.d.ts.map +1 -0
  74. package/dist/schemas/3.1/processed/response-object.js +36 -0
  75. package/dist/schemas/3.1/processed/responses-object.d.ts +626 -0
  76. package/dist/schemas/3.1/processed/responses-object.d.ts.map +1 -0
  77. package/dist/schemas/3.1/processed/responses-object.js +31 -0
  78. package/dist/schemas/3.1/processed/runtime-expression.d.ts +15 -0
  79. package/dist/schemas/3.1/processed/runtime-expression.d.ts.map +1 -0
  80. package/dist/schemas/3.1/processed/runtime-expression.js +98 -0
  81. package/dist/schemas/3.1/processed/schema-object.d.ts +8 -0
  82. package/dist/schemas/3.1/processed/schema-object.d.ts.map +1 -0
  83. package/dist/schemas/3.1/processed/schema-object.js +91 -0
  84. package/dist/schemas/3.1/processed/security-requirement-object.d.ts +21 -0
  85. package/dist/schemas/3.1/processed/security-requirement-object.d.ts.map +1 -0
  86. package/dist/schemas/3.1/processed/security-requirement-object.js +37 -0
  87. package/dist/schemas/3.1/processed/security-scheme-object.d.ts +823 -0
  88. package/dist/schemas/3.1/processed/security-scheme-object.d.ts.map +1 -0
  89. package/dist/schemas/3.1/processed/security-scheme-object.js +170 -0
  90. package/dist/schemas/3.1/processed/server-object.d.ts +52 -0
  91. package/dist/schemas/3.1/processed/server-object.d.ts.map +1 -0
  92. package/dist/schemas/3.1/processed/server-object.js +27 -0
  93. package/dist/schemas/3.1/processed/server-variable-object.d.ts +33 -0
  94. package/dist/schemas/3.1/processed/server-variable-object.d.ts.map +1 -0
  95. package/dist/schemas/3.1/processed/server-variable-object.js +27 -0
  96. package/dist/schemas/3.1/processed/tag-object.d.ts +41 -0
  97. package/dist/schemas/3.1/processed/tag-object.d.ts.map +1 -0
  98. package/dist/schemas/3.1/processed/tag-object.js +21 -0
  99. package/dist/schemas/3.1/processed/webhooks-object.d.ts +172 -0
  100. package/dist/schemas/3.1/processed/webhooks-object.d.ts.map +1 -0
  101. package/dist/schemas/3.1/processed/webhooks-object.js +19 -0
  102. package/dist/schemas/3.1/processed/xml-object.d.ts +51 -0
  103. package/dist/schemas/3.1/processed/xml-object.d.ts.map +1 -0
  104. package/dist/schemas/3.1/processed/xml-object.js +40 -0
  105. package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts +1811 -0
  106. package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts.map +1 -0
  107. package/dist/schemas/3.1/unprocessed/base-path-item-object.js +23 -0
  108. package/dist/schemas/3.1/unprocessed/callback-object.d.ts +168 -0
  109. package/dist/schemas/3.1/unprocessed/callback-object.d.ts.map +1 -0
  110. package/dist/schemas/3.1/unprocessed/callback-object.js +15 -0
  111. package/dist/schemas/3.1/unprocessed/components-object.d.ts +28835 -0
  112. package/dist/schemas/3.1/unprocessed/components-object.d.ts.map +1 -0
  113. package/dist/schemas/3.1/unprocessed/components-object.js +66 -0
  114. package/dist/schemas/3.1/unprocessed/contact-object.d.ts +21 -0
  115. package/dist/schemas/3.1/unprocessed/contact-object.d.ts.map +1 -0
  116. package/dist/schemas/3.1/unprocessed/contact-object.js +12 -0
  117. package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts +23 -0
  118. package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts.map +1 -0
  119. package/dist/schemas/3.1/unprocessed/discriminator-object.js +17 -0
  120. package/dist/schemas/3.1/unprocessed/encoding-object.d.ts +402 -0
  121. package/dist/schemas/3.1/unprocessed/encoding-object.d.ts.map +1 -0
  122. package/dist/schemas/3.1/unprocessed/encoding-object.js +26 -0
  123. package/dist/schemas/3.1/unprocessed/example-object.d.ts +28 -0
  124. package/dist/schemas/3.1/unprocessed/example-object.d.ts.map +1 -0
  125. package/dist/schemas/3.1/unprocessed/example-object.js +16 -0
  126. package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts +18 -0
  127. package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts.map +1 -0
  128. package/dist/schemas/3.1/unprocessed/external-documentation-object.js +12 -0
  129. package/dist/schemas/3.1/unprocessed/header-object.d.ts +217 -0
  130. package/dist/schemas/3.1/unprocessed/header-object.d.ts.map +1 -0
  131. package/dist/schemas/3.1/unprocessed/header-object.js +42 -0
  132. package/dist/schemas/3.1/unprocessed/index.d.ts +32 -0
  133. package/dist/schemas/3.1/unprocessed/index.d.ts.map +1 -0
  134. package/dist/schemas/3.1/unprocessed/index.js +31 -0
  135. package/dist/schemas/3.1/unprocessed/info-object.d.ts +66 -0
  136. package/dist/schemas/3.1/unprocessed/info-object.d.ts.map +1 -0
  137. package/dist/schemas/3.1/unprocessed/info-object.js +13 -0
  138. package/dist/schemas/3.1/unprocessed/license-object.d.ts +21 -0
  139. package/dist/schemas/3.1/unprocessed/license-object.d.ts.map +1 -0
  140. package/dist/schemas/3.1/unprocessed/license-object.js +12 -0
  141. package/dist/schemas/3.1/unprocessed/link-object.d.ts +86 -0
  142. package/dist/schemas/3.1/unprocessed/link-object.d.ts.map +1 -0
  143. package/dist/schemas/3.1/unprocessed/link-object.js +20 -0
  144. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts +46 -0
  145. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts.map +1 -0
  146. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js +12 -0
  147. package/dist/schemas/3.1/unprocessed/media-type-object.d.ts +728 -0
  148. package/dist/schemas/3.1/unprocessed/media-type-object.d.ts.map +1 -0
  149. package/dist/schemas/3.1/unprocessed/media-type-object.js +40 -0
  150. package/dist/schemas/3.1/unprocessed/openapi-object.d.ts +31 -0
  151. package/dist/schemas/3.1/unprocessed/openapi-object.d.ts.map +1 -0
  152. package/dist/schemas/3.1/unprocessed/openapi-object.js +12 -0
  153. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts +3893 -0
  154. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts.map +1 -0
  155. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js +45 -0
  156. package/dist/schemas/3.1/unprocessed/operation-object.d.ts +17 -0
  157. package/dist/schemas/3.1/unprocessed/operation-object.d.ts.map +1 -0
  158. package/dist/schemas/3.1/unprocessed/operation-object.js +23 -0
  159. package/dist/schemas/3.1/unprocessed/parameter-object.d.ts +1186 -0
  160. package/dist/schemas/3.1/unprocessed/parameter-object.d.ts.map +1 -0
  161. package/dist/schemas/3.1/unprocessed/parameter-object.js +31 -0
  162. package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.d.ts +25 -0
  163. package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.d.ts.map +1 -0
  164. package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js +48 -0
  165. package/dist/schemas/3.1/unprocessed/path-item-object.d.ts +9743 -0
  166. package/dist/schemas/3.1/unprocessed/path-item-object.d.ts.map +1 -0
  167. package/dist/schemas/3.1/unprocessed/path-item-object.js +62 -0
  168. package/dist/schemas/3.1/unprocessed/paths-object.d.ts +7717 -0
  169. package/dist/schemas/3.1/unprocessed/paths-object.d.ts.map +1 -0
  170. package/dist/schemas/3.1/unprocessed/paths-object.js +14 -0
  171. package/dist/schemas/3.1/unprocessed/reference-object.d.ts +36 -0
  172. package/dist/schemas/3.1/unprocessed/reference-object.d.ts.map +1 -0
  173. package/dist/schemas/3.1/unprocessed/reference-object.js +30 -0
  174. package/dist/schemas/3.1/unprocessed/request-body-object.d.ts +580 -0
  175. package/dist/schemas/3.1/unprocessed/request-body-object.d.ts.map +1 -0
  176. package/dist/schemas/3.1/unprocessed/request-body-object.js +12 -0
  177. package/dist/schemas/3.1/unprocessed/response-object.d.ts +1661 -0
  178. package/dist/schemas/3.1/unprocessed/response-object.d.ts.map +1 -0
  179. package/dist/schemas/3.1/unprocessed/response-object.js +34 -0
  180. package/dist/schemas/3.1/unprocessed/responses-object.d.ts +1669 -0
  181. package/dist/schemas/3.1/unprocessed/responses-object.d.ts.map +1 -0
  182. package/dist/schemas/3.1/unprocessed/responses-object.js +32 -0
  183. package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts +14 -0
  184. package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts.map +1 -0
  185. package/dist/schemas/3.1/unprocessed/runtime-expression.js +17 -0
  186. package/dist/schemas/3.1/unprocessed/schema-object.d.ts +8 -0
  187. package/dist/schemas/3.1/unprocessed/schema-object.d.ts.map +1 -0
  188. package/dist/schemas/3.1/unprocessed/schema-object.js +32 -0
  189. package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts +20 -0
  190. package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts.map +1 -0
  191. package/dist/schemas/3.1/unprocessed/security-requirement-object.js +23 -0
  192. package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts +590 -0
  193. package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts.map +1 -0
  194. package/dist/schemas/3.1/unprocessed/security-scheme-object.js +29 -0
  195. package/dist/schemas/3.1/unprocessed/server-object.d.ts +41 -0
  196. package/dist/schemas/3.1/unprocessed/server-object.d.ts.map +1 -0
  197. package/dist/schemas/3.1/unprocessed/server-object.js +12 -0
  198. package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts +21 -0
  199. package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts.map +1 -0
  200. package/dist/schemas/3.1/unprocessed/server-variable-object.js +12 -0
  201. package/dist/schemas/3.1/unprocessed/tag-object.d.ts +37 -0
  202. package/dist/schemas/3.1/unprocessed/tag-object.d.ts.map +1 -0
  203. package/dist/schemas/3.1/unprocessed/tag-object.js +13 -0
  204. package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts +212 -0
  205. package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts.map +1 -0
  206. package/dist/schemas/3.1/unprocessed/webhooks-object.js +19 -0
  207. package/dist/schemas/3.1/unprocessed/xml-object.d.ts +31 -0
  208. package/dist/schemas/3.1/unprocessed/xml-object.d.ts.map +1 -0
  209. package/dist/schemas/3.1/unprocessed/xml-object.js +16 -0
  210. package/dist/schemas/extensions/index.d.ts +11 -0
  211. package/dist/schemas/extensions/index.d.ts.map +1 -0
  212. package/dist/schemas/extensions/index.js +10 -0
  213. package/dist/schemas/extensions/x-additional-properties-name.d.ts +16 -0
  214. package/dist/schemas/extensions/x-additional-properties-name.d.ts.map +1 -0
  215. package/dist/schemas/extensions/x-additional-properties-name.js +14 -0
  216. package/dist/schemas/extensions/x-code-samples.d.ts +76 -0
  217. package/dist/schemas/extensions/x-code-samples.d.ts.map +1 -0
  218. package/dist/schemas/extensions/x-code-samples.js +14 -0
  219. package/dist/schemas/extensions/x-display-name.d.ts +17 -0
  220. package/dist/schemas/extensions/x-display-name.d.ts.map +1 -0
  221. package/dist/schemas/extensions/x-enum-descriptions.d.ts +22 -0
  222. package/dist/schemas/extensions/x-enum-descriptions.d.ts.map +1 -0
  223. package/dist/schemas/extensions/x-enum-descriptions.js +20 -0
  224. package/dist/schemas/extensions/x-internal.d.ts +9 -0
  225. package/dist/schemas/extensions/x-internal.d.ts.map +1 -0
  226. package/dist/schemas/extensions/x-internal.js +7 -0
  227. package/dist/schemas/extensions/x-scalar-icon.d.ts +9 -0
  228. package/dist/schemas/extensions/x-scalar-icon.d.ts.map +1 -0
  229. package/dist/schemas/extensions/x-scalar-icon.js +7 -0
  230. package/dist/schemas/extensions/x-scalar-ignore.d.ts +9 -0
  231. package/dist/schemas/extensions/x-scalar-ignore.d.ts.map +1 -0
  232. package/dist/schemas/extensions/x-scalar-ignore.js +7 -0
  233. package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts +9 -0
  234. package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts.map +1 -0
  235. package/dist/schemas/extensions/x-scalar-redirect-uri.js +7 -0
  236. package/dist/schemas/extensions/x-scalar-stability.d.ts +23 -0
  237. package/dist/schemas/extensions/x-scalar-stability.d.ts.map +1 -0
  238. package/dist/schemas/extensions/x-scalar-stability.js +23 -0
  239. package/dist/schemas/extensions/x-tag-groups.d.ts +39 -0
  240. package/dist/schemas/extensions/x-tag-groups.d.ts.map +1 -0
  241. package/dist/schemas/extensions/x-tag-groups.js +20 -0
  242. package/dist/schemas/extensions/x-use-pkce.d.ts +14 -0
  243. package/dist/schemas/extensions/x-use-pkce.d.ts.map +1 -0
  244. package/dist/schemas/extensions/x-use-pkce.js +12 -0
  245. package/package.json +20 -2
  246. package/LICENSE +0 -21
@@ -0,0 +1,823 @@
1
+ import { z } from 'zod';
2
+ export declare const ApiKeyInValues: readonly ["query", "header", "cookie"];
3
+ export declare const ApiKeySchema: z.ZodObject<z.objectUtil.extendShape<{
4
+ /**
5
+ * A description for security scheme. CommonMark syntax MAY be used for rich text representation.
6
+ */
7
+ 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
+ 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
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20
+ /**
21
+ * REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".
22
+ */
23
+ in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<["query", "header", "cookie"]>>>>;
24
+ }>, "strip", z.ZodTypeAny, {
25
+ name: string;
26
+ in: "query" | "header" | "cookie";
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
+ */
39
+ 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
+ type: z.ZodLiteral<"http">;
46
+ /**
47
+ * REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.
48
+ * The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive,
49
+ * as defined in RFC7235.
50
+ */
51
+ scheme: z.ZodDefault<z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodEnum<["basic", "bearer"]>>>>;
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
+ */
72
+ 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
+ type: z.ZodLiteral<"openIdConnect">;
79
+ /**
80
+ * REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
81
+ */
82
+ openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
83
+ }>, "strip", z.ZodTypeAny, {
84
+ type: "openIdConnect";
85
+ openIdConnectUrl: string;
86
+ description?: string | undefined;
87
+ }, {
88
+ type: "openIdConnect";
89
+ description?: string | undefined;
90
+ openIdConnectUrl?: string | undefined;
91
+ }>;
92
+ /**
93
+ * OAuth Flow Object
94
+ *
95
+ * Configuration details for a supported OAuth Flow
96
+ */
97
+ 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
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ scopes: Record<string, string | undefined>;
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
+ */
120
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
126
+ }, {
127
+ type: z.ZodOptional<z.ZodLiteral<"implicit">>;
128
+ authorizationUrl: z.ZodDefault<z.ZodString>;
129
+ }>, "strip", z.ZodTypeAny, {
130
+ scopes: Record<string, string | undefined>;
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
+ */
145
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
151
+ }, {
152
+ type: z.ZodOptional<z.ZodLiteral<"password">>;
153
+ tokenUrl: z.ZodDefault<z.ZodString>;
154
+ }>, "strip", z.ZodTypeAny, {
155
+ scopes: Record<string, string | undefined>;
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
+ */
170
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
176
+ }, {
177
+ type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
178
+ tokenUrl: z.ZodDefault<z.ZodString>;
179
+ }>, "strip", z.ZodTypeAny, {
180
+ scopes: Record<string, string | undefined>;
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
+ */
195
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
201
+ }, {
202
+ type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
203
+ authorizationUrl: z.ZodDefault<z.ZodString>;
204
+ tokenUrl: z.ZodDefault<z.ZodString>;
205
+ }>, "strip", z.ZodTypeAny, {
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
+ }>;
218
+ /**
219
+ * OAuth Flows Object
220
+ *
221
+ * Allows configuration of the supported OAuth Flows.
222
+ *
223
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#oauth-flows-object
224
+ */
225
+ export declare const OAuthFlowsObjectSchema: z.ZodObject<z.objectUtil.extendShape<{
226
+ /**
227
+ * A description for security scheme. CommonMark syntax MAY be used for rich text representation.
228
+ */
229
+ 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
+ type: z.ZodLiteral<"oauth2">;
236
+ /**
237
+ * REQUIRED. An object containing configuration information for the flow types supported.
238
+ */
239
+ flows: z.ZodObject<{
240
+ implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
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
+ */
245
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
251
+ }, {
252
+ type: z.ZodOptional<z.ZodLiteral<"implicit">>;
253
+ authorizationUrl: z.ZodDefault<z.ZodString>;
254
+ }>, "strip", z.ZodTypeAny, {
255
+ scopes: Record<string, string | undefined>;
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
+ */
270
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
276
+ }, {
277
+ type: z.ZodOptional<z.ZodLiteral<"password">>;
278
+ tokenUrl: z.ZodDefault<z.ZodString>;
279
+ }>, "strip", z.ZodTypeAny, {
280
+ scopes: Record<string, string | undefined>;
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
+ */
295
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
301
+ }, {
302
+ type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
303
+ tokenUrl: z.ZodDefault<z.ZodString>;
304
+ }>, "strip", z.ZodTypeAny, {
305
+ scopes: Record<string, string | undefined>;
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
+ */
320
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
326
+ }, {
327
+ type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
328
+ authorizationUrl: z.ZodDefault<z.ZodString>;
329
+ tokenUrl: z.ZodDefault<z.ZodString>;
330
+ }>, "strip", z.ZodTypeAny, {
331
+ scopes: Record<string, string | undefined>;
332
+ authorizationUrl: string;
333
+ tokenUrl: string;
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
+ */
461
+ 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
+ type: z.ZodLiteral<"mutualTLS">;
468
+ }>, "strip", z.ZodTypeAny, {
469
+ type: "mutualTLS";
470
+ description?: string | undefined;
471
+ }, {
472
+ type: "mutualTLS";
473
+ description?: string | undefined;
474
+ }>;
475
+ /**
476
+ * Security Scheme Object
477
+ *
478
+ * Defines a security scheme that can be used by the operations.
479
+ *
480
+ * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query
481
+ * parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials
482
+ * and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit
483
+ * flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is
484
+ * Authorization Code Grant flow with PKCE.
485
+ *
486
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-scheme-object
487
+ */
488
+ export declare const SecuritySchemeObjectSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
489
+ /**
490
+ * A description for security scheme. CommonMark syntax MAY be used for rich text representation.
491
+ */
492
+ 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
+ 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
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
505
+ /**
506
+ * REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".
507
+ */
508
+ in: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<["query", "header", "cookie"]>>>>;
509
+ }>, "strip", z.ZodTypeAny, {
510
+ name: string;
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
+ */
523
+ 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
+ type: z.ZodLiteral<"http">;
530
+ /**
531
+ * REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.
532
+ * The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive,
533
+ * as defined in RFC7235.
534
+ */
535
+ scheme: z.ZodDefault<z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodEnum<["basic", "bearer"]>>>>;
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
+ */
555
+ 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
+ type: z.ZodLiteral<"mutualTLS">;
562
+ }>, "strip", z.ZodTypeAny, {
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
+ */
572
+ 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
+ type: z.ZodLiteral<"oauth2">;
579
+ /**
580
+ * REQUIRED. An object containing configuration information for the flow types supported.
581
+ */
582
+ flows: z.ZodObject<{
583
+ implicit: z.ZodOptional<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
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
+ */
588
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
594
+ }, {
595
+ type: z.ZodOptional<z.ZodLiteral<"implicit">>;
596
+ authorizationUrl: z.ZodDefault<z.ZodString>;
597
+ }>, "strip", z.ZodTypeAny, {
598
+ scopes: Record<string, string | undefined>;
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
+ */
613
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
619
+ }, {
620
+ type: z.ZodOptional<z.ZodLiteral<"password">>;
621
+ tokenUrl: z.ZodDefault<z.ZodString>;
622
+ }>, "strip", z.ZodTypeAny, {
623
+ scopes: Record<string, string | undefined>;
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
+ */
638
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
644
+ }, {
645
+ type: z.ZodOptional<z.ZodLiteral<"clientCredentials">>;
646
+ tokenUrl: z.ZodDefault<z.ZodString>;
647
+ }>, "strip", z.ZodTypeAny, {
648
+ scopes: Record<string, string | undefined>;
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
+ */
663
+ 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
+ scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>>>;
669
+ }, {
670
+ type: z.ZodOptional<z.ZodLiteral<"authorizationCode">>;
671
+ authorizationUrl: z.ZodDefault<z.ZodString>;
672
+ tokenUrl: z.ZodDefault<z.ZodString>;
673
+ }>, "strip", z.ZodTypeAny, {
674
+ scopes: Record<string, string | undefined>;
675
+ authorizationUrl: string;
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
+ */
803
+ 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
+ type: z.ZodLiteral<"openIdConnect">;
810
+ /**
811
+ * REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
812
+ */
813
+ openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
814
+ }>, "strip", z.ZodTypeAny, {
815
+ type: "openIdConnect";
816
+ openIdConnectUrl: string;
817
+ description?: string | undefined;
818
+ }, {
819
+ type: "openIdConnect";
820
+ description?: string | undefined;
821
+ openIdConnectUrl?: string | undefined;
822
+ }>]>;
823
+ //# sourceMappingURL=security-scheme-object.d.ts.map