@scalar/cli 2.10.0 → 2.11.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 (99) hide show
  1. package/README.md +82 -1290
  2. package/chunks/{action-YSVTZVKV.js → action-25QMCP5G.js} +37 -26
  3. package/chunks/{action-X7BA7PQQ.js → action-2VF6LODL.js} +20 -18
  4. package/chunks/{action-5N3P43MD.js → action-5I4XDPPG.js} +16 -15
  5. package/chunks/action-6M5PTDF6.js +100 -0
  6. package/chunks/{action-PAM2EZ22.js → action-73ELLN3T.js} +8 -7
  7. package/chunks/{action-XOADBXSX.js → action-7H3AWCHX.js} +17 -16
  8. package/chunks/{action-KDUFU7TZ.js → action-BRSLSOE5.js} +19 -16
  9. package/chunks/{action-7XOHYWYM.js → action-CQQCKSNS.js} +13 -15
  10. package/chunks/action-D5QWDNQ2.js +65 -0
  11. package/chunks/{action-5RL4NWUZ.js → action-DQDHBOLJ.js} +33 -30
  12. package/chunks/{action-DKDRAIKV.js → action-EYPYQQVM.js} +13 -15
  13. package/chunks/{action-ZFI77WA5.js → action-FMA5ECUA.js} +10 -10
  14. package/chunks/{action-DTEO4YNX.js → action-GXDJLF2G.js} +13 -11
  15. package/chunks/{action-657A4K2D.js → action-HUICEXJZ.js} +26 -23
  16. package/chunks/action-IH6G77C5.js +38 -0
  17. package/chunks/{action-H3RTILLM.js → action-IIQMZVRJ.js} +1 -1
  18. package/chunks/action-IQM54ITT.js +164 -0
  19. package/chunks/{action-EAUTQ77U.js → action-J5TO3UJW.js} +26 -24
  20. package/chunks/{action-UUL6SWV4.js → action-KC3ZCNDR.js} +12 -14
  21. package/chunks/{action-HT42NUUX.js → action-L7TMS3Q3.js} +40 -38
  22. package/chunks/{action-GWYYTUTM.js → action-LAAHRDSR.js} +5 -5
  23. package/chunks/{action-5LF4XYHX.js → action-LR75GHBA.js} +12 -12
  24. package/chunks/{action-PPTFYZWD.js → action-MJMLQFLT.js} +12 -12
  25. package/chunks/action-NHU4CUKT.js +130 -0
  26. package/chunks/{action-4GZI2M5B.js → action-NKTFNFU7.js} +19 -17
  27. package/chunks/{action-CB55NWAU.js → action-NMW5WPD2.js} +9 -9
  28. package/chunks/{action-GFLRD7LO.js → action-OTPXODUE.js} +8 -8
  29. package/chunks/{action-R4PGILN4.js → action-RPCDNGCI.js} +47 -36
  30. package/chunks/{action-TOBU74JH.js → action-RQCXSJPZ.js} +51 -27
  31. package/chunks/{action-JEYDBB3P.js → action-SOYSVG67.js} +15 -15
  32. package/chunks/action-Y7EBKCUU.js +16 -0
  33. package/chunks/{action-XLE37MZL.js → action-YN4TE7TG.js} +23 -22
  34. package/chunks/{action-CABLS46Q.js → action-ZGNVWTHZ.js} +11 -11
  35. package/chunks/{action-4W5GUGEG.js → action-ZKKRPLDK.js} +20 -19
  36. package/chunks/{action-ZKA3RR3S.js → action-ZUZL7R3H.js} +18 -17
  37. package/chunks/{actions-3SAMH7A5.js → actions-S6K76HCW.js} +23 -20
  38. package/chunks/{agent-2ESZI7NO.js → agent-IRNEV4K5.js} +44 -9
  39. package/chunks/{asyncapi-4HGVM3PR.js → asyncapi-WQPIQMEZ.js} +13 -12
  40. package/chunks/{build.action-VBGFGACM.js → build.action-CLBVKFWD.js} +28 -26
  41. package/chunks/chunk-25XERWCE.js +1058 -0
  42. package/chunks/{chunk-35Z7VTJT.js → chunk-3RIUDHLG.js} +52 -38
  43. package/chunks/{chunk-ZYBLQ5CT.js → chunk-3TFOA64C.js} +9 -4
  44. package/chunks/{chunk-CWVYOXXM.js → chunk-4JKXZ5CF.js} +11 -7
  45. package/chunks/{chunk-XAGJJNQW.js → chunk-5L7V7RCH.js} +10 -10
  46. package/chunks/{chunk-KZNRQVMY.js → chunk-ALYM4ZB2.js} +1 -1
  47. package/chunks/chunk-AVZFSWPD.js +37 -0
  48. package/chunks/{chunk-GYRQPDTK.js → chunk-BQYVSPAI.js} +14 -2
  49. package/chunks/{chunk-UDBSV3CK.js → chunk-CSSTCHHF.js} +6083 -4167
  50. package/chunks/{chunk-ZGNDXPLU.js → chunk-DQD2753S.js} +3 -3
  51. package/chunks/{action-F2ZJNURT.js → chunk-EBNFCIKS.js} +7 -10
  52. package/chunks/{chunk-ATNTXKMS.js → chunk-F3OPMYME.js} +118 -38
  53. package/chunks/{chunk-KHF2QXBG.js → chunk-FG5AOTDN.js} +1433 -641
  54. package/chunks/{chunk-K2HIB5BA.js → chunk-GKCVATQJ.js} +3 -3
  55. package/chunks/{chunk-BIMLCGKS.js → chunk-GMHIK5K2.js} +1 -1
  56. package/chunks/{chunk-5SMP756H.js → chunk-GYR5E6RB.js} +2 -2
  57. package/chunks/{chunk-MC4EMNOR.js → chunk-HZN6IIPZ.js} +7 -6
  58. package/chunks/{chunk-VVRUSQCY.js → chunk-I57ID5K7.js} +13 -0
  59. package/chunks/{chunk-VYFGRLVQ.js → chunk-KOD2HX5I.js} +1 -1
  60. package/chunks/{chunk-ZKJPLWRJ.js → chunk-LOLVJNI5.js} +4 -4
  61. package/chunks/{chunk-GLWTVLKM.js → chunk-MN2AFJXM.js} +9 -2
  62. package/chunks/{chunk-WB6PWTMU.js → chunk-N5CJ5MTY.js} +1 -1
  63. package/chunks/{chunk-JXGF5EHC.js → chunk-NWJ37GI2.js} +23 -13
  64. package/chunks/{chunk-3ZJYGGAA.js → chunk-ORCUZITN.js} +1 -1
  65. package/chunks/{chunk-H467HDVV.js → chunk-QMLRYD76.js} +1 -1
  66. package/chunks/{chunk-43WALAW3.js → chunk-SEURG74P.js} +64 -115
  67. package/chunks/{chunk-G4HRW2FZ.js → chunk-SOV4POMS.js} +366 -253
  68. package/chunks/chunk-T34TL6KL.js +222 -0
  69. package/chunks/{chunk-WDIWLXLV.js → chunk-U6VE6JOS.js} +3 -3
  70. package/chunks/{chunk-MMWSCTDB.js → chunk-UFSFY7Z4.js} +19 -19
  71. package/chunks/{chunk-WIEXQUTD.js → chunk-ULRJZXMS.js} +1 -1
  72. package/chunks/{chunk-DHZW7Q7U.js → chunk-US54KYOJ.js} +2 -4
  73. package/chunks/{chunk-36LXIJIZ.js → chunk-V6LUKXBV.js} +1 -16
  74. package/chunks/{chunk-6M7TL2G2.js → chunk-VRZSDUZK.js} +45 -5
  75. package/chunks/chunk-VUXPDHTQ.js +22 -0
  76. package/chunks/chunk-XP5UM7SF.js +21 -0
  77. package/chunks/{chunk-IPZP3VRA.js → chunk-Y6XGC4K5.js} +5 -21
  78. package/chunks/{create.action-DBNIS665.js → create.action-ITEOQ644.js} +34 -32
  79. package/chunks/{delete.action-K7BLK7DK.js → delete.action-77MFPLUN.js} +29 -27
  80. package/chunks/{delete.action-GBOZC45K.js → delete.action-C6VX4S5Q.js} +30 -28
  81. package/chunks/{get.action-N3JOY3OU.js → get.action-3BP4FHZC.js} +16 -15
  82. package/chunks/{get.action-QHKMYZBK.js → get.action-LNBOWUVE.js} +24 -20
  83. package/chunks/{list.action-6SSO3JVN.js → list.action-6CRFQPJT.js} +39 -29
  84. package/chunks/{list.action-TJCS6UEY.js → list.action-KR5YIDR4.js} +37 -26
  85. package/chunks/{publish.action-T24VHRMR.js → publish.action-YBORRPBM.js} +45 -43
  86. package/chunks/{scripts-VIBLGKYG.js → scripts-6CI6U32J.js} +1 -1
  87. package/chunks/{update.action-VOE6PH5F.js → update.action-O7TSXDGV.js} +29 -27
  88. package/chunks/{update.action-OGYNBXRU.js → update.action-QZI7M2MV.js} +30 -28
  89. package/index.js +283 -278
  90. package/package.json +2 -2
  91. package/skills/scalar-cli/SKILL.md +49 -49
  92. package/template.md +66 -253
  93. package/chunks/action-FBRY5JKU.js +0 -37
  94. package/chunks/action-LYCNT3KA.js +0 -73
  95. package/chunks/action-OJ2NK25F.js +0 -121
  96. package/chunks/action-U2L5DCFG.js +0 -91
  97. package/chunks/chunk-MNNGUUKJ.js +0 -405
  98. package/chunks/chunk-ZGVZU6L2.js +0 -422
  99. package/docs.html +0 -6977
