@scalar/openapi-types 0.3.7 → 0.4.1

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 (168) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/helpers/is-dereferenced.d.ts.map +1 -1
  3. package/dist/openapi-types.d.ts +1 -1
  4. package/dist/openapi-types.d.ts.map +1 -1
  5. package/dist/openapi-types.js.map +1 -1
  6. package/dist/schemas/3.1/processed/base-path-item-object.d.ts +41 -544
  7. package/dist/schemas/3.1/processed/base-path-item-object.d.ts.map +1 -1
  8. package/dist/schemas/3.1/processed/callback-object.d.ts +67 -67
  9. package/dist/schemas/3.1/processed/callback-object.d.ts.map +1 -1
  10. package/dist/schemas/3.1/processed/components-object.d.ts +2127 -12344
  11. package/dist/schemas/3.1/processed/components-object.d.ts.map +1 -1
  12. package/dist/schemas/3.1/processed/contact-object.d.ts +1 -12
  13. package/dist/schemas/3.1/processed/contact-object.d.ts.map +1 -1
  14. package/dist/schemas/3.1/processed/discriminator-object.d.ts +1 -15
  15. package/dist/schemas/3.1/processed/discriminator-object.d.ts.map +1 -1
  16. package/dist/schemas/3.1/processed/encoding-object.d.ts +16 -157
  17. package/dist/schemas/3.1/processed/encoding-object.d.ts.map +1 -1
  18. package/dist/schemas/3.1/processed/example-object.d.ts +1 -25
  19. package/dist/schemas/3.1/processed/example-object.d.ts.map +1 -1
  20. package/dist/schemas/3.1/processed/external-documentation-object.d.ts +1 -9
  21. package/dist/schemas/3.1/processed/external-documentation-object.d.ts.map +1 -1
  22. package/dist/schemas/3.1/processed/header-object.d.ts +15 -124
  23. package/dist/schemas/3.1/processed/header-object.d.ts.map +1 -1
  24. package/dist/schemas/3.1/processed/info-object.d.ts +3 -65
  25. package/dist/schemas/3.1/processed/info-object.d.ts.map +1 -1
  26. package/dist/schemas/3.1/processed/license-object.d.ts +1 -14
  27. package/dist/schemas/3.1/processed/license-object.d.ts.map +1 -1
  28. package/dist/schemas/3.1/processed/link-object.d.ts +6 -83
  29. package/dist/schemas/3.1/processed/link-object.d.ts.map +1 -1
  30. package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts +3 -44
  31. package/dist/schemas/3.1/processed/media-type-object-without-encoding.d.ts.map +1 -1
  32. package/dist/schemas/3.1/processed/media-type-object.d.ts +19 -253
  33. package/dist/schemas/3.1/processed/media-type-object.d.ts.map +1 -1
  34. package/dist/schemas/3.1/processed/openapi-object.d.ts +4719 -27519
  35. package/dist/schemas/3.1/processed/openapi-object.d.ts.map +1 -1
  36. package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts +118 -1929
  37. package/dist/schemas/3.1/processed/operation-object-without-callbacks.d.ts.map +1 -1
  38. package/dist/schemas/3.1/processed/parameter-object.d.ts +37 -424
  39. package/dist/schemas/3.1/processed/parameter-object.d.ts.map +1 -1
  40. package/dist/schemas/3.1/processed/path-item-object.d.ts +1738 -5818
  41. package/dist/schemas/3.1/processed/path-item-object.d.ts.map +1 -1
  42. package/dist/schemas/3.1/processed/paths-object.d.ts +1722 -5778
  43. package/dist/schemas/3.1/processed/paths-object.d.ts.map +1 -1
  44. package/dist/schemas/3.1/processed/request-body-object.d.ts +36 -536
  45. package/dist/schemas/3.1/processed/request-body-object.d.ts.map +1 -1
  46. package/dist/schemas/3.1/processed/response-object.d.ts +41 -567
  47. package/dist/schemas/3.1/processed/response-object.d.ts.map +1 -1
  48. package/dist/schemas/3.1/processed/responses-object.d.ts +41 -551
  49. package/dist/schemas/3.1/processed/responses-object.d.ts.map +1 -1
  50. package/dist/schemas/3.1/processed/runtime-expression.d.ts +1 -1
  51. package/dist/schemas/3.1/processed/runtime-expression.d.ts.map +1 -1
  52. package/dist/schemas/3.1/processed/runtime-expression.js +3 -3
  53. package/dist/schemas/3.1/processed/runtime-expression.js.map +2 -2
  54. package/dist/schemas/3.1/processed/schema-object.d.ts.map +1 -1
  55. package/dist/schemas/3.1/processed/schema-object.js +4 -1
  56. package/dist/schemas/3.1/processed/schema-object.js.map +2 -2
  57. package/dist/schemas/3.1/processed/security-requirement-object.d.ts +1 -1
  58. package/dist/schemas/3.1/processed/security-requirement-object.d.ts.map +1 -1
  59. package/dist/schemas/3.1/processed/security-scheme-object.d.ts +63 -715
  60. package/dist/schemas/3.1/processed/security-scheme-object.d.ts.map +1 -1
  61. package/dist/schemas/3.1/processed/server-object.d.ts +3 -37
  62. package/dist/schemas/3.1/processed/server-object.d.ts.map +1 -1
  63. package/dist/schemas/3.1/processed/server-variable-object.d.ts +2 -21
  64. package/dist/schemas/3.1/processed/server-variable-object.d.ts.map +1 -1
  65. package/dist/schemas/3.1/processed/tag-object.d.ts +2 -25
  66. package/dist/schemas/3.1/processed/tag-object.d.ts.map +1 -1
  67. package/dist/schemas/3.1/processed/webhooks-object.d.ts +66 -66
  68. package/dist/schemas/3.1/processed/webhooks-object.d.ts.map +1 -1
  69. package/dist/schemas/3.1/processed/xml-object.d.ts +1 -31
  70. package/dist/schemas/3.1/processed/xml-object.d.ts.map +1 -1
  71. package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts +54 -1745
  72. package/dist/schemas/3.1/unprocessed/base-path-item-object.d.ts.map +1 -1
  73. package/dist/schemas/3.1/unprocessed/callback-object.d.ts +83 -83
  74. package/dist/schemas/3.1/unprocessed/callback-object.d.ts.map +1 -1
  75. package/dist/schemas/3.1/unprocessed/components-object.d.ts +2823 -26982
  76. package/dist/schemas/3.1/unprocessed/components-object.d.ts.map +1 -1
  77. package/dist/schemas/3.1/unprocessed/contact-object.d.ts +1 -9
  78. package/dist/schemas/3.1/unprocessed/contact-object.d.ts.map +1 -1
  79. package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts +1 -7
  80. package/dist/schemas/3.1/unprocessed/discriminator-object.d.ts.map +1 -1
  81. package/dist/schemas/3.1/unprocessed/encoding-object.d.ts +21 -365
  82. package/dist/schemas/3.1/unprocessed/encoding-object.d.ts.map +1 -1
  83. package/dist/schemas/3.1/unprocessed/example-object.d.ts +1 -11
  84. package/dist/schemas/3.1/unprocessed/example-object.d.ts.map +1 -1
  85. package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts +1 -7
  86. package/dist/schemas/3.1/unprocessed/external-documentation-object.d.ts.map +1 -1
  87. package/dist/schemas/3.1/unprocessed/header-object.d.ts +18 -179
  88. package/dist/schemas/3.1/unprocessed/header-object.d.ts.map +1 -1
  89. package/dist/schemas/3.1/unprocessed/info-object.d.ts +3 -43
  90. package/dist/schemas/3.1/unprocessed/info-object.d.ts.map +1 -1
  91. package/dist/schemas/3.1/unprocessed/license-object.d.ts +1 -9
  92. package/dist/schemas/3.1/unprocessed/license-object.d.ts.map +1 -1
  93. package/dist/schemas/3.1/unprocessed/link-object.d.ts +6 -60
  94. package/dist/schemas/3.1/unprocessed/link-object.d.ts.map +1 -1
  95. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts +3 -31
  96. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.d.ts.map +1 -1
  97. package/dist/schemas/3.1/unprocessed/media-type-object.d.ts +27 -688
  98. package/dist/schemas/3.1/unprocessed/media-type-object.d.ts.map +1 -1
  99. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts +133 -3719
  100. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.d.ts.map +1 -1
  101. package/dist/schemas/3.1/unprocessed/parameter-object.d.ts +48 -1129
  102. package/dist/schemas/3.1/unprocessed/parameter-object.d.ts.map +1 -1
  103. package/dist/schemas/3.1/unprocessed/path-item-object.d.ts +2052 -7728
  104. package/dist/schemas/3.1/unprocessed/path-item-object.d.ts.map +1 -1
  105. package/dist/schemas/3.1/unprocessed/paths-object.d.ts +2053 -7701
  106. package/dist/schemas/3.1/unprocessed/paths-object.d.ts.map +1 -1
  107. package/dist/schemas/3.1/unprocessed/reference-object.d.ts +1 -21
  108. package/dist/schemas/3.1/unprocessed/reference-object.d.ts.map +1 -1
  109. package/dist/schemas/3.1/unprocessed/request-body-object.d.ts +36 -522
  110. package/dist/schemas/3.1/unprocessed/request-body-object.d.ts.map +1 -1
  111. package/dist/schemas/3.1/unprocessed/response-object.d.ts +56 -1586
  112. package/dist/schemas/3.1/unprocessed/response-object.d.ts.map +1 -1
  113. package/dist/schemas/3.1/unprocessed/responses-object.d.ts +57 -1582
  114. package/dist/schemas/3.1/unprocessed/responses-object.d.ts.map +1 -1
  115. package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts +1 -1
  116. package/dist/schemas/3.1/unprocessed/runtime-expression.d.ts.map +1 -1
  117. package/dist/schemas/3.1/unprocessed/schema-object.d.ts.map +1 -1
  118. package/dist/schemas/3.1/unprocessed/schema-object.js +4 -1
  119. package/dist/schemas/3.1/unprocessed/schema-object.js.map +2 -2
  120. package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts +1 -1
  121. package/dist/schemas/3.1/unprocessed/security-requirement-object.d.ts.map +1 -1
  122. package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts +63 -495
  123. package/dist/schemas/3.1/unprocessed/security-scheme-object.d.ts.map +1 -1
  124. package/dist/schemas/3.1/unprocessed/server-object.d.ts +3 -27
  125. package/dist/schemas/3.1/unprocessed/server-object.d.ts.map +1 -1
  126. package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts +2 -10
  127. package/dist/schemas/3.1/unprocessed/server-variable-object.d.ts.map +1 -1
  128. package/dist/schemas/3.1/unprocessed/tag-object.d.ts +2 -22
  129. package/dist/schemas/3.1/unprocessed/tag-object.d.ts.map +1 -1
  130. package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts +86 -86
  131. package/dist/schemas/3.1/unprocessed/webhooks-object.d.ts.map +1 -1
  132. package/dist/schemas/3.1/unprocessed/xml-object.d.ts +1 -13
  133. package/dist/schemas/3.1/unprocessed/xml-object.d.ts.map +1 -1
  134. package/dist/schemas/extensions/x-additional-properties-name.d.ts +1 -5
  135. package/dist/schemas/extensions/x-additional-properties-name.d.ts.map +1 -1
  136. package/dist/schemas/extensions/x-code-samples.d.ts +5 -57
  137. package/dist/schemas/extensions/x-code-samples.d.ts.map +1 -1
  138. package/dist/schemas/extensions/x-display-name.d.ts +1 -5
  139. package/dist/schemas/extensions/x-display-name.d.ts.map +1 -1
  140. package/dist/schemas/extensions/x-enum-descriptions.d.ts +1 -5
  141. package/dist/schemas/extensions/x-enum-descriptions.d.ts.map +1 -1
  142. package/dist/schemas/extensions/x-internal.d.ts +1 -5
  143. package/dist/schemas/extensions/x-internal.d.ts.map +1 -1
  144. package/dist/schemas/extensions/x-post-response.d.ts +1 -5
  145. package/dist/schemas/extensions/x-post-response.d.ts.map +1 -1
  146. package/dist/schemas/extensions/x-scalar-credentials-location.d.ts +5 -6
  147. package/dist/schemas/extensions/x-scalar-credentials-location.d.ts.map +1 -1
  148. package/dist/schemas/extensions/x-scalar-icon.d.ts +1 -5
  149. package/dist/schemas/extensions/x-scalar-icon.d.ts.map +1 -1
  150. package/dist/schemas/extensions/x-scalar-ignore.d.ts +1 -5
  151. package/dist/schemas/extensions/x-scalar-ignore.d.ts.map +1 -1
  152. package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts +1 -5
  153. package/dist/schemas/extensions/x-scalar-redirect-uri.d.ts.map +1 -1
  154. package/dist/schemas/extensions/x-scalar-sdk-installation.d.ts +2 -18
  155. package/dist/schemas/extensions/x-scalar-sdk-installation.d.ts.map +1 -1
  156. package/dist/schemas/extensions/x-scalar-security-body.d.ts +1 -5
  157. package/dist/schemas/extensions/x-scalar-security-body.d.ts.map +1 -1
  158. package/dist/schemas/extensions/x-scalar-security-query.d.ts +1 -5
  159. package/dist/schemas/extensions/x-scalar-security-query.d.ts.map +1 -1
  160. package/dist/schemas/extensions/x-scalar-stability.d.ts +4 -6
  161. package/dist/schemas/extensions/x-scalar-stability.d.ts.map +1 -1
  162. package/dist/schemas/extensions/x-tag-groups.d.ts +4 -28
  163. package/dist/schemas/extensions/x-tag-groups.d.ts.map +1 -1
  164. package/dist/schemas/extensions/x-tokenName.d.ts +1 -5
  165. package/dist/schemas/extensions/x-tokenName.d.ts.map +1 -1
  166. package/dist/schemas/extensions/x-use-pkce.d.ts +6 -9
  167. package/dist/schemas/extensions/x-use-pkce.d.ts.map +1 -1
  168. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"license-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/license-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAC9B,mDAAmD;;IAEnD,2GAA2G;;IAE3G;;OAEG;;;;;;;;;;EAEH,CAAA"}
