@scalar/openapi-types 0.1.8 → 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 +16 -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,633 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Response Object
4
+ *
5
+ * Describes a single response from an API operation, including design-time, static links to operations based on the response.
6
+ *
7
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object
8
+ */
9
+ export declare const ResponseObjectSchema: z.ZodObject<{
10
+ /**
11
+ * REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation.
12
+ */
13
+ description: z.ZodString;
14
+ /**
15
+ * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is
16
+ * defined with the name "Content-Type", it SHALL be ignored.
17
+ */
18
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
19
+ description: z.ZodOptional<z.ZodString>;
20
+ required: z.ZodOptional<z.ZodBoolean>;
21
+ deprecated: z.ZodOptional<z.ZodBoolean>;
22
+ style: z.ZodOptional<z.ZodEnum<["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]>>;
23
+ explode: z.ZodOptional<z.ZodBoolean>;
24
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
25
+ example: z.ZodOptional<z.ZodAny>;
26
+ examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
27
+ summary: z.ZodOptional<z.ZodString>;
28
+ description: z.ZodOptional<z.ZodString>;
29
+ value: z.ZodOptional<z.ZodAny>;
30
+ externalValue: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ description?: string | undefined;
33
+ summary?: string | undefined;
34
+ value?: any;
35
+ externalValue?: string | undefined;
36
+ }, {
37
+ description?: string | undefined;
38
+ summary?: string | undefined;
39
+ value?: any;
40
+ externalValue?: string | undefined;
41
+ }>>>;
42
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
43
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
44
+ example: z.ZodOptional<z.ZodAny>;
45
+ examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
46
+ summary: z.ZodOptional<z.ZodString>;
47
+ description: z.ZodOptional<z.ZodString>;
48
+ value: z.ZodOptional<z.ZodAny>;
49
+ externalValue: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ description?: string | undefined;
52
+ summary?: string | undefined;
53
+ value?: any;
54
+ externalValue?: string | undefined;
55
+ }, {
56
+ description?: string | undefined;
57
+ summary?: string | undefined;
58
+ value?: any;
59
+ externalValue?: string | undefined;
60
+ }>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ example?: any;
63
+ examples?: Record<string, {
64
+ description?: string | undefined;
65
+ summary?: string | undefined;
66
+ value?: any;
67
+ externalValue?: string | undefined;
68
+ }> | undefined;
69
+ schema?: Record<string, any> | undefined;
70
+ }, {
71
+ example?: any;
72
+ examples?: Record<string, {
73
+ description?: string | undefined;
74
+ summary?: string | undefined;
75
+ value?: any;
76
+ externalValue?: string | undefined;
77
+ }> | undefined;
78
+ schema?: Record<string, any> | undefined;
79
+ }>>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ description?: string | undefined;
82
+ deprecated?: boolean | undefined;
83
+ content?: Record<string, {
84
+ example?: any;
85
+ examples?: Record<string, {
86
+ description?: string | undefined;
87
+ summary?: string | undefined;
88
+ value?: any;
89
+ externalValue?: string | undefined;
90
+ }> | undefined;
91
+ schema?: Record<string, any> | undefined;
92
+ }> | undefined;
93
+ required?: boolean | undefined;
94
+ example?: any;
95
+ examples?: Record<string, {
96
+ description?: string | undefined;
97
+ summary?: string | undefined;
98
+ value?: any;
99
+ externalValue?: string | undefined;
100
+ }> | undefined;
101
+ schema?: Record<string, any> | undefined;
102
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
103
+ explode?: boolean | undefined;
104
+ }, {
105
+ description?: string | undefined;
106
+ deprecated?: boolean | undefined;
107
+ content?: Record<string, {
108
+ example?: any;
109
+ examples?: Record<string, {
110
+ description?: string | undefined;
111
+ summary?: string | undefined;
112
+ value?: any;
113
+ externalValue?: string | undefined;
114
+ }> | undefined;
115
+ schema?: Record<string, any> | undefined;
116
+ }> | undefined;
117
+ required?: boolean | undefined;
118
+ example?: any;
119
+ examples?: Record<string, {
120
+ description?: string | undefined;
121
+ summary?: string | undefined;
122
+ value?: any;
123
+ externalValue?: string | undefined;
124
+ }> | undefined;
125
+ schema?: Record<string, any> | undefined;
126
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
127
+ explode?: boolean | undefined;
128
+ }>>>;
129
+ /**
130
+ * A map containing descriptions of potential response payloads. The key is a media type or media type range and the
131
+ * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.
132
+ * "text/plain" overrides "text/*"
133
+ */
134
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
135
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
136
+ example: z.ZodOptional<z.ZodAny>;
137
+ examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
138
+ summary: z.ZodOptional<z.ZodString>;
139
+ description: z.ZodOptional<z.ZodString>;
140
+ value: z.ZodOptional<z.ZodAny>;
141
+ externalValue: z.ZodOptional<z.ZodString>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ description?: string | undefined;
144
+ summary?: string | undefined;
145
+ value?: any;
146
+ externalValue?: string | undefined;
147
+ }, {
148
+ description?: string | undefined;
149
+ summary?: string | undefined;
150
+ value?: any;
151
+ externalValue?: string | undefined;
152
+ }>>>;
153
+ encoding: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
154
+ contentType: z.ZodString;
155
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
156
+ description: z.ZodOptional<z.ZodString>;
157
+ required: z.ZodOptional<z.ZodBoolean>;
158
+ deprecated: z.ZodOptional<z.ZodBoolean>;
159
+ style: z.ZodOptional<z.ZodEnum<["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]>>;
160
+ explode: z.ZodOptional<z.ZodBoolean>;
161
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
162
+ example: z.ZodOptional<z.ZodAny>;
163
+ examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
164
+ summary: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ value: z.ZodOptional<z.ZodAny>;
167
+ externalValue: z.ZodOptional<z.ZodString>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ description?: string | undefined;
170
+ summary?: string | undefined;
171
+ value?: any;
172
+ externalValue?: string | undefined;
173
+ }, {
174
+ description?: string | undefined;
175
+ summary?: string | undefined;
176
+ value?: any;
177
+ externalValue?: string | undefined;
178
+ }>>>;
179
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
180
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
181
+ example: z.ZodOptional<z.ZodAny>;
182
+ examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
183
+ summary: z.ZodOptional<z.ZodString>;
184
+ description: z.ZodOptional<z.ZodString>;
185
+ value: z.ZodOptional<z.ZodAny>;
186
+ externalValue: z.ZodOptional<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ description?: string | undefined;
189
+ summary?: string | undefined;
190
+ value?: any;
191
+ externalValue?: string | undefined;
192
+ }, {
193
+ description?: string | undefined;
194
+ summary?: string | undefined;
195
+ value?: any;
196
+ externalValue?: string | undefined;
197
+ }>>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ example?: any;
200
+ examples?: Record<string, {
201
+ description?: string | undefined;
202
+ summary?: string | undefined;
203
+ value?: any;
204
+ externalValue?: string | undefined;
205
+ }> | undefined;
206
+ schema?: Record<string, any> | undefined;
207
+ }, {
208
+ example?: any;
209
+ examples?: Record<string, {
210
+ description?: string | undefined;
211
+ summary?: string | undefined;
212
+ value?: any;
213
+ externalValue?: string | undefined;
214
+ }> | undefined;
215
+ schema?: Record<string, any> | undefined;
216
+ }>>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ description?: string | undefined;
219
+ deprecated?: boolean | undefined;
220
+ content?: Record<string, {
221
+ example?: any;
222
+ examples?: Record<string, {
223
+ description?: string | undefined;
224
+ summary?: string | undefined;
225
+ value?: any;
226
+ externalValue?: string | undefined;
227
+ }> | undefined;
228
+ schema?: Record<string, any> | undefined;
229
+ }> | undefined;
230
+ required?: boolean | undefined;
231
+ example?: any;
232
+ examples?: Record<string, {
233
+ description?: string | undefined;
234
+ summary?: string | undefined;
235
+ value?: any;
236
+ externalValue?: string | undefined;
237
+ }> | undefined;
238
+ schema?: Record<string, any> | undefined;
239
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
240
+ explode?: boolean | undefined;
241
+ }, {
242
+ description?: string | undefined;
243
+ deprecated?: boolean | undefined;
244
+ content?: Record<string, {
245
+ example?: any;
246
+ examples?: Record<string, {
247
+ description?: string | undefined;
248
+ summary?: string | undefined;
249
+ value?: any;
250
+ externalValue?: string | undefined;
251
+ }> | undefined;
252
+ schema?: Record<string, any> | undefined;
253
+ }> | undefined;
254
+ required?: boolean | undefined;
255
+ example?: any;
256
+ examples?: Record<string, {
257
+ description?: string | undefined;
258
+ summary?: string | undefined;
259
+ value?: any;
260
+ externalValue?: string | undefined;
261
+ }> | undefined;
262
+ schema?: Record<string, any> | undefined;
263
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
264
+ explode?: boolean | undefined;
265
+ }>>>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ contentType: string;
268
+ headers?: Record<string, {
269
+ description?: string | undefined;
270
+ deprecated?: boolean | undefined;
271
+ content?: Record<string, {
272
+ example?: any;
273
+ examples?: Record<string, {
274
+ description?: string | undefined;
275
+ summary?: string | undefined;
276
+ value?: any;
277
+ externalValue?: string | undefined;
278
+ }> | undefined;
279
+ schema?: Record<string, any> | undefined;
280
+ }> | undefined;
281
+ required?: boolean | undefined;
282
+ example?: any;
283
+ examples?: Record<string, {
284
+ description?: string | undefined;
285
+ summary?: string | undefined;
286
+ value?: any;
287
+ externalValue?: string | undefined;
288
+ }> | undefined;
289
+ schema?: Record<string, any> | undefined;
290
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
291
+ explode?: boolean | undefined;
292
+ }> | undefined;
293
+ }, {
294
+ contentType: string;
295
+ headers?: Record<string, {
296
+ description?: string | undefined;
297
+ deprecated?: boolean | undefined;
298
+ content?: Record<string, {
299
+ example?: any;
300
+ examples?: Record<string, {
301
+ description?: string | undefined;
302
+ summary?: string | undefined;
303
+ value?: any;
304
+ externalValue?: string | undefined;
305
+ }> | undefined;
306
+ schema?: Record<string, any> | undefined;
307
+ }> | undefined;
308
+ required?: boolean | undefined;
309
+ example?: any;
310
+ examples?: Record<string, {
311
+ description?: string | undefined;
312
+ summary?: string | undefined;
313
+ value?: any;
314
+ externalValue?: string | undefined;
315
+ }> | undefined;
316
+ schema?: Record<string, any> | undefined;
317
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
318
+ explode?: boolean | undefined;
319
+ }> | undefined;
320
+ }>>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ example?: any;
323
+ examples?: Record<string, {
324
+ description?: string | undefined;
325
+ summary?: string | undefined;
326
+ value?: any;
327
+ externalValue?: string | undefined;
328
+ }> | undefined;
329
+ schema?: Record<string, any> | undefined;
330
+ encoding?: Record<string, {
331
+ contentType: string;
332
+ headers?: Record<string, {
333
+ description?: string | undefined;
334
+ deprecated?: boolean | undefined;
335
+ content?: Record<string, {
336
+ example?: any;
337
+ examples?: Record<string, {
338
+ description?: string | undefined;
339
+ summary?: string | undefined;
340
+ value?: any;
341
+ externalValue?: string | undefined;
342
+ }> | undefined;
343
+ schema?: Record<string, any> | undefined;
344
+ }> | undefined;
345
+ required?: boolean | undefined;
346
+ example?: any;
347
+ examples?: Record<string, {
348
+ description?: string | undefined;
349
+ summary?: string | undefined;
350
+ value?: any;
351
+ externalValue?: string | undefined;
352
+ }> | undefined;
353
+ schema?: Record<string, any> | undefined;
354
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
355
+ explode?: boolean | undefined;
356
+ }> | undefined;
357
+ }> | undefined;
358
+ }, {
359
+ example?: any;
360
+ examples?: Record<string, {
361
+ description?: string | undefined;
362
+ summary?: string | undefined;
363
+ value?: any;
364
+ externalValue?: string | undefined;
365
+ }> | undefined;
366
+ schema?: Record<string, any> | undefined;
367
+ encoding?: Record<string, {
368
+ contentType: string;
369
+ headers?: Record<string, {
370
+ description?: string | undefined;
371
+ deprecated?: boolean | undefined;
372
+ content?: Record<string, {
373
+ example?: any;
374
+ examples?: Record<string, {
375
+ description?: string | undefined;
376
+ summary?: string | undefined;
377
+ value?: any;
378
+ externalValue?: string | undefined;
379
+ }> | undefined;
380
+ schema?: Record<string, any> | undefined;
381
+ }> | undefined;
382
+ required?: boolean | undefined;
383
+ example?: any;
384
+ examples?: Record<string, {
385
+ description?: string | undefined;
386
+ summary?: string | undefined;
387
+ value?: any;
388
+ externalValue?: string | undefined;
389
+ }> | undefined;
390
+ schema?: Record<string, any> | undefined;
391
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
392
+ explode?: boolean | undefined;
393
+ }> | undefined;
394
+ }> | undefined;
395
+ }>>>;
396
+ /**
397
+ * A map of operations links that can be followed from the response. The key of the map is a short name for the link,
398
+ * following the naming constraints of the names for Component Objects.
399
+ */
400
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
401
+ operationRef: z.ZodOptional<z.ZodString>;
402
+ operationId: z.ZodOptional<z.ZodString>;
403
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
404
+ requestBody: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
405
+ description: z.ZodOptional<z.ZodString>;
406
+ server: z.ZodOptional<z.ZodObject<{
407
+ url: z.ZodString;
408
+ description: z.ZodOptional<z.ZodString>;
409
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
410
+ enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
411
+ default: z.ZodOptional<z.ZodString>;
412
+ description: z.ZodOptional<z.ZodString>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ description?: string | undefined;
415
+ default?: string | undefined;
416
+ enum?: string[] | undefined;
417
+ }, {
418
+ description?: string | undefined;
419
+ default?: string | undefined;
420
+ enum?: string[] | undefined;
421
+ }>>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ url: string;
424
+ description?: string | undefined;
425
+ variables?: Record<string, {
426
+ description?: string | undefined;
427
+ default?: string | undefined;
428
+ enum?: string[] | undefined;
429
+ }> | undefined;
430
+ }, {
431
+ url: string;
432
+ description?: string | undefined;
433
+ variables?: Record<string, {
434
+ description?: string | undefined;
435
+ default?: string | undefined;
436
+ enum?: string[] | undefined;
437
+ }> | undefined;
438
+ }>>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ description?: string | undefined;
441
+ operationId?: string | undefined;
442
+ parameters?: Record<string, string> | undefined;
443
+ requestBody?: string | undefined;
444
+ operationRef?: string | undefined;
445
+ server?: {
446
+ url: string;
447
+ description?: string | undefined;
448
+ variables?: Record<string, {
449
+ description?: string | undefined;
450
+ default?: string | undefined;
451
+ enum?: string[] | undefined;
452
+ }> | undefined;
453
+ } | undefined;
454
+ }, {
455
+ description?: string | undefined;
456
+ operationId?: string | undefined;
457
+ parameters?: Record<string, string> | undefined;
458
+ requestBody?: string | undefined;
459
+ operationRef?: string | undefined;
460
+ server?: {
461
+ url: string;
462
+ description?: string | undefined;
463
+ variables?: Record<string, {
464
+ description?: string | undefined;
465
+ default?: string | undefined;
466
+ enum?: string[] | undefined;
467
+ }> | undefined;
468
+ } | undefined;
469
+ }>>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ description: string;
472
+ content?: Record<string, {
473
+ example?: any;
474
+ examples?: Record<string, {
475
+ description?: string | undefined;
476
+ summary?: string | undefined;
477
+ value?: any;
478
+ externalValue?: string | undefined;
479
+ }> | undefined;
480
+ schema?: Record<string, any> | undefined;
481
+ encoding?: Record<string, {
482
+ contentType: string;
483
+ headers?: Record<string, {
484
+ description?: string | undefined;
485
+ deprecated?: boolean | undefined;
486
+ content?: Record<string, {
487
+ example?: any;
488
+ examples?: Record<string, {
489
+ description?: string | undefined;
490
+ summary?: string | undefined;
491
+ value?: any;
492
+ externalValue?: string | undefined;
493
+ }> | undefined;
494
+ schema?: Record<string, any> | undefined;
495
+ }> | undefined;
496
+ required?: boolean | undefined;
497
+ example?: any;
498
+ examples?: Record<string, {
499
+ description?: string | undefined;
500
+ summary?: string | undefined;
501
+ value?: any;
502
+ externalValue?: string | undefined;
503
+ }> | undefined;
504
+ schema?: Record<string, any> | undefined;
505
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
506
+ explode?: boolean | undefined;
507
+ }> | undefined;
508
+ }> | undefined;
509
+ }> | undefined;
510
+ headers?: Record<string, {
511
+ description?: string | undefined;
512
+ deprecated?: boolean | undefined;
513
+ content?: Record<string, {
514
+ example?: any;
515
+ examples?: Record<string, {
516
+ description?: string | undefined;
517
+ summary?: string | undefined;
518
+ value?: any;
519
+ externalValue?: string | undefined;
520
+ }> | undefined;
521
+ schema?: Record<string, any> | undefined;
522
+ }> | undefined;
523
+ required?: boolean | undefined;
524
+ example?: any;
525
+ examples?: Record<string, {
526
+ description?: string | undefined;
527
+ summary?: string | undefined;
528
+ value?: any;
529
+ externalValue?: string | undefined;
530
+ }> | undefined;
531
+ schema?: Record<string, any> | undefined;
532
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
533
+ explode?: boolean | undefined;
534
+ }> | undefined;
535
+ links?: Record<string, {
536
+ description?: string | undefined;
537
+ operationId?: string | undefined;
538
+ parameters?: Record<string, string> | undefined;
539
+ requestBody?: string | undefined;
540
+ operationRef?: string | undefined;
541
+ server?: {
542
+ url: string;
543
+ description?: string | undefined;
544
+ variables?: Record<string, {
545
+ description?: string | undefined;
546
+ default?: string | undefined;
547
+ enum?: string[] | undefined;
548
+ }> | undefined;
549
+ } | undefined;
550
+ }> | undefined;
551
+ }, {
552
+ description: string;
553
+ content?: Record<string, {
554
+ example?: any;
555
+ examples?: Record<string, {
556
+ description?: string | undefined;
557
+ summary?: string | undefined;
558
+ value?: any;
559
+ externalValue?: string | undefined;
560
+ }> | undefined;
561
+ schema?: Record<string, any> | undefined;
562
+ encoding?: Record<string, {
563
+ contentType: string;
564
+ headers?: Record<string, {
565
+ description?: string | undefined;
566
+ deprecated?: boolean | undefined;
567
+ content?: Record<string, {
568
+ example?: any;
569
+ examples?: Record<string, {
570
+ description?: string | undefined;
571
+ summary?: string | undefined;
572
+ value?: any;
573
+ externalValue?: string | undefined;
574
+ }> | undefined;
575
+ schema?: Record<string, any> | undefined;
576
+ }> | undefined;
577
+ required?: boolean | undefined;
578
+ example?: any;
579
+ examples?: Record<string, {
580
+ description?: string | undefined;
581
+ summary?: string | undefined;
582
+ value?: any;
583
+ externalValue?: string | undefined;
584
+ }> | undefined;
585
+ schema?: Record<string, any> | undefined;
586
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
587
+ explode?: boolean | undefined;
588
+ }> | undefined;
589
+ }> | undefined;
590
+ }> | undefined;
591
+ headers?: Record<string, {
592
+ description?: string | undefined;
593
+ deprecated?: boolean | undefined;
594
+ content?: Record<string, {
595
+ example?: any;
596
+ examples?: Record<string, {
597
+ description?: string | undefined;
598
+ summary?: string | undefined;
599
+ value?: any;
600
+ externalValue?: string | undefined;
601
+ }> | undefined;
602
+ schema?: Record<string, any> | undefined;
603
+ }> | undefined;
604
+ required?: boolean | undefined;
605
+ example?: any;
606
+ examples?: Record<string, {
607
+ description?: string | undefined;
608
+ summary?: string | undefined;
609
+ value?: any;
610
+ externalValue?: string | undefined;
611
+ }> | undefined;
612
+ schema?: Record<string, any> | undefined;
613
+ style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
614
+ explode?: boolean | undefined;
615
+ }> | undefined;
616
+ links?: Record<string, {
617
+ description?: string | undefined;
618
+ operationId?: string | undefined;
619
+ parameters?: Record<string, string> | undefined;
620
+ requestBody?: string | undefined;
621
+ operationRef?: string | undefined;
622
+ server?: {
623
+ url: string;
624
+ description?: string | undefined;
625
+ variables?: Record<string, {
626
+ description?: string | undefined;
627
+ default?: string | undefined;
628
+ enum?: string[] | undefined;
629
+ }> | undefined;
630
+ } | undefined;
631
+ }> | undefined;
632
+ }>;
633
+ //# sourceMappingURL=response-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/response-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { HeaderObjectSchema } from './header-object.js';
3
+ import { LinkObjectSchema } from './link-object.js';
4
+ import { MediaTypeObjectSchema } from './media-type-object.js';
5
+
6
+ /**
7
+ * Response Object
8
+ *
9
+ * Describes a single response from an API operation, including design-time, static links to operations based on the response.
10
+ *
11
+ * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object
12
+ */
13
+ const ResponseObjectSchema = z.object({
14
+ /**
15
+ * REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation.
16
+ */
17
+ description: z.string(),
18
+ /**
19
+ * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is
20
+ * defined with the name "Content-Type", it SHALL be ignored.
21
+ */
22
+ headers: z.record(z.string(), HeaderObjectSchema).optional(),
23
+ /**
24
+ * A map containing descriptions of potential response payloads. The key is a media type or media type range and the
25
+ * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.
26
+ * "text/plain" overrides "text/*"
27
+ */
28
+ content: z.record(z.string(), MediaTypeObjectSchema).optional(),
29
+ /**
30
+ * A map of operations links that can be followed from the response. The key of the map is a short name for the link,
31
+ * following the naming constraints of the names for Component Objects.
32
+ */
33
+ links: z.record(z.string(), LinkObjectSchema).optional(),
34
+ });
35
+
36
+ export { ResponseObjectSchema };