@@ -1,17 +1,17 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  BaseCollections
4
- } from "./chunk-JXGF5EHC.js";
4
+ } from "./chunk-NWJ37GI2.js";
5
5
  import {
6
6
  sdkTrackedApiVersionSpec
7
- } from "./chunk-KHF2QXBG.js";
7
+ } from "./chunk-FG5AOTDN.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
11
  } from "./chunk-5ENKYZA4.js";
12
12
  import {
13
13
  managedDocSchema
14
- } from "./chunk-GLWTVLKM.js";
14
+ } from "./chunk-MN2AFJXM.js";
15
15
 
16
16
  // src/domains/sdk/inspect-sdk.ts
17
17
  var sdkMetadata = (sdk, builds) => {
@@ -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-5SMP756H.js";
4
+ } from "./chunk-GYR5E6RB.js";
5
5
 
6
6
  // src/domains/registry/helpers/fetch.ts
7
7
  async function fetchFromRegistry(path, accessToken) {
@@ -1,10 +1,10 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  config
4
- } from "./chunk-WB6PWTMU.js";
4
+ } from "./chunk-N5CJ5MTY.js";
5
5
  import {
6
6
  RegistryAsset
7
- } from "./chunk-GLWTVLKM.js";
7
+ } from "./chunk-MN2AFJXM.js";
8
8
 
