@scalar/oas-utils 0.2.121 → 0.2.123

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 (202) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/entities/cookie/cookie.d.ts +4 -4
  3. package/dist/entities/cookie/cookie.js +1 -1
  4. package/dist/entities/cookie/index.d.ts +1 -1
  5. package/dist/entities/cookie/index.d.ts.map +1 -1
  6. package/dist/entities/environment/environment.d.ts +2 -2
  7. package/dist/entities/environment/environment.js +1 -1
  8. package/dist/entities/environment/index.d.ts +1 -1
  9. package/dist/entities/environment/index.d.ts.map +1 -1
  10. package/dist/entities/hotkeys/index.d.ts +1 -1
  11. package/dist/entities/hotkeys/index.d.ts.map +1 -1
  12. package/dist/entities/shared/index.d.ts +1 -1
  13. package/dist/entities/shared/index.d.ts.map +1 -1
  14. package/dist/entities/shared/index.js +1 -1
  15. package/dist/entities/shared/utility.d.ts +0 -16
  16. package/dist/entities/shared/utility.d.ts.map +1 -1
  17. package/dist/entities/shared/utility.js +1 -8
  18. package/dist/entities/spec/collection.d.ts +24 -24
  19. package/dist/entities/spec/collection.d.ts.map +1 -1
  20. package/dist/entities/spec/collection.js +3 -2
  21. package/dist/entities/spec/index.d.ts +10 -11
  22. package/dist/entities/spec/index.d.ts.map +1 -1
  23. package/dist/entities/spec/index.js +8 -8
  24. package/dist/entities/spec/operation.d.ts +23 -23
  25. package/dist/entities/spec/operation.d.ts.map +1 -1
  26. package/dist/entities/spec/parameters.d.ts +6 -6
  27. package/dist/entities/spec/request-examples.d.ts +244 -244
  28. package/dist/entities/spec/request-examples.d.ts.map +1 -1
  29. package/dist/entities/spec/request-examples.js +6 -71
  30. package/dist/entities/spec/requests.d.ts +47 -47
  31. package/dist/entities/spec/requests.d.ts.map +1 -1
  32. package/dist/entities/spec/requests.js +3 -2
  33. package/dist/entities/spec/security.d.ts +39 -39
  34. package/dist/entities/spec/security.d.ts.map +1 -1
  35. package/dist/entities/spec/security.js +4 -4
  36. package/dist/entities/spec/server.d.ts +99 -28
  37. package/dist/entities/spec/server.d.ts.map +1 -1
  38. package/dist/entities/spec/server.js +1 -1
  39. package/dist/entities/spec/spec-objects.d.ts +3 -3
  40. package/dist/entities/spec/spec-objects.js +1 -1
  41. package/dist/entities/spec/x-scalar-environments.d.ts +9 -9
  42. package/dist/entities/spec/x-scalar-secrets.d.ts +4 -4
  43. package/dist/entities/workspace/index.d.ts +1 -1
  44. package/dist/entities/workspace/index.d.ts.map +1 -1
  45. package/dist/entities/workspace/workspace.d.ts +18 -18
  46. package/dist/entities/workspace/workspace.js +1 -1
  47. package/dist/helpers/{createHash.d.ts → create-hash.d.ts} +1 -1
  48. package/dist/helpers/create-hash.d.ts.map +1 -0
  49. package/dist/helpers/ensure-protocol.js +1 -1
  50. package/dist/helpers/{fetchSpecFromUrl.d.ts → fetch-spec-from-url.d.ts} +1 -1
  51. package/dist/helpers/fetch-spec-from-url.d.ts.map +1 -0
  52. package/dist/helpers/{fetchSpecFromUrl.js → fetch-spec-from-url.js} +1 -1
  53. package/dist/helpers/{fetchWithProxyFallback.d.ts → fetch-with-proxy-fallback.d.ts} +1 -1
  54. package/dist/helpers/fetch-with-proxy-fallback.d.ts.map +1 -0
  55. package/dist/helpers/{fetchWithProxyFallback.js → fetch-with-proxy-fallback.js} +1 -1
  56. package/dist/helpers/find-variables.d.ts +5 -0
  57. package/dist/helpers/find-variables.d.ts.map +1 -0
  58. package/dist/helpers/{findVariables.js → find-variables.js} +1 -1
  59. package/dist/helpers/{httpMethods.d.ts → http-methods.d.ts} +2 -2
  60. package/dist/helpers/http-methods.d.ts.map +1 -0
  61. package/dist/helpers/{httpStatusCodes.d.ts → http-status-codes.d.ts} +1 -1
  62. package/dist/helpers/http-status-codes.d.ts.map +1 -0
  63. package/dist/helpers/index.d.ts +27 -26
  64. package/dist/helpers/index.d.ts.map +1 -1
  65. package/dist/helpers/index.js +21 -20
  66. package/dist/helpers/{isLocalUrl.d.ts → is-local-url.d.ts} +1 -1
  67. package/dist/helpers/is-local-url.d.ts.map +1 -0
  68. package/dist/helpers/{isValidUrl.d.ts → is-valid-url.d.ts} +1 -1
  69. package/dist/helpers/is-valid-url.d.ts.map +1 -0
  70. package/dist/helpers/{iterateTitle.d.ts → iterate-title.d.ts} +1 -1
  71. package/dist/helpers/iterate-title.d.ts.map +1 -0
  72. package/dist/helpers/{makeUrlAbsolute.d.ts → make-url-absolute.d.ts} +1 -1
  73. package/dist/helpers/make-url-absolute.d.ts.map +1 -0
  74. package/dist/helpers/merge-urls.d.ts.map +1 -1
  75. package/dist/helpers/merge-urls.js +2 -2
  76. package/dist/helpers/{normalizeMimeTypeObject.d.ts → normalize-mime-type-object.d.ts} +1 -1
  77. package/dist/helpers/normalize-mime-type-object.d.ts.map +1 -0
  78. package/dist/helpers/{normalizeMimeTypeObject.js → normalize-mime-type-object.js} +1 -1
  79. package/dist/helpers/{normalizeMimeType.d.ts → normalize-mime-type.d.ts} +1 -1
  80. package/dist/helpers/normalize-mime-type.d.ts.map +1 -0
  81. package/dist/helpers/parse.js +1 -1
  82. package/dist/helpers/{prettyPrintJson.d.ts → pretty-print-json.d.ts} +1 -1
  83. package/dist/helpers/pretty-print-json.d.ts.map +1 -0
  84. package/dist/helpers/{redirectToProxy.d.ts → redirect-to-proxy.d.ts} +1 -1
  85. package/dist/helpers/redirect-to-proxy.d.ts.map +1 -0
  86. package/dist/helpers/{redirectToProxy.js → redirect-to-proxy.js} +2 -2
  87. package/dist/helpers/{regexHelpers.d.ts → regex-helpers.d.ts} +1 -1
  88. package/dist/helpers/regex-helpers.d.ts.map +1 -0
  89. package/dist/helpers/{replaceVariables.d.ts → replace-variables.d.ts} +1 -1
  90. package/dist/helpers/replace-variables.d.ts.map +1 -0
  91. package/dist/helpers/{shouldIgnoreEntity.d.ts → should-ignore-entity.d.ts} +3 -2
  92. package/dist/helpers/should-ignore-entity.d.ts.map +1 -0
  93. package/dist/helpers/{ssrState.d.ts → ssr-state.d.ts} +1 -1
  94. package/dist/helpers/ssr-state.d.ts.map +1 -0
  95. package/dist/helpers/string.d.ts.map +1 -1
  96. package/dist/helpers/string.js +1 -1
  97. package/dist/migrations/index.d.ts +3 -3
  98. package/dist/migrations/index.d.ts.map +1 -1
  99. package/dist/migrations/local-storage.d.ts +1 -1
  100. package/dist/migrations/local-storage.d.ts.map +1 -1
  101. package/dist/migrations/migrator.d.ts +1 -1
  102. package/dist/migrations/migrator.d.ts.map +1 -1
  103. package/dist/migrations/semver.js +1 -1
  104. package/dist/migrations/v-2.1.0/migration.d.ts +2 -2
  105. package/dist/migrations/v-2.1.0/migration.d.ts.map +1 -1
  106. package/dist/migrations/v-2.1.0/migration.js +1 -1
  107. package/dist/migrations/v-2.2.0/migration.d.ts +2 -2
  108. package/dist/migrations/v-2.2.0/migration.d.ts.map +1 -1
  109. package/dist/migrations/v-2.3.0/migration.d.ts +2 -2
  110. package/dist/migrations/v-2.3.0/migration.d.ts.map +1 -1
  111. package/dist/migrations/v-2.4.0/migration.d.ts +2 -2
  112. package/dist/migrations/v-2.4.0/migration.d.ts.map +1 -1
  113. package/dist/migrations/v-2.5.0/migration.d.ts +2 -2
  114. package/dist/migrations/v-2.5.0/migration.d.ts.map +1 -1
  115. package/dist/migrations/v-2.5.0/migration.js +2 -3
  116. package/dist/migrations/v-2.5.0/types.generated.d.ts +9 -4
  117. package/dist/migrations/v-2.5.0/types.generated.d.ts.map +1 -1
  118. package/dist/spec-getters/{getExampleFromSchema.d.ts → get-example-from-schema.d.ts} +1 -1
  119. package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -0
  120. package/dist/spec-getters/{getParametersFromOperation.d.ts → get-parameters-from-operation.d.ts} +1 -1
  121. package/dist/spec-getters/get-parameters-from-operation.d.ts.map +1 -0
  122. package/dist/spec-getters/{getParametersFromOperation.js → get-parameters-from-operation.js} +1 -1
  123. package/dist/spec-getters/{getRequestBodyFromOperation.d.ts → get-request-body-from-operation.d.ts} +2 -2
  124. package/dist/spec-getters/get-request-body-from-operation.d.ts.map +1 -0
  125. package/dist/spec-getters/{getRequestBodyFromOperation.js → get-request-body-from-operation.js} +7 -7
  126. package/dist/spec-getters/{getServerVariableExamples.d.ts → get-server-variable-examples.d.ts} +2 -2
  127. package/dist/spec-getters/get-server-variable-examples.d.ts.map +1 -0
  128. package/dist/spec-getters/index.d.ts +4 -4
  129. package/dist/spec-getters/index.d.ts.map +1 -1
  130. package/dist/spec-getters/index.js +4 -4
  131. package/dist/transforms/import-spec.d.ts +7 -3
  132. package/dist/transforms/import-spec.d.ts.map +1 -1
  133. package/dist/transforms/import-spec.js +35 -26
  134. package/dist/transforms/index.d.ts +1 -1
  135. package/dist/transforms/index.d.ts.map +1 -1
  136. package/dist/transforms/index.js +1 -1
  137. package/package.json +7 -45
  138. package/dist/diff/diff.d.ts +0 -13
  139. package/dist/diff/diff.d.ts.map +0 -1
  140. package/dist/diff/diff.js +0 -41
  141. package/dist/diff/index.d.ts +0 -2
  142. package/dist/diff/index.d.ts.map +0 -1
  143. package/dist/diff/index.js +0 -1
  144. package/dist/entities/index.d.ts +0 -2
  145. package/dist/entities/index.d.ts.map +0 -1
  146. package/dist/entities/index.js +0 -1
  147. package/dist/helpers/createHash.d.ts.map +0 -1
  148. package/dist/helpers/fetchSpecFromUrl.d.ts.map +0 -1
  149. package/dist/helpers/fetchWithProxyFallback.d.ts.map +0 -1
  150. package/dist/helpers/findVariables.d.ts +0 -5
  151. package/dist/helpers/findVariables.d.ts.map +0 -1
  152. package/dist/helpers/httpMethods.d.ts.map +0 -1
  153. package/dist/helpers/httpStatusCodes.d.ts.map +0 -1
  154. package/dist/helpers/isLocalUrl.d.ts.map +0 -1
  155. package/dist/helpers/isValidUrl.d.ts.map +0 -1
  156. package/dist/helpers/iterateTitle.d.ts.map +0 -1
  157. package/dist/helpers/makeUrlAbsolute.d.ts.map +0 -1
  158. package/dist/helpers/normalizeMimeType.d.ts.map +0 -1
  159. package/dist/helpers/normalizeMimeTypeObject.d.ts.map +0 -1
  160. package/dist/helpers/prettyPrintJson.d.ts.map +0 -1
  161. package/dist/helpers/redirectToProxy.d.ts.map +0 -1
  162. package/dist/helpers/regexHelpers.d.ts.map +0 -1
  163. package/dist/helpers/replaceVariables.d.ts.map +0 -1
  164. package/dist/helpers/shouldIgnoreEntity.d.ts.map +0 -1
  165. package/dist/helpers/ssrState.d.ts.map +0 -1
  166. package/dist/migrations/v-0.0.0/index.d.ts +0 -2
  167. package/dist/migrations/v-0.0.0/index.d.ts.map +0 -1
  168. package/dist/migrations/v-0.0.0/index.js +0 -1
  169. package/dist/migrations/v-2.1.0/index.d.ts +0 -3
  170. package/dist/migrations/v-2.1.0/index.d.ts.map +0 -1
  171. package/dist/migrations/v-2.1.0/index.js +0 -1
  172. package/dist/migrations/v-2.2.0/index.d.ts +0 -3
  173. package/dist/migrations/v-2.2.0/index.d.ts.map +0 -1
  174. package/dist/migrations/v-2.2.0/index.js +0 -1
  175. package/dist/migrations/v-2.3.0/index.d.ts +0 -3
  176. package/dist/migrations/v-2.3.0/index.d.ts.map +0 -1
  177. package/dist/migrations/v-2.3.0/index.js +0 -1
  178. package/dist/migrations/v-2.4.0/index.d.ts +0 -3
  179. package/dist/migrations/v-2.4.0/index.d.ts.map +0 -1
  180. package/dist/migrations/v-2.4.0/index.js +0 -1
  181. package/dist/migrations/v-2.5.0/index.d.ts +0 -3
  182. package/dist/migrations/v-2.5.0/index.d.ts.map +0 -1
  183. package/dist/migrations/v-2.5.0/index.js +0 -1
  184. package/dist/spec-getters/getExampleFromSchema.d.ts.map +0 -1
  185. package/dist/spec-getters/getParametersFromOperation.d.ts.map +0 -1
  186. package/dist/spec-getters/getRequestBodyFromOperation.d.ts.map +0 -1
  187. package/dist/spec-getters/getServerVariableExamples.d.ts.map +0 -1
  188. /package/dist/helpers/{createHash.js → create-hash.js} +0 -0
  189. /package/dist/helpers/{httpMethods.js → http-methods.js} +0 -0
  190. /package/dist/helpers/{httpStatusCodes.js → http-status-codes.js} +0 -0
  191. /package/dist/helpers/{isLocalUrl.js → is-local-url.js} +0 -0
  192. /package/dist/helpers/{isValidUrl.js → is-valid-url.js} +0 -0
  193. /package/dist/helpers/{iterateTitle.js → iterate-title.js} +0 -0
  194. /package/dist/helpers/{makeUrlAbsolute.js → make-url-absolute.js} +0 -0
  195. /package/dist/helpers/{normalizeMimeType.js → normalize-mime-type.js} +0 -0
  196. /package/dist/helpers/{prettyPrintJson.js → pretty-print-json.js} +0 -0
  197. /package/dist/helpers/{regexHelpers.js → regex-helpers.js} +0 -0
  198. /package/dist/helpers/{replaceVariables.js → replace-variables.js} +0 -0
  199. /package/dist/helpers/{shouldIgnoreEntity.js → should-ignore-entity.js} +0 -0
  200. /package/dist/helpers/{ssrState.js → ssr-state.js} +0 -0
  201. /package/dist/spec-getters/{getExampleFromSchema.js → get-example-from-schema.js} +0 -0
  202. /package/dist/spec-getters/{getServerVariableExamples.js → get-server-variable-examples.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.123
4
+
5
+ ### Patch Changes
6
+
7
+ - 52f6f4c: chore: updated oas-utils to use stricter node tsconfig
8
+ - Updated dependencies [8efedf3]
9
+ - Updated dependencies [82a4ba8]
10
+ - Updated dependencies [57feba6]
11
+ - @scalar/types@0.1.4
12
+ - @scalar/themes@0.9.82
13
+
14
+ ## 0.2.122
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [543a16c]
19
+ - Updated dependencies [57e96a0]
20
+ - @scalar/types@0.1.3
21
+ - @scalar/themes@0.9.81
22
+
3
23
  ## 0.2.121
4
24
 
5
25
  ### Patch Changes
@@ -9,17 +9,17 @@ export declare const cookieSchema: z.ZodObject<{
9
9
  /** Indicates the path that must exist in the requested URL for the browser to send the Cookie header. */
10
10
  path: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- value: string;
13
12
  uid: string & z.BRAND<"cookie">;
14
13
  name: string;
15
- path?: string | undefined;
14
+ value: string;
16
15
  domain?: string | undefined;
17
- }, {
18
16
  path?: string | undefined;
19
- value?: string | undefined;
17
+ }, {
20
18
  uid?: string | undefined;
21
19
  name?: string | undefined;
20
+ value?: string | undefined;
22
21
  domain?: string | undefined;
22
+ path?: string | undefined;
23
23
  }>;
24
24
  /**
25
25
  * Cookies
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { nanoidSchema } from '../shared/utility.js';
2
+ import { nanoidSchema } from '@scalar/types/utils';
3
3
 
4
4
  const cookieSchema = z.object({
5
5
  uid: nanoidSchema.brand(),
@@ -1,2 +1,2 @@
1
- export * from './cookie.js';
1
+ export { type Cookie, cookieSchema } from './cookie.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/cookie/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/cookie/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA"}
@@ -6,15 +6,15 @@ export declare const environmentSchema: z.ZodObject<{
6
6
  value: z.ZodDefault<z.ZodString>;
7
7
  isDefault: z.ZodOptional<z.ZodBoolean>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- value: string;
10
9
  uid: string & z.BRAND<"environment">;
11
10
  name: string;
11
+ value: string;
12
12
  color: string;
13
13
  isDefault?: boolean | undefined;
14
14
  }, {
15
- value?: string | undefined;
16
15
  uid?: string | undefined;
17
16
  name?: string | undefined;
17
+ value?: string | undefined;
18
18
  color?: string | undefined;
19
19
  isDefault?: boolean | undefined;
20
20
  }>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { nanoidSchema } from '../shared/utility.js';
2
+ import { nanoidSchema } from '@scalar/types/utils';
3
3
 
4
4
  const environmentSchema = z.object({
5
5
  uid: nanoidSchema.brand(),
@@ -1,2 +1,2 @@
1
- export * from './environment.js';
1
+ export { type Environment, environmentSchema } from './environment.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,2 +1,2 @@
1
- export * from './hotkeys.js';
1
+ export { type HotkeyEventName, type KeydownKey, HOTKEY_EVENT_NAMES, KEYDOWN_KEYS } from './hotkeys.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/hotkeys/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/hotkeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA"}
@@ -1,2 +1,2 @@
1
- export { type Nanoid, type SelectedSecuritySchemeUids, nanoidSchema, selectedSecuritySchemeUidSchema, } from './utility.js';
1
+ export { type SelectedSecuritySchemeUids, selectedSecuritySchemeUidSchema, } from './utility.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,0BAA0B,EAC/B,YAAY,EACZ,+BAA+B,GAChC,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,+BAA+B,GAChC,MAAM,cAAc,CAAA"}
@@ -1 +1 @@
1
- export { nanoidSchema, selectedSecuritySchemeUidSchema } from './utility.js';
1
+ export { selectedSecuritySchemeUidSchema } from './utility.js';
@@ -1,20 +1,4 @@
1
1
  import { z } from 'zod';
2
- /** Generates a default value */
3
- export declare const nanoidSchema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4
- /** UID format for objects */
5
- export type Nanoid = z.infer<typeof nanoidSchema>;
6
- /** All of our Zod brands for entities, used to brand nanoidSchemas. */
7
- export type ENTITY_BRANDS = {
8
- COLLECTION: 'collection';
9
- COOKIE: 'cookie';
10
- ENVIRONMENT: 'environment';
11
- EXAMPLE: 'example';
12
- OPERATION: 'operation';
13
- SECURITY_SCHEME: 'securityScheme';
14
- SERVER: 'server';
15
- TAG: 'tag';
16
- WORKSPACE: 'workspace';
17
- };
18
2
  /** Schema for selectedSecuritySchemeUids */
19
3
  export declare const selectedSecuritySchemeUidSchema: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
20
4
  export type SelectedSecuritySchemeUids = z.infer<typeof selectedSecuritySchemeUidSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/utility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,gCAAgC;AAChC,eAAO,MAAM,YAAY,0CAIC,CAAA;AAE1B,6BAA6B;AAC7B,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEjD,uEAAuE;AACvE,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,YAAY,CAAA;IACxB,MAAM,EAAE,QAAQ,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;IAC1B,OAAO,EAAE,SAAS,CAAA;IAClB,SAAS,EAAE,WAAW,CAAA;IACtB,eAAe,EAAE,gBAAgB,CAAA;IACjC,MAAM,EAAE,QAAQ,CAAA;IAChB,GAAG,EAAE,KAAK,CAAA;IACV,SAAS,EAAE,WAAW,CAAA;CACvB,CAAA;AAED,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B,8JAM9B,CAAA;AAEd,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/entities/shared/utility.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B,8JAM9B,CAAA;AAEd,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
@@ -1,12 +1,5 @@
1
- import { nanoid } from 'nanoid';
2
1
  import { z } from 'zod';
3
2
 
4
- /** Generates a default value */
5
- const nanoidSchema = z
6
- .string()
7
- .min(7)
8
- .optional()
9
- .default(() => nanoid());
10
3
  /** Schema for selectedSecuritySchemeUids */
11
4
  const selectedSecuritySchemeUidSchema = z
12
5
  .union([
@@ -16,4 +9,4 @@ const selectedSecuritySchemeUidSchema = z
16
9
  .array()
17
10
  .default([]);
18
11
 
19
- export { nanoidSchema, selectedSecuritySchemeUidSchema };
12
+ export { selectedSecuritySchemeUidSchema };
@@ -146,33 +146,33 @@ export declare const oasCollectionSchema: z.ZodObject<{
146
146
  default: string;
147
147
  description?: string | undefined;
148
148
  }, {
149
- default?: string | undefined;
150
149
  description?: string | undefined;
150
+ default?: string | undefined;
151
151
  }>, z.ZodString]>>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  variables: Record<string, string | {
154
154
  default: string;
155
155
  description?: string | undefined;
156
156
  }>;
157
- description?: string | undefined;
158
157
  color?: string | undefined;
158
+ description?: string | undefined;
159
159
  }, {
160
160
  variables: Record<string, string | {
161
- default?: string | undefined;
162
161
  description?: string | undefined;
162
+ default?: string | undefined;
163
163
  }>;
164
- description?: string | undefined;
165
164
  color?: string | undefined;
165
+ description?: string | undefined;
166
166
  }>>>;
167
167
  'x-scalar-secrets': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
168
168
  description: z.ZodOptional<z.ZodString>;
169
169
  example: z.ZodOptional<z.ZodString>;
170
170
  }, "strip", z.ZodTypeAny, {
171
- example?: string | undefined;
172
171
  description?: string | undefined;
173
- }, {
174
172
  example?: string | undefined;
173
+ }, {
175
174
  description?: string | undefined;
175
+ example?: string | undefined;
176
176
  }>>>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  type: "collection";
