@scalar/workspace-store 0.54.2 → 0.54.4

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 (59) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +25 -0
  4. package/dist/entities/auth/schema.d.ts +105 -15
  5. package/dist/entities/auth/schema.d.ts.map +1 -1
  6. package/dist/helpers/dynamic-ref.d.ts +24 -0
  7. package/dist/helpers/dynamic-ref.d.ts.map +1 -0
  8. package/dist/helpers/dynamic-ref.js +74 -0
  9. package/dist/helpers/for-each-path-item-operation.d.ts +33 -0
  10. package/dist/helpers/for-each-path-item-operation.d.ts.map +1 -0
  11. package/dist/helpers/for-each-path-item-operation.js +75 -0
  12. package/dist/mutators/auth.d.ts.map +1 -1
  13. package/dist/mutators/auth.js +7 -13
  14. package/dist/mutators/operation/body.d.ts.map +1 -1
  15. package/dist/mutators/operation/body.js +3 -2
  16. package/dist/mutators/operation/extensions.d.ts.map +1 -1
  17. package/dist/mutators/operation/extensions.js +2 -1
  18. package/dist/mutators/operation/history.d.ts.map +1 -1
  19. package/dist/mutators/operation/history.js +3 -2
  20. package/dist/mutators/operation/operation.d.ts.map +1 -1
  21. package/dist/mutators/operation/operation.js +16 -16
  22. package/dist/mutators/operation/parameters.d.ts.map +1 -1
  23. package/dist/mutators/operation/parameters.js +30 -9
  24. package/dist/mutators/server.d.ts.map +1 -1
  25. package/dist/mutators/server.js +2 -1
  26. package/dist/mutators/tag.d.ts.map +1 -1
  27. package/dist/mutators/tag.js +9 -15
  28. package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -1
  29. package/dist/navigation/helpers/get-openapi-object.js +2 -1
  30. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  31. package/dist/navigation/helpers/traverse-paths.js +5 -8
  32. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  33. package/dist/navigation/helpers/traverse-webhooks.js +4 -7
  34. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  35. package/dist/request-example/builder/body/build-request-body.js +81 -7
  36. package/dist/request-example/builder/header/de-serialize-parameter.js +37 -4
  37. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +4 -1
  38. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  39. package/dist/request-example/builder/helpers/get-example-from-schema.js +97 -38
  40. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  41. package/dist/request-example/builder/security/build-request-security.js +9 -4
  42. package/dist/request-example/context/get-request-example-context.d.ts.map +1 -1
  43. package/dist/request-example/context/get-request-example-context.js +3 -2
  44. package/dist/schemas/reference-config/index.d.ts +21 -3
  45. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  46. package/dist/schemas/reference-config/settings.d.ts +21 -3
  47. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  48. package/dist/schemas/v3.1/strict/components.d.ts +11 -2
  49. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  50. package/dist/schemas/v3.1/strict/components.js +1 -1
  51. package/dist/schemas/v3.1/strict/openapi-document.d.ts +735 -105
  52. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  53. package/dist/schemas/v3.1/strict/openapi-document.js +2 -2
  54. package/dist/schemas/v3.1/strict/paths.d.ts +12 -2
  55. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  56. package/dist/schemas/v3.1/strict/paths.js +2 -1
  57. package/dist/server.d.ts.map +1 -1
  58. package/dist/server.js +12 -9
  59. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.54.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9465](https://github.com/scalar/scalar/pull/9465): Resolve JSON Schema 2020-12 `$dynamicRef` against the active `$dynamicAnchor` when generating examples, so generic patterns like `PaginatedResponse<T>` and recursive trees produce concrete example data instead of empty placeholders
8
+ - [#9494](https://github.com/scalar/scalar/pull/9494): Preserve document-level UI settings (watch mode, selected server, environments, sidebar order) and user-configured servers across `rebaseDocument` — previously every rebase (e.g. a watch mode pull) silently wiped them
9
+
10
+ ## 0.54.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [#9446](https://github.com/scalar/scalar/pull/9446): Fix `anyOf`/`oneOf` array query parameters (e.g. `Optional[List[str]]`) being sent as a single string instead of repeated query parameters
15
+ - [#9480](https://github.com/scalar/scalar/pull/9480): Do not send a Basic `Authorization` header when both the username and password are empty, instead of falling back to a `username:password` placeholder
16
+ - [#9342](https://github.com/scalar/scalar/pull/9342): fix: resolve operations when OpenAPI path items use `$ref`
17
+
18
+ Path entries and webhooks can reference `components.pathItems` instead of inlining operations. Navigation, mutators, search, and markdown export now resolve path-item references before reading HTTP methods and path-level parameters.
19
+
20
+ - [#9418](https://github.com/scalar/scalar/pull/9418): Keep nested JSON multipart field types after editing the request body form. Editing a form row no longer turns a nested object's booleans, numbers, and arrays into strings on the wire.
21
+
3
22
  ## 0.54.2
4
23
 
5
24
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAKA,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;AAS1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAY5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAIrE,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,wCAAwC,C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AAc,KAAG,cAugCtE,CAAA;AAGD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA"}
package/dist/client.js CHANGED
@@ -952,6 +952,25 @@ export const createWorkspaceStore = (workspaceProps) => {
952
952
  // the document type discriminator.
953
953
  originalDocuments[name] = mergedDocument;
954
954
  intermediateDocuments[name] = deepClone(mergedDocument);
955
+ // Document-level UI settings never come from the upstream source and
956
+ // would otherwise be wiped on every rebase. Carry over only the keys
957
+ // that are actually set so we don't spread `undefined` into the
958
+ // rebuilt document. The strict document type does not declare every
959
+ // x-scalar-* UI extension, so read them through an untyped view.
960
+ const isOpenApi = isOpenApiDocument(activeDocumentRaw);
961
+ const environments = isOpenApi ? activeDocumentRaw['x-scalar-environments'] : undefined;
962
+ const order = isOpenApi ? activeDocumentRaw['x-scalar-order'] : undefined;
963
+ // Keep user-configured servers when the merged document has none
964
+ // (build-time generated specs typically declare no servers). When the
965
+ // merged result already carries servers — whether from upstream or
966
+ // preserved local edits — those stay authoritative.
967
+ const mergedServers = mergedDocument.servers;
968
+ const activeServers = activeDocumentRaw.servers;
969
+ const mergedHasServers = Array.isArray(mergedServers) && mergedServers.length > 0;
970
+ const activeHasServers = Array.isArray(activeServers) && activeServers.length > 0;
971
+ const preservedServers = !isAsyncApiDocument(mergedDocument) && !mergedHasServers && activeHasServers
972
+ ? deepClone(activeServers)
973
+ : undefined;
955
974
  // add the new active document to the workspace but don't re-initialize
956
975
  await addInMemoryDocument({
957
976
  ...input,
@@ -969,6 +988,12 @@ export const createWorkspaceStore = (workspaceProps) => {
969
988
  ...input.meta,
970
989
  // Preserve the registry meta
971
990
  'x-scalar-registry-meta': activeDocumentRaw['x-scalar-registry-meta'],
991
+ // Preserve document-level UI settings (see note above).
992
+ 'x-scalar-watch-mode': activeDocumentRaw['x-scalar-watch-mode'],
993
+ 'x-scalar-selected-server': activeDocumentRaw['x-scalar-selected-server'],
994
+ ...(environments !== undefined ? { 'x-scalar-environments': environments } : {}),
995
+ ...(order !== undefined ? { 'x-scalar-order': order } : {}),
996
+ ...(preservedServers !== undefined ? { servers: preservedServers } : {}),
972
997
  // Flag local edits that need pushing - see note above.
973
998
  'x-scalar-is-dirty': hasLocalChangesAgainstUpstream,
974
999
  },
@@ -693,7 +693,16 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
693
693
  }>]>, import("@scalar/typebox").TObject<{
694
694
  '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
695
695
  }>]>]>>>;
696
- pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
696
+ pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
697
+ $ref: import("@scalar/typebox").TString;
698
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
699
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
700
+ }>, import("@scalar/typebox").TObject<{
701
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
702
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
703
+ }>]>, import("@scalar/typebox").TObject<{
704
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
705
+ }>]>]>>>;
697
706
  }>;
