@scalar/oas-utils 0.2.32 → 0.2.34

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 (34) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/entities/workspace/collection/collection.d.ts +3 -3
  3. package/dist/entities/workspace/folder/folder.d.ts +1 -1
  4. package/dist/entities/workspace/security/security-schemes.d.ts +11 -11
  5. package/dist/entities/workspace/server/server.d.ts +5 -5
  6. package/dist/entities/workspace/spec/components.d.ts +1 -1
  7. package/dist/entities/workspace/spec/components.d.ts.map +1 -1
  8. package/dist/entities/workspace/spec/request-examples.d.ts +183 -183
  9. package/dist/entities/workspace/spec/request-examples.js +1 -1
  10. package/dist/entities/workspace/spec/requests.d.ts +11 -11
  11. package/dist/entities/workspace/spec/requests.d.ts.map +1 -1
  12. package/dist/entities/workspace/workspace.d.ts +22 -22
  13. package/dist/helpers/normalizeMimeType.d.ts +1 -1
  14. package/dist/helpers/normalizeMimeType.d.ts.map +1 -1
  15. package/dist/helpers/normalizeMimeTypeObject.d.ts +1 -1
  16. package/dist/helpers/normalizeMimeTypeObject.d.ts.map +1 -1
  17. package/dist/helpers/parse.d.ts +6 -6
  18. package/dist/helpers/parse.d.ts.map +1 -1
  19. package/dist/helpers/ssrState.d.ts +1 -1
  20. package/dist/helpers/ssrState.d.ts.map +1 -1
  21. package/dist/spec-getters/getParametersFromOperation.d.ts +1 -1
  22. package/dist/spec-getters/getParametersFromOperation.d.ts.map +1 -1
  23. package/dist/spec-getters/getRequestBodyFromOperation.d.ts +1 -1
  24. package/dist/spec-getters/getRequestBodyFromOperation.d.ts.map +1 -1
  25. package/dist/spec-getters/getRequestFromOperation.d.ts +1 -1
  26. package/dist/spec-getters/getRequestFromOperation.d.ts.map +1 -1
  27. package/dist/transforms/import-spec.d.ts +4 -3
  28. package/dist/transforms/import-spec.d.ts.map +1 -1
  29. package/package.json +3 -8
  30. package/dist/index.d.ts +0 -2
  31. package/dist/index.d.ts.map +0 -1
  32. package/dist/index.js +0 -1
  33. package/dist/types.d.ts +0 -200
  34. package/dist/types.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.34
4
+
5
+ ### Patch Changes
6
+
7
+ - 78db8f5: feat: use new @scalar/types package
8
+ - 7f11bc6: fix: temporary fix set type to any
9
+ - Updated dependencies [78db8f5]
10
+ - @scalar/themes@0.9.25
11
+ - @scalar/types@0.0.1
12
+
13
+ ## 0.2.33
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [298f7c4]
18
+ - @scalar/themes@0.9.24
19
+
3
20
  ## 0.2.32
4
21
 
5
22
  ### Patch Changes
@@ -144,8 +144,8 @@ declare const collectionSchema: z.ZodObject<{
144
144
  description?: string | undefined;
145
145
  } | undefined;
