@scalar/oas-utils 0.2.77 → 0.2.79

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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/entities/spec/collection.d.ts +0 -278
  3. package/dist/entities/spec/collection.d.ts.map +1 -1
  4. package/dist/entities/spec/collection.js +1 -8
  5. package/dist/entities/spec/index.js +1 -1
  6. package/dist/entities/spec/requests.d.ts +2 -2
  7. package/dist/entities/spec/security.d.ts +1123 -783
  8. package/dist/entities/spec/security.d.ts.map +1 -1
  9. package/dist/entities/spec/security.js +73 -133
  10. package/dist/entities/workspace/workspace.d.ts +3 -7
  11. package/dist/entities/workspace/workspace.d.ts.map +1 -1
  12. package/dist/entities/workspace/workspace.js +0 -2
  13. package/dist/migrations/data-version.d.ts +3 -2
  14. package/dist/migrations/data-version.d.ts.map +1 -1
  15. package/dist/migrations/data-version.js +3 -2
  16. package/dist/migrations/local-storage.d.ts.map +1 -1
  17. package/dist/migrations/local-storage.js +3 -5
  18. package/dist/migrations/migrator.d.ts +2 -2
  19. package/dist/migrations/migrator.d.ts.map +1 -1
  20. package/dist/migrations/migrator.js +16 -13
  21. package/dist/migrations/v-0.0.0/types.generated.d.ts +139 -90
  22. package/dist/migrations/v-0.0.0/types.generated.d.ts.map +1 -1
  23. package/dist/migrations/v-2.1.0/migration.d.ts +11 -340
  24. package/dist/migrations/v-2.1.0/migration.d.ts.map +1 -1
  25. package/dist/migrations/v-2.1.0/migration.js +67 -46
  26. package/dist/migrations/v-2.1.0/types.generated.d.ts +353 -28
  27. package/dist/migrations/v-2.1.0/types.generated.d.ts.map +1 -1
  28. package/dist/migrations/v-2.2.0/index.d.ts +3 -0
  29. package/dist/migrations/v-2.2.0/index.d.ts.map +1 -0
  30. package/dist/migrations/v-2.2.0/index.js +1 -0
  31. package/dist/migrations/v-2.2.0/migration.d.ts +5 -0
  32. package/dist/migrations/v-2.2.0/migration.d.ts.map +1 -0
  33. package/dist/migrations/v-2.2.0/migration.js +110 -0
  34. package/dist/migrations/v-2.2.0/types.generated.d.ts +41 -0
  35. package/dist/migrations/v-2.2.0/types.generated.d.ts.map +1 -0
  36. package/dist/transforms/import-spec.d.ts +9 -4
  37. package/dist/transforms/import-spec.d.ts.map +1 -1
  38. package/dist/transforms/import-spec.js +74 -99
  39. package/dist/transforms/index.js +1 -1
  40. package/package.json +10 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.79
4
+
5
+ ### Patch Changes
6
+
7
+ - 6dd7eda: fix: catch errors for invalid OpenAPI documents
8
+ - Updated dependencies [1b06f64]
9
+ - @scalar/themes@0.9.50
10
+
11
+ ## 0.2.78
12
+
13
+ ### Patch Changes
14
+
15
+ - daa2663: feat: split out the router based computed values from the store into its own store
16
+ - 37abd4f: feat: make security spec compliant + migrations
17
+ - Updated dependencies [d379b81]
18
+ - Updated dependencies [f67c3bc]
19
+ - @scalar/themes@0.9.49
20
+ - @scalar/types@0.0.20
21
+
3
22
  ## 0.2.77
4
23
 
5
24
  ### Patch Changes
