@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/orpc-client.js
CHANGED
|
@@ -112,8 +112,10 @@ __export(orpc_client_exports, {
|
|
|
112
112
|
DeleteDocsSiteByServiceInputSchema: () => DeleteDocsSiteByServiceInputSchema,
|
|
113
113
|
DeleteDocsSiteByServiceResponseSchema: () => DeleteDocsSiteByServiceResponseSchema,
|
|
114
114
|
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
115
|
+
DeleteMcpServerInputSchema: () => DeleteMcpServerInputSchema,
|
|
115
116
|
DeletePullRequestInputSchema: () => DeletePullRequestInputSchema,
|
|
116
117
|
DeleteRepositoryInputSchema: () => DeleteRepositoryInputSchema,
|
|
118
|
+
DeployMcpServerInputSchema: () => DeployMcpServerInputSchema,
|
|
117
119
|
DiscriminatedUnionTypeSchema: () => DiscriminatedUnionTypeSchema,
|
|
118
120
|
DiscriminatedUnionVariantSchema: () => DiscriminatedUnionVariantSchema,
|
|
119
121
|
DocsConfigId: () => DocsConfigId,
|
|
@@ -231,6 +233,7 @@ __export(orpc_client_exports, {
|
|
|
231
233
|
GetLatestGeneratorReleaseInputSchema: () => GetLatestGeneratorReleaseInputSchema,
|
|
232
234
|
GetLibraryDocsStatusInputSchema: () => GetLibraryDocsStatusInputSchema,
|
|
233
235
|
GetMarkdownEntriesResponseSchema: () => GetMarkdownEntriesResponseSchema,
|
|
236
|
+
GetMcpServerInputSchema: () => GetMcpServerInputSchema,
|
|
234
237
|
GetMinCliForIrInputSchema: () => GetMinCliForIrInputSchema,
|
|
235
238
|
GetOrganizationForUrlInputSchema: () => GetOrganizationForUrlInputSchema,
|
|
236
239
|
GetPdfExportDownloadUrlInputSchema: () => GetPdfExportDownloadUrlInputSchema,
|
|
@@ -383,6 +386,10 @@ __export(orpc_client_exports, {
|
|
|
383
386
|
ListDocsPagesResponseSchema: () => ListDocsPagesResponseSchema,
|
|
384
387
|
ListGeneratorReleasesInputSchema: () => ListGeneratorReleasesInputSchema,
|
|
385
388
|
ListGeneratorReleasesResponseSchema: () => ListGeneratorReleasesResponseSchema,
|
|
389
|
+
ListMcpDeploymentsInputSchema: () => ListMcpDeploymentsInputSchema,
|
|
390
|
+
ListMcpDeploymentsResponseSchema: () => ListMcpDeploymentsResponseSchema,
|
|
391
|
+
ListMcpServersInputSchema: () => ListMcpServersInputSchema,
|
|
392
|
+
ListMcpServersResponseSchema: () => ListMcpServersResponseSchema,
|
|
386
393
|
ListPdfExportTasksInputSchema: () => ListPdfExportTasksInputSchema,
|
|
387
394
|
ListPdfExportTasksResponseSchema: () => ListPdfExportTasksResponseSchema,
|
|
388
395
|
ListPullRequestsInputSchema: () => ListPullRequestsInputSchema,
|
|
@@ -402,6 +409,11 @@ __export(orpc_client_exports, {
|
|
|
402
409
|
ManifestRouteSchema: () => ManifestRouteSchema,
|
|
403
410
|
ManifestSegmentSchema: () => ManifestSegmentSchema,
|
|
404
411
|
MarkdownEntrySchema: () => MarkdownEntrySchema,
|
|
412
|
+
McpAuthSchemeSchema: () => McpAuthSchemeSchema,
|
|
413
|
+
McpDeploymentStatusSchema: () => McpDeploymentStatusSchema,
|
|
414
|
+
McpDeploymentSummarySchema: () => McpDeploymentSummarySchema,
|
|
415
|
+
McpMetadataSchema: () => McpMetadataSchema,
|
|
416
|
+
McpServerSchema: () => McpServerSchema,
|
|
405
417
|
MigrateV2SiteInputSchema: () => MigrateV2SiteInputSchema,
|
|
406
418
|
MigrateV2SiteResponseSchema: () => MigrateV2SiteResponseSchema,
|
|
407
419
|
MigrateV2SiteSkipReasonSchema: () => MigrateV2SiteSkipReasonSchema,
|
|
@@ -413,7 +425,7 @@ __export(orpc_client_exports, {
|
|
|
413
425
|
OAuthClientCredentialsReferencedEndpointSchema: () => OAuthClientCredentialsReferencedEndpointSchema,
|
|
414
426
|
OAuthClientCredentialsSchema: () => OAuthClientCredentialsSchema,
|
|
415
427
|
OAuthSchema: () => OAuthSchema,
|
|
416
|
-
ORPCError: () =>
|
|
428
|
+
ORPCError: () => import_client49.ORPCError,
|
|
417
429
|
ObjectPropertyAccessSchema: () => ObjectPropertyAccessSchema,
|
|
418
430
|
ObjectPropertySchema: () => ObjectPropertySchema,
|
|
419
431
|
ObjectTypeSchema: () => ObjectTypeSchema,
|
|
@@ -658,6 +670,7 @@ __export(orpc_client_exports, {
|
|
|
658
670
|
createGeneratorsRootClient: () => createGeneratorsRootClient,
|
|
659
671
|
createGitClient: () => createGitClient,
|
|
660
672
|
createLibraryDocsClient: () => createLibraryDocsClient,
|
|
673
|
+
createMcpHostingClient: () => createMcpHostingClient,
|
|
661
674
|
createOrganizationClient: () => createOrganizationClient,
|
|
662
675
|
createPdfExportClient: () => createPdfExportClient,
|
|
663
676
|
createSdksClient: () => createSdksClient,
|
|
@@ -687,6 +700,7 @@ __export(orpc_client_exports, {
|
|
|
687
700
|
isFernFileRef: () => isFernFileRef,
|
|
688
701
|
ledgerSegmentIdentity: () => ledgerSegmentIdentity,
|
|
689
702
|
libraryDocsContract: () => libraryDocsContract,
|
|
703
|
+
mcpHostingContract: () => mcpHostingContract,
|
|
690
704
|
organizationContract: () => organizationContract,
|
|
691
705
|
pdfExportContract: () => pdfExportContract,
|
|
692
706
|
sdksContract: () => sdksContract,
|
|
@@ -700,7 +714,7 @@ __export(orpc_client_exports, {
|
|
|
700
714
|
validateDoxyfileContent: () => validateDoxyfileContent
|
|
701
715
|
});
|
|
702
716
|
module.exports = __toCommonJS(orpc_client_exports);
|
|
703
|
-
var
|
|
717
|
+
var import_client49 = require("@orpc/client");
|
|
704
718
|
|
|
705
719
|
// src/orpc-client/api/client.ts
|
|
706
720
|
var import_client = require("@orpc/client");
|
|
@@ -6278,103 +6292,253 @@ function createGitClient(options) {
|
|
|
6278
6292
|
return (0, import_client21.createORPCClient)(link);
|
|
6279
6293
|
}
|
|
6280
6294
|
|
|
6281
|
-
// src/orpc-client/
|
|
6295
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
6282
6296
|
var import_client22 = require("@orpc/client");
|
|
6283
6297
|
var import_fetch17 = require("@orpc/openapi-client/fetch");
|
|
6284
6298
|
|
|
6285
|
-
// src/orpc-client/
|
|
6299
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
6286
6300
|
var import_contract31 = require("@orpc/contract");
|
|
6287
6301
|
var z26 = __toESM(require("zod"), 1);
|
|
6288
|
-
var
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
footerRightTemplate: z26.string().nullish(),
|
|
6299
|
-
scope: PdfExportScopeSchema.nullish(),
|
|
6300
|
-
hideCover: z26.boolean().nullish(),
|
|
6301
|
-
hideToc: z26.boolean().nullish()
|
|
6302
|
-
});
|
|
6303
|
-
var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
|
|
6304
|
-
z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
6302
|
+
var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
6303
|
+
var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
6304
|
+
var McpAuthSchemeSchema = z26.discriminatedUnion("type", [
|
|
6305
|
+
z26.object({ type: z26.literal("bearer") }),
|
|
6306
|
+
z26.object({
|
|
6307
|
+
type: z26.literal("apiKey"),
|
|
6308
|
+
paramName: z26.string().min(1),
|
|
6309
|
+
in: z26.enum(["header", "query", "cookie"])
|
|
6310
|
+
}),
|
|
6311
|
+
z26.object({ type: z26.literal("basic") })
|
|
6305
6312
|
]);
|
|
6306
|
-
var
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6313
|
+
var McpMetadataSchema = z26.object({
|
|
6314
|
+
name: z26.string().min(1),
|
|
6315
|
+
toolsets: z26.record(z26.string(), z26.array(z26.string())),
|
|
6316
|
+
toolsetMetadata: z26.array(
|
|
6317
|
+
z26.object({
|
|
6318
|
+
name: z26.string(),
|
|
6319
|
+
title: z26.string(),
|
|
6320
|
+
description: z26.string(),
|
|
6321
|
+
toolCount: z26.number().int().nonnegative()
|
|
6322
|
+
}).strict()
|
|
6323
|
+
),
|
|
6324
|
+
auth: z26.object({
|
|
6325
|
+
schemes: z26.array(McpAuthSchemeSchema),
|
|
6326
|
+
required: z26.boolean()
|
|
6327
|
+
}).strict(),
|
|
6328
|
+
skippedTools: z26.array(z26.object({ name: z26.string(), reason: z26.string() }).strict()),
|
|
6329
|
+
environmentVariables: z26.array(
|
|
6330
|
+
z26.object({
|
|
6331
|
+
name: z26.string(),
|
|
6332
|
+
description: z26.string(),
|
|
6333
|
+
required: z26.boolean()
|
|
6334
|
+
}).strict()
|
|
6335
|
+
),
|
|
6336
|
+
baseUrl: z26.string().url(),
|
|
6337
|
+
followRedirects: z26.boolean(),
|
|
6338
|
+
maxRedirects: z26.number().int().nonnegative(),
|
|
6339
|
+
allowedRedirectHosts: z26.array(z26.string())
|
|
6340
|
+
}).passthrough();
|
|
6341
|
+
var McpModuleSchema = z26.object({
|
|
6342
|
+
name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
6343
|
+
hash: z26.string().regex(/^[0-9a-f]{64}$/),
|
|
6344
|
+
contentType: z26.string().min(1)
|
|
6345
|
+
}).strict();
|
|
6346
|
+
var McpGitInputSchema = z26.object({
|
|
6347
|
+
repoUrl: z26.string(),
|
|
6348
|
+
branch: z26.string(),
|
|
6349
|
+
commitSha: z26.string().optional()
|
|
6350
|
+
}).strict();
|
|
6351
|
+
var DeployMcpServerInputSchema = z26.object({
|
|
6352
|
+
orgId: McpPathSegmentSchema,
|
|
6353
|
+
slug: McpPathSegmentSchema,
|
|
6354
|
+
mainModule: z26.string().min(1),
|
|
6355
|
+
compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
6356
|
+
compatibilityFlags: z26.array(z26.string()),
|
|
6357
|
+
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
6358
|
+
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
6359
|
+
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
6360
|
+
modules: z26.array(McpModuleSchema).min(1).max(20),
|
|
6361
|
+
metadata: McpMetadataSchema,
|
|
6362
|
+
// Everything else in this schema is bounded; keep the opaque config
|
|
6363
|
+
// blob bounded too so it cannot balloon the JSONB row.
|
|
6364
|
+
config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
6365
|
+
message: "config must be at most 64KB serialized"
|
|
6366
|
+
}),
|
|
6367
|
+
generatorName: z26.string().min(1),
|
|
6368
|
+
generatorVersion: z26.string().min(1),
|
|
6369
|
+
cliVersion: z26.string().optional(),
|
|
6370
|
+
git: McpGitInputSchema.optional()
|
|
6371
|
+
}).strict().superRefine((input, ctx) => {
|
|
6372
|
+
const names = /* @__PURE__ */ new Set();
|
|
6373
|
+
for (const module2 of input.modules) {
|
|
6374
|
+
if (names.has(module2.name)) {
|
|
6375
|
+
ctx.addIssue({
|
|
6376
|
+
code: z26.ZodIssueCode.custom,
|
|
6377
|
+
path: ["modules"],
|
|
6378
|
+
message: `duplicate module name: ${module2.name}`
|
|
6379
|
+
});
|
|
6380
|
+
}
|
|
6381
|
+
names.add(module2.name);
|
|
6382
|
+
}
|
|
6383
|
+
if (!names.has(input.mainModule)) {
|
|
6384
|
+
ctx.addIssue({
|
|
6385
|
+
code: z26.ZodIssueCode.custom,
|
|
6386
|
+
path: ["mainModule"],
|
|
6387
|
+
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
6388
|
+
});
|
|
6389
|
+
}
|
|
6390
|
+
});
|
|
6391
|
+
var GetMcpServerInputSchema = z26.object({
|
|
6392
|
+
orgId: McpPathSegmentSchema,
|
|
6393
|
+
slug: McpPathSegmentSchema
|
|
6323
6394
|
});
|
|
6324
|
-
var
|
|
6325
|
-
|
|
6395
|
+
var ListMcpServersInputSchema = z26.object({
|
|
6396
|
+
orgId: z26.string()
|
|
6326
6397
|
});
|
|
6327
|
-
var
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6398
|
+
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
6399
|
+
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
6400
|
+
var McpDeploymentSummarySchema = z26.object({
|
|
6401
|
+
id: z26.string(),
|
|
6402
|
+
status: McpDeploymentStatusSchema,
|
|
6403
|
+
/** True when this deployment is the one the server currently serves. */
|
|
6404
|
+
isActive: z26.boolean(),
|
|
6405
|
+
generatorVersion: z26.string(),
|
|
6406
|
+
createdAt: z26.string(),
|
|
6407
|
+
createdBy: z26.string().nullish(),
|
|
6408
|
+
error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
|
|
6331
6409
|
});
|
|
6332
|
-
var
|
|
6410
|
+
var McpServerSchema = z26.object({
|
|
6411
|
+
id: z26.string(),
|
|
6333
6412
|
orgId: z26.string(),
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6413
|
+
slug: z26.string(),
|
|
6414
|
+
/** The server is serving iff this is set; it names the serving deployment. */
|
|
6415
|
+
activeDeploymentId: z26.string().nullish(),
|
|
6416
|
+
/** Most recent publication attempt — how the last deploy went. */
|
|
6417
|
+
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
6418
|
+
url: z26.string().url(),
|
|
6419
|
+
createdAt: z26.string(),
|
|
6420
|
+
updatedAt: z26.string()
|
|
6421
|
+
});
|
|
6422
|
+
var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
|
|
6423
|
+
var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
|
|
6424
|
+
var mcpHostingContract = {
|
|
6425
|
+
deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
6426
|
+
getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
6427
|
+
listServers: import_contract31.oc.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
|
|
6428
|
+
listDeployments: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
|
|
6429
|
+
deleteServer: import_contract31.oc.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
|
|
6430
|
+
};
|
|
6431
|
+
|
|
6432
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
6433
|
+
function createMcpHostingClient(options) {
|
|
6434
|
+
const link = new import_fetch17.OpenAPILink(mcpHostingContract, {
|
|
6435
|
+
url: `${options.baseUrl}/mcp-hosting`,
|
|
6436
|
+
headers: () => ({
|
|
6437
|
+
Authorization: `Bearer ${options.token}`,
|
|
6438
|
+
...options.headers
|
|
6439
|
+
}),
|
|
6440
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6441
|
+
});
|
|
6442
|
+
return (0, import_client22.createORPCClient)(link);
|
|
6443
|
+
}
|
|
6444
|
+
|
|
6445
|
+
// src/orpc-client/pdf-export/client.ts
|
|
6446
|
+
var import_client23 = require("@orpc/client");
|
|
6447
|
+
var import_fetch18 = require("@orpc/openapi-client/fetch");
|
|
6448
|
+
|
|
6449
|
+
// src/orpc-client/pdf-export/contract.ts
|
|
6450
|
+
var import_contract33 = require("@orpc/contract");
|
|
6451
|
+
var z27 = __toESM(require("zod"), 1);
|
|
6452
|
+
var PdfExportScopeSchema = z27.object({
|
|
6453
|
+
pageSlugs: z27.array(z27.string())
|
|
6454
|
+
});
|
|
6455
|
+
var PdfExportOptionsV1Schema = z27.object({
|
|
6456
|
+
coverTitle: z27.string().nullish(),
|
|
6457
|
+
coverSubtitle: z27.string().nullish(),
|
|
6458
|
+
hideCoverFooter: z27.boolean().nullish(),
|
|
6459
|
+
headerLeftTemplate: z27.string().nullish(),
|
|
6460
|
+
headerRightTemplate: z27.string().nullish(),
|
|
6461
|
+
footerLeftTemplate: z27.string().nullish(),
|
|
6462
|
+
footerRightTemplate: z27.string().nullish(),
|
|
6463
|
+
scope: PdfExportScopeSchema.nullish(),
|
|
6464
|
+
hideCover: z27.boolean().nullish(),
|
|
6465
|
+
hideToc: z27.boolean().nullish()
|
|
6466
|
+
});
|
|
6467
|
+
var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
|
|
6468
|
+
z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
6469
|
+
]);
|
|
6470
|
+
var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
6471
|
+
var PdfExportTaskSchema = z27.object({
|
|
6472
|
+
id: z27.string(),
|
|
6473
|
+
orgId: z27.string(),
|
|
6474
|
+
docsUrl: z27.string(),
|
|
6475
|
+
productId: z27.string().nullish(),
|
|
6476
|
+
versionId: z27.string().nullish(),
|
|
6477
|
+
requesterName: z27.string().nullish(),
|
|
6478
|
+
notifyEmails: z27.array(z27.string()).nullish(),
|
|
6479
|
+
status: PdfExportTaskStatusSchema,
|
|
6480
|
+
options: PdfExportOptionsSchema.nullish(),
|
|
6481
|
+
createdAt: z27.string(),
|
|
6482
|
+
startedAt: z27.string().nullish(),
|
|
6483
|
+
completedAt: z27.string().nullish(),
|
|
6484
|
+
fileName: z27.string().nullish(),
|
|
6485
|
+
sizeBytes: z27.number().nullish(),
|
|
6486
|
+
errorMessage: z27.string().nullish()
|
|
6487
|
+
});
|
|
6488
|
+
var ListPdfExportTasksResponseSchema = z27.object({
|
|
6489
|
+
tasks: z27.array(PdfExportTaskSchema)
|
|
6490
|
+
});
|
|
6491
|
+
var PdfExportDownloadResponseSchema = z27.object({
|
|
6492
|
+
downloadUrl: z27.string(),
|
|
6493
|
+
fileName: z27.string(),
|
|
6494
|
+
sizeBytes: z27.number()
|
|
6495
|
+
});
|
|
6496
|
+
var CreatePdfExportTaskInputSchema = z27.object({
|
|
6497
|
+
orgId: z27.string(),
|
|
6498
|
+
docsUrl: z27.string(),
|
|
6499
|
+
productId: z27.string().nullish(),
|
|
6500
|
+
versionId: z27.string().nullish(),
|
|
6501
|
+
requesterName: z27.string().nullish(),
|
|
6338
6502
|
options: PdfExportOptionsSchema.nullish()
|
|
6339
6503
|
});
|
|
6340
|
-
var ListPdfExportTasksInputSchema =
|
|
6341
|
-
orgId:
|
|
6342
|
-
docsUrl:
|
|
6343
|
-
limit:
|
|
6504
|
+
var ListPdfExportTasksInputSchema = z27.object({
|
|
6505
|
+
orgId: z27.string(),
|
|
6506
|
+
docsUrl: z27.string(),
|
|
6507
|
+
limit: z27.coerce.number().nullish()
|
|
6344
6508
|
});
|
|
6345
|
-
var GetPdfExportTaskInputSchema =
|
|
6346
|
-
taskId:
|
|
6509
|
+
var GetPdfExportTaskInputSchema = z27.object({
|
|
6510
|
+
taskId: z27.string()
|
|
6347
6511
|
});
|
|
6348
|
-
var UpdatePdfExportTaskInputSchema =
|
|
6349
|
-
taskId:
|
|
6512
|
+
var UpdatePdfExportTaskInputSchema = z27.object({
|
|
6513
|
+
taskId: z27.string(),
|
|
6350
6514
|
status: PdfExportTaskStatusSchema,
|
|
6351
|
-
startedAt:
|
|
6352
|
-
completedAt:
|
|
6353
|
-
s3Key:
|
|
6354
|
-
fileName:
|
|
6355
|
-
sizeBytes:
|
|
6356
|
-
errorMessage:
|
|
6515
|
+
startedAt: z27.string().nullish(),
|
|
6516
|
+
completedAt: z27.string().nullish(),
|
|
6517
|
+
s3Key: z27.string().nullish(),
|
|
6518
|
+
fileName: z27.string().nullish(),
|
|
6519
|
+
sizeBytes: z27.number().nullish(),
|
|
6520
|
+
errorMessage: z27.string().nullish()
|
|
6357
6521
|
});
|
|
6358
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
6359
|
-
taskId:
|
|
6522
|
+
var GetPdfExportDownloadUrlInputSchema = z27.object({
|
|
6523
|
+
taskId: z27.string()
|
|
6360
6524
|
});
|
|
6361
|
-
var CleanupPdfExportsResponseSchema =
|
|
6362
|
-
expiredTasksDeleted:
|
|
6363
|
-
s3ObjectsDeleted:
|
|
6364
|
-
timedOutTasksFailed:
|
|
6525
|
+
var CleanupPdfExportsResponseSchema = z27.object({
|
|
6526
|
+
expiredTasksDeleted: z27.number(),
|
|
6527
|
+
s3ObjectsDeleted: z27.number(),
|
|
6528
|
+
timedOutTasksFailed: z27.number()
|
|
6365
6529
|
});
|
|
6366
6530
|
var pdfExportContract = {
|
|
6367
|
-
createTask:
|
|
6368
|
-
listTasks:
|
|
6369
|
-
getTask:
|
|
6370
|
-
updateTask:
|
|
6371
|
-
getDownloadUrl:
|
|
6372
|
-
cleanup:
|
|
6531
|
+
createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
6532
|
+
listTasks: import_contract33.oc.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
6533
|
+
getTask: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
6534
|
+
updateTask: import_contract33.oc.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
6535
|
+
getDownloadUrl: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
6536
|
+
cleanup: import_contract33.oc.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
6373
6537
|
};
|
|
6374
6538
|
|
|
6375
6539
|
// src/orpc-client/pdf-export/client.ts
|
|
6376
6540
|
function createPdfExportClient(options) {
|
|
6377
|
-
const link = new
|
|
6541
|
+
const link = new import_fetch18.OpenAPILink(pdfExportContract, {
|
|
6378
6542
|
url: `${options.baseUrl}/pdf-export`,
|
|
6379
6543
|
headers: () => ({
|
|
6380
6544
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6382,17 +6546,17 @@ function createPdfExportClient(options) {
|
|
|
6382
6546
|
}),
|
|
6383
6547
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6384
6548
|
});
|
|
6385
|
-
return (0,
|
|
6549
|
+
return (0, import_client23.createORPCClient)(link);
|
|
6386
6550
|
}
|
|
6387
6551
|
|
|
6388
6552
|
// src/orpc-client/sdks/client.ts
|
|
6389
|
-
var
|
|
6390
|
-
var
|
|
6553
|
+
var import_client24 = require("@orpc/client");
|
|
6554
|
+
var import_fetch19 = require("@orpc/openapi-client/fetch");
|
|
6391
6555
|
|
|
6392
6556
|
// src/orpc-client/sdks/contract.ts
|
|
6393
|
-
var
|
|
6394
|
-
var
|
|
6395
|
-
var LanguageEnumSchema =
|
|
6557
|
+
var import_contract35 = require("@orpc/contract");
|
|
6558
|
+
var z28 = __toESM(require("zod"), 1);
|
|
6559
|
+
var LanguageEnumSchema = z28.enum([
|
|
6396
6560
|
"Go",
|
|
6397
6561
|
"TypeScript",
|
|
6398
6562
|
"Java",
|
|
@@ -6403,23 +6567,23 @@ var LanguageEnumSchema = z27.enum([
|
|
|
6403
6567
|
"Swift",
|
|
6404
6568
|
"Rust"
|
|
6405
6569
|
]);
|
|
6406
|
-
var VersionBumpEnumSchema =
|
|
6407
|
-
var ComputeSemanticVersionInputSchema =
|
|
6408
|
-
package:
|
|
6570
|
+
var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
6571
|
+
var ComputeSemanticVersionInputSchema = z28.object({
|
|
6572
|
+
package: z28.string(),
|
|
6409
6573
|
language: LanguageEnumSchema,
|
|
6410
|
-
githubRepository:
|
|
6574
|
+
githubRepository: z28.string().nullish()
|
|
6411
6575
|
});
|
|
6412
|
-
var ComputeSemanticVersionOutputSchema =
|
|
6413
|
-
version:
|
|
6576
|
+
var ComputeSemanticVersionOutputSchema = z28.object({
|
|
6577
|
+
version: z28.string(),
|
|
6414
6578
|
bump: VersionBumpEnumSchema
|
|
6415
6579
|
});
|
|
6416
6580
|
var sdksContract = {
|
|
6417
|
-
computeSemanticVersion:
|
|
6581
|
+
computeSemanticVersion: import_contract35.oc.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
6418
6582
|
};
|
|
6419
6583
|
|
|
6420
6584
|
// src/orpc-client/sdks/client.ts
|
|
6421
6585
|
function createSdksClient(options) {
|
|
6422
|
-
const link = new
|
|
6586
|
+
const link = new import_fetch19.OpenAPILink(sdksContract, {
|
|
6423
6587
|
url: `${options.baseUrl}/sdks`,
|
|
6424
6588
|
headers: () => ({
|
|
6425
6589
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6427,50 +6591,50 @@ function createSdksClient(options) {
|
|
|
6427
6591
|
}),
|
|
6428
6592
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6429
6593
|
});
|
|
6430
|
-
return (0,
|
|
6594
|
+
return (0, import_client24.createORPCClient)(link);
|
|
6431
6595
|
}
|
|
6432
6596
|
|
|
6433
6597
|
// src/orpc-client/slugs/client.ts
|
|
6434
|
-
var
|
|
6435
|
-
var
|
|
6598
|
+
var import_client25 = require("@orpc/client");
|
|
6599
|
+
var import_fetch20 = require("@orpc/openapi-client/fetch");
|
|
6436
6600
|
|
|
6437
6601
|
// src/orpc-client/slugs/contract.ts
|
|
6438
|
-
var
|
|
6439
|
-
var
|
|
6440
|
-
var SlugsInputSchema =
|
|
6441
|
-
domain:
|
|
6442
|
-
basepath:
|
|
6443
|
-
});
|
|
6444
|
-
var SlugEntrySchema =
|
|
6445
|
-
orgId:
|
|
6446
|
-
domain:
|
|
6447
|
-
basepath:
|
|
6448
|
-
slug:
|
|
6449
|
-
lastUpdated:
|
|
6450
|
-
});
|
|
6451
|
-
var MarkdownEntrySchema =
|
|
6452
|
-
orgId:
|
|
6453
|
-
domain:
|
|
6454
|
-
basepath:
|
|
6455
|
-
pageId:
|
|
6456
|
-
slug:
|
|
6457
|
-
hash:
|
|
6458
|
-
lastUpdated:
|
|
6459
|
-
});
|
|
6460
|
-
var GetSlugEntriesResponseSchema =
|
|
6461
|
-
entries:
|
|
6462
|
-
});
|
|
6463
|
-
var GetMarkdownEntriesResponseSchema =
|
|
6464
|
-
entries:
|
|
6602
|
+
var import_contract37 = require("@orpc/contract");
|
|
6603
|
+
var z29 = __toESM(require("zod"), 1);
|
|
6604
|
+
var SlugsInputSchema = z29.object({
|
|
6605
|
+
domain: z29.string(),
|
|
6606
|
+
basepath: z29.string().optional().default("")
|
|
6607
|
+
});
|
|
6608
|
+
var SlugEntrySchema = z29.object({
|
|
6609
|
+
orgId: z29.string(),
|
|
6610
|
+
domain: z29.string(),
|
|
6611
|
+
basepath: z29.string(),
|
|
6612
|
+
slug: z29.string(),
|
|
6613
|
+
lastUpdated: z29.string()
|
|
6614
|
+
});
|
|
6615
|
+
var MarkdownEntrySchema = z29.object({
|
|
6616
|
+
orgId: z29.string(),
|
|
6617
|
+
domain: z29.string(),
|
|
6618
|
+
basepath: z29.string(),
|
|
6619
|
+
pageId: z29.string(),
|
|
6620
|
+
slug: z29.string(),
|
|
6621
|
+
hash: z29.string(),
|
|
6622
|
+
lastUpdated: z29.string()
|
|
6623
|
+
});
|
|
6624
|
+
var GetSlugEntriesResponseSchema = z29.object({
|
|
6625
|
+
entries: z29.array(SlugEntrySchema)
|
|
6626
|
+
});
|
|
6627
|
+
var GetMarkdownEntriesResponseSchema = z29.object({
|
|
6628
|
+
entries: z29.array(MarkdownEntrySchema)
|
|
6465
6629
|
});
|
|
6466
6630
|
var slugsContract = {
|
|
6467
|
-
getSlugEntries:
|
|
6468
|
-
getMarkdownEntries:
|
|
6631
|
+
getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
6632
|
+
getMarkdownEntries: import_contract37.oc.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
6469
6633
|
};
|
|
6470
6634
|
|
|
6471
6635
|
// src/orpc-client/slugs/client.ts
|
|
6472
6636
|
function createSlugsClient(options) {
|
|
6473
|
-
const link = new
|
|
6637
|
+
const link = new import_fetch20.OpenAPILink(slugsContract, {
|
|
6474
6638
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
6475
6639
|
headers: () => ({
|
|
6476
6640
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6478,118 +6642,118 @@ function createSlugsClient(options) {
|
|
|
6478
6642
|
}),
|
|
6479
6643
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6480
6644
|
});
|
|
6481
|
-
return (0,
|
|
6645
|
+
return (0, import_client25.createORPCClient)(link);
|
|
6482
6646
|
}
|
|
6483
6647
|
|
|
6484
6648
|
// src/orpc-client/snippets/client.ts
|
|
6485
|
-
var
|
|
6486
|
-
var
|
|
6649
|
+
var import_client26 = require("@orpc/client");
|
|
6650
|
+
var import_fetch21 = require("@orpc/openapi-client/fetch");
|
|
6487
6651
|
|
|
6488
6652
|
// src/orpc-client/snippets/contract.ts
|
|
6489
|
-
var
|
|
6490
|
-
var
|
|
6491
|
-
var TypeScriptSdkSchema =
|
|
6492
|
-
var PythonSdkSchema =
|
|
6493
|
-
var GoSdkSchema =
|
|
6494
|
-
var RubySdkSchema =
|
|
6495
|
-
var JavaSdkSchema =
|
|
6496
|
-
var CsharpSdkSchema =
|
|
6497
|
-
var BaseSnippetCreateSchema =
|
|
6653
|
+
var import_contract39 = require("@orpc/contract");
|
|
6654
|
+
var z30 = __toESM(require("zod"), 1);
|
|
6655
|
+
var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
6656
|
+
var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
6657
|
+
var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
|
|
6658
|
+
var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
|
|
6659
|
+
var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
|
|
6660
|
+
var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
|
|
6661
|
+
var BaseSnippetCreateSchema = z30.object({
|
|
6498
6662
|
endpoint: EndpointIdentifierSchema,
|
|
6499
|
-
exampleIdentifier:
|
|
6663
|
+
exampleIdentifier: z30.string().nullish()
|
|
6500
6664
|
});
|
|
6501
|
-
var SdkSnippetsCreateSchema =
|
|
6502
|
-
|
|
6503
|
-
type:
|
|
6665
|
+
var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
|
|
6666
|
+
z30.object({
|
|
6667
|
+
type: z30.literal("typescript"),
|
|
6504
6668
|
sdk: TypeScriptSdkSchema,
|
|
6505
|
-
snippets:
|
|
6669
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
6506
6670
|
}),
|
|
6507
|
-
|
|
6508
|
-
type:
|
|
6671
|
+
z30.object({
|
|
6672
|
+
type: z30.literal("python"),
|
|
6509
6673
|
sdk: PythonSdkSchema,
|
|
6510
|
-
snippets:
|
|
6674
|
+
snippets: z30.array(
|
|
6511
6675
|
BaseSnippetCreateSchema.extend({
|
|
6512
|
-
snippet:
|
|
6676
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
6513
6677
|
})
|
|
6514
6678
|
)
|
|
6515
6679
|
}),
|
|
6516
|
-
|
|
6517
|
-
type:
|
|
6680
|
+
z30.object({
|
|
6681
|
+
type: z30.literal("go"),
|
|
6518
6682
|
sdk: GoSdkSchema,
|
|
6519
|
-
snippets:
|
|
6683
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
6520
6684
|
}),
|
|
6521
|
-
|
|
6522
|
-
type:
|
|
6685
|
+
z30.object({
|
|
6686
|
+
type: z30.literal("java"),
|
|
6523
6687
|
sdk: JavaSdkSchema,
|
|
6524
|
-
snippets:
|
|
6688
|
+
snippets: z30.array(
|
|
6525
6689
|
BaseSnippetCreateSchema.extend({
|
|
6526
|
-
snippet:
|
|
6690
|
+
snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
|
|
6527
6691
|
})
|
|
6528
6692
|
)
|
|
6529
6693
|
}),
|
|
6530
|
-
|
|
6531
|
-
type:
|
|
6694
|
+
z30.object({
|
|
6695
|
+
type: z30.literal("ruby"),
|
|
6532
6696
|
sdk: RubySdkSchema,
|
|
6533
|
-
snippets:
|
|
6697
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
6534
6698
|
}),
|
|
6535
|
-
|
|
6536
|
-
type:
|
|
6699
|
+
z30.object({
|
|
6700
|
+
type: z30.literal("csharp"),
|
|
6537
6701
|
sdk: CsharpSdkSchema,
|
|
6538
|
-
snippets:
|
|
6702
|
+
snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
|
|
6539
6703
|
})
|
|
6540
6704
|
]);
|
|
6541
6705
|
var snippetsFactoryContract = {
|
|
6542
|
-
createSnippetsForSdk:
|
|
6543
|
-
|
|
6544
|
-
orgId:
|
|
6545
|
-
apiId:
|
|
6706
|
+
createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
|
|
6707
|
+
z30.object({
|
|
6708
|
+
orgId: z30.string(),
|
|
6709
|
+
apiId: z30.string(),
|
|
6546
6710
|
snippets: SdkSnippetsCreateSchema
|
|
6547
6711
|
})
|
|
6548
6712
|
)
|
|
6549
6713
|
};
|
|
6550
|
-
var ParameterPayloadSchema =
|
|
6551
|
-
name:
|
|
6552
|
-
value:
|
|
6714
|
+
var ParameterPayloadSchema = z30.object({
|
|
6715
|
+
name: z30.string(),
|
|
6716
|
+
value: z30.unknown()
|
|
6553
6717
|
});
|
|
6554
|
-
var AuthPayloadSchema =
|
|
6555
|
-
|
|
6556
|
-
|
|
6718
|
+
var AuthPayloadSchema = z30.discriminatedUnion("type", [
|
|
6719
|
+
z30.object({ type: z30.literal("bearer"), token: z30.string() }),
|
|
6720
|
+
z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
|
|
6557
6721
|
]);
|
|
6558
|
-
var CustomSnippetPayloadSchema =
|
|
6559
|
-
headers:
|
|
6560
|
-
pathParameters:
|
|
6561
|
-
queryParameters:
|
|
6562
|
-
requestBody:
|
|
6722
|
+
var CustomSnippetPayloadSchema = z30.object({
|
|
6723
|
+
headers: z30.array(ParameterPayloadSchema).nullish(),
|
|
6724
|
+
pathParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
6725
|
+
queryParameters: z30.array(ParameterPayloadSchema).nullish(),
|
|
6726
|
+
requestBody: z30.unknown().nullish(),
|
|
6563
6727
|
auth: AuthPayloadSchema.nullish()
|
|
6564
6728
|
});
|
|
6565
6729
|
var snippetsContract = {
|
|
6566
|
-
get:
|
|
6567
|
-
|
|
6568
|
-
orgId:
|
|
6569
|
-
apiId:
|
|
6570
|
-
sdks:
|
|
6730
|
+
get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
|
|
6731
|
+
z30.object({
|
|
6732
|
+
orgId: z30.string().nullish(),
|
|
6733
|
+
apiId: z30.string().nullish(),
|
|
6734
|
+
sdks: z30.array(SdkRequestSchema).nullish(),
|
|
6571
6735
|
endpoint: EndpointIdentifierSchema,
|
|
6572
|
-
exampleIdentifier:
|
|
6736
|
+
exampleIdentifier: z30.string().nullish(),
|
|
6573
6737
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
6574
6738
|
})
|
|
6575
|
-
).output(
|
|
6576
|
-
load:
|
|
6577
|
-
|
|
6578
|
-
orgId:
|
|
6579
|
-
apiId:
|
|
6580
|
-
sdks:
|
|
6739
|
+
).output(z30.array(z30.unknown())),
|
|
6740
|
+
load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
|
|
6741
|
+
z30.object({
|
|
6742
|
+
orgId: z30.string().nullish(),
|
|
6743
|
+
apiId: z30.string().nullish(),
|
|
6744
|
+
sdks: z30.array(SdkRequestSchema).nullish()
|
|
6581
6745
|
})
|
|
6582
6746
|
).output(
|
|
6583
|
-
|
|
6584
|
-
next:
|
|
6585
|
-
snippets:
|
|
6747
|
+
z30.object({
|
|
6748
|
+
next: z30.number().nullish(),
|
|
6749
|
+
snippets: z30.record(z30.string(), z30.unknown())
|
|
6586
6750
|
})
|
|
6587
6751
|
)
|
|
6588
6752
|
};
|
|
6589
6753
|
|
|
6590
6754
|
// src/orpc-client/snippets/client.ts
|
|
6591
6755
|
function createSnippetsFactoryClient(options) {
|
|
6592
|
-
const link = new
|
|
6756
|
+
const link = new import_fetch21.OpenAPILink(snippetsFactoryContract, {
|
|
6593
6757
|
url: `${options.baseUrl}/snippets`,
|
|
6594
6758
|
headers: () => ({
|
|
6595
6759
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6597,10 +6761,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
6597
6761
|
}),
|
|
6598
6762
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6599
6763
|
});
|
|
6600
|
-
return (0,
|
|
6764
|
+
return (0, import_client26.createORPCClient)(link);
|
|
6601
6765
|
}
|
|
6602
6766
|
function createSnippetsClient(options) {
|
|
6603
|
-
const link = new
|
|
6767
|
+
const link = new import_fetch21.OpenAPILink(snippetsContract, {
|
|
6604
6768
|
url: `${options.baseUrl}/snippets`,
|
|
6605
6769
|
headers: () => ({
|
|
6606
6770
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6608,63 +6772,63 @@ function createSnippetsClient(options) {
|
|
|
6608
6772
|
}),
|
|
6609
6773
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6610
6774
|
});
|
|
6611
|
-
return (0,
|
|
6775
|
+
return (0, import_client26.createORPCClient)(link);
|
|
6612
6776
|
}
|
|
6613
6777
|
|
|
6614
6778
|
// src/orpc-client/templates/client.ts
|
|
6615
|
-
var
|
|
6616
|
-
var
|
|
6779
|
+
var import_client27 = require("@orpc/client");
|
|
6780
|
+
var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
6617
6781
|
|
|
6618
6782
|
// src/orpc-client/templates/contract.ts
|
|
6619
|
-
var
|
|
6620
|
-
var
|
|
6621
|
-
var SnippetRegistryEntrySchema =
|
|
6783
|
+
var import_contract41 = require("@orpc/contract");
|
|
6784
|
+
var z31 = __toESM(require("zod"), 1);
|
|
6785
|
+
var SnippetRegistryEntrySchema = z31.object({
|
|
6622
6786
|
sdk: SdkSchema,
|
|
6623
|
-
endpointId:
|
|
6624
|
-
path:
|
|
6787
|
+
endpointId: z31.object({
|
|
6788
|
+
path: z31.string(),
|
|
6625
6789
|
method: HttpMethodSchema,
|
|
6626
|
-
identifierOverride:
|
|
6790
|
+
identifierOverride: z31.string().nullish()
|
|
6627
6791
|
}),
|
|
6628
|
-
snippetTemplate:
|
|
6629
|
-
type:
|
|
6630
|
-
functionInvocation:
|
|
6631
|
-
clientInstantiation:
|
|
6792
|
+
snippetTemplate: z31.object({
|
|
6793
|
+
type: z31.literal("v1"),
|
|
6794
|
+
functionInvocation: z31.unknown(),
|
|
6795
|
+
clientInstantiation: z31.string()
|
|
6632
6796
|
}),
|
|
6633
|
-
additionalTemplates:
|
|
6797
|
+
additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
|
|
6634
6798
|
});
|
|
6635
|
-
var RegisterInputSchema =
|
|
6636
|
-
orgId:
|
|
6637
|
-
apiId:
|
|
6638
|
-
apiDefinitionId:
|
|
6799
|
+
var RegisterInputSchema = z31.object({
|
|
6800
|
+
orgId: z31.string(),
|
|
6801
|
+
apiId: z31.string(),
|
|
6802
|
+
apiDefinitionId: z31.string(),
|
|
6639
6803
|
snippet: SnippetRegistryEntrySchema
|
|
6640
6804
|
});
|
|
6641
|
-
var RegisterBatchInputSchema =
|
|
6642
|
-
orgId:
|
|
6643
|
-
apiId:
|
|
6644
|
-
apiDefinitionId:
|
|
6645
|
-
snippets:
|
|
6805
|
+
var RegisterBatchInputSchema = z31.object({
|
|
6806
|
+
orgId: z31.string(),
|
|
6807
|
+
apiId: z31.string(),
|
|
6808
|
+
apiDefinitionId: z31.string(),
|
|
6809
|
+
snippets: z31.array(SnippetRegistryEntrySchema)
|
|
6646
6810
|
});
|
|
6647
|
-
var GetInputSchema =
|
|
6648
|
-
orgId:
|
|
6649
|
-
apiId:
|
|
6811
|
+
var GetInputSchema = z31.object({
|
|
6812
|
+
orgId: z31.string(),
|
|
6813
|
+
apiId: z31.string(),
|
|
6650
6814
|
sdk: SdkSchema,
|
|
6651
|
-
endpointId:
|
|
6652
|
-
path:
|
|
6815
|
+
endpointId: z31.object({
|
|
6816
|
+
path: z31.string(),
|
|
6653
6817
|
method: HttpMethodSchema,
|
|
6654
|
-
identifierOverride:
|
|
6818
|
+
identifierOverride: z31.string().nullish()
|
|
6655
6819
|
})
|
|
6656
6820
|
});
|
|
6657
|
-
var EndpointSnippetTemplateSchema =
|
|
6821
|
+
var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
|
|
6658
6822
|
var templatesContract = {
|
|
6659
|
-
register:
|
|
6660
|
-
registerBatch:
|
|
6661
|
-
get:
|
|
6823
|
+
register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
6824
|
+
registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
6825
|
+
get: import_contract41.oc.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
6662
6826
|
};
|
|
6663
6827
|
|
|
6664
6828
|
// src/orpc-client/templates/client.ts
|
|
6665
6829
|
function createTemplatesClient(options) {
|
|
6666
6830
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
6667
|
-
const link = new
|
|
6831
|
+
const link = new import_fetch22.OpenAPILink(templatesContract, {
|
|
6668
6832
|
url: `${baseUrl}/snippet-template`,
|
|
6669
6833
|
headers: () => ({
|
|
6670
6834
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6672,36 +6836,36 @@ function createTemplatesClient(options) {
|
|
|
6672
6836
|
}),
|
|
6673
6837
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6674
6838
|
});
|
|
6675
|
-
return (0,
|
|
6839
|
+
return (0, import_client27.createORPCClient)(link);
|
|
6676
6840
|
}
|
|
6677
6841
|
|
|
6678
6842
|
// src/orpc-client/tokens/client.ts
|
|
6679
|
-
var
|
|
6680
|
-
var
|
|
6843
|
+
var import_client28 = require("@orpc/client");
|
|
6844
|
+
var import_fetch23 = require("@orpc/openapi-client/fetch");
|
|
6681
6845
|
|
|
6682
6846
|
// src/orpc-client/tokens/contract.ts
|
|
6683
|
-
var
|
|
6684
|
-
var
|
|
6685
|
-
var GenerateTokenInputSchema =
|
|
6686
|
-
orgId:
|
|
6687
|
-
scope:
|
|
6847
|
+
var import_contract43 = require("@orpc/contract");
|
|
6848
|
+
var z32 = __toESM(require("zod"), 1);
|
|
6849
|
+
var GenerateTokenInputSchema = z32.object({
|
|
6850
|
+
orgId: z32.string(),
|
|
6851
|
+
scope: z32.string()
|
|
6688
6852
|
});
|
|
6689
|
-
var RevokeTokenInputSchema =
|
|
6690
|
-
orgId:
|
|
6691
|
-
tokenId:
|
|
6853
|
+
var RevokeTokenInputSchema = z32.object({
|
|
6854
|
+
orgId: z32.string(),
|
|
6855
|
+
tokenId: z32.string()
|
|
6692
6856
|
});
|
|
6693
|
-
var GenerateTokenOutputSchema =
|
|
6694
|
-
token:
|
|
6695
|
-
id:
|
|
6857
|
+
var GenerateTokenOutputSchema = z32.object({
|
|
6858
|
+
token: z32.string(),
|
|
6859
|
+
id: z32.string()
|
|
6696
6860
|
});
|
|
6697
6861
|
var tokensContract = {
|
|
6698
|
-
generate:
|
|
6699
|
-
revoke:
|
|
6862
|
+
generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
6863
|
+
revoke: import_contract43.oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
6700
6864
|
};
|
|
6701
6865
|
|
|
6702
6866
|
// src/orpc-client/tokens/client.ts
|
|
6703
6867
|
function createTokensClient(options) {
|
|
6704
|
-
const link = new
|
|
6868
|
+
const link = new import_fetch23.OpenAPILink(tokensContract, {
|
|
6705
6869
|
url: `${options.baseUrl}/tokens`,
|
|
6706
6870
|
headers: () => ({
|
|
6707
6871
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6709,7 +6873,7 @@ function createTokensClient(options) {
|
|
|
6709
6873
|
}),
|
|
6710
6874
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6711
6875
|
});
|
|
6712
|
-
return (0,
|
|
6876
|
+
return (0, import_client28.createORPCClient)(link);
|
|
6713
6877
|
}
|
|
6714
6878
|
|
|
6715
6879
|
// src/orpc-client/client.ts
|
|
@@ -6733,6 +6897,7 @@ function createFdrORPCClient(options) {
|
|
|
6733
6897
|
versions: createGeneratorVersionsClient(normalizedOptions)
|
|
6734
6898
|
},
|
|
6735
6899
|
git: createGitClient(normalizedOptions),
|
|
6900
|
+
mcpHosting: createMcpHostingClient(normalizedOptions),
|
|
6736
6901
|
slugs: createSlugsClient(normalizedOptions),
|
|
6737
6902
|
pdfExport: createPdfExportClient(normalizedOptions),
|
|
6738
6903
|
sdks: createSdksClient(normalizedOptions),
|
|
@@ -6744,34 +6909,34 @@ function createFdrORPCClient(options) {
|
|
|
6744
6909
|
}
|
|
6745
6910
|
|
|
6746
6911
|
// src/orpc-client/docs/v1/write/client.ts
|
|
6747
|
-
var
|
|
6748
|
-
var
|
|
6912
|
+
var import_client48 = require("@orpc/client");
|
|
6913
|
+
var import_fetch24 = require("@orpc/openapi-client/fetch");
|
|
6749
6914
|
|
|
6750
6915
|
// src/orpc-client/docs/v1/write/contract.ts
|
|
6751
|
-
var
|
|
6752
|
-
var
|
|
6753
|
-
var StartDocsRegisterV1InputSchema =
|
|
6754
|
-
orgId:
|
|
6755
|
-
domain:
|
|
6756
|
-
filepaths:
|
|
6916
|
+
var import_contract45 = require("@orpc/contract");
|
|
6917
|
+
var z33 = __toESM(require("zod"), 1);
|
|
6918
|
+
var StartDocsRegisterV1InputSchema = z33.object({
|
|
6919
|
+
orgId: z33.string(),
|
|
6920
|
+
domain: z33.string(),
|
|
6921
|
+
filepaths: z33.array(z33.string())
|
|
6757
6922
|
});
|
|
6758
|
-
var StartDocsRegisterV1ResponseSchema =
|
|
6759
|
-
docsRegistrationId:
|
|
6760
|
-
uploadUrls:
|
|
6761
|
-
skippedFiles:
|
|
6923
|
+
var StartDocsRegisterV1ResponseSchema = z33.object({
|
|
6924
|
+
docsRegistrationId: z33.string(),
|
|
6925
|
+
uploadUrls: z33.record(z33.string(), FileS3UploadUrlSchema),
|
|
6926
|
+
skippedFiles: z33.array(z33.string())
|
|
6762
6927
|
});
|
|
6763
|
-
var FinishDocsRegisterV1InputSchema =
|
|
6764
|
-
docsRegistrationId:
|
|
6765
|
-
docsDefinition:
|
|
6928
|
+
var FinishDocsRegisterV1InputSchema = z33.object({
|
|
6929
|
+
docsRegistrationId: z33.string(),
|
|
6930
|
+
docsDefinition: z33.unknown()
|
|
6766
6931
|
});
|
|
6767
6932
|
var docsV1WriteContract = {
|
|
6768
|
-
startDocsRegister:
|
|
6769
|
-
finishDocsRegister:
|
|
6933
|
+
startDocsRegister: import_contract45.oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
6934
|
+
finishDocsRegister: import_contract45.oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z33.void())
|
|
6770
6935
|
};
|
|
6771
6936
|
|
|
6772
6937
|
// src/orpc-client/docs/v1/write/client.ts
|
|
6773
6938
|
function createDocsV1WriteClient(options) {
|
|
6774
|
-
const link = new
|
|
6939
|
+
const link = new import_fetch24.OpenAPILink(docsV1WriteContract, {
|
|
6775
6940
|
url: `${options.baseUrl}/registry/docs`,
|
|
6776
6941
|
headers: () => ({
|
|
6777
6942
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6779,11 +6944,11 @@ function createDocsV1WriteClient(options) {
|
|
|
6779
6944
|
}),
|
|
6780
6945
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6781
6946
|
});
|
|
6782
|
-
return (0,
|
|
6947
|
+
return (0, import_client48.createORPCClient)(link);
|
|
6783
6948
|
}
|
|
6784
6949
|
|
|
6785
6950
|
// src/orpc-client/docs-ledger/config-files.ts
|
|
6786
|
-
var
|
|
6951
|
+
var z34 = __toESM(require("zod"), 1);
|
|
6787
6952
|
var PATH_OR_URL_METADATA_KEYS = [
|
|
6788
6953
|
"og:image",
|
|
6789
6954
|
"og:logo",
|
|
@@ -6791,57 +6956,57 @@ var PATH_OR_URL_METADATA_KEYS = [
|
|
|
6791
6956
|
"og:background-image",
|
|
6792
6957
|
"og:dynamic:background-image"
|
|
6793
6958
|
];
|
|
6794
|
-
var LogoViewSchema =
|
|
6795
|
-
var ThemeViewSchema =
|
|
6959
|
+
var LogoViewSchema = z34.union([z34.string(), z34.object({ path: z34.string() }).transform((v) => v.path)]);
|
|
6960
|
+
var ThemeViewSchema = z34.object({
|
|
6796
6961
|
logo: LogoViewSchema.optional().catch(void 0),
|
|
6797
|
-
backgroundImage:
|
|
6962
|
+
backgroundImage: z34.string().optional().catch(void 0)
|
|
6798
6963
|
});
|
|
6799
|
-
var ColorsViewSchema =
|
|
6800
|
-
|
|
6801
|
-
type:
|
|
6964
|
+
var ColorsViewSchema = z34.union([
|
|
6965
|
+
z34.object({
|
|
6966
|
+
type: z34.literal("darkAndLight"),
|
|
6802
6967
|
dark: ThemeViewSchema.optional().catch(void 0),
|
|
6803
6968
|
light: ThemeViewSchema.optional().catch(void 0)
|
|
6804
6969
|
}),
|
|
6805
6970
|
ThemeViewSchema.transform((theme) => ({ type: "single", theme }))
|
|
6806
6971
|
]);
|
|
6807
|
-
var FontViewSchema =
|
|
6808
|
-
variants:
|
|
6972
|
+
var FontViewSchema = z34.object({
|
|
6973
|
+
variants: z34.array(z34.object({ fontFile: z34.string().optional().catch(void 0) })).catch([])
|
|
6809
6974
|
});
|
|
6810
|
-
var TypographyViewSchema =
|
|
6975
|
+
var TypographyViewSchema = z34.object({
|
|
6811
6976
|
headingsFont: FontViewSchema.optional().catch(void 0),
|
|
6812
6977
|
bodyFont: FontViewSchema.optional().catch(void 0),
|
|
6813
6978
|
codeFont: FontViewSchema.optional().catch(void 0)
|
|
6814
6979
|
});
|
|
6815
|
-
var JsFileViewSchema =
|
|
6816
|
-
|
|
6817
|
-
|
|
6980
|
+
var JsFileViewSchema = z34.union([
|
|
6981
|
+
z34.object({ path: z34.string() }).transform((v) => v.path),
|
|
6982
|
+
z34.object({ fileId: z34.string() }).transform((v) => v.fileId)
|
|
6818
6983
|
]);
|
|
6819
|
-
var MetadataFileRefViewSchema =
|
|
6820
|
-
type:
|
|
6821
|
-
value:
|
|
6984
|
+
var MetadataFileRefViewSchema = z34.object({
|
|
6985
|
+
type: z34.enum(["path", "fileId"]),
|
|
6986
|
+
value: z34.string()
|
|
6822
6987
|
});
|
|
6823
|
-
var ConfigViewSchema =
|
|
6824
|
-
favicon:
|
|
6988
|
+
var ConfigViewSchema = z34.object({
|
|
6989
|
+
favicon: z34.string().optional().catch(void 0),
|
|
6825
6990
|
colorsV3: ColorsViewSchema.optional().catch(void 0),
|
|
6826
6991
|
typographyV2: TypographyViewSchema.optional().catch(void 0),
|
|
6827
|
-
js:
|
|
6828
|
-
metadata:
|
|
6992
|
+
js: z34.object({ files: z34.array(JsFileViewSchema.optional().catch(void 0)).catch([]) }).optional().catch(void 0),
|
|
6993
|
+
metadata: z34.record(z34.string(), z34.unknown()).optional().catch(void 0)
|
|
6829
6994
|
});
|
|
6830
6995
|
function isDarkAndLight(colors) {
|
|
6831
6996
|
return colors.type === "darkAndLight";
|
|
6832
6997
|
}
|
|
6833
6998
|
var NAV_ICON_FILE_PREFIX = "file:";
|
|
6834
|
-
var FileTokenTreeSchema =
|
|
6835
|
-
() =>
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6999
|
+
var FileTokenTreeSchema = z34.lazy(
|
|
7000
|
+
() => z34.union([
|
|
7001
|
+
z34.string(),
|
|
7002
|
+
z34.number(),
|
|
7003
|
+
z34.boolean(),
|
|
7004
|
+
z34.null(),
|
|
7005
|
+
z34.array(FileTokenTreeSchema),
|
|
7006
|
+
z34.record(z34.string(), FileTokenTreeSchema)
|
|
6842
7007
|
])
|
|
6843
7008
|
);
|
|
6844
|
-
var ConfigFileTokenViewSchema =
|
|
7009
|
+
var ConfigFileTokenViewSchema = z34.object({
|
|
6845
7010
|
landingPage: FileTokenTreeSchema.optional().catch(void 0)
|
|
6846
7011
|
});
|
|
6847
7012
|
function addFileTokenPath(paths, value) {
|
|
@@ -6863,17 +7028,17 @@ function addFileTokenPath(paths, value) {
|
|
|
6863
7028
|
}
|
|
6864
7029
|
}
|
|
6865
7030
|
}
|
|
6866
|
-
var SegmentDetailIconViewSchema =
|
|
6867
|
-
icon:
|
|
6868
|
-
metadata:
|
|
6869
|
-
icon:
|
|
6870
|
-
image:
|
|
7031
|
+
var SegmentDetailIconViewSchema = z34.object({
|
|
7032
|
+
icon: z34.string().nullish().catch(void 0),
|
|
7033
|
+
metadata: z34.object({
|
|
7034
|
+
icon: z34.string().nullish().catch(void 0),
|
|
7035
|
+
image: z34.string().nullish().catch(void 0)
|
|
6871
7036
|
}).nullish().catch(void 0)
|
|
6872
7037
|
});
|
|
6873
|
-
var SegmentIconViewSchema =
|
|
6874
|
-
metadata:
|
|
6875
|
-
icon:
|
|
6876
|
-
image:
|
|
7038
|
+
var SegmentIconViewSchema = z34.object({
|
|
7039
|
+
metadata: z34.object({
|
|
7040
|
+
icon: z34.string().nullish().catch(void 0),
|
|
7041
|
+
image: z34.string().nullish().catch(void 0)
|
|
6877
7042
|
}).nullish().catch(void 0),
|
|
6878
7043
|
product: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
6879
7044
|
version: SegmentDetailIconViewSchema.nullish().catch(void 0),
|
|
@@ -6957,22 +7122,22 @@ function collectConfigFilePaths(config) {
|
|
|
6957
7122
|
}
|
|
6958
7123
|
|
|
6959
7124
|
// src/orpc-client/docs-ledger/ledger-manifest.ts
|
|
6960
|
-
var
|
|
7125
|
+
var z35 = __toESM(require("zod"), 1);
|
|
6961
7126
|
var LEDGER_MANIFEST_SCHEMA_VERSION = "docsledger/20260601";
|
|
6962
7127
|
var LEDGER_SHARD_SCHEMA_VERSION = "docsledger/shard/20260601";
|
|
6963
|
-
var ManifestBlobRefSchema =
|
|
6964
|
-
hash:
|
|
6965
|
-
contentType:
|
|
7128
|
+
var ManifestBlobRefSchema = z35.object({
|
|
7129
|
+
hash: z35.string(),
|
|
7130
|
+
contentType: z35.string()
|
|
6966
7131
|
});
|
|
6967
|
-
var ManifestSegmentSchema =
|
|
7132
|
+
var ManifestSegmentSchema = z35.object({
|
|
6968
7133
|
/** Synthetic stable id (= segmentHash). */
|
|
6969
|
-
segmentId:
|
|
6970
|
-
segmentHash:
|
|
6971
|
-
section:
|
|
6972
|
-
locale:
|
|
7134
|
+
segmentId: z35.string(),
|
|
7135
|
+
segmentHash: z35.string(),
|
|
7136
|
+
section: z35.string(),
|
|
7137
|
+
locale: z35.string(),
|
|
6973
7138
|
/** Sidebar order across segments (docs_ledger_deployment_segments.sort_order). */
|
|
6974
|
-
sortOrder:
|
|
6975
|
-
hidden:
|
|
7139
|
+
sortOrder: z35.number(),
|
|
7140
|
+
hidden: z35.boolean(),
|
|
6976
7141
|
/** Segment type descriptor: { type, title, icon, apiDefinitionId, overviewPageId, pointsTo, ... }. */
|
|
6977
7142
|
metadata: LedgerSegmentMetadataSchema,
|
|
6978
7143
|
product: SegmentDetailSchema.nullable(),
|
|
@@ -7021,23 +7186,23 @@ function selectLedgerSegmentsForLocale(segments, locale, defaultLocale) {
|
|
|
7021
7186
|
return [...byIdentity.values()];
|
|
7022
7187
|
}
|
|
7023
7188
|
var ManifestNavRouteSchema = LedgerNavRouteSchema;
|
|
7024
|
-
var ManifestRouteBaseSchema =
|
|
7025
|
-
segmentHash:
|
|
7189
|
+
var ManifestRouteBaseSchema = z35.object({
|
|
7190
|
+
segmentHash: z35.string(),
|
|
7026
7191
|
/** Key into the containing route index's sidebars map. */
|
|
7027
|
-
sidebarKey:
|
|
7028
|
-
section:
|
|
7029
|
-
locale:
|
|
7030
|
-
artifactId:
|
|
7031
|
-
pageId:
|
|
7192
|
+
sidebarKey: z35.string().nullable(),
|
|
7193
|
+
section: z35.string(),
|
|
7194
|
+
locale: z35.string(),
|
|
7195
|
+
artifactId: z35.string(),
|
|
7196
|
+
pageId: z35.string().optional(),
|
|
7032
7197
|
/** CAS hash of the page content blob, or null for link/redirect artifacts. */
|
|
7033
|
-
contentHash:
|
|
7034
|
-
contentType:
|
|
7198
|
+
contentHash: z35.string().nullable(),
|
|
7199
|
+
contentType: z35.string().nullable(),
|
|
7035
7200
|
/** ISO-8601 timestamp of when this artifact's content version was first created.
|
|
7036
7201
|
* Populated at publish time from `docs_ledger_artifacts.created_at`. Optional
|
|
7037
7202
|
* for backward compatibility with manifests built before this field existed. */
|
|
7038
|
-
createdAt:
|
|
7203
|
+
createdAt: z35.string().optional()
|
|
7039
7204
|
});
|
|
7040
|
-
var ManifestRouteSchema =
|
|
7205
|
+
var ManifestRouteSchema = z35.discriminatedUnion("artifactType", [
|
|
7041
7206
|
artifactTypeVariant(ManifestRouteBaseSchema, "markdown"),
|
|
7042
7207
|
artifactTypeVariant(ManifestRouteBaseSchema, "page"),
|
|
7043
7208
|
artifactTypeVariant(ManifestRouteBaseSchema, "rest"),
|
|
@@ -7052,60 +7217,60 @@ var ManifestRouteSchema = z34.discriminatedUnion("artifactType", [
|
|
|
7052
7217
|
artifactTypeVariant(ManifestRouteBaseSchema, "image"),
|
|
7053
7218
|
artifactTypeVariant(ManifestRouteBaseSchema, "redirect")
|
|
7054
7219
|
]);
|
|
7055
|
-
var ManifestPageSchema =
|
|
7056
|
-
fullPath:
|
|
7057
|
-
segmentHash:
|
|
7058
|
-
contentHash:
|
|
7059
|
-
contentType:
|
|
7220
|
+
var ManifestPageSchema = z35.object({
|
|
7221
|
+
fullPath: z35.string().nullable(),
|
|
7222
|
+
segmentHash: z35.string(),
|
|
7223
|
+
contentHash: z35.string(),
|
|
7224
|
+
contentType: z35.string()
|
|
7060
7225
|
});
|
|
7061
|
-
var ManifestApiDefSchema =
|
|
7226
|
+
var ManifestApiDefSchema = z35.object({
|
|
7062
7227
|
/** CAS hash of the full API definition blob. */
|
|
7063
|
-
hash:
|
|
7064
|
-
contentType:
|
|
7228
|
+
hash: z35.string(),
|
|
7229
|
+
contentType: z35.string(),
|
|
7065
7230
|
/** key = `${nodeType}:${nodeId}` (e.g. `endpoint:abc`) → pruned CAS blob. */
|
|
7066
|
-
prunedHashes:
|
|
7067
|
-
});
|
|
7068
|
-
var ManifestFileSchema =
|
|
7069
|
-
type:
|
|
7070
|
-
contentType:
|
|
7071
|
-
contentLength:
|
|
7072
|
-
filename:
|
|
7073
|
-
hash:
|
|
7231
|
+
prunedHashes: z35.record(z35.string(), ManifestBlobRefSchema)
|
|
7232
|
+
});
|
|
7233
|
+
var ManifestFileSchema = z35.object({
|
|
7234
|
+
type: z35.enum(["file", "image"]),
|
|
7235
|
+
contentType: z35.string(),
|
|
7236
|
+
contentLength: z35.number().optional(),
|
|
7237
|
+
filename: z35.string(),
|
|
7238
|
+
hash: z35.string(),
|
|
7074
7239
|
/** Canonical fern domain the bytes were uploaded under (ADR 0010 file anchor). */
|
|
7075
|
-
domain:
|
|
7076
|
-
bucket:
|
|
7077
|
-
width:
|
|
7078
|
-
height:
|
|
7079
|
-
blurDataURL:
|
|
7240
|
+
domain: z35.string(),
|
|
7241
|
+
bucket: z35.enum(["public_docs", "private_docs"]),
|
|
7242
|
+
width: z35.number().optional(),
|
|
7243
|
+
height: z35.number().optional(),
|
|
7244
|
+
blurDataURL: z35.string().optional()
|
|
7080
7245
|
});
|
|
7081
|
-
var LedgerShardFileSchema =
|
|
7246
|
+
var LedgerShardFileSchema = z35.object({
|
|
7082
7247
|
/** SHA-256 hex of the file bytes (docs-bucket key component). */
|
|
7083
|
-
hash:
|
|
7248
|
+
hash: z35.string(),
|
|
7084
7249
|
/** Fern-host-relative path; equals the `file:<fullPath>` token's suffix. */
|
|
7085
|
-
fullPath:
|
|
7086
|
-
contentType:
|
|
7087
|
-
contentLength:
|
|
7088
|
-
width:
|
|
7089
|
-
height:
|
|
7090
|
-
blurDataURL:
|
|
7250
|
+
fullPath: z35.string(),
|
|
7251
|
+
contentType: z35.string(),
|
|
7252
|
+
contentLength: z35.number().optional(),
|
|
7253
|
+
width: z35.number().optional(),
|
|
7254
|
+
height: z35.number().optional(),
|
|
7255
|
+
blurDataURL: z35.string().optional(),
|
|
7091
7256
|
/**
|
|
7092
7257
|
* Per-file bucket override. Absent ⇒ derive from the pointer's `isPrivate`
|
|
7093
7258
|
* (`private_docs` when private, else `public_docs`). Present only for the
|
|
7094
7259
|
* rare file whose bucket diverges from the deployment default.
|
|
7095
7260
|
*/
|
|
7096
|
-
bucket:
|
|
7097
|
-
});
|
|
7098
|
-
var LedgerConfigBlobSchema =
|
|
7099
|
-
version:
|
|
7100
|
-
git:
|
|
7101
|
-
repoUrl:
|
|
7102
|
-
branch:
|
|
7103
|
-
commitSha:
|
|
7261
|
+
bucket: z35.enum(["public_docs", "private_docs"]).optional()
|
|
7262
|
+
});
|
|
7263
|
+
var LedgerConfigBlobSchema = z35.object({
|
|
7264
|
+
version: z35.string().nullable(),
|
|
7265
|
+
git: z35.object({
|
|
7266
|
+
repoUrl: z35.string(),
|
|
7267
|
+
branch: z35.string(),
|
|
7268
|
+
commitSha: z35.string().nullable().optional()
|
|
7104
7269
|
}).optional(),
|
|
7105
7270
|
/** Structural config with hot-path chrome text inlined for ADR 0016 page reads. */
|
|
7106
7271
|
config: LedgerConfigSchema.nullable(),
|
|
7107
7272
|
/** Large or legacy extracted config blobs. New manifests inline header/footer/css.inline/js.inline. */
|
|
7108
|
-
configRefs:
|
|
7273
|
+
configRefs: z35.object({
|
|
7109
7274
|
header: ManifestBlobRefSchema.optional(),
|
|
7110
7275
|
footer: ManifestBlobRefSchema.optional(),
|
|
7111
7276
|
cssInline: ManifestBlobRefSchema.optional(),
|
|
@@ -7113,43 +7278,43 @@ var LedgerConfigBlobSchema = z34.object({
|
|
|
7113
7278
|
jsFiles: ManifestBlobRefSchema.optional()
|
|
7114
7279
|
})
|
|
7115
7280
|
});
|
|
7116
|
-
var LedgerChromeBlobSchema =
|
|
7117
|
-
apiNameToId:
|
|
7281
|
+
var LedgerChromeBlobSchema = z35.object({
|
|
7282
|
+
apiNameToId: z35.record(z35.string(), z35.string())
|
|
7118
7283
|
});
|
|
7119
|
-
var LedgerSidebarBundleSchema =
|
|
7120
|
-
locale:
|
|
7121
|
-
segmentHash:
|
|
7122
|
-
routes:
|
|
7284
|
+
var LedgerSidebarBundleSchema = z35.object({
|
|
7285
|
+
locale: z35.string(),
|
|
7286
|
+
segmentHash: z35.string(),
|
|
7287
|
+
routes: z35.array(ManifestNavRouteSchema)
|
|
7123
7288
|
});
|
|
7124
|
-
var LedgerSidebarMapEntrySchema =
|
|
7289
|
+
var LedgerSidebarMapEntrySchema = z35.discriminatedUnion("strategy", [
|
|
7125
7290
|
LedgerSidebarBundleSchema.extend({
|
|
7126
|
-
strategy:
|
|
7291
|
+
strategy: z35.literal("inline")
|
|
7127
7292
|
}),
|
|
7128
7293
|
ManifestBlobRefSchema.extend({
|
|
7129
|
-
strategy:
|
|
7294
|
+
strategy: z35.literal("ref")
|
|
7130
7295
|
})
|
|
7131
7296
|
]);
|
|
7132
|
-
var LedgerLocaleIndexSchema =
|
|
7133
|
-
locale:
|
|
7134
|
-
segments:
|
|
7297
|
+
var LedgerLocaleIndexSchema = z35.object({
|
|
7298
|
+
locale: z35.string(),
|
|
7299
|
+
segments: z35.array(ManifestSegmentSchema),
|
|
7135
7300
|
/** sidebarKey → inline sidebar routes, or a CAS ref when over budget. */
|
|
7136
|
-
sidebars:
|
|
7301
|
+
sidebars: z35.record(z35.string(), LedgerSidebarMapEntrySchema),
|
|
7137
7302
|
/** fullPath → route for this effective locale. */
|
|
7138
|
-
routes:
|
|
7303
|
+
routes: z35.record(z35.string(), ManifestRouteSchema),
|
|
7139
7304
|
/** pageId → page content reference for this effective locale. */
|
|
7140
|
-
pages:
|
|
7305
|
+
pages: z35.record(z35.string(), ManifestPageSchema),
|
|
7141
7306
|
/** apiDefinitionId → full + pruned API definition blobs. */
|
|
7142
|
-
apiDefs:
|
|
7307
|
+
apiDefs: z35.record(z35.string(), ManifestApiDefSchema),
|
|
7143
7308
|
/** fullPath → file/image artifact metadata. */
|
|
7144
|
-
files:
|
|
7309
|
+
files: z35.record(z35.string(), ManifestFileSchema)
|
|
7145
7310
|
});
|
|
7146
|
-
var LedgerRouteShardSchema =
|
|
7147
|
-
schema:
|
|
7148
|
-
locale:
|
|
7311
|
+
var LedgerRouteShardSchema = z35.object({
|
|
7312
|
+
schema: z35.literal(LEDGER_SHARD_SCHEMA_VERSION),
|
|
7313
|
+
locale: z35.string(),
|
|
7149
7314
|
/** fullPath → route for the scopes packed into this shard. */
|
|
7150
|
-
routes:
|
|
7315
|
+
routes: z35.record(z35.string(), ManifestRouteSchema),
|
|
7151
7316
|
/** segmentHash → inline sidebar (or CAS ref) for every segment in this shard's scopes. */
|
|
7152
|
-
sidebars:
|
|
7317
|
+
sidebars: z35.record(z35.string(), LedgerSidebarMapEntrySchema),
|
|
7153
7318
|
/**
|
|
7154
7319
|
* fileFullPath → lean file identity for every file/image referenced by a
|
|
7155
7320
|
* page routed into this shard (ADR 0016, "File metadata on the render
|
|
@@ -7158,32 +7323,32 @@ var LedgerRouteShardSchema = z34.object({
|
|
|
7158
7323
|
* existed or with no embedded files; the bundle then falls back to the
|
|
7159
7324
|
* pointer's `files` map (`fileMetadata`/`fileArtifact`).
|
|
7160
7325
|
*/
|
|
7161
|
-
files:
|
|
7326
|
+
files: z35.record(z35.string(), LedgerShardFileSchema).optional()
|
|
7162
7327
|
});
|
|
7163
|
-
var LedgerPagesBlobSchema =
|
|
7328
|
+
var LedgerPagesBlobSchema = z35.record(z35.string(), ManifestPageSchema);
|
|
7164
7329
|
var LedgerPointerSegmentSchema = ManifestSegmentSchema.omit({ product: true, version: true }).extend({
|
|
7165
7330
|
/** Index into the locale's `productCatalog`, or null when the segment has no product. */
|
|
7166
|
-
productIdx:
|
|
7331
|
+
productIdx: z35.number().nullable(),
|
|
7167
7332
|
/** Index into the locale's `versionCatalog`, or null when the segment has no version. */
|
|
7168
|
-
versionIdx:
|
|
7333
|
+
versionIdx: z35.number().nullable()
|
|
7169
7334
|
});
|
|
7170
|
-
var LedgerLocaleRoutingSchema =
|
|
7335
|
+
var LedgerLocaleRoutingSchema = z35.object({
|
|
7171
7336
|
/** Compact segments catalog for the switcher chrome (product/version by index). */
|
|
7172
|
-
segments:
|
|
7337
|
+
segments: z35.array(LedgerPointerSegmentSchema),
|
|
7173
7338
|
/** Deduplicated product details; `LedgerPointerSegment.productIdx` indexes into this. */
|
|
7174
|
-
productCatalog:
|
|
7339
|
+
productCatalog: z35.array(SegmentDetailSchema),
|
|
7175
7340
|
/** Deduplicated version details; `LedgerPointerSegment.versionIdx` indexes into this. */
|
|
7176
|
-
versionCatalog:
|
|
7341
|
+
versionCatalog: z35.array(SegmentDetailSchema),
|
|
7177
7342
|
/** fullPath → index into `shards`. */
|
|
7178
|
-
routing:
|
|
7343
|
+
routing: z35.record(z35.string(), z35.number()),
|
|
7179
7344
|
/** segmentHash → index into `shards`. */
|
|
7180
|
-
segmentShard:
|
|
7345
|
+
segmentShard: z35.record(z35.string(), z35.number()),
|
|
7181
7346
|
/** Ordered list of route shards; index matches `routing`/`segmentShard`. */
|
|
7182
|
-
shards:
|
|
7347
|
+
shards: z35.array(z35.object({ hash: z35.string() })),
|
|
7183
7348
|
/** versionId → first routable fullPath (version switcher). */
|
|
7184
|
-
versionFirstRoute:
|
|
7349
|
+
versionFirstRoute: z35.record(z35.string(), z35.string()),
|
|
7185
7350
|
/** CAS hash of the per-locale pages blob. */
|
|
7186
|
-
pagesHash:
|
|
7351
|
+
pagesHash: z35.string(),
|
|
7187
7352
|
/**
|
|
7188
7353
|
* fullPath → file/image artifact metadata for files NOT materialised into
|
|
7189
7354
|
* a route shard (ADR 0016, "File metadata on the render path"): config
|
|
@@ -7192,26 +7357,26 @@ var LedgerLocaleRoutingSchema = z34.object({
|
|
|
7192
7357
|
* Page-body images are pruned from here and live in their route shard's
|
|
7193
7358
|
* `files` map instead. Read via `fileMetadata` / `fileArtifact`.
|
|
7194
7359
|
*/
|
|
7195
|
-
files:
|
|
7360
|
+
files: z35.record(z35.string(), ManifestFileSchema),
|
|
7196
7361
|
/** apiDefinitionId → full + pruned API definition blobs. */
|
|
7197
|
-
apiDefs:
|
|
7362
|
+
apiDefs: z35.record(z35.string(), ManifestApiDefSchema)
|
|
7198
7363
|
});
|
|
7199
|
-
var LedgerManifestSchema =
|
|
7200
|
-
schema:
|
|
7364
|
+
var LedgerManifestSchema = z35.object({
|
|
7365
|
+
schema: z35.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
|
|
7201
7366
|
// ── Pointer / current-version fields ──────────────────────────────
|
|
7202
|
-
orgId:
|
|
7203
|
-
domain:
|
|
7204
|
-
basepath:
|
|
7205
|
-
deploymentId:
|
|
7206
|
-
deploymentHash:
|
|
7207
|
-
siteId:
|
|
7367
|
+
orgId: z35.string(),
|
|
7368
|
+
domain: z35.string(),
|
|
7369
|
+
basepath: z35.string(),
|
|
7370
|
+
deploymentId: z35.string(),
|
|
7371
|
+
deploymentHash: z35.string(),
|
|
7372
|
+
siteId: z35.string(),
|
|
7208
7373
|
/** ISO-8601 timestamp the publish became live (request time). */
|
|
7209
|
-
assignedAt:
|
|
7210
|
-
assignedBy:
|
|
7211
|
-
isPreview:
|
|
7212
|
-
isPrivate:
|
|
7374
|
+
assignedAt: z35.string(),
|
|
7375
|
+
assignedBy: z35.string().nullable(),
|
|
7376
|
+
isPreview: z35.boolean(),
|
|
7377
|
+
isPrivate: z35.boolean(),
|
|
7213
7378
|
/** Default locale for the deployment — read-path fallback when a translation is absent. */
|
|
7214
|
-
defaultLocale:
|
|
7379
|
+
defaultLocale: z35.string(),
|
|
7215
7380
|
/**
|
|
7216
7381
|
* Canonical fern domain all file bytes are anchored under (ADR 0010). The
|
|
7217
7382
|
* read client builds the public `/_files/{fileAnchorDomain}/{hash}/{fullPath}`
|
|
@@ -7220,19 +7385,19 @@ var LedgerManifestSchema = z34.object({
|
|
|
7220
7385
|
* written before shard-side files; absent ⇒ the client falls back to the
|
|
7221
7386
|
* pointer `files` map (which still carries per-file `domain`).
|
|
7222
7387
|
*/
|
|
7223
|
-
fileAnchorDomain:
|
|
7388
|
+
fileAnchorDomain: z35.string().optional(),
|
|
7224
7389
|
config: LedgerConfigBlobSchema,
|
|
7225
7390
|
chrome: LedgerChromeBlobSchema,
|
|
7226
|
-
locales:
|
|
7227
|
-
});
|
|
7228
|
-
var LedgerSiteArtifactSchema =
|
|
7229
|
-
|
|
7230
|
-
schema:
|
|
7231
|
-
unpublished:
|
|
7232
|
-
orgId:
|
|
7233
|
-
domain:
|
|
7234
|
-
basepath:
|
|
7235
|
-
isPreview:
|
|
7391
|
+
locales: z35.record(z35.string(), LedgerLocaleRoutingSchema)
|
|
7392
|
+
});
|
|
7393
|
+
var LedgerSiteArtifactSchema = z35.union([
|
|
7394
|
+
z35.object({
|
|
7395
|
+
schema: z35.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
|
|
7396
|
+
unpublished: z35.literal(true),
|
|
7397
|
+
orgId: z35.string(),
|
|
7398
|
+
domain: z35.string(),
|
|
7399
|
+
basepath: z35.string(),
|
|
7400
|
+
isPreview: z35.boolean()
|
|
7236
7401
|
}),
|
|
7237
7402
|
LedgerManifestSchema
|
|
7238
7403
|
]);
|
|
@@ -7248,66 +7413,66 @@ function stableStringify(value) {
|
|
|
7248
7413
|
}
|
|
7249
7414
|
|
|
7250
7415
|
// src/orpc-client/files/contract.ts
|
|
7251
|
-
var
|
|
7252
|
-
var
|
|
7253
|
-
var PutContentInputSchema =
|
|
7254
|
-
contentType:
|
|
7255
|
-
contentLength:
|
|
7416
|
+
var import_contract48 = require("@orpc/contract");
|
|
7417
|
+
var z36 = __toESM(require("zod"), 1);
|
|
7418
|
+
var PutContentInputSchema = z36.object({
|
|
7419
|
+
contentType: z36.string(),
|
|
7420
|
+
contentLength: z36.number().int().positive()
|
|
7256
7421
|
});
|
|
7257
|
-
var PutContentResponseSchema =
|
|
7422
|
+
var PutContentResponseSchema = z36.discriminatedUnion("status", [
|
|
7258
7423
|
/** Content already exists in storage — client can skip the S3 upload. */
|
|
7259
|
-
|
|
7424
|
+
z36.object({ status: z36.literal("exists") }),
|
|
7260
7425
|
/** Content is new — client should PUT the file bytes to uploadUrl, then call PUT /files. */
|
|
7261
|
-
|
|
7426
|
+
z36.object({ status: z36.literal("upload_required"), uploadUrl: z36.string() })
|
|
7262
7427
|
]);
|
|
7263
|
-
var PutFileInputSchema =
|
|
7264
|
-
hash:
|
|
7265
|
-
contentType:
|
|
7428
|
+
var PutFileInputSchema = z36.object({
|
|
7429
|
+
hash: z36.string(),
|
|
7430
|
+
contentType: z36.string()
|
|
7266
7431
|
});
|
|
7267
|
-
var FileResponseSchema =
|
|
7432
|
+
var FileResponseSchema = z36.object({
|
|
7268
7433
|
/** SHA-256 hex digest of the file content (64 characters). */
|
|
7269
|
-
hash:
|
|
7434
|
+
hash: z36.string(),
|
|
7270
7435
|
/** Presigned S3 GET URL. TTL is configurable (default 3600 seconds). */
|
|
7271
|
-
downloadUrl:
|
|
7436
|
+
downloadUrl: z36.string()
|
|
7272
7437
|
});
|
|
7273
7438
|
var contentContract = {
|
|
7274
7439
|
/**
|
|
7275
7440
|
* Check whether content exists or obtain a presigned S3 upload URL.
|
|
7276
7441
|
* Requires org membership or super-user.
|
|
7277
7442
|
*/
|
|
7278
|
-
putContent:
|
|
7443
|
+
putContent: import_contract48.oc.route({ method: "PUT", path: "/" }).input(PutContentInputSchema).output(PutContentResponseSchema)
|
|
7279
7444
|
};
|
|
7280
7445
|
var filesContract = {
|
|
7281
7446
|
/**
|
|
7282
7447
|
* Bind a content hash to an org-scoped file path, confirming the S3 upload.
|
|
7283
7448
|
* Requires org admin or super-user.
|
|
7284
7449
|
*/
|
|
7285
|
-
putFile:
|
|
7450
|
+
putFile: import_contract48.oc.route({ method: "PUT", path: "/" }).input(PutFileInputSchema).output(FileResponseSchema),
|
|
7286
7451
|
/**
|
|
7287
7452
|
* Get a presigned download URL for an org file.
|
|
7288
7453
|
* Requires org membership or super-user.
|
|
7289
7454
|
*/
|
|
7290
|
-
getFile:
|
|
7455
|
+
getFile: import_contract48.oc.route({ method: "GET", path: "/" }).output(FileResponseSchema)
|
|
7291
7456
|
};
|
|
7292
7457
|
|
|
7293
7458
|
// src/orpc-client/org-config/contract.ts
|
|
7294
|
-
var
|
|
7459
|
+
var z37 = __toESM(require("zod"), 1);
|
|
7295
7460
|
var SEMVER_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/;
|
|
7296
|
-
var UpsertOrgConfigBodySchema =
|
|
7461
|
+
var UpsertOrgConfigBodySchema = z37.object({
|
|
7297
7462
|
// A semver string sets the bound; `null` clears it; omitting leaves it unchanged.
|
|
7298
|
-
cliVersionMin:
|
|
7299
|
-
cliVersionMax:
|
|
7463
|
+
cliVersionMin: z37.union([z37.string().regex(SEMVER_RE, "cliVersionMin must be a valid semver (e.g. 5.45.0)"), z37.null()]).optional(),
|
|
7464
|
+
cliVersionMax: z37.union([z37.string().regex(SEMVER_RE, "cliVersionMax must be a valid semver (e.g. 5.45.0)"), z37.null()]).optional()
|
|
7300
7465
|
});
|
|
7301
|
-
var OrgConfigResponseSchema =
|
|
7302
|
-
orgId:
|
|
7303
|
-
cliVersionMin:
|
|
7304
|
-
cliVersionMax:
|
|
7466
|
+
var OrgConfigResponseSchema = z37.object({
|
|
7467
|
+
orgId: z37.string(),
|
|
7468
|
+
cliVersionMin: z37.string().optional(),
|
|
7469
|
+
cliVersionMax: z37.string().optional(),
|
|
7305
7470
|
// Absent when no config has been stored for the org yet.
|
|
7306
|
-
updatedAt:
|
|
7471
|
+
updatedAt: z37.string().optional()
|
|
7307
7472
|
});
|
|
7308
7473
|
|
|
7309
7474
|
// src/orpc-client/themes/contract.ts
|
|
7310
|
-
var
|
|
7475
|
+
var z38 = __toESM(require("zod"), 1);
|
|
7311
7476
|
var FERN_FILE_REF_KEY = "hash";
|
|
7312
7477
|
var SHA256_RE = /^[0-9a-f]{64}$/;
|
|
7313
7478
|
function isFernFileRef(value) {
|
|
@@ -7322,26 +7487,26 @@ function isFernFileRef(value) {
|
|
|
7322
7487
|
return typeof hash === "string" && SHA256_RE.test(hash);
|
|
7323
7488
|
}
|
|
7324
7489
|
var THEME_NAME_RE = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
7325
|
-
var ThemeResponseSchema =
|
|
7326
|
-
id:
|
|
7327
|
-
orgId:
|
|
7328
|
-
name:
|
|
7329
|
-
config:
|
|
7330
|
-
updatedAt:
|
|
7490
|
+
var ThemeResponseSchema = z38.object({
|
|
7491
|
+
id: z38.string(),
|
|
7492
|
+
orgId: z38.string(),
|
|
7493
|
+
name: z38.string(),
|
|
7494
|
+
config: z38.unknown(),
|
|
7495
|
+
updatedAt: z38.string()
|
|
7331
7496
|
// ISO 8601 timestamp
|
|
7332
7497
|
});
|
|
7333
|
-
var ThemeListItemSchema =
|
|
7334
|
-
id:
|
|
7335
|
-
orgId:
|
|
7336
|
-
name:
|
|
7337
|
-
updatedAt:
|
|
7498
|
+
var ThemeListItemSchema = z38.object({
|
|
7499
|
+
id: z38.string(),
|
|
7500
|
+
orgId: z38.string(),
|
|
7501
|
+
name: z38.string(),
|
|
7502
|
+
updatedAt: z38.string()
|
|
7338
7503
|
});
|
|
7339
|
-
var ThemeListResponseSchema =
|
|
7340
|
-
themes:
|
|
7504
|
+
var ThemeListResponseSchema = z38.object({
|
|
7505
|
+
themes: z38.array(ThemeListItemSchema)
|
|
7341
7506
|
});
|
|
7342
|
-
var UpsertThemeBodySchema =
|
|
7343
|
-
name:
|
|
7344
|
-
config:
|
|
7507
|
+
var UpsertThemeBodySchema = z38.object({
|
|
7508
|
+
name: z38.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
|
|
7509
|
+
config: z38.unknown()
|
|
7345
7510
|
});
|
|
7346
7511
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7347
7512
|
0 && (module.exports = {
|
|
@@ -7427,8 +7592,10 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7427
7592
|
DeleteDocsSiteByServiceInputSchema,
|
|
7428
7593
|
DeleteDocsSiteByServiceResponseSchema,
|
|
7429
7594
|
DeleteDocsSiteInputSchema,
|
|
7595
|
+
DeleteMcpServerInputSchema,
|
|
7430
7596
|
DeletePullRequestInputSchema,
|
|
7431
7597
|
DeleteRepositoryInputSchema,
|
|
7598
|
+
DeployMcpServerInputSchema,
|
|
7432
7599
|
DiscriminatedUnionTypeSchema,
|
|
7433
7600
|
DiscriminatedUnionVariantSchema,
|
|
7434
7601
|
DocsConfigId,
|
|
@@ -7546,6 +7713,7 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7546
7713
|
GetLatestGeneratorReleaseInputSchema,
|
|
7547
7714
|
GetLibraryDocsStatusInputSchema,
|
|
7548
7715
|
GetMarkdownEntriesResponseSchema,
|
|
7716
|
+
GetMcpServerInputSchema,
|
|
7549
7717
|
GetMinCliForIrInputSchema,
|
|
7550
7718
|
GetOrganizationForUrlInputSchema,
|
|
7551
7719
|
GetPdfExportDownloadUrlInputSchema,
|
|
@@ -7698,6 +7866,10 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7698
7866
|
ListDocsPagesResponseSchema,
|
|
7699
7867
|
ListGeneratorReleasesInputSchema,
|
|
7700
7868
|
ListGeneratorReleasesResponseSchema,
|
|
7869
|
+
ListMcpDeploymentsInputSchema,
|
|
7870
|
+
ListMcpDeploymentsResponseSchema,
|
|
7871
|
+
ListMcpServersInputSchema,
|
|
7872
|
+
ListMcpServersResponseSchema,
|
|
7701
7873
|
ListPdfExportTasksInputSchema,
|
|
7702
7874
|
ListPdfExportTasksResponseSchema,
|
|
7703
7875
|
ListPullRequestsInputSchema,
|
|
@@ -7717,6 +7889,11 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7717
7889
|
ManifestRouteSchema,
|
|
7718
7890
|
ManifestSegmentSchema,
|
|
7719
7891
|
MarkdownEntrySchema,
|
|
7892
|
+
McpAuthSchemeSchema,
|
|
7893
|
+
McpDeploymentStatusSchema,
|
|
7894
|
+
McpDeploymentSummarySchema,
|
|
7895
|
+
McpMetadataSchema,
|
|
7896
|
+
McpServerSchema,
|
|
7720
7897
|
MigrateV2SiteInputSchema,
|
|
7721
7898
|
MigrateV2SiteResponseSchema,
|
|
7722
7899
|
MigrateV2SiteSkipReasonSchema,
|
|
@@ -7973,6 +8150,7 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7973
8150
|
createGeneratorsRootClient,
|
|
7974
8151
|
createGitClient,
|
|
7975
8152
|
createLibraryDocsClient,
|
|
8153
|
+
createMcpHostingClient,
|
|
7976
8154
|
createOrganizationClient,
|
|
7977
8155
|
createPdfExportClient,
|
|
7978
8156
|
createSdksClient,
|
|
@@ -8002,6 +8180,7 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
8002
8180
|
isFernFileRef,
|
|
8003
8181
|
ledgerSegmentIdentity,
|
|
8004
8182
|
libraryDocsContract,
|
|
8183
|
+
mcpHostingContract,
|
|
8005
8184
|
organizationContract,
|
|
8006
8185
|
pdfExportContract,
|
|
8007
8186
|
sdksContract,
|