@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-7409d6cc42
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 +391 -240
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +391 -240
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +659 -508
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +659 -508
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +642 -463
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +626 -461
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/client/FdrClient.d.ts +5 -5
- package/dist/types/orpc-client/client.d.ts +2 -0
- package/dist/types/orpc-client/client.d.ts.map +1 -1
- package/dist/types/orpc-client/index.d.ts +1 -0
- package/dist/types/orpc-client/index.d.ts.map +1 -1
- package/dist/types/orpc-client/mcp-hosting/client.d.ts +12 -0
- package/dist/types/orpc-client/mcp-hosting/client.d.ts.map +1 -0
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts +2236 -0
- package/dist/types/orpc-client/mcp-hosting/contract.d.ts.map +1 -0
- package/dist/types/orpc-client/mcp-hosting/index.d.ts +3 -0
- package/dist/types/orpc-client/mcp-hosting/index.d.ts.map +1 -0
- package/dist/types/orpc-client/pdf-export/contract.d.ts +20 -20
- package/package.json +1 -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, string35) => {
|
|
511
|
+
const isLastWord = m.length + offset >= string35.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(object34, types, parentVisitedTypeIds) {
|
|
2604
|
+
const cached = UnwrapObjectTypeCache.get(object34);
|
|
2605
2605
|
if (cached != null) {
|
|
2606
2606
|
return cached;
|
|
2607
2607
|
}
|
|
2608
|
-
const directProperties =
|
|
2609
|
-
const extraProperties =
|
|
2608
|
+
const directProperties = object34.properties;
|
|
2609
|
+
const extraProperties = object34.extraProperties;
|
|
2610
2610
|
const descriptions = [];
|
|
2611
2611
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2612
|
-
const extendedProperties =
|
|
2612
|
+
const extendedProperties = object34.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(object33, types, parentVisitedTypeIds) {
|
|
|
2656
2656
|
};
|
|
2657
2657
|
});
|
|
2658
2658
|
});
|
|
2659
|
-
const propertyKeys = new Set(
|
|
2659
|
+
const propertyKeys = new Set(object34.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(object33, types, parentVisitedTypeIds) {
|
|
|
2679
2679
|
extraProperties,
|
|
2680
2680
|
visitedTypeIds
|
|
2681
2681
|
};
|
|
2682
|
-
UnwrapObjectTypeCache.set(
|
|
2682
|
+
UnwrapObjectTypeCache.set(object34, toRet2);
|
|
2683
2683
|
return toRet2;
|
|
2684
2684
|
}
|
|
2685
2685
|
const properties = (0, import_array.sortBy)(
|
|
@@ -2691,7 +2691,7 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
|
|
|
2691
2691
|
]
|
|
2692
2692
|
);
|
|
2693
2693
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2694
|
-
UnwrapObjectTypeCache.set(
|
|
2694
|
+
UnwrapObjectTypeCache.set(object34, 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: (object34) => {
|
|
4393
|
+
const objectProperties = unwrapObjectType(object34, types).properties;
|
|
4394
4394
|
return isPlainObject_default(obj) ? (0, import_object.mapValues)(
|
|
4395
4395
|
sortKeysBy(
|
|
4396
4396
|
obj,
|
|
@@ -11139,103 +11139,253 @@ function createGitClient(options) {
|
|
|
11139
11139
|
return (0, import_client21.createORPCClient)(link);
|
|
11140
11140
|
}
|
|
11141
11141
|
|
|
11142
|
-
// src/orpc-client/
|
|
11142
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
11143
11143
|
var import_client22 = require("@orpc/client");
|
|
11144
11144
|
var import_fetch17 = require("@orpc/openapi-client/fetch");
|
|
11145
11145
|
|
|
11146
|
-
// src/orpc-client/
|
|
11146
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
11147
11147
|
var import_contract31 = require("@orpc/contract");
|
|
11148
11148
|
var z25 = __toESM(require("zod"), 1);
|
|
11149
|
-
var
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
footerRightTemplate: z25.string().nullish(),
|
|
11160
|
-
scope: PdfExportScopeSchema.nullish(),
|
|
11161
|
-
hideCover: z25.boolean().nullish(),
|
|
11162
|
-
hideToc: z25.boolean().nullish()
|
|
11163
|
-
});
|
|
11164
|
-
var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
|
|
11165
|
-
z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
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
|
+
var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
11152
|
+
z25.object({ type: z25.literal("bearer") }),
|
|
11153
|
+
z25.object({
|
|
11154
|
+
type: z25.literal("apiKey"),
|
|
11155
|
+
paramName: z25.string().min(1),
|
|
11156
|
+
in: z25.enum(["header", "query", "cookie"])
|
|
11157
|
+
}),
|
|
11158
|
+
z25.object({ type: z25.literal("basic") })
|
|
11166
11159
|
]);
|
|
11167
|
-
var
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11160
|
+
var McpMetadataSchema = z25.object({
|
|
11161
|
+
name: z25.string().min(1),
|
|
11162
|
+
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
11163
|
+
toolsetMetadata: z25.array(
|
|
11164
|
+
z25.object({
|
|
11165
|
+
name: z25.string(),
|
|
11166
|
+
title: z25.string(),
|
|
11167
|
+
description: z25.string(),
|
|
11168
|
+
toolCount: z25.number().int().nonnegative()
|
|
11169
|
+
}).strict()
|
|
11170
|
+
),
|
|
11171
|
+
auth: z25.object({
|
|
11172
|
+
schemes: z25.array(McpAuthSchemeSchema),
|
|
11173
|
+
required: z25.boolean()
|
|
11174
|
+
}).strict(),
|
|
11175
|
+
skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
|
|
11176
|
+
environmentVariables: z25.array(
|
|
11177
|
+
z25.object({
|
|
11178
|
+
name: z25.string(),
|
|
11179
|
+
description: z25.string(),
|
|
11180
|
+
required: z25.boolean()
|
|
11181
|
+
}).strict()
|
|
11182
|
+
),
|
|
11183
|
+
baseUrl: z25.string().url(),
|
|
11184
|
+
followRedirects: z25.boolean(),
|
|
11185
|
+
maxRedirects: z25.number().int().nonnegative(),
|
|
11186
|
+
allowedRedirectHosts: z25.array(z25.string())
|
|
11187
|
+
}).passthrough();
|
|
11188
|
+
var McpModuleSchema = z25.object({
|
|
11189
|
+
name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
11190
|
+
hash: z25.string().regex(/^[0-9a-f]{64}$/),
|
|
11191
|
+
contentType: z25.string().min(1)
|
|
11192
|
+
}).strict();
|
|
11193
|
+
var McpGitInputSchema = z25.object({
|
|
11194
|
+
repoUrl: z25.string(),
|
|
11195
|
+
branch: z25.string(),
|
|
11196
|
+
commitSha: z25.string().optional()
|
|
11197
|
+
}).strict();
|
|
11198
|
+
var DeployMcpServerInputSchema = z25.object({
|
|
11199
|
+
orgId: McpPathSegmentSchema,
|
|
11200
|
+
slug: McpPathSegmentSchema,
|
|
11201
|
+
mainModule: z25.string().min(1),
|
|
11202
|
+
compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
11203
|
+
compatibilityFlags: z25.array(z25.string()),
|
|
11204
|
+
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
11205
|
+
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
11206
|
+
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
11207
|
+
modules: z25.array(McpModuleSchema).min(1).max(20),
|
|
11208
|
+
metadata: McpMetadataSchema,
|
|
11209
|
+
// Everything else in this schema is bounded; keep the opaque config
|
|
11210
|
+
// blob bounded too so it cannot balloon the JSONB row.
|
|
11211
|
+
config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
11212
|
+
message: "config must be at most 64KB serialized"
|
|
11213
|
+
}),
|
|
11214
|
+
generatorName: z25.string().min(1),
|
|
11215
|
+
generatorVersion: z25.string().min(1),
|
|
11216
|
+
cliVersion: z25.string().optional(),
|
|
11217
|
+
git: McpGitInputSchema.optional()
|
|
11218
|
+
}).strict().superRefine((input, ctx) => {
|
|
11219
|
+
const names = /* @__PURE__ */ new Set();
|
|
11220
|
+
for (const module2 of input.modules) {
|
|
11221
|
+
if (names.has(module2.name)) {
|
|
11222
|
+
ctx.addIssue({
|
|
11223
|
+
code: z25.ZodIssueCode.custom,
|
|
11224
|
+
path: ["modules"],
|
|
11225
|
+
message: `duplicate module name: ${module2.name}`
|
|
11226
|
+
});
|
|
11227
|
+
}
|
|
11228
|
+
names.add(module2.name);
|
|
11229
|
+
}
|
|
11230
|
+
if (!names.has(input.mainModule)) {
|
|
11231
|
+
ctx.addIssue({
|
|
11232
|
+
code: z25.ZodIssueCode.custom,
|
|
11233
|
+
path: ["mainModule"],
|
|
11234
|
+
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
11235
|
+
});
|
|
11236
|
+
}
|
|
11237
|
+
});
|
|
11238
|
+
var GetMcpServerInputSchema = z25.object({
|
|
11239
|
+
orgId: McpPathSegmentSchema,
|
|
11240
|
+
slug: McpPathSegmentSchema
|
|
11184
11241
|
});
|
|
11185
|
-
var
|
|
11186
|
-
|
|
11242
|
+
var ListMcpServersInputSchema = z25.object({
|
|
11243
|
+
orgId: z25.string()
|
|
11187
11244
|
});
|
|
11188
|
-
var
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11245
|
+
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
11246
|
+
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
11247
|
+
var McpDeploymentSummarySchema = z25.object({
|
|
11248
|
+
id: z25.string(),
|
|
11249
|
+
status: McpDeploymentStatusSchema,
|
|
11250
|
+
/** True when this deployment is the one the server currently serves. */
|
|
11251
|
+
isActive: z25.boolean(),
|
|
11252
|
+
generatorVersion: z25.string(),
|
|
11253
|
+
createdAt: z25.string(),
|
|
11254
|
+
createdBy: z25.string().nullish(),
|
|
11255
|
+
error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
|
|
11192
11256
|
});
|
|
11193
|
-
var
|
|
11257
|
+
var McpServerSchema = z25.object({
|
|
11258
|
+
id: z25.string(),
|
|
11194
11259
|
orgId: z25.string(),
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11260
|
+
slug: z25.string(),
|
|
11261
|
+
/** The server is serving iff this is set; it names the serving deployment. */
|
|
11262
|
+
activeDeploymentId: z25.string().nullish(),
|
|
11263
|
+
/** Most recent publication attempt — how the last deploy went. */
|
|
11264
|
+
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
11265
|
+
url: z25.string().url(),
|
|
11266
|
+
createdAt: z25.string(),
|
|
11267
|
+
updatedAt: z25.string()
|
|
11268
|
+
});
|
|
11269
|
+
var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
|
|
11270
|
+
var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
|
|
11271
|
+
var mcpHostingContract = {
|
|
11272
|
+
deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
11273
|
+
getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
11274
|
+
listServers: import_contract31.oc.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
|
|
11275
|
+
listDeployments: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
|
|
11276
|
+
deleteServer: import_contract31.oc.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
|
|
11277
|
+
};
|
|
11278
|
+
|
|
11279
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
11280
|
+
function createMcpHostingClient(options) {
|
|
11281
|
+
const link = new import_fetch17.OpenAPILink(mcpHostingContract, {
|
|
11282
|
+
url: `${options.baseUrl}/mcp-hosting`,
|
|
11283
|
+
headers: () => ({
|
|
11284
|
+
Authorization: `Bearer ${options.token}`,
|
|
11285
|
+
...options.headers
|
|
11286
|
+
}),
|
|
11287
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11288
|
+
});
|
|
11289
|
+
return (0, import_client22.createORPCClient)(link);
|
|
11290
|
+
}
|
|
11291
|
+
|
|
11292
|
+
// src/orpc-client/pdf-export/client.ts
|
|
11293
|
+
var import_client23 = require("@orpc/client");
|
|
11294
|
+
var import_fetch18 = require("@orpc/openapi-client/fetch");
|
|
11295
|
+
|
|
11296
|
+
// src/orpc-client/pdf-export/contract.ts
|
|
11297
|
+
var import_contract33 = require("@orpc/contract");
|
|
11298
|
+
var z26 = __toESM(require("zod"), 1);
|
|
11299
|
+
var PdfExportScopeSchema = z26.object({
|
|
11300
|
+
pageSlugs: z26.array(z26.string())
|
|
11301
|
+
});
|
|
11302
|
+
var PdfExportOptionsV1Schema = z26.object({
|
|
11303
|
+
coverTitle: z26.string().nullish(),
|
|
11304
|
+
coverSubtitle: z26.string().nullish(),
|
|
11305
|
+
hideCoverFooter: z26.boolean().nullish(),
|
|
11306
|
+
headerLeftTemplate: z26.string().nullish(),
|
|
11307
|
+
headerRightTemplate: z26.string().nullish(),
|
|
11308
|
+
footerLeftTemplate: z26.string().nullish(),
|
|
11309
|
+
footerRightTemplate: z26.string().nullish(),
|
|
11310
|
+
scope: PdfExportScopeSchema.nullish(),
|
|
11311
|
+
hideCover: z26.boolean().nullish(),
|
|
11312
|
+
hideToc: z26.boolean().nullish()
|
|
11313
|
+
});
|
|
11314
|
+
var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
|
|
11315
|
+
z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
11316
|
+
]);
|
|
11317
|
+
var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
11318
|
+
var PdfExportTaskSchema = z26.object({
|
|
11319
|
+
id: z26.string(),
|
|
11320
|
+
orgId: z26.string(),
|
|
11321
|
+
docsUrl: z26.string(),
|
|
11322
|
+
productId: z26.string().nullish(),
|
|
11323
|
+
versionId: z26.string().nullish(),
|
|
11324
|
+
requesterName: z26.string().nullish(),
|
|
11325
|
+
notifyEmails: z26.array(z26.string()).nullish(),
|
|
11326
|
+
status: PdfExportTaskStatusSchema,
|
|
11327
|
+
options: PdfExportOptionsSchema.nullish(),
|
|
11328
|
+
createdAt: z26.string(),
|
|
11329
|
+
startedAt: z26.string().nullish(),
|
|
11330
|
+
completedAt: z26.string().nullish(),
|
|
11331
|
+
fileName: z26.string().nullish(),
|
|
11332
|
+
sizeBytes: z26.number().nullish(),
|
|
11333
|
+
errorMessage: z26.string().nullish()
|
|
11334
|
+
});
|
|
11335
|
+
var ListPdfExportTasksResponseSchema = z26.object({
|
|
11336
|
+
tasks: z26.array(PdfExportTaskSchema)
|
|
11337
|
+
});
|
|
11338
|
+
var PdfExportDownloadResponseSchema = z26.object({
|
|
11339
|
+
downloadUrl: z26.string(),
|
|
11340
|
+
fileName: z26.string(),
|
|
11341
|
+
sizeBytes: z26.number()
|
|
11342
|
+
});
|
|
11343
|
+
var CreatePdfExportTaskInputSchema = z26.object({
|
|
11344
|
+
orgId: z26.string(),
|
|
11345
|
+
docsUrl: z26.string(),
|
|
11346
|
+
productId: z26.string().nullish(),
|
|
11347
|
+
versionId: z26.string().nullish(),
|
|
11348
|
+
requesterName: z26.string().nullish(),
|
|
11199
11349
|
options: PdfExportOptionsSchema.nullish()
|
|
11200
11350
|
});
|
|
11201
|
-
var ListPdfExportTasksInputSchema =
|
|
11202
|
-
orgId:
|
|
11203
|
-
docsUrl:
|
|
11204
|
-
limit:
|
|
11351
|
+
var ListPdfExportTasksInputSchema = z26.object({
|
|
11352
|
+
orgId: z26.string(),
|
|
11353
|
+
docsUrl: z26.string(),
|
|
11354
|
+
limit: z26.coerce.number().nullish()
|
|
11205
11355
|
});
|
|
11206
|
-
var GetPdfExportTaskInputSchema =
|
|
11207
|
-
taskId:
|
|
11356
|
+
var GetPdfExportTaskInputSchema = z26.object({
|
|
11357
|
+
taskId: z26.string()
|
|
11208
11358
|
});
|
|
11209
|
-
var UpdatePdfExportTaskInputSchema =
|
|
11210
|
-
taskId:
|
|
11359
|
+
var UpdatePdfExportTaskInputSchema = z26.object({
|
|
11360
|
+
taskId: z26.string(),
|
|
11211
11361
|
status: PdfExportTaskStatusSchema,
|
|
11212
|
-
startedAt:
|
|
11213
|
-
completedAt:
|
|
11214
|
-
s3Key:
|
|
11215
|
-
fileName:
|
|
11216
|
-
sizeBytes:
|
|
11217
|
-
errorMessage:
|
|
11362
|
+
startedAt: z26.string().nullish(),
|
|
11363
|
+
completedAt: z26.string().nullish(),
|
|
11364
|
+
s3Key: z26.string().nullish(),
|
|
11365
|
+
fileName: z26.string().nullish(),
|
|
11366
|
+
sizeBytes: z26.number().nullish(),
|
|
11367
|
+
errorMessage: z26.string().nullish()
|
|
11218
11368
|
});
|
|
11219
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
11220
|
-
taskId:
|
|
11369
|
+
var GetPdfExportDownloadUrlInputSchema = z26.object({
|
|
11370
|
+
taskId: z26.string()
|
|
11221
11371
|
});
|
|
11222
|
-
var CleanupPdfExportsResponseSchema =
|
|
11223
|
-
expiredTasksDeleted:
|
|
11224
|
-
s3ObjectsDeleted:
|
|
11225
|
-
timedOutTasksFailed:
|
|
11372
|
+
var CleanupPdfExportsResponseSchema = z26.object({
|
|
11373
|
+
expiredTasksDeleted: z26.number(),
|
|
11374
|
+
s3ObjectsDeleted: z26.number(),
|
|
11375
|
+
timedOutTasksFailed: z26.number()
|
|
11226
11376
|
});
|
|
11227
11377
|
var pdfExportContract = {
|
|
11228
|
-
createTask:
|
|
11229
|
-
listTasks:
|
|
11230
|
-
getTask:
|
|
11231
|
-
updateTask:
|
|
11232
|
-
getDownloadUrl:
|
|
11233
|
-
cleanup:
|
|
11378
|
+
createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11379
|
+
listTasks: import_contract33.oc.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
11380
|
+
getTask: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11381
|
+
updateTask: import_contract33.oc.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11382
|
+
getDownloadUrl: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
11383
|
+
cleanup: import_contract33.oc.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
11234
11384
|
};
|
|
11235
11385
|
|
|
11236
11386
|
// src/orpc-client/pdf-export/client.ts
|
|
11237
11387
|
function createPdfExportClient(options) {
|
|
11238
|
-
const link = new
|
|
11388
|
+
const link = new import_fetch18.OpenAPILink(pdfExportContract, {
|
|
11239
11389
|
url: `${options.baseUrl}/pdf-export`,
|
|
11240
11390
|
headers: () => ({
|
|
11241
11391
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11243,17 +11393,17 @@ function createPdfExportClient(options) {
|
|
|
11243
11393
|
}),
|
|
11244
11394
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11245
11395
|
});
|
|
11246
|
-
return (0,
|
|
11396
|
+
return (0, import_client23.createORPCClient)(link);
|
|
11247
11397
|
}
|
|
11248
11398
|
|
|
11249
11399
|
// src/orpc-client/sdks/client.ts
|
|
11250
|
-
var
|
|
11251
|
-
var
|
|
11400
|
+
var import_client24 = require("@orpc/client");
|
|
11401
|
+
var import_fetch19 = require("@orpc/openapi-client/fetch");
|
|
11252
11402
|
|
|
11253
11403
|
// src/orpc-client/sdks/contract.ts
|
|
11254
|
-
var
|
|
11255
|
-
var
|
|
11256
|
-
var LanguageEnumSchema =
|
|
11404
|
+
var import_contract35 = require("@orpc/contract");
|
|
11405
|
+
var z27 = __toESM(require("zod"), 1);
|
|
11406
|
+
var LanguageEnumSchema = z27.enum([
|
|
11257
11407
|
"Go",
|
|
11258
11408
|
"TypeScript",
|
|
11259
11409
|
"Java",
|
|
@@ -11264,23 +11414,23 @@ var LanguageEnumSchema = z26.enum([
|
|
|
11264
11414
|
"Swift",
|
|
11265
11415
|
"Rust"
|
|
11266
11416
|
]);
|
|
11267
|
-
var VersionBumpEnumSchema =
|
|
11268
|
-
var ComputeSemanticVersionInputSchema =
|
|
11269
|
-
package:
|
|
11417
|
+
var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
11418
|
+
var ComputeSemanticVersionInputSchema = z27.object({
|
|
11419
|
+
package: z27.string(),
|
|
11270
11420
|
language: LanguageEnumSchema,
|
|
11271
|
-
githubRepository:
|
|
11421
|
+
githubRepository: z27.string().nullish()
|
|
11272
11422
|
});
|
|
11273
|
-
var ComputeSemanticVersionOutputSchema =
|
|
11274
|
-
version:
|
|
11423
|
+
var ComputeSemanticVersionOutputSchema = z27.object({
|
|
11424
|
+
version: z27.string(),
|
|
11275
11425
|
bump: VersionBumpEnumSchema
|
|
11276
11426
|
});
|
|
11277
11427
|
var sdksContract = {
|
|
11278
|
-
computeSemanticVersion:
|
|
11428
|
+
computeSemanticVersion: import_contract35.oc.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
11279
11429
|
};
|
|
11280
11430
|
|
|
11281
11431
|
// src/orpc-client/sdks/client.ts
|
|
11282
11432
|
function createSdksClient(options) {
|
|
11283
|
-
const link = new
|
|
11433
|
+
const link = new import_fetch19.OpenAPILink(sdksContract, {
|
|
11284
11434
|
url: `${options.baseUrl}/sdks`,
|
|
11285
11435
|
headers: () => ({
|
|
11286
11436
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11288,50 +11438,50 @@ function createSdksClient(options) {
|
|
|
11288
11438
|
}),
|
|
11289
11439
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11290
11440
|
});
|
|
11291
|
-
return (0,
|
|
11441
|
+
return (0, import_client24.createORPCClient)(link);
|
|
11292
11442
|
}
|
|
11293
11443
|
|
|
11294
11444
|
// src/orpc-client/slugs/client.ts
|
|
11295
|
-
var
|
|
11296
|
-
var
|
|
11445
|
+
var import_client25 = require("@orpc/client");
|
|
11446
|
+
var import_fetch20 = require("@orpc/openapi-client/fetch");
|
|
11297
11447
|
|
|
11298
11448
|
// src/orpc-client/slugs/contract.ts
|
|
11299
|
-
var
|
|
11300
|
-
var
|
|
11301
|
-
var SlugsInputSchema =
|
|
11302
|
-
domain:
|
|
11303
|
-
basepath:
|
|
11304
|
-
});
|
|
11305
|
-
var SlugEntrySchema =
|
|
11306
|
-
orgId:
|
|
11307
|
-
domain:
|
|
11308
|
-
basepath:
|
|
11309
|
-
slug:
|
|
11310
|
-
lastUpdated:
|
|
11311
|
-
});
|
|
11312
|
-
var MarkdownEntrySchema =
|
|
11313
|
-
orgId:
|
|
11314
|
-
domain:
|
|
11315
|
-
basepath:
|
|
11316
|
-
pageId:
|
|
11317
|
-
slug:
|
|
11318
|
-
hash:
|
|
11319
|
-
lastUpdated:
|
|
11320
|
-
});
|
|
11321
|
-
var GetSlugEntriesResponseSchema =
|
|
11322
|
-
entries:
|
|
11323
|
-
});
|
|
11324
|
-
var GetMarkdownEntriesResponseSchema =
|
|
11325
|
-
entries:
|
|
11449
|
+
var import_contract37 = require("@orpc/contract");
|
|
11450
|
+
var z28 = __toESM(require("zod"), 1);
|
|
11451
|
+
var SlugsInputSchema = z28.object({
|
|
11452
|
+
domain: z28.string(),
|
|
11453
|
+
basepath: z28.string().optional().default("")
|
|
11454
|
+
});
|
|
11455
|
+
var SlugEntrySchema = z28.object({
|
|
11456
|
+
orgId: z28.string(),
|
|
11457
|
+
domain: z28.string(),
|
|
11458
|
+
basepath: z28.string(),
|
|
11459
|
+
slug: z28.string(),
|
|
11460
|
+
lastUpdated: z28.string()
|
|
11461
|
+
});
|
|
11462
|
+
var MarkdownEntrySchema = z28.object({
|
|
11463
|
+
orgId: z28.string(),
|
|
11464
|
+
domain: z28.string(),
|
|
11465
|
+
basepath: z28.string(),
|
|
11466
|
+
pageId: z28.string(),
|
|
11467
|
+
slug: z28.string(),
|
|
11468
|
+
hash: z28.string(),
|
|
11469
|
+
lastUpdated: z28.string()
|
|
11470
|
+
});
|
|
11471
|
+
var GetSlugEntriesResponseSchema = z28.object({
|
|
11472
|
+
entries: z28.array(SlugEntrySchema)
|
|
11473
|
+
});
|
|
11474
|
+
var GetMarkdownEntriesResponseSchema = z28.object({
|
|
11475
|
+
entries: z28.array(MarkdownEntrySchema)
|
|
11326
11476
|
});
|
|
11327
11477
|
var slugsContract = {
|
|
11328
|
-
getSlugEntries:
|
|
11329
|
-
getMarkdownEntries:
|
|
11478
|
+
getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
11479
|
+
getMarkdownEntries: import_contract37.oc.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
11330
11480
|
};
|
|
11331
11481
|
|
|
11332
11482
|
// src/orpc-client/slugs/client.ts
|
|
11333
11483
|
function createSlugsClient(options) {
|
|
11334
|
-
const link = new
|
|
11484
|
+
const link = new import_fetch20.OpenAPILink(slugsContract, {
|
|
11335
11485
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
11336
11486
|
headers: () => ({
|
|
11337
11487
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11339,12 +11489,12 @@ function createSlugsClient(options) {
|
|
|
11339
11489
|
}),
|
|
11340
11490
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11341
11491
|
});
|
|
11342
|
-
return (0,
|
|
11492
|
+
return (0, import_client25.createORPCClient)(link);
|
|
11343
11493
|
}
|
|
11344
11494
|
|
|
11345
11495
|
// src/orpc-client/snippets/client.ts
|
|
11346
|
-
var
|
|
11347
|
-
var
|
|
11496
|
+
var import_client26 = require("@orpc/client");
|
|
11497
|
+
var import_fetch21 = require("@orpc/openapi-client/fetch");
|
|
11348
11498
|
|
|
11349
11499
|
// src/orpc-client/snippets/contract.ts
|
|
11350
11500
|
var contract_exports3 = {};
|
|
@@ -11354,110 +11504,110 @@ __export(contract_exports3, {
|
|
|
11354
11504
|
snippetsContract: () => snippetsContract,
|
|
11355
11505
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
11356
11506
|
});
|
|
11357
|
-
var
|
|
11358
|
-
var
|
|
11359
|
-
var TypeScriptSdkSchema =
|
|
11360
|
-
var PythonSdkSchema =
|
|
11361
|
-
var GoSdkSchema =
|
|
11362
|
-
var RubySdkSchema =
|
|
11363
|
-
var JavaSdkSchema =
|
|
11364
|
-
var CsharpSdkSchema =
|
|
11365
|
-
var BaseSnippetCreateSchema =
|
|
11507
|
+
var import_contract39 = require("@orpc/contract");
|
|
11508
|
+
var z29 = __toESM(require("zod"), 1);
|
|
11509
|
+
var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11510
|
+
var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11511
|
+
var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
|
|
11512
|
+
var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
|
|
11513
|
+
var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
|
|
11514
|
+
var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11515
|
+
var BaseSnippetCreateSchema = z29.object({
|
|
11366
11516
|
endpoint: EndpointIdentifierSchema,
|
|
11367
|
-
exampleIdentifier:
|
|
11517
|
+
exampleIdentifier: z29.string().nullish()
|
|
11368
11518
|
});
|
|
11369
|
-
var SdkSnippetsCreateSchema =
|
|
11370
|
-
|
|
11371
|
-
type:
|
|
11519
|
+
var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
|
|
11520
|
+
z29.object({
|
|
11521
|
+
type: z29.literal("typescript"),
|
|
11372
11522
|
sdk: TypeScriptSdkSchema,
|
|
11373
|
-
snippets:
|
|
11523
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11374
11524
|
}),
|
|
11375
|
-
|
|
11376
|
-
type:
|
|
11525
|
+
z29.object({
|
|
11526
|
+
type: z29.literal("python"),
|
|
11377
11527
|
sdk: PythonSdkSchema,
|
|
11378
|
-
snippets:
|
|
11528
|
+
snippets: z29.array(
|
|
11379
11529
|
BaseSnippetCreateSchema.extend({
|
|
11380
|
-
snippet:
|
|
11530
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
11381
11531
|
})
|
|
11382
11532
|
)
|
|
11383
11533
|
}),
|
|
11384
|
-
|
|
11385
|
-
type:
|
|
11534
|
+
z29.object({
|
|
11535
|
+
type: z29.literal("go"),
|
|
11386
11536
|
sdk: GoSdkSchema,
|
|
11387
|
-
snippets:
|
|
11537
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11388
11538
|
}),
|
|
11389
|
-
|
|
11390
|
-
type:
|
|
11539
|
+
z29.object({
|
|
11540
|
+
type: z29.literal("java"),
|
|
11391
11541
|
sdk: JavaSdkSchema,
|
|
11392
|
-
snippets:
|
|
11542
|
+
snippets: z29.array(
|
|
11393
11543
|
BaseSnippetCreateSchema.extend({
|
|
11394
|
-
snippet:
|
|
11544
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
11395
11545
|
})
|
|
11396
11546
|
)
|
|
11397
11547
|
}),
|
|
11398
|
-
|
|
11399
|
-
type:
|
|
11548
|
+
z29.object({
|
|
11549
|
+
type: z29.literal("ruby"),
|
|
11400
11550
|
sdk: RubySdkSchema,
|
|
11401
|
-
snippets:
|
|
11551
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11402
11552
|
}),
|
|
11403
|
-
|
|
11404
|
-
type:
|
|
11553
|
+
z29.object({
|
|
11554
|
+
type: z29.literal("csharp"),
|
|
11405
11555
|
sdk: CsharpSdkSchema,
|
|
11406
|
-
snippets:
|
|
11556
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11407
11557
|
})
|
|
11408
11558
|
]);
|
|
11409
11559
|
var snippetsFactoryContract = {
|
|
11410
|
-
createSnippetsForSdk:
|
|
11411
|
-
|
|
11412
|
-
orgId:
|
|
11413
|
-
apiId:
|
|
11560
|
+
createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
|
|
11561
|
+
z29.object({
|
|
11562
|
+
orgId: z29.string(),
|
|
11563
|
+
apiId: z29.string(),
|
|
11414
11564
|
snippets: SdkSnippetsCreateSchema
|
|
11415
11565
|
})
|
|
11416
11566
|
)
|
|
11417
11567
|
};
|
|
11418
|
-
var ParameterPayloadSchema =
|
|
11419
|
-
name:
|
|
11420
|
-
value:
|
|
11568
|
+
var ParameterPayloadSchema = z29.object({
|
|
11569
|
+
name: z29.string(),
|
|
11570
|
+
value: z29.unknown()
|
|
11421
11571
|
});
|
|
11422
|
-
var AuthPayloadSchema =
|
|
11423
|
-
|
|
11424
|
-
|
|
11572
|
+
var AuthPayloadSchema = z29.discriminatedUnion("type", [
|
|
11573
|
+
z29.object({ type: z29.literal("bearer"), token: z29.string() }),
|
|
11574
|
+
z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
|
|
11425
11575
|
]);
|
|
11426
|
-
var CustomSnippetPayloadSchema =
|
|
11427
|
-
headers:
|
|
11428
|
-
pathParameters:
|
|
11429
|
-
queryParameters:
|
|
11430
|
-
requestBody:
|
|
11576
|
+
var CustomSnippetPayloadSchema = z29.object({
|
|
11577
|
+
headers: z29.array(ParameterPayloadSchema).nullish(),
|
|
11578
|
+
pathParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
11579
|
+
queryParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
11580
|
+
requestBody: z29.unknown().nullish(),
|
|
11431
11581
|
auth: AuthPayloadSchema.nullish()
|
|
11432
11582
|
});
|
|
11433
11583
|
var snippetsContract = {
|
|
11434
|
-
get:
|
|
11435
|
-
|
|
11436
|
-
orgId:
|
|
11437
|
-
apiId:
|
|
11438
|
-
sdks:
|
|
11584
|
+
get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
|
|
11585
|
+
z29.object({
|
|
11586
|
+
orgId: z29.string().nullish(),
|
|
11587
|
+
apiId: z29.string().nullish(),
|
|
11588
|
+
sdks: z29.array(SdkRequestSchema).nullish(),
|
|
11439
11589
|
endpoint: EndpointIdentifierSchema,
|
|
11440
|
-
exampleIdentifier:
|
|
11590
|
+
exampleIdentifier: z29.string().nullish(),
|
|
11441
11591
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
11442
11592
|
})
|
|
11443
|
-
).output(
|
|
11444
|
-
load:
|
|
11445
|
-
|
|
11446
|
-
orgId:
|
|
11447
|
-
apiId:
|
|
11448
|
-
sdks:
|
|
11593
|
+
).output(z29.array(z29.unknown())),
|
|
11594
|
+
load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
|
|
11595
|
+
z29.object({
|
|
11596
|
+
orgId: z29.string().nullish(),
|
|
11597
|
+
apiId: z29.string().nullish(),
|
|
11598
|
+
sdks: z29.array(SdkRequestSchema).nullish()
|
|
11449
11599
|
})
|
|
11450
11600
|
).output(
|
|
11451
|
-
|
|
11452
|
-
next:
|
|
11453
|
-
snippets:
|
|
11601
|
+
z29.object({
|
|
11602
|
+
next: z29.number().nullish(),
|
|
11603
|
+
snippets: z29.record(z29.string(), z29.unknown())
|
|
11454
11604
|
})
|
|
11455
11605
|
)
|
|
11456
11606
|
};
|
|
11457
11607
|
|
|
11458
11608
|
// src/orpc-client/snippets/client.ts
|
|
11459
11609
|
function createSnippetsFactoryClient(options) {
|
|
11460
|
-
const link = new
|
|
11610
|
+
const link = new import_fetch21.OpenAPILink(snippetsFactoryContract, {
|
|
11461
11611
|
url: `${options.baseUrl}/snippets`,
|
|
11462
11612
|
headers: () => ({
|
|
11463
11613
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11465,10 +11615,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
11465
11615
|
}),
|
|
11466
11616
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11467
11617
|
});
|
|
11468
|
-
return (0,
|
|
11618
|
+
return (0, import_client26.createORPCClient)(link);
|
|
11469
11619
|
}
|
|
11470
11620
|
function createSnippetsClient(options) {
|
|
11471
|
-
const link = new
|
|
11621
|
+
const link = new import_fetch21.OpenAPILink(snippetsContract, {
|
|
11472
11622
|
url: `${options.baseUrl}/snippets`,
|
|
11473
11623
|
headers: () => ({
|
|
11474
11624
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11476,63 +11626,63 @@ function createSnippetsClient(options) {
|
|
|
11476
11626
|
}),
|
|
11477
11627
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11478
11628
|
});
|
|
11479
|
-
return (0,
|
|
11629
|
+
return (0, import_client26.createORPCClient)(link);
|
|
11480
11630
|
}
|
|
11481
11631
|
|
|
11482
11632
|
// src/orpc-client/templates/client.ts
|
|
11483
|
-
var
|
|
11484
|
-
var
|
|
11633
|
+
var import_client27 = require("@orpc/client");
|
|
11634
|
+
var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
11485
11635
|
|
|
11486
11636
|
// src/orpc-client/templates/contract.ts
|
|
11487
|
-
var
|
|
11488
|
-
var
|
|
11489
|
-
var SnippetRegistryEntrySchema =
|
|
11637
|
+
var import_contract41 = require("@orpc/contract");
|
|
11638
|
+
var z30 = __toESM(require("zod"), 1);
|
|
11639
|
+
var SnippetRegistryEntrySchema = z30.object({
|
|
11490
11640
|
sdk: SdkSchema,
|
|
11491
|
-
endpointId:
|
|
11492
|
-
path:
|
|
11641
|
+
endpointId: z30.object({
|
|
11642
|
+
path: z30.string(),
|
|
11493
11643
|
method: HttpMethodSchema,
|
|
11494
|
-
identifierOverride:
|
|
11644
|
+
identifierOverride: z30.string().nullish()
|
|
11495
11645
|
}),
|
|
11496
|
-
snippetTemplate:
|
|
11497
|
-
type:
|
|
11498
|
-
functionInvocation:
|
|
11499
|
-
clientInstantiation:
|
|
11646
|
+
snippetTemplate: z30.object({
|
|
11647
|
+
type: z30.literal("v1"),
|
|
11648
|
+
functionInvocation: z30.unknown(),
|
|
11649
|
+
clientInstantiation: z30.string()
|
|
11500
11650
|
}),
|
|
11501
|
-
additionalTemplates:
|
|
11651
|
+
additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
|
|
11502
11652
|
});
|
|
11503
|
-
var RegisterInputSchema =
|
|
11504
|
-
orgId:
|
|
11505
|
-
apiId:
|
|
11506
|
-
apiDefinitionId:
|
|
11653
|
+
var RegisterInputSchema = z30.object({
|
|
11654
|
+
orgId: z30.string(),
|
|
11655
|
+
apiId: z30.string(),
|
|
11656
|
+
apiDefinitionId: z30.string(),
|
|
11507
11657
|
snippet: SnippetRegistryEntrySchema
|
|
11508
11658
|
});
|
|
11509
|
-
var RegisterBatchInputSchema =
|
|
11510
|
-
orgId:
|
|
11511
|
-
apiId:
|
|
11512
|
-
apiDefinitionId:
|
|
11513
|
-
snippets:
|
|
11659
|
+
var RegisterBatchInputSchema = z30.object({
|
|
11660
|
+
orgId: z30.string(),
|
|
11661
|
+
apiId: z30.string(),
|
|
11662
|
+
apiDefinitionId: z30.string(),
|
|
11663
|
+
snippets: z30.array(SnippetRegistryEntrySchema)
|
|
11514
11664
|
});
|
|
11515
|
-
var GetInputSchema =
|
|
11516
|
-
orgId:
|
|
11517
|
-
apiId:
|
|
11665
|
+
var GetInputSchema = z30.object({
|
|
11666
|
+
orgId: z30.string(),
|
|
11667
|
+
apiId: z30.string(),
|
|
11518
11668
|
sdk: SdkSchema,
|
|
11519
|
-
endpointId:
|
|
11520
|
-
path:
|
|
11669
|
+
endpointId: z30.object({
|
|
11670
|
+
path: z30.string(),
|
|
11521
11671
|
method: HttpMethodSchema,
|
|
11522
|
-
identifierOverride:
|
|
11672
|
+
identifierOverride: z30.string().nullish()
|
|
11523
11673
|
})
|
|
11524
11674
|
});
|
|
11525
|
-
var EndpointSnippetTemplateSchema =
|
|
11675
|
+
var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
|
|
11526
11676
|
var templatesContract = {
|
|
11527
|
-
register:
|
|
11528
|
-
registerBatch:
|
|
11529
|
-
get:
|
|
11677
|
+
register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
11678
|
+
registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
11679
|
+
get: import_contract41.oc.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
11530
11680
|
};
|
|
11531
11681
|
|
|
11532
11682
|
// src/orpc-client/templates/client.ts
|
|
11533
11683
|
function createTemplatesClient(options) {
|
|
11534
11684
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
11535
|
-
const link = new
|
|
11685
|
+
const link = new import_fetch22.OpenAPILink(templatesContract, {
|
|
11536
11686
|
url: `${baseUrl}/snippet-template`,
|
|
11537
11687
|
headers: () => ({
|
|
11538
11688
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11540,36 +11690,36 @@ function createTemplatesClient(options) {
|
|
|
11540
11690
|
}),
|
|
11541
11691
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11542
11692
|
});
|
|
11543
|
-
return (0,
|
|
11693
|
+
return (0, import_client27.createORPCClient)(link);
|
|
11544
11694
|
}
|
|
11545
11695
|
|
|
11546
11696
|
// src/orpc-client/tokens/client.ts
|
|
11547
|
-
var
|
|
11548
|
-
var
|
|
11697
|
+
var import_client28 = require("@orpc/client");
|
|
11698
|
+
var import_fetch23 = require("@orpc/openapi-client/fetch");
|
|
11549
11699
|
|
|
11550
11700
|
// src/orpc-client/tokens/contract.ts
|
|
11551
|
-
var
|
|
11552
|
-
var
|
|
11553
|
-
var GenerateTokenInputSchema =
|
|
11554
|
-
orgId:
|
|
11555
|
-
scope:
|
|
11701
|
+
var import_contract43 = require("@orpc/contract");
|
|
11702
|
+
var z31 = __toESM(require("zod"), 1);
|
|
11703
|
+
var GenerateTokenInputSchema = z31.object({
|
|
11704
|
+
orgId: z31.string(),
|
|
11705
|
+
scope: z31.string()
|
|
11556
11706
|
});
|
|
11557
|
-
var RevokeTokenInputSchema =
|
|
11558
|
-
orgId:
|
|
11559
|
-
tokenId:
|
|
11707
|
+
var RevokeTokenInputSchema = z31.object({
|
|
11708
|
+
orgId: z31.string(),
|
|
11709
|
+
tokenId: z31.string()
|
|
11560
11710
|
});
|
|
11561
|
-
var GenerateTokenOutputSchema =
|
|
11562
|
-
token:
|
|
11563
|
-
id:
|
|
11711
|
+
var GenerateTokenOutputSchema = z31.object({
|
|
11712
|
+
token: z31.string(),
|
|
11713
|
+
id: z31.string()
|
|
11564
11714
|
});
|
|
11565
11715
|
var tokensContract = {
|
|
11566
|
-
generate:
|
|
11567
|
-
revoke:
|
|
11716
|
+
generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
11717
|
+
revoke: import_contract43.oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
11568
11718
|
};
|
|
11569
11719
|
|
|
11570
11720
|
// src/orpc-client/tokens/client.ts
|
|
11571
11721
|
function createTokensClient(options) {
|
|
11572
|
-
const link = new
|
|
11722
|
+
const link = new import_fetch23.OpenAPILink(tokensContract, {
|
|
11573
11723
|
url: `${options.baseUrl}/tokens`,
|
|
11574
11724
|
headers: () => ({
|
|
11575
11725
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11577,7 +11727,7 @@ function createTokensClient(options) {
|
|
|
11577
11727
|
}),
|
|
11578
11728
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11579
11729
|
});
|
|
11580
|
-
return (0,
|
|
11730
|
+
return (0, import_client28.createORPCClient)(link);
|
|
11581
11731
|
}
|
|
11582
11732
|
|
|
11583
11733
|
// src/orpc-client/client.ts
|
|
@@ -11601,6 +11751,7 @@ function createFdrORPCClient(options) {
|
|
|
11601
11751
|
versions: createGeneratorVersionsClient(normalizedOptions)
|
|
11602
11752
|
},
|
|
11603
11753
|
git: createGitClient(normalizedOptions),
|
|
11754
|
+
mcpHosting: createMcpHostingClient(normalizedOptions),
|
|
11604
11755
|
slugs: createSlugsClient(normalizedOptions),
|
|
11605
11756
|
pdfExport: createPdfExportClient(normalizedOptions),
|
|
11606
11757
|
sdks: createSdksClient(normalizedOptions),
|
|
@@ -11837,85 +11988,85 @@ __export(APIV1Db_exports, {
|
|
|
11837
11988
|
});
|
|
11838
11989
|
|
|
11839
11990
|
// src/orpc-client/api/contract-db.ts
|
|
11840
|
-
var
|
|
11841
|
-
var EndpointSnippetTemplatesSchema =
|
|
11842
|
-
typescript:
|
|
11843
|
-
python:
|
|
11991
|
+
var z32 = __toESM(require("zod"), 1);
|
|
11992
|
+
var EndpointSnippetTemplatesSchema = z32.object({
|
|
11993
|
+
typescript: z32.unknown().nullish(),
|
|
11994
|
+
python: z32.unknown().nullish()
|
|
11844
11995
|
});
|
|
11845
|
-
var DbHttpRequestSchema =
|
|
11846
|
-
description:
|
|
11847
|
-
contentType:
|
|
11996
|
+
var DbHttpRequestSchema = z32.object({
|
|
11997
|
+
description: z32.string().nullish(),
|
|
11998
|
+
contentType: z32.string().nullish(),
|
|
11848
11999
|
type: RegisterHttpRequestBodyShapeSchema
|
|
11849
12000
|
});
|
|
11850
|
-
var DbHttpRequestsV2Schema =
|
|
11851
|
-
requests:
|
|
12001
|
+
var DbHttpRequestsV2Schema = z32.object({
|
|
12002
|
+
requests: z32.array(DbHttpRequestSchema).nullish()
|
|
11852
12003
|
});
|
|
11853
|
-
var DbEndpointDefinitionSchema =
|
|
11854
|
-
description:
|
|
11855
|
-
subtitle:
|
|
12004
|
+
var DbEndpointDefinitionSchema = z32.object({
|
|
12005
|
+
description: z32.string().nullish(),
|
|
12006
|
+
subtitle: z32.string().nullish(),
|
|
11856
12007
|
availability: AvailabilitySchema.nullish(),
|
|
11857
|
-
authed:
|
|
11858
|
-
authV2:
|
|
11859
|
-
multiAuth:
|
|
12008
|
+
authed: z32.boolean().nullish(),
|
|
12009
|
+
authV2: z32.array(AuthSchemeIdSchema).nullish(),
|
|
12010
|
+
multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
|
|
11860
12011
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
11861
|
-
environments:
|
|
12012
|
+
environments: z32.array(EnvironmentSchema).nullish(),
|
|
11862
12013
|
method: HttpMethodSchema,
|
|
11863
12014
|
id: EndpointIdSchema,
|
|
11864
|
-
originalEndpointId:
|
|
11865
|
-
urlSlug:
|
|
11866
|
-
migratedFromUrlSlugs:
|
|
11867
|
-
name:
|
|
12015
|
+
originalEndpointId: z32.string().nullish(),
|
|
12016
|
+
urlSlug: z32.string(),
|
|
12017
|
+
migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
|
|
12018
|
+
name: z32.string().nullish(),
|
|
11868
12019
|
path: EndpointPathSchema,
|
|
11869
|
-
queryParameters:
|
|
11870
|
-
headers:
|
|
11871
|
-
responseHeaders:
|
|
12020
|
+
queryParameters: z32.array(QueryParameterSchema),
|
|
12021
|
+
headers: z32.array(HeaderSchema),
|
|
12022
|
+
responseHeaders: z32.array(HeaderSchema).nullish(),
|
|
11872
12023
|
request: DbHttpRequestSchema.nullish(),
|
|
11873
12024
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
11874
12025
|
response: RegisterHttpResponseSchema.nullish(),
|
|
11875
12026
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
11876
|
-
errors:
|
|
11877
|
-
errorsV2:
|
|
11878
|
-
examples:
|
|
12027
|
+
errors: z32.array(ErrorDeclarationSchema).nullish(),
|
|
12028
|
+
errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
12029
|
+
examples: z32.array(RegisterExampleEndpointCallSchema),
|
|
11879
12030
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
11880
12031
|
protocol: ProtocolSchema.nullish(),
|
|
11881
|
-
includeInApiExplorer:
|
|
11882
|
-
});
|
|
11883
|
-
var DbApiDefinitionPackageSchema =
|
|
11884
|
-
endpoints:
|
|
11885
|
-
websockets:
|
|
11886
|
-
webhooks:
|
|
11887
|
-
graphqlOperations:
|
|
11888
|
-
types:
|
|
11889
|
-
subpackages:
|
|
12032
|
+
includeInApiExplorer: z32.boolean().nullish()
|
|
12033
|
+
});
|
|
12034
|
+
var DbApiDefinitionPackageSchema = z32.object({
|
|
12035
|
+
endpoints: z32.array(DbEndpointDefinitionSchema),
|
|
12036
|
+
websockets: z32.array(RegisterWebSocketChannelSchema).nullish(),
|
|
12037
|
+
webhooks: z32.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
12038
|
+
graphqlOperations: z32.array(GraphQlOperationSchema).nullish(),
|
|
12039
|
+
types: z32.array(TypeIdSchema),
|
|
12040
|
+
subpackages: z32.array(SubpackageIdSchema),
|
|
11890
12041
|
pointsTo: SubpackageIdSchema.nullish()
|
|
11891
12042
|
});
|
|
11892
|
-
var DbApiDefinitionSubpackageSchema =
|
|
12043
|
+
var DbApiDefinitionSubpackageSchema = z32.object({
|
|
11893
12044
|
...DbApiDefinitionPackageSchema.shape,
|
|
11894
|
-
description:
|
|
12045
|
+
description: z32.string().nullish(),
|
|
11895
12046
|
parent: SubpackageIdSchema.nullish(),
|
|
11896
12047
|
subpackageId: SubpackageIdSchema,
|
|
11897
|
-
name:
|
|
11898
|
-
urlSlug:
|
|
11899
|
-
displayName:
|
|
12048
|
+
name: z32.string(),
|
|
12049
|
+
urlSlug: z32.string(),
|
|
12050
|
+
displayName: z32.string().nullish()
|
|
11900
12051
|
});
|
|
11901
|
-
var DbApiDefinitionSchema =
|
|
12052
|
+
var DbApiDefinitionSchema = z32.object({
|
|
11902
12053
|
id: ApiDefinitionIdSchema,
|
|
11903
|
-
apiName:
|
|
11904
|
-
specVersion:
|
|
12054
|
+
apiName: z32.string().nullish(),
|
|
12055
|
+
specVersion: z32.string().nullish(),
|
|
11905
12056
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
11906
|
-
types:
|
|
11907
|
-
subpackages:
|
|
12057
|
+
types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
12058
|
+
subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
11908
12059
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
11909
12060
|
auth: ApiAuthSchema.nullish(),
|
|
11910
|
-
authSchemes:
|
|
11911
|
-
hasMultipleBaseUrls:
|
|
12061
|
+
authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12062
|
+
hasMultipleBaseUrls: z32.boolean(),
|
|
11912
12063
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
11913
|
-
globalHeaders:
|
|
12064
|
+
globalHeaders: z32.array(HeaderSchema).nullish()
|
|
11914
12065
|
});
|
|
11915
|
-
var DbEndpointWithContextSchema =
|
|
12066
|
+
var DbEndpointWithContextSchema = z32.object({
|
|
11916
12067
|
endpoint: DbEndpointDefinitionSchema,
|
|
11917
|
-
authSchemes:
|
|
11918
|
-
globalHeaders:
|
|
12068
|
+
authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12069
|
+
globalHeaders: z32.array(HeaderSchema).nullish()
|
|
11919
12070
|
});
|
|
11920
12071
|
|
|
11921
12072
|
// src/client/APIV1Read.ts
|
|
@@ -12493,15 +12644,15 @@ __export(DocsV1Db_exports, {
|
|
|
12493
12644
|
});
|
|
12494
12645
|
|
|
12495
12646
|
// src/client/docs-types/db.ts
|
|
12496
|
-
var
|
|
12647
|
+
var z34 = __toESM(require("zod"), 1);
|
|
12497
12648
|
|
|
12498
12649
|
// src/client/docs-types/db-docsRead.ts
|
|
12499
|
-
var
|
|
12500
|
-
var BackgroundSchema2 =
|
|
12501
|
-
|
|
12502
|
-
|
|
12650
|
+
var z33 = __toESM(require("zod"), 1);
|
|
12651
|
+
var BackgroundSchema2 = z33.discriminatedUnion("type", [
|
|
12652
|
+
z33.object({ type: z33.literal("solid"), ...RgbaColorSchema.shape }),
|
|
12653
|
+
z33.object({ type: z33.literal("gradient") })
|
|
12503
12654
|
]);
|
|
12504
|
-
var ThemeConfigSchema3 =
|
|
12655
|
+
var ThemeConfigSchema3 = z33.object({
|
|
12505
12656
|
logo: FileIdSchema2.optional(),
|
|
12506
12657
|
backgroundImage: FileIdSchema2.optional(),
|
|
12507
12658
|
accentPrimary: RgbaColorSchema,
|
|
@@ -12523,174 +12674,174 @@ var ThemeConfigSchema3 = z32.object({
|
|
|
12523
12674
|
accent11: RgbaColorSchema.optional(),
|
|
12524
12675
|
accent12: RgbaColorSchema.optional()
|
|
12525
12676
|
});
|
|
12526
|
-
var DarkAndLightModeConfigSchema3 =
|
|
12677
|
+
var DarkAndLightModeConfigSchema3 = z33.object({
|
|
12527
12678
|
dark: ThemeConfigSchema3,
|
|
12528
12679
|
light: ThemeConfigSchema3
|
|
12529
12680
|
});
|
|
12530
|
-
var ColorsConfigV3Schema3 =
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12681
|
+
var ColorsConfigV3Schema3 = z33.discriminatedUnion("type", [
|
|
12682
|
+
z33.object({ type: z33.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
12683
|
+
z33.object({ type: z33.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
12684
|
+
z33.object({ type: z33.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
12534
12685
|
]);
|
|
12535
12686
|
|
|
12536
12687
|
// src/client/docs-types/db.ts
|
|
12537
|
-
var DbFileInfoSchema =
|
|
12538
|
-
s3Key:
|
|
12539
|
-
});
|
|
12540
|
-
var DbImageFileInfoSchema =
|
|
12541
|
-
s3Key:
|
|
12542
|
-
width:
|
|
12543
|
-
height:
|
|
12544
|
-
blurDataUrl:
|
|
12545
|
-
alt:
|
|
12546
|
-
});
|
|
12547
|
-
var DbFileInfoV2Schema =
|
|
12548
|
-
|
|
12549
|
-
|
|
12688
|
+
var DbFileInfoSchema = z34.object({
|
|
12689
|
+
s3Key: z34.string()
|
|
12690
|
+
});
|
|
12691
|
+
var DbImageFileInfoSchema = z34.object({
|
|
12692
|
+
s3Key: z34.string(),
|
|
12693
|
+
width: z34.number(),
|
|
12694
|
+
height: z34.number(),
|
|
12695
|
+
blurDataUrl: z34.string().optional(),
|
|
12696
|
+
alt: z34.string().optional()
|
|
12697
|
+
});
|
|
12698
|
+
var DbFileInfoV2Schema = z34.discriminatedUnion("type", [
|
|
12699
|
+
z34.object({ type: z34.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
12700
|
+
z34.object({ type: z34.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
12550
12701
|
]);
|
|
12551
|
-
var NavigationTabGroupSchema3 =
|
|
12552
|
-
() =>
|
|
12553
|
-
title:
|
|
12554
|
-
icon:
|
|
12555
|
-
items:
|
|
12556
|
-
urlSlug:
|
|
12557
|
-
skipUrlSlug:
|
|
12702
|
+
var NavigationTabGroupSchema3 = z34.lazy(
|
|
12703
|
+
() => z34.object({
|
|
12704
|
+
title: z34.string(),
|
|
12705
|
+
icon: z34.string().optional(),
|
|
12706
|
+
items: z34.array(NavigationItemSchema3),
|
|
12707
|
+
urlSlug: z34.string(),
|
|
12708
|
+
skipUrlSlug: z34.boolean().optional()
|
|
12558
12709
|
})
|
|
12559
12710
|
);
|
|
12560
|
-
var NavigationTabSchema3 =
|
|
12561
|
-
var NavigationTabV2Schema2 =
|
|
12562
|
-
() =>
|
|
12563
|
-
|
|
12564
|
-
type:
|
|
12565
|
-
title:
|
|
12566
|
-
icon:
|
|
12567
|
-
items:
|
|
12568
|
-
urlSlug:
|
|
12569
|
-
skipUrlSlug:
|
|
12711
|
+
var NavigationTabSchema3 = z34.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
12712
|
+
var NavigationTabV2Schema2 = z34.lazy(
|
|
12713
|
+
() => z34.discriminatedUnion("type", [
|
|
12714
|
+
z34.object({
|
|
12715
|
+
type: z34.literal("group"),
|
|
12716
|
+
title: z34.string(),
|
|
12717
|
+
icon: z34.string().optional(),
|
|
12718
|
+
items: z34.array(NavigationItemSchema3),
|
|
12719
|
+
urlSlug: z34.string(),
|
|
12720
|
+
skipUrlSlug: z34.boolean().optional()
|
|
12570
12721
|
}),
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12722
|
+
z34.object({ type: z34.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
12723
|
+
z34.object({ type: z34.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
12724
|
+
z34.object({ type: z34.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
12574
12725
|
])
|
|
12575
12726
|
);
|
|
12576
|
-
var ApiSectionSchema3 =
|
|
12577
|
-
title:
|
|
12578
|
-
icon:
|
|
12727
|
+
var ApiSectionSchema3 = z34.object({
|
|
12728
|
+
title: z34.string(),
|
|
12729
|
+
icon: z34.string().optional(),
|
|
12579
12730
|
api: ApiDefinitionIdSchema2,
|
|
12580
|
-
urlSlug:
|
|
12581
|
-
skipUrlSlug:
|
|
12731
|
+
urlSlug: z34.string(),
|
|
12732
|
+
skipUrlSlug: z34.boolean(),
|
|
12582
12733
|
artifacts: ApiArtifactsSchema.optional(),
|
|
12583
|
-
showErrors:
|
|
12734
|
+
showErrors: z34.boolean().optional(),
|
|
12584
12735
|
changelog: ChangelogSectionSchema.optional(),
|
|
12585
|
-
hidden:
|
|
12586
|
-
fullSlug:
|
|
12736
|
+
hidden: z34.boolean().optional(),
|
|
12737
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12587
12738
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
12588
|
-
longScrolling:
|
|
12589
|
-
flattened:
|
|
12590
|
-
});
|
|
12591
|
-
var DocsSectionSchema3 =
|
|
12592
|
-
() =>
|
|
12593
|
-
title:
|
|
12594
|
-
icon:
|
|
12595
|
-
items:
|
|
12596
|
-
urlSlug:
|
|
12597
|
-
skipUrlSlug:
|
|
12598
|
-
collapsed:
|
|
12599
|
-
collapsible:
|
|
12600
|
-
collapsedByDefault:
|
|
12601
|
-
hidden:
|
|
12602
|
-
fullSlug:
|
|
12739
|
+
longScrolling: z34.boolean().optional(),
|
|
12740
|
+
flattened: z34.boolean().optional()
|
|
12741
|
+
});
|
|
12742
|
+
var DocsSectionSchema3 = z34.lazy(
|
|
12743
|
+
() => z34.object({
|
|
12744
|
+
title: z34.string(),
|
|
12745
|
+
icon: z34.string().optional(),
|
|
12746
|
+
items: z34.array(NavigationItemSchema3),
|
|
12747
|
+
urlSlug: z34.string(),
|
|
12748
|
+
skipUrlSlug: z34.boolean(),
|
|
12749
|
+
collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
|
|
12750
|
+
collapsible: z34.boolean().optional(),
|
|
12751
|
+
collapsedByDefault: z34.boolean().optional(),
|
|
12752
|
+
hidden: z34.boolean().optional(),
|
|
12753
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12603
12754
|
overviewPageId: PageIdSchema2.optional()
|
|
12604
12755
|
})
|
|
12605
12756
|
);
|
|
12606
|
-
var NavigationItemSchema3 =
|
|
12607
|
-
() =>
|
|
12608
|
-
|
|
12609
|
-
type:
|
|
12757
|
+
var NavigationItemSchema3 = z34.lazy(
|
|
12758
|
+
() => z34.discriminatedUnion("type", [
|
|
12759
|
+
z34.object({
|
|
12760
|
+
type: z34.literal("page"),
|
|
12610
12761
|
...PageMetadataSchema.shape
|
|
12611
12762
|
}),
|
|
12612
|
-
|
|
12613
|
-
type:
|
|
12763
|
+
z34.object({
|
|
12764
|
+
type: z34.literal("api"),
|
|
12614
12765
|
...ApiSectionSchema3.shape
|
|
12615
12766
|
}),
|
|
12616
|
-
|
|
12617
|
-
type:
|
|
12767
|
+
z34.object({
|
|
12768
|
+
type: z34.literal("apiV2"),
|
|
12618
12769
|
...ApiSectionV2Schema.shape
|
|
12619
12770
|
}),
|
|
12620
|
-
|
|
12621
|
-
type:
|
|
12622
|
-
title:
|
|
12623
|
-
icon:
|
|
12624
|
-
items:
|
|
12625
|
-
urlSlug:
|
|
12626
|
-
skipUrlSlug:
|
|
12627
|
-
collapsed:
|
|
12628
|
-
collapsible:
|
|
12629
|
-
collapsedByDefault:
|
|
12630
|
-
hidden:
|
|
12631
|
-
fullSlug:
|
|
12771
|
+
z34.object({
|
|
12772
|
+
type: z34.literal("section"),
|
|
12773
|
+
title: z34.string(),
|
|
12774
|
+
icon: z34.string().optional(),
|
|
12775
|
+
items: z34.array(NavigationItemSchema3),
|
|
12776
|
+
urlSlug: z34.string(),
|
|
12777
|
+
skipUrlSlug: z34.boolean(),
|
|
12778
|
+
collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
|
|
12779
|
+
collapsible: z34.boolean().optional(),
|
|
12780
|
+
collapsedByDefault: z34.boolean().optional(),
|
|
12781
|
+
hidden: z34.boolean().optional(),
|
|
12782
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12632
12783
|
overviewPageId: PageIdSchema2.optional()
|
|
12633
12784
|
}),
|
|
12634
|
-
|
|
12635
|
-
type:
|
|
12785
|
+
z34.object({
|
|
12786
|
+
type: z34.literal("link"),
|
|
12636
12787
|
...LinkMetadataSchema.shape
|
|
12637
12788
|
}),
|
|
12638
|
-
|
|
12639
|
-
type:
|
|
12789
|
+
z34.object({
|
|
12790
|
+
type: z34.literal("changelog"),
|
|
12640
12791
|
...ChangelogSectionSchema.shape
|
|
12641
12792
|
}),
|
|
12642
|
-
|
|
12643
|
-
type:
|
|
12793
|
+
z34.object({
|
|
12794
|
+
type: z34.literal("changelogV3"),
|
|
12644
12795
|
...ChangelogSectionV3Schema.shape
|
|
12645
12796
|
})
|
|
12646
12797
|
])
|
|
12647
12798
|
);
|
|
12648
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
12649
|
-
tabs:
|
|
12650
|
-
tabsV2:
|
|
12799
|
+
var UnversionedTabbedNavigationConfigSchema3 = z34.object({
|
|
12800
|
+
tabs: z34.array(NavigationTabSchema3).optional(),
|
|
12801
|
+
tabsV2: z34.array(NavigationTabV2Schema2).optional(),
|
|
12651
12802
|
landingPage: PageMetadataSchema.optional()
|
|
12652
12803
|
});
|
|
12653
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
12654
|
-
items:
|
|
12804
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
|
|
12805
|
+
items: z34.array(NavigationItemSchema3),
|
|
12655
12806
|
landingPage: PageMetadataSchema.optional()
|
|
12656
12807
|
});
|
|
12657
|
-
var UnversionedNavigationConfigSchema3 =
|
|
12808
|
+
var UnversionedNavigationConfigSchema3 = z34.union([
|
|
12658
12809
|
UnversionedTabbedNavigationConfigSchema3,
|
|
12659
12810
|
UnversionedUntabbedNavigationConfigSchema3
|
|
12660
12811
|
]);
|
|
12661
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
12812
|
+
var VersionedNavigationConfigDataSchema3 = z34.object({
|
|
12662
12813
|
version: VersionIdSchema2,
|
|
12663
|
-
urlSlug:
|
|
12814
|
+
urlSlug: z34.string().optional(),
|
|
12664
12815
|
availability: AvailabilitySchema2.optional(),
|
|
12665
12816
|
config: UnversionedNavigationConfigSchema3
|
|
12666
12817
|
});
|
|
12667
|
-
var VersionedNavigationConfigSchema3 =
|
|
12668
|
-
versions:
|
|
12818
|
+
var VersionedNavigationConfigSchema3 = z34.object({
|
|
12819
|
+
versions: z34.array(VersionedNavigationConfigDataSchema3)
|
|
12669
12820
|
});
|
|
12670
|
-
var NavigationConfigSchema3 =
|
|
12671
|
-
var DocsDbConfigSchema =
|
|
12672
|
-
title:
|
|
12821
|
+
var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
12822
|
+
var DocsDbConfigSchema = z34.object({
|
|
12823
|
+
title: z34.string().optional(),
|
|
12673
12824
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
12674
|
-
languages:
|
|
12825
|
+
languages: z34.array(LanguageSchema).optional(),
|
|
12675
12826
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
12676
12827
|
announcement: AnnouncementConfigSchema.optional(),
|
|
12677
12828
|
navigation: NavigationConfigSchema3.optional(),
|
|
12678
|
-
root:
|
|
12679
|
-
navbarLinks:
|
|
12680
|
-
footerLinks:
|
|
12681
|
-
hideNavLinks:
|
|
12829
|
+
root: z34.custom().optional(),
|
|
12830
|
+
navbarLinks: z34.array(NavbarLinkSchema).optional(),
|
|
12831
|
+
footerLinks: z34.array(FooterLinkSchema).optional(),
|
|
12832
|
+
hideNavLinks: z34.boolean().optional(),
|
|
12682
12833
|
logoHeight: HeightSchema.optional(),
|
|
12683
12834
|
logoHref: UrlSchema2.optional(),
|
|
12684
|
-
logoRightText:
|
|
12835
|
+
logoRightText: z34.string().optional(),
|
|
12685
12836
|
favicon: FileIdSchema2.optional(),
|
|
12686
12837
|
agents: AgentsConfigSchema.optional(),
|
|
12687
12838
|
metadata: MetadataConfigSchema.optional(),
|
|
12688
|
-
redirects:
|
|
12839
|
+
redirects: z34.array(RedirectConfigSchema).optional(),
|
|
12689
12840
|
backgroundImage: FileIdSchema2.optional(),
|
|
12690
12841
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
12691
12842
|
layout: DocsLayoutConfigSchema.optional(),
|
|
12692
12843
|
theme: DocsThemeConfigSchema.optional(),
|
|
12693
|
-
globalTheme:
|
|
12844
|
+
globalTheme: z34.string().optional(),
|
|
12694
12845
|
settings: DocsSettingsConfigSchema.optional(),
|
|
12695
12846
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
12696
12847
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -12700,40 +12851,40 @@ var DocsDbConfigSchema = z33.object({
|
|
|
12700
12851
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
12701
12852
|
pageActions: PageActionsConfigSchema.optional(),
|
|
12702
12853
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
12703
|
-
header:
|
|
12704
|
-
footer:
|
|
12854
|
+
header: z34.string().optional(),
|
|
12855
|
+
footer: z34.string().optional(),
|
|
12705
12856
|
logo: FileIdSchema2.optional(),
|
|
12706
12857
|
logoV2: ThemedFileIdSchema.optional(),
|
|
12707
12858
|
colors: ColorsConfigSchema.optional(),
|
|
12708
12859
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
12709
12860
|
typography: DocsTypographyConfigSchema.optional()
|
|
12710
12861
|
});
|
|
12711
|
-
var DocsDefinitionDbV1Schema =
|
|
12712
|
-
pages:
|
|
12713
|
-
referencedApis:
|
|
12714
|
-
files:
|
|
12862
|
+
var DocsDefinitionDbV1Schema = z34.object({
|
|
12863
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12864
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12865
|
+
files: z34.record(FileIdSchema2, DbFileInfoSchema),
|
|
12715
12866
|
config: DocsDbConfigSchema,
|
|
12716
12867
|
colors: ColorsConfigSchema.optional()
|
|
12717
12868
|
});
|
|
12718
|
-
var DocsDefinitionDbV2Schema =
|
|
12719
|
-
pages:
|
|
12720
|
-
referencedApis:
|
|
12721
|
-
files:
|
|
12869
|
+
var DocsDefinitionDbV2Schema = z34.object({
|
|
12870
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12871
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12872
|
+
files: z34.record(FileIdSchema2, DbFileInfoSchema),
|
|
12722
12873
|
config: DocsDbConfigSchema,
|
|
12723
12874
|
colors: ColorsConfigSchema.optional(),
|
|
12724
12875
|
typography: DocsTypographyConfigSchema.optional()
|
|
12725
12876
|
});
|
|
12726
|
-
var DocsDefinitionDbV3Schema =
|
|
12727
|
-
pages:
|
|
12728
|
-
referencedApis:
|
|
12729
|
-
files:
|
|
12877
|
+
var DocsDefinitionDbV3Schema = z34.object({
|
|
12878
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12879
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12880
|
+
files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
12730
12881
|
config: DocsDbConfigSchema,
|
|
12731
|
-
jsFiles:
|
|
12882
|
+
jsFiles: z34.record(z34.string(), z34.string()).optional()
|
|
12732
12883
|
});
|
|
12733
|
-
var DocsDefinitionDbSchema =
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12884
|
+
var DocsDefinitionDbSchema = z34.discriminatedUnion("type", [
|
|
12885
|
+
z34.object({ type: z34.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
12886
|
+
z34.object({ type: z34.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
12887
|
+
z34.object({ type: z34.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
12737
12888
|
]);
|
|
12738
12889
|
|
|
12739
12890
|
// src/client/DocsV1Read.ts
|
|
@@ -13508,100 +13659,100 @@ __export(DocsLatest_exports, {
|
|
|
13508
13659
|
});
|
|
13509
13660
|
|
|
13510
13661
|
// src/client/docs-types/latest.ts
|
|
13511
|
-
var
|
|
13512
|
-
var StringOrStringListSchema =
|
|
13513
|
-
var TwitterCardSettingSchema2 =
|
|
13514
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
13515
|
-
"@type":
|
|
13516
|
-
position:
|
|
13517
|
-
name:
|
|
13518
|
-
item:
|
|
13519
|
-
});
|
|
13520
|
-
var JsonLdBreadcrumbListSchema =
|
|
13521
|
-
"@context":
|
|
13522
|
-
"@type":
|
|
13523
|
-
itemListElement:
|
|
13524
|
-
});
|
|
13525
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
13662
|
+
var z35 = __toESM(require("zod"), 1);
|
|
13663
|
+
var StringOrStringListSchema = z35.union([z35.string(), z35.array(z35.string())]);
|
|
13664
|
+
var TwitterCardSettingSchema2 = z35.enum(["summary", "summary_large_image", "app", "player"]);
|
|
13665
|
+
var JsonLdBreadcrumbListElementSchema = z35.object({
|
|
13666
|
+
"@type": z35.literal("ListItem"),
|
|
13667
|
+
position: z35.number(),
|
|
13668
|
+
name: z35.string(),
|
|
13669
|
+
item: z35.string().optional()
|
|
13670
|
+
});
|
|
13671
|
+
var JsonLdBreadcrumbListSchema = z35.object({
|
|
13672
|
+
"@context": z35.literal("https://schema.org"),
|
|
13673
|
+
"@type": z35.literal("BreadcrumbList"),
|
|
13674
|
+
itemListElement: z35.array(JsonLdBreadcrumbListElementSchema)
|
|
13675
|
+
});
|
|
13676
|
+
var WithJsonLdBreadcrumbsSchema = z35.object({
|
|
13526
13677
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
13527
13678
|
});
|
|
13528
|
-
var WithMetadataConfigSchema =
|
|
13529
|
-
"og:site_name":
|
|
13530
|
-
"og:title":
|
|
13531
|
-
"og:description":
|
|
13532
|
-
"og:url":
|
|
13679
|
+
var WithMetadataConfigSchema = z35.object({
|
|
13680
|
+
"og:site_name": z35.string().optional(),
|
|
13681
|
+
"og:title": z35.string().optional(),
|
|
13682
|
+
"og:description": z35.string().optional(),
|
|
13683
|
+
"og:url": z35.string().optional(),
|
|
13533
13684
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
13534
|
-
"og:image:width":
|
|
13535
|
-
"og:image:height":
|
|
13536
|
-
"og:locale":
|
|
13685
|
+
"og:image:width": z35.number().optional(),
|
|
13686
|
+
"og:image:height": z35.number().optional(),
|
|
13687
|
+
"og:locale": z35.string().optional(),
|
|
13537
13688
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
13538
|
-
"twitter:title":
|
|
13539
|
-
"twitter:description":
|
|
13540
|
-
"twitter:handle":
|
|
13689
|
+
"twitter:title": z35.string().optional(),
|
|
13690
|
+
"twitter:description": z35.string().optional(),
|
|
13691
|
+
"twitter:handle": z35.string().optional(),
|
|
13541
13692
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
13542
|
-
"twitter:site":
|
|
13543
|
-
"twitter:url":
|
|
13693
|
+
"twitter:site": z35.string().optional(),
|
|
13694
|
+
"twitter:url": z35.string().optional(),
|
|
13544
13695
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
13545
13696
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
13546
|
-
"og:dynamic":
|
|
13697
|
+
"og:dynamic": z35.boolean().optional(),
|
|
13547
13698
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
13548
|
-
"og:dynamic:text-color":
|
|
13549
|
-
"og:dynamic:background-color":
|
|
13550
|
-
"og:dynamic:show-logo":
|
|
13551
|
-
"og:dynamic:show-section":
|
|
13552
|
-
"og:dynamic:show-description":
|
|
13553
|
-
"og:dynamic:show-url":
|
|
13554
|
-
"og:dynamic:show-gradient":
|
|
13555
|
-
noindex:
|
|
13556
|
-
nofollow:
|
|
13699
|
+
"og:dynamic:text-color": z35.string().optional(),
|
|
13700
|
+
"og:dynamic:background-color": z35.string().optional(),
|
|
13701
|
+
"og:dynamic:show-logo": z35.boolean().optional(),
|
|
13702
|
+
"og:dynamic:show-section": z35.boolean().optional(),
|
|
13703
|
+
"og:dynamic:show-description": z35.boolean().optional(),
|
|
13704
|
+
"og:dynamic:show-url": z35.boolean().optional(),
|
|
13705
|
+
"og:dynamic:show-gradient": z35.boolean().optional(),
|
|
13706
|
+
noindex: z35.boolean().optional(),
|
|
13707
|
+
nofollow: z35.boolean().optional(),
|
|
13557
13708
|
keywords: StringOrStringListSchema.optional()
|
|
13558
13709
|
});
|
|
13559
|
-
var LayoutSchema =
|
|
13560
|
-
var LogoConfigurationSchema =
|
|
13710
|
+
var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
13711
|
+
var LogoConfigurationSchema = z35.object({
|
|
13561
13712
|
light: FileIdOrUrlSchema.optional(),
|
|
13562
13713
|
dark: FileIdOrUrlSchema.optional()
|
|
13563
13714
|
});
|
|
13564
|
-
var LogoSchema =
|
|
13565
|
-
var BreadcrumbItemSchema =
|
|
13566
|
-
title:
|
|
13567
|
-
pointsTo:
|
|
13715
|
+
var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
13716
|
+
var BreadcrumbItemSchema = z35.object({
|
|
13717
|
+
title: z35.string(),
|
|
13718
|
+
pointsTo: z35.string().optional()
|
|
13568
13719
|
});
|
|
13569
13720
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
13570
|
-
|
|
13721
|
+
z35.object({
|
|
13571
13722
|
layout: LayoutSchema.optional(),
|
|
13572
|
-
slug:
|
|
13573
|
-
title:
|
|
13574
|
-
headline:
|
|
13575
|
-
description:
|
|
13576
|
-
subtitle:
|
|
13723
|
+
slug: z35.string().optional(),
|
|
13724
|
+
title: z35.string().optional(),
|
|
13725
|
+
headline: z35.string().optional(),
|
|
13726
|
+
description: z35.string().optional(),
|
|
13727
|
+
subtitle: z35.string().optional(),
|
|
13577
13728
|
logo: LogoSchema.optional(),
|
|
13578
13729
|
image: FileIdOrUrlSchema.optional(),
|
|
13579
|
-
"edit-this-page-url":
|
|
13580
|
-
"hide-toc":
|
|
13581
|
-
"force-toc":
|
|
13582
|
-
"hide-nav-links":
|
|
13583
|
-
"max-toc-depth":
|
|
13584
|
-
"hide-feedback":
|
|
13585
|
-
"hide-page-actions":
|
|
13586
|
-
"no-image-zoom":
|
|
13587
|
-
breadcrumb:
|
|
13588
|
-
excerpt:
|
|
13589
|
-
"canonical-url":
|
|
13730
|
+
"edit-this-page-url": z35.string().optional(),
|
|
13731
|
+
"hide-toc": z35.boolean().optional(),
|
|
13732
|
+
"force-toc": z35.boolean().optional(),
|
|
13733
|
+
"hide-nav-links": z35.boolean().optional(),
|
|
13734
|
+
"max-toc-depth": z35.number().optional(),
|
|
13735
|
+
"hide-feedback": z35.boolean().optional(),
|
|
13736
|
+
"hide-page-actions": z35.boolean().optional(),
|
|
13737
|
+
"no-image-zoom": z35.boolean().optional(),
|
|
13738
|
+
breadcrumb: z35.array(BreadcrumbItemSchema).optional(),
|
|
13739
|
+
excerpt: z35.string().optional(),
|
|
13740
|
+
"canonical-url": z35.string().optional(),
|
|
13590
13741
|
tags: StringOrStringListSchema.optional(),
|
|
13591
|
-
"last-updated":
|
|
13742
|
+
"last-updated": z35.string().optional(),
|
|
13592
13743
|
/**
|
|
13593
13744
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
13594
13745
|
* records, so it can be faceted and filtered on by full path
|
|
13595
13746
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
13596
13747
|
*/
|
|
13597
|
-
"search-metadata":
|
|
13748
|
+
"search-metadata": z35.record(z35.unknown()).optional()
|
|
13598
13749
|
})
|
|
13599
13750
|
);
|
|
13600
|
-
var ResolvedMdxSchema =
|
|
13601
|
-
code:
|
|
13751
|
+
var ResolvedMdxSchema = z35.object({
|
|
13752
|
+
code: z35.string(),
|
|
13602
13753
|
frontmatter: FrontmatterSchema,
|
|
13603
|
-
scope:
|
|
13604
|
-
jsxRefs:
|
|
13754
|
+
scope: z35.record(z35.string(), z35.unknown()),
|
|
13755
|
+
jsxRefs: z35.array(z35.string()).optional()
|
|
13605
13756
|
});
|
|
13606
13757
|
|
|
13607
13758
|
// src/client/DocsV1Commons.ts
|
|
@@ -14041,9 +14192,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
14041
14192
|
}
|
|
14042
14193
|
}
|
|
14043
14194
|
}
|
|
14044
|
-
function generateExampleObject(
|
|
14195
|
+
function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
14045
14196
|
const example = {};
|
|
14046
|
-
for (const property of getAllObjectProperties(
|
|
14197
|
+
for (const property of getAllObjectProperties(object34, resolveTypeById)) {
|
|
14047
14198
|
const value = generateExampleFromTypeReference(
|
|
14048
14199
|
property.valueType,
|
|
14049
14200
|
resolveTypeById,
|
|
@@ -14227,10 +14378,10 @@ function generateExamplePrimitive(reference) {
|
|
|
14227
14378
|
return reference.name;
|
|
14228
14379
|
}
|
|
14229
14380
|
}
|
|
14230
|
-
function getAllObjectProperties(
|
|
14381
|
+
function getAllObjectProperties(object34, resolveTypeById) {
|
|
14231
14382
|
return [
|
|
14232
|
-
...
|
|
14233
|
-
...
|
|
14383
|
+
...object34.properties,
|
|
14384
|
+
...object34.extends.flatMap((typeId) => {
|
|
14234
14385
|
let type = resolveTypeById(typeId);
|
|
14235
14386
|
if (type == null) {
|
|
14236
14387
|
return [];
|