@scalar/workspace-store 0.71.1 → 0.72.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.72.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#11037](https://github.com/scalar/scalar/pull/11037): Load object-valued `x-codeSamples.source` and `x-code-samples.source` file references as raw code text, with relative origins and lazy operation loading. Retain failed references and show an unavailable sample instead of silently replacing them with an empty string. Preserve literal `$ref` values in other extensions and example data.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#10998](https://github.com/scalar/scalar/pull/10998): Reuse the discovery response when importing extensionless API description URLs, avoiding a duplicate download while preserving URL metadata and subsequent fetches.
12
+
3
13
  ## 0.71.1
4
14
 
5
15
  ### Patch Changes
package/dist/client.d.ts CHANGED
@@ -33,6 +33,8 @@ type WorkspaceDocumentMetaInput = {
33
33
  export type UrlDoc = {
34
34
  /** URL to fetch the OpenAPI document from */
35
35
  url: string;
36
+ /** Already fetched response for this URL. Its body is consumed instead of fetching the initial document. */
37
+ response?: Response;
36
38
  } & WorkspaceDocumentMetaInput;
37
39
  /**
38
40
  * Represents a document that is loaded from a URL.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,2BAA2B,CAAA;AAErE,OAAO,EAAE,KAAK,UAAU,EAAe,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAQ7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAI5C,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAM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GD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA"}
package/dist/client.js CHANGED
@@ -34,6 +34,7 @@ import { snapshotRequestBodies } from './helpers/snapshot-request-bodies.js';
34
34
  import { unpackProxyObject } from './helpers/unpack-proxy.js';
35
35
  import { createNavigation, traverseAsyncApiDocument } from './navigation/index.js';
36
36
  import { externalValueResolver, loadingStatus, normalizeAuthSchemes, normalizeRefs, openApiDocument, refsEverywhere, removeExtraScalarKeys, resolveOpenApiDocument, restoreOriginalRefs, syncPathParameters, } from './plugins/bundler/index.js';
37
+ import { codeSampleSources } from './plugins/bundler/code-sample-sources.js';
37
38
  import { extensions } from './schemas/extensions.js';
38
39
  import { isAsyncApiDocument, isOpenApiDocument } from './schemas/type-guards.js';
39
40
  import { generateSchema } from './schemas/v3.2/openapi/index.js';
@@ -67,7 +68,10 @@ const EXTERNAL_FETCH_CONCURRENCY_LIMIT = 10;
67
68
  */
68
69
  function loadDocument(workspaceDocument) {
69
70
  if ('url' in workspaceDocument) {
70
- return fetchUrls({ fetch: workspaceDocument.fetch }).exec(workspaceDocument.url);
71
+ const response = workspaceDocument.response;
72
+ return fetchUrls({
73
+ fetch: response ? () => Promise.resolve(response) : workspaceDocument.fetch,
74
+ }).exec(workspaceDocument.url);
71
75
  }
72
76
  if ('path' in workspaceDocument) {
73
77
  const loader = workspaceDocument.fileLoader;
@@ -105,7 +109,11 @@ const getDocumentSource = (input) => {
105
109
  if ('path' in input) {
106
110
  return input.path;
107
111
  }
108
- return 'document' in input ? input.documentSource : undefined;
112
+ if ('document' in input) {
113
+ const originalSource = input.document['x-scalar-original-source-url'];
114
+ return input.documentSource ?? (typeof originalSource === 'string' ? originalSource : undefined);
115
+ }
116
+ return undefined;
109
117
  };
110
118
  const openapiSchema = generateSchema(recursiveRef);
111
119
  /**
@@ -563,6 +571,8 @@ export const createWorkspaceStore = (workspaceProps) => {
563
571
  const inputDocument = withMeasurementSync('upgrade', () => upgrade(deepClone(clonedRawInputDocument), '3.1'));
564
572
  const strictDocument = createMagicProxy({
565
573
  ...inputDocument,
574
+ // Partial API descriptions still need document traversal rather than standalone schema traversal.
575
+ openapi: inputDocument.openapi ?? '',
566
576
  ...meta,
567
577
  'x-original-oas-version': clonedRawInputDocument.openapi ?? clonedRawInputDocument.swagger,
568
578
  'x-scalar-original-document-hash': input.documentHash,
@@ -573,9 +583,12 @@ export const createWorkspaceStore = (workspaceProps) => {
573
583
  // We need to bundle document first before we validate, so we can also validate the external references
574
584
  if (strictDocument[extensions.document.navigation] === undefined) {
575
585
  await withMeasurementAsync('bundle', async () => await bundle(getRaw(strictDocument), {
586
+ // Example values and other literal data may contain authored `$ref` keys.
587
+ traversal: 'document',
576
588
  treeShake: false,
577
589
  plugins: [
578
590
  ...loaders,
591
+ codeSampleSources(),
579
592
  openApiDocument(),
580
593
  normalizeRefs(),
581
594
  externalValueResolver({ lazy: true }),
@@ -979,9 +992,11 @@ export const createWorkspaceStore = (workspaceProps) => {
979
992
  }
980
993
  return bundle(target, {
981
994
  root: activeDocument,
995
+ traversal: 'document',
982
996
  origin: activeDocument?.['x-scalar-original-source-url'],
983
997
  treeShake: false,
984
998
  plugins: [
999
+ codeSampleSources(path),
985
1000
  openApiDocument(),
986
1001
  fetchUrls({
987
1002
  fetch: extraDocumentConfigurations[getActiveDocumentName()]?.fetch ?? workspaceProps?.fetch,
@@ -1447,7 +1447,9 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
1447
1447
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1448
1448
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1449
1449
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1450
- source: import("@scalar/typebox").TString;
1450
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1451
+ $ref: import("@scalar/typebox").TString;
1452
+ }>]>;
1451
1453
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1452
1454
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1453
1455
  }>>>;
@@ -1455,7 +1457,9 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
1455
1457
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1456
1458
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1457
1459
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1458
- source: import("@scalar/typebox").TString;
1460
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1461
+ $ref: import("@scalar/typebox").TString;
1462
+ }>]>;
1459
1463
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1460
1464
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1461
1465
  }>>>;
@@ -1463,7 +1467,9 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
1463
1467
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1464
1468
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1465
1469
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1466
- source: import("@scalar/typebox").TString;
1470
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1471
+ $ref: import("@scalar/typebox").TString;
1472
+ }>]>;
1467
1473
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1468
1474
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1469
1475
  }>>>;
@@ -1491,7 +1497,9 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
1491
1497
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1492
1498
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1493
1499
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1494
- source: import("@scalar/typebox").TString;
1500
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
1501
+ $ref: import("@scalar/typebox").TString;
1502
+ }>]>;
1495
1503
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1496
1504
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1497
1505
  }>>>;
@@ -3719,7 +3727,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3719
3727
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3720
3728
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3721
3729
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3722
- source: import("@scalar/typebox").TString;
3730
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
3731
+ $ref: import("@scalar/typebox").TString;
3732
+ }>]>;
3723
3733
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3724
3734
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3725
3735
  }>>>;
@@ -3727,7 +3737,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3727
3737
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3728
3738
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3729
3739
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3730
- source: import("@scalar/typebox").TString;
3740
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
3741
+ $ref: import("@scalar/typebox").TString;
3742
+ }>]>;
3731
3743
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3732
3744
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3733
3745
  }>>>;
@@ -3735,7 +3747,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3735
3747
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3736
3748
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3737
3749
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3738
- source: import("@scalar/typebox").TString;
3750
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
3751
+ $ref: import("@scalar/typebox").TString;
3752
+ }>]>;
3739
3753
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3740
3754
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3741
3755
  }>>>;
@@ -3763,7 +3777,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3763
3777
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3764
3778
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3765
3779
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3766
- source: import("@scalar/typebox").TString;
3780
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
3781
+ $ref: import("@scalar/typebox").TString;
3782
+ }>]>;
3767
3783
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3768
3784
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3769
3785
  }>>>;
@@ -5655,7 +5671,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5655
5671
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5656
5672
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5657
5673
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5658
- source: import("@scalar/typebox").TString;
5674
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
5675
+ $ref: import("@scalar/typebox").TString;
5676
+ }>]>;
5659
5677
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5660
5678
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5661
5679
  }>>>;
@@ -5663,7 +5681,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5663
5681
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5664
5682
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5665
5683
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5666
- source: import("@scalar/typebox").TString;
5684
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
5685
+ $ref: import("@scalar/typebox").TString;
5686
+ }>]>;
5667
5687
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5668
5688
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5669
5689
  }>>>;
@@ -5671,7 +5691,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5671
5691
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5672
5692
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5673
5693
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5674
- source: import("@scalar/typebox").TString;
5694
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
5695
+ $ref: import("@scalar/typebox").TString;
5696
+ }>]>;
5675
5697
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5676
5698
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5677
5699
  }>>>;
@@ -5699,7 +5721,9 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5699
5721
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5700
5722
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5701
5723
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5702
- source: import("@scalar/typebox").TString;
5724
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
5725
+ $ref: import("@scalar/typebox").TString;
5726
+ }>]>;
5703
5727
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5704
5728
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5705
5729
  }>>>;
@@ -7929,7 +7953,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7929
7953
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7930
7954
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7931
7955
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7932
- source: import("@scalar/typebox").TString;
7956
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
7957
+ $ref: import("@scalar/typebox").TString;
7958
+ }>]>;
7933
7959
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7934
7960
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7935
7961
  }>>>;
@@ -7937,7 +7963,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7937
7963
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7938
7964
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7939
7965
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7940
- source: import("@scalar/typebox").TString;
7966
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
7967
+ $ref: import("@scalar/typebox").TString;
7968
+ }>]>;
7941
7969
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7942
7970
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7943
7971
  }>>>;
@@ -7945,7 +7973,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7945
7973
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7946
7974
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7947
7975
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7948
- source: import("@scalar/typebox").TString;
7976
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
7977
+ $ref: import("@scalar/typebox").TString;
7978
+ }>]>;
7949
7979
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7950
7980
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7951
7981
  }>>>;
@@ -7973,7 +8003,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7973
8003
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7974
8004
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7975
8005
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7976
- source: import("@scalar/typebox").TString;
8006
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
8007
+ $ref: import("@scalar/typebox").TString;
8008
+ }>]>;
7977
8009
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7978
8010
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7979
8011
  }>>>;
@@ -9865,7 +9897,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9865
9897
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9866
9898
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9867
9899
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9868
- source: import("@scalar/typebox").TString;
9900
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
9901
+ $ref: import("@scalar/typebox").TString;
9902
+ }>]>;
9869
9903
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9870
9904
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9871
9905
  }>>>;
@@ -9873,7 +9907,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9873
9907
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9874
9908
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9875
9909
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9876
- source: import("@scalar/typebox").TString;
9910
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
9911
+ $ref: import("@scalar/typebox").TString;
9912
+ }>]>;
9877
9913
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9878
9914
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9879
9915
  }>>>;
@@ -9881,7 +9917,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9881
9917
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9882
9918
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9883
9919
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9884
- source: import("@scalar/typebox").TString;
9920
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
9921
+ $ref: import("@scalar/typebox").TString;
9922
+ }>]>;
9885
9923
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9886
9924
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9887
9925
  }>>>;
@@ -9909,7 +9947,9 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9909
9947
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9910
9948
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9911
9949
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9912
- source: import("@scalar/typebox").TString;
9950
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
9951
+ $ref: import("@scalar/typebox").TString;
9952
+ }>]>;
9913
9953
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9914
9954
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9915
9955
  }>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AA+BnD,QAAA,MAAM,mBAAmB;;IAGrB,sEAAsE;;;;;;IAKzE,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;;;IAOtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAc1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoMF,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { type LifecyclePlugin, type LoaderPlugin } from '@scalar/json-magic/bundle';
2
+ /**
3
+ * Resolve the two Redocly code-file extensions at operation nodes. Their contents remain opaque
4
+ * to document traversal: a `$ref` written inside the downloaded code is never another reference.
5
+ * `path` identifies the selected subtree during lazy resolution.
6
+ */
7
+ export declare const codeSampleSources: (path?: readonly string[]) => LifecyclePlugin;
8
+ /** Load inline operations on the server without eagerly resolving its deferred OpenAPI references. */
9
+ export declare const loadCodeSampleSources: (document: Record<string, unknown>, origin: string, loaders: LoaderPlugin[]) => Promise<void>;
10
+ //# sourceMappingURL=code-sample-sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-sample-sources.d.ts","sourceRoot":"","sources":["../../../src/plugins/bundler/code-sample-sources.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAGlB,MAAM,2BAA2B,CAAA;AAkClC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAU,SAAS,MAAM,EAAE,KAAQ,eAmDhE,CAAA;AAmDD,sGAAsG;AACtG,eAAO,MAAM,qBAAqB,aACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UACzB,MAAM,WACL,YAAY,EAAE,KACtB,OAAO,CAAC,IAAI,CAqCd,CAAA"}
@@ -0,0 +1,174 @@
1
+ import { isHttpMethod } from '@scalar/helpers/http/is-http-method';
2
+ import { parseJsonPointerSegments } from '@scalar/helpers/json/parse-json-pointer-segments';
3
+ import { isObject } from '@scalar/helpers/object/is-object';
4
+ import { resolveReferencePath, } from '@scalar/json-magic/bundle';
5
+ import { forEachPathItemOperation } from '../../helpers/for-each-path-item-operation.js';
6
+ import { resolveOpenApiDocument } from './openapi-document.js';
7
+ /** Recognize operations, including callbacks, without interpreting similarly named literal data. */
8
+ const isOperationPath = (path) => {
9
+ const start = (path[0] === 'paths' && !path[1]?.startsWith('x-')) || path[0] === 'webhooks'
10
+ ? 2
11
+ : path[0] === 'components' && path[1] === 'pathItems'
12
+ ? 3
13
+ : path[0] === 'components' && path[1] === 'callbacks'
14
+ ? 4
15
+ : undefined;
16
+ if (start === undefined) {
17
+ return false;
18
+ }
19
+ const operation = (index) => {
20
+ const method = path[index];
21
+ const end = method === 'additionalOperations' ? index + 2 : index + 1;
22
+ if (method !== 'additionalOperations' && (!method || !isHttpMethod(method) || method !== method.toLowerCase())) {
23
+ return false;
24
+ }
25
+ if (end === path.length) {
26
+ return true;
27
+ }
28
+ return path[end] === 'callbacks' && end + 3 < path.length && operation(end + 3);
29
+ };
30
+ return operation(start);
31
+ };
32
+ /**
33
+ * Resolve the two Redocly code-file extensions at operation nodes. Their contents remain opaque
34
+ * to document traversal: a `$ref` written inside the downloaded code is never another reference.
35
+ * `path` identifies the selected subtree during lazy resolution.
36
+ */
37
+ export const codeSampleSources = (path = []) => {
38
+ const loadSources = createSourceLoader();
39
+ const locations = new Map();
40
+ return {
41
+ type: 'lifecycle',
42
+ resolveDocument: (document, retrievalUri) => {
43
+ const identity = resolveOpenApiDocument(document, retrievalUri);
44
+ const entries = locations.get(retrievalUri);
45
+ if (identity && entries) {
46
+ // Fragment locations are discovered at retrieval URLs, but node hooks use the declared identity.
47
+ locations.set(identity.baseUri, entries);
48
+ }
49
+ // Run before openApiDocument so its identity resolver still owns document registration.
50
+ return undefined;
51
+ },
52
+ onBeforeNodeProcess: async (node, context) => {
53
+ const external = context.path[0] === 'x-ext';
54
+ const localPath = external ? context.path.slice(2) : context.path;
55
+ const location = locations
56
+ .get(context.origin)
57
+ ?.find(({ target }) => target.every((segment, index) => localPath[index] === segment));
58
+ const operationPath = location
59
+ ? [...location.source, ...localPath.slice(location.target.length)]
60
+ : external
61
+ ? [...path, ...(context.referencedFromPath ?? []), ...localPath]
62
+ : [...path, ...localPath];
63
+ // A referenced fragment can live under an arbitrary key in its file. Carry the referring
64
+ // operation/path-item/callback location across each hop instead of mistaking that key for an OAS field.
65
+ if (typeof node.$ref === 'string' &&
66
+ [operationPath, [...operationPath, 'get'], [...operationPath, '{}', 'get']].some(isOperationPath)) {
67
+ const [file, fragment = ''] = node.$ref.split('#');
68
+ if (!fragment || fragment.startsWith('/')) {
69
+ try {
70
+ const url = resolveReferencePath(context.origin, file ?? '');
71
+ const target = parseJsonPointerSegments(decodeURIComponent(fragment));
72
+ const entries = locations.get(url) ?? [];
73
+ entries.push({ target, source: operationPath });
74
+ entries.sort((a, b) => b.target.length - a.target.length);
75
+ locations.set(url, entries);
76
+ }
77
+ catch {
78
+ // The regular reference resolver reports invalid reference URIs.
79
+ }
80
+ }
81
+ }
82
+ if (isOperationPath(operationPath) || (external && isOperationPath(localPath))) {
83
+ await loadSources(node, context.origin, context.loaders);
84
+ }
85
+ },
86
+ };
87
+ };
88
+ const createSourceLoader = () => {
89
+ // Keep raw text separate from the bundler's parsed-document cache, even for the same URL.
90
+ const cache = new Map();
91
+ return async (node, origin, loaders) => {
92
+ for (const key of ['x-codeSamples', 'x-code-samples']) {
93
+ const samples = node[key];
94
+ if (!Array.isArray(samples)) {
95
+ continue;
96
+ }
97
+ for (const sample of samples) {
98
+ if (!isObject(sample) || !isObject(sample.source) || typeof sample.source.$ref !== 'string') {
99
+ continue;
100
+ }
101
+ const reference = sample.source.$ref;
102
+ // This convention includes whole code files, not JSON Pointer targets or arbitrary objects.
103
+ if (!reference || reference.includes('#')) {
104
+ continue;
105
+ }
106
+ if (origin === '/' && !/^(?:[a-z][a-z0-9+.-]*:|\/)/i.test(reference)) {
107
+ continue;
108
+ }
109
+ try {
110
+ const url = resolveReferencePath(origin, reference);
111
+ const loader = loaders.find((candidate) => candidate.validate(url));
112
+ // Keep the source's origin when an operation is moved into a server chunk or x-ext bucket.
113
+ sample.source.$ref = url;
114
+ if (!loader) {
115
+ continue;
116
+ }
117
+ if (!cache.has(url)) {
118
+ cache.set(url, loader.exec(url, { parseAs: 'text' }));
119
+ }
120
+ const result = await cache.get(url);
121
+ if (result?.ok) {
122
+ sample.source = result.raw;
123
+ }
124
+ else {
125
+ console.warn(`Unable to load code sample from "${url}"`);
126
+ }
127
+ }
128
+ catch {
129
+ // Retaining the reference keeps a failed download distinct from an authored empty sample.
130
+ console.warn(`Unable to load code sample from "${reference}"`);
131
+ }
132
+ }
133
+ }
134
+ };
135
+ };
136
+ /** Load inline operations on the server without eagerly resolving its deferred OpenAPI references. */
137
+ export const loadCodeSampleSources = async (document, origin, loaders) => {
138
+ const loadSources = createSourceLoader();
139
+ const visited = new WeakSet();
140
+ const visitPathItems = async (items, extensions) => {
141
+ if (!isObject(items)) {
142
+ return;
143
+ }
144
+ for (const [key, pathItem] of Object.entries(items)) {
145
+ if ((extensions && key.startsWith('x-')) || !isObject(pathItem) || visited.has(pathItem)) {
146
+ continue;
147
+ }
148
+ visited.add(pathItem);
149
+ const operations = [];
150
+ forEachPathItemOperation(pathItem, (_, operation) => operations.push(operation));
151
+ for (const operation of operations) {
152
+ if (!isObject(operation)) {
153
+ continue;
154
+ }
155
+ await loadSources(operation, origin, loaders);
156
+ if (isObject(operation.callbacks)) {
157
+ for (const callback of Object.values(operation.callbacks)) {
158
+ await visitPathItems(callback, true);
159
+ }
160
+ }
161
+ }
162
+ }
163
+ };
164
+ await visitPathItems(document.paths, true);
165
+ await visitPathItems(document.webhooks, false);
166
+ if (isObject(document.components)) {
167
+ await visitPathItems(document.components.pathItems, false);
168
+ if (isObject(document.components.callbacks)) {
169
+ for (const callback of Object.values(document.components.callbacks)) {
170
+ await visitPathItems(callback, true);
171
+ }
172
+ }
173
+ }
174
+ };