@scalar/cli 2.8.0 → 2.10.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 (94) hide show
  1. package/README.md +281 -65
  2. package/chunks/action-4GZI2M5B.js +62 -0
  3. package/chunks/action-4W5GUGEG.js +63 -0
  4. package/chunks/{action-FCAYFPVR.js → action-5LF4XYHX.js} +10 -7
  5. package/chunks/{action-XIUO64C7.js → action-5N3P43MD.js} +17 -12
  6. package/chunks/{action-Y7OUGD56.js → action-5RL4NWUZ.js} +17 -17
  7. package/chunks/{action-LXGXKXZZ.js → action-657A4K2D.js} +16 -16
  8. package/chunks/{action-EOAVVL52.js → action-7XOHYWYM.js} +11 -14
  9. package/chunks/{action-AQRPFQKI.js → action-CABLS46Q.js} +9 -7
  10. package/chunks/{action-F7A2K74G.js → action-CB55NWAU.js} +9 -13
  11. package/chunks/{action-5SK5NE7E.js → action-DKDRAIKV.js} +11 -14
  12. package/chunks/{action-7PEQXDWT.js → action-DTEO4YNX.js} +127 -20
  13. package/chunks/{action-UIKH4SZX.js → action-EAUTQ77U.js} +27 -23
  14. package/chunks/{action-YLF2G4G5.js → action-FBRY5JKU.js} +16 -16
  15. package/chunks/{action-VOFDW3U2.js → action-GFLRD7LO.js} +6 -5
  16. package/chunks/{action-GWXLHL2Z.js → action-GWYYTUTM.js} +4 -3
  17. package/chunks/{action-6BYGBXRC.js → action-HT42NUUX.js} +27 -22
  18. package/chunks/action-JEYDBB3P.js +147 -0
  19. package/chunks/{action-LLH4QPXM.js → action-KDUFU7TZ.js} +11 -13
  20. package/chunks/{action-W3C53GPH.js → action-LYCNT3KA.js} +29 -10
  21. package/chunks/{action-CA4QYPI6.js → action-OJ2NK25F.js} +4 -8
  22. package/chunks/{action-NVI5DWFP.js → action-PAM2EZ22.js} +4 -8
  23. package/chunks/action-PPTFYZWD.js +1552 -0
  24. package/chunks/{action-43YBNBDR.js → action-R4PGILN4.js} +28 -24
  25. package/chunks/{action-QQZLPI42.js → action-TOBU74JH.js} +23 -19
  26. package/chunks/action-U2L5DCFG.js +91 -0
  27. package/chunks/{action-H6OUJWWM.js → action-UUL6SWV4.js} +11 -14
  28. package/chunks/{action-354TUG4H.js → action-X7BA7PQQ.js} +10 -8
  29. package/chunks/{action-WFDNRA7D.js → action-XLE37MZL.js} +16 -16
  30. package/chunks/{action-Y6NXJQ4H.js → action-XOADBXSX.js} +16 -12
  31. package/chunks/{action-LEUD5P2U.js → action-YSVTZVKV.js} +36 -17
  32. package/chunks/{action-YRX6SN5F.js → action-ZFI77WA5.js} +8 -6
  33. package/chunks/{action-HT2DJ34Z.js → action-ZKA3RR3S.js} +15 -11
  34. package/chunks/{actions-OGIVBQC7.js → actions-3SAMH7A5.js} +41 -17
  35. package/chunks/{agent-ASPV3R5U.js → agent-2ESZI7NO.js} +7 -5
  36. package/chunks/{asyncapi-QNFKXHEI.js → asyncapi-4HGVM3PR.js} +14 -10
  37. package/chunks/{build.action-NM6CAE5F.js → build.action-VBGFGACM.js} +19 -17
  38. package/chunks/chunk-35Z7VTJT.js +453 -0
  39. package/chunks/chunk-36LXIJIZ.js +52 -0
  40. package/chunks/{chunk-KKRGBXCE.js → chunk-43WALAW3.js} +248 -103
  41. package/chunks/{chunk-C2KAWRIX.js → chunk-5ENKYZA4.js} +1 -1
  42. package/chunks/{chunk-GTV2BVXV.js → chunk-5SMP756H.js} +2 -2
  43. package/chunks/{chunk-5JLVQVKO.js → chunk-6M7TL2G2.js} +146 -148
  44. package/chunks/chunk-6PSYZO3U.js +24 -0
  45. package/chunks/{chunk-EXY3ZTV4.js → chunk-ATNTXKMS.js} +36 -274
  46. package/chunks/{chunk-PH3WFNXJ.js → chunk-BIMLCGKS.js} +1 -1
  47. package/chunks/{chunk-HGOD6THU.js → chunk-CWVYOXXM.js} +2 -19
  48. package/chunks/chunk-DFOZG7ZV.js +15 -0
  49. package/chunks/chunk-DHZW7Q7U.js +133 -0
  50. package/chunks/{chunk-R5LK6VPY.js → chunk-G4HRW2FZ.js} +13 -20
  51. package/chunks/{chunk-KCCFN4F7.js → chunk-GLWTVLKM.js} +29 -29
  52. package/chunks/{chunk-5UHLAJQD.js → chunk-GYRQPDTK.js} +24 -10
  53. package/chunks/chunk-H467HDVV.js +24 -0
  54. package/chunks/chunk-IPZP3VRA.js +327 -0
  55. package/chunks/{chunk-2OCWX42S.js → chunk-JXGF5EHC.js} +152 -18
  56. package/chunks/chunk-K2HIB5BA.js +92 -0
  57. package/chunks/{chunk-FDC2IESH.js → chunk-KHF2QXBG.js} +1352 -8327
  58. package/chunks/{chunk-IMG35UXX.js → chunk-KZNRQVMY.js} +1 -1
  59. package/chunks/{chunk-OJ2EWIJH.js → chunk-MC4EMNOR.js} +5 -1
  60. package/chunks/{chunk-YILQODZF.js → chunk-MMWSCTDB.js} +7 -4
  61. package/chunks/{chunk-6XWCMJDB.js → chunk-MNNGUUKJ.js} +12 -11
  62. package/chunks/chunk-NAC63XJF.js +10 -0
  63. package/chunks/{chunk-XXSQUBXS.js → chunk-UDBSV3CK.js} +107 -453
  64. package/chunks/{chunk-IKT5F47M.js → chunk-VVRUSQCY.js} +11 -11
  65. package/chunks/{chunk-BPGFSSUH.js → chunk-VYFGRLVQ.js} +1 -1
  66. package/chunks/{chunk-UXJ753NV.js → chunk-WB6PWTMU.js} +5 -13
  67. package/chunks/{chunk-5DEU2DVL.js → chunk-WDIWLXLV.js} +3 -15
  68. package/chunks/{chunk-6YPQGVF4.js → chunk-WIEXQUTD.js} +1 -1
  69. package/chunks/{chunk-W24BETFG.js → chunk-XAGJJNQW.js} +3 -3
  70. package/chunks/{chunk-22HYZ7LE.js → chunk-ZGNDXPLU.js} +3 -3
  71. package/chunks/{chunk-XEDGMZJD.js → chunk-ZGVZU6L2.js} +81 -25
  72. package/chunks/{chunk-L3UXDCBI.js → chunk-ZKJPLWRJ.js} +2 -2
  73. package/chunks/{chunk-MLSZVVTT.js → chunk-ZYBLQ5CT.js} +13 -7
  74. package/chunks/{create.action-FUQ2BVJA.js → create.action-DBNIS665.js} +19 -17
  75. package/chunks/{delete.action-BTDFH7WY.js → delete.action-GBOZC45K.js} +19 -17
  76. package/chunks/{delete.action-47E66R3I.js → delete.action-K7BLK7DK.js} +19 -17
  77. package/chunks/{get.action-XC7KC2JO.js → get.action-N3JOY3OU.js} +17 -12
  78. package/chunks/get.action-QHKMYZBK.js +91 -0
  79. package/chunks/{list.action-LXKEUYKO.js → list.action-6SSO3JVN.js} +45 -15
  80. package/chunks/{list.action-OFGLMRE7.js → list.action-TJCS6UEY.js} +39 -19
  81. package/chunks/{publish.action-OS27XOX4.js → publish.action-T24VHRMR.js} +27 -22
  82. package/chunks/query-WKATAJJ6.js +129 -0
  83. package/chunks/scripts-VIBLGKYG.js +102 -0
  84. package/chunks/{update.action-ZMS4CQ3T.js → update.action-OGYNBXRU.js} +23 -18
  85. package/chunks/{update.action-AEIBLCWD.js → update.action-VOE6PH5F.js} +23 -18
  86. package/docs.html +941 -209
  87. package/index.js +374 -182
  88. package/package.json +14 -13
  89. package/skills/scalar-cli/SKILL.md +7 -1
  90. package/template.md +148 -26
  91. package/chunks/action-JAHFRYWZ.js +0 -423
  92. package/chunks/action-KTYOCA2V.js +0 -229
  93. package/chunks/chunk-K74E42RV.js +0 -7311
  94. package/chunks/chunk-QVQ4PNVL.js +0 -610