698
707
  SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
699
708
  TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -825,7 +834,16 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
825
834
  '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
826
835
  }>]>]>>>;
827
836
  }>;
828
- PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
837
+ PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
838
+ $ref: import("@scalar/typebox").TString;
839
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
840
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
841
+ }>, import("@scalar/typebox").TObject<{
842
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
843
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
844
+ }>]>, import("@scalar/typebox").TObject<{
845
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
846
+ }>]>]>>;
829
847
  OperationObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
830
848
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
831
849
  summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -2098,7 +2116,7 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
2098
2116
  jsonSchemaDialect: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2099
2117
  servers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"ServerObject">>>;
2100
2118
  paths: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
2101
- webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
2119
+ webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
2102
2120
  components: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ComponentsObject">>;
2103
2121
  security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
2104
2122
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
@@ -2617,7 +2635,16 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2617
2635
  }>]>, import("@scalar/typebox").TObject<{
2618
2636
  '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
2619
2637
  }>]>]>>>;
2620
- pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
2638
+ pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2639
+ $ref: import("@scalar/typebox").TString;
2640
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2641
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2642
+ }>, import("@scalar/typebox").TObject<{
2643
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
2644
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
2645
+ }>]>, import("@scalar/typebox").TObject<{
2646
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
2647
+ }>]>]>>>;
2621
2648
  }>;
