@fern-api/fdr-sdk 1.2.174-94f3833ee6 → 1.2.174-950bdb766f
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/dist/js/client/FdrClient.js +366 -303
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +366 -303
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +641 -578
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +641 -578
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client/dashboard/sdkVersion.js +3 -1
- package/dist/js/orpc-client/dashboard/sdkVersion.js.map +1 -1
- package/dist/js/orpc-client/dashboard/sdkVersion.mjs +3 -1
- package/dist/js/orpc-client/dashboard/sdkVersion.mjs.map +1 -1
- package/dist/js/orpc-client.js +743 -634
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +729 -634
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/dashboard/sdkVersion.d.ts +3 -1
- package/dist/orpc-client/dashboard/sdkVersion.d.ts.map +1 -1
- package/dist/orpc-client/dashboard/sdkVersion.js +6 -2
- package/dist/orpc-client/dashboard/sdkVersion.js.map +1 -1
- package/dist/orpc-client/dashboard/sdkVersion.test.js +5 -1
- package/dist/orpc-client/dashboard/sdkVersion.test.js.map +1 -1
- package/dist/orpc-client/mcp-hosting/contract.d.ts +138 -0
- package/dist/orpc-client/mcp-hosting/contract.d.ts.map +1 -1
- package/dist/orpc-client/mcp-hosting/contract.js +17 -1
- package/dist/orpc-client/mcp-hosting/contract.js.map +1 -1
- package/dist/orpc-client/mcp-hosting/index.d.ts +1 -0
- package/dist/orpc-client/mcp-hosting/index.d.ts.map +1 -1
- package/dist/orpc-client/mcp-hosting/index.js +1 -0
- package/dist/orpc-client/mcp-hosting/index.js.map +1 -1
- package/dist/orpc-client/mcp-hosting/usage.d.ts +194 -0
- package/dist/orpc-client/mcp-hosting/usage.d.ts.map +1 -0
- package/dist/orpc-client/mcp-hosting/usage.js +116 -0
- package/dist/orpc-client/mcp-hosting/usage.js.map +1 -0
- package/dist/types/orpc-client/dashboard/sdkVersion.d.ts +3 -1
- package/dist/types/orpc-client/dashboard/sdkVersion.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts +138 -0
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/index.d.ts +1 -0
- package/dist/types/orpc-client/mcp-hosting/index.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/usage.d.ts +194 -0
- package/dist/types/orpc-client/mcp-hosting/usage.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -521,8 +521,8 @@ function parseMatch(match) {
|
|
|
521
521
|
return match;
|
|
522
522
|
}
|
|
523
523
|
var src_default = (str, options = {}) => {
|
|
524
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset,
|
|
525
|
-
const isLastWord = m.length + offset >=
|
|
524
|
+
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string39) => {
|
|
525
|
+
const isLastWord = m.length + offset >= string39.length;
|
|
526
526
|
const parsedMatch = parseMatch(m);
|
|
527
527
|
if (!parsedMatch) {
|
|
528
528
|
return m;
|
|
@@ -2658,16 +2658,16 @@ function selectDefaultValue(shape, defaults) {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
|
|
2661
|
-
function unwrapObjectType(
|
|
2662
|
-
const cached = UnwrapObjectTypeCache.get(
|
|
2661
|
+
function unwrapObjectType(object38, types, parentVisitedTypeIds) {
|
|
2662
|
+
const cached = UnwrapObjectTypeCache.get(object38);
|
|
2663
2663
|
if (cached != null) {
|
|
2664
2664
|
return cached;
|
|
2665
2665
|
}
|
|
2666
|
-
const directProperties =
|
|
2667
|
-
const extraProperties =
|
|
2666
|
+
const directProperties = object38.properties;
|
|
2667
|
+
const extraProperties = object38.extraProperties;
|
|
2668
2668
|
const descriptions = [];
|
|
2669
2669
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2670
|
-
const extendedProperties =
|
|
2670
|
+
const extendedProperties = object38.extends.flatMap((typeId) => {
|
|
2671
2671
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
2672
2672
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
2673
2673
|
return [];
|
|
@@ -2714,7 +2714,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2714
2714
|
};
|
|
2715
2715
|
});
|
|
2716
2716
|
});
|
|
2717
|
-
const propertyKeys = new Set(
|
|
2717
|
+
const propertyKeys = new Set(object38.properties.map((property) => property.key));
|
|
2718
2718
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
2719
2719
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
2720
2720
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -2737,7 +2737,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2737
2737
|
extraProperties,
|
|
2738
2738
|
visitedTypeIds
|
|
2739
2739
|
};
|
|
2740
|
-
UnwrapObjectTypeCache.set(
|
|
2740
|
+
UnwrapObjectTypeCache.set(object38, toRet2);
|
|
2741
2741
|
return toRet2;
|
|
2742
2742
|
}
|
|
2743
2743
|
const properties = (0, import_array.sortBy)(
|
|
@@ -2749,7 +2749,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2749
2749
|
]
|
|
2750
2750
|
);
|
|
2751
2751
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2752
|
-
UnwrapObjectTypeCache.set(
|
|
2752
|
+
UnwrapObjectTypeCache.set(object38, toRet);
|
|
2753
2753
|
return toRet;
|
|
2754
2754
|
}
|
|
2755
2755
|
function unwrapDiscriminatedUnionVariant(union14, variant, types) {
|
|
@@ -4470,8 +4470,8 @@ function sortKeysByShape(obj, shape, types) {
|
|
|
4470
4470
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
|
|
4471
4471
|
map: ({ valueShape }) => isPlainObject_default(obj) ? (0, import_object.mapValues)(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
|
|
4472
4472
|
unknown: () => obj,
|
|
4473
|
-
object: (
|
|
4474
|
-
const objectProperties = unwrapObjectType(
|
|
4473
|
+
object: (object38) => {
|
|
4474
|
+
const objectProperties = unwrapObjectType(object38, types).properties;
|
|
4475
4475
|
return isPlainObject_default(obj) ? (0, import_object.mapValues)(
|
|
4476
4476
|
sortKeysBy(
|
|
4477
4477
|
obj,
|
|
@@ -7686,10 +7686,10 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
|
|
|
7686
7686
|
if (resolved == null) {
|
|
7687
7687
|
return void 0;
|
|
7688
7688
|
}
|
|
7689
|
-
const { object:
|
|
7689
|
+
const { object: object38, visited: innerVisited } = resolved;
|
|
7690
7690
|
const example = isRecord(value) ? value : void 0;
|
|
7691
|
-
const element = { name:
|
|
7692
|
-
for (const property of xmlProperties(
|
|
7691
|
+
const element = { name: object38.xml.name, attributes: [], text: void 0, children: [] };
|
|
7692
|
+
for (const property of xmlProperties(object38, types, innerVisited)) {
|
|
7693
7693
|
const kind = property.xml?.kind ?? "element";
|
|
7694
7694
|
const name = property.xml?.name ?? property.key;
|
|
7695
7695
|
const listSeparator = property.xml?.listSeparator ?? " ";
|
|
@@ -7718,21 +7718,21 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
|
|
|
7718
7718
|
}
|
|
7719
7719
|
return element;
|
|
7720
7720
|
}
|
|
7721
|
-
function xmlProperties(
|
|
7721
|
+
function xmlProperties(object38, types, visited) {
|
|
7722
7722
|
const inherited = [];
|
|
7723
|
-
for (const parentId of
|
|
7723
|
+
for (const parentId of object38.extends) {
|
|
7724
7724
|
const parent = types[parentId];
|
|
7725
7725
|
if (parent != null && parent.shape.type === "object" && !visited.has(parentId)) {
|
|
7726
7726
|
inherited.push(
|
|
7727
7727
|
...xmlProperties(
|
|
7728
|
-
{ extends: parent.shape.extends, properties: parent.shape.properties, xml:
|
|
7728
|
+
{ extends: parent.shape.extends, properties: parent.shape.properties, xml: object38.xml },
|
|
7729
7729
|
types,
|
|
7730
7730
|
/* @__PURE__ */ new Set([...visited, parentId])
|
|
7731
7731
|
)
|
|
7732
7732
|
);
|
|
7733
7733
|
}
|
|
7734
7734
|
}
|
|
7735
|
-
return [...inherited, ...
|
|
7735
|
+
return [...inherited, ...object38.properties];
|
|
7736
7736
|
}
|
|
7737
7737
|
function childElements(property, name, types, visited, depth) {
|
|
7738
7738
|
const itemShape = listItemShape(property.valueShape, types, visited) ?? property.valueShape;
|
|
@@ -12640,7 +12640,7 @@ var import_fetch17 = require("@orpc/openapi-client/fetch");
|
|
|
12640
12640
|
|
|
12641
12641
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
12642
12642
|
var import_contract31 = require("@orpc/contract");
|
|
12643
|
-
var
|
|
12643
|
+
var z29 = __toESM(require("zod"), 1);
|
|
12644
12644
|
|
|
12645
12645
|
// src/orpc-client/mcp-hosting/analytics.ts
|
|
12646
12646
|
var z25 = __toESM(require("zod"), 1);
|
|
@@ -13277,46 +13277,97 @@ var McpDeploymentSkippedToolSchema = z27.object({
|
|
|
13277
13277
|
path: z27.string().nullable()
|
|
13278
13278
|
});
|
|
13279
13279
|
|
|
13280
|
+
// src/orpc-client/mcp-hosting/usage.ts
|
|
13281
|
+
var z28 = __toESM(require("zod"), 1);
|
|
13282
|
+
var McpOrgQuotaSchema = z28.object({
|
|
13283
|
+
/** Tool calls per month; null means no limit. */
|
|
13284
|
+
limit: z28.number().int().nonnegative().nullable(),
|
|
13285
|
+
/**
|
|
13286
|
+
* Sales approved the org to go over its limit. The dispatcher keeps
|
|
13287
|
+
* counting but never refuses a call.
|
|
13288
|
+
*/
|
|
13289
|
+
approved: z28.boolean()
|
|
13290
|
+
});
|
|
13291
|
+
var UsageMonthSchema = z28.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/, "Expected yyyy-mm");
|
|
13292
|
+
var McpUsageCountsSchema = z28.object({
|
|
13293
|
+
month: UsageMonthSchema,
|
|
13294
|
+
toolCalls: z28.number().int().nonnegative(),
|
|
13295
|
+
/** Calls refused because the allowance was used up. */
|
|
13296
|
+
blockedCalls: z28.number().int().nonnegative(),
|
|
13297
|
+
servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
|
|
13298
|
+
/** Whether this dispatcher refuses calls over the allowance (QUOTA_ENFORCE), or only counts them. */
|
|
13299
|
+
enforced: z28.boolean()
|
|
13300
|
+
});
|
|
13301
|
+
var McpOrgIdSchema = z28.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
13302
|
+
var GetMcpUsageInputSchema = z28.object({
|
|
13303
|
+
orgId: McpOrgIdSchema,
|
|
13304
|
+
month: UsageMonthSchema.optional()
|
|
13305
|
+
});
|
|
13306
|
+
var SetMcpUsageAllowanceInputSchema = z28.object({
|
|
13307
|
+
orgId: McpOrgIdSchema,
|
|
13308
|
+
/** Tool calls per month; null means no limit. */
|
|
13309
|
+
limit: z28.number().int().nonnegative().max(1e9).nullable(),
|
|
13310
|
+
/** Approved to go over the limit: calls are counted but never refused. */
|
|
13311
|
+
approved: z28.boolean(),
|
|
13312
|
+
note: z28.string().max(500).optional()
|
|
13313
|
+
});
|
|
13314
|
+
var McpOrgUsageSchema = z28.object({
|
|
13315
|
+
month: UsageMonthSchema,
|
|
13316
|
+
resetsAt: z28.string(),
|
|
13317
|
+
toolCalls: z28.number().int().nonnegative(),
|
|
13318
|
+
blockedCalls: z28.number().int().nonnegative(),
|
|
13319
|
+
/** Tool calls per month; null means no limit. */
|
|
13320
|
+
limit: z28.number().int().nonnegative().nullable(),
|
|
13321
|
+
approved: z28.boolean(),
|
|
13322
|
+
/** The org has the free allowance (no allowance set by Fern). */
|
|
13323
|
+
isFreeAllowance: z28.boolean(),
|
|
13324
|
+
blocked: z28.boolean(),
|
|
13325
|
+
/** Whether calls over the allowance are refused in this environment, or only counted. */
|
|
13326
|
+
enforced: z28.boolean(),
|
|
13327
|
+
servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
|
|
13328
|
+
contactUrl: z28.string()
|
|
13329
|
+
});
|
|
13330
|
+
|
|
13280
13331
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
13281
|
-
var McpPathSegmentSchema =
|
|
13282
|
-
var McpDeploymentStatusSchema =
|
|
13283
|
-
var McpModuleSchema =
|
|
13284
|
-
name:
|
|
13332
|
+
var McpPathSegmentSchema = z29.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
13333
|
+
var McpDeploymentStatusSchema = z29.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
13334
|
+
var McpModuleSchema = z29.object({
|
|
13335
|
+
name: z29.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
13285
13336
|
hash: Sha256Schema,
|
|
13286
|
-
contentType:
|
|
13337
|
+
contentType: z29.string().min(1)
|
|
13287
13338
|
}).strict();
|
|
13288
|
-
var McpGitInputSchema =
|
|
13289
|
-
repoUrl:
|
|
13339
|
+
var McpGitInputSchema = z29.object({
|
|
13340
|
+
repoUrl: z29.string(),
|
|
13290
13341
|
/** Absent on a detached HEAD (a CI checkout of a commit, say). */
|
|
13291
|
-
branch:
|
|
13292
|
-
commitSha:
|
|
13342
|
+
branch: z29.string().optional(),
|
|
13343
|
+
commitSha: z29.string().optional()
|
|
13293
13344
|
}).strict();
|
|
13294
|
-
var McpInputFileSchema =
|
|
13295
|
-
|
|
13345
|
+
var McpInputFileSchema = z29.discriminatedUnion("name", [
|
|
13346
|
+
z29.object({
|
|
13296
13347
|
/** The `sources` part of the build request, verbatim. */
|
|
13297
|
-
name:
|
|
13298
|
-
contentType:
|
|
13348
|
+
name: z29.literal("specs.tar.gz"),
|
|
13349
|
+
contentType: z29.literal("application/gzip"),
|
|
13299
13350
|
hash: Sha256Schema
|
|
13300
13351
|
}).strict(),
|
|
13301
|
-
|
|
13352
|
+
z29.object({
|
|
13302
13353
|
/** This target's sdk-config payload. */
|
|
13303
|
-
name:
|
|
13304
|
-
contentType:
|
|
13354
|
+
name: z29.literal("sdk-config.json"),
|
|
13355
|
+
contentType: z29.literal("application/json"),
|
|
13305
13356
|
hash: Sha256Schema
|
|
13306
13357
|
}).strict(),
|
|
13307
|
-
|
|
13358
|
+
z29.object({
|
|
13308
13359
|
/** The build request narrowed to this target. */
|
|
13309
|
-
name:
|
|
13310
|
-
contentType:
|
|
13360
|
+
name: z29.literal("build-request.json"),
|
|
13361
|
+
contentType: z29.literal("application/json"),
|
|
13311
13362
|
hash: Sha256Schema
|
|
13312
13363
|
}).strict()
|
|
13313
13364
|
]);
|
|
13314
|
-
var McpInputFilesSchema =
|
|
13365
|
+
var McpInputFilesSchema = z29.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
|
|
13315
13366
|
const names = /* @__PURE__ */ new Set();
|
|
13316
13367
|
for (const input of inputs) {
|
|
13317
13368
|
if (names.has(input.name)) {
|
|
13318
13369
|
ctx.addIssue({
|
|
13319
|
-
code:
|
|
13370
|
+
code: z29.ZodIssueCode.custom,
|
|
13320
13371
|
message: `duplicate input name: ${input.name}`
|
|
13321
13372
|
});
|
|
13322
13373
|
}
|
|
@@ -13347,7 +13398,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13347
13398
|
for (const [toolset, members] of Object.entries(metadata.toolsets)) {
|
|
13348
13399
|
if (!TOOLSET_NAME_PATTERN.test(toolset)) {
|
|
13349
13400
|
ctx.addIssue({
|
|
13350
|
-
code:
|
|
13401
|
+
code: z29.ZodIssueCode.custom,
|
|
13351
13402
|
path: ["toolsets", toolset],
|
|
13352
13403
|
message: `toolset name "${toolset}" must match ${TOOLSET_NAME_PATTERN}`
|
|
13353
13404
|
});
|
|
@@ -13355,7 +13406,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13355
13406
|
members.forEach((member, index) => {
|
|
13356
13407
|
if (!TOOL_NAME_PATTERN.test(member)) {
|
|
13357
13408
|
ctx.addIssue({
|
|
13358
|
-
code:
|
|
13409
|
+
code: z29.ZodIssueCode.custom,
|
|
13359
13410
|
path: ["toolsets", toolset, index],
|
|
13360
13411
|
message: `tool name "${member}" must match ${TOOL_NAME_PATTERN}`
|
|
13361
13412
|
});
|
|
@@ -13365,28 +13416,28 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13365
13416
|
(metadata.tools ?? []).forEach((tool, index) => {
|
|
13366
13417
|
if (!TOOL_NAME_PATTERN.test(tool.name)) {
|
|
13367
13418
|
ctx.addIssue({
|
|
13368
|
-
code:
|
|
13419
|
+
code: z29.ZodIssueCode.custom,
|
|
13369
13420
|
path: ["tools", index, "name"],
|
|
13370
13421
|
message: `tool name "${tool.name}" must match ${TOOL_NAME_PATTERN}`
|
|
13371
13422
|
});
|
|
13372
13423
|
}
|
|
13373
13424
|
if (tool.operationId != null && tool.operationId.length > MAX_OPERATION_ID_LENGTH) {
|
|
13374
13425
|
ctx.addIssue({
|
|
13375
|
-
code:
|
|
13426
|
+
code: z29.ZodIssueCode.custom,
|
|
13376
13427
|
path: ["tools", index, "operationId"],
|
|
13377
13428
|
message: `operationId must be at most ${MAX_OPERATION_ID_LENGTH} characters`
|
|
13378
13429
|
});
|
|
13379
13430
|
}
|
|
13380
13431
|
if (tool.method.length > MAX_METHOD_LENGTH) {
|
|
13381
13432
|
ctx.addIssue({
|
|
13382
|
-
code:
|
|
13433
|
+
code: z29.ZodIssueCode.custom,
|
|
13383
13434
|
path: ["tools", index, "method"],
|
|
13384
13435
|
message: `method must be at most ${MAX_METHOD_LENGTH} characters`
|
|
13385
13436
|
});
|
|
13386
13437
|
}
|
|
13387
13438
|
if (tool.path.length > MAX_PATH_LENGTH) {
|
|
13388
13439
|
ctx.addIssue({
|
|
13389
|
-
code:
|
|
13440
|
+
code: z29.ZodIssueCode.custom,
|
|
13390
13441
|
path: ["tools", index, "path"],
|
|
13391
13442
|
message: `path must be at most ${MAX_PATH_LENGTH} characters`
|
|
13392
13443
|
});
|
|
@@ -13395,7 +13446,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13395
13446
|
metadata.auth.schemes.forEach((scheme, index) => {
|
|
13396
13447
|
if (scheme.type === "apiKey" && !HEADER_TOKEN_PATTERN.test(scheme.paramName)) {
|
|
13397
13448
|
ctx.addIssue({
|
|
13398
|
-
code:
|
|
13449
|
+
code: z29.ZodIssueCode.custom,
|
|
13399
13450
|
path: ["auth", "schemes", index, "paramName"],
|
|
13400
13451
|
message: `paramName "${scheme.paramName}" must be an RFC 7230 token of at most 128 characters`
|
|
13401
13452
|
});
|
|
@@ -13403,30 +13454,30 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13403
13454
|
});
|
|
13404
13455
|
if (!maxSerializedBytes(MCP_METADATA_MAX_BYTES)(metadata)) {
|
|
13405
13456
|
ctx.addIssue({
|
|
13406
|
-
code:
|
|
13457
|
+
code: z29.ZodIssueCode.custom,
|
|
13407
13458
|
message: `metadata must be at most ${MCP_METADATA_MAX_BYTES} bytes serialized`
|
|
13408
13459
|
});
|
|
13409
13460
|
}
|
|
13410
13461
|
}
|
|
13411
|
-
var DeployMcpServerInputSchema =
|
|
13462
|
+
var DeployMcpServerInputSchema = z29.object({
|
|
13412
13463
|
orgId: McpPathSegmentSchema,
|
|
13413
13464
|
slug: McpPathSegmentSchema,
|
|
13414
|
-
mainModule:
|
|
13415
|
-
compatibilityDate:
|
|
13416
|
-
compatibilityFlags:
|
|
13465
|
+
mainModule: z29.string().min(1),
|
|
13466
|
+
compatibilityDate: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
13467
|
+
compatibilityFlags: z29.array(z29.string()),
|
|
13417
13468
|
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
13418
13469
|
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
13419
13470
|
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
13420
|
-
modules:
|
|
13471
|
+
modules: z29.array(McpModuleSchema).min(1).max(20),
|
|
13421
13472
|
metadata: McpMetadataSchema.superRefine(deployMetadataChecks),
|
|
13422
13473
|
// Everything else in this schema is bounded; keep the opaque config
|
|
13423
13474
|
// blob bounded too so it cannot balloon the JSONB row.
|
|
13424
|
-
config:
|
|
13475
|
+
config: z29.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
|
|
13425
13476
|
message: `config must be at most ${MCP_CONFIG_MAX_BYTES} bytes serialized`
|
|
13426
13477
|
}),
|
|
13427
|
-
generatorName:
|
|
13428
|
-
generatorVersion:
|
|
13429
|
-
cliVersion:
|
|
13478
|
+
generatorName: z29.string().min(1),
|
|
13479
|
+
generatorVersion: z29.string().min(1),
|
|
13480
|
+
cliVersion: z29.string().optional(),
|
|
13430
13481
|
git: McpGitInputSchema.optional(),
|
|
13431
13482
|
inputs: McpInputFilesSchema.optional()
|
|
13432
13483
|
}).strict().superRefine((input, ctx) => {
|
|
@@ -13434,7 +13485,7 @@ var DeployMcpServerInputSchema = z28.object({
|
|
|
13434
13485
|
for (const module2 of input.modules) {
|
|
13435
13486
|
if (names.has(module2.name)) {
|
|
13436
13487
|
ctx.addIssue({
|
|
13437
|
-
code:
|
|
13488
|
+
code: z29.ZodIssueCode.custom,
|
|
13438
13489
|
path: ["modules"],
|
|
13439
13490
|
message: `duplicate module name: ${module2.name}`
|
|
13440
13491
|
});
|
|
@@ -13443,18 +13494,18 @@ var DeployMcpServerInputSchema = z28.object({
|
|
|
13443
13494
|
}
|
|
13444
13495
|
if (!names.has(input.mainModule)) {
|
|
13445
13496
|
ctx.addIssue({
|
|
13446
|
-
code:
|
|
13497
|
+
code: z29.ZodIssueCode.custom,
|
|
13447
13498
|
path: ["mainModule"],
|
|
13448
13499
|
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
13449
13500
|
});
|
|
13450
13501
|
}
|
|
13451
13502
|
});
|
|
13452
|
-
var GetMcpServerInputSchema =
|
|
13503
|
+
var GetMcpServerInputSchema = z29.object({
|
|
13453
13504
|
orgId: McpPathSegmentSchema,
|
|
13454
13505
|
slug: McpPathSegmentSchema
|
|
13455
13506
|
});
|
|
13456
13507
|
var GetMcpServerBrandingInputSchema = GetMcpServerInputSchema;
|
|
13457
|
-
var GetMcpServerBrandingResponseSchema =
|
|
13508
|
+
var GetMcpServerBrandingResponseSchema = z29.object({
|
|
13458
13509
|
branding: McpServerBrandingSchema,
|
|
13459
13510
|
inherited: DeploymentThemeSchema.nullable()
|
|
13460
13511
|
});
|
|
@@ -13467,35 +13518,35 @@ var UpdateMcpServerAuthInputSchema = GetMcpServerInputSchema.extend(
|
|
|
13467
13518
|
).superRefine(mcpServerAuthChecks);
|
|
13468
13519
|
var MCP_EXCHANGE_SECRET_MAX_LENGTH = 4096;
|
|
13469
13520
|
var SetMcpServerExchangeSecretInputSchema = GetMcpServerInputSchema.extend({
|
|
13470
|
-
secret:
|
|
13521
|
+
secret: z29.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
|
|
13471
13522
|
});
|
|
13472
13523
|
var SetMcpServerIpAllowListInputSchema = GetMcpServerInputSchema.extend({
|
|
13473
13524
|
ranges: McpIpAllowListSchema
|
|
13474
13525
|
});
|
|
13475
|
-
var ListMcpServersInputSchema =
|
|
13476
|
-
orgId:
|
|
13526
|
+
var ListMcpServersInputSchema = z29.object({
|
|
13527
|
+
orgId: z29.string()
|
|
13477
13528
|
});
|
|
13478
13529
|
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
13479
13530
|
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13480
13531
|
var PauseMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13481
13532
|
var ResumeMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13482
13533
|
var RenameMcpServerInputSchema = GetMcpServerInputSchema.extend({ newSlug: McpPathSegmentSchema });
|
|
13483
|
-
var GetMcpDeploymentInputSchema =
|
|
13534
|
+
var GetMcpDeploymentInputSchema = z29.object({
|
|
13484
13535
|
orgId: McpPathSegmentSchema,
|
|
13485
13536
|
slug: McpPathSegmentSchema,
|
|
13486
13537
|
/** Id of one of the server's attempts (the rows are uuid v7). */
|
|
13487
|
-
deploymentId:
|
|
13538
|
+
deploymentId: z29.string().uuid()
|
|
13488
13539
|
});
|
|
13489
|
-
var RollbackMcpServerInputSchema =
|
|
13540
|
+
var RollbackMcpServerInputSchema = z29.object({
|
|
13490
13541
|
orgId: McpPathSegmentSchema,
|
|
13491
13542
|
slug: McpPathSegmentSchema,
|
|
13492
13543
|
/** Id of the SUCCEEDED deployment whose payload should serve again. */
|
|
13493
|
-
deploymentId:
|
|
13544
|
+
deploymentId: z29.string().min(1).max(64)
|
|
13494
13545
|
});
|
|
13495
13546
|
var GetMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13496
13547
|
var RefreshMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13497
13548
|
var RemoveMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13498
|
-
var SetMcpCustomDomainInputSchema =
|
|
13549
|
+
var SetMcpCustomDomainInputSchema = z29.object({
|
|
13499
13550
|
orgId: McpPathSegmentSchema,
|
|
13500
13551
|
slug: McpPathSegmentSchema,
|
|
13501
13552
|
/**
|
|
@@ -13503,52 +13554,52 @@ var SetMcpCustomDomainInputSchema = z28.object({
|
|
|
13503
13554
|
* against validateCustomDomain (customDomain.ts) and normalized by FDR;
|
|
13504
13555
|
* the length cap only bounds what is parsed.
|
|
13505
13556
|
*/
|
|
13506
|
-
hostname:
|
|
13557
|
+
hostname: z29.string().min(1).max(512)
|
|
13507
13558
|
});
|
|
13508
|
-
var GetMcpAnalyticsInputSchema =
|
|
13559
|
+
var GetMcpAnalyticsInputSchema = z29.object({
|
|
13509
13560
|
orgId: McpPathSegmentSchema,
|
|
13510
13561
|
slug: McpPathSegmentSchema,
|
|
13511
13562
|
window: McpAnalyticsWindowSchema.default("24h")
|
|
13512
13563
|
});
|
|
13513
|
-
var McpDeploymentGitSchema =
|
|
13514
|
-
repoUrl:
|
|
13515
|
-
branch:
|
|
13516
|
-
commitSha:
|
|
13564
|
+
var McpDeploymentGitSchema = z29.object({
|
|
13565
|
+
repoUrl: z29.string(),
|
|
13566
|
+
branch: z29.string().nullish(),
|
|
13567
|
+
commitSha: z29.string().nullish()
|
|
13517
13568
|
});
|
|
13518
|
-
var McpDeploymentSummarySchema =
|
|
13519
|
-
id:
|
|
13569
|
+
var McpDeploymentSummarySchema = z29.object({
|
|
13570
|
+
id: z29.string(),
|
|
13520
13571
|
status: McpDeploymentStatusSchema,
|
|
13521
13572
|
/** True when this deployment is the one the server currently serves. */
|
|
13522
|
-
isActive:
|
|
13573
|
+
isActive: z29.boolean(),
|
|
13523
13574
|
/**
|
|
13524
13575
|
* Docker image name of the generator that produced this attempt's payload
|
|
13525
13576
|
* (DeployMcpServerInputSchema.generatorName). Null only on the wire from
|
|
13526
13577
|
* an FDR that predates the field; the column itself is required.
|
|
13527
13578
|
*/
|
|
13528
|
-
generatorName:
|
|
13529
|
-
generatorVersion:
|
|
13530
|
-
createdAt:
|
|
13531
|
-
createdBy:
|
|
13532
|
-
error:
|
|
13579
|
+
generatorName: z29.string().nullish(),
|
|
13580
|
+
generatorVersion: z29.string(),
|
|
13581
|
+
createdAt: z29.string(),
|
|
13582
|
+
createdBy: z29.string().nullish(),
|
|
13583
|
+
error: z29.object({ name: z29.string(), message: z29.string() }).nullish(),
|
|
13533
13584
|
/**
|
|
13534
13585
|
* Set when this attempt republished an earlier deployment's payload
|
|
13535
13586
|
* (rollbackServer): the id of that source deployment. Null for attempts
|
|
13536
13587
|
* that came from a deploy.
|
|
13537
13588
|
*/
|
|
13538
|
-
rolledBackFromDeploymentId:
|
|
13589
|
+
rolledBackFromDeploymentId: z29.string().nullish(),
|
|
13539
13590
|
/**
|
|
13540
13591
|
* Headline tool count of this attempt's payload, by the same rule as
|
|
13541
13592
|
* McpServerCatalogSummarySchema.toolCount. Null when the stored payload
|
|
13542
13593
|
* predates the current metadata schema.
|
|
13543
13594
|
*/
|
|
13544
|
-
toolCount:
|
|
13595
|
+
toolCount: z29.number().int().nullish(),
|
|
13545
13596
|
/**
|
|
13546
13597
|
* Version of the Fern CLI that submitted this attempt, when one identified
|
|
13547
13598
|
* itself (DeployMcpServerInputSchema.cliVersion). Null for attempts that
|
|
13548
13599
|
* reached the deploy endpoint without it, and for rollbacks, which FDR
|
|
13549
13600
|
* records on its own behalf.
|
|
13550
13601
|
*/
|
|
13551
|
-
cliVersion:
|
|
13602
|
+
cliVersion: z29.string().nullish(),
|
|
13552
13603
|
/**
|
|
13553
13604
|
* The CI run that submitted this attempt, as the CLI described it in the
|
|
13554
13605
|
* `X-CI-Source` header and FDR sanitized it (the same treatment docs
|
|
@@ -13557,7 +13608,7 @@ var McpDeploymentSummarySchema = z28.object({
|
|
|
13557
13608
|
* and, like the deployer headers, self-asserted by the caller. Null for
|
|
13558
13609
|
* local deploys and rollbacks.
|
|
13559
13610
|
*/
|
|
13560
|
-
ciSource:
|
|
13611
|
+
ciSource: z29.record(z29.string(), z29.unknown()).nullish(),
|
|
13561
13612
|
/**
|
|
13562
13613
|
* The repository this attempt's payload was generated from, as the CLI
|
|
13563
13614
|
* reported it (DeployMcpServerInputSchema.git). A rollback carries its
|
|
@@ -13573,47 +13624,47 @@ var McpDeploymentSummarySchema = z28.object({
|
|
|
13573
13624
|
* deployment it restored always do — so it names what a version *is* rather
|
|
13574
13625
|
* than which row it was. Null when the stored module list does not parse.
|
|
13575
13626
|
*/
|
|
13576
|
-
bundleDigest:
|
|
13627
|
+
bundleDigest: z29.string().nullish()
|
|
13577
13628
|
});
|
|
13578
|
-
var McpDeploymentInputFileSchema =
|
|
13579
|
-
name:
|
|
13580
|
-
contentType:
|
|
13581
|
-
hash:
|
|
13582
|
-
downloadUrl:
|
|
13629
|
+
var McpDeploymentInputFileSchema = z29.object({
|
|
13630
|
+
name: z29.string(),
|
|
13631
|
+
contentType: z29.string(),
|
|
13632
|
+
hash: z29.string(),
|
|
13633
|
+
downloadUrl: z29.string()
|
|
13583
13634
|
});
|
|
13584
13635
|
var McpDeploymentDetailSchema = McpDeploymentSummarySchema.extend({
|
|
13585
13636
|
/** Empty when the stored metadata carries no `tools` (generators before provenance). */
|
|
13586
|
-
tools:
|
|
13587
|
-
skippedTools:
|
|
13637
|
+
tools: z29.array(McpDeploymentToolSchema),
|
|
13638
|
+
skippedTools: z29.array(McpDeploymentSkippedToolSchema),
|
|
13588
13639
|
/** The stored toolset membership map, as deployed. */
|
|
13589
|
-
toolsets:
|
|
13640
|
+
toolsets: z29.record(z29.string(), z29.array(z29.string())),
|
|
13590
13641
|
/** The raw generators.yml `config:` block the CLI sent, or null. Visible to org members. */
|
|
13591
|
-
config:
|
|
13642
|
+
config: z29.unknown().nullable(),
|
|
13592
13643
|
/** Null when the attempt recorded no inputs (older CLIs, rollbacks of such rows). */
|
|
13593
|
-
inputs:
|
|
13644
|
+
inputs: z29.array(McpDeploymentInputFileSchema).nullable()
|
|
13594
13645
|
});
|
|
13595
|
-
var McpCustomDomainStatusSchema =
|
|
13596
|
-
var McpCustomDomainRecordSchema =
|
|
13597
|
-
type:
|
|
13598
|
-
name:
|
|
13599
|
-
value:
|
|
13646
|
+
var McpCustomDomainStatusSchema = z29.enum(["PENDING", "ACTIVE", "FAILED"]);
|
|
13647
|
+
var McpCustomDomainRecordSchema = z29.object({
|
|
13648
|
+
type: z29.enum(["CNAME", "TXT"]),
|
|
13649
|
+
name: z29.string(),
|
|
13650
|
+
value: z29.string(),
|
|
13600
13651
|
/** What the record is for, in a sentence the dashboard can show beside it. */
|
|
13601
|
-
purpose:
|
|
13652
|
+
purpose: z29.string()
|
|
13602
13653
|
});
|
|
13603
|
-
var McpCustomDomainSchema =
|
|
13604
|
-
hostname:
|
|
13654
|
+
var McpCustomDomainSchema = z29.object({
|
|
13655
|
+
hostname: z29.string(),
|
|
13605
13656
|
status: McpCustomDomainStatusSchema,
|
|
13606
13657
|
/** Records still to add; empty once the domain is ACTIVE. */
|
|
13607
|
-
records:
|
|
13658
|
+
records: z29.array(McpCustomDomainRecordSchema),
|
|
13608
13659
|
/** Why Cloudflare could not verify the domain or issue its certificate, when it said. */
|
|
13609
|
-
errors:
|
|
13610
|
-
createdAt:
|
|
13611
|
-
updatedAt:
|
|
13612
|
-
});
|
|
13613
|
-
var McpServerSchema =
|
|
13614
|
-
id:
|
|
13615
|
-
orgId:
|
|
13616
|
-
slug:
|
|
13660
|
+
errors: z29.array(z29.string()),
|
|
13661
|
+
createdAt: z29.string(),
|
|
13662
|
+
updatedAt: z29.string()
|
|
13663
|
+
});
|
|
13664
|
+
var McpServerSchema = z29.object({
|
|
13665
|
+
id: z29.string(),
|
|
13666
|
+
orgId: z29.string(),
|
|
13667
|
+
slug: z29.string(),
|
|
13617
13668
|
/** Per-server custom branding; empty when no values are set. */
|
|
13618
13669
|
branding: McpServerBrandingSchema,
|
|
13619
13670
|
/**
|
|
@@ -13627,9 +13678,9 @@ var McpServerSchema = z28.object({
|
|
|
13627
13678
|
* setServerIpAllowList. Empty means open. Kept across deploys and
|
|
13628
13679
|
* rollbacks. Absent only on the wire from an FDR that predates the field.
|
|
13629
13680
|
*/
|
|
13630
|
-
ipAllowList:
|
|
13681
|
+
ipAllowList: z29.array(z29.string()).optional(),
|
|
13631
13682
|
/** The server is serving iff this is set; it names the serving deployment. */
|
|
13632
|
-
activeDeploymentId:
|
|
13683
|
+
activeDeploymentId: z29.string().nullish(),
|
|
13633
13684
|
/** Most recent publication attempt — how the last deploy went. */
|
|
13634
13685
|
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
13635
13686
|
/**
|
|
@@ -13638,7 +13689,7 @@ var McpServerSchema = z28.object({
|
|
|
13638
13689
|
* (KV_KEY_PREFIX_PAUSED in kv.ts). Independent of activeDeploymentId: a
|
|
13639
13690
|
* paused server keeps its serving deployment and resumes exactly there.
|
|
13640
13691
|
*/
|
|
13641
|
-
pausedAt:
|
|
13692
|
+
pausedAt: z29.string().nullish(),
|
|
13642
13693
|
/**
|
|
13643
13694
|
* What the server offers, derived from the ACTIVE deployment's stored
|
|
13644
13695
|
* metadata (tools, toolsets, auth, configuration). Null when nothing is
|
|
@@ -13652,14 +13703,14 @@ var McpServerSchema = z28.object({
|
|
|
13652
13703
|
* a UI shows both. Only an ACTIVE domain serves: read `customDomainStatus`
|
|
13653
13704
|
* to tell a pending one from a live one.
|
|
13654
13705
|
*/
|
|
13655
|
-
customDomain:
|
|
13706
|
+
customDomain: z29.string().nullish(),
|
|
13656
13707
|
customDomainStatus: McpCustomDomainStatusSchema.nullish(),
|
|
13657
|
-
url:
|
|
13658
|
-
createdAt:
|
|
13659
|
-
updatedAt:
|
|
13708
|
+
url: z29.string().url(),
|
|
13709
|
+
createdAt: z29.string(),
|
|
13710
|
+
updatedAt: z29.string()
|
|
13660
13711
|
});
|
|
13661
|
-
var ListMcpServersResponseSchema =
|
|
13662
|
-
var ListMcpDeploymentsResponseSchema =
|
|
13712
|
+
var ListMcpServersResponseSchema = z29.object({ servers: z29.array(McpServerSchema) });
|
|
13713
|
+
var ListMcpDeploymentsResponseSchema = z29.object({ deployments: z29.array(McpDeploymentSummarySchema) });
|
|
13663
13714
|
var mcpHostingContract = {
|
|
13664
13715
|
deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
13665
13716
|
getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
@@ -13747,7 +13798,19 @@ var mcpHostingContract = {
|
|
|
13747
13798
|
* Analytics Engine by FDR (the tenant filter is applied server-side, so no
|
|
13748
13799
|
* Cloudflare credential reaches the browser). See analytics.ts.
|
|
13749
13800
|
*/
|
|
13750
|
-
getAnalytics: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema)
|
|
13801
|
+
getAnalytics: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema),
|
|
13802
|
+
/**
|
|
13803
|
+
* The org's exact tool-call count for a month against its allowance
|
|
13804
|
+
* (usage.ts). Any member. NOT_IMPLEMENTED when FDR has no usage read
|
|
13805
|
+
* token for the dispatcher.
|
|
13806
|
+
*/
|
|
13807
|
+
getUsage: import_contract31.oc.route({ method: "GET", path: "/usage" }).input(GetMcpUsageInputSchema).output(McpOrgUsageSchema),
|
|
13808
|
+
/**
|
|
13809
|
+
* Set the org's monthly allowance (sales raising a limit or approving an
|
|
13810
|
+
* org to go over). Fern staff (super-users) only. Applies at the
|
|
13811
|
+
* dispatcher within KV's propagation time plus its one-minute cache.
|
|
13812
|
+
*/
|
|
13813
|
+
setUsageAllowance: import_contract31.oc.route({ method: "PUT", path: "/usage/allowance" }).input(SetMcpUsageAllowanceInputSchema).output(McpOrgUsageSchema)
|
|
13751
13814
|
};
|
|
13752
13815
|
|
|
13753
13816
|
// src/orpc-client/mcp-hosting/client.ts
|
|
@@ -13769,87 +13832,87 @@ var import_fetch18 = require("@orpc/openapi-client/fetch");
|
|
|
13769
13832
|
|
|
13770
13833
|
// src/orpc-client/pdf-export/contract.ts
|
|
13771
13834
|
var import_contract33 = require("@orpc/contract");
|
|
13772
|
-
var
|
|
13773
|
-
var PdfExportScopeSchema =
|
|
13774
|
-
pageSlugs:
|
|
13775
|
-
});
|
|
13776
|
-
var PdfExportOptionsV1Schema =
|
|
13777
|
-
coverTitle:
|
|
13778
|
-
coverSubtitle:
|
|
13779
|
-
hideCoverFooter:
|
|
13780
|
-
headerLeftTemplate:
|
|
13781
|
-
headerRightTemplate:
|
|
13782
|
-
footerLeftTemplate:
|
|
13783
|
-
footerRightTemplate:
|
|
13835
|
+
var z30 = __toESM(require("zod"), 1);
|
|
13836
|
+
var PdfExportScopeSchema = z30.object({
|
|
13837
|
+
pageSlugs: z30.array(z30.string())
|
|
13838
|
+
});
|
|
13839
|
+
var PdfExportOptionsV1Schema = z30.object({
|
|
13840
|
+
coverTitle: z30.string().nullish(),
|
|
13841
|
+
coverSubtitle: z30.string().nullish(),
|
|
13842
|
+
hideCoverFooter: z30.boolean().nullish(),
|
|
13843
|
+
headerLeftTemplate: z30.string().nullish(),
|
|
13844
|
+
headerRightTemplate: z30.string().nullish(),
|
|
13845
|
+
footerLeftTemplate: z30.string().nullish(),
|
|
13846
|
+
footerRightTemplate: z30.string().nullish(),
|
|
13784
13847
|
scope: PdfExportScopeSchema.nullish(),
|
|
13785
|
-
hideCover:
|
|
13786
|
-
hideToc:
|
|
13848
|
+
hideCover: z30.boolean().nullish(),
|
|
13849
|
+
hideToc: z30.boolean().nullish()
|
|
13787
13850
|
});
|
|
13788
|
-
var PdfExportOptionsSchema =
|
|
13789
|
-
|
|
13851
|
+
var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
|
|
13852
|
+
z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
13790
13853
|
]);
|
|
13791
|
-
var PdfExportTaskStatusSchema =
|
|
13792
|
-
var PdfExportFormatSchema =
|
|
13793
|
-
var PdfExportTaskSchema =
|
|
13794
|
-
id:
|
|
13795
|
-
orgId:
|
|
13796
|
-
docsUrl:
|
|
13797
|
-
productId:
|
|
13798
|
-
versionId:
|
|
13799
|
-
requesterName:
|
|
13800
|
-
notifyEmails:
|
|
13854
|
+
var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
13855
|
+
var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
|
|
13856
|
+
var PdfExportTaskSchema = z30.object({
|
|
13857
|
+
id: z30.string(),
|
|
13858
|
+
orgId: z30.string(),
|
|
13859
|
+
docsUrl: z30.string(),
|
|
13860
|
+
productId: z30.string().nullish(),
|
|
13861
|
+
versionId: z30.string().nullish(),
|
|
13862
|
+
requesterName: z30.string().nullish(),
|
|
13863
|
+
notifyEmails: z30.array(z30.string()).nullish(),
|
|
13801
13864
|
status: PdfExportTaskStatusSchema,
|
|
13802
13865
|
format: PdfExportFormatSchema.nullish(),
|
|
13803
13866
|
options: PdfExportOptionsSchema.nullish(),
|
|
13804
|
-
createdAt:
|
|
13805
|
-
startedAt:
|
|
13806
|
-
completedAt:
|
|
13807
|
-
fileName:
|
|
13808
|
-
sizeBytes:
|
|
13809
|
-
errorMessage:
|
|
13810
|
-
});
|
|
13811
|
-
var ListPdfExportTasksResponseSchema =
|
|
13812
|
-
tasks:
|
|
13813
|
-
});
|
|
13814
|
-
var PdfExportDownloadResponseSchema =
|
|
13815
|
-
downloadUrl:
|
|
13816
|
-
fileName:
|
|
13817
|
-
sizeBytes:
|
|
13818
|
-
});
|
|
13819
|
-
var CreatePdfExportTaskInputSchema =
|
|
13820
|
-
orgId:
|
|
13821
|
-
docsUrl:
|
|
13822
|
-
productId:
|
|
13823
|
-
versionId:
|
|
13824
|
-
requesterName:
|
|
13867
|
+
createdAt: z30.string(),
|
|
13868
|
+
startedAt: z30.string().nullish(),
|
|
13869
|
+
completedAt: z30.string().nullish(),
|
|
13870
|
+
fileName: z30.string().nullish(),
|
|
13871
|
+
sizeBytes: z30.number().nullish(),
|
|
13872
|
+
errorMessage: z30.string().nullish()
|
|
13873
|
+
});
|
|
13874
|
+
var ListPdfExportTasksResponseSchema = z30.object({
|
|
13875
|
+
tasks: z30.array(PdfExportTaskSchema)
|
|
13876
|
+
});
|
|
13877
|
+
var PdfExportDownloadResponseSchema = z30.object({
|
|
13878
|
+
downloadUrl: z30.string(),
|
|
13879
|
+
fileName: z30.string(),
|
|
13880
|
+
sizeBytes: z30.number()
|
|
13881
|
+
});
|
|
13882
|
+
var CreatePdfExportTaskInputSchema = z30.object({
|
|
13883
|
+
orgId: z30.string(),
|
|
13884
|
+
docsUrl: z30.string(),
|
|
13885
|
+
productId: z30.string().nullish(),
|
|
13886
|
+
versionId: z30.string().nullish(),
|
|
13887
|
+
requesterName: z30.string().nullish(),
|
|
13825
13888
|
format: PdfExportFormatSchema.nullish(),
|
|
13826
13889
|
options: PdfExportOptionsSchema.nullish()
|
|
13827
13890
|
});
|
|
13828
|
-
var ListPdfExportTasksInputSchema =
|
|
13829
|
-
orgId:
|
|
13830
|
-
docsUrl:
|
|
13831
|
-
limit:
|
|
13891
|
+
var ListPdfExportTasksInputSchema = z30.object({
|
|
13892
|
+
orgId: z30.string(),
|
|
13893
|
+
docsUrl: z30.string(),
|
|
13894
|
+
limit: z30.coerce.number().nullish()
|
|
13832
13895
|
});
|
|
13833
|
-
var GetPdfExportTaskInputSchema =
|
|
13834
|
-
taskId:
|
|
13896
|
+
var GetPdfExportTaskInputSchema = z30.object({
|
|
13897
|
+
taskId: z30.string()
|
|
13835
13898
|
});
|
|
13836
|
-
var UpdatePdfExportTaskInputSchema =
|
|
13837
|
-
taskId:
|
|
13899
|
+
var UpdatePdfExportTaskInputSchema = z30.object({
|
|
13900
|
+
taskId: z30.string(),
|
|
13838
13901
|
status: PdfExportTaskStatusSchema,
|
|
13839
|
-
startedAt:
|
|
13840
|
-
completedAt:
|
|
13841
|
-
s3Key:
|
|
13842
|
-
fileName:
|
|
13843
|
-
sizeBytes:
|
|
13844
|
-
errorMessage:
|
|
13902
|
+
startedAt: z30.string().nullish(),
|
|
13903
|
+
completedAt: z30.string().nullish(),
|
|
13904
|
+
s3Key: z30.string().nullish(),
|
|
13905
|
+
fileName: z30.string().nullish(),
|
|
13906
|
+
sizeBytes: z30.number().nullish(),
|
|
13907
|
+
errorMessage: z30.string().nullish()
|
|
13845
13908
|
});
|
|
13846
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
13847
|
-
taskId:
|
|
13909
|
+
var GetPdfExportDownloadUrlInputSchema = z30.object({
|
|
13910
|
+
taskId: z30.string()
|
|
13848
13911
|
});
|
|
13849
|
-
var CleanupPdfExportsResponseSchema =
|
|
13850
|
-
expiredTasksDeleted:
|
|
13851
|
-
s3ObjectsDeleted:
|
|
13852
|
-
timedOutTasksFailed:
|
|
13912
|
+
var CleanupPdfExportsResponseSchema = z30.object({
|
|
13913
|
+
expiredTasksDeleted: z30.number(),
|
|
13914
|
+
s3ObjectsDeleted: z30.number(),
|
|
13915
|
+
timedOutTasksFailed: z30.number()
|
|
13853
13916
|
});
|
|
13854
13917
|
var pdfExportContract = {
|
|
13855
13918
|
createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
@@ -13882,8 +13945,8 @@ var import_fetch19 = require("@orpc/openapi-client/fetch");
|
|
|
13882
13945
|
|
|
13883
13946
|
// src/orpc-client/sdks/contract.ts
|
|
13884
13947
|
var import_contract35 = require("@orpc/contract");
|
|
13885
|
-
var
|
|
13886
|
-
var LanguageEnumSchema =
|
|
13948
|
+
var z31 = __toESM(require("zod"), 1);
|
|
13949
|
+
var LanguageEnumSchema = z31.enum([
|
|
13887
13950
|
"Go",
|
|
13888
13951
|
"TypeScript",
|
|
13889
13952
|
"Java",
|
|
@@ -13894,14 +13957,14 @@ var LanguageEnumSchema = z30.enum([
|
|
|
13894
13957
|
"Swift",
|
|
13895
13958
|
"Rust"
|
|
13896
13959
|
]);
|
|
13897
|
-
var VersionBumpEnumSchema =
|
|
13898
|
-
var ComputeSemanticVersionInputSchema =
|
|
13899
|
-
package:
|
|
13960
|
+
var VersionBumpEnumSchema = z31.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
13961
|
+
var ComputeSemanticVersionInputSchema = z31.object({
|
|
13962
|
+
package: z31.string(),
|
|
13900
13963
|
language: LanguageEnumSchema,
|
|
13901
|
-
githubRepository:
|
|
13964
|
+
githubRepository: z31.string().nullish()
|
|
13902
13965
|
});
|
|
13903
|
-
var ComputeSemanticVersionOutputSchema =
|
|
13904
|
-
version:
|
|
13966
|
+
var ComputeSemanticVersionOutputSchema = z31.object({
|
|
13967
|
+
version: z31.string(),
|
|
13905
13968
|
bump: VersionBumpEnumSchema
|
|
13906
13969
|
});
|
|
13907
13970
|
var sdksContract = {
|
|
@@ -13927,32 +13990,32 @@ var import_fetch20 = require("@orpc/openapi-client/fetch");
|
|
|
13927
13990
|
|
|
13928
13991
|
// src/orpc-client/slugs/contract.ts
|
|
13929
13992
|
var import_contract37 = require("@orpc/contract");
|
|
13930
|
-
var
|
|
13931
|
-
var SlugsInputSchema =
|
|
13932
|
-
domain:
|
|
13933
|
-
basepath:
|
|
13934
|
-
});
|
|
13935
|
-
var SlugEntrySchema =
|
|
13936
|
-
orgId:
|
|
13937
|
-
domain:
|
|
13938
|
-
basepath:
|
|
13939
|
-
slug:
|
|
13940
|
-
lastUpdated:
|
|
13941
|
-
});
|
|
13942
|
-
var MarkdownEntrySchema =
|
|
13943
|
-
orgId:
|
|
13944
|
-
domain:
|
|
13945
|
-
basepath:
|
|
13946
|
-
pageId:
|
|
13947
|
-
slug:
|
|
13948
|
-
hash:
|
|
13949
|
-
lastUpdated:
|
|
13950
|
-
});
|
|
13951
|
-
var GetSlugEntriesResponseSchema =
|
|
13952
|
-
entries:
|
|
13953
|
-
});
|
|
13954
|
-
var GetMarkdownEntriesResponseSchema =
|
|
13955
|
-
entries:
|
|
13993
|
+
var z32 = __toESM(require("zod"), 1);
|
|
13994
|
+
var SlugsInputSchema = z32.object({
|
|
13995
|
+
domain: z32.string(),
|
|
13996
|
+
basepath: z32.string().optional().default("")
|
|
13997
|
+
});
|
|
13998
|
+
var SlugEntrySchema = z32.object({
|
|
13999
|
+
orgId: z32.string(),
|
|
14000
|
+
domain: z32.string(),
|
|
14001
|
+
basepath: z32.string(),
|
|
14002
|
+
slug: z32.string(),
|
|
14003
|
+
lastUpdated: z32.string()
|
|
14004
|
+
});
|
|
14005
|
+
var MarkdownEntrySchema = z32.object({
|
|
14006
|
+
orgId: z32.string(),
|
|
14007
|
+
domain: z32.string(),
|
|
14008
|
+
basepath: z32.string(),
|
|
14009
|
+
pageId: z32.string(),
|
|
14010
|
+
slug: z32.string(),
|
|
14011
|
+
hash: z32.string(),
|
|
14012
|
+
lastUpdated: z32.string()
|
|
14013
|
+
});
|
|
14014
|
+
var GetSlugEntriesResponseSchema = z32.object({
|
|
14015
|
+
entries: z32.array(SlugEntrySchema)
|
|
14016
|
+
});
|
|
14017
|
+
var GetMarkdownEntriesResponseSchema = z32.object({
|
|
14018
|
+
entries: z32.array(MarkdownEntrySchema)
|
|
13956
14019
|
});
|
|
13957
14020
|
var slugsContract = {
|
|
13958
14021
|
getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
@@ -13985,102 +14048,102 @@ __export(contract_exports3, {
|
|
|
13985
14048
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
13986
14049
|
});
|
|
13987
14050
|
var import_contract39 = require("@orpc/contract");
|
|
13988
|
-
var
|
|
13989
|
-
var TypeScriptSdkSchema =
|
|
13990
|
-
var PythonSdkSchema =
|
|
13991
|
-
var GoSdkSchema =
|
|
13992
|
-
var RubySdkSchema =
|
|
13993
|
-
var JavaSdkSchema =
|
|
13994
|
-
var CsharpSdkSchema =
|
|
13995
|
-
var BaseSnippetCreateSchema =
|
|
14051
|
+
var z33 = __toESM(require("zod"), 1);
|
|
14052
|
+
var TypeScriptSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
14053
|
+
var PythonSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
14054
|
+
var GoSdkSchema = z33.object({ githubRepo: z33.string(), version: z33.string() });
|
|
14055
|
+
var RubySdkSchema = z33.object({ gem: z33.string(), version: z33.string() });
|
|
14056
|
+
var JavaSdkSchema = z33.object({ group: z33.string(), artifact: z33.string(), version: z33.string() });
|
|
14057
|
+
var CsharpSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
14058
|
+
var BaseSnippetCreateSchema = z33.object({
|
|
13996
14059
|
endpoint: EndpointIdentifierSchema,
|
|
13997
|
-
exampleIdentifier:
|
|
14060
|
+
exampleIdentifier: z33.string().nullish()
|
|
13998
14061
|
});
|
|
13999
|
-
var SdkSnippetsCreateSchema =
|
|
14000
|
-
|
|
14001
|
-
type:
|
|
14062
|
+
var SdkSnippetsCreateSchema = z33.discriminatedUnion("type", [
|
|
14063
|
+
z33.object({
|
|
14064
|
+
type: z33.literal("typescript"),
|
|
14002
14065
|
sdk: TypeScriptSdkSchema,
|
|
14003
|
-
snippets:
|
|
14066
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
14004
14067
|
}),
|
|
14005
|
-
|
|
14006
|
-
type:
|
|
14068
|
+
z33.object({
|
|
14069
|
+
type: z33.literal("python"),
|
|
14007
14070
|
sdk: PythonSdkSchema,
|
|
14008
|
-
snippets:
|
|
14071
|
+
snippets: z33.array(
|
|
14009
14072
|
BaseSnippetCreateSchema.extend({
|
|
14010
|
-
snippet:
|
|
14073
|
+
snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
|
|
14011
14074
|
})
|
|
14012
14075
|
)
|
|
14013
14076
|
}),
|
|
14014
|
-
|
|
14015
|
-
type:
|
|
14077
|
+
z33.object({
|
|
14078
|
+
type: z33.literal("go"),
|
|
14016
14079
|
sdk: GoSdkSchema,
|
|
14017
|
-
snippets:
|
|
14080
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
14018
14081
|
}),
|
|
14019
|
-
|
|
14020
|
-
type:
|
|
14082
|
+
z33.object({
|
|
14083
|
+
type: z33.literal("java"),
|
|
14021
14084
|
sdk: JavaSdkSchema,
|
|
14022
|
-
snippets:
|
|
14085
|
+
snippets: z33.array(
|
|
14023
14086
|
BaseSnippetCreateSchema.extend({
|
|
14024
|
-
snippet:
|
|
14087
|
+
snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
|
|
14025
14088
|
})
|
|
14026
14089
|
)
|
|
14027
14090
|
}),
|
|
14028
|
-
|
|
14029
|
-
type:
|
|
14091
|
+
z33.object({
|
|
14092
|
+
type: z33.literal("ruby"),
|
|
14030
14093
|
sdk: RubySdkSchema,
|
|
14031
|
-
snippets:
|
|
14094
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
14032
14095
|
}),
|
|
14033
|
-
|
|
14034
|
-
type:
|
|
14096
|
+
z33.object({
|
|
14097
|
+
type: z33.literal("csharp"),
|
|
14035
14098
|
sdk: CsharpSdkSchema,
|
|
14036
|
-
snippets:
|
|
14099
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
14037
14100
|
})
|
|
14038
14101
|
]);
|
|
14039
14102
|
var snippetsFactoryContract = {
|
|
14040
14103
|
createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
|
|
14041
|
-
|
|
14042
|
-
orgId:
|
|
14043
|
-
apiId:
|
|
14104
|
+
z33.object({
|
|
14105
|
+
orgId: z33.string(),
|
|
14106
|
+
apiId: z33.string(),
|
|
14044
14107
|
snippets: SdkSnippetsCreateSchema
|
|
14045
14108
|
})
|
|
14046
14109
|
)
|
|
14047
14110
|
};
|
|
14048
|
-
var ParameterPayloadSchema =
|
|
14049
|
-
name:
|
|
14050
|
-
value:
|
|
14111
|
+
var ParameterPayloadSchema = z33.object({
|
|
14112
|
+
name: z33.string(),
|
|
14113
|
+
value: z33.unknown()
|
|
14051
14114
|
});
|
|
14052
|
-
var AuthPayloadSchema =
|
|
14053
|
-
|
|
14054
|
-
|
|
14115
|
+
var AuthPayloadSchema = z33.discriminatedUnion("type", [
|
|
14116
|
+
z33.object({ type: z33.literal("bearer"), token: z33.string() }),
|
|
14117
|
+
z33.object({ type: z33.literal("basic"), username: z33.string(), password: z33.string() })
|
|
14055
14118
|
]);
|
|
14056
|
-
var CustomSnippetPayloadSchema =
|
|
14057
|
-
headers:
|
|
14058
|
-
pathParameters:
|
|
14059
|
-
queryParameters:
|
|
14060
|
-
requestBody:
|
|
14119
|
+
var CustomSnippetPayloadSchema = z33.object({
|
|
14120
|
+
headers: z33.array(ParameterPayloadSchema).nullish(),
|
|
14121
|
+
pathParameters: z33.array(ParameterPayloadSchema).nullish(),
|
|
14122
|
+
queryParameters: z33.array(ParameterPayloadSchema).nullish(),
|
|
14123
|
+
requestBody: z33.unknown().nullish(),
|
|
14061
14124
|
auth: AuthPayloadSchema.nullish()
|
|
14062
14125
|
});
|
|
14063
14126
|
var snippetsContract = {
|
|
14064
14127
|
get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
|
|
14065
|
-
|
|
14066
|
-
orgId:
|
|
14067
|
-
apiId:
|
|
14068
|
-
sdks:
|
|
14128
|
+
z33.object({
|
|
14129
|
+
orgId: z33.string().nullish(),
|
|
14130
|
+
apiId: z33.string().nullish(),
|
|
14131
|
+
sdks: z33.array(SdkRequestSchema).nullish(),
|
|
14069
14132
|
endpoint: EndpointIdentifierSchema,
|
|
14070
|
-
exampleIdentifier:
|
|
14133
|
+
exampleIdentifier: z33.string().nullish(),
|
|
14071
14134
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
14072
14135
|
})
|
|
14073
|
-
).output(
|
|
14136
|
+
).output(z33.array(z33.unknown())),
|
|
14074
14137
|
load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
|
|
14075
|
-
|
|
14076
|
-
orgId:
|
|
14077
|
-
apiId:
|
|
14078
|
-
sdks:
|
|
14138
|
+
z33.object({
|
|
14139
|
+
orgId: z33.string().nullish(),
|
|
14140
|
+
apiId: z33.string().nullish(),
|
|
14141
|
+
sdks: z33.array(SdkRequestSchema).nullish()
|
|
14079
14142
|
})
|
|
14080
14143
|
).output(
|
|
14081
|
-
|
|
14082
|
-
next:
|
|
14083
|
-
snippets:
|
|
14144
|
+
z33.object({
|
|
14145
|
+
next: z33.number().nullish(),
|
|
14146
|
+
snippets: z33.record(z33.string(), z33.unknown())
|
|
14084
14147
|
})
|
|
14085
14148
|
)
|
|
14086
14149
|
};
|
|
@@ -14115,44 +14178,44 @@ var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
|
14115
14178
|
|
|
14116
14179
|
// src/orpc-client/templates/contract.ts
|
|
14117
14180
|
var import_contract41 = require("@orpc/contract");
|
|
14118
|
-
var
|
|
14119
|
-
var SnippetRegistryEntrySchema =
|
|
14181
|
+
var z34 = __toESM(require("zod"), 1);
|
|
14182
|
+
var SnippetRegistryEntrySchema = z34.object({
|
|
14120
14183
|
sdk: SdkSchema,
|
|
14121
|
-
endpointId:
|
|
14122
|
-
path:
|
|
14184
|
+
endpointId: z34.object({
|
|
14185
|
+
path: z34.string(),
|
|
14123
14186
|
method: HttpMethodSchema,
|
|
14124
|
-
identifierOverride:
|
|
14187
|
+
identifierOverride: z34.string().nullish()
|
|
14125
14188
|
}),
|
|
14126
|
-
snippetTemplate:
|
|
14127
|
-
type:
|
|
14128
|
-
functionInvocation:
|
|
14129
|
-
clientInstantiation:
|
|
14189
|
+
snippetTemplate: z34.object({
|
|
14190
|
+
type: z34.literal("v1"),
|
|
14191
|
+
functionInvocation: z34.unknown(),
|
|
14192
|
+
clientInstantiation: z34.string()
|
|
14130
14193
|
}),
|
|
14131
|
-
additionalTemplates:
|
|
14194
|
+
additionalTemplates: z34.record(z34.string(), z34.unknown()).nullish()
|
|
14132
14195
|
});
|
|
14133
|
-
var RegisterInputSchema =
|
|
14134
|
-
orgId:
|
|
14135
|
-
apiId:
|
|
14136
|
-
apiDefinitionId:
|
|
14196
|
+
var RegisterInputSchema = z34.object({
|
|
14197
|
+
orgId: z34.string(),
|
|
14198
|
+
apiId: z34.string(),
|
|
14199
|
+
apiDefinitionId: z34.string(),
|
|
14137
14200
|
snippet: SnippetRegistryEntrySchema
|
|
14138
14201
|
});
|
|
14139
|
-
var RegisterBatchInputSchema =
|
|
14140
|
-
orgId:
|
|
14141
|
-
apiId:
|
|
14142
|
-
apiDefinitionId:
|
|
14143
|
-
snippets:
|
|
14202
|
+
var RegisterBatchInputSchema = z34.object({
|
|
14203
|
+
orgId: z34.string(),
|
|
14204
|
+
apiId: z34.string(),
|
|
14205
|
+
apiDefinitionId: z34.string(),
|
|
14206
|
+
snippets: z34.array(SnippetRegistryEntrySchema)
|
|
14144
14207
|
});
|
|
14145
|
-
var GetInputSchema =
|
|
14146
|
-
orgId:
|
|
14147
|
-
apiId:
|
|
14208
|
+
var GetInputSchema = z34.object({
|
|
14209
|
+
orgId: z34.string(),
|
|
14210
|
+
apiId: z34.string(),
|
|
14148
14211
|
sdk: SdkSchema,
|
|
14149
|
-
endpointId:
|
|
14150
|
-
path:
|
|
14212
|
+
endpointId: z34.object({
|
|
14213
|
+
path: z34.string(),
|
|
14151
14214
|
method: HttpMethodSchema,
|
|
14152
|
-
identifierOverride:
|
|
14215
|
+
identifierOverride: z34.string().nullish()
|
|
14153
14216
|
})
|
|
14154
14217
|
});
|
|
14155
|
-
var EndpointSnippetTemplateSchema =
|
|
14218
|
+
var EndpointSnippetTemplateSchema = z34.record(z34.string(), z34.unknown());
|
|
14156
14219
|
var templatesContract = {
|
|
14157
14220
|
register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
14158
14221
|
registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
@@ -14179,18 +14242,18 @@ var import_fetch23 = require("@orpc/openapi-client/fetch");
|
|
|
14179
14242
|
|
|
14180
14243
|
// src/orpc-client/tokens/contract.ts
|
|
14181
14244
|
var import_contract43 = require("@orpc/contract");
|
|
14182
|
-
var
|
|
14183
|
-
var GenerateTokenInputSchema =
|
|
14184
|
-
orgId:
|
|
14185
|
-
scope:
|
|
14245
|
+
var z35 = __toESM(require("zod"), 1);
|
|
14246
|
+
var GenerateTokenInputSchema = z35.object({
|
|
14247
|
+
orgId: z35.string(),
|
|
14248
|
+
scope: z35.string()
|
|
14186
14249
|
});
|
|
14187
|
-
var RevokeTokenInputSchema =
|
|
14188
|
-
orgId:
|
|
14189
|
-
tokenId:
|
|
14250
|
+
var RevokeTokenInputSchema = z35.object({
|
|
14251
|
+
orgId: z35.string(),
|
|
14252
|
+
tokenId: z35.string()
|
|
14190
14253
|
});
|
|
14191
|
-
var GenerateTokenOutputSchema =
|
|
14192
|
-
token:
|
|
14193
|
-
id:
|
|
14254
|
+
var GenerateTokenOutputSchema = z35.object({
|
|
14255
|
+
token: z35.string(),
|
|
14256
|
+
id: z35.string()
|
|
14194
14257
|
});
|
|
14195
14258
|
var tokensContract = {
|
|
14196
14259
|
generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
@@ -14473,85 +14536,85 @@ __export(APIV1Db_exports, {
|
|
|
14473
14536
|
});
|
|
14474
14537
|
|
|
14475
14538
|
// src/orpc-client/api/contract-db.ts
|
|
14476
|
-
var
|
|
14477
|
-
var EndpointSnippetTemplatesSchema =
|
|
14478
|
-
typescript:
|
|
14479
|
-
python:
|
|
14539
|
+
var z36 = __toESM(require("zod"), 1);
|
|
14540
|
+
var EndpointSnippetTemplatesSchema = z36.object({
|
|
14541
|
+
typescript: z36.unknown().nullish(),
|
|
14542
|
+
python: z36.unknown().nullish()
|
|
14480
14543
|
});
|
|
14481
|
-
var DbHttpRequestSchema =
|
|
14482
|
-
description:
|
|
14483
|
-
contentType:
|
|
14544
|
+
var DbHttpRequestSchema = z36.object({
|
|
14545
|
+
description: z36.string().nullish(),
|
|
14546
|
+
contentType: z36.string().nullish(),
|
|
14484
14547
|
type: RegisterHttpRequestBodyShapeSchema
|
|
14485
14548
|
});
|
|
14486
|
-
var DbHttpRequestsV2Schema =
|
|
14487
|
-
requests:
|
|
14549
|
+
var DbHttpRequestsV2Schema = z36.object({
|
|
14550
|
+
requests: z36.array(DbHttpRequestSchema).nullish()
|
|
14488
14551
|
});
|
|
14489
|
-
var DbEndpointDefinitionSchema =
|
|
14490
|
-
description:
|
|
14491
|
-
subtitle:
|
|
14552
|
+
var DbEndpointDefinitionSchema = z36.object({
|
|
14553
|
+
description: z36.string().nullish(),
|
|
14554
|
+
subtitle: z36.string().nullish(),
|
|
14492
14555
|
availability: AvailabilitySchema.nullish(),
|
|
14493
|
-
authed:
|
|
14494
|
-
authV2:
|
|
14495
|
-
multiAuth:
|
|
14556
|
+
authed: z36.boolean().nullish(),
|
|
14557
|
+
authV2: z36.array(AuthSchemeIdSchema).nullish(),
|
|
14558
|
+
multiAuth: z36.array(MultipleAuthTypeSchema).nullish(),
|
|
14496
14559
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
14497
|
-
environments:
|
|
14560
|
+
environments: z36.array(EnvironmentSchema).nullish(),
|
|
14498
14561
|
method: HttpMethodSchema,
|
|
14499
14562
|
id: EndpointIdSchema,
|
|
14500
|
-
originalEndpointId:
|
|
14501
|
-
urlSlug:
|
|
14502
|
-
migratedFromUrlSlugs:
|
|
14503
|
-
name:
|
|
14563
|
+
originalEndpointId: z36.string().nullish(),
|
|
14564
|
+
urlSlug: z36.string(),
|
|
14565
|
+
migratedFromUrlSlugs: z36.array(z36.string()).nullish(),
|
|
14566
|
+
name: z36.string().nullish(),
|
|
14504
14567
|
path: EndpointPathSchema,
|
|
14505
|
-
queryParameters:
|
|
14506
|
-
headers:
|
|
14507
|
-
responseHeaders:
|
|
14568
|
+
queryParameters: z36.array(QueryParameterSchema),
|
|
14569
|
+
headers: z36.array(HeaderSchema),
|
|
14570
|
+
responseHeaders: z36.array(HeaderSchema).nullish(),
|
|
14508
14571
|
request: DbHttpRequestSchema.nullish(),
|
|
14509
14572
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
14510
14573
|
response: RegisterHttpResponseSchema.nullish(),
|
|
14511
14574
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
14512
|
-
errors:
|
|
14513
|
-
errorsV2:
|
|
14514
|
-
examples:
|
|
14575
|
+
errors: z36.array(ErrorDeclarationSchema).nullish(),
|
|
14576
|
+
errorsV2: z36.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
14577
|
+
examples: z36.array(RegisterExampleEndpointCallSchema),
|
|
14515
14578
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
14516
14579
|
protocol: ProtocolSchema.nullish(),
|
|
14517
|
-
includeInApiExplorer:
|
|
14518
|
-
});
|
|
14519
|
-
var DbApiDefinitionPackageSchema =
|
|
14520
|
-
endpoints:
|
|
14521
|
-
websockets:
|
|
14522
|
-
webhooks:
|
|
14523
|
-
graphqlOperations:
|
|
14524
|
-
types:
|
|
14525
|
-
subpackages:
|
|
14580
|
+
includeInApiExplorer: z36.boolean().nullish()
|
|
14581
|
+
});
|
|
14582
|
+
var DbApiDefinitionPackageSchema = z36.object({
|
|
14583
|
+
endpoints: z36.array(DbEndpointDefinitionSchema),
|
|
14584
|
+
websockets: z36.array(RegisterWebSocketChannelSchema).nullish(),
|
|
14585
|
+
webhooks: z36.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
14586
|
+
graphqlOperations: z36.array(GraphQlOperationSchema).nullish(),
|
|
14587
|
+
types: z36.array(TypeIdSchema),
|
|
14588
|
+
subpackages: z36.array(SubpackageIdSchema),
|
|
14526
14589
|
pointsTo: SubpackageIdSchema.nullish()
|
|
14527
14590
|
});
|
|
14528
|
-
var DbApiDefinitionSubpackageSchema =
|
|
14591
|
+
var DbApiDefinitionSubpackageSchema = z36.object({
|
|
14529
14592
|
...DbApiDefinitionPackageSchema.shape,
|
|
14530
|
-
description:
|
|
14593
|
+
description: z36.string().nullish(),
|
|
14531
14594
|
parent: SubpackageIdSchema.nullish(),
|
|
14532
14595
|
subpackageId: SubpackageIdSchema,
|
|
14533
|
-
name:
|
|
14534
|
-
urlSlug:
|
|
14535
|
-
displayName:
|
|
14596
|
+
name: z36.string(),
|
|
14597
|
+
urlSlug: z36.string(),
|
|
14598
|
+
displayName: z36.string().nullish()
|
|
14536
14599
|
});
|
|
14537
|
-
var DbApiDefinitionSchema =
|
|
14600
|
+
var DbApiDefinitionSchema = z36.object({
|
|
14538
14601
|
id: ApiDefinitionIdSchema,
|
|
14539
|
-
apiName:
|
|
14540
|
-
specVersion:
|
|
14602
|
+
apiName: z36.string().nullish(),
|
|
14603
|
+
specVersion: z36.string().nullish(),
|
|
14541
14604
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
14542
|
-
types:
|
|
14543
|
-
subpackages:
|
|
14605
|
+
types: z36.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
14606
|
+
subpackages: z36.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
14544
14607
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
14545
14608
|
auth: ApiAuthSchema.nullish(),
|
|
14546
|
-
authSchemes:
|
|
14547
|
-
hasMultipleBaseUrls:
|
|
14609
|
+
authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
14610
|
+
hasMultipleBaseUrls: z36.boolean(),
|
|
14548
14611
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
14549
|
-
globalHeaders:
|
|
14612
|
+
globalHeaders: z36.array(HeaderSchema).nullish()
|
|
14550
14613
|
});
|
|
14551
|
-
var DbEndpointWithContextSchema =
|
|
14614
|
+
var DbEndpointWithContextSchema = z36.object({
|
|
14552
14615
|
endpoint: DbEndpointDefinitionSchema,
|
|
14553
|
-
authSchemes:
|
|
14554
|
-
globalHeaders:
|
|
14616
|
+
authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
14617
|
+
globalHeaders: z36.array(HeaderSchema).nullish()
|
|
14555
14618
|
});
|
|
14556
14619
|
|
|
14557
14620
|
// src/client/APIV1Read.ts
|
|
@@ -15143,15 +15206,15 @@ __export(DocsV1Db_exports, {
|
|
|
15143
15206
|
});
|
|
15144
15207
|
|
|
15145
15208
|
// src/client/docs-types/db.ts
|
|
15146
|
-
var
|
|
15209
|
+
var z38 = __toESM(require("zod"), 1);
|
|
15147
15210
|
|
|
15148
15211
|
// src/client/docs-types/db-docsRead.ts
|
|
15149
|
-
var
|
|
15150
|
-
var BackgroundSchema2 =
|
|
15151
|
-
|
|
15152
|
-
|
|
15212
|
+
var z37 = __toESM(require("zod"), 1);
|
|
15213
|
+
var BackgroundSchema2 = z37.discriminatedUnion("type", [
|
|
15214
|
+
z37.object({ type: z37.literal("solid"), ...RgbaColorSchema.shape }),
|
|
15215
|
+
z37.object({ type: z37.literal("gradient") })
|
|
15153
15216
|
]);
|
|
15154
|
-
var ThemeConfigSchema3 =
|
|
15217
|
+
var ThemeConfigSchema3 = z37.object({
|
|
15155
15218
|
logo: FileIdSchema2.optional(),
|
|
15156
15219
|
backgroundImage: FileIdSchema2.optional(),
|
|
15157
15220
|
accentPrimary: RgbaColorSchema,
|
|
@@ -15173,175 +15236,175 @@ var ThemeConfigSchema3 = z36.object({
|
|
|
15173
15236
|
accent11: RgbaColorSchema.optional(),
|
|
15174
15237
|
accent12: RgbaColorSchema.optional()
|
|
15175
15238
|
});
|
|
15176
|
-
var DarkAndLightModeConfigSchema3 =
|
|
15239
|
+
var DarkAndLightModeConfigSchema3 = z37.object({
|
|
15177
15240
|
dark: ThemeConfigSchema3,
|
|
15178
15241
|
light: ThemeConfigSchema3
|
|
15179
15242
|
});
|
|
15180
|
-
var ColorsConfigV3Schema3 =
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
|
|
15243
|
+
var ColorsConfigV3Schema3 = z37.discriminatedUnion("type", [
|
|
15244
|
+
z37.object({ type: z37.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
15245
|
+
z37.object({ type: z37.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
15246
|
+
z37.object({ type: z37.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
15184
15247
|
]);
|
|
15185
15248
|
|
|
15186
15249
|
// src/client/docs-types/db.ts
|
|
15187
|
-
var DbFileInfoSchema =
|
|
15188
|
-
s3Key:
|
|
15189
|
-
});
|
|
15190
|
-
var DbImageFileInfoSchema =
|
|
15191
|
-
s3Key:
|
|
15192
|
-
width:
|
|
15193
|
-
height:
|
|
15194
|
-
blurDataUrl:
|
|
15195
|
-
alt:
|
|
15196
|
-
});
|
|
15197
|
-
var DbFileInfoV2Schema =
|
|
15198
|
-
|
|
15199
|
-
|
|
15250
|
+
var DbFileInfoSchema = z38.object({
|
|
15251
|
+
s3Key: z38.string()
|
|
15252
|
+
});
|
|
15253
|
+
var DbImageFileInfoSchema = z38.object({
|
|
15254
|
+
s3Key: z38.string(),
|
|
15255
|
+
width: z38.number(),
|
|
15256
|
+
height: z38.number(),
|
|
15257
|
+
blurDataUrl: z38.string().optional(),
|
|
15258
|
+
alt: z38.string().optional()
|
|
15259
|
+
});
|
|
15260
|
+
var DbFileInfoV2Schema = z38.discriminatedUnion("type", [
|
|
15261
|
+
z38.object({ type: z38.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
15262
|
+
z38.object({ type: z38.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
15200
15263
|
]);
|
|
15201
|
-
var NavigationTabGroupSchema3 =
|
|
15202
|
-
() =>
|
|
15203
|
-
title:
|
|
15204
|
-
icon:
|
|
15205
|
-
items:
|
|
15206
|
-
urlSlug:
|
|
15207
|
-
skipUrlSlug:
|
|
15264
|
+
var NavigationTabGroupSchema3 = z38.lazy(
|
|
15265
|
+
() => z38.object({
|
|
15266
|
+
title: z38.string(),
|
|
15267
|
+
icon: z38.string().optional(),
|
|
15268
|
+
items: z38.array(NavigationItemSchema3),
|
|
15269
|
+
urlSlug: z38.string(),
|
|
15270
|
+
skipUrlSlug: z38.boolean().optional()
|
|
15208
15271
|
})
|
|
15209
15272
|
);
|
|
15210
|
-
var NavigationTabSchema3 =
|
|
15211
|
-
var NavigationTabV2Schema2 =
|
|
15212
|
-
() =>
|
|
15213
|
-
|
|
15214
|
-
type:
|
|
15215
|
-
title:
|
|
15216
|
-
icon:
|
|
15217
|
-
items:
|
|
15218
|
-
urlSlug:
|
|
15219
|
-
skipUrlSlug:
|
|
15273
|
+
var NavigationTabSchema3 = z38.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
15274
|
+
var NavigationTabV2Schema2 = z38.lazy(
|
|
15275
|
+
() => z38.discriminatedUnion("type", [
|
|
15276
|
+
z38.object({
|
|
15277
|
+
type: z38.literal("group"),
|
|
15278
|
+
title: z38.string(),
|
|
15279
|
+
icon: z38.string().optional(),
|
|
15280
|
+
items: z38.array(NavigationItemSchema3),
|
|
15281
|
+
urlSlug: z38.string(),
|
|
15282
|
+
skipUrlSlug: z38.boolean().optional()
|
|
15220
15283
|
}),
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15284
|
+
z38.object({ type: z38.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
15285
|
+
z38.object({ type: z38.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
15286
|
+
z38.object({ type: z38.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
15224
15287
|
])
|
|
15225
15288
|
);
|
|
15226
|
-
var ApiSectionSchema3 =
|
|
15227
|
-
title:
|
|
15228
|
-
icon:
|
|
15289
|
+
var ApiSectionSchema3 = z38.object({
|
|
15290
|
+
title: z38.string(),
|
|
15291
|
+
icon: z38.string().optional(),
|
|
15229
15292
|
api: ApiDefinitionIdSchema2,
|
|
15230
|
-
urlSlug:
|
|
15231
|
-
skipUrlSlug:
|
|
15293
|
+
urlSlug: z38.string(),
|
|
15294
|
+
skipUrlSlug: z38.boolean(),
|
|
15232
15295
|
artifacts: ApiArtifactsSchema.optional(),
|
|
15233
|
-
showErrors:
|
|
15296
|
+
showErrors: z38.boolean().optional(),
|
|
15234
15297
|
changelog: ChangelogSectionSchema.optional(),
|
|
15235
|
-
hidden:
|
|
15236
|
-
fullSlug:
|
|
15298
|
+
hidden: z38.boolean().optional(),
|
|
15299
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15237
15300
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
15238
|
-
longScrolling:
|
|
15239
|
-
flattened:
|
|
15240
|
-
});
|
|
15241
|
-
var DocsSectionSchema3 =
|
|
15242
|
-
() =>
|
|
15243
|
-
title:
|
|
15244
|
-
icon:
|
|
15245
|
-
items:
|
|
15246
|
-
urlSlug:
|
|
15247
|
-
skipUrlSlug:
|
|
15248
|
-
collapsed:
|
|
15249
|
-
collapsible:
|
|
15250
|
-
collapsedByDefault:
|
|
15251
|
-
hidden:
|
|
15252
|
-
fullSlug:
|
|
15301
|
+
longScrolling: z38.boolean().optional(),
|
|
15302
|
+
flattened: z38.boolean().optional()
|
|
15303
|
+
});
|
|
15304
|
+
var DocsSectionSchema3 = z38.lazy(
|
|
15305
|
+
() => z38.object({
|
|
15306
|
+
title: z38.string(),
|
|
15307
|
+
icon: z38.string().optional(),
|
|
15308
|
+
items: z38.array(NavigationItemSchema3),
|
|
15309
|
+
urlSlug: z38.string(),
|
|
15310
|
+
skipUrlSlug: z38.boolean(),
|
|
15311
|
+
collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
|
|
15312
|
+
collapsible: z38.boolean().optional(),
|
|
15313
|
+
collapsedByDefault: z38.boolean().optional(),
|
|
15314
|
+
hidden: z38.boolean().optional(),
|
|
15315
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15253
15316
|
overviewPageId: PageIdSchema2.optional()
|
|
15254
15317
|
})
|
|
15255
15318
|
);
|
|
15256
|
-
var NavigationItemSchema3 =
|
|
15257
|
-
() =>
|
|
15258
|
-
|
|
15259
|
-
type:
|
|
15319
|
+
var NavigationItemSchema3 = z38.lazy(
|
|
15320
|
+
() => z38.discriminatedUnion("type", [
|
|
15321
|
+
z38.object({
|
|
15322
|
+
type: z38.literal("page"),
|
|
15260
15323
|
...PageMetadataSchema.shape
|
|
15261
15324
|
}),
|
|
15262
|
-
|
|
15263
|
-
type:
|
|
15325
|
+
z38.object({
|
|
15326
|
+
type: z38.literal("api"),
|
|
15264
15327
|
...ApiSectionSchema3.shape
|
|
15265
15328
|
}),
|
|
15266
|
-
|
|
15267
|
-
type:
|
|
15329
|
+
z38.object({
|
|
15330
|
+
type: z38.literal("apiV2"),
|
|
15268
15331
|
...ApiSectionV2Schema.shape
|
|
15269
15332
|
}),
|
|
15270
|
-
|
|
15271
|
-
type:
|
|
15272
|
-
title:
|
|
15273
|
-
icon:
|
|
15274
|
-
items:
|
|
15275
|
-
urlSlug:
|
|
15276
|
-
skipUrlSlug:
|
|
15277
|
-
collapsed:
|
|
15278
|
-
collapsible:
|
|
15279
|
-
collapsedByDefault:
|
|
15280
|
-
hidden:
|
|
15281
|
-
fullSlug:
|
|
15333
|
+
z38.object({
|
|
15334
|
+
type: z38.literal("section"),
|
|
15335
|
+
title: z38.string(),
|
|
15336
|
+
icon: z38.string().optional(),
|
|
15337
|
+
items: z38.array(NavigationItemSchema3),
|
|
15338
|
+
urlSlug: z38.string(),
|
|
15339
|
+
skipUrlSlug: z38.boolean(),
|
|
15340
|
+
collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
|
|
15341
|
+
collapsible: z38.boolean().optional(),
|
|
15342
|
+
collapsedByDefault: z38.boolean().optional(),
|
|
15343
|
+
hidden: z38.boolean().optional(),
|
|
15344
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15282
15345
|
overviewPageId: PageIdSchema2.optional()
|
|
15283
15346
|
}),
|
|
15284
|
-
|
|
15285
|
-
type:
|
|
15347
|
+
z38.object({
|
|
15348
|
+
type: z38.literal("link"),
|
|
15286
15349
|
...LinkMetadataSchema.shape
|
|
15287
15350
|
}),
|
|
15288
|
-
|
|
15289
|
-
type:
|
|
15351
|
+
z38.object({
|
|
15352
|
+
type: z38.literal("changelog"),
|
|
15290
15353
|
...ChangelogSectionSchema.shape
|
|
15291
15354
|
}),
|
|
15292
|
-
|
|
15293
|
-
type:
|
|
15355
|
+
z38.object({
|
|
15356
|
+
type: z38.literal("changelogV3"),
|
|
15294
15357
|
...ChangelogSectionV3Schema.shape
|
|
15295
15358
|
})
|
|
15296
15359
|
])
|
|
15297
15360
|
);
|
|
15298
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
15299
|
-
tabs:
|
|
15300
|
-
tabsV2:
|
|
15361
|
+
var UnversionedTabbedNavigationConfigSchema3 = z38.object({
|
|
15362
|
+
tabs: z38.array(NavigationTabSchema3).optional(),
|
|
15363
|
+
tabsV2: z38.array(NavigationTabV2Schema2).optional(),
|
|
15301
15364
|
landingPage: PageMetadataSchema.optional()
|
|
15302
15365
|
});
|
|
15303
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
15304
|
-
items:
|
|
15366
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z38.object({
|
|
15367
|
+
items: z38.array(NavigationItemSchema3),
|
|
15305
15368
|
landingPage: PageMetadataSchema.optional()
|
|
15306
15369
|
});
|
|
15307
|
-
var UnversionedNavigationConfigSchema3 =
|
|
15370
|
+
var UnversionedNavigationConfigSchema3 = z38.union([
|
|
15308
15371
|
UnversionedTabbedNavigationConfigSchema3,
|
|
15309
15372
|
UnversionedUntabbedNavigationConfigSchema3
|
|
15310
15373
|
]);
|
|
15311
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
15374
|
+
var VersionedNavigationConfigDataSchema3 = z38.object({
|
|
15312
15375
|
version: VersionIdSchema2,
|
|
15313
|
-
urlSlug:
|
|
15376
|
+
urlSlug: z38.string().optional(),
|
|
15314
15377
|
availability: AvailabilitySchema2.optional(),
|
|
15315
15378
|
config: UnversionedNavigationConfigSchema3
|
|
15316
15379
|
});
|
|
15317
|
-
var VersionedNavigationConfigSchema3 =
|
|
15318
|
-
versions:
|
|
15380
|
+
var VersionedNavigationConfigSchema3 = z38.object({
|
|
15381
|
+
versions: z38.array(VersionedNavigationConfigDataSchema3)
|
|
15319
15382
|
});
|
|
15320
|
-
var NavigationConfigSchema3 =
|
|
15321
|
-
var DocsDbConfigSchema =
|
|
15322
|
-
title:
|
|
15383
|
+
var NavigationConfigSchema3 = z38.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
15384
|
+
var DocsDbConfigSchema = z38.object({
|
|
15385
|
+
title: z38.string().optional(),
|
|
15323
15386
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
15324
|
-
languages:
|
|
15387
|
+
languages: z38.array(LanguageSchema).optional(),
|
|
15325
15388
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
15326
15389
|
announcement: AnnouncementConfigSchema.optional(),
|
|
15327
15390
|
navigation: NavigationConfigSchema3.optional(),
|
|
15328
|
-
root:
|
|
15329
|
-
navbarLinks:
|
|
15330
|
-
footerLinks:
|
|
15331
|
-
hideNavLinks:
|
|
15391
|
+
root: z38.custom().optional(),
|
|
15392
|
+
navbarLinks: z38.array(NavbarLinkSchema).optional(),
|
|
15393
|
+
footerLinks: z38.array(FooterLinkSchema).optional(),
|
|
15394
|
+
hideNavLinks: z38.boolean().optional(),
|
|
15332
15395
|
logoHeight: HeightSchema.optional(),
|
|
15333
15396
|
logoHref: UrlSchema2.optional(),
|
|
15334
|
-
logoRightText:
|
|
15397
|
+
logoRightText: z38.string().optional(),
|
|
15335
15398
|
favicon: FileIdSchema2.optional(),
|
|
15336
15399
|
agents: AgentsConfigSchema.optional(),
|
|
15337
15400
|
metadata: MetadataConfigSchema.optional(),
|
|
15338
|
-
redirects:
|
|
15339
|
-
remotePaths:
|
|
15401
|
+
redirects: z38.array(RedirectConfigSchema).optional(),
|
|
15402
|
+
remotePaths: z38.array(RemotePathConfigSchema).optional(),
|
|
15340
15403
|
backgroundImage: FileIdSchema2.optional(),
|
|
15341
15404
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
15342
15405
|
layout: DocsLayoutConfigSchema.optional(),
|
|
15343
15406
|
theme: DocsThemeConfigSchema.optional(),
|
|
15344
|
-
globalTheme:
|
|
15407
|
+
globalTheme: z38.string().optional(),
|
|
15345
15408
|
settings: DocsSettingsConfigSchema.optional(),
|
|
15346
15409
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
15347
15410
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -15352,40 +15415,40 @@ var DocsDbConfigSchema = z37.object({
|
|
|
15352
15415
|
pageActions: PageActionsConfigSchema.optional(),
|
|
15353
15416
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
15354
15417
|
iframe: IframeConfigSchema.optional(),
|
|
15355
|
-
header:
|
|
15356
|
-
footer:
|
|
15418
|
+
header: z38.string().optional(),
|
|
15419
|
+
footer: z38.string().optional(),
|
|
15357
15420
|
logo: FileIdSchema2.optional(),
|
|
15358
15421
|
logoV2: ThemedFileIdSchema.optional(),
|
|
15359
15422
|
colors: ColorsConfigSchema.optional(),
|
|
15360
15423
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
15361
15424
|
typography: DocsTypographyConfigSchema.optional()
|
|
15362
15425
|
});
|
|
15363
|
-
var DocsDefinitionDbV1Schema =
|
|
15364
|
-
pages:
|
|
15365
|
-
referencedApis:
|
|
15366
|
-
files:
|
|
15426
|
+
var DocsDefinitionDbV1Schema = z38.object({
|
|
15427
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15428
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15429
|
+
files: z38.record(FileIdSchema2, DbFileInfoSchema),
|
|
15367
15430
|
config: DocsDbConfigSchema,
|
|
15368
15431
|
colors: ColorsConfigSchema.optional()
|
|
15369
15432
|
});
|
|
15370
|
-
var DocsDefinitionDbV2Schema =
|
|
15371
|
-
pages:
|
|
15372
|
-
referencedApis:
|
|
15373
|
-
files:
|
|
15433
|
+
var DocsDefinitionDbV2Schema = z38.object({
|
|
15434
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15435
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15436
|
+
files: z38.record(FileIdSchema2, DbFileInfoSchema),
|
|
15374
15437
|
config: DocsDbConfigSchema,
|
|
15375
15438
|
colors: ColorsConfigSchema.optional(),
|
|
15376
15439
|
typography: DocsTypographyConfigSchema.optional()
|
|
15377
15440
|
});
|
|
15378
|
-
var DocsDefinitionDbV3Schema =
|
|
15379
|
-
pages:
|
|
15380
|
-
referencedApis:
|
|
15381
|
-
files:
|
|
15441
|
+
var DocsDefinitionDbV3Schema = z38.object({
|
|
15442
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15443
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15444
|
+
files: z38.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
15382
15445
|
config: DocsDbConfigSchema,
|
|
15383
|
-
jsFiles:
|
|
15446
|
+
jsFiles: z38.record(z38.string(), z38.string()).optional()
|
|
15384
15447
|
});
|
|
15385
|
-
var DocsDefinitionDbSchema =
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15448
|
+
var DocsDefinitionDbSchema = z38.discriminatedUnion("type", [
|
|
15449
|
+
z38.object({ type: z38.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
15450
|
+
z38.object({ type: z38.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
15451
|
+
z38.object({ type: z38.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
15389
15452
|
]);
|
|
15390
15453
|
|
|
15391
15454
|
// src/client/DocsV1Read.ts
|
|
@@ -16176,102 +16239,102 @@ __export(DocsLatest_exports, {
|
|
|
16176
16239
|
});
|
|
16177
16240
|
|
|
16178
16241
|
// src/client/docs-types/latest.ts
|
|
16179
|
-
var
|
|
16180
|
-
var StringOrStringListSchema =
|
|
16181
|
-
var TwitterCardSettingSchema2 =
|
|
16182
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
16183
|
-
"@type":
|
|
16184
|
-
position:
|
|
16185
|
-
name:
|
|
16186
|
-
item:
|
|
16187
|
-
});
|
|
16188
|
-
var JsonLdBreadcrumbListSchema =
|
|
16189
|
-
"@context":
|
|
16190
|
-
"@type":
|
|
16191
|
-
itemListElement:
|
|
16192
|
-
});
|
|
16193
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
16242
|
+
var z39 = __toESM(require("zod"), 1);
|
|
16243
|
+
var StringOrStringListSchema = z39.union([z39.string(), z39.array(z39.string())]);
|
|
16244
|
+
var TwitterCardSettingSchema2 = z39.enum(["summary", "summary_large_image", "app", "player"]);
|
|
16245
|
+
var JsonLdBreadcrumbListElementSchema = z39.object({
|
|
16246
|
+
"@type": z39.literal("ListItem"),
|
|
16247
|
+
position: z39.number(),
|
|
16248
|
+
name: z39.string(),
|
|
16249
|
+
item: z39.string().optional()
|
|
16250
|
+
});
|
|
16251
|
+
var JsonLdBreadcrumbListSchema = z39.object({
|
|
16252
|
+
"@context": z39.literal("https://schema.org"),
|
|
16253
|
+
"@type": z39.literal("BreadcrumbList"),
|
|
16254
|
+
itemListElement: z39.array(JsonLdBreadcrumbListElementSchema)
|
|
16255
|
+
});
|
|
16256
|
+
var WithJsonLdBreadcrumbsSchema = z39.object({
|
|
16194
16257
|
/** Set to `false` to suppress the built-in JSON-LD for the page. */
|
|
16195
|
-
jsonld:
|
|
16258
|
+
jsonld: z39.boolean().optional(),
|
|
16196
16259
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
16197
16260
|
});
|
|
16198
|
-
var WithMetadataConfigSchema =
|
|
16199
|
-
"og:site_name":
|
|
16200
|
-
"og:title":
|
|
16201
|
-
"og:description":
|
|
16202
|
-
"og:url":
|
|
16261
|
+
var WithMetadataConfigSchema = z39.object({
|
|
16262
|
+
"og:site_name": z39.string().optional(),
|
|
16263
|
+
"og:title": z39.string().optional(),
|
|
16264
|
+
"og:description": z39.string().optional(),
|
|
16265
|
+
"og:url": z39.string().optional(),
|
|
16203
16266
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
16204
|
-
"og:image:width":
|
|
16205
|
-
"og:image:height":
|
|
16206
|
-
"og:locale":
|
|
16267
|
+
"og:image:width": z39.number().optional(),
|
|
16268
|
+
"og:image:height": z39.number().optional(),
|
|
16269
|
+
"og:locale": z39.string().optional(),
|
|
16207
16270
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
16208
|
-
"twitter:title":
|
|
16209
|
-
"twitter:description":
|
|
16210
|
-
"twitter:handle":
|
|
16271
|
+
"twitter:title": z39.string().optional(),
|
|
16272
|
+
"twitter:description": z39.string().optional(),
|
|
16273
|
+
"twitter:handle": z39.string().optional(),
|
|
16211
16274
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
16212
|
-
"twitter:site":
|
|
16213
|
-
"twitter:url":
|
|
16275
|
+
"twitter:site": z39.string().optional(),
|
|
16276
|
+
"twitter:url": z39.string().optional(),
|
|
16214
16277
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
16215
16278
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
16216
|
-
"og:dynamic":
|
|
16279
|
+
"og:dynamic": z39.boolean().optional(),
|
|
16217
16280
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
16218
|
-
"og:dynamic:text-color":
|
|
16219
|
-
"og:dynamic:background-color":
|
|
16220
|
-
"og:dynamic:show-logo":
|
|
16221
|
-
"og:dynamic:show-section":
|
|
16222
|
-
"og:dynamic:show-description":
|
|
16223
|
-
"og:dynamic:show-url":
|
|
16224
|
-
"og:dynamic:show-gradient":
|
|
16225
|
-
noindex:
|
|
16226
|
-
nofollow:
|
|
16281
|
+
"og:dynamic:text-color": z39.string().optional(),
|
|
16282
|
+
"og:dynamic:background-color": z39.string().optional(),
|
|
16283
|
+
"og:dynamic:show-logo": z39.boolean().optional(),
|
|
16284
|
+
"og:dynamic:show-section": z39.boolean().optional(),
|
|
16285
|
+
"og:dynamic:show-description": z39.boolean().optional(),
|
|
16286
|
+
"og:dynamic:show-url": z39.boolean().optional(),
|
|
16287
|
+
"og:dynamic:show-gradient": z39.boolean().optional(),
|
|
16288
|
+
noindex: z39.boolean().optional(),
|
|
16289
|
+
nofollow: z39.boolean().optional(),
|
|
16227
16290
|
keywords: StringOrStringListSchema.optional()
|
|
16228
16291
|
});
|
|
16229
|
-
var LayoutSchema =
|
|
16230
|
-
var LogoConfigurationSchema =
|
|
16292
|
+
var LayoutSchema = z39.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
16293
|
+
var LogoConfigurationSchema = z39.object({
|
|
16231
16294
|
light: FileIdOrUrlSchema.optional(),
|
|
16232
16295
|
dark: FileIdOrUrlSchema.optional()
|
|
16233
16296
|
});
|
|
16234
|
-
var LogoSchema2 =
|
|
16235
|
-
var BreadcrumbItemSchema =
|
|
16236
|
-
title:
|
|
16237
|
-
pointsTo:
|
|
16297
|
+
var LogoSchema2 = z39.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
16298
|
+
var BreadcrumbItemSchema = z39.object({
|
|
16299
|
+
title: z39.string(),
|
|
16300
|
+
pointsTo: z39.string().optional()
|
|
16238
16301
|
});
|
|
16239
16302
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
16240
|
-
|
|
16303
|
+
z39.object({
|
|
16241
16304
|
layout: LayoutSchema.optional(),
|
|
16242
|
-
slug:
|
|
16243
|
-
title:
|
|
16244
|
-
headline:
|
|
16245
|
-
description:
|
|
16246
|
-
subtitle:
|
|
16305
|
+
slug: z39.string().optional(),
|
|
16306
|
+
title: z39.string().optional(),
|
|
16307
|
+
headline: z39.string().optional(),
|
|
16308
|
+
description: z39.string().optional(),
|
|
16309
|
+
subtitle: z39.string().optional(),
|
|
16247
16310
|
logo: LogoSchema2.optional(),
|
|
16248
16311
|
image: FileIdOrUrlSchema.optional(),
|
|
16249
|
-
"edit-this-page-url":
|
|
16250
|
-
"hide-toc":
|
|
16251
|
-
"force-toc":
|
|
16252
|
-
"hide-nav-links":
|
|
16253
|
-
"max-toc-depth":
|
|
16254
|
-
"hide-feedback":
|
|
16255
|
-
"hide-page-actions":
|
|
16256
|
-
"no-image-zoom":
|
|
16257
|
-
breadcrumb:
|
|
16258
|
-
excerpt:
|
|
16259
|
-
"canonical-url":
|
|
16312
|
+
"edit-this-page-url": z39.string().optional(),
|
|
16313
|
+
"hide-toc": z39.boolean().optional(),
|
|
16314
|
+
"force-toc": z39.boolean().optional(),
|
|
16315
|
+
"hide-nav-links": z39.boolean().optional(),
|
|
16316
|
+
"max-toc-depth": z39.number().optional(),
|
|
16317
|
+
"hide-feedback": z39.boolean().optional(),
|
|
16318
|
+
"hide-page-actions": z39.boolean().optional(),
|
|
16319
|
+
"no-image-zoom": z39.boolean().optional(),
|
|
16320
|
+
breadcrumb: z39.array(BreadcrumbItemSchema).optional(),
|
|
16321
|
+
excerpt: z39.string().optional(),
|
|
16322
|
+
"canonical-url": z39.string().optional(),
|
|
16260
16323
|
tags: StringOrStringListSchema.optional(),
|
|
16261
|
-
"last-updated":
|
|
16324
|
+
"last-updated": z39.string().optional(),
|
|
16262
16325
|
/**
|
|
16263
16326
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
16264
16327
|
* records, so it can be faceted and filtered on by full path
|
|
16265
16328
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
16266
16329
|
*/
|
|
16267
|
-
"search-metadata":
|
|
16330
|
+
"search-metadata": z39.record(z39.unknown()).optional()
|
|
16268
16331
|
})
|
|
16269
16332
|
);
|
|
16270
|
-
var ResolvedMdxSchema =
|
|
16271
|
-
code:
|
|
16333
|
+
var ResolvedMdxSchema = z39.object({
|
|
16334
|
+
code: z39.string(),
|
|
16272
16335
|
frontmatter: FrontmatterSchema,
|
|
16273
|
-
scope:
|
|
16274
|
-
jsxRefs:
|
|
16336
|
+
scope: z39.record(z39.string(), z39.unknown()),
|
|
16337
|
+
jsxRefs: z39.array(z39.string()).optional()
|
|
16275
16338
|
});
|
|
16276
16339
|
|
|
16277
16340
|
// src/client/DocsV1Commons.ts
|
|
@@ -16718,9 +16781,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
16718
16781
|
}
|
|
16719
16782
|
}
|
|
16720
16783
|
}
|
|
16721
|
-
function generateExampleObject(
|
|
16784
|
+
function generateExampleObject(object38, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
16722
16785
|
const example = {};
|
|
16723
|
-
for (const property of getAllObjectProperties(
|
|
16786
|
+
for (const property of getAllObjectProperties(object38, resolveTypeById)) {
|
|
16724
16787
|
const value = generateExampleFromTypeReference(
|
|
16725
16788
|
property.valueType,
|
|
16726
16789
|
resolveTypeById,
|
|
@@ -16907,10 +16970,10 @@ function generateExamplePrimitive(reference) {
|
|
|
16907
16970
|
return reference.name;
|
|
16908
16971
|
}
|
|
16909
16972
|
}
|
|
16910
|
-
function getAllObjectProperties(
|
|
16973
|
+
function getAllObjectProperties(object38, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
|
|
16911
16974
|
return [
|
|
16912
|
-
...
|
|
16913
|
-
...
|
|
16975
|
+
...object38.properties,
|
|
16976
|
+
...object38.extends.flatMap((typeId) => {
|
|
16914
16977
|
if (extended.has(typeId)) {
|
|
16915
16978
|
return [];
|
|
16916
16979
|
}
|