@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-5ab18f50f0
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
|
@@ -5325,103 +5325,253 @@ function createGitClient(options) {
|
|
|
5325
5325
|
return createORPCClient16(link);
|
|
5326
5326
|
}
|
|
5327
5327
|
|
|
5328
|
-
// src/orpc-client/
|
|
5328
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
5329
5329
|
import { createORPCClient as createORPCClient17 } from "@orpc/client";
|
|
5330
5330
|
import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
|
|
5331
5331
|
|
|
5332
|
-
// src/orpc-client/
|
|
5332
|
+
// src/orpc-client/mcp-hosting/contract.ts
|
|
5333
5333
|
import { oc as oc15 } from "@orpc/contract";
|
|
5334
5334
|
import * as z25 from "zod";
|
|
5335
|
-
var
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
footerRightTemplate: z25.string().nullish(),
|
|
5346
|
-
scope: PdfExportScopeSchema.nullish(),
|
|
5347
|
-
hideCover: z25.boolean().nullish(),
|
|
5348
|
-
hideToc: z25.boolean().nullish()
|
|
5349
|
-
});
|
|
5350
|
-
var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
|
|
5351
|
-
z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
5335
|
+
var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
5336
|
+
var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
|
|
5337
|
+
var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
|
|
5338
|
+
z25.object({ type: z25.literal("bearer") }),
|
|
5339
|
+
z25.object({
|
|
5340
|
+
type: z25.literal("apiKey"),
|
|
5341
|
+
paramName: z25.string().min(1),
|
|
5342
|
+
in: z25.enum(["header", "query", "cookie"])
|
|
5343
|
+
}),
|
|
5344
|
+
z25.object({ type: z25.literal("basic") })
|
|
5352
5345
|
]);
|
|
5353
|
-
var
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5346
|
+
var McpMetadataSchema = z25.object({
|
|
5347
|
+
name: z25.string().min(1),
|
|
5348
|
+
toolsets: z25.record(z25.string(), z25.array(z25.string())),
|
|
5349
|
+
toolsetMetadata: z25.array(
|
|
5350
|
+
z25.object({
|
|
5351
|
+
name: z25.string(),
|
|
5352
|
+
title: z25.string(),
|
|
5353
|
+
description: z25.string(),
|
|
5354
|
+
toolCount: z25.number().int().nonnegative()
|
|
5355
|
+
}).strict()
|
|
5356
|
+
),
|
|
5357
|
+
auth: z25.object({
|
|
5358
|
+
schemes: z25.array(McpAuthSchemeSchema),
|
|
5359
|
+
required: z25.boolean()
|
|
5360
|
+
}).strict(),
|
|
5361
|
+
skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
|
|
5362
|
+
environmentVariables: z25.array(
|
|
5363
|
+
z25.object({
|
|
5364
|
+
name: z25.string(),
|
|
5365
|
+
description: z25.string(),
|
|
5366
|
+
required: z25.boolean()
|
|
5367
|
+
}).strict()
|
|
5368
|
+
),
|
|
5369
|
+
baseUrl: z25.string().url(),
|
|
5370
|
+
followRedirects: z25.boolean(),
|
|
5371
|
+
maxRedirects: z25.number().int().nonnegative(),
|
|
5372
|
+
allowedRedirectHosts: z25.array(z25.string())
|
|
5373
|
+
}).passthrough();
|
|
5374
|
+
var McpModuleSchema = z25.object({
|
|
5375
|
+
name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
|
|
5376
|
+
hash: z25.string().regex(/^[0-9a-f]{64}$/),
|
|
5377
|
+
contentType: z25.string().min(1)
|
|
5378
|
+
}).strict();
|
|
5379
|
+
var McpGitInputSchema = z25.object({
|
|
5380
|
+
repoUrl: z25.string(),
|
|
5381
|
+
branch: z25.string(),
|
|
5382
|
+
commitSha: z25.string().optional()
|
|
5383
|
+
}).strict();
|
|
5384
|
+
var DeployMcpServerInputSchema = z25.object({
|
|
5385
|
+
orgId: McpPathSegmentSchema,
|
|
5386
|
+
slug: McpPathSegmentSchema,
|
|
5387
|
+
mainModule: z25.string().min(1),
|
|
5388
|
+
compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
5389
|
+
compatibilityFlags: z25.array(z25.string()),
|
|
5390
|
+
// Bounded so a single deploy request cannot fan out unbounded parallel
|
|
5391
|
+
// CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
|
|
5392
|
+
// 20 leaves room for wasm/sourcemap/chunk splitting.
|
|
5393
|
+
modules: z25.array(McpModuleSchema).min(1).max(20),
|
|
5394
|
+
metadata: McpMetadataSchema,
|
|
5395
|
+
// Everything else in this schema is bounded; keep the opaque config
|
|
5396
|
+
// blob bounded too so it cannot balloon the JSONB row.
|
|
5397
|
+
config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
|
|
5398
|
+
message: "config must be at most 64KB serialized"
|
|
5399
|
+
}),
|
|
5400
|
+
generatorName: z25.string().min(1),
|
|
5401
|
+
generatorVersion: z25.string().min(1),
|
|
5402
|
+
cliVersion: z25.string().optional(),
|
|
5403
|
+
git: McpGitInputSchema.optional()
|
|
5404
|
+
}).strict().superRefine((input, ctx) => {
|
|
5405
|
+
const names = /* @__PURE__ */ new Set();
|
|
5406
|
+
for (const module of input.modules) {
|
|
5407
|
+
if (names.has(module.name)) {
|
|
5408
|
+
ctx.addIssue({
|
|
5409
|
+
code: z25.ZodIssueCode.custom,
|
|
5410
|
+
path: ["modules"],
|
|
5411
|
+
message: `duplicate module name: ${module.name}`
|
|
5412
|
+
});
|
|
5413
|
+
}
|
|
5414
|
+
names.add(module.name);
|
|
5415
|
+
}
|
|
5416
|
+
if (!names.has(input.mainModule)) {
|
|
5417
|
+
ctx.addIssue({
|
|
5418
|
+
code: z25.ZodIssueCode.custom,
|
|
5419
|
+
path: ["mainModule"],
|
|
5420
|
+
message: `mainModule ${input.mainModule} is not among the submitted modules`
|
|
5421
|
+
});
|
|
5422
|
+
}
|
|
5370
5423
|
});
|
|
5371
|
-
var
|
|
5372
|
-
|
|
5424
|
+
var GetMcpServerInputSchema = z25.object({
|
|
5425
|
+
orgId: McpPathSegmentSchema,
|
|
5426
|
+
slug: McpPathSegmentSchema
|
|
5373
5427
|
});
|
|
5374
|
-
var
|
|
5375
|
-
|
|
5376
|
-
fileName: z25.string(),
|
|
5377
|
-
sizeBytes: z25.number()
|
|
5428
|
+
var ListMcpServersInputSchema = z25.object({
|
|
5429
|
+
orgId: z25.string()
|
|
5378
5430
|
});
|
|
5379
|
-
var
|
|
5431
|
+
var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
|
|
5432
|
+
var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
|
|
5433
|
+
var McpDeploymentSummarySchema = z25.object({
|
|
5434
|
+
id: z25.string(),
|
|
5435
|
+
status: McpDeploymentStatusSchema,
|
|
5436
|
+
/** True when this deployment is the one the server currently serves. */
|
|
5437
|
+
isActive: z25.boolean(),
|
|
5438
|
+
generatorVersion: z25.string(),
|
|
5439
|
+
createdAt: z25.string(),
|
|
5440
|
+
createdBy: z25.string().nullish(),
|
|
5441
|
+
error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
|
|
5442
|
+
});
|
|
5443
|
+
var McpServerSchema = z25.object({
|
|
5444
|
+
id: z25.string(),
|
|
5380
5445
|
orgId: z25.string(),
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5446
|
+
slug: z25.string(),
|
|
5447
|
+
/** The server is serving iff this is set; it names the serving deployment. */
|
|
5448
|
+
activeDeploymentId: z25.string().nullish(),
|
|
5449
|
+
/** Most recent publication attempt — how the last deploy went. */
|
|
5450
|
+
latestDeployment: McpDeploymentSummarySchema.nullish(),
|
|
5451
|
+
url: z25.string().url(),
|
|
5452
|
+
createdAt: z25.string(),
|
|
5453
|
+
updatedAt: z25.string()
|
|
5454
|
+
});
|
|
5455
|
+
var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
|
|
5456
|
+
var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
|
|
5457
|
+
var mcpHostingContract = {
|
|
5458
|
+
deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
|
|
5459
|
+
getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
|
|
5460
|
+
listServers: oc15.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
|
|
5461
|
+
listDeployments: oc15.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
|
|
5462
|
+
deleteServer: oc15.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
|
|
5463
|
+
};
|
|
5464
|
+
|
|
5465
|
+
// src/orpc-client/mcp-hosting/client.ts
|
|
5466
|
+
function createMcpHostingClient(options) {
|
|
5467
|
+
const link = new OpenAPILink17(mcpHostingContract, {
|
|
5468
|
+
url: `${options.baseUrl}/mcp-hosting`,
|
|
5469
|
+
headers: () => ({
|
|
5470
|
+
Authorization: `Bearer ${options.token}`,
|
|
5471
|
+
...options.headers
|
|
5472
|
+
}),
|
|
5473
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5474
|
+
});
|
|
5475
|
+
return createORPCClient17(link);
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
// src/orpc-client/pdf-export/client.ts
|
|
5479
|
+
import { createORPCClient as createORPCClient18 } from "@orpc/client";
|
|
5480
|
+
import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
|
|
5481
|
+
|
|
5482
|
+
// src/orpc-client/pdf-export/contract.ts
|
|
5483
|
+
import { oc as oc16 } from "@orpc/contract";
|
|
5484
|
+
import * as z26 from "zod";
|
|
5485
|
+
var PdfExportScopeSchema = z26.object({
|
|
5486
|
+
pageSlugs: z26.array(z26.string())
|
|
5487
|
+
});
|
|
5488
|
+
var PdfExportOptionsV1Schema = z26.object({
|
|
5489
|
+
coverTitle: z26.string().nullish(),
|
|
5490
|
+
coverSubtitle: z26.string().nullish(),
|
|
5491
|
+
hideCoverFooter: z26.boolean().nullish(),
|
|
5492
|
+
headerLeftTemplate: z26.string().nullish(),
|
|
5493
|
+
headerRightTemplate: z26.string().nullish(),
|
|
5494
|
+
footerLeftTemplate: z26.string().nullish(),
|
|
5495
|
+
footerRightTemplate: z26.string().nullish(),
|
|
5496
|
+
scope: PdfExportScopeSchema.nullish(),
|
|
5497
|
+
hideCover: z26.boolean().nullish(),
|
|
5498
|
+
hideToc: z26.boolean().nullish()
|
|
5499
|
+
});
|
|
5500
|
+
var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
|
|
5501
|
+
z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
5502
|
+
]);
|
|
5503
|
+
var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
5504
|
+
var PdfExportTaskSchema = z26.object({
|
|
5505
|
+
id: z26.string(),
|
|
5506
|
+
orgId: z26.string(),
|
|
5507
|
+
docsUrl: z26.string(),
|
|
5508
|
+
productId: z26.string().nullish(),
|
|
5509
|
+
versionId: z26.string().nullish(),
|
|
5510
|
+
requesterName: z26.string().nullish(),
|
|
5511
|
+
notifyEmails: z26.array(z26.string()).nullish(),
|
|
5512
|
+
status: PdfExportTaskStatusSchema,
|
|
5513
|
+
options: PdfExportOptionsSchema.nullish(),
|
|
5514
|
+
createdAt: z26.string(),
|
|
5515
|
+
startedAt: z26.string().nullish(),
|
|
5516
|
+
completedAt: z26.string().nullish(),
|
|
5517
|
+
fileName: z26.string().nullish(),
|
|
5518
|
+
sizeBytes: z26.number().nullish(),
|
|
5519
|
+
errorMessage: z26.string().nullish()
|
|
5520
|
+
});
|
|
5521
|
+
var ListPdfExportTasksResponseSchema = z26.object({
|
|
5522
|
+
tasks: z26.array(PdfExportTaskSchema)
|
|
5523
|
+
});
|
|
5524
|
+
var PdfExportDownloadResponseSchema = z26.object({
|
|
5525
|
+
downloadUrl: z26.string(),
|
|
5526
|
+
fileName: z26.string(),
|
|
5527
|
+
sizeBytes: z26.number()
|
|
5528
|
+
});
|
|
5529
|
+
var CreatePdfExportTaskInputSchema = z26.object({
|
|
5530
|
+
orgId: z26.string(),
|
|
5531
|
+
docsUrl: z26.string(),
|
|
5532
|
+
productId: z26.string().nullish(),
|
|
5533
|
+
versionId: z26.string().nullish(),
|
|
5534
|
+
requesterName: z26.string().nullish(),
|
|
5385
5535
|
options: PdfExportOptionsSchema.nullish()
|
|
5386
5536
|
});
|
|
5387
|
-
var ListPdfExportTasksInputSchema =
|
|
5388
|
-
orgId:
|
|
5389
|
-
docsUrl:
|
|
5390
|
-
limit:
|
|
5537
|
+
var ListPdfExportTasksInputSchema = z26.object({
|
|
5538
|
+
orgId: z26.string(),
|
|
5539
|
+
docsUrl: z26.string(),
|
|
5540
|
+
limit: z26.coerce.number().nullish()
|
|
5391
5541
|
});
|
|
5392
|
-
var GetPdfExportTaskInputSchema =
|
|
5393
|
-
taskId:
|
|
5542
|
+
var GetPdfExportTaskInputSchema = z26.object({
|
|
5543
|
+
taskId: z26.string()
|
|
5394
5544
|
});
|
|
5395
|
-
var UpdatePdfExportTaskInputSchema =
|
|
5396
|
-
taskId:
|
|
5545
|
+
var UpdatePdfExportTaskInputSchema = z26.object({
|
|
5546
|
+
taskId: z26.string(),
|
|
5397
5547
|
status: PdfExportTaskStatusSchema,
|
|
5398
|
-
startedAt:
|
|
5399
|
-
completedAt:
|
|
5400
|
-
s3Key:
|
|
5401
|
-
fileName:
|
|
5402
|
-
sizeBytes:
|
|
5403
|
-
errorMessage:
|
|
5548
|
+
startedAt: z26.string().nullish(),
|
|
5549
|
+
completedAt: z26.string().nullish(),
|
|
5550
|
+
s3Key: z26.string().nullish(),
|
|
5551
|
+
fileName: z26.string().nullish(),
|
|
5552
|
+
sizeBytes: z26.number().nullish(),
|
|
5553
|
+
errorMessage: z26.string().nullish()
|
|
5404
5554
|
});
|
|
5405
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
5406
|
-
taskId:
|
|
5555
|
+
var GetPdfExportDownloadUrlInputSchema = z26.object({
|
|
5556
|
+
taskId: z26.string()
|
|
5407
5557
|
});
|
|
5408
|
-
var CleanupPdfExportsResponseSchema =
|
|
5409
|
-
expiredTasksDeleted:
|
|
5410
|
-
s3ObjectsDeleted:
|
|
5411
|
-
timedOutTasksFailed:
|
|
5558
|
+
var CleanupPdfExportsResponseSchema = z26.object({
|
|
5559
|
+
expiredTasksDeleted: z26.number(),
|
|
5560
|
+
s3ObjectsDeleted: z26.number(),
|
|
5561
|
+
timedOutTasksFailed: z26.number()
|
|
5412
5562
|
});
|
|
5413
5563
|
var pdfExportContract = {
|
|
5414
|
-
createTask:
|
|
5415
|
-
listTasks:
|
|
5416
|
-
getTask:
|
|
5417
|
-
updateTask:
|
|
5418
|
-
getDownloadUrl:
|
|
5419
|
-
cleanup:
|
|
5564
|
+
createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5565
|
+
listTasks: oc16.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
5566
|
+
getTask: oc16.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5567
|
+
updateTask: oc16.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5568
|
+
getDownloadUrl: oc16.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
5569
|
+
cleanup: oc16.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
5420
5570
|
};
|
|
5421
5571
|
|
|
5422
5572
|
// src/orpc-client/pdf-export/client.ts
|
|
5423
5573
|
function createPdfExportClient(options) {
|
|
5424
|
-
const link = new
|
|
5574
|
+
const link = new OpenAPILink18(pdfExportContract, {
|
|
5425
5575
|
url: `${options.baseUrl}/pdf-export`,
|
|
5426
5576
|
headers: () => ({
|
|
5427
5577
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5429,17 +5579,17 @@ function createPdfExportClient(options) {
|
|
|
5429
5579
|
}),
|
|
5430
5580
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5431
5581
|
});
|
|
5432
|
-
return
|
|
5582
|
+
return createORPCClient18(link);
|
|
5433
5583
|
}
|
|
5434
5584
|
|
|
5435
5585
|
// src/orpc-client/sdks/client.ts
|
|
5436
|
-
import { createORPCClient as
|
|
5437
|
-
import { OpenAPILink as
|
|
5586
|
+
import { createORPCClient as createORPCClient19 } from "@orpc/client";
|
|
5587
|
+
import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
|
|
5438
5588
|
|
|
5439
5589
|
// src/orpc-client/sdks/contract.ts
|
|
5440
|
-
import { oc as
|
|
5441
|
-
import * as
|
|
5442
|
-
var LanguageEnumSchema =
|
|
5590
|
+
import { oc as oc17 } from "@orpc/contract";
|
|
5591
|
+
import * as z27 from "zod";
|
|
5592
|
+
var LanguageEnumSchema = z27.enum([
|
|
5443
5593
|
"Go",
|
|
5444
5594
|
"TypeScript",
|
|
5445
5595
|
"Java",
|
|
@@ -5450,23 +5600,23 @@ var LanguageEnumSchema = z26.enum([
|
|
|
5450
5600
|
"Swift",
|
|
5451
5601
|
"Rust"
|
|
5452
5602
|
]);
|
|
5453
|
-
var VersionBumpEnumSchema =
|
|
5454
|
-
var ComputeSemanticVersionInputSchema =
|
|
5455
|
-
package:
|
|
5603
|
+
var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
5604
|
+
var ComputeSemanticVersionInputSchema = z27.object({
|
|
5605
|
+
package: z27.string(),
|
|
5456
5606
|
language: LanguageEnumSchema,
|
|
5457
|
-
githubRepository:
|
|
5607
|
+
githubRepository: z27.string().nullish()
|
|
5458
5608
|
});
|
|
5459
|
-
var ComputeSemanticVersionOutputSchema =
|
|
5460
|
-
version:
|
|
5609
|
+
var ComputeSemanticVersionOutputSchema = z27.object({
|
|
5610
|
+
version: z27.string(),
|
|
5461
5611
|
bump: VersionBumpEnumSchema
|
|
5462
5612
|
});
|
|
5463
5613
|
var sdksContract = {
|
|
5464
|
-
computeSemanticVersion:
|
|
5614
|
+
computeSemanticVersion: oc17.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
5465
5615
|
};
|
|
5466
5616
|
|
|
5467
5617
|
// src/orpc-client/sdks/client.ts
|
|
5468
5618
|
function createSdksClient(options) {
|
|
5469
|
-
const link = new
|
|
5619
|
+
const link = new OpenAPILink19(sdksContract, {
|
|
5470
5620
|
url: `${options.baseUrl}/sdks`,
|
|
5471
5621
|
headers: () => ({
|
|
5472
5622
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5474,50 +5624,50 @@ function createSdksClient(options) {
|
|
|
5474
5624
|
}),
|
|
5475
5625
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5476
5626
|
});
|
|
5477
|
-
return
|
|
5627
|
+
return createORPCClient19(link);
|
|
5478
5628
|
}
|
|
5479
5629
|
|
|
5480
5630
|
// src/orpc-client/slugs/client.ts
|
|
5481
|
-
import { createORPCClient as
|
|
5482
|
-
import { OpenAPILink as
|
|
5631
|
+
import { createORPCClient as createORPCClient20 } from "@orpc/client";
|
|
5632
|
+
import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
|
|
5483
5633
|
|
|
5484
5634
|
// src/orpc-client/slugs/contract.ts
|
|
5485
|
-
import { oc as
|
|
5486
|
-
import * as
|
|
5487
|
-
var SlugsInputSchema =
|
|
5488
|
-
domain:
|
|
5489
|
-
basepath:
|
|
5490
|
-
});
|
|
5491
|
-
var SlugEntrySchema =
|
|
5492
|
-
orgId:
|
|
5493
|
-
domain:
|
|
5494
|
-
basepath:
|
|
5495
|
-
slug:
|
|
5496
|
-
lastUpdated:
|
|
5497
|
-
});
|
|
5498
|
-
var MarkdownEntrySchema =
|
|
5499
|
-
orgId:
|
|
5500
|
-
domain:
|
|
5501
|
-
basepath:
|
|
5502
|
-
pageId:
|
|
5503
|
-
slug:
|
|
5504
|
-
hash:
|
|
5505
|
-
lastUpdated:
|
|
5506
|
-
});
|
|
5507
|
-
var GetSlugEntriesResponseSchema =
|
|
5508
|
-
entries:
|
|
5509
|
-
});
|
|
5510
|
-
var GetMarkdownEntriesResponseSchema =
|
|
5511
|
-
entries:
|
|
5635
|
+
import { oc as oc18 } from "@orpc/contract";
|
|
5636
|
+
import * as z28 from "zod";
|
|
5637
|
+
var SlugsInputSchema = z28.object({
|
|
5638
|
+
domain: z28.string(),
|
|
5639
|
+
basepath: z28.string().optional().default("")
|
|
5640
|
+
});
|
|
5641
|
+
var SlugEntrySchema = z28.object({
|
|
5642
|
+
orgId: z28.string(),
|
|
5643
|
+
domain: z28.string(),
|
|
5644
|
+
basepath: z28.string(),
|
|
5645
|
+
slug: z28.string(),
|
|
5646
|
+
lastUpdated: z28.string()
|
|
5647
|
+
});
|
|
5648
|
+
var MarkdownEntrySchema = z28.object({
|
|
5649
|
+
orgId: z28.string(),
|
|
5650
|
+
domain: z28.string(),
|
|
5651
|
+
basepath: z28.string(),
|
|
5652
|
+
pageId: z28.string(),
|
|
5653
|
+
slug: z28.string(),
|
|
5654
|
+
hash: z28.string(),
|
|
5655
|
+
lastUpdated: z28.string()
|
|
5656
|
+
});
|
|
5657
|
+
var GetSlugEntriesResponseSchema = z28.object({
|
|
5658
|
+
entries: z28.array(SlugEntrySchema)
|
|
5659
|
+
});
|
|
5660
|
+
var GetMarkdownEntriesResponseSchema = z28.object({
|
|
5661
|
+
entries: z28.array(MarkdownEntrySchema)
|
|
5512
5662
|
});
|
|
5513
5663
|
var slugsContract = {
|
|
5514
|
-
getSlugEntries:
|
|
5515
|
-
getMarkdownEntries:
|
|
5664
|
+
getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
5665
|
+
getMarkdownEntries: oc18.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
5516
5666
|
};
|
|
5517
5667
|
|
|
5518
5668
|
// src/orpc-client/slugs/client.ts
|
|
5519
5669
|
function createSlugsClient(options) {
|
|
5520
|
-
const link = new
|
|
5670
|
+
const link = new OpenAPILink20(slugsContract, {
|
|
5521
5671
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
5522
5672
|
headers: () => ({
|
|
5523
5673
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5525,118 +5675,118 @@ function createSlugsClient(options) {
|
|
|
5525
5675
|
}),
|
|
5526
5676
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5527
5677
|
});
|
|
5528
|
-
return
|
|
5678
|
+
return createORPCClient20(link);
|
|
5529
5679
|
}
|
|
5530
5680
|
|
|
5531
5681
|
// src/orpc-client/snippets/client.ts
|
|
5532
|
-
import { createORPCClient as
|
|
5533
|
-
import { OpenAPILink as
|
|
5682
|
+
import { createORPCClient as createORPCClient21 } from "@orpc/client";
|
|
5683
|
+
import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
|
|
5534
5684
|
|
|
5535
5685
|
// src/orpc-client/snippets/contract.ts
|
|
5536
|
-
import { oc as
|
|
5537
|
-
import * as
|
|
5538
|
-
var TypeScriptSdkSchema =
|
|
5539
|
-
var PythonSdkSchema =
|
|
5540
|
-
var GoSdkSchema =
|
|
5541
|
-
var RubySdkSchema =
|
|
5542
|
-
var JavaSdkSchema =
|
|
5543
|
-
var CsharpSdkSchema =
|
|
5544
|
-
var BaseSnippetCreateSchema =
|
|
5686
|
+
import { oc as oc19 } from "@orpc/contract";
|
|
5687
|
+
import * as z29 from "zod";
|
|
5688
|
+
var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5689
|
+
var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5690
|
+
var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
|
|
5691
|
+
var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
|
|
5692
|
+
var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
|
|
5693
|
+
var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5694
|
+
var BaseSnippetCreateSchema = z29.object({
|
|
5545
5695
|
endpoint: EndpointIdentifierSchema,
|
|
5546
|
-
exampleIdentifier:
|
|
5696
|
+
exampleIdentifier: z29.string().nullish()
|
|
5547
5697
|
});
|
|
5548
|
-
var SdkSnippetsCreateSchema =
|
|
5549
|
-
|
|
5550
|
-
type:
|
|
5698
|
+
var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
|
|
5699
|
+
z29.object({
|
|
5700
|
+
type: z29.literal("typescript"),
|
|
5551
5701
|
sdk: TypeScriptSdkSchema,
|
|
5552
|
-
snippets:
|
|
5702
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5553
5703
|
}),
|
|
5554
|
-
|
|
5555
|
-
type:
|
|
5704
|
+
z29.object({
|
|
5705
|
+
type: z29.literal("python"),
|
|
5556
5706
|
sdk: PythonSdkSchema,
|
|
5557
|
-
snippets:
|
|
5707
|
+
snippets: z29.array(
|
|
5558
5708
|
BaseSnippetCreateSchema.extend({
|
|
5559
|
-
snippet:
|
|
5709
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
5560
5710
|
})
|
|
5561
5711
|
)
|
|
5562
5712
|
}),
|
|
5563
|
-
|
|
5564
|
-
type:
|
|
5713
|
+
z29.object({
|
|
5714
|
+
type: z29.literal("go"),
|
|
5565
5715
|
sdk: GoSdkSchema,
|
|
5566
|
-
snippets:
|
|
5716
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5567
5717
|
}),
|
|
5568
|
-
|
|
5569
|
-
type:
|
|
5718
|
+
z29.object({
|
|
5719
|
+
type: z29.literal("java"),
|
|
5570
5720
|
sdk: JavaSdkSchema,
|
|
5571
|
-
snippets:
|
|
5721
|
+
snippets: z29.array(
|
|
5572
5722
|
BaseSnippetCreateSchema.extend({
|
|
5573
|
-
snippet:
|
|
5723
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
5574
5724
|
})
|
|
5575
5725
|
)
|
|
5576
5726
|
}),
|
|
5577
|
-
|
|
5578
|
-
type:
|
|
5727
|
+
z29.object({
|
|
5728
|
+
type: z29.literal("ruby"),
|
|
5579
5729
|
sdk: RubySdkSchema,
|
|
5580
|
-
snippets:
|
|
5730
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5581
5731
|
}),
|
|
5582
|
-
|
|
5583
|
-
type:
|
|
5732
|
+
z29.object({
|
|
5733
|
+
type: z29.literal("csharp"),
|
|
5584
5734
|
sdk: CsharpSdkSchema,
|
|
5585
|
-
snippets:
|
|
5735
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5586
5736
|
})
|
|
5587
5737
|
]);
|
|
5588
5738
|
var snippetsFactoryContract = {
|
|
5589
|
-
createSnippetsForSdk:
|
|
5590
|
-
|
|
5591
|
-
orgId:
|
|
5592
|
-
apiId:
|
|
5739
|
+
createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
|
|
5740
|
+
z29.object({
|
|
5741
|
+
orgId: z29.string(),
|
|
5742
|
+
apiId: z29.string(),
|
|
5593
5743
|
snippets: SdkSnippetsCreateSchema
|
|
5594
5744
|
})
|
|
5595
5745
|
)
|
|
5596
5746
|
};
|
|
5597
|
-
var ParameterPayloadSchema =
|
|
5598
|
-
name:
|
|
5599
|
-
value:
|
|
5747
|
+
var ParameterPayloadSchema = z29.object({
|
|
5748
|
+
name: z29.string(),
|
|
5749
|
+
value: z29.unknown()
|
|
5600
5750
|
});
|
|
5601
|
-
var AuthPayloadSchema =
|
|
5602
|
-
|
|
5603
|
-
|
|
5751
|
+
var AuthPayloadSchema = z29.discriminatedUnion("type", [
|
|
5752
|
+
z29.object({ type: z29.literal("bearer"), token: z29.string() }),
|
|
5753
|
+
z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
|
|
5604
5754
|
]);
|
|
5605
|
-
var CustomSnippetPayloadSchema =
|
|
5606
|
-
headers:
|
|
5607
|
-
pathParameters:
|
|
5608
|
-
queryParameters:
|
|
5609
|
-
requestBody:
|
|
5755
|
+
var CustomSnippetPayloadSchema = z29.object({
|
|
5756
|
+
headers: z29.array(ParameterPayloadSchema).nullish(),
|
|
5757
|
+
pathParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
5758
|
+
queryParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
5759
|
+
requestBody: z29.unknown().nullish(),
|
|
5610
5760
|
auth: AuthPayloadSchema.nullish()
|
|
5611
5761
|
});
|
|
5612
5762
|
var snippetsContract = {
|
|
5613
|
-
get:
|
|
5614
|
-
|
|
5615
|
-
orgId:
|
|
5616
|
-
apiId:
|
|
5617
|
-
sdks:
|
|
5763
|
+
get: oc19.route({ method: "POST", path: "/" }).input(
|
|
5764
|
+
z29.object({
|
|
5765
|
+
orgId: z29.string().nullish(),
|
|
5766
|
+
apiId: z29.string().nullish(),
|
|
5767
|
+
sdks: z29.array(SdkRequestSchema).nullish(),
|
|
5618
5768
|
endpoint: EndpointIdentifierSchema,
|
|
5619
|
-
exampleIdentifier:
|
|
5769
|
+
exampleIdentifier: z29.string().nullish(),
|
|
5620
5770
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
5621
5771
|
})
|
|
5622
|
-
).output(
|
|
5623
|
-
load:
|
|
5624
|
-
|
|
5625
|
-
orgId:
|
|
5626
|
-
apiId:
|
|
5627
|
-
sdks:
|
|
5772
|
+
).output(z29.array(z29.unknown())),
|
|
5773
|
+
load: oc19.route({ method: "POST", path: "/load" }).input(
|
|
5774
|
+
z29.object({
|
|
5775
|
+
orgId: z29.string().nullish(),
|
|
5776
|
+
apiId: z29.string().nullish(),
|
|
5777
|
+
sdks: z29.array(SdkRequestSchema).nullish()
|
|
5628
5778
|
})
|
|
5629
5779
|
).output(
|
|
5630
|
-
|
|
5631
|
-
next:
|
|
5632
|
-
snippets:
|
|
5780
|
+
z29.object({
|
|
5781
|
+
next: z29.number().nullish(),
|
|
5782
|
+
snippets: z29.record(z29.string(), z29.unknown())
|
|
5633
5783
|
})
|
|
5634
5784
|
)
|
|
5635
5785
|
};
|
|
5636
5786
|
|
|
5637
5787
|
// src/orpc-client/snippets/client.ts
|
|
5638
5788
|
function createSnippetsFactoryClient(options) {
|
|
5639
|
-
const link = new
|
|
5789
|
+
const link = new OpenAPILink21(snippetsFactoryContract, {
|
|
5640
5790
|
url: `${options.baseUrl}/snippets`,
|
|
5641
5791
|
headers: () => ({
|
|
5642
5792
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5644,10 +5794,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
5644
5794
|
}),
|
|
5645
5795
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5646
5796
|
});
|
|
5647
|
-
return
|
|
5797
|
+
return createORPCClient21(link);
|
|
5648
5798
|
}
|
|
5649
5799
|
function createSnippetsClient(options) {
|
|
5650
|
-
const link = new
|
|
5800
|
+
const link = new OpenAPILink21(snippetsContract, {
|
|
5651
5801
|
url: `${options.baseUrl}/snippets`,
|
|
5652
5802
|
headers: () => ({
|
|
5653
5803
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5655,63 +5805,63 @@ function createSnippetsClient(options) {
|
|
|
5655
5805
|
}),
|
|
5656
5806
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5657
5807
|
});
|
|
5658
|
-
return
|
|
5808
|
+
return createORPCClient21(link);
|
|
5659
5809
|
}
|
|
5660
5810
|
|
|
5661
5811
|
// src/orpc-client/templates/client.ts
|
|
5662
|
-
import { createORPCClient as
|
|
5663
|
-
import { OpenAPILink as
|
|
5812
|
+
import { createORPCClient as createORPCClient22 } from "@orpc/client";
|
|
5813
|
+
import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
|
|
5664
5814
|
|
|
5665
5815
|
// src/orpc-client/templates/contract.ts
|
|
5666
|
-
import { oc as
|
|
5667
|
-
import * as
|
|
5668
|
-
var SnippetRegistryEntrySchema =
|
|
5816
|
+
import { oc as oc20 } from "@orpc/contract";
|
|
5817
|
+
import * as z30 from "zod";
|
|
5818
|
+
var SnippetRegistryEntrySchema = z30.object({
|
|
5669
5819
|
sdk: SdkSchema,
|
|
5670
|
-
endpointId:
|
|
5671
|
-
path:
|
|
5820
|
+
endpointId: z30.object({
|
|
5821
|
+
path: z30.string(),
|
|
5672
5822
|
method: HttpMethodSchema,
|
|
5673
|
-
identifierOverride:
|
|
5823
|
+
identifierOverride: z30.string().nullish()
|
|
5674
5824
|
}),
|
|
5675
|
-
snippetTemplate:
|
|
5676
|
-
type:
|
|
5677
|
-
functionInvocation:
|
|
5678
|
-
clientInstantiation:
|
|
5825
|
+
snippetTemplate: z30.object({
|
|
5826
|
+
type: z30.literal("v1"),
|
|
5827
|
+
functionInvocation: z30.unknown(),
|
|
5828
|
+
clientInstantiation: z30.string()
|
|
5679
5829
|
}),
|
|
5680
|
-
additionalTemplates:
|
|
5830
|
+
additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
|
|
5681
5831
|
});
|
|
5682
|
-
var RegisterInputSchema =
|
|
5683
|
-
orgId:
|
|
5684
|
-
apiId:
|
|
5685
|
-
apiDefinitionId:
|
|
5832
|
+
var RegisterInputSchema = z30.object({
|
|
5833
|
+
orgId: z30.string(),
|
|
5834
|
+
apiId: z30.string(),
|
|
5835
|
+
apiDefinitionId: z30.string(),
|
|
5686
5836
|
snippet: SnippetRegistryEntrySchema
|
|
5687
5837
|
});
|
|
5688
|
-
var RegisterBatchInputSchema =
|
|
5689
|
-
orgId:
|
|
5690
|
-
apiId:
|
|
5691
|
-
apiDefinitionId:
|
|
5692
|
-
snippets:
|
|
5838
|
+
var RegisterBatchInputSchema = z30.object({
|
|
5839
|
+
orgId: z30.string(),
|
|
5840
|
+
apiId: z30.string(),
|
|
5841
|
+
apiDefinitionId: z30.string(),
|
|
5842
|
+
snippets: z30.array(SnippetRegistryEntrySchema)
|
|
5693
5843
|
});
|
|
5694
|
-
var GetInputSchema =
|
|
5695
|
-
orgId:
|
|
5696
|
-
apiId:
|
|
5844
|
+
var GetInputSchema = z30.object({
|
|
5845
|
+
orgId: z30.string(),
|
|
5846
|
+
apiId: z30.string(),
|
|
5697
5847
|
sdk: SdkSchema,
|
|
5698
|
-
endpointId:
|
|
5699
|
-
path:
|
|
5848
|
+
endpointId: z30.object({
|
|
5849
|
+
path: z30.string(),
|
|
5700
5850
|
method: HttpMethodSchema,
|
|
5701
|
-
identifierOverride:
|
|
5851
|
+
identifierOverride: z30.string().nullish()
|
|
5702
5852
|
})
|
|
5703
5853
|
});
|
|
5704
|
-
var EndpointSnippetTemplateSchema =
|
|
5854
|
+
var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
|
|
5705
5855
|
var templatesContract = {
|
|
5706
|
-
register:
|
|
5707
|
-
registerBatch:
|
|
5708
|
-
get:
|
|
5856
|
+
register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
5857
|
+
registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
5858
|
+
get: oc20.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
5709
5859
|
};
|
|
5710
5860
|
|
|
5711
5861
|
// src/orpc-client/templates/client.ts
|
|
5712
5862
|
function createTemplatesClient(options) {
|
|
5713
5863
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
5714
|
-
const link = new
|
|
5864
|
+
const link = new OpenAPILink22(templatesContract, {
|
|
5715
5865
|
url: `${baseUrl}/snippet-template`,
|
|
5716
5866
|
headers: () => ({
|
|
5717
5867
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5719,36 +5869,36 @@ function createTemplatesClient(options) {
|
|
|
5719
5869
|
}),
|
|
5720
5870
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5721
5871
|
});
|
|
5722
|
-
return
|
|
5872
|
+
return createORPCClient22(link);
|
|
5723
5873
|
}
|
|
5724
5874
|
|
|
5725
5875
|
// src/orpc-client/tokens/client.ts
|
|
5726
|
-
import { createORPCClient as
|
|
5727
|
-
import { OpenAPILink as
|
|
5876
|
+
import { createORPCClient as createORPCClient23 } from "@orpc/client";
|
|
5877
|
+
import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
|
|
5728
5878
|
|
|
5729
5879
|
// src/orpc-client/tokens/contract.ts
|
|
5730
|
-
import { oc as
|
|
5731
|
-
import * as
|
|
5732
|
-
var GenerateTokenInputSchema =
|
|
5733
|
-
orgId:
|
|
5734
|
-
scope:
|
|
5880
|
+
import { oc as oc21 } from "@orpc/contract";
|
|
5881
|
+
import * as z31 from "zod";
|
|
5882
|
+
var GenerateTokenInputSchema = z31.object({
|
|
5883
|
+
orgId: z31.string(),
|
|
5884
|
+
scope: z31.string()
|
|
5735
5885
|
});
|
|
5736
|
-
var RevokeTokenInputSchema =
|
|
5737
|
-
orgId:
|
|
5738
|
-
tokenId:
|
|
5886
|
+
var RevokeTokenInputSchema = z31.object({
|
|
5887
|
+
orgId: z31.string(),
|
|
5888
|
+
tokenId: z31.string()
|
|
5739
5889
|
});
|
|
5740
|
-
var GenerateTokenOutputSchema =
|
|
5741
|
-
token:
|
|
5742
|
-
id:
|
|
5890
|
+
var GenerateTokenOutputSchema = z31.object({
|
|
5891
|
+
token: z31.string(),
|
|
5892
|
+
id: z31.string()
|
|
5743
5893
|
});
|
|
5744
5894
|
var tokensContract = {
|
|
5745
|
-
generate:
|
|
5746
|
-
revoke:
|
|
5895
|
+
generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
5896
|
+
revoke: oc21.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
5747
5897
|
};
|
|
5748
5898
|
|
|
5749
5899
|
// src/orpc-client/tokens/client.ts
|
|
5750
5900
|
function createTokensClient(options) {
|
|
5751
|
-
const link = new
|
|
5901
|
+
const link = new OpenAPILink23(tokensContract, {
|
|
5752
5902
|
url: `${options.baseUrl}/tokens`,
|
|
5753
5903
|
headers: () => ({
|
|
5754
5904
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5756,7 +5906,7 @@ function createTokensClient(options) {
|
|
|
5756
5906
|
}),
|
|
5757
5907
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5758
5908
|
});
|
|
5759
|
-
return
|
|
5909
|
+
return createORPCClient23(link);
|
|
5760
5910
|
}
|
|
5761
5911
|
|
|
5762
5912
|
// src/orpc-client/client.ts
|
|
@@ -5780,6 +5930,7 @@ function createFdrORPCClient(options) {
|
|
|
5780
5930
|
versions: createGeneratorVersionsClient(normalizedOptions)
|
|
5781
5931
|
},
|
|
5782
5932
|
git: createGitClient(normalizedOptions),
|
|
5933
|
+
mcpHosting: createMcpHostingClient(normalizedOptions),
|
|
5783
5934
|
slugs: createSlugsClient(normalizedOptions),
|
|
5784
5935
|
pdfExport: createPdfExportClient(normalizedOptions),
|
|
5785
5936
|
sdks: createSdksClient(normalizedOptions),
|