@@ -209,12 +209,12 @@ export declare const oasCollectionSchema: z.ZodObject<{
209
209
  default: string;
210
210
  description?: string | undefined;
211
211
  }>;
212
- description?: string | undefined;
213
212
  color?: string | undefined;
213
+ description?: string | undefined;
214
214
  }> | undefined;
215
215
  'x-scalar-secrets'?: Record<string, {
216
- example?: string | undefined;
217
216
  description?: string | undefined;
217
+ example?: string | undefined;
218
218
  }> | undefined;
219
219
  }, {
220
220
  type?: "collection" | undefined;
@@ -232,15 +232,15 @@ export declare const oasCollectionSchema: z.ZodObject<{
232
232
  'x-scalar-active-environment'?: string | undefined;
233
233
  'x-scalar-environments'?: Record<string, {
234
234
  variables: Record<string, string | {
235
- default?: string | undefined;
236
235
  description?: string | undefined;
236
+ default?: string | undefined;
237
237
  }>;
238
- description?: string | undefined;
239
238
  color?: string | undefined;
239
+ description?: string | undefined;
240
240
  }> | undefined;
241
241
  'x-scalar-secrets'?: Record<string, {
242
- example?: string | undefined;
243
242
  description?: string | undefined;
243
+ example?: string | undefined;
244
244
  }> | undefined;
245
245
  }>;
246
246
  export declare const extendedCollectionSchema: z.ZodObject<{
@@ -454,33 +454,33 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
454
454
  default: string;
455
455
  description?: string | undefined;
456
456
  }, {
457
- default?: string | undefined;
458
457
  description?: string | undefined;
458
+ default?: string | undefined;
459
459
  }>, z.ZodString]>>;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  variables: Record<string, string | {
462
462
  default: string;
463
463
  description?: string | undefined;
464
464
  }>;
