@scalar/workspace-store 0.52.0 → 0.54.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 (128) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/channel-example/build-connection-url.d.ts.map +1 -1
  3. package/dist/channel-example/build-connection-url.js +11 -8
  4. package/dist/channel-example/get-all-channel-messages.d.ts +10 -0
  5. package/dist/channel-example/get-all-channel-messages.d.ts.map +1 -0
  6. package/dist/channel-example/get-all-channel-messages.js +16 -0
  7. package/dist/channel-example/get-asyncapi-security-requirements.d.ts +7 -0
  8. package/dist/channel-example/get-asyncapi-security-requirements.d.ts.map +1 -0
  9. package/dist/channel-example/get-asyncapi-security-requirements.js +76 -0
  10. package/dist/channel-example/get-channel-connection-context.d.ts +16 -0
  11. package/dist/channel-example/get-channel-connection-context.d.ts.map +1 -0
  12. package/dist/channel-example/get-channel-connection-context.js +120 -0
  13. package/dist/channel-example/get-channel-connection-security.d.ts +8 -0
  14. package/dist/channel-example/get-channel-connection-security.d.ts.map +1 -0
  15. package/dist/channel-example/get-channel-connection-security.js +20 -0
  16. package/dist/channel-example/get-channel-operations.d.ts +11 -0
  17. package/dist/channel-example/get-channel-operations.d.ts.map +1 -0
  18. package/dist/channel-example/get-channel-operations.js +20 -0
  19. package/dist/channel-example/get-channel-parameters.d.ts +14 -0
  20. package/dist/channel-example/get-channel-parameters.d.ts.map +1 -0
  21. package/dist/channel-example/get-channel-parameters.js +59 -0
  22. package/dist/channel-example/index.d.ts +15 -0
  23. package/dist/channel-example/index.d.ts.map +1 -1
  24. package/dist/channel-example/index.js +9 -0
  25. package/dist/channel-example/resolve-channel.d.ts +11 -0
  26. package/dist/channel-example/resolve-channel.d.ts.map +1 -0
  27. package/dist/channel-example/resolve-channel.js +13 -0
  28. package/dist/channel-example/resolve-operation-channel.d.ts +11 -0
  29. package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -0
  30. package/dist/channel-example/resolve-operation-channel.js +39 -0
  31. package/dist/channel-example/resolve-operation-with-traits.d.ts +6 -0
  32. package/dist/channel-example/resolve-operation-with-traits.d.ts.map +1 -0
  33. package/dist/channel-example/resolve-operation-with-traits.js +41 -0
  34. package/dist/channel-example/servers.d.ts.map +1 -1
  35. package/dist/channel-example/servers.js +23 -0
  36. package/dist/channel-example/types.d.ts +41 -0
  37. package/dist/channel-example/types.d.ts.map +1 -0
  38. package/dist/channel-example/types.js +1 -0
  39. package/dist/client.d.ts.map +1 -1
  40. package/dist/client.js +8 -8
  41. package/dist/entities/auth/schema.d.ts +1473 -88
  42. package/dist/entities/auth/schema.d.ts.map +1 -1
  43. package/dist/events/definitions/meta.d.ts +5 -3
  44. package/dist/events/definitions/meta.d.ts.map +1 -1
  45. package/dist/events/definitions/server.d.ts +21 -0
  46. package/dist/events/definitions/server.d.ts.map +1 -1
  47. package/dist/events/definitions/workspace.d.ts +7 -3
  48. package/dist/events/definitions/workspace.d.ts.map +1 -1
  49. package/dist/helpers/get-name-from-ref.d.ts +15 -0
  50. package/dist/helpers/get-name-from-ref.d.ts.map +1 -0
  51. package/dist/helpers/get-name-from-ref.js +37 -0
  52. package/dist/mutators/index.d.ts +4 -0
  53. package/dist/mutators/index.d.ts.map +1 -1
  54. package/dist/mutators/server.d.ts +26 -0
  55. package/dist/mutators/server.d.ts.map +1 -1
  56. package/dist/mutators/server.js +44 -1
  57. package/dist/navigation/get-navigation-options.d.ts +2 -2
  58. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  59. package/dist/navigation/get-navigation-options.js +26 -3
  60. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts +23 -0
  61. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -0
  62. package/dist/navigation/helpers/traverse-asyncapi-document.js +479 -0
  63. package/dist/navigation/helpers/traverse-description.d.ts +4 -3
  64. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  65. package/dist/navigation/helpers/traverse-description.js +2 -2
  66. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  67. package/dist/navigation/helpers/traverse-document.js +3 -3
  68. package/dist/navigation/index.d.ts +1 -0
  69. package/dist/navigation/index.d.ts.map +1 -1
  70. package/dist/navigation/index.js +1 -0
  71. package/dist/navigation/types.d.ts +3 -0
  72. package/dist/navigation/types.d.ts.map +1 -1
  73. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  74. package/dist/request-example/builder/body/build-request-body.js +32 -1
  75. package/dist/request-example/builder/body/serialize-form-property.d.ts +23 -0
  76. package/dist/request-example/builder/body/serialize-form-property.d.ts.map +1 -0
  77. package/dist/request-example/builder/body/serialize-form-property.js +101 -0
  78. package/dist/request-example/builder/header/de-serialize-parameter.d.ts +4 -1
  79. package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
  80. package/dist/request-example/builder/header/de-serialize-parameter.js +19 -13
  81. package/dist/request-example/builder/index.d.ts +1 -0
  82. package/dist/request-example/builder/index.d.ts.map +1 -1
  83. package/dist/request-example/builder/index.js +1 -0
  84. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +1 -1
  85. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
  86. package/dist/request-example/context/security/extract-security-scheme-secrets.js +12 -8
  87. package/dist/request-example/context/security/merge-security.d.ts +1 -1
  88. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  89. package/dist/request-example/context/security/merge-security.js +2 -2
  90. package/dist/request-example/index.d.ts +1 -1
  91. package/dist/request-example/index.d.ts.map +1 -1
  92. package/dist/request-example/index.js +1 -1
  93. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +1 -3
  94. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  95. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +0 -2
  96. package/dist/schemas/extensions/operation/index.d.ts +1 -1
  97. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  98. package/dist/schemas/extensions/operation/x-code-samples.d.ts +71 -0
  99. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  100. package/dist/schemas/extensions/operation/x-code-samples.js +50 -7
  101. package/dist/schemas/navigation.d.ts +113 -4
  102. package/dist/schemas/navigation.d.ts.map +1 -1
  103. package/dist/schemas/navigation.js +22 -0
  104. package/dist/schemas/reference-config/index.d.ts +286 -9
  105. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  106. package/dist/schemas/reference-config/settings.d.ts +286 -9
  107. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  108. package/dist/schemas/v3.1/openapi/index.d.ts +0 -1
  109. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  110. package/dist/schemas/v3.1/openapi/index.js +59 -17
  111. package/dist/schemas/v3.1/strict/info.d.ts +0 -1
  112. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  113. package/dist/schemas/v3.1/strict/openapi-document.d.ts +11168 -1473
  114. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  115. package/dist/schemas/v3.1/strict/openapi-document.js +4 -1
  116. package/dist/schemas/v3.1/strict/operation.d.ts +25 -0
  117. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  118. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +3 -0
  119. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  120. package/dist/schemas/v3.1/strict/ref-definitions.js +3 -0
  121. package/dist/schemas/v3.1/strict/schema.d.ts +387 -26
  122. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  123. package/dist/schemas/v3.1/strict/schema.js +53 -28
  124. package/dist/schemas/workspace-specification/index.d.ts +1 -1
  125. package/dist/schemas/workspace.d.ts +2 -3
  126. package/dist/schemas/workspace.d.ts.map +1 -1
  127. package/dist/schemas/workspace.js +5 -1
  128. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mapp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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -1,4 +1,3 @@
