@fern-api/fdr-sdk 1.2.115-60bc9699d1 → 1.2.116-4e00acf721
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 +262 -238
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +262 -238
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +528 -504
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +528 -504
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client/mcp-hosting/schemas.js +106 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.js.map +1 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.mjs +68 -0
- package/dist/js/orpc-client/mcp-hosting/schemas.mjs.map +1 -0
- package/dist/js/orpc-client.js +519 -447
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +512 -447
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts +9 -322
- 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/kv.d.ts +39 -0
- package/dist/types/orpc-client/mcp-hosting/kv.d.ts.map +1 -0
- package/dist/types/orpc-client/mcp-hosting/schemas.d.ts +424 -0
- package/dist/types/orpc-client/mcp-hosting/schemas.d.ts.map +1 -0
- package/package.json +7 -1
package/dist/js/index.js
CHANGED
|
@@ -507,8 +507,8 @@ function parseMatch(match) {
|
|
|
507
507
|
return match;
|
|
508
508
|
}
|
|
509
509
|
var src_default = (str, options = {}) => {
|
|
510
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset,
|
|
511
|
-
const isLastWord = m.length + offset >=
|
|
510
|
+
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string36) => {
|
|
511
|
+
const isLastWord = m.length + offset >= string36.length;
|
|
512
512
|
const parsedMatch = parseMatch(m);
|
|
513
513
|
if (!parsedMatch) {
|
|
514
514
|
return m;
|
|
@@ -2600,16 +2600,16 @@ function selectDefaultValue(shape, defaults) {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
2602
|
var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
|
|
2603
|
-
function unwrapObjectType(
|
|
2604
|
-
const cached = UnwrapObjectTypeCache.get(
|
|
2603
|
+
function unwrapObjectType(object35, types, parentVisitedTypeIds) {
|
|
2604
|
+
const cached = UnwrapObjectTypeCache.get(object35);
|
|
2605
2605
|
if (cached != null) {
|
|
2606
2606
|
return cached;
|
|
2607
2607
|
}
|
|
2608
|
-
const directProperties =
|
|
2609
|
-
const extraProperties =
|
|
2608
|
+
const directProperties = object35.properties;
|
|
2609
|
+
const extraProperties = object35.extraProperties;
|
|
2610
2610
|
const descriptions = [];
|
|
2611
2611
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2612
|
-
const extendedProperties =
|
|
2612
|
+
const extendedProperties = object35.extends.flatMap((typeId) => {
|
|
2613
2613
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
2614
2614
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
2615
2615
|
return [];
|
|
@@ -2656,7 +2656,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2656
2656
|
};
|
|
2657
2657
|
});
|
|
2658
2658
|
});
|
|
2659
|
-
const propertyKeys = new Set(
|
|
2659
|
+
const propertyKeys = new Set(object35.properties.map((property) => property.key));
|
|
2660
2660
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
2661
2661
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
2662
2662
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -2679,7 +2679,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2679
2679
|
extraProperties,
|
|
2680
2680
|
visitedTypeIds
|
|
2681
2681
|
};
|
|
2682
|
-
UnwrapObjectTypeCache.set(
|
|
2682
|
+
UnwrapObjectTypeCache.set(object35, toRet2);
|
|
2683
2683
|
return toRet2;
|
|
2684
2684
|
}
|
|
2685
2685
|
const properties = (0, import_array.sortBy)(
|
|
@@ -2691,7 +2691,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2691
2691
|
]
|
|
2692
2692
|
);
|
|
2693
2693
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2694
|
-
UnwrapObjectTypeCache.set(
|
|
2694
|
+
UnwrapObjectTypeCache.set(object35, toRet);
|
|
2695
2695
|
return toRet;
|
|
2696
2696
|
}
|
|
2697
2697
|
function unwrapDiscriminatedUnionVariant(union12, variant, types) {
|
|
@@ -4389,8 +4389,8 @@ function sortKeysByShape(obj, shape, types) {
|
|
|
4389
4389
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
|
|
4390
4390
|
map: ({ valueShape }) => isPlainObject_default(obj) ? (0, import_object.mapValues)(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
|
|
4391
4391
|
unknown: () => obj,
|
|
4392
|
-
object: (
|
|
4393
|
-
const objectProperties = unwrapObjectType(
|
|
4392
|
+
object: (object35) => {
|
|
4393
|
+
const objectProperties = unwrapObjectType(object35, types).properties;
|
|
4394
4394
|
return isPlainObject_default(obj) ? (0, import_object.mapValues)(
|
|
4395
4395
|
sortKeysBy(
|
|
4396
4396
|
obj,
|
|
@@ -11145,9 +11145,10 @@ var import_fetch17 = require("@orpc/openapi-client/fetch");
|
|
|
11145
11145
|
|
|
11146
11146
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
11147
11147
|
var import_contract31 = require("@orpc/contract");
|
|
11148
|
+
var z26 = __toESM(require("zod"), 1);
|
|
11149
|
+
|
|
11150
|
+
// src/orpc-client/mcp-hosting/schemas.ts
|
|
11148
11151
|
var z25 = __toESM(require("zod"), 1);
|
|
11149
|
-
var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
11150
|
-
var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
11151
11152
|
var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
11152
11153
|
z25.object({ type: z25.literal("bearer") }),
|
|
11153
11154
|
z25.object({
|
|
@@ -11157,6 +11158,9 @@ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
|
11157
11158
|
}),
|
|
11158
11159
|
z25.object({ type: z25.literal("basic") })
|
|
11159
11160
|
]);
|
|
11161
|
+
var HttpUrlSchema = z25.string().url().refine((value) => /^https?:\/\//i.test(value), {
|
|
11162
|
+
message: "must be an http(s) URL"
|
|
11163
|
+
});
|
|
11160
11164
|
var McpMetadataSchema = z25.object({
|
|
11161
11165
|
name: z25.string().min(1),
|
|
11162
11166
|
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
@@ -11180,47 +11184,67 @@ var McpMetadataSchema = z25.object({
|
|
|
11180
11184
|
required: z25.boolean()
|
|
11181
11185
|
}).strict()
|
|
11182
11186
|
),
|
|
11183
|
-
baseUrl:
|
|
11187
|
+
baseUrl: HttpUrlSchema,
|
|
11184
11188
|
followRedirects: z25.boolean(),
|
|
11185
11189
|
maxRedirects: z25.number().int().nonnegative(),
|
|
11186
11190
|
allowedRedirectHosts: z25.array(z25.string())
|
|
11187
11191
|
}).passthrough();
|
|
11188
|
-
var
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
+
var DeploymentConfigSchema = z25.object({
|
|
11193
|
+
serverName: z25.string().min(1),
|
|
11194
|
+
baseUrl: HttpUrlSchema,
|
|
11195
|
+
/**
|
|
11196
|
+
* Runtime rewrite of the upstream base URL. Part of the edge contract
|
|
11197
|
+
* (the outbound worker honors it) but not yet written by FDR.
|
|
11198
|
+
*/
|
|
11199
|
+
baseUrlOverride: HttpUrlSchema.optional(),
|
|
11200
|
+
followRedirects: z25.boolean(),
|
|
11201
|
+
maxRedirects: z25.number().int().nonnegative(),
|
|
11202
|
+
allowedRedirectHosts: z25.array(z25.string()),
|
|
11203
|
+
authSchemes: z25.array(McpAuthSchemeSchema),
|
|
11204
|
+
authRequired: z25.boolean(),
|
|
11205
|
+
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
11206
|
+
toolsetMetadata: McpMetadataSchema.shape.toolsetMetadata
|
|
11207
|
+
});
|
|
11208
|
+
|
|
11209
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
11210
|
+
var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
11211
|
+
var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
11212
|
+
var McpModuleSchema = z26.object({
|
|
11213
|
+
name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
11214
|
+
hash: z26.string().regex(/^[0-9a-f]{64}$/),
|
|
11215
|
+
contentType: z26.string().min(1)
|
|
11192
11216
|
}).strict();
|
|
11193
|
-
var McpGitInputSchema =
|
|
11194
|
-
repoUrl:
|
|
11195
|
-
branch:
|
|
11196
|
-
commitSha:
|
|
11217
|
+
var McpGitInputSchema = z26.object({
|
|
11218
|
+
repoUrl: z26.string(),
|
|
11219
|
+
branch: z26.string(),
|
|
11220
|
+
commitSha: z26.string().optional()
|
|
11197
11221
|
}).strict();
|
|
11198
|
-
var DeployMcpServerInputSchema =
|
|
11222
|
+
var DeployMcpServerInputSchema = z26.object({
|
|
11199
11223
|
orgId: McpPathSegmentSchema,
|
|
11200
11224
|
slug: McpPathSegmentSchema,
|
|
11201
|
-
mainModule:
|
|
11202
|
-
compatibilityDate:
|
|
11203
|
-
compatibilityFlags:
|
|
11225
|
+
mainModule: z26.string().min(1),
|
|
11226
|
+
compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
11227
|
+
compatibilityFlags: z26.array(z26.string()),
|
|
11204
11228
|
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
11205
11229
|
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
11206
11230
|
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
11207
|
-
modules:
|
|
11231
|
+
modules: z26.array(McpModuleSchema).min(1).max(20),
|
|
11208
11232
|
metadata: McpMetadataSchema,
|
|
11209
11233
|
// Everything else in this schema is bounded; keep the opaque config
|
|
11210
11234
|
// blob bounded too so it cannot balloon the JSONB row.
|
|
11211
|
-
config:
|
|
11235
|
+
config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
11212
11236
|
message: "config must be at most 64KB serialized"
|
|
11213
11237
|
}),
|
|
11214
|
-
generatorName:
|
|
11215
|
-
generatorVersion:
|
|
11216
|
-
cliVersion:
|
|
11238
|
+
generatorName: z26.string().min(1),
|
|
11239
|
+
generatorVersion: z26.string().min(1),
|
|
11240
|
+
cliVersion: z26.string().optional(),
|
|
11217
11241
|
git: McpGitInputSchema.optional()
|
|
11218
11242
|
}).strict().superRefine((input, ctx) => {
|
|
11219
11243
|
const names = /* @__PURE__ */ new Set();
|
|
11220
11244
|
for (const module2 of input.modules) {
|
|
11221
11245
|
if (names.has(module2.name)) {
|
|
11222
11246
|
ctx.addIssue({
|
|
11223
|
-
code:
|
|
11247
|
+
code: z26.ZodIssueCode.custom,
|
|
11224
11248
|
path: ["modules"],
|
|
11225
11249
|
message: `duplicate module name: ${module2.name}`
|
|
11226
11250
|
});
|
|
@@ -11229,45 +11253,45 @@ var DeployMcpServerInputSchema = z25.object({
|
|
|
11229
11253
|
}
|
|
11230
11254
|
if (!names.has(input.mainModule)) {
|
|
11231
11255
|
ctx.addIssue({
|
|
11232
|
-
code:
|
|
11256
|
+
code: z26.ZodIssueCode.custom,
|
|
11233
11257
|
path: ["mainModule"],
|
|
11234
11258
|
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
11235
11259
|
});
|
|
11236
11260
|
}
|
|
11237
11261
|
});
|
|
11238
|
-
var GetMcpServerInputSchema =
|
|
11262
|
+
var GetMcpServerInputSchema = z26.object({
|
|
11239
11263
|
orgId: McpPathSegmentSchema,
|
|
11240
11264
|
slug: McpPathSegmentSchema
|
|
11241
11265
|
});
|
|
11242
|
-
var ListMcpServersInputSchema =
|
|
11243
|
-
orgId:
|
|
11266
|
+
var ListMcpServersInputSchema = z26.object({
|
|
11267
|
+
orgId: z26.string()
|
|
11244
11268
|
});
|
|
11245
11269
|
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
11246
11270
|
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
11247
|
-
var McpDeploymentSummarySchema =
|
|
11248
|
-
id:
|
|
11271
|
+
var McpDeploymentSummarySchema = z26.object({
|
|
11272
|
+
id: z26.string(),
|
|
11249
11273
|
status: McpDeploymentStatusSchema,
|
|
11250
11274
|
/** True when this deployment is the one the server currently serves. */
|
|
11251
|
-
isActive:
|
|
11252
|
-
generatorVersion:
|
|
11253
|
-
createdAt:
|
|
11254
|
-
createdBy:
|
|
11255
|
-
error:
|
|
11256
|
-
});
|
|
11257
|
-
var McpServerSchema =
|
|
11258
|
-
id:
|
|
11259
|
-
orgId:
|
|
11260
|
-
slug:
|
|
11275
|
+
isActive: z26.boolean(),
|
|
11276
|
+
generatorVersion: z26.string(),
|
|
11277
|
+
createdAt: z26.string(),
|
|
11278
|
+
createdBy: z26.string().nullish(),
|
|
11279
|
+
error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
|
|
11280
|
+
});
|
|
11281
|
+
var McpServerSchema = z26.object({
|
|
11282
|
+
id: z26.string(),
|
|
11283
|
+
orgId: z26.string(),
|
|
11284
|
+
slug: z26.string(),
|
|
11261
11285
|
/** The server is serving iff this is set; it names the serving deployment. */
|
|
11262
|
-
activeDeploymentId:
|
|
11286
|
+
activeDeploymentId: z26.string().nullish(),
|
|
11263
11287
|
/** Most recent publication attempt — how the last deploy went. */
|
|
11264
11288
|
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
11265
|
-
url:
|
|
11266
|
-
createdAt:
|
|
11267
|
-
updatedAt:
|
|
11289
|
+
url: z26.string().url(),
|
|
11290
|
+
createdAt: z26.string(),
|
|
11291
|
+
updatedAt: z26.string()
|
|
11268
11292
|
});
|
|
11269
|
-
var ListMcpServersResponseSchema =
|
|
11270
|
-
var ListMcpDeploymentsResponseSchema =
|
|
11293
|
+
var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
|
|
11294
|
+
var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
|
|
11271
11295
|
var mcpHostingContract = {
|
|
11272
11296
|
deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
11273
11297
|
getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
@@ -11295,84 +11319,84 @@ var import_fetch18 = require("@orpc/openapi-client/fetch");
|
|
|
11295
11319
|
|
|
11296
11320
|
// src/orpc-client/pdf-export/contract.ts
|
|
11297
11321
|
var import_contract33 = require("@orpc/contract");
|
|
11298
|
-
var
|
|
11299
|
-
var PdfExportScopeSchema =
|
|
11300
|
-
pageSlugs:
|
|
11301
|
-
});
|
|
11302
|
-
var PdfExportOptionsV1Schema =
|
|
11303
|
-
coverTitle:
|
|
11304
|
-
coverSubtitle:
|
|
11305
|
-
hideCoverFooter:
|
|
11306
|
-
headerLeftTemplate:
|
|
11307
|
-
headerRightTemplate:
|
|
11308
|
-
footerLeftTemplate:
|
|
11309
|
-
footerRightTemplate:
|
|
11322
|
+
var z27 = __toESM(require("zod"), 1);
|
|
11323
|
+
var PdfExportScopeSchema = z27.object({
|
|
11324
|
+
pageSlugs: z27.array(z27.string())
|
|
11325
|
+
});
|
|
11326
|
+
var PdfExportOptionsV1Schema = z27.object({
|
|
11327
|
+
coverTitle: z27.string().nullish(),
|
|
11328
|
+
coverSubtitle: z27.string().nullish(),
|
|
11329
|
+
hideCoverFooter: z27.boolean().nullish(),
|
|
11330
|
+
headerLeftTemplate: z27.string().nullish(),
|
|
11331
|
+
headerRightTemplate: z27.string().nullish(),
|
|
11332
|
+
footerLeftTemplate: z27.string().nullish(),
|
|
11333
|
+
footerRightTemplate: z27.string().nullish(),
|
|
11310
11334
|
scope: PdfExportScopeSchema.nullish(),
|
|
11311
|
-
hideCover:
|
|
11312
|
-
hideToc:
|
|
11335
|
+
hideCover: z27.boolean().nullish(),
|
|
11336
|
+
hideToc: z27.boolean().nullish()
|
|
11313
11337
|
});
|
|
11314
|
-
var PdfExportOptionsSchema =
|
|
11315
|
-
|
|
11338
|
+
var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
|
|
11339
|
+
z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
11316
11340
|
]);
|
|
11317
|
-
var PdfExportTaskStatusSchema =
|
|
11318
|
-
var PdfExportTaskSchema =
|
|
11319
|
-
id:
|
|
11320
|
-
orgId:
|
|
11321
|
-
docsUrl:
|
|
11322
|
-
productId:
|
|
11323
|
-
versionId:
|
|
11324
|
-
requesterName:
|
|
11325
|
-
notifyEmails:
|
|
11341
|
+
var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
11342
|
+
var PdfExportTaskSchema = z27.object({
|
|
11343
|
+
id: z27.string(),
|
|
11344
|
+
orgId: z27.string(),
|
|
11345
|
+
docsUrl: z27.string(),
|
|
11346
|
+
productId: z27.string().nullish(),
|
|
11347
|
+
versionId: z27.string().nullish(),
|
|
11348
|
+
requesterName: z27.string().nullish(),
|
|
11349
|
+
notifyEmails: z27.array(z27.string()).nullish(),
|
|
11326
11350
|
status: PdfExportTaskStatusSchema,
|
|
11327
11351
|
options: PdfExportOptionsSchema.nullish(),
|
|
11328
|
-
createdAt:
|
|
11329
|
-
startedAt:
|
|
11330
|
-
completedAt:
|
|
11331
|
-
fileName:
|
|
11332
|
-
sizeBytes:
|
|
11333
|
-
errorMessage:
|
|
11334
|
-
});
|
|
11335
|
-
var ListPdfExportTasksResponseSchema =
|
|
11336
|
-
tasks:
|
|
11337
|
-
});
|
|
11338
|
-
var PdfExportDownloadResponseSchema =
|
|
11339
|
-
downloadUrl:
|
|
11340
|
-
fileName:
|
|
11341
|
-
sizeBytes:
|
|
11342
|
-
});
|
|
11343
|
-
var CreatePdfExportTaskInputSchema =
|
|
11344
|
-
orgId:
|
|
11345
|
-
docsUrl:
|
|
11346
|
-
productId:
|
|
11347
|
-
versionId:
|
|
11348
|
-
requesterName:
|
|
11352
|
+
createdAt: z27.string(),
|
|
11353
|
+
startedAt: z27.string().nullish(),
|
|
11354
|
+
completedAt: z27.string().nullish(),
|
|
11355
|
+
fileName: z27.string().nullish(),
|
|
11356
|
+
sizeBytes: z27.number().nullish(),
|
|
11357
|
+
errorMessage: z27.string().nullish()
|
|
11358
|
+
});
|
|
11359
|
+
var ListPdfExportTasksResponseSchema = z27.object({
|
|
11360
|
+
tasks: z27.array(PdfExportTaskSchema)
|
|
11361
|
+
});
|
|
11362
|
+
var PdfExportDownloadResponseSchema = z27.object({
|
|
11363
|
+
downloadUrl: z27.string(),
|
|
11364
|
+
fileName: z27.string(),
|
|
11365
|
+
sizeBytes: z27.number()
|
|
11366
|
+
});
|
|
11367
|
+
var CreatePdfExportTaskInputSchema = z27.object({
|
|
11368
|
+
orgId: z27.string(),
|
|
11369
|
+
docsUrl: z27.string(),
|
|
11370
|
+
productId: z27.string().nullish(),
|
|
11371
|
+
versionId: z27.string().nullish(),
|
|
11372
|
+
requesterName: z27.string().nullish(),
|
|
11349
11373
|
options: PdfExportOptionsSchema.nullish()
|
|
11350
11374
|
});
|
|
11351
|
-
var ListPdfExportTasksInputSchema =
|
|
11352
|
-
orgId:
|
|
11353
|
-
docsUrl:
|
|
11354
|
-
limit:
|
|
11375
|
+
var ListPdfExportTasksInputSchema = z27.object({
|
|
11376
|
+
orgId: z27.string(),
|
|
11377
|
+
docsUrl: z27.string(),
|
|
11378
|
+
limit: z27.coerce.number().nullish()
|
|
11355
11379
|
});
|
|
11356
|
-
var GetPdfExportTaskInputSchema =
|
|
11357
|
-
taskId:
|
|
11380
|
+
var GetPdfExportTaskInputSchema = z27.object({
|
|
11381
|
+
taskId: z27.string()
|
|
11358
11382
|
});
|
|
11359
|
-
var UpdatePdfExportTaskInputSchema =
|
|
11360
|
-
taskId:
|
|
11383
|
+
var UpdatePdfExportTaskInputSchema = z27.object({
|
|
11384
|
+
taskId: z27.string(),
|
|
11361
11385
|
status: PdfExportTaskStatusSchema,
|
|
11362
|
-
startedAt:
|
|
11363
|
-
completedAt:
|
|
11364
|
-
s3Key:
|
|
11365
|
-
fileName:
|
|
11366
|
-
sizeBytes:
|
|
11367
|
-
errorMessage:
|
|
11386
|
+
startedAt: z27.string().nullish(),
|
|
11387
|
+
completedAt: z27.string().nullish(),
|
|
11388
|
+
s3Key: z27.string().nullish(),
|
|
11389
|
+
fileName: z27.string().nullish(),
|
|
11390
|
+
sizeBytes: z27.number().nullish(),
|
|
11391
|
+
errorMessage: z27.string().nullish()
|
|
11368
11392
|
});
|
|
11369
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
11370
|
-
taskId:
|
|
11393
|
+
var GetPdfExportDownloadUrlInputSchema = z27.object({
|
|
11394
|
+
taskId: z27.string()
|
|
11371
11395
|
});
|
|
11372
|
-
var CleanupPdfExportsResponseSchema =
|
|
11373
|
-
expiredTasksDeleted:
|
|
11374
|
-
s3ObjectsDeleted:
|
|
11375
|
-
timedOutTasksFailed:
|
|
11396
|
+
var CleanupPdfExportsResponseSchema = z27.object({
|
|
11397
|
+
expiredTasksDeleted: z27.number(),
|
|
11398
|
+
s3ObjectsDeleted: z27.number(),
|
|
11399
|
+
timedOutTasksFailed: z27.number()
|
|
11376
11400
|
});
|
|
11377
11401
|
var pdfExportContract = {
|
|
11378
11402
|
createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
@@ -11402,8 +11426,8 @@ var import_fetch19 = require("@orpc/openapi-client/fetch");
|
|
|
11402
11426
|
|
|
11403
11427
|
// src/orpc-client/sdks/contract.ts
|
|
11404
11428
|
var import_contract35 = require("@orpc/contract");
|
|
11405
|
-
var
|
|
11406
|
-
var LanguageEnumSchema =
|
|
11429
|
+
var z28 = __toESM(require("zod"), 1);
|
|
11430
|
+
var LanguageEnumSchema = z28.enum([
|
|
11407
11431
|
"Go",
|
|
11408
11432
|
"TypeScript",
|
|
11409
11433
|
"Java",
|
|
@@ -11414,14 +11438,14 @@ var LanguageEnumSchema = z27.enum([
|
|
|
11414
11438
|
"Swift",
|
|
11415
11439
|
"Rust"
|
|
11416
11440
|
]);
|
|
11417
|
-
var VersionBumpEnumSchema =
|
|
11418
|
-
var ComputeSemanticVersionInputSchema =
|
|
11419
|
-
package:
|
|
11441
|
+
var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
11442
|
+
var ComputeSemanticVersionInputSchema = z28.object({
|
|
11443
|
+
package: z28.string(),
|
|
11420
11444
|
language: LanguageEnumSchema,
|
|
11421
|
-
githubRepository:
|
|
11445
|
+
githubRepository: z28.string().nullish()
|
|
11422
11446
|
});
|
|
11423
|
-
var ComputeSemanticVersionOutputSchema =
|
|
11424
|
-
version:
|
|
11447
|
+
var ComputeSemanticVersionOutputSchema = z28.object({
|
|
11448
|
+
version: z28.string(),
|
|
11425
11449
|
bump: VersionBumpEnumSchema
|
|
11426
11450
|
});
|
|
11427
11451
|
var sdksContract = {
|
|
@@ -11447,32 +11471,32 @@ var import_fetch20 = require("@orpc/openapi-client/fetch");
|
|
|
11447
11471
|
|
|
11448
11472
|
// src/orpc-client/slugs/contract.ts
|
|
11449
11473
|
var import_contract37 = require("@orpc/contract");
|
|
11450
|
-
var
|
|
11451
|
-
var SlugsInputSchema =
|
|
11452
|
-
domain:
|
|
11453
|
-
basepath:
|
|
11454
|
-
});
|
|
11455
|
-
var SlugEntrySchema =
|
|
11456
|
-
orgId:
|
|
11457
|
-
domain:
|
|
11458
|
-
basepath:
|
|
11459
|
-
slug:
|
|
11460
|
-
lastUpdated:
|
|
11461
|
-
});
|
|
11462
|
-
var MarkdownEntrySchema =
|
|
11463
|
-
orgId:
|
|
11464
|
-
domain:
|
|
11465
|
-
basepath:
|
|
11466
|
-
pageId:
|
|
11467
|
-
slug:
|
|
11468
|
-
hash:
|
|
11469
|
-
lastUpdated:
|
|
11470
|
-
});
|
|
11471
|
-
var GetSlugEntriesResponseSchema =
|
|
11472
|
-
entries:
|
|
11473
|
-
});
|
|
11474
|
-
var GetMarkdownEntriesResponseSchema =
|
|
11475
|
-
entries:
|
|
11474
|
+
var z29 = __toESM(require("zod"), 1);
|
|
11475
|
+
var SlugsInputSchema = z29.object({
|
|
11476
|
+
domain: z29.string(),
|
|
11477
|
+
basepath: z29.string().optional().default("")
|
|
11478
|
+
});
|
|
11479
|
+
var SlugEntrySchema = z29.object({
|
|
11480
|
+
orgId: z29.string(),
|
|
11481
|
+
domain: z29.string(),
|
|
11482
|
+
basepath: z29.string(),
|
|
11483
|
+
slug: z29.string(),
|
|
11484
|
+
lastUpdated: z29.string()
|
|
11485
|
+
});
|
|
11486
|
+
var MarkdownEntrySchema = z29.object({
|
|
11487
|
+
orgId: z29.string(),
|
|
11488
|
+
domain: z29.string(),
|
|
11489
|
+
basepath: z29.string(),
|
|
11490
|
+
pageId: z29.string(),
|
|
11491
|
+
slug: z29.string(),
|
|
11492
|
+
hash: z29.string(),
|
|
11493
|
+
lastUpdated: z29.string()
|
|
11494
|
+
});
|
|
11495
|
+
var GetSlugEntriesResponseSchema = z29.object({
|
|
11496
|
+
entries: z29.array(SlugEntrySchema)
|
|
11497
|
+
});
|
|
11498
|
+
var GetMarkdownEntriesResponseSchema = z29.object({
|
|
11499
|
+
entries: z29.array(MarkdownEntrySchema)
|
|
11476
11500
|
});
|
|
11477
11501
|
var slugsContract = {
|
|
11478
11502
|
getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
@@ -11505,102 +11529,102 @@ __export(contract_exports3, {
|
|
|
11505
11529
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
11506
11530
|
});
|
|
11507
11531
|
var import_contract39 = require("@orpc/contract");
|
|
11508
|
-
var
|
|
11509
|
-
var TypeScriptSdkSchema =
|
|
11510
|
-
var PythonSdkSchema =
|
|
11511
|
-
var GoSdkSchema =
|
|
11512
|
-
var RubySdkSchema =
|
|
11513
|
-
var JavaSdkSchema =
|
|
11514
|
-
var CsharpSdkSchema =
|
|
11515
|
-
var BaseSnippetCreateSchema =
|
|
11532
|
+
var z30 = __toESM(require("zod"), 1);
|
|
11533
|
+
var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11534
|
+
var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11535
|
+
var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
|
|
11536
|
+
var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
|
|
11537
|
+
var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
|
|
11538
|
+
var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11539
|
+
var BaseSnippetCreateSchema = z30.object({
|
|
11516
11540
|
endpoint: EndpointIdentifierSchema,
|
|
11517
|
-
exampleIdentifier:
|
|
11541
|
+
exampleIdentifier: z30.string().nullish()
|
|
11518
11542
|
});
|
|
11519
|
-
var SdkSnippetsCreateSchema =
|
|
11520
|
-
|
|
11521
|
-
type:
|
|
11543
|
+
var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
|
|
11544
|
+
z30.object({
|
|
11545
|
+
type: z30.literal("typescript"),
|
|
11522
11546
|
sdk: TypeScriptSdkSchema,
|
|
11523
|
-
snippets:
|
|
11547
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11524
11548
|
}),
|
|
11525
|
-
|
|
11526
|
-
type:
|
|
11549
|
+
z30.object({
|
|
11550
|
+
type: z30.literal("python"),
|
|
11527
11551
|
sdk: PythonSdkSchema,
|
|
11528
|
-
snippets:
|
|
11552
|
+
snippets: z30.array(
|
|
11529
11553
|
BaseSnippetCreateSchema.extend({
|
|
11530
|
-
snippet:
|
|
11554
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
11531
11555
|
})
|
|
11532
11556
|
)
|
|
11533
11557
|
}),
|
|
11534
|
-
|
|
11535
|
-
type:
|
|
11558
|
+
z30.object({
|
|
11559
|
+
type: z30.literal("go"),
|
|
11536
11560
|
sdk: GoSdkSchema,
|
|
11537
|
-
snippets:
|
|
11561
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11538
11562
|
}),
|
|
11539
|
-
|
|
11540
|
-
type:
|
|
11563
|
+
z30.object({
|
|
11564
|
+
type: z30.literal("java"),
|
|
11541
11565
|
sdk: JavaSdkSchema,
|
|
11542
|
-
snippets:
|
|
11566
|
+
snippets: z30.array(
|
|
11543
11567
|
BaseSnippetCreateSchema.extend({
|
|
11544
|
-
snippet:
|
|
11568
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
11545
11569
|
})
|
|
11546
11570
|
)
|
|
11547
11571
|
}),
|
|
11548
|
-
|
|
11549
|
-
type:
|
|
11572
|
+
z30.object({
|
|
11573
|
+
type: z30.literal("ruby"),
|
|
11550
11574
|
sdk: RubySdkSchema,
|
|
11551
|
-
snippets:
|
|
11575
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11552
11576
|
}),
|
|
11553
|
-
|
|
11554
|
-
type:
|
|
11577
|
+
z30.object({
|
|
11578
|
+
type: z30.literal("csharp"),
|
|
11555
11579
|
sdk: CsharpSdkSchema,
|
|
11556
|
-
snippets:
|
|
11580
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11557
11581
|
})
|
|
11558
11582
|
]);
|
|
11559
11583
|
var snippetsFactoryContract = {
|
|
11560
11584
|
createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
|
|
11561
|
-
|
|
11562
|
-
orgId:
|
|
11563
|
-
apiId:
|
|
11585
|
+
z30.object({
|
|
11586
|
+
orgId: z30.string(),
|
|
11587
|
+
apiId: z30.string(),
|
|
11564
11588
|
snippets: SdkSnippetsCreateSchema
|
|
11565
11589
|
})
|
|
11566
11590
|
)
|
|
11567
11591
|
};
|
|
11568
|
-
var ParameterPayloadSchema =
|
|
11569
|
-
name:
|
|
11570
|
-
value:
|
|
11592
|
+
var ParameterPayloadSchema = z30.object({
|
|
11593
|
+
name: z30.string(),
|
|
11594
|
+
value: z30.unknown()
|
|
11571
11595
|
});
|
|
11572
|
-
var AuthPayloadSchema =
|
|
11573
|
-
|
|
11574
|
-
|
|
11596
|
+
var AuthPayloadSchema = z30.discriminatedUnion("type", [
|
|
11597
|
+
z30.object({ type: z30.literal("bearer"), token: z30.string() }),
|
|
11598
|
+
z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
|
|
11575
11599
|
]);
|
|
11576
|
-
var CustomSnippetPayloadSchema =
|
|
11577
|
-
headers:
|
|
11578
|
-
pathParameters:
|
|
11579
|
-
queryParameters:
|
|
11580
|
-
requestBody:
|
|
11600
|
+
var CustomSnippetPayloadSchema = z30.object({
|
|
11601
|
+
headers: z30.array(ParameterPayloadSchema).nullish(),
|
|
11602
|
+
pathParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
11603
|
+
queryParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
11604
|
+
requestBody: z30.unknown().nullish(),
|
|
11581
11605
|
auth: AuthPayloadSchema.nullish()
|
|
11582
11606
|
});
|
|
11583
11607
|
var snippetsContract = {
|
|
11584
11608
|
get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
|
|
11585
|
-
|
|
11586
|
-
orgId:
|
|
11587
|
-
apiId:
|
|
11588
|
-
sdks:
|
|
11609
|
+
z30.object({
|
|
11610
|
+
orgId: z30.string().nullish(),
|
|
11611
|
+
apiId: z30.string().nullish(),
|
|
11612
|
+
sdks: z30.array(SdkRequestSchema).nullish(),
|
|
11589
11613
|
endpoint: EndpointIdentifierSchema,
|
|
11590
|
-
exampleIdentifier:
|
|
11614
|
+
exampleIdentifier: z30.string().nullish(),
|
|
11591
11615
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
11592
11616
|
})
|
|
11593
|
-
).output(
|
|
11617
|
+
).output(z30.array(z30.unknown())),
|
|
11594
11618
|
load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
|
|
11595
|
-
|
|
11596
|
-
orgId:
|
|
11597
|
-
apiId:
|
|
11598
|
-
sdks:
|
|
11619
|
+
z30.object({
|
|
11620
|
+
orgId: z30.string().nullish(),
|
|
11621
|
+
apiId: z30.string().nullish(),
|
|
11622
|
+
sdks: z30.array(SdkRequestSchema).nullish()
|
|
11599
11623
|
})
|
|
11600
11624
|
).output(
|
|
11601
|
-
|
|
11602
|
-
next:
|
|
11603
|
-
snippets:
|
|
11625
|
+
z30.object({
|
|
11626
|
+
next: z30.number().nullish(),
|
|
11627
|
+
snippets: z30.record(z30.string(), z30.unknown())
|
|
11604
11628
|
})
|
|
11605
11629
|
)
|
|
11606
11630
|
};
|
|
@@ -11635,44 +11659,44 @@ var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
|
11635
11659
|
|
|
11636
11660
|
// src/orpc-client/templates/contract.ts
|
|
11637
11661
|
var import_contract41 = require("@orpc/contract");
|
|
11638
|
-
var
|
|
11639
|
-
var SnippetRegistryEntrySchema =
|
|
11662
|
+
var z31 = __toESM(require("zod"), 1);
|
|
11663
|
+
var SnippetRegistryEntrySchema = z31.object({
|
|
11640
11664
|
sdk: SdkSchema,
|
|
11641
|
-
endpointId:
|
|
11642
|
-
path:
|
|
11665
|
+
endpointId: z31.object({
|
|
11666
|
+
path: z31.string(),
|
|
11643
11667
|
method: HttpMethodSchema,
|
|
11644
|
-
identifierOverride:
|
|
11668
|
+
identifierOverride: z31.string().nullish()
|
|
11645
11669
|
}),
|
|
11646
|
-
snippetTemplate:
|
|
11647
|
-
type:
|
|
11648
|
-
functionInvocation:
|
|
11649
|
-
clientInstantiation:
|
|
11670
|
+
snippetTemplate: z31.object({
|
|
11671
|
+
type: z31.literal("v1"),
|
|
11672
|
+
functionInvocation: z31.unknown(),
|
|
11673
|
+
clientInstantiation: z31.string()
|
|
11650
11674
|
}),
|
|
11651
|
-
additionalTemplates:
|
|
11675
|
+
additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
|
|
11652
11676
|
});
|
|
11653
|
-
var RegisterInputSchema =
|
|
11654
|
-
orgId:
|
|
11655
|
-
apiId:
|
|
11656
|
-
apiDefinitionId:
|
|
11677
|
+
var RegisterInputSchema = z31.object({
|
|
11678
|
+
orgId: z31.string(),
|
|
11679
|
+
apiId: z31.string(),
|
|
11680
|
+
apiDefinitionId: z31.string(),
|
|
11657
11681
|
snippet: SnippetRegistryEntrySchema
|
|
11658
11682
|
});
|
|
11659
|
-
var RegisterBatchInputSchema =
|
|
11660
|
-
orgId:
|
|
11661
|
-
apiId:
|
|
11662
|
-
apiDefinitionId:
|
|
11663
|
-
snippets:
|
|
11683
|
+
var RegisterBatchInputSchema = z31.object({
|
|
11684
|
+
orgId: z31.string(),
|
|
11685
|
+
apiId: z31.string(),
|
|
11686
|
+
apiDefinitionId: z31.string(),
|
|
11687
|
+
snippets: z31.array(SnippetRegistryEntrySchema)
|
|
11664
11688
|
});
|
|
11665
|
-
var GetInputSchema =
|
|
11666
|
-
orgId:
|
|
11667
|
-
apiId:
|
|
11689
|
+
var GetInputSchema = z31.object({
|
|
11690
|
+
orgId: z31.string(),
|
|
11691
|
+
apiId: z31.string(),
|
|
11668
11692
|
sdk: SdkSchema,
|
|
11669
|
-
endpointId:
|
|
11670
|
-
path:
|
|
11693
|
+
endpointId: z31.object({
|
|
11694
|
+
path: z31.string(),
|
|
11671
11695
|
method: HttpMethodSchema,
|
|
11672
|
-
identifierOverride:
|
|
11696
|
+
identifierOverride: z31.string().nullish()
|
|
11673
11697
|
})
|
|
11674
11698
|
});
|
|
11675
|
-
var EndpointSnippetTemplateSchema =
|
|
11699
|
+
var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
|
|
11676
11700
|
var templatesContract = {
|
|
11677
11701
|
register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
11678
11702
|
registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
@@ -11699,18 +11723,18 @@ var import_fetch23 = require("@orpc/openapi-client/fetch");
|
|
|
11699
11723
|
|
|
11700
11724
|
// src/orpc-client/tokens/contract.ts
|
|
11701
11725
|
var import_contract43 = require("@orpc/contract");
|
|
11702
|
-
var
|
|
11703
|
-
var GenerateTokenInputSchema =
|
|
11704
|
-
orgId:
|
|
11705
|
-
scope:
|
|
11726
|
+
var z32 = __toESM(require("zod"), 1);
|
|
11727
|
+
var GenerateTokenInputSchema = z32.object({
|
|
11728
|
+
orgId: z32.string(),
|
|
11729
|
+
scope: z32.string()
|
|
11706
11730
|
});
|
|
11707
|
-
var RevokeTokenInputSchema =
|
|
11708
|
-
orgId:
|
|
11709
|
-
tokenId:
|
|
11731
|
+
var RevokeTokenInputSchema = z32.object({
|
|
11732
|
+
orgId: z32.string(),
|
|
11733
|
+
tokenId: z32.string()
|
|
11710
11734
|
});
|
|
11711
|
-
var GenerateTokenOutputSchema =
|
|
11712
|
-
token:
|
|
11713
|
-
id:
|
|
11735
|
+
var GenerateTokenOutputSchema = z32.object({
|
|
11736
|
+
token: z32.string(),
|
|
11737
|
+
id: z32.string()
|
|
11714
11738
|
});
|
|
11715
11739
|
var tokensContract = {
|
|
11716
11740
|
generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
@@ -11988,85 +12012,85 @@ __export(APIV1Db_exports, {
|
|
|
11988
12012
|
});
|
|
11989
12013
|
|
|
11990
12014
|
// src/orpc-client/api/contract-db.ts
|
|
11991
|
-
var
|
|
11992
|
-
var EndpointSnippetTemplatesSchema =
|
|
11993
|
-
typescript:
|
|
11994
|
-
python:
|
|
12015
|
+
var z33 = __toESM(require("zod"), 1);
|
|
12016
|
+
var EndpointSnippetTemplatesSchema = z33.object({
|
|
12017
|
+
typescript: z33.unknown().nullish(),
|
|
12018
|
+
python: z33.unknown().nullish()
|
|
11995
12019
|
});
|
|
11996
|
-
var DbHttpRequestSchema =
|
|
11997
|
-
description:
|
|
11998
|
-
contentType:
|
|
12020
|
+
var DbHttpRequestSchema = z33.object({
|
|
12021
|
+
description: z33.string().nullish(),
|
|
12022
|
+
contentType: z33.string().nullish(),
|
|
11999
12023
|
type: RegisterHttpRequestBodyShapeSchema
|
|
12000
12024
|
});
|
|
12001
|
-
var DbHttpRequestsV2Schema =
|
|
12002
|
-
requests:
|
|
12025
|
+
var DbHttpRequestsV2Schema = z33.object({
|
|
12026
|
+
requests: z33.array(DbHttpRequestSchema).nullish()
|
|
12003
12027
|
});
|
|
12004
|
-
var DbEndpointDefinitionSchema =
|
|
12005
|
-
description:
|
|
12006
|
-
subtitle:
|
|
12028
|
+
var DbEndpointDefinitionSchema = z33.object({
|
|
12029
|
+
description: z33.string().nullish(),
|
|
12030
|
+
subtitle: z33.string().nullish(),
|
|
12007
12031
|
availability: AvailabilitySchema.nullish(),
|
|
12008
|
-
authed:
|
|
12009
|
-
authV2:
|
|
12010
|
-
multiAuth:
|
|
12032
|
+
authed: z33.boolean().nullish(),
|
|
12033
|
+
authV2: z33.array(AuthSchemeIdSchema).nullish(),
|
|
12034
|
+
multiAuth: z33.array(MultipleAuthTypeSchema).nullish(),
|
|
12011
12035
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
12012
|
-
environments:
|
|
12036
|
+
environments: z33.array(EnvironmentSchema).nullish(),
|
|
12013
12037
|
method: HttpMethodSchema,
|
|
12014
12038
|
id: EndpointIdSchema,
|
|
12015
|
-
originalEndpointId:
|
|
12016
|
-
urlSlug:
|
|
12017
|
-
migratedFromUrlSlugs:
|
|
12018
|
-
name:
|
|
12039
|
+
originalEndpointId: z33.string().nullish(),
|
|
12040
|
+
urlSlug: z33.string(),
|
|
12041
|
+
migratedFromUrlSlugs: z33.array(z33.string()).nullish(),
|
|
12042
|
+
name: z33.string().nullish(),
|
|
12019
12043
|
path: EndpointPathSchema,
|
|
12020
|
-
queryParameters:
|
|
12021
|
-
headers:
|
|
12022
|
-
responseHeaders:
|
|
12044
|
+
queryParameters: z33.array(QueryParameterSchema),
|
|
12045
|
+
headers: z33.array(HeaderSchema),
|
|
12046
|
+
responseHeaders: z33.array(HeaderSchema).nullish(),
|
|
12023
12047
|
request: DbHttpRequestSchema.nullish(),
|
|
12024
12048
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
12025
12049
|
response: RegisterHttpResponseSchema.nullish(),
|
|
12026
12050
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
12027
|
-
errors:
|
|
12028
|
-
errorsV2:
|
|
12029
|
-
examples:
|
|
12051
|
+
errors: z33.array(ErrorDeclarationSchema).nullish(),
|
|
12052
|
+
errorsV2: z33.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
12053
|
+
examples: z33.array(RegisterExampleEndpointCallSchema),
|
|
12030
12054
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
12031
12055
|
protocol: ProtocolSchema.nullish(),
|
|
12032
|
-
includeInApiExplorer:
|
|
12033
|
-
});
|
|
12034
|
-
var DbApiDefinitionPackageSchema =
|
|
12035
|
-
endpoints:
|
|
12036
|
-
websockets:
|
|
12037
|
-
webhooks:
|
|
12038
|
-
graphqlOperations:
|
|
12039
|
-
types:
|
|
12040
|
-
subpackages:
|
|
12056
|
+
includeInApiExplorer: z33.boolean().nullish()
|
|
12057
|
+
});
|
|
12058
|
+
var DbApiDefinitionPackageSchema = z33.object({
|
|
12059
|
+
endpoints: z33.array(DbEndpointDefinitionSchema),
|
|
12060
|
+
websockets: z33.array(RegisterWebSocketChannelSchema).nullish(),
|
|
12061
|
+
webhooks: z33.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
12062
|
+
graphqlOperations: z33.array(GraphQlOperationSchema).nullish(),
|
|
12063
|
+
types: z33.array(TypeIdSchema),
|
|
12064
|
+
subpackages: z33.array(SubpackageIdSchema),
|
|
12041
12065
|
pointsTo: SubpackageIdSchema.nullish()
|
|
12042
12066
|
});
|
|
12043
|
-
var DbApiDefinitionSubpackageSchema =
|
|
12067
|
+
var DbApiDefinitionSubpackageSchema = z33.object({
|
|
12044
12068
|
...DbApiDefinitionPackageSchema.shape,
|
|
12045
|
-
description:
|
|
12069
|
+
description: z33.string().nullish(),
|
|
12046
12070
|
parent: SubpackageIdSchema.nullish(),
|
|
12047
12071
|
subpackageId: SubpackageIdSchema,
|
|
12048
|
-
name:
|
|
12049
|
-
urlSlug:
|
|
12050
|
-
displayName:
|
|
12072
|
+
name: z33.string(),
|
|
12073
|
+
urlSlug: z33.string(),
|
|
12074
|
+
displayName: z33.string().nullish()
|
|
12051
12075
|
});
|
|
12052
|
-
var DbApiDefinitionSchema =
|
|
12076
|
+
var DbApiDefinitionSchema = z33.object({
|
|
12053
12077
|
id: ApiDefinitionIdSchema,
|
|
12054
|
-
apiName:
|
|
12055
|
-
specVersion:
|
|
12078
|
+
apiName: z33.string().nullish(),
|
|
12079
|
+
specVersion: z33.string().nullish(),
|
|
12056
12080
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
12057
|
-
types:
|
|
12058
|
-
subpackages:
|
|
12081
|
+
types: z33.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
12082
|
+
subpackages: z33.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
12059
12083
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
12060
12084
|
auth: ApiAuthSchema.nullish(),
|
|
12061
|
-
authSchemes:
|
|
12062
|
-
hasMultipleBaseUrls:
|
|
12085
|
+
authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12086
|
+
hasMultipleBaseUrls: z33.boolean(),
|
|
12063
12087
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
12064
|
-
globalHeaders:
|
|
12088
|
+
globalHeaders: z33.array(HeaderSchema).nullish()
|
|
12065
12089
|
});
|
|
12066
|
-
var DbEndpointWithContextSchema =
|
|
12090
|
+
var DbEndpointWithContextSchema = z33.object({
|
|
12067
12091
|
endpoint: DbEndpointDefinitionSchema,
|
|
12068
|
-
authSchemes:
|
|
12069
|
-
globalHeaders:
|
|
12092
|
+
authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12093
|
+
globalHeaders: z33.array(HeaderSchema).nullish()
|
|
12070
12094
|
});
|
|
12071
12095
|
|
|
12072
12096
|
// src/client/APIV1Read.ts
|
|
@@ -12644,15 +12668,15 @@ __export(DocsV1Db_exports, {
|
|
|
12644
12668
|
});
|
|
12645
12669
|
|
|
12646
12670
|
// src/client/docs-types/db.ts
|
|
12647
|
-
var
|
|
12671
|
+
var z35 = __toESM(require("zod"), 1);
|
|
12648
12672
|
|
|
12649
12673
|
// src/client/docs-types/db-docsRead.ts
|
|
12650
|
-
var
|
|
12651
|
-
var BackgroundSchema2 =
|
|
12652
|
-
|
|
12653
|
-
|
|
12674
|
+
var z34 = __toESM(require("zod"), 1);
|
|
12675
|
+
var BackgroundSchema2 = z34.discriminatedUnion("type", [
|
|
12676
|
+
z34.object({ type: z34.literal("solid"), ...RgbaColorSchema.shape }),
|
|
12677
|
+
z34.object({ type: z34.literal("gradient") })
|
|
12654
12678
|
]);
|
|
12655
|
-
var ThemeConfigSchema3 =
|
|
12679
|
+
var ThemeConfigSchema3 = z34.object({
|
|
12656
12680
|
logo: FileIdSchema2.optional(),
|
|
12657
12681
|
backgroundImage: FileIdSchema2.optional(),
|
|
12658
12682
|
accentPrimary: RgbaColorSchema,
|
|
@@ -12674,174 +12698,174 @@ var ThemeConfigSchema3 = z33.object({
|
|
|
12674
12698
|
accent11: RgbaColorSchema.optional(),
|
|
12675
12699
|
accent12: RgbaColorSchema.optional()
|
|
12676
12700
|
});
|
|
12677
|
-
var DarkAndLightModeConfigSchema3 =
|
|
12701
|
+
var DarkAndLightModeConfigSchema3 = z34.object({
|
|
12678
12702
|
dark: ThemeConfigSchema3,
|
|
12679
12703
|
light: ThemeConfigSchema3
|
|
12680
12704
|
});
|
|
12681
|
-
var ColorsConfigV3Schema3 =
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12705
|
+
var ColorsConfigV3Schema3 = z34.discriminatedUnion("type", [
|
|
12706
|
+
z34.object({ type: z34.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
12707
|
+
z34.object({ type: z34.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
12708
|
+
z34.object({ type: z34.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
12685
12709
|
]);
|
|
12686
12710
|
|
|
12687
12711
|
// src/client/docs-types/db.ts
|
|
12688
|
-
var DbFileInfoSchema =
|
|
12689
|
-
s3Key:
|
|
12690
|
-
});
|
|
12691
|
-
var DbImageFileInfoSchema =
|
|
12692
|
-
s3Key:
|
|
12693
|
-
width:
|
|
12694
|
-
height:
|
|
12695
|
-
blurDataUrl:
|
|
12696
|
-
alt:
|
|
12697
|
-
});
|
|
12698
|
-
var DbFileInfoV2Schema =
|
|
12699
|
-
|
|
12700
|
-
|
|
12712
|
+
var DbFileInfoSchema = z35.object({
|
|
12713
|
+
s3Key: z35.string()
|
|
12714
|
+
});
|
|
12715
|
+
var DbImageFileInfoSchema = z35.object({
|
|
12716
|
+
s3Key: z35.string(),
|
|
12717
|
+
width: z35.number(),
|
|
12718
|
+
height: z35.number(),
|
|
12719
|
+
blurDataUrl: z35.string().optional(),
|
|
12720
|
+
alt: z35.string().optional()
|
|
12721
|
+
});
|
|
12722
|
+
var DbFileInfoV2Schema = z35.discriminatedUnion("type", [
|
|
12723
|
+
z35.object({ type: z35.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
12724
|
+
z35.object({ type: z35.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
12701
12725
|
]);
|
|
12702
|
-
var NavigationTabGroupSchema3 =
|
|
12703
|
-
() =>
|
|
12704
|
-
title:
|
|
12705
|
-
icon:
|
|
12706
|
-
items:
|
|
12707
|
-
urlSlug:
|
|
12708
|
-
skipUrlSlug:
|
|
12726
|
+
var NavigationTabGroupSchema3 = z35.lazy(
|
|
12727
|
+
() => z35.object({
|
|
12728
|
+
title: z35.string(),
|
|
12729
|
+
icon: z35.string().optional(),
|
|
12730
|
+
items: z35.array(NavigationItemSchema3),
|
|
12731
|
+
urlSlug: z35.string(),
|
|
12732
|
+
skipUrlSlug: z35.boolean().optional()
|
|
12709
12733
|
})
|
|
12710
12734
|
);
|
|
12711
|
-
var NavigationTabSchema3 =
|
|
12712
|
-
var NavigationTabV2Schema2 =
|
|
12713
|
-
() =>
|
|
12714
|
-
|
|
12715
|
-
type:
|
|
12716
|
-
title:
|
|
12717
|
-
icon:
|
|
12718
|
-
items:
|
|
12719
|
-
urlSlug:
|
|
12720
|
-
skipUrlSlug:
|
|
12735
|
+
var NavigationTabSchema3 = z35.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
12736
|
+
var NavigationTabV2Schema2 = z35.lazy(
|
|
12737
|
+
() => z35.discriminatedUnion("type", [
|
|
12738
|
+
z35.object({
|
|
12739
|
+
type: z35.literal("group"),
|
|
12740
|
+
title: z35.string(),
|
|
12741
|
+
icon: z35.string().optional(),
|
|
12742
|
+
items: z35.array(NavigationItemSchema3),
|
|
12743
|
+
urlSlug: z35.string(),
|
|
12744
|
+
skipUrlSlug: z35.boolean().optional()
|
|
12721
12745
|
}),
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12746
|
+
z35.object({ type: z35.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
12747
|
+
z35.object({ type: z35.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
12748
|
+
z35.object({ type: z35.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
12725
12749
|
])
|
|
12726
12750
|
);
|
|
12727
|
-
var ApiSectionSchema3 =
|
|
12728
|
-
title:
|
|
12729
|
-
icon:
|
|
12751
|
+
var ApiSectionSchema3 = z35.object({
|
|
12752
|
+
title: z35.string(),
|
|
12753
|
+
icon: z35.string().optional(),
|
|
12730
12754
|
api: ApiDefinitionIdSchema2,
|
|
12731
|
-
urlSlug:
|
|
12732
|
-
skipUrlSlug:
|
|
12755
|
+
urlSlug: z35.string(),
|
|
12756
|
+
skipUrlSlug: z35.boolean(),
|
|
12733
12757
|
artifacts: ApiArtifactsSchema.optional(),
|
|
12734
|
-
showErrors:
|
|
12758
|
+
showErrors: z35.boolean().optional(),
|
|
12735
12759
|
changelog: ChangelogSectionSchema.optional(),
|
|
12736
|
-
hidden:
|
|
12737
|
-
fullSlug:
|
|
12760
|
+
hidden: z35.boolean().optional(),
|
|
12761
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12738
12762
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
12739
|
-
longScrolling:
|
|
12740
|
-
flattened:
|
|
12741
|
-
});
|
|
12742
|
-
var DocsSectionSchema3 =
|
|
12743
|
-
() =>
|
|
12744
|
-
title:
|
|
12745
|
-
icon:
|
|
12746
|
-
items:
|
|
12747
|
-
urlSlug:
|
|
12748
|
-
skipUrlSlug:
|
|
12749
|
-
collapsed:
|
|
12750
|
-
collapsible:
|
|
12751
|
-
collapsedByDefault:
|
|
12752
|
-
hidden:
|
|
12753
|
-
fullSlug:
|
|
12763
|
+
longScrolling: z35.boolean().optional(),
|
|
12764
|
+
flattened: z35.boolean().optional()
|
|
12765
|
+
});
|
|
12766
|
+
var DocsSectionSchema3 = z35.lazy(
|
|
12767
|
+
() => z35.object({
|
|
12768
|
+
title: z35.string(),
|
|
12769
|
+
icon: z35.string().optional(),
|
|
12770
|
+
items: z35.array(NavigationItemSchema3),
|
|
12771
|
+
urlSlug: z35.string(),
|
|
12772
|
+
skipUrlSlug: z35.boolean(),
|
|
12773
|
+
collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
|
|
12774
|
+
collapsible: z35.boolean().optional(),
|
|
12775
|
+
collapsedByDefault: z35.boolean().optional(),
|
|
12776
|
+
hidden: z35.boolean().optional(),
|
|
12777
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12754
12778
|
overviewPageId: PageIdSchema2.optional()
|
|
12755
12779
|
})
|
|
12756
12780
|
);
|
|
12757
|
-
var NavigationItemSchema3 =
|
|
12758
|
-
() =>
|
|
12759
|
-
|
|
12760
|
-
type:
|
|
12781
|
+
var NavigationItemSchema3 = z35.lazy(
|
|
12782
|
+
() => z35.discriminatedUnion("type", [
|
|
12783
|
+
z35.object({
|
|
12784
|
+
type: z35.literal("page"),
|
|
12761
12785
|
...PageMetadataSchema.shape
|
|
12762
12786
|
}),
|
|
12763
|
-
|
|
12764
|
-
type:
|
|
12787
|
+
z35.object({
|
|
12788
|
+
type: z35.literal("api"),
|
|
12765
12789
|
...ApiSectionSchema3.shape
|
|
12766
12790
|
}),
|
|
12767
|
-
|
|
12768
|
-
type:
|
|
12791
|
+
z35.object({
|
|
12792
|
+
type: z35.literal("apiV2"),
|
|
12769
12793
|
...ApiSectionV2Schema.shape
|
|
12770
12794
|
}),
|
|
12771
|
-
|
|
12772
|
-
type:
|
|
12773
|
-
title:
|
|
12774
|
-
icon:
|
|
12775
|
-
items:
|
|
12776
|
-
urlSlug:
|
|
12777
|
-
skipUrlSlug:
|
|
12778
|
-
collapsed:
|
|
12779
|
-
collapsible:
|
|
12780
|
-
collapsedByDefault:
|
|
12781
|
-
hidden:
|
|
12782
|
-
fullSlug:
|
|
12795
|
+
z35.object({
|
|
12796
|
+
type: z35.literal("section"),
|
|
12797
|
+
title: z35.string(),
|
|
12798
|
+
icon: z35.string().optional(),
|
|
12799
|
+
items: z35.array(NavigationItemSchema3),
|
|
12800
|
+
urlSlug: z35.string(),
|
|
12801
|
+
skipUrlSlug: z35.boolean(),
|
|
12802
|
+
collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
|
|
12803
|
+
collapsible: z35.boolean().optional(),
|
|
12804
|
+
collapsedByDefault: z35.boolean().optional(),
|
|
12805
|
+
hidden: z35.boolean().optional(),
|
|
12806
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12783
12807
|
overviewPageId: PageIdSchema2.optional()
|
|
12784
12808
|
}),
|
|
12785
|
-
|
|
12786
|
-
type:
|
|
12809
|
+
z35.object({
|
|
12810
|
+
type: z35.literal("link"),
|
|
12787
12811
|
...LinkMetadataSchema.shape
|
|
12788
12812
|
}),
|
|
12789
|
-
|
|
12790
|
-
type:
|
|
12813
|
+
z35.object({
|
|
12814
|
+
type: z35.literal("changelog"),
|
|
12791
12815
|
...ChangelogSectionSchema.shape
|
|
12792
12816
|
}),
|
|
12793
|
-
|
|
12794
|
-
type:
|
|
12817
|
+
z35.object({
|
|
12818
|
+
type: z35.literal("changelogV3"),
|
|
12795
12819
|
...ChangelogSectionV3Schema.shape
|
|
12796
12820
|
})
|
|
12797
12821
|
])
|
|
12798
12822
|
);
|
|
12799
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
12800
|
-
tabs:
|
|
12801
|
-
tabsV2:
|
|
12823
|
+
var UnversionedTabbedNavigationConfigSchema3 = z35.object({
|
|
12824
|
+
tabs: z35.array(NavigationTabSchema3).optional(),
|
|
12825
|
+
tabsV2: z35.array(NavigationTabV2Schema2).optional(),
|
|
12802
12826
|
landingPage: PageMetadataSchema.optional()
|
|
12803
12827
|
});
|
|
12804
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
12805
|
-
items:
|
|
12828
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z35.object({
|
|
12829
|
+
items: z35.array(NavigationItemSchema3),
|
|
12806
12830
|
landingPage: PageMetadataSchema.optional()
|
|
12807
12831
|
});
|
|
12808
|
-
var UnversionedNavigationConfigSchema3 =
|
|
12832
|
+
var UnversionedNavigationConfigSchema3 = z35.union([
|
|
12809
12833
|
UnversionedTabbedNavigationConfigSchema3,
|
|
12810
12834
|
UnversionedUntabbedNavigationConfigSchema3
|
|
12811
12835
|
]);
|
|
12812
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
12836
|
+
var VersionedNavigationConfigDataSchema3 = z35.object({
|
|
12813
12837
|
version: VersionIdSchema2,
|
|
12814
|
-
urlSlug:
|
|
12838
|
+
urlSlug: z35.string().optional(),
|
|
12815
12839
|
availability: AvailabilitySchema2.optional(),
|
|
12816
12840
|
config: UnversionedNavigationConfigSchema3
|
|
12817
12841
|
});
|
|
12818
|
-
var VersionedNavigationConfigSchema3 =
|
|
12819
|
-
versions:
|
|
12842
|
+
var VersionedNavigationConfigSchema3 = z35.object({
|
|
12843
|
+
versions: z35.array(VersionedNavigationConfigDataSchema3)
|
|
12820
12844
|
});
|
|
12821
|
-
var NavigationConfigSchema3 =
|
|
12822
|
-
var DocsDbConfigSchema =
|
|
12823
|
-
title:
|
|
12845
|
+
var NavigationConfigSchema3 = z35.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
12846
|
+
var DocsDbConfigSchema = z35.object({
|
|
12847
|
+
title: z35.string().optional(),
|
|
12824
12848
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
12825
|
-
languages:
|
|
12849
|
+
languages: z35.array(LanguageSchema).optional(),
|
|
12826
12850
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
12827
12851
|
announcement: AnnouncementConfigSchema.optional(),
|
|
12828
12852
|
navigation: NavigationConfigSchema3.optional(),
|
|
12829
|
-
root:
|
|
12830
|
-
navbarLinks:
|
|
12831
|
-
footerLinks:
|
|
12832
|
-
hideNavLinks:
|
|
12853
|
+
root: z35.custom().optional(),
|
|
12854
|
+
navbarLinks: z35.array(NavbarLinkSchema).optional(),
|
|
12855
|
+
footerLinks: z35.array(FooterLinkSchema).optional(),
|
|
12856
|
+
hideNavLinks: z35.boolean().optional(),
|
|
12833
12857
|
logoHeight: HeightSchema.optional(),
|
|
12834
12858
|
logoHref: UrlSchema2.optional(),
|
|
12835
|
-
logoRightText:
|
|
12859
|
+
logoRightText: z35.string().optional(),
|
|
12836
12860
|
favicon: FileIdSchema2.optional(),
|
|
12837
12861
|
agents: AgentsConfigSchema.optional(),
|
|
12838
12862
|
metadata: MetadataConfigSchema.optional(),
|
|
12839
|
-
redirects:
|
|
12863
|
+
redirects: z35.array(RedirectConfigSchema).optional(),
|
|
12840
12864
|
backgroundImage: FileIdSchema2.optional(),
|
|
12841
12865
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
12842
12866
|
layout: DocsLayoutConfigSchema.optional(),
|
|
12843
12867
|
theme: DocsThemeConfigSchema.optional(),
|
|
12844
|
-
globalTheme:
|
|
12868
|
+
globalTheme: z35.string().optional(),
|
|
12845
12869
|
settings: DocsSettingsConfigSchema.optional(),
|
|
12846
12870
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
12847
12871
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -12851,40 +12875,40 @@ var DocsDbConfigSchema = z34.object({
|
|
|
12851
12875
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
12852
12876
|
pageActions: PageActionsConfigSchema.optional(),
|
|
12853
12877
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
12854
|
-
header:
|
|
12855
|
-
footer:
|
|
12878
|
+
header: z35.string().optional(),
|
|
12879
|
+
footer: z35.string().optional(),
|
|
12856
12880
|
logo: FileIdSchema2.optional(),
|
|
12857
12881
|
logoV2: ThemedFileIdSchema.optional(),
|
|
12858
12882
|
colors: ColorsConfigSchema.optional(),
|
|
12859
12883
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
12860
12884
|
typography: DocsTypographyConfigSchema.optional()
|
|
12861
12885
|
});
|
|
12862
|
-
var DocsDefinitionDbV1Schema =
|
|
12863
|
-
pages:
|
|
12864
|
-
referencedApis:
|
|
12865
|
-
files:
|
|
12886
|
+
var DocsDefinitionDbV1Schema = z35.object({
|
|
12887
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12888
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12889
|
+
files: z35.record(FileIdSchema2, DbFileInfoSchema),
|
|
12866
12890
|
config: DocsDbConfigSchema,
|
|
12867
12891
|
colors: ColorsConfigSchema.optional()
|
|
12868
12892
|
});
|
|
12869
|
-
var DocsDefinitionDbV2Schema =
|
|
12870
|
-
pages:
|
|
12871
|
-
referencedApis:
|
|
12872
|
-
files:
|
|
12893
|
+
var DocsDefinitionDbV2Schema = z35.object({
|
|
12894
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12895
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12896
|
+
files: z35.record(FileIdSchema2, DbFileInfoSchema),
|
|
12873
12897
|
config: DocsDbConfigSchema,
|
|
12874
12898
|
colors: ColorsConfigSchema.optional(),
|
|
12875
12899
|
typography: DocsTypographyConfigSchema.optional()
|
|
12876
12900
|
});
|
|
12877
|
-
var DocsDefinitionDbV3Schema =
|
|
12878
|
-
pages:
|
|
12879
|
-
referencedApis:
|
|
12880
|
-
files:
|
|
12901
|
+
var DocsDefinitionDbV3Schema = z35.object({
|
|
12902
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12903
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12904
|
+
files: z35.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
12881
12905
|
config: DocsDbConfigSchema,
|
|
12882
|
-
jsFiles:
|
|
12906
|
+
jsFiles: z35.record(z35.string(), z35.string()).optional()
|
|
12883
12907
|
});
|
|
12884
|
-
var DocsDefinitionDbSchema =
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12908
|
+
var DocsDefinitionDbSchema = z35.discriminatedUnion("type", [
|
|
12909
|
+
z35.object({ type: z35.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
12910
|
+
z35.object({ type: z35.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
12911
|
+
z35.object({ type: z35.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
12888
12912
|
]);
|
|
12889
12913
|
|
|
12890
12914
|
// src/client/DocsV1Read.ts
|
|
@@ -13659,100 +13683,100 @@ __export(DocsLatest_exports, {
|
|
|
13659
13683
|
});
|
|
13660
13684
|
|
|
13661
13685
|
// src/client/docs-types/latest.ts
|
|
13662
|
-
var
|
|
13663
|
-
var StringOrStringListSchema =
|
|
13664
|
-
var TwitterCardSettingSchema2 =
|
|
13665
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
13666
|
-
"@type":
|
|
13667
|
-
position:
|
|
13668
|
-
name:
|
|
13669
|
-
item:
|
|
13670
|
-
});
|
|
13671
|
-
var JsonLdBreadcrumbListSchema =
|
|
13672
|
-
"@context":
|
|
13673
|
-
"@type":
|
|
13674
|
-
itemListElement:
|
|
13675
|
-
});
|
|
13676
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
13686
|
+
var z36 = __toESM(require("zod"), 1);
|
|
13687
|
+
var StringOrStringListSchema = z36.union([z36.string(), z36.array(z36.string())]);
|
|
13688
|
+
var TwitterCardSettingSchema2 = z36.enum(["summary", "summary_large_image", "app", "player"]);
|
|
13689
|
+
var JsonLdBreadcrumbListElementSchema = z36.object({
|
|
13690
|
+
"@type": z36.literal("ListItem"),
|
|
13691
|
+
position: z36.number(),
|
|
13692
|
+
name: z36.string(),
|
|
13693
|
+
item: z36.string().optional()
|
|
13694
|
+
});
|
|
13695
|
+
var JsonLdBreadcrumbListSchema = z36.object({
|
|
13696
|
+
"@context": z36.literal("https://schema.org"),
|
|
13697
|
+
"@type": z36.literal("BreadcrumbList"),
|
|
13698
|
+
itemListElement: z36.array(JsonLdBreadcrumbListElementSchema)
|
|
13699
|
+
});
|
|
13700
|
+
var WithJsonLdBreadcrumbsSchema = z36.object({
|
|
13677
13701
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
13678
13702
|
});
|
|
13679
|
-
var WithMetadataConfigSchema =
|
|
13680
|
-
"og:site_name":
|
|
13681
|
-
"og:title":
|
|
13682
|
-
"og:description":
|
|
13683
|
-
"og:url":
|
|
13703
|
+
var WithMetadataConfigSchema = z36.object({
|
|
13704
|
+
"og:site_name": z36.string().optional(),
|
|
13705
|
+
"og:title": z36.string().optional(),
|
|
13706
|
+
"og:description": z36.string().optional(),
|
|
13707
|
+
"og:url": z36.string().optional(),
|
|
13684
13708
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
13685
|
-
"og:image:width":
|
|
13686
|
-
"og:image:height":
|
|
13687
|
-
"og:locale":
|
|
13709
|
+
"og:image:width": z36.number().optional(),
|
|
13710
|
+
"og:image:height": z36.number().optional(),
|
|
13711
|
+
"og:locale": z36.string().optional(),
|
|
13688
13712
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
13689
|
-
"twitter:title":
|
|
13690
|
-
"twitter:description":
|
|
13691
|
-
"twitter:handle":
|
|
13713
|
+
"twitter:title": z36.string().optional(),
|
|
13714
|
+
"twitter:description": z36.string().optional(),
|
|
13715
|
+
"twitter:handle": z36.string().optional(),
|
|
13692
13716
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
13693
|
-
"twitter:site":
|
|
13694
|
-
"twitter:url":
|
|
13717
|
+
"twitter:site": z36.string().optional(),
|
|
13718
|
+
"twitter:url": z36.string().optional(),
|
|
13695
13719
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
13696
13720
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
13697
|
-
"og:dynamic":
|
|
13721
|
+
"og:dynamic": z36.boolean().optional(),
|
|
13698
13722
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
13699
|
-
"og:dynamic:text-color":
|
|
13700
|
-
"og:dynamic:background-color":
|
|
13701
|
-
"og:dynamic:show-logo":
|
|
13702
|
-
"og:dynamic:show-section":
|
|
13703
|
-
"og:dynamic:show-description":
|
|
13704
|
-
"og:dynamic:show-url":
|
|
13705
|
-
"og:dynamic:show-gradient":
|
|
13706
|
-
noindex:
|
|
13707
|
-
nofollow:
|
|
13723
|
+
"og:dynamic:text-color": z36.string().optional(),
|
|
13724
|
+
"og:dynamic:background-color": z36.string().optional(),
|
|
13725
|
+
"og:dynamic:show-logo": z36.boolean().optional(),
|
|
13726
|
+
"og:dynamic:show-section": z36.boolean().optional(),
|
|
13727
|
+
"og:dynamic:show-description": z36.boolean().optional(),
|
|
13728
|
+
"og:dynamic:show-url": z36.boolean().optional(),
|
|
13729
|
+
"og:dynamic:show-gradient": z36.boolean().optional(),
|
|
13730
|
+
noindex: z36.boolean().optional(),
|
|
13731
|
+
nofollow: z36.boolean().optional(),
|
|
13708
13732
|
keywords: StringOrStringListSchema.optional()
|
|
13709
13733
|
});
|
|
13710
|
-
var LayoutSchema =
|
|
13711
|
-
var LogoConfigurationSchema =
|
|
13734
|
+
var LayoutSchema = z36.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
13735
|
+
var LogoConfigurationSchema = z36.object({
|
|
13712
13736
|
light: FileIdOrUrlSchema.optional(),
|
|
13713
13737
|
dark: FileIdOrUrlSchema.optional()
|
|
13714
13738
|
});
|
|
13715
|
-
var LogoSchema =
|
|
13716
|
-
var BreadcrumbItemSchema =
|
|
13717
|
-
title:
|
|
13718
|
-
pointsTo:
|
|
13739
|
+
var LogoSchema = z36.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
13740
|
+
var BreadcrumbItemSchema = z36.object({
|
|
13741
|
+
title: z36.string(),
|
|
13742
|
+
pointsTo: z36.string().optional()
|
|
13719
13743
|
});
|
|
13720
13744
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
13721
|
-
|
|
13745
|
+
z36.object({
|
|
13722
13746
|
layout: LayoutSchema.optional(),
|
|
13723
|
-
slug:
|
|
13724
|
-
title:
|
|
13725
|
-
headline:
|
|
13726
|
-
description:
|
|
13727
|
-
subtitle:
|
|
13747
|
+
slug: z36.string().optional(),
|
|
13748
|
+
title: z36.string().optional(),
|
|
13749
|
+
headline: z36.string().optional(),
|
|
13750
|
+
description: z36.string().optional(),
|
|
13751
|
+
subtitle: z36.string().optional(),
|
|
13728
13752
|
logo: LogoSchema.optional(),
|
|
13729
13753
|
image: FileIdOrUrlSchema.optional(),
|
|
13730
|
-
"edit-this-page-url":
|
|
13731
|
-
"hide-toc":
|
|
13732
|
-
"force-toc":
|
|
13733
|
-
"hide-nav-links":
|
|
13734
|
-
"max-toc-depth":
|
|
13735
|
-
"hide-feedback":
|
|
13736
|
-
"hide-page-actions":
|
|
13737
|
-
"no-image-zoom":
|
|
13738
|
-
breadcrumb:
|
|
13739
|
-
excerpt:
|
|
13740
|
-
"canonical-url":
|
|
13754
|
+
"edit-this-page-url": z36.string().optional(),
|
|
13755
|
+
"hide-toc": z36.boolean().optional(),
|
|
13756
|
+
"force-toc": z36.boolean().optional(),
|
|
13757
|
+
"hide-nav-links": z36.boolean().optional(),
|
|
13758
|
+
"max-toc-depth": z36.number().optional(),
|
|
13759
|
+
"hide-feedback": z36.boolean().optional(),
|
|
13760
|
+
"hide-page-actions": z36.boolean().optional(),
|
|
13761
|
+
"no-image-zoom": z36.boolean().optional(),
|
|
13762
|
+
breadcrumb: z36.array(BreadcrumbItemSchema).optional(),
|
|
13763
|
+
excerpt: z36.string().optional(),
|
|
13764
|
+
"canonical-url": z36.string().optional(),
|
|
13741
13765
|
tags: StringOrStringListSchema.optional(),
|
|
13742
|
-
"last-updated":
|
|
13766
|
+
"last-updated": z36.string().optional(),
|
|
13743
13767
|
/**
|
|
13744
13768
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
13745
13769
|
* records, so it can be faceted and filtered on by full path
|
|
13746
13770
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
13747
13771
|
*/
|
|
13748
|
-
"search-metadata":
|
|
13772
|
+
"search-metadata": z36.record(z36.unknown()).optional()
|
|
13749
13773
|
})
|
|
13750
13774
|
);
|
|
13751
|
-
var ResolvedMdxSchema =
|
|
13752
|
-
code:
|
|
13775
|
+
var ResolvedMdxSchema = z36.object({
|
|
13776
|
+
code: z36.string(),
|
|
13753
13777
|
frontmatter: FrontmatterSchema,
|
|
13754
|
-
scope:
|
|
13755
|
-
jsxRefs:
|
|
13778
|
+
scope: z36.record(z36.string(), z36.unknown()),
|
|
13779
|
+
jsxRefs: z36.array(z36.string()).optional()
|
|
13756
13780
|
});
|
|
13757
13781
|
|
|
13758
13782
|
// src/client/DocsV1Commons.ts
|
|
@@ -14192,9 +14216,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
14192
14216
|
}
|
|
14193
14217
|
}
|
|
14194
14218
|
}
|
|
14195
|
-
function generateExampleObject(
|
|
14219
|
+
function generateExampleObject(object35, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
14196
14220
|
const example = {};
|
|
14197
|
-
for (const property of getAllObjectProperties(
|
|
14221
|
+
for (const property of getAllObjectProperties(object35, resolveTypeById)) {
|
|
14198
14222
|
const value = generateExampleFromTypeReference(
|
|
14199
14223
|
property.valueType,
|
|
14200
14224
|
resolveTypeById,
|
|
@@ -14378,10 +14402,10 @@ function generateExamplePrimitive(reference) {
|
|
|
14378
14402
|
return reference.name;
|
|
14379
14403
|
}
|
|
14380
14404
|
}
|
|
14381
|
-
function getAllObjectProperties(
|
|
14405
|
+
function getAllObjectProperties(object35, resolveTypeById) {
|
|
14382
14406
|
return [
|
|
14383
|
-
...
|
|
14384
|
-
...
|
|
14407
|
+
...object35.properties,
|
|
14408
|
+
...object35.extends.flatMap((typeId) => {
|
|
14385
14409
|
let type = resolveTypeById(typeId);
|
|
14386
14410
|
if (type == null) {
|
|
14387
14411
|
return [];
|