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