@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.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, string35) => {
|
|
448
|
+
const isLastWord = m.length + offset >= string35.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(object34, types, parentVisitedTypeIds) {
|
|
2541
|
+
const cached = UnwrapObjectTypeCache.get(object34);
|
|
2542
2542
|
if (cached != null) {
|
|
2543
2543
|
return cached;
|
|
2544
2544
|
}
|
|
2545
|
-
const directProperties =
|
|
2546
|
-
const extraProperties =
|
|
2545
|
+
const directProperties = object34.properties;
|
|
2546
|
+
const extraProperties = object34.extraProperties;
|
|
2547
2547
|
const descriptions = [];
|
|
2548
2548
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
2549
|
-
const extendedProperties =
|
|
2549
|
+
const extendedProperties = object34.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(object33, types, parentVisitedTypeIds) {
|
|
|
2593
2593
|
};
|
|
2594
2594
|
});
|
|
2595
2595
|
});
|
|
2596
|
-
const propertyKeys = new Set(
|
|
2596
|
+
const propertyKeys = new Set(object34.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(object33, types, parentVisitedTypeIds) {
|
|
|
2616
2616
|
extraProperties,
|
|
2617
2617
|
visitedTypeIds
|
|
2618
2618
|
};
|
|
2619
|
-
UnwrapObjectTypeCache.set(
|
|
2619
|
+
UnwrapObjectTypeCache.set(object34, toRet2);
|
|
2620
2620
|
return toRet2;
|
|
2621
2621
|
}
|
|
2622
2622
|
const properties = sortBy(
|
|
@@ -2628,7 +2628,7 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
|
|
|
2628
2628
|
]
|
|
2629
2629
|
);
|
|
2630
2630
|
const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
|
|
2631
|
-
UnwrapObjectTypeCache.set(
|
|
2631
|
+
UnwrapObjectTypeCache.set(object34, 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: (object34) => {
|
|
4330
|
+
const objectProperties = unwrapObjectType(object34, types).properties;
|
|
4331
4331
|
return isPlainObject_default(obj) ? mapValues(
|
|
4332
4332
|
sortKeysBy(
|
|
4333
4333
|
obj,
|
|
@@ -11076,103 +11076,253 @@ function createGitClient(options) {
|
|
|
11076
11076
|
return createORPCClient16(link);
|
|
11077
11077
|
}
|
|
11078
11078
|
|
|
11079
|
-
// src/orpc-client/
|
|
11079
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
11080
11080
|
import { createORPCClient as createORPCClient17 } from "@orpc/client";
|
|
11081
11081
|
import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
|
|
11082
11082
|
|
|
11083
|
-
// src/orpc-client/
|
|
11083
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
11084
11084
|
import { oc as oc15 } from "@orpc/contract";
|
|
11085
11085
|
import * as z25 from "zod";
|
|
11086
|
-
var
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
footerRightTemplate: z25.string().nullish(),
|
|
11097
|
-
scope: PdfExportScopeSchema.nullish(),
|
|
11098
|
-
hideCover: z25.boolean().nullish(),
|
|
11099
|
-
hideToc: z25.boolean().nullish()
|
|
11100
|
-
});
|
|
11101
|
-
var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
|
|
11102
|
-
z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
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
|
+
var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
11089
|
+
z25.object({ type: z25.literal("bearer") }),
|
|
11090
|
+
z25.object({
|
|
11091
|
+
type: z25.literal("apiKey"),
|
|
11092
|
+
paramName: z25.string().min(1),
|
|
11093
|
+
in: z25.enum(["header", "query", "cookie"])
|
|
11094
|
+
}),
|
|
11095
|
+
z25.object({ type: z25.literal("basic") })
|
|
11103
11096
|
]);
|
|
11104
|
-
var
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11097
|
+
var McpMetadataSchema = z25.object({
|
|
11098
|
+
name: z25.string().min(1),
|
|
11099
|
+
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
11100
|
+
toolsetMetadata: z25.array(
|
|
11101
|
+
z25.object({
|
|
11102
|
+
name: z25.string(),
|
|
11103
|
+
title: z25.string(),
|
|
11104
|
+
description: z25.string(),
|
|
11105
|
+
toolCount: z25.number().int().nonnegative()
|
|
11106
|
+
}).strict()
|
|
11107
|
+
),
|
|
11108
|
+
auth: z25.object({
|
|
11109
|
+
schemes: z25.array(McpAuthSchemeSchema),
|
|
11110
|
+
required: z25.boolean()
|
|
11111
|
+
}).strict(),
|
|
11112
|
+
skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
|
|
11113
|
+
environmentVariables: z25.array(
|
|
11114
|
+
z25.object({
|
|
11115
|
+
name: z25.string(),
|
|
11116
|
+
description: z25.string(),
|
|
11117
|
+
required: z25.boolean()
|
|
11118
|
+
}).strict()
|
|
11119
|
+
),
|
|
11120
|
+
baseUrl: z25.string().url(),
|
|
11121
|
+
followRedirects: z25.boolean(),
|
|
11122
|
+
maxRedirects: z25.number().int().nonnegative(),
|
|
11123
|
+
allowedRedirectHosts: z25.array(z25.string())
|
|
11124
|
+
}).passthrough();
|
|
11125
|
+
var McpModuleSchema = z25.object({
|
|
11126
|
+
name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
11127
|
+
hash: z25.string().regex(/^[0-9a-f]{64}$/),
|
|
11128
|
+
contentType: z25.string().min(1)
|
|
11129
|
+
}).strict();
|
|
11130
|
+
var McpGitInputSchema = z25.object({
|
|
11131
|
+
repoUrl: z25.string(),
|
|
11132
|
+
branch: z25.string(),
|
|
11133
|
+
commitSha: z25.string().optional()
|
|
11134
|
+
}).strict();
|
|
11135
|
+
var DeployMcpServerInputSchema = z25.object({
|
|
11136
|
+
orgId: McpPathSegmentSchema,
|
|
11137
|
+
slug: McpPathSegmentSchema,
|
|
11138
|
+
mainModule: z25.string().min(1),
|
|
11139
|
+
compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
11140
|
+
compatibilityFlags: z25.array(z25.string()),
|
|
11141
|
+
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
11142
|
+
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
11143
|
+
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
11144
|
+
modules: z25.array(McpModuleSchema).min(1).max(20),
|
|
11145
|
+
metadata: McpMetadataSchema,
|
|
11146
|
+
// Everything else in this schema is bounded; keep the opaque config
|
|
11147
|
+
// blob bounded too so it cannot balloon the JSONB row.
|
|
11148
|
+
config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
11149
|
+
message: "config must be at most 64KB serialized"
|
|
11150
|
+
}),
|
|
11151
|
+
generatorName: z25.string().min(1),
|
|
11152
|
+
generatorVersion: z25.string().min(1),
|
|
11153
|
+
cliVersion: z25.string().optional(),
|
|
11154
|
+
git: McpGitInputSchema.optional()
|
|
11155
|
+
}).strict().superRefine((input, ctx) => {
|
|
11156
|
+
const names = /* @__PURE__ */ new Set();
|
|
11157
|
+
for (const module of input.modules) {
|
|
11158
|
+
if (names.has(module.name)) {
|
|
11159
|
+
ctx.addIssue({
|
|
11160
|
+
code: z25.ZodIssueCode.custom,
|
|
11161
|
+
path: ["modules"],
|
|
11162
|
+
message: `duplicate module name: ${module.name}`
|
|
11163
|
+
});
|
|
11164
|
+
}
|
|
11165
|
+
names.add(module.name);
|
|
11166
|
+
}
|
|
11167
|
+
if (!names.has(input.mainModule)) {
|
|
11168
|
+
ctx.addIssue({
|
|
11169
|
+
code: z25.ZodIssueCode.custom,
|
|
11170
|
+
path: ["mainModule"],
|
|
11171
|
+
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
11172
|
+
});
|
|
11173
|
+
}
|
|
11174
|
+
});
|
|
11175
|
+
var GetMcpServerInputSchema = z25.object({
|
|
11176
|
+
orgId: McpPathSegmentSchema,
|
|
11177
|
+
slug: McpPathSegmentSchema
|
|
11121
11178
|
});
|
|
11122
|
-
var
|
|
11123
|
-
|
|
11179
|
+
var ListMcpServersInputSchema = z25.object({
|
|
11180
|
+
orgId: z25.string()
|
|
11124
11181
|
});
|
|
11125
|
-
var
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11182
|
+
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
11183
|
+
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
11184
|
+
var McpDeploymentSummarySchema = z25.object({
|
|
11185
|
+
id: z25.string(),
|
|
11186
|
+
status: McpDeploymentStatusSchema,
|
|
11187
|
+
/** True when this deployment is the one the server currently serves. */
|
|
11188
|
+
isActive: z25.boolean(),
|
|
11189
|
+
generatorVersion: z25.string(),
|
|
11190
|
+
createdAt: z25.string(),
|
|
11191
|
+
createdBy: z25.string().nullish(),
|
|
11192
|
+
error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
|
|
11129
11193
|
});
|
|
11130
|
-
var
|
|
11194
|
+
var McpServerSchema = z25.object({
|
|
11195
|
+
id: z25.string(),
|
|
11131
11196
|
orgId: z25.string(),
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11197
|
+
slug: z25.string(),
|
|
11198
|
+
/** The server is serving iff this is set; it names the serving deployment. */
|
|
11199
|
+
activeDeploymentId: z25.string().nullish(),
|
|
11200
|
+
/** Most recent publication attempt — how the last deploy went. */
|
|
11201
|
+
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
11202
|
+
url: z25.string().url(),
|
|
11203
|
+
createdAt: z25.string(),
|
|
11204
|
+
updatedAt: z25.string()
|
|
11205
|
+
});
|
|
11206
|
+
var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
|
|
11207
|
+
var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
|
|
11208
|
+
var mcpHostingContract = {
|
|
11209
|
+
deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
11210
|
+
getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
11211
|
+
listServers: oc15.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
|
|
11212
|
+
listDeployments: oc15.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
|
|
11213
|
+
deleteServer: oc15.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
|
|
11214
|
+
};
|
|
11215
|
+
|
|
11216
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
11217
|
+
function createMcpHostingClient(options) {
|
|
11218
|
+
const link = new OpenAPILink17(mcpHostingContract, {
|
|
11219
|
+
url: `${options.baseUrl}/mcp-hosting`,
|
|
11220
|
+
headers: () => ({
|
|
11221
|
+
Authorization: `Bearer ${options.token}`,
|
|
11222
|
+
...options.headers
|
|
11223
|
+
}),
|
|
11224
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11225
|
+
});
|
|
11226
|
+
return createORPCClient17(link);
|
|
11227
|
+
}
|
|
11228
|
+
|
|
11229
|
+
// src/orpc-client/pdf-export/client.ts
|
|
11230
|
+
import { createORPCClient as createORPCClient18 } from "@orpc/client";
|
|
11231
|
+
import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
|
|
11232
|
+
|
|
11233
|
+
// src/orpc-client/pdf-export/contract.ts
|
|
11234
|
+
import { oc as oc16 } from "@orpc/contract";
|
|
11235
|
+
import * as z26 from "zod";
|
|
11236
|
+
var PdfExportScopeSchema = z26.object({
|
|
11237
|
+
pageSlugs: z26.array(z26.string())
|
|
11238
|
+
});
|
|
11239
|
+
var PdfExportOptionsV1Schema = z26.object({
|
|
11240
|
+
coverTitle: z26.string().nullish(),
|
|
11241
|
+
coverSubtitle: z26.string().nullish(),
|
|
11242
|
+
hideCoverFooter: z26.boolean().nullish(),
|
|
11243
|
+
headerLeftTemplate: z26.string().nullish(),
|
|
11244
|
+
headerRightTemplate: z26.string().nullish(),
|
|
11245
|
+
footerLeftTemplate: z26.string().nullish(),
|
|
11246
|
+
footerRightTemplate: z26.string().nullish(),
|
|
11247
|
+
scope: PdfExportScopeSchema.nullish(),
|
|
11248
|
+
hideCover: z26.boolean().nullish(),
|
|
11249
|
+
hideToc: z26.boolean().nullish()
|
|
11250
|
+
});
|
|
11251
|
+
var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
|
|
11252
|
+
z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
11253
|
+
]);
|
|
11254
|
+
var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
11255
|
+
var PdfExportTaskSchema = z26.object({
|
|
11256
|
+
id: z26.string(),
|
|
11257
|
+
orgId: z26.string(),
|
|
11258
|
+
docsUrl: z26.string(),
|
|
11259
|
+
productId: z26.string().nullish(),
|
|
11260
|
+
versionId: z26.string().nullish(),
|
|
11261
|
+
requesterName: z26.string().nullish(),
|
|
11262
|
+
notifyEmails: z26.array(z26.string()).nullish(),
|
|
11263
|
+
status: PdfExportTaskStatusSchema,
|
|
11264
|
+
options: PdfExportOptionsSchema.nullish(),
|
|
11265
|
+
createdAt: z26.string(),
|
|
11266
|
+
startedAt: z26.string().nullish(),
|
|
11267
|
+
completedAt: z26.string().nullish(),
|
|
11268
|
+
fileName: z26.string().nullish(),
|
|
11269
|
+
sizeBytes: z26.number().nullish(),
|
|
11270
|
+
errorMessage: z26.string().nullish()
|
|
11271
|
+
});
|
|
11272
|
+
var ListPdfExportTasksResponseSchema = z26.object({
|
|
11273
|
+
tasks: z26.array(PdfExportTaskSchema)
|
|
11274
|
+
});
|
|
11275
|
+
var PdfExportDownloadResponseSchema = z26.object({
|
|
11276
|
+
downloadUrl: z26.string(),
|
|
11277
|
+
fileName: z26.string(),
|
|
11278
|
+
sizeBytes: z26.number()
|
|
11279
|
+
});
|
|
11280
|
+
var CreatePdfExportTaskInputSchema = z26.object({
|
|
11281
|
+
orgId: z26.string(),
|
|
11282
|
+
docsUrl: z26.string(),
|
|
11283
|
+
productId: z26.string().nullish(),
|
|
11284
|
+
versionId: z26.string().nullish(),
|
|
11285
|
+
requesterName: z26.string().nullish(),
|
|
11136
11286
|
options: PdfExportOptionsSchema.nullish()
|
|
11137
11287
|
});
|
|
11138
|
-
var ListPdfExportTasksInputSchema =
|
|
11139
|
-
orgId:
|
|
11140
|
-
docsUrl:
|
|
11141
|
-
limit:
|
|
11288
|
+
var ListPdfExportTasksInputSchema = z26.object({
|
|
11289
|
+
orgId: z26.string(),
|
|
11290
|
+
docsUrl: z26.string(),
|
|
11291
|
+
limit: z26.coerce.number().nullish()
|
|
11142
11292
|
});
|
|
11143
|
-
var GetPdfExportTaskInputSchema =
|
|
11144
|
-
taskId:
|
|
11293
|
+
var GetPdfExportTaskInputSchema = z26.object({
|
|
11294
|
+
taskId: z26.string()
|
|
11145
11295
|
});
|
|
11146
|
-
var UpdatePdfExportTaskInputSchema =
|
|
11147
|
-
taskId:
|
|
11296
|
+
var UpdatePdfExportTaskInputSchema = z26.object({
|
|
11297
|
+
taskId: z26.string(),
|
|
11148
11298
|
status: PdfExportTaskStatusSchema,
|
|
11149
|
-
startedAt:
|
|
11150
|
-
completedAt:
|
|
11151
|
-
s3Key:
|
|
11152
|
-
fileName:
|
|
11153
|
-
sizeBytes:
|
|
11154
|
-
errorMessage:
|
|
11299
|
+
startedAt: z26.string().nullish(),
|
|
11300
|
+
completedAt: z26.string().nullish(),
|
|
11301
|
+
s3Key: z26.string().nullish(),
|
|
11302
|
+
fileName: z26.string().nullish(),
|
|
11303
|
+
sizeBytes: z26.number().nullish(),
|
|
11304
|
+
errorMessage: z26.string().nullish()
|
|
11155
11305
|
});
|
|
11156
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
11157
|
-
taskId:
|
|
11306
|
+
var GetPdfExportDownloadUrlInputSchema = z26.object({
|
|
11307
|
+
taskId: z26.string()
|
|
11158
11308
|
});
|
|
11159
|
-
var CleanupPdfExportsResponseSchema =
|
|
11160
|
-
expiredTasksDeleted:
|
|
11161
|
-
s3ObjectsDeleted:
|
|
11162
|
-
timedOutTasksFailed:
|
|
11309
|
+
var CleanupPdfExportsResponseSchema = z26.object({
|
|
11310
|
+
expiredTasksDeleted: z26.number(),
|
|
11311
|
+
s3ObjectsDeleted: z26.number(),
|
|
11312
|
+
timedOutTasksFailed: z26.number()
|
|
11163
11313
|
});
|
|
11164
11314
|
var pdfExportContract = {
|
|
11165
|
-
createTask:
|
|
11166
|
-
listTasks:
|
|
11167
|
-
getTask:
|
|
11168
|
-
updateTask:
|
|
11169
|
-
getDownloadUrl:
|
|
11170
|
-
cleanup:
|
|
11315
|
+
createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11316
|
+
listTasks: oc16.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
11317
|
+
getTask: oc16.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11318
|
+
updateTask: oc16.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
11319
|
+
getDownloadUrl: oc16.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
11320
|
+
cleanup: oc16.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
11171
11321
|
};
|
|
11172
11322
|
|
|
11173
11323
|
// src/orpc-client/pdf-export/client.ts
|
|
11174
11324
|
function createPdfExportClient(options) {
|
|
11175
|
-
const link = new
|
|
11325
|
+
const link = new OpenAPILink18(pdfExportContract, {
|
|
11176
11326
|
url: `${options.baseUrl}/pdf-export`,
|
|
11177
11327
|
headers: () => ({
|
|
11178
11328
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11180,17 +11330,17 @@ function createPdfExportClient(options) {
|
|
|
11180
11330
|
}),
|
|
11181
11331
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11182
11332
|
});
|
|
11183
|
-
return
|
|
11333
|
+
return createORPCClient18(link);
|
|
11184
11334
|
}
|
|
11185
11335
|
|
|
11186
11336
|
// src/orpc-client/sdks/client.ts
|
|
11187
|
-
import { createORPCClient as
|
|
11188
|
-
import { OpenAPILink as
|
|
11337
|
+
import { createORPCClient as createORPCClient19 } from "@orpc/client";
|
|
11338
|
+
import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
|
|
11189
11339
|
|
|
11190
11340
|
// src/orpc-client/sdks/contract.ts
|
|
11191
|
-
import { oc as
|
|
11192
|
-
import * as
|
|
11193
|
-
var LanguageEnumSchema =
|
|
11341
|
+
import { oc as oc17 } from "@orpc/contract";
|
|
11342
|
+
import * as z27 from "zod";
|
|
11343
|
+
var LanguageEnumSchema = z27.enum([
|
|
11194
11344
|
"Go",
|
|
11195
11345
|
"TypeScript",
|
|
11196
11346
|
"Java",
|
|
@@ -11201,23 +11351,23 @@ var LanguageEnumSchema = z26.enum([
|
|
|
11201
11351
|
"Swift",
|
|
11202
11352
|
"Rust"
|
|
11203
11353
|
]);
|
|
11204
|
-
var VersionBumpEnumSchema =
|
|
11205
|
-
var ComputeSemanticVersionInputSchema =
|
|
11206
|
-
package:
|
|
11354
|
+
var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
11355
|
+
var ComputeSemanticVersionInputSchema = z27.object({
|
|
11356
|
+
package: z27.string(),
|
|
11207
11357
|
language: LanguageEnumSchema,
|
|
11208
|
-
githubRepository:
|
|
11358
|
+
githubRepository: z27.string().nullish()
|
|
11209
11359
|
});
|
|
11210
|
-
var ComputeSemanticVersionOutputSchema =
|
|
11211
|
-
version:
|
|
11360
|
+
var ComputeSemanticVersionOutputSchema = z27.object({
|
|
11361
|
+
version: z27.string(),
|
|
11212
11362
|
bump: VersionBumpEnumSchema
|
|
11213
11363
|
});
|
|
11214
11364
|
var sdksContract = {
|
|
11215
|
-
computeSemanticVersion:
|
|
11365
|
+
computeSemanticVersion: oc17.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
11216
11366
|
};
|
|
11217
11367
|
|
|
11218
11368
|
// src/orpc-client/sdks/client.ts
|
|
11219
11369
|
function createSdksClient(options) {
|
|
11220
|
-
const link = new
|
|
11370
|
+
const link = new OpenAPILink19(sdksContract, {
|
|
11221
11371
|
url: `${options.baseUrl}/sdks`,
|
|
11222
11372
|
headers: () => ({
|
|
11223
11373
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11225,50 +11375,50 @@ function createSdksClient(options) {
|
|
|
11225
11375
|
}),
|
|
11226
11376
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11227
11377
|
});
|
|
11228
|
-
return
|
|
11378
|
+
return createORPCClient19(link);
|
|
11229
11379
|
}
|
|
11230
11380
|
|
|
11231
11381
|
// src/orpc-client/slugs/client.ts
|
|
11232
|
-
import { createORPCClient as
|
|
11233
|
-
import { OpenAPILink as
|
|
11382
|
+
import { createORPCClient as createORPCClient20 } from "@orpc/client";
|
|
11383
|
+
import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
|
|
11234
11384
|
|
|
11235
11385
|
// src/orpc-client/slugs/contract.ts
|
|
11236
|
-
import { oc as
|
|
11237
|
-
import * as
|
|
11238
|
-
var SlugsInputSchema =
|
|
11239
|
-
domain:
|
|
11240
|
-
basepath:
|
|
11241
|
-
});
|
|
11242
|
-
var SlugEntrySchema =
|
|
11243
|
-
orgId:
|
|
11244
|
-
domain:
|
|
11245
|
-
basepath:
|
|
11246
|
-
slug:
|
|
11247
|
-
lastUpdated:
|
|
11248
|
-
});
|
|
11249
|
-
var MarkdownEntrySchema =
|
|
11250
|
-
orgId:
|
|
11251
|
-
domain:
|
|
11252
|
-
basepath:
|
|
11253
|
-
pageId:
|
|
11254
|
-
slug:
|
|
11255
|
-
hash:
|
|
11256
|
-
lastUpdated:
|
|
11257
|
-
});
|
|
11258
|
-
var GetSlugEntriesResponseSchema =
|
|
11259
|
-
entries:
|
|
11260
|
-
});
|
|
11261
|
-
var GetMarkdownEntriesResponseSchema =
|
|
11262
|
-
entries:
|
|
11386
|
+
import { oc as oc18 } from "@orpc/contract";
|
|
11387
|
+
import * as z28 from "zod";
|
|
11388
|
+
var SlugsInputSchema = z28.object({
|
|
11389
|
+
domain: z28.string(),
|
|
11390
|
+
basepath: z28.string().optional().default("")
|
|
11391
|
+
});
|
|
11392
|
+
var SlugEntrySchema = z28.object({
|
|
11393
|
+
orgId: z28.string(),
|
|
11394
|
+
domain: z28.string(),
|
|
11395
|
+
basepath: z28.string(),
|
|
11396
|
+
slug: z28.string(),
|
|
11397
|
+
lastUpdated: z28.string()
|
|
11398
|
+
});
|
|
11399
|
+
var MarkdownEntrySchema = z28.object({
|
|
11400
|
+
orgId: z28.string(),
|
|
11401
|
+
domain: z28.string(),
|
|
11402
|
+
basepath: z28.string(),
|
|
11403
|
+
pageId: z28.string(),
|
|
11404
|
+
slug: z28.string(),
|
|
11405
|
+
hash: z28.string(),
|
|
11406
|
+
lastUpdated: z28.string()
|
|
11407
|
+
});
|
|
11408
|
+
var GetSlugEntriesResponseSchema = z28.object({
|
|
11409
|
+
entries: z28.array(SlugEntrySchema)
|
|
11410
|
+
});
|
|
11411
|
+
var GetMarkdownEntriesResponseSchema = z28.object({
|
|
11412
|
+
entries: z28.array(MarkdownEntrySchema)
|
|
11263
11413
|
});
|
|
11264
11414
|
var slugsContract = {
|
|
11265
|
-
getSlugEntries:
|
|
11266
|
-
getMarkdownEntries:
|
|
11415
|
+
getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
11416
|
+
getMarkdownEntries: oc18.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
11267
11417
|
};
|
|
11268
11418
|
|
|
11269
11419
|
// src/orpc-client/slugs/client.ts
|
|
11270
11420
|
function createSlugsClient(options) {
|
|
11271
|
-
const link = new
|
|
11421
|
+
const link = new OpenAPILink20(slugsContract, {
|
|
11272
11422
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
11273
11423
|
headers: () => ({
|
|
11274
11424
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11276,12 +11426,12 @@ function createSlugsClient(options) {
|
|
|
11276
11426
|
}),
|
|
11277
11427
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11278
11428
|
});
|
|
11279
|
-
return
|
|
11429
|
+
return createORPCClient20(link);
|
|
11280
11430
|
}
|
|
11281
11431
|
|
|
11282
11432
|
// src/orpc-client/snippets/client.ts
|
|
11283
|
-
import { createORPCClient as
|
|
11284
|
-
import { OpenAPILink as
|
|
11433
|
+
import { createORPCClient as createORPCClient21 } from "@orpc/client";
|
|
11434
|
+
import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
|
|
11285
11435
|
|
|
11286
11436
|
// src/orpc-client/snippets/contract.ts
|
|
11287
11437
|
var contract_exports3 = {};
|
|
@@ -11291,110 +11441,110 @@ __export(contract_exports3, {
|
|
|
11291
11441
|
snippetsContract: () => snippetsContract,
|
|
11292
11442
|
snippetsFactoryContract: () => snippetsFactoryContract
|
|
11293
11443
|
});
|
|
11294
|
-
import { oc as
|
|
11295
|
-
import * as
|
|
11296
|
-
var TypeScriptSdkSchema =
|
|
11297
|
-
var PythonSdkSchema =
|
|
11298
|
-
var GoSdkSchema =
|
|
11299
|
-
var RubySdkSchema =
|
|
11300
|
-
var JavaSdkSchema =
|
|
11301
|
-
var CsharpSdkSchema =
|
|
11302
|
-
var BaseSnippetCreateSchema =
|
|
11444
|
+
import { oc as oc19 } from "@orpc/contract";
|
|
11445
|
+
import * as z29 from "zod";
|
|
11446
|
+
var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11447
|
+
var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11448
|
+
var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
|
|
11449
|
+
var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
|
|
11450
|
+
var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
|
|
11451
|
+
var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
11452
|
+
var BaseSnippetCreateSchema = z29.object({
|
|
11303
11453
|
endpoint: EndpointIdentifierSchema,
|
|
11304
|
-
exampleIdentifier:
|
|
11454
|
+
exampleIdentifier: z29.string().nullish()
|
|
11305
11455
|
});
|
|
11306
|
-
var SdkSnippetsCreateSchema =
|
|
11307
|
-
|
|
11308
|
-
type:
|
|
11456
|
+
var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
|
|
11457
|
+
z29.object({
|
|
11458
|
+
type: z29.literal("typescript"),
|
|
11309
11459
|
sdk: TypeScriptSdkSchema,
|
|
11310
|
-
snippets:
|
|
11460
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11311
11461
|
}),
|
|
11312
|
-
|
|
11313
|
-
type:
|
|
11462
|
+
z29.object({
|
|
11463
|
+
type: z29.literal("python"),
|
|
11314
11464
|
sdk: PythonSdkSchema,
|
|
11315
|
-
snippets:
|
|
11465
|
+
snippets: z29.array(
|
|
11316
11466
|
BaseSnippetCreateSchema.extend({
|
|
11317
|
-
snippet:
|
|
11467
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
11318
11468
|
})
|
|
11319
11469
|
)
|
|
11320
11470
|
}),
|
|
11321
|
-
|
|
11322
|
-
type:
|
|
11471
|
+
z29.object({
|
|
11472
|
+
type: z29.literal("go"),
|
|
11323
11473
|
sdk: GoSdkSchema,
|
|
11324
|
-
snippets:
|
|
11474
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11325
11475
|
}),
|
|
11326
|
-
|
|
11327
|
-
type:
|
|
11476
|
+
z29.object({
|
|
11477
|
+
type: z29.literal("java"),
|
|
11328
11478
|
sdk: JavaSdkSchema,
|
|
11329
|
-
snippets:
|
|
11479
|
+
snippets: z29.array(
|
|
11330
11480
|
BaseSnippetCreateSchema.extend({
|
|
11331
|
-
snippet:
|
|
11481
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
11332
11482
|
})
|
|
11333
11483
|
)
|
|
11334
11484
|
}),
|
|
11335
|
-
|
|
11336
|
-
type:
|
|
11485
|
+
z29.object({
|
|
11486
|
+
type: z29.literal("ruby"),
|
|
11337
11487
|
sdk: RubySdkSchema,
|
|
11338
|
-
snippets:
|
|
11488
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11339
11489
|
}),
|
|
11340
|
-
|
|
11341
|
-
type:
|
|
11490
|
+
z29.object({
|
|
11491
|
+
type: z29.literal("csharp"),
|
|
11342
11492
|
sdk: CsharpSdkSchema,
|
|
11343
|
-
snippets:
|
|
11493
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
11344
11494
|
})
|
|
11345
11495
|
]);
|
|
11346
11496
|
var snippetsFactoryContract = {
|
|
11347
|
-
createSnippetsForSdk:
|
|
11348
|
-
|
|
11349
|
-
orgId:
|
|
11350
|
-
apiId:
|
|
11497
|
+
createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
|
|
11498
|
+
z29.object({
|
|
11499
|
+
orgId: z29.string(),
|
|
11500
|
+
apiId: z29.string(),
|
|
11351
11501
|
snippets: SdkSnippetsCreateSchema
|
|
11352
11502
|
})
|
|
11353
11503
|
)
|
|
11354
11504
|
};
|
|
11355
|
-
var ParameterPayloadSchema =
|
|
11356
|
-
name:
|
|
11357
|
-
value:
|
|
11505
|
+
var ParameterPayloadSchema = z29.object({
|
|
11506
|
+
name: z29.string(),
|
|
11507
|
+
value: z29.unknown()
|
|
11358
11508
|
});
|
|
11359
|
-
var AuthPayloadSchema =
|
|
11360
|
-
|
|
11361
|
-
|
|
11509
|
+
var AuthPayloadSchema = z29.discriminatedUnion("type", [
|
|
11510
|
+
z29.object({ type: z29.literal("bearer"), token: z29.string() }),
|
|
11511
|
+
z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
|
|
11362
11512
|
]);
|
|
11363
|
-
var CustomSnippetPayloadSchema =
|
|
11364
|
-
headers:
|
|
11365
|
-
pathParameters:
|
|
11366
|
-
queryParameters:
|
|
11367
|
-
requestBody:
|
|
11513
|
+
var CustomSnippetPayloadSchema = z29.object({
|
|
11514
|
+
headers: z29.array(ParameterPayloadSchema).nullish(),
|
|
11515
|
+
pathParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
11516
|
+
queryParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
11517
|
+
requestBody: z29.unknown().nullish(),
|
|
11368
11518
|
auth: AuthPayloadSchema.nullish()
|
|
11369
11519
|
});
|
|
11370
11520
|
var snippetsContract = {
|
|
11371
|
-
get:
|
|
11372
|
-
|
|
11373
|
-
orgId:
|
|
11374
|
-
apiId:
|
|
11375
|
-
sdks:
|
|
11521
|
+
get: oc19.route({ method: "POST", path: "/" }).input(
|
|
11522
|
+
z29.object({
|
|
11523
|
+
orgId: z29.string().nullish(),
|
|
11524
|
+
apiId: z29.string().nullish(),
|
|
11525
|
+
sdks: z29.array(SdkRequestSchema).nullish(),
|
|
11376
11526
|
endpoint: EndpointIdentifierSchema,
|
|
11377
|
-
exampleIdentifier:
|
|
11527
|
+
exampleIdentifier: z29.string().nullish(),
|
|
11378
11528
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
11379
11529
|
})
|
|
11380
|
-
).output(
|
|
11381
|
-
load:
|
|
11382
|
-
|
|
11383
|
-
orgId:
|
|
11384
|
-
apiId:
|
|
11385
|
-
sdks:
|
|
11530
|
+
).output(z29.array(z29.unknown())),
|
|
11531
|
+
load: oc19.route({ method: "POST", path: "/load" }).input(
|
|
11532
|
+
z29.object({
|
|
11533
|
+
orgId: z29.string().nullish(),
|
|
11534
|
+
apiId: z29.string().nullish(),
|
|
11535
|
+
sdks: z29.array(SdkRequestSchema).nullish()
|
|
11386
11536
|
})
|
|
11387
11537
|
).output(
|
|
11388
|
-
|
|
11389
|
-
next:
|
|
11390
|
-
snippets:
|
|
11538
|
+
z29.object({
|
|
11539
|
+
next: z29.number().nullish(),
|
|
11540
|
+
snippets: z29.record(z29.string(), z29.unknown())
|
|
11391
11541
|
})
|
|
11392
11542
|
)
|
|
11393
11543
|
};
|
|
11394
11544
|
|
|
11395
11545
|
// src/orpc-client/snippets/client.ts
|
|
11396
11546
|
function createSnippetsFactoryClient(options) {
|
|
11397
|
-
const link = new
|
|
11547
|
+
const link = new OpenAPILink21(snippetsFactoryContract, {
|
|
11398
11548
|
url: `${options.baseUrl}/snippets`,
|
|
11399
11549
|
headers: () => ({
|
|
11400
11550
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11402,10 +11552,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
11402
11552
|
}),
|
|
11403
11553
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11404
11554
|
});
|
|
11405
|
-
return
|
|
11555
|
+
return createORPCClient21(link);
|
|
11406
11556
|
}
|
|
11407
11557
|
function createSnippetsClient(options) {
|
|
11408
|
-
const link = new
|
|
11558
|
+
const link = new OpenAPILink21(snippetsContract, {
|
|
11409
11559
|
url: `${options.baseUrl}/snippets`,
|
|
11410
11560
|
headers: () => ({
|
|
11411
11561
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11413,63 +11563,63 @@ function createSnippetsClient(options) {
|
|
|
11413
11563
|
}),
|
|
11414
11564
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11415
11565
|
});
|
|
11416
|
-
return
|
|
11566
|
+
return createORPCClient21(link);
|
|
11417
11567
|
}
|
|
11418
11568
|
|
|
11419
11569
|
// src/orpc-client/templates/client.ts
|
|
11420
|
-
import { createORPCClient as
|
|
11421
|
-
import { OpenAPILink as
|
|
11570
|
+
import { createORPCClient as createORPCClient22 } from "@orpc/client";
|
|
11571
|
+
import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
|
|
11422
11572
|
|
|
11423
11573
|
// src/orpc-client/templates/contract.ts
|
|
11424
|
-
import { oc as
|
|
11425
|
-
import * as
|
|
11426
|
-
var SnippetRegistryEntrySchema =
|
|
11574
|
+
import { oc as oc20 } from "@orpc/contract";
|
|
11575
|
+
import * as z30 from "zod";
|
|
11576
|
+
var SnippetRegistryEntrySchema = z30.object({
|
|
11427
11577
|
sdk: SdkSchema,
|
|
11428
|
-
endpointId:
|
|
11429
|
-
path:
|
|
11578
|
+
endpointId: z30.object({
|
|
11579
|
+
path: z30.string(),
|
|
11430
11580
|
method: HttpMethodSchema,
|
|
11431
|
-
identifierOverride:
|
|
11581
|
+
identifierOverride: z30.string().nullish()
|
|
11432
11582
|
}),
|
|
11433
|
-
snippetTemplate:
|
|
11434
|
-
type:
|
|
11435
|
-
functionInvocation:
|
|
11436
|
-
clientInstantiation:
|
|
11583
|
+
snippetTemplate: z30.object({
|
|
11584
|
+
type: z30.literal("v1"),
|
|
11585
|
+
functionInvocation: z30.unknown(),
|
|
11586
|
+
clientInstantiation: z30.string()
|
|
11437
11587
|
}),
|
|
11438
|
-
additionalTemplates:
|
|
11588
|
+
additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
|
|
11439
11589
|
});
|
|
11440
|
-
var RegisterInputSchema =
|
|
11441
|
-
orgId:
|
|
11442
|
-
apiId:
|
|
11443
|
-
apiDefinitionId:
|
|
11590
|
+
var RegisterInputSchema = z30.object({
|
|
11591
|
+
orgId: z30.string(),
|
|
11592
|
+
apiId: z30.string(),
|
|
11593
|
+
apiDefinitionId: z30.string(),
|
|
11444
11594
|
snippet: SnippetRegistryEntrySchema
|
|
11445
11595
|
});
|
|
11446
|
-
var RegisterBatchInputSchema =
|
|
11447
|
-
orgId:
|
|
11448
|
-
apiId:
|
|
11449
|
-
apiDefinitionId:
|
|
11450
|
-
snippets:
|
|
11596
|
+
var RegisterBatchInputSchema = z30.object({
|
|
11597
|
+
orgId: z30.string(),
|
|
11598
|
+
apiId: z30.string(),
|
|
11599
|
+
apiDefinitionId: z30.string(),
|
|
11600
|
+
snippets: z30.array(SnippetRegistryEntrySchema)
|
|
11451
11601
|
});
|
|
11452
|
-
var GetInputSchema =
|
|
11453
|
-
orgId:
|
|
11454
|
-
apiId:
|
|
11602
|
+
var GetInputSchema = z30.object({
|
|
11603
|
+
orgId: z30.string(),
|
|
11604
|
+
apiId: z30.string(),
|
|
11455
11605
|
sdk: SdkSchema,
|
|
11456
|
-
endpointId:
|
|
11457
|
-
path:
|
|
11606
|
+
endpointId: z30.object({
|
|
11607
|
+
path: z30.string(),
|
|
11458
11608
|
method: HttpMethodSchema,
|
|
11459
|
-
identifierOverride:
|
|
11609
|
+
identifierOverride: z30.string().nullish()
|
|
11460
11610
|
})
|
|
11461
11611
|
});
|
|
11462
|
-
var EndpointSnippetTemplateSchema =
|
|
11612
|
+
var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
|
|
11463
11613
|
var templatesContract = {
|
|
11464
|
-
register:
|
|
11465
|
-
registerBatch:
|
|
11466
|
-
get:
|
|
11614
|
+
register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
11615
|
+
registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
11616
|
+
get: oc20.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
11467
11617
|
};
|
|
11468
11618
|
|
|
11469
11619
|
// src/orpc-client/templates/client.ts
|
|
11470
11620
|
function createTemplatesClient(options) {
|
|
11471
11621
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
11472
|
-
const link = new
|
|
11622
|
+
const link = new OpenAPILink22(templatesContract, {
|
|
11473
11623
|
url: `${baseUrl}/snippet-template`,
|
|
11474
11624
|
headers: () => ({
|
|
11475
11625
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11477,36 +11627,36 @@ function createTemplatesClient(options) {
|
|
|
11477
11627
|
}),
|
|
11478
11628
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11479
11629
|
});
|
|
11480
|
-
return
|
|
11630
|
+
return createORPCClient22(link);
|
|
11481
11631
|
}
|
|
11482
11632
|
|
|
11483
11633
|
// src/orpc-client/tokens/client.ts
|
|
11484
|
-
import { createORPCClient as
|
|
11485
|
-
import { OpenAPILink as
|
|
11634
|
+
import { createORPCClient as createORPCClient23 } from "@orpc/client";
|
|
11635
|
+
import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
|
|
11486
11636
|
|
|
11487
11637
|
// src/orpc-client/tokens/contract.ts
|
|
11488
|
-
import { oc as
|
|
11489
|
-
import * as
|
|
11490
|
-
var GenerateTokenInputSchema =
|
|
11491
|
-
orgId:
|
|
11492
|
-
scope:
|
|
11638
|
+
import { oc as oc21 } from "@orpc/contract";
|
|
11639
|
+
import * as z31 from "zod";
|
|
11640
|
+
var GenerateTokenInputSchema = z31.object({
|
|
11641
|
+
orgId: z31.string(),
|
|
11642
|
+
scope: z31.string()
|
|
11493
11643
|
});
|
|
11494
|
-
var RevokeTokenInputSchema =
|
|
11495
|
-
orgId:
|
|
11496
|
-
tokenId:
|
|
11644
|
+
var RevokeTokenInputSchema = z31.object({
|
|
11645
|
+
orgId: z31.string(),
|
|
11646
|
+
tokenId: z31.string()
|
|
11497
11647
|
});
|
|
11498
|
-
var GenerateTokenOutputSchema =
|
|
11499
|
-
token:
|
|
11500
|
-
id:
|
|
11648
|
+
var GenerateTokenOutputSchema = z31.object({
|
|
11649
|
+
token: z31.string(),
|
|
11650
|
+
id: z31.string()
|
|
11501
11651
|
});
|
|
11502
11652
|
var tokensContract = {
|
|
11503
|
-
generate:
|
|
11504
|
-
revoke:
|
|
11653
|
+
generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
11654
|
+
revoke: oc21.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
11505
11655
|
};
|
|
11506
11656
|
|
|
11507
11657
|
// src/orpc-client/tokens/client.ts
|
|
11508
11658
|
function createTokensClient(options) {
|
|
11509
|
-
const link = new
|
|
11659
|
+
const link = new OpenAPILink23(tokensContract, {
|
|
11510
11660
|
url: `${options.baseUrl}/tokens`,
|
|
11511
11661
|
headers: () => ({
|
|
11512
11662
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -11514,7 +11664,7 @@ function createTokensClient(options) {
|
|
|
11514
11664
|
}),
|
|
11515
11665
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
11516
11666
|
});
|
|
11517
|
-
return
|
|
11667
|
+
return createORPCClient23(link);
|
|
11518
11668
|
}
|
|
11519
11669
|
|
|
11520
11670
|
// src/orpc-client/client.ts
|
|
@@ -11538,6 +11688,7 @@ function createFdrORPCClient(options) {
|
|
|
11538
11688
|
versions: createGeneratorVersionsClient(normalizedOptions)
|
|
11539
11689
|
},
|
|
11540
11690
|
git: createGitClient(normalizedOptions),
|
|
11691
|
+
mcpHosting: createMcpHostingClient(normalizedOptions),
|
|
11541
11692
|
slugs: createSlugsClient(normalizedOptions),
|
|
11542
11693
|
pdfExport: createPdfExportClient(normalizedOptions),
|
|
11543
11694
|
sdks: createSdksClient(normalizedOptions),
|
|
@@ -11774,85 +11925,85 @@ __export(APIV1Db_exports, {
|
|
|
11774
11925
|
});
|
|
11775
11926
|
|
|
11776
11927
|
// src/orpc-client/api/contract-db.ts
|
|
11777
|
-
import * as
|
|
11778
|
-
var EndpointSnippetTemplatesSchema =
|
|
11779
|
-
typescript:
|
|
11780
|
-
python:
|
|
11928
|
+
import * as z32 from "zod";
|
|
11929
|
+
var EndpointSnippetTemplatesSchema = z32.object({
|
|
11930
|
+
typescript: z32.unknown().nullish(),
|
|
11931
|
+
python: z32.unknown().nullish()
|
|
11781
11932
|
});
|
|
11782
|
-
var DbHttpRequestSchema =
|
|
11783
|
-
description:
|
|
11784
|
-
contentType:
|
|
11933
|
+
var DbHttpRequestSchema = z32.object({
|
|
11934
|
+
description: z32.string().nullish(),
|
|
11935
|
+
contentType: z32.string().nullish(),
|
|
11785
11936
|
type: RegisterHttpRequestBodyShapeSchema
|
|
11786
11937
|
});
|
|
11787
|
-
var DbHttpRequestsV2Schema =
|
|
11788
|
-
requests:
|
|
11938
|
+
var DbHttpRequestsV2Schema = z32.object({
|
|
11939
|
+
requests: z32.array(DbHttpRequestSchema).nullish()
|
|
11789
11940
|
});
|
|
11790
|
-
var DbEndpointDefinitionSchema =
|
|
11791
|
-
description:
|
|
11792
|
-
subtitle:
|
|
11941
|
+
var DbEndpointDefinitionSchema = z32.object({
|
|
11942
|
+
description: z32.string().nullish(),
|
|
11943
|
+
subtitle: z32.string().nullish(),
|
|
11793
11944
|
availability: AvailabilitySchema.nullish(),
|
|
11794
|
-
authed:
|
|
11795
|
-
authV2:
|
|
11796
|
-
multiAuth:
|
|
11945
|
+
authed: z32.boolean().nullish(),
|
|
11946
|
+
authV2: z32.array(AuthSchemeIdSchema).nullish(),
|
|
11947
|
+
multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
|
|
11797
11948
|
defaultEnvironment: EnvironmentIdSchema.nullish(),
|
|
11798
|
-
environments:
|
|
11949
|
+
environments: z32.array(EnvironmentSchema).nullish(),
|
|
11799
11950
|
method: HttpMethodSchema,
|
|
11800
11951
|
id: EndpointIdSchema,
|
|
11801
|
-
originalEndpointId:
|
|
11802
|
-
urlSlug:
|
|
11803
|
-
migratedFromUrlSlugs:
|
|
11804
|
-
name:
|
|
11952
|
+
originalEndpointId: z32.string().nullish(),
|
|
11953
|
+
urlSlug: z32.string(),
|
|
11954
|
+
migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
|
|
11955
|
+
name: z32.string().nullish(),
|
|
11805
11956
|
path: EndpointPathSchema,
|
|
11806
|
-
queryParameters:
|
|
11807
|
-
headers:
|
|
11808
|
-
responseHeaders:
|
|
11957
|
+
queryParameters: z32.array(QueryParameterSchema),
|
|
11958
|
+
headers: z32.array(HeaderSchema),
|
|
11959
|
+
responseHeaders: z32.array(HeaderSchema).nullish(),
|
|
11809
11960
|
request: DbHttpRequestSchema.nullish(),
|
|
11810
11961
|
requestsV2: DbHttpRequestsV2Schema.nullish(),
|
|
11811
11962
|
response: RegisterHttpResponseSchema.nullish(),
|
|
11812
11963
|
responsesV2: RegisterHttpResponsesV2Schema.nullish(),
|
|
11813
|
-
errors:
|
|
11814
|
-
errorsV2:
|
|
11815
|
-
examples:
|
|
11964
|
+
errors: z32.array(ErrorDeclarationSchema).nullish(),
|
|
11965
|
+
errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
|
|
11966
|
+
examples: z32.array(RegisterExampleEndpointCallSchema),
|
|
11816
11967
|
snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
|
|
11817
11968
|
protocol: ProtocolSchema.nullish(),
|
|
11818
|
-
includeInApiExplorer:
|
|
11819
|
-
});
|
|
11820
|
-
var DbApiDefinitionPackageSchema =
|
|
11821
|
-
endpoints:
|
|
11822
|
-
websockets:
|
|
11823
|
-
webhooks:
|
|
11824
|
-
graphqlOperations:
|
|
11825
|
-
types:
|
|
11826
|
-
subpackages:
|
|
11969
|
+
includeInApiExplorer: z32.boolean().nullish()
|
|
11970
|
+
});
|
|
11971
|
+
var DbApiDefinitionPackageSchema = z32.object({
|
|
11972
|
+
endpoints: z32.array(DbEndpointDefinitionSchema),
|
|
11973
|
+
websockets: z32.array(RegisterWebSocketChannelSchema).nullish(),
|
|
11974
|
+
webhooks: z32.array(RegisterWebhookDefinitionSchema).nullish(),
|
|
11975
|
+
graphqlOperations: z32.array(GraphQlOperationSchema).nullish(),
|
|
11976
|
+
types: z32.array(TypeIdSchema),
|
|
11977
|
+
subpackages: z32.array(SubpackageIdSchema),
|
|
11827
11978
|
pointsTo: SubpackageIdSchema.nullish()
|
|
11828
11979
|
});
|
|
11829
|
-
var DbApiDefinitionSubpackageSchema =
|
|
11980
|
+
var DbApiDefinitionSubpackageSchema = z32.object({
|
|
11830
11981
|
...DbApiDefinitionPackageSchema.shape,
|
|
11831
|
-
description:
|
|
11982
|
+
description: z32.string().nullish(),
|
|
11832
11983
|
parent: SubpackageIdSchema.nullish(),
|
|
11833
11984
|
subpackageId: SubpackageIdSchema,
|
|
11834
|
-
name:
|
|
11835
|
-
urlSlug:
|
|
11836
|
-
displayName:
|
|
11985
|
+
name: z32.string(),
|
|
11986
|
+
urlSlug: z32.string(),
|
|
11987
|
+
displayName: z32.string().nullish()
|
|
11837
11988
|
});
|
|
11838
|
-
var DbApiDefinitionSchema =
|
|
11989
|
+
var DbApiDefinitionSchema = z32.object({
|
|
11839
11990
|
id: ApiDefinitionIdSchema,
|
|
11840
|
-
apiName:
|
|
11841
|
-
specVersion:
|
|
11991
|
+
apiName: z32.string().nullish(),
|
|
11992
|
+
specVersion: z32.string().nullish(),
|
|
11842
11993
|
rootPackage: DbApiDefinitionPackageSchema,
|
|
11843
|
-
types:
|
|
11844
|
-
subpackages:
|
|
11994
|
+
types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
|
|
11995
|
+
subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
|
|
11845
11996
|
snippetsConfiguration: SnippetsConfigSchema.nullish(),
|
|
11846
11997
|
auth: ApiAuthSchema.nullish(),
|
|
11847
|
-
authSchemes:
|
|
11848
|
-
hasMultipleBaseUrls:
|
|
11998
|
+
authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
11999
|
+
hasMultipleBaseUrls: z32.boolean(),
|
|
11849
12000
|
navigation: ApiNavigationConfigRootSchema.nullish(),
|
|
11850
|
-
globalHeaders:
|
|
12001
|
+
globalHeaders: z32.array(HeaderSchema).nullish()
|
|
11851
12002
|
});
|
|
11852
|
-
var DbEndpointWithContextSchema =
|
|
12003
|
+
var DbEndpointWithContextSchema = z32.object({
|
|
11853
12004
|
endpoint: DbEndpointDefinitionSchema,
|
|
11854
|
-
authSchemes:
|
|
11855
|
-
globalHeaders:
|
|
12005
|
+
authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
|
|
12006
|
+
globalHeaders: z32.array(HeaderSchema).nullish()
|
|
11856
12007
|
});
|
|
11857
12008
|
|
|
11858
12009
|
// src/client/APIV1Read.ts
|
|
@@ -12430,15 +12581,15 @@ __export(DocsV1Db_exports, {
|
|
|
12430
12581
|
});
|
|
12431
12582
|
|
|
12432
12583
|
// src/client/docs-types/db.ts
|
|
12433
|
-
import * as
|
|
12584
|
+
import * as z34 from "zod";
|
|
12434
12585
|
|
|
12435
12586
|
// src/client/docs-types/db-docsRead.ts
|
|
12436
|
-
import * as
|
|
12437
|
-
var BackgroundSchema2 =
|
|
12438
|
-
|
|
12439
|
-
|
|
12587
|
+
import * as z33 from "zod";
|
|
12588
|
+
var BackgroundSchema2 = z33.discriminatedUnion("type", [
|
|
12589
|
+
z33.object({ type: z33.literal("solid"), ...RgbaColorSchema.shape }),
|
|
12590
|
+
z33.object({ type: z33.literal("gradient") })
|
|
12440
12591
|
]);
|
|
12441
|
-
var ThemeConfigSchema3 =
|
|
12592
|
+
var ThemeConfigSchema3 = z33.object({
|
|
12442
12593
|
logo: FileIdSchema2.optional(),
|
|
12443
12594
|
backgroundImage: FileIdSchema2.optional(),
|
|
12444
12595
|
accentPrimary: RgbaColorSchema,
|
|
@@ -12460,174 +12611,174 @@ var ThemeConfigSchema3 = z32.object({
|
|
|
12460
12611
|
accent11: RgbaColorSchema.optional(),
|
|
12461
12612
|
accent12: RgbaColorSchema.optional()
|
|
12462
12613
|
});
|
|
12463
|
-
var DarkAndLightModeConfigSchema3 =
|
|
12614
|
+
var DarkAndLightModeConfigSchema3 = z33.object({
|
|
12464
12615
|
dark: ThemeConfigSchema3,
|
|
12465
12616
|
light: ThemeConfigSchema3
|
|
12466
12617
|
});
|
|
12467
|
-
var ColorsConfigV3Schema3 =
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12618
|
+
var ColorsConfigV3Schema3 = z33.discriminatedUnion("type", [
|
|
12619
|
+
z33.object({ type: z33.literal("dark"), ...ThemeConfigSchema3.shape }),
|
|
12620
|
+
z33.object({ type: z33.literal("light"), ...ThemeConfigSchema3.shape }),
|
|
12621
|
+
z33.object({ type: z33.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
|
|
12471
12622
|
]);
|
|
12472
12623
|
|
|
12473
12624
|
// src/client/docs-types/db.ts
|
|
12474
|
-
var DbFileInfoSchema =
|
|
12475
|
-
s3Key:
|
|
12476
|
-
});
|
|
12477
|
-
var DbImageFileInfoSchema =
|
|
12478
|
-
s3Key:
|
|
12479
|
-
width:
|
|
12480
|
-
height:
|
|
12481
|
-
blurDataUrl:
|
|
12482
|
-
alt:
|
|
12483
|
-
});
|
|
12484
|
-
var DbFileInfoV2Schema =
|
|
12485
|
-
|
|
12486
|
-
|
|
12625
|
+
var DbFileInfoSchema = z34.object({
|
|
12626
|
+
s3Key: z34.string()
|
|
12627
|
+
});
|
|
12628
|
+
var DbImageFileInfoSchema = z34.object({
|
|
12629
|
+
s3Key: z34.string(),
|
|
12630
|
+
width: z34.number(),
|
|
12631
|
+
height: z34.number(),
|
|
12632
|
+
blurDataUrl: z34.string().optional(),
|
|
12633
|
+
alt: z34.string().optional()
|
|
12634
|
+
});
|
|
12635
|
+
var DbFileInfoV2Schema = z34.discriminatedUnion("type", [
|
|
12636
|
+
z34.object({ type: z34.literal("s3Key"), ...DbFileInfoSchema.shape }),
|
|
12637
|
+
z34.object({ type: z34.literal("image"), ...DbImageFileInfoSchema.shape })
|
|
12487
12638
|
]);
|
|
12488
|
-
var NavigationTabGroupSchema3 =
|
|
12489
|
-
() =>
|
|
12490
|
-
title:
|
|
12491
|
-
icon:
|
|
12492
|
-
items:
|
|
12493
|
-
urlSlug:
|
|
12494
|
-
skipUrlSlug:
|
|
12639
|
+
var NavigationTabGroupSchema3 = z34.lazy(
|
|
12640
|
+
() => z34.object({
|
|
12641
|
+
title: z34.string(),
|
|
12642
|
+
icon: z34.string().optional(),
|
|
12643
|
+
items: z34.array(NavigationItemSchema3),
|
|
12644
|
+
urlSlug: z34.string(),
|
|
12645
|
+
skipUrlSlug: z34.boolean().optional()
|
|
12495
12646
|
})
|
|
12496
12647
|
);
|
|
12497
|
-
var NavigationTabSchema3 =
|
|
12498
|
-
var NavigationTabV2Schema2 =
|
|
12499
|
-
() =>
|
|
12500
|
-
|
|
12501
|
-
type:
|
|
12502
|
-
title:
|
|
12503
|
-
icon:
|
|
12504
|
-
items:
|
|
12505
|
-
urlSlug:
|
|
12506
|
-
skipUrlSlug:
|
|
12648
|
+
var NavigationTabSchema3 = z34.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
|
|
12649
|
+
var NavigationTabV2Schema2 = z34.lazy(
|
|
12650
|
+
() => z34.discriminatedUnion("type", [
|
|
12651
|
+
z34.object({
|
|
12652
|
+
type: z34.literal("group"),
|
|
12653
|
+
title: z34.string(),
|
|
12654
|
+
icon: z34.string().optional(),
|
|
12655
|
+
items: z34.array(NavigationItemSchema3),
|
|
12656
|
+
urlSlug: z34.string(),
|
|
12657
|
+
skipUrlSlug: z34.boolean().optional()
|
|
12507
12658
|
}),
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12659
|
+
z34.object({ type: z34.literal("link"), ...NavigationTabLinkSchema.shape }),
|
|
12660
|
+
z34.object({ type: z34.literal("changelog"), ...ChangelogSectionSchema.shape }),
|
|
12661
|
+
z34.object({ type: z34.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
|
|
12511
12662
|
])
|
|
12512
12663
|
);
|
|
12513
|
-
var ApiSectionSchema3 =
|
|
12514
|
-
title:
|
|
12515
|
-
icon:
|
|
12664
|
+
var ApiSectionSchema3 = z34.object({
|
|
12665
|
+
title: z34.string(),
|
|
12666
|
+
icon: z34.string().optional(),
|
|
12516
12667
|
api: ApiDefinitionIdSchema2,
|
|
12517
|
-
urlSlug:
|
|
12518
|
-
skipUrlSlug:
|
|
12668
|
+
urlSlug: z34.string(),
|
|
12669
|
+
skipUrlSlug: z34.boolean(),
|
|
12519
12670
|
artifacts: ApiArtifactsSchema.optional(),
|
|
12520
|
-
showErrors:
|
|
12671
|
+
showErrors: z34.boolean().optional(),
|
|
12521
12672
|
changelog: ChangelogSectionSchema.optional(),
|
|
12522
|
-
hidden:
|
|
12523
|
-
fullSlug:
|
|
12673
|
+
hidden: z34.boolean().optional(),
|
|
12674
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12524
12675
|
navigation: ApiNavigationConfigRootSchema2.optional(),
|
|
12525
|
-
longScrolling:
|
|
12526
|
-
flattened:
|
|
12527
|
-
});
|
|
12528
|
-
var DocsSectionSchema3 =
|
|
12529
|
-
() =>
|
|
12530
|
-
title:
|
|
12531
|
-
icon:
|
|
12532
|
-
items:
|
|
12533
|
-
urlSlug:
|
|
12534
|
-
skipUrlSlug:
|
|
12535
|
-
collapsed:
|
|
12536
|
-
collapsible:
|
|
12537
|
-
collapsedByDefault:
|
|
12538
|
-
hidden:
|
|
12539
|
-
fullSlug:
|
|
12676
|
+
longScrolling: z34.boolean().optional(),
|
|
12677
|
+
flattened: z34.boolean().optional()
|
|
12678
|
+
});
|
|
12679
|
+
var DocsSectionSchema3 = z34.lazy(
|
|
12680
|
+
() => z34.object({
|
|
12681
|
+
title: z34.string(),
|
|
12682
|
+
icon: z34.string().optional(),
|
|
12683
|
+
items: z34.array(NavigationItemSchema3),
|
|
12684
|
+
urlSlug: z34.string(),
|
|
12685
|
+
skipUrlSlug: z34.boolean(),
|
|
12686
|
+
collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
|
|
12687
|
+
collapsible: z34.boolean().optional(),
|
|
12688
|
+
collapsedByDefault: z34.boolean().optional(),
|
|
12689
|
+
hidden: z34.boolean().optional(),
|
|
12690
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12540
12691
|
overviewPageId: PageIdSchema2.optional()
|
|
12541
12692
|
})
|
|
12542
12693
|
);
|
|
12543
|
-
var NavigationItemSchema3 =
|
|
12544
|
-
() =>
|
|
12545
|
-
|
|
12546
|
-
type:
|
|
12694
|
+
var NavigationItemSchema3 = z34.lazy(
|
|
12695
|
+
() => z34.discriminatedUnion("type", [
|
|
12696
|
+
z34.object({
|
|
12697
|
+
type: z34.literal("page"),
|
|
12547
12698
|
...PageMetadataSchema.shape
|
|
12548
12699
|
}),
|
|
12549
|
-
|
|
12550
|
-
type:
|
|
12700
|
+
z34.object({
|
|
12701
|
+
type: z34.literal("api"),
|
|
12551
12702
|
...ApiSectionSchema3.shape
|
|
12552
12703
|
}),
|
|
12553
|
-
|
|
12554
|
-
type:
|
|
12704
|
+
z34.object({
|
|
12705
|
+
type: z34.literal("apiV2"),
|
|
12555
12706
|
...ApiSectionV2Schema.shape
|
|
12556
12707
|
}),
|
|
12557
|
-
|
|
12558
|
-
type:
|
|
12559
|
-
title:
|
|
12560
|
-
icon:
|
|
12561
|
-
items:
|
|
12562
|
-
urlSlug:
|
|
12563
|
-
skipUrlSlug:
|
|
12564
|
-
collapsed:
|
|
12565
|
-
collapsible:
|
|
12566
|
-
collapsedByDefault:
|
|
12567
|
-
hidden:
|
|
12568
|
-
fullSlug:
|
|
12708
|
+
z34.object({
|
|
12709
|
+
type: z34.literal("section"),
|
|
12710
|
+
title: z34.string(),
|
|
12711
|
+
icon: z34.string().optional(),
|
|
12712
|
+
items: z34.array(NavigationItemSchema3),
|
|
12713
|
+
urlSlug: z34.string(),
|
|
12714
|
+
skipUrlSlug: z34.boolean(),
|
|
12715
|
+
collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
|
|
12716
|
+
collapsible: z34.boolean().optional(),
|
|
12717
|
+
collapsedByDefault: z34.boolean().optional(),
|
|
12718
|
+
hidden: z34.boolean().optional(),
|
|
12719
|
+
fullSlug: z34.array(z34.string()).optional(),
|
|
12569
12720
|
overviewPageId: PageIdSchema2.optional()
|
|
12570
12721
|
}),
|
|
12571
|
-
|
|
12572
|
-
type:
|
|
12722
|
+
z34.object({
|
|
12723
|
+
type: z34.literal("link"),
|
|
12573
12724
|
...LinkMetadataSchema.shape
|
|
12574
12725
|
}),
|
|
12575
|
-
|
|
12576
|
-
type:
|
|
12726
|
+
z34.object({
|
|
12727
|
+
type: z34.literal("changelog"),
|
|
12577
12728
|
...ChangelogSectionSchema.shape
|
|
12578
12729
|
}),
|
|
12579
|
-
|
|
12580
|
-
type:
|
|
12730
|
+
z34.object({
|
|
12731
|
+
type: z34.literal("changelogV3"),
|
|
12581
12732
|
...ChangelogSectionV3Schema.shape
|
|
12582
12733
|
})
|
|
12583
12734
|
])
|
|
12584
12735
|
);
|
|
12585
|
-
var UnversionedTabbedNavigationConfigSchema3 =
|
|
12586
|
-
tabs:
|
|
12587
|
-
tabsV2:
|
|
12736
|
+
var UnversionedTabbedNavigationConfigSchema3 = z34.object({
|
|
12737
|
+
tabs: z34.array(NavigationTabSchema3).optional(),
|
|
12738
|
+
tabsV2: z34.array(NavigationTabV2Schema2).optional(),
|
|
12588
12739
|
landingPage: PageMetadataSchema.optional()
|
|
12589
12740
|
});
|
|
12590
|
-
var UnversionedUntabbedNavigationConfigSchema3 =
|
|
12591
|
-
items:
|
|
12741
|
+
var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
|
|
12742
|
+
items: z34.array(NavigationItemSchema3),
|
|
12592
12743
|
landingPage: PageMetadataSchema.optional()
|
|
12593
12744
|
});
|
|
12594
|
-
var UnversionedNavigationConfigSchema3 =
|
|
12745
|
+
var UnversionedNavigationConfigSchema3 = z34.union([
|
|
12595
12746
|
UnversionedTabbedNavigationConfigSchema3,
|
|
12596
12747
|
UnversionedUntabbedNavigationConfigSchema3
|
|
12597
12748
|
]);
|
|
12598
|
-
var VersionedNavigationConfigDataSchema3 =
|
|
12749
|
+
var VersionedNavigationConfigDataSchema3 = z34.object({
|
|
12599
12750
|
version: VersionIdSchema2,
|
|
12600
|
-
urlSlug:
|
|
12751
|
+
urlSlug: z34.string().optional(),
|
|
12601
12752
|
availability: AvailabilitySchema2.optional(),
|
|
12602
12753
|
config: UnversionedNavigationConfigSchema3
|
|
12603
12754
|
});
|
|
12604
|
-
var VersionedNavigationConfigSchema3 =
|
|
12605
|
-
versions:
|
|
12755
|
+
var VersionedNavigationConfigSchema3 = z34.object({
|
|
12756
|
+
versions: z34.array(VersionedNavigationConfigDataSchema3)
|
|
12606
12757
|
});
|
|
12607
|
-
var NavigationConfigSchema3 =
|
|
12608
|
-
var DocsDbConfigSchema =
|
|
12609
|
-
title:
|
|
12758
|
+
var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
|
|
12759
|
+
var DocsDbConfigSchema = z34.object({
|
|
12760
|
+
title: z34.string().optional(),
|
|
12610
12761
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
12611
|
-
languages:
|
|
12762
|
+
languages: z34.array(LanguageSchema).optional(),
|
|
12612
12763
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
12613
12764
|
announcement: AnnouncementConfigSchema.optional(),
|
|
12614
12765
|
navigation: NavigationConfigSchema3.optional(),
|
|
12615
|
-
root:
|
|
12616
|
-
navbarLinks:
|
|
12617
|
-
footerLinks:
|
|
12618
|
-
hideNavLinks:
|
|
12766
|
+
root: z34.custom().optional(),
|
|
12767
|
+
navbarLinks: z34.array(NavbarLinkSchema).optional(),
|
|
12768
|
+
footerLinks: z34.array(FooterLinkSchema).optional(),
|
|
12769
|
+
hideNavLinks: z34.boolean().optional(),
|
|
12619
12770
|
logoHeight: HeightSchema.optional(),
|
|
12620
12771
|
logoHref: UrlSchema2.optional(),
|
|
12621
|
-
logoRightText:
|
|
12772
|
+
logoRightText: z34.string().optional(),
|
|
12622
12773
|
favicon: FileIdSchema2.optional(),
|
|
12623
12774
|
agents: AgentsConfigSchema.optional(),
|
|
12624
12775
|
metadata: MetadataConfigSchema.optional(),
|
|
12625
|
-
redirects:
|
|
12776
|
+
redirects: z34.array(RedirectConfigSchema).optional(),
|
|
12626
12777
|
backgroundImage: FileIdSchema2.optional(),
|
|
12627
12778
|
colorsV3: ColorsConfigV3Schema3.optional(),
|
|
12628
12779
|
layout: DocsLayoutConfigSchema.optional(),
|
|
12629
12780
|
theme: DocsThemeConfigSchema.optional(),
|
|
12630
|
-
globalTheme:
|
|
12781
|
+
globalTheme: z34.string().optional(),
|
|
12631
12782
|
settings: DocsSettingsConfigSchema.optional(),
|
|
12632
12783
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
12633
12784
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -12637,40 +12788,40 @@ var DocsDbConfigSchema = z33.object({
|
|
|
12637
12788
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
12638
12789
|
pageActions: PageActionsConfigSchema.optional(),
|
|
12639
12790
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
12640
|
-
header:
|
|
12641
|
-
footer:
|
|
12791
|
+
header: z34.string().optional(),
|
|
12792
|
+
footer: z34.string().optional(),
|
|
12642
12793
|
logo: FileIdSchema2.optional(),
|
|
12643
12794
|
logoV2: ThemedFileIdSchema.optional(),
|
|
12644
12795
|
colors: ColorsConfigSchema.optional(),
|
|
12645
12796
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
12646
12797
|
typography: DocsTypographyConfigSchema.optional()
|
|
12647
12798
|
});
|
|
12648
|
-
var DocsDefinitionDbV1Schema =
|
|
12649
|
-
pages:
|
|
12650
|
-
referencedApis:
|
|
12651
|
-
files:
|
|
12799
|
+
var DocsDefinitionDbV1Schema = z34.object({
|
|
12800
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12801
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12802
|
+
files: z34.record(FileIdSchema2, DbFileInfoSchema),
|
|
12652
12803
|
config: DocsDbConfigSchema,
|
|
12653
12804
|
colors: ColorsConfigSchema.optional()
|
|
12654
12805
|
});
|
|
12655
|
-
var DocsDefinitionDbV2Schema =
|
|
12656
|
-
pages:
|
|
12657
|
-
referencedApis:
|
|
12658
|
-
files:
|
|
12806
|
+
var DocsDefinitionDbV2Schema = z34.object({
|
|
12807
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12808
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12809
|
+
files: z34.record(FileIdSchema2, DbFileInfoSchema),
|
|
12659
12810
|
config: DocsDbConfigSchema,
|
|
12660
12811
|
colors: ColorsConfigSchema.optional(),
|
|
12661
12812
|
typography: DocsTypographyConfigSchema.optional()
|
|
12662
12813
|
});
|
|
12663
|
-
var DocsDefinitionDbV3Schema =
|
|
12664
|
-
pages:
|
|
12665
|
-
referencedApis:
|
|
12666
|
-
files:
|
|
12814
|
+
var DocsDefinitionDbV3Schema = z34.object({
|
|
12815
|
+
pages: z34.record(PageIdSchema2, PageContentSchema),
|
|
12816
|
+
referencedApis: z34.array(ApiDefinitionIdSchema2),
|
|
12817
|
+
files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
|
|
12667
12818
|
config: DocsDbConfigSchema,
|
|
12668
|
-
jsFiles:
|
|
12819
|
+
jsFiles: z34.record(z34.string(), z34.string()).optional()
|
|
12669
12820
|
});
|
|
12670
|
-
var DocsDefinitionDbSchema =
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12821
|
+
var DocsDefinitionDbSchema = z34.discriminatedUnion("type", [
|
|
12822
|
+
z34.object({ type: z34.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
|
|
12823
|
+
z34.object({ type: z34.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
|
|
12824
|
+
z34.object({ type: z34.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
|
|
12674
12825
|
]);
|
|
12675
12826
|
|
|
12676
12827
|
// src/client/DocsV1Read.ts
|
|
@@ -13445,100 +13596,100 @@ __export(DocsLatest_exports, {
|
|
|
13445
13596
|
});
|
|
13446
13597
|
|
|
13447
13598
|
// src/client/docs-types/latest.ts
|
|
13448
|
-
import * as
|
|
13449
|
-
var StringOrStringListSchema =
|
|
13450
|
-
var TwitterCardSettingSchema2 =
|
|
13451
|
-
var JsonLdBreadcrumbListElementSchema =
|
|
13452
|
-
"@type":
|
|
13453
|
-
position:
|
|
13454
|
-
name:
|
|
13455
|
-
item:
|
|
13456
|
-
});
|
|
13457
|
-
var JsonLdBreadcrumbListSchema =
|
|
13458
|
-
"@context":
|
|
13459
|
-
"@type":
|
|
13460
|
-
itemListElement:
|
|
13461
|
-
});
|
|
13462
|
-
var WithJsonLdBreadcrumbsSchema =
|
|
13599
|
+
import * as z35 from "zod";
|
|
13600
|
+
var StringOrStringListSchema = z35.union([z35.string(), z35.array(z35.string())]);
|
|
13601
|
+
var TwitterCardSettingSchema2 = z35.enum(["summary", "summary_large_image", "app", "player"]);
|
|
13602
|
+
var JsonLdBreadcrumbListElementSchema = z35.object({
|
|
13603
|
+
"@type": z35.literal("ListItem"),
|
|
13604
|
+
position: z35.number(),
|
|
13605
|
+
name: z35.string(),
|
|
13606
|
+
item: z35.string().optional()
|
|
13607
|
+
});
|
|
13608
|
+
var JsonLdBreadcrumbListSchema = z35.object({
|
|
13609
|
+
"@context": z35.literal("https://schema.org"),
|
|
13610
|
+
"@type": z35.literal("BreadcrumbList"),
|
|
13611
|
+
itemListElement: z35.array(JsonLdBreadcrumbListElementSchema)
|
|
13612
|
+
});
|
|
13613
|
+
var WithJsonLdBreadcrumbsSchema = z35.object({
|
|
13463
13614
|
"jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
|
|
13464
13615
|
});
|
|
13465
|
-
var WithMetadataConfigSchema =
|
|
13466
|
-
"og:site_name":
|
|
13467
|
-
"og:title":
|
|
13468
|
-
"og:description":
|
|
13469
|
-
"og:url":
|
|
13616
|
+
var WithMetadataConfigSchema = z35.object({
|
|
13617
|
+
"og:site_name": z35.string().optional(),
|
|
13618
|
+
"og:title": z35.string().optional(),
|
|
13619
|
+
"og:description": z35.string().optional(),
|
|
13620
|
+
"og:url": z35.string().optional(),
|
|
13470
13621
|
"og:image": FileIdOrUrlSchema.optional(),
|
|
13471
|
-
"og:image:width":
|
|
13472
|
-
"og:image:height":
|
|
13473
|
-
"og:locale":
|
|
13622
|
+
"og:image:width": z35.number().optional(),
|
|
13623
|
+
"og:image:height": z35.number().optional(),
|
|
13624
|
+
"og:locale": z35.string().optional(),
|
|
13474
13625
|
"og:logo": FileIdOrUrlSchema.optional(),
|
|
13475
|
-
"twitter:title":
|
|
13476
|
-
"twitter:description":
|
|
13477
|
-
"twitter:handle":
|
|
13626
|
+
"twitter:title": z35.string().optional(),
|
|
13627
|
+
"twitter:description": z35.string().optional(),
|
|
13628
|
+
"twitter:handle": z35.string().optional(),
|
|
13478
13629
|
"twitter:image": FileIdOrUrlSchema.optional(),
|
|
13479
|
-
"twitter:site":
|
|
13480
|
-
"twitter:url":
|
|
13630
|
+
"twitter:site": z35.string().optional(),
|
|
13631
|
+
"twitter:url": z35.string().optional(),
|
|
13481
13632
|
"twitter:card": TwitterCardSettingSchema2.optional(),
|
|
13482
13633
|
"og:background-image": FileIdOrUrlSchema.optional(),
|
|
13483
|
-
"og:dynamic":
|
|
13634
|
+
"og:dynamic": z35.boolean().optional(),
|
|
13484
13635
|
"og:dynamic:background-image": FileIdOrUrlSchema.optional(),
|
|
13485
|
-
"og:dynamic:text-color":
|
|
13486
|
-
"og:dynamic:background-color":
|
|
13487
|
-
"og:dynamic:show-logo":
|
|
13488
|
-
"og:dynamic:show-section":
|
|
13489
|
-
"og:dynamic:show-description":
|
|
13490
|
-
"og:dynamic:show-url":
|
|
13491
|
-
"og:dynamic:show-gradient":
|
|
13492
|
-
noindex:
|
|
13493
|
-
nofollow:
|
|
13636
|
+
"og:dynamic:text-color": z35.string().optional(),
|
|
13637
|
+
"og:dynamic:background-color": z35.string().optional(),
|
|
13638
|
+
"og:dynamic:show-logo": z35.boolean().optional(),
|
|
13639
|
+
"og:dynamic:show-section": z35.boolean().optional(),
|
|
13640
|
+
"og:dynamic:show-description": z35.boolean().optional(),
|
|
13641
|
+
"og:dynamic:show-url": z35.boolean().optional(),
|
|
13642
|
+
"og:dynamic:show-gradient": z35.boolean().optional(),
|
|
13643
|
+
noindex: z35.boolean().optional(),
|
|
13644
|
+
nofollow: z35.boolean().optional(),
|
|
13494
13645
|
keywords: StringOrStringListSchema.optional()
|
|
13495
13646
|
});
|
|
13496
|
-
var LayoutSchema =
|
|
13497
|
-
var LogoConfigurationSchema =
|
|
13647
|
+
var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
13648
|
+
var LogoConfigurationSchema = z35.object({
|
|
13498
13649
|
light: FileIdOrUrlSchema.optional(),
|
|
13499
13650
|
dark: FileIdOrUrlSchema.optional()
|
|
13500
13651
|
});
|
|
13501
|
-
var LogoSchema =
|
|
13502
|
-
var BreadcrumbItemSchema =
|
|
13503
|
-
title:
|
|
13504
|
-
pointsTo:
|
|
13652
|
+
var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
|
|
13653
|
+
var BreadcrumbItemSchema = z35.object({
|
|
13654
|
+
title: z35.string(),
|
|
13655
|
+
pointsTo: z35.string().optional()
|
|
13505
13656
|
});
|
|
13506
13657
|
var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
|
|
13507
|
-
|
|
13658
|
+
z35.object({
|
|
13508
13659
|
layout: LayoutSchema.optional(),
|
|
13509
|
-
slug:
|
|
13510
|
-
title:
|
|
13511
|
-
headline:
|
|
13512
|
-
description:
|
|
13513
|
-
subtitle:
|
|
13660
|
+
slug: z35.string().optional(),
|
|
13661
|
+
title: z35.string().optional(),
|
|
13662
|
+
headline: z35.string().optional(),
|
|
13663
|
+
description: z35.string().optional(),
|
|
13664
|
+
subtitle: z35.string().optional(),
|
|
13514
13665
|
logo: LogoSchema.optional(),
|
|
13515
13666
|
image: FileIdOrUrlSchema.optional(),
|
|
13516
|
-
"edit-this-page-url":
|
|
13517
|
-
"hide-toc":
|
|
13518
|
-
"force-toc":
|
|
13519
|
-
"hide-nav-links":
|
|
13520
|
-
"max-toc-depth":
|
|
13521
|
-
"hide-feedback":
|
|
13522
|
-
"hide-page-actions":
|
|
13523
|
-
"no-image-zoom":
|
|
13524
|
-
breadcrumb:
|
|
13525
|
-
excerpt:
|
|
13526
|
-
"canonical-url":
|
|
13667
|
+
"edit-this-page-url": z35.string().optional(),
|
|
13668
|
+
"hide-toc": z35.boolean().optional(),
|
|
13669
|
+
"force-toc": z35.boolean().optional(),
|
|
13670
|
+
"hide-nav-links": z35.boolean().optional(),
|
|
13671
|
+
"max-toc-depth": z35.number().optional(),
|
|
13672
|
+
"hide-feedback": z35.boolean().optional(),
|
|
13673
|
+
"hide-page-actions": z35.boolean().optional(),
|
|
13674
|
+
"no-image-zoom": z35.boolean().optional(),
|
|
13675
|
+
breadcrumb: z35.array(BreadcrumbItemSchema).optional(),
|
|
13676
|
+
excerpt: z35.string().optional(),
|
|
13677
|
+
"canonical-url": z35.string().optional(),
|
|
13527
13678
|
tags: StringOrStringListSchema.optional(),
|
|
13528
|
-
"last-updated":
|
|
13679
|
+
"last-updated": z35.string().optional(),
|
|
13529
13680
|
/**
|
|
13530
13681
|
* Arbitrary author-defined metadata that is copied onto this page's search
|
|
13531
13682
|
* records, so it can be faceted and filtered on by full path
|
|
13532
13683
|
* (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
|
|
13533
13684
|
*/
|
|
13534
|
-
"search-metadata":
|
|
13685
|
+
"search-metadata": z35.record(z35.unknown()).optional()
|
|
13535
13686
|
})
|
|
13536
13687
|
);
|
|
13537
|
-
var ResolvedMdxSchema =
|
|
13538
|
-
code:
|
|
13688
|
+
var ResolvedMdxSchema = z35.object({
|
|
13689
|
+
code: z35.string(),
|
|
13539
13690
|
frontmatter: FrontmatterSchema,
|
|
13540
|
-
scope:
|
|
13541
|
-
jsxRefs:
|
|
13691
|
+
scope: z35.record(z35.string(), z35.unknown()),
|
|
13692
|
+
jsxRefs: z35.array(z35.string()).optional()
|
|
13542
13693
|
});
|
|
13543
13694
|
|
|
13544
13695
|
// src/client/DocsV1Commons.ts
|
|
@@ -13978,9 +14129,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
|
|
|
13978
14129
|
}
|
|
13979
14130
|
}
|
|
13980
14131
|
}
|
|
13981
|
-
function generateExampleObject(
|
|
14132
|
+
function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
|
|
13982
14133
|
const example = {};
|
|
13983
|
-
for (const property of getAllObjectProperties(
|
|
14134
|
+
for (const property of getAllObjectProperties(object34, resolveTypeById)) {
|
|
13984
14135
|
const value = generateExampleFromTypeReference(
|
|
13985
14136
|
property.valueType,
|
|
13986
14137
|
resolveTypeById,
|
|
@@ -14164,10 +14315,10 @@ function generateExamplePrimitive(reference) {
|
|
|
14164
14315
|
return reference.name;
|
|
14165
14316
|
}
|
|
14166
14317
|
}
|
|
14167
|
-
function getAllObjectProperties(
|
|
14318
|
+
function getAllObjectProperties(object34, resolveTypeById) {
|
|
14168
14319
|
return [
|
|
14169
|
-
...
|
|
14170
|
-
...
|
|
14320
|
+
...object34.properties,
|
|
14321
|
+
...object34.extends.flatMap((typeId) => {
|
|
14171
14322
|
let type = resolveTypeById(typeId);
|
|
14172
14323
|
if (type == null) {
|
|
14173
14324
|
return [];
|