@scalar/oas-utils 0.2.105 → 0.2.107

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 (48) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/entities/cookie/cookie.d.ts +2 -2
  3. package/dist/entities/cookie/cookie.js +1 -1
  4. package/dist/entities/environment/environment.d.ts +2 -2
  5. package/dist/entities/environment/environment.js +1 -1
  6. package/dist/entities/shared/utility.d.ts +13 -1
  7. package/dist/entities/shared/utility.d.ts.map +1 -1
  8. package/dist/entities/shared/utility.js +4 -1
  9. package/dist/entities/spec/collection.d.ts +46 -46
  10. package/dist/entities/spec/collection.d.ts.map +1 -1
  11. package/dist/entities/spec/collection.js +11 -16
  12. package/dist/entities/spec/operation.d.ts +22 -22
  13. package/dist/entities/spec/parameters.d.ts +4 -4
  14. package/dist/entities/spec/request-examples.d.ts +5 -5
  15. package/dist/entities/spec/request-examples.d.ts.map +1 -1
  16. package/dist/entities/spec/request-examples.js +25 -62
  17. package/dist/entities/spec/requests.d.ts +30 -30
  18. package/dist/entities/spec/requests.d.ts.map +1 -1
  19. package/dist/entities/spec/requests.js +6 -18
  20. package/dist/entities/spec/security.d.ts +22 -22
  21. package/dist/entities/spec/security.d.ts.map +1 -1
  22. package/dist/entities/spec/security.js +7 -22
  23. package/dist/entities/spec/server.d.ts +2 -2
  24. package/dist/entities/spec/server.d.ts.map +1 -1
  25. package/dist/entities/spec/server.js +3 -5
  26. package/dist/entities/spec/spec-objects.d.ts +5 -5
  27. package/dist/entities/spec/spec-objects.d.ts.map +1 -1
  28. package/dist/entities/spec/spec-objects.js +6 -3
  29. package/dist/entities/spec/x-scalar-secrets.d.ts +4 -4
  30. package/dist/entities/spec/x-scalar-secrets.d.ts.map +1 -1
  31. package/dist/entities/workspace/workspace.d.ts +7 -7
  32. package/dist/entities/workspace/workspace.d.ts.map +1 -1
  33. package/dist/entities/workspace/workspace.js +5 -5
  34. package/dist/helpers/fetchSpecFromUrl.d.ts.map +1 -1
  35. package/dist/helpers/fetchSpecFromUrl.js +1 -1
  36. package/dist/helpers/json2xml.d.ts.map +1 -1
  37. package/dist/helpers/json2xml.js +3 -7
  38. package/dist/migrations/migrator.d.ts +1 -1
  39. package/dist/migrations/migrator.d.ts.map +1 -1
  40. package/dist/migrations/v-2.5.0/migration.d.ts +1 -1
  41. package/dist/migrations/v-2.5.0/migration.d.ts.map +1 -1
  42. package/dist/migrations/v-2.5.0/migration.js +66 -3
  43. package/dist/migrations/v-2.5.0/types.generated.d.ts +17 -17
  44. package/dist/migrations/v-2.5.0/types.generated.d.ts.map +1 -1
  45. package/dist/transforms/import-spec.d.ts +1 -1
  46. package/dist/transforms/import-spec.d.ts.map +1 -1
  47. package/dist/transforms/import-spec.js +26 -41
  48. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @scalar/oas-utils
2
2
 
3
+ ## 0.2.107
4
+
5
+ ### Patch Changes
6
+
7
+ - e350f23: chore: code style
8
+ - 738d21c: chore: add brand to uids
9
+ - Updated dependencies [e350f23]
10
+ - Updated dependencies [e47a698]
11
+ - @scalar/openapi-types@0.1.8
12
+ - @scalar/themes@0.9.68
13
+ - @scalar/object-utils@1.1.13
14
+ - @scalar/types@0.0.34
15
+
16
+ ## 0.2.106
17
+
18
+ ### Patch Changes
19
+
20
+ - ed92564: feat: allow preferredSecurityScheme to pre-select a scheme not in the requirements
21
+
3
22
  ## 0.2.105
4
23
 
