@scalar/workspace-store 0.6.0 → 0.8.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 (218) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +116 -0
  3. package/dist/client.d.ts +71 -44614
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +146 -11
  6. package/dist/client.js.map +2 -2
  7. package/dist/helpers/apply-selective-updates.d.ts +17 -0
  8. package/dist/helpers/apply-selective-updates.d.ts.map +1 -0
  9. package/dist/helpers/apply-selective-updates.js +13 -0
  10. package/dist/helpers/apply-selective-updates.js.map +7 -0
  11. package/dist/helpers/general.d.ts +33 -0
  12. package/dist/helpers/general.d.ts.map +1 -1
  13. package/dist/helpers/general.js +14 -1
  14. package/dist/helpers/general.js.map +2 -2
  15. package/dist/helpers/json-path-utils.d.ts +1 -1
  16. package/dist/helpers/json-path-utils.d.ts.map +1 -1
  17. package/dist/helpers/json-path-utils.js.map +2 -2
  18. package/dist/helpers/merge-object.d.ts +23 -0
  19. package/dist/helpers/merge-object.d.ts.map +1 -0
  20. package/dist/helpers/merge-object.js +20 -0
  21. package/dist/helpers/merge-object.js.map +7 -0
  22. package/dist/helpers/proxy.d.ts +1 -1
  23. package/dist/helpers/proxy.d.ts.map +1 -1
  24. package/dist/helpers/proxy.js.map +2 -2
  25. package/dist/mutators/cookie.d.ts +17 -0
  26. package/dist/mutators/cookie.d.ts.map +1 -0
  27. package/dist/mutators/cookie.js +31 -0
  28. package/dist/mutators/cookie.js.map +7 -0
  29. package/dist/mutators/environment.d.ts +17 -0
  30. package/dist/mutators/environment.d.ts.map +1 -0
  31. package/dist/mutators/environment.js +31 -0
  32. package/dist/mutators/environment.js.map +7 -0
  33. package/dist/mutators/helpers.d.ts +34492 -0
  34. package/dist/mutators/helpers.d.ts.map +1 -0
  35. package/dist/mutators/helpers.js +11 -0
  36. package/dist/mutators/helpers.js.map +7 -0
  37. package/dist/mutators/index.d.ts +108 -0
  38. package/dist/mutators/index.d.ts.map +1 -0
  39. package/dist/mutators/index.js +67 -0
  40. package/dist/mutators/index.js.map +7 -0
  41. package/dist/mutators/request-example.d.ts +21 -0
  42. package/dist/mutators/request-example.d.ts.map +1 -0
  43. package/dist/mutators/request-example.js +58 -0
  44. package/dist/mutators/request-example.js.map +7 -0
  45. package/dist/mutators/request.d.ts +22 -0
  46. package/dist/mutators/request.d.ts.map +1 -0
  47. package/dist/mutators/request.js +53 -0
  48. package/dist/mutators/request.js.map +7 -0
  49. package/dist/mutators/security-schemes.d.ts +14 -0
  50. package/dist/mutators/security-schemes.d.ts.map +1 -0
  51. package/dist/mutators/security-schemes.js +27 -0
  52. package/dist/mutators/security-schemes.js.map +7 -0
  53. package/dist/mutators/server.d.ts +12 -0
  54. package/dist/mutators/server.d.ts.map +1 -0
  55. package/dist/mutators/server.js +24 -0
  56. package/dist/mutators/server.js.map +7 -0
  57. package/dist/schemas/compose.d.ts.map +1 -0
  58. package/dist/schemas/{v3.1/compose.js.map → compose.js.map} +1 -1
  59. package/dist/schemas/reference-config/appearance.d.ts +13 -0
  60. package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
  61. package/dist/schemas/reference-config/appearance.js +26 -0
  62. package/dist/schemas/reference-config/appearance.js.map +7 -0
  63. package/dist/schemas/reference-config/features.d.ts +15 -0
  64. package/dist/schemas/reference-config/features.d.ts.map +1 -0
  65. package/dist/schemas/reference-config/features.js +30 -0
  66. package/dist/schemas/reference-config/features.js.map +7 -0
  67. package/dist/schemas/reference-config/index.d.ts +53 -0
  68. package/dist/schemas/reference-config/index.d.ts.map +1 -0
  69. package/dist/schemas/reference-config/index.js +66 -0
  70. package/dist/schemas/reference-config/index.js.map +7 -0
  71. package/dist/schemas/reference-config/meta.d.ts +12 -0
  72. package/dist/schemas/reference-config/meta.d.ts.map +1 -0
  73. package/dist/schemas/reference-config/meta.js +24 -0
  74. package/dist/schemas/reference-config/meta.js.map +7 -0
  75. package/dist/schemas/reference-config/routing.d.ts +8 -0
  76. package/dist/schemas/reference-config/routing.d.ts.map +1 -0
  77. package/dist/schemas/reference-config/routing.js +16 -0
  78. package/dist/schemas/reference-config/routing.js.map +7 -0
  79. package/dist/schemas/reference-config/settings.d.ts +8 -0
  80. package/dist/schemas/reference-config/settings.d.ts.map +1 -0
  81. package/dist/schemas/reference-config/settings.js +16 -0
  82. package/dist/schemas/reference-config/settings.js.map +7 -0
  83. package/dist/schemas/v3.1/strict/callback.js +1 -1
  84. package/dist/schemas/v3.1/strict/callback.js.map +1 -1
  85. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
  86. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
  87. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
  88. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
  89. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
  90. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
  91. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +23 -0
  92. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
  93. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
  94. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
  95. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
  96. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
  97. package/dist/schemas/v3.1/strict/components.d.ts +45 -7821
  98. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  99. package/dist/schemas/v3.1/strict/components.js +4 -2
  100. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  101. package/dist/schemas/v3.1/strict/contact.js +1 -1
  102. package/dist/schemas/v3.1/strict/contact.js.map +1 -1
  103. package/dist/schemas/v3.1/strict/discriminator.js +1 -1
  104. package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
  105. package/dist/schemas/v3.1/strict/encoding.js +1 -1
  106. package/dist/schemas/v3.1/strict/encoding.js.map +1 -1
  107. package/dist/schemas/v3.1/strict/example.js +1 -1
  108. package/dist/schemas/v3.1/strict/example.js.map +1 -1
  109. package/dist/schemas/v3.1/strict/external-documentation.js +1 -1
  110. package/dist/schemas/v3.1/strict/external-documentation.js.map +1 -1
  111. package/dist/schemas/v3.1/strict/header.d.ts +2 -0
  112. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  113. package/dist/schemas/v3.1/strict/header.js +1 -1
  114. package/dist/schemas/v3.1/strict/header.js.map +1 -1
  115. package/dist/schemas/v3.1/strict/info.js +1 -1
  116. package/dist/schemas/v3.1/strict/info.js.map +1 -1
  117. package/dist/schemas/v3.1/strict/license.js +1 -1
  118. package/dist/schemas/v3.1/strict/license.js.map +1 -1
  119. package/dist/schemas/v3.1/strict/link.js +1 -1
  120. package/dist/schemas/v3.1/strict/link.js.map +1 -1
  121. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
  122. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
  123. package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
  124. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  125. package/dist/schemas/v3.1/strict/media-type.js +1 -1
  126. package/dist/schemas/v3.1/strict/media-type.js.map +1 -1
  127. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
  128. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  129. package/dist/schemas/v3.1/strict/oauth-flow.js +45 -8
  130. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  131. package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
  132. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  133. package/dist/schemas/v3.1/strict/oauthflows.js +12 -9
  134. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  135. package/dist/schemas/v3.1/strict/openapi-document.d.ts +16 -0
  136. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  137. package/dist/schemas/v3.1/strict/openapi-document.js +9 -2
  138. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  139. package/dist/schemas/v3.1/strict/operation.d.ts +29 -2
  140. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  141. package/dist/schemas/v3.1/strict/operation.js +8 -1
  142. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  143. package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
  144. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  145. package/dist/schemas/v3.1/strict/parameter.js +2 -2
  146. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  147. package/dist/schemas/v3.1/strict/path-item.d.ts +11 -2
  148. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  149. package/dist/schemas/v3.1/strict/path-item.js +7 -1
  150. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  151. package/dist/schemas/v3.1/strict/path-operations.d.ts +4133 -260
  152. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  153. package/dist/schemas/v3.1/strict/paths.d.ts +1935 -15
  154. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  155. package/dist/schemas/v3.1/strict/paths.js +1 -1
  156. package/dist/schemas/v3.1/strict/paths.js.map +1 -1
  157. package/dist/schemas/v3.1/strict/reference.js +1 -1
  158. package/dist/schemas/v3.1/strict/reference.js.map +1 -1
  159. package/dist/schemas/v3.1/strict/request-body.d.ts +2 -0
  160. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  161. package/dist/schemas/v3.1/strict/request-body.js +1 -1
  162. package/dist/schemas/v3.1/strict/request-body.js.map +1 -1
  163. package/dist/schemas/v3.1/strict/response.d.ts +4 -0
  164. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  165. package/dist/schemas/v3.1/strict/response.js +1 -1
  166. package/dist/schemas/v3.1/strict/response.js.map +1 -1
  167. package/dist/schemas/v3.1/strict/responses.d.ts +4 -0
  168. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  169. package/dist/schemas/v3.1/strict/responses.js +1 -1
  170. package/dist/schemas/v3.1/strict/responses.js.map +1 -1
  171. package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
  172. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  173. package/dist/schemas/v3.1/strict/schema.js +8 -3
  174. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  175. package/dist/schemas/v3.1/strict/security-requirement.js +1 -1
  176. package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
  177. package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
  178. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  179. package/dist/schemas/v3.1/strict/security-scheme.js +1 -1
  180. package/dist/schemas/v3.1/strict/security-scheme.js.map +1 -1
  181. package/dist/schemas/v3.1/strict/server-variable.js +1 -1
  182. package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
  183. package/dist/schemas/v3.1/strict/server.js +1 -1
  184. package/dist/schemas/v3.1/strict/server.js.map +1 -1
  185. package/dist/schemas/v3.1/strict/tag.js +1 -1
  186. package/dist/schemas/v3.1/strict/tag.js.map +1 -1
  187. package/dist/schemas/v3.1/strict/xml.js +1 -1
  188. package/dist/schemas/v3.1/strict/xml.js.map +1 -1
  189. package/dist/schemas/v3.1/type-guard.d.ts +5 -0
  190. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
  191. package/dist/schemas/v3.1/type-guard.js +1 -3
  192. package/dist/schemas/v3.1/type-guard.js.map +2 -2
  193. package/dist/schemas/workspace-specification/config.d.ts +48 -0
  194. package/dist/schemas/workspace-specification/config.d.ts.map +1 -0
  195. package/dist/schemas/workspace-specification/config.js +11 -0
  196. package/dist/schemas/workspace-specification/config.js.map +7 -0
  197. package/dist/schemas/workspace-specification/index.d.ts +163 -0
  198. package/dist/schemas/workspace-specification/index.d.ts.map +1 -0
  199. package/dist/schemas/workspace-specification/index.js +27 -0
  200. package/dist/schemas/workspace-specification/index.js.map +7 -0
  201. package/dist/schemas/workspace-specification/info.d.ts +5 -0
  202. package/dist/schemas/workspace-specification/info.d.ts.map +1 -0
  203. package/dist/schemas/workspace-specification/info.js +9 -0
  204. package/dist/schemas/workspace-specification/info.js.map +7 -0
  205. package/dist/schemas/workspace.d.ts +147 -79
  206. package/dist/schemas/workspace.d.ts.map +1 -1
  207. package/dist/schemas/workspace.js +19 -4
  208. package/dist/schemas/workspace.js.map +2 -2
  209. package/dist/server.d.ts +1371 -673
  210. package/dist/server.d.ts.map +1 -1
  211. package/dist/types.d.ts +57 -0
  212. package/dist/types.d.ts.map +1 -0
  213. package/dist/types.js +1 -0
  214. package/dist/types.js.map +7 -0
  215. package/package.json +23 -9
  216. package/dist/schemas/v3.1/compose.d.ts.map +0 -1
  217. /package/dist/schemas/{v3.1/compose.d.ts → compose.d.ts} +0 -0
  218. /package/dist/schemas/{v3.1/compose.js → compose.js} +0 -0
