@scalar/cli 2.11.0 → 2.12.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.
- package/README.md +3 -0
- package/chunks/{action-IQM54ITT.js → action-2OPUQFUY.js} +17 -17
- package/chunks/{action-NKTFNFU7.js → action-36LZ6XXE.js} +13 -13
- package/chunks/{action-BRSLSOE5.js → action-3XMTJJRT.js} +9 -9
- package/chunks/{action-RPCDNGCI.js → action-6CLEENBI.js} +19 -19
- package/chunks/{action-FMA5ECUA.js → action-7HXYZPOT.js} +5 -5
- package/chunks/{action-2VF6LODL.js → action-AC5ENU6Z.js} +8 -8
- package/chunks/{action-MJMLQFLT.js → action-ADGLTNFC.js} +21 -15
- package/chunks/{action-CQQCKSNS.js → action-AOKHLTZ6.js} +18 -12
- package/chunks/{action-7H3AWCHX.js → action-AVSJ3AJY.js} +9 -9
- package/chunks/{action-OTPXODUE.js → action-D3IVCY24.js} +5 -5
- package/chunks/{action-NHU4CUKT.js → action-EBZJS367.js} +2 -2
- package/chunks/{action-ZUZL7R3H.js → action-EZXHSAJ2.js} +10 -10
- package/chunks/{action-LR75GHBA.js → action-FDTVHVHF.js} +7 -7
- package/chunks/{action-SOYSVG67.js → action-FUO5F7NV.js} +5 -5
- package/chunks/{action-EYPYQQVM.js → action-HA3CMV3P.js} +5 -5
- package/chunks/{action-25QMCP5G.js → action-IG3BK2LF.js} +17 -17
- package/chunks/{action-GXDJLF2G.js → action-JT6C472I.js} +5 -5
- package/chunks/{action-KC3ZCNDR.js → action-KDT6H6ML.js} +5 -5
- package/chunks/{action-73ELLN3T.js → action-KJDIJQ3A.js} +2 -2
- package/chunks/{action-L7TMS3Q3.js → action-NF5E7JKA.js} +21 -21
- package/chunks/{action-J5TO3UJW.js → action-NIZBME45.js} +19 -19
- package/chunks/{action-NMW5WPD2.js → action-O757TFA2.js} +5 -5
- package/chunks/{action-YN4TE7TG.js → action-ONR7QSN7.js} +14 -14
- package/chunks/{action-DQDHBOLJ.js → action-QM2BMMHG.js} +15 -15
- package/chunks/{action-LAAHRDSR.js → action-QVTAZCKY.js} +4 -4
- package/chunks/{action-D5QWDNQ2.js → action-SLB52XRG.js} +13 -13
- package/chunks/{action-ZGNVWTHZ.js → action-UTFRCKGE.js} +5 -5
- package/chunks/{action-ZKKRPLDK.js → action-VESBFIP3.js} +14 -14
- package/chunks/{action-HUICEXJZ.js → action-VGFAIFYE.js} +14 -14
- package/chunks/{action-6M5PTDF6.js → action-WCU5O2VT.js} +16 -16
- package/chunks/{action-RQCXSJPZ.js → action-XS5EESHW.js} +18 -18
- package/chunks/{action-IH6G77C5.js → action-XVNRZ5VX.js} +14 -14
- package/chunks/{action-5I4XDPPG.js → action-YWQ2OKS3.js} +10 -10
- package/chunks/{actions-S6K76HCW.js → actions-6QG7LH7P.js} +14 -14
- package/chunks/{agent-IRNEV4K5.js → agent-ONXROEAE.js} +5 -5
- package/chunks/{asyncapi-WQPIQMEZ.js → asyncapi-7IFXAIE3.js} +9 -9
- package/chunks/{build.action-CLBVKFWD.js → build.action-FI4OWY3T.js} +16 -16
- package/chunks/{chunk-DQD2753S.js → chunk-26VIHQGL.js} +2 -2
- package/chunks/{chunk-NWJ37GI2.js → chunk-3HCEUGOE.js} +28 -9
- package/chunks/{chunk-SOV4POMS.js → chunk-5TNKTLQP.js} +15 -12
- package/chunks/{chunk-5L7V7RCH.js → chunk-BB6WWG25.js} +1 -1
- package/chunks/{chunk-GKCVATQJ.js → chunk-BCFUMXMC.js} +3 -3
- package/chunks/{chunk-HZN6IIPZ.js → chunk-EJSGWV2K.js} +2 -2
- package/chunks/{chunk-BQYVSPAI.js → chunk-FJCOYEKT.js} +126 -2
- package/chunks/{chunk-LOLVJNI5.js → chunk-HU47OMI4.js} +2 -2
- package/chunks/{chunk-SEURG74P.js → chunk-JLNHOA5Z.js} +3 -3
- package/chunks/{chunk-GYR5E6RB.js → chunk-LCSU43NJ.js} +2 -2
- package/chunks/{chunk-FG5AOTDN.js → chunk-N645RGAB.js} +785 -407
- package/chunks/{chunk-QMLRYD76.js → chunk-PERC34BV.js} +1 -1
- package/chunks/{chunk-AVZFSWPD.js → chunk-Q26DFKTY.js} +1 -1
- package/chunks/{chunk-UFSFY7Z4.js → chunk-QJQTSRU4.js} +2 -2
- package/chunks/{chunk-U6VE6JOS.js → chunk-RLBS4HJT.js} +2 -2
- package/chunks/{chunk-F3OPMYME.js → chunk-RNZVZMYC.js} +90 -14
- package/chunks/{chunk-Y6XGC4K5.js → chunk-RYWXF3LO.js} +8 -1
- package/chunks/{chunk-4JKXZ5CF.js → chunk-SNOAL2C5.js} +1 -1
- package/chunks/{chunk-CSSTCHHF.js → chunk-T3R66THO.js} +2 -0
- package/chunks/{chunk-KOD2HX5I.js → chunk-U73OW57G.js} +1 -1
- package/chunks/{chunk-25XERWCE.js → chunk-U764PQUA.js} +3 -27
- package/chunks/{chunk-ALYM4ZB2.js → chunk-UAFCSWQ6.js} +1 -1
- package/chunks/{chunk-N5CJ5MTY.js → chunk-UBLFIMUA.js} +1 -1
- package/chunks/{chunk-ULRJZXMS.js → chunk-UODTHS76.js} +1 -1
- package/chunks/{chunk-T34TL6KL.js → chunk-V3MYP5SQ.js} +27 -2
- package/chunks/{chunk-MN2AFJXM.js → chunk-VUNOOPEG.js} +1 -1
- package/chunks/{chunk-US54KYOJ.js → chunk-VVQOFG76.js} +1 -1
- package/chunks/{chunk-3TFOA64C.js → chunk-Y6C3H27E.js} +1 -1
- package/chunks/{chunk-3RIUDHLG.js → chunk-YTFFBGNQ.js} +2 -2
- package/chunks/{chunk-GMHIK5K2.js → chunk-ZNLMQKDU.js} +1 -1
- package/chunks/{create.action-ITEOQ644.js → create.action-PPMZEMZL.js} +16 -16
- package/chunks/{delete.action-C6VX4S5Q.js → delete.action-GDOHATRZ.js} +16 -16
- package/chunks/{delete.action-77MFPLUN.js → delete.action-VAHKEHEU.js} +16 -16
- package/chunks/{get.action-LNBOWUVE.js → get.action-UXFTGO7W.js} +15 -15
- package/chunks/{get.action-3BP4FHZC.js → get.action-XON3EZDT.js} +10 -10
- package/chunks/{list.action-KR5YIDR4.js → list.action-24F5WDGR.js} +17 -17
- package/chunks/{list.action-6CRFQPJT.js → list.action-OQEAEJ5U.js} +15 -15
- package/chunks/{publish.action-YBORRPBM.js → publish.action-G7FPDRBZ.js} +21 -21
- package/chunks/{update.action-O7TSXDGV.js → update.action-IFIFXZWA.js} +16 -16
- package/chunks/{update.action-QZI7M2MV.js → update.action-MJDHVVR3.js} +16 -16
- package/index.js +65 -64
- package/package.json +1 -1
- package/skills/scalar-cli/SKILL.md +1 -1
- package/template.md +3 -0
|
@@ -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-
|
|
4
|
+
} from "./chunk-VUNOOPEG.js";
|
|
5
5
|
|
|
6
6
|
// src/domains/document/helpers/safe-normalize.ts
|
|
7
7
|
import { normalize } from "@scalar/json-magic/helpers/normalize";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
var DEFAULT_ENVIRONMENT = "production";
|
|
8
8
|
var RESERVED_ENVIRONMENT_SLUGS = ["latest", "all"];
|
|
9
9
|
var ENVIRONMENT_SLUG_PATTERN = /^[a-z][a-z0-9-]{0,62}[a-z0-9]$/;
|
|
10
|
-
var MAX_TEAM_ENVIRONMENTS =
|
|
10
|
+
var MAX_TEAM_ENVIRONMENTS = 100;
|
|
11
11
|
var environmentSlugSchema = external_exports.string().regex(ENVIRONMENT_SLUG_PATTERN, {
|
|
12
12
|
message: "Environment slugs are 2 to 64 lowercase letters, digits or hyphens, starting with a letter and ending with a letter or digit."
|
|
13
13
|
}).refine((slug) => !RESERVED_ENVIRONMENT_SLUGS.includes(slug), {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
RegistryAsset
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VUNOOPEG.js";
|
|
5
5
|
import {
|
|
6
6
|
contentShaSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U764PQUA.js";
|
|
8
8
|
import {
|
|
9
9
|
docVersionSchema,
|
|
10
10
|
external_exports,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
getAuthData
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YTFFBGNQ.js";
|
|
5
5
|
import {
|
|
6
6
|
config
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UBLFIMUA.js";
|
|
8
8
|
import {
|
|
9
9
|
external_exports,
|
|
10
10
|
objectSchema,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
webhookSubscriptionSchema,
|
|
15
15
|
workspaceSchema,
|
|
16
16
|
workspaceVersionSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JLNHOA5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
userSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y6C3H27E.js";
|
|
21
21
|
import {
|
|
22
22
|
sdkSchema
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RYWXF3LO.js";
|
|
24
24
|
import {
|
|
25
25
|
mcpEnvironmentSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-V3MYP5SQ.js";
|
|
27
27
|
import {
|
|
28
28
|
RENEWAL_MARGIN_MS,
|
|
29
29
|
SESSION_EXPIRED,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
needsRenewal,
|
|
34
34
|
refreshToken,
|
|
35
35
|
renewAuth
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YTFFBGNQ.js";
|
|
37
37
|
import {
|
|
38
38
|
config
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-UBLFIMUA.js";
|
|
40
40
|
import {
|
|
41
41
|
UnifiedDocsMigrationStatus,
|
|
42
42
|
pendingInviteSchema,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
teamNameSchema,
|
|
46
46
|
teamSdkPricing,
|
|
47
47
|
userRefSchema
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-FJCOYEKT.js";
|
|
49
49
|
import {
|
|
50
50
|
docsProjectSchema,
|
|
51
51
|
githubInstallSchema,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
managedDocSchema,
|
|
57
57
|
managedDocVersionSchema,
|
|
58
58
|
ruleSchema
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-VUNOOPEG.js";
|
|
60
60
|
import {
|
|
61
61
|
createdMcpServerSchema,
|
|
62
62
|
docInstanceSchema,
|
|
@@ -66,10 +66,10 @@ import {
|
|
|
66
66
|
registryGitBindingSchema,
|
|
67
67
|
registryPublishRecordSchema,
|
|
68
68
|
secretMetadataSchema
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-U764PQUA.js";
|
|
70
70
|
import {
|
|
71
71
|
teamEnvironmentSchema
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-Q26DFKTY.js";
|
|
73
73
|
import {
|
|
74
74
|
external_exports,
|
|
75
75
|
nanoidSchema,
|
|
@@ -208,6 +208,23 @@ var topReferrerSchema = external_exports.object({
|
|
|
208
208
|
var topReferrersResultSchema = external_exports.object({
|
|
209
209
|
referrers: external_exports.array(topReferrerSchema)
|
|
210
210
|
});
|
|
211
|
+
var feedbackReasonCountSchema = external_exports.object({
|
|
212
|
+
reason: external_exports.string(),
|
|
213
|
+
count: external_exports.number().int().nonnegative()
|
|
214
|
+
});
|
|
215
|
+
var feedbackPageSchema = external_exports.object({
|
|
216
|
+
path: external_exports.string(),
|
|
217
|
+
helpful: external_exports.number().int().nonnegative(),
|
|
218
|
+
unhelpful: external_exports.number().int().nonnegative(),
|
|
219
|
+
reasons: external_exports.array(feedbackReasonCountSchema)
|
|
220
|
+
});
|
|
221
|
+
var feedbackResultSchema = external_exports.object({
|
|
222
|
+
totals: external_exports.object({
|
|
223
|
+
helpful: external_exports.number().int().nonnegative(),
|
|
224
|
+
unhelpful: external_exports.number().int().nonnegative()
|
|
225
|
+
}),
|
|
226
|
+
pages: external_exports.array(feedbackPageSchema)
|
|
227
|
+
});
|
|
211
228
|
var consumersResultSchema = external_exports.object({
|
|
212
229
|
totals: external_exports.object({
|
|
213
230
|
human: external_exports.number().int().nonnegative(),
|
|
@@ -274,11 +291,22 @@ function analyticsApiFactory(requestService) {
|
|
|
274
291
|
schema: consumersResultSchema
|
|
275
292
|
});
|
|
276
293
|
}
|
|
294
|
+
async function getFeedback(projectUid, args = {}) {
|
|
295
|
+
return requestService.request({
|
|
296
|
+
url: `core/analytics/projects/${projectUid}/feedback${buildQuery({
|
|
297
|
+
range: args.range,
|
|
298
|
+
limit: args.limit
|
|
299
|
+
})}`,
|
|
300
|
+
method: "get",
|
|
301
|
+
schema: feedbackResultSchema
|
|
302
|
+
});
|
|
303
|
+
}
|
|
277
304
|
return {
|
|
278
305
|
getOverview,
|
|
279
306
|
getPages,
|
|
280
307
|
getReferrers,
|
|
281
|
-
getConsumers
|
|
308
|
+
getConsumers,
|
|
309
|
+
getFeedback
|
|
282
310
|
};
|
|
283
311
|
}
|
|
284
312
|
|
|
@@ -916,13 +944,20 @@ function registryGitApiFactory(requestService) {
|
|
|
916
944
|
})
|
|
917
945
|
});
|
|
918
946
|
}
|
|
919
|
-
async function listBranches(asset, namespace, slug) {
|
|
947
|
+
async function listBranches(asset, namespace, slug, opts) {
|
|
948
|
+
const params = new URLSearchParams();
|
|
949
|
+
if (opts?.query)
|
|
950
|
+
params.set("query", opts.query);
|
|
951
|
+
if (opts?.perPage)
|
|
952
|
+
params.set("perPage", String(opts.perPage));
|
|
953
|
+
const qs = params.size ? `?${params}` : "";
|
|
920
954
|
return await requestService.request({
|
|
921
|
-
url: `${base(asset, namespace, slug)}/branches`,
|
|
955
|
+
url: `${base(asset, namespace, slug)}/branches${qs}`,
|
|
922
956
|
method: "get",
|
|
923
957
|
schema: external_exports.object({
|
|
924
958
|
branches: external_exports.object({ name: external_exports.string(), sha: external_exports.string() }).array(),
|
|
925
|
-
trackedBranch: external_exports.string()
|
|
959
|
+
trackedBranch: external_exports.string(),
|
|
960
|
+
hasMore: external_exports.boolean().optional()
|
|
926
961
|
})
|
|
927
962
|
});
|
|
928
963
|
}
|
|
@@ -1963,6 +1998,33 @@ function bitbucketApiFactory(requestService) {
|
|
|
1963
1998
|
})
|
|
1964
1999
|
});
|
|
1965
2000
|
}
|
|
2001
|
+
async function createDocsProjectBitbucketPullRequest(uid, data) {
|
|
2002
|
+
return await requestService.request({
|
|
2003
|
+
url: `core/vcs/bitbucket/docs-project/${uid}/pull-request`,
|
|
2004
|
+
method: "post",
|
|
2005
|
+
data,
|
|
2006
|
+
schema: external_exports.object({
|
|
2007
|
+
url: external_exports.string(),
|
|
2008
|
+
number: external_exports.number(),
|
|
2009
|
+
alreadyExists: external_exports.boolean()
|
|
2010
|
+
})
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
async function getDocsProjectBitbucketPullRequestForBranch(uid, branch) {
|
|
2014
|
+
const qs = new URLSearchParams({ branch }).toString();
|
|
2015
|
+
return await requestService.request({
|
|
2016
|
+
url: `core/vcs/bitbucket/docs-project/${uid}/pull-request/for-branch?${qs}`,
|
|
2017
|
+
method: "get",
|
|
2018
|
+
schema: external_exports.object({
|
|
2019
|
+
pullRequest: external_exports.object({
|
|
2020
|
+
url: external_exports.string(),
|
|
2021
|
+
number: external_exports.number(),
|
|
2022
|
+
title: external_exports.string(),
|
|
2023
|
+
body: external_exports.string()
|
|
2024
|
+
}).nullable()
|
|
2025
|
+
})
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
1966
2028
|
async function disconnectAccount() {
|
|
1967
2029
|
return await requestService.request({
|
|
1968
2030
|
url: "core/vcs/bitbucket/disconnect-account",
|
|
@@ -1974,6 +2036,8 @@ function bitbucketApiFactory(requestService) {
|
|
|
1974
2036
|
initiateLink,
|
|
1975
2037
|
getWorkspaces,
|
|
1976
2038
|
listDocsProjectBitbucketBranches,
|
|
2039
|
+
createDocsProjectBitbucketPullRequest,
|
|
2040
|
+
getDocsProjectBitbucketPullRequestForBranch,
|
|
1977
2041
|
disconnectAccount
|
|
1978
2042
|
};
|
|
1979
2043
|
}
|
|
@@ -2296,6 +2360,17 @@ function githubApiFactory(requestService) {
|
|
|
2296
2360
|
}).array()
|
|
2297
2361
|
});
|
|
2298
2362
|
}
|
|
2363
|
+
async function getDocsProjectGithubCommitFiles(uid, sha) {
|
|
2364
|
+
return await requestService.request({
|
|
2365
|
+
url: `core/github/docs-project/${uid}/commits/${sha}/files`,
|
|
2366
|
+
method: "get",
|
|
2367
|
+
schema: external_exports.object({
|
|
2368
|
+
filepath: external_exports.string(),
|
|
2369
|
+
status: external_exports.enum(["added", "modified", "deleted", "renamed"]),
|
|
2370
|
+
previousFilepath: external_exports.string().optional()
|
|
2371
|
+
}).array()
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2299
2374
|
async function listDocsProjectGithubBranches(uid, opts = {}) {
|
|
2300
2375
|
const params = new URLSearchParams();
|
|
2301
2376
|
if (opts.query)
|
|
@@ -2450,6 +2525,7 @@ function githubApiFactory(requestService) {
|
|
|
2450
2525
|
linkRepo,
|
|
2451
2526
|
unlinkRepo,
|
|
2452
2527
|
getDocsProjectGithubCommits,
|
|
2528
|
+
getDocsProjectGithubCommitFiles,
|
|
2453
2529
|
listDocsProjectGithubBranches,
|
|
2454
2530
|
createDocsProjectGithubPullRequest,
|
|
2455
2531
|
getDocsProjectGithubPullRequestForBranch,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
baseRegistrySchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U764PQUA.js";
|
|
5
5
|
import {
|
|
6
6
|
brandedUid,
|
|
7
7
|
docVersionSchema,
|
|
@@ -193,6 +193,13 @@ var sdkSchema = baseRegistrySchema.extend({
|
|
|
193
193
|
* is the latest published version's `languages`.
|
|
194
194
|
*/
|
|
195
195
|
targets: sdkTargetSchema.array().min(1),
|
|
196
|
+
/**
|
|
197
|
+
* Bills this SDK's targets in the standard band whatever its endpoint
|
|
198
|
+
* count. Set on the SDKs a team already had when it moved to 2026 pricing,
|
|
199
|
+
* which keep that price; it does not expire and only an admin clears it.
|
|
200
|
+
* Unset bills by size.
|
|
201
|
+
*/
|
|
202
|
+
billingBandPin: external_exports.literal("standard").nullish(),
|
|
196
203
|
/**
|
|
197
204
|
* @deprecated Config now lives per-version (`sdkVersionSchema.config`). Kept
|
|
198
205
|
* optional for the migration/legacy path; new code reads the version config.
|
|
@@ -64242,6 +64242,7 @@ var pageFrontmatterSchema = external_exports.object({
|
|
|
64242
64242
|
pageActions: external_exports.boolean().optional(),
|
|
64243
64243
|
pageNav: external_exports.boolean().optional().describe("Show previous and next page links on this page."),
|
|
64244
64244
|
lastUpdated: external_exports.boolean().optional().describe("Show the date this page last changed, above the previous and next links."),
|
|
64245
|
+
feedback: external_exports.boolean().optional().describe("Ask readers whether this page was helpful."),
|
|
64245
64246
|
fullWidth: external_exports.boolean().optional().describe("Expand the page content to the full page width instead of the default centered column."),
|
|
64246
64247
|
search: external_exports.object({
|
|
64247
64248
|
position: external_exports.enum(["header", "sidebar"]).optional().describe("The position of the search bar in this page"),
|
|
@@ -64539,6 +64540,7 @@ var siteConfigSchema = external_exports.object({
|
|
|
64539
64540
|
pageActions: external_exports.boolean().optional(),
|
|
64540
64541
|
pageNav: external_exports.boolean().optional().describe("Show previous and next page links at the bottom of each page. Defaults to true."),
|
|
64541
64542
|
lastUpdated: external_exports.boolean().optional().describe("Show the date each page last changed, above the previous and next links. Defaults to false."),
|
|
64543
|
+
feedback: external_exports.boolean().optional().describe("Ask readers whether a page was helpful. Off unless set, and the votes are only recorded while the project has analytics enabled."),
|
|
64542
64544
|
search: external_exports.object({
|
|
64543
64545
|
position: external_exports.enum(["header", "sidebar"]).optional().describe("The global position of the search bar"),
|
|
64544
64546
|
enabled: external_exports.boolean().optional().describe("Enable or disable search globally")
|
|
@@ -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-
|
|
13
|
+
const { downloadIsolate } = await import("./action-QVTAZCKY.js");
|
|
14
14
|
await downloadIsolate();
|
|
15
15
|
});
|
|
16
16
|
return cmd;
|
|
@@ -45,25 +45,6 @@ var secretMetadataSchema = external_exports.object({
|
|
|
45
45
|
message: "A var shows its value and a secret never does",
|
|
46
46
|
path: ["value"]
|
|
47
47
|
});
|
|
48
|
-
var holdsItsKind = (record) => record.kind === "var" ? record.value != null && record.ciphertext == null && record.iv == null : record.value == null && record.ciphertext != null && record.iv != null;
|
|
49
|
-
var secretRecordSchema = entitySchema.extend({
|
|
50
|
-
teamUid: external_exports.string().min(1),
|
|
51
|
-
environment: secretEnvironmentSchema,
|
|
52
|
-
name: secretNameSchema,
|
|
53
|
-
kind: secretKindSchema.default("secret"),
|
|
54
|
-
/** A var's value, in plaintext */
|
|
55
|
-
value: external_exports.string().nullish(),
|
|
56
|
-
/** A secret's value: base64 of the AES-256-GCM output with its tag appended */
|
|
57
|
-
ciphertext: external_exports.string().nullish(),
|
|
58
|
-
/** A secret's IV, base64 */
|
|
59
|
-
iv: external_exports.string().nullish(),
|
|
60
|
-
/** The first eight hex characters of a sha256 over the plaintext */
|
|
61
|
-
fingerprint: external_exports.string(),
|
|
62
|
-
/** Unix seconds */
|
|
63
|
-
rotatedAt: timestampSchema.nullish()
|
|
64
|
-
}).refine(holdsItsKind, {
|
|
65
|
-
message: "A var stores only its plaintext and a secret only its sealed value"
|
|
66
|
-
});
|
|
67
48
|
var storedNameShape = {
|
|
68
49
|
environment: secretEnvironmentSchema,
|
|
69
50
|
name: secretNameSchema
|
|
@@ -206,6 +187,8 @@ var mcpServerSchema = external_exports.object({
|
|
|
206
187
|
// Missing keys parse to what a row gets before the channel backfill.
|
|
207
188
|
channelMode: external_exports.enum(mcpChannelModes).default("multi").meta({ examples: ["single"] }),
|
|
208
189
|
channels: mcpServerChannelSchema.array().default([]),
|
|
190
|
+
// A missing key parses to null, as for `domain`, whichever side deploys first.
|
|
191
|
+
docsProjectId: external_exports.string().nullable().default(null),
|
|
209
192
|
createdAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] }),
|
|
210
193
|
updatedAt: external_exports.string().meta({ examples: ["2025-01-01T00:00:00.000Z"] })
|
|
211
194
|
}).meta({ id: "mcp-server" });
|
|
@@ -430,7 +413,6 @@ var mcpInstallationSchema = external_exports.object({
|
|
|
430
413
|
isPrivate: external_exports.boolean().meta({ examples: [false] }),
|
|
431
414
|
accessGroups: external_exports.array(external_exports.string()).default([]).meta({ examples: [["UakgbKJ5m9gl0JDMbcJqL"]] }),
|
|
432
415
|
loginPortalUid: external_exports.string().nullable().default(null).meta({ examples: ["LakgbKJ5m9gl0JDMbcJqL"] }),
|
|
433
|
-
authConfig: mcpAuthConfigSchema.default({}),
|
|
434
416
|
mcpVersion: external_exports.string().nullable().default(null).meta({ examples: ["1.2.0"] }),
|
|
435
417
|
piiRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] }),
|
|
436
418
|
credentialRedactionEnabled: external_exports.boolean().default(false).meta({ examples: [true] }),
|
|
@@ -440,12 +422,7 @@ var mcpInstallationSchema = external_exports.object({
|
|
|
440
422
|
}).meta({ id: "mcp-installation" });
|
|
441
423
|
var createdMcpServerSchema = external_exports.object({
|
|
442
424
|
server: mcpServerSchema,
|
|
443
|
-
installation: mcpInstallationSchema
|
|
444
|
-
documentAuth: external_exports.object({}).optional()
|
|
445
|
-
})
|
|
446
|
-
});
|
|
447
|
-
var emptyDocumentAuthSchema = external_exports.record(external_exports.string(), external_exports.unknown()).refine((documentAuth) => Object.keys(documentAuth).length === 0, {
|
|
448
|
-
message: "not accepted: credentials are managed in the environment's configuration and on the team's Environments page"
|
|
425
|
+
installation: mcpInstallationSchema
|
|
449
426
|
});
|
|
450
427
|
|
|
451
428
|
// ../../packages/entities/dist/registry/instance.js
|
|
@@ -1050,7 +1027,6 @@ export {
|
|
|
1050
1027
|
mcpServerDocsPageToolSchema,
|
|
1051
1028
|
mcpInstallationSchema,
|
|
1052
1029
|
createdMcpServerSchema,
|
|
1053
|
-
emptyDocumentAuthSchema,
|
|
1054
1030
|
mcpServerHistorySchema,
|
|
1055
1031
|
monthlyUsageSchema,
|
|
1056
1032
|
docVersionToolSchema,
|
|
@@ -2,7 +2,7 @@ import { createRequire as $$cR } from "node:module"; const require = $$cR(import
|
|
|
2
2
|
import {
|
|
3
3
|
getPublishPreviewUrl,
|
|
4
4
|
getPublishUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QJQTSRU4.js";
|
|
6
6
|
|
|
7
7
|
// src/domains/project/publish/url.ts
|
|
8
8
|
function getPublishDeploymentUrl(publish) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
mcpChannelModes,
|
|
5
5
|
mcpEnvironmentPolicies,
|
|
6
6
|
mcpServerChannelSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U764PQUA.js";
|
|
8
8
|
import {
|
|
9
9
|
environmentSlugSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q26DFKTY.js";
|
|
11
11
|
import {
|
|
12
12
|
brandedUid,
|
|
13
13
|
entitySchema,
|
|
@@ -39,6 +39,22 @@ var typesenseConfigSchema = external_exports.object({
|
|
|
39
39
|
collectionName: external_exports.string()
|
|
40
40
|
}).meta({ id: "typesense-config" });
|
|
41
41
|
|
|
42
|
+
// ../../packages/entities/dist/deploys/constants.js
|
|
43
|
+
var helpfulReasons = [
|
|
44
|
+
"solved-problem",
|
|
45
|
+
"easy-to-follow",
|
|
46
|
+
"good-examples"
|
|
47
|
+
];
|
|
48
|
+
var unhelpfulReasons = [
|
|
49
|
+
"inaccurate",
|
|
50
|
+
"unclear",
|
|
51
|
+
"missing-information",
|
|
52
|
+
"broken-example",
|
|
53
|
+
"other"
|
|
54
|
+
];
|
|
55
|
+
var FEEDBACK_PATH_MAX_LENGTH = 2048;
|
|
56
|
+
var FEEDBACK_BODY_LIMIT = FEEDBACK_PATH_MAX_LENGTH + 512;
|
|
57
|
+
|
|
42
58
|
// ../../packages/entities/dist/deploys/deploy.js
|
|
43
59
|
var subpathSchema = external_exports.object({
|
|
44
60
|
subpath: external_exports.string(),
|
|
@@ -169,6 +185,12 @@ var mcpEnvironmentSchema = external_exports.object({
|
|
|
169
185
|
channels: external_exports.record(external_exports.string(), mcpChannelConfigSchema).optional(),
|
|
170
186
|
/** Who may sign in on a Scalar-fronted environment. */
|
|
171
187
|
accessGroups: external_exports.string().array().optional(),
|
|
188
|
+
/**
|
|
189
|
+
* Per access group uid, key to the name of the team secret
|
|
190
|
+
* `{{ group.KEY }}` sends for a reader that group admits; `""` is none.
|
|
191
|
+
* Null is none at all, so the environment stops taking production's.
|
|
192
|
+
*/
|
|
193
|
+
groupSecrets: external_exports.record(external_exports.string(), external_exports.record(external_exports.string(), external_exports.string())).nullish(),
|
|
172
194
|
loginPortalUid: external_exports.string().nullable().optional(),
|
|
173
195
|
piiRedaction: external_exports.boolean().optional(),
|
|
174
196
|
credentialRedaction: external_exports.boolean().optional(),
|
|
@@ -216,6 +238,9 @@ var mcpServerRecordSchema = baseRegistrySchema.extend({
|
|
|
216
238
|
}).meta({ id: "mcp-server-record" });
|
|
217
239
|
|
|
218
240
|
export {
|
|
241
|
+
helpfulReasons,
|
|
242
|
+
unhelpfulReasons,
|
|
243
|
+
FEEDBACK_PATH_MAX_LENGTH,
|
|
219
244
|
cloudflareHostnameStateSchema,
|
|
220
245
|
siteDeploySchema,
|
|
221
246
|
mcpEnvironmentSchema
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-UBLFIMUA.js";
|
|
5
5
|
import {
|
|
6
6
|
roleSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJCOYEKT.js";
|
|
8
8
|
import {
|
|
9
9
|
output
|
|
10
10
|
} from "./chunk-T5HJUAWB.js";
|
|
@@ -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-
|
|
4
|
+
} from "./chunk-LCSU43NJ.js";
|
|
5
5
|
|
|
6
6
|
// src/domains/registry/helpers/fetch.ts
|
|
7
7
|
async function fetchFromRegistry(path, accessToken) {
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3HCEUGOE.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RLBS4HJT.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RNZVZMYC.js";
|
|
11
|
+
import "./chunk-N645RGAB.js";
|
|
12
|
+
import "./chunk-JLNHOA5Z.js";
|
|
13
|
+
import "./chunk-Y6C3H27E.js";
|
|
14
14
|
import "./chunk-5ENKYZA4.js";
|
|
15
15
|
import {
|
|
16
16
|
SdkLanguage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-RYWXF3LO.js";
|
|
18
|
+
import "./chunk-5TNKTLQP.js";
|
|
19
|
+
import "./chunk-V3MYP5SQ.js";
|
|
20
20
|
import "./chunk-V6LUKXBV.js";
|
|
21
21
|
import "./chunk-VUXPDHTQ.js";
|
|
22
22
|
import {
|
|
23
23
|
getAuthData
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YTFFBGNQ.js";
|
|
25
25
|
import {
|
|
26
26
|
config
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-UBLFIMUA.js";
|
|
28
|
+
import "./chunk-VVQOFG76.js";
|
|
29
29
|
import {
|
|
30
30
|
teamSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FJCOYEKT.js";
|
|
32
32
|
import "./chunk-VRZSDUZK.js";
|
|
33
33
|
import {
|
|
34
34
|
requireInteractive
|
|
35
35
|
} from "./chunk-EGOXR5FB.js";
|
|
36
36
|
import "./chunk-4ORL4MST.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-VUNOOPEG.js";
|
|
38
38
|
import {
|
|
39
39
|
output
|
|
40
40
|
} from "./chunk-T5HJUAWB.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-U764PQUA.js";
|
|
42
|
+
import "./chunk-Q26DFKTY.js";
|
|
43
43
|
import {
|
|
44
44
|
external_exports,
|
|
45
45
|
namespaceSchema,
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3HCEUGOE.js";
|
|
5
5
|
import {
|
|
6
6
|
getDatabaseClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RLBS4HJT.js";
|
|
8
8
|
import {
|
|
9
9
|
apiService
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RNZVZMYC.js";
|
|
11
|
+
import "./chunk-N645RGAB.js";
|
|
12
|
+
import "./chunk-JLNHOA5Z.js";
|
|
13
|
+
import "./chunk-Y6C3H27E.js";
|
|
14
14
|
import "./chunk-5ENKYZA4.js";
|
|
15
15
|
import {
|
|
16
16
|
sdkSchema
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-RYWXF3LO.js";
|
|
18
|
+
import "./chunk-5TNKTLQP.js";
|
|
19
|
+
import "./chunk-V3MYP5SQ.js";
|
|
20
20
|
import "./chunk-V6LUKXBV.js";
|
|
21
21
|
import "./chunk-VUXPDHTQ.js";
|
|
22
22
|
import {
|
|
23
23
|
getAuthData
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-YTFFBGNQ.js";
|
|
25
|
+
import "./chunk-UBLFIMUA.js";
|
|
26
|
+
import "./chunk-VVQOFG76.js";
|
|
27
27
|
import {
|
|
28
28
|
teamSchema
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FJCOYEKT.js";
|
|
30
30
|
import "./chunk-VRZSDUZK.js";
|
|
31
31
|
import {
|
|
32
32
|
requireInteractive
|
|
33
33
|
} from "./chunk-EGOXR5FB.js";
|
|
34
34
|
import "./chunk-4ORL4MST.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-VUNOOPEG.js";
|
|
36
36
|
import {
|
|
37
37
|
output
|
|
38
38
|
} from "./chunk-T5HJUAWB.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-U764PQUA.js";
|
|
40
|
+
import "./chunk-Q26DFKTY.js";
|
|
41
41
|
import {
|
|
42
42
|
external_exports,
|
|
43
43
|
namespaceSchema,
|