@scalar/workspace-store 0.60.0 → 0.62.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 (224) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/README.md +6 -0
  3. package/dist/channel-example/build-connection-url.d.ts.map +1 -1
  4. package/dist/channel-example/build-connection-url.js +3 -3
  5. package/dist/channel-example/dedupe-requirements.d.ts +1 -1
  6. package/dist/channel-example/get-async-api-protocols.js +2 -2
  7. package/dist/channel-example/get-asyncapi-security-requirements.d.ts +1 -1
  8. package/dist/channel-example/get-channel-connection-security.d.ts +1 -1
  9. package/dist/channel-example/get-channel-operations.d.ts.map +1 -1
  10. package/dist/channel-example/get-channel-operations.js +4 -1
  11. package/dist/channel-example/get-channel-parameters.d.ts.map +1 -1
  12. package/dist/channel-example/get-channel-parameters.js +3 -1
  13. package/dist/channel-example/resolve-channel.d.ts.map +1 -1
  14. package/dist/channel-example/resolve-channel.js +2 -0
  15. package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -1
  16. package/dist/channel-example/resolve-operation-channel.js +4 -0
  17. package/dist/channel-example/resolve-operation-with-traits.js +2 -2
  18. package/dist/channel-example/servers.d.ts.map +1 -1
  19. package/dist/channel-example/servers.js +3 -1
  20. package/dist/channel-example/types.d.ts +1 -1
  21. package/dist/client.d.ts +1 -1
  22. package/dist/client.d.ts.map +1 -1
  23. package/dist/client.js +10 -4
  24. package/dist/entities/auth/schema.d.ts +640 -200
  25. package/dist/entities/auth/schema.d.ts.map +1 -1
  26. package/dist/entities/auth/schema.js +2 -2
  27. package/dist/events/definitions/auth.d.ts +2 -2
  28. package/dist/events/definitions/document.d.ts +1 -1
  29. package/dist/events/definitions/operation.d.ts +3 -2
  30. package/dist/events/definitions/operation.d.ts.map +1 -1
  31. package/dist/events/definitions/server.d.ts +1 -1
  32. package/dist/events/old-definitions.d.ts +1 -1
  33. package/dist/helpers/create-chunk-writer.d.ts +6 -0
  34. package/dist/helpers/create-chunk-writer.d.ts.map +1 -0
  35. package/dist/helpers/create-chunk-writer.js +44 -0
  36. package/dist/helpers/dynamic-ref.d.ts +13 -2
  37. package/dist/helpers/dynamic-ref.d.ts.map +1 -1
  38. package/dist/helpers/dynamic-ref.js +20 -7
  39. package/dist/helpers/encode-chunk-name.d.ts +3 -0
  40. package/dist/helpers/encode-chunk-name.d.ts.map +1 -0
  41. package/dist/helpers/encode-chunk-name.js +9 -0
  42. package/dist/helpers/for-each-path-item-operation.d.ts +2 -2
  43. package/dist/helpers/get-first-server.d.ts +1 -1
  44. package/dist/helpers/get-resolved-ref-deep.d.ts +1 -1
  45. package/dist/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  46. package/dist/helpers/get-resolved-ref.d.ts +6 -1
  47. package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
  48. package/dist/helpers/get-resolved-ref.js +3 -10
  49. package/dist/helpers/is-non-optional-security-requirement.d.ts +1 -1
  50. package/dist/helpers/merge-object.d.ts +2 -2
  51. package/dist/helpers/merge-object.d.ts.map +1 -1
  52. package/dist/helpers/merge-object.js +2 -5
  53. package/dist/mutators/auth.d.ts +1 -1
  54. package/dist/mutators/auth.d.ts.map +1 -1
  55. package/dist/mutators/auth.js +9 -4
  56. package/dist/mutators/index.d.ts +10 -10
  57. package/dist/mutators/operation/body.js +2 -2
  58. package/dist/mutators/operation/helpers/fetch-request-to-har.d.ts.map +1 -1
  59. package/dist/mutators/operation/helpers/fetch-request-to-har.js +12 -2
  60. package/dist/mutators/operation/helpers/har-to-operation.d.ts +1 -1
  61. package/dist/mutators/operation/helpers/har-to-operation.d.ts.map +1 -1
  62. package/dist/mutators/operation/helpers/har-to-operation.js +9 -5
  63. package/dist/mutators/operation/helpers/sync-path-parameters.d.ts +2 -2
  64. package/dist/mutators/operation/history.js +2 -2
  65. package/dist/mutators/operation/operation.d.ts.map +1 -1
  66. package/dist/mutators/operation/operation.js +4 -0
  67. package/dist/mutators/operation/parameters.js +1 -1
  68. package/dist/mutators/server.d.ts +3 -3
  69. package/dist/mutators/server.js +1 -1
  70. package/dist/mutators/tag.d.ts.map +1 -1
  71. package/dist/mutators/tag.js +4 -0
  72. package/dist/navigation/helpers/get-openapi-object.d.ts +1 -1
  73. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
  74. package/dist/navigation/helpers/traverse-asyncapi-document.js +2 -2
  75. package/dist/navigation/helpers/traverse-description.d.ts +1 -1
  76. package/dist/navigation/helpers/traverse-document.d.ts +1 -1
  77. package/dist/navigation/helpers/traverse-examples.d.ts +12 -1
  78. package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
  79. package/dist/navigation/helpers/traverse-examples.js +22 -1
  80. package/dist/navigation/helpers/traverse-paths.d.ts +1 -1
  81. package/dist/navigation/helpers/traverse-schemas.d.ts +1 -1
  82. package/dist/navigation/helpers/traverse-tags.d.ts +1 -1
  83. package/dist/navigation/helpers/traverse-webhooks.d.ts +1 -1
  84. package/dist/navigation/helpers/update-order-ids.d.ts +2 -2
  85. package/dist/navigation/index.d.ts +1 -0
  86. package/dist/navigation/index.d.ts.map +1 -1
  87. package/dist/navigation/index.js +1 -0
  88. package/dist/navigation/types.d.ts +1 -1
  89. package/dist/persistence/index.d.ts.map +1 -1
  90. package/dist/persistence/index.js +10 -10
  91. package/dist/persistence/indexdb.d.ts.map +1 -1
  92. package/dist/persistence/indexdb.js +7 -5
  93. package/dist/persistence/migrations/v2-team-to-local.d.ts.map +1 -1
  94. package/dist/persistence/migrations/v2-team-to-local.js +3 -4
  95. package/dist/plugins/bundler/index.d.ts +5 -2
  96. package/dist/plugins/bundler/index.d.ts.map +1 -1
  97. package/dist/plugins/bundler/index.js +24 -26
  98. package/dist/request-example/builder/body/build-request-body.d.ts +2 -1
  99. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  100. package/dist/request-example/builder/body/build-request-body.js +41 -5
  101. package/dist/request-example/builder/body/encode-multipart-body.d.ts +9 -0
  102. package/dist/request-example/builder/body/encode-multipart-body.d.ts.map +1 -0
  103. package/dist/request-example/builder/body/encode-multipart-body.js +29 -0
  104. package/dist/request-example/builder/body/get-request-body-example.d.ts +1 -1
  105. package/dist/request-example/builder/body/get-selected-body-content-type.d.ts +1 -1
  106. package/dist/request-example/builder/body/schema-value-coercion.d.ts +1 -1
  107. package/dist/request-example/builder/body/schema-value-coercion.js +1 -1
  108. package/dist/request-example/builder/body/serialize-form-property.d.ts +1 -1
  109. package/dist/request-example/builder/body/serialize-multipart-array.d.ts +16 -0
  110. package/dist/request-example/builder/body/serialize-multipart-array.d.ts.map +1 -0
  111. package/dist/request-example/builder/body/serialize-multipart-array.js +37 -0
  112. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  113. package/dist/request-example/builder/build-request.js +14 -8
  114. package/dist/request-example/builder/header/build-request-parameters.d.ts +1 -1
  115. package/dist/request-example/builder/header/build-request-parameters.d.ts.map +1 -1
  116. package/dist/request-example/builder/header/build-request-parameters.js +7 -1
  117. package/dist/request-example/builder/header/de-serialize-parameter.d.ts +1 -1
  118. package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
  119. package/dist/request-example/builder/header/de-serialize-parameter.js +2 -1
  120. package/dist/request-example/builder/header/is-param-disabled.d.ts +1 -1
  121. package/dist/request-example/builder/header/serialize-parameter.d.ts.map +1 -1
  122. package/dist/request-example/builder/header/serialize-parameter.js +13 -14
  123. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -1
  124. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  125. package/dist/request-example/builder/helpers/get-example-from-schema.js +255 -20
  126. package/dist/request-example/builder/helpers/get-example.d.ts +1 -1
  127. package/dist/request-example/builder/helpers/get-example.js +2 -2
  128. package/dist/request-example/builder/helpers/get-resolved-url.d.ts +1 -1
  129. package/dist/request-example/builder/helpers/get-server-variables.d.ts +1 -1
  130. package/dist/request-example/builder/index.d.ts +1 -0
  131. package/dist/request-example/builder/index.d.ts.map +1 -1
  132. package/dist/request-example/builder/index.js +1 -0
  133. package/dist/request-example/builder/request-factory.d.ts +2 -2
  134. package/dist/request-example/builder/security/broker-scheme-types.d.ts.map +1 -1
  135. package/dist/request-example/builder/security/broker-scheme-types.js +2 -2
  136. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  137. package/dist/request-example/builder/security/build-request-security.js +3 -4
  138. package/dist/request-example/builder/security/secret-types.d.ts +13 -4
  139. package/dist/request-example/builder/security/secret-types.d.ts.map +1 -1
  140. package/dist/request-example/context/get-request-example-context.d.ts +3 -3
  141. package/dist/request-example/context/get-request-example-context.js +1 -1
  142. package/dist/request-example/context/headers.d.ts +1 -1
  143. package/dist/request-example/context/headers.js +1 -1
  144. package/dist/request-example/context/helpers/combine-params.d.ts +1 -1
  145. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +16 -3
  146. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
  147. package/dist/request-example/context/security/extract-security-scheme-secrets.js +21 -19
  148. package/dist/request-example/context/security/get-security-requirements.d.ts +2 -2
  149. package/dist/request-example/context/security/get-security-schemes.d.ts +1 -1
  150. package/dist/request-example/context/security/get-selected-security.d.ts +1 -1
  151. package/dist/request-example/context/security/is-auth-optional.d.ts +1 -1
  152. package/dist/request-example/context/security/merge-security.d.ts +3 -3
  153. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  154. package/dist/request-example/context/security/merge-security.js +40 -11
  155. package/dist/request-example/context/servers.d.ts +2 -2
  156. package/dist/request-example/functions.d.ts.map +1 -1
  157. package/dist/request-example/index.d.ts +1 -1
  158. package/dist/request-example/index.d.ts.map +1 -1
  159. package/dist/request-example/index.js +1 -1
  160. package/dist/resolve.d.ts +1 -1
  161. package/dist/resolve.js +1 -1
  162. package/dist/schemas/navigation.d.ts +4 -4
  163. package/dist/schemas/navigation.js +1 -1
  164. package/dist/schemas/reference-config/index.d.ts +128 -40
  165. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  166. package/dist/schemas/reference-config/settings.d.ts +129 -41
  167. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  168. package/dist/schemas/reference-config/settings.js +1 -1
  169. package/dist/schemas/type-guards.d.ts +1 -1
  170. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  171. package/dist/schemas/v3.1/openapi/index.js +11 -1
  172. package/dist/schemas/v3.1/strict/callback.d.ts +1 -1
  173. package/dist/schemas/v3.1/strict/components.d.ts +11 -11
  174. package/dist/schemas/v3.1/strict/encoding.d.ts +1 -1
  175. package/dist/schemas/v3.1/strict/header.d.ts +2 -2
  176. package/dist/schemas/v3.1/strict/media-type.d.ts +2 -2
  177. package/dist/schemas/v3.1/strict/openapi-document.d.ts +1470 -1260
  178. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  179. package/dist/schemas/v3.1/strict/operation.d.ts +3 -3
  180. package/dist/schemas/v3.1/strict/parameter.d.ts +2 -2
  181. package/dist/schemas/v3.1/strict/path-item.d.ts +10 -10
  182. package/dist/schemas/v3.1/strict/paths.d.ts +1 -1
  183. package/dist/schemas/v3.1/strict/reference.d.ts +14 -2
  184. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  185. package/dist/schemas/v3.1/strict/reference.js +13 -1
  186. package/dist/schemas/v3.1/strict/response.d.ts +2 -2
  187. package/dist/schemas/v3.1/strict/responses.d.ts +1 -1
  188. package/dist/schemas/v3.1/strict/security-scheme.d.ts +13 -1
  189. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  190. package/dist/schemas/v3.1/strict/security-scheme.js +11 -1
  191. package/dist/schemas/v3.2/openapi/index.d.ts +2 -0
  192. package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
  193. package/dist/schemas/v3.2/openapi/index.js +16 -1
  194. package/dist/schemas/v3.2/strict/callback.d.ts +1 -1
  195. package/dist/schemas/v3.2/strict/components.d.ts +12 -12
  196. package/dist/schemas/v3.2/strict/encoding.d.ts +1 -1
  197. package/dist/schemas/v3.2/strict/header.d.ts +2 -2
  198. package/dist/schemas/v3.2/strict/media-type.d.ts +3 -3
  199. package/dist/schemas/v3.2/strict/oauth-flow.d.ts +23 -1
  200. package/dist/schemas/v3.2/strict/oauth-flow.d.ts.map +1 -1
  201. package/dist/schemas/v3.2/strict/oauth-flow.js +6 -1
  202. package/dist/schemas/v3.2/strict/oauthflows.d.ts +20 -0
  203. package/dist/schemas/v3.2/strict/oauthflows.d.ts.map +1 -1
  204. package/dist/schemas/v3.2/strict/openapi-document.d.ts +2839 -1541
  205. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  206. package/dist/schemas/v3.2/strict/openapi-document.js +2 -1
  207. package/dist/schemas/v3.2/strict/operation.d.ts +3 -3
  208. package/dist/schemas/v3.2/strict/parameter.d.ts +2 -2
  209. package/dist/schemas/v3.2/strict/path-item.d.ts +12 -12
  210. package/dist/schemas/v3.2/strict/paths.d.ts +1 -1
  211. package/dist/schemas/v3.2/strict/reference.d.ts +14 -2
  212. package/dist/schemas/v3.2/strict/reference.d.ts.map +1 -1
  213. package/dist/schemas/v3.2/strict/reference.js +13 -1
  214. package/dist/schemas/v3.2/strict/response.d.ts +2 -2
  215. package/dist/schemas/v3.2/strict/responses.d.ts +1 -1
  216. package/dist/schemas/v3.2/strict/security-scheme.d.ts +31 -8
  217. package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
  218. package/dist/schemas/v3.2/strict/security-scheme.js +17 -4
  219. package/dist/schemas/workspace-specification/index.d.ts +1 -1
  220. package/dist/schemas/workspace.d.ts +1 -1
  221. package/dist/server.d.ts +28 -1
  222. package/dist/server.d.ts.map +1 -1
  223. package/dist/server.js +41 -27
  224. package/package.json +10 -10
