@scalar/oas-utils 0.4.15 → 0.4.16

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 (31) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/entities/spec/operation.d.ts +15 -15
  3. package/dist/entities/spec/parameters.d.ts +5 -5
  4. package/dist/entities/spec/request-examples.d.ts +68 -68
  5. package/dist/entities/spec/requests.d.ts +31 -31
  6. package/dist/helpers/index.d.ts +0 -1
  7. package/dist/helpers/index.d.ts.map +1 -1
  8. package/dist/helpers/index.js +0 -3
  9. package/dist/helpers/index.js.map +2 -2
  10. package/dist/helpers/normalize-mime-type-object.d.ts +2 -13
  11. package/dist/helpers/normalize-mime-type-object.d.ts.map +1 -1
  12. package/dist/helpers/normalize-mime-type-object.js +4 -8
  13. package/dist/helpers/normalize-mime-type-object.js.map +2 -2
  14. package/dist/helpers/normalize-mime-type.d.ts +3 -1
  15. package/dist/helpers/normalize-mime-type.d.ts.map +1 -1
  16. package/dist/helpers/normalize-mime-type.js.map +2 -2
  17. package/dist/helpers/operation-to-har/process-body.d.ts.map +1 -1
  18. package/dist/helpers/operation-to-har/process-body.js +1 -1
  19. package/dist/helpers/operation-to-har/process-body.js.map +2 -2
  20. package/dist/helpers/security/get-schemes.d.ts +3 -0
  21. package/dist/helpers/security/get-schemes.d.ts.map +1 -1
  22. package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -1
  23. package/dist/spec-getters/get-example-from-schema.js +5 -2
  24. package/dist/spec-getters/get-example-from-schema.js.map +2 -2
  25. package/dist/spec-getters/get-request-body-from-operation.js +1 -1
  26. package/dist/spec-getters/get-request-body-from-operation.js.map +2 -2
  27. package/package.json +11 -11
  28. package/dist/helpers/ssr-state.d.ts +0 -12
  29. package/dist/helpers/ssr-state.d.ts.map +0 -1
  30. package/dist/helpers/ssr-state.js +0 -7
  31. package/dist/helpers/ssr-state.js.map +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.4.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 94d6d0c: fix: remove old ssr state and update nuxt for workspace store
8
+ - b957a2c: feat: do not use first item of oneOf if it is `type: null`
9
+ - Updated dependencies [ccf875a]
10
+ - Updated dependencies [9924c47]
11
+ - Updated dependencies [94d6d0c]
12
+ - Updated dependencies [952f471]
13
+ - Updated dependencies [a0c92d9]
14
+ - Updated dependencies [c0d6793]
15
+ - Updated dependencies [3c1e3e3]
16
+ - Updated dependencies [f3d0216]
17
+ - Updated dependencies [a5534e6]
18
+ - Updated dependencies [6b6c72c]
19
+ - @scalar/openapi-types@0.3.7
20
+ - @scalar/types@0.2.11
21
+ - @scalar/workspace-store@0.11.0
22
+ - @scalar/themes@0.13.12
23
+ - @scalar/helpers@0.0.7
24
+ - @scalar/object-utils@1.2.3
25
+
3
26
  ## 0.4.15
4
27
 
5
28
  ### Patch Changes
@@ -43,13 +43,13 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
43
43
  in: "cookie" | "path" | "query" | "header";
44
44
  description?: string | undefined;
45
45
  example?: unknown;
46
+ content?: unknown;
47
+ schema?: unknown;
46
48
  examples?: unknown[] | Record<string, {
47
49
  value?: unknown;
48
50
  summary?: string | undefined;
49
51
  externalValue?: string | undefined;
50
52
  }> | undefined;
51
- schema?: unknown;
52
- content?: unknown;
53
53
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
54
54
  explode?: boolean | undefined;
55
55
  }, {
@@ -58,14 +58,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
58
58
  description?: string | undefined;
59
59
  required?: boolean | undefined;
60
60
  example?: unknown;
61
- deprecated?: boolean | undefined;
61
+ content?: unknown;
62
+ schema?: unknown;
62
63
  examples?: unknown[] | Record<string, {
63
64
  value?: unknown;
64
65
  summary?: string | undefined;
65
66
  externalValue?: string | undefined;
66
67
  }> | undefined;
67
- schema?: unknown;
68
- content?: unknown;
68
+ deprecated?: boolean | undefined;
69
69
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
70
70
  explode?: boolean | undefined;
71
71
  }>, "many">>;