5
24
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const cookieSchema: z.ZodObject<{
3
- uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3
+ uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "cookie">;
4
4
  /** Defines the cookie name and its value. A cookie definition begins with a name-value pair. */
5
5
  name: z.ZodDefault<z.ZodString>;
6
6
  value: z.ZodDefault<z.ZodString>;
@@ -10,7 +10,7 @@ export declare const cookieSchema: z.ZodObject<{
10
10
  path: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  value: string;
13
- uid: string;
13
+ uid: string & z.BRAND<"cookie">;
14
14
  name: string;
15
15
  path?: string | undefined;
16
16
  domain?: string | undefined;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { nanoidSchema } from '../shared/utility.js';
3
3
 
4
4
  const cookieSchema = z.object({
5
- uid: nanoidSchema,
5
+ uid: nanoidSchema.brand(),
6
6
  /** Defines the cookie name and its value. A cookie definition begins with a name-value pair. */
7
7
  name: z.string().default(''),
8
8
  value: z.string().default(''),
@@ -1,13 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const environmentSchema: z.ZodObject<{
3
- uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3
+ uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "environment">;
4
4
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5
5
  color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6
6
  value: z.ZodDefault<z.ZodString>;
7
7
  isDefault: z.ZodOptional<z.ZodBoolean>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  value: string;
10
- uid: string;
10
+ uid: string & z.BRAND<"environment">;
11
11
  name: string;
12
12
  color: string;
13
13
  isDefault?: boolean | undefined;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { nanoidSchema } from '../shared/utility.js';
3
3
 
4
4
  const environmentSchema = z.object({
5
- uid: nanoidSchema,
5
+ uid: nanoidSchema.brand(),
6
6
  name: z.string().optional().default('Default Environment'),
7
7
  color: z.string().optional().default('#0082D0'),
8
8
  value: z.string().default(''),
@@ -3,7 +3,19 @@ import { z } from 'zod';
3
3
  export declare const nanoidSchema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4
4
  /** UID format for objects */
5
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
+ };
6
18
  /** Schema for selectedSecuritySchemeUids */
7
- export declare const selectedSecuritySchemeUidSchema: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">]>, "many">>;
19
+ export declare const selectedSecuritySchemeUidSchema: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
8
20
  export type SelectedSecuritySchemeUids = z.infer<typeof selectedSecuritySchemeUidSchema>;
9
21
  //# sourceMappingURL=utility.d.ts.map
@@ -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,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B,wJAG9B,CAAA;AAEd,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,+BAA+B,CACvC,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,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"}
@@ -9,7 +9,10 @@ const nanoidSchema = z
9
9
  .default(() => nanoid());
10
10
  /** Schema for selectedSecuritySchemeUids */
11
11
  const selectedSecuritySchemeUidSchema = z
12
- .union([nanoidSchema, nanoidSchema.array()])
12
+ .union([
13
+ z.string().brand(),
14
+ z.string().brand().array(),
15
+ ])
13
16
  .array()
14
17
  .default([]);
15
18
 
@@ -130,11 +130,11 @@ export declare const oasCollectionSchema: z.ZodObject<{
130
130
  description: z.ZodOptional<z.ZodString>;
131
131
  example: z.ZodOptional<z.ZodString>;
132
132
  }, "strip", z.ZodTypeAny, {
133
- description?: string | undefined;
134
133
  example?: string | undefined;
135
- }, {
136
134
  description?: string | undefined;
135
+ }, {
137
136
  example?: string | undefined;
137
+ description?: string | undefined;
138
138
  }>>>;
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  type: "collection";
@@ -175,8 +175,8 @@ export declare const oasCollectionSchema: z.ZodObject<{
175
175
  color?: string | undefined;
176
176
  }> | undefined;
177
177
  'x-scalar-secrets'?: Record<string, {
178
- description?: string | undefined;
179
178
  example?: string | undefined;
179
+ description?: string | undefined;
180
180
  }> | undefined;
181
181
  }, {
182
182
  type?: "collection" | undefined;
@@ -217,26 +217,26 @@ export declare const oasCollectionSchema: z.ZodObject<{
217
217
  color?: string | undefined;
218
218
  }> | undefined;
219
219
  'x-scalar-secrets'?: Record<string, {
220
- description?: string | undefined;
221
220
  example?: string | undefined;
221
+ description?: string | undefined;
222
222
  }> | undefined;
223
223
  }>;
224
224
  export declare const extendedCollectionSchema: z.ZodObject<{
225
- uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
225
+ uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "collection">;
226
226
  /** A list of security schemes UIDs associated with the collection */
227
227
  securitySchemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
228
228
  /** List of currently selected security scheme UIDs, these can be overridden per request */
229
- selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">]>, "many">>;
229
+ selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
230
230
  /** The currently selected server */
231
- selectedServerUid: z.ZodDefault<z.ZodString>;
231
+ selectedServerUid: z.ZodOptional<z.ZodBranded<z.ZodString, "server">>;
232
232
  /** UIDs which refer to servers on the workspace base */
233
- servers: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
233
+ servers: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "server">, "many">>;
234
234
  /** Request UIDs associated with a collection */
235
- requests: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
235
+ requests: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "operation">, "many">>;
236
236
  /** Tag UIDs associated with the collection */
237
- tags: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
237
+ tags: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "tag">, "many">>;
238
238
  /** List of requests without tags and top level tag "folders" */
239
- children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
239
+ children: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "operation">, z.ZodBranded<z.ZodString, "tag">]>, "many">>;
240
240
  /**
241
241
  * A link to where this document is stored
242
242
  *
@@ -259,27 +259,27 @@ export declare const extendedCollectionSchema: z.ZodObject<{
259
259
  */
260
260
  watchModeStatus: z.ZodDefault<z.ZodOptional<z.ZodEnum<["IDLE", "WATCHING", "ERROR"]>>>;
261
261
  }, "strip", z.ZodTypeAny, {
262
- uid: string;
263
- children: string[];
262
+ uid: string & z.BRAND<"collection">;
263
+ children: ((string & z.BRAND<"tag">) | (string & z.BRAND<"operation">))[];
264
264
  securitySchemes: string[];
265
- selectedSecuritySchemeUids: (string | string[])[];
266
- selectedServerUid: string;
267
- servers: string[];
268
- requests: string[];
269
- tags: string[];
265
+ selectedSecuritySchemeUids: ((string & z.BRAND<"securityScheme">) | (string & z.BRAND<"securityScheme">)[])[];
266
+ servers: (string & z.BRAND<"server">)[];
267
+ requests: (string & z.BRAND<"operation">)[];
268
+ tags: (string & z.BRAND<"tag">)[];
270
269
  watchMode: boolean;
271
270
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
271
+ selectedServerUid?: (string & z.BRAND<"server">) | undefined;
272
272
  documentUrl?: string | undefined;
273
273
  integration?: string | null | undefined;
274
274
  }, {
275
275
  uid?: string | undefined;
276
- children?: (string | undefined)[] | undefined;
276
+ children?: string[] | undefined;
277
277
  securitySchemes?: string[] | undefined;
278
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
278
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
279
279
  selectedServerUid?: string | undefined;
280
- servers?: (string | undefined)[] | undefined;
281
- requests?: (string | undefined)[] | undefined;
282
- tags?: (string | undefined)[] | undefined;
280
+ servers?: string[] | undefined;
281
+ requests?: string[] | undefined;
282
+ tags?: string[] | undefined;
283
283
  documentUrl?: string | undefined;
284
284
  watchMode?: boolean | undefined;
285
285
  integration?: string | null | undefined;
@@ -416,28 +416,28 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
416
416
  description: z.ZodOptional<z.ZodString>;
417
417
  example: z.ZodOptional<z.ZodString>;
418
418
  }, "strip", z.ZodTypeAny, {
419
- description?: string | undefined;
420
419
  example?: string | undefined;
421
- }, {
422
420
  description?: string | undefined;
421
+ }, {
423
422
  example?: string | undefined;
423
+ description?: string | undefined;
424
424
  }>>>;
425
425
  }, {
426
- uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
426
+ uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "collection">;
427
427
  /** A list of security schemes UIDs associated with the collection */
428
428
  securitySchemes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
429
429
  /** List of currently selected security scheme UIDs, these can be overridden per request */
430
- selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodString>>, z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">]>, "many">>;
430
+ selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
431
431
  /** The currently selected server */
432
- selectedServerUid: z.ZodDefault<z.ZodString>;
432
+ selectedServerUid: z.ZodOptional<z.ZodBranded<z.ZodString, "server">>;
433
433
  /** UIDs which refer to servers on the workspace base */
434
- servers: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
434
+ servers: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "server">, "many">>;
435
435
  /** Request UIDs associated with a collection */
436
- requests: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
436
+ requests: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "operation">, "many">>;
437
437
  /** Tag UIDs associated with the collection */
438
- tags: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
438
+ tags: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "tag">, "many">>;
439
439
  /** List of requests without tags and top level tag "folders" */
440
- children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
440
+ children: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "operation">, z.ZodBranded<z.ZodString, "tag">]>, "many">>;
441
441
  /**
442
442
  * A link to where this document is stored
443
443
  *
@@ -461,17 +461,16 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
461
461
  watchModeStatus: z.ZodDefault<z.ZodOptional<z.ZodEnum<["IDLE", "WATCHING", "ERROR"]>>>;
462
462
  }>, "strip", z.ZodTypeAny, {
463
463
  type: "collection";
464
- uid: string;
465
- children: string[];
464
+ uid: string & z.BRAND<"collection">;
465
+ children: ((string & z.BRAND<"tag">) | (string & z.BRAND<"operation">))[];
466
466
  openapi: string;
467
467
  security: Record<string, string[]>[];
468
468
  'x-scalar-icon': string;
469
469
  securitySchemes: string[];
470
- selectedSecuritySchemeUids: (string | string[])[];
471
- selectedServerUid: string;
472
- servers: string[];
473
- requests: string[];
474
- tags: string[];
470
+ selectedSecuritySchemeUids: ((string & z.BRAND<"securityScheme">) | (string & z.BRAND<"securityScheme">)[])[];
471
+ servers: (string & z.BRAND<"server">)[];
472
+ requests: (string & z.BRAND<"operation">)[];
473
+ tags: (string & z.BRAND<"tag">)[];
475
474
  watchMode: boolean;
476
475
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
477
476
  externalDocs?: {
@@ -508,9 +507,10 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
508
507
  color?: string | undefined;
509
508
  }> | undefined;
510
509
  'x-scalar-secrets'?: Record<string, {
511
- description?: string | undefined;
512
510
  example?: string | undefined;
511
+ description?: string | undefined;
513
512
  }> | undefined;
513
+ selectedServerUid?: (string & z.BRAND<"server">) | undefined;
514
514
  documentUrl?: string | undefined;
515
515
  integration?: string | null | undefined;
516
516
  }, {
@@ -520,7 +520,7 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
520
520
  description?: string | undefined;
521
521
  url?: string | undefined;
522
522
  } | undefined;
523
- children?: (string | undefined)[] | undefined;
523
+ children?: string[] | undefined;
524
524
  openapi?: string | undefined;
525
525
  jsonSchemaDialect?: string | undefined;
526
526
  info?: {
@@ -554,15 +554,15 @@ export declare const collectionSchema: z.ZodObject<z.objectUtil.extendShape<{
554
554
  color?: string | undefined;
555
555
  }> | undefined;
556
556
  'x-scalar-secrets'?: Record<string, {
557
- description?: string | undefined;
558
557
  example?: string | undefined;
558
+ description?: string | undefined;
559
559
  }> | undefined;
560
560
  securitySchemes?: string[] | undefined;
561
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
561
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
562
562
  selectedServerUid?: string | undefined;
563
- servers?: (string | undefined)[] | undefined;
564
- requests?: (string | undefined)[] | undefined;
565
- tags?: (string | undefined)[] | undefined;
563
+ servers?: string[] | undefined;
564
+ requests?: string[] | undefined;
565
+ tags?: string[] | undefined;
566
566
  documentUrl?: string | undefined;
567
567
  watchMode?: boolean | undefined;
568
568
  integration?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,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ExD,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"}
@@ -13,12 +13,7 @@ const oasCollectionSchema = z.object({
13
13
  */
14
14
  'type': z.literal('collection').optional().default('collection'),
15
15
  'openapi': z
16
- .union([
17
- z.string(),
18
- z.literal('3.0.0'),
19
- z.literal('3.1.0'),
20
- z.literal('4.0.0'),
21
- ])
16
+ .union([z.string(), z.literal('3.0.0'), z.literal('3.1.0'), z.literal('4.0.0')])
22
17
  .optional()
23
18
  .default('3.1.0'),
24
19
  'jsonSchemaDialect': z.string().optional(),
@@ -49,21 +44,24 @@ const oasCollectionSchema = z.object({
49
44
  // security
50
45
  });
51
46
  const extendedCollectionSchema = z.object({
52
- uid: nanoidSchema,
47
+ uid: nanoidSchema.brand(),
53
48
  /** A list of security schemes UIDs associated with the collection */
54
49
  securitySchemes: z.string().array().default([]),
55
50
  /** List of currently selected security scheme UIDs, these can be overridden per request */
56
51
  selectedSecuritySchemeUids: selectedSecuritySchemeUidSchema,
57
52
  /** The currently selected server */
58
- selectedServerUid: z.string().default(''),
53
+ selectedServerUid: z.string().brand().optional(),
59
54
  /** UIDs which refer to servers on the workspace base */
60
- servers: nanoidSchema.array().default([]),
55
+ servers: z.string().brand().array().default([]),
61
56
  /** Request UIDs associated with a collection */
62
- requests: nanoidSchema.array().default([]),
57
+ requests: z.string().brand().array().default([]),
63
58
  /** Tag UIDs associated with the collection */
64
- tags: nanoidSchema.array().default([]),
59
+ tags: z.string().brand().array().default([]),
65
60
  /** List of requests without tags and top level tag "folders" */
66
- children: nanoidSchema.array().default([]),
61
+ children: z
62
+ .union([z.string().brand(), z.string().brand()])
63
+ .array()
64
+ .default([]),
67
65
  /**
68
66
  * A link to where this document is stored
69
67
  *
@@ -84,10 +82,7 @@ const extendedCollectionSchema = z.object({
84
82
  *
85
83
  * @defaults to idle for all collections, doesn't mean that it can watch for changes
86
84
  */
87
- watchModeStatus: z
88
- .enum(['IDLE', 'WATCHING', 'ERROR'])
89
- .optional()
90
- .default('IDLE'),
85
+ watchModeStatus: z.enum(['IDLE', 'WATCHING', 'ERROR']).optional().default('IDLE'),
91
86
  });
92
87
  const collectionSchema = oasCollectionSchema.merge(extendedCollectionSchema);
93
88
 
@@ -35,10 +35,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
35
35
  }, "strip", import("zod").ZodTypeAny, {
36
36
  required: boolean;
37
37
  name: string;
38
- in: "path" | "query" | "header" | "cookie";
38
+ in: "path" | "cookie" | "query" | "header";
39
39
  deprecated: boolean;
40
- description?: string | undefined;
41
40
  example?: unknown;
41
+ description?: string | undefined;
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" | "query" | "header" | "cookie";
51
+ in: "path" | "cookie" | "query" | "header";
52
+ example?: unknown;
52
53
  required?: boolean | undefined;
53
54
  description?: string | undefined;
54
- example?: unknown;
55
55
  deprecated?: boolean | undefined;
56
56
  schema?: unknown;
57
57
  content?: unknown;
@@ -156,21 +156,21 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
156
156
  'x-scalar-ignore': import("zod").ZodOptional<import("zod").ZodBoolean>;
157
157
  }, "x-scalar-examples">, {
158
158
  type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"request">>>;
159
- uid: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
159
+ uid: import("zod").ZodBranded<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "operation">;
160
160
  path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
161
161
  method: import("zod").ZodDefault<import("zod").ZodEnum<["connect", "delete", "get", "head", "options", "patch", "post", "put", "trace"]>>;
162
- servers: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "many">>;
163
- selectedServerUid: import("zod").ZodDefault<import("zod").ZodString>;
164
- examples: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "many">>;
165
- selectedSecuritySchemeUids: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, import("zod").ZodArray<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "many">]>, "many">>;
162
+ servers: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "server">, "many">>;
163
+ selectedServerUid: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodBranded<import("zod").ZodString, "server">>>>;
164
+ examples: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodBranded<import("zod").ZodString, "example">, "many">>;
165
+ 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">>;
166
166
  }>, "strip", import("zod").ZodTypeAny, {
167
167
  path: string;
168
168
  type: "request";
169
- uid: string;
170
- selectedSecuritySchemeUids: (string | string[])[];
171
- selectedServerUid: string;
172
- servers: string[];
173
- examples: string[];
169
+ uid: string & import("zod").BRAND<"operation">;
170
+ selectedSecuritySchemeUids: ((string & import("zod").BRAND<"securityScheme">) | (string & import("zod").BRAND<"securityScheme">)[])[];
171
+ selectedServerUid: (string & import("zod").BRAND<"server">) | null;
172
+ servers: (string & import("zod").BRAND<"server">)[];
173
+ examples: (string & import("zod").BRAND<"example">)[];
174
174
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
175
175
  description?: string | undefined;
176
176
  summary?: string | undefined;
@@ -187,10 +187,10 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
187
187
  parameters?: {
188
188
  required: boolean;
189
189
  name: string;
190
- in: "path" | "query" | "header" | "cookie";
190
+ in: "path" | "cookie" | "query" | "header";
191
191
  deprecated: boolean;
192
- description?: string | undefined;
193
192
  example?: unknown;
193
+ description?: string | undefined;
194
194
  schema?: unknown;
195
195
  content?: unknown;
196
196
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -214,19 +214,19 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
214
214
  'x-internal'?: boolean | undefined;
215
215
  'x-scalar-ignore'?: boolean | undefined;
216
216
  security?: Record<string, string[] | undefined>[] | undefined;
217
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
218
- selectedServerUid?: string | undefined;
219
- servers?: (string | undefined)[] | undefined;
217
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
218
+ selectedServerUid?: string | null | undefined;
219
+ servers?: string[] | undefined;
220
220
  tags?: string[] | undefined;
221
221
  deprecated?: boolean | undefined;
222
- examples?: (string | undefined)[] | undefined;
222
+ examples?: string[] | undefined;
223
223
  operationId?: string | undefined;
224
224
  parameters?: {
225
225
  name: string;
226
- in: "path" | "query" | "header" | "cookie";
226
+ in: "path" | "cookie" | "query" | "header";
227
+ example?: unknown;
227
228
  required?: boolean | undefined;
228
229
  description?: string | undefined;
229
- example?: unknown;
230
230
  deprecated?: boolean | undefined;
231
231
  schema?: unknown;
232
232
  content?: unknown;
@@ -32,10 +32,10 @@ export declare const oasParameterSchema: z.ZodObject<{
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  required: boolean;
34
34
  name: string;
35
- in: "path" | "query" | "header" | "cookie";
35
+ in: "path" | "cookie" | "query" | "header";
36
36
  deprecated: boolean;
37
- description?: string | undefined;
38
37
  example?: unknown;
38
+ description?: string | undefined;
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" | "query" | "header" | "cookie";
48
+ in: "path" | "cookie" | "query" | "header";
49
+ example?: unknown;
49
50
  required?: boolean | undefined;
50
51
  description?: string | undefined;
51
- example?: unknown;
52
52
  deprecated?: boolean | undefined;
53
53
  schema?: unknown;
54
54
  content?: unknown;
@@ -85,7 +85,7 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
85
85
  nullable?: boolean | undefined;
86
86
  }>;
87
87
  /** Convert the array of parameters to an object keyed by the parameter name */
88
- export declare function parameterArrayToObject(params: RequestExampleParameter[]): Record<string, string>;
88
+ export declare const parameterArrayToObject: (params: RequestExampleParameter[]) => Record<string, string>;
89
89
  /** Request examples - formerly known as instances - are "children" of requests */
90
90
  export type RequestExampleParameter = z.infer<typeof requestExampleParametersSchema>;
91
91
  export declare const xScalarFileValueSchema: z.ZodNullable<z.ZodObject<{
@@ -376,9 +376,9 @@ export declare const xScalarExampleBodySchema: z.ZodObject<{
376
376
  }>;
377
377
  export type XScalarExampleBody = z.infer<typeof xScalarExampleBodySchema>;
378
378
  export declare const requestExampleSchema: z.ZodObject<{
379
- uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
379
+ uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "example">;
380
380
  type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"requestExample">>>;
381
- requestUid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
381
+ requestUid: z.ZodOptional<z.ZodBranded<z.ZodString, "operation">>;
382
382
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
383
383
  body: z.ZodDefault<z.ZodOptional<z.ZodObject<{
384
384
  raw: z.ZodOptional<z.ZodObject<{
@@ -1001,7 +1001,7 @@ export declare const requestExampleSchema: z.ZodObject<{
1001
1001
  serverVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1002
1002
  }, "strip", z.ZodTypeAny, {
1003
1003
  type: "requestExample";
1004
- uid: string;
1004
+ uid: string & z.BRAND<"example">;
1005
1005
  name: string;
1006
1006
  parameters: {
1007
1007
  path: {
@@ -1096,7 +1096,7 @@ export declare const requestExampleSchema: z.ZodObject<{
1096
1096
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1097
1097
  } | undefined;
1098
1098
  };
1099
- requestUid: string;
1099
+ requestUid?: (string & z.BRAND<"operation">) | undefined;
1100
1100
  serverVariables?: Record<string, string[]> | undefined;
1101
1101
  }, {
1102
1102
  type?: "requestExample" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"request-examples.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/request-examples.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAKtC;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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