@@ -21,6 +21,10 @@ export type HttpObject = Description & {
21
21
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
22
22
  bearerFormat?: string;
23
23
  };
24
+ export type MutualTlsObject = Description & {
25
+ /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
26
+ type: 'mutualTLS';
27
+ };
24
28
  export type OAuth2Object = Description & {
25
29
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
26
30
  type: 'oauth2';
@@ -67,6 +71,14 @@ export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typeb
67
71
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
68
72
  }>, import("@scalar/typebox").TObject<{
69
73
  'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
74
+ }>]>, import("@scalar/typebox").TObject<{
75
+ /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
76
+ type: import("@scalar/typebox").TLiteral<"mutualTLS">;
77
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
78
+ /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
79
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
80
+ }>, import("@scalar/typebox").TObject<{
81
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
70
82
  }>]>, import("@scalar/typebox").TObject<{
71
83
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
72
84
  type: import("@scalar/typebox").TLiteral<"oauth2">;
@@ -85,6 +97,6 @@ export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typeb
85
97
  /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
86
98
  openIdConnectUrl: import("@scalar/typebox").TString;
87
99
  }>]>]>;
88
- export type SecuritySchemeObject = ApiKeyObject | HttpObject | OAuth2Object | OpenIdConnectObject;
100
+ export type SecuritySchemeObject = ApiKeyObject | HttpObject | MutualTlsObject | OAuth2Object | OpenIdConnectObject;
89
101
  export {};