1
+ {"version":3,"file":"license-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/license-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;iBAS9B,CAAA"}
@@ -15,96 +15,19 @@ import { z } from 'zod';
15
15
  * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object
16
16
  */
17
17
  export declare const LinkObjectSchema: z.ZodObject<{
18
- /**
19
- * A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to
20
- * an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description.
21
- */
22
18
  operationRef: z.ZodOptional<z.ZodString>;
23
- /**
24
- * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually
25
- * exclusive of the operationRef field.
26
- */
27
19
  operationId: z.ZodOptional<z.ZodString>;
28
- /**
29
- * A map representing parameters to pass to an operation as specified with operationId or identified via
30
- * operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g.
31
- * path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated
32
- * and passed to the linked operation.
33
- */
34
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
35
- /**
36
- * A literal value or {expression} to use as a request body when calling the target operation.
37
- */
38
- requestBody: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
39
- /**
40
- * A description of the link. CommonMark syntax MAY be used for rich text representation.
41
- */
20
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ requestBody: z.ZodOptional<z.ZodString>;
42
22
  description: z.ZodOptional<z.ZodString>;
43
- /**
44
- * A server object to be used by the target operation.
45
- */
46
23
  server: z.ZodOptional<z.ZodObject<{
47
24
  url: z.ZodString;
48
25
  description: z.ZodOptional<z.ZodString>;
49
26
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
50
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
28
  default: z.ZodOptional<z.ZodString>;
52
29
  description: z.ZodOptional<z.ZodString>;
53
- }, "strip", z.ZodTypeAny, {
54
- description?: string | undefined;
55
- default?: string | undefined;
56
- enum?: string[] | undefined;
57
- }, {
58
- description?: string | undefined;
59
- default?: string | undefined;
60
- enum?: string[] | undefined;
61
- }>>>;
62
- }, "strip", z.ZodTypeAny, {
63
- url: string;
64
- description?: string | undefined;
65
- variables?: Record<string, {
66
- description?: string | undefined;
67
- default?: string | undefined;
68
- enum?: string[] | undefined;
69
- }> | undefined;
70
- }, {
71
- url: string;
72
- description?: string | undefined;
73
- variables?: Record<string, {
74
- description?: string | undefined;
75
- default?: string | undefined;
76
- enum?: string[] | undefined;
77
- }> | undefined;
78
- }>>;
79
- }, "strip", z.ZodTypeAny, {
80
- description?: string | undefined;
81
- operationId?: string | undefined;
82
- parameters?: Record<string, string> | undefined;
83
- requestBody?: string | undefined;
84
- operationRef?: string | undefined;
85
- server?: {
86
- url: string;
87
- description?: string | undefined;
88
- variables?: Record<string, {
89
- description?: string | undefined;
90
- default?: string | undefined;
91
- enum?: string[] | undefined;
92
- }> | undefined;
93
- } | undefined;
94
- }, {
95
- description?: string | undefined;
96
- operationId?: string | undefined;
97
- parameters?: Record<string, string> | undefined;
98
- requestBody?: string | undefined;
99
- operationRef?: string | undefined;
100
- server?: {
101
- url: string;
102
- description?: string | undefined;
103
- variables?: Record<string, {
104
- description?: string | undefined;
105
- default?: string | undefined;
106
- enum?: string[] | undefined;
107
- }> | undefined;
108
- } | undefined;
109
- }>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
110
33
  //# sourceMappingURL=link-object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/link-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;;OAGG;;IAEH;;;OAGG;;IAEH;;;;;OAKG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA"}