465
- description?: string | undefined;
466
465
  color?: string | undefined;
466
+ description?: string | undefined;
467
467
  }, {
468
468
  variables: Record<string, string | {
469
- default?: string | undefined;
470
469
  description?: string | undefined;
470
+ default?: string | undefined;
471
471
  }>;
472
- description?: string | undefined;
473
472
  color?: string | undefined;
473
+ description?: string | undefined;
474
474
  }>>>;
475
475
  'x-scalar-secrets': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
476
476
  description: z.ZodOptional<z.ZodString>;
477
477
  example: z.ZodOptional<z.ZodString>;
478
478
  }, "strip", z.ZodTypeAny, {
479
- example?: string | undefined;
480
479
  description?: string | undefined;
481
- }, {
482
480
  example?: string | undefined;
481
+ }, {
483
482
  description?: string | undefined;
483
+ example?: string | undefined;
484
484
  }>>>;
485
485
  }, {
486
486
  uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "collection">;
@@ -520,8 +520,8 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
520
520
  */
521
521
  watchModeStatus: z.ZodDefault<z.ZodOptional<z.ZodEnum<["IDLE", "WATCHING", "ERROR"]>>>;
522
522
  }>, "strip", z.ZodTypeAny, {
523
- type: "collection";
524
523
  uid: string & z.BRAND<"collection">;
524
+ type: "collection";
525
525
  children: ((string & z.BRAND<"tag">) | (string & z.BRAND<"operation">))[];
526
526
  openapi: string;
527
527
  info: {
@@ -563,19 +563,19 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
563
563
  default: string;
564
564
  description?: string | undefined;
565
565
  }>;
566
- description?: string | undefined;
567
566
  color?: string | undefined;
567
+ description?: string | undefined;
568
568
  }> | undefined;