90
102
  //# sourceMappingURL=security-scheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,+CAA+C,CAAA;AACvG,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gDAAgD,CAAA;AAC1G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAaxE,KAAK,WAAW,GAAG;IACjB,qGAAqG;IACrG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,aAAa,CAAA;AAcjB,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAA;IACZ,8FAA8F;IAC9F,EAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAClC,CAAA;AAcD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,4HAA4H;IAC5H,IAAI,EAAE,MAAM,CAAA;IACZ,gQAAgQ;IAChQ,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC1B,uMAAuM;IACvM,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAaD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,cAAc,CAAA;AAYlB,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,4HAA4H;IAC5H,IAAI,EAAE,eAAe,CAAA;IACrB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,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IAC5H,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAaD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,4HAA4H;IAC5H,IAAI,EAAE,QAAQ,CAAA;IACd,6FAA6F;IAC7F,KAAK,EAAE,gBAAgB,CAAA;CACxB,GAAG,cAAc,CAAA;AAYlB,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,4HAA4H;IAC5H,IAAI,EAAE,eAAe,CAAA;IACrB,+FAA+F;IAC/F,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;IA1G7C,qGAAqG;;;;;IAcrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IAlB9F,qGAAqG;;;;;IAmCrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IAvCvM,qGAAqG;;;;;IAwDrG,4HAA4H;;;IAxD5H,qGAAqG;;;;;IAqErG,4HAA4H;;IAE5H,6FAA6F;;;;;IAvE7F,qGAAqG;;;;;IAuFrG,4HAA4H;;IAE5H,+FAA+F;;MAuBjG,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,mBAAmB,CAAA"}
@@ -25,6 +25,10 @@ const HttpSchema = compose(DescriptionSchema, Type.Object({
25
25
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
26
26
  bearerFormat: Type.Optional(Type.String()),
27
27
  }));
28
+ const MutualTlsSchema = compose(DescriptionSchema, Type.Object({
29
+ /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
30
+ type: Type.Literal('mutualTLS'),
31
+ }));
28
32
  const OAuth2 = compose(DescriptionSchema, Type.Object({
29
33
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
30
34
  type: Type.Literal('oauth2'),
@@ -42,4 +46,10 @@ const OpenIdConnect = compose(DescriptionSchema, Type.Object({
42
46
  *
43
47
  * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.
44
48
  */
45
- export const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
49
+ export const SecuritySchemeObjectSchemaDefinition = Type.Union([
50
+ ApiKeySchema,
51
+ HttpSchema,
52
+ MutualTlsSchema,
53
+ OAuth2,
54
+ OpenIdConnect,
55
+ ]);
@@ -135,6 +135,8 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema, optio
135
135
  conflictCheckedAgainstHash: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
136
136
  hasConflict: import("@scalar/validation").OptionalSchema<import("@scalar/validation").BooleanSchema>;
137
137
  }>>;
138
+ }>, import("@scalar/validation").ObjectSchema<{
139
+ 'x-scalar-default-request-body-view': import("@scalar/validation").OptionalSchema<import("@scalar/validation").UnionSchema<readonly [import("@scalar/validation").LiteralSchema<"form">, import("@scalar/validation").LiteralSchema<"raw">]>>;
138
140
  }>, import("@scalar/validation").ObjectSchema<{
139
141
  'x-pre-request': import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
140
142
  }>, import("@scalar/validation").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA6C3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AA8DD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EAAE,UAAS,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAw0BtG,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA8C3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AA8DD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EAAE,UAAS,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA61BtG,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { any, array, boolean, intersection, lazy, literal, number, object, optional, record, string, union, } from '@scalar/validation';
2
2
  import { extensions } from '../../../schemas/extensions.js';
3
3
  import { XInternal } from '../../../schemas/extensions/document/x-internal.js';
4
+ import { XScalarDefaultRequestBodyView } from '../../../schemas/extensions/document/x-scalar-default-request-body-view.js';
4
5
  import { XScalarEnvironments } from '../../../schemas/extensions/document/x-scalar-environments.js';
5
6
  import { XScalarIcon } from '../../../schemas/extensions/document/x-scalar-icon.js';
6
7
  import { XScalarIgnore } from '../../../schemas/extensions/document/x-scalar-ignore.js';
@@ -327,6 +328,10 @@ export const generateSchema = (maybeRef, options = {}) => {
327
328
  typeComment: 'A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.',
328
329
  })),
329
330
  }, { typeName: 'HttpSecuritySchemeObject' });