@@ -4,7 +4,6 @@ import {
4
4
  WaitlistSources,
5
5
  accessGroupSchema,
6
6
  identityProviderRecordSchema,
7
- identityProviders,
8
7
  linkedRepositorySchema,
9
8
  loginPortalSchema,
10
9
  managedSchema,
@@ -15,27 +14,21 @@ import {
15
14
  webhookSubscriptionSchema,
16
15
  workspaceSchema,
17
16
  workspaceVersionSchema
18
- } from "./chunk-KKRGBXCE.js";
17
+ } from "./chunk-43WALAW3.js";
19
18
  import {
20
19
  userSchema
21
- } from "./chunk-MLSZVVTT.js";
20
+ } from "./chunk-ZYBLQ5CT.js";
22
21
  import {
23
22
  sdkSchema
24
- } from "./chunk-FDC2IESH.js";
23
+ } from "./chunk-IPZP3VRA.js";
25
24
  import {
26
25
  generateAccessByPersonalToken,
27
26
  getAuthData,
28
- oauthAuthorizationRequestViewSchema,
29
- oauthAuthorizeResultSchema,
30
- oauthClientCreatedSchema,
31
- oauthClientListItemSchema,
32
- oauthDecisionResultSchema,
33
- oauthTokenResponseSchema,
34
27
  refreshToken
35
- } from "./chunk-QVQ4PNVL.js";
28
+ } from "./chunk-35Z7VTJT.js";
36
29
  import {
37
30
  config
38
- } from "./chunk-UXJ753NV.js";
31
+ } from "./chunk-WB6PWTMU.js";
39
32
  import {
40
33
  UnifiedDocsMigrationStatus,
41
34
  pendingInviteSchema,
@@ -44,40 +37,51 @@ import {
44
37
  teamNameSchema,
45
38
  teamSdkPricing,
46
39
  userRefSchema
47
- } from "./chunk-5UHLAJQD.js";
40
+ } from "./chunk-GYRQPDTK.js";
48
41
  import {
49
42
  docsProjectSchema,
50
43
  githubInstallSchema,
51
44
  githubProjectSchema,
52
- projectSchema,
53
45
  themeSchema
54
- } from "./chunk-5JLVQVKO.js";
46
+ } from "./chunk-6M7TL2G2.js";
55
47
  import {
56
48
  managedDocSchema,
57
49
  managedDocVersionSchema,
58
50
  ruleSchema
59
- } from "./chunk-KCCFN4F7.js";
51
+ } from "./chunk-GLWTVLKM.js";
60
52
  import {
61
53
  docInstanceSchema,
62
54
  docSourceSchema,
63
55
  docVersionRecordSchema,
64
56
  registryGitBindingSchema,
65
57
  registryPublishRecordSchema
66
- } from "./chunk-6XWCMJDB.js";
58
+ } from "./chunk-MNNGUUKJ.js";
67
59
  import {
68
60
  mcpInstallationSchema,
69
61
  mcpServerSchema
70
- } from "./chunk-XEDGMZJD.js";
62
+ } from "./chunk-ZGVZU6L2.js";
71
63
  import {
72
64
  external_exports,
73
- nanoid,
74
65
  nanoidSchema,
75
66
  schemaModel,
76
67
  slugSchema
77
- } from "./chunk-IKT5F47M.js";
68
+ } from "./chunk-VVRUSQCY.js";
78
69
 