@@ -6,7 +6,7 @@ export declare const ParameterObjectBaseSchema: import("@sinclair/typebox").TInt
6
6
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
7
7
  name: import("@sinclair/typebox").TString;
8
8
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
9
- in: import("@sinclair/typebox").TString;
9
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
10
10
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
11
11
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
12
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -23,7 +23,7 @@ export declare const ParameterObjectWithSchemaSchema: import("@sinclair/typebox"
23
23
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
24
24
  name: import("@sinclair/typebox").TString;
25
25
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
26
- in: import("@sinclair/typebox").TString;
26
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
27
27
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
28
28
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
29
29
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -55,6 +55,7 @@ export declare const ParameterObjectWithSchemaSchema: import("@sinclair/typebox"
55
55
  url: import("@sinclair/typebox").TString;
56
56
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
57
57
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
58
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
58
59
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
59
60
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
60
61
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -89,7 +90,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
89
90
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
90
91
  name: import("@sinclair/typebox").TString;
91
92
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
92
- in: import("@sinclair/typebox").TString;
93
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
93
94
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
94
95
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
95
96
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -117,6 +118,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
117
118
  url: import("@sinclair/typebox").TString;
118
119
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
119
120
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
121
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
120
122
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
121
123
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
122
124
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
@@ -160,6 +162,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
160
162
  url: import("@sinclair/typebox").TString;
161
163
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
162
164
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
165
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
163
166
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
164
167
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
165
168
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -215,7 +218,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
215
218
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
216
219
  name: import("@sinclair/typebox").TString;
217
220
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
218
- in: import("@sinclair/typebox").TString;
221
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
219
222
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
220
223
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
221
224
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -247,6 +250,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
247
250
  url: import("@sinclair/typebox").TString;
248
251
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
249
252
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
253
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
250
254
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
251
255
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
252
256
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -280,7 +284,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
280
284
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
281
285
  name: import("@sinclair/typebox").TString;
282
286
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
283
- in: import("@sinclair/typebox").TString;
287
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
284
288
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
285
289
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
286
290
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -308,6 +312,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
308
312
  url: import("@sinclair/typebox").TString;
309
313
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
310
314
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
315
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
311
316
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
312
317
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
313
318
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
@@ -351,6 +356,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
351
356
  url: import("@sinclair/typebox").TString;
352
357
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
353
358
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
359
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
354
360
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
355
361
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
356
362
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/parameter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,yBAAyB;IAElC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoC5b,CAAA;AAEpH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { MediaTypeObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
3
3
  import { ExampleObjectSchema } from "../../../schemas/v3.1/strict/example.js";
4
4
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
@@ -13,7 +13,7 @@ const ParameterObjectBaseSchema = compose(
13
13
  * - For all other cases, the name corresponds to the parameter name used by the in field. */
14
14
  name: Type.String(),
15
15
  /** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
16
- in: Type.String(),
16
+ in: Type.Union([Type.Literal("query"), Type.Literal("header"), Type.Literal("path"), Type.Literal("cookie")]),
17
17
  /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
18
18
  description: Type.Optional(Type.String()),
19
19
  /** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/parameter.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { MediaTypeObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type Static } from '@sinclair/typebox'\n\nexport const ParameterObjectBaseSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the parameter. Parameter names are case sensitive.\n * - If in is \"path\", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in field. */\n name: Type.String(),\n /** REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\". */\n in: Type.String(),\n /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this parameter is mandatory. If the parameter location is \"path\", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely, which the server SHOULD interpret as the parameter being unused. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Interactions between this field and the parameter's Schema Object are implementation-defined. This field is valid only for query parameters. Use of this field is NOT RECOMMENDED, and it is likely to be removed in a later revision. */\n allowEmptyValue: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const ParameterObjectWithSchemaSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const ParameterObjectWithContentSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectSchema)),\n }),\n)\n\n/**\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * See Appendix E for a detailed examination of percent-encoding concerns, including interactions with the application/x-www-form-urlencoded query string format.\n */\nexport const ParameterObjectSchema = Type.Union([ParameterObjectWithSchemaSchema, ParameterObjectWithContentSchema])\n\nexport type ParameterObject = Static<typeof ParameterObjectSchema>\n"],
5
- "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAAyB;AAE3B,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA;AAAA,IAEhB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAExC,iBAAiB,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC/C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC;AAAA;AAAA,IAE7E,SAAS,KAAK,IAAI;AAAA;AAAA,IAElB,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,qBAAqB,CAAC;AAAA,EAC1E,CAAC;AACH;AASO,MAAM,wBAAwB,KAAK,MAAM,CAAC,iCAAiC,gCAAgC,CAAC;",
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { MediaTypeObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type Static } from '@sinclair/typebox'\n\nexport const ParameterObjectBaseSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the parameter. Parameter names are case sensitive.\n * - If in is \"path\", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in field. */\n name: Type.String(),\n /** REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\". */\n in: Type.Union([Type.Literal('query'), Type.Literal('header'), Type.Literal('path'), Type.Literal('cookie')]),\n /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this parameter is mandatory. If the parameter location is \"path\", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely, which the server SHOULD interpret as the parameter being unused. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Interactions between this field and the parameter's Schema Object are implementation-defined. This field is valid only for query parameters. Use of this field is NOT RECOMMENDED, and it is likely to be removed in a later revision. */\n allowEmptyValue: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const ParameterObjectWithSchemaSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const ParameterObjectWithContentSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectSchema)),\n }),\n)\n\n/**\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * See Appendix E for a detailed examination of percent-encoding concerns, including interactions with the application/x-www-form-urlencoded query string format.\n */\nexport const ParameterObjectSchema = Type.Union([ParameterObjectWithSchemaSchema, ParameterObjectWithContentSchema])\n\nexport type ParameterObject = Static<typeof ParameterObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,6BAA6B;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C,iCAAiC,gCAAgC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -20,6 +20,12 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
20
20
  delete: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
21
21
  /** A definition of a PATCH operation on this path. */
22
22
  patch: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
23
+ /** A definition of a CONNECT operation on this path. */
24
+ connect: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
25
+ /** A definition of a OPTIONS operation on this path. */
26
+ options: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
27
+ /** A definition of a HEAD operation on this path. */
28
+ head: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
23
29
  /** A definition of a TRACE operation on this path. */
24
30
  trace: O extends import("@sinclair/typebox").TOptional<infer S extends TSchema> ? import("@sinclair/typebox").TOptional<S> : import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TOptional<O>>;
25
31
  /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */
@@ -35,7 +41,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
35
41
  /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */
36
42
  parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
37
43
  name: import("@sinclair/typebox").TString;
38
- in: import("@sinclair/typebox").TString;
44
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
39
45
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
40
46
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
41
47
  deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -60,6 +66,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
60
66
  url: import("@sinclair/typebox").TString;
61
67
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
62
68
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
69
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
63
70
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
64
71
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
65
72
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -86,7 +93,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
86
93
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
87
94
  }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
88
95
  name: import("@sinclair/typebox").TString;
89
- in: import("@sinclair/typebox").TString;
96
+ in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
90
97
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
91
98
  required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
92
99
  deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -110,6 +117,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
110
117
  url: import("@sinclair/typebox").TString;
111
118
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
112
119
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
120
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
113
121
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
114
122
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
115
123
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
@@ -153,6 +161,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
153
161
  url: import("@sinclair/typebox").TString;
154
162
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
155
163
  example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
164
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
156
165
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
157
166
  'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
158
167
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIhb,CAAA"}
1
+ {"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,wDAAwD;;IAExD,wDAAwD;;IAExD,qDAAqD;;IAErD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIhb,CAAA"}
@@ -3,7 +3,7 @@ import { ParameterObjectSchema } from "./parameter.js";
3
3
  import { ReferenceObjectSchema } from "./reference.js";
4
4
  import { ServerObjectSchema } from "./server.js";
5
5
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
6
- import { compose } from "../../../schemas/v3.1/compose.js";
6
+ import { compose } from "../../../schemas/compose.js";
7
7
  const pathItemObjectSchemaBuilder = (operation) => compose(
8
8
  Type.Object({
9
9
  /**
@@ -26,6 +26,12 @@ const pathItemObjectSchemaBuilder = (operation) => compose(
26
26
  delete: Type.Optional(operation),
27
27
  /** A definition of a PATCH operation on this path. */
28
28
  patch: Type.Optional(operation),
29
+ /** A definition of a CONNECT operation on this path. */
30
+ connect: Type.Optional(operation),
31
+ /** A definition of a OPTIONS operation on this path. */
32
+ options: Type.Optional(operation),
33
+ /** A definition of a HEAD operation on this path. */
34
+ head: Type.Optional(operation),
29
35
  /** A definition of a TRACE operation on this path. */
30
36
  trace: Type.Optional(operation),
31
37
  /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/path-item.ts"],
4
- "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nexport const pathItemObjectSchemaBuilder = <O extends TSchema>(operation: O) =>\n compose(\n Type.Object({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to bring it into closer alignment with the behavior of the Reference Object.\n */\n '$ref': Type.Optional(Type.String()),\n /** An optional string summary, intended to apply to all operations in this path. */\n summary: Type.Optional(Type.String()),\n /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A definition of a GET operation on this path. */\n get: Type.Optional(operation),\n /** A definition of a PUT operation on this path. */\n put: Type.Optional(operation),\n /** A definition of a POST operation on this path. */\n post: Type.Optional(operation),\n /** A definition of a DELETE operation on this path. */\n delete: Type.Optional(operation),\n /** A definition of a PATCH operation on this path. */\n patch: Type.Optional(operation),\n /** A definition of a TRACE operation on this path. */\n trace: Type.Optional(operation),\n /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n }),\n ExtensionsSchema,\n )\n"],
5
- "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,cAC7D;AAAA,EACE,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMV,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,QAAQ,KAAK,SAAS,SAAS;AAAA;AAAA,IAE/B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAClG,CAAC;AAAA,EACD;AACF;",
4
+ "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ParameterObjectSchema } from './parameter'\nimport { ReferenceObjectSchema } from './reference'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\nexport const pathItemObjectSchemaBuilder = <O extends TSchema>(operation: O) =>\n compose(\n Type.Object({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to bring it into closer alignment with the behavior of the Reference Object.\n */\n '$ref': Type.Optional(Type.String()),\n /** An optional string summary, intended to apply to all operations in this path. */\n summary: Type.Optional(Type.String()),\n /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A definition of a GET operation on this path. */\n get: Type.Optional(operation),\n /** A definition of a PUT operation on this path. */\n put: Type.Optional(operation),\n /** A definition of a POST operation on this path. */\n post: Type.Optional(operation),\n /** A definition of a DELETE operation on this path. */\n delete: Type.Optional(operation),\n /** A definition of a PATCH operation on this path. */\n patch: Type.Optional(operation),\n /** A definition of a CONNECT operation on this path. */\n connect: Type.Optional(operation),\n /** A definition of a OPTIONS operation on this path. */\n options: Type.Optional(operation),\n /** A definition of a HEAD operation on this path. */\n head: Type.Optional(operation),\n /** A definition of a TRACE operation on this path. */\n trace: Type.Optional(operation),\n /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n }),\n ExtensionsSchema,\n )\n"],
5
+ "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,cAC7D;AAAA,EACE,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMV,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,IAE5B,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,QAAQ,KAAK,SAAS,SAAS;AAAA;AAAA,IAE/B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,SAAS;AAAA;AAAA,IAEhC,SAAS,KAAK,SAAS,SAAS;AAAA;AAAA,IAEhC,MAAM,KAAK,SAAS,SAAS;AAAA;AAAA,IAE7B,OAAO,KAAK,SAAS,SAAS;AAAA;AAAA,IAE9B,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAClG,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }