@jaredwray/mockhttp 1.9.0 → 2.0.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 (64) hide show
  1. package/README.md +29 -7
  2. package/dist/index.d.mts +90 -11
  3. package/dist/index.mjs +202 -240
  4. package/package.json +17 -13
  5. package/site/dist/api/index.html +17983 -0
  6. package/site/dist/api/swagger.json +5487 -0
  7. package/site/dist/changelog/index.html +767 -0
  8. package/site/dist/changelog/page/2/index.html +578 -0
  9. package/site/dist/changelog/v0-1-0/index.html +453 -0
  10. package/site/dist/changelog/v0-2-0/index.html +437 -0
  11. package/site/dist/changelog/v0-2-1/index.html +438 -0
  12. package/site/dist/changelog/v0-2-2/index.html +436 -0
  13. package/site/dist/changelog/v0-2-3/index.html +440 -0
  14. package/site/dist/changelog/v0-3-0/index.html +443 -0
  15. package/site/dist/changelog/v0-4-0/index.html +437 -0
  16. package/site/dist/changelog/v0-4-1/index.html +441 -0
  17. package/site/dist/changelog/v0-4-2/index.html +446 -0
  18. package/site/dist/changelog/v0-4-3/index.html +437 -0
  19. package/site/dist/changelog/v0-5-0/index.html +443 -0
  20. package/site/dist/changelog/v0-6-0/index.html +444 -0
  21. package/site/dist/changelog/v0-6-1/index.html +441 -0
  22. package/site/dist/changelog/v0-7-0/index.html +445 -0
  23. package/site/dist/changelog/v0-8-0/index.html +440 -0
  24. package/site/dist/changelog/v0-9-0/index.html +437 -0
  25. package/site/dist/changelog/v1-0-0/index.html +446 -0
  26. package/site/dist/changelog/v1-0-1/index.html +437 -0
  27. package/site/dist/changelog/v1-1-0/index.html +445 -0
  28. package/site/dist/changelog/v1-2-0/index.html +443 -0
  29. package/site/dist/changelog/v1-3-0/index.html +448 -0
  30. package/site/dist/changelog/v1-4-0/index.html +445 -0
  31. package/site/dist/changelog/v1-5-0/index.html +439 -0
  32. package/site/dist/changelog/v1-5-1/index.html +443 -0
  33. package/site/dist/changelog/v1-6-0/index.html +467 -0
  34. package/site/dist/changelog/v1-7-0/index.html +462 -0
  35. package/site/dist/changelog/v1-8-0/index.html +481 -0
  36. package/site/dist/changelog/v1-8-1/index.html +457 -0
  37. package/site/dist/changelog/v1-9-0/index.html +495 -0
  38. package/site/dist/changelog/v2-0-0/index.html +500 -0
  39. package/site/dist/changelog-latest.json +269 -0
  40. package/site/dist/changelog.json +399 -0
  41. package/site/dist/css/api.css +1113 -0
  42. package/site/dist/css/highlight/highlight.min.js +1433 -0
  43. package/site/dist/css/highlight/styles/base16/docula.css +123 -0
  44. package/site/dist/css/home.css +133 -0
  45. package/site/dist/css/styles.css +1227 -0
  46. package/site/dist/css/variables.css +32 -0
  47. package/site/dist/docs/bins/index.html +942 -0
  48. package/site/dist/docs/configuration/index.html +771 -0
  49. package/site/dist/docs/hosted/index.html +544 -0
  50. package/site/dist/docs/https/index.html +758 -0
  51. package/site/dist/docs/index.html +601 -0
  52. package/site/dist/docs/library/index.html +780 -0
  53. package/site/dist/docs/taps/index.html +708 -0
  54. package/site/dist/favicon.svg +14 -0
  55. package/site/dist/feed.xml +1 -0
  56. package/site/dist/index.html +601 -0
  57. package/site/dist/js/api.js +363 -0
  58. package/site/dist/js/search.js +436 -0
  59. package/site/dist/llms-full.txt +7415 -0
  60. package/site/dist/llms.txt +40 -0
  61. package/site/dist/logo.svg +21 -0
  62. package/site/dist/robots.txt +2 -0
  63. package/site/dist/search-index.json +1 -0
  64. package/site/dist/sitemap.xml +1 -0
@@ -0,0 +1,1113 @@
1
+ /* API Reference - Scalar-like styling */
2
+
3
+ .api-reference {
4
+ display: flex;
5
+ max-width: 1440px;
6
+ margin: 0 auto;
7
+ min-height: calc(100vh - 80px - 4rem);
8
+ }
9
+
10
+ /* Sidebar */
11
+ .api-sidebar {
12
+ width: 280px;
13
+ min-width: 280px;
14
+ padding: 20px 16px;
15
+ border-right: 1px solid var(--border);
16
+ position: sticky;
17
+ top: 81px;
18
+ height: calc(100vh - 81px);
19
+ overflow-y: auto;
20
+ scrollbar-width: thin;
21
+ scrollbar-color: var(--scrollbar) transparent;
22
+ }
23
+
24
+ .api-sidebar::-webkit-scrollbar {
25
+ width: 4px;
26
+ }
27
+
28
+ .api-sidebar::-webkit-scrollbar-thumb {
29
+ background: var(--scrollbar);
30
+ border-radius: 2px;
31
+ }
32
+
33
+ .api-search {
34
+ width: 100%;
35
+ padding: 8px 12px;
36
+ border: 1px solid var(--border);
37
+ border-radius: 6px;
38
+ background: var(--bg);
39
+ color: var(--fg);
40
+ font-size: 13px;
41
+ margin-bottom: 16px;
42
+ outline: none;
43
+ }
44
+
45
+ .api-search:focus {
46
+ border-color: var(--border-hover);
47
+ }
48
+
49
+ .api-search::placeholder {
50
+ color: var(--muted-fg);
51
+ }
52
+
53
+ .api-sidebar__spec-heading {
54
+ font-size: 13px;
55
+ font-weight: 700;
56
+ color: var(--fg);
57
+ padding: 10px 10px 4px;
58
+ margin-top: 8px;
59
+ border-top: 1px solid var(--border);
60
+ }
61
+
62
+ .api-sidebar__spec-heading:first-child {
63
+ margin-top: 0;
64
+ border-top: none;
65
+ }
66
+
67
+ .api-sidebar__group {
68
+ margin-bottom: 4px;
69
+ }
70
+
71
+ .api-sidebar__group-toggle {
72
+ width: 100%;
73
+ display: flex;
74
+ align-items: center;
75
+ justify-content: space-between;
76
+ padding: 6px 10px;
77
+ font-size: 12px;
78
+ font-weight: 700;
79
+ text-transform: uppercase;
80
+ letter-spacing: 0.4px;
81
+ color: var(--muted);
82
+ border-radius: 4px;
83
+ cursor: pointer;
84
+ }
85
+
86
+ .api-sidebar__group-toggle:hover {
87
+ background: var(--surface-hover);
88
+ }
89
+
90
+ .api-sidebar__group-toggle svg {
91
+ transition: transform 0.15s ease;
92
+ }
93
+
94
+ .api-sidebar__group--collapsed .api-sidebar__group-toggle svg {
95
+ transform: rotate(-90deg);
96
+ }
97
+
98
+ .api-sidebar__group--collapsed .api-sidebar__group-items {
99
+ display: none;
100
+ }
101
+
102
+ .api-sidebar__group-items {
103
+ padding: 4px 0 8px 12px;
104
+ margin-left: 10px;
105
+ border-left: 1px solid var(--border);
106
+ }
107
+
108
+ .api-sidebar__item {
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: space-between;
112
+ gap: 12px;
113
+ padding: 8px 10px;
114
+ font-size: 13px;
115
+ border-radius: 4px;
116
+ color: var(--muted-fg);
117
+ white-space: nowrap;
118
+ overflow: hidden;
119
+ text-overflow: ellipsis;
120
+ }
121
+
122
+ .api-sidebar__item:hover {
123
+ background: var(--surface-hover);
124
+ }
125
+
126
+ .api-sidebar__item--active {
127
+ background: var(--surface);
128
+ }
129
+
130
+ .api-sidebar__item-path {
131
+ min-width: 0;
132
+ overflow: hidden;
133
+ text-overflow: ellipsis;
134
+ color: var(--muted-fg);
135
+ }
136
+
137
+ .api-sidebar__item--active .api-sidebar__item-path {
138
+ color: var(--fg);
139
+ }
140
+
141
+ .api-sidebar__item .method-badge {
142
+ background: transparent;
143
+ padding: 0;
144
+ min-width: 0;
145
+ border-radius: 0;
146
+ font-size: 11px;
147
+ letter-spacing: 0.5px;
148
+ }
149
+
150
+ /* Method Badges */
151
+ .method-badge {
152
+ display: inline-flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ font-size: 10px;
156
+ font-weight: 700;
157
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
158
+ padding: 2px 6px;
159
+ border-radius: 4px;
160
+ min-width: 42px;
161
+ text-transform: uppercase;
162
+ flex-shrink: 0;
163
+ }
164
+
165
+ .method-badge--get {
166
+ background: rgba(34, 197, 94, 0.15);
167
+ color: #16a34a;
168
+ }
169
+
170
+ .method-badge--post {
171
+ background: rgba(59, 130, 246, 0.15);
172
+ color: #3b82f6;
173
+ }
174
+
175
+ .method-badge--put {
176
+ background: rgba(249, 115, 22, 0.15);
177
+ color: #ea580c;
178
+ }
179
+
180
+ .method-badge--delete {
181
+ background: rgba(239, 68, 68, 0.15);
182
+ color: #ef4444;
183
+ }
184
+
185
+ .method-badge--patch {
186
+ background: rgba(168, 85, 247, 0.15);
187
+ color: #a855f7;
188
+ }
189
+
190
+ .method-badge--head,
191
+ .method-badge--options {
192
+ background: rgba(107, 114, 128, 0.15);
193
+ color: #9ca3af;
194
+ }
195
+
196
+ [data-theme="light"] .method-badge--get {
197
+ background: rgba(34, 197, 94, 0.12);
198
+ color: #15803d;
199
+ }
200
+
201
+ [data-theme="light"] .method-badge--post {
202
+ background: rgba(59, 130, 246, 0.12);
203
+ color: #2563eb;
204
+ }
205
+
206
+ [data-theme="light"] .method-badge--put {
207
+ background: rgba(249, 115, 22, 0.12);
208
+ color: #c2410c;
209
+ }
210
+
211
+ [data-theme="light"] .method-badge--delete {
212
+ background: rgba(239, 68, 68, 0.12);
213
+ color: #dc2626;
214
+ }
215
+
216
+ [data-theme="light"] .method-badge--patch {
217
+ background: rgba(168, 85, 247, 0.12);
218
+ color: #7c3aed;
219
+ }
220
+
221
+ /* Main Content */
222
+ .api-content {
223
+ flex: 1;
224
+ min-width: 0;
225
+ padding: 32px;
226
+ }
227
+
228
+ /* API Info Section */
229
+ .api-info {
230
+ padding-bottom: 32px;
231
+ margin-bottom: 32px;
232
+ border-bottom: 1px solid var(--border);
233
+ }
234
+
235
+ .api-info__title {
236
+ font-size: 1.8em;
237
+ font-weight: 700;
238
+ margin-bottom: 8px;
239
+ }
240
+
241
+ .api-info__version {
242
+ display: inline-block;
243
+ font-size: 12px;
244
+ font-weight: 600;
245
+ padding: 2px 8px;
246
+ border-radius: 4px;
247
+ background: var(--surface);
248
+ color: var(--muted);
249
+ margin-bottom: 16px;
250
+ }
251
+
252
+ .api-info__description {
253
+ font-size: 15px;
254
+ line-height: 1.6;
255
+ color: var(--muted);
256
+ }
257
+
258
+ /* Markdown content inside descriptions */
259
+ .api-info__description a,
260
+ .api-group__description a,
261
+ .api-operation__description a {
262
+ color: var(--accent);
263
+ text-decoration: underline;
264
+ text-decoration-color: rgba(99, 102, 241, 0.4);
265
+ text-underline-offset: 2px;
266
+ }
267
+
268
+ .api-info__description a:hover,
269
+ .api-group__description a:hover,
270
+ .api-operation__description a:hover {
271
+ text-decoration-color: var(--accent);
272
+ }
273
+
274
+ .api-info__description code,
275
+ .api-group__description code,
276
+ .api-operation__description code {
277
+ font-family: monospace;
278
+ font-size: 0.9em;
279
+ padding: 2px 6px;
280
+ border-radius: 4px;
281
+ background: var(--surface);
282
+ }
283
+
284
+ .api-info__description h1,
285
+ .api-info__description h2,
286
+ .api-info__description h3 {
287
+ color: var(--text);
288
+ margin-top: 1.2em;
289
+ margin-bottom: 0.4em;
290
+ }
291
+
292
+ .api-info__description ul,
293
+ .api-info__description ol {
294
+ padding-left: 1.5em;
295
+ margin: 0.5em 0;
296
+ }
297
+
298
+ .api-info__description li {
299
+ margin: 0.25em 0;
300
+ }
301
+
302
+ .api-info__description p {
303
+ margin: 0.5em 0;
304
+ }
305
+
306
+ .api-info__description p:first-child {
307
+ margin-top: 0;
308
+ }
309
+
310
+ .api-info__description p:last-child {
311
+ margin-bottom: 0;
312
+ }
313
+
314
+ .api-info__servers {
315
+ margin-top: 16px;
316
+ }
317
+
318
+ .api-info__server-label {
319
+ font-size: 11px;
320
+ font-weight: 700;
321
+ text-transform: uppercase;
322
+ letter-spacing: 0.4px;
323
+ color: var(--muted);
324
+ margin-bottom: 6px;
325
+ }
326
+
327
+ .api-info__server-url {
328
+ display: inline-block;
329
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
330
+ font-size: 13px;
331
+ padding: 4px 10px;
332
+ border-radius: 4px;
333
+ background: var(--pre-bg);
334
+ color: var(--fg);
335
+ }
336
+
337
+ /* Auth */
338
+ .api-auth {
339
+ margin-top: 1rem;
340
+ display: flex;
341
+ align-items: center;
342
+ gap: 0.75rem;
343
+ flex-wrap: wrap;
344
+ }
345
+
346
+ .api-auth__label {
347
+ font-size: 0.75rem;
348
+ font-weight: 600;
349
+ text-transform: uppercase;
350
+ letter-spacing: 0.05em;
351
+ color: var(--fg-muted, #6b7280);
352
+ min-width: 90px;
353
+ }
354
+
355
+ .api-auth__controls {
356
+ display: flex;
357
+ gap: 0.5rem;
358
+ align-items: center;
359
+ flex-wrap: wrap;
360
+ }
361
+
362
+ .api-auth__type {
363
+ padding: 0.35rem 0.6rem;
364
+ border: 1px solid var(--border);
365
+ border-radius: 6px;
366
+ font-size: 0.85rem;
367
+ background: var(--bg);
368
+ color: var(--fg);
369
+ cursor: pointer;
370
+ }
371
+
372
+ .api-auth__value {
373
+ padding: 0.35rem 0.6rem;
374
+ border: 1px solid var(--border);
375
+ border-radius: 6px;
376
+ font-size: 0.85rem;
377
+ min-width: 220px;
378
+ background: var(--bg);
379
+ color: var(--fg);
380
+ }
381
+
382
+ .api-auth__value--hidden {
383
+ display: none;
384
+ }
385
+
386
+ .api-auth__cookie-status {
387
+ font-size: 0.8rem;
388
+ padding: 0.25rem 0.6rem;
389
+ border-radius: 6px;
390
+ }
391
+
392
+ .api-auth__cookie-status--hidden {
393
+ display: none;
394
+ }
395
+
396
+ .api-auth__cookie-status--ok {
397
+ color: #047857;
398
+ background: rgba(16, 185, 129, 0.15);
399
+ }
400
+
401
+ [data-theme="light"] .api-auth__cookie-status--ok {
402
+ color: #065f46;
403
+ background: rgba(16, 185, 129, 0.12);
404
+ }
405
+
406
+ .api-auth__cookie-status--warn {
407
+ color: #fbbf24;
408
+ background: rgba(251, 191, 36, 0.15);
409
+ }
410
+
411
+ [data-theme="light"] .api-auth__cookie-status--warn {
412
+ color: #92400e;
413
+ background: rgba(251, 191, 36, 0.12);
414
+ }
415
+
416
+ /* Tag Group */
417
+ .api-group {
418
+ margin-bottom: 40px;
419
+ }
420
+
421
+ .api-group__header {
422
+ margin-bottom: 20px;
423
+ }
424
+
425
+ .api-group__title {
426
+ font-size: 1.3em;
427
+ font-weight: 700;
428
+ margin-bottom: 4px;
429
+ }
430
+
431
+ .api-group__description {
432
+ font-size: 14px;
433
+ color: var(--muted);
434
+ line-height: 1.5;
435
+ }
436
+
437
+ /* Operation */
438
+ .api-operation {
439
+ border: 1px solid var(--border);
440
+ border-radius: 8px;
441
+ margin-bottom: 16px;
442
+ overflow: hidden;
443
+ }
444
+
445
+ .api-operation__header {
446
+ display: flex;
447
+ align-items: center;
448
+ gap: 12px;
449
+ padding: 14px 16px;
450
+ cursor: pointer;
451
+ user-select: none;
452
+ }
453
+
454
+ .api-operation__header:hover {
455
+ background: var(--surface-hover);
456
+ }
457
+
458
+ .api-operation__path {
459
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
460
+ font-size: 14px;
461
+ font-weight: 500;
462
+ }
463
+
464
+ .api-operation__summary {
465
+ font-size: 13px;
466
+ color: var(--muted);
467
+ margin-left: auto;
468
+ white-space: nowrap;
469
+ overflow: hidden;
470
+ text-overflow: ellipsis;
471
+ }
472
+
473
+ .api-operation__toggle-icon {
474
+ flex-shrink: 0;
475
+ transition: transform 0.15s ease;
476
+ color: var(--muted-fg);
477
+ }
478
+
479
+ .api-operation--collapsed .api-operation__toggle-icon {
480
+ transform: rotate(-90deg);
481
+ }
482
+
483
+ .api-operation--collapsed .api-operation__body {
484
+ display: none;
485
+ }
486
+
487
+ .api-operation__body {
488
+ display: flex;
489
+ border-top: 1px solid var(--border);
490
+ padding: 0;
491
+ }
492
+
493
+ .api-operation__docs {
494
+ flex: 1;
495
+ min-width: 0;
496
+ padding: 20px;
497
+ }
498
+
499
+ .api-operation__description {
500
+ font-size: 14px;
501
+ line-height: 1.6;
502
+ margin-bottom: 20px;
503
+ color: var(--muted);
504
+ }
505
+
506
+ /* Parameters */
507
+ .api-section-title {
508
+ font-size: 12px;
509
+ font-weight: 700;
510
+ text-transform: uppercase;
511
+ letter-spacing: 0.4px;
512
+ color: var(--muted);
513
+ margin-bottom: 10px;
514
+ }
515
+
516
+ .api-params-table {
517
+ width: 100%;
518
+ border-collapse: collapse;
519
+ margin-bottom: 20px;
520
+ font-size: 13px;
521
+ }
522
+
523
+ .api-params-table th {
524
+ text-align: left;
525
+ font-weight: 600;
526
+ padding: 8px 12px;
527
+ border-bottom: 1px solid var(--border-strong);
528
+ font-size: 11px;
529
+ text-transform: uppercase;
530
+ letter-spacing: 0.3px;
531
+ color: var(--muted);
532
+ background: none;
533
+ }
534
+
535
+ .api-params-table td {
536
+ padding: 8px 12px;
537
+ border-bottom: 1px solid var(--border);
538
+ vertical-align: top;
539
+ }
540
+
541
+ .api-param-name {
542
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
543
+ font-weight: 600;
544
+ font-size: 13px;
545
+ }
546
+
547
+ .api-param-required {
548
+ color: #ef4444;
549
+ font-size: 11px;
550
+ margin-left: 4px;
551
+ }
552
+
553
+ .api-param-type {
554
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
555
+ font-size: 12px;
556
+ color: var(--muted);
557
+ }
558
+
559
+ .api-param-in {
560
+ font-size: 11px;
561
+ color: var(--muted-fg);
562
+ padding: 1px 6px;
563
+ background: var(--surface);
564
+ border-radius: 3px;
565
+ }
566
+
567
+ .api-param-desc {
568
+ color: var(--muted);
569
+ font-size: 13px;
570
+ }
571
+
572
+ .api-param-enum {
573
+ font-size: 11px;
574
+ color: var(--muted-fg);
575
+ margin-top: 4px;
576
+ }
577
+
578
+ .api-param-enum code {
579
+ font-size: 11px;
580
+ margin: 0 2px;
581
+ }
582
+
583
+ /* Schema Properties */
584
+ .api-schema {
585
+ margin-bottom: 20px;
586
+ }
587
+
588
+ .api-schema-props {
589
+ border: 1px solid var(--border);
590
+ border-radius: 6px;
591
+ overflow: hidden;
592
+ }
593
+
594
+ .api-schema-prop {
595
+ display: flex;
596
+ gap: 12px;
597
+ padding: 8px 12px;
598
+ font-size: 13px;
599
+ border-bottom: 1px solid var(--border);
600
+ align-items: baseline;
601
+ }
602
+
603
+ .api-schema-prop:last-child {
604
+ border-bottom: none;
605
+ }
606
+
607
+ .api-schema-prop-name {
608
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
609
+ font-weight: 600;
610
+ min-width: 120px;
611
+ }
612
+
613
+ .api-schema-prop-type {
614
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
615
+ font-size: 12px;
616
+ color: var(--muted);
617
+ min-width: 80px;
618
+ }
619
+
620
+ .api-schema-prop-desc {
621
+ color: var(--muted);
622
+ flex: 1;
623
+ }
624
+
625
+ /* Code Examples */
626
+ .api-code-examples {
627
+ margin-top: 20px;
628
+ }
629
+
630
+ .api-code-tabs {
631
+ display: flex;
632
+ gap: 0;
633
+ border-bottom: 1px solid var(--border);
634
+ margin-bottom: 0;
635
+ }
636
+
637
+ .api-code-tab {
638
+ padding: 8px 16px;
639
+ font-size: 12px;
640
+ font-weight: 600;
641
+ color: var(--muted);
642
+ border-bottom: 2px solid transparent;
643
+ cursor: pointer;
644
+ background: none;
645
+ border-top: none;
646
+ border-left: none;
647
+ border-right: none;
648
+ }
649
+
650
+ .api-code-tab:hover {
651
+ color: var(--fg);
652
+ }
653
+
654
+ .api-code-tab--active {
655
+ color: var(--fg);
656
+ border-bottom-color: var(--fg);
657
+ }
658
+
659
+ .api-code-panel {
660
+ display: none;
661
+ position: relative;
662
+ }
663
+
664
+ .api-code-panel--active {
665
+ display: block;
666
+ }
667
+
668
+ .api-code-panel pre {
669
+ background: var(--pre-bg);
670
+ border-radius: 0 0 6px 6px;
671
+ padding: 16px;
672
+ margin: 0;
673
+ overflow-x: auto;
674
+ }
675
+
676
+ .api-code-panel pre code {
677
+ background: none;
678
+ padding: 0;
679
+ font-size: 13px;
680
+ line-height: 1.5;
681
+ color: var(--fg);
682
+ }
683
+
684
+ .api-copy-btn {
685
+ position: absolute;
686
+ top: 8px;
687
+ right: 8px;
688
+ padding: 4px 8px;
689
+ font-size: 11px;
690
+ border: 1px solid var(--border);
691
+ border-radius: 4px;
692
+ background: var(--surface);
693
+ color: var(--muted);
694
+ cursor: pointer;
695
+ }
696
+
697
+ .api-copy-btn:hover {
698
+ border-color: var(--border-hover);
699
+ color: var(--fg);
700
+ }
701
+
702
+ /* Response */
703
+ .api-response {
704
+ margin-bottom: 16px;
705
+ }
706
+
707
+ .api-response__status {
708
+ display: inline-flex;
709
+ align-items: center;
710
+ gap: 8px;
711
+ margin-bottom: 8px;
712
+ }
713
+
714
+ .api-status-code {
715
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
716
+ font-size: 13px;
717
+ font-weight: 700;
718
+ padding: 2px 8px;
719
+ border-radius: 4px;
720
+ }
721
+
722
+ .api-status-code--2xx {
723
+ background: rgba(34, 197, 94, 0.15);
724
+ color: #16a34a;
725
+ }
726
+
727
+ .api-status-code--3xx {
728
+ background: rgba(59, 130, 246, 0.15);
729
+ color: #3b82f6;
730
+ }
731
+
732
+ .api-status-code--4xx {
733
+ background: rgba(249, 115, 22, 0.15);
734
+ color: #ea580c;
735
+ }
736
+
737
+ .api-status-code--5xx {
738
+ background: rgba(239, 68, 68, 0.15);
739
+ color: #ef4444;
740
+ }
741
+
742
+ .api-status-code--default {
743
+ background: var(--surface);
744
+ color: var(--muted);
745
+ }
746
+
747
+ .api-response__desc {
748
+ font-size: 13px;
749
+ color: var(--muted);
750
+ }
751
+
752
+ .api-response__example pre {
753
+ background: var(--pre-bg);
754
+ border-radius: 6px;
755
+ padding: 12px 16px;
756
+ margin-top: 8px;
757
+ overflow-x: auto;
758
+ }
759
+
760
+ .api-response__example pre code {
761
+ background: none;
762
+ padding: 0;
763
+ font-size: 12px;
764
+ line-height: 1.5;
765
+ }
766
+
767
+ /* Try It Panel */
768
+ .api-try-it {
769
+ width: 420px;
770
+ min-width: 360px;
771
+ background: var(--pre-bg);
772
+ border-left: 1px solid var(--border);
773
+ padding: 20px;
774
+ display: flex;
775
+ flex-direction: column;
776
+ gap: 12px;
777
+ }
778
+
779
+ .api-try-it__title {
780
+ font-size: 13px;
781
+ font-weight: 700;
782
+ text-transform: uppercase;
783
+ letter-spacing: 0.4px;
784
+ color: var(--muted);
785
+ }
786
+
787
+ .api-try-it__url-bar {
788
+ display: flex;
789
+ align-items: center;
790
+ gap: 8px;
791
+ background: var(--bg);
792
+ border: 1px solid var(--border);
793
+ border-radius: 6px;
794
+ padding: 6px 10px;
795
+ overflow: hidden;
796
+ }
797
+
798
+ .api-try-it__url-display {
799
+ display: flex;
800
+ align-items: center;
801
+ gap: 0;
802
+ flex: 1;
803
+ min-width: 0;
804
+ overflow: hidden;
805
+ }
806
+
807
+ .api-try-it__server-select {
808
+ background: none;
809
+ border: none;
810
+ color: var(--muted);
811
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
812
+ font-size: 12px;
813
+ padding: 2px 0;
814
+ cursor: pointer;
815
+ outline: none;
816
+ max-width: 180px;
817
+ flex-shrink: 1;
818
+ min-width: 0;
819
+ }
820
+
821
+ .api-try-it__server-select option {
822
+ background: var(--bg);
823
+ color: var(--fg);
824
+ }
825
+
826
+ .api-try-it__path-display {
827
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
828
+ font-size: 12px;
829
+ color: var(--fg);
830
+ white-space: nowrap;
831
+ overflow: hidden;
832
+ text-overflow: ellipsis;
833
+ }
834
+
835
+ .api-try-it__section {
836
+ display: flex;
837
+ flex-direction: column;
838
+ gap: 6px;
839
+ }
840
+
841
+ .api-try-it__section-label {
842
+ font-size: 11px;
843
+ font-weight: 700;
844
+ text-transform: uppercase;
845
+ letter-spacing: 0.4px;
846
+ color: var(--muted);
847
+ }
848
+
849
+ .api-try-it__param-row {
850
+ display: flex;
851
+ flex-direction: column;
852
+ gap: 4px;
853
+ }
854
+
855
+ .api-try-it__param-info {
856
+ display: flex;
857
+ align-items: center;
858
+ gap: 6px;
859
+ }
860
+
861
+ .api-try-it__param-name {
862
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
863
+ font-size: 12px;
864
+ font-weight: 600;
865
+ color: var(--fg);
866
+ }
867
+
868
+ .api-try-it__param-in {
869
+ font-size: 10px;
870
+ color: var(--muted-fg);
871
+ padding: 1px 5px;
872
+ background: var(--surface);
873
+ border-radius: 3px;
874
+ }
875
+
876
+ .api-try-it__param-input {
877
+ width: 100%;
878
+ padding: 6px 10px;
879
+ border: 1px solid var(--border);
880
+ border-radius: 4px;
881
+ background: var(--bg);
882
+ color: var(--fg);
883
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
884
+ font-size: 12px;
885
+ outline: none;
886
+ box-sizing: border-box;
887
+ }
888
+
889
+ .api-try-it__param-input:focus {
890
+ border-color: var(--border-hover);
891
+ }
892
+
893
+ .api-try-it__param-input:disabled {
894
+ opacity: 0.5;
895
+ cursor: not-allowed;
896
+ }
897
+
898
+ .api-try-it__param-input::placeholder {
899
+ color: var(--muted-fg);
900
+ }
901
+
902
+ .api-try-it__body-editor {
903
+ width: 100%;
904
+ padding: 10px;
905
+ border: 1px solid var(--border);
906
+ border-radius: 6px;
907
+ background: var(--bg);
908
+ color: var(--fg);
909
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
910
+ font-size: 12px;
911
+ line-height: 1.5;
912
+ resize: vertical;
913
+ outline: none;
914
+ box-sizing: border-box;
915
+ }
916
+
917
+ .api-try-it__body-editor:focus {
918
+ border-color: var(--border-hover);
919
+ }
920
+
921
+ .api-try-it__send-btn {
922
+ width: 100%;
923
+ padding: 8px 16px;
924
+ background: var(--accent, #6366f1);
925
+ color: #fff;
926
+ border: none;
927
+ border-radius: 6px;
928
+ font-size: 13px;
929
+ font-weight: 600;
930
+ cursor: pointer;
931
+ transition: opacity 0.15s ease;
932
+ }
933
+
934
+ .api-try-it__send-btn:hover {
935
+ opacity: 0.9;
936
+ }
937
+
938
+ .api-try-it__send-btn:disabled {
939
+ opacity: 0.6;
940
+ cursor: not-allowed;
941
+ }
942
+
943
+ .api-try-it__response {
944
+ border: 1px solid var(--border);
945
+ border-radius: 6px;
946
+ overflow: hidden;
947
+ background: var(--bg);
948
+ }
949
+
950
+ .api-try-it__response--hidden {
951
+ display: none;
952
+ }
953
+
954
+ .api-try-it__response-meta {
955
+ display: flex;
956
+ align-items: center;
957
+ gap: 10px;
958
+ padding: 10px 12px;
959
+ border-bottom: 1px solid var(--border);
960
+ }
961
+
962
+ .api-try-it__response-status {
963
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
964
+ font-size: 13px;
965
+ font-weight: 700;
966
+ padding: 2px 8px;
967
+ border-radius: 4px;
968
+ }
969
+
970
+ .api-try-it__response-status--2xx {
971
+ background: rgba(34, 197, 94, 0.15);
972
+ color: #16a34a;
973
+ }
974
+
975
+ .api-try-it__response-status--3xx {
976
+ background: rgba(59, 130, 246, 0.15);
977
+ color: #3b82f6;
978
+ }
979
+
980
+ .api-try-it__response-status--4xx {
981
+ background: rgba(249, 115, 22, 0.15);
982
+ color: #ea580c;
983
+ }
984
+
985
+ .api-try-it__response-status--5xx,
986
+ .api-try-it__response-status--error {
987
+ background: rgba(239, 68, 68, 0.15);
988
+ color: #ef4444;
989
+ }
990
+
991
+ .api-try-it__response-time {
992
+ font-size: 12px;
993
+ color: var(--muted);
994
+ margin-left: auto;
995
+ }
996
+
997
+ .api-try-it__response-tabs {
998
+ display: flex;
999
+ border-bottom: 1px solid var(--border);
1000
+ }
1001
+
1002
+ .api-try-it__rtab {
1003
+ padding: 6px 14px;
1004
+ font-size: 12px;
1005
+ font-weight: 600;
1006
+ color: var(--muted);
1007
+ border: none;
1008
+ border-bottom: 2px solid transparent;
1009
+ background: none;
1010
+ cursor: pointer;
1011
+ }
1012
+
1013
+ .api-try-it__rtab:hover {
1014
+ color: var(--fg);
1015
+ }
1016
+
1017
+ .api-try-it__rtab--active {
1018
+ color: var(--fg);
1019
+ border-bottom-color: var(--fg);
1020
+ }
1021
+
1022
+ .api-try-it__rpanel {
1023
+ display: none;
1024
+ }
1025
+
1026
+ .api-try-it__rpanel--active {
1027
+ display: block;
1028
+ }
1029
+
1030
+ .api-try-it__rpanel pre {
1031
+ margin: 0;
1032
+ padding: 12px;
1033
+ overflow-x: auto;
1034
+ max-height: 400px;
1035
+ overflow-y: auto;
1036
+ }
1037
+
1038
+ .api-try-it__rpanel pre code {
1039
+ font-size: 12px;
1040
+ line-height: 1.5;
1041
+ color: var(--fg);
1042
+ background: none;
1043
+ padding: 0;
1044
+ white-space: pre-wrap;
1045
+ word-break: break-word;
1046
+ }
1047
+
1048
+ /* Mobile Sidebar for API */
1049
+ .api-mobile-toggle {
1050
+ display: none;
1051
+ padding: 12px 16px;
1052
+ border-bottom: 1px solid var(--border);
1053
+ }
1054
+
1055
+ .api-mobile-toggle button {
1056
+ width: 100%;
1057
+ display: flex;
1058
+ align-items: center;
1059
+ justify-content: space-between;
1060
+ padding: 8px 12px;
1061
+ border: 1px solid var(--border);
1062
+ border-radius: 6px;
1063
+ font-size: 14px;
1064
+ background: var(--bg);
1065
+ color: var(--fg);
1066
+ cursor: pointer;
1067
+ }
1068
+
1069
+ /* Responsive */
1070
+ @media (max-width: 1024px) {
1071
+ .api-sidebar {
1072
+ display: none;
1073
+ }
1074
+
1075
+ .api-mobile-toggle {
1076
+ display: block;
1077
+ position: sticky;
1078
+ top: 81px;
1079
+ z-index: 40;
1080
+ background: var(--bg);
1081
+ }
1082
+
1083
+ .api-sidebar--mobile-open {
1084
+ display: block;
1085
+ position: fixed;
1086
+ top: 0;
1087
+ left: 0;
1088
+ width: 280px;
1089
+ height: 100vh;
1090
+ z-index: 100;
1091
+ background: var(--bg);
1092
+ border-right: 1px solid var(--border);
1093
+ }
1094
+
1095
+ .api-content {
1096
+ padding: 20px 16px;
1097
+ }
1098
+
1099
+ .api-operation__summary {
1100
+ display: none;
1101
+ }
1102
+
1103
+ .api-operation__body {
1104
+ flex-direction: column;
1105
+ }
1106
+
1107
+ .api-try-it {
1108
+ width: 100%;
1109
+ min-width: 0;
1110
+ border-left: none;
1111
+ border-top: 1px solid var(--border);
1112
+ }
1113
+ }