1
+ {"version":3,"file":"link-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/link-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;iBA8B3B,CAAA"}
@@ -7,54 +7,13 @@ import { z } from 'zod';
7
7
  * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object
8
8
  */
9
9
  export declare const MediaTypeObjectSchemaWithoutEncoding: z.ZodObject<{
10
- /**
11
- * The schema defining the content of the request, response, or parameter.
12
- */
13
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
14
- /**
15
- * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.
16
- * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains
17
- * an example, the example value SHALL override the example provided by the schema.
18
- */
10
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
19
11
  example: z.ZodOptional<z.ZodAny>;
20
- /**
21
- * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.
22
- * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains
23
- * an example, the examples value SHALL override the example provided by the schema.
24
- */
25
12
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
26
13
  summary: z.ZodOptional<z.ZodString>;
27
14
  description: z.ZodOptional<z.ZodString>;
28
15
  value: z.ZodOptional<z.ZodAny>;
29
16
  externalValue: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- description?: string | undefined;
32
- summary?: string | undefined;
33
- value?: any;
34
- externalValue?: string | undefined;
35
- }, {
36
- description?: string | undefined;
37
- summary?: string | undefined;
38
- value?: any;
39
- externalValue?: string | undefined;
40
- }>>>;
41
- }, "strip", z.ZodTypeAny, {
42
- example?: any;
43
- examples?: Record<string, {
44
- description?: string | undefined;
45
- summary?: string | undefined;
46
- value?: any;
47
- externalValue?: string | undefined;
48
- }> | undefined;
49
- schema?: Record<string, any> | undefined;
50
- }, {
51
- example?: any;
52
- examples?: Record<string, {
53
- description?: string | undefined;
54
- summary?: string | undefined;
55
- value?: any;
56
- externalValue?: string | undefined;
57
- }> | undefined;
58
- schema?: Record<string, any> | undefined;
59
- }>;
17
+ }, z.core.$strip>>>;
18
+ }, z.core.$strip>;
60
19
  //# sourceMappingURL=media-type-object-without-encoding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-type-object-without-encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/media-type-object-without-encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;IAC/C;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKH,CAAA"}