331
+ const mutualTlsSecurityScheme = object({
332
+ ...securitySchemeBase.properties,
333
+ type: literal('mutualTLS'),
334
+ }, { typeName: 'MutualTlsSecuritySchemeObject' });
330
335
  const oauthFlowExtensionObjects = [
331
336
  XScalarSecurityQuery,
332
337
  XScalarSecurityBody,
@@ -397,6 +402,9 @@ export const generateSchema = (maybeRef, options = {}) => {
397
402
  ...securitySchemeBase.properties,
398
403
  type: literal('oauth2'),
399
404
  flows: oauth2Flows,
405
+ oauth2MetadataUrl: optional(string({
406
+ typeComment: 'URL to the OAuth2 authorization server metadata (RFC8414). Use HTTPS, or HTTP for local development URLs.',
407
+ })),
400
408
  }, { typeName: 'OAuth2SecuritySchemeObject' }),
401
409
  XDefaultScopes,
402
410
  ]);
@@ -407,7 +415,13 @@ export const generateSchema = (maybeRef, options = {}) => {
407
415
  typeComment: 'REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.',
408
416
  }),
409
417
  }, { typeName: 'OpenIdConnectSecuritySchemeObject' });
410
- const securityScheme = union([apiKeySecurityScheme, httpSecurityScheme, oauth2SecurityScheme, openIdConnectSecurityScheme], { typeName: 'SecuritySchemeObject' });
418
+ const securityScheme = union([
419
+ apiKeySecurityScheme,
420
+ httpSecurityScheme,
421
+ mutualTlsSecurityScheme,
422
+ oauth2SecurityScheme,
423
+ openIdConnectSecurityScheme,
424
+ ], { typeName: 'SecuritySchemeObject' });
411
425
  const components = object({
412
426
  schemas: optional(record(string(), maybeRef(schema), { typeName: 'ComponentsSchemas' })),
413
427
  responses: optional(record(string(), maybeRef(lazy(() => response)), { typeName: 'ComponentsResponses' })),
@@ -703,6 +717,7 @@ export const generateSchema = (maybeRef, options = {}) => {
703
717
  XScalarActiveEnvironment,
704
718
  XScalarWatchMode,
705
719
  XScalarRegistryMeta,
720
+ XScalarDefaultRequestBodyView,
706
721
  XPreRequest,
707
722
  XPostResponse,
708
723
  ], {
@@ -8,7 +8,7 @@ export declare const CallbackObjectSchemaDefinition: import("@scalar/typebox").T
8
8
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
9
9
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
10
10
  }>]>, import("@scalar/typebox").TObject<{
11
- '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
11
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathItemObject">>;
12
12
  }>]>]>>;
13
13
  /** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
14
14
  export type CallbackObject = Record<string, ReferenceType<PathItemObject>>;
@@ -18,7 +18,7 @@ export declare const SecuritySchemesSchemaDefinition: import("@scalar/typebox").
18
18
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
19
19
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
20
20
  }>]>, import("@scalar/typebox").TObject<{
21
- '$ref-value': import("@scalar/typebox").TRef<"SecuritySchemeObject">;
21
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SecuritySchemeObject">>;
22
22
  }>]>]>>;
23
23
  export type SecuritySchemes = Record<string, ReferenceType<SecuritySchemeObject>>;
24
24
  /** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */
@@ -32,7 +32,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
32
32
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
33
33
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
34
34
  }>]>, import("@scalar/typebox").TObject<{
35
- '$ref-value': import("@scalar/typebox").TRef<"SchemaObject">;
35
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SchemaObject">>;
36
36
  }>]>]>>>;
37
37
  /** An object to hold reusable Response Objects. */
38
38
  responses: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ResponseObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -43,7 +43,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
43
43
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
44
44
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
45
45
  }>]>, import("@scalar/typebox").TObject<{
46
- '$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
46
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ResponseObject">>;
47
47
  }>]>]>>>;
48
48
  /** An object to hold reusable Parameter Objects. */
49
49
  parameters: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ParameterObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -54,7 +54,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
54
54
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
55
55
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
56
56
  }>]>, import("@scalar/typebox").TObject<{
57
- '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
57
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ParameterObject">>;
58
58
  }>]>]>>>;
59
59
  /** An object to hold reusable Example Objects. */
60
60
  examples: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ExampleObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -65,7 +65,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
65
65
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
66
66
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
67
67
  }>]>, import("@scalar/typebox").TObject<{
68
- '$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
68
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExampleObject">>;
69
69
  }>]>]>>>;
70
70
  /** An object to hold reusable Request Body Objects. */
71
71
  requestBodies: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"RequestBodyObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -76,7 +76,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
76
76
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
77
77
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
78
78
  }>]>, import("@scalar/typebox").TObject<{
79
- '$ref-value': import("@scalar/typebox").TRef<"RequestBodyObject">;
79
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"RequestBodyObject">>;
80
80
  }>]>]>>>;