@@ -237,91 +237,6 @@ export declare const extendedCollectionSchema: z.ZodObject<{
237
237
  tags: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
238
238
  /** List of requests without tags and top level tag "folders" */
239
239
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
240
- /**
241
- * Map of security schemas to their value sets
242
- *
243
- * For each selected security schema we should have an entry here
244
- * The entry will contain the secret values (but not the schema definition)
245
- */
246
- auth: z.ZodDefault<z.ZodRecord<z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUnion<[z.ZodObject<{
247
- type: z.ZodDefault<z.ZodLiteral<"apiKey">>;
248
- name: z.ZodDefault<z.ZodString>;
249
- value: z.ZodDefault<z.ZodString>;
250
- }, "strip", z.ZodTypeAny, {
251
- type: "apiKey";
252
- value: string;
253
- name: string;
254
- }, {
255
- type?: "apiKey" | undefined;
256
- value?: string | undefined;
257
- name?: string | undefined;
258
- }>, z.ZodObject<{
259
- type: z.ZodDefault<z.ZodLiteral<"http">>;
260
- username: z.ZodDefault<z.ZodString>;
261
- password: z.ZodDefault<z.ZodString>;
262
- token: z.ZodDefault<z.ZodString>;
263
- }, "strip", z.ZodTypeAny, {
264
- type: "http";
265
- username: string;
266
- password: string;
267
- token: string;
268
- }, {
269
- type?: "http" | undefined;
270
- username?: string | undefined;
271
- password?: string | undefined;
272
- token?: string | undefined;
273
- }>, z.ZodObject<{
274
- type: z.ZodDefault<z.ZodLiteral<"oauth-implicit">>;
275
- token: z.ZodDefault<z.ZodString>;
276
- }, "strip", z.ZodTypeAny, {
277
- type: "oauth-implicit";
278
- token: string;
279
- }, {
280
- type?: "oauth-implicit" | undefined;
281
- token?: string | undefined;
282
- }>, z.ZodObject<{
283
- type: z.ZodDefault<z.ZodLiteral<"oauth-password">>;
284
- token: z.ZodDefault<z.ZodString>;
285
- username: z.ZodDefault<z.ZodString>;
286
- password: z.ZodDefault<z.ZodString>;
287
- clientSecret: z.ZodDefault<z.ZodString>;
288
- }, "strip", z.ZodTypeAny, {
289
- type: "oauth-password";
290
- username: string;
291
- password: string;
292
- token: string;
293
- clientSecret: string;
294
- }, {
295
- type?: "oauth-password" | undefined;
296
- username?: string | undefined;
297
- password?: string | undefined;
298
- token?: string | undefined;
299
- clientSecret?: string | undefined;
300
- }>, z.ZodObject<{
301
- type: z.ZodDefault<z.ZodLiteral<"oauth-clientCredentials">>;
302
- token: z.ZodDefault<z.ZodString>;
303
- clientSecret: z.ZodDefault<z.ZodString>;
304
- }, "strip", z.ZodTypeAny, {
305
- type: "oauth-clientCredentials";
306
- token: string;
307
- clientSecret: string;
308
- }, {
309
- type?: "oauth-clientCredentials" | undefined;
310
- token?: string | undefined;
311
- clientSecret?: string | undefined;
312
- }>, z.ZodObject<{
313
- type: z.ZodDefault<z.ZodLiteral<"oauth-authorizationCode">>;
314
- token: z.ZodDefault<z.ZodString>;
315
- clientSecret: z.ZodDefault<z.ZodString>;
316
- }, "strip", z.ZodTypeAny, {
317
- type: "oauth-authorizationCode";
318
- token: string;
319
- clientSecret: string;
320
- }, {
321
- type?: "oauth-authorizationCode" | undefined;
322
- token?: string | undefined;
323
- clientSecret?: string | undefined;
324
- }>]>>>;
325
240
  /** A link to where this document is stored, useful for live sync and possibly git sync down the line */
326
241
  documentUrl: z.ZodOptional<z.ZodString>;
327
242
  /**
@@ -347,33 +262,6 @@ export declare const extendedCollectionSchema: z.ZodObject<{
347
262
  servers: string[];
348
263
  requests: string[];
349
264
  tags: string[];
350
- auth: Record<string, {
351
- type: "apiKey";
352
- value: string;
353
- name: string;
354
- } | {
355
- type: "http";
356
- username: string;
357
- password: string;
358
- token: string;
359
- } | {
360
- type: "oauth-implicit";
361
- token: string;
362
- } | {
363
- type: "oauth-password";
364
- username: string;
365
- password: string;
366
- token: string;
367
- clientSecret: string;
368
- } | {
369
- type: "oauth-clientCredentials";
370
- token: string;
371
- clientSecret: string;
372
- } | {
373
- type: "oauth-authorizationCode";
374
- token: string;
375
- clientSecret: string;
376
- }>;
377
265
  watchMode: boolean;
378
266
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
379
267
  documentUrl?: string | undefined;
@@ -387,33 +275,6 @@ export declare const extendedCollectionSchema: z.ZodObject<{
387
275
  servers?: (string | undefined)[] | undefined;
388
276
  requests?: (string | undefined)[] | undefined;
389
277
  tags?: (string | undefined)[] | undefined;
390
- auth?: Record<string | undefined, {
391
- type?: "apiKey" | undefined;
392
- value?: string | undefined;
393
- name?: string | undefined;
394
- } | {
395
- type?: "http" | undefined;
396
- username?: string | undefined;
397
- password?: string | undefined;
398
- token?: string | undefined;
399
- } | {
400
- type?: "oauth-implicit" | undefined;
401
- token?: string | undefined;
402
- } | {
403
- type?: "oauth-password" | undefined;
404
- username?: string | undefined;
405
- password?: string | undefined;
406
- token?: string | undefined;
407
- clientSecret?: string | undefined;
408
- } | {
409
- type?: "oauth-clientCredentials" | undefined;
410
- token?: string | undefined;
411
- clientSecret?: string | undefined;
412
- } | {
413
- type?: "oauth-authorizationCode" | undefined;
414
- token?: string | undefined;
415
- clientSecret?: string | undefined;
416
- }> | undefined;
417
278
  documentUrl?: string | undefined;
418
279
  watchMode?: boolean | undefined;
419
280
  integration?: string | null | undefined;
@@ -572,91 +433,6 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
572
433
  tags: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
573
434
  /** List of requests without tags and top level tag "folders" */
574
435
  children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
575
- /**
576
- * Map of security schemas to their value sets
577
- *
578
- * For each selected security schema we should have an entry here
579
- * The entry will contain the secret values (but not the schema definition)
580
- */
581
- auth: z.ZodDefault<z.ZodRecord<z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodUnion<[z.ZodObject<{
582
- type: z.ZodDefault<z.ZodLiteral<"apiKey">>;
583
- name: z.ZodDefault<z.ZodString>;
584
- value: z.ZodDefault<z.ZodString>;
585
- }, "strip", z.ZodTypeAny, {
586
- type: "apiKey";
587
- value: string;
588
- name: string;
589
- }, {
590
- type?: "apiKey" | undefined;
591
- value?: string | undefined;
592
- name?: string | undefined;
593
- }>, z.ZodObject<{
594
- type: z.ZodDefault<z.ZodLiteral<"http">>;
595
- username: z.ZodDefault<z.ZodString>;
596
- password: z.ZodDefault<z.ZodString>;
597
- token: z.ZodDefault<z.ZodString>;
598
- }, "strip", z.ZodTypeAny, {
599
- type: "http";
600
- username: string;
601
- password: string;
602
- token: string;
603
- }, {
604
- type?: "http" | undefined;
605
- username?: string | undefined;
606
- password?: string | undefined;
607
- token?: string | undefined;
608
- }>, z.ZodObject<{
609
- type: z.ZodDefault<z.ZodLiteral<"oauth-implicit">>;
610
- token: z.ZodDefault<z.ZodString>;
611
- }, "strip", z.ZodTypeAny, {
612
- type: "oauth-implicit";
613
- token: string;
614
- }, {
615
- type?: "oauth-implicit" | undefined;
616
- token?: string | undefined;
617
- }>, z.ZodObject<{
618
- type: z.ZodDefault<z.ZodLiteral<"oauth-password">>;
619
- token: z.ZodDefault<z.ZodString>;
620
- username: z.ZodDefault<z.ZodString>;
621
- password: z.ZodDefault<z.ZodString>;
622
- clientSecret: z.ZodDefault<z.ZodString>;
623
- }, "strip", z.ZodTypeAny, {
624
- type: "oauth-password";
625
- username: string;
626
- password: string;
627
- token: string;
628
- clientSecret: string;
629
- }, {
630
- type?: "oauth-password" | undefined;
631
- username?: string | undefined;
632
- password?: string | undefined;
633
- token?: string | undefined;
634
- clientSecret?: string | undefined;
635
- }>, z.ZodObject<{
636
- type: z.ZodDefault<z.ZodLiteral<"oauth-clientCredentials">>;
637
- token: z.ZodDefault<z.ZodString>;
638
- clientSecret: z.ZodDefault<z.ZodString>;
639
- }, "strip", z.ZodTypeAny, {
640
- type: "oauth-clientCredentials";
641
- token: string;
642
- clientSecret: string;
643
- }, {
644
- type?: "oauth-clientCredentials" | undefined;
645
- token?: string | undefined;
646
- clientSecret?: string | undefined;
647
- }>, z.ZodObject<{
648
- type: z.ZodDefault<z.ZodLiteral<"oauth-authorizationCode">>;
649
- token: z.ZodDefault<z.ZodString>;
650
- clientSecret: z.ZodDefault<z.ZodString>;
651
- }, "strip", z.ZodTypeAny, {
652
- type: "oauth-authorizationCode";
653
- token: string;
654
- clientSecret: string;
655
- }, {
656
- type?: "oauth-authorizationCode" | undefined;
657
- token?: string | undefined;
658
- clientSecret?: string | undefined;
659
- }>]>>>;
660
436
  /** A link to where this document is stored, useful for live sync and possibly git sync down the line */
661
437
  documentUrl: z.ZodOptional<z.ZodString>;
662
438
  /**
@@ -686,33 +462,6 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
686
462
  servers: string[];
687
463
  requests: string[];
688
464
  tags: string[];
689
- auth: Record<string, {
690
- type: "apiKey";
691
- value: string;
692
- name: string;
693
- } | {
694
- type: "http";
695
- username: string;
696
- password: string;
697
- token: string;
698
- } | {
699
- type: "oauth-implicit";
700
- token: string;
701
- } | {
702
- type: "oauth-password";
703
- username: string;
704
- password: string;
705
- token: string;
706
- clientSecret: string;
707
- } | {
708
- type: "oauth-clientCredentials";
709
- token: string;
710
- clientSecret: string;
711
- } | {
712
- type: "oauth-authorizationCode";
713
- token: string;
714
- clientSecret: string;
715
- }>;
716
465
  watchMode: boolean;
717
466
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
718
467
  externalDocs?: {
@@ -804,33 +553,6 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
804
553
  servers?: (string | undefined)[] | undefined;
805
554
  requests?: (string | undefined)[] | undefined;
806
555
  tags?: (string | undefined)[] | undefined;
807
- auth?: Record<string | undefined, {
808
- type?: "apiKey" | undefined;
809
- value?: string | undefined;
810
- name?: string | undefined;
811
- } | {
812
- type?: "http" | undefined;
813
- username?: string | undefined;
814
- password?: string | undefined;
815
- token?: string | undefined;
816
- } | {
817
- type?: "oauth-implicit" | undefined;
818
- token?: string | undefined;
819
- } | {
820
- type?: "oauth-password" | undefined;
821
- username?: string | undefined;
822
- password?: string | undefined;
823
- token?: string | undefined;
824
- clientSecret?: string | undefined;
825
- } | {
826
- type?: "oauth-clientCredentials" | undefined;
827
- token?: string | undefined;
828
- clientSecret?: string | undefined;
829
- } | {
830
- type?: "oauth-authorizationCode" | undefined;
831
- token?: string | undefined;
832
- clientSecret?: string | undefined;
833
- }> | undefined;
834
556
  documentUrl?: string | undefined;
835
557
  watchMode?: boolean | undefined;
836
558
  integration?: string | null | 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;IAC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3B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;;;;OAMG;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;IAEvB,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAehD,qEAAqE;;IAErE,2FAA2F;;IAE3F,oCAAoC;;IAEpC,wDAAwD;;IAExD,gDAAgD;;IAEhD,8CAA8C;;IAE9C,gEAAgE;;IAEhE,wGAAwG;;IAExG;;;;OAIG;;IAEH,kFAAkF;;IAElF;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASJ,CAAA;AACD,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,7 +1,7 @@
1
- import { oasSecurityRequirementSchema, securitySchemeExampleValueSchema } from './security.js';
2
1
  import { xScalarEnvironmentsSchema } from './x-scalar-environments.js';
3
2
  import { xScalarSecretsSchema } from './x-scalar-secrets.js';
4
3
  import { z } from 'zod';
4
+ import { oasSecurityRequirementSchema } from './security.js';
5
5
  import { oasInfoSchema, oasExternalDocumentationSchema } from './spec-objects.js';
6
6
  import { nanoidSchema } from '../shared/utility.js';
7
7
 
@@ -64,13 +64,6 @@ const extendedCollectionSchema = z.object({
64
64
  tags: nanoidSchema.array().default([]),
65
65
  /** List of requests without tags and top level tag "folders" */
66
66
  children: nanoidSchema.array().default([]),
67
- /**
68
- * Map of security schemas to their value sets
69
- *
70
- * For each selected security schema we should have an entry here
71
- * The entry will contain the secret values (but not the schema definition)
72
- */
73
- auth: z.record(nanoidSchema, securitySchemeExampleValueSchema).default({}),
74
67
  /** A link to where this document is stored, useful for live sync and possibly git sync down the line */
75
68
  documentUrl: z.string().optional(),
76
69
  /**
@@ -4,4 +4,4 @@ export { oasRequestSchema, requestMethods, requestSchema } from './requests.js';
4
4
  export { convertExampleToXScalar, createExampleFromRequest, createParamInstance, exampleBodyMime, exampleRequestBodyEncoding, exampleRequestBodySchema, requestExampleParametersSchema, requestExampleSchema, xScalarExampleBodySchema, xScalarExampleSchema, xScalarFileValueSchema, xScalarFormDataValue } from './request-examples.js';
5
5
  export { oasContactSchema, oasExternalDocumentationSchema, oasInfoSchema, oasLicenseSchema, oasTagSchema, tagSchema, xScalarNestedSchema } from './spec-objects.js';
6
6
  export { oasParameterSchema, parameterStyleSchema, parameterTypeSchema } from './parameters.js';
7
- export { authExampleFromSchema, oasOauthFlowSchema, oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeApiKeyIn, securitySchemeExampleValueSchema, securitySchemeSchema } from './security.js';
7
+ export { oasSecurityRequirementSchema, oasSecuritySchemeSchema, pkceOptions, securityApiKeySchema, securityHttpSchema, securityOauthSchema, securityOpenIdSchema, securitySchemeApiKeyIn, securitySchemeSchema } from './security.js';
@@ -505,7 +505,7 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
505
505
  selectedServerUid: string;
506
506
  servers: string[];
507
507
  examples: string[];
508
- method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
508
+ method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
509
509
  description?: string | undefined;
510
510
  summary?: string | undefined;
511
511
  externalDocs?: {
@@ -551,7 +551,7 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
551
551
  deprecated?: boolean | undefined;
552
552
  examples?: (string | undefined)[] | undefined;
553
553
  operationId?: string | undefined;
554
- method?: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace" | undefined;
554
+ method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
555
555
  parameters?: {
556
556
  name: string;
557
557
  in: "path" | "query" | "header" | "cookie";