@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.mjs
CHANGED
|
@@ -444,8 +444,8 @@ function parseMatch(match) {
|
|
|
444
444
|
return match;
|
|
445
445
|
}
|
|
446
446
|
var src_default = (str, options = {}) => {
|
|
447
|
-
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset,
|
|
448
|
-
const isLastWord = m.length + offset >=
|
|
447
|
+
str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string36) => {
|
|
448
|
+
const isLastWord = m.length + offset >= string36.length;
|
|
449
449
|
const parsedMatch = parseMatch(m);
|
|
450
450
|
if (!parsedMatch) {
|
|
451
451
|
return m;
|
|
@@ -2537,16 +2537,16 @@ function selectDefaultValue(shape, defaults) {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
2539
|
var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
|
|
2540
|
-
function unwrapObjectType(
|
|
2541
|
-
const cached = UnwrapObjectTypeCache.get(
|
|
2540
|
+
function unwrapObjectType(object35, types, parentVisitedTypeIds) {
|
|
2541
|
+
const cached = UnwrapObjectTypeCache.get(object35);
|
|
2542
2542
|
if (cached != null) {
|
|
2543
2543
|
return cached;
|
|
2544
2544
|
}
|
|
2545
|
-
const directProperties =
|
|
2546
|
-
const extraProperties =
|
|
2545
|
+
const directProperties = object35.properties;
|
|
2546
|
+
const extraProperties = object35.extraProperties;
|
|
2547
2547
|
const descriptions = [];
|
|
2548
2548
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2549
|
-
const extendedProperties =
|
|
2549
|
+
const extendedProperties = object35.extends.flatMap((typeId) => {
|
|
2550
2550
|
if (parentVisitedTypeIds?.has(typeId)) {
|
|
2551
2551
|
console.error(`Circular reference detected. Cannot extend type=${typeId}`);
|
|
2552
2552
|
return [];
|
|
@@ -2593,7 +2593,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2593
2593
|
};
|
|
2594
2594
|
});
|
|
2595
2595
|
});
|
|
2596
|
-
const propertyKeys = new Set(
|
|
2596
|
+
const propertyKeys = new Set(object35.properties.map((property) => property.key));
|
|
2597
2597
|
const seenExtendedKeys = /* @__PURE__ */ new Set();
|
|
2598
2598
|
const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
|
|
2599
2599
|
if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
|
|
@@ -2616,7 +2616,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2616
2616
|
extraProperties,
|
|
2617
2617
|
visitedTypeIds
|
|
2618
2618
|
};
|
|
2619
|
-
UnwrapObjectTypeCache.set(
|
|
2619
|
+
UnwrapObjectTypeCache.set(object35, toRet2);
|
|
2620
2620
|
return toRet2;
|
|
2621
2621
|
}
|
|
2622
2622
|
const properties = sortBy(
|
|
@@ -2628,7 +2628,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
|
|
|
2628
2628
|
]
|
|
2629
2629
|
);
|
|
2630
2630
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2631
|
-
UnwrapObjectTypeCache.set(
|
|
2631
|
+
UnwrapObjectTypeCache.set(object35, toRet);
|
|
2632
2632
|
return toRet;
|
|
2633
2633
|
}
|
|
2634
2634
|
function unwrapDiscriminatedUnionVariant(union12, variant, types) {
|
|
@@ -4326,8 +4326,8 @@ function sortKeysByShape(obj, shape, types) {
|
|
|
4326
4326
|
set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
|
|
4327
4327
|
map: ({ valueShape }) => isPlainObject_default(obj) ? mapValues(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
|
|
4328
4328
|
unknown: () => obj,
|
|
4329
|
-
object: (
|
|
4330
|
-
const objectProperties = unwrapObjectType(
|
|
4329
|
+
object: (object35) => {
|
|
4330
|
+
const objectProperties = unwrapObjectType(object35, types).properties;
|
|
4331
4331
|
return isPlainObject_default(obj) ? mapValues(
|
|
4332
4332
|
sortKeysBy(
|
|
4333
4333
|
obj,
|
|
@@ -11082,9 +11082,10 @@ import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
|
|
|
11082
11082
|
|
|
11083
11083
|
// src/orpc-client/mcp-hosting/contract.ts
|
|
11084
11084
|
import { oc as oc15 } from "@orpc/contract";
|
|
11085
|
+
import * as z26 from "zod";
|
|
11086
|
+
|
|
11087
|
+
// src/orpc-client/mcp-hosting/schemas.ts
|
|
11085
11088
|
import * as z25 from "zod";
|
|
11086
|
-
var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
11087
|
-
var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
11088
11089
|
var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
11089
11090
|
z25.object({ type: z25.literal("bearer") }),
|
|
11090
11091
|
z25.object({
|
|
@@ -11094,6 +11095,9 @@ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
|
11094
11095
|
}),
|
|
11095
11096
|
z25.object({ type: z25.literal("basic") })
|
|
11096
11097
|
]);
|
|
11098
|
+
var HttpUrlSchema = z25.string().url().refine((value) => /^https?:\/\//i.test(value), {
|
|
11099
|
+
message: "must be an http(s) URL"
|
|
11100
|
+
});
|
|
11097
11101
|
var McpMetadataSchema = z25.object({
|
|
11098
11102
|
name: z25.string().min(1),
|
|
11099
11103
|
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
@@ -11117,47 +11121,67 @@ var McpMetadataSchema = z25.object({
|
|
|
11117
11121
|
required: z25.boolean()
|
|
11118
11122
|
}).strict()
|
|
11119
11123
|
),
|
|
11120
|
-
baseUrl:
|
|
11124
|
+
baseUrl: HttpUrlSchema,
|
|
11121
11125
|
followRedirects: z25.boolean(),
|
|
11122
11126
|
maxRedirects: z25.number().int().nonnegative(),
|
|
11123
11127
|
allowedRedirectHosts: z25.array(z25.string())
|
|
11124
11128
|
}).passthrough();
|
|
11125
|
-
var
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
+
var DeploymentConfigSchema = z25.object({
|
|
11130
|
+
serverName: z25.string().min(1),
|
|
11131
|
+
baseUrl: HttpUrlSchema,
|
|
11132
|
+
/**
|
|
11133
|
+
* Runtime rewrite of the upstream base URL. Part of the edge contract
|
|
11134
|
+
* (the outbound worker honors it) but not yet written by FDR.
|
|
11135
|
+
*/
|
|
11136
|
+
baseUrlOverride: HttpUrlSchema.optional(),
|
|
11137
|
+
followRedirects: z25.boolean(),
|
|
11138
|
+
maxRedirects: z25.number().int().nonnegative(),
|
|
11139
|
+
allowedRedirectHosts: z25.array(z25.string()),
|
|
11140
|
+
authSchemes: z25.array(McpAuthSchemeSchema),
|
|
11141
|
+
authRequired: z25.boolean(),
|
|
11142
|
+
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
11143
|
+
toolsetMetadata: McpMetadataSchema.shape.toolsetMetadata
|
|
11144
|
+
});
|
|
11145
|
+
|
|
11146
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
11147
|
+
var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
11148
|
+
var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
11149
|
+
var McpModuleSchema = z26.object({
|
|
11150
|
+
name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
11151
|
+
hash: z26.string().regex(/^[0-9a-f]{64}$/),
|
|
11152
|
+
contentType: z26.string().min(1)
|
|
11129
11153
|
}).strict();
|
|
11130
|
-
var McpGitInputSchema =
|
|
11131
|
-
repoUrl:
|
|
11132
|
-
branch:
|
|
11133
|
-
commitSha:
|
|
11154
|
+
var McpGitInputSchema = z26.object({
|
|
11155
|
+
repoUrl: z26.string(),
|
|
11156
|
+
branch: z26.string(),
|
|
11157
|
+
commitSha: z26.string().optional()
|
|
11134
11158
|
}).strict();
|
|
11135
|
-
var DeployMcpServerInputSchema =
|
|
11159
|
+
var DeployMcpServerInputSchema = z26.object({
|
|
11136
11160
|
orgId: McpPathSegmentSchema,
|
|
11137
11161
|
slug: McpPathSegmentSchema,
|
|
11138
|
-
mainModule:
|
|
11139
|
-
compatibilityDate:
|
|
11140
|
-
compatibilityFlags:
|
|
11162
|
+
mainModule: z26.string().min(1),
|
|
11163
|
+
compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
11164
|
+
compatibilityFlags: z26.array(z26.string()),
|
|
11141
11165
|
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
11142
11166
|
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
11143
11167
|
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
11144
|
-
modules:
|
|
11168
|
+
modules: z26.array(McpModuleSchema).min(1).max(20),
|
|
11145
11169
|
metadata: McpMetadataSchema,
|
|
11146
11170
|
// Everything else in this schema is bounded; keep the opaque config
|
|
11147
11171
|
// blob bounded too so it cannot balloon the JSONB row.
|
|
11148
|
-
config:
|
|
11172
|
+
config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
11149
11173
|
message: "config must be at most 64KB serialized"
|
|
11150
11174
|
}),
|
|
11151
|
-
generatorName:
|
|
11152
|
-
generatorVersion:
|
|
11153
|
-
cliVersion:
|
|
11175
|
+
generatorName: z26.string().min(1),
|
|
11176
|
+
generatorVersion: z26.string().min(1),
|
|
11177
|
+
cliVersion: z26.string().optional(),
|
|
11154
11178
|
git: McpGitInputSchema.optional()
|
|
11155
11179
|
}).strict().superRefine((input, ctx) => {
|
|
11156
11180
|
const names = /* @__PURE__ */ new Set();
|
|
11157
11181
|
for (const module of input.modules) {
|
|
11158
11182
|
if (names.has(module.name)) {
|
|
11159
11183
|
ctx.addIssue({
|
|
11160
|
-
code:
|
|
11184
|
+
code: z26.ZodIssueCode.custom,
|
|
11161
11185
|
path: ["modules"],
|
|
11162
11186
|
message: `duplicate module name: ${module.name}`
|
|
11163
11187
|
});
|
|
@@ -11166,45 +11190,45 @@ var DeployMcpServerInputSchema = z25.object({
|
|
|
11166
11190
|
}
|
|
11167
11191
|
if (!names.has(input.mainModule)) {
|
|
11168
11192
|
ctx.addIssue({
|
|
11169
|
-
code:
|
|
11193
|
+
code: z26.ZodIssueCode.custom,
|
|
11170
11194
|
path: ["mainModule"],
|
|
11171
11195
|
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
11172
11196
|
});
|
|
11173
11197
|
}
|
|
11174
11198
|
});
|
|
11175
|
-
var GetMcpServerInputSchema =
|
|
11199
|
+
var GetMcpServerInputSchema = z26.object({
|
|
11176
11200
|
orgId: McpPathSegmentSchema,
|
|
11177
11201
|
slug: McpPathSegmentSchema
|
|
11178
11202
|
});
|
|
11179
|
-
var ListMcpServersInputSchema =
|
|
11180
|
-
orgId:
|
|
11203
|
+
var ListMcpServersInputSchema = z26.object({
|
|
11204
|
+
orgId: z26.string()
|
|
11181
11205
|
});
|
|
11182
11206
|
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
11183
11207
|
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
11184
|
-
var McpDeploymentSummarySchema =
|
|
11185
|
-
id:
|
|
11208
|
+
var McpDeploymentSummarySchema = z26.object({
|
|
11209
|
+
id: z26.string(),
|
|
11186
11210
|
status: McpDeploymentStatusSchema,
|
|
11187
11211
|
/** True when this deployment is the one the server currently serves. */
|
|
11188
|
-
isActive:
|
|
11189
|
-
generatorVersion:
|
|
11190
|
-
createdAt:
|
|
11191
|
-
createdBy:
|
|
11192
|
-
error:
|
|
11193
|
-
});
|
|
11194
|
-
var McpServerSchema =
|
|
11195
|
-
id:
|
|
11196
|
-
orgId:
|
|
11197
|
-
slug:
|
|
11212
|
+
isActive: z26.boolean(),
|
|
11213
|
+
generatorVersion: z26.string(),
|
|
11214
|
+
createdAt: z26.string(),
|
|
11215
|
+
createdBy: z26.string().nullish(),
|
|
11216
|
+
error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
|
|
11217
|
+
});
|
|
11218
|
+
var McpServerSchema = z26.object({
|
|
11219
|
+
id: z26.string(),
|
|
11220
|
+
orgId: z26.string(),
|
|
11221
|
+
slug: z26.string(),
|
|
11198
11222
|
/** The server is serving iff this is set; it names the serving deployment. */
|
|
11199
|
-
activeDeploymentId:
|
|
11223
|
+
activeDeploymentId: z26.string().nullish(),
|
|
11200
11224
|
/** Most recent publication attempt — how the last deploy went. */
|
|
11201
11225
|
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
11202
|
-
url:
|
|
11203
|
-
createdAt:
|
|
11204
|
-
updatedAt:
|
|
11226
|
+
url: z26.string().url(),
|
|
11227
|
+
createdAt: z26.string(),
|
|
11228
|
+
updatedAt: z26.string()
|
|
11205
11229
|
});
|
|
11206
|
-
var ListMcpServersResponseSchema =
|
|
11207
|
-
var ListMcpDeploymentsResponseSchema =
|
|
11230
|
+
var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
|
|
11231
|
+
var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
|
|
11208
11232
|
var mcpHostingContract = {
|
|
11209
11233
|
deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
11210
11234
|
getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
@@ -11232,84 +11256,84 @@ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
|
|
|
11232
11256
|
|
|
11233
11257
|
// src/orpc-client/pdf-export/contract.ts
|
|
11234
11258
|
import { oc as oc16 } from "@orpc/contract";
|
|
11235
|
-
import * as
|
|
11236
|
-
var PdfExportScopeSchema =
|
|
11237
|
-
pageSlugs:
|
|
11238
|
-
});
|
|
11239
|
-
var PdfExportOptionsV1Schema =
|
|
11240
|
-
coverTitle:
|
|
11241
|
-
coverSubtitle:
|
|
11242
|
-
hideCoverFooter:
|
|
11243
|
-
headerLeftTemplate:
|
|
11244
|
-
headerRightTemplate:
|
|
11245
|
-
footerLeftTemplate:
|
|
11246
|
-
footerRightTemplate:
|
|
11259
|
+
import * as z27 from "zod";
|
|
11260
|
+
var PdfExportScopeSchema = z27.object({
|
|
11261
|
+
pageSlugs: z27.array(z27.string())
|
|
11262
|
+
});
|
|
11263
|
+
var PdfExportOptionsV1Schema = z27.object({
|
|
11264
|
+
coverTitle: z27.string().nullish(),
|
|
11265
|
+
coverSubtitle: z27.string().nullish(),
|
|
11266
|
+
hideCoverFooter: z27.boolean().nullish(),
|
|
11267
|
+
headerLeftTemplate: z27.string().nullish(),
|
|
11268
|
+
headerRightTemplate: z27.string().nullish(),
|
|
11269
|
+
footerLeftTemplate: z27.string().nullish(),
|
|
11270
|
+
footerRightTemplate: z27.string().nullish(),
|
|
11247
11271
|
scope: PdfExportScopeSchema.nullish(),
|
|
11248
|
-
hideCover:
|
|
11249
|
-
hideToc:
|
|
11272
|
+
hideCover: z27.boolean().nullish(),
|
|
11273
|
+
hideToc: z27.boolean().nullish()
|
|
11250
11274
|
});
|
|
11251
|
-
var PdfExportOptionsSchema =
|
|
11252
|
-
|
|
11275
|
+
var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
|
|
11276
|
+
z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
11253
11277
|
]);
|
|
11254
|
-
var PdfExportTaskStatusSchema =
|
|
11255
|
-
var PdfExportTaskSchema =
|
|
11256
|
-
id:
|
|
11257
|
-
orgId:
|
|
11258
|
-
docsUrl:
|
|
11259
|
-
productId:
|
|
11260
|
-
versionId:
|
|
11261
|
-
requesterName:
|
|
11262
|
-
notifyEmails:
|
|
11278
|
+
var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
11279
|
+
var PdfExportTaskSchema = z27.object({
|
|
11280
|
+
id: z27.string(),
|
|
11281
|
+
orgId: z27.string(),
|
|
11282
|
+
docsUrl: z27.string(),
|
|
11283
|
+
productId: z27.string().nullish(),
|
|
11284
|
+
versionId: z27.string().nullish(),
|
|
11285
|
+
requesterName: z27.string().nullish(),
|
|
11286
|
+
notifyEmails: z27.array(z27.string()).nullish(),
|
|
11263
11287
|
status: PdfExportTaskStatusSchema,
|
|
11264
11288
|
options: PdfExportOptionsSchema.nullish(),
|
|
11265
|
-
createdAt:
|
|
11266
|
-
startedAt:
|
|
11267
|
-
completedAt:
|
|
11268
|
-
fileName:
|
|
11269
|
-
sizeBytes:
|
|
11270
|
-
errorMessage:
|
|
11271
|
-
});
|
|
11272
|
-
var ListPdfExportTasksResponseSchema =
|
|
11273
|
-
tasks:
|
|
11274
|
-
});
|
|
11275
|
-
var PdfExportDownloadResponseSchema =
|
|
11276
|
-
downloadUrl:
|
|
11277
|
-
fileName:
|
|
11278
|
-
sizeBytes:
|
|
11279
|
-
});
|
|
11280
|
-
var CreatePdfExportTaskInputSchema =
|
|
11281
|
-
orgId:
|
|
11282
|
-
docsUrl:
|
|
11283
|
-
productId:
|
|
11284
|
-
versionId:
|
|
11285
|
-
requesterName:
|
|
11289
|
+
createdAt: z27.string(),
|
|
11290
|
+
startedAt: z27.string().nullish(),
|
|
11291
|
+
completedAt: z27.string().nullish(),
|
|
11292
|
+
fileName: z27.string().nullish(),
|
|
11293
|
+
sizeBytes: z27.number().nullish(),
|
|
11294
|
+
errorMessage: z27.string().nullish()
|
|
11295
|
+
});
|
|
11296
|
+
var ListPdfExportTasksResponseSchema = z27.object({
|
|
11297
|
+
tasks: z27.array(PdfExportTaskSchema)
|
|
11298
|
+
});
|
|
11299
|
+
var PdfExportDownloadResponseSchema = z27.object({
|
|
11300
|
+
downloadUrl: z27.string(),
|
|
11301
|
+
fileName: z27.string(),
|
|
11302
|
+
sizeBytes: z27.number()
|
|
11303
|
+
});
|
|
11304
|
+
var CreatePdfExportTaskInputSchema = z27.object({
|
|
11305
|
+
orgId: z27.string(),
|
|
11306
|
+
docsUrl: z27.string(),
|
|
11307
|
+
productId: z27.string().nullish(),
|
|
11308
|
+
versionId: z27.string().nullish(),
|
|
11309
|
+
requesterName: z27.string().nullish(),
|
|
11286
11310
|
options: PdfExportOptionsSchema.nullish()
|
|
11287
11311
|
});
|
|
11288
|
-
var ListPdfExportTasksInputSchema =
|
|
11289
|
-
orgId:
|
|
11290
|
-
docsUrl:
|
|
11291
|
-
limit:
|
|
11312
|
+
var ListPdfExportTasksInputSchema = z27.object({
|
|
11313
|
+
orgId: z27.string(),
|
|
11314
|
+
docsUrl: z27.string(),
|
|
11315
|
+
limit: z27.coerce.number().nullish()
|
|
11292
11316
|
});
|
|
11293
|
-
var GetPdfExportTaskInputSchema =
|
|
11294
|
-
taskId:
|
|
11317
|
+
var GetPdfExportTaskInputSchema = z27.object({
|
|
11318
|
+
taskId: z27.string()
|
|
11295
11319
|
});
|
|
11296
|
-
var UpdatePdfExportTaskInputSchema =
|
|
11297
|
-
taskId:
|
|
11320
|
+
var UpdatePdfExportTaskInputSchema = z27.object({
|
|
11321
|
+
taskId: z27.string(),
|
|
11298
11322
|
status: PdfExportTaskStatusSchema,
|
|
11299
|
-
startedAt:
|
|
11300
|
-
completedAt:
|
|
11301
|
-
s3Key:
|
|
11302
|
-
fileName:
|
|
11303
|
-
sizeBytes:
|
|
11304
|
-
errorMessage:
|
|
11323
|
+
startedAt: z27.string().nullish(),
|
|
11324
|
+
completedAt: z27.string().nullish(),
|
|
11325
|
+
s3Key: z27.string().nullish(),
|
|
11326
|
+
fileName: z27.string().nullish(),
|
|
11327
|
+
sizeBytes: z27.number().nullish(),
|
|
11328
|
+
errorMessage: z27.string().nullish()
|
|
11305
11329
|
});
|
|
11306
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
11307
|
-
taskId:
|
|
11330
|
+
var GetPdfExportDownloadUrlInputSchema = z27.object({
|
|
11331
|
+
taskId: z27.string()
|
|
11308
11332
|
});
|
|
11309
|
-
var CleanupPdfExportsResponseSchema =
|
|
11310
|
-
expiredTasksDeleted:
|
|
11311
|
-
s3ObjectsDeleted:
|
|
11312
|
-
timedOutTasksFailed:
|
|
11333
|
+
var CleanupPdfExportsResponseSchema = z27.object({
|
|
11334
|
+
expiredTasksDeleted: z27.number(),
|
|
11335
|
+
s3ObjectsDeleted: z27.number(),
|
|
11336
|
+
timedOutTasksFailed: z27.number()
|
|
11313
11337
|
});
|
|
11314
11338
|
var pdfExportContract = {
|
|
11315
11339
|
createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
@@ -11339,8 +11363,8 @@ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
|
|
|
11339
11363
|
|
|
11340
11364
|
// src/orpc-client/sdks/contract.ts
|
|
11341
11365
|
import { oc as oc17 } from "@orpc/contract";
|
|
11342
|
-
import * as
|
|
11343
|
-
var LanguageEnumSchema =
|
|
11366
|
+
import * as z28 from "zod";
|
|
11367
|
+
var LanguageEnumSchema = z28.enum([
|
|
11344
11368
|
"Go",
|
|
11345
11369
|
"TypeScript",
|
|
11346
11370
|
"Java",
|
|
@@ -11351,14 +11375,14 @@ var LanguageEnumSchema = z27.enum([
|
|
|
11351
11375
|
"Swift",
|
|
11352
11376
|
"Rust"
|
|
11353
11377
|
]);
|
|
11354
|
-
var VersionBumpEnumSchema =
|
|
11355
|
-
var ComputeSemanticVersionInputSchema =
|
|
11356
|
-
package:
|
|
11378
|
+
var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
11379
|
+
var ComputeSemanticVersionInputSchema = z28.object({
|
|
11380
|
+
package: z28.string(),
|
|
11357
11381
|
language: LanguageEnumSchema,
|
|
11358
|
-
githubRepository:
|
|
11382
|
+
githubRepository: z28.string().nullish()
|
|
11359
11383
|
});
|
|
11360
|
-
var ComputeSemanticVersionOutputSchema =
|
|
11361
|
-
version:
|
|
11384
|
+
var ComputeSemanticVersionOutputSchema = z28.object({
|
|
11385
|
+
version: z28.string(),
|
|
11362
11386
|
bump: VersionBumpEnumSchema
|
|
11363
11387
|
});
|
|
11364
11388
|
var sdksContract = {
|
|
@@ -11384,32 +11408,32 @@ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
|
|
|
11384
11408
|
|
|
11385
11409
|
// src/orpc-client/slugs/contract.ts
|
|
11386
11410
|
import { oc as oc18 } from "@orpc/contract";
|
|
11387
|
-
import * as
|
|
11388
|
-
var SlugsInputSchema =
|
|
11389
|
-
domain:
|
|
11390
|
-
basepath:
|
|
11391
|
-
});
|
|
11392
|
-
var SlugEntrySchema =
|
|
11393
|
-
orgId:
|
|
11394
|
-
domain:
|
|
11395
|
-
basepath:
|
|
11396
|
-
slug:
|
|
11397
|
-
lastUpdated:
|
|
11398
|
-
});
|
|
11399
|
-
var MarkdownEntrySchema =
|
|
11400
|
-
orgId:
|
|
11401
|
-
domain:
|
|
11402
|
-
basepath:
|
|
11403
|
-
pageId:
|
|
11404
|
-
slug:
|
|
11405
|
-
hash:
|
|
11406
|
-
lastUpdated:
|
|
11407
|
-
});
|
|
11408
|
-
var GetSlugEntriesResponseSchema =
|
|
11409
|
-
entries:
|
|
11410
|
-
});
|
|
11411
|
-
var GetMarkdownEntriesResponseSchema =
|
|
11412
|
-
entries:
|
|
11411
|
+
import * as z29 from "zod";
|
|
11412
|
+
var SlugsInputSchema = z29.object({
|
|
11413
|
+
domain: z29.string(),
|
|
11414
|
+
basepath: z29.string().optional().default("")
|
|
11415
|
+
});
|
|
11416
|
+
var SlugEntrySchema = z29.object({
|
|
11417
|
+
orgId: z29.string(),
|
|
11418
|
+
domain: z29.string(),
|
|
11419
|
+
basepath: z29.string(),
|
|
11420
|
+
slug: z29.string(),
|
|
11421
|
+
lastUpdated: z29.string()
|
|
11422
|
+
});
|
|
11423
|
+
var MarkdownEntrySchema = z29.object({
|
|
11424
|
+
orgId: z29.string(),
|
|
11425
|
+
domain: z29.string(),
|
|
11426
|
+
basepath: z29.string(),
|
|
11427
|
+
pageId: z29.string(),
|
|
11428
|
+
slug: z29.string(),
|
|
11429
|
+
hash: z29.string(),
|
|
11430
|
+
lastUpdated: z29.string()
|
|
11431
|
+
});
|
|
11432
|
+
var GetSlugEntriesResponseSchema = z29.object({
|
|
11433
|
+
entries: z29.array(SlugEntrySchema)
|
|
11434
|
+
});
|
|
11435
|
+
var GetMarkdownEntriesResponseSchema = z29.object({
|
|
11436
|
+
entries: z29.array(MarkdownEntrySchema)
|
|
11413
11437
|
});
|
|
11414
11438
|
var slugsContract = {
|
|
11415
11439
|
getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
@@ -11442,102 +11466,102 @@ __export(contract_exports3, {
|
|
|
11442
11466
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
11443
11467
|
});
|
|
11444
11468
|
import { oc as oc19 } from "@orpc/contract";
|
|
11445
|
-
import * as
|
|
11446
|
-
var TypeScriptSdkSchema =
|
|
11447
|
-
var PythonSdkSchema =
|
|
11448
|
-
var GoSdkSchema =
|
|
11449
|
-
var RubySdkSchema =
|
|
11450
|
-
var JavaSdkSchema =
|
|
11451
|
-
var CsharpSdkSchema =
|
|
11452
|
-
var BaseSnippetCreateSchema =
|
|
11469
|
+
import * as z30 from "zod";
|
|
11470
|
+
var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11471
|
+
var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11472
|
+
var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
|
|
11473
|
+
var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
|
|
11474
|
+
var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
|
|
11475
|
+
var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
11476
|
+
var BaseSnippetCreateSchema = z30.object({
|
|
11453
11477
|
endpoint: EndpointIdentifierSchema,
|
|
11454
|
-
exampleIdentifier:
|
|
11478
|
+
exampleIdentifier: z30.string().nullish()
|
|
11455
11479
|
});
|
|
11456
|
-
var SdkSnippetsCreateSchema =
|
|
11457
|
-
|
|
11458
|
-
type:
|
|
11480
|
+
var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
|
|
11481
|
+
z30.object({
|
|
11482
|
+
type: z30.literal("typescript"),
|
|
11459
11483
|
sdk: TypeScriptSdkSchema,
|
|
11460
|
-
snippets:
|
|
11484
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11461
11485
|
}),
|
|
11462
|
-
|
|
11463
|
-
type:
|
|
11486
|
+
z30.object({
|
|
11487
|
+
type: z30.literal("python"),
|
|
11464
11488
|
sdk: PythonSdkSchema,
|
|
11465
|
-
snippets:
|
|
11489
|
+
snippets: z30.array(
|
|
11466
11490
|
BaseSnippetCreateSchema.extend({
|
|
11467
|
-
snippet:
|
|
11491
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
11468
11492
|
})
|
|
11469
11493
|
)
|
|
11470
11494
|
}),
|
|
11471
|
-
|
|
11472
|
-
type:
|
|
11495
|
+
z30.object({
|
|
11496
|
+
type: z30.literal("go"),
|
|
11473
11497
|
sdk: GoSdkSchema,
|
|
11474
|
-
snippets:
|
|
11498
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11475
11499
|
}),
|
|
11476
|
-
|
|
11477
|
-
type:
|
|
11500
|
+
z30.object({
|
|
11501
|
+
type: z30.literal("java"),
|
|
11478
11502
|
sdk: JavaSdkSchema,
|
|
11479
|
-
snippets:
|
|
11503
|
+
snippets: z30.array(
|
|
11480
11504
|
BaseSnippetCreateSchema.extend({
|
|
11481
|
-
snippet:
|
|
11505
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
11482
11506
|
})
|
|
11483
11507
|
)
|
|
11484
11508
|
}),
|
|
11485
|
-
|
|
11486
|
-
type:
|
|
11509
|
+
z30.object({
|
|
11510
|
+
type: z30.literal("ruby"),
|
|
11487
11511
|
sdk: RubySdkSchema,
|
|
11488
|
-
snippets:
|
|
11512
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11489
11513
|
}),
|
|
11490
|
-
|
|
11491
|
-
type:
|
|
11514
|
+
z30.object({
|
|
11515
|
+
type: z30.literal("csharp"),
|
|
11492
11516
|
sdk: CsharpSdkSchema,
|
|
11493
|
-
snippets:
|
|
11517
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
11494
11518
|
})
|
|
11495
11519
|
]);
|
|
11496
11520
|
var snippetsFactoryContract = {
|
|
11497
11521
|
createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
|
|
11498
|
-
|
|
11499
|
-
orgId:
|
|
11500
|
-
apiId:
|
|
11522
|
+
z30.object({
|
|
11523
|
+
orgId: z30.string(),
|
|
11524
|
+
apiId: z30.string(),
|
|
11501
11525
|
snippets: SdkSnippetsCreateSchema
|
|
11502
11526
|
})
|
|
11503
11527
|
)
|
|
11504
11528
|
};
|
|
11505
|
-
var ParameterPayloadSchema =
|
|
11506
|
-
name:
|
|
11507
|
-
value:
|
|
11529
|
+
var ParameterPayloadSchema = z30.object({
|
|
11530
|
+
name: z30.string(),
|
|
11531
|
+
value: z30.unknown()
|
|
11508
11532
|
});
|
|
11509
|
-
var AuthPayloadSchema =
|
|
11510
|
-
|
|
11511
|
-
|
|
11533
|
+
var AuthPayloadSchema = z30.discriminatedUnion("type", [
|
|
11534
|
+
z30.object({ type: z30.literal("bearer"), token: z30.string() }),
|
|
11535
|
+
z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
|
|
11512
11536
|
]);
|
|
11513
|
-
var CustomSnippetPayloadSchema =
|
|
11514
|
-
headers:
|
|
11515
|
-
pathParameters:
|
|
11516
|
-
queryParameters:
|
|
11517
|
-
requestBody:
|
|
11537
|
+
var CustomSnippetPayloadSchema = z30.object({
|
|
11538
|
+
headers: z30.array(ParameterPayloadSchema).nullish(),
|
|
11539
|
+
pathParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
11540
|
+
queryParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
11541
|
+
requestBody: z30.unknown().nullish(),
|
|
11518
11542
|
auth: AuthPayloadSchema.nullish()
|
|
11519
11543
|
});
|
|
11520
11544
|
var snippetsContract = {
|
|
11521
11545
|
get: oc19.route({ method: "POST", path: "/" }).input(
|
|
11522
|
-
|
|
11523
|
-
orgId:
|
|
11524
|
-
apiId:
|
|
11525
|
-
sdks:
|
|
11546
|
+
z30.object({
|
|
11547
|
+
orgId: z30.string().nullish(),
|
|
11548
|
+
apiId: z30.string().nullish(),
|
|
11549
|
+
sdks: z30.array(SdkRequestSchema).nullish(),
|
|
11526
11550
|
endpoint: EndpointIdentifierSchema,
|
|
11527
|
-
exampleIdentifier:
|
|
11551
|
+
exampleIdentifier: z30.string().nullish(),
|
|
11528
11552
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
11529
11553
|
})
|
|
11530
|
-
).output(
|
|
11554
|
+
).output(z30.array(z30.unknown())),
|
|
11531
11555
|
load: oc19.route({ method: "POST", path: "/load" }).input(
|
|
11532
|
-
|
|
11533
|
-
orgId:
|
|
11534
|
-
apiId:
|
|
11535
|
-
sdks:
|
|
11556
|
+
z30.object({
|
|
11557
|
+
orgId: z30.string().nullish(),
|
|
11558
|
+
apiId: z30.string().nullish(),
|
|
11559
|
+
sdks: z30.array(SdkRequestSchema).nullish()
|
|
11536
11560
|
})
|
|
11537
11561
|
).output(
|
|
11538
|
-
|
|
11539
|
-
next:
|
|
11540
|
-
snippets:
|
|
11562
|
+
z30.object({
|
|
11563
|
+
next: z30.number().nullish(),
|
|
11564
|
+
snippets: z30.record(z30.string(), z30.unknown())
|
|
11541
11565
|
})
|
|
11542
11566
|
)
|
|
11543
11567
|
};
|
|
@@ -11572,44 +11596,44 @@ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
|
|
|
11572
11596
|
|
|
11573
11597
|
// src/orpc-client/templates/contract.ts
|
|
11574
11598
|
import { oc as oc20 } from "@orpc/contract";
|
|
11575
|
-
import * as
|
|
11576
|
-
var SnippetRegistryEntrySchema =
|
|
11599
|
+
import * as z31 from "zod";
|
|
11600
|
+
var SnippetRegistryEntrySchema = z31.object({
|
|
11577
11601
|
sdk: SdkSchema,
|
|
11578
|
-
endpointId:
|
|
11579
|
-
path:
|
|
11602
|
+
endpointId: z31.object({
|
|
11603
|
+
path: z31.string(),
|
|
11580
11604
|
method: HttpMethodSchema,
|
|
11581
|
-
identifierOverride:
|
|
11605
|
+
identifierOverride: z31.string().nullish()
|
|
11582
11606
|
}),
|
|
11583
|
-
snippetTemplate:
|
|
11584
|
-
type:
|
|
11585
|
-
functionInvocation:
|
|
11586
|
-
clientInstantiation:
|
|
11607
|
+
snippetTemplate: z31.object({
|
|
11608
|
+
type: z31.literal("v1"),
|
|
11609
|
+
functionInvocation: z31.unknown(),
|
|
11610
|
+
clientInstantiation: z31.string()
|
|
11587
11611
|
}),
|
|
11588
|
-
additionalTemplates:
|
|
11612
|
+
additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
|
|
11589
11613
|
});
|
|
11590
|
-
var RegisterInputSchema =
|
|
11591
|
-
orgId:
|
|
11592
|
-
apiId:
|
|
11593
|
-
apiDefinitionId:
|
|
11614
|
+
var RegisterInputSchema = z31.object({
|
|
11615
|
+
orgId: z31.string(),
|
|
11616
|
+
apiId: z31.string(),
|
|
11617
|
+
apiDefinitionId: z31.string(),
|
|
11594
11618
|
snippet: SnippetRegistryEntrySchema
|
|
11595
11619
|
});
|
|
11596
|
-
var RegisterBatchInputSchema =
|
|
11597
|
-
orgId:
|
|
11598
|
-
apiId:
|
|
11599
|
-
apiDefinitionId:
|
|
11600
|
-
snippets:
|
|
11620
|
+
var RegisterBatchInputSchema = z31.object({
|
|
11621
|
+
orgId: z31.string(),
|
|
11622
|
+
apiId: z31.string(),
|
|
11623
|
+
apiDefinitionId: z31.string(),
|
|
11624
|
+
snippets: z31.array(SnippetRegistryEntrySchema)
|
|
11601
11625
|
});
|
|
11602
|
-
var GetInputSchema =
|
|
11603
|
-
orgId:
|
|
11604
|
-
apiId:
|
|
11626
|
+
var GetInputSchema = z31.object({
|
|
11627
|
+
orgId: z31.string(),
|
|
11628
|
+
apiId: z31.string(),
|
|
11605
11629
|
sdk: SdkSchema,
|
|
11606
|
-
endpointId:
|
|
11607
|
-
path:
|
|
11630
|
+
endpointId: z31.object({
|
|
11631
|
+
path: z31.string(),
|
|
11608
11632
|
method: HttpMethodSchema,
|
|
11609
|
-
identifierOverride:
|
|
11633
|
+
identifierOverride: z31.string().nullish()
|
|
11610
11634
|
})
|
|
11611
11635
|
});
|
|
11612
|
-
var EndpointSnippetTemplateSchema =
|
|
11636
|
+
var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
|
|
11613
11637
|
var templatesContract = {
|
|
11614
11638
|
register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
11615
11639
|
registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
@@ -11636,18 +11660,18 @@ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
|
|
|
11636
11660
|
|
|
11637
11661
|
// src/orpc-client/tokens/contract.ts
|
|
11638
11662
|
import { oc as oc21 } from "@orpc/contract";
|
|
11639
|
-
import * as
|
|
11640
|
-
var GenerateTokenInputSchema =
|
|
11641
|
-
orgId:
|
|
11642
|
-
scope:
|
|
11663
|
+
import * as z32 from "zod";
|
|
11664
|
+
var GenerateTokenInputSchema = z32.object({
|
|
11665
|
+
orgId: z32.string(),
|
|
11666
|
+
scope: z32.string()
|
|
11643
11667
|
});
|
|
11644
|
-
var RevokeTokenInputSchema =
|
|
11645
|
-
orgId:
|
|
11646
|
-
tokenId:
|
|
11668
|
+
var RevokeTokenInputSchema = z32.object({
|
|
11669
|
+
orgId: z32.string(),
|
|
11670
|
+
tokenId: z32.string()
|
|
11647
11671
|
});
|
|
11648
|
-
var GenerateTokenOutputSchema =
|
|
11649
|
-
token:
|
|
11650
|
-
id:
|
|
11672
|
+
var GenerateTokenOutputSchema = z32.object({
|
|
11673
|
+
token: z32.string(),
|
|
11674
|
+
id: z32.string()
|
|
11651
11675
|
});
|
|
11652
11676
|
var tokensContract = {
|
|
11653
11677
|
generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
@@ -11925,85 +11949,85 @@ __export(APIV1Db_exports, {
|
|
|
11925
11949
|
});
|
|
11926
11950
|
|
|
11927
11951
|
// src/orpc-client/api/contract-db.ts
|
|
11928
|
-
import * as
|
|
11929
|
-
var EndpointSnippetTemplatesSchema =
|
|
11930
|
-
typescript:
|
|
11931
|
-
python:
|
|
11952
|
+
import * as z33 from "zod";
|
|
11953
|
+
var EndpointSnippetTemplatesSchema = z33.object({
|
|
11954
|
+
typescript: z33.unknown().nullish(),
|
|
11955
|
+
python: z33.unknown().nullish()
|
|
11932
11956
|
});
|
|
11933
|
-
var DbHttpRequestSchema =
|
|
11934
|
-
description:
|
|
11935
|
-
contentType:
|
|
11957
|
+
var DbHttpRequestSchema = z33.object({
|
|
11958
|
+
description: z33.string().nullish(),
|
|
11959
|
+
contentType: z33.string().nullish(),
|
|
11936
11960
|
type: RegisterHttpRequestBodyShapeSchema
|
|
11937
11961
|
});
|
|
11938
|
-
var DbHttpRequestsV2Schema =
|
|
11939
|
-
requests:
|
|
11962
|
+
var DbHttpRequestsV2Schema = z33.object({
|
|
11963
|
+
requests: z33.array(DbHttpRequestSchema).nullish()
|
|
11940
11964
|
});
|
|
11941
|
-
var DbEndpointDefinitionSchema =
|
|
11942
|
-
description:
|
|
11943
|
-
subtitle:
|
|
11965
|
+
var DbEndpointDefinitionSchema = z33.object({
|
|
11966
|
+
description: z33.string().nullish(),
|
|
11967
|
+
subtitle: z33.string().nullish(),
|
|
11944
11968
|
availability: AvailabilitySchema.nullish(),
|
|
11945
|
-
authed:
|
|
11946
|
-
authV2:
|
|
11947
|
-
multiAuth:
|
|
11969
|
+
authed: z33.boolean().nullish(),
|
|
11970
|
+
authV2: z33.array(AuthSchemeIdSchema).nullish(),
|
|
11971
|
+
multiAuth: z33.array(MultipleAuthTypeSchema).nullish(),
|
|
11948
11972
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
11949
|
-
environments:
|
|
11973
|
+
environments: z33.array(EnvironmentSchema).nullish(),
|
|
11950
11974
|
method: HttpMethodSchema,
|
|
11951
11975
|
id: EndpointIdSchema,
|
|
11952
|
-
originalEndpointId:
|
|
11953
|
-
urlSlug:
|
|
11954
|
-
migratedFromUrlSlugs:
|
|
11955
|
-
name:
|
|
11976
|
+
originalEndpointId: z33.string().nullish(),
|
|
11977
|
+
urlSlug: z33.string(),
|
|
11978
|
+
migratedFromUrlSlugs: z33.array(z33.string()).nullish(),
|
|
11979
|
+
name: z33.string().nullish(),
|
|
11956
11980
|
path: EndpointPathSchema,
|
|
11957
|
-
queryParameters:
|
|
11958
|
-
headers:
|
|
11959
|
-
responseHeaders:
|
|
11981
|
+
queryParameters: z33.array(QueryParameterSchema),
|
|
11982
|
+
headers: z33.array(HeaderSchema),
|
|
11983
|
+
responseHeaders: z33.array(HeaderSchema).nullish(),
|
|
11960
11984
|
request: DbHttpRequestSchema.nullish(),
|
|
11961
11985
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
11962
11986
|
response: RegisterHttpResponseSchema.nullish(),
|
|
11963
11987
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
11964
|
-
errors:
|
|
11965
|
-
errorsV2:
|
|
11966
|
-
examples:
|
|
11988
|
+
errors: z33.array(ErrorDeclarationSchema).nullish(),
|
|
11989
|
+
errorsV2: z33.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
11990
|
+
examples: z33.array(RegisterExampleEndpointCallSchema),
|
|
11967
11991
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
11968
11992
|
protocol: ProtocolSchema.nullish(),
|
|
11969
|
-
includeInApiExplorer:
|
|
11970
|
-
});
|
|
11971
|
-
var DbApiDefinitionPackageSchema =
|
|
11972
|
-
endpoints:
|
|
11973
|
-
websockets:
|
|
11974
|
-
webhooks:
|
|
11975
|
-
graphqlOperations:
|
|
11976
|
-
types:
|
|
11977
|
-
subpackages:
|
|
11993
|
+
includeInApiExplorer: z33.boolean().nullish()
|
|
11994
|
+
});
|
|
11995
|
+
var DbApiDefinitionPackageSchema = z33.object({
|
|
11996
|
+
endpoints: z33.array(DbEndpointDefinitionSchema),
|
|
11997
|
+
websockets: z33.array(RegisterWebSocketChannelSchema).nullish(),
|
|
11998
|
+
webhooks: z33.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
11999
|
+
graphqlOperations: z33.array(GraphQlOperationSchema).nullish(),
|
|
12000
|
+
types: z33.array(TypeIdSchema),
|
|
12001
|
+
subpackages: z33.array(SubpackageIdSchema),
|
|
11978
12002
|
pointsTo: SubpackageIdSchema.nullish()
|
|
11979
12003
|
});
|
|
11980
|
-
var DbApiDefinitionSubpackageSchema =
|
|
12004
|
+
var DbApiDefinitionSubpackageSchema = z33.object({
|
|
11981
12005
|
...DbApiDefinitionPackageSchema.shape,
|
|
11982
|
-
description:
|
|
12006
|
+
description: z33.string().nullish(),
|
|
11983
12007
|
parent: SubpackageIdSchema.nullish(),
|
|
11984
12008
|
subpackageId: SubpackageIdSchema,
|
|
11985
|
-
name:
|
|
11986
|
-
urlSlug:
|
|
11987
|
-
displayName:
|
|
12009
|
+
name: z33.string(),
|
|
12010
|
+
urlSlug: z33.string(),
|
|
12011
|
+
displayName: z33.string().nullish()
|
|
11988
12012
|
});
|
|
11989
|
-
var DbApiDefinitionSchema =
|
|
12013
|
+
var DbApiDefinitionSchema = z33.object({
|
|
11990
12014
|
id: ApiDefinitionIdSchema,
|
|
11991
|
-
apiName:
|
|
11992
|
-
specVersion:
|
|
12015
|
+
apiName: z33.string().nullish(),
|
|
12016
|
+
specVersion: z33.string().nullish(),
|
|
11993
12017
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
11994
|
-
types:
|
|
11995
|
-
subpackages:
|
|
12018
|
+
types: z33.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
12019
|
+
subpackages: z33.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
11996
12020
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
11997
12021
|
auth: ApiAuthSchema.nullish(),
|
|
11998
|
-
authSchemes:
|
|
11999
|
-
hasMultipleBaseUrls:
|
|
12022
|
+
authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12023
|
+
hasMultipleBaseUrls: z33.boolean(),
|
|
12000
12024
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
12001
|
-
globalHeaders:
|
|
12025
|
+
globalHeaders: z33.array(HeaderSchema).nullish()
|
|
12002
12026
|
});
|
|
12003
|
-
var DbEndpointWithContextSchema =
|
|
12027
|
+
var DbEndpointWithContextSchema = z33.object({
|
|
12004
12028
|
endpoint: DbEndpointDefinitionSchema,
|
|
12005
|
-
authSchemes:
|
|
12006
|
-
globalHeaders:
|
|
12029
|
+
authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12030
|
+
globalHeaders: z33.array(HeaderSchema).nullish()
|
|
12007
12031
|
});
|
|
12008
12032
|
|
|
12009
12033
|
// src/client/APIV1Read.ts
|
|
@@ -12581,15 +12605,15 @@ __export(DocsV1Db_exports, {
|
|
|
12581
12605
|
});
|
|
12582
12606
|
|
|
12583
12607
|
// src/client/docs-types/db.ts
|
|
12584
|
-
import * as
|
|
12608
|
+
import * as z35 from "zod";
|
|
12585
12609
|
|
|
12586
12610
|
// src/client/docs-types/db-docsRead.ts
|
|
12587
|
-
import * as
|
|
12588
|
-
var BackgroundSchema2 =
|
|
12589
|
-
|
|
12590
|
-
|
|
12611
|
+
import * as z34 from "zod";
|
|
12612
|
+
var BackgroundSchema2 = z34.discriminatedUnion("type", [
|
|
12613
|
+
z34.object({ type: z34.literal("solid"), ...RgbaColorSchema.shape }),
|
|
12614
|
+
z34.object({ type: z34.literal("gradient") })
|
|
12591
12615
|
]);
|
|
12592
|
-
var ThemeConfigSchema3 =
|
|
12616
|
+
var ThemeConfigSchema3 = z34.object({
|
|
12593
12617
|
logo: FileIdSchema2.optional(),
|
|
12594
12618
|
backgroundImage: FileIdSchema2.optional(),
|
|
12595
12619
|
accentPrimary: RgbaColorSchema,
|
|
@@ -12611,174 +12635,174 @@ var ThemeConfigSchema3 = z33.object({
|
|
|
12611
12635
|
accent11: RgbaColorSchema.optional(),
|
|
12612
12636
|
accent12: RgbaColorSchema.optional()
|
|
12613
12637
|
});
|
|
12614
|
-
var DarkAndLightModeConfigSchema3 =
|
|
12638
|
+
var DarkAndLightModeConfigSchema3 = z34.object({
|
|
12615
12639
|
dark: ThemeConfigSchema3,
|
|
12616
12640
|
light: ThemeConfigSchema3
|
|
12617
12641
|
});
|
|
12618
|
-
var ColorsConfigV3Schema3 =
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12642
|
+
var ColorsConfigV3Schema3 = z34.discriminatedUnion("type", [
|
|
12643
|
+
z34.object({ type: z34.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
12644
|
+
z34.object({ type: z34.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
12645
|
+
z34.object({ type: z34.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
12622
12646
|
]);
|
|
12623
12647
|
|
|
12624
12648
|
// src/client/docs-types/db.ts
|
|
12625
|
-
var DbFileInfoSchema =
|
|
12626
|
-
s3Key:
|
|
12627
|
-
});
|
|
12628
|
-
var DbImageFileInfoSchema =
|
|
12629
|
-
s3Key:
|
|
12630
|
-
width:
|
|
12631
|
-
height:
|
|
12632
|
-
blurDataUrl:
|
|
12633
|
-
alt:
|
|
12634
|
-
});
|
|
12635
|
-
var DbFileInfoV2Schema =
|
|
12636
|
-
|
|
12637
|
-
|
|
12649
|
+
var DbFileInfoSchema = z35.object({
|
|
12650
|
+
s3Key: z35.string()
|
|
12651
|
+
});
|
|
12652
|
+
var DbImageFileInfoSchema = z35.object({
|
|
12653
|
+
s3Key: z35.string(),
|
|
12654
|
+
width: z35.number(),
|
|
12655
|
+
height: z35.number(),
|
|
12656
|
+
blurDataUrl: z35.string().optional(),
|
|
12657
|
+
alt: z35.string().optional()
|
|
12658
|
+
});
|
|
12659
|
+
var DbFileInfoV2Schema = z35.discriminatedUnion("type", [
|
|
12660
|
+
z35.object({ type: z35.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
12661
|
+
z35.object({ type: z35.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
12638
12662
|
]);
|
|
12639
|
-
var NavigationTabGroupSchema3 =
|
|
12640
|
-
() =>
|
|
12641
|
-
title:
|
|
12642
|
-
icon:
|
|
12643
|
-
items:
|
|
12644
|
-
urlSlug:
|
|
12645
|
-
skipUrlSlug:
|
|
12663
|
+
var NavigationTabGroupSchema3 = z35.lazy(
|
|
12664
|
+
() => z35.object({
|
|
12665
|
+
title: z35.string(),
|
|
12666
|
+
icon: z35.string().optional(),
|
|
12667
|
+
items: z35.array(NavigationItemSchema3),
|
|
12668
|
+
urlSlug: z35.string(),
|
|
12669
|
+
skipUrlSlug: z35.boolean().optional()
|
|
12646
12670
|
})
|
|
12647
12671
|
);
|
|
12648
|
-
var NavigationTabSchema3 =
|
|
12649
|
-
var NavigationTabV2Schema2 =
|
|
12650
|
-
() =>
|
|
12651
|
-
|
|
12652
|
-
type:
|
|
12653
|
-
title:
|
|
12654
|
-
icon:
|
|
12655
|
-
items:
|
|
12656
|
-
urlSlug:
|
|
12657
|
-
skipUrlSlug:
|
|
12672
|
+
var NavigationTabSchema3 = z35.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
12673
|
+
var NavigationTabV2Schema2 = z35.lazy(
|
|
12674
|
+
() => z35.discriminatedUnion("type", [
|
|
12675
|
+
z35.object({
|
|
12676
|
+
type: z35.literal("group"),
|
|
12677
|
+
title: z35.string(),
|
|
12678
|
+
icon: z35.string().optional(),
|
|
12679
|
+
items: z35.array(NavigationItemSchema3),
|
|
12680
|
+
urlSlug: z35.string(),
|
|
12681
|
+
skipUrlSlug: z35.boolean().optional()
|
|
12658
12682
|
}),
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12683
|
+
z35.object({ type: z35.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
12684
|
+
z35.object({ type: z35.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
12685
|
+
z35.object({ type: z35.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
12662
12686
|
])
|
|
12663
12687
|
);
|
|
12664
|
-
var ApiSectionSchema3 =
|
|
12665
|
-
title:
|
|
12666
|
-
icon:
|
|
12688
|
+
var ApiSectionSchema3 = z35.object({
|
|
12689
|
+
title: z35.string(),
|
|
12690
|
+
icon: z35.string().optional(),
|
|
12667
12691
|
api: ApiDefinitionIdSchema2,
|
|
12668
|
-
urlSlug:
|
|
12669
|
-
skipUrlSlug:
|
|
12692
|
+
urlSlug: z35.string(),
|
|
12693
|
+
skipUrlSlug: z35.boolean(),
|
|
12670
12694
|
artifacts: ApiArtifactsSchema.optional(),
|
|
12671
|
-
showErrors:
|
|
12695
|
+
showErrors: z35.boolean().optional(),
|
|
12672
12696
|
changelog: ChangelogSectionSchema.optional(),
|
|
12673
|
-
hidden:
|
|
12674
|
-
fullSlug:
|
|
12697
|
+
hidden: z35.boolean().optional(),
|
|
12698
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12675
12699
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
12676
|
-
longScrolling:
|
|
12677
|
-
flattened:
|
|
12678
|
-
});
|
|
12679
|
-
var DocsSectionSchema3 =
|
|
12680
|
-
() =>
|
|
12681
|
-
title:
|
|
12682
|
-
icon:
|
|
12683
|
-
items:
|
|
12684
|
-
urlSlug:
|
|
12685
|
-
skipUrlSlug:
|
|
12686
|
-
collapsed:
|
|
12687
|
-
collapsible:
|
|
12688
|
-
collapsedByDefault:
|
|
12689
|
-
hidden:
|
|
12690
|
-
fullSlug:
|
|
12700
|
+
longScrolling: z35.boolean().optional(),
|
|
12701
|
+
flattened: z35.boolean().optional()
|
|
12702
|
+
});
|
|
12703
|
+
var DocsSectionSchema3 = z35.lazy(
|
|
12704
|
+
() => z35.object({
|
|
12705
|
+
title: z35.string(),
|
|
12706
|
+
icon: z35.string().optional(),
|
|
12707
|
+
items: z35.array(NavigationItemSchema3),
|
|
12708
|
+
urlSlug: z35.string(),
|
|
12709
|
+
skipUrlSlug: z35.boolean(),
|
|
12710
|
+
collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
|
|
12711
|
+
collapsible: z35.boolean().optional(),
|
|
12712
|
+
collapsedByDefault: z35.boolean().optional(),
|
|
12713
|
+
hidden: z35.boolean().optional(),
|
|
12714
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12691
12715
|
overviewPageId: PageIdSchema2.optional()
|
|
12692
12716
|
})
|
|
12693
12717
|
);
|
|
12694
|
-
var NavigationItemSchema3 =
|
|
12695
|
-
() =>
|
|
12696
|
-
|
|
12697
|
-
type:
|
|
12718
|
+
var NavigationItemSchema3 = z35.lazy(
|
|
12719
|
+
() => z35.discriminatedUnion("type", [
|
|
12720
|
+
z35.object({
|
|
12721
|
+
type: z35.literal("page"),
|
|
12698
12722
|
...PageMetadataSchema.shape
|
|
12699
12723
|
}),
|
|
12700
|
-
|
|
12701
|
-
type:
|
|
12724
|
+
z35.object({
|
|
12725
|
+
type: z35.literal("api"),
|
|
12702
12726
|
...ApiSectionSchema3.shape
|
|
12703
12727
|
}),
|
|
12704
|
-
|
|
12705
|
-
type:
|
|
12728
|
+
z35.object({
|
|
12729
|
+
type: z35.literal("apiV2"),
|
|
12706
12730
|
...ApiSectionV2Schema.shape
|
|
12707
12731
|
}),
|
|
12708
|
-
|
|
12709
|
-
type:
|
|
12710
|
-
title:
|
|
12711
|
-
icon:
|
|
12712
|
-
items:
|
|
12713
|
-
urlSlug:
|
|
12714
|
-
skipUrlSlug:
|
|
12715
|
-
collapsed:
|
|
12716
|
-
collapsible:
|
|
12717
|
-
collapsedByDefault:
|
|
12718
|
-
hidden:
|
|
12719
|
-
fullSlug:
|
|
12732
|
+
z35.object({
|
|
12733
|
+
type: z35.literal("section"),
|
|
12734
|
+
title: z35.string(),
|
|
12735
|
+
icon: z35.string().optional(),
|
|
12736
|
+
items: z35.array(NavigationItemSchema3),
|
|
12737
|
+
urlSlug: z35.string(),
|
|
12738
|
+
skipUrlSlug: z35.boolean(),
|
|
12739
|
+
collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
|
|
12740
|
+
collapsible: z35.boolean().optional(),
|
|
12741
|
+
collapsedByDefault: z35.boolean().optional(),
|
|
12742
|
+
hidden: z35.boolean().optional(),
|
|
12743
|
+
fullSlug: z35.array(z35.string()).optional(),
|
|
12720
12744
|
overviewPageId: PageIdSchema2.optional()
|
|
12721
12745
|
}),
|
|
12722
|
-
|
|
12723
|
-
type:
|
|
12746
|
+
z35.object({
|
|
12747
|
+
type: z35.literal("link"),
|
|
12724
12748
|
...LinkMetadataSchema.shape
|
|
12725
12749
|
}),
|
|
12726
|
-
|
|
12727
|
-
type:
|
|
12750
|
+
z35.object({
|
|
12751
|
+
type: z35.literal("changelog"),
|
|
12728
12752
|
...ChangelogSectionSchema.shape
|
|
12729
12753
|
}),
|
|
12730
|
-
|
|
12731
|
-
type:
|
|
12754
|
+
z35.object({
|
|
12755
|
+
type: z35.literal("changelogV3"),
|
|
12732
12756
|
...ChangelogSectionV3Schema.shape
|
|
12733
12757
|
})
|
|
12734
12758
|
])
|
|
12735
12759
|
);
|
|
12736
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
12737
|
-
tabs:
|
|
12738
|
-
tabsV2:
|
|
12760
|
+
var UnversionedTabbedNavigationConfigSchema3 = z35.object({
|
|
12761
|
+
tabs: z35.array(NavigationTabSchema3).optional(),
|
|
12762
|
+
tabsV2: z35.array(NavigationTabV2Schema2).optional(),
|
|
12739
12763
|
landingPage: PageMetadataSchema.optional()
|
|
12740
12764
|
});
|
|
12741
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
12742
|
-
items:
|
|
12765
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z35.object({
|
|
12766
|
+
items: z35.array(NavigationItemSchema3),
|
|
12743
12767
|
landingPage: PageMetadataSchema.optional()
|
|
12744
12768
|
});
|
|
12745
|
-
var UnversionedNavigationConfigSchema3 =
|
|
12769
|
+
var UnversionedNavigationConfigSchema3 = z35.union([
|
|
12746
12770
|
UnversionedTabbedNavigationConfigSchema3,
|
|
12747
12771
|
UnversionedUntabbedNavigationConfigSchema3
|
|
12748
12772
|
]);
|
|
12749
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
12773
|
+
var VersionedNavigationConfigDataSchema3 = z35.object({
|
|
12750
12774
|
version: VersionIdSchema2,
|
|
12751
|
-
urlSlug:
|
|
12775
|
+
urlSlug: z35.string().optional(),
|
|
12752
12776
|
availability: AvailabilitySchema2.optional(),
|
|
12753
12777
|
config: UnversionedNavigationConfigSchema3
|
|
12754
12778
|
});
|
|
12755
|
-
var VersionedNavigationConfigSchema3 =
|
|
12756
|
-
versions:
|
|
12779
|
+
var VersionedNavigationConfigSchema3 = z35.object({
|
|
12780
|
+
versions: z35.array(VersionedNavigationConfigDataSchema3)
|
|
12757
12781
|
});
|
|
12758
|
-
var NavigationConfigSchema3 =
|
|
12759
|
-
var DocsDbConfigSchema =
|
|
12760
|
-
title:
|
|
12782
|
+
var NavigationConfigSchema3 = z35.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
12783
|
+
var DocsDbConfigSchema = z35.object({
|
|
12784
|
+
title: z35.string().optional(),
|
|
12761
12785
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
12762
|
-
languages:
|
|
12786
|
+
languages: z35.array(LanguageSchema).optional(),
|
|
12763
12787
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
12764
12788
|
announcement: AnnouncementConfigSchema.optional(),
|
|
12765
12789
|
navigation: NavigationConfigSchema3.optional(),
|
|
12766
|
-
root:
|
|
12767
|
-
navbarLinks:
|
|
12768
|
-
footerLinks:
|
|
12769
|
-
hideNavLinks:
|
|
12790
|
+
root: z35.custom().optional(),
|
|
12791
|
+
navbarLinks: z35.array(NavbarLinkSchema).optional(),
|
|
12792
|
+
footerLinks: z35.array(FooterLinkSchema).optional(),
|
|
12793
|
+
hideNavLinks: z35.boolean().optional(),
|
|
12770
12794
|
logoHeight: HeightSchema.optional(),
|
|
12771
12795
|
logoHref: UrlSchema2.optional(),
|
|
12772
|
-
logoRightText:
|
|
12796
|
+
logoRightText: z35.string().optional(),
|
|
12773
12797
|
favicon: FileIdSchema2.optional(),
|
|
12774
12798
|
agents: AgentsConfigSchema.optional(),
|
|
12775
12799
|
metadata: MetadataConfigSchema.optional(),
|
|
12776
|
-
redirects:
|
|
12800
|
+
redirects: z35.array(RedirectConfigSchema).optional(),
|
|
12777
12801
|
backgroundImage: FileIdSchema2.optional(),
|
|
12778
12802
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
12779
12803
|
layout: DocsLayoutConfigSchema.optional(),
|
|
12780
12804
|
theme: DocsThemeConfigSchema.optional(),
|
|
12781
|
-
globalTheme:
|
|
12805
|
+
globalTheme: z35.string().optional(),
|
|
12782
12806
|
settings: DocsSettingsConfigSchema.optional(),
|
|
12783
12807
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
12784
12808
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -12788,40 +12812,40 @@ var DocsDbConfigSchema = z34.object({
|
|
|
12788
12812
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
12789
12813
|
pageActions: PageActionsConfigSchema.optional(),
|
|
12790
12814
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
12791
|
-
header:
|
|
12792
|
-
footer:
|
|
12815
|
+
header: z35.string().optional(),
|
|
12816
|
+
footer: z35.string().optional(),
|
|
12793
12817
|
logo: FileIdSchema2.optional(),
|
|
12794
12818
|
logoV2: ThemedFileIdSchema.optional(),
|
|
12795
12819
|
colors: ColorsConfigSchema.optional(),
|
|
12796
12820
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
12797
12821
|
typography: DocsTypographyConfigSchema.optional()
|
|
12798
12822
|
});
|
|
12799
|
-
var DocsDefinitionDbV1Schema =
|
|
12800
|
-
pages:
|
|
12801
|
-
referencedApis:
|
|
12802
|
-
files:
|
|
12823
|
+
var DocsDefinitionDbV1Schema = z35.object({
|
|
12824
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12825
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12826
|
+
files: z35.record(FileIdSchema2, DbFileInfoSchema),
|
|
12803
12827
|
config: DocsDbConfigSchema,
|
|
12804
12828
|
colors: ColorsConfigSchema.optional()
|
|
12805
12829
|
});
|
|
12806
|
-
var DocsDefinitionDbV2Schema =
|
|
12807
|
-
pages:
|
|
12808
|
-
referencedApis:
|
|
12809
|
-
files:
|
|
12830
|
+
var DocsDefinitionDbV2Schema = z35.object({
|
|
12831
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12832
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12833
|
+
files: z35.record(FileIdSchema2, DbFileInfoSchema),
|
|
12810
12834
|
config: DocsDbConfigSchema,
|
|
12811
12835
|
colors: ColorsConfigSchema.optional(),
|
|
12812
12836
|
typography: DocsTypographyConfigSchema.optional()
|
|
12813
12837
|
});
|
|
12814
|
-
var DocsDefinitionDbV3Schema =
|
|
12815
|
-
pages:
|
|
12816
|
-
referencedApis:
|
|
12817
|
-
files:
|
|
12838
|
+
var DocsDefinitionDbV3Schema = z35.object({
|
|
12839
|
+
pages: z35.record(PageIdSchema2, PageContentSchema),
|
|
12840
|
+
referencedApis: z35.array(ApiDefinitionIdSchema2),
|
|
12841
|
+
files: z35.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
12818
12842
|
config: DocsDbConfigSchema,
|
|
12819
|
-
jsFiles:
|
|
12843
|
+
jsFiles: z35.record(z35.string(), z35.string()).optional()
|
|
12820
12844
|
});
|
|
12821
|
-
var DocsDefinitionDbSchema =
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12845
|
+
var DocsDefinitionDbSchema = z35.discriminatedUnion("type", [
|
|
12846
|
+
z35.object({ type: z35.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
12847
|
+
z35.object({ type: z35.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
12848
|
+
z35.object({ type: z35.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
12825
12849
|
]);
|
|
12826
12850
|
|
|
12827
12851
|
// src/client/DocsV1Read.ts
|
|
@@ -13596,100 +13620,100 @@ __export(DocsLatest_exports, {
|
|
|
13596
13620
|
});
|
|
13597
13621
|
|
|
13598
13622
|
// src/client/docs-types/latest.ts
|
|
13599
|
-
import * as
|
|
13600
|
-
var StringOrStringListSchema =
|
|
13601
|
-
var TwitterCardSettingSchema2 =
|
|
13602
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
13603
|
-
"@type":
|
|
13604
|
-
position:
|
|
13605
|
-
name:
|
|
13606
|
-
item:
|
|
13607
|
-
});
|
|
13608
|
-
var JsonLdBreadcrumbListSchema =
|
|
13609
|
-
"@context":
|
|
13610
|
-
"@type":
|
|
13611
|
-
itemListElement:
|
|
13612
|
-
});
|
|
13613
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
13623
|
+
import * as z36 from "zod";
|
|
13624
|
+
var StringOrStringListSchema = z36.union([z36.string(), z36.array(z36.string())]);
|
|
13625
|
+
var TwitterCardSettingSchema2 = z36.enum(["summary", "summary_large_image", "app", "player"]);
|
|
13626
|
+
var JsonLdBreadcrumbListElementSchema = z36.object({
|
|
13627
|
+
"@type": z36.literal("ListItem"),
|
|
13628
|
+
position: z36.number(),
|
|
13629
|
+
name: z36.string(),
|
|
13630
|
+
item: z36.string().optional()
|
|
13631
|
+
});
|
|
13632
|
+
var JsonLdBreadcrumbListSchema = z36.object({
|
|
13633
|
+
"@context": z36.literal("https://schema.org"),
|
|
13634
|
+
"@type": z36.literal("BreadcrumbList"),
|
|
13635
|
+
itemListElement: z36.array(JsonLdBreadcrumbListElementSchema)
|
|
13636
|
+
});
|
|
13637
|
+
var WithJsonLdBreadcrumbsSchema = z36.object({
|
|
13614
13638
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
13615
13639
|
});
|
|
13616
|
-
var WithMetadataConfigSchema =
|
|
13617
|
-
"og:site_name":
|
|
13618
|
-
"og:title":
|
|
13619
|
-
"og:description":
|
|
13620
|
-
"og:url":
|
|
13640
|
+
var WithMetadataConfigSchema = z36.object({
|
|
13641
|
+
"og:site_name": z36.string().optional(),
|
|
13642
|
+
"og:title": z36.string().optional(),
|
|
13643
|
+
"og:description": z36.string().optional(),
|
|
13644
|
+
"og:url": z36.string().optional(),
|
|
13621
13645
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
13622
|
-
"og:image:width":
|
|
13623
|
-
"og:image:height":
|
|
13624
|
-
"og:locale":
|
|
13646
|
+
"og:image:width": z36.number().optional(),
|
|
13647
|
+
"og:image:height": z36.number().optional(),
|
|
13648
|
+
"og:locale": z36.string().optional(),
|
|
13625
13649
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
13626
|
-
"twitter:title":
|
|
13627
|
-
"twitter:description":
|
|
13628
|
-
"twitter:handle":
|
|
13650
|
+
"twitter:title": z36.string().optional(),
|
|
13651
|
+
"twitter:description": z36.string().optional(),
|
|
13652
|
+
"twitter:handle": z36.string().optional(),
|
|
13629
13653
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
13630
|
-
"twitter:site":
|
|
13631
|
-
"twitter:url":
|
|
13654
|
+
"twitter:site": z36.string().optional(),
|
|
13655
|
+
"twitter:url": z36.string().optional(),
|
|
13632
13656
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
13633
13657
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
13634
|
-
"og:dynamic":
|
|
13658
|
+
"og:dynamic": z36.boolean().optional(),
|
|
13635
13659
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
13636
|
-
"og:dynamic:text-color":
|
|
13637
|
-
"og:dynamic:background-color":
|
|
13638
|
-
"og:dynamic:show-logo":
|
|
13639
|
-
"og:dynamic:show-section":
|
|
13640
|
-
"og:dynamic:show-description":
|
|
13641
|
-
"og:dynamic:show-url":
|
|
13642
|
-
"og:dynamic:show-gradient":
|
|
13643
|
-
noindex:
|
|
13644
|
-
nofollow:
|
|
13660
|
+
"og:dynamic:text-color": z36.string().optional(),
|
|
13661
|
+
"og:dynamic:background-color": z36.string().optional(),
|
|
13662
|
+
"og:dynamic:show-logo": z36.boolean().optional(),
|
|
13663
|
+
"og:dynamic:show-section": z36.boolean().optional(),
|
|
13664
|
+
"og:dynamic:show-description": z36.boolean().optional(),
|
|
13665
|
+
"og:dynamic:show-url": z36.boolean().optional(),
|
|
13666
|
+
"og:dynamic:show-gradient": z36.boolean().optional(),
|
|
13667
|
+
noindex: z36.boolean().optional(),
|
|
13668
|
+
nofollow: z36.boolean().optional(),
|
|
13645
13669
|
keywords: StringOrStringListSchema.optional()
|
|
13646
13670
|
});
|
|
13647
|
-
var LayoutSchema =
|
|
13648
|
-
var LogoConfigurationSchema =
|
|
13671
|
+
var LayoutSchema = z36.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
13672
|
+
var LogoConfigurationSchema = z36.object({
|
|
13649
13673
|
light: FileIdOrUrlSchema.optional(),
|
|
13650
13674
|
dark: FileIdOrUrlSchema.optional()
|
|
13651
13675
|
});
|
|
13652
|
-
var LogoSchema =
|
|
13653
|
-
var BreadcrumbItemSchema =
|
|
13654
|
-
title:
|
|
13655
|
-
pointsTo:
|
|
13676
|
+
var LogoSchema = z36.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
13677
|
+
var BreadcrumbItemSchema = z36.object({
|
|
13678
|
+
title: z36.string(),
|
|
13679
|
+
pointsTo: z36.string().optional()
|
|
13656
13680
|
});
|
|
13657
13681
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
13658
|
-
|
|
13682
|
+
z36.object({
|
|
13659
13683
|
layout: LayoutSchema.optional(),
|
|
13660
|
-
slug:
|
|
13661
|
-
title:
|
|
13662
|
-
headline:
|
|
13663
|
-
description:
|
|
13664
|
-
subtitle:
|
|
13684
|
+
slug: z36.string().optional(),
|
|
13685
|
+
title: z36.string().optional(),
|
|
13686
|
+
headline: z36.string().optional(),
|
|
13687
|
+
description: z36.string().optional(),
|
|
13688
|
+
subtitle: z36.string().optional(),
|
|
13665
13689
|
logo: LogoSchema.optional(),
|
|
13666
13690
|
image: FileIdOrUrlSchema.optional(),
|
|
13667
|
-
"edit-this-page-url":
|
|
13668
|
-
"hide-toc":
|
|
13669
|
-
"force-toc":
|
|
13670
|
-
"hide-nav-links":
|
|
13671
|
-
"max-toc-depth":
|
|
13672
|
-
"hide-feedback":
|
|
13673
|
-
"hide-page-actions":
|
|
13674
|
-
"no-image-zoom":
|
|
13675
|
-
breadcrumb:
|
|
13676
|
-
excerpt:
|
|
13677
|
-
"canonical-url":
|
|
13691
|
+
"edit-this-page-url": z36.string().optional(),
|
|
13692
|
+
"hide-toc": z36.boolean().optional(),
|
|
13693
|
+
"force-toc": z36.boolean().optional(),
|
|
13694
|
+
"hide-nav-links": z36.boolean().optional(),
|
|
13695
|
+
"max-toc-depth": z36.number().optional(),
|
|
13696
|
+
"hide-feedback": z36.boolean().optional(),
|
|
13697
|
+
"hide-page-actions": z36.boolean().optional(),
|
|
13698
|
+
"no-image-zoom": z36.boolean().optional(),
|
|
13699
|
+
breadcrumb: z36.array(BreadcrumbItemSchema).optional(),
|
|
13700
|
+
excerpt: z36.string().optional(),
|
|
13701
|
+
"canonical-url": z36.string().optional(),
|
|
13678
13702
|
tags: StringOrStringListSchema.optional(),
|
|
13679
|
-
"last-updated":
|
|
13703
|
+
"last-updated": z36.string().optional(),
|
|
13680
13704
|
/**
|
|
13681
13705
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
13682
13706
|
* records, so it can be faceted and filtered on by full path
|
|
13683
13707
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
13684
13708
|
*/
|
|
13685
|
-
"search-metadata":
|
|
13709
|
+
"search-metadata": z36.record(z36.unknown()).optional()
|
|
13686
13710
|
})
|
|
13687
13711
|
);
|
|
13688
|
-
var ResolvedMdxSchema =
|
|
13689
|
-
code:
|
|
13712
|
+
var ResolvedMdxSchema = z36.object({
|
|
13713
|
+
code: z36.string(),
|
|
13690
13714
|
frontmatter: FrontmatterSchema,
|
|
13691
|
-
scope:
|
|
13692
|
-
jsxRefs:
|
|
13715
|
+
scope: z36.record(z36.string(), z36.unknown()),
|
|
13716
|
+
jsxRefs: z36.array(z36.string()).optional()
|
|
13693
13717
|
});
|
|
13694
13718
|
|
|
13695
13719
|
// src/client/DocsV1Commons.ts
|
|
@@ -14129,9 +14153,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
14129
14153
|
}
|
|
14130
14154
|
}
|
|
14131
14155
|
}
|
|
14132
|
-
function generateExampleObject(
|
|
14156
|
+
function generateExampleObject(object35, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
14133
14157
|
const example = {};
|
|
14134
|
-
for (const property of getAllObjectProperties(
|
|
14158
|
+
for (const property of getAllObjectProperties(object35, resolveTypeById)) {
|
|
14135
14159
|
const value = generateExampleFromTypeReference(
|
|
14136
14160
|
property.valueType,
|
|
14137
14161
|
resolveTypeById,
|
|
@@ -14315,10 +14339,10 @@ function generateExamplePrimitive(reference) {
|
|
|
14315
14339
|
return reference.name;
|
|
14316
14340
|
}
|
|
14317
14341
|
}
|
|
14318
|
-
function getAllObjectProperties(
|
|
14342
|
+
function getAllObjectProperties(object35, resolveTypeById) {
|
|
14319
14343
|
return [
|
|
14320
|
-
...
|
|
14321
|
-
...
|
|
14344
|
+
...object35.properties,
|
|
14345
|
+
...object35.extends.flatMap((typeId) => {
|
|
14322
14346
|
let type = resolveTypeById(typeId);
|
|
14323
14347
|
if (type == null) {
|
|
14324
14348
|
return [];
|