@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":"operation-object-without-callbacks.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/operation-object-without-callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;IAChD;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;OAMG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA"}
1
+ {"version":3,"file":"operation-object-without-callbacks.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/operation-object-without-callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuDhD,CAAA"}
@@ -9,468 +9,81 @@ import { z } from 'zod';
9
9
  * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object
10
10
  */
11
11
  export declare const ParameterObjectSchema: z.ZodObject<{
12
- /**
13
- * REQUIRED. The name of the parameter. Parameter names are case sensitive.
14
- *
15
- * - If in is "path", the name field MUST correspond to a template expression occurring within the path field in the
16
- * Paths Object. See Path Templating for further information.
17
- * - If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition
18
- * SHALL be ignored.
19
- * - For all other cases, the name corresponds to the parameter name used by the in property.
20
- **/
21
12
  name: z.ZodString;
22
- /**
23
- * REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie".
24
- **/
25
- in: z.ZodEnum<["query", "header", "path", "cookie"]>;
26
- /**
27
- * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich
28
- * text representation.
29
- **/
13
+ in: z.ZodEnum<{
14
+ path: "path";
15
+ query: "query";
16
+ header: "header";
17
+ cookie: "cookie";
18
+ }>;
30
19
  description: z.ZodOptional<z.ZodString>;
31
- /**
32
- * Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and
33
- * its value MUST be true. Otherwise, the property MAY be included and its default value is false.
34
- **/
35
20
  required: z.ZodOptional<z.ZodBoolean>;
36
- /**
37
- * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.
38
- **/
39
21
  deprecated: z.ZodOptional<z.ZodBoolean>;
40
- /**
41
- * Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a
42
- * parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be
43
- * serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is
44
- * likely to be removed in a later revision.
45
- **/
46
22
  allowEmptyValue: z.ZodOptional<z.ZodBoolean>;
47
- /**
48
- * Describes how the parameter value will be serialized depending on the type of the parameter value. Default values
49
- * (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
50
- **/
51
- style: z.ZodOptional<z.ZodEnum<["matrix", "label", "form", "simple", "spaceDelimited", "pipeDelimited", "deepObject"]>>;
52
- /**
53
- * When this is true, parameter values of type array or object generate separate parameters for each value of the
54
- * array or key-value pair of the map. For other types of parameters this property has no effect. When style is form,
55
- * the default value is true. For all other styles, the default value is false. */
23
+ style: z.ZodOptional<z.ZodEnum<{
24
+ matrix: "matrix";
25
+ label: "label";
26
+ simple: "simple";
27
+ form: "form";
28
+ spaceDelimited: "spaceDelimited";
29
+ pipeDelimited: "pipeDelimited";
30
+ deepObject: "deepObject";
31
+ }>>;
56
32
  explode: z.ZodOptional<z.ZodBoolean>;
57
- /**
58
- * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;=
59
- * to be included without percent-encoding. This property only applies to parameters with an in value of query.
60
- * The default value is false.
61
- **/
62
33
  allowReserved: z.ZodOptional<z.ZodBoolean>;
63
- /**
64
- * The schema defining the type used for the parameter.
65
- **/
66
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
67
- /**
68
- * Example of the parameter's potential value. The example SHOULD match the specified schema and encoding properties
69
- * if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema
70
- * that contains an example, the example value SHALL override the example provided by the schema. To represent
71
- * examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the
72
- * example with escaping where necessary.
73
- **/
34
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
74
35
  example: z.ZodOptional<z.ZodAny>;
75
- /**
76
- * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as
77
- * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,
78
- * if referencing a schema that contains an example, the examples value SHALL override the example provided by the
79
- * schema.
80
- **/
81
36
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
82
37
  summary: z.ZodOptional<z.ZodString>;
83
38
  description: z.ZodOptional<z.ZodString>;
84
39
  value: z.ZodOptional<z.ZodAny>;
85
40
  externalValue: z.ZodOptional<z.ZodString>;
86
- }, "strip", z.ZodTypeAny, {
87
- description?: string | undefined;
88
- summary?: string | undefined;
89
- value?: any;
90
- externalValue?: string | undefined;
91
- }, {
92
- description?: string | undefined;
93
- summary?: string | undefined;
94
- value?: any;
95
- externalValue?: string | undefined;
96
- }>>>;
97
- /**
98
- * A map containing the representations for the parameter. The key is the media type and the value describes it.
99
- * The map MUST only contain one entry.
100
- **/
41
+ }, z.core.$strip>>>;
101
42
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
102
- 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>>>;
103
44
  example: z.ZodOptional<z.ZodAny>;