146
146
  }, {
147
- description?: string | undefined;
148
147
  name?: string | undefined;
148
+ description?: string | undefined;
149
149
  externalDocs?: {
150
150
  description?: string | undefined;
151
151
  url?: string | undefined;
@@ -222,8 +222,8 @@ declare const collectionSchema: z.ZodObject<{
222
222
  } | undefined;
223
223
  serverUids?: string[] | undefined;
224
224
  tags?: {
225
- description?: string | undefined;
226
225
  name?: string | undefined;
226
+ description?: string | undefined;
227
227
  externalDocs?: {
228
228
  description?: string | undefined;
229
229
  url?: string | undefined;
@@ -303,8 +303,8 @@ declare const collectionSchema: z.ZodObject<{
303
303
  } | undefined;
304
304
  serverUids?: string[] | undefined;
305
305
  tags?: {
306
- description?: string | undefined;
307
306
  name?: string | undefined;
307
+ description?: string | undefined;
308
308
  externalDocs?: {
309
309
  description?: string | undefined;
310
310
  url?: string | undefined;
@@ -18,8 +18,8 @@ declare const folderSchema: z.ZodObject<{
18
18
  description?: string | undefined;
19
19
  }, {
20
20
  uid?: string | undefined;
21
- description?: string | undefined;
22
21
  name?: string | undefined;
22
+ description?: string | undefined;
23
23
  childUids?: string[] | undefined;
24
24
  }>;
25
25
  /** Folders will correspond to the x- */
@@ -16,17 +16,17 @@ declare const securitySchemeApiKey: z.ZodObject<z.objectUtil.extendShape<{
16
16
  type: "apiKey";
17
17
  value: string;
18
18
  uid: string;
19
- nameKey: string;
20
19
  name: string;
20
+ nameKey: string;
21
21
  in: "query" | "header" | "cookie";
22
22
  description?: string | undefined;
23
23
  }, {
24
24
  type: "apiKey";
25
25
  value?: string | undefined;
26
26
  uid?: string | undefined;
27
- nameKey?: string | undefined;
28
- description?: string | undefined;
29
27
  name?: string | undefined;
28
+ description?: string | undefined;
29
+ nameKey?: string | undefined;
30
30
  in?: "query" | "header" | "cookie" | undefined;
31
31
  }>;
32
32
  export type SecuritySchemeApiKey = z.infer<typeof securitySchemeApiKey>;
@@ -236,8 +236,8 @@ declare const securitySchemeOauth2: z.ZodObject<z.objectUtil.extendShape<{
236
236
  }, {
237
237
  type: "oauth2";
238
238
  uid?: string | undefined;
239
- nameKey?: string | undefined;
240
239
  description?: string | undefined;
240
+ nameKey?: string | undefined;
241
241
  flow?: {
242
242
  type: "implicit";
243
243
  refreshUrl?: string | undefined;
@@ -294,17 +294,17 @@ declare const securityScheme: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
294
294
  type: "apiKey";
295
295
  value: string;
296
296
  uid: string;
297
- nameKey: string;
298
297
  name: string;
298
+ nameKey: string;
299
299
  in: "query" | "header" | "cookie";
300
300
  description?: string | undefined;
301
301
  }, {
302
302
  type: "apiKey";
303
303
  value?: string | undefined;
304
304
  uid?: string | undefined;
305
- nameKey?: string | undefined;
306
- description?: string | undefined;
307
305
  name?: string | undefined;
306
+ description?: string | undefined;
307
+ nameKey?: string | undefined;
308
308
  in?: "query" | "header" | "cookie" | undefined;
309
309
  }>, z.ZodObject<z.objectUtil.extendShape<{
310
310
  uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -341,8 +341,8 @@ declare const securityScheme: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
341
341
  type: "http";
342
342
  value?: string | undefined;
343
343
  uid?: string | undefined;
344
- nameKey?: string | undefined;
345
344
  description?: string | undefined;
345
+ nameKey?: string | undefined;
346
346
  scheme?: "basic" | "bearer" | undefined;
347
347
  bearerFormat?: string | undefined;
348
348
  secondValue?: string | undefined;
@@ -552,8 +552,8 @@ declare const securityScheme: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
552
552
  }, {
553
553
  type: "oauth2";
554
554
  uid?: string | undefined;
555
- nameKey?: string | undefined;
556
555
  description?: string | undefined;
556
+ nameKey?: string | undefined;
557
557
  flow?: {
558
558
  type: "implicit";
559
559
  refreshUrl?: string | undefined;
@@ -613,8 +613,8 @@ declare const securityScheme: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
613
613
  }, {
614
614
  type: "openIdConnect";
615
615
  uid?: string | undefined;
616
- nameKey?: string | undefined;
617
616
  description?: string | undefined;
617
+ nameKey?: string | undefined;
618
618
  openIdConnectUrl?: string | undefined;
619
619
  }>]>;
620
620
  /**
@@ -629,8 +629,8 @@ export declare const createSecurityScheme: (payload: SecuritySchemePayload) => {
629
629
  type: "apiKey";
630
630
  value: string;
631
631
  uid: string;
632
- nameKey: string;
633
632
  name: string;
633
+ nameKey: string;
634
634
  in: "query" | "header" | "cookie";
635
635
  description?: string | undefined;
636
636
  } | {
@@ -31,16 +31,16 @@ declare const serverSchema: z.ZodObject<{
31
31
  /** An optional value for the server variable */
32
32
  value: z.ZodOptional<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- uid: string;
35
34
  default: string;
35
+ uid: string;
36
36
  value?: string | undefined;
37
37
  description?: string | undefined;
38
38
  enum?: string[] | undefined;
39
39
  }, {
40
40
  value?: string | undefined;
41
+ default?: string | undefined;
41
42
  uid?: string | undefined;
42
43
  description?: string | undefined;
43
- default?: string | undefined;
44
44
  enum?: string[] | undefined;
45
45
  }>>>>;
46
46
  }, "strip", z.ZodTypeAny, {
@@ -48,8 +48,8 @@ declare const serverSchema: z.ZodObject<{
48
48
  url: string;
49
49
  description?: string | undefined;
50
50
  variables?: Record<string, {
51
- uid: string;
52
51
  default: string;
52
+ uid: string;
53
53
  value?: string | undefined;
54
54
  description?: string | undefined;
55
55
  enum?: string[] | undefined;
@@ -60,9 +60,9 @@ declare const serverSchema: z.ZodObject<{
60
60
  url?: string | undefined;
61
61
  variables?: Record<string, {
62
62
  value?: string | undefined;
63
+ default?: string | undefined;
63
64
  uid?: string | undefined;
64
65
  description?: string | undefined;
65
- default?: string | undefined;
66
66
  enum?: string[] | undefined;
67
67
  }> | null | undefined;
68
68
  }>;
@@ -80,8 +80,8 @@ export declare const createServer: (payload: ServerPayload) => {
80
80
  url: string;
81
81
  description?: string | undefined;
82
82
  variables?: Record<string, {
83
- uid: string;
84
83
  default: string;
84
+ uid: string;
85
85
  value?: string | undefined;
86
86
  description?: string | undefined;
87
87
  enum?: string[] | undefined;
@@ -1,3 +1,3 @@
1
- import type { OpenAPIV3_1 } from 'openapi-types';
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-parser';
2
2
  export type SchemaObject = OpenAPIV3_1.SchemaObject;
3
3
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/spec/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/entities/workspace/spec/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEzD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA"}