1
- import type { AvailableClients } from '@scalar/types/snippetz';
2
1
  /** Event definitions for the workspace/document meta */
3
2
  export type MetaEvents = {
4
3
  /**
@@ -10,8 +9,11 @@ export type MetaEvents = {
10
9
  */
11
10
  'update:active-document': string;
12
11
  /**
13
- * Update the selected client on the workspace
12
+ * Update the selected client on the workspace.
13
+ * Either a built-in client id (e.g. `js/fetch`) or a custom sample id (e.g. `custom/python`).
14
+ *
15
+ * See the note in `workspace.ts` on why this is a plain string.
14
16
  */
15
- 'update:selected-client': AvailableClients[number];
17
+ 'update:selected-client': string;
16
18
  };
17
19
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC;;OAEG;IACH,wBAAwB,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACnD,CAAA"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/meta.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,wBAAwB,EAAE,MAAM,CAAA;CACjC,CAAA"}
@@ -75,5 +75,26 @@ export type ServerEvents = {
75
75
  /** The meta information for the server */
76
76
  meta: ServerMeta;
77
77
  };
78
+ /**
79
+ * Update the selected server for an AsyncAPI document.
80
+ *
81
+ * AsyncAPI servers are a named map (rather than an array of `url`), so the
82
+ * selection is identified by the server name instead of an index or URL.
83
+ */
84
+ 'asyncapi-server:update:selected': {
85
+ /** The name (key in `document.servers`) of the server to select */
86
+ name: string;
87
+ };
88
+ /**
89
+ * Update a server variable for an AsyncAPI document, identified by server name.
90
+ */
91
+ 'asyncapi-server:update:variables': {
92
+ /** The name (key in `document.servers`) of the server to update */
93
+ name: string;
94
+ /** The key of the variable to update */
95
+ key: string;
96
+ /** The new value of the variable */
97
+ value: string;
98
+ };
78
99
  };