1
+ {"version":3,"file":"media-type-object-without-encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/media-type-object-without-encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;iBAoB/C,CAAA"}
@@ -7,283 +7,49 @@ import { z } from 'zod';
7
7
  * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object
8
8
  */
9
9
  export declare const MediaTypeObjectSchema: z.ZodObject<{
10
- /**
11
- * The schema defining the content of the request, response, or parameter.
12
- */
13
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
14
- /**
15
- * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.
16
- * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains
17
- * an example, the example value SHALL override the example provided by the schema.
18
- */
10
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
19
11
  example: z.ZodOptional<z.ZodAny>;
20
- /**
21
- * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.
22
- * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains
23
- * an example, the examples value SHALL override the example provided by the schema.
24
- */
25
12
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
26
13
  summary: z.ZodOptional<z.ZodString>;
27
14
  description: z.ZodOptional<z.ZodString>;
28
15
  value: z.ZodOptional<z.ZodAny>;
29
16
  externalValue: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- description?: string | undefined;
32
- summary?: string | undefined;
33
- value?: any;
34
- externalValue?: string | undefined;
35
- }, {
36
- description?: string | undefined;
37
- summary?: string | undefined;
38
- value?: any;
39
- externalValue?: string | undefined;
40
- }>>>;
41
- /**
42
- * A map between a property name and its encoding information. The key, being the property name, MUST exist in the
43
- * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is
44
- * multipart or application/x-www-form-urlencoded.
45
- */
17
+ }, z.core.$strip>>>;
46
18
  encoding: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