@@ -125,20 +125,20 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
125
125
  cookies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
126
126
  }, "strip", import("zod").ZodTypeAny, {
127
127
  path?: Record<string, string> | undefined;
128
- query?: Record<string, string> | undefined;
129
128
  headers?: Record<string, string> | undefined;
129
+ query?: Record<string, string> | undefined;
130
130
  cookies?: Record<string, string> | undefined;
131
131
  }, {
132
132
  path?: Record<string, string> | undefined;
133
- query?: Record<string, string> | undefined;
134
133
  headers?: Record<string, string> | undefined;
134
+ query?: Record<string, string> | undefined;
135
135
  cookies?: Record<string, string> | undefined;
136
136
  }>;
137
137
  }, "strip", import("zod").ZodTypeAny, {
138
138
  parameters: {
139
139
  path?: Record<string, string> | undefined;
140
- query?: Record<string, string> | undefined;
141
140
  headers?: Record<string, string> | undefined;
141
+ query?: Record<string, string> | undefined;
142
142
  cookies?: Record<string, string> | undefined;
143
143
  };
144
144
  name?: string | undefined;
@@ -153,8 +153,8 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
153
153
  }, {
154
154
  parameters: {
155
155
  path?: Record<string, string> | undefined;
156
- query?: Record<string, string> | undefined;
157
156
  headers?: Record<string, string> | undefined;
157
+ query?: Record<string, string> | undefined;
158
158
  cookies?: Record<string, string> | undefined;
159
159
  };
160
160
  name?: string | undefined;
@@ -251,13 +251,13 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
251
251
  in: "cookie" | "path" | "query" | "header";
252
252
  description?: string | undefined;
253
253
  example?: unknown;
254
+ content?: unknown;
255
+ schema?: unknown;
254
256
  examples?: unknown[] | Record<string, {
255
257
  value?: unknown;
256
258
  summary?: string | undefined;
257
259
  externalValue?: string | undefined;
258
260
  }> | undefined;
259
- schema?: unknown;
260
- content?: unknown;
261
261
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
262
262
  explode?: boolean | undefined;
263
263
  }[] | undefined;
@@ -297,8 +297,8 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
297
297
  selectedServerUid?: string | null | undefined;
298
298
  servers?: string[] | undefined;
299
299
  tags?: string[] | undefined;
300
- deprecated?: boolean | undefined;
301
300
  examples?: string[] | undefined;
301
+ deprecated?: boolean | undefined;
302
302
  operationId?: string | undefined;
303
303
  requestBody?: any;
304
304
  parameters?: {
@@ -307,14 +307,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
307
307
  description?: string | undefined;
308
308
  required?: boolean | undefined;
309
309
  example?: unknown;
310
- deprecated?: boolean | undefined;
310
+ content?: unknown;
311
+ schema?: unknown;
311
312
  examples?: unknown[] | Record<string, {
312
313
  value?: unknown;
313
314
  summary?: string | undefined;
314
315
  externalValue?: string | undefined;
315
316
  }> | undefined;
316
- schema?: unknown;
317
- content?: unknown;
317
+ deprecated?: boolean | undefined;
318
318
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
319
319
  explode?: boolean | undefined;
320
320
  }[] | undefined;
@@ -48,13 +48,13 @@ export declare const oasParameterSchema: z.ZodObject<{
48
48
  in: "cookie" | "path" | "query" | "header";
49
49
  description?: string | undefined;
50
50
  example?: unknown;
51
+ content?: unknown;
52
+ schema?: unknown;
51
53
  examples?: unknown[] | Record<string, {
52
54
  value?: unknown;
53
55
  summary?: string | undefined;
54
56
  externalValue?: string | undefined;
55
57
  }> | undefined;
56
- schema?: unknown;
57
- content?: unknown;
58
58
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
59
59
  explode?: boolean | undefined;
60
60
  }, {
@@ -63,14 +63,14 @@ export declare const oasParameterSchema: z.ZodObject<{
63
63
  description?: string | undefined;
64
64
  required?: boolean | undefined;
65
65
  example?: unknown;
66
- deprecated?: boolean | undefined;
66
+ content?: unknown;
67
+ schema?: unknown;
67
68
  examples?: unknown[] | Record<string, {
68
69
  value?: unknown;
69
70
  summary?: string | undefined;
70
71
  externalValue?: string | undefined;
71
72
  }> | undefined;
72
- schema?: unknown;
73
- content?: unknown;
73
+ deprecated?: boolean | undefined;
74
74
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
75
75
  explode?: boolean | undefined;
76
76
  }>;