81
81
  /** An object to hold reusable Header Objects. */
82
82
  headers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"HeaderObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -87,7 +87,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
87
87
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
88
88
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
89
89
  }>]>, import("@scalar/typebox").TObject<{
90
- '$ref-value': import("@scalar/typebox").TRef<"HeaderObject">;
90
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"HeaderObject">>;
91
91
  }>]>]>>>;
92
92
  /** An object to hold reusable Security Scheme Objects. */
93
93
  securitySchemes: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SecuritySchemeObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -98,7 +98,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
98
98
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
99
99
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
100
100
  }>]>, import("@scalar/typebox").TObject<{
101
- '$ref-value': import("@scalar/typebox").TRef<"SecuritySchemeObject">;
101
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SecuritySchemeObject">>;
102
102
  }>]>]>>>;
103
103
  /** An object to hold reusable Link Objects. */
104
104
  links: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"LinkObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -109,7 +109,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
109
109
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
110
110
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
111
111
  }>]>, import("@scalar/typebox").TObject<{
112
- '$ref-value': import("@scalar/typebox").TRef<"LinkObject">;
112
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"LinkObject">>;
113
113
  }>]>]>>>;
114
114
  /** An object to hold reusable Callback Objects. */
115
115
  callbacks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"CallbackObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -120,7 +120,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
120
120
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
121
121
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
122
122
  }>]>, import("@scalar/typebox").TObject<{
123
- '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
123
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"CallbackObject">>;
124
124
  }>]>]>>>;
125
125
  /** An object to hold reusable Path Item Objects. */
126
126
  pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -131,7 +131,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
131
131
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
132
132
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
133
133
  }>]>, import("@scalar/typebox").TObject<{
134
- '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
134
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathItemObject">>;
135
135
  }>]>]>>>;
136
136
  /** An object to hold reusable Media Type Objects. Added in OpenAPI 3.2. */
137
137
  mediaTypes: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"MediaTypeObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -142,7 +142,7 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
142
142
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
143
143
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
144
144
  }>]>, import("@scalar/typebox").TObject<{
145
- '$ref-value': import("@scalar/typebox").TRef<"MediaTypeObject">;
145
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"MediaTypeObject">>;
146
146
  }>]>]>>>;
147
147
  }>;
148
148
  /** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */
@@ -19,7 +19,7 @@ export declare const EncodingObjectSchemaDefinition: import("@scalar/typebox").T
19
19
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
20
20
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
21
21
  }>]>, import("@scalar/typebox").TObject<{
22
- '$ref-value': import("@scalar/typebox").TRef<"HeaderObject">;
22
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"HeaderObject">>;
23
23
  }>]>]>>>;
24
24
  /** Describes how a specific property value will be serialized depending on its type. See the Parameter Object for details on the style field. The behavior follows the same values as query parameters, including default values. Valid values are "form", "spaceDelimited", "pipeDelimited", and "deepObject". This field SHALL be ignored if the request body media type is not application/x-www-form-urlencoded or multipart/form-data. If a value is explicitly defined, then the value of contentType (implicit or explicit) SHALL be ignored. */
25
25
  style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"form">, import("@scalar/typebox").TLiteral<"spaceDelimited">, import("@scalar/typebox").TLiteral<"pipeDelimited">, import("@scalar/typebox").TLiteral<"deepObject">]>>;
@@ -54,7 +54,7 @@ export declare const HeaderObjectSchemaDefinition: import("@scalar/typebox").TUn
54
54
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
55
55
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
56
56
  }>]>, import("@scalar/typebox").TObject<{
57
- '$ref-value': import("@scalar/typebox").TRef<"SchemaObject">;
57
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SchemaObject">>;
58
58
  }>]>]>>;
59
59
  /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
60
60
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
@@ -67,7 +67,7 @@ export declare const HeaderObjectSchemaDefinition: import("@scalar/typebox").TUn
67
67
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
68
68
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
69
69
  }>]>, import("@scalar/typebox").TObject<{
70
- '$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
70
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExampleObject">>;
71
71
  }>]>]>>>;
72
72
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
73
73
  /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
@@ -19,7 +19,7 @@ export declare const MediaTypeObjectSchemaDefinition: import("@scalar/typebox").
19
19
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
20
20
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
21
21
  }>]>, import("@scalar/typebox").TObject<{
22
- '$ref-value': import("@scalar/typebox").TRef<"SchemaObject">;
22
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SchemaObject">>;
23
23
  }>]>]>>;
24
24
  /** A schema describing each item within a sequential media type. Added in OpenAPI 3.2. */
25
25
  itemSchema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -30,7 +30,7 @@ export declare const MediaTypeObjectSchemaDefinition: import("@scalar/typebox").
30
30
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
31
31
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
32
32
  }>]>, import("@scalar/typebox").TObject<{
33
- '$ref-value': import("@scalar/typebox").TRef<"SchemaObject">;
33
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"SchemaObject">>;
34
34
  }>]>]>>;
35
35
  /** Example of the media type */
36
36
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
@@ -43,7 +43,7 @@ export declare const MediaTypeObjectSchemaDefinition: import("@scalar/typebox").
43
43
  $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
44
44
  $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
