@scalar/workspace-store 0.5.2 → 0.7.0

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 (93) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +94 -7
  3. package/dist/client.d.ts +11713 -11143
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +27 -2
  6. package/dist/client.js.map +2 -2
  7. package/dist/helpers/json-path-utils.d.ts +1 -1
  8. package/dist/helpers/json-path-utils.d.ts.map +1 -1
  9. package/dist/helpers/json-path-utils.js.map +2 -2
  10. package/dist/helpers/merge-object.d.ts +23 -0
  11. package/dist/helpers/merge-object.d.ts.map +1 -0
  12. package/dist/helpers/merge-object.js +20 -0
  13. package/dist/helpers/merge-object.js.map +7 -0
  14. package/dist/helpers/proxy.d.ts.map +1 -1
  15. package/dist/helpers/proxy.js +5 -2
  16. package/dist/helpers/proxy.js.map +2 -2
  17. package/dist/schemas/reference-config/appearance.d.ts +13 -0
  18. package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
  19. package/dist/schemas/reference-config/appearance.js +26 -0
  20. package/dist/schemas/reference-config/appearance.js.map +7 -0
  21. package/dist/schemas/reference-config/features.d.ts +15 -0
  22. package/dist/schemas/reference-config/features.d.ts.map +1 -0
  23. package/dist/schemas/reference-config/features.js +30 -0
  24. package/dist/schemas/reference-config/features.js.map +7 -0
  25. package/dist/schemas/reference-config/index.d.ts +53 -0
  26. package/dist/schemas/reference-config/index.d.ts.map +1 -0
  27. package/dist/schemas/reference-config/index.js +66 -0
  28. package/dist/schemas/reference-config/index.js.map +7 -0
  29. package/dist/schemas/reference-config/meta.d.ts +12 -0
  30. package/dist/schemas/reference-config/meta.d.ts.map +1 -0
  31. package/dist/schemas/reference-config/meta.js +24 -0
  32. package/dist/schemas/reference-config/meta.js.map +7 -0
  33. package/dist/schemas/reference-config/routing.d.ts +8 -0
  34. package/dist/schemas/reference-config/routing.d.ts.map +1 -0
  35. package/dist/schemas/reference-config/routing.js +16 -0
  36. package/dist/schemas/reference-config/routing.js.map +7 -0
  37. package/dist/schemas/reference-config/settings.d.ts +8 -0
  38. package/dist/schemas/reference-config/settings.d.ts.map +1 -0
  39. package/dist/schemas/reference-config/settings.js +16 -0
  40. package/dist/schemas/reference-config/settings.js.map +7 -0
  41. package/dist/schemas/v3.1/strict/components.d.ts +167 -40
  42. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  43. package/dist/schemas/v3.1/strict/header.d.ts +2 -0
  44. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  45. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
  46. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
  47. package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
  48. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  49. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
  50. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  51. package/dist/schemas/v3.1/strict/oauth-flow.js +44 -7
  52. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  53. package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
  54. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  55. package/dist/schemas/v3.1/strict/oauthflows.js +11 -8
  56. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  57. package/dist/schemas/v3.1/strict/operation.d.ts +11 -2
  58. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  59. package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
  60. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  61. package/dist/schemas/v3.1/strict/parameter.js +1 -1
  62. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  63. package/dist/schemas/v3.1/strict/path-item.d.ts +5 -2
  64. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  65. package/dist/schemas/v3.1/strict/path-operations.d.ts +158 -32
  66. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  67. package/dist/schemas/v3.1/strict/paths.d.ts +71 -14
  68. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  69. package/dist/schemas/v3.1/strict/request-body.d.ts +2 -0
  70. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  71. package/dist/schemas/v3.1/strict/response.d.ts +4 -0
  72. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  73. package/dist/schemas/v3.1/strict/responses.d.ts +4 -0
  74. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  75. package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
  76. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  77. package/dist/schemas/v3.1/strict/schema.js +7 -2
  78. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  79. package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
  80. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  81. package/dist/schemas/v3.1/type-guard.d.ts +5 -0
  82. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
  83. package/dist/schemas/v3.1/type-guard.js +1 -3
  84. package/dist/schemas/v3.1/type-guard.js.map +2 -2
  85. package/dist/server.d.ts +687 -651
  86. package/dist/server.d.ts.map +1 -1
  87. package/dist/server.js +52 -49
  88. package/dist/server.js.map +2 -2
  89. package/dist/types.d.ts +57 -0
  90. package/dist/types.d.ts.map +1 -0
  91. package/dist/types.js +1 -0
  92. package/dist/types.js.map +7 -0
  93. package/package.json +19 -7
package/dist/server.d.ts CHANGED
@@ -1,15 +1,27 @@
1
1
  import type { WorkspaceDocumentMeta, WorkspaceMeta } from './schemas/workspace.js';
2
2
  import { type createNavigationOptions } from './navigation/index.js';
3
+ import { extensions } from './schemas/extensions.js';
3
4
  import { type OpenApiDocument } from './schemas/v3.1/strict/openapi-document.js';
4
5
  import type { PathsObject } from './schemas/v3.1/strict/paths.js';
5
6
  import type { OperationObject } from './schemas/v3.1/strict/path-operations.js';
7
+ import type { TraversedEntry } from './navigation/types.js';
6
8
  export declare const WORKSPACE_FILE_NAME = "scalar-workspace.json";
9
+ type WorkspaceDocumentMetaInput = {
10
+ name: string;
11
+ meta?: WorkspaceDocumentMeta;
12
+ };
13
+ type UrlDoc = {
14
+ url: string;
15
+ } & WorkspaceDocumentMetaInput;
16
+ type FileDoc = {
17
+ path: string;
18
+ } & WorkspaceDocumentMetaInput;
19
+ type ObjectDoc = {
20
+ document: Record<string, unknown>;
21
+ } & WorkspaceDocumentMetaInput;
22
+ type WorkspaceDocumentInput = UrlDoc | ObjectDoc | FileDoc;
7
23
  type CreateServerWorkspaceStoreBase = {
8
- documents: {
9
- name: string;
10
- document: Record<string, unknown> | string;
11
- meta?: WorkspaceDocumentMeta;
12
- }[];
24
+ documents: WorkspaceDocumentInput[];
13
25
  meta?: WorkspaceMeta;
14
26
  config?: createNavigationOptions;
15
27
  };
@@ -68,10 +80,29 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
68
80
  deprecated?: boolean | undefined;
69
81
  allowEmptyValue?: boolean | undefined;
70
82
  name: string;
71
- in: string;
83
+ in: "query" | "header" | "path" | "cookie";
72
84
  } & {
73
85
  [x: `x-${string}`]: unknown;
74
86
  } & {
87
+ examples?: {
88
+ [x: string]: ({
89
+ summary?: string | undefined;
90
+ description?: string | undefined;
91
+ $ref: string;
92
+ } & {
93
+ $status?: "loading" | "error" | undefined;
94
+ $global?: boolean | undefined;
95
+ } & {
96
+ [x: `x-${string}`]: unknown;
97
+ }) | ({
98
+ summary?: string | undefined;
99
+ description?: string | undefined;
100
+ value?: any;
101
+ externalValue?: string | undefined;
102
+ } & {
103
+ [x: `x-${string}`]: unknown;
104
+ });
105
+ } | undefined;
75
106
  style?: string | undefined;
76
107
  explode?: boolean | undefined;
77
108
  schema?: ({
@@ -108,6 +139,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
108
139
  [x: `x-${string}`]: unknown;
109
140
  }) | undefined;
110
141
  example?: any;
142
+ examples?: unknown[] | undefined;
111
143
  } & {
112
144
  [x: `x-${string}`]: unknown;
113
145
  } & {
@@ -115,25 +147,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
115
147
  } & {
116
148
  [x: string]: unknown;
117
149
  }) | undefined;
118
- examples?: {
119
- [x: string]: ({
120
- summary?: string | undefined;
121
- description?: string | undefined;
122
- $ref: string;
123
- } & {
124
- $status?: "loading" | "error" | undefined;
125
- $global?: boolean | undefined;
126
- } & {
127
- [x: `x-${string}`]: unknown;
128
- }) | ({
129
- summary?: string | undefined;
130
- description?: string | undefined;
131
- value?: any;
132
- externalValue?: string | undefined;
133
- } & {
134
- [x: `x-${string}`]: unknown;
135
- });
136
- } | undefined;
137
150
  example: any;