2622
2649
  SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
2623
2650
  TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -2749,7 +2776,16 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2749
2776
  '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
2750
2777
  }>]>]>>>;
2751
2778
  }>;
2752
- PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
2779
+ PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2780
+ $ref: import("@scalar/typebox").TString;
2781
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2782
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2783
+ }>, import("@scalar/typebox").TObject<{
2784
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
2785
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
2786
+ }>]>, import("@scalar/typebox").TObject<{
2787
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
2788
+ }>]>]>>;
2753
2789
  OperationObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2754
2790
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
2755
2791
  summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -4022,7 +4058,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
4022
4058
  jsonSchemaDialect: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4023
4059
  servers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"ServerObject">>>;
4024
4060
  paths: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
4025
- webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
4061
+ webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
4026
4062
  components: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ComponentsObject">>;
4027
4063
  security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
4028
4064
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
@@ -4358,7 +4394,16 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
4358
4394
  }>]>, import("@scalar/typebox").TObject<{
4359
4395
  '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
4360
4396
  }>]>]>>>;
4361
- pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
4397
+ pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
4398
+ $ref: import("@scalar/typebox").TString;
4399
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4400
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4401
+ }>, import("@scalar/typebox").TObject<{
4402
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
4403
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
4404
+ }>]>, import("@scalar/typebox").TObject<{
4405
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
4406
+ }>]>]>>>;
4362
4407
  }>;
4363
4408
  SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
4364
4409
  TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -4490,7 +4535,16 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
4490
4535
  '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
4491
4536
  }>]>]>>>;
4492
4537
  }>;
4493
- PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
4538
+ PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
4539
+ $ref: import("@scalar/typebox").TString;
4540
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4541
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4542
+ }>, import("@scalar/typebox").TObject<{
4543
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
4544
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
4545
+ }>]>, import("@scalar/typebox").TObject<{
4546
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
4547
+ }>]>]>>;
4494
4548
  OperationObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