45
45
  }>]>, import("@scalar/typebox").TObject<{
46
- '$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
46
+ '$ref-value': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExampleObject">>;
47
47
  }>]>]>>>;
48
48
  /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */
49
49
  encoding: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"EncodingObject">>>;
@@ -1,3 +1,5 @@
1
+ import { type XScalarIgnore } from '../../../schemas/extensions/document/x-scalar-ignore.js';
2
+ import { type XOrder } from '../../../schemas/extensions/schema/x-order.js';
1
3
  import { type XScalarCredentialsLocation } from '../../../schemas/extensions/security/x-scalar-credentials-location.js';
2
4
  import { type XScalarSecurityBody } from '../../../schemas/extensions/security/x-scalar-security-body.js';
3
5
  import { type XScalarSecurityQuery } from '../../../schemas/extensions/security/x-scalar-security-query.js';
@@ -10,7 +12,7 @@ type OAuthFlowCommon = {
10
12
  refreshUrl: string;
11
13
  /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
12
14
  scopes: Record<string, string>;
13
- } & XScalarSecurityQuery & XScalarSecurityBody & XTokenName & XScalarTokenUrl & XScalarAuthUrl;
15
+ } & XScalarSecurityQuery & XScalarSecurityBody & XTokenName & XScalarTokenUrl & XScalarAuthUrl & XOrder & XScalarIgnore;
14
16
  /** Configuration for the OAuth Implicit flow */
15
17
  export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
16
18
  /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
@@ -27,6 +29,10 @@ export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TInterse
27
29
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
28
30
  }>, import("@scalar/typebox").TObject<{
29
31
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
32
+ }>, import("@scalar/typebox").TObject<{
33
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
34
+ }>, import("@scalar/typebox").TObject<{
35
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
30
36
  }>]>, import("@scalar/typebox").TObject<{
31
37
  /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
32
38
  authorizationUrl: import("@scalar/typebox").TString;
@@ -52,6 +58,10 @@ export declare const OAuthFlowPasswordSchema: import("@scalar/typebox").TInterse
52
58
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
53
59
  }>, import("@scalar/typebox").TObject<{
54
60
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
61
+ }>, import("@scalar/typebox").TObject<{
62
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
63
+ }>, import("@scalar/typebox").TObject<{
64
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
55
65
  }>]>, import("@scalar/typebox").TObject<{
56
66
  /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
57
67
  tokenUrl: import("@scalar/typebox").TString;
@@ -79,6 +89,10 @@ export declare const OAuthFlowClientCredentialsSchema: import("@scalar/typebox")
79
89
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
80
90
  }>, import("@scalar/typebox").TObject<{
81
91
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
92
+ }>, import("@scalar/typebox").TObject<{
93
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
94
+ }>, import("@scalar/typebox").TObject<{
95
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
82
96
  }>]>, import("@scalar/typebox").TObject<{
83
97
  /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
84
98
  tokenUrl: import("@scalar/typebox").TString;
@@ -106,6 +120,10 @@ export declare const OAuthFlowAuthorizationCodeSchema: import("@scalar/typebox")
106
120
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
107
121
  }>, import("@scalar/typebox").TObject<{
108
122
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
123
+ }>, import("@scalar/typebox").TObject<{
124
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
125
+ }>, import("@scalar/typebox").TObject<{
126
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
109
127
  }>]>, import("@scalar/typebox").TObject<{
110
128
  /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
111
129
  authorizationUrl: import("@scalar/typebox").TString;
@@ -139,6 +157,10 @@ export declare const OAuthFlowDeviceAuthorizationSchema: import("@scalar/typebox
139
157
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
140
158
  }>, import("@scalar/typebox").TObject<{
141
159
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
160
+ }>, import("@scalar/typebox").TObject<{
161
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
162
+ }>, import("@scalar/typebox").TObject<{
163
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
142
164
  }>]>, import("@scalar/typebox").TObject<{
143
165
  /** REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. Added in OpenAPI 3.2. */
144
166
  deviceAuthorizationUrl: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/oauth-flow.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,6DAA6D,CAAA;AACpE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,uDAAuD,CAAA;AAC9D,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,eAAe,EAErB,MAAM,yDAAyD,CAAA;AACh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Ae,GAAG;IACzD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;IACxB,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,QAAQ,GACV,0BAA0B,CAAA;AAE5B,mFAAmF;AACnF,eAAO,MAAM,kCAAkC;IApG3C,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;;;IAqGxJ,6KAA6K;;IAE7K,8JAA8J;;;;IAIjK,CAAA;AAED,mFAAmF;AACnF,MAAM,MAAM,4BAA4B,GAAG,eAAe,GAAG;IAC3D,6KAA6K;IAC7K,sBAAsB,EAAE,MAAM,CAAA;IAC9B,8JAA8J;IAC9J,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,0BAA0B,CAAA;AAE9B,MAAM,MAAM,SAAS,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,0BAA0B,GAC1B,0BAA0B,GAC1B,4BAA4B,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import { Type } from '@scalar/typebox';
2
2
  import { compose } from '../../../schemas/compose.js';
3
+ import { XScalarIgnoreSchema } from '../../../schemas/extensions/document/x-scalar-ignore.js';
4
+ import { XOrderSchema } from '../../../schemas/extensions/schema/x-order.js';
3
5
  import { XScalarCredentialsLocationSchema, } from '../../../schemas/extensions/security/x-scalar-credentials-location.js';
4
6
  import { XScalarSecurityBodySchema, } from '../../../schemas/extensions/security/x-scalar-security-body.js';
5
7
  import { XScalarSecurityQuerySchema, } from '../../../schemas/extensions/security/x-scalar-security-query.js';
@@ -12,7 +14,10 @@ const OAuthFlowCommonSchema = compose(Type.Object({
12
14
  refreshUrl: Type.String(),
13
15
  /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
14
16
  scopes: Type.Record(Type.String(), Type.String()),
15
- }), XScalarSecurityQuerySchema, XScalarSecurityBodySchema, XTokenNameSchema, XScalarAuthUrlSchema, XScalarTokenUrlSchema);
17
+ }), XScalarSecurityQuerySchema, XScalarSecurityBodySchema, XTokenNameSchema, XScalarAuthUrlSchema, XScalarTokenUrlSchema,
18
+ // Reuse the shared display-order and ignore extensions so authors can reorder and hide
19
+ // individual OAuth2 flow tabs in the auth UI. See documentation/openapi.md.
20
+ XOrderSchema, XScalarIgnoreSchema);
16
21
  /** Configuration for the OAuth Implicit flow */
