@scalar/workspace-store 0.71.1 → 0.73.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 (52) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/client.d.ts +8 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +90 -30
  5. package/dist/entities/auth/schema.d.ts +100 -20
  6. package/dist/entities/auth/schema.d.ts.map +1 -1
  7. package/dist/mutators/auth.d.ts.map +1 -1
  8. package/dist/navigation/helpers/traverse-plugin-document.d.ts +11 -0
  9. package/dist/navigation/helpers/traverse-plugin-document.d.ts.map +1 -0
  10. package/dist/navigation/helpers/traverse-plugin-document.js +24 -0
  11. package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
  12. package/dist/navigation/helpers/update-order-ids.js +2 -1
  13. package/dist/navigation/index.d.ts +1 -0
  14. package/dist/navigation/index.d.ts.map +1 -1
  15. package/dist/navigation/index.js +1 -0
  16. package/dist/plugins/bundler/code-sample-sources.d.ts +10 -0
  17. package/dist/plugins/bundler/code-sample-sources.d.ts.map +1 -0
  18. package/dist/plugins/bundler/code-sample-sources.js +174 -0
  19. package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
  20. package/dist/plugins/bundler/openapi-document.js +2 -4
  21. package/dist/schemas/extensions/operation/x-code-samples.d.ts +31 -10
  22. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  23. package/dist/schemas/extensions/operation/x-code-samples.js +2 -2
  24. package/dist/schemas/navigation.d.ts +32 -1
  25. package/dist/schemas/navigation.d.ts.map +1 -1
  26. package/dist/schemas/navigation.js +7 -0
  27. package/dist/schemas/plugin-document.d.ts +67 -0
  28. package/dist/schemas/plugin-document.d.ts.map +1 -0
  29. package/dist/schemas/plugin-document.js +20 -0
  30. package/dist/schemas/reference-config/index.d.ts +20 -4
  31. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  32. package/dist/schemas/reference-config/settings.d.ts +20 -4
  33. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  34. package/dist/schemas/type-guards.d.ts +4 -2
  35. package/dist/schemas/type-guards.d.ts.map +1 -1
  36. package/dist/schemas/type-guards.js +7 -4
  37. package/dist/schemas/v3.1/strict/openapi-document.d.ts +700 -140
  38. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  39. package/dist/schemas/v3.1/strict/operation.d.ts +12 -4
  40. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  41. package/dist/schemas/v3.2/strict/openapi-document.d.ts +700 -140
  42. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  43. package/dist/schemas/v3.2/strict/operation.d.ts +12 -4
  44. package/dist/schemas/v3.2/strict/operation.d.ts.map +1 -1
  45. package/dist/schemas/workspace.d.ts +2 -1
  46. package/dist/schemas/workspace.d.ts.map +1 -1
  47. package/dist/schemas.d.ts +1 -0
  48. package/dist/schemas.d.ts.map +1 -1
  49. package/dist/schemas.js +1 -0
  50. package/dist/server.d.ts.map +1 -1
  51. package/dist/server.js +13 -3
  52. package/package.json +9 -9
@@ -334,7 +334,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
334
334
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
335
335
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
336
336
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
337
- source: import("@scalar/typebox").TString;
337
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
338
+ $ref: import("@scalar/typebox").TString;
339
+ }>]>;
338
340
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
339
341
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
340
342
  }>>>;
@@ -342,7 +344,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
342
344
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
343
345
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
344
346
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
345
- source: import("@scalar/typebox").TString;
347
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
348
+ $ref: import("@scalar/typebox").TString;
349
+ }>]>;
346
350
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
347
351
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
348
352
  }>>>;
@@ -350,7 +354,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
350
354
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
351
355
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
352
356
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
353
- source: import("@scalar/typebox").TString;
357
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
358
+ $ref: import("@scalar/typebox").TString;
359
+ }>]>;
354
360
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
355
361
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
356
362
  }>>>;
@@ -378,7 +384,9 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
378
384
  lang: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
379
385
  label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
380
386
  group: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
381
- source: import("@scalar/typebox").TString;
387
+ source: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
388
+ $ref: import("@scalar/typebox").TString;
389
+ }>]>;
382
390
  example: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
383
391
  contentType: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
384
392
  }>>>;
@@ -1925,6 +1933,14 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1925
1933
  type: import("@scalar/typebox").TLiteral<"models">;
1926
1934
  name: import("@scalar/typebox").TString;
1927
1935
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1936
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1937
+ id: import("@scalar/typebox").TString;
1938
+ title: import("@scalar/typebox").TString;
1939
+ }>, import("@scalar/typebox").TObject<{
1940
+ type: import("@scalar/typebox").TLiteral<"plugin">;
1941
+ documentType: import("@scalar/typebox").TString;
1942
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1943
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1928
1944
  }>]>]>;
1929
1945
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1930
1946
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AE,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
@@ -5,13 +5,15 @@ import type { OpenApiDocument } from './v3.2/strict/openapi-document.js';
5
5
  *
6
6
  * Discriminated by the required `openapi` string field on OAS documents. Accepts `unknown`
7
7
  * so it can narrow at any call site (e.g., workspace lookups typed as `WorkspaceDocument`,
8
- * or broader contexts that mix documents with the workspace itself).
8
+ * or broader contexts that mix documents with the workspace itself). Documents claimed by a registered
9
+ * document type are excluded, whatever fields they carry.
9
10
  */
10
11
  export declare const isOpenApiDocument: (value: unknown) => value is OpenApiDocument;
11
12
  /**
12
13
  * Narrow a value to an AsyncAPI document.
13
14
  *
14
- * Discriminated by the required `asyncapi` string field on AsyncAPI documents.
15
+ * Discriminated by the required `asyncapi` string field on AsyncAPI documents. Documents claimed by a
16
+ * registered document type are excluded, whatever fields they carry.
15
17
  */
16
18
  export declare const isAsyncApiDocument: (value: unknown) => value is AsyncApiDocument;
17
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../src/schemas/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eACgB,CAAA;AAE5E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,KAAK,IAAI,gBACiB,CAAA;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,SAAS,GAAG,UAAU,GAAG,SAUzE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,iBAAkB,SAAS,GAAG,UAAU,GAAG,SAAS,KAAG,MAClC,CAAA"}
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../src/schemas/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAGlE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eAC4C,CAAA;AAExG;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,OAAO,KAAG,KAAK,IAAI,gBAC6C,CAAA;AAE1G;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,SAAS,GAAG,UAAU,GAAG,SAUzE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,iBAAkB,SAAS,GAAG,UAAU,GAAG,SAAS,KAAG,MAClC,CAAA"}
@@ -1,18 +1,21 @@
1
1
  import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { isPluginDocument } from './plugin-document.js';
2
3
  /**
3
4
  * Narrow a value to an OpenAPI document.
4
5
  *
5
6
  * Discriminated by the required `openapi` string field on OAS documents. Accepts `unknown`
6
7
  * so it can narrow at any call site (e.g., workspace lookups typed as `WorkspaceDocument`,
7
- * or broader contexts that mix documents with the workspace itself).
8
+ * or broader contexts that mix documents with the workspace itself). Documents claimed by a registered
9
+ * document type are excluded, whatever fields they carry.
8
10
  */
9
- export const isOpenApiDocument = (value) => isObject(value) && 'openapi' in value && typeof value.openapi === 'string';
11
+ export const isOpenApiDocument = (value) => isObject(value) && 'openapi' in value && typeof value.openapi === 'string' && !isPluginDocument(value);
10
12
  /**
11
13
  * Narrow a value to an AsyncAPI document.
12
14
  *
13
- * Discriminated by the required `asyncapi` string field on AsyncAPI documents.
15
+ * Discriminated by the required `asyncapi` string field on AsyncAPI documents. Documents claimed by a
16
+ * registered document type are excluded, whatever fields they carry.
14
17
  */
15
- export const isAsyncApiDocument = (value) => isObject(value) && 'asyncapi' in value && typeof value.asyncapi === 'string';
18
+ export const isAsyncApiDocument = (value) => isObject(value) && 'asyncapi' in value && typeof value.asyncapi === 'string' && !isPluginDocument(value);
16
19
  /**
17
20
  * Identify the document type of a value.
18
21
  *