47
19
  contentType: z.ZodString;
48
20
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
49
21
  description: z.ZodOptional<z.ZodString>;
50
22
  required: z.ZodOptional<z.ZodBoolean>;
51
23
  deprecated: z.ZodOptional<z.ZodBoolean>;
52
- style: z.ZodOptional<z.ZodEnum<["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]>>;
24
+ style: z.ZodOptional<z.ZodEnum<{
25
+ matrix: "matrix";
26
+ label: "label";
27
+ simple: "simple";
28
+ form: "form";
29
+ spaceDelimited: "spaceDelimited";
30
+ pipeDelimited: "pipeDelimited";
31
+ deepObject: "deepObject";
32
+ }>>;
53
33
  explode: z.ZodOptional<z.ZodBoolean>;
54
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
34
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
55
35
  example: z.ZodOptional<z.ZodAny>;
56
36
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
57
37
  summary: z.ZodOptional<z.ZodString>;
58
38
  description: z.ZodOptional<z.ZodString>;
59
39
  value: z.ZodOptional<z.ZodAny>;
60
40
  externalValue: z.ZodOptional<z.ZodString>;
61
- }, "strip", z.ZodTypeAny, {
62
- description?: string | undefined;
63
- summary?: string | undefined;
64
- value?: any;
65
- externalValue?: string | undefined;
66
- }, {
67
- description?: string | undefined;
68
- summary?: string | undefined;
69
- value?: any;
70
- externalValue?: string | undefined;
71
- }>>>;
41
+ }, z.core.$strip>>>;
72
42
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
73
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
43
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
74
44
  example: z.ZodOptional<z.ZodAny>;