9
9
  // src/domains/registry/helpers/links.ts
10
10
  function registryUrl(path) {
@@ -24,11 +24,12 @@ var parseFetchLimit = (value) => parseIntegerOption(value, 1, Number.MAX_SAFE_IN
24
24
  var DEFAULT_FETCH_CONCURRENCY = 5;
25
25
  function BundleCommand() {
26
26
  const cmd = new Command("bundle");
27
- cmd.description(
28
- "Bundle an OpenAPI document by resolving all references and external dependencies"
27
+ cmd.description("Bundle external references into a single API description");
28
+ cmd.argument("[file|url]", "API description file path or URL to bundle");
29
+ cmd.option(
30
+ "-o, --output <file>",
31
+ "Output file (required for URLs; otherwise overwrites the input file)"
29
32
  );
30
- cmd.argument("[file|url]", "Path to OpenAPI file or URL to bundle");
31
- cmd.option("-o, --output <file>", "Path to save the bundled output file");
32
33
  cmd.option("--treeShake", "Remove unused components from the bundled output");
33
34
  cmd.option(
34
35
  "--urlMap",
@@ -36,12 +37,12 @@ function BundleCommand() {
36
37
  );
37
38
  cmd.option(
38
39
  "--fetchLimit <limit>",
39
- "Maximum number of URLs to fetch during bundling at the same time",
40
+ "Maximum number of concurrent URL fetches",
40
41
  parseFetchLimit
41
42
  );
42
43
  completeFiles(cmd, ["file|url"], ["--output"]);
43
44
  cmd.action(async (...args) => {
44
- const { bundleAction } = await import("./action-7XOHYWYM.js");
45
+ const { bundleAction } = await import("./action-CQQCKSNS.js");
45
46
  return bundleAction(...args);
46
47
  });
47
48
  return cmd;
@@ -13779,6 +13779,18 @@ var slugify2 = (str, options) => {
13779
13779
  const ascii = options?.ascii ?? false;
13780
13780
  return str.normalize(ascii ? "NFD" : "NFC").toLowerCase().trim().replace(ascii ? /[^a-z0-9\s.-]/g : /[^\p{L}\p{M}\p{N}\s.-]/gu, "").replace(/[\s-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 255);
13781
13781
  };
13782
+ function deduplicateSlugInSet({ slug, used, limit = 100 }) {
13783
+ if (!used.has(slug)) {
13784
+ used.add(slug);
13785
+ return slug;
13786
+ }
13787
+ let i = 1;
13788
+ while (i < limit && used.has(`${slug}-${i}`))
13789
+ i++;
13790
+ const result = `${slug}-${i}`;
13791
+ used.add(result);
13792
+ return result;
13793
+ }
13782
13794
 
13783
13795
  // ../../packages/entities/dist/utility/utility.js
13784
13796
  import { customAlphabet } from "nanoid";
@@ -17324,6 +17336,7 @@ export {
17324
17336
  randomAccessGroupSlug,
17325
17337
  randomManagedDocSlug,
17326
17338
  slugify2 as slugify,
17339
+ deduplicateSlugInSet,
17327
17340
  schemaModel,
17328
17341
  nanoid3 as nanoid,
17329
17342
  emailSchema,
@@ -10,7 +10,7 @@ var DownloadIsolateCommand = () => {
10
10
  const cmd = new Command("download-isolate");
11
11
  cmd.description("Download the docs preview server");
12
12
  cmd.action(async () => {
13
- const { downloadIsolate } = await import("./action-GWYYTUTM.js");
13
+ const { downloadIsolate } = await import("./action-LAAHRDSR.js");
14
14
  await downloadIsolate();
15
15
  });
16
16
  return cmd;
@@ -1,14 +1,14 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  displayError
4
- } from "./chunk-3ZJYGGAA.js";
4
+ } from "./chunk-ORCUZITN.js";
5
5
  import {
6
6
  ISOLATE_DIR,
7
7
  ISOLATE_EXTRACTION_DIR
8
- } from "./chunk-VYFGRLVQ.js";
8
+ } from "./chunk-KOD2HX5I.js";
9
9
  import {
10
10
  config
11
- } from "./chunk-WB6PWTMU.js";
11
+ } from "./chunk-N5CJ5MTY.js";
12
12
  import {
13
13
  output
14
14
  } from "./chunk-T5HJUAWB.js";
@@ -409,7 +409,7 @@ async function downloadIsolate() {
409
409
  const existingIsolateVersion = await getExistingIsolateVersion();
410
410
  const version = config.ssgDocsIsolateVersion;
411
411
  if (version === existingIsolateVersion) return;
412
- const logger = output.info({ animate: true }).loader("Downloading the docs preview server. This may take a minute...");
412
+ const logger = output.info({ animate: true }).loader("Downloading the docs preview server\u2026");
413
413
  try {
414
414
  const completion = await installIsolate(version, existingIsolateVersion);
415
415
  logger.update("loader", 0, { content: completion });
@@ -2,14 +2,14 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
2
2
  import {
3
3
  baseRegistrySchema,
4
4
  docVersionToolSchema
5
- } from "./chunk-MNNGUUKJ.js";
5
+ } from "./chunk-25XERWCE.js";
6
6
  import {
7
7
  brandedUid,
8
8
  docVersionSchema,
9
9
  external_exports,
10
10
  mintUid,
11
11
  nanoidSchema
12
- } from "./chunk-VVRUSQCY.js";
12
+ } from "./chunk-I57ID5K7.js";
13
13
 
14
14
  // ../../packages/entities/dist/rule/default-data.js
15
15
  var scalarRuleset = `extends: spectral:oas
@@ -89,6 +89,13 @@ var managedDocSchema = baseRegistrySchema.extend({
89
89
  * Absent until the document goes through the instance-based ingest path.
90
90
  */
91
91
  latestVersion: docVersionSchema.optional(),
92
+ /**
93
+ * The head of every line other than production, keyed by environment tag:
94
+ * its highest version and the version it serves by default. Production's
95
+ * head stays on `latestVersion` and `version`; read any line through
96
+ * `docHead`.
97
+ */
98
+ heads: external_exports.record(external_exports.string(), external_exports.object({ latest: docVersionSchema, current: docVersionSchema })).default({}),
92
99
  /**
93
100
  * @deprecated Never read anywhere — superseded by `source` on the base
94
101
  * registry schema. Dropped at decommission.
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  version
4
- } from "./chunk-DHZW7Q7U.js";
4
+ } from "./chunk-US54KYOJ.js";
5
5
 
6
6
  // src/config.ts
7
7
  import { portNumbers } from "get-port";
@@ -4,32 +4,34 @@ import {
4
4
  identityProviderRecordSchema,
5
5
  loginPortalSchema,
6
6
  managedSchema,
7
- siteDeploySchema,
8
7
  workspaceSchema
9
- } from "./chunk-43WALAW3.js";
8
+ } from "./chunk-SEURG74P.js";
10
9
  import {
11
10
  userSchema
12
- } from "./chunk-ZYBLQ5CT.js";
11
+ } from "./chunk-3TFOA64C.js";
13
12
  import {
14
13
  sdkSchema
15
- } from "./chunk-IPZP3VRA.js";
14
+ } from "./chunk-Y6XGC4K5.js";
15
+ import {
16
+ siteDeploySchema
17
+ } from "./chunk-T34TL6KL.js";
16
18
  import {
17
19
  teamSchema
18
- } from "./chunk-GYRQPDTK.js";
20
+ } from "./chunk-BQYVSPAI.js";
19
21
  import {
20
22
  activeDeploymentSchema,
21
23
  publishRecordSchema,
22
24
  themeSchema
23
- } from "./chunk-6M7TL2G2.js";
25
+ } from "./chunk-VRZSDUZK.js";
24
26
  import {
25
27
  managedDocSchema,
26
28
  ruleSchema
27
- } from "./chunk-GLWTVLKM.js";
29
+ } from "./chunk-MN2AFJXM.js";
28
30
  import {
29
31
  docInstanceOriginSchema,
30
32
  docInstanceSchema,
31
33
  docVersionRecordSchema
32
- } from "./chunk-MNNGUUKJ.js";
34
+ } from "./chunk-25XERWCE.js";
33
35
  import {
34
36
  brandedUid,
35
37
  emailSchema,
@@ -41,7 +43,7 @@ import {
41
43
  timestampSchema,
42
44
  unixTimestamp,
43
45
  zod_default
44
- } from "./chunk-VVRUSQCY.js";
46
+ } from "./chunk-I57ID5K7.js";
45
47
 
46
48
  // ../../packages/entities/dist/admins/index.js
47
49
  var scalarAdminSchema = entitySchema.extend({
@@ -113,9 +115,12 @@ var BaseCollections = {
113
115
  SignupOtp: "signup-otp",
114
116
  GithubUsers: "github-users",
115
117
  BitbucketUsers: "bitbucket-users",
118
+ ForgejoUsers: "forgejo-users",
119
+ VcsLinkStates: "vcs-link-states",
116
120
  LoginAttempts: "login-attempts",
117
121
  Teams: "team",
118
122
  Deploys: "deploys",
123
+ PreviewSandboxes: "preview-sandboxes",
119
124
  SignupData: "signup-data",
120
125
  Projects: (teamUid) => `team/${teamUid}/projects`,
121
126
  GithubProjects: (teamUid) => `team/${teamUid}/projects-github`,
@@ -160,7 +165,12 @@ var BaseCollections = {
160
165
  AuthRefreshTokens: "auth-refresh-tokens",
161
166
  AuthSessions: "auth-sessions",
162
167
  AuthCounters: "auth-counters",
163
- AuthRevocations: "auth-revocations"
168
+ AuthRevocations: "auth-revocations",
169
+ Secrets: "secrets",
170
+ SecretMetadata: (teamUid) => `team/${teamUid}/secrets`,
171
+ SecretValues: (teamUid) => `team/${teamUid}/secret-values`,
172
+ Vars: (teamUid) => `team/${teamUid}/vars`,
173
+ TeamKeys: "team-keys"
164
174
  };
165
175
  var MONGO_PLACEHOLDER_UID = "<uid-0>";
166
176
 
@@ -225,10 +235,10 @@ var docInstanceProjection = {
225
235
  origin: 1,
226
236
  _path: 1
227
237
  };
228
- var edgeCachePublishRecordSchema = publishRecordSchema.pick({ uid: true, projectUid: true, agentToken: true }).extend(requiredUid).transform(({ uid, projectUid, agentToken }) => ({
238
+ var edgeCachePublishRecordSchema = publishRecordSchema.pick({ uid: true, projectUid: true, mcpAddress: true }).extend(requiredUid).transform(({ uid, projectUid, mcpAddress }) => ({
229
239
  uid,
230
240
  projectUid,
231
- agentToken,
241
+ mcpAddress,
232
242
  _publishPath: `${uid.toLowerCase()}/${projectUid}`
233
243
  }));
234
244
  var edgeCacheApiSchema = managedDocSchema.pick({
@@ -400,7 +410,7 @@ var edgeCacheCollections = {
400
410
  indexFields: ["_publishPath"],
401
411
  tableName: "publishRecord",
402
412
  mongoCollection: BaseCollections.PublishRecords,
403
- projection: { uid: 1, projectUid: 1, agentToken: 1 }
413
+ projection: { uid: 1, projectUid: 1, mcpAddress: 1 }
404
414
  }),
405
415
  api: defineCollection({
406
416
  schema: edgeCacheApiSchema,
@@ -7,7 +7,7 @@ function createError(code, detail) {
7
7
  detail
8
8
  };
9
9
  }
10
- function displayError(error, fallback = "Unknown error occurred. Please contact support@scalar.com") {
10
+ function displayError(error, fallback = "An unexpected error occurred. Contact support@scalar.com with the command and error details.") {
11
11
  try {
12
12
  if (error instanceof Error) {
13
13
  return error.message;
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  detectManagedDocType
4
- } from "./chunk-GLWTVLKM.js";
4
+ } from "./chunk-MN2AFJXM.js";
5
5
 
6
6
  // src/domains/document/helpers/safe-normalize.ts
7
7
  import { normalize } from "@scalar/json-magic/helpers/normalize";
@@ -1,9 +1,17 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+ import {
3
+ SdkLanguage,
4
+ sdkVersionStatusSchema,
5
+ sdkVersionTargetStateSchema
6
+ } from "./chunk-Y6XGC4K5.js";
7
+ import {
8
+ cloudflareHostnameStateSchema
9
+ } from "./chunk-T34TL6KL.js";
2
10
  import {
3
11
  RegistryResourceTypes,
4
12
  baseRegistrySchema,
5
13
  contentShaSchema
6
- } from "./chunk-MNNGUUKJ.js";
14
+ } from "./chunk-25XERWCE.js";
7
15
  import {
8
16
  brandedUid,
9
17
  docVersionSchema,
@@ -19,7 +27,7 @@ import {
19
27
  slugSchema,
20
28
  timestampSchema,
21
29
  unixTimestamp
22
- } from "./chunk-VVRUSQCY.js";
30
+ } from "./chunk-I57ID5K7.js";
23
31
 
24
32
  // ../../packages/entities/dist/access-group/schema.js
25
33
  var emailDomainRegex = /^([A-Za-z0-9]+(-[A-Za-z0-9]+)*\.)+[A-Za-z]{2,}$/i;
@@ -64,8 +72,19 @@ var authIdentitySchema = external_exports.discriminatedUnion("kind", [
64
72
  var authReaderResourceSchema = external_exports.discriminatedUnion("kind", [
65
73
  external_exports.object({ kind: external_exports.literal("project"), uid: external_exports.string() }),
66
74
  external_exports.object({ kind: external_exports.literal("registry"), uid: external_exports.string() }),
67
- /** An MCP installation, by its uuid */
68
- external_exports.object({ kind: external_exports.literal("mcp"), uid: external_exports.string() }),
75
+ external_exports.object({
76
+ kind: external_exports.literal("mcp"),
77
+ /** The MCP server's uid with `environment`, or an installation uuid when `environment` is absent. */
78
+ uid: external_exports.string(),
79
+ /**
80
+ * The environment slug of the server named by `uid`. This is the shape
81
+ * minted today; a resource without it is the legacy installation-uuid
82
+ * shape, which resolves through the legacy address map.
83
+ */
84
+ environment: external_exports.string().nullish(),
85
+ /** The docs project whose host the environment was reached through, whose readers bound the grant too */
86
+ project: external_exports.string().nullish()
87
+ }),
69
88
  /** A namespace's own pages, which list what the reader may see */
70
89
  external_exports.object({ kind: external_exports.literal("namespace") })
71
90
  ]);
@@ -120,6 +139,8 @@ var attemptRequestSchema = external_exports.object({
120
139
  target: authTargetRequestSchema,
121
140
  /** The name of what is being signed in to, as resolved from the resource: `@acme`, `docs.acme.com` */
122
141
  entity: external_exports.string(),
142
+ /** The resource is a server Scalar does not vouch for, which consent warns of */
143
+ unverified: external_exports.boolean().nullish(),
123
144
  /** The login portal that brands a reader's sign-in to the resource */
124
145
  portalUid: external_exports.string().nullish(),
125
146
  /**
@@ -288,6 +309,15 @@ var limitsSnapshotSchema = external_exports.strictObject({
288
309
  teams: external_exports.array(epochSchema)
289
310
  });
290
311
 
312
+ // ../../packages/entities/dist/auth/vcs-link-state.js
313
+ var vcsProviderSchema = external_exports.enum(["github", "bitbucket"]);
314
+ var vcsLinkStateSchema = external_exports.object({
315
+ uid: external_exports.string().min(5),
316
+ userUid: brandedUid(),
317
+ provider: vcsProviderSchema,
318
+ expiresAt: external_exports.date()
319
+ }).meta({ id: "vcs-link-state" });
320
+
291
321
  // ../../packages/entities/dist/auth/domains.js
292
322
  var AuthDomains;
293
323
  (function(AuthDomains2) {
@@ -330,91 +360,6 @@ var relayStateSchema = external_exports.object({
330
360
  }).optional()
331
361
  }).meta({ id: "relay-state", default: "nanoid()" });
332
362
 
333
- // ../../packages/entities/dist/publish/publish.js
334
- var headingRecordSchema = external_exports.object({
335
- slug: external_exports.string(),
336
- name: external_exports.string(),
337
- level: external_exports.coerce.number().int(),
338
- uid: nanoidSchema,
339
- parent: external_exports.string().optional(),
340
- isPageTitle: external_exports.boolean().optional(),
341
- /** `timeline-item` for a changelog entry (`scalar-timeline-item`). Absent for headings. */
342
- kind: external_exports.enum(["timeline-item"]).optional(),
343
- /** Secondary TOC line for a changelog entry, usually its date */
344
- description: external_exports.string().optional()
345
- }).meta({ id: "heading-record" });
346
- var publishAssetSchema = external_exports.object({
347
- path: external_exports.string(),
348
- data: external_exports.string()
349
- }).meta({ id: "publish-asset" });
350
- var typesenseConfigSchema = external_exports.object({
351
- keyId: external_exports.number(),
352
- keyValue: external_exports.string(),
353
- collectionName: external_exports.string()
354
- }).meta({ id: "typesense-config" });
355
-
356
- // ../../packages/entities/dist/deploys/deploy.js
357
- var subpathSchema = external_exports.object({
358
- subpath: external_exports.string(),
359
- projectUid: external_exports.string(),
360
- /**
361
- * The project's own title, for labelling it in cross-project search.
362
- * Written on publish, so it is absent until the project next publishes.
363
- */
364
- name: external_exports.string().optional(),
365
- /**
366
- * The project's active publish, used to cache-bust its search index the
367
- * way a project already busts its own. Absent until it next publishes.
368
- */
369
- publishUid: external_exports.string().optional(),
370
- /**
371
- * Present only for sites still served by Typesense. Builds on the jsonl
372
- * search backend omit it; federated search fetches `${subpath}/search-entries.jsonl`.
373
- */
374
- typesenseConfig: typesenseConfigSchema.optional().nullable()
375
- }).meta({ id: "subpath" });
376
- var cloudflareHttpTokenSchema = external_exports.object({
377
- /** URL path, e.g. `/.well-known/pki-validation/ca3-<id>.txt` */
378
- path: external_exports.string(),
379
- /** Plain-text response body the token path must answer with */
380
- body: external_exports.string()
381
- }).meta({ id: "cloudflare-http-token" });
382
- var cloudflareHostnameStateSchema = external_exports.object({
383
- /** Custom hostname id in the Cloudflare zone */
384
- hostnameId: external_exports.string(),
385
- /** Hostname ownership status reported by Cloudflare (pending, active, …) */
386
- status: external_exports.string(),
387
- /** Certificate status reported by Cloudflare (pending_validation, active, …) */
388
- sslStatus: external_exports.string(),
389
- httpTokens: cloudflareHttpTokenSchema.array().default([]),
390
- /** Unix seconds of the reconciler run that last wrote this state */
391
- syncedAt: external_exports.number()
392
- }).meta({ id: "cloudflare-hostname-state" });
393
- var siteDeploySchema = entitySchema.extend({
394
- domain: external_exports.string(),
395
- teamUid: nanoidSchema,
396
- projectUid: nanoidSchema,
397
- /**
398
- * Title of the project mounted at the domain root.
399
- *
400
- * The root project is deliberately not one of `subpaths` — both request
401
- * matchers resolve by longest path prefix, so a '/' entry would become a
402
- * catch-all that every request matched. It is denormalized here instead so
403
- * search can name and scope it without a second lookup.
404
- */
405
- rootName: external_exports.string().optional(),
406
- subpaths: subpathSchema.array().default([]),
407
- cloudflare: cloudflareHostnameStateSchema.optional().nullable()
408
- }).meta({ id: "site-deploy" });
409
- var searchConfigRootSchema = external_exports.object({
410
- projectUid: external_exports.string(),
411
- name: external_exports.string().optional()
412
- }).meta({ id: "search-config-root" });
413
- var searchConfigResponseSchema = external_exports.object({
414
- subpaths: subpathSchema.array(),
415
- root: searchConfigRootSchema.optional()
416
- }).meta({ id: "search-config-response" });
417
-
418
363
  // ../../packages/entities/dist/login-portals/customization.js
419
364
  var loginPortalEmailSchema = external_exports.object({
420
365
  /** @deprecated No longer rendered in the email template */
@@ -518,30 +463,6 @@ var managedSchema = baseRegistrySchema.extend({
518
463
  format: managedSchemaFormat.default("json")
519
464
  }).meta({ id: "managed-schema" });
520
465
 
521
- // ../../packages/entities/dist/mcp-server/schema.js
522
- var mcpServerToolStates = ["enabled", "disabled"];
523
- var mcpServerRecordSchema = baseRegistrySchema.extend({
524
- /** Own uid, branded so it cannot be confused with another entity's uid */
525
- uid: brandedUid().default(mintUid).meta({ default: "nanoid()" }),
526
- /** The state a tool starts in when a linked document gains an operation. */
527
- defaultToolState: external_exports.enum(mcpServerToolStates).default("enabled"),
528
- /** A custom domain the server is served from, when one is configured. */
529
- domain: external_exports.string().nullable().default(null),
530
- /**
531
- * The Cloudflare custom hostname behind `domain`, mirrored by the edge
532
- * cache sync. Absent until the sync has provisioned it.
533
- */
534
- cloudflare: cloudflareHostnameStateSchema.optional().nullable(),
535
- /**
536
- * When core last asked the sync to re-read the hostname from Cloudflare,
537
- * in Unix milliseconds. The sync's own refresh schedule ends ten minutes
538
- * after a claim, and core holds no Cloudflare credentials, so a domain
539
- * check that finds the CNAME in place but the certificate not yet active
540
- * stamps this for the sync to pick up.
541
- */
542
- domainRefreshRequestedAt: external_exports.number().nullable().optional()
543
- }).meta({ id: "mcp-server-record" });
544
-
545
466
  // ../../packages/entities/dist/mcp-server/domain.js
546
467
  var mcpDomainStatuses = [
547
468
  "pending",
@@ -621,6 +542,23 @@ var webhookEventClaimRecordSchema = entitySchema.extend({
621
542
  expiresAt: external_exports.date()
622
543
  }).meta({ id: "webhook-event-claim-record" });
623
544
 
545
+ // ../../packages/entities/dist/sdk/version.js
546
+ var sdkVersionRecordSchema = entitySchema.extend({
547
+ /** Own uid, branded so it cannot be confused with another entity's uid */
548
+ uid: brandedUid().default(mintUid).meta({ default: "nanoid()" }),
549
+ version: docVersionSchema,
550
+ /** The exact API version this SDK version was created against. */
551
+ apiVersion: docVersionSchema,
552
+ apiDocumentHash: external_exports.string().nullish(),
553
+ status: sdkVersionStatusSchema,
554
+ publishedAt: timestampSchema.nullish(),
555
+ changeSource: external_exports.enum(["user", "api-version", "created"]).nullish(),
556
+ /** SHA-256 of the config string, naming its blob under the SDK's artifacts. */
557
+ configSha: contentShaSchema,
558
+ languages: external_exports.enum(SdkLanguage).array(),
559
+ targets: external_exports.partialRecord(external_exports.enum(SdkLanguage), sdkVersionTargetStateSchema)
560
+ }).meta({ id: "sdk-version-record" });
561
+
624
562
  // ../../packages/entities/dist/waitlist/index.js
625
563
  var WaitlistProducts;
626
564
  (function(WaitlistProducts2) {
@@ -672,7 +610,13 @@ var webhookSubscriptionSchema = entitySchema.extend({
672
610
  */
673
611
  disabledReason: webhookDisabledReasonSchema.nullable().optional(),
674
612
  /** When the platform disabled it, in unix seconds. Nullable, as above. */
675
- disabledAt: external_exports.number().nullable().optional()
613
+ disabledAt: external_exports.number().nullable().optional(),
614
+ /**
615
+ * The uid of the team secret deliveries are signed with, in the auth
616
+ * secret store. Null for a subscription whose secret is still the local
617
+ * record in `webhook-secrets`, keyed by the subscription uid.
618
+ */
619
+ signingSecretUid: nanoidSchema.nullish()
676
620
  }).meta({ id: "webhook-subscription" });
677
621
  var WEBHOOK_SECRET_KEY_VERSION = 1;
678
622
  var WEBHOOK_SECRET_GRACE_PERIOD_SECONDS = 24 * 60 * 60;
@@ -729,6 +673,12 @@ var webhookDeliverySchema = entitySchema.extend({
729
673
  /** Attempts made so far, across Cloud Tasks retries. */
730
674
  attempts: external_exports.number().int().min(0).default(0),
731
675
  status: webhookDeliveryStatusSchema.default("pending"),
676
+ /**
677
+ * Unix seconds until which the attempt last claimed is being made. A
678
+ * dispatch that arrives while it stands leaves the delivery alone; one
679
+ * that arrives after it takes over an attempt that never settled.
680
+ */
681
+ claimedUntil: external_exports.number().nullable().optional(),
732
682
  /** Unix seconds of the most recent attempt. Nullable for the round-trip reason above. */
733
683
  lastAttemptAt: external_exports.number().nullable().optional(),
734
684
  /** HTTP status the endpoint returned, when it returned one at all. */
@@ -902,7 +852,6 @@ export {
902
852
  accessGroupNameSchema,
903
853
  accessGroupSchema,
904
854
  identityProviderRecordSchema,
905
- siteDeploySchema,
906
855
  loginPortalSchema,
907
856
  managedSchemaVersion,
908
857
  managedSchema,