138
151
  }) | ({
139
152
  description?: string | undefined;
@@ -141,13 +154,32 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
141
154
  deprecated?: boolean | undefined;
142
155
  allowEmptyValue?: boolean | undefined;
143
156
  name: string;
144
- in: string;
157
+ in: "query" | "header" | "path" | "cookie";
145
158
  } & {
146
159
  [x: `x-${string}`]: unknown;
147
160
  } & {
148
161
  content?: {
149
162
  [x: string]: {
150
163
  example?: any;
164
+ examples?: {
165
+ [x: string]: ({
166
+ summary?: string | undefined;
167
+ description?: string | undefined;
168
+ value?: any;
169
+ externalValue?: string | undefined;
170
+ } & {
171
+ [x: `x-${string}`]: unknown;
172
+ }) | ({
173
+ summary?: string | undefined;
174
+ description?: string | undefined;
175
+ $ref: string;
176
+ } & {
177
+ $status?: "loading" | "error" | undefined;
178
+ $global?: boolean | undefined;
179
+ } & {
180
+ [x: `x-${string}`]: unknown;
181
+ });
182
+ } | undefined;
151
183
  schema?: ({
152
184
  discriminator?: ({
153
185
  mapping?: {
@@ -173,6 +205,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
173
205
  [x: `x-${string}`]: unknown;
174
206
  }) | undefined;
175
207
  example?: any;
208
+ examples?: unknown[] | undefined;
176
209
  } & {
177
210
  [x: `x-${string}`]: unknown;
178
211
  } & {
@@ -180,25 +213,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
180
213
  } & {
181
214
  [x: string]: unknown;
182
215
  }) | undefined;
183
- examples?: {
184
- [x: string]: ({
185
- summary?: string | undefined;
186
- description?: string | undefined;
187
- value?: any;
188
- externalValue?: string | undefined;
189
- } & {
190
- [x: `x-${string}`]: unknown;
191
- }) | ({
192
- summary?: string | undefined;
193
- description?: string | undefined;
194
- $ref: string;
195
- } & {
196
- $status?: "loading" | "error" | undefined;
197
- $global?: boolean | undefined;
198
- } & {
199
- [x: `x-${string}`]: unknown;
200
- });
201
- } | undefined;
202
216
  encoding?: {
203
217
  [x: string]: {
204
218
  contentType?: string | undefined;
@@ -219,9 +233,37 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
219
233
  } & {
220
234
  [x: `x-${string}`]: unknown;
221
235
  } & {
236
+ examples?: {
237
+ [x: string]: ({
238
+ summary?: string | undefined;
239
+ description?: string | undefined;
240
+ value?: any;
241
+ externalValue?: string | undefined;
242
+ } & {
243
+ [x: `x-${string}`]: unknown;
244
+ }) | ({
245
+ summary?: string | undefined;
246
+ description?: string | undefined;
247
+ $ref: string;
248
+ } & {
249
+ $status?: "loading" | "error" | undefined;
250
+ $global?: boolean | undefined;
251
+ } & {
252
+ [x: `x-${string}`]: unknown;
253
+ });
254
+ } | undefined;
222
255
  style?: string | undefined;
223
256
  explode?: boolean | undefined;
224
257
  schema?: ({
258
+ summary?: string | undefined;
259
+ description?: string | undefined;
260
+ $ref: string;
261
+ } & {
262
+ $status?: "loading" | "error" | undefined;
263
+ $global?: boolean | undefined;
264
+ } & {
265
+ [x: `x-${string}`]: unknown;
266
+ }) | ({
225
267
  discriminator?: ({
226
268
  mapping?: {
227
269
  [x: string]: string;
@@ -246,41 +288,14 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
246
288
  [x: `x-${string}`]: unknown;
247
289
  }) | undefined;
248
290
  example?: any;
291
+ examples?: unknown[] | undefined;
249
292
  } & {
250
293
  [x: `x-${string}`]: unknown;
251
294
  } & {
252
295
  'x-tags'?: string[] | undefined;
253
296
  } & {
254
297
  [x: string]: unknown;
255
- }) | ({
256
- summary?: string | undefined;
257
- description?: string | undefined;
258
- $ref: string;
259
- } & {
260
- $status?: "loading" | "error" | undefined;
261
- $global?: boolean | undefined;
262
- } & {
263
- [x: `x-${string}`]: unknown;
264
298
  }) | undefined;
265
- examples?: {
266
- [x: string]: ({
267
- summary?: string | undefined;
268
- description?: string | undefined;
269
- value?: any;
270
- externalValue?: string | undefined;
271
- } & {
272
- [x: `x-${string}`]: unknown;
273
- }) | ({
274
- summary?: string | undefined;
275
- description?: string | undefined;
276
- $ref: string;
277
- } & {
278
- $status?: "loading" | "error" | undefined;
279
- $global?: boolean | undefined;
280
- } & {
281
- [x: `x-${string}`]: unknown;
282
- });
283
- } | undefined;
284
299
  example: any;
285
300
  }) | ({
286
301
  description?: string | undefined;
@@ -320,6 +335,25 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
320
335
  content: {
321
336
  [x: string]: {
322
337
  example?: any;
338
+ examples?: {
339
+ [x: string]: ({
340
+ summary?: string | undefined;
341
+ description?: string | undefined;
342
+ value?: any;
343
+ externalValue?: string | undefined;
344
+ } & {
345
+ [x: `x-${string}`]: unknown;
346
+ }) | ({
347
+ summary?: string | undefined;
348
+ description?: string | undefined;
349
+ $ref: string;
350
+ } & {
351
+ $status?: "loading" | "error" | undefined;
352
+ $global?: boolean | undefined;
353
+ } & {
354
+ [x: `x-${string}`]: unknown;
355
+ });
356
+ } | undefined;
323
357
  schema?: ({
324
358
  discriminator?: ({
325
359
  mapping?: {
@@ -345,6 +379,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
345
379
  [x: `x-${string}`]: unknown;
346
380
  }) | undefined;
347
381
  example?: any;
382
+ examples?: unknown[] | undefined;
348
383
  } & {
349
384
  [x: `x-${string}`]: unknown;
350
385
  } & {
@@ -352,25 +387,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
352
387
  } & {
353
388
  [x: string]: unknown;
354
389
  }) | undefined;
355
- examples?: {
356
- [x: string]: ({
357
- summary?: string | undefined;
358
- description?: string | undefined;
359
- value?: any;
360
- externalValue?: string | undefined;
361
- } & {
362
- [x: `x-${string}`]: unknown;
363
- }) | ({
364
- summary?: string | undefined;
365
- description?: string | undefined;
366
- $ref: string;
367
- } & {
368
- $status?: "loading" | "error" | undefined;
369
- $global?: boolean | undefined;
370
- } & {
371
- [x: `x-${string}`]: unknown;
372
- });
373
- } | undefined;
374
390
  encoding?: {
375
391
  [x: string]: {
376
392
  contentType?: string | undefined;
@@ -391,9 +407,37 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
391
407
  } & {
392
408
  [x: `x-${string}`]: unknown;
393
409
  } & {
410
+ examples?: {
411
+ [x: string]: ({
412
+ summary?: string | undefined;
413
+ description?: string | undefined;
414
+ value?: any;
415
+ externalValue?: string | undefined;
416
+ } & {
417
+ [x: `x-${string}`]: unknown;
418
+ }) | ({
419
+ summary?: string | undefined;
420
+ description?: string | undefined;
421
+ $ref: string;
422
+ } & {
423
+ $status?: "loading" | "error" | undefined;
424
+ $global?: boolean | undefined;
425
+ } & {
426
+ [x: `x-${string}`]: unknown;
427
+ });
428
+ } | undefined;
394
429
  style?: string | undefined;
395
430
  explode?: boolean | undefined;
396
431
  schema?: ({
432
+ summary?: string | undefined;
433
+ description?: string | undefined;
434
+ $ref: string;
435
+ } & {
436
+ $status?: "loading" | "error" | undefined;
437
+ $global?: boolean | undefined;
438
+ } & {
439
+ [x: `x-${string}`]: unknown;
440
+ }) | ({
397
441
  discriminator?: ({
398
442
  mapping?: {
399
443
  [x: string]: string;
@@ -418,41 +462,14 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
418
462
  [x: `x-${string}`]: unknown;
419
463
  }) | undefined;
420
464
  example?: any;
465
+ examples?: unknown[] | undefined;
421
466
  } & {
422
467
  [x: `x-${string}`]: unknown;
423
468
  } & {
424
469
  'x-tags'?: string[] | undefined;
425
470
  } & {
426
471
  [x: string]: unknown;
427
- }) | ({
428
- summary?: string | undefined;
429
- description?: string | undefined;
430
- $ref: string;
431
- } & {
432
- $status?: "loading" | "error" | undefined;
433
- $global?: boolean | undefined;
434
- } & {
435
- [x: `x-${string}`]: unknown;
436
472
  }) | undefined;
437
- examples?: {
438
- [x: string]: ({
439
- summary?: string | undefined;
440
- description?: string | undefined;
441
- value?: any;
442
- externalValue?: string | undefined;
443
- } & {
444
- [x: `x-${string}`]: unknown;
445
- }) | ({
446
- summary?: string | undefined;
447
- description?: string | undefined;
448
- $ref: string;
449
- } & {
450
- $status?: "loading" | "error" | undefined;
451
- $global?: boolean | undefined;
452
- } & {
453
- [x: `x-${string}`]: unknown;
454
- });
455
- } | undefined;
456
473
  example: any;
457
474
  }) | ({
458
475
  description?: string | undefined;
@@ -499,40 +516,28 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
499
516
  } & {
500
517
  [x: `x-${string}`]: unknown;
501
518
  } & {
502
- style?: string | undefined;
503
- explode?: boolean | undefined;
504
- schema?: ({
505
- discriminator?: ({
506
- mapping?: {
507
- [x: string]: string;
508
- } | undefined;
509
- propertyName: string;
510
- } & {
511
- [x: `x-${string}`]: unknown;
512
- }) | undefined;
513
- xml?: ({
514
- name?: string | undefined;
515
- namespace?: string | undefined;
516
- prefix?: string | undefined;
517
- attribute?: boolean | undefined;
518
- wrapped?: boolean | undefined;
519
- } & {
520
- [x: `x-${string}`]: unknown;
521
- }) | undefined;
522
- externalDocs?: ({
519
+ examples?: {
520
+ [x: string]: ({
521
+ summary?: string | undefined;
523
522
  description?: string | undefined;
524
- url: string;
523
+ value?: any;
524
+ externalValue?: string | undefined;
525
525
  } & {
526
526
  [x: `x-${string}`]: unknown;
527
- }) | undefined;
528
- example?: any;
529
- } & {
530
- [x: `x-${string}`]: unknown;
531
- } & {
532
- 'x-tags'?: string[] | undefined;
533
- } & {
534
- [x: string]: unknown;
535
- }) | ({
527
+ }) | ({
528
+ summary?: string | undefined;
529
+ description?: string | undefined;
530
+ $ref: string;
531
+ } & {
532
+ $status?: "loading" | "error" | undefined;
533
+ $global?: boolean | undefined;
534
+ } & {
535
+ [x: `x-${string}`]: unknown;
536
+ });
537
+ } | undefined;
538
+ style?: string | undefined;
539
+ explode?: boolean | undefined;
540
+ schema?: ({
536
541
  summary?: string | undefined;
537
542
  description?: string | undefined;
538
543
  $ref: string;
@@ -541,26 +546,39 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
541
546
  $global?: boolean | undefined;
542
547
  } & {
543
548
  [x: `x-${string}`]: unknown;
544
- }) | undefined;
545
- examples?: {
546
- [x: string]: ({
547
- summary?: string | undefined;
548
- description?: string | undefined;
549
- $ref: string;
549
+ }) | ({
550
+ discriminator?: ({
551
+ mapping?: {
552
+ [x: string]: string;
553
+ } | undefined;
554
+ propertyName: string;
550
555
  } & {
551
- $status?: "loading" | "error" | undefined;
552
- $global?: boolean | undefined;
556
+ [x: `x-${string}`]: unknown;
557
+ }) | undefined;
558
+ xml?: ({
559
+ name?: string | undefined;
560
+ namespace?: string | undefined;
561
+ prefix?: string | undefined;
562
+ attribute?: boolean | undefined;
563
+ wrapped?: boolean | undefined;
553
564
  } & {
554
565
  [x: `x-${string}`]: unknown;
555
- }) | ({
556
- summary?: string | undefined;
566
+ }) | undefined;
567
+ externalDocs?: ({
557
568
  description?: string | undefined;
558
- value?: any;
559
- externalValue?: string | undefined;
569
+ url: string;
560
570
  } & {
561
571
  [x: `x-${string}`]: unknown;
562
- });
563
- } | undefined;
572
+ }) | undefined;
573
+ example?: any;
574
+ examples?: unknown[] | undefined;
575
+ } & {
576
+ [x: `x-${string}`]: unknown;
577
+ } & {
578
+ 'x-tags'?: string[] | undefined;
579
+ } & {
580
+ [x: string]: unknown;
581
+ }) | undefined;
564
582
  example: any;
565
583
  }) | ({
566
584
  description?: string | undefined;
@@ -572,6 +590,25 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
572
590
  content?: {
573
591
  [x: string]: {
574
592
  example?: any;
593
+ examples?: {
594
+ [x: string]: ({
595
+ summary?: string | undefined;
596
+ description?: string | undefined;
597
+ value?: any;
598
+ externalValue?: string | undefined;
599
+ } & {
600
+ [x: `x-${string}`]: unknown;
601
+ }) | ({
602
+ summary?: string | undefined;
603
+ description?: string | undefined;
604
+ $ref: string;
605
+ } & {
606
+ $status?: "loading" | "error" | undefined;
607
+ $global?: boolean | undefined;
608
+ } & {
609
+ [x: `x-${string}`]: unknown;
610
+ });
611
+ } | undefined;
575
612
  schema?: ({
576
613
  discriminator?: ({
577
614
  mapping?: {
@@ -597,6 +634,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
597
634
  [x: `x-${string}`]: unknown;
598
635
  }) | undefined;
599
636
  example?: any;
637
+ examples?: unknown[] | undefined;
600
638
  } & {
601
639
  [x: `x-${string}`]: unknown;
602
640
  } & {
@@ -604,25 +642,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
604
642
  } & {
605
643
  [x: string]: unknown;
606
644
  }) | undefined;
607
- examples?: {
608
- [x: string]: ({
609
- summary?: string | undefined;
610
- description?: string | undefined;
611
- $ref: string;
612
- } & {
613
- $status?: "loading" | "error" | undefined;
614
- $global?: boolean | undefined;
615
- } & {
616
- [x: `x-${string}`]: unknown;
617
- }) | ({
618
- summary?: string | undefined;
619
- description?: string | undefined;
620
- value?: any;
621
- externalValue?: string | undefined;
622
- } & {
623
- [x: `x-${string}`]: unknown;
624
- });
625
- } | undefined;
626
645
  encoding?: {
627
646
  [x: string]: {
628
647
  contentType?: string | undefined;
@@ -634,9 +653,37 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
634
653
  } & {
635
654
  [x: `x-${string}`]: unknown;
636
655
  } & {
656
+ examples?: {
657
+ [x: string]: ({
658
+ summary?: string | undefined;
659
+ description?: string | undefined;
660
+ value?: any;
661
+ externalValue?: string | undefined;
662
+ } & {
663
+ [x: `x-${string}`]: unknown;
664
+ }) | ({
665
+ summary?: string | undefined;
666
+ description?: string | undefined;
667
+ $ref: string;
668
+ } & {
669
+ $status?: "loading" | "error" | undefined;
670
+ $global?: boolean | undefined;
671
+ } & {
672
+ [x: `x-${string}`]: unknown;
673
+ });
674
+ } | undefined;
637
675
  style?: string | undefined;
638
676
  explode?: boolean | undefined;
639
677
  schema?: ({
678
+ summary?: string | undefined;
679
+ description?: string | undefined;
680
+ $ref: string;
681
+ } & {
682
+ $status?: "loading" | "error" | undefined;
683
+ $global?: boolean | undefined;
684
+ } & {
685
+ [x: `x-${string}`]: unknown;
686
+ }) | ({
640
687
  discriminator?: ({
641
688
  mapping?: {
642
689
  [x: string]: string;
@@ -661,41 +708,14 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
661
708
  [x: `x-${string}`]: unknown;
662
709
  }) | undefined;
663
710
  example?: any;
711
+ examples?: unknown[] | undefined;
664
712
  } & {
665
713
  [x: `x-${string}`]: unknown;
666
714
  } & {
667
715
  'x-tags'?: string[] | undefined;
668
716
  } & {
669
717
  [x: string]: unknown;
670
- }) | ({
671
- summary?: string | undefined;
672
- description?: string | undefined;
673
- $ref: string;
674
- } & {
675
- $status?: "loading" | "error" | undefined;
676
- $global?: boolean | undefined;
677
- } & {
678
- [x: `x-${string}`]: unknown;
679
718
  }) | undefined;
680
- examples?: {
681
- [x: string]: ({
682
- summary?: string | undefined;
683
- description?: string | undefined;
684
- $ref: string;
685
- } & {
686
- $status?: "loading" | "error" | undefined;
687
- $global?: boolean | undefined;
688
- } & {
689
- [x: `x-${string}`]: unknown;
690
- }) | ({
691
- summary?: string | undefined;
692
- description?: string | undefined;
693
- value?: any;
694
- externalValue?: string | undefined;
695
- } & {
696
- [x: `x-${string}`]: unknown;
697
- });
698
- } | undefined;
699
719
  example: any;
700
720
  }) | ({
701
721
  description?: string | undefined;
@@ -736,6 +756,25 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
736
756
  content?: {
737
757
  [x: string]: {
738
758
  example?: any;
759
+ examples?: {
760
+ [x: string]: ({
761
+ summary?: string | undefined;
762
+ description?: string | undefined;
763
+ value?: any;
764
+ externalValue?: string | undefined;
765
+ } & {
766
+ [x: `x-${string}`]: unknown;
767
+ }) | ({
768
+ summary?: string | undefined;
769
+ description?: string | undefined;
770
+ $ref: string;
771
+ } & {
772
+ $status?: "loading" | "error" | undefined;
773
+ $global?: boolean | undefined;
774
+ } & {
775
+ [x: `x-${string}`]: unknown;
776
+ });
777
+ } | undefined;
739
778
  schema?: ({
740
779
  discriminator?: ({
741
780
  mapping?: {
@@ -761,6 +800,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
761
800
  [x: `x-${string}`]: unknown;
762
801
  }) | undefined;
763
802
  example?: any;
803
+ examples?: unknown[] | undefined;
764
804
  } & {
765
805
  [x: `x-${string}`]: unknown;
766
806
  } & {
@@ -768,25 +808,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
768
808
  } & {
769
809
  [x: string]: unknown;
770
810
  }) | undefined;
771
- examples?: {
772
- [x: string]: ({
773
- summary?: string | undefined;
774
- description?: string | undefined;
775
- value?: any;
776
- externalValue?: string | undefined;
777
- } & {
778
- [x: `x-${string}`]: unknown;
779
- }) | ({
780
- summary?: string | undefined;
781
- description?: string | undefined;
782
- $ref: string;
783
- } & {
784
- $status?: "loading" | "error" | undefined;
785
- $global?: boolean | undefined;
786
- } & {
787
- [x: `x-${string}`]: unknown;
788
- });
789
- } | undefined;
790
811
  encoding?: {
791
812
  [x: string]: {
792
813
  contentType?: string | undefined;
@@ -807,9 +828,37 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
807
828
  } & {
808
829
  [x: `x-${string}`]: unknown;
809
830
  } & {
831
+ examples?: {
832
+ [x: string]: ({
833
+ summary?: string | undefined;
834
+ description?: string | undefined;
835
+ value?: any;
836
+ externalValue?: string | undefined;
837
+ } & {
838
+ [x: `x-${string}`]: unknown;
839
+ }) | ({
840
+ summary?: string | undefined;
841
+ description?: string | undefined;
842
+ $ref: string;
843
+ } & {
844
+ $status?: "loading" | "error" | undefined;
845
+ $global?: boolean | undefined;
846
+ } & {
847
+ [x: `x-${string}`]: unknown;
848
+ });
849
+ } | undefined;
810
850
  style?: string | undefined;
811
851
  explode?: boolean | undefined;
812
852
  schema?: ({
853
+ summary?: string | undefined;
854
+ description?: string | undefined;
855
+ $ref: string;
856
+ } & {
857
+ $status?: "loading" | "error" | undefined;
858
+ $global?: boolean | undefined;
859
+ } & {
860
+ [x: `x-${string}`]: unknown;
861
+ }) | ({
813
862
  discriminator?: ({
814
863
  mapping?: {
815
864
  [x: string]: string;
@@ -834,41 +883,14 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
834
883
  [x: `x-${string}`]: unknown;
835
884
  }) | undefined;
836
885
  example?: any;
886
+ examples?: unknown[] | undefined;
837
887
  } & {
838
888
  [x: `x-${string}`]: unknown;
839
889
  } & {
840
890
  'x-tags'?: string[] | undefined;
841
891
  } & {
842
892
  [x: string]: unknown;
843
- }) | ({
844
- summary?: string | undefined;
845
- description?: string | undefined;
846
- $ref: string;
847
- } & {
848
- $status?: "loading" | "error" | undefined;
849
- $global?: boolean | undefined;
850
- } & {
851
- [x: `x-${string}`]: unknown;
852
893
  }) | undefined;
853
- examples?: {
854
- [x: string]: ({
855
- summary?: string | undefined;
856
- description?: string | undefined;
857
- value?: any;
858
- externalValue?: string | undefined;
859
- } & {
860
- [x: `x-${string}`]: unknown;
861
- }) | ({
862
- summary?: string | undefined;
863
- description?: string | undefined;
864
- $ref: string;
865
- } & {
866
- $status?: "loading" | "error" | undefined;
867
- $global?: boolean | undefined;
868
- } & {
869
- [x: `x-${string}`]: unknown;
870
- });
871
- } | undefined;
872
894
  example: any;
873
895
  }) | ({
874
896
  description?: string | undefined;
@@ -986,15 +1008,34 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
986
1008
  deprecated?: boolean | undefined;
987
1009
  allowEmptyValue?: boolean | undefined;
988
1010
  name: string;
989
- in: string;
1011
+ in: "query" | "header" | "path" | "cookie";
990
1012
  } & {
991
1013
  [x: `x-${string}`]: unknown;
992
1014
  } & {
993
- style?: string | undefined;
994
- explode?: boolean | undefined;
995
- schema?: ({
996
- summary?: string | undefined;
997
- description?: string | undefined;
1015
+ examples?: {
1016
+ [x: string]: ({
1017
+ summary?: string | undefined;
1018
+ description?: string | undefined;
1019
+ $ref: string;
1020
+ } & {
1021
+ $status?: "loading" | "error" | undefined;
1022
+ $global?: boolean | undefined;
1023
+ } & {
1024
+ [x: `x-${string}`]: unknown;
1025
+ }) | ({
1026
+ summary?: string | undefined;
1027
+ description?: string | undefined;
1028
+ value?: any;
1029
+ externalValue?: string | undefined;
1030
+ } & {
1031
+ [x: `x-${string}`]: unknown;
1032
+ });
1033
+ } | undefined;
1034
+ style?: string | undefined;
1035
+ explode?: boolean | undefined;
1036
+ schema?: ({
1037
+ summary?: string | undefined;
1038
+ description?: string | undefined;
998
1039
  $ref: string;
999
1040
  } & {
1000
1041
  $status?: "loading" | "error" | undefined;
@@ -1026,6 +1067,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1026
1067
  [x: `x-${string}`]: unknown;
1027
1068
  }) | undefined;
1028
1069
  example?: any;
1070
+ examples?: unknown[] | undefined;
1029
1071
  } & {
1030
1072
  [x: `x-${string}`]: unknown;
1031
1073
  } & {
@@ -1033,25 +1075,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1033
1075
  } & {
1034
1076
  [x: string]: unknown;
1035
1077
  }) | undefined;
1036
- examples?: {
1037
- [x: string]: ({
1038
- summary?: string | undefined;
1039
- description?: string | undefined;
1040
- $ref: string;
1041
- } & {
1042
- $status?: "loading" | "error" | undefined;
1043
- $global?: boolean | undefined;
1044
- } & {
1045
- [x: `x-${string}`]: unknown;
1046
- }) | ({
1047
- summary?: string | undefined;
1048
- description?: string | undefined;
1049
- value?: any;
1050
- externalValue?: string | undefined;
1051
- } & {
1052
- [x: `x-${string}`]: unknown;
1053
- });
1054
- } | undefined;
1055
1078
  example: any;
1056
1079
  }) | ({
1057
1080
  description?: string | undefined;
@@ -1059,13 +1082,32 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1059
1082
  deprecated?: boolean | undefined;
1060
1083
  allowEmptyValue?: boolean | undefined;
1061
1084
  name: string;
1062
- in: string;
1085
+ in: "query" | "header" | "path" | "cookie";
1063
1086
  } & {
1064
1087
  [x: `x-${string}`]: unknown;
1065
1088
  } & {
1066
1089
  content?: {
1067
1090
  [x: string]: {
1068
1091
  example?: any;
1092
+ examples?: {
1093
+ [x: string]: ({
1094
+ summary?: string | undefined;
1095
+ description?: string | undefined;
1096
+ value?: any;
1097
+ externalValue?: string | undefined;
1098
+ } & {
1099
+ [x: `x-${string}`]: unknown;
1100
+ }) | ({
1101
+ summary?: string | undefined;
1102
+ description?: string | undefined;
1103
+ $ref: string;
1104
+ } & {
1105
+ $status?: "loading" | "error" | undefined;
1106
+ $global?: boolean | undefined;
1107
+ } & {
1108
+ [x: `x-${string}`]: unknown;
1109
+ });
1110
+ } | undefined;
1069
1111
  schema?: ({
1070
1112
  discriminator?: ({
1071
1113
  mapping?: {
@@ -1091,6 +1133,7 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1091
1133
  [x: `x-${string}`]: unknown;
1092
1134
  }) | undefined;
1093
1135
  example?: any;
1136
+ examples?: unknown[] | undefined;
1094
1137
  } & {
1095
1138
  [x: `x-${string}`]: unknown;
1096
1139
  } & {
@@ -1098,25 +1141,6 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1098
1141
  } & {
1099
1142
  [x: string]: unknown;
1100
1143
  }) | undefined;
1101
- examples?: {
1102
- [x: string]: ({
1103
- summary?: string | undefined;
1104
- description?: string | undefined;
1105
- value?: any;
1106
- externalValue?: string | undefined;
1107
- } & {
1108
- [x: `x-${string}`]: unknown;
1109
- }) | ({
1110
- summary?: string | undefined;
1111
- description?: string | undefined;
1112
- $ref: string;
1113
- } & {
1114
- $status?: "loading" | "error" | undefined;
1115
- $global?: boolean | undefined;
1116
- } & {
1117
- [x: `x-${string}`]: unknown;
1118
- });
1119
- } | undefined;
1120
1144
  encoding?: {
1121
1145
  [x: string]: {
1122
1146
  contentType?: string | undefined;
@@ -1137,9 +1161,37 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1137
1161
  } & {
1138
1162
  [x: `x-${string}`]: unknown;
1139
1163
  } & {
1164
+ examples?: {
1165
+ [x: string]: ({
1166
+ summary?: string | undefined;
1167
+ description?: string | undefined;
1168
+ value?: any;
1169
+ externalValue?: string | undefined;
1170
+ } & {
1171
+ [x: `x-${string}`]: unknown;
1172
+ }) | ({
1173
+ summary?: string | undefined;
1174
+ description?: string | undefined;
1175
+ $ref: string;
1176
+ } & {
1177
+ $status?: "loading" | "error" | undefined;
1178
+ $global?: boolean | undefined;
1179
+ } & {
1180
+ [x: `x-${string}`]: unknown;
1181
+ });
1182
+ } | undefined;
1140
1183
  style?: string | undefined;
1141
1184
  explode?: boolean | undefined;
1142
1185
  schema?: ({
1186
+ summary?: string | undefined;
1187
+ description?: string | undefined;
1188
+ $ref: string;
1189
+ } & {
1190
+ $status?: "loading" | "error" | undefined;
1191
+ $global?: boolean | undefined;
1192
+ } & {
1193
+ [x: `x-${string}`]: unknown;
1194
+ }) | ({
1143
1195
  discriminator?: ({
1144
1196
  mapping?: {
1145
1197
  [x: string]: string;
@@ -1164,41 +1216,14 @@ export declare function filterHttpMethodsOnly(paths: PathsObject): Record<string
1164
1216
  [x: `x-${string}`]: unknown;
1165
1217
  }) | undefined;
1166
1218
  example?: any;
1219
+ examples?: unknown[] | undefined;
1167
1220
  } & {
1168
1221
  [x: `x-${string}`]: unknown;
1169
1222
  } & {
1170
1223
  'x-tags'?: string[] | undefined;
1171
1224
  } & {
1172
1225
  [x: string]: unknown;
1173
- }) | ({
1174
- summary?: string | undefined;
1175
- description?: string | undefined;
1176
- $ref: string;
1177
- } & {
1178
- $status?: "loading" | "error" | undefined;
1179
- $global?: boolean | undefined;
1180
- } & {
1181
- [x: `x-${string}`]: unknown;
1182
1226
  }) | undefined;
1183
- examples?: {
1184
- [x: string]: ({
1185
- summary?: string | undefined;
1186
- description?: string | undefined;
1187
- value?: any;
1188
- externalValue?: string | undefined;
1189
- } & {
1190
- [x: `x-${string}`]: unknown;
1191
- }) | ({
1192
- summary?: string | undefined;
1193
- description?: string | undefined;
1194
- $ref: string;
1195
- } & {
1196
- $status?: "loading" | "error" | undefined;
1197
- $global?: boolean | undefined;
1198
- } & {
1199
- [x: `x-${string}`]: unknown;
1200
- });
1201
- } | undefined;
1202
1227
  example: any;
1203
1228
  }) | ({
1204
1229
  description?: string | undefined;
@@ -1364,10 +1389,29 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1364
1389
  deprecated?: boolean | undefined;
1365
1390
  allowEmptyValue?: boolean | undefined;
1366
1391
  name: string;
1367
- in: string;
1392
+ in: "query" | "header" | "path" | "cookie";
1368
1393
  } & {
1369
1394
  [x: `x-${string}`]: unknown;
1370
1395
  } & {
1396
+ examples?: {
1397
+ [x: string]: ({
1398
+ summary?: string | undefined;
1399
+ description?: string | undefined;
1400
+ $ref: string;
1401
+ } & {
1402
+ $status?: "loading" | "error" | undefined;
1403
+ $global?: boolean | undefined;
1404
+ } & {
1405
+ [x: `x-${string}`]: unknown;
1406
+ }) | ({
1407
+ summary?: string | undefined;
1408
+ description?: string | undefined;
1409
+ value?: any;
1410
+ externalValue?: string | undefined;
1411
+ } & {
1412
+ [x: `x-${string}`]: unknown;
1413
+ });
1414
+ } | undefined;
1371
1415
  style?: string | undefined;
1372
1416
  explode?: boolean | undefined;
1373
1417
  schema?: ({
@@ -1404,6 +1448,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1404
1448
  [x: `x-${string}`]: unknown;
1405
1449
  }) | undefined;
1406
1450
  example?: any;
1451
+ examples?: unknown[] | undefined;
1407
1452
  } & {
1408
1453
  [x: `x-${string}`]: unknown;
1409
1454
  } & {
@@ -1411,25 +1456,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1411
1456
  } & {
1412
1457
  [x: string]: unknown;
1413
1458
  }) | undefined;
1414
- examples?: {
1415
- [x: string]: ({
1416
- summary?: string | undefined;
1417
- description?: string | undefined;
1418
- $ref: string;
1419
- } & {
1420
- $status?: "loading" | "error" | undefined;
1421
- $global?: boolean | undefined;
1422
- } & {
1423
- [x: `x-${string}`]: unknown;
1424
- }) | ({
1425
- summary?: string | undefined;
1426
- description?: string | undefined;
1427
- value?: any;
1428
- externalValue?: string | undefined;
1429
- } & {
1430
- [x: `x-${string}`]: unknown;
1431
- });
1432
- } | undefined;
1433
1459
  example: any;
1434
1460
  }) | ({
1435
1461
  description?: string | undefined;
@@ -1437,13 +1463,32 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1437
1463
  deprecated?: boolean | undefined;
1438
1464
  allowEmptyValue?: boolean | undefined;
1439
1465
  name: string;
1440
- in: string;
1466
+ in: "query" | "header" | "path" | "cookie";
1441
1467
  } & {
1442
1468
  [x: `x-${string}`]: unknown;
1443
1469
  } & {
1444
1470
  content?: {
1445
1471
  [x: string]: {
1446
1472
  example?: any;
1473
+ examples?: {
1474
+ [x: string]: ({
1475
+ summary?: string | undefined;
1476
+ description?: string | undefined;
1477
+ value?: any;
1478
+ externalValue?: string | undefined;
1479
+ } & {
1480
+ [x: `x-${string}`]: unknown;
1481
+ }) | ({
1482
+ summary?: string | undefined;
1483
+ description?: string | undefined;
1484
+ $ref: string;
1485
+ } & {
1486
+ $status?: "loading" | "error" | undefined;
1487
+ $global?: boolean | undefined;
1488
+ } & {
1489
+ [x: `x-${string}`]: unknown;
1490
+ });
1491
+ } | undefined;
1447
1492
  schema?: ({
1448
1493
  discriminator?: ({
1449
1494
  mapping?: {
@@ -1469,6 +1514,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1469
1514
  [x: `x-${string}`]: unknown;
1470
1515
  }) | undefined;
1471
1516
  example?: any;
1517
+ examples?: unknown[] | undefined;
1472
1518
  } & {
1473
1519
  [x: `x-${string}`]: unknown;
1474
1520
  } & {
@@ -1476,25 +1522,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1476
1522
  } & {
1477
1523
  [x: string]: unknown;
1478
1524
  }) | undefined;
1479
- examples?: {
1480
- [x: string]: ({
1481
- summary?: string | undefined;
1482
- description?: string | undefined;
1483
- value?: any;
1484
- externalValue?: string | undefined;
1485
- } & {
1486
- [x: `x-${string}`]: unknown;
1487
- }) | ({
1488
- summary?: string | undefined;
1489
- description?: string | undefined;
1490
- $ref: string;
1491
- } & {
1492
- $status?: "loading" | "error" | undefined;
1493
- $global?: boolean | undefined;
1494
- } & {
1495
- [x: `x-${string}`]: unknown;
1496
- });
1497
- } | undefined;
1498
1525
  encoding?: {
1499
1526
  [x: string]: {
1500
1527
  contentType?: string | undefined;
@@ -1515,9 +1542,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1515
1542
  } & {
1516
1543
  [x: `x-${string}`]: unknown;
1517
1544
  } & {
1545
+ examples?: {
1546
+ [x: string]: ({
1547
+ summary?: string | undefined;
1548
+ description?: string | undefined;
1549
+ value?: any;
1550
+ externalValue?: string | undefined;
1551
+ } & {
1552
+ [x: `x-${string}`]: unknown;
1553
+ }) | ({
1554
+ summary?: string | undefined;
1555
+ description?: string | undefined;
1556
+ $ref: string;
1557
+ } & {
1558
+ $status?: "loading" | "error" | undefined;
1559
+ $global?: boolean | undefined;
1560
+ } & {
1561
+ [x: `x-${string}`]: unknown;
1562
+ });
1563
+ } | undefined;
1518
1564
  style?: string | undefined;
1519
1565
  explode?: boolean | undefined;
1520
1566
  schema?: ({
1567
+ summary?: string | undefined;
1568
+ description?: string | undefined;
1569
+ $ref: string;
1570
+ } & {
1571
+ $status?: "loading" | "error" | undefined;
1572
+ $global?: boolean | undefined;
1573
+ } & {
1574
+ [x: `x-${string}`]: unknown;
1575
+ }) | ({
1521
1576
  discriminator?: ({
1522
1577
  mapping?: {
1523
1578
  [x: string]: string;
@@ -1542,41 +1597,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1542
1597
  [x: `x-${string}`]: unknown;
1543
1598
  }) | undefined;
1544
1599
  example?: any;
1600
+ examples?: unknown[] | undefined;
1545
1601
  } & {
1546
1602
  [x: `x-${string}`]: unknown;
1547
1603
  } & {
1548
1604
  'x-tags'?: string[] | undefined;
1549
1605
  } & {
1550
1606
  [x: string]: unknown;
1551
- }) | ({
1552
- summary?: string | undefined;
1553
- description?: string | undefined;
1554
- $ref: string;
1555
- } & {
1556
- $status?: "loading" | "error" | undefined;
1557
- $global?: boolean | undefined;
1558
- } & {
1559
- [x: `x-${string}`]: unknown;
1560
1607
  }) | undefined;
1561
- examples?: {
1562
- [x: string]: ({
1563
- summary?: string | undefined;
1564
- description?: string | undefined;
1565
- value?: any;
1566
- externalValue?: string | undefined;
1567
- } & {
1568
- [x: `x-${string}`]: unknown;
1569
- }) | ({
1570
- summary?: string | undefined;
1571
- description?: string | undefined;
1572
- $ref: string;
1573
- } & {
1574
- $status?: "loading" | "error" | undefined;
1575
- $global?: boolean | undefined;
1576
- } & {
1577
- [x: `x-${string}`]: unknown;
1578
- });
1579
- } | undefined;
1580
1608
  example: any;
1581
1609
  }) | ({
1582
1610
  description?: string | undefined;
@@ -1616,6 +1644,25 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1616
1644
  content: {
1617
1645
  [x: string]: {
1618
1646
  example?: any;
1647
+ examples?: {
1648
+ [x: string]: ({
1649
+ summary?: string | undefined;
1650
+ description?: string | undefined;
1651
+ value?: any;
1652
+ externalValue?: string | undefined;
1653
+ } & {
1654
+ [x: `x-${string}`]: unknown;
1655
+ }) | ({
1656
+ summary?: string | undefined;
1657
+ description?: string | undefined;
1658
+ $ref: string;
1659
+ } & {
1660
+ $status?: "loading" | "error" | undefined;
1661
+ $global?: boolean | undefined;
1662
+ } & {
1663
+ [x: `x-${string}`]: unknown;
1664
+ });
1665
+ } | undefined;
1619
1666
  schema?: ({
1620
1667
  discriminator?: ({
1621
1668
  mapping?: {
@@ -1641,6 +1688,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1641
1688
  [x: `x-${string}`]: unknown;
1642
1689
  }) | undefined;
1643
1690
  example?: any;
1691
+ examples?: unknown[] | undefined;
1644
1692
  } & {
1645
1693
  [x: `x-${string}`]: unknown;
1646
1694
  } & {
@@ -1648,25 +1696,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1648
1696
  } & {
1649
1697
  [x: string]: unknown;
1650
1698
  }) | undefined;
1651
- examples?: {
1652
- [x: string]: ({
1653
- summary?: string | undefined;
1654
- description?: string | undefined;
1655
- value?: any;
1656
- externalValue?: string | undefined;
1657
- } & {
1658
- [x: `x-${string}`]: unknown;
1659
- }) | ({
1660
- summary?: string | undefined;
1661
- description?: string | undefined;
1662
- $ref: string;
1663
- } & {
1664
- $status?: "loading" | "error" | undefined;
1665
- $global?: boolean | undefined;
1666
- } & {
1667
- [x: `x-${string}`]: unknown;
1668
- });
1669
- } | undefined;
1670
1699
  encoding?: {
1671
1700
  [x: string]: {
1672
1701
  contentType?: string | undefined;
@@ -1687,9 +1716,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1687
1716
  } & {
1688
1717
  [x: `x-${string}`]: unknown;
1689
1718
  } & {
1719
+ examples?: {
1720
+ [x: string]: ({
1721
+ summary?: string | undefined;
1722
+ description?: string | undefined;
1723
+ value?: any;
1724
+ externalValue?: string | undefined;
1725
+ } & {
1726
+ [x: `x-${string}`]: unknown;
1727
+ }) | ({
1728
+ summary?: string | undefined;
1729
+ description?: string | undefined;
1730
+ $ref: string;
1731
+ } & {
1732
+ $status?: "loading" | "error" | undefined;
1733
+ $global?: boolean | undefined;
1734
+ } & {
1735
+ [x: `x-${string}`]: unknown;
1736
+ });
1737
+ } | undefined;
1690
1738
  style?: string | undefined;
1691
1739
  explode?: boolean | undefined;
1692
1740
  schema?: ({
1741
+ summary?: string | undefined;
1742
+ description?: string | undefined;
1743
+ $ref: string;
1744
+ } & {
1745
+ $status?: "loading" | "error" | undefined;
1746
+ $global?: boolean | undefined;
1747
+ } & {
1748
+ [x: `x-${string}`]: unknown;
1749
+ }) | ({
1693
1750
  discriminator?: ({
1694
1751
  mapping?: {
1695
1752
  [x: string]: string;
@@ -1714,41 +1771,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1714
1771
  [x: `x-${string}`]: unknown;
1715
1772
  }) | undefined;
1716
1773
  example?: any;
1774
+ examples?: unknown[] | undefined;
1717
1775
  } & {
1718
1776
  [x: `x-${string}`]: unknown;
1719
1777
  } & {
1720
1778
  'x-tags'?: string[] | undefined;
1721
1779
  } & {
1722
1780
  [x: string]: unknown;
1723
- }) | ({
1724
- summary?: string | undefined;
1725
- description?: string | undefined;
1726
- $ref: string;
1727
- } & {
1728
- $status?: "loading" | "error" | undefined;
1729
- $global?: boolean | undefined;
1730
- } & {
1731
- [x: `x-${string}`]: unknown;
1732
1781
  }) | undefined;
1733
- examples?: {
1734
- [x: string]: ({
1735
- summary?: string | undefined;
1736
- description?: string | undefined;
1737
- value?: any;
1738
- externalValue?: string | undefined;
1739
- } & {
1740
- [x: `x-${string}`]: unknown;
1741
- }) | ({
1742
- summary?: string | undefined;
1743
- description?: string | undefined;
1744
- $ref: string;
1745
- } & {
1746
- $status?: "loading" | "error" | undefined;
1747
- $global?: boolean | undefined;
1748
- } & {
1749
- [x: `x-${string}`]: unknown;
1750
- });
1751
- } | undefined;
1752
1782
  example: any;
1753
1783
  }) | ({
1754
1784
  description?: string | undefined;
@@ -1795,9 +1825,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1795
1825
  } & {
1796
1826
  [x: `x-${string}`]: unknown;
1797
1827
  } & {
1828
+ examples?: {
1829
+ [x: string]: ({
1830
+ summary?: string | undefined;
1831
+ description?: string | undefined;
1832
+ value?: any;
1833
+ externalValue?: string | undefined;
1834
+ } & {
1835
+ [x: `x-${string}`]: unknown;
1836
+ }) | ({
1837
+ summary?: string | undefined;
1838
+ description?: string | undefined;
1839
+ $ref: string;
1840
+ } & {
1841
+ $status?: "loading" | "error" | undefined;
1842
+ $global?: boolean | undefined;
1843
+ } & {
1844
+ [x: `x-${string}`]: unknown;
1845
+ });
1846
+ } | undefined;
1798
1847
  style?: string | undefined;
1799
1848
  explode?: boolean | undefined;
1800
1849
  schema?: ({
1850
+ summary?: string | undefined;
1851
+ description?: string | undefined;
1852
+ $ref: string;
1853
+ } & {
1854
+ $status?: "loading" | "error" | undefined;
1855
+ $global?: boolean | undefined;
1856
+ } & {
1857
+ [x: `x-${string}`]: unknown;
1858
+ }) | ({
1801
1859
  discriminator?: ({
1802
1860
  mapping?: {
1803
1861
  [x: string]: string;
@@ -1822,41 +1880,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1822
1880
  [x: `x-${string}`]: unknown;
1823
1881
  }) | undefined;
1824
1882
  example?: any;
1883
+ examples?: unknown[] | undefined;
1825
1884
  } & {
1826
1885
  [x: `x-${string}`]: unknown;
1827
1886
  } & {
1828
1887
  'x-tags'?: string[] | undefined;
1829
1888
  } & {
1830
1889
  [x: string]: unknown;
1831
- }) | ({
1832
- summary?: string | undefined;
1833
- description?: string | undefined;
1834
- $ref: string;
1835
- } & {
1836
- $status?: "loading" | "error" | undefined;
1837
- $global?: boolean | undefined;
1838
- } & {
1839
- [x: `x-${string}`]: unknown;
1840
1890
  }) | undefined;
1841
- examples?: {
1842
- [x: string]: ({
1843
- summary?: string | undefined;
1844
- description?: string | undefined;
1845
- $ref: string;
1846
- } & {
1847
- $status?: "loading" | "error" | undefined;
1848
- $global?: boolean | undefined;
1849
- } & {
1850
- [x: `x-${string}`]: unknown;
1851
- }) | ({
1852
- summary?: string | undefined;
1853
- description?: string | undefined;
1854
- value?: any;
1855
- externalValue?: string | undefined;
1856
- } & {
1857
- [x: `x-${string}`]: unknown;
1858
- });
1859
- } | undefined;
1860
1891
  example: any;
1861
1892
  }) | ({
1862
1893
  description?: string | undefined;
@@ -1868,6 +1899,25 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1868
1899
  content?: {
1869
1900
  [x: string]: {
1870
1901
  example?: any;
1902
+ examples?: {
1903
+ [x: string]: ({
1904
+ summary?: string | undefined;
1905
+ description?: string | undefined;
1906
+ value?: any;
1907
+ externalValue?: string | undefined;
1908
+ } & {
1909
+ [x: `x-${string}`]: unknown;
1910
+ }) | ({
1911
+ summary?: string | undefined;
1912
+ description?: string | undefined;
1913
+ $ref: string;
1914
+ } & {
1915
+ $status?: "loading" | "error" | undefined;
1916
+ $global?: boolean | undefined;
1917
+ } & {
1918
+ [x: `x-${string}`]: unknown;
1919
+ });
1920
+ } | undefined;
1871
1921
  schema?: ({
1872
1922
  discriminator?: ({
1873
1923
  mapping?: {
@@ -1893,6 +1943,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1893
1943
  [x: `x-${string}`]: unknown;
1894
1944
  }) | undefined;
1895
1945
  example?: any;
1946
+ examples?: unknown[] | undefined;
1896
1947
  } & {
1897
1948
  [x: `x-${string}`]: unknown;
1898
1949
  } & {
@@ -1900,25 +1951,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1900
1951
  } & {
1901
1952
  [x: string]: unknown;
1902
1953
  }) | undefined;
1903
- examples?: {
1904
- [x: string]: ({
1905
- summary?: string | undefined;
1906
- description?: string | undefined;
1907
- $ref: string;
1908
- } & {
1909
- $status?: "loading" | "error" | undefined;
1910
- $global?: boolean | undefined;
1911
- } & {
1912
- [x: `x-${string}`]: unknown;
1913
- }) | ({
1914
- summary?: string | undefined;
1915
- description?: string | undefined;
1916
- value?: any;
1917
- externalValue?: string | undefined;
1918
- } & {
1919
- [x: `x-${string}`]: unknown;
1920
- });
1921
- } | undefined;
1922
1954
  encoding?: {
1923
1955
  [x: string]: {
1924
1956
  contentType?: string | undefined;
@@ -1930,9 +1962,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1930
1962
  } & {
1931
1963
  [x: `x-${string}`]: unknown;
1932
1964
  } & {
1965
+ examples?: {
1966
+ [x: string]: ({
1967
+ summary?: string | undefined;
1968
+ description?: string | undefined;
1969
+ value?: any;
1970
+ externalValue?: string | undefined;
1971
+ } & {
1972
+ [x: `x-${string}`]: unknown;
1973
+ }) | ({
1974
+ summary?: string | undefined;
1975
+ description?: string | undefined;
1976
+ $ref: string;
1977
+ } & {
1978
+ $status?: "loading" | "error" | undefined;
1979
+ $global?: boolean | undefined;
1980
+ } & {
1981
+ [x: `x-${string}`]: unknown;
1982
+ });
1983
+ } | undefined;
1933
1984
  style?: string | undefined;
1934
1985
  explode?: boolean | undefined;
1935
1986
  schema?: ({
1987
+ summary?: string | undefined;
1988
+ description?: string | undefined;
1989
+ $ref: string;
1990
+ } & {
1991
+ $status?: "loading" | "error" | undefined;
1992
+ $global?: boolean | undefined;
1993
+ } & {
1994
+ [x: `x-${string}`]: unknown;
1995
+ }) | ({
1936
1996
  discriminator?: ({
1937
1997
  mapping?: {
1938
1998
  [x: string]: string;
@@ -1957,41 +2017,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
1957
2017
  [x: `x-${string}`]: unknown;
1958
2018
  }) | undefined;
1959
2019
  example?: any;
2020
+ examples?: unknown[] | undefined;
1960
2021
  } & {
1961
2022
  [x: `x-${string}`]: unknown;
1962
2023
  } & {
1963
2024
  'x-tags'?: string[] | undefined;
1964
2025
  } & {
1965
2026
  [x: string]: unknown;
1966
- }) | ({
1967
- summary?: string | undefined;
1968
- description?: string | undefined;
1969
- $ref: string;
1970
- } & {
1971
- $status?: "loading" | "error" | undefined;
1972
- $global?: boolean | undefined;
1973
- } & {
1974
- [x: `x-${string}`]: unknown;
1975
2027
  }) | undefined;
1976
- examples?: {
1977
- [x: string]: ({
1978
- summary?: string | undefined;
1979
- description?: string | undefined;
1980
- $ref: string;
1981
- } & {
1982
- $status?: "loading" | "error" | undefined;
1983
- $global?: boolean | undefined;
1984
- } & {
1985
- [x: `x-${string}`]: unknown;
1986
- }) | ({
1987
- summary?: string | undefined;
1988
- description?: string | undefined;
1989
- value?: any;
1990
- externalValue?: string | undefined;
1991
- } & {
1992
- [x: `x-${string}`]: unknown;
1993
- });
1994
- } | undefined;
1995
2028
  example: any;
1996
2029
  }) | ({
1997
2030
  description?: string | undefined;
@@ -2032,6 +2065,25 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2032
2065
  content?: {
2033
2066
  [x: string]: {
2034
2067
  example?: any;
2068
+ examples?: {
2069
+ [x: string]: ({
2070
+ summary?: string | undefined;
2071
+ description?: string | undefined;
2072
+ value?: any;
2073
+ externalValue?: string | undefined;
2074
+ } & {
2075
+ [x: `x-${string}`]: unknown;
2076
+ }) | ({
2077
+ summary?: string | undefined;
2078
+ description?: string | undefined;
2079
+ $ref: string;
2080
+ } & {
2081
+ $status?: "loading" | "error" | undefined;
2082
+ $global?: boolean | undefined;
2083
+ } & {
2084
+ [x: `x-${string}`]: unknown;
2085
+ });
2086
+ } | undefined;
2035
2087
  schema?: ({
2036
2088
  discriminator?: ({
2037
2089
  mapping?: {
@@ -2057,6 +2109,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2057
2109
  [x: `x-${string}`]: unknown;
2058
2110
  }) | undefined;
2059
2111
  example?: any;
2112
+ examples?: unknown[] | undefined;
2060
2113
  } & {
2061
2114
  [x: `x-${string}`]: unknown;
2062
2115
  } & {
@@ -2064,25 +2117,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2064
2117
  } & {
2065
2118
  [x: string]: unknown;
2066
2119
  }) | undefined;
2067
- examples?: {
2068
- [x: string]: ({
2069
- summary?: string | undefined;
2070
- description?: string | undefined;
2071
- value?: any;
2072
- externalValue?: string | undefined;
2073
- } & {
2074
- [x: `x-${string}`]: unknown;
2075
- }) | ({
2076
- summary?: string | undefined;
2077
- description?: string | undefined;
2078
- $ref: string;
2079
- } & {
2080
- $status?: "loading" | "error" | undefined;
2081
- $global?: boolean | undefined;
2082
- } & {
2083
- [x: `x-${string}`]: unknown;
2084
- });
2085
- } | undefined;
2086
2120
  encoding?: {
2087
2121
  [x: string]: {
2088
2122
  contentType?: string | undefined;
@@ -2103,9 +2137,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2103
2137
  } & {
2104
2138
  [x: `x-${string}`]: unknown;
2105
2139
  } & {
2140
+ examples?: {
2141
+ [x: string]: ({
2142
+ summary?: string | undefined;
2143
+ description?: string | undefined;
2144
+ value?: any;
2145
+ externalValue?: string | undefined;
2146
+ } & {
2147
+ [x: `x-${string}`]: unknown;
2148
+ }) | ({
2149
+ summary?: string | undefined;
2150
+ description?: string | undefined;
2151
+ $ref: string;
2152
+ } & {
2153
+ $status?: "loading" | "error" | undefined;
2154
+ $global?: boolean | undefined;
2155
+ } & {
2156
+ [x: `x-${string}`]: unknown;
2157
+ });
2158
+ } | undefined;
2106
2159
  style?: string | undefined;
2107
2160
  explode?: boolean | undefined;
2108
2161
  schema?: ({
2162
+ summary?: string | undefined;
2163
+ description?: string | undefined;
2164
+ $ref: string;
2165
+ } & {
2166
+ $status?: "loading" | "error" | undefined;
2167
+ $global?: boolean | undefined;
2168
+ } & {
2169
+ [x: `x-${string}`]: unknown;
2170
+ }) | ({
2109
2171
  discriminator?: ({
2110
2172
  mapping?: {
2111
2173
  [x: string]: string;
@@ -2130,41 +2192,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2130
2192
  [x: `x-${string}`]: unknown;
2131
2193
  }) | undefined;
2132
2194
  example?: any;
2195
+ examples?: unknown[] | undefined;
2133
2196
  } & {
2134
2197
  [x: `x-${string}`]: unknown;
2135
2198
  } & {
2136
2199
  'x-tags'?: string[] | undefined;
2137
2200
  } & {
2138
2201
  [x: string]: unknown;
2139
- }) | ({
2140
- summary?: string | undefined;
2141
- description?: string | undefined;
2142
- $ref: string;
2143
- } & {
2144
- $status?: "loading" | "error" | undefined;
2145
- $global?: boolean | undefined;
2146
- } & {
2147
- [x: `x-${string}`]: unknown;
2148
2202
  }) | undefined;
2149
- examples?: {
2150
- [x: string]: ({
2151
- summary?: string | undefined;
2152
- description?: string | undefined;
2153
- value?: any;
2154
- externalValue?: string | undefined;
2155
- } & {
2156
- [x: `x-${string}`]: unknown;
2157
- }) | ({
2158
- summary?: string | undefined;
2159
- description?: string | undefined;
2160
- $ref: string;
2161
- } & {
2162
- $status?: "loading" | "error" | undefined;
2163
- $global?: boolean | undefined;
2164
- } & {
2165
- [x: `x-${string}`]: unknown;
2166
- });
2167
- } | undefined;
2168
2203
  example: any;
2169
2204
  }) | ({
2170
2205
  description?: string | undefined;
@@ -2282,10 +2317,29 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2282
2317
  deprecated?: boolean | undefined;
2283
2318
  allowEmptyValue?: boolean | undefined;
2284
2319
  name: string;
2285
- in: string;
2320
+ in: "query" | "header" | "path" | "cookie";
2286
2321
  } & {
2287
2322
  [x: `x-${string}`]: unknown;
2288
2323
  } & {
2324
+ examples?: {
2325
+ [x: string]: ({
2326
+ summary?: string | undefined;
2327
+ description?: string | undefined;
2328
+ $ref: string;
2329
+ } & {
2330
+ $status?: "loading" | "error" | undefined;
2331
+ $global?: boolean | undefined;
2332
+ } & {
2333
+ [x: `x-${string}`]: unknown;
2334
+ }) | ({
2335
+ summary?: string | undefined;
2336
+ description?: string | undefined;
2337
+ value?: any;
2338
+ externalValue?: string | undefined;
2339
+ } & {
2340
+ [x: `x-${string}`]: unknown;
2341
+ });
2342
+ } | undefined;
2289
2343
  style?: string | undefined;
2290
2344
  explode?: boolean | undefined;
2291
2345
  schema?: ({
@@ -2322,6 +2376,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2322
2376
  [x: `x-${string}`]: unknown;
2323
2377
  }) | undefined;
2324
2378
  example?: any;
2379
+ examples?: unknown[] | undefined;
2325
2380
  } & {
2326
2381
  [x: `x-${string}`]: unknown;
2327
2382
  } & {
@@ -2329,25 +2384,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2329
2384
  } & {
2330
2385
  [x: string]: unknown;
2331
2386
  }) | undefined;
2332
- examples?: {
2333
- [x: string]: ({
2334
- summary?: string | undefined;
2335
- description?: string | undefined;
2336
- $ref: string;
2337
- } & {
2338
- $status?: "loading" | "error" | undefined;
2339
- $global?: boolean | undefined;
2340
- } & {
2341
- [x: `x-${string}`]: unknown;
2342
- }) | ({
2343
- summary?: string | undefined;
2344
- description?: string | undefined;
2345
- value?: any;
2346
- externalValue?: string | undefined;
2347
- } & {
2348
- [x: `x-${string}`]: unknown;
2349
- });
2350
- } | undefined;
2351
2387
  example: any;
2352
2388
  }) | ({
2353
2389
  description?: string | undefined;
@@ -2355,13 +2391,32 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2355
2391
  deprecated?: boolean | undefined;
2356
2392
  allowEmptyValue?: boolean | undefined;
2357
2393
  name: string;
2358
- in: string;
2394
+ in: "query" | "header" | "path" | "cookie";
2359
2395
  } & {
2360
2396
  [x: `x-${string}`]: unknown;
2361
2397
  } & {
2362
2398
  content?: {
2363
2399
  [x: string]: {
2364
2400
  example?: any;
2401
+ examples?: {
2402
+ [x: string]: ({
2403
+ summary?: string | undefined;
2404
+ description?: string | undefined;
2405
+ value?: any;
2406
+ externalValue?: string | undefined;
2407
+ } & {
2408
+ [x: `x-${string}`]: unknown;
2409
+ }) | ({
2410
+ summary?: string | undefined;
2411
+ description?: string | undefined;
2412
+ $ref: string;
2413
+ } & {
2414
+ $status?: "loading" | "error" | undefined;
2415
+ $global?: boolean | undefined;
2416
+ } & {
2417
+ [x: `x-${string}`]: unknown;
2418
+ });
2419
+ } | undefined;
2365
2420
  schema?: ({
2366
2421
  discriminator?: ({
2367
2422
  mapping?: {
@@ -2387,6 +2442,7 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2387
2442
  [x: `x-${string}`]: unknown;
2388
2443
  }) | undefined;
2389
2444
  example?: any;
2445
+ examples?: unknown[] | undefined;
2390
2446
  } & {
2391
2447
  [x: `x-${string}`]: unknown;
2392
2448
  } & {
@@ -2394,25 +2450,6 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2394
2450
  } & {
2395
2451
  [x: string]: unknown;
2396
2452
  }) | undefined;
2397
- examples?: {
2398
- [x: string]: ({
2399
- summary?: string | undefined;
2400
- description?: string | undefined;
2401
- value?: any;
2402
- externalValue?: string | undefined;
2403
- } & {
2404
- [x: `x-${string}`]: unknown;
2405
- }) | ({
2406
- summary?: string | undefined;
2407
- description?: string | undefined;
2408
- $ref: string;
2409
- } & {
2410
- $status?: "loading" | "error" | undefined;
2411
- $global?: boolean | undefined;
2412
- } & {
2413
- [x: `x-${string}`]: unknown;
2414
- });
2415
- } | undefined;
2416
2453
  encoding?: {
2417
2454
  [x: string]: {
2418
2455
  contentType?: string | undefined;
@@ -2433,9 +2470,37 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2433
2470
  } & {
2434
2471
  [x: `x-${string}`]: unknown;
2435
2472
  } & {
2473
+ examples?: {
2474
+ [x: string]: ({
2475
+ summary?: string | undefined;
2476
+ description?: string | undefined;
2477
+ value?: any;
2478
+ externalValue?: string | undefined;
2479
+ } & {
2480
+ [x: `x-${string}`]: unknown;
2481
+ }) | ({
2482
+ summary?: string | undefined;
2483
+ description?: string | undefined;
2484
+ $ref: string;
2485
+ } & {
2486
+ $status?: "loading" | "error" | undefined;
2487
+ $global?: boolean | undefined;
2488
+ } & {
2489
+ [x: `x-${string}`]: unknown;
2490
+ });
2491
+ } | undefined;
2436
2492
  style?: string | undefined;
2437
2493
  explode?: boolean | undefined;
2438
2494
  schema?: ({
2495
+ summary?: string | undefined;
2496
+ description?: string | undefined;
2497
+ $ref: string;
2498
+ } & {
2499
+ $status?: "loading" | "error" | undefined;
2500
+ $global?: boolean | undefined;
2501
+ } & {
2502
+ [x: `x-${string}`]: unknown;
2503
+ }) | ({
2439
2504
  discriminator?: ({
2440
2505
  mapping?: {
2441
2506
  [x: string]: string;
@@ -2460,41 +2525,14 @@ export declare function escapePaths(paths: Record<string, Record<string, Operati
2460
2525
  [x: `x-${string}`]: unknown;
2461
2526
  }) | undefined;
2462
2527
  example?: any;
2528
+ examples?: unknown[] | undefined;
2463
2529
  } & {
2464
2530
  [x: `x-${string}`]: unknown;
2465
2531
  } & {
2466
2532
  'x-tags'?: string[] | undefined;
2467
2533
  } & {
2468
2534
  [x: string]: unknown;
2469
- }) | ({
2470
- summary?: string | undefined;
2471
- description?: string | undefined;
2472
- $ref: string;
2473
- } & {
2474
- $status?: "loading" | "error" | undefined;
2475
- $global?: boolean | undefined;
2476
- } & {
2477
- [x: `x-${string}`]: unknown;
2478
2535
  }) | undefined;
2479
- examples?: {
2480
- [x: string]: ({
2481
- summary?: string | undefined;
2482
- description?: string | undefined;
2483
- value?: any;
2484
- externalValue?: string | undefined;
2485
- } & {
2486
- [x: `x-${string}`]: unknown;
2487
- }) | ({
2488
- summary?: string | undefined;
2489
- description?: string | undefined;
2490
- $ref: string;
2491
- } & {
2492
- $status?: "loading" | "error" | undefined;
2493
- $global?: boolean | undefined;
2494
- } & {
2495
- [x: `x-${string}`]: unknown;
2496
- });
2497
- } | undefined;
2498
2536
  example: any;
2499
2537
  }) | ({
2500
2538
  description?: string | undefined;
@@ -2652,7 +2690,7 @@ export declare function externalizePathReferences(document: OpenApiDocument, met
2652
2690
  /**
2653
2691
  * Create server state workspace store
2654
2692
  */
2655
- export declare function createServerWorkspaceStore(workspaceProps: CreateServerWorkspaceStore): {
2693
+ export declare function createServerWorkspaceStore(workspaceProps: CreateServerWorkspaceStore): Promise<{
2656
2694
  /**
2657
2695
  * Generates workspace chunks by writing components and operations to the filesystem.
2658
2696
  *
@@ -2678,7 +2716,9 @@ export declare function createServerWorkspaceStore(workspaceProps: CreateServerW
2678
2716
  * @returns The complete workspace document
2679
2717
  */
2680
2718
  getWorkspace: () => {
2681
- documents: Record<string, Record<string, unknown>>;
2719
+ documents: Record<string, OpenApiDocument & {
2720
+ [extensions.document.navigation]: TraversedEntry[];
2721
+ }>;
2682
2722
  "x-scalar-dark-mode"?: boolean | undefined;
2683
2723
  "x-scalar-default-client"?: string | undefined;
2684
2724
  "x-scalar-active-document"?: string | undefined;
@@ -2704,20 +2744,16 @@ export declare function createServerWorkspaceStore(workspaceProps: CreateServerW
2704
2744
  */
2705
2745
  get: (pointer: string) => unknown;
2706
2746
  /**
2707
- * Adds a new document to the workspace.
2747
+ * Adds a new document to the workspace asynchronously.
2708
2748
  *
2709
- * The document will be:
2710
- * - Upgraded to OpenAPI 3.1 if needed
2711
- * - Split into components and operations chunks
2712
- * - Have its references externalized based on the workspace mode
2713
- * - Added to the workspace with its metadata
2749
+ * This function:
2750
+ * 1. Loads the document using the provided input
2751
+ * 2. Checks if the document loaded successfully
2752
+ * 3. If successful, adds the document to the workspace using addDocumentSync
2714
2753
  *
2715
- * @param document - The OpenAPI document to add
2716
- * @param meta - Document metadata including required name and optional settings
2754
+ * @param input - The document input containing the document source and metadata
2717
2755
  */
2718
- addDocument: (document: Record<string, unknown>, meta: {
2719
- name: string;
2720
- } & WorkspaceDocumentMeta) => void;
2721
- };
2756
+ addDocument: (input: WorkspaceDocumentInput) => Promise<void>;
2757
+ }>;
2722
2758
  export {};
2723
2759
  //# sourceMappingURL=server.d.ts.map