79
100
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAE1E,MAAM,MAAM,UAAU,GAClB;IACE,IAAI,EAAE,UAAU,CAAA;CACjB,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;CACnB,CAAA;AAEL,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,2BAA2B,EAAE;QAC3B,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,mBAAmB,EAAE;QACnB,8CAA8C;QAC9C,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,kEAAkE;QAClE,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,uCAAuC;QACvC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;QAC7B,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,yBAAyB,EAAE;QACzB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,wCAAwC;QACxC,GAAG,EAAE,MAAM,CAAA;QACX,oCAAoC;QACpC,KAAK,EAAE,MAAM,CAAA;QACb,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,wBAAwB,EAAE;QACxB,sCAAsC;QACtC,GAAG,EAAE,MAAM,CAAA;QACX,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAA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AsB,EAAE;QACtB,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;;;;OAKG;IACH,iCAAiC,EAAE;QACjC,mEAAmE;QACnE,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD;;OAEG;IACH,kCAAkC,EAAE;QAClC,mEAAmE;QACnE,IAAI,EAAE,MAAM,CAAA;QACZ,wCAAwC;QACxC,GAAG,EAAE,MAAM,CAAA;QACX,oCAAoC;QACpC,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA"}
@@ -1,4 +1,3 @@
1
- import type { AvailableClient } from '@scalar/types/snippetz';
2
1
  import type { ColorMode } from '../../schemas/workspace.js';
3
2
  /** Event definitions for the openapi document */
