@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.mjs
CHANGED
|
@@ -457,8 +457,8 @@ function parseMatch(match) {
|
|
|
457
457
|
return match;
|
|
458
458
|
}
|
|
459
459
|
var src_default = (str, options = {}) => {
|
|
460
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset,
|
|
461
|
-
const isLastWord = m.length + offset >=
|
|
460
|
+
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string39) => {
|
|
461
|
+
const isLastWord = m.length + offset >= string39.length;
|
|
462
462
|
const parsedMatch = parseMatch(m);
|
|
463
463
|
if (!parsedMatch) {
|
|
464
464
|
return m;
|
|
@@ -2594,16 +2594,16 @@ function selectDefaultValue(shape, defaults) {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
2596
|
var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
|
|
2597
|
-
function unwrapObjectType(
|
|
2598
|
-
const cached = UnwrapObjectTypeCache.get(
|
|
2597
|
+
function unwrapObjectType(object38, types, parentVisitedTypeIds) {
|
|
2598
|
+
const cached = UnwrapObjectTypeCache.get(object38);
|
|
2599
2599
|
if (cached != null) {
|
|
2600
2600
|
return cached;
|
|
2601
2601
|
}
|
|
2602
|
-
const directProperties =
|
|
2603
|
-
const extraProperties =
|
|
2602
|
+
const directProperties = object38.properties;
|
|
2603
|
+
const extraProperties = object38.extraProperties;
|
|
2604
2604
|
const descriptions = [];
|
|
2605
2605
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2606
|
-
const extendedProperties =
|
|
2606
|
+
const extendedProperties = object38.extends.flatMap((typeId) => {
|
|
2607
2607
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
2608
2608
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
2609
2609
|
return [];
|
|
@@ -2650,7 +2650,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2650
2650
|
};
|
|
2651
2651
|
});
|
|
2652
2652
|
});
|
|
2653
|
-
const propertyKeys = new Set(
|
|
2653
|
+
const propertyKeys = new Set(object38.properties.map((property) => property.key));
|
|
2654
2654
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
2655
2655
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
2656
2656
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -2673,7 +2673,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2673
2673
|
extraProperties,
|
|
2674
2674
|
visitedTypeIds
|
|
2675
2675
|
};
|
|
2676
|
-
UnwrapObjectTypeCache.set(
|
|
2676
|
+
UnwrapObjectTypeCache.set(object38, toRet2);
|
|
2677
2677
|
return toRet2;
|
|
2678
2678
|
}
|
|
2679
2679
|
const properties = sortBy(
|
|
@@ -2685,7 +2685,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
|
|
|
2685
2685
|
]
|
|
2686
2686
|
);
|
|
2687
2687
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2688
|
-
UnwrapObjectTypeCache.set(
|
|
2688
|
+
UnwrapObjectTypeCache.set(object38, toRet);
|
|
2689
2689
|
return toRet;
|
|
2690
2690
|
}
|
|
2691
2691
|
function unwrapDiscriminatedUnionVariant(union14, variant, types) {
|
|
@@ -4406,8 +4406,8 @@ function sortKeysByShape(obj, shape, types) {
|
|
|
4406
4406
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
|
|
4407
4407
|
map: ({ valueShape }) => isPlainObject_default(obj) ? mapValues(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
|
|
4408
4408
|
unknown: () => obj,
|
|
4409
|
-
object: (
|
|
4410
|
-
const objectProperties = unwrapObjectType(
|
|
4409
|
+
object: (object38) => {
|
|
4410
|
+
const objectProperties = unwrapObjectType(object38, types).properties;
|
|
4411
4411
|
return isPlainObject_default(obj) ? mapValues(
|
|
4412
4412
|
sortKeysBy(
|
|
4413
4413
|
obj,
|
|
@@ -7622,10 +7622,10 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
|
|
|
7622
7622
|
if (resolved == null) {
|
|
7623
7623
|
return void 0;
|
|
7624
7624
|
}
|
|
7625
|
-
const { object:
|
|
7625
|
+
const { object: object38, visited: innerVisited } = resolved;
|
|
7626
7626
|
const example = isRecord(value) ? value : void 0;
|
|
7627
|
-
const element = { name:
|
|
7628
|
-
for (const property of xmlProperties(
|
|
7627
|
+
const element = { name: object38.xml.name, attributes: [], text: void 0, children: [] };
|
|
7628
|
+
for (const property of xmlProperties(object38, types, innerVisited)) {
|
|
7629
7629
|
const kind = property.xml?.kind ?? "element";
|
|
7630
7630
|
const name = property.xml?.name ?? property.key;
|
|
7631
7631
|
const listSeparator = property.xml?.listSeparator ?? " ";
|
|
@@ -7654,21 +7654,21 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
|
|
|
7654
7654
|
}
|
|
7655
7655
|
return element;
|
|
7656
7656
|
}
|
|
7657
|
-
function xmlProperties(
|
|
7657
|
+
function xmlProperties(object38, types, visited) {
|
|
7658
7658
|
const inherited = [];
|
|
7659
|
-
for (const parentId of
|
|
7659
|
+
for (const parentId of object38.extends) {
|
|
7660
7660
|
const parent = types[parentId];
|
|
7661
7661
|
if (parent != null && parent.shape.type === "object" && !visited.has(parentId)) {
|
|
7662
7662
|
inherited.push(
|
|
7663
7663
|
...xmlProperties(
|
|
7664
|
-
{ extends: parent.shape.extends, properties: parent.shape.properties, xml:
|
|
7664
|
+
{ extends: parent.shape.extends, properties: parent.shape.properties, xml: object38.xml },
|
|
7665
7665
|
types,
|
|
7666
7666
|
/* @__PURE__ */ new Set([...visited, parentId])
|
|
7667
7667
|
)
|
|
7668
7668
|
);
|
|
7669
7669
|
}
|
|
7670
7670
|
}
|
|
7671
|
-
return [...inherited, ...
|
|
7671
|
+
return [...inherited, ...object38.properties];
|
|
7672
7672
|
}
|
|
7673
7673
|
function childElements(property, name, types, visited, depth) {
|
|
7674
7674
|
const itemShape = listItemShape(property.valueShape, types, visited) ?? property.valueShape;
|
|
@@ -12576,7 +12576,7 @@ import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
|
|
|
12576
12576
|
|
|
12577
12577
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
12578
12578
|
import { oc as oc15 } from "@orpc/contract";
|
|
12579
|
-
import * as
|
|
12579
|
+
import * as z29 from "zod";
|
|
12580
12580
|
|
|
12581
12581
|
// src/orpc-client/mcp-hosting/analytics.ts
|
|
12582
12582
|
import * as z25 from "zod";
|
|
@@ -13213,46 +13213,97 @@ var McpDeploymentSkippedToolSchema = z27.object({
|
|
|
13213
13213
|
path: z27.string().nullable()
|
|
13214
13214
|
});
|
|
13215
13215
|
|
|
13216
|
+
// src/orpc-client/mcp-hosting/usage.ts
|
|
13217
|
+
import * as z28 from "zod";
|
|
13218
|
+
var McpOrgQuotaSchema = z28.object({
|
|
13219
|
+
/** Tool calls per month; null means no limit. */
|
|
13220
|
+
limit: z28.number().int().nonnegative().nullable(),
|
|
13221
|
+
/**
|
|
13222
|
+
* Sales approved the org to go over its limit. The dispatcher keeps
|
|
13223
|
+
* counting but never refuses a call.
|
|
13224
|
+
*/
|
|
13225
|
+
approved: z28.boolean()
|
|
13226
|
+
});
|
|
13227
|
+
var UsageMonthSchema = z28.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/, "Expected yyyy-mm");
|
|
13228
|
+
var McpUsageCountsSchema = z28.object({
|
|
13229
|
+
month: UsageMonthSchema,
|
|
13230
|
+
toolCalls: z28.number().int().nonnegative(),
|
|
13231
|
+
/** Calls refused because the allowance was used up. */
|
|
13232
|
+
blockedCalls: z28.number().int().nonnegative(),
|
|
13233
|
+
servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
|
|
13234
|
+
/** Whether this dispatcher refuses calls over the allowance (QUOTA_ENFORCE), or only counts them. */
|
|
13235
|
+
enforced: z28.boolean()
|
|
13236
|
+
});
|
|
13237
|
+
var McpOrgIdSchema = z28.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
13238
|
+
var GetMcpUsageInputSchema = z28.object({
|
|
13239
|
+
orgId: McpOrgIdSchema,
|
|
13240
|
+
month: UsageMonthSchema.optional()
|
|
13241
|
+
});
|
|
13242
|
+
var SetMcpUsageAllowanceInputSchema = z28.object({
|
|
13243
|
+
orgId: McpOrgIdSchema,
|
|
13244
|
+
/** Tool calls per month; null means no limit. */
|
|
13245
|
+
limit: z28.number().int().nonnegative().max(1e9).nullable(),
|
|
13246
|
+
/** Approved to go over the limit: calls are counted but never refused. */
|
|
13247
|
+
approved: z28.boolean(),
|
|
13248
|
+
note: z28.string().max(500).optional()
|
|
13249
|
+
});
|
|
13250
|
+
var McpOrgUsageSchema = z28.object({
|
|
13251
|
+
month: UsageMonthSchema,
|
|
13252
|
+
resetsAt: z28.string(),
|
|
13253
|
+
toolCalls: z28.number().int().nonnegative(),
|
|
13254
|
+
blockedCalls: z28.number().int().nonnegative(),
|
|
13255
|
+
/** Tool calls per month; null means no limit. */
|
|
13256
|
+
limit: z28.number().int().nonnegative().nullable(),
|
|
13257
|
+
approved: z28.boolean(),
|
|
13258
|
+
/** The org has the free allowance (no allowance set by Fern). */
|
|
13259
|
+
isFreeAllowance: z28.boolean(),
|
|
13260
|
+
blocked: z28.boolean(),
|
|
13261
|
+
/** Whether calls over the allowance are refused in this environment, or only counted. */
|
|
13262
|
+
enforced: z28.boolean(),
|
|
13263
|
+
servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
|
|
13264
|
+
contactUrl: z28.string()
|
|
13265
|
+
});
|
|
13266
|
+
|
|
13216
13267
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
13217
|
-
var McpPathSegmentSchema =
|
|
13218
|
-
var McpDeploymentStatusSchema =
|
|
13219
|
-
var McpModuleSchema =
|
|
13220
|
-
name:
|
|
13268
|
+
var McpPathSegmentSchema = z29.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
13269
|
+
var McpDeploymentStatusSchema = z29.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
13270
|
+
var McpModuleSchema = z29.object({
|
|
13271
|
+
name: z29.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
13221
13272
|
hash: Sha256Schema,
|
|
13222
|
-
contentType:
|
|
13273
|
+
contentType: z29.string().min(1)
|
|
13223
13274
|
}).strict();
|
|
13224
|
-
var McpGitInputSchema =
|
|
13225
|
-
repoUrl:
|
|
13275
|
+
var McpGitInputSchema = z29.object({
|
|
13276
|
+
repoUrl: z29.string(),
|
|
13226
13277
|
/** Absent on a detached HEAD (a CI checkout of a commit, say). */
|
|
13227
|
-
branch:
|
|
13228
|
-
commitSha:
|
|
13278
|
+
branch: z29.string().optional(),
|
|
13279
|
+
commitSha: z29.string().optional()
|
|
13229
13280
|
}).strict();
|
|
13230
|
-
var McpInputFileSchema =
|
|
13231
|
-
|
|
13281
|
+
var McpInputFileSchema = z29.discriminatedUnion("name", [
|
|
13282
|
+
z29.object({
|
|
13232
13283
|
/** The `sources` part of the build request, verbatim. */
|
|
13233
|
-
name:
|
|
13234
|
-
contentType:
|
|
13284
|
+
name: z29.literal("specs.tar.gz"),
|
|
13285
|
+
contentType: z29.literal("application/gzip"),
|
|
13235
13286
|
hash: Sha256Schema
|
|
13236
13287
|
}).strict(),
|
|
13237
|
-
|
|
13288
|
+
z29.object({
|
|
13238
13289
|
/** This target's sdk-config payload. */
|
|
13239
|
-
name:
|
|
13240
|
-
contentType:
|
|
13290
|
+
name: z29.literal("sdk-config.json"),
|
|
13291
|
+
contentType: z29.literal("application/json"),
|
|
13241
13292
|
hash: Sha256Schema
|
|
13242
13293
|
}).strict(),
|
|
13243
|
-
|
|
13294
|
+
z29.object({
|
|
13244
13295
|
/** The build request narrowed to this target. */
|
|
13245
|
-
name:
|
|
13246
|
-
contentType:
|
|
13296
|
+
name: z29.literal("build-request.json"),
|
|
13297
|
+
contentType: z29.literal("application/json"),
|
|
13247
13298
|
hash: Sha256Schema
|
|
13248
13299
|
}).strict()
|
|
13249
13300
|
]);
|
|
13250
|
-
var McpInputFilesSchema =
|
|
13301
|
+
var McpInputFilesSchema = z29.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
|
|
13251
13302
|
const names = /* @__PURE__ */ new Set();
|
|
13252
13303
|
for (const input of inputs) {
|
|
13253
13304
|
if (names.has(input.name)) {
|
|
13254
13305
|
ctx.addIssue({
|
|
13255
|
-
code:
|
|
13306
|
+
code: z29.ZodIssueCode.custom,
|
|
13256
13307
|
message: `duplicate input name: ${input.name}`
|
|
13257
13308
|
});
|
|
13258
13309
|
}
|
|
@@ -13283,7 +13334,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13283
13334
|
for (const [toolset, members] of Object.entries(metadata.toolsets)) {
|
|
13284
13335
|
if (!TOOLSET_NAME_PATTERN.test(toolset)) {
|
|
13285
13336
|
ctx.addIssue({
|
|
13286
|
-
code:
|
|
13337
|
+
code: z29.ZodIssueCode.custom,
|
|
13287
13338
|
path: ["toolsets", toolset],
|
|
13288
13339
|
message: `toolset name "${toolset}" must match ${TOOLSET_NAME_PATTERN}`
|
|
13289
13340
|
});
|
|
@@ -13291,7 +13342,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13291
13342
|
members.forEach((member, index) => {
|
|
13292
13343
|
if (!TOOL_NAME_PATTERN.test(member)) {
|
|
13293
13344
|
ctx.addIssue({
|
|
13294
|
-
code:
|
|
13345
|
+
code: z29.ZodIssueCode.custom,
|
|
13295
13346
|
path: ["toolsets", toolset, index],
|
|
13296
13347
|
message: `tool name "${member}" must match ${TOOL_NAME_PATTERN}`
|
|
13297
13348
|
});
|
|
@@ -13301,28 +13352,28 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13301
13352
|
(metadata.tools ?? []).forEach((tool, index) => {
|
|
13302
13353
|
if (!TOOL_NAME_PATTERN.test(tool.name)) {
|
|
13303
13354
|
ctx.addIssue({
|
|
13304
|
-
code:
|
|
13355
|
+
code: z29.ZodIssueCode.custom,
|
|
13305
13356
|
path: ["tools", index, "name"],
|
|
13306
13357
|
message: `tool name "${tool.name}" must match ${TOOL_NAME_PATTERN}`
|
|
13307
13358
|
});
|
|
13308
13359
|
}
|
|
13309
13360
|
if (tool.operationId != null && tool.operationId.length > MAX_OPERATION_ID_LENGTH) {
|
|
13310
13361
|
ctx.addIssue({
|
|
13311
|
-
code:
|
|
13362
|
+
code: z29.ZodIssueCode.custom,
|
|
13312
13363
|
path: ["tools", index, "operationId"],
|
|
13313
13364
|
message: `operationId must be at most ${MAX_OPERATION_ID_LENGTH} characters`
|
|
13314
13365
|
});
|
|
13315
13366
|
}
|
|
13316
13367
|
if (tool.method.length > MAX_METHOD_LENGTH) {
|
|
13317
13368
|
ctx.addIssue({
|
|
13318
|
-
code:
|
|
13369
|
+
code: z29.ZodIssueCode.custom,
|
|
13319
13370
|
path: ["tools", index, "method"],
|
|
13320
13371
|
message: `method must be at most ${MAX_METHOD_LENGTH} characters`
|
|
13321
13372
|
});
|
|
13322
13373
|
}
|
|
13323
13374
|
if (tool.path.length > MAX_PATH_LENGTH) {
|
|
13324
13375
|
ctx.addIssue({
|
|
13325
|
-
code:
|
|
13376
|
+
code: z29.ZodIssueCode.custom,
|
|
13326
13377
|
path: ["tools", index, "path"],
|
|
13327
13378
|
message: `path must be at most ${MAX_PATH_LENGTH} characters`
|
|
13328
13379
|
});
|
|
@@ -13331,7 +13382,7 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13331
13382
|
metadata.auth.schemes.forEach((scheme, index) => {
|
|
13332
13383
|
if (scheme.type === "apiKey" && !HEADER_TOKEN_PATTERN.test(scheme.paramName)) {
|
|
13333
13384
|
ctx.addIssue({
|
|
13334
|
-
code:
|
|
13385
|
+
code: z29.ZodIssueCode.custom,
|
|
13335
13386
|
path: ["auth", "schemes", index, "paramName"],
|
|
13336
13387
|
message: `paramName "${scheme.paramName}" must be an RFC 7230 token of at most 128 characters`
|
|
13337
13388
|
});
|
|
@@ -13339,30 +13390,30 @@ function deployMetadataChecks(metadata, ctx) {
|
|
|
13339
13390
|
});
|
|
13340
13391
|
if (!maxSerializedBytes(MCP_METADATA_MAX_BYTES)(metadata)) {
|
|
13341
13392
|
ctx.addIssue({
|
|
13342
|
-
code:
|
|
13393
|
+
code: z29.ZodIssueCode.custom,
|
|
13343
13394
|
message: `metadata must be at most ${MCP_METADATA_MAX_BYTES} bytes serialized`
|
|
13344
13395
|
});
|
|
13345
13396
|
}
|
|
13346
13397
|
}
|
|
13347
|
-
var DeployMcpServerInputSchema =
|
|
13398
|
+
var DeployMcpServerInputSchema = z29.object({
|
|
13348
13399
|
orgId: McpPathSegmentSchema,
|
|
13349
13400
|
slug: McpPathSegmentSchema,
|
|
13350
|
-
mainModule:
|
|
13351
|
-
compatibilityDate:
|
|
13352
|
-
compatibilityFlags:
|
|
13401
|
+
mainModule: z29.string().min(1),
|
|
13402
|
+
compatibilityDate: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
13403
|
+
compatibilityFlags: z29.array(z29.string()),
|
|
13353
13404
|
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
13354
13405
|
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
13355
13406
|
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
13356
|
-
modules:
|
|
13407
|
+
modules: z29.array(McpModuleSchema).min(1).max(20),
|
|
13357
13408
|
metadata: McpMetadataSchema.superRefine(deployMetadataChecks),
|
|
13358
13409
|
// Everything else in this schema is bounded; keep the opaque config
|
|
13359
13410
|
// blob bounded too so it cannot balloon the JSONB row.
|
|
13360
|
-
config:
|
|
13411
|
+
config: z29.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
|
|
13361
13412
|
message: `config must be at most ${MCP_CONFIG_MAX_BYTES} bytes serialized`
|
|
13362
13413
|
}),
|
|
13363
|
-
generatorName:
|
|
13364
|
-
generatorVersion:
|
|
13365
|
-
cliVersion:
|
|
13414
|
+
generatorName: z29.string().min(1),
|
|
13415
|
+
generatorVersion: z29.string().min(1),
|
|
13416
|
+
cliVersion: z29.string().optional(),
|
|
13366
13417
|
git: McpGitInputSchema.optional(),
|
|
13367
13418
|
inputs: McpInputFilesSchema.optional()
|
|
13368
13419
|
}).strict().superRefine((input, ctx) => {
|
|
@@ -13370,7 +13421,7 @@ var DeployMcpServerInputSchema = z28.object({
|
|
|
13370
13421
|
for (const module of input.modules) {
|
|
13371
13422
|
if (names.has(module.name)) {
|
|
13372
13423
|
ctx.addIssue({
|
|
13373
|
-
code:
|
|
13424
|
+
code: z29.ZodIssueCode.custom,
|
|
13374
13425
|
path: ["modules"],
|
|
13375
13426
|
message: `duplicate module name: ${module.name}`
|
|
13376
13427
|
});
|
|
@@ -13379,18 +13430,18 @@ var DeployMcpServerInputSchema = z28.object({
|
|
|
13379
13430
|
}
|
|
13380
13431
|
if (!names.has(input.mainModule)) {
|
|
13381
13432
|
ctx.addIssue({
|
|
13382
|
-
code:
|
|
13433
|
+
code: z29.ZodIssueCode.custom,
|
|
13383
13434
|
path: ["mainModule"],
|
|
13384
13435
|
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
13385
13436
|
});
|
|
13386
13437
|
}
|
|
13387
13438
|
});
|
|
13388
|
-
var GetMcpServerInputSchema =
|
|
13439
|
+
var GetMcpServerInputSchema = z29.object({
|
|
13389
13440
|
orgId: McpPathSegmentSchema,
|
|
13390
13441
|
slug: McpPathSegmentSchema
|
|
13391
13442
|
});
|
|
13392
13443
|
var GetMcpServerBrandingInputSchema = GetMcpServerInputSchema;
|
|
13393
|
-
var GetMcpServerBrandingResponseSchema =
|
|
13444
|
+
var GetMcpServerBrandingResponseSchema = z29.object({
|
|
13394
13445
|
branding: McpServerBrandingSchema,
|
|
13395
13446
|
inherited: DeploymentThemeSchema.nullable()
|
|
13396
13447
|
});
|
|
@@ -13403,35 +13454,35 @@ var UpdateMcpServerAuthInputSchema = GetMcpServerInputSchema.extend(
|
|
|
13403
13454
|
).superRefine(mcpServerAuthChecks);
|
|
13404
13455
|
var MCP_EXCHANGE_SECRET_MAX_LENGTH = 4096;
|
|
13405
13456
|
var SetMcpServerExchangeSecretInputSchema = GetMcpServerInputSchema.extend({
|
|
13406
|
-
secret:
|
|
13457
|
+
secret: z29.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
|
|
13407
13458
|
});
|
|
13408
13459
|
var SetMcpServerIpAllowListInputSchema = GetMcpServerInputSchema.extend({
|
|
13409
13460
|
ranges: McpIpAllowListSchema
|
|
13410
13461
|
});
|
|
13411
|
-
var ListMcpServersInputSchema =
|
|
13412
|
-
orgId:
|
|
13462
|
+
var ListMcpServersInputSchema = z29.object({
|
|
13463
|
+
orgId: z29.string()
|
|
13413
13464
|
});
|
|
13414
13465
|
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
13415
13466
|
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13416
13467
|
var PauseMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13417
13468
|
var ResumeMcpServerInputSchema = GetMcpServerInputSchema;
|
|
13418
13469
|
var RenameMcpServerInputSchema = GetMcpServerInputSchema.extend({ newSlug: McpPathSegmentSchema });
|
|
13419
|
-
var GetMcpDeploymentInputSchema =
|
|
13470
|
+
var GetMcpDeploymentInputSchema = z29.object({
|
|
13420
13471
|
orgId: McpPathSegmentSchema,
|
|
13421
13472
|
slug: McpPathSegmentSchema,
|
|
13422
13473
|
/** Id of one of the server's attempts (the rows are uuid v7). */
|
|
13423
|
-
deploymentId:
|
|
13474
|
+
deploymentId: z29.string().uuid()
|
|
13424
13475
|
});
|
|
13425
|
-
var RollbackMcpServerInputSchema =
|
|
13476
|
+
var RollbackMcpServerInputSchema = z29.object({
|
|
13426
13477
|
orgId: McpPathSegmentSchema,
|
|
13427
13478
|
slug: McpPathSegmentSchema,
|
|
13428
13479
|
/** Id of the SUCCEEDED deployment whose payload should serve again. */
|
|
13429
|
-
deploymentId:
|
|
13480
|
+
deploymentId: z29.string().min(1).max(64)
|
|
13430
13481
|
});
|
|
13431
13482
|
var GetMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13432
13483
|
var RefreshMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13433
13484
|
var RemoveMcpCustomDomainInputSchema = GetMcpServerInputSchema;
|
|
13434
|
-
var SetMcpCustomDomainInputSchema =
|
|
13485
|
+
var SetMcpCustomDomainInputSchema = z29.object({
|
|
13435
13486
|
orgId: McpPathSegmentSchema,
|
|
13436
13487
|
slug: McpPathSegmentSchema,
|
|
13437
13488
|
/**
|
|
@@ -13439,52 +13490,52 @@ var SetMcpCustomDomainInputSchema = z28.object({
|
|
|
13439
13490
|
* against validateCustomDomain (customDomain.ts) and normalized by FDR;
|
|
13440
13491
|
* the length cap only bounds what is parsed.
|
|
13441
13492
|
*/
|
|
13442
|
-
hostname:
|
|
13493
|
+
hostname: z29.string().min(1).max(512)
|
|
13443
13494
|
});
|
|
13444
|
-
var GetMcpAnalyticsInputSchema =
|
|
13495
|
+
var GetMcpAnalyticsInputSchema = z29.object({
|
|
13445
13496
|
orgId: McpPathSegmentSchema,
|
|
13446
13497
|
slug: McpPathSegmentSchema,
|
|
13447
13498
|
window: McpAnalyticsWindowSchema.default("24h")
|
|
13448
13499
|
});
|
|
13449
|
-
var McpDeploymentGitSchema =
|
|
13450
|
-
repoUrl:
|
|
13451
|
-
branch:
|
|
13452
|
-
commitSha:
|
|
13500
|
+
var McpDeploymentGitSchema = z29.object({
|
|
13501
|
+
repoUrl: z29.string(),
|
|
13502
|
+
branch: z29.string().nullish(),
|
|
13503
|
+
commitSha: z29.string().nullish()
|
|
13453
13504
|
});
|
|
13454
|
-
var McpDeploymentSummarySchema =
|
|
13455
|
-
id:
|
|
13505
|
+
var McpDeploymentSummarySchema = z29.object({
|
|
13506
|
+
id: z29.string(),
|
|
13456
13507
|
status: McpDeploymentStatusSchema,
|
|
13457
13508
|
/** True when this deployment is the one the server currently serves. */
|
|
13458
|
-
isActive:
|
|
13509
|
+
isActive: z29.boolean(),
|
|
13459
13510
|
/**
|
|
13460
13511
|
* Docker image name of the generator that produced this attempt's payload
|
|
13461
13512
|
* (DeployMcpServerInputSchema.generatorName). Null only on the wire from
|
|
13462
13513
|
* an FDR that predates the field; the column itself is required.
|
|
13463
13514
|
*/
|
|
13464
|
-
generatorName:
|
|
13465
|
-
generatorVersion:
|
|
13466
|
-
createdAt:
|
|
13467
|
-
createdBy:
|
|
13468
|
-
error:
|
|
13515
|
+
generatorName: z29.string().nullish(),
|
|
13516
|
+
generatorVersion: z29.string(),
|
|
13517
|
+
createdAt: z29.string(),
|
|
13518
|
+
createdBy: z29.string().nullish(),
|
|
13519
|
+
error: z29.object({ name: z29.string(), message: z29.string() }).nullish(),
|
|
13469
13520
|
/**
|
|
13470
13521
|
* Set when this attempt republished an earlier deployment's payload
|
|
13471
13522
|
* (rollbackServer): the id of that source deployment. Null for attempts
|
|
13472
13523
|
* that came from a deploy.
|
|
13473
13524
|
*/
|
|
13474
|
-
rolledBackFromDeploymentId:
|
|
13525
|
+
rolledBackFromDeploymentId: z29.string().nullish(),
|
|
13475
13526
|
/**
|
|
13476
13527
|
* Headline tool count of this attempt's payload, by the same rule as
|
|
13477
13528
|
* McpServerCatalogSummarySchema.toolCount. Null when the stored payload
|
|
13478
13529
|
* predates the current metadata schema.
|
|
13479
13530
|
*/
|
|
13480
|
-
toolCount:
|
|
13531
|
+
toolCount: z29.number().int().nullish(),
|
|
13481
13532
|
/**
|
|
13482
13533
|
* Version of the Fern CLI that submitted this attempt, when one identified
|
|
13483
13534
|
* itself (DeployMcpServerInputSchema.cliVersion). Null for attempts that
|
|
13484
13535
|
* reached the deploy endpoint without it, and for rollbacks, which FDR
|
|
13485
13536
|
* records on its own behalf.
|
|
13486
13537
|
*/
|
|
13487
|
-
cliVersion:
|
|
13538
|
+
cliVersion: z29.string().nullish(),
|
|
13488
13539
|
/**
|
|
13489
13540
|
* The CI run that submitted this attempt, as the CLI described it in the
|
|
13490
13541
|
* `X-CI-Source` header and FDR sanitized it (the same treatment docs
|
|
@@ -13493,7 +13544,7 @@ var McpDeploymentSummarySchema = z28.object({
|
|
|
13493
13544
|
* and, like the deployer headers, self-asserted by the caller. Null for
|
|
13494
13545
|
* local deploys and rollbacks.
|
|
13495
13546
|
*/
|
|
13496
|
-
ciSource:
|
|
13547
|
+
ciSource: z29.record(z29.string(), z29.unknown()).nullish(),
|
|
13497
13548
|
/**
|
|
13498
13549
|
* The repository this attempt's payload was generated from, as the CLI
|
|
13499
13550
|
* reported it (DeployMcpServerInputSchema.git). A rollback carries its
|
|
@@ -13509,47 +13560,47 @@ var McpDeploymentSummarySchema = z28.object({
|
|
|
13509
13560
|
* deployment it restored always do — so it names what a version *is* rather
|
|
13510
13561
|
* than which row it was. Null when the stored module list does not parse.
|
|
13511
13562
|
*/
|
|
13512
|
-
bundleDigest:
|
|
13563
|
+
bundleDigest: z29.string().nullish()
|
|
13513
13564
|
});
|
|
13514
|
-
var McpDeploymentInputFileSchema =
|
|
13515
|
-
name:
|
|
13516
|
-
contentType:
|
|
13517
|
-
hash:
|
|
13518
|
-
downloadUrl:
|
|
13565
|
+
var McpDeploymentInputFileSchema = z29.object({
|
|
13566
|
+
name: z29.string(),
|
|
13567
|
+
contentType: z29.string(),
|
|
13568
|
+
hash: z29.string(),
|
|
13569
|
+
downloadUrl: z29.string()
|
|
13519
13570
|
});
|
|
13520
13571
|
var McpDeploymentDetailSchema = McpDeploymentSummarySchema.extend({
|
|
13521
13572
|
/** Empty when the stored metadata carries no `tools` (generators before provenance). */
|
|
13522
|
-
tools:
|
|
13523
|
-
skippedTools:
|
|
13573
|
+
tools: z29.array(McpDeploymentToolSchema),
|
|
13574
|
+
skippedTools: z29.array(McpDeploymentSkippedToolSchema),
|
|
13524
13575
|
/** The stored toolset membership map, as deployed. */
|
|
13525
|
-
toolsets:
|
|
13576
|
+
toolsets: z29.record(z29.string(), z29.array(z29.string())),
|
|
13526
13577
|
/** The raw generators.yml `config:` block the CLI sent, or null. Visible to org members. */
|
|
13527
|
-
config:
|
|
13578
|
+
config: z29.unknown().nullable(),
|
|
13528
13579
|
/** Null when the attempt recorded no inputs (older CLIs, rollbacks of such rows). */
|
|
13529
|
-
inputs:
|
|
13580
|
+
inputs: z29.array(McpDeploymentInputFileSchema).nullable()
|
|
13530
13581
|
});
|
|
13531
|
-
var McpCustomDomainStatusSchema =
|
|
13532
|
-
var McpCustomDomainRecordSchema =
|
|
13533
|
-
type:
|
|
13534
|
-
name:
|
|
13535
|
-
value:
|
|
13582
|
+
var McpCustomDomainStatusSchema = z29.enum(["PENDING", "ACTIVE", "FAILED"]);
|
|
13583
|
+
var McpCustomDomainRecordSchema = z29.object({
|
|
13584
|
+
type: z29.enum(["CNAME", "TXT"]),
|
|
13585
|
+
name: z29.string(),
|
|
13586
|
+
value: z29.string(),
|
|
13536
13587
|
/** What the record is for, in a sentence the dashboard can show beside it. */
|
|
13537
|
-
purpose:
|
|
13588
|
+
purpose: z29.string()
|
|
13538
13589
|
});
|
|
13539
|
-
var McpCustomDomainSchema =
|
|
13540
|
-
hostname:
|
|
13590
|
+
var McpCustomDomainSchema = z29.object({
|
|
13591
|
+
hostname: z29.string(),
|
|
13541
13592
|
status: McpCustomDomainStatusSchema,
|
|
13542
13593
|
/** Records still to add; empty once the domain is ACTIVE. */
|
|
13543
|
-
records:
|
|
13594
|
+
records: z29.array(McpCustomDomainRecordSchema),
|
|
13544
13595
|
/** Why Cloudflare could not verify the domain or issue its certificate, when it said. */
|
|
13545
|
-
errors:
|
|
13546
|
-
createdAt:
|
|
13547
|
-
updatedAt:
|
|
13548
|
-
});
|
|
13549
|
-
var McpServerSchema =
|
|
13550
|
-
id:
|
|
13551
|
-
orgId:
|
|
13552
|
-
slug:
|
|
13596
|
+
errors: z29.array(z29.string()),
|
|
13597
|
+
createdAt: z29.string(),
|
|
13598
|
+
updatedAt: z29.string()
|
|
13599
|
+
});
|
|
13600
|
+
var McpServerSchema = z29.object({
|
|
13601
|
+
id: z29.string(),
|
|
13602
|
+
orgId: z29.string(),
|
|
13603
|
+
slug: z29.string(),
|
|
13553
13604
|
/** Per-server custom branding; empty when no values are set. */
|
|
13554
13605
|
branding: McpServerBrandingSchema,
|
|
13555
13606
|
/**
|
|
@@ -13563,9 +13614,9 @@ var McpServerSchema = z28.object({
|
|
|
13563
13614
|
* setServerIpAllowList. Empty means open. Kept across deploys and
|
|
13564
13615
|
* rollbacks. Absent only on the wire from an FDR that predates the field.
|
|
13565
13616
|
*/
|
|
13566
|
-
ipAllowList:
|
|
13617
|
+
ipAllowList: z29.array(z29.string()).optional(),
|
|
13567
13618
|
/** The server is serving iff this is set; it names the serving deployment. */
|
|
13568
|
-
activeDeploymentId:
|
|
13619
|
+
activeDeploymentId: z29.string().nullish(),
|
|
13569
13620
|
/** Most recent publication attempt — how the last deploy went. */
|
|
13570
13621
|
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
13571
13622
|
/**
|
|
@@ -13574,7 +13625,7 @@ var McpServerSchema = z28.object({
|
|
|
13574
13625
|
* (KV_KEY_PREFIX_PAUSED in kv.ts). Independent of activeDeploymentId: a
|
|
13575
13626
|
* paused server keeps its serving deployment and resumes exactly there.
|
|
13576
13627
|
*/
|
|
13577
|
-
pausedAt:
|
|
13628
|
+
pausedAt: z29.string().nullish(),
|
|
13578
13629
|
/**
|
|
13579
13630
|
* What the server offers, derived from the ACTIVE deployment's stored
|
|
13580
13631
|
* metadata (tools, toolsets, auth, configuration). Null when nothing is
|
|
@@ -13588,14 +13639,14 @@ var McpServerSchema = z28.object({
|
|
|
13588
13639
|
* a UI shows both. Only an ACTIVE domain serves: read `customDomainStatus`
|
|
13589
13640
|
* to tell a pending one from a live one.
|
|
13590
13641
|
*/
|
|
13591
|
-
customDomain:
|
|
13642
|
+
customDomain: z29.string().nullish(),
|
|
13592
13643
|
customDomainStatus: McpCustomDomainStatusSchema.nullish(),
|
|
13593
|
-
url:
|
|
13594
|
-
createdAt:
|
|
13595
|
-
updatedAt:
|
|
13644
|
+
url: z29.string().url(),
|
|
13645
|
+
createdAt: z29.string(),
|
|
13646
|
+
updatedAt: z29.string()
|
|
13596
13647
|
});
|
|
13597
|
-
var ListMcpServersResponseSchema =
|
|
13598
|
-
var ListMcpDeploymentsResponseSchema =
|
|
13648
|
+
var ListMcpServersResponseSchema = z29.object({ servers: z29.array(McpServerSchema) });
|
|
13649
|
+
var ListMcpDeploymentsResponseSchema = z29.object({ deployments: z29.array(McpDeploymentSummarySchema) });
|
|
13599
13650
|
var mcpHostingContract = {
|
|
13600
13651
|
deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
13601
13652
|
getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
@@ -13683,7 +13734,19 @@ var mcpHostingContract = {
|
|
|
13683
13734
|
* Analytics Engine by FDR (the tenant filter is applied server-side, so no
|
|
13684
13735
|
* Cloudflare credential reaches the browser). See analytics.ts.
|
|
13685
13736
|
*/
|
|
13686
|
-
getAnalytics: oc15.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema)
|
|
13737
|
+
getAnalytics: oc15.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema),
|
|
13738
|
+
/**
|
|
13739
|
+
* The org's exact tool-call count for a month against its allowance
|
|
13740
|
+
* (usage.ts). Any member. NOT_IMPLEMENTED when FDR has no usage read
|
|
13741
|
+
* token for the dispatcher.
|
|
13742
|
+
*/
|
|
13743
|
+
getUsage: oc15.route({ method: "GET", path: "/usage" }).input(GetMcpUsageInputSchema).output(McpOrgUsageSchema),
|
|
13744
|
+
/**
|
|
13745
|
+
* Set the org's monthly allowance (sales raising a limit or approving an
|
|
13746
|
+
* org to go over). Fern staff (super-users) only. Applies at the
|
|
13747
|
+
* dispatcher within KV's propagation time plus its one-minute cache.
|
|
13748
|
+
*/
|
|
13749
|
+
setUsageAllowance: oc15.route({ method: "PUT", path: "/usage/allowance" }).input(SetMcpUsageAllowanceInputSchema).output(McpOrgUsageSchema)
|
|
13687
13750
|
};
|
|
13688
13751
|
|
|
13689
13752
|
// src/orpc-client/mcp-hosting/client.ts
|
|
@@ -13705,87 +13768,87 @@ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
|
|
|
13705
13768
|
|
|
13706
13769
|
// src/orpc-client/pdf-export/contract.ts
|
|
13707
13770
|
import { oc as oc16 } from "@orpc/contract";
|
|
13708
|
-
import * as
|
|
13709
|
-
var PdfExportScopeSchema =
|
|
13710
|
-
pageSlugs:
|
|
13711
|
-
});
|
|
13712
|
-
var PdfExportOptionsV1Schema =
|
|
13713
|
-
coverTitle:
|
|
13714
|
-
coverSubtitle:
|
|
13715
|
-
hideCoverFooter:
|
|
13716
|
-
headerLeftTemplate:
|
|
13717
|
-
headerRightTemplate:
|
|
13718
|
-
footerLeftTemplate:
|
|
13719
|
-
footerRightTemplate:
|
|
13771
|
+
import * as z30 from "zod";
|
|
13772
|
+
var PdfExportScopeSchema = z30.object({
|
|
13773
|
+
pageSlugs: z30.array(z30.string())
|
|
13774
|
+
});
|
|
13775
|
+
var PdfExportOptionsV1Schema = z30.object({
|
|
13776
|
+
coverTitle: z30.string().nullish(),
|
|
13777
|
+
coverSubtitle: z30.string().nullish(),
|
|
13778
|
+
hideCoverFooter: z30.boolean().nullish(),
|
|
13779
|
+
headerLeftTemplate: z30.string().nullish(),
|
|
13780
|
+
headerRightTemplate: z30.string().nullish(),
|
|
13781
|
+
footerLeftTemplate: z30.string().nullish(),
|
|
13782
|
+
footerRightTemplate: z30.string().nullish(),
|
|
13720
13783
|
scope: PdfExportScopeSchema.nullish(),
|
|
13721
|
-
hideCover:
|
|
13722
|
-
hideToc:
|
|
13784
|
+
hideCover: z30.boolean().nullish(),
|
|
13785
|
+
hideToc: z30.boolean().nullish()
|
|
13723
13786
|
});
|
|
13724
|
-
var PdfExportOptionsSchema =
|
|
13725
|
-
|
|
13787
|
+
var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
|
|
13788
|
+
z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
13726
13789
|
]);
|
|
13727
|
-
var PdfExportTaskStatusSchema =
|
|
13728
|
-
var PdfExportFormatSchema =
|
|
13729
|
-
var PdfExportTaskSchema =
|
|
13730
|
-
id:
|
|
13731
|
-
orgId:
|
|
13732
|
-
docsUrl:
|
|
13733
|
-
productId:
|
|
13734
|
-
versionId:
|
|
13735
|
-
requesterName:
|
|
13736
|
-
notifyEmails:
|
|
13790
|
+
var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
13791
|
+
var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
|
|
13792
|
+
var PdfExportTaskSchema = z30.object({
|
|
13793
|
+
id: z30.string(),
|
|
13794
|
+
orgId: z30.string(),
|
|
13795
|
+
docsUrl: z30.string(),
|
|
13796
|
+
productId: z30.string().nullish(),
|
|
13797
|
+
versionId: z30.string().nullish(),
|
|
13798
|
+
requesterName: z30.string().nullish(),
|
|
13799
|
+
notifyEmails: z30.array(z30.string()).nullish(),
|
|
13737
13800
|
status: PdfExportTaskStatusSchema,
|
|
13738
13801
|
format: PdfExportFormatSchema.nullish(),
|
|
13739
13802
|
options: PdfExportOptionsSchema.nullish(),
|
|
13740
|
-
createdAt:
|
|
13741
|
-
startedAt:
|
|
13742
|
-
completedAt:
|
|
13743
|
-
fileName:
|
|
13744
|
-
sizeBytes:
|
|
13745
|
-
errorMessage:
|
|
13746
|
-
});
|
|
13747
|
-
var ListPdfExportTasksResponseSchema =
|
|
13748
|
-
tasks:
|
|
13749
|
-
});
|
|
13750
|
-
var PdfExportDownloadResponseSchema =
|
|
13751
|
-
downloadUrl:
|
|
13752
|
-
fileName:
|
|
13753
|
-
sizeBytes:
|
|
13754
|
-
});
|
|
13755
|
-
var CreatePdfExportTaskInputSchema =
|
|
13756
|
-
orgId:
|
|
13757
|
-
docsUrl:
|
|
13758
|
-
productId:
|
|
13759
|
-
versionId:
|
|
13760
|
-
requesterName:
|
|
13803
|
+
createdAt: z30.string(),
|
|
13804
|
+
startedAt: z30.string().nullish(),
|
|
13805
|
+
completedAt: z30.string().nullish(),
|
|
13806
|
+
fileName: z30.string().nullish(),
|
|
13807
|
+
sizeBytes: z30.number().nullish(),
|
|
13808
|
+
errorMessage: z30.string().nullish()
|
|
13809
|
+
});
|
|
13810
|
+
var ListPdfExportTasksResponseSchema = z30.object({
|
|
13811
|
+
tasks: z30.array(PdfExportTaskSchema)
|
|
13812
|
+
});
|
|
13813
|
+
var PdfExportDownloadResponseSchema = z30.object({
|
|
13814
|
+
downloadUrl: z30.string(),
|
|
13815
|
+
fileName: z30.string(),
|
|
13816
|
+
sizeBytes: z30.number()
|
|
13817
|
+
});
|
|
13818
|
+
var CreatePdfExportTaskInputSchema = z30.object({
|
|
13819
|
+
orgId: z30.string(),
|
|
13820
|
+
docsUrl: z30.string(),
|
|
13821
|
+
productId: z30.string().nullish(),
|
|
13822
|
+
versionId: z30.string().nullish(),
|
|
13823
|
+
requesterName: z30.string().nullish(),
|
|
13761
13824
|
format: PdfExportFormatSchema.nullish(),
|
|
13762
13825
|
options: PdfExportOptionsSchema.nullish()
|
|
13763
13826
|
});
|
|
13764
|
-
var ListPdfExportTasksInputSchema =
|
|
13765
|
-
orgId:
|
|
13766
|
-
docsUrl:
|
|
13767
|
-
limit:
|
|
13827
|
+
var ListPdfExportTasksInputSchema = z30.object({
|
|
13828
|
+
orgId: z30.string(),
|
|
13829
|
+
docsUrl: z30.string(),
|
|
13830
|
+
limit: z30.coerce.number().nullish()
|
|
13768
13831
|
});
|
|
13769
|
-
var GetPdfExportTaskInputSchema =
|
|
13770
|
-
taskId:
|
|
13832
|
+
var GetPdfExportTaskInputSchema = z30.object({
|
|
13833
|
+
taskId: z30.string()
|
|
13771
13834
|
});
|
|
13772
|
-
var UpdatePdfExportTaskInputSchema =
|
|
13773
|
-
taskId:
|
|
13835
|
+
var UpdatePdfExportTaskInputSchema = z30.object({
|
|
13836
|
+
taskId: z30.string(),
|
|
13774
13837
|
status: PdfExportTaskStatusSchema,
|
|
13775
|
-
startedAt:
|
|
13776
|
-
completedAt:
|
|
13777
|
-
s3Key:
|
|
13778
|
-
fileName:
|
|
13779
|
-
sizeBytes:
|
|
13780
|
-
errorMessage:
|
|
13838
|
+
startedAt: z30.string().nullish(),
|
|
13839
|
+
completedAt: z30.string().nullish(),
|
|
13840
|
+
s3Key: z30.string().nullish(),
|
|
13841
|
+
fileName: z30.string().nullish(),
|
|
13842
|
+
sizeBytes: z30.number().nullish(),
|
|
13843
|
+
errorMessage: z30.string().nullish()
|
|
13781
13844
|
});
|
|
13782
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
13783
|
-
taskId:
|
|
13845
|
+
var GetPdfExportDownloadUrlInputSchema = z30.object({
|
|
13846
|
+
taskId: z30.string()
|
|
13784
13847
|
});
|
|
13785
|
-
var CleanupPdfExportsResponseSchema =
|
|
13786
|
-
expiredTasksDeleted:
|
|
13787
|
-
s3ObjectsDeleted:
|
|
13788
|
-
timedOutTasksFailed:
|
|
13848
|
+
var CleanupPdfExportsResponseSchema = z30.object({
|
|
13849
|
+
expiredTasksDeleted: z30.number(),
|
|
13850
|
+
s3ObjectsDeleted: z30.number(),
|
|
13851
|
+
timedOutTasksFailed: z30.number()
|
|
13789
13852
|
});
|
|
13790
13853
|
var pdfExportContract = {
|
|
13791
13854
|
createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
@@ -13818,8 +13881,8 @@ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
|
|
|
13818
13881
|
|
|
13819
13882
|
// src/orpc-client/sdks/contract.ts
|
|
13820
13883
|
import { oc as oc17 } from "@orpc/contract";
|
|
13821
|
-
import * as
|
|
13822
|
-
var LanguageEnumSchema =
|
|
13884
|
+
import * as z31 from "zod";
|
|
13885
|
+
var LanguageEnumSchema = z31.enum([
|
|
13823
13886
|
"Go",
|
|
13824
13887
|
"TypeScript",
|
|
13825
13888
|
"Java",
|
|
@@ -13830,14 +13893,14 @@ var LanguageEnumSchema = z30.enum([
|
|
|
13830
13893
|
"Swift",
|
|
13831
13894
|
"Rust"
|
|
13832
13895
|
]);
|
|
13833
|
-
var VersionBumpEnumSchema =
|
|
13834
|
-
var ComputeSemanticVersionInputSchema =
|
|
13835
|
-
package:
|
|
13896
|
+
var VersionBumpEnumSchema = z31.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
13897
|
+
var ComputeSemanticVersionInputSchema = z31.object({
|
|
13898
|
+
package: z31.string(),
|
|
13836
13899
|
language: LanguageEnumSchema,
|
|
13837
|
-
githubRepository:
|
|
13900
|
+
githubRepository: z31.string().nullish()
|
|
13838
13901
|
});
|
|
13839
|
-
var ComputeSemanticVersionOutputSchema =
|
|
13840
|
-
version:
|
|
13902
|
+
var ComputeSemanticVersionOutputSchema = z31.object({
|
|
13903
|
+
version: z31.string(),
|
|
13841
13904
|
bump: VersionBumpEnumSchema
|
|
13842
13905
|
});
|
|
13843
13906
|
var sdksContract = {
|
|
@@ -13863,32 +13926,32 @@ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
|
|
|
13863
13926
|
|
|
13864
13927
|
// src/orpc-client/slugs/contract.ts
|
|
13865
13928
|
import { oc as oc18 } from "@orpc/contract";
|
|
13866
|
-
import * as
|
|
13867
|
-
var SlugsInputSchema =
|
|
13868
|
-
domain:
|
|
13869
|
-
basepath:
|
|
13870
|
-
});
|
|
13871
|
-
var SlugEntrySchema =
|
|
13872
|
-
orgId:
|
|
13873
|
-
domain:
|
|
13874
|
-
basepath:
|
|
13875
|
-
slug:
|
|
13876
|
-
lastUpdated:
|
|
13877
|
-
});
|
|
13878
|
-
var MarkdownEntrySchema =
|
|
13879
|
-
orgId:
|
|
13880
|
-
domain:
|
|
13881
|
-
basepath:
|
|
13882
|
-
pageId:
|
|
13883
|
-
slug:
|
|
13884
|
-
hash:
|
|
13885
|
-
lastUpdated:
|
|
13886
|
-
});
|
|
13887
|
-
var GetSlugEntriesResponseSchema =
|
|
13888
|
-
entries:
|
|
13889
|
-
});
|
|
13890
|
-
var GetMarkdownEntriesResponseSchema =
|
|
13891
|
-
entries:
|
|
13929
|
+
import * as z32 from "zod";
|
|
13930
|
+
var SlugsInputSchema = z32.object({
|
|
13931
|
+
domain: z32.string(),
|
|
13932
|
+
basepath: z32.string().optional().default("")
|
|
13933
|
+
});
|
|
13934
|
+
var SlugEntrySchema = z32.object({
|
|
13935
|
+
orgId: z32.string(),
|
|
13936
|
+
domain: z32.string(),
|
|
13937
|
+
basepath: z32.string(),
|
|
13938
|
+
slug: z32.string(),
|
|
13939
|
+
lastUpdated: z32.string()
|
|
13940
|
+
});
|
|
13941
|
+
var MarkdownEntrySchema = z32.object({
|
|
13942
|
+
orgId: z32.string(),
|
|
13943
|
+
domain: z32.string(),
|
|
13944
|
+
basepath: z32.string(),
|
|
13945
|
+
pageId: z32.string(),
|
|
13946
|
+
slug: z32.string(),
|
|
13947
|
+
hash: z32.string(),
|
|
13948
|
+
lastUpdated: z32.string()
|
|
13949
|
+
});
|
|
13950
|
+
var GetSlugEntriesResponseSchema = z32.object({
|
|
13951
|
+
entries: z32.array(SlugEntrySchema)
|
|
13952
|
+
});
|
|
13953
|
+
var GetMarkdownEntriesResponseSchema = z32.object({
|
|
13954
|
+
entries: z32.array(MarkdownEntrySchema)
|
|
13892
13955
|
});
|
|
13893
13956
|
var slugsContract = {
|
|
13894
13957
|
getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
@@ -13921,102 +13984,102 @@ __export(contract_exports3, {
|
|
|
13921
13984
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
13922
13985
|
});
|
|
13923
13986
|
import { oc as oc19 } from "@orpc/contract";
|
|
13924
|
-
import * as
|
|
13925
|
-
var TypeScriptSdkSchema =
|
|
13926
|
-
var PythonSdkSchema =
|
|
13927
|
-
var GoSdkSchema =
|
|
13928
|
-
var RubySdkSchema =
|
|
13929
|
-
var JavaSdkSchema =
|
|
13930
|
-
var CsharpSdkSchema =
|
|
13931
|
-
var BaseSnippetCreateSchema =
|
|
13987
|
+
import * as z33 from "zod";
|
|
13988
|
+
var TypeScriptSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
13989
|
+
var PythonSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
13990
|
+
var GoSdkSchema = z33.object({ githubRepo: z33.string(), version: z33.string() });
|
|
13991
|
+
var RubySdkSchema = z33.object({ gem: z33.string(), version: z33.string() });
|
|
13992
|
+
var JavaSdkSchema = z33.object({ group: z33.string(), artifact: z33.string(), version: z33.string() });
|
|
13993
|
+
var CsharpSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
|
|
13994
|
+
var BaseSnippetCreateSchema = z33.object({
|
|
13932
13995
|
endpoint: EndpointIdentifierSchema,
|
|
13933
|
-
exampleIdentifier:
|
|
13996
|
+
exampleIdentifier: z33.string().nullish()
|
|
13934
13997
|
});
|
|
13935
|
-
var SdkSnippetsCreateSchema =
|
|
13936
|
-
|
|
13937
|
-
type:
|
|
13998
|
+
var SdkSnippetsCreateSchema = z33.discriminatedUnion("type", [
|
|
13999
|
+
z33.object({
|
|
14000
|
+
type: z33.literal("typescript"),
|
|
13938
14001
|
sdk: TypeScriptSdkSchema,
|
|
13939
|
-
snippets:
|
|
14002
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
13940
14003
|
}),
|
|
13941
|
-
|
|
13942
|
-
type:
|
|
14004
|
+
z33.object({
|
|
14005
|
+
type: z33.literal("python"),
|
|
13943
14006
|
sdk: PythonSdkSchema,
|
|
13944
|
-
snippets:
|
|
14007
|
+
snippets: z33.array(
|
|
13945
14008
|
BaseSnippetCreateSchema.extend({
|
|
13946
|
-
snippet:
|
|
14009
|
+
snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
|
|
13947
14010
|
})
|
|
13948
14011
|
)
|
|
13949
14012
|
}),
|
|
13950
|
-
|
|
13951
|
-
type:
|
|
14013
|
+
z33.object({
|
|
14014
|
+
type: z33.literal("go"),
|
|
13952
14015
|
sdk: GoSdkSchema,
|
|
13953
|
-
snippets:
|
|
14016
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
13954
14017
|
}),
|
|
13955
|
-
|
|
13956
|
-
type:
|
|
14018
|
+
z33.object({
|
|
14019
|
+
type: z33.literal("java"),
|
|
13957
14020
|
sdk: JavaSdkSchema,
|
|
13958
|
-
snippets:
|
|
14021
|
+
snippets: z33.array(
|
|
13959
14022
|
BaseSnippetCreateSchema.extend({
|
|
13960
|
-
snippet:
|
|
14023
|
+
snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
|
|
13961
14024
|
})
|
|
13962
14025
|
)
|
|
13963
14026
|
}),
|
|
13964
|
-
|
|
13965
|
-
type:
|
|
14027
|
+
z33.object({
|
|
14028
|
+
type: z33.literal("ruby"),
|
|
13966
14029
|
sdk: RubySdkSchema,
|
|
13967
|
-
snippets:
|
|
14030
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
13968
14031
|
}),
|
|
13969
|
-
|
|
13970
|
-
type:
|
|
14032
|
+
z33.object({
|
|
14033
|
+
type: z33.literal("csharp"),
|
|
13971
14034
|
sdk: CsharpSdkSchema,
|
|
13972
|
-
snippets:
|
|
14035
|
+
snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
|
|
13973
14036
|
})
|
|
13974
14037
|
]);
|
|
13975
14038
|
var snippetsFactoryContract = {
|
|
13976
14039
|
createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
|
|
13977
|
-
|
|
13978
|
-
orgId:
|
|
13979
|
-
apiId:
|
|
14040
|
+
z33.object({
|
|
14041
|
+
orgId: z33.string(),
|
|
14042
|
+
apiId: z33.string(),
|
|
13980
14043
|
snippets: SdkSnippetsCreateSchema
|
|
13981
14044
|
})
|
|
13982
14045
|
)
|
|
13983
14046
|
};
|
|
13984
|
-
var ParameterPayloadSchema =
|
|
13985
|
-
name:
|
|
13986
|
-
value:
|
|
14047
|
+
var ParameterPayloadSchema = z33.object({
|
|
14048
|
+
name: z33.string(),
|
|
14049
|
+
value: z33.unknown()
|
|
13987
14050
|
});
|
|
13988
|
-
var AuthPayloadSchema =
|
|
13989
|
-
|
|
13990
|
-
|
|
14051
|
+
var AuthPayloadSchema = z33.discriminatedUnion("type", [
|
|
14052
|
+
z33.object({ type: z33.literal("bearer"), token: z33.string() }),
|
|
14053
|
+
z33.object({ type: z33.literal("basic"), username: z33.string(), password: z33.string() })
|
|
13991
14054
|
]);
|
|
13992
|
-
var CustomSnippetPayloadSchema =
|
|
13993
|
-
headers:
|
|
13994
|
-
pathParameters:
|
|
13995
|
-
queryParameters:
|
|
13996
|
-
requestBody:
|
|
14055
|
+
var CustomSnippetPayloadSchema = z33.object({
|
|
14056
|
+
headers: z33.array(ParameterPayloadSchema).nullish(),
|
|
14057
|
+
pathParameters: z33.array(ParameterPayloadSchema).nullish(),
|
|
14058
|
+
queryParameters: z33.array(ParameterPayloadSchema).nullish(),
|
|
14059
|
+
requestBody: z33.unknown().nullish(),
|
|
13997
14060
|
auth: AuthPayloadSchema.nullish()
|
|
13998
14061
|
});
|
|
13999
14062
|
var snippetsContract = {
|
|
14000
14063
|
get: oc19.route({ method: "POST", path: "/" }).input(
|
|
14001
|
-
|
|
14002
|
-
orgId:
|
|
14003
|
-
apiId:
|
|
14004
|
-
sdks:
|
|
14064
|
+
z33.object({
|
|
14065
|
+
orgId: z33.string().nullish(),
|
|
14066
|
+
apiId: z33.string().nullish(),
|
|
14067
|
+
sdks: z33.array(SdkRequestSchema).nullish(),
|
|
14005
14068
|
endpoint: EndpointIdentifierSchema,
|
|
14006
|
-
exampleIdentifier:
|
|
14069
|
+
exampleIdentifier: z33.string().nullish(),
|
|
14007
14070
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
14008
14071
|
})
|
|
14009
|
-
).output(
|
|
14072
|
+
).output(z33.array(z33.unknown())),
|
|
14010
14073
|
load: oc19.route({ method: "POST", path: "/load" }).input(
|
|
14011
|
-
|
|
14012
|
-
orgId:
|
|
14013
|
-
apiId:
|
|
14014
|
-
sdks:
|
|
14074
|
+
z33.object({
|
|
14075
|
+
orgId: z33.string().nullish(),
|
|
14076
|
+
apiId: z33.string().nullish(),
|
|
14077
|
+
sdks: z33.array(SdkRequestSchema).nullish()
|
|
14015
14078
|
})
|
|
14016
14079
|
).output(
|
|
14017
|
-
|
|
14018
|
-
next:
|
|
14019
|
-
snippets:
|
|
14080
|
+
z33.object({
|
|
14081
|
+
next: z33.number().nullish(),
|
|
14082
|
+
snippets: z33.record(z33.string(), z33.unknown())
|
|
14020
14083
|
})
|
|
14021
14084
|
)
|
|
14022
14085
|
};
|
|
@@ -14051,44 +14114,44 @@ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
|
|
|
14051
14114
|
|
|
14052
14115
|
// src/orpc-client/templates/contract.ts
|
|
14053
14116
|
import { oc as oc20 } from "@orpc/contract";
|
|
14054
|
-
import * as
|
|
14055
|
-
var SnippetRegistryEntrySchema =
|
|
14117
|
+
import * as z34 from "zod";
|
|
14118
|
+
var SnippetRegistryEntrySchema = z34.object({
|
|
14056
14119
|
sdk: SdkSchema,
|
|
14057
|
-
endpointId:
|
|
14058
|
-
path:
|
|
14120
|
+
endpointId: z34.object({
|
|
14121
|
+
path: z34.string(),
|
|
14059
14122
|
method: HttpMethodSchema,
|
|
14060
|
-
identifierOverride:
|
|
14123
|
+
identifierOverride: z34.string().nullish()
|
|
14061
14124
|
}),
|
|
14062
|
-
snippetTemplate:
|
|
14063
|
-
type:
|
|
14064
|
-
functionInvocation:
|
|
14065
|
-
clientInstantiation:
|
|
14125
|
+
snippetTemplate: z34.object({
|
|
14126
|
+
type: z34.literal("v1"),
|
|
14127
|
+
functionInvocation: z34.unknown(),
|
|
14128
|
+
clientInstantiation: z34.string()
|
|
14066
14129
|
}),
|
|
14067
|
-
additionalTemplates:
|
|
14130
|
+
additionalTemplates: z34.record(z34.string(), z34.unknown()).nullish()
|
|
14068
14131
|
});
|
|
14069
|
-
var RegisterInputSchema =
|
|
14070
|
-
orgId:
|
|
14071
|
-
apiId:
|
|
14072
|
-
apiDefinitionId:
|
|
14132
|
+
var RegisterInputSchema = z34.object({
|
|
14133
|
+
orgId: z34.string(),
|
|
14134
|
+
apiId: z34.string(),
|
|
14135
|
+
apiDefinitionId: z34.string(),
|
|
14073
14136
|
snippet: SnippetRegistryEntrySchema
|
|
14074
14137
|
});
|
|
14075
|
-
var RegisterBatchInputSchema =
|
|
14076
|
-
orgId:
|
|
14077
|
-
apiId:
|
|
14078
|
-
apiDefinitionId:
|
|
14079
|
-
snippets:
|
|
14138
|
+
var RegisterBatchInputSchema = z34.object({
|
|
14139
|
+
orgId: z34.string(),
|
|
14140
|
+
apiId: z34.string(),
|
|
14141
|
+
apiDefinitionId: z34.string(),
|
|
14142
|
+
snippets: z34.array(SnippetRegistryEntrySchema)
|
|
14080
14143
|
});
|
|
14081
|
-
var GetInputSchema =
|
|
14082
|
-
orgId:
|
|
14083
|
-
apiId:
|
|
14144
|
+
var GetInputSchema = z34.object({
|
|
14145
|
+
orgId: z34.string(),
|
|
14146
|
+
apiId: z34.string(),
|
|
14084
14147
|
sdk: SdkSchema,
|
|
14085
|
-
endpointId:
|
|
14086
|
-
path:
|
|
14148
|
+
endpointId: z34.object({
|
|
14149
|
+
path: z34.string(),
|
|
14087
14150
|
method: HttpMethodSchema,
|
|
14088
|
-
identifierOverride:
|
|
14151
|
+
identifierOverride: z34.string().nullish()
|
|
14089
14152
|
})
|
|
14090
14153
|
});
|
|
14091
|
-
var EndpointSnippetTemplateSchema =
|
|
14154
|
+
var EndpointSnippetTemplateSchema = z34.record(z34.string(), z34.unknown());
|
|
14092
14155
|
var templatesContract = {
|
|
14093
14156
|
register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
14094
14157
|
registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
@@ -14115,18 +14178,18 @@ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
|
|
|
14115
14178
|
|
|
14116
14179
|
// src/orpc-client/tokens/contract.ts
|
|
14117
14180
|
import { oc as oc21 } from "@orpc/contract";
|
|
14118
|
-
import * as
|
|
14119
|
-
var GenerateTokenInputSchema =
|
|
14120
|
-
orgId:
|
|
14121
|
-
scope:
|
|
14181
|
+
import * as z35 from "zod";
|
|
14182
|
+
var GenerateTokenInputSchema = z35.object({
|
|
14183
|
+
orgId: z35.string(),
|
|
14184
|
+
scope: z35.string()
|
|
14122
14185
|
});
|
|
14123
|
-
var RevokeTokenInputSchema =
|
|
14124
|
-
orgId:
|
|
14125
|
-
tokenId:
|
|
14186
|
+
var RevokeTokenInputSchema = z35.object({
|
|
14187
|
+
orgId: z35.string(),
|
|
14188
|
+
tokenId: z35.string()
|
|
14126
14189
|
});
|
|
14127
|
-
var GenerateTokenOutputSchema =
|
|
14128
|
-
token:
|
|
14129
|
-
id:
|
|
14190
|
+
var GenerateTokenOutputSchema = z35.object({
|
|
14191
|
+
token: z35.string(),
|
|
14192
|
+
id: z35.string()
|
|
14130
14193
|
});
|
|
14131
14194
|
var tokensContract = {
|
|
14132
14195
|
generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
@@ -14409,85 +14472,85 @@ __export(APIV1Db_exports, {
|
|
|
14409
14472
|
});
|
|
14410
14473
|
|
|
14411
14474
|
// src/orpc-client/api/contract-db.ts
|
|
14412
|
-
import * as
|
|
14413
|
-
var EndpointSnippetTemplatesSchema =
|
|
14414
|
-
typescript:
|
|
14415
|
-
python:
|
|
14475
|
+
import * as z36 from "zod";
|
|
14476
|
+
var EndpointSnippetTemplatesSchema = z36.object({
|
|
14477
|
+
typescript: z36.unknown().nullish(),
|
|
14478
|
+
python: z36.unknown().nullish()
|
|
14416
14479
|
});
|
|
14417
|
-
var DbHttpRequestSchema =
|
|
14418
|
-
description:
|
|
14419
|
-
contentType:
|
|
14480
|
+
var DbHttpRequestSchema = z36.object({
|
|
14481
|
+
description: z36.string().nullish(),
|
|
14482
|
+
contentType: z36.string().nullish(),
|
|
14420
14483
|
type: RegisterHttpRequestBodyShapeSchema
|
|
14421
14484
|
});
|
|
14422
|
-
var DbHttpRequestsV2Schema =
|
|
14423
|
-
requests:
|
|
14485
|
+
var DbHttpRequestsV2Schema = z36.object({
|
|
14486
|
+
requests: z36.array(DbHttpRequestSchema).nullish()
|
|
14424
14487
|
});
|
|
14425
|
-
var DbEndpointDefinitionSchema =
|
|
14426
|
-
description:
|
|
14427
|
-
subtitle:
|
|
14488
|
+
var DbEndpointDefinitionSchema = z36.object({
|
|
14489
|
+
description: z36.string().nullish(),
|
|
14490
|
+
subtitle: z36.string().nullish(),
|
|
14428
14491
|
availability: AvailabilitySchema.nullish(),
|
|
14429
|
-
authed:
|
|
14430
|
-
authV2:
|
|
14431
|
-
multiAuth:
|
|
14492
|
+
authed: z36.boolean().nullish(),
|
|
14493
|
+
authV2: z36.array(AuthSchemeIdSchema).nullish(),
|
|
14494
|
+
multiAuth: z36.array(MultipleAuthTypeSchema).nullish(),
|
|
14432
14495
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
14433
|
-
environments:
|
|
14496
|
+
environments: z36.array(EnvironmentSchema).nullish(),
|
|
14434
14497
|
method: HttpMethodSchema,
|
|
14435
14498
|
id: EndpointIdSchema,
|
|
14436
|
-
originalEndpointId:
|
|
14437
|
-
urlSlug:
|
|
14438
|
-
migratedFromUrlSlugs:
|
|
14439
|
-
name:
|
|
14499
|
+
originalEndpointId: z36.string().nullish(),
|
|
14500
|
+
urlSlug: z36.string(),
|
|
14501
|
+
migratedFromUrlSlugs: z36.array(z36.string()).nullish(),
|
|
14502
|
+
name: z36.string().nullish(),
|
|
14440
14503
|
path: EndpointPathSchema,
|
|
14441
|
-
queryParameters:
|
|
14442
|
-
headers:
|
|
14443
|
-
responseHeaders:
|
|
14504
|
+
queryParameters: z36.array(QueryParameterSchema),
|
|
14505
|
+
headers: z36.array(HeaderSchema),
|
|
14506
|
+
responseHeaders: z36.array(HeaderSchema).nullish(),
|
|
14444
14507
|
request: DbHttpRequestSchema.nullish(),
|
|
14445
14508
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
14446
14509
|
response: RegisterHttpResponseSchema.nullish(),
|
|
14447
14510
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
14448
|
-
errors:
|
|
14449
|
-
errorsV2:
|
|
14450
|
-
examples:
|
|
14511
|
+
errors: z36.array(ErrorDeclarationSchema).nullish(),
|
|
14512
|
+
errorsV2: z36.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
14513
|
+
examples: z36.array(RegisterExampleEndpointCallSchema),
|
|
14451
14514
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
14452
14515
|
protocol: ProtocolSchema.nullish(),
|
|
14453
|
-
includeInApiExplorer:
|
|
14454
|
-
});
|
|
14455
|
-
var DbApiDefinitionPackageSchema =
|
|
14456
|
-
endpoints:
|
|
14457
|
-
websockets:
|
|
14458
|
-
webhooks:
|
|
14459
|
-
graphqlOperations:
|
|
14460
|
-
types:
|
|
14461
|
-
subpackages:
|
|
14516
|
+
includeInApiExplorer: z36.boolean().nullish()
|
|
14517
|
+
});
|
|
14518
|
+
var DbApiDefinitionPackageSchema = z36.object({
|
|
14519
|
+
endpoints: z36.array(DbEndpointDefinitionSchema),
|
|
14520
|
+
websockets: z36.array(RegisterWebSocketChannelSchema).nullish(),
|
|
14521
|
+
webhooks: z36.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
14522
|
+
graphqlOperations: z36.array(GraphQlOperationSchema).nullish(),
|
|
14523
|
+
types: z36.array(TypeIdSchema),
|
|
14524
|
+
subpackages: z36.array(SubpackageIdSchema),
|
|
14462
14525
|
pointsTo: SubpackageIdSchema.nullish()
|
|
14463
14526
|
});
|
|
14464
|
-
var DbApiDefinitionSubpackageSchema =
|
|
14527
|
+
var DbApiDefinitionSubpackageSchema = z36.object({
|
|
14465
14528
|
...DbApiDefinitionPackageSchema.shape,
|
|
14466
|
-
description:
|
|
14529
|
+
description: z36.string().nullish(),
|
|
14467
14530
|
parent: SubpackageIdSchema.nullish(),
|
|
14468
14531
|
subpackageId: SubpackageIdSchema,
|
|
14469
|
-
name:
|
|
14470
|
-
urlSlug:
|
|
14471
|
-
displayName:
|
|
14532
|
+
name: z36.string(),
|
|
14533
|
+
urlSlug: z36.string(),
|
|
14534
|
+
displayName: z36.string().nullish()
|
|
14472
14535
|
});
|
|
14473
|
-
var DbApiDefinitionSchema =
|
|
14536
|
+
var DbApiDefinitionSchema = z36.object({
|
|
14474
14537
|
id: ApiDefinitionIdSchema,
|
|
14475
|
-
apiName:
|
|
14476
|
-
specVersion:
|
|
14538
|
+
apiName: z36.string().nullish(),
|
|
14539
|
+
specVersion: z36.string().nullish(),
|
|
14477
14540
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
14478
|
-
types:
|
|
14479
|
-
subpackages:
|
|
14541
|
+
types: z36.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
14542
|
+
subpackages: z36.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
14480
14543
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
14481
14544
|
auth: ApiAuthSchema.nullish(),
|
|
14482
|
-
authSchemes:
|
|
14483
|
-
hasMultipleBaseUrls:
|
|
14545
|
+
authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
14546
|
+
hasMultipleBaseUrls: z36.boolean(),
|
|
14484
14547
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
14485
|
-
globalHeaders:
|
|
14548
|
+
globalHeaders: z36.array(HeaderSchema).nullish()
|
|
14486
14549
|
});
|
|
14487
|
-
var DbEndpointWithContextSchema =
|
|
14550
|
+
var DbEndpointWithContextSchema = z36.object({
|
|
14488
14551
|
endpoint: DbEndpointDefinitionSchema,
|
|
14489
|
-
authSchemes:
|
|
14490
|
-
globalHeaders:
|
|
14552
|
+
authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
14553
|
+
globalHeaders: z36.array(HeaderSchema).nullish()
|
|
14491
14554
|
});
|
|
14492
14555
|
|
|
14493
14556
|
// src/client/APIV1Read.ts
|
|
@@ -15079,15 +15142,15 @@ __export(DocsV1Db_exports, {
|
|
|
15079
15142
|
});
|
|
15080
15143
|
|
|
15081
15144
|
// src/client/docs-types/db.ts
|
|
15082
|
-
import * as
|
|
15145
|
+
import * as z38 from "zod";
|
|
15083
15146
|
|
|
15084
15147
|
// src/client/docs-types/db-docsRead.ts
|
|
15085
|
-
import * as
|
|
15086
|
-
var BackgroundSchema2 =
|
|
15087
|
-
|
|
15088
|
-
|
|
15148
|
+
import * as z37 from "zod";
|
|
15149
|
+
var BackgroundSchema2 = z37.discriminatedUnion("type", [
|
|
15150
|
+
z37.object({ type: z37.literal("solid"), ...RgbaColorSchema.shape }),
|
|
15151
|
+
z37.object({ type: z37.literal("gradient") })
|
|
15089
15152
|
]);
|
|
15090
|
-
var ThemeConfigSchema3 =
|
|
15153
|
+
var ThemeConfigSchema3 = z37.object({
|
|
15091
15154
|
logo: FileIdSchema2.optional(),
|
|
15092
15155
|
backgroundImage: FileIdSchema2.optional(),
|
|
15093
15156
|
accentPrimary: RgbaColorSchema,
|
|
@@ -15109,175 +15172,175 @@ var ThemeConfigSchema3 = z36.object({
|
|
|
15109
15172
|
accent11: RgbaColorSchema.optional(),
|
|
15110
15173
|
accent12: RgbaColorSchema.optional()
|
|
15111
15174
|
});
|
|
15112
|
-
var DarkAndLightModeConfigSchema3 =
|
|
15175
|
+
var DarkAndLightModeConfigSchema3 = z37.object({
|
|
15113
15176
|
dark: ThemeConfigSchema3,
|
|
15114
15177
|
light: ThemeConfigSchema3
|
|
15115
15178
|
});
|
|
15116
|
-
var ColorsConfigV3Schema3 =
|
|
15117
|
-
|
|
15118
|
-
|
|
15119
|
-
|
|
15179
|
+
var ColorsConfigV3Schema3 = z37.discriminatedUnion("type", [
|
|
15180
|
+
z37.object({ type: z37.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
15181
|
+
z37.object({ type: z37.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
15182
|
+
z37.object({ type: z37.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
15120
15183
|
]);
|
|
15121
15184
|
|
|
15122
15185
|
// src/client/docs-types/db.ts
|
|
15123
|
-
var DbFileInfoSchema =
|
|
15124
|
-
s3Key:
|
|
15125
|
-
});
|
|
15126
|
-
var DbImageFileInfoSchema =
|
|
15127
|
-
s3Key:
|
|
15128
|
-
width:
|
|
15129
|
-
height:
|
|
15130
|
-
blurDataUrl:
|
|
15131
|
-
alt:
|
|
15132
|
-
});
|
|
15133
|
-
var DbFileInfoV2Schema =
|
|
15134
|
-
|
|
15135
|
-
|
|
15186
|
+
var DbFileInfoSchema = z38.object({
|
|
15187
|
+
s3Key: z38.string()
|
|
15188
|
+
});
|
|
15189
|
+
var DbImageFileInfoSchema = z38.object({
|
|
15190
|
+
s3Key: z38.string(),
|
|
15191
|
+
width: z38.number(),
|
|
15192
|
+
height: z38.number(),
|
|
15193
|
+
blurDataUrl: z38.string().optional(),
|
|
15194
|
+
alt: z38.string().optional()
|
|
15195
|
+
});
|
|
15196
|
+
var DbFileInfoV2Schema = z38.discriminatedUnion("type", [
|
|
15197
|
+
z38.object({ type: z38.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
15198
|
+
z38.object({ type: z38.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
15136
15199
|
]);
|
|
15137
|
-
var NavigationTabGroupSchema3 =
|
|
15138
|
-
() =>
|
|
15139
|
-
title:
|
|
15140
|
-
icon:
|
|
15141
|
-
items:
|
|
15142
|
-
urlSlug:
|
|
15143
|
-
skipUrlSlug:
|
|
15200
|
+
var NavigationTabGroupSchema3 = z38.lazy(
|
|
15201
|
+
() => z38.object({
|
|
15202
|
+
title: z38.string(),
|
|
15203
|
+
icon: z38.string().optional(),
|
|
15204
|
+
items: z38.array(NavigationItemSchema3),
|
|
15205
|
+
urlSlug: z38.string(),
|
|
15206
|
+
skipUrlSlug: z38.boolean().optional()
|
|
15144
15207
|
})
|
|
15145
15208
|
);
|
|
15146
|
-
var NavigationTabSchema3 =
|
|
15147
|
-
var NavigationTabV2Schema2 =
|
|
15148
|
-
() =>
|
|
15149
|
-
|
|
15150
|
-
type:
|
|
15151
|
-
title:
|
|
15152
|
-
icon:
|
|
15153
|
-
items:
|
|
15154
|
-
urlSlug:
|
|
15155
|
-
skipUrlSlug:
|
|
15209
|
+
var NavigationTabSchema3 = z38.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
15210
|
+
var NavigationTabV2Schema2 = z38.lazy(
|
|
15211
|
+
() => z38.discriminatedUnion("type", [
|
|
15212
|
+
z38.object({
|
|
15213
|
+
type: z38.literal("group"),
|
|
15214
|
+
title: z38.string(),
|
|
15215
|
+
icon: z38.string().optional(),
|
|
15216
|
+
items: z38.array(NavigationItemSchema3),
|
|
15217
|
+
urlSlug: z38.string(),
|
|
15218
|
+
skipUrlSlug: z38.boolean().optional()
|
|
15156
15219
|
}),
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15220
|
+
z38.object({ type: z38.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
15221
|
+
z38.object({ type: z38.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
15222
|
+
z38.object({ type: z38.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
15160
15223
|
])
|
|
15161
15224
|
);
|
|
15162
|
-
var ApiSectionSchema3 =
|
|
15163
|
-
title:
|
|
15164
|
-
icon:
|
|
15225
|
+
var ApiSectionSchema3 = z38.object({
|
|
15226
|
+
title: z38.string(),
|
|
15227
|
+
icon: z38.string().optional(),
|
|
15165
15228
|
api: ApiDefinitionIdSchema2,
|
|
15166
|
-
urlSlug:
|
|
15167
|
-
skipUrlSlug:
|
|
15229
|
+
urlSlug: z38.string(),
|
|
15230
|
+
skipUrlSlug: z38.boolean(),
|
|
15168
15231
|
artifacts: ApiArtifactsSchema.optional(),
|
|
15169
|
-
showErrors:
|
|
15232
|
+
showErrors: z38.boolean().optional(),
|
|
15170
15233
|
changelog: ChangelogSectionSchema.optional(),
|
|
15171
|
-
hidden:
|
|
15172
|
-
fullSlug:
|
|
15234
|
+
hidden: z38.boolean().optional(),
|
|
15235
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15173
15236
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
15174
|
-
longScrolling:
|
|
15175
|
-
flattened:
|
|
15176
|
-
});
|
|
15177
|
-
var DocsSectionSchema3 =
|
|
15178
|
-
() =>
|
|
15179
|
-
title:
|
|
15180
|
-
icon:
|
|
15181
|
-
items:
|
|
15182
|
-
urlSlug:
|
|
15183
|
-
skipUrlSlug:
|
|
15184
|
-
collapsed:
|
|
15185
|
-
collapsible:
|
|
15186
|
-
collapsedByDefault:
|
|
15187
|
-
hidden:
|
|
15188
|
-
fullSlug:
|
|
15237
|
+
longScrolling: z38.boolean().optional(),
|
|
15238
|
+
flattened: z38.boolean().optional()
|
|
15239
|
+
});
|
|
15240
|
+
var DocsSectionSchema3 = z38.lazy(
|
|
15241
|
+
() => z38.object({
|
|
15242
|
+
title: z38.string(),
|
|
15243
|
+
icon: z38.string().optional(),
|
|
15244
|
+
items: z38.array(NavigationItemSchema3),
|
|
15245
|
+
urlSlug: z38.string(),
|
|
15246
|
+
skipUrlSlug: z38.boolean(),
|
|
15247
|
+
collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
|
|
15248
|
+
collapsible: z38.boolean().optional(),
|
|
15249
|
+
collapsedByDefault: z38.boolean().optional(),
|
|
15250
|
+
hidden: z38.boolean().optional(),
|
|
15251
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15189
15252
|
overviewPageId: PageIdSchema2.optional()
|
|
15190
15253
|
})
|
|
15191
15254
|
);
|
|
15192
|
-
var NavigationItemSchema3 =
|
|
15193
|
-
() =>
|
|
15194
|
-
|
|
15195
|
-
type:
|
|
15255
|
+
var NavigationItemSchema3 = z38.lazy(
|
|
15256
|
+
() => z38.discriminatedUnion("type", [
|
|
15257
|
+
z38.object({
|
|
15258
|
+
type: z38.literal("page"),
|
|
15196
15259
|
...PageMetadataSchema.shape
|
|
15197
15260
|
}),
|
|
15198
|
-
|
|
15199
|
-
type:
|
|
15261
|
+
z38.object({
|
|
15262
|
+
type: z38.literal("api"),
|
|
15200
15263
|
...ApiSectionSchema3.shape
|
|
15201
15264
|
}),
|
|
15202
|
-
|
|
15203
|
-
type:
|
|
15265
|
+
z38.object({
|
|
15266
|
+
type: z38.literal("apiV2"),
|
|
15204
15267
|
...ApiSectionV2Schema.shape
|
|
15205
15268
|
}),
|
|
15206
|
-
|
|
15207
|
-
type:
|
|
15208
|
-
title:
|
|
15209
|
-
icon:
|
|
15210
|
-
items:
|
|
15211
|
-
urlSlug:
|
|
15212
|
-
skipUrlSlug:
|
|
15213
|
-
collapsed:
|
|
15214
|
-
collapsible:
|
|
15215
|
-
collapsedByDefault:
|
|
15216
|
-
hidden:
|
|
15217
|
-
fullSlug:
|
|
15269
|
+
z38.object({
|
|
15270
|
+
type: z38.literal("section"),
|
|
15271
|
+
title: z38.string(),
|
|
15272
|
+
icon: z38.string().optional(),
|
|
15273
|
+
items: z38.array(NavigationItemSchema3),
|
|
15274
|
+
urlSlug: z38.string(),
|
|
15275
|
+
skipUrlSlug: z38.boolean(),
|
|
15276
|
+
collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
|
|
15277
|
+
collapsible: z38.boolean().optional(),
|
|
15278
|
+
collapsedByDefault: z38.boolean().optional(),
|
|
15279
|
+
hidden: z38.boolean().optional(),
|
|
15280
|
+
fullSlug: z38.array(z38.string()).optional(),
|
|
15218
15281
|
overviewPageId: PageIdSchema2.optional()
|
|
15219
15282
|
}),
|
|
15220
|
-
|
|
15221
|
-
type:
|
|
15283
|
+
z38.object({
|
|
15284
|
+
type: z38.literal("link"),
|
|
15222
15285
|
...LinkMetadataSchema.shape
|
|
15223
15286
|
}),
|
|
15224
|
-
|
|
15225
|
-
type:
|
|
15287
|
+
z38.object({
|
|
15288
|
+
type: z38.literal("changelog"),
|
|
15226
15289
|
...ChangelogSectionSchema.shape
|
|
15227
15290
|
}),
|
|
15228
|
-
|
|
15229
|
-
type:
|
|
15291
|
+
z38.object({
|
|
15292
|
+
type: z38.literal("changelogV3"),
|
|
15230
15293
|
...ChangelogSectionV3Schema.shape
|
|
15231
15294
|
})
|
|
15232
15295
|
])
|
|
15233
15296
|
);
|
|
15234
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
15235
|
-
tabs:
|
|
15236
|
-
tabsV2:
|
|
15297
|
+
var UnversionedTabbedNavigationConfigSchema3 = z38.object({
|
|
15298
|
+
tabs: z38.array(NavigationTabSchema3).optional(),
|
|
15299
|
+
tabsV2: z38.array(NavigationTabV2Schema2).optional(),
|
|
15237
15300
|
landingPage: PageMetadataSchema.optional()
|
|
15238
15301
|
});
|
|
15239
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
15240
|
-
items:
|
|
15302
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z38.object({
|
|
15303
|
+
items: z38.array(NavigationItemSchema3),
|
|
15241
15304
|
landingPage: PageMetadataSchema.optional()
|
|
15242
15305
|
});
|
|
15243
|
-
var UnversionedNavigationConfigSchema3 =
|
|
15306
|
+
var UnversionedNavigationConfigSchema3 = z38.union([
|
|
15244
15307
|
UnversionedTabbedNavigationConfigSchema3,
|
|
15245
15308
|
UnversionedUntabbedNavigationConfigSchema3
|
|
15246
15309
|
]);
|
|
15247
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
15310
|
+
var VersionedNavigationConfigDataSchema3 = z38.object({
|
|
15248
15311
|
version: VersionIdSchema2,
|
|
15249
|
-
urlSlug:
|
|
15312
|
+
urlSlug: z38.string().optional(),
|
|
15250
15313
|
availability: AvailabilitySchema2.optional(),
|
|
15251
15314
|
config: UnversionedNavigationConfigSchema3
|
|
15252
15315
|
});
|
|
15253
|
-
var VersionedNavigationConfigSchema3 =
|
|
15254
|
-
versions:
|
|
15316
|
+
var VersionedNavigationConfigSchema3 = z38.object({
|
|
15317
|
+
versions: z38.array(VersionedNavigationConfigDataSchema3)
|
|
15255
15318
|
});
|
|
15256
|
-
var NavigationConfigSchema3 =
|
|
15257
|
-
var DocsDbConfigSchema =
|
|
15258
|
-
title:
|
|
15319
|
+
var NavigationConfigSchema3 = z38.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
15320
|
+
var DocsDbConfigSchema = z38.object({
|
|
15321
|
+
title: z38.string().optional(),
|
|
15259
15322
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
15260
|
-
languages:
|
|
15323
|
+
languages: z38.array(LanguageSchema).optional(),
|
|
15261
15324
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
15262
15325
|
announcement: AnnouncementConfigSchema.optional(),
|
|
15263
15326
|
navigation: NavigationConfigSchema3.optional(),
|
|
15264
|
-
root:
|
|
15265
|
-
navbarLinks:
|
|
15266
|
-
footerLinks:
|
|
15267
|
-
hideNavLinks:
|
|
15327
|
+
root: z38.custom().optional(),
|
|
15328
|
+
navbarLinks: z38.array(NavbarLinkSchema).optional(),
|
|
15329
|
+
footerLinks: z38.array(FooterLinkSchema).optional(),
|
|
15330
|
+
hideNavLinks: z38.boolean().optional(),
|
|
15268
15331
|
logoHeight: HeightSchema.optional(),
|
|
15269
15332
|
logoHref: UrlSchema2.optional(),
|
|
15270
|
-
logoRightText:
|
|
15333
|
+
logoRightText: z38.string().optional(),
|
|
15271
15334
|
favicon: FileIdSchema2.optional(),
|
|
15272
15335
|
agents: AgentsConfigSchema.optional(),
|
|
15273
15336
|
metadata: MetadataConfigSchema.optional(),
|
|
15274
|
-
redirects:
|
|
15275
|
-
remotePaths:
|
|
15337
|
+
redirects: z38.array(RedirectConfigSchema).optional(),
|
|
15338
|
+
remotePaths: z38.array(RemotePathConfigSchema).optional(),
|
|
15276
15339
|
backgroundImage: FileIdSchema2.optional(),
|
|
15277
15340
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
15278
15341
|
layout: DocsLayoutConfigSchema.optional(),
|
|
15279
15342
|
theme: DocsThemeConfigSchema.optional(),
|
|
15280
|
-
globalTheme:
|
|
15343
|
+
globalTheme: z38.string().optional(),
|
|
15281
15344
|
settings: DocsSettingsConfigSchema.optional(),
|
|
15282
15345
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
15283
15346
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -15288,40 +15351,40 @@ var DocsDbConfigSchema = z37.object({
|
|
|
15288
15351
|
pageActions: PageActionsConfigSchema.optional(),
|
|
15289
15352
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
15290
15353
|
iframe: IframeConfigSchema.optional(),
|
|
15291
|
-
header:
|
|
15292
|
-
footer:
|
|
15354
|
+
header: z38.string().optional(),
|
|
15355
|
+
footer: z38.string().optional(),
|
|
15293
15356
|
logo: FileIdSchema2.optional(),
|
|
15294
15357
|
logoV2: ThemedFileIdSchema.optional(),
|
|
15295
15358
|
colors: ColorsConfigSchema.optional(),
|
|
15296
15359
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
15297
15360
|
typography: DocsTypographyConfigSchema.optional()
|
|
15298
15361
|
});
|
|
15299
|
-
var DocsDefinitionDbV1Schema =
|
|
15300
|
-
pages:
|
|
15301
|
-
referencedApis:
|
|
15302
|
-
files:
|
|
15362
|
+
var DocsDefinitionDbV1Schema = z38.object({
|
|
15363
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15364
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15365
|
+
files: z38.record(FileIdSchema2, DbFileInfoSchema),
|
|
15303
15366
|
config: DocsDbConfigSchema,
|
|
15304
15367
|
colors: ColorsConfigSchema.optional()
|
|
15305
15368
|
});
|
|
15306
|
-
var DocsDefinitionDbV2Schema =
|
|
15307
|
-
pages:
|
|
15308
|
-
referencedApis:
|
|
15309
|
-
files:
|
|
15369
|
+
var DocsDefinitionDbV2Schema = z38.object({
|
|
15370
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15371
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15372
|
+
files: z38.record(FileIdSchema2, DbFileInfoSchema),
|
|
15310
15373
|
config: DocsDbConfigSchema,
|
|
15311
15374
|
colors: ColorsConfigSchema.optional(),
|
|
15312
15375
|
typography: DocsTypographyConfigSchema.optional()
|
|
15313
15376
|
});
|
|
15314
|
-
var DocsDefinitionDbV3Schema =
|
|
15315
|
-
pages:
|
|
15316
|
-
referencedApis:
|
|
15317
|
-
files:
|
|
15377
|
+
var DocsDefinitionDbV3Schema = z38.object({
|
|
15378
|
+
pages: z38.record(PageIdSchema2, PageContentSchema),
|
|
15379
|
+
referencedApis: z38.array(ApiDefinitionIdSchema2),
|
|
15380
|
+
files: z38.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
15318
15381
|
config: DocsDbConfigSchema,
|
|
15319
|
-
jsFiles:
|
|
15382
|
+
jsFiles: z38.record(z38.string(), z38.string()).optional()
|
|
15320
15383
|
});
|
|
15321
|
-
var DocsDefinitionDbSchema =
|
|
15322
|
-
|
|
15323
|
-
|
|
15324
|
-
|
|
15384
|
+
var DocsDefinitionDbSchema = z38.discriminatedUnion("type", [
|
|
15385
|
+
z38.object({ type: z38.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
15386
|
+
z38.object({ type: z38.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
15387
|
+
z38.object({ type: z38.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
15325
15388
|
]);
|
|
15326
15389
|
|
|
15327
15390
|
// src/client/DocsV1Read.ts
|
|
@@ -16112,102 +16175,102 @@ __export(DocsLatest_exports, {
|
|
|
16112
16175
|
});
|
|
16113
16176
|
|
|
16114
16177
|
// src/client/docs-types/latest.ts
|
|
16115
|
-
import * as
|
|
16116
|
-
var StringOrStringListSchema =
|
|
16117
|
-
var TwitterCardSettingSchema2 =
|
|
16118
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
16119
|
-
"@type":
|
|
16120
|
-
position:
|
|
16121
|
-
name:
|
|
16122
|
-
item:
|
|
16123
|
-
});
|
|
16124
|
-
var JsonLdBreadcrumbListSchema =
|
|
16125
|
-
"@context":
|
|
16126
|
-
"@type":
|
|
16127
|
-
itemListElement:
|
|
16128
|
-
});
|
|
16129
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
16178
|
+
import * as z39 from "zod";
|
|
16179
|
+
var StringOrStringListSchema = z39.union([z39.string(), z39.array(z39.string())]);
|
|
16180
|
+
var TwitterCardSettingSchema2 = z39.enum(["summary", "summary_large_image", "app", "player"]);
|
|
16181
|
+
var JsonLdBreadcrumbListElementSchema = z39.object({
|
|
16182
|
+
"@type": z39.literal("ListItem"),
|
|
16183
|
+
position: z39.number(),
|
|
16184
|
+
name: z39.string(),
|
|
16185
|
+
item: z39.string().optional()
|
|
16186
|
+
});
|
|
16187
|
+
var JsonLdBreadcrumbListSchema = z39.object({
|
|
16188
|
+
"@context": z39.literal("https://schema.org"),
|
|
16189
|
+
"@type": z39.literal("BreadcrumbList"),
|
|
16190
|
+
itemListElement: z39.array(JsonLdBreadcrumbListElementSchema)
|
|
16191
|
+
});
|
|
16192
|
+
var WithJsonLdBreadcrumbsSchema = z39.object({
|
|
16130
16193
|
/** Set to `false` to suppress the built-in JSON-LD for the page. */
|
|
16131
|
-
jsonld:
|
|
16194
|
+
jsonld: z39.boolean().optional(),
|
|
16132
16195
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
16133
16196
|
});
|
|
16134
|
-
var WithMetadataConfigSchema =
|
|
16135
|
-
"og:site_name":
|
|
16136
|
-
"og:title":
|
|
16137
|
-
"og:description":
|
|
16138
|
-
"og:url":
|
|
16197
|
+
var WithMetadataConfigSchema = z39.object({
|
|
16198
|
+
"og:site_name": z39.string().optional(),
|
|
16199
|
+
"og:title": z39.string().optional(),
|
|
16200
|
+
"og:description": z39.string().optional(),
|
|
16201
|
+
"og:url": z39.string().optional(),
|
|
16139
16202
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
16140
|
-
"og:image:width":
|
|
16141
|
-
"og:image:height":
|
|
16142
|
-
"og:locale":
|
|
16203
|
+
"og:image:width": z39.number().optional(),
|
|
16204
|
+
"og:image:height": z39.number().optional(),
|
|
16205
|
+
"og:locale": z39.string().optional(),
|
|
16143
16206
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
16144
|
-
"twitter:title":
|
|
16145
|
-
"twitter:description":
|
|
16146
|
-
"twitter:handle":
|
|
16207
|
+
"twitter:title": z39.string().optional(),
|
|
16208
|
+
"twitter:description": z39.string().optional(),
|
|
16209
|
+
"twitter:handle": z39.string().optional(),
|
|
16147
16210
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
16148
|
-
"twitter:site":
|
|
16149
|
-
"twitter:url":
|
|
16211
|
+
"twitter:site": z39.string().optional(),
|
|
16212
|
+
"twitter:url": z39.string().optional(),
|
|
16150
16213
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
16151
16214
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
16152
|
-
"og:dynamic":
|
|
16215
|
+
"og:dynamic": z39.boolean().optional(),
|
|
16153
16216
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
16154
|
-
"og:dynamic:text-color":
|
|
16155
|
-
"og:dynamic:background-color":
|
|
16156
|
-
"og:dynamic:show-logo":
|
|
16157
|
-
"og:dynamic:show-section":
|
|
16158
|
-
"og:dynamic:show-description":
|
|
16159
|
-
"og:dynamic:show-url":
|
|
16160
|
-
"og:dynamic:show-gradient":
|
|
16161
|
-
noindex:
|
|
16162
|
-
nofollow:
|
|
16217
|
+
"og:dynamic:text-color": z39.string().optional(),
|
|
16218
|
+
"og:dynamic:background-color": z39.string().optional(),
|
|
16219
|
+
"og:dynamic:show-logo": z39.boolean().optional(),
|
|
16220
|
+
"og:dynamic:show-section": z39.boolean().optional(),
|
|
16221
|
+
"og:dynamic:show-description": z39.boolean().optional(),
|
|
16222
|
+
"og:dynamic:show-url": z39.boolean().optional(),
|
|
16223
|
+
"og:dynamic:show-gradient": z39.boolean().optional(),
|
|
16224
|
+
noindex: z39.boolean().optional(),
|
|
16225
|
+
nofollow: z39.boolean().optional(),
|
|
16163
16226
|
keywords: StringOrStringListSchema.optional()
|
|
16164
16227
|
});
|
|
16165
|
-
var LayoutSchema =
|
|
16166
|
-
var LogoConfigurationSchema =
|
|
16228
|
+
var LayoutSchema = z39.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
16229
|
+
var LogoConfigurationSchema = z39.object({
|
|
16167
16230
|
light: FileIdOrUrlSchema.optional(),
|
|
16168
16231
|
dark: FileIdOrUrlSchema.optional()
|
|
16169
16232
|
});
|
|
16170
|
-
var LogoSchema2 =
|
|
16171
|
-
var BreadcrumbItemSchema =
|
|
16172
|
-
title:
|
|
16173
|
-
pointsTo:
|
|
16233
|
+
var LogoSchema2 = z39.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
16234
|
+
var BreadcrumbItemSchema = z39.object({
|
|
16235
|
+
title: z39.string(),
|
|
16236
|
+
pointsTo: z39.string().optional()
|
|
16174
16237
|
});
|
|
16175
16238
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
16176
|
-
|
|
16239
|
+
z39.object({
|
|
16177
16240
|
layout: LayoutSchema.optional(),
|
|
16178
|
-
slug:
|
|
16179
|
-
title:
|
|
16180
|
-
headline:
|
|
16181
|
-
description:
|
|
16182
|
-
subtitle:
|
|
16241
|
+
slug: z39.string().optional(),
|
|
16242
|
+
title: z39.string().optional(),
|
|
16243
|
+
headline: z39.string().optional(),
|
|
16244
|
+
description: z39.string().optional(),
|
|
16245
|
+
subtitle: z39.string().optional(),
|
|
16183
16246
|
logo: LogoSchema2.optional(),
|
|
16184
16247
|
image: FileIdOrUrlSchema.optional(),
|
|
16185
|
-
"edit-this-page-url":
|
|
16186
|
-
"hide-toc":
|
|
16187
|
-
"force-toc":
|
|
16188
|
-
"hide-nav-links":
|
|
16189
|
-
"max-toc-depth":
|
|
16190
|
-
"hide-feedback":
|
|
16191
|
-
"hide-page-actions":
|
|
16192
|
-
"no-image-zoom":
|
|
16193
|
-
breadcrumb:
|
|
16194
|
-
excerpt:
|
|
16195
|
-
"canonical-url":
|
|
16248
|
+
"edit-this-page-url": z39.string().optional(),
|
|
16249
|
+
"hide-toc": z39.boolean().optional(),
|
|
16250
|
+
"force-toc": z39.boolean().optional(),
|
|
16251
|
+
"hide-nav-links": z39.boolean().optional(),
|
|
16252
|
+
"max-toc-depth": z39.number().optional(),
|
|
16253
|
+
"hide-feedback": z39.boolean().optional(),
|
|
16254
|
+
"hide-page-actions": z39.boolean().optional(),
|
|
16255
|
+
"no-image-zoom": z39.boolean().optional(),
|
|
16256
|
+
breadcrumb: z39.array(BreadcrumbItemSchema).optional(),
|
|
16257
|
+
excerpt: z39.string().optional(),
|
|
16258
|
+
"canonical-url": z39.string().optional(),
|
|
16196
16259
|
tags: StringOrStringListSchema.optional(),
|
|
16197
|
-
"last-updated":
|
|
16260
|
+
"last-updated": z39.string().optional(),
|
|
16198
16261
|
/**
|
|
16199
16262
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
16200
16263
|
* records, so it can be faceted and filtered on by full path
|
|
16201
16264
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
16202
16265
|
*/
|
|
16203
|
-
"search-metadata":
|
|
16266
|
+
"search-metadata": z39.record(z39.unknown()).optional()
|
|
16204
16267
|
})
|
|
16205
16268
|
);
|
|
16206
|
-
var ResolvedMdxSchema =
|
|
16207
|
-
code:
|
|
16269
|
+
var ResolvedMdxSchema = z39.object({
|
|
16270
|
+
code: z39.string(),
|
|
16208
16271
|
frontmatter: FrontmatterSchema,
|
|
16209
|
-
scope:
|
|
16210
|
-
jsxRefs:
|
|
16272
|
+
scope: z39.record(z39.string(), z39.unknown()),
|
|
16273
|
+
jsxRefs: z39.array(z39.string()).optional()
|
|
16211
16274
|
});
|
|
16212
16275
|
|
|
16213
16276
|
// src/client/DocsV1Commons.ts
|
|
@@ -16654,9 +16717,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
16654
16717
|
}
|
|
16655
16718
|
}
|
|
16656
16719
|
}
|
|
16657
|
-
function generateExampleObject(
|
|
16720
|
+
function generateExampleObject(object38, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
16658
16721
|
const example = {};
|
|
16659
|
-
for (const property of getAllObjectProperties(
|
|
16722
|
+
for (const property of getAllObjectProperties(object38, resolveTypeById)) {
|
|
16660
16723
|
const value = generateExampleFromTypeReference(
|
|
16661
16724
|
property.valueType,
|
|
16662
16725
|
resolveTypeById,
|
|
@@ -16843,10 +16906,10 @@ function generateExamplePrimitive(reference) {
|
|
|
16843
16906
|
return reference.name;
|
|
16844
16907
|
}
|
|
16845
16908
|
}
|
|
16846
|
-
function getAllObjectProperties(
|
|
16909
|
+
function getAllObjectProperties(object38, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
|
|
16847
16910
|
return [
|
|
16848
|
-
...
|
|
16849
|
-
...
|
|
16911
|
+
...object38.properties,
|
|
16912
|
+
...object38.extends.flatMap((typeId) => {
|
|
16850
16913
|
if (extended.has(typeId)) {
|
|
16851
16914
|
return [];
|
|
16852
16915
|
}
|