79
70
  // ../../packages/service-api/dist/apis/access-groups.js
80
71
  function accessGroupsApiFactory(requestService) {
72
+ async function list() {
73
+ return await requestService.request({
74
+ url: "core/v1/access-groups",
75
+ method: "get",
76
+ schema: accessGroupSchema.pick({
77
+ uid: true,
78
+ name: true,
79
+ slug: true,
80
+ allowedDomains: true,
81
+ allowedEmails: true
82
+ }).array()
83
+ });
84
+ }
81
85
  async function get(slug) {
82
86
  return await requestService.request({
83
87
  url: `core/v1/access-groups/${slug}`,
@@ -147,6 +151,7 @@ function accessGroupsApiFactory(requestService) {
147
151
  });
148
152
  }
149
153
  return {
154
+ list,
150
155
  get,
151
156
  create,
152
157
  update,
@@ -381,8 +386,8 @@ function compactPublishBody(body) {
381
386
  if (encodedBytes(JSON.stringify(body)) <= PUBLISH_BODY_LIMIT_BYTES)
382
387
  return { body, minified: false };
383
388
  JSON.parse(body.document);
384
- const document2 = minifyJson(body.document);
385
- return document2.length < body.document.length ? { body: { ...body, document: document2 }, minified: true } : { body, minified: false };
389
+ const document = minifyJson(body.document);
390
+ return document.length < body.document.length ? { body: { ...body, document }, minified: true } : { body, minified: false };
386
391
  } catch {
387
392
  return { body, minified: false };
388
393
  }
@@ -783,84 +788,6 @@ function mcpServersApiFactory(requestService) {
783
788
  };
784
789
  }
785
790
 
786
- // ../../packages/service-api/dist/apis/oauth.js
787
- function oauthApiFactory(requestService) {
788
- async function createAuthorizationRequest(params) {
789
- return await requestService.request({
790
- url: "core/oauth/requests",
791
- method: "post",
792
- data: params,
793
- disableAuth: true,
794
- schema: oauthAuthorizeResultSchema
795
- });
796
- }
797
- async function getAuthorizationRequest(uid) {
798
- return await requestService.request({
799
- url: `core/oauth/requests/${uid}`,
800
- method: "get",
801
- schema: oauthAuthorizationRequestViewSchema
802
- });
803
- }
804
- async function decideAuthorizationRequest(uid, accept) {
805
- return await requestService.request({
806
- url: `core/oauth/requests/${uid}/decision`,
807
- method: "post",
808
- data: { accept },
809
- schema: oauthDecisionResultSchema
810
- });
811
- }
812
- async function token(params) {
813
- return await requestService.request({
814
- url: "core/oauth/token",
815
- method: "post",
816
- data: params,
817
- disableAuth: true,
818
- schema: oauthTokenResponseSchema
819
- });
820
- }
821
- async function revoke(params) {
822
- return await requestService.request({
823
- url: "core/oauth/revoke",
824
- method: "post",
825
- data: params,
826
- disableAuth: true,
827
- schema: external_exports.null()
828
- });
829
- }
830
- async function createClient2(data) {
831
- return await requestService.request({
832
- url: "core/teams/oauth-clients",
833
- method: "post",
834
- data,
835
- schema: oauthClientCreatedSchema
836
- });
837
- }
838
- async function listClients() {
839
- return await requestService.request({
840
- url: "core/teams/oauth-clients",
841
- method: "get",
842
- schema: external_exports.array(oauthClientListItemSchema)
843
- });
844
- }
845
- async function deleteClient({ uid }) {
846
- return await requestService.request({
847
- url: `core/teams/oauth-clients/${uid}`,
848
- method: "delete",
849
- schema: external_exports.null()
850
- });
851
- }
852
- return {
853
- createAuthorizationRequest,
854
- getAuthorizationRequest,
855
- decideAuthorizationRequest,
856
- token,
857
- revoke,
858
- createClient: createClient2,
859
- listClients,
860
- deleteClient
861
- };
862
- }
863
-
864
791
  // ../../packages/service-api/dist/apis/registry-git.js
865
792
  var commitSchema = external_exports.object({
866
793
  sha: external_exports.string(),
@@ -1828,42 +1755,13 @@ function requestServiceFactory(baseUrl, getAuthToken, logger = console) {
1828
1755
 
1829
1756
  // ../../packages/service-api/dist/apis/auth.js
1830
1757
  function authApiFactory(requestService) {
1831
- async function requestPasswordReset(email) {
1832
- return await requestService.request({
1833
- url: "core/login/request-password-reset",
1834
- method: "post",
1835
- data: {
1836
- email,
1837
- clientId: nanoid()
1838
- },
1839
- schema: external_exports.null(),
1840
- disableAuth: true
1841
- });
1842
- }
1843
- async function resetPassword(password, clientId, resetToken) {
1844
- return await requestService.request({
1845
- url: "core/login/reset-password",
1846
- method: "post",
1847
- data: {
1848
- clientId,
1849
- resetToken,
1850
- password
1851
- },
1852
- disableAuth: true,
1853
- schema: external_exports.object({
1854
- accessToken: external_exports.string(),
1855
- refreshToken: external_exports.string()
1856
- })
1857
- });
1858
- }
1859
- async function generatePersonalToken({ name, description, refreshToken: refreshToken2 }) {
1758
+ async function generatePersonalToken({ name, description }) {
1860
1759
  return await requestService.request({
1861
1760
  url: "core/login/personal-token/generate",
1862
1761
  method: "post",
1863
1762
  data: {
1864
1763
  name,
1865
- description,
1866
- refreshToken: refreshToken2
1764
+ description
1867
1765
  },
1868
1766
  schema: external_exports.object({
1869
1767
  uid: external_exports.string(),
@@ -1930,35 +1828,7 @@ function authApiFactory(requestService) {
1930
1828
  schema: external_exports.null()
1931
1829
  });
1932
1830
  }
1933
- async function initiateSaml(data) {
1934
- return await requestService.request({
1935
- url: "core/saml/initiate",
1936
- method: "post",
1937
- data,
1938
- schema: external_exports.object({
1939
- options: external_exports.object({
1940
- loginUrl: external_exports.url(),
1941
- provider: external_exports.enum(identityProviders),
1942
- teamSlug: slugSchema
1943
- }).array()
1944
- })
1945
- });
1946
- }
1947
- async function changePassword({ oldPassword, newPassword }) {
1948
- return await requestService.request({
1949
- url: "core/login/change-password",
1950
- method: "post",
1951
- data: {
1952
- oldPassword,
1953
- newPassword
1954
- },
1955
- schema: external_exports.null()
1956
- });
1957
- }
1958
1831
  return {
1959
- requestPasswordReset,
1960
- resetPassword,
1961
- changePassword,
1962
1832
  // Personal tokens
1963
1833
  generatePersonalToken,
1964
1834
  getAccessTokenByPersonalToken,
@@ -1968,9 +1838,7 @@ function authApiFactory(requestService) {
1968
1838
  getIdentityProvider,
1969
1839
  createIdentityProvider,
1970
1840
  updateIdentityProvider,
1971
- deleteIdentityProvider,
1972
- // SAML
1973
- initiateSaml
1841
+ deleteIdentityProvider
1974
1842
  };
1975
1843
  }
1976
1844
 
@@ -2052,13 +1920,16 @@ function docsProjectApiFactory(requestService) {
2052
1920
  const query = new URLSearchParams();
2053
1921
  if (params?.limit !== void 0)
2054
1922
  query.set("limit", String(params.limit));
1923
+ if (params?.cursor !== void 0)
1924
+ query.set("cursor", params.cursor);
2055
1925
  const suffix = query.size ? `?${query.toString()}` : "";
2056
1926
  return await requestService.request({
2057
1927
  url: `core/docs-projects${suffix}`,
2058
1928
  method: "get",
2059
1929
  schema: external_exports.object({
2060
1930
  data: docsProjectSchema.array(),
2061
- hasMore: external_exports.boolean()
1931
+ hasMore: external_exports.boolean(),
1932
+ nextCursor: nanoidSchema.nullable().optional()
2062
1933
  })
2063
1934
  });
2064
1935
  }
@@ -2243,11 +2114,11 @@ var documentLintResponseSchema = external_exports.object({
2243
2114
  });
2244
2115
  function documentLintApiFactory(requestService) {
2245
2116
  return {
2246
- lint(document2) {
2117
+ lint(document) {
2247
2118
  return requestService.request({
2248
2119
  url: "core/managed-doc/lint",
2249
2120
  method: "post",
2250
- data: { document: document2 },
2121
+ data: { document },
2251
2122
  schema: documentLintResponseSchema,
2252
2123
  signal: AbortSignal.timeout(2e4)
2253
2124
  });
@@ -2543,40 +2414,6 @@ function githubApiFactory(requestService) {
2543
2414
  };
2544
2415
  }
2545
2416
 
2546
- // ../../packages/service-api/dist/apis/hocuspocus.js
2547
- function hocuspocusApiFactory(requestService) {
2548
- async function fetchDoc(name) {
2549
- return await requestService.request({
2550
- url: `hocuspocus/doc/${name}`,
2551
- method: "get",
2552
- schema: external_exports.any()
2553
- });
2554
- }
2555
- async function fetchReference(name) {
2556
- return await requestService.request({
2557
- url: `hocuspocus/doc/${name}`,
2558
- method: "get",
2559
- schema: external_exports.any()
2560
- });
2561
- }
2562
- async function fetchReferences(yjsRefs) {
2563
- return await requestService.request({
2564
- url: "hocuspocus/doc/batch",
2565
- method: "post",
2566
- data: {
2567
- items: yjsRefs.map((ref) => `reference-${ref}`),
2568
- parser: "reference"
2569
- },
2570
- schema: external_exports.record(external_exports.string(), external_exports.string().nullable())
2571
- });
2572
- }
2573
- return {
2574
- fetchDoc,
2575
- fetchReference,
2576
- fetchReferences
2577
- };
2578
- }
2579
-
2580
2417
  // ../../packages/service-api/dist/apis/image.js
2581
2418
  function imageApiFactory(requestService) {
2582
2419
  async function upload(file) {
@@ -2633,18 +2470,6 @@ function paymentApiFactory(requestService) {
2633
2470
 
2634
2471
  // ../../packages/service-api/dist/apis/project.js
2635
2472
  function projectApiFactory(requestService) {
2636
- async function createProject(name, hideGuide, hideReference) {
2637
- return await requestService.request({
2638
- url: "core/docs/create-project",
2639
- method: "post",
2640
- data: {
2641
- name,
2642
- hideGuide,
2643
- hideReference
2644
- },
2645
- schema: projectSchema
2646
- });
2647
- }
2648
2473
  async function updateProject(projectUid, data) {
2649
2474
  return await requestService.request({
2650
2475
  url: "core/project/update",
@@ -2653,14 +2478,6 @@ function projectApiFactory(requestService) {
2653
2478
  schema: external_exports.null()
2654
2479
  });
2655
2480
  }
2656
- async function deleteProject(projectId) {
2657
- return await requestService.request({
2658
- url: "core/docs/delete-project",
2659
- method: "delete",
2660
- data: { projectId },
2661
- schema: external_exports.null()
2662
- });
2663
- }
2664
2481
  async function changeProjectPrivacy(projectUid, makePrivate) {
2665
2482
  return await requestService.request({
2666
2483
  url: "core/docs/project/change-privacy",
@@ -2669,21 +2486,8 @@ function projectApiFactory(requestService) {
2669
2486
  schema: external_exports.null()
2670
2487
  });
2671
2488
  }
2672
- async function createVersion(data) {
2673
- return await requestService.request({
2674
- url: "core/docs/version",
2675
- method: "post",
2676
- data,
2677
- schema: external_exports.object({
2678
- uid: nanoidSchema
2679
- })
2680
- });
2681
- }
2682
2489
  return {
2683
- createProject,
2684
- deleteProject,
2685
2490
  changeProjectPrivacy,
2686
- createVersion,
2687
2491
  updateProject
2688
2492
  };
2689
2493
  }
@@ -2743,18 +2547,6 @@ function publishApiFactory(requestService) {
2743
2547
  schema: external_exports.object({ publishUid: nanoidSchema })
2744
2548
  });
2745
2549
  }
2746
- async function publishWysiwyg(uid) {
2747
- return await requestService.request({
2748
- url: "publish-deploy/publish/wysiwyg",
2749
- method: "post",
2750
- data: {
2751
- uid
2752
- },
2753
- schema: external_exports.object({
2754
- publishUid: nanoidSchema
2755
- })
2756
- });
2757
- }
2758
2550
  async function publishTemplate({ slug, repository, branch, configPath }) {
2759
2551
  return await requestService.request({
2760
2552
  url: "publish-deploy/publish/template",
@@ -2903,43 +2695,15 @@ function publishApiFactory(requestService) {
2903
2695
  })
2904
2696
  });
2905
2697
  }
2906
- async function exportWysiwyg(uid, filename) {
2907
- const token = requestService.getAuthToken?.();
2908
- const url = `${requestService.baseUrl}/publish-deploy/export/wysiwyg`.replace(/([^:]\/)\/+/g, "$1");
2909
- const response = await fetch(url, {
2910
- method: "POST",
2911
- headers: {
2912
- "Content-Type": "application/json",
2913
- ...token ? { Authorization: `Bearer ${token}` } : {}
2914
- },
2915
- body: JSON.stringify({ uid })
2916
- });
2917
- if (!response.ok) {
2918
- const text = await response.text().catch(() => "Export failed");
2919
- return { error: true, message: text, status: response.status };
2920
- }
2921
- const blob = await response.blob();
2922
- const downloadUrl = URL.createObjectURL(blob);
2923
- const a = document.createElement("a");
2924
- a.href = downloadUrl;
2925
- a.download = filename ?? "project-export.zip";
2926
- document.body.appendChild(a);
2927
- a.click();
2928
- a.remove();
2929
- URL.revokeObjectURL(downloadUrl);
2930
- return { error: false };
2931
- }
2932
2698
  return {
2933
2699
  publishCli,
2934
2700
  publishDocsProject,
2935
2701
  publishGithub,
2936
2702
  publishTemplate,
2937
- publishWysiwyg,
2938
2703
  retryPublish,
2939
2704
  createPreviewSandbox,
2940
2705
  stopPreviewSandbox,
2941
2706
  getPreviewSandboxLog,
2942
- exportWysiwyg,
2943
2707
  checkDNSRecords,
2944
2708
  unpublish,
2945
2709
  deleteRecord,
@@ -3349,7 +3113,6 @@ var apiServiceFactory = (baseUrl, getAuthToken, getNewTokens) => {
3349
3113
  feedback: feedbackApiFactory(requestService),
3350
3114
  image: imageApiFactory(requestService),
3351
3115
  payment: paymentApiFactory(requestService),
3352
- hocuspocus: hocuspocusApiFactory(requestService),
3353
3116
  publish: publishApiFactory(requestService),
3354
3117
  github: githubApiFactory(requestService),
3355
3118
  bitbucket: bitbucketApiFactory(requestService),
@@ -3360,7 +3123,6 @@ var apiServiceFactory = (baseUrl, getAuthToken, getNewTokens) => {
3360
3123
  managedDocs: managedDocsApiFactory(requestService),
3361
3124
  managedSchemas: managedSchemasApiFactory(requestService),
3362
3125
  mcpServers: mcpServersApiFactory(requestService),
3363
- oauth: oauthApiFactory(requestService),
3364
3126
  rules: rulesApiFactory(requestService),
3365
3127
  registryGit: registryGitApiFactory(requestService),
3366
3128
  registryInstances: registryInstancesApiFactory(requestService),
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  registryUrl
4
- } from "./chunk-GTV2BVXV.js";
4
+ } from "./chunk-5SMP756H.js";
5
5
 
6
6
  // src/domains/registry/helpers/fetch.ts
7
7
  async function fetchFromRegistry(path, accessToken) {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
- detectManagedDocType
4
- } from "./chunk-KCCFN4F7.js";
3
+ safeNormalize
4
+ } from "./chunk-H467HDVV.js";
5
5
  import {
6
6
  isUrl
7
7
  } from "./chunk-4ORL4MST.js";
@@ -26,20 +26,6 @@ var printSpecificationBanner = (result) => {
26
26
  ).title(as.grey(`${pathsCount} paths, ${operationsCount} operations`)).print();
27
27
  };
28
28
 
29
- // src/domains/document/helpers/safe-normalize.ts
30
- import { normalize } from "@scalar/json-magic/helpers/normalize";
31
- var safeNormalize = (value) => {
32
- try {
33
- return normalize(value);
34
- } catch {
35
- return void 0;
36
- }
37
- };
38
-
39
- // src/domains/document/helpers/document-type.ts
40
- var isAsyncApiDocument = (document) => detectManagedDocType(document) === "asyncapi";
41
- var isAsyncApiContent = (content) => content.includes("asyncapi") && isAsyncApiDocument(safeNormalize(content));
42
-
43
29
  // src/domains/document/helpers/is-document.ts
44
30
  var isDocument = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
45
31
 
@@ -105,9 +91,6 @@ var loadOpenApiDocument = async (content) => {
105
91
 
106
92
  export {
107
93
  printSpecificationBanner,
108
- safeNormalize,
109
- isAsyncApiDocument,
110
- isAsyncApiContent,
111
94
  isDocument,
112
95
  getFileOrUrl,
113
96
  loadOpenApiDocument
@@ -0,0 +1,15 @@
1
+ import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+
3
+ // src/helpers/completion/metadata.ts
4
+ var paths = /* @__PURE__ */ new WeakMap();
5
+ var completeFiles = (command, args, options) => {
6
+ paths.set(command, { arguments: args, options });
7
+ };
8
+ var isFileArgument = (command, name) => paths.get(command)?.arguments.includes(name) ?? false;
9
+ var isFileOption = (command, name) => paths.get(command)?.options.includes(name) ?? false;
10
+
11
+ export {
12
+ completeFiles,
13
+ isFileArgument,
14
+ isFileOption
15
+ };
@@ -0,0 +1,133 @@
1
+ import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+
3
+ // package.json
4
+ var name = "@scalar/cli";
5
+ var version = "2.10.0";
6
+ var bin = {
7
+ scalar: "./dist/index.js",
8
+ "scalar-cli": "./dist/index.js"
9
+ };
10
+ var package_default = {
11
+ name,
12
+ description: "A command-line interface to work with OpenAPI files",
13
+ keywords: [
14
+ "scalar",
15
+ "openapi",
16
+ "swagger",
17
+ "cli"
18
+ ],
19
+ version,
20
+ author: "Copyright API Documentation Inc. 2026",
21
+ license: "UNLICENSED",
22
+ private: true,
23
+ engines: {
24
+ node: ">=24"
25
+ },
26
+ scripts: {
27
+ build: "tsx esbuild.ts",
28
+ "cli:link": "pnpm run build && npm unlink -g @scalar/cli && npm link",
29
+ dev: "pnpm build && dotenv -o -- pnpm start",
30
+ "generate:docs": "pnpm build && pnpm start readme generate --output README.md",
31
+ "package:portable": "tsx portable/build.ts",
32
+ start: "node dist-tar-unpack/index.js",
33
+ "test:cli": "NODE_ENV=INTEGRATION dotenv -o -- vitest --config test/vitest.config.ts test/**",
34
+ "test:portable": "vitest run --config portable/vitest.config.ts",
35
+ "test:unit": "vitest src portable",
36
+ "types:check": "tsc --noEmit"
37
+ },
38
+ type: "module",
39
+ exports: {
40
+ ".": {
41
+ import: "./dist/index.js",
42
+ types: "./dist/index.d.ts",
43
+ default: "./dist/index.js"
44
+ }
45
+ },
46
+ files: [
47
+ "dist"
48
+ ],
49
+ homepage: "https://github.com/scalar/scalar",
50
+ bugs: "https://github.com/scalar/scalar/issues/new/choose",
51
+ repository: {
52
+ type: "git",
53
+ url: "git+https://github.com/scalar/scalar.git",
54
+ directory: "projects/cli"
55
+ },
56
+ bin,
57
+ dependencies: {
58
+ "@clack/prompts": "catalog:*",
59
+ "@hono/node-server": "catalog:*",
60
+ "@quobix/vacuum": "catalog:*",
61
+ "@scalar-org/api-document-lint": "workspace:*",
62
+ "@scalar-org/css": "workspace:*",
63
+ "@scalar-org/entities": "workspace:*",
64
+ "@scalar-org/guide-render": "workspace:*",
65
+ "@scalar-org/helpers": "workspace:*",
66
+ "@scalar-org/mongobase-client": "workspace:*",
67
+ "@scalar-org/oauth": "workspace:*",
68
+ "@scalar-org/scalar-config": "workspace:*",
69
+ "@scalar-org/service-api": "workspace:*",
70
+ "@scalar-org/tokens": "workspace:*",
71
+ "@scalar-org/urls": "workspace:*",
72
+ "@scalar/asyncapi-upgrader": "catalog:scalar",
73
+ "@scalar/asyncapi-validator": "catalog:scalar",
74
+ "@scalar/json-magic": "catalog:scalar",
75
+ "@scalar/mock-server": "catalog:scalar",
76
+ "@scalar/openapi-to-markdown": "catalog:scalar",
77
+ "@scalar/openapi-upgrader": "catalog:scalar",
78
+ "@scalar/openapi-validator": "catalog:scalar",
79
+ "@scalar/postman-to-openapi": "catalog:scalar",
80
+ "@scalar/void-server": "catalog:scalar",
81
+ "@scalar/workspace-store": "catalog:scalar",
82
+ "@stoplight/spectral-core": "catalog:*",
83
+ "@stoplight/spectral-parsers": "catalog:*",
84
+ "@stoplight/spectral-ruleset-bundler": "catalog:*",
85
+ "@stoplight/spectral-rulesets": "catalog:*",
86
+ ansis: "catalog:*",
87
+ chokidar: "catalog:*",
88
+ commander: "catalog:*",
89
+ "console-table-printer": "catalog:*",
90
+ "get-port": "catalog:*",
91
+ hono: "catalog:*",
92
+ ignore: "catalog:*",
93
+ "jsonc-parser": "catalog:*",
94
+ nanoid: "catalog:*",
95
+ neverpanic: "catalog:*",
96
+ prettyjson: "catalog:*",
97
+ semver: "catalog:*",
98
+ "stdout-update": "catalog:*",
99
+ "tar-fs": "catalog:*",
100
+ undici: "catalog:*",
101
+ yaml: "catalog:*"
102
+ },
103
+ devDependencies: {
104
+ "@fastify/static": "catalog:*",
105
+ "@scalar-org/api-framework": "workspace:*",
106
+ "@scalar-org/mongobase": "workspace:*",
107
+ "@scalar-org/random-slug": "workspace:*",
108
+ "@scalar-org/ssg-docs": "workspace:*",
109
+ "@scalar-org/test-helpers": "workspace:*",
110
+ "@scalar/galaxy": "catalog:scalar",
111
+ "@scalar/helpers": "catalog:scalar",
112
+ "@scalar/openapi-types": "catalog:scalar",
113
+ "@scalar/themes": "catalog:scalar",
114
+ "@types/node": "catalog:*",
115
+ "@types/prettyjson": "catalog:*",
116
+ "@types/semver": "catalog:*",
117
+ "@types/tar-fs": "catalog:*",
118
+ esbuild: "catalog:*",
119
+ fastify: "catalog:*",
120
+ "remark-gfm": "catalog:*",
121
+ "remark-parse": "catalog:*",
122
+ "strip-ansi": "catalog:*",
123
+ unified: "catalog:*",
124
+ vite: "catalog:*"
125
+ }
126
+ };
127
+
128
+ export {
129
+ name,
130
+ version,
131
+ bin,
132
+ package_default
133
+ };