4495
4549
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
4496
4550
  summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -5763,7 +5817,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5763
5817
  jsonSchemaDialect: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5764
5818
  servers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"ServerObject">>>;
5765
5819
  paths: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
5766
- webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
5820
+ webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
5767
5821
  components: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ComponentsObject">>;
5768
5822
  security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
5769
5823
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
@@ -6284,7 +6338,16 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6284
6338
  }>]>, import("@scalar/typebox").TObject<{
6285
6339
  '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
6286
6340
  }>]>]>>>;
6287
- pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
6341
+ pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6342
+ $ref: import("@scalar/typebox").TString;
6343
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6344
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6345
+ }>, import("@scalar/typebox").TObject<{
6346
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
6347
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
6348
+ }>]>, import("@scalar/typebox").TObject<{
6349
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
6350
+ }>]>]>>>;
6288
6351
  }>;
6289
6352
  SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
6290
6353
  TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -6416,7 +6479,16 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6416
6479
  '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
6417
6480
  }>]>]>>>;
6418
6481
  }>;
6419
- PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
6482
+ PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6483
+ $ref: import("@scalar/typebox").TString;
6484
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6485
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6486
+ }>, import("@scalar/typebox").TObject<{
6487
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
6488
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
6489
+ }>]>, import("@scalar/typebox").TObject<{
6490
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
6491
+ }>]>]>>;
6420
6492
  OperationObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6421
6493
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
6422
6494
  summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -7689,7 +7761,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7689
7761
  jsonSchemaDialect: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7690
7762
  servers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"ServerObject">>>;
7691
7763
  paths: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
7692
- webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
7764
+ webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
7693
7765
  components: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ComponentsObject">>;
7694
7766
  security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
7695
7767
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
@@ -8025,7 +8097,16 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
8025
8097
  }>]>, import("@scalar/typebox").TObject<{
8026
8098
  '$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
8027
8099
  }>]>]>>>;
8028
- pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
8100
+ pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
8101
+ $ref: import("@scalar/typebox").TString;
8102
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8103
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8104
+ }>, import("@scalar/typebox").TObject<{
8105
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
8106
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
8107
+ }>]>, import("@scalar/typebox").TObject<{
8108
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
8109
+ }>]>]>>>;
8029
8110
  }>;
8030
8111
  SecurityRequirementObject: import("@scalar/typebox").TObject<{}>;
8031
8112
  TagObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -8157,7 +8238,16 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
8157
8238
  '$ref-value': import("@scalar/typebox").TRef<"ParameterObject">;
8158
8239
  }>]>]>>>;
8159
8240
  }>;
8160
- PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
8241
+ PathsObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
8242
+ $ref: import("@scalar/typebox").TString;
8243
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8244
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8245
+ }>, import("@scalar/typebox").TObject<{
8246
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
8247
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
8248
+ }>]>, import("@scalar/typebox").TObject<{
8249
+ '$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
8250
+ }>]>]>>;
8161
8251
  OperationObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
8162
8252
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
8163
8253
  summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
@@ -9430,7 +9520,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9430
9520
  jsonSchemaDialect: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9431
9521
  servers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"ServerObject">>>;
9432
9522
  paths: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
9433
- webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
9523
+ webhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"PathsObject">>;
9434
9524
  components: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ComponentsObject">>;
9435
9525
  security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
9436
9526
  tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