104
45
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
105
46
  summary: z.ZodOptional<z.ZodString>;
106
47
  description: z.ZodOptional<z.ZodString>;
107
48
  value: z.ZodOptional<z.ZodAny>;
108
49
  externalValue: z.ZodOptional<z.ZodString>;
109
- }, "strip", z.ZodTypeAny, {
110
- description?: string | undefined;
111
- summary?: string | undefined;
112
- value?: any;
113
- externalValue?: string | undefined;
114
- }, {
115
- description?: string | undefined;
116
- summary?: string | undefined;
117
- value?: any;
118
- externalValue?: string | undefined;
119
- }>>>;
50
+ }, z.core.$strip>>>;
120
51
  encoding: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
121
52
  contentType: z.ZodString;
122
53
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
123
54
  description: z.ZodOptional<z.ZodString>;
124
55
  required: z.ZodOptional<z.ZodBoolean>;
125
56
  deprecated: z.ZodOptional<z.ZodBoolean>;
126
- style: z.ZodOptional<z.ZodEnum<["matrix", "label", "simple", "form", "spaceDelimited", "pipeDelimited", "deepObject"]>>;
57
+ style: z.ZodOptional<z.ZodEnum<{
58
+ matrix: "matrix";
59
+ label: "label";
60
+ simple: "simple";
61
+ form: "form";
62
+ spaceDelimited: "spaceDelimited";
63
+ pipeDelimited: "pipeDelimited";
64
+ deepObject: "deepObject";
65
+ }>>;
127
66
  explode: z.ZodOptional<z.ZodBoolean>;
128
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
67
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
129
68
  example: z.ZodOptional<z.ZodAny>;
130
69
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
131
70
  summary: z.ZodOptional<z.ZodString>;
132
71
  description: z.ZodOptional<z.ZodString>;
133
72
  value: z.ZodOptional<z.ZodAny>;
134
73
  externalValue: z.ZodOptional<z.ZodString>;
135
- }, "strip", z.ZodTypeAny, {
136
- description?: string | undefined;
137
- summary?: string | undefined;
138
- value?: any;
139
- externalValue?: string | undefined;
140
- }, {
141
- description?: string | undefined;
142
- summary?: string | undefined;
143
- value?: any;
144
- externalValue?: string | undefined;
145
- }>>>;
74
+ }, z.core.$strip>>>;
146
75
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
147
- schema: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
76
+ schema: z.ZodOptional<z.ZodType<Record<string, any>, unknown, z.core.$ZodTypeInternals<Record<string, any>, unknown>>>;
148
77
  example: z.ZodOptional<z.ZodAny>;
149
78
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
150
79
  summary: z.ZodOptional<z.ZodString>;
151
80
  description: z.ZodOptional<z.ZodString>;
152
81
  value: z.ZodOptional<z.ZodAny>;
153
82
  externalValue: z.ZodOptional<z.ZodString>;