4
3
  export type WorkspaceEvents = {
@@ -15,9 +14,14 @@ export type WorkspaceEvents = {
15
14
  */
16
15
  'workspace:update:theme': string | undefined;
17
16
  /**
18
- * Update the selected client on the workspace
17
+ * Update the selected client on the workspace.
18
+ * Either a built-in client id (e.g. `js/fetch`) or a custom sample id (e.g. `custom/python`).
19
+ *
20
+ * Typed as a plain string: unioning the custom ids with the large client-id union trips
21
+ * TypeScript's "union too complex" limit when this event map is embedded in a Vue
22
+ * `defineProps`. The set of valid values is enforced at runtime instead.
19
23
  */
20
- 'workspace:update:selected-client': AvailableClient;
24
+ 'workspace:update:selected-client': string;
21
25
  /**
22
26
  * Update the active environment on the workspace
23
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;OAEG;IACH,kCAAkC,EAAE,eAAe,CAAA;IACnD;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpD;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;;;;;;OAOG;IACH,kCAAkC,EAAE,MAAM,CAAA;IAC1C;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpD;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Extracts the trailing identifier from a `#/...` JSON Pointer `$ref` whose parent path matches
3
+ * the expected sequence of segments. Decodes `~1`/`~0` escapes so identifiers containing `/` or `~`
4
+ * round-trip to their map keys.
5
+ *
6
+ * Returns `undefined` when the ref does not start with `#/`, the parent path does not match
7
+ * exactly, the trailing name is missing, or there are extra segments beyond the name.
8
+ *
9
+ * @example
10
+ * getNameFromRef('#/channels/foo', ['channels']) // → 'foo'
11
+ * getNameFromRef('#/components/securitySchemes/tenant~1admin~0v2', ['components', 'securitySchemes']) // → 'tenant/admin~v2'
12
+ * getNameFromRef('#/servers/foo/extra', ['servers']) // → undefined
13
+ */
14
+ export declare const getNameFromRef: (ref: string, parentPath: readonly string[]) => string | undefined;
15
+ //# sourceMappingURL=get-name-from-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-name-from-ref.d.ts","sourceRoot":"","sources":["../../src/helpers/get-name-from-ref.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,EAAE,YAAY,SAAS,MAAM,EAAE,KAAG,MAAM,GAAG,SAwBpF,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { escapeJsonPointer } from '@scalar/helpers/json/escape-json-pointer';
2
+ import { parseJsonPointerSegments } from '@scalar/helpers/json/parse-json-pointer-segments';
3
+ import { safeRun } from '@scalar/helpers/types/safe-run';
4
+ /**
5
+ * Extracts the trailing identifier from a `#/...` JSON Pointer `$ref` whose parent path matches
6
+ * the expected sequence of segments. Decodes `~1`/`~0` escapes so identifiers containing `/` or `~`
7
+ * round-trip to their map keys.
8
+ *
9
+ * Returns `undefined` when the ref does not start with `#/`, the parent path does not match
10
+ * exactly, the trailing name is missing, or there are extra segments beyond the name.
11
+ *
12
+ * @example
13
+ * getNameFromRef('#/channels/foo', ['channels']) // → 'foo'
14
+ * getNameFromRef('#/components/securitySchemes/tenant~1admin~0v2', ['components', 'securitySchemes']) // → 'tenant/admin~v2'
15
+ * getNameFromRef('#/servers/foo/extra', ['servers']) // → undefined
16
+ */
17
+ export const getNameFromRef = (ref, parentPath) => {
18
+ const prefix = `#/${parentPath.map(escapeJsonPointer).join('/')}/`;
19
+ if (!ref.startsWith(prefix)) {
20
+ return undefined;
21
+ }
22
+ const segmentsResult = safeRun(() => parseJsonPointerSegments(ref.slice(1)));
23
+ if (!segmentsResult.ok) {
24
+ return undefined;
25
+ }
26
+ const segments = segmentsResult.data;
27
+ if (segments.length !== parentPath.length + 1) {
28
+ return undefined;
29
+ }
30
+ for (let i = 0; i < parentPath.length; i++) {
31
+ if (segments[i] !== parentPath[i]) {
32
+ return undefined;
33
+ }
34
+ }
35
+ const name = segments[parentPath.length];
36
+ return name && name.length > 0 ? name : undefined;
37
+ };
@@ -119,6 +119,8 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
119
119
  clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
120
120
  updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/server-variable.js").ServerVariableObject | undefined;
121
121
  updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
122
+ updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
123
+ updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
122
124
  };
123
125
  tag: {
124
126
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => void;
@@ -208,6 +210,8 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
208
210
  clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
209
211
  updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/server-variable.js").ServerVariableObject | undefined;
210
212
  updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
213
+ updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
214
+ updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
211
215
  };
212
216
  tag: {
213
217
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
@@ -1,3 +1,4 @@
1
+ import type { AsyncApiServerVariableObject } from '@scalar/types/asyncapi/3.1';
1
2
  import type { ServerEvents } from '../events/definitions/server.js';
2
3
  import { type ServerObject } from '../schemas/v3.1/strict/openapi-document.js';
3
4
  import type { WorkspaceDocument } from '../schemas/workspace.js';
@@ -62,6 +63,29 @@ export declare const updateServerVariables: (document: WorkspaceDocument | null,
62
63
  * @returns the url of the selected server or undefined if the target is not found
63
64
  */
64
65
  export declare const updateSelectedServer: (document: WorkspaceDocument | null, { url, meta }: ServerEvents["server:update:selected"]) => string | undefined;
66
+ /**
67
+ * Updates the selected server for an AsyncAPI document.
68
+ *
69
+ * AsyncAPI servers are a named map, so the selection is stored as the server
70
+ * name in `x-scalar-selected-server`. There is always an effective server
71
+ * (`getSelectedAsyncApiServer` falls back to the first one), so this simply sets
72
+ * the selection rather than toggling it off.
73
+ *
74
+ * @param document - The document to update the selected server in
75
+ * @param name - The name of the server to select
76
+ * @returns the name of the selected server or undefined if the document is not AsyncAPI
77
+ */
78
+ export declare const updateSelectedAsyncApiServer: (document: WorkspaceDocument | null, { name }: ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
79
+ /**
80
+ * Updates a server variable for an AsyncAPI document, identified by server name.
81
+ *
82
+ * @param document - The document to update the server variables in
83
+ * @param name - The name of the server to update
84
+ * @param key - The key of the variable to update
85
+ * @param value - The new value of the variable
86
+ * @returns the updated variable or undefined if it is not found
87
+ */
88
+ export declare const updateAsyncApiServerVariables: (document: WorkspaceDocument | null, { name, key, value }: ServerEvents["asyncapi-server:update:variables"]) => AsyncApiServerVariableObject | undefined;
65
89
  export declare const serverMutatorsFactory: ({ document }: {
66
90
  document: WorkspaceDocument | null;
67
91
  }) => {
@@ -72,5 +96,7 @@ export declare const serverMutatorsFactory: ({ document }: {
72
96
  clearServers: (payload: ServerEvents["server:clear:servers"]) => void;
73
97
  updateServerVariables: (payload: ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/openapi-document.js").ServerVariableObject | undefined;
74
98
  updateSelectedServer: (payload: ServerEvents["server:update:selected"]) => string | undefined;
99
+ updateSelectedAsyncApiServer: (payload: ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
100
+ updateAsyncApiServerVariables: (payload: ServerEvents["asyncapi-server:update:variables"]) => AsyncApiServerVariableObject | undefined;
75
101
  };
76
102
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"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C,sBAAsB,CAAC,SAS9G,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,iBAAiB,GAAG,IAAI,EAClC,6BAA6B,YAAY,CAAC,yBAAyB,CAAC,sFAWrE,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,iBAAiB,GAAG,IAAI,EAClC,eAAe,YAAY,CAAC,wBAAwB,CAAC,KACpD,MAAM,GAAG,SAaX,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,GACvC,UAAU,iBAAiB,GAAG,IAAI,EAClC,UAAU,YAAY,CAAC,iCAAiC,CAAC,KACxD,MAAM,GAAG,SAOX,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,iBAAiB,GAAG,IAAI,EAClC,sBAAsB,YAAY,CAAC,kCAAkC,CAAC,KACrE,4BAA4B,GAAG,SAcjC,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc;IAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE;iCAEzD,YAAY,CAAC,2BAA2B,CAAC;yBACjD,YAAY,CAAC,mBAAmB,CAAC;4BAC9B,YAAY,CAAC,sBAAsB,CAAC;4BACpC,YAAY,CAAC,sBAAsB,CAAC;4BACpC,YAAY,CAAC,sBAAsB,CAAC;qCAC3B,YAAY,CAAC,yBAAyB,CAAC;oCAExC,YAAY,CAAC,wBAAwB,CAAC;4CAC9B,YAAY,CAAC,iCAAiC,CAAC;6CAE9C,YAAY,CAAC,kCAAkC,CAAC;CAG5F,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { findVariables } from '@scalar/helpers/regex/find-variables';
2
2
  import { getResolvedRef } from '../helpers/get-resolved-ref.js';
3
3
  import { unpackProxyObject } from '../helpers/unpack-proxy.js';
4
- import { isOpenApiDocument } from '../schemas/type-guards.js';
4
+ import { isAsyncApiDocument, isOpenApiDocument } from '../schemas/type-guards.js';
5
5
  import { coerceValue } from '../schemas/typebox-coerce.js';
6
6
  import { ServerObjectSchema } from '../schemas/v3.1/strict/openapi-document.js';
7
7
  /**
@@ -218,6 +218,47 @@ export const updateSelectedServer = (document, { url, meta }) => {
218
218
  target['x-scalar-selected-server'] = target['x-scalar-selected-server'] === url ? '' : url;
219
219
  return target['x-scalar-selected-server'];
220
220
  };
221
+ /**
222
+ * Updates the selected server for an AsyncAPI document.
223
+ *
224
+ * AsyncAPI servers are a named map, so the selection is stored as the server
225
+ * name in `x-scalar-selected-server`. There is always an effective server
226
+ * (`getSelectedAsyncApiServer` falls back to the first one), so this simply sets
227
+ * the selection rather than toggling it off.
228
+ *
229
+ * @param document - The document to update the selected server in
230
+ * @param name - The name of the server to select
231
+ * @returns the name of the selected server or undefined if the document is not AsyncAPI
232
+ */
233
+ export const updateSelectedAsyncApiServer = (document, { name }) => {
234
+ if (!isAsyncApiDocument(document)) {
235
+ return undefined;
236
+ }
237
+ document['x-scalar-selected-server'] = name;
238
+ return document['x-scalar-selected-server'];
239
+ };
240
+ /**
241
+ * Updates a server variable for an AsyncAPI document, identified by server name.
242
+ *
243
+ * @param document - The document to update the server variables in
244
+ * @param name - The name of the server to update
245
+ * @param key - The key of the variable to update
246
+ * @param value - The new value of the variable
247
+ * @returns the updated variable or undefined if it is not found
248
+ */
249
+ export const updateAsyncApiServerVariables = (document, { name, key, value }) => {
250
+ if (!isAsyncApiDocument(document)) {
251
+ return undefined;
252
+ }
253
+ const server = getResolvedRef(document.servers?.[name]);
254
+ const variable = server?.variables?.[key] ? getResolvedRef(server.variables[key]) : undefined;
255
+ if (!variable) {
256
+ console.error('Variable not found', key, name);
257
+ return undefined;
258
+ }
259
+ variable.default = value;
260
+ return variable;
261
+ };
221
262
  export const serverMutatorsFactory = ({ document }) => {
222
263
  return {
223
264
  initializeServers: (payload) => initializeServers(document, payload),
@@ -227,5 +268,7 @@ export const serverMutatorsFactory = ({ document }) => {
227
268
  clearServers: (payload) => clearServers(document, payload),
228
269
  updateServerVariables: (payload) => updateServerVariables(document, payload),
229
270
  updateSelectedServer: (payload) => updateSelectedServer(document, payload),
271
+ updateSelectedAsyncApiServer: (payload) => updateSelectedAsyncApiServer(document, payload),
272
+ updateAsyncApiServerVariables: (payload) => updateAsyncApiServerVariables(document, payload),
230
273
  };
231
274
  };
@@ -1,6 +1,6 @@
1
- import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
1
+ import { type ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
2
2
  import type { TraverseSpecOptions } from '../navigation/types.js';
3
- export type NavigationOptions = Partial<Pick<ApiReferenceConfigurationRaw, 'generateHeadingSlug' | 'generateTagSlug' | 'generateOperationSlug' | 'generateWebhookSlug' | 'generateModelSlug' | 'operationsSorter' | 'tagsSorter' | 'hideModels' | 'operationTitleSource'>> | undefined;
3
+ export type NavigationOptions = Partial<Pick<ApiReferenceConfigurationRaw, 'generateHeadingSlug' | 'generateTagSlug' | 'generateOperationSlug' | 'generateWebhookSlug' | 'generateModelSlug' | 'operationsSorter' | 'tagsSorter' | 'hideModels' | 'modelsSectionLabel' | 'operationTitleSource'>> | undefined;
4
4
  /**
5
5
  * Returns options for traversing an OpenAPI document, allowing customization of
6
6
  * how IDs and slugs are generated for tags, headings, models, operations, and webhooks.
@@ -1 +1 @@
1
- {"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,EAAE,UAAU,iBAAiB,KAAG,mBAkHxF,CAAA"}
1
+ {"version":3,"file":"get-navigation-options.d.ts","sourceRoot":"","sources":["../../src/navigation/get-navigation-options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,4BAA4B,EAAgC,MAAM,6BAA6B,CAAA;AAE7G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,MAAM,MAAM,iBAAiB,GACzB,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,oBAAoB,GACpB,sBAAsB,CACzB,CACF,GACD,SAAS,CAAA;AAEb;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,EAAE,UAAU,iBAAiB,KAAG,mBA6IxF,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import { slugify } from '@scalar/helpers/string/slugify';
2
+ import { DEFAULT_MODELS_SECTION_LABEL } from '@scalar/types/api-reference';
2
3
  /**
3
4
  * Returns options for traversing an OpenAPI document, allowing customization of
4
5
  * how IDs and slugs are generated for tags, headings, models, operations, and webhooks.
5
6
  * The returned options can be influenced by the provided DocumentConfiguration
6
7
  */
7
8
  export const getNavigationOptions = (documentName, options) => {
9
+ const modelsSectionLabel = options?.modelsSectionLabel ?? DEFAULT_MODELS_SECTION_LABEL;
10
+ const modelsSectionSlug = slugify(modelsSectionLabel);
8
11
  const generateId = (props) => {
9
12
  const documentId = slugify(documentName);
10
13
  // -------- Default text id generation logic --------
@@ -27,6 +30,25 @@ export const getNavigationOptions = (documentName, options) => {
27
30
  }
28
31
  return `${documentId}/${tagPrefix}/${slugify(props.tag.name ?? '')}`;
29
32
  }
33
+ // -------- Default AsyncAPI channel id generation logic --------
34
+ if (props.type === 'asyncapi-channel') {
35
+ const prefixTag = props.parentTag
36
+ ? `${generateId({
37
+ type: 'tag',
38
+ tag: props.parentTag.tag,
39
+ parentId: props.parentTag.id,
40
+ })}/`
41
+ : `${documentId}/`;
42
+ return `${prefixTag}asyncapi-channel/${slugify(props.channelName)}`;
43
+ }
44
+ // -------- Default AsyncAPI message id generation logic --------
45
+ if (props.type === 'asyncapi-message') {
46
+ return `${props.parentId}/asyncapi-message/${slugify(props.messageName)}`;
47
+ }
48
+ // -------- Default AsyncAPI operation id generation logic --------
49
+ if (props.type === 'asyncapi-operation') {
50
+ return `${props.parentId}/asyncapi-operation/${slugify(props.operationName)}`;
51
+ }
30
52
  // -------- Default operation id generation logic --------
31
53
  if (props.type === 'operation') {
32
54
  const prefixTag = props.parentTag
@@ -66,7 +88,7 @@ export const getNavigationOptions = (documentName, options) => {
66
88
  // -------- Default model id generation logic --------
67
89
  if (props.type === 'model') {
68
90
  if (!props.name) {
69
- return `${documentId}/models`;
91
+ return `${documentId}/${modelsSectionSlug}`;
70
92
  }
71
93
  const prefixTag = props.parentTag
72
94
  ? `${generateId({
@@ -76,11 +98,11 @@ export const getNavigationOptions = (documentName, options) => {
76
98
  })}/`
77
99
  : `${documentId}/`;
78
100
  if (options?.generateModelSlug) {
79
- return `${prefixTag}model/${options.generateModelSlug({
101
+ return `${prefixTag}${modelsSectionSlug}/${options.generateModelSlug({
80
102
  name: props.name,
81
103
  })}`;
82
104
  }
83
- return `${prefixTag}model/${slugify(props.name, { preserveCase: true })}`;
105
+ return `${prefixTag}${modelsSectionSlug}/${slugify(props.name, { preserveCase: true })}`;
84
106
  }
85
107
  if (props.type === 'example') {
86
108
  return `${props.parentId}/example/${slugify(props.name)}`;
@@ -94,6 +116,7 @@ export const getNavigationOptions = (documentName, options) => {
94
116
  };
95
117
  return {
96
118
  hideModels: options?.hideModels ?? false,
119
+ modelsSectionLabel,
97
120
  operationsSorter: options?.operationsSorter,
98
121
  tagsSorter: options?.tagsSorter,
99
122
  operationTitleSource: options?.operationTitleSource,
@@ -0,0 +1,23 @@
1
+ import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
2
+ import { type NavigationOptions } from '../../navigation/get-navigation-options.js';
3
+ import type { TraversedDocument } from '../../schemas/navigation.js';
4
+ /** AsyncAPI document plus Scalar navigation extensions written during traversal. */
5
+ type AsyncApiDocumentWithNavigationExtensions = AsyncApiDocument & {
6
+ 'x-scalar-order'?: string[];
7
+ 'x-scalar-icon'?: string;
8
+ };
9
+ /**
10
+ * Entry point: walks an AsyncAPI document and produces the sidebar tree.
11
+ *
12
+ * High-level flow:
13
+ * 1. `collectChannelBuckets` — resolve refs, group operations by channel, collect channel tags.
14
+ * 2. For each bucket — build the channel entry at the document root with all of its operations.
15
+ * 3. Apply channel-level tags so a channel can also appear under each of its tags.
16
+ * 4. Sort tags and top-level entries, then persist `x-scalar-order` on the document for stable ordering.
17
+ *
18
+ * Operation-level tags are intentionally not used to group channels yet; only channel-level
19
+ * tags drive tag grouping.
20
+ */
21
+ export declare const traverseAsyncApiDocument: (documentName: string, document: AsyncApiDocumentWithNavigationExtensions, options?: NavigationOptions) => TraversedDocument;
22
+ export {};
23
+ //# sourceMappingURL=traverse-asyncapi-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traverse-asyncapi-document.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-asyncapi-document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyB,gBAAgB,EAA2B,MAAM,4BAA4B,CAAA;AAKlH,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,qCAAqC,CAAA;AAOlG,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,sBAAsB,CAAA;AAM7B,oFAAoF;AACpF,KAAK,wCAAwC,GAAG,gBAAgB,GAAG;IACjE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAkiBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,GACnC,cAAc,MAAM,EACpB,UAAU,wCAAwC,EAClD,UAAU,iBAAiB,KAC1B,iBA+HF,CAAA"}