75
45
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
76
46
  summary: z.ZodOptional<z.ZodString>;
77
47
  description: z.ZodOptional<z.ZodString>;
78
48
  value: z.ZodOptional<z.ZodAny>;
79
49
  externalValue: z.ZodOptional<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
81
- description?: string | undefined;
82
- summary?: string | undefined;
83
- value?: any;
84
- externalValue?: string | undefined;
85
- }, {
86
- description?: string | undefined;
87
- summary?: string | undefined;
88
- value?: any;
89
- externalValue?: string | undefined;
90
- }>>>;
91
- }, "strip", z.ZodTypeAny, {
92
- example?: any;
93
- examples?: Record<string, {
94
- description?: string | undefined;
95
- summary?: string | undefined;
96
- value?: any;
97
- externalValue?: string | undefined;
98
- }> | undefined;
99
- schema?: Record<string, any> | undefined;
100
- }, {
101
- example?: any;
102
- examples?: Record<string, {
103
- description?: string | undefined;
104
- summary?: string | undefined;
105
- value?: any;
106
- externalValue?: string | undefined;
107
- }> | undefined;
108
- schema?: Record<string, any> | undefined;
109
- }>>>;
110
- }, "strip", z.ZodTypeAny, {
111
- description?: string | undefined;
112
- deprecated?: boolean | undefined;
113
- content?: Record<string, {
114
- example?: any;
115
- examples?: Record<string, {
116
- description?: string | undefined;
117
- summary?: string | undefined;
118
- value?: any;
119
- externalValue?: string | undefined;
120
- }> | undefined;
121
- schema?: Record<string, any> | undefined;
122
- }> | undefined;
123
- required?: boolean | undefined;
124
- example?: any;
125
- examples?: Record<string, {
126
- description?: string | undefined;
127
- summary?: string | undefined;
128
- value?: any;
129
- externalValue?: string | undefined;
130
- }> | undefined;
131
- schema?: Record<string, any> | undefined;
132
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
133
- explode?: boolean | undefined;
134
- }, {
135
- description?: string | undefined;
136
- deprecated?: boolean | undefined;
137
- content?: Record<string, {
138
- example?: any;
139
- examples?: Record<string, {
140
- description?: string | undefined;
141
- summary?: string | undefined;
142
- value?: any;
143
- externalValue?: string | undefined;
144
- }> | undefined;
145
- schema?: Record<string, any> | undefined;
146
- }> | undefined;
147
- required?: boolean | undefined;
148
- example?: any;
149
- examples?: Record<string, {
150
- description?: string | undefined;
151
- summary?: string | undefined;
152
- value?: any;
153
- externalValue?: string | undefined;
154
- }> | undefined;
155
- schema?: Record<string, any> | undefined;
156
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
157
- explode?: boolean | undefined;
158
- }>>>;
159
- }, "strip", z.ZodTypeAny, {
160
- contentType: string;
161
- headers?: Record<string, {
162
- description?: string | undefined;
163
- deprecated?: boolean | undefined;
164
- content?: Record<string, {
165
- example?: any;
166
- examples?: Record<string, {
167
- description?: string | undefined;
168
- summary?: string | undefined;
169
- value?: any;
170
- externalValue?: string | undefined;
171
- }> | undefined;
172
- schema?: Record<string, any> | undefined;
173
- }> | undefined;
174
- required?: boolean | undefined;
175
- example?: any;
176
- examples?: Record<string, {
177
- description?: string | undefined;
178
- summary?: string | undefined;
179
- value?: any;
180
- externalValue?: string | undefined;
181
- }> | undefined;
182
- schema?: Record<string, any> | undefined;
183
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
184
- explode?: boolean | undefined;
185
- }> | undefined;
186
- }, {
187
- contentType: string;
188
- headers?: Record<string, {
189
- description?: string | undefined;
190
- deprecated?: boolean | undefined;
191
- content?: Record<string, {
192
- example?: any;
193
- examples?: Record<string, {
194
- description?: string | undefined;
195
- summary?: string | undefined;
196
- value?: any;
197
- externalValue?: string | undefined;
198
- }> | undefined;
199
- schema?: Record<string, any> | undefined;
200
- }> | undefined;
201
- required?: boolean | undefined;
202
- example?: any;
203
- examples?: Record<string, {
204
- description?: string | undefined;
205
- summary?: string | undefined;
206
- value?: any;
207
- externalValue?: string | undefined;
208
- }> | undefined;
209
- schema?: Record<string, any> | undefined;
210
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
211
- explode?: boolean | undefined;
212
- }> | undefined;
213
- }>>>;
214
- }, "strip", z.ZodTypeAny, {
215
- example?: any;
216
- examples?: Record<string, {
217
- description?: string | undefined;
218
- summary?: string | undefined;
219
- value?: any;
220
- externalValue?: string | undefined;
221
- }> | undefined;
222
- schema?: Record<string, any> | undefined;
223
- encoding?: Record<string, {
224
- contentType: string;
225
- headers?: Record<string, {
226
- description?: string | undefined;
227
- deprecated?: boolean | undefined;
228
- content?: Record<string, {
229
- example?: any;
230
- examples?: Record<string, {
231
- description?: string | undefined;
232
- summary?: string | undefined;
233
- value?: any;
234
- externalValue?: string | undefined;
235
- }> | undefined;
236
- schema?: Record<string, any> | undefined;
237
- }> | undefined;
238
- required?: boolean | undefined;
239
- example?: any;
240
- examples?: Record<string, {
241
- description?: string | undefined;
242
- summary?: string | undefined;
243
- value?: any;
244
- externalValue?: string | undefined;
245
- }> | undefined;
246
- schema?: Record<string, any> | undefined;
247
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
248
- explode?: boolean | undefined;
249
- }> | undefined;
250
- }> | undefined;
251
- }, {
252
- example?: any;
253
- examples?: Record<string, {
254
- description?: string | undefined;
255
- summary?: string | undefined;
256
- value?: any;
257
- externalValue?: string | undefined;
258
- }> | undefined;
259
- schema?: Record<string, any> | undefined;
260
- encoding?: Record<string, {
261
- contentType: string;
262
- headers?: Record<string, {
263
- description?: string | undefined;
264
- deprecated?: boolean | undefined;
265
- content?: Record<string, {
266
- example?: any;
267
- examples?: Record<string, {
268
- description?: string | undefined;
269
- summary?: string | undefined;
270
- value?: any;
271
- externalValue?: string | undefined;
272
- }> | undefined;
273
- schema?: Record<string, any> | undefined;
274
- }> | undefined;
275
- required?: boolean | undefined;
276
- example?: any;
277
- examples?: Record<string, {
278
- description?: string | undefined;
279
- summary?: string | undefined;
280
- value?: any;
281
- externalValue?: string | undefined;
282
- }> | undefined;
283
- schema?: Record<string, any> | undefined;
284
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
285
- explode?: boolean | undefined;
286
- }> | undefined;
287
- }> | undefined;
288
- }>;
50
+ }, z.core.$strip>>>;
51
+ }, z.core.$strip>>>;
52
+ }, z.core.$strip>>>;
53
+ }, z.core.$strip>>>;
54
+ }, z.core.$strip>;
289
55
  //# sourceMappingURL=media-type-object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-type-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/media-type-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;IAChC;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA"}
1
+ {"version":3,"file":"media-type-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/media-type-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBhC,CAAA"}