569
569
  'x-scalar-secrets'?: Record<string, {
570
- example?: string | undefined;
571
570
  description?: string | undefined;
571
+ example?: string | undefined;
572
572
  }> | undefined;
573
573
  selectedServerUid?: (string & z.BRAND<"server">) | undefined;
574
574
  documentUrl?: string | undefined;
575
575
  integration?: string | null | undefined;
576
576
  }, {
577
- type?: "collection" | undefined;
578
577
  uid?: string | undefined;
578
+ type?: "collection" | undefined;
579
579
  externalDocs?: {
580
580
  url: string;
581
581
  description?: unknown;
@@ -591,15 +591,15 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
591
591
  'x-scalar-active-environment'?: string | undefined;
592
592
  'x-scalar-environments'?: Record<string, {
593
593
  variables: Record<string, string | {
594
- default?: string | undefined;
595
594
  description?: string | undefined;
595
+ default?: string | undefined;
596
596
  }>;
597
- description?: string | undefined;
598
597
  color?: string | undefined;
598
+ description?: string | undefined;
599
599
  }> | undefined;
600
600
  'x-scalar-secrets'?: Record<string, {
601
- example?: string | undefined;
602
601
  description?: string | undefined;
602
+ example?: string | undefined;
603
603
  }> | undefined;
604
604
  securitySchemes?: string[] | undefined;
605
605
  selectedSecuritySchemeUids?: (string | string[])[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,mBAAmB;IAC9B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAA;AAEF,eAAO,MAAM,wBAAwB;;IAEnC,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,gBAAgB;IAnF3B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAehD,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI8E,CAAA;AACnF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB;IAC9B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAA;AAEF,eAAO,MAAM,wBAAwB;;IAEnC,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA;AAEF,eAAO,MAAM,gBAAgB;IAnF3B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH;;;;;;OAMG;;;;;;;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAehD,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAKhE;;;;;OAKG;;IAEH;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI8E,CAAA;AACnF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -1,8 +1,9 @@
1
- import { nanoidSchema, selectedSecuritySchemeUidSchema } from '../shared/utility.js';
1
+ import { selectedSecuritySchemeUidSchema } from '../shared/utility.js';
2
2
  import { xScalarEnvironmentsSchema } from './x-scalar-environments.js';
3
3
  import { xScalarSecretsSchema } from './x-scalar-secrets.js';
4
+ import { oasSecurityRequirementSchema } from '@scalar/types/entities';
5
+ import { nanoidSchema } from '@scalar/types/utils';
4
6
  import { z } from 'zod';
5
- import { oasSecurityRequirementSchema } from './security.js';
6
7
  import { oasInfoSchema, oasExternalDocumentationSchema } from './spec-objects.js';
7
8
 
8
9
  const oasCollectionSchema = z.object({
@@ -1,12 +1,11 @@
1
- export * from './collection.js';
2
- export * from './server.js';
3
- export * from './requests.js';
4
- export * from './request-examples.js';
5
- export * from './spec-objects.js';
6
- export * from './parameters.js';
7
- export * from './security.js';
8
- export * from './x-scalar-environments.js';
9
- type FetchRequest = Request;
10
- export type { FetchRequest };
11
- export { type Operation, type OperationPayload, operationSchema, } from './operation.js';
1
+ export { collectionSchema, type Collection, type CollectionPayload } from './collection.ts';
2
+ export { oasParameterSchema, type RequestParameter, type RequestParameterPayload } from './parameters.ts';
3
+ export { serverSchema, type Server, type ServerPayload } from './server.ts';
4
+ export { requestSchema, type Request, type RequestPayload, type RequestMethod, type ResponseInstance, type RequestEvent, } from './requests.ts';
5
+ export { requestExampleSchema, createExampleFromRequest, requestExampleParametersSchema, type RequestExample, type RequestExampleParameter, } from './request-examples.ts';
6
+ export { tagSchema, oasExternalDocumentationSchema, oasInfoSchema, oasContactSchema, oasLicenseSchema, type Tag, type TagPayload, } from './spec-objects.ts';
7
+ export { type Operation, type OperationPayload, operationSchema, } from './operation.ts';
8
+ export { xScalarEnvironmentsSchema, type XScalarEnvironment, type XScalarEnvironments, } from './x-scalar-environments.ts';
9
+ /** Re-exported here for ease of use but we should use the other ones directly */
10
+ export { type Oauth2Flow, type Oauth2FlowPayload, type SecuritySchemaHttp, type SecuritySchemaOpenId, type SecurityScheme, type SecuritySchemeApiKey, type SecuritySchemeOauth2, type SecuritySchemeOauth2Payload, type SecuritySchemePayload, oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeSchema, } from '@scalar/types/entities';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,yBAAyB,CAAA;AAEvC,KAAK,YAAY,GAAG,OAAO,CAAA;AAC3B,YAAY,EAAE,YAAY,EAAE,CAAA;AAE5B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC3F,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzG,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,EACL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,GAClB,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,SAAS,EACT,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GAAG,EACR,KAAK,UAAU,GAChB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,eAAe,GAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAA;AAEnC,iFAAiF;AACjF,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAA"}
@@ -1,9 +1,9 @@
1
- export { collectionSchema, extendedCollectionSchema, oasCollectionSchema } from './collection.js';
2
- export { oasServerSchema, oasServerVariableSchema, serverSchema } from './server.js';
3
- export { oasRequestSchema, requestMethods, requestSchema } from './requests.js';
4
- export { convertExampleToXScalar, createExampleFromRequest, createParamInstance, exampleBodyMime, exampleRequestBodyEncoding, exampleRequestBodySchema, parameterArrayToObject, requestExampleParametersSchema, requestExampleSchema, xScalarExampleBodySchema, xScalarExampleSchema, xScalarFileValueSchema, xScalarFormDataValue } from './request-examples.js';
5
- export { oasContactSchema, oasExternalDocumentationSchema, oasInfoSchema, oasLicenseSchema, oasTagSchema, omitUndefinedValues, tagSchema, xScalarNestedSchema } from './spec-objects.js';
6
- export { oasParameterSchema, parameterStyleSchema, parameterTypeSchema } from './parameters.js';
7
- export { oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeApiKeyIn, securitySchemeSchema } from './security.js';
8
- export { xScalarEnvVarSchema, xScalarEnvironmentSchema, xScalarEnvironmentsSchema } from './x-scalar-environments.js';
1
+ export { collectionSchema } from './collection.js';
2
+ export { oasParameterSchema } from './parameters.js';
3
+ export { serverSchema } from './server.js';
4
+ export { requestSchema } from './requests.js';
5
+ export { createExampleFromRequest, requestExampleParametersSchema, requestExampleSchema } from './request-examples.js';
6
+ export { oasContactSchema, oasExternalDocumentationSchema, oasInfoSchema, oasLicenseSchema, tagSchema } from './spec-objects.js';
9
7
  export { operationSchema } from './operation.js';
8
+ export { xScalarEnvironmentsSchema } from './x-scalar-environments.js';
9
+ export { oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeSchema } from '@scalar/types/entities';
@@ -2,7 +2,7 @@
2
2
  * Aliases Request to Operation which is closer to the spec,
3
3
  * also will not conflict with the builtin Request class
4
4
  */
5
- import { type RequestPayload, type Request as RequestType } from './requests.js';
5
+ import { type RequestPayload, type Request as RequestType } from './requests.ts';
6
6
  export type Operation = RequestType;
7
7
  export type OperationPayload = RequestPayload;
8
8
  export declare const operationSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<Omit<{
@@ -33,12 +33,12 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
33
33
  summary?: string | undefined;
34
34
  }>>, import("zod").ZodArray<import("zod").ZodUnknown, "many">]>>;
35
35
  }, "strip", import("zod").ZodTypeAny, {
36
- required: boolean;
37
36
  name: string;
38
- in: "path" | "cookie" | "query" | "header";
37
+ required: boolean;
38
+ in: "cookie" | "path" | "query" | "header";
39
39
  deprecated: boolean;
40
- example?: unknown;
41
40
  description?: string | undefined;
41
+ example?: unknown;
42
42
  schema?: unknown;
43
43
  content?: unknown;
44
44
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -48,10 +48,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
48
48
  }> | undefined;
49
49
  }, {
50
50
  name: string;
51
- in: "path" | "cookie" | "query" | "header";
52
- example?: unknown;
53
- required?: boolean | undefined;
51
+ in: "cookie" | "path" | "query" | "header";
54
52
  description?: string | undefined;
53
+ required?: boolean | undefined;
54
+ example?: unknown;
55
55
  deprecated?: boolean | undefined;
56
56
  schema?: unknown;
57
57
  content?: unknown;
@@ -96,14 +96,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
96
96
  }>>>;
97
97
  }, "strip", import("zod").ZodTypeAny, {
98
98
  content: string | Record<string, any>;
99
- encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
99
+ encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
100
100
  file?: {
101
101
  url: string;
102
102
  base64?: string | undefined;
103
103
  } | null | undefined;
104
104
  }, {
105
105
  content: string | Record<string, any>;
106
- encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
106
+ encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
107
107
  file?: {
108
108
  url: string;
109
109
  base64?: string | undefined;
@@ -116,26 +116,26 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
116
116
  cookies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
117
117
  }, "strip", import("zod").ZodTypeAny, {
118
118
  path?: Record<string, string> | undefined;
119
- cookies?: Record<string, string> | undefined;
120
119
  query?: Record<string, string> | undefined;
121
120
  headers?: Record<string, string> | undefined;
121
+ cookies?: Record<string, string> | undefined;
122
122
  }, {
123
123
  path?: Record<string, string> | undefined;
124
- cookies?: Record<string, string> | undefined;
125
124
  query?: Record<string, string> | undefined;
126
125
  headers?: Record<string, string> | undefined;
126
+ cookies?: Record<string, string> | undefined;
127
127
  }>;
128
128
  }, "strip", import("zod").ZodTypeAny, {
129
129
  parameters: {
130
130
  path?: Record<string, string> | undefined;
131
- cookies?: Record<string, string> | undefined;
132
131
  query?: Record<string, string> | undefined;
133
132
  headers?: Record<string, string> | undefined;
133
+ cookies?: Record<string, string> | undefined;
134
134
  };
135
135
  name?: string | undefined;
136
136
  body?: {
137
137
  content: string | Record<string, any>;
138
- encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
138
+ encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
139
139
  file?: {
140
140
  url: string;
141
141
  base64?: string | undefined;
@@ -144,14 +144,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
144
144
  }, {
145
145
  parameters: {
146
146
  path?: Record<string, string> | undefined;
147
- cookies?: Record<string, string> | undefined;
148
147
  query?: Record<string, string> | undefined;
149
148
  headers?: Record<string, string> | undefined;
149
+ cookies?: Record<string, string> | undefined;
150
150
  };
151
151
  name?: string | undefined;
152
152
  body?: {
153
153
  content: string | Record<string, any>;
154
- encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
154
+ encoding: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary";
155
155
  file?: {
156
156
  url: string;
157
157
  base64?: string | undefined;
@@ -172,9 +172,9 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
172
172
  examples: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "example">, "many">>;
173
173
  selectedSecuritySchemeUids: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodBranded<import("zod").ZodString, "securityScheme">, import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "securityScheme">, "many">]>, "many">>;
174
174
  }>, "strip", import("zod").ZodTypeAny, {
175
+ uid: string & import("zod").BRAND<"operation">;
175
176
  path: string;
176
177
  type: "request";
177
- uid: string & import("zod").BRAND<"operation">;
178
178
  selectedSecuritySchemeUids: ((string & import("zod").BRAND<"securityScheme">) | (string & import("zod").BRAND<"securityScheme">)[])[];
179
179
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
180
180
  servers: (string & import("zod").BRAND<"server">)[];
@@ -193,12 +193,12 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
193
193
  deprecated?: boolean | undefined;
194
194
  operationId?: string | undefined;
195
195
  parameters?: {
196
- required: boolean;
197
196
  name: string;
198
- in: "path" | "cookie" | "query" | "header";
197
+ required: boolean;
198
+ in: "cookie" | "path" | "query" | "header";
199
199
  deprecated: boolean;
200
- example?: unknown;
201
200
  description?: string | undefined;
201
+ example?: unknown;
202
202
  schema?: unknown;
203
203
  content?: unknown;
204
204
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -211,9 +211,9 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
211
211
  responses?: Record<string, any> | undefined;
212
212
  'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
213
213
  }, {
214
+ uid?: string | undefined;
214
215
  path?: string | undefined;
215
216
  type?: "request" | undefined;
216
- uid?: string | undefined;
217
217
  description?: string | undefined;
218
218
  summary?: string | undefined;
219
219
  externalDocs?: {
@@ -232,10 +232,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
232
232
  operationId?: string | undefined;
233
233
  parameters?: {
234
234
  name: string;
235
- in: "path" | "cookie" | "query" | "header";
236
- example?: unknown;
237
- required?: boolean | undefined;
235
+ in: "cookie" | "path" | "query" | "header";
238
236
  description?: string | undefined;
237
+ required?: boolean | undefined;
238
+ example?: unknown;
239
239
  deprecated?: boolean | undefined;
240
240
  schema?: unknown;
241
241
  content?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,YAAY,CAAA;AAE5F,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAC7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAA"}
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,eAAe,CAAA;AAE/F,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAC7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgB,CAAA"}
@@ -30,12 +30,12 @@ export declare const oasParameterSchema: z.ZodObject<{
30
30
  summary?: string | undefined;
31
31
  }>>, z.ZodArray<z.ZodUnknown, "many">]>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- required: boolean;
34
33
  name: string;
35
- in: "path" | "cookie" | "query" | "header";
34
+ required: boolean;
35
+ in: "cookie" | "path" | "query" | "header";
36
36
  deprecated: boolean;
37
- example?: unknown;
38
37
  description?: string | undefined;
38
+ example?: unknown;
39
39
  schema?: unknown;
40
40
  content?: unknown;
41
41
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -45,10 +45,10 @@ export declare const oasParameterSchema: z.ZodObject<{
45
45
  }> | undefined;
46
46
  }, {
47
47
  name: string;
48
- in: "path" | "cookie" | "query" | "header";
49
- example?: unknown;
50
- required?: boolean | undefined;
48
+ in: "cookie" | "path" | "query" | "header";
51
49
  description?: string | undefined;
50
+ required?: boolean | undefined;
51
+ example?: unknown;
52
52
  deprecated?: boolean | undefined;
53
53
  schema?: unknown;
54
54
  content?: unknown;