17
22
  export const OAuthFlowImplicitSchema = compose(OAuthFlowCommonSchema, Type.Object({
18
23
  /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
@@ -17,6 +17,10 @@ export declare const OAuthFlowsObjectSchemaDefinition: import("@scalar/typebox")
17
17
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
18
18
  }>, import("@scalar/typebox").TObject<{
19
19
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
20
+ }>, import("@scalar/typebox").TObject<{
21
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
22
+ }>, import("@scalar/typebox").TObject<{
23
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
20
24
  }>]>, import("@scalar/typebox").TObject<{
21
25
  authorizationUrl: import("@scalar/typebox").TString;
22
26
  }>]>>;
@@ -34,6 +38,10 @@ export declare const OAuthFlowsObjectSchemaDefinition: import("@scalar/typebox")
34
38
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
35
39
  }>, import("@scalar/typebox").TObject<{
36
40
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
41
+ }>, import("@scalar/typebox").TObject<{
42
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
43
+ }>, import("@scalar/typebox").TObject<{
44
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
37
45
  }>]>, import("@scalar/typebox").TObject<{
38
46
  tokenUrl: import("@scalar/typebox").TString;
39
47
  }>, import("@scalar/typebox").TObject<{
@@ -53,6 +61,10 @@ export declare const OAuthFlowsObjectSchemaDefinition: import("@scalar/typebox")
53
61
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
54
62
  }>, import("@scalar/typebox").TObject<{
55
63
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
64
+ }>, import("@scalar/typebox").TObject<{
65
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
66
+ }>, import("@scalar/typebox").TObject<{
67
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
56
68
  }>]>, import("@scalar/typebox").TObject<{
57
69
  tokenUrl: import("@scalar/typebox").TString;
58
70
  }>, import("@scalar/typebox").TObject<{
@@ -72,6 +84,10 @@ export declare const OAuthFlowsObjectSchemaDefinition: import("@scalar/typebox")
72
84
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
73
85
  }>, import("@scalar/typebox").TObject<{
74
86
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
87
+ }>, import("@scalar/typebox").TObject<{
88
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
89
+ }>, import("@scalar/typebox").TObject<{
90
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
75
91
  }>]>, import("@scalar/typebox").TObject<{
76
92
  authorizationUrl: import("@scalar/typebox").TString;
77
93
  tokenUrl: import("@scalar/typebox").TString;
@@ -94,6 +110,10 @@ export declare const OAuthFlowsObjectSchemaDefinition: import("@scalar/typebox")
94
110
  'x-scalar-secret-auth-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
95
111
  }>, import("@scalar/typebox").TObject<{
96
112
  'x-scalar-secret-token-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
113
+ }>, import("@scalar/typebox").TObject<{
114
+ 'x-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
115
+ }>, import("@scalar/typebox").TObject<{
116
+ 'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
97
117
  }>]>, import("@scalar/typebox").TObject<{
98
118
  deviceAuthorizationUrl: import("@scalar/typebox").TString;
99
119
  tokenUrl: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"oauthflows.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/oauthflows.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,0BAA0B,EAE/B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EAEjC,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EAEvB,MAAM,cAAc,CAAA;AAErB;;GAEG;AACH,eAAO,MAAM,gCAAgC;IAC3C,gDAAgD;;;;;;;;;;;;;;;;;IAEhD,+DAA+D;;;;;;;;;;;;;;;;;;;IAE/D,yGAAyG;;;;;;;;;;;;;;;;;;;IAEzG,wGAAwG;;;;;;;;;;;;;;;;;;;;;;IAExG,mFAAmF;;;;;;;;;;;;;;;;;;;;EAEnF,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,0BAA0B,CAAA;IAC9C,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,0BAA0B,CAAA;IAC9C,mFAAmF;IACnF,mBAAmB,CAAC,EAAE,4BAA4B,CAAA;CACnD,CAAA"}
1
+ {"version":3,"file":"oauthflows.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/oauthflows.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,0BAA0B,E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