@@ -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;AAoBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAQ1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM,WAAW;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import type { SchemaObject } from '../schemas/v3.1/strict/schema.js';
2
+ /**
3
+ * The dynamic scope, ordered outermost-first.
4
+ *
5
+ * Each entry is a schema resource on the current evaluation path. When a `$dynamicRef` is resolved,
6
+ * the outermost entry that declares a matching `$dynamicAnchor` wins.
7
+ */
8
+ export type DynamicScope = SchemaObject[];
9
+ /** Narrow a schema to one that carries a `$dynamicRef`. */
10
+ export declare const isDynamicRef: (schema: unknown) => schema is SchemaObject & {
11
+ $dynamicRef: string;
12
+ };
13
+ export declare const collectDynamicAnchors: (resource: SchemaObject) => Map<string, SchemaObject>;
14
+ /** Append a schema to the dynamic scope when it could hold a `$dynamicAnchor`, otherwise return it unchanged. */
15
+ export declare const pushDynamicScope: (scope: DynamicScope, schema: SchemaObject) => DynamicScope;
16
+ /**
17
+ * Resolve a `$dynamicRef` fragment against the dynamic scope.
18
+ *
19
+ * Scans the scope outermost-first and returns the first resource that declares a `$dynamicAnchor` with
20
+ * the referenced name. Returns `undefined` when nothing matches, in which case callers should leave the
21
+ * reference unresolved (the schema renders as it did before, with no regression).
22
+ */
23
+ export declare const resolveDynamicRef: (dynamicRef: string, scope: DynamicScope) => SchemaObject | undefined;
24
+ //# sourceMappingURL=dynamic-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/dynamic-ref.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAiBhE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,EAAE,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,MAAM,IAAI,YAAY,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAItB,CAAA;AAqBvE,eAAO,MAAM,qBAAqB,GAAI,UAAU,YAAY,KAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAgCtF,CAAA;AAED,iHAAiH;AACjH,eAAO,MAAM,gBAAgB,GAAI,OAAO,YAAY,EAAE,QAAQ,YAAY,KAAG,YAClB,CAAA;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,OAAO,YAAY,KAAG,YAAY,GAAG,SAe1F,CAAA"}
@@ -0,0 +1,74 @@
1
+ import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
2
+ import { unpackProxyObject } from '../helpers/unpack-proxy.js';
3
+ /** Narrow a schema to one that carries a `$dynamicRef`. */
4
+ export const isDynamicRef = (schema) => typeof schema === 'object' &&
5
+ schema !== null &&
6
+ '$dynamicRef' in schema &&
7
+ typeof schema.$dynamicRef === 'string';
8
+ /**
9
+ * Whether a schema introduces something a `$dynamicRef` could later bind to.
10
+ *
11
+ * We only grow the dynamic scope with schemas that could hold a `$dynamicAnchor`: those declaring one
12
+ * directly, or resource boundaries (`$id`) / definition containers (`$defs`) that may hold one. Plain
13
+ * subschemas are skipped to keep the scope small.
14
+ */
15
+ const carriesDynamicAnchor = (schema) => '$dynamicAnchor' in schema || '$id' in schema || '$defs' in schema;
16
+ /**
17
+ * Collect the `$dynamicAnchor` declarations of a single schema resource, keyed by anchor name.
18
+ *
19
+ * Anchors are looked for at the resource root and inside `$defs` — the two placements used by the
20
+ * common generic and recursive patterns. Anchors nested deeper are not collected (a documented v1
21
+ * limitation). Each target is dereferenced so callers receive the concrete schema the anchor points to.
22
+ */
23
+ const anchorCache = new WeakMap();
24
+ export const collectDynamicAnchors = (resource) => {
25
+ // Cache per raw schema object so repeated lookups during a walk stay cheap.
26
+ const cacheTarget = unpackProxyObject(resource, { depth: 1 });
27
+ const cached = anchorCache.get(cacheTarget);
28
+ if (cached) {
29
+ return cached;
30
+ }
31
+ const anchors = new Map();
32
+ const add = (node) => {
33
+ if (!node || typeof node !== 'object') {
34
+ return;
35
+ }
36
+ const anchor = node.$dynamicAnchor;
37
+ if (typeof anchor === 'string' && !anchors.has(anchor)) {
38
+ // Resolve any sibling `$ref` so the stored target is the concrete schema (e.g. `User`).
39
+ anchors.set(anchor, getResolvedRef(node, mergeSiblingReferences));
40
+ }
41
+ };
42
+ add(resource);
43
+ const defs = resource.$defs;
44
+ if (defs && typeof defs === 'object') {
45
+ for (const key of Object.keys(defs)) {
46
+ add(defs[key]);
47
+ }
48
+ }
49
+ anchorCache.set(cacheTarget, anchors);
50
+ return anchors;
51
+ };
52
+ /** Append a schema to the dynamic scope when it could hold a `$dynamicAnchor`, otherwise return it unchanged. */
53
+ export const pushDynamicScope = (scope, schema) => carriesDynamicAnchor(schema) ? [...scope, schema] : scope;
54
+ /**
55
+ * Resolve a `$dynamicRef` fragment against the dynamic scope.
56
+ *
57
+ * Scans the scope outermost-first and returns the first resource that declares a `$dynamicAnchor` with
58
+ * the referenced name. Returns `undefined` when nothing matches, in which case callers should leave the
59
+ * reference unresolved (the schema renders as it did before, with no regression).
60
+ */
61
+ export const resolveDynamicRef = (dynamicRef, scope) => {
62
+ // Only plain-name fragments (`#itemType`) are supported; a non-fragment URI is not a dynamic anchor.
63
+ const name = dynamicRef.startsWith('#') ? dynamicRef.slice(1) : undefined;
64
+ if (!name || name.startsWith('/')) {
65
+ return undefined;
66
+ }
67
+ for (const resource of scope) {
68
+ const match = collectDynamicAnchors(resource).get(name);
69
+ if (match) {
70
+ return match;
71
+ }
72
+ }
73
+ return undefined;
74
+ };
@@ -0,0 +1,33 @@
1
+ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
+ import { type NodeInput } from '../helpers/get-resolved-ref.js';
3
+ import type { OperationObject } from '../schemas/v3.1/strict/operation.js';
4
+ import type { PathItemObject } from '../schemas/v3.1/strict/path-item.js';
5
+ /**
6
+ * Resolves a path item (or webhook path item), merging sibling properties alongside `$ref`.
7
+ */
8
+ export declare const getResolvedPathItem: (pathItem: NodeInput<PathItemObject> | undefined) => PathItemObject | undefined;
9
+ /**
10
+ * Returns an operation from a path item, resolving $ref wrappers on the path item first.
11
+ */
12
+ export declare const getPathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod) => NodeInput<OperationObject> | undefined;
13
+ /**
14
+ * Assigns an operation on a path item, including when the path item is a $ref wrapper.
15
+ */
16
+ export declare const setPathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod, operation: OperationObject) => void;
17
+ /**
18
+ * Deletes an operation from a path item, including when the path item is a $ref wrapper.
19
+ */
20
+ export declare const deletePathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod) => void;
21
+ /**
22
+ * Invokes a callback for each HTTP method operation on a path item, resolving $ref wrappers first.
23
+ */
24
+ export declare const forEachPathItemOperation: (pathItem: NodeInput<PathItemObject> | undefined, callback: (method: HttpMethod, operation: NodeInput<OperationObject>) => void) => void;
25
+ /**
26
+ * Returns whether a path item has no remaining keys after resolving $ref wrappers.
27
+ *
28
+ * Used when cleaning up after deleting an operation: a path entry is only removed once nothing is
29
+ * left, so path-level metadata (`parameters`, `summary`, `servers`) and $ref wrappers are preserved
30
+ * even when every HTTP method has been removed.
31
+ */
32
+ export declare const pathItemIsEmpty: (pathItem: NodeInput<PathItemObject> | undefined) => boolean;
33
+ //# sourceMappingURL=for-each-path-item-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"for-each-path-item-operation.d.ts","sourceRoot":"","sources":["../../src/helpers/for-each-path-item-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,EAAE,KAAK,SAAS,EAA0C,MAAM,4BAA4B,CAAA;AACnG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,KAAG,cAAc,GAAG,SAMtG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,QAAQ,UAAU,KACjB,SAAS,CAAC,eAAe,CAAC,GAAG,SAO/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,QAAQ,UAAU,EAClB,WAAW,eAAe,KACzB,IAWF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,QAAQ,UAAU,KAAG,IAa7G,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,EAC/C,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,KAC5E,IAaF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,KAAG,OAIjF,CAAA"}
@@ -0,0 +1,75 @@
1
+ import { isHttpMethod } from '@scalar/helpers/http/is-http-method';
2
+ import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
3
+ /**
4
+ * Resolves a path item (or webhook path item), merging sibling properties alongside `$ref`.
5
+ */
6
+ export const getResolvedPathItem = (pathItem) => {
7
+ if (!pathItem || typeof pathItem !== 'object') {
8
+ return undefined;
9
+ }
10
+ return getResolvedRef(pathItem, mergeSiblingReferences);
11
+ };
12
+ /**
13
+ * Returns an operation from a path item, resolving $ref wrappers on the path item first.
14
+ */
15
+ export const getPathItemOperation = (pathItem, method) => {
16
+ const resolvedPathItem = getResolvedPathItem(pathItem);
17
+ if (!resolvedPathItem) {
18
+ return undefined;
19
+ }
20
+ return resolvedPathItem[method];
21
+ };
22
+ /**
23
+ * Assigns an operation on a path item, including when the path item is a $ref wrapper.
24
+ */
25
+ export const setPathItemOperation = (pathItem, method, operation) => {
26
+ if (!pathItem || typeof pathItem !== 'object') {
27
+ return;
28
+ }
29
+ if ('$ref' in pathItem && '$ref-value' in pathItem) {
30
+ pathItem['$ref-value'][method] = operation;
31
+ return;
32
+ }
33
+ pathItem[method] = operation;
34
+ };
35
+ /**
36
+ * Deletes an operation from a path item, including when the path item is a $ref wrapper.
37
+ */
38
+ export const deletePathItemOperation = (pathItem, method) => {
39
+ if (!pathItem || typeof pathItem !== 'object') {
40
+ return;
41
+ }
42
+ // A $ref wrapper can carry the operation on its dereferenced value and/or as a sibling override
43
+ // alongside the `$ref`. Since mergeSiblingReferences gives the sibling precedence, both copies
44
+ // must be removed, otherwise getResolvedPathItem keeps exposing the operation after deletion.
45
+ if ('$ref' in pathItem && '$ref-value' in pathItem) {
46
+ delete pathItem['$ref-value'][method];
47
+ }
48
+ delete pathItem[method];
49
+ };
50
+ /**
51
+ * Invokes a callback for each HTTP method operation on a path item, resolving $ref wrappers first.
52
+ */
53
+ export const forEachPathItemOperation = (pathItem, callback) => {
54
+ const resolvedPathItem = getResolvedPathItem(pathItem);
55
+ if (!resolvedPathItem) {
56
+ return;
57
+ }
58
+ for (const [key, operation] of Object.entries(resolvedPathItem)) {
59
+ if (!isHttpMethod(key) || operation === undefined) {
60
+ continue;
61
+ }
62
+ callback(key, operation);
63
+ }
64
+ };
65
+ /**
66
+ * Returns whether a path item has no remaining keys after resolving $ref wrappers.
67
+ *
68
+ * Used when cleaning up after deleting an operation: a path entry is only removed once nothing is
69
+ * left, so path-level metadata (`parameters`, `summary`, `servers`) and $ref wrappers are preserved
70
+ * even when every HTTP method has been removed.
71
+ */
72
+ export const pathItemIsEmpty = (pathItem) => {
73
+ const resolvedPathItem = getResolvedPathItem(pathItem);
74
+ return !resolvedPathItem || Object.keys(resolvedPathItem).length === 0;
75
+ };