154
- }, "strip", z.ZodTypeAny, {
155
- description?: string | undefined;
156
- summary?: string | undefined;
157
- value?: any;
158
- externalValue?: string | undefined;
159
- }, {
160
- description?: string | undefined;
161
- summary?: string | undefined;
162
- value?: any;
163
- externalValue?: string | undefined;
164
- }>>>;
165
- }, "strip", z.ZodTypeAny, {
166
- example?: any;
167
- examples?: Record<string, {
168
- description?: string | undefined;
169
- summary?: string | undefined;
170
- value?: any;
171
- externalValue?: string | undefined;
172
- }> | undefined;
173
- schema?: Record<string, any> | undefined;
174
- }, {
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
- }>>>;
184
- }, "strip", z.ZodTypeAny, {
185
- description?: string | undefined;
186
- deprecated?: boolean | undefined;
187
- content?: Record<string, {
188
- example?: any;
189
- examples?: Record<string, {
190
- description?: string | undefined;
191
- summary?: string | undefined;
192
- value?: any;
193
- externalValue?: string | undefined;
194
- }> | undefined;
195
- schema?: Record<string, any> | undefined;
196
- }> | undefined;
197
- required?: boolean | undefined;
198
- example?: any;
199
- examples?: Record<string, {
200
- description?: string | undefined;
201
- summary?: string | undefined;
202
- value?: any;
203
- externalValue?: string | undefined;
204
- }> | undefined;
205
- schema?: Record<string, any> | undefined;
206
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
207
- explode?: boolean | undefined;
208
- }, {
209
- description?: string | undefined;
210
- deprecated?: boolean | undefined;
211
- content?: Record<string, {
212
- example?: any;
213
- examples?: Record<string, {
214
- description?: string | undefined;
215
- summary?: string | undefined;
216
- value?: any;
217
- externalValue?: string | undefined;
218
- }> | undefined;
219
- schema?: Record<string, any> | undefined;
220
- }> | undefined;
221
- required?: boolean | undefined;
222
- example?: any;
223
- examples?: Record<string, {
224
- description?: string | undefined;
225
- summary?: string | undefined;
226
- value?: any;
227
- externalValue?: string | undefined;
228
- }> | undefined;
229
- schema?: Record<string, any> | undefined;
230
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
231
- explode?: boolean | undefined;
232
- }>>>;
233
- }, "strip", z.ZodTypeAny, {
234
- contentType: string;
235
- headers?: Record<string, {
236
- description?: string | undefined;
237
- deprecated?: boolean | undefined;
238
- content?: Record<string, {
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
- }> | undefined;
248
- required?: boolean | undefined;
249
- example?: any;
250
- examples?: Record<string, {
251
- description?: string | undefined;
252
- summary?: string | undefined;
253
- value?: any;
254
- externalValue?: string | undefined;
255
- }> | undefined;
256
- schema?: Record<string, any> | undefined;
257
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
258
- explode?: boolean | undefined;
259
- }> | undefined;
260
- }, {
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
- }>>>;
288
- }, "strip", z.ZodTypeAny, {
289
- example?: any;
290
- examples?: Record<string, {
291
- description?: string | undefined;
292
- summary?: string | undefined;
293
- value?: any;
294
- externalValue?: string | undefined;
295
- }> | undefined;
296
- schema?: Record<string, any> | undefined;
297
- encoding?: Record<string, {
298
- contentType: string;
299
- headers?: Record<string, {
300
- description?: string | undefined;
301
- deprecated?: boolean | undefined;
302
- content?: Record<string, {
303
- example?: any;
304
- examples?: Record<string, {
305
- description?: string | undefined;
306
- summary?: string | undefined;
307
- value?: any;
308
- externalValue?: string | undefined;
309
- }> | undefined;
310
- schema?: Record<string, any> | undefined;
311
- }> | undefined;
312
- required?: boolean | undefined;
313
- example?: any;
314
- examples?: Record<string, {
315
- description?: string | undefined;
316
- summary?: string | undefined;
317
- value?: any;
318
- externalValue?: string | undefined;
319
- }> | undefined;
320
- schema?: Record<string, any> | undefined;
321
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
322
- explode?: boolean | undefined;
323
- }> | undefined;
324
- }> | undefined;
325
- }, {
326
- example?: any;
327
- examples?: Record<string, {
328
- description?: string | undefined;
329
- summary?: string | undefined;
330
- value?: any;
331
- externalValue?: string | undefined;
332
- }> | undefined;
333
- schema?: Record<string, any> | undefined;
334
- encoding?: Record<string, {
335
- contentType: string;
336
- headers?: Record<string, {
337
- description?: string | undefined;
338
- deprecated?: boolean | undefined;
339
- content?: Record<string, {
340
- example?: any;
341
- examples?: Record<string, {
342
- description?: string | undefined;
343
- summary?: string | undefined;
344
- value?: any;
345
- externalValue?: string | undefined;
346
- }> | undefined;
347
- schema?: Record<string, any> | undefined;
348
- }> | undefined;
349
- required?: boolean | undefined;
350
- example?: any;
351
- examples?: Record<string, {
352
- description?: string | undefined;
353
- summary?: string | undefined;
354
- value?: any;
355
- externalValue?: string | undefined;
356
- }> | undefined;
357
- schema?: Record<string, any> | undefined;
358
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
359
- explode?: boolean | undefined;
360
- }> | undefined;
361
- }> | undefined;
362
- }>>>;
363
- }, "strip", z.ZodTypeAny, {
364
- name: string;
365
- in: "path" | "query" | "header" | "cookie";
366
- description?: string | undefined;
367
- deprecated?: boolean | undefined;
368
- content?: Record<string, {
369
- example?: any;
370
- examples?: Record<string, {
371
- description?: string | undefined;
372
- summary?: string | undefined;
373
- value?: any;
374
- externalValue?: string | undefined;
375
- }> | undefined;
376
- schema?: Record<string, any> | undefined;
377
- encoding?: Record<string, {
378
- contentType: string;
379
- headers?: Record<string, {
380
- description?: string | undefined;
381
- deprecated?: boolean | undefined;
382
- content?: Record<string, {
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
- }> | undefined;
392
- required?: boolean | undefined;
393
- example?: any;
394
- examples?: Record<string, {
395
- description?: string | undefined;
396
- summary?: string | undefined;
397
- value?: any;
398
- externalValue?: string | undefined;
399
- }> | undefined;
400
- schema?: Record<string, any> | undefined;
401
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
402
- explode?: boolean | undefined;
403
- }> | undefined;
404
- }> | undefined;
405
- }> | undefined;
406
- required?: boolean | undefined;
407
- example?: any;
408
- examples?: Record<string, {
409
- description?: string | undefined;
410
- summary?: string | undefined;
411
- value?: any;
412
- externalValue?: string | undefined;
413
- }> | undefined;
414
- schema?: Record<string, any> | undefined;
415
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
416
- explode?: boolean | undefined;
417
- allowEmptyValue?: boolean | undefined;
418
- allowReserved?: boolean | undefined;
419
- }, {
420
- name: string;
421
- in: "path" | "query" | "header" | "cookie";
422
- description?: string | undefined;
423
- deprecated?: boolean | undefined;
424
- content?: Record<string, {
425
- example?: any;
426
- examples?: Record<string, {
427
- description?: string | undefined;
428
- summary?: string | undefined;
429
- value?: any;
430
- externalValue?: string | undefined;
431
- }> | undefined;
432
- schema?: Record<string, any> | undefined;
433
- encoding?: Record<string, {
434
- contentType: string;
435
- headers?: Record<string, {
436
- description?: string | undefined;
437
- deprecated?: boolean | undefined;
438
- content?: Record<string, {
439
- example?: any;
440
- examples?: Record<string, {
441
- description?: string | undefined;
442
- summary?: string | undefined;
443
- value?: any;
444
- externalValue?: string | undefined;
445
- }> | undefined;
446
- schema?: Record<string, any> | undefined;
447
- }> | undefined;
448
- required?: boolean | undefined;
449
- example?: any;
450
- examples?: Record<string, {
451
- description?: string | undefined;
452
- summary?: string | undefined;
453
- value?: any;
454
- externalValue?: string | undefined;
455
- }> | undefined;
456
- schema?: Record<string, any> | undefined;
457
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
458
- explode?: boolean | undefined;
459
- }> | undefined;
460
- }> | undefined;
461
- }> | undefined;
462
- required?: boolean | undefined;
463
- example?: any;
464
- examples?: Record<string, {
465
- description?: string | undefined;
466
- summary?: string | undefined;
467
- value?: any;
468
- externalValue?: string | undefined;
469
- }> | undefined;
470
- schema?: Record<string, any> | undefined;
471
- style?: "matrix" | "label" | "simple" | "form" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
472
- explode?: boolean | undefined;
473
- allowEmptyValue?: boolean | undefined;
474
- allowReserved?: boolean | undefined;
475
- }>;
83
+ }, z.core.$strip>>>;
84
+ }, z.core.$strip>>>;
85
+ }, z.core.$strip>>>;
86
+ }, z.core.$strip>>>;
87
+ }, z.core.$strip>>>;
88
+ }, z.core.$strip>;
476
89
  //# sourceMappingURL=parameter-object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameter-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/parameter-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;IAChC;;;;;;;;QAQI;;IAEJ;;QAEI;;IAEJ;;;QAGI;;IAEJ;;;QAGI;;IAEJ;;QAEI;;IAEJ;;;;;QAKI;;IAEJ;;;QAGI;;IAEJ;;;sFAGkF;;IAElF;;;;QAII;;IAEJ;;QAEI;;IAEJ;;;;;;QAMI;;IAEJ;;;;;QAKI;;;;;;;;;;;;;;;;;IAEJ;;;QAGI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEJ,CAAA"}
1
+ {"version":3,"file":"parameter-object.d.ts","sourceRoot":"","sources":["../../../../src/schemas/3.1/processed/parameter-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4EhC,CAAA"}