@fern-api/fdr-sdk 1.2.54-6737dc66b0 → 1.2.54-efc419b23b
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 +1495 -1455
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1495 -1455
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +300 -302
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +300 -302
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +1819 -1779
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +1816 -1776
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +300 -302
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +300 -302
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +1507 -1506
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1506 -1505
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs/client.d.ts +2 -0
- package/dist/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/orpc-client/docs/client.js +3 -1
- package/dist/orpc-client/docs/client.js.map +1 -1
- package/dist/orpc-client/docs/v2/write/contract.d.ts +6 -6
- package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/orpc-client/docs/client.d.ts +2 -0
- package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts +6 -6
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/orpc-client.js
CHANGED
|
@@ -383,7 +383,7 @@ __export(orpc_client_exports, {
|
|
|
383
383
|
OAuthClientCredentialsReferencedEndpointSchema: () => OAuthClientCredentialsReferencedEndpointSchema,
|
|
384
384
|
OAuthClientCredentialsSchema: () => OAuthClientCredentialsSchema,
|
|
385
385
|
OAuthSchema: () => OAuthSchema,
|
|
386
|
-
ORPCError: () =>
|
|
386
|
+
ORPCError: () => import_client46.ORPCError,
|
|
387
387
|
ObjectPropertyAccessSchema: () => ObjectPropertyAccessSchema,
|
|
388
388
|
ObjectPropertySchema: () => ObjectPropertySchema,
|
|
389
389
|
ObjectTypeSchema: () => ObjectTypeSchema,
|
|
@@ -644,7 +644,7 @@ __export(orpc_client_exports, {
|
|
|
644
644
|
tokensContract: () => tokensContract
|
|
645
645
|
});
|
|
646
646
|
module.exports = __toCommonJS(orpc_client_exports);
|
|
647
|
-
var
|
|
647
|
+
var import_client46 = require("@orpc/client");
|
|
648
648
|
|
|
649
649
|
// src/orpc-client/api/client.ts
|
|
650
650
|
var import_client = require("@orpc/client");
|
|
@@ -3594,440 +3594,225 @@ function createDocsV1ReadClient(options) {
|
|
|
3594
3594
|
return (0, import_client3.createORPCClient)(link);
|
|
3595
3595
|
}
|
|
3596
3596
|
|
|
3597
|
-
// src/orpc-client/docs/
|
|
3597
|
+
// src/orpc-client/docs/v1/write/client.ts
|
|
3598
3598
|
var import_client4 = require("@orpc/client");
|
|
3599
3599
|
var import_fetch4 = require("@orpc/openapi-client/fetch");
|
|
3600
3600
|
|
|
3601
|
-
// src/orpc-client/docs/
|
|
3601
|
+
// src/orpc-client/docs/v1/write/contract.ts
|
|
3602
3602
|
var import_contract8 = require("@orpc/contract");
|
|
3603
|
-
var z14 = __toESM(require("zod"), 1);
|
|
3604
|
-
var ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
3605
|
-
var GithubUrlSchema = z14.string().url().describe(
|
|
3606
|
-
"HTTPS URL of a GitHub or GitLab repository. Currently only github.com and gitlab.com are supported. Must match the pattern https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo>."
|
|
3607
|
-
).refine(
|
|
3608
|
-
(url) => {
|
|
3609
|
-
try {
|
|
3610
|
-
const parsed = new URL(url);
|
|
3611
|
-
if (parsed.protocol !== "https:") {
|
|
3612
|
-
return false;
|
|
3613
|
-
}
|
|
3614
|
-
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
3615
|
-
return false;
|
|
3616
|
-
}
|
|
3617
|
-
if (parsed.username || parsed.password) {
|
|
3618
|
-
return false;
|
|
3619
|
-
}
|
|
3620
|
-
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
3621
|
-
} catch {
|
|
3622
|
-
return false;
|
|
3623
|
-
}
|
|
3624
|
-
},
|
|
3625
|
-
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
3626
|
-
);
|
|
3627
|
-
var SafeBranchSchema = z14.string().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
3628
|
-
var SafePackagePathSchema = z14.string().refine((p) => !p.includes("..") && !p.startsWith("/"), {
|
|
3629
|
-
message: "packagePath must not contain path traversal sequences"
|
|
3630
|
-
}).nullish();
|
|
3631
|
-
var LibraryDocsBaseConfigSchema = z14.object({
|
|
3632
|
-
branch: SafeBranchSchema,
|
|
3633
|
-
packagePath: SafePackagePathSchema,
|
|
3634
|
-
title: z14.string().nullish(),
|
|
3635
|
-
slug: z14.string().nullish()
|
|
3636
|
-
});
|
|
3637
|
-
var PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
3638
|
-
var CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
3639
|
-
doxyfileContent: z14.string().nullish()
|
|
3640
|
-
});
|
|
3641
|
-
var StartLibraryDocsGenerationInputSchema = z14.discriminatedUnion("language", [
|
|
3642
|
-
z14.object({
|
|
3643
|
-
orgId: z14.string(),
|
|
3644
|
-
githubUrl: GithubUrlSchema,
|
|
3645
|
-
language: z14.literal("PYTHON"),
|
|
3646
|
-
config: PythonLibraryDocsConfigSchema.nullish()
|
|
3647
|
-
}),
|
|
3648
|
-
z14.object({
|
|
3649
|
-
orgId: z14.string(),
|
|
3650
|
-
githubUrl: GithubUrlSchema,
|
|
3651
|
-
language: z14.literal("CPP"),
|
|
3652
|
-
config: CppLibraryDocsConfigSchema.nullish()
|
|
3653
|
-
})
|
|
3654
|
-
]);
|
|
3655
|
-
var StartLibraryDocsGenerationResponseSchema = z14.object({
|
|
3656
|
-
jobId: z14.string()
|
|
3657
|
-
});
|
|
3658
|
-
var GetLibraryDocsStatusInputSchema = z14.object({
|
|
3659
|
-
jobId: z14.string()
|
|
3660
|
-
});
|
|
3661
|
-
var LibraryDocsResultSchema = z14.object({
|
|
3662
|
-
jobId: z14.string(),
|
|
3663
|
-
resultUrl: z14.string()
|
|
3664
|
-
});
|
|
3665
|
-
var LibraryDocsGenerationStatusSchema = z14.object({
|
|
3666
|
-
jobId: z14.string(),
|
|
3667
|
-
status: z14.string(),
|
|
3668
|
-
progress: z14.string(),
|
|
3669
|
-
error: z14.object({
|
|
3670
|
-
code: z14.string(),
|
|
3671
|
-
message: z14.string()
|
|
3672
|
-
}).optional(),
|
|
3673
|
-
createdAt: z14.string(),
|
|
3674
|
-
updatedAt: z14.string()
|
|
3675
|
-
});
|
|
3676
|
-
var libraryDocsContract = {
|
|
3677
|
-
startLibraryDocsGeneration: import_contract8.oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
3678
|
-
getLibraryDocsGenerationStatus: import_contract8.oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
3679
|
-
getLibraryDocsResult: import_contract8.oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
3680
|
-
};
|
|
3681
|
-
|
|
3682
|
-
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
3683
|
-
function createLibraryDocsClient(options) {
|
|
3684
|
-
const link = new import_fetch4.OpenAPILink(libraryDocsContract, {
|
|
3685
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
3686
|
-
headers: () => ({
|
|
3687
|
-
Authorization: `Bearer ${options.token}`,
|
|
3688
|
-
...options.headers
|
|
3689
|
-
}),
|
|
3690
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
3691
|
-
});
|
|
3692
|
-
return (0, import_client4.createORPCClient)(link);
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
// src/orpc-client/docs/v2/organization/client.ts
|
|
3696
|
-
var import_client5 = require("@orpc/client");
|
|
3697
|
-
var import_fetch5 = require("@orpc/openapi-client/fetch");
|
|
3698
|
-
|
|
3699
|
-
// src/orpc-client/docs/v2/organization/contract.ts
|
|
3700
|
-
var import_contract10 = require("@orpc/contract");
|
|
3701
|
-
var z15 = __toESM(require("zod"), 1);
|
|
3702
|
-
var GetOrganizationForUrlInputSchema = z15.object({
|
|
3703
|
-
url: z15.string()
|
|
3704
|
-
});
|
|
3705
|
-
var organizationContract = {
|
|
3706
|
-
getOrganizationForUrl: import_contract10.oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(z15.string())
|
|
3707
|
-
};
|
|
3708
|
-
|
|
3709
|
-
// src/orpc-client/docs/v2/organization/client.ts
|
|
3710
|
-
function createOrganizationClient(options) {
|
|
3711
|
-
const link = new import_fetch5.OpenAPILink(organizationContract, {
|
|
3712
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
3713
|
-
headers: () => ({
|
|
3714
|
-
Authorization: `Bearer ${options.token}`,
|
|
3715
|
-
...options.headers
|
|
3716
|
-
}),
|
|
3717
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
3718
|
-
});
|
|
3719
|
-
return (0, import_client5.createORPCClient)(link);
|
|
3720
|
-
}
|
|
3721
|
-
|
|
3722
|
-
// src/orpc-client/docs/v2/read/client.ts
|
|
3723
|
-
var import_client6 = require("@orpc/client");
|
|
3724
|
-
var import_fetch6 = require("@orpc/openapi-client/fetch");
|
|
3725
|
-
|
|
3726
|
-
// src/orpc-client/docs/v2/read/contract.ts
|
|
3727
|
-
var import_contract12 = require("@orpc/contract");
|
|
3728
3603
|
var z16 = __toESM(require("zod"), 1);
|
|
3729
|
-
var GetDocsUrlMetadataInputSchema = z16.object({
|
|
3730
|
-
url: z16.string()
|
|
3731
|
-
});
|
|
3732
|
-
var GetDocsUrlMetadataResponseSchema = z16.object({
|
|
3733
|
-
isPreviewUrl: z16.boolean(),
|
|
3734
|
-
org: z16.string(),
|
|
3735
|
-
url: z16.string(),
|
|
3736
|
-
gitUrl: z16.string().nullish(),
|
|
3737
|
-
enableAlgoliaOnPreview: z16.boolean().nullish()
|
|
3738
|
-
});
|
|
3739
|
-
var GetDocsForUrlInputSchema = z16.object({
|
|
3740
|
-
url: z16.string(),
|
|
3741
|
-
excludeApis: z16.boolean().nullish()
|
|
3742
|
-
});
|
|
3743
|
-
var GetPrivateDocsForUrlInputSchema = z16.object({
|
|
3744
|
-
url: z16.string()
|
|
3745
|
-
});
|
|
3746
|
-
var ListAllDocsUrlsInputSchema = z16.object({
|
|
3747
|
-
limit: z16.number().nullish(),
|
|
3748
|
-
page: z16.number().nullish(),
|
|
3749
|
-
custom: z16.boolean().nullish(),
|
|
3750
|
-
preview: z16.boolean().nullish()
|
|
3751
|
-
});
|
|
3752
|
-
var GetDocsConfigByIdInputSchema = z16.object({
|
|
3753
|
-
docsConfigId: z16.string()
|
|
3754
|
-
});
|
|
3755
|
-
var DocsDefinitionField = {
|
|
3756
|
-
BaseUrl: "BASE_URL",
|
|
3757
|
-
FilesV2: "FILES_V2",
|
|
3758
|
-
ApisV2: "APIS_V2",
|
|
3759
|
-
Apis: "APIS",
|
|
3760
|
-
Pages: "PAGES",
|
|
3761
|
-
JsFiles: "JS_FILES",
|
|
3762
|
-
Config: "CONFIG",
|
|
3763
|
-
Root: "ROOT"
|
|
3764
|
-
};
|
|
3765
|
-
var GetDocsConfigByIdResponseSchema = z16.object({
|
|
3766
|
-
docsConfig: DocsConfigSchema,
|
|
3767
|
-
apis: z16.record(z16.string(), z16.unknown())
|
|
3768
|
-
});
|
|
3769
|
-
var DocsDomainItemSchema = z16.object({
|
|
3770
|
-
domain: z16.string(),
|
|
3771
|
-
basePath: z16.string().optional(),
|
|
3772
|
-
organizationId: z16.string(),
|
|
3773
|
-
updatedAt: z16.string()
|
|
3774
|
-
});
|
|
3775
|
-
var ListAllDocsUrlsResponseSchema = z16.object({
|
|
3776
|
-
urls: z16.array(DocsDomainItemSchema)
|
|
3777
|
-
});
|
|
3778
|
-
var getDocsForUrl;
|
|
3779
|
-
((getDocsForUrl2) => {
|
|
3780
|
-
let Error2;
|
|
3781
|
-
((Error3) => {
|
|
3782
|
-
function _unknown(fetcherError) {
|
|
3783
|
-
return { error: void 0, content: fetcherError };
|
|
3784
|
-
}
|
|
3785
|
-
Error3._unknown = _unknown;
|
|
3786
|
-
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
3787
|
-
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
3788
|
-
var docsV2ReadContract = {
|
|
3789
|
-
getDocsUrlMetadata: import_contract12.oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
3790
|
-
getDocsForUrl: import_contract12.oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
3791
|
-
getPrivateDocsForUrl: import_contract12.oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
3792
|
-
listAllDocsUrls: import_contract12.oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
3793
|
-
getDocsConfigById: import_contract12.oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
3794
|
-
prepopulateFdrReadS3Bucket: import_contract12.oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z16.void()),
|
|
3795
|
-
ensureDocsInS3: import_contract12.oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z16.void()),
|
|
3796
|
-
getDocsFields: import_contract12.oc.route({ method: "POST", path: "/load-fields" }).output(z16.void())
|
|
3797
|
-
};
|
|
3798
|
-
|
|
3799
|
-
// src/orpc-client/docs/v2/read/client.ts
|
|
3800
|
-
function createDocsV2ReadClient(options) {
|
|
3801
|
-
const link = new import_fetch6.OpenAPILink(docsV2ReadContract, {
|
|
3802
|
-
url: `${options.baseUrl}/v2/registry/docs`,
|
|
3803
|
-
headers: () => ({
|
|
3804
|
-
Authorization: `Bearer ${options.token}`,
|
|
3805
|
-
...options.headers
|
|
3806
|
-
}),
|
|
3807
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
3808
|
-
});
|
|
3809
|
-
return (0, import_client6.createORPCClient)(link);
|
|
3810
|
-
}
|
|
3811
|
-
|
|
3812
|
-
// src/orpc-client/docs/v2/write/client.ts
|
|
3813
|
-
var import_client7 = require("@orpc/client");
|
|
3814
|
-
var import_fetch7 = require("@orpc/openapi-client/fetch");
|
|
3815
|
-
|
|
3816
|
-
// src/orpc-client/docs/v2/write/contract.ts
|
|
3817
|
-
var import_contract14 = require("@orpc/contract");
|
|
3818
|
-
var z19 = __toESM(require("zod"), 1);
|
|
3819
3604
|
|
|
3820
3605
|
// src/client/docs-types/write.ts
|
|
3821
|
-
var
|
|
3606
|
+
var z15 = __toESM(require("zod"), 1);
|
|
3822
3607
|
|
|
3823
3608
|
// src/client/docs-types/write-commons.ts
|
|
3824
|
-
var
|
|
3825
|
-
var OrgIdSchema2 =
|
|
3609
|
+
var z14 = __toESM(require("zod"), 1);
|
|
3610
|
+
var OrgIdSchema2 = z14.string();
|
|
3826
3611
|
|
|
3827
3612
|
// src/client/docs-types/write.ts
|
|
3828
|
-
var FilePathSchema =
|
|
3829
|
-
var DocsRegistrationIdSchema =
|
|
3830
|
-
var HeightSchema2 =
|
|
3831
|
-
var FileS3UploadUrlSchema =
|
|
3832
|
-
uploadUrl:
|
|
3613
|
+
var FilePathSchema = z15.string();
|
|
3614
|
+
var DocsRegistrationIdSchema = z15.string();
|
|
3615
|
+
var HeightSchema2 = z15.number();
|
|
3616
|
+
var FileS3UploadUrlSchema = z15.object({
|
|
3617
|
+
uploadUrl: z15.string(),
|
|
3833
3618
|
fileId: FileIdSchema2
|
|
3834
3619
|
});
|
|
3835
|
-
var StartDocsRegisterResponseSchema =
|
|
3620
|
+
var StartDocsRegisterResponseSchema = z15.object({
|
|
3836
3621
|
docsRegistrationId: DocsRegistrationIdSchema,
|
|
3837
|
-
uploadUrls:
|
|
3838
|
-
skippedFiles:
|
|
3622
|
+
uploadUrls: z15.record(FilePathSchema, FileS3UploadUrlSchema),
|
|
3623
|
+
skippedFiles: z15.array(FilePathSchema)
|
|
3839
3624
|
});
|
|
3840
|
-
var PageContentSchema2 =
|
|
3841
|
-
markdown:
|
|
3625
|
+
var PageContentSchema2 = z15.object({
|
|
3626
|
+
markdown: z15.string(),
|
|
3842
3627
|
editThisPageUrl: UrlSchema2.optional(),
|
|
3843
3628
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
3844
|
-
rawMarkdown:
|
|
3629
|
+
rawMarkdown: z15.string().optional()
|
|
3845
3630
|
});
|
|
3846
|
-
var NavigationNodeMetadataSchema2 =
|
|
3847
|
-
icon:
|
|
3848
|
-
hidden:
|
|
3849
|
-
urlSlugOverride:
|
|
3850
|
-
fullSlug:
|
|
3631
|
+
var NavigationNodeMetadataSchema2 = z15.object({
|
|
3632
|
+
icon: z15.string().optional(),
|
|
3633
|
+
hidden: z15.boolean().optional(),
|
|
3634
|
+
urlSlugOverride: z15.string().optional(),
|
|
3635
|
+
fullSlug: z15.array(z15.string()).optional()
|
|
3851
3636
|
});
|
|
3852
|
-
var PageMetadataSchema2 =
|
|
3637
|
+
var PageMetadataSchema2 = z15.object({
|
|
3853
3638
|
...NavigationNodeMetadataSchema2.shape,
|
|
3854
3639
|
id: PageIdSchema2,
|
|
3855
|
-
title:
|
|
3640
|
+
title: z15.string()
|
|
3856
3641
|
});
|
|
3857
|
-
var LinkMetadataSchema2 =
|
|
3858
|
-
title:
|
|
3859
|
-
icon:
|
|
3642
|
+
var LinkMetadataSchema2 = z15.object({
|
|
3643
|
+
title: z15.string(),
|
|
3644
|
+
icon: z15.string().optional(),
|
|
3860
3645
|
url: UrlSchema2,
|
|
3861
3646
|
target: LinkTargetSchema.optional()
|
|
3862
3647
|
});
|
|
3863
|
-
var ChangelogItemSchema2 =
|
|
3864
|
-
date:
|
|
3648
|
+
var ChangelogItemSchema2 = z15.object({
|
|
3649
|
+
date: z15.string(),
|
|
3865
3650
|
pageId: PageIdSchema2,
|
|
3866
|
-
hidden:
|
|
3867
|
-
tags:
|
|
3868
|
-
});
|
|
3869
|
-
var ChangelogSectionSchema2 =
|
|
3870
|
-
title:
|
|
3871
|
-
icon:
|
|
3872
|
-
hidden:
|
|
3873
|
-
description:
|
|
3651
|
+
hidden: z15.boolean().optional(),
|
|
3652
|
+
tags: z15.array(z15.string()).optional()
|
|
3653
|
+
});
|
|
3654
|
+
var ChangelogSectionSchema2 = z15.object({
|
|
3655
|
+
title: z15.string().optional(),
|
|
3656
|
+
icon: z15.string().optional(),
|
|
3657
|
+
hidden: z15.boolean().optional(),
|
|
3658
|
+
description: z15.string().optional(),
|
|
3874
3659
|
pageId: PageIdSchema2.optional(),
|
|
3875
|
-
items:
|
|
3876
|
-
urlSlug:
|
|
3877
|
-
fullSlug:
|
|
3660
|
+
items: z15.array(ChangelogItemSchema2),
|
|
3661
|
+
urlSlug: z15.string(),
|
|
3662
|
+
fullSlug: z15.array(z15.string()).optional()
|
|
3878
3663
|
});
|
|
3879
|
-
var ChangelogSectionV2Schema =
|
|
3664
|
+
var ChangelogSectionV2Schema = z15.object({
|
|
3880
3665
|
...NavigationNodeMetadataSchema2.shape,
|
|
3881
|
-
title:
|
|
3882
|
-
description:
|
|
3666
|
+
title: z15.string().optional(),
|
|
3667
|
+
description: z15.string().optional(),
|
|
3883
3668
|
pageId: PageIdSchema2.optional(),
|
|
3884
|
-
items:
|
|
3669
|
+
items: z15.array(ChangelogItemSchema2)
|
|
3885
3670
|
});
|
|
3886
|
-
var ChangelogSectionV3Schema2 =
|
|
3887
|
-
node:
|
|
3671
|
+
var ChangelogSectionV3Schema2 = z15.object({
|
|
3672
|
+
node: z15.unknown()
|
|
3888
3673
|
});
|
|
3889
|
-
var NavigationTabLinkSchema2 =
|
|
3890
|
-
title:
|
|
3891
|
-
icon:
|
|
3674
|
+
var NavigationTabLinkSchema2 = z15.object({
|
|
3675
|
+
title: z15.string(),
|
|
3676
|
+
icon: z15.string().optional(),
|
|
3892
3677
|
url: UrlSchema2,
|
|
3893
3678
|
target: LinkTargetSchema.optional()
|
|
3894
3679
|
});
|
|
3895
|
-
var ApiNavigationConfigItemSchema3 =
|
|
3896
|
-
() =>
|
|
3897
|
-
|
|
3898
|
-
type:
|
|
3680
|
+
var ApiNavigationConfigItemSchema3 = z15.lazy(
|
|
3681
|
+
() => z15.discriminatedUnion("type", [
|
|
3682
|
+
z15.object({
|
|
3683
|
+
type: z15.literal("subpackage"),
|
|
3899
3684
|
summaryPageId: PageIdSchema2.optional(),
|
|
3900
3685
|
subpackageId: SubpackageIdSchema2,
|
|
3901
|
-
items:
|
|
3686
|
+
items: z15.array(ApiNavigationConfigItemSchema3)
|
|
3902
3687
|
}),
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3688
|
+
z15.object({ type: z15.literal("endpointId"), value: EndpointIdSchema2 }),
|
|
3689
|
+
z15.object({ type: z15.literal("websocketId"), value: WebSocketIdSchema2 }),
|
|
3690
|
+
z15.object({ type: z15.literal("webhookId"), value: WebhookIdSchema2 }),
|
|
3691
|
+
z15.object({ type: z15.literal("page"), ...PageMetadataSchema2.shape })
|
|
3907
3692
|
])
|
|
3908
3693
|
);
|
|
3909
|
-
var ApiNavigationConfigSubpackageSchema =
|
|
3694
|
+
var ApiNavigationConfigSubpackageSchema = z15.object({
|
|
3910
3695
|
summaryPageId: PageIdSchema2.optional(),
|
|
3911
3696
|
subpackageId: SubpackageIdSchema2,
|
|
3912
|
-
items:
|
|
3697
|
+
items: z15.array(ApiNavigationConfigItemSchema3)
|
|
3913
3698
|
});
|
|
3914
|
-
var ApiNavigationConfigRootSchema4 =
|
|
3699
|
+
var ApiNavigationConfigRootSchema4 = z15.object({
|
|
3915
3700
|
summaryPageId: PageIdSchema2.optional(),
|
|
3916
|
-
items:
|
|
3701
|
+
items: z15.array(ApiNavigationConfigItemSchema3)
|
|
3917
3702
|
});
|
|
3918
|
-
var ApiSectionSchema2 =
|
|
3703
|
+
var ApiSectionSchema2 = z15.object({
|
|
3919
3704
|
...NavigationNodeMetadataSchema2.shape,
|
|
3920
|
-
title:
|
|
3705
|
+
title: z15.string(),
|
|
3921
3706
|
api: ApiDefinitionIdSchema2,
|
|
3922
|
-
artifacts:
|
|
3923
|
-
sdks:
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
type:
|
|
3927
|
-
packageName:
|
|
3928
|
-
githubRepoName:
|
|
3929
|
-
version:
|
|
3707
|
+
artifacts: z15.object({
|
|
3708
|
+
sdks: z15.array(
|
|
3709
|
+
z15.discriminatedUnion("type", [
|
|
3710
|
+
z15.object({
|
|
3711
|
+
type: z15.literal("npm"),
|
|
3712
|
+
packageName: z15.string(),
|
|
3713
|
+
githubRepoName: z15.string(),
|
|
3714
|
+
version: z15.string()
|
|
3930
3715
|
}),
|
|
3931
|
-
|
|
3932
|
-
type:
|
|
3933
|
-
coordinate:
|
|
3934
|
-
githubRepoName:
|
|
3935
|
-
version:
|
|
3716
|
+
z15.object({
|
|
3717
|
+
type: z15.literal("maven"),
|
|
3718
|
+
coordinate: z15.string(),
|
|
3719
|
+
githubRepoName: z15.string(),
|
|
3720
|
+
version: z15.string()
|
|
3936
3721
|
}),
|
|
3937
|
-
|
|
3938
|
-
type:
|
|
3939
|
-
packageName:
|
|
3940
|
-
githubRepoName:
|
|
3941
|
-
version:
|
|
3722
|
+
z15.object({
|
|
3723
|
+
type: z15.literal("pypi"),
|
|
3724
|
+
packageName: z15.string(),
|
|
3725
|
+
githubRepoName: z15.string(),
|
|
3726
|
+
version: z15.string()
|
|
3942
3727
|
})
|
|
3943
3728
|
])
|
|
3944
3729
|
),
|
|
3945
|
-
postman:
|
|
3730
|
+
postman: z15.object({
|
|
3946
3731
|
url: UrlSchema2,
|
|
3947
|
-
githubRepoName:
|
|
3732
|
+
githubRepoName: z15.string().optional()
|
|
3948
3733
|
}).optional()
|
|
3949
3734
|
}).optional(),
|
|
3950
|
-
skipUrlSlug:
|
|
3951
|
-
showErrors:
|
|
3735
|
+
skipUrlSlug: z15.boolean().optional(),
|
|
3736
|
+
showErrors: z15.boolean().optional(),
|
|
3952
3737
|
changelog: ChangelogSectionSchema2.optional(),
|
|
3953
3738
|
changelogV2: ChangelogSectionV2Schema.optional(),
|
|
3954
3739
|
navigation: ApiNavigationConfigRootSchema4.optional(),
|
|
3955
|
-
longScrolling:
|
|
3956
|
-
flattened:
|
|
3740
|
+
longScrolling: z15.boolean().optional(),
|
|
3741
|
+
flattened: z15.boolean().optional()
|
|
3957
3742
|
});
|
|
3958
|
-
var ApiSectionV2Schema2 =
|
|
3959
|
-
node:
|
|
3743
|
+
var ApiSectionV2Schema2 = z15.object({
|
|
3744
|
+
node: z15.unknown()
|
|
3960
3745
|
});
|
|
3961
|
-
var DocsSectionSchema2 =
|
|
3962
|
-
() =>
|
|
3746
|
+
var DocsSectionSchema2 = z15.lazy(
|
|
3747
|
+
() => z15.object({
|
|
3963
3748
|
...NavigationNodeMetadataSchema2.shape,
|
|
3964
|
-
title:
|
|
3965
|
-
items:
|
|
3966
|
-
collapsed:
|
|
3967
|
-
collapsible:
|
|
3968
|
-
collapsedByDefault:
|
|
3969
|
-
skipUrlSlug:
|
|
3749
|
+
title: z15.string(),
|
|
3750
|
+
items: z15.array(NavigationItemSchema2),
|
|
3751
|
+
collapsed: z15.union([z15.boolean(), z15.literal("open-by-default")]).optional(),
|
|
3752
|
+
collapsible: z15.boolean().optional(),
|
|
3753
|
+
collapsedByDefault: z15.boolean().optional(),
|
|
3754
|
+
skipUrlSlug: z15.boolean().optional(),
|
|
3970
3755
|
overviewPageId: PageIdSchema2.optional()
|
|
3971
3756
|
})
|
|
3972
3757
|
);
|
|
3973
|
-
var NavigationItemSchema2 =
|
|
3974
|
-
() =>
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
type:
|
|
3758
|
+
var NavigationItemSchema2 = z15.lazy(
|
|
3759
|
+
() => z15.discriminatedUnion("type", [
|
|
3760
|
+
z15.object({ type: z15.literal("page"), ...PageMetadataSchema2.shape }),
|
|
3761
|
+
z15.object({ type: z15.literal("api"), ...ApiSectionSchema2.shape }),
|
|
3762
|
+
z15.object({ type: z15.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
|
|
3763
|
+
z15.object({
|
|
3764
|
+
type: z15.literal("section"),
|
|
3980
3765
|
...NavigationNodeMetadataSchema2.shape,
|
|
3981
|
-
title:
|
|
3982
|
-
items:
|
|
3983
|
-
collapsed:
|
|
3984
|
-
collapsible:
|
|
3985
|
-
collapsedByDefault:
|
|
3986
|
-
skipUrlSlug:
|
|
3766
|
+
title: z15.string(),
|
|
3767
|
+
items: z15.array(NavigationItemSchema2),
|
|
3768
|
+
collapsed: z15.union([z15.boolean(), z15.literal("open-by-default")]).optional(),
|
|
3769
|
+
collapsible: z15.boolean().optional(),
|
|
3770
|
+
collapsedByDefault: z15.boolean().optional(),
|
|
3771
|
+
skipUrlSlug: z15.boolean().optional(),
|
|
3987
3772
|
overviewPageId: PageIdSchema2.optional()
|
|
3988
3773
|
}),
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3774
|
+
z15.object({ type: z15.literal("link"), ...LinkMetadataSchema2.shape }),
|
|
3775
|
+
z15.object({ type: z15.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
3776
|
+
z15.object({ type: z15.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
3992
3777
|
])
|
|
3993
3778
|
);
|
|
3994
|
-
var NavigationTabGroupSchema2 =
|
|
3779
|
+
var NavigationTabGroupSchema2 = z15.object({
|
|
3995
3780
|
...NavigationNodeMetadataSchema2.shape,
|
|
3996
|
-
title:
|
|
3997
|
-
items:
|
|
3998
|
-
skipUrlSlug:
|
|
3999
|
-
});
|
|
4000
|
-
var NavigationTabSchema2 =
|
|
4001
|
-
var NavigationTabV2Schema =
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
3781
|
+
title: z15.string(),
|
|
3782
|
+
items: z15.array(NavigationItemSchema2),
|
|
3783
|
+
skipUrlSlug: z15.boolean().optional()
|
|
3784
|
+
});
|
|
3785
|
+
var NavigationTabSchema2 = z15.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
|
|
3786
|
+
var NavigationTabV2Schema = z15.discriminatedUnion("type", [
|
|
3787
|
+
z15.object({ type: z15.literal("group"), ...NavigationTabGroupSchema2.shape }),
|
|
3788
|
+
z15.object({ type: z15.literal("link"), ...NavigationTabLinkSchema2.shape }),
|
|
3789
|
+
z15.object({ type: z15.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
3790
|
+
z15.object({ type: z15.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
4006
3791
|
]);
|
|
4007
|
-
var UnversionedTabbedNavigationConfigSchema2 =
|
|
4008
|
-
tabs:
|
|
4009
|
-
tabsV2:
|
|
3792
|
+
var UnversionedTabbedNavigationConfigSchema2 = z15.object({
|
|
3793
|
+
tabs: z15.array(NavigationTabSchema2).optional(),
|
|
3794
|
+
tabsV2: z15.array(NavigationTabV2Schema).optional(),
|
|
4010
3795
|
landingPage: PageMetadataSchema2.optional()
|
|
4011
3796
|
});
|
|
4012
|
-
var UnversionedUntabbedNavigationConfigSchema2 =
|
|
4013
|
-
items:
|
|
3797
|
+
var UnversionedUntabbedNavigationConfigSchema2 = z15.object({
|
|
3798
|
+
items: z15.array(NavigationItemSchema2),
|
|
4014
3799
|
landingPage: PageMetadataSchema2.optional()
|
|
4015
3800
|
});
|
|
4016
|
-
var UnversionedNavigationConfigSchema2 =
|
|
3801
|
+
var UnversionedNavigationConfigSchema2 = z15.union([
|
|
4017
3802
|
UnversionedTabbedNavigationConfigSchema2,
|
|
4018
3803
|
UnversionedUntabbedNavigationConfigSchema2
|
|
4019
3804
|
]);
|
|
4020
|
-
var VersionedNavigationConfigDataSchema2 =
|
|
3805
|
+
var VersionedNavigationConfigDataSchema2 = z15.object({
|
|
4021
3806
|
version: VersionIdSchema2,
|
|
4022
|
-
urlSlugOverride:
|
|
3807
|
+
urlSlugOverride: z15.string().optional(),
|
|
4023
3808
|
availability: AvailabilitySchema2.optional(),
|
|
4024
3809
|
config: UnversionedNavigationConfigSchema2
|
|
4025
3810
|
});
|
|
4026
|
-
var VersionedNavigationConfigSchema2 =
|
|
4027
|
-
versions:
|
|
3811
|
+
var VersionedNavigationConfigSchema2 = z15.object({
|
|
3812
|
+
versions: z15.array(VersionedNavigationConfigDataSchema2)
|
|
4028
3813
|
});
|
|
4029
|
-
var NavigationConfigSchema2 =
|
|
4030
|
-
var ThemeConfigSchema2 =
|
|
3814
|
+
var NavigationConfigSchema2 = z15.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
|
|
3815
|
+
var ThemeConfigSchema2 = z15.object({
|
|
4031
3816
|
logo: FileIdSchema2.optional(),
|
|
4032
3817
|
backgroundImage: FileIdSchema2.optional(),
|
|
4033
3818
|
accentPrimary: RgbaColorSchema,
|
|
@@ -4049,37 +3834,37 @@ var ThemeConfigSchema2 = z18.object({
|
|
|
4049
3834
|
accent11: RgbaColorSchema.optional(),
|
|
4050
3835
|
accent12: RgbaColorSchema.optional()
|
|
4051
3836
|
});
|
|
4052
|
-
var DarkAndLightModeConfigSchema2 =
|
|
3837
|
+
var DarkAndLightModeConfigSchema2 = z15.object({
|
|
4053
3838
|
dark: ThemeConfigSchema2,
|
|
4054
3839
|
light: ThemeConfigSchema2
|
|
4055
3840
|
});
|
|
4056
|
-
var ColorsConfigV3Schema2 =
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
3841
|
+
var ColorsConfigV3Schema2 = z15.discriminatedUnion("type", [
|
|
3842
|
+
z15.object({ type: z15.literal("dark"), ...ThemeConfigSchema2.shape }),
|
|
3843
|
+
z15.object({ type: z15.literal("light"), ...ThemeConfigSchema2.shape }),
|
|
3844
|
+
z15.object({ type: z15.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
|
|
4060
3845
|
]);
|
|
4061
|
-
var DocsConfigSchema2 =
|
|
4062
|
-
title:
|
|
3846
|
+
var DocsConfigSchema2 = z15.object({
|
|
3847
|
+
title: z15.string().optional(),
|
|
4063
3848
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
4064
|
-
languages:
|
|
3849
|
+
languages: z15.array(LanguageSchema).optional(),
|
|
4065
3850
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
4066
|
-
announcement:
|
|
3851
|
+
announcement: z15.object({ text: z15.string() }).optional(),
|
|
4067
3852
|
navigation: NavigationConfigSchema2.optional(),
|
|
4068
|
-
root:
|
|
4069
|
-
navbarLinks:
|
|
4070
|
-
footerLinks:
|
|
4071
|
-
hideNavLinks:
|
|
3853
|
+
root: z15.custom().optional(),
|
|
3854
|
+
navbarLinks: z15.array(NavbarLinkSchema).optional(),
|
|
3855
|
+
footerLinks: z15.array(FooterLinkSchema).optional(),
|
|
3856
|
+
hideNavLinks: z15.boolean().optional(),
|
|
4072
3857
|
logoHeight: HeightSchema2.optional(),
|
|
4073
3858
|
logoHref: UrlSchema2.optional(),
|
|
4074
|
-
logoRightText:
|
|
3859
|
+
logoRightText: z15.string().optional(),
|
|
4075
3860
|
favicon: FileIdSchema2.optional(),
|
|
4076
3861
|
agents: AgentsConfigSchema.optional(),
|
|
4077
3862
|
metadata: MetadataConfigSchema.optional(),
|
|
4078
|
-
redirects:
|
|
3863
|
+
redirects: z15.array(RedirectConfigSchema).optional(),
|
|
4079
3864
|
colorsV3: ColorsConfigV3Schema2.optional(),
|
|
4080
3865
|
layout: DocsLayoutConfigSchema.optional(),
|
|
4081
3866
|
theme: DocsThemeConfigSchema.optional(),
|
|
4082
|
-
globalTheme:
|
|
3867
|
+
globalTheme: z15.string().optional(),
|
|
4083
3868
|
settings: DocsSettingsConfigSchema.optional(),
|
|
4084
3869
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
4085
3870
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -4089,8 +3874,8 @@ var DocsConfigSchema2 = z18.object({
|
|
|
4089
3874
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
4090
3875
|
pageActions: PageActionsConfigSchema.optional(),
|
|
4091
3876
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
4092
|
-
header:
|
|
4093
|
-
footer:
|
|
3877
|
+
header: z15.string().optional(),
|
|
3878
|
+
footer: z15.string().optional(),
|
|
4094
3879
|
backgroundImage: FileIdSchema2.optional(),
|
|
4095
3880
|
logoV2: ThemedFileIdSchema.optional(),
|
|
4096
3881
|
logo: FileIdSchema2.optional(),
|
|
@@ -4098,156 +3883,410 @@ var DocsConfigSchema2 = z18.object({
|
|
|
4098
3883
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
4099
3884
|
typography: DocsTypographyConfigSchema.optional()
|
|
4100
3885
|
});
|
|
4101
|
-
var DocsDefinitionSchema2 =
|
|
4102
|
-
pages:
|
|
3886
|
+
var DocsDefinitionSchema2 = z15.object({
|
|
3887
|
+
pages: z15.record(PageIdSchema2, PageContentSchema2),
|
|
4103
3888
|
config: DocsConfigSchema2,
|
|
4104
|
-
jsFiles:
|
|
4105
|
-
});
|
|
4106
|
-
var NpmPackageSchema2 =
|
|
4107
|
-
packageName:
|
|
4108
|
-
githubRepoName:
|
|
4109
|
-
version:
|
|
4110
|
-
});
|
|
4111
|
-
var MavenPackageSchema2 =
|
|
4112
|
-
coordinate:
|
|
4113
|
-
githubRepoName:
|
|
4114
|
-
version:
|
|
4115
|
-
});
|
|
4116
|
-
var PypiPackageSchema2 =
|
|
4117
|
-
packageName:
|
|
4118
|
-
githubRepoName:
|
|
4119
|
-
version:
|
|
4120
|
-
});
|
|
4121
|
-
var PublishedSdkSchema2 =
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
3889
|
+
jsFiles: z15.record(z15.string(), z15.string()).optional()
|
|
3890
|
+
});
|
|
3891
|
+
var NpmPackageSchema2 = z15.object({
|
|
3892
|
+
packageName: z15.string(),
|
|
3893
|
+
githubRepoName: z15.string(),
|
|
3894
|
+
version: z15.string()
|
|
3895
|
+
});
|
|
3896
|
+
var MavenPackageSchema2 = z15.object({
|
|
3897
|
+
coordinate: z15.string(),
|
|
3898
|
+
githubRepoName: z15.string(),
|
|
3899
|
+
version: z15.string()
|
|
3900
|
+
});
|
|
3901
|
+
var PypiPackageSchema2 = z15.object({
|
|
3902
|
+
packageName: z15.string(),
|
|
3903
|
+
githubRepoName: z15.string(),
|
|
3904
|
+
version: z15.string()
|
|
3905
|
+
});
|
|
3906
|
+
var PublishedSdkSchema2 = z15.discriminatedUnion("type", [
|
|
3907
|
+
z15.object({ type: z15.literal("npm"), ...NpmPackageSchema2.shape }),
|
|
3908
|
+
z15.object({ type: z15.literal("maven"), ...MavenPackageSchema2.shape }),
|
|
3909
|
+
z15.object({ type: z15.literal("pypi"), ...PypiPackageSchema2.shape })
|
|
4125
3910
|
]);
|
|
4126
|
-
var PublishedPostmanCollectionSchema2 =
|
|
3911
|
+
var PublishedPostmanCollectionSchema2 = z15.object({
|
|
4127
3912
|
url: UrlSchema2,
|
|
4128
|
-
githubRepoName:
|
|
3913
|
+
githubRepoName: z15.string().optional()
|
|
4129
3914
|
});
|
|
4130
|
-
var ApiArtifactsSchema2 =
|
|
4131
|
-
sdks:
|
|
3915
|
+
var ApiArtifactsSchema2 = z15.object({
|
|
3916
|
+
sdks: z15.array(PublishedSdkSchema2),
|
|
4132
3917
|
postman: PublishedPostmanCollectionSchema2.optional()
|
|
4133
3918
|
});
|
|
4134
|
-
var InvalidCustomDomainErrorBodySchema =
|
|
4135
|
-
overlappingDomains:
|
|
3919
|
+
var InvalidCustomDomainErrorBodySchema = z15.object({
|
|
3920
|
+
overlappingDomains: z15.array(z15.array(z15.string()))
|
|
3921
|
+
});
|
|
3922
|
+
var OverlappingCustomDomainsSchema = z15.array(z15.string());
|
|
3923
|
+
|
|
3924
|
+
// src/orpc-client/docs/v1/write/contract.ts
|
|
3925
|
+
var StartDocsRegisterV1InputSchema = z16.object({
|
|
3926
|
+
orgId: z16.string(),
|
|
3927
|
+
domain: z16.string(),
|
|
3928
|
+
filepaths: z16.array(z16.string())
|
|
3929
|
+
});
|
|
3930
|
+
var StartDocsRegisterV1ResponseSchema = z16.object({
|
|
3931
|
+
docsRegistrationId: z16.string(),
|
|
3932
|
+
uploadUrls: z16.record(z16.string(), FileS3UploadUrlSchema),
|
|
3933
|
+
skippedFiles: z16.array(z16.string())
|
|
3934
|
+
});
|
|
3935
|
+
var FinishDocsRegisterV1InputSchema = z16.object({
|
|
3936
|
+
docsRegistrationId: z16.string(),
|
|
3937
|
+
docsDefinition: z16.unknown()
|
|
3938
|
+
});
|
|
3939
|
+
var docsV1WriteContract = {
|
|
3940
|
+
startDocsRegister: import_contract8.oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
3941
|
+
finishDocsRegister: import_contract8.oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z16.void())
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3944
|
+
// src/orpc-client/docs/v1/write/client.ts
|
|
3945
|
+
function createDocsV1WriteClient(options) {
|
|
3946
|
+
const link = new import_fetch4.OpenAPILink(docsV1WriteContract, {
|
|
3947
|
+
url: `${options.baseUrl}/registry/docs`,
|
|
3948
|
+
headers: () => ({
|
|
3949
|
+
Authorization: `Bearer ${options.token}`,
|
|
3950
|
+
...options.headers
|
|
3951
|
+
}),
|
|
3952
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
3953
|
+
});
|
|
3954
|
+
return (0, import_client4.createORPCClient)(link);
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
3958
|
+
var import_client5 = require("@orpc/client");
|
|
3959
|
+
var import_fetch5 = require("@orpc/openapi-client/fetch");
|
|
3960
|
+
|
|
3961
|
+
// src/orpc-client/docs/v2/library-docs/contract.ts
|
|
3962
|
+
var import_contract10 = require("@orpc/contract");
|
|
3963
|
+
var z17 = __toESM(require("zod"), 1);
|
|
3964
|
+
var ALLOWED_HOSTNAMES = /* @__PURE__ */ new Set(["github.com", "gitlab.com"]);
|
|
3965
|
+
var GithubUrlSchema = z17.string().url().describe(
|
|
3966
|
+
"HTTPS URL of a GitHub or GitLab repository. Currently only github.com and gitlab.com are supported. Must match the pattern https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo>."
|
|
3967
|
+
).refine(
|
|
3968
|
+
(url) => {
|
|
3969
|
+
try {
|
|
3970
|
+
const parsed = new URL(url);
|
|
3971
|
+
if (parsed.protocol !== "https:") {
|
|
3972
|
+
return false;
|
|
3973
|
+
}
|
|
3974
|
+
if (!ALLOWED_HOSTNAMES.has(parsed.hostname)) {
|
|
3975
|
+
return false;
|
|
3976
|
+
}
|
|
3977
|
+
if (parsed.username || parsed.password) {
|
|
3978
|
+
return false;
|
|
3979
|
+
}
|
|
3980
|
+
return /^\/[\w.-]+\/[\w.-]+(?:\.git)?\/?$/.test(parsed.pathname);
|
|
3981
|
+
} catch {
|
|
3982
|
+
return false;
|
|
3983
|
+
}
|
|
3984
|
+
},
|
|
3985
|
+
{ message: "Must be a valid https://github.com/<owner>/<repo> or https://gitlab.com/<owner>/<repo> URL" }
|
|
3986
|
+
);
|
|
3987
|
+
var SafeBranchSchema = z17.string().regex(/^[a-zA-Z0-9._/-]+$/, "Invalid branch name").nullish();
|
|
3988
|
+
var SafePackagePathSchema = z17.string().refine((p) => !p.includes("..") && !p.startsWith("/"), {
|
|
3989
|
+
message: "packagePath must not contain path traversal sequences"
|
|
3990
|
+
}).nullish();
|
|
3991
|
+
var LibraryDocsBaseConfigSchema = z17.object({
|
|
3992
|
+
branch: SafeBranchSchema,
|
|
3993
|
+
packagePath: SafePackagePathSchema,
|
|
3994
|
+
title: z17.string().nullish(),
|
|
3995
|
+
slug: z17.string().nullish()
|
|
3996
|
+
});
|
|
3997
|
+
var PythonLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema;
|
|
3998
|
+
var CppLibraryDocsConfigSchema = LibraryDocsBaseConfigSchema.extend({
|
|
3999
|
+
doxyfileContent: z17.string().nullish()
|
|
4000
|
+
});
|
|
4001
|
+
var StartLibraryDocsGenerationInputSchema = z17.discriminatedUnion("language", [
|
|
4002
|
+
z17.object({
|
|
4003
|
+
orgId: z17.string(),
|
|
4004
|
+
githubUrl: GithubUrlSchema,
|
|
4005
|
+
language: z17.literal("PYTHON"),
|
|
4006
|
+
config: PythonLibraryDocsConfigSchema.nullish()
|
|
4007
|
+
}),
|
|
4008
|
+
z17.object({
|
|
4009
|
+
orgId: z17.string(),
|
|
4010
|
+
githubUrl: GithubUrlSchema,
|
|
4011
|
+
language: z17.literal("CPP"),
|
|
4012
|
+
config: CppLibraryDocsConfigSchema.nullish()
|
|
4013
|
+
})
|
|
4014
|
+
]);
|
|
4015
|
+
var StartLibraryDocsGenerationResponseSchema = z17.object({
|
|
4016
|
+
jobId: z17.string()
|
|
4017
|
+
});
|
|
4018
|
+
var GetLibraryDocsStatusInputSchema = z17.object({
|
|
4019
|
+
jobId: z17.string()
|
|
4020
|
+
});
|
|
4021
|
+
var LibraryDocsResultSchema = z17.object({
|
|
4022
|
+
jobId: z17.string(),
|
|
4023
|
+
resultUrl: z17.string()
|
|
4024
|
+
});
|
|
4025
|
+
var LibraryDocsGenerationStatusSchema = z17.object({
|
|
4026
|
+
jobId: z17.string(),
|
|
4027
|
+
status: z17.string(),
|
|
4028
|
+
progress: z17.string(),
|
|
4029
|
+
error: z17.object({
|
|
4030
|
+
code: z17.string(),
|
|
4031
|
+
message: z17.string()
|
|
4032
|
+
}).optional(),
|
|
4033
|
+
createdAt: z17.string(),
|
|
4034
|
+
updatedAt: z17.string()
|
|
4035
|
+
});
|
|
4036
|
+
var libraryDocsContract = {
|
|
4037
|
+
startLibraryDocsGeneration: import_contract10.oc.route({ method: "POST", path: "/library-docs/generate" }).input(StartLibraryDocsGenerationInputSchema).output(StartLibraryDocsGenerationResponseSchema),
|
|
4038
|
+
getLibraryDocsGenerationStatus: import_contract10.oc.route({ method: "GET", path: "/library-docs/status/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsGenerationStatusSchema),
|
|
4039
|
+
getLibraryDocsResult: import_contract10.oc.route({ method: "GET", path: "/library-docs/result/{jobId}" }).input(GetLibraryDocsStatusInputSchema).output(LibraryDocsResultSchema)
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
// src/orpc-client/docs/v2/library-docs/client.ts
|
|
4043
|
+
function createLibraryDocsClient(options) {
|
|
4044
|
+
const link = new import_fetch5.OpenAPILink(libraryDocsContract, {
|
|
4045
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
4046
|
+
headers: () => ({
|
|
4047
|
+
Authorization: `Bearer ${options.token}`,
|
|
4048
|
+
...options.headers
|
|
4049
|
+
}),
|
|
4050
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4051
|
+
});
|
|
4052
|
+
return (0, import_client5.createORPCClient)(link);
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
// src/orpc-client/docs/v2/organization/client.ts
|
|
4056
|
+
var import_client6 = require("@orpc/client");
|
|
4057
|
+
var import_fetch6 = require("@orpc/openapi-client/fetch");
|
|
4058
|
+
|
|
4059
|
+
// src/orpc-client/docs/v2/organization/contract.ts
|
|
4060
|
+
var import_contract12 = require("@orpc/contract");
|
|
4061
|
+
var z18 = __toESM(require("zod"), 1);
|
|
4062
|
+
var GetOrganizationForUrlInputSchema = z18.object({
|
|
4063
|
+
url: z18.string()
|
|
4136
4064
|
});
|
|
4137
|
-
var
|
|
4065
|
+
var organizationContract = {
|
|
4066
|
+
getOrganizationForUrl: import_contract12.oc.route({ method: "POST", path: "/organization-for-url" }).input(GetOrganizationForUrlInputSchema).output(z18.string())
|
|
4067
|
+
};
|
|
4068
|
+
|
|
4069
|
+
// src/orpc-client/docs/v2/organization/client.ts
|
|
4070
|
+
function createOrganizationClient(options) {
|
|
4071
|
+
const link = new import_fetch6.OpenAPILink(organizationContract, {
|
|
4072
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
4073
|
+
headers: () => ({
|
|
4074
|
+
Authorization: `Bearer ${options.token}`,
|
|
4075
|
+
...options.headers
|
|
4076
|
+
}),
|
|
4077
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4078
|
+
});
|
|
4079
|
+
return (0, import_client6.createORPCClient)(link);
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
// src/orpc-client/docs/v2/read/client.ts
|
|
4083
|
+
var import_client7 = require("@orpc/client");
|
|
4084
|
+
var import_fetch7 = require("@orpc/openapi-client/fetch");
|
|
4085
|
+
|
|
4086
|
+
// src/orpc-client/docs/v2/read/contract.ts
|
|
4087
|
+
var import_contract14 = require("@orpc/contract");
|
|
4088
|
+
var z19 = __toESM(require("zod"), 1);
|
|
4089
|
+
var GetDocsUrlMetadataInputSchema = z19.object({
|
|
4090
|
+
url: z19.string()
|
|
4091
|
+
});
|
|
4092
|
+
var GetDocsUrlMetadataResponseSchema = z19.object({
|
|
4093
|
+
isPreviewUrl: z19.boolean(),
|
|
4094
|
+
org: z19.string(),
|
|
4095
|
+
url: z19.string(),
|
|
4096
|
+
gitUrl: z19.string().nullish(),
|
|
4097
|
+
enableAlgoliaOnPreview: z19.boolean().nullish()
|
|
4098
|
+
});
|
|
4099
|
+
var GetDocsForUrlInputSchema = z19.object({
|
|
4100
|
+
url: z19.string(),
|
|
4101
|
+
excludeApis: z19.boolean().nullish()
|
|
4102
|
+
});
|
|
4103
|
+
var GetPrivateDocsForUrlInputSchema = z19.object({
|
|
4104
|
+
url: z19.string()
|
|
4105
|
+
});
|
|
4106
|
+
var ListAllDocsUrlsInputSchema = z19.object({
|
|
4107
|
+
limit: z19.number().nullish(),
|
|
4108
|
+
page: z19.number().nullish(),
|
|
4109
|
+
custom: z19.boolean().nullish(),
|
|
4110
|
+
preview: z19.boolean().nullish()
|
|
4111
|
+
});
|
|
4112
|
+
var GetDocsConfigByIdInputSchema = z19.object({
|
|
4113
|
+
docsConfigId: z19.string()
|
|
4114
|
+
});
|
|
4115
|
+
var DocsDefinitionField = {
|
|
4116
|
+
BaseUrl: "BASE_URL",
|
|
4117
|
+
FilesV2: "FILES_V2",
|
|
4118
|
+
ApisV2: "APIS_V2",
|
|
4119
|
+
Apis: "APIS",
|
|
4120
|
+
Pages: "PAGES",
|
|
4121
|
+
JsFiles: "JS_FILES",
|
|
4122
|
+
Config: "CONFIG",
|
|
4123
|
+
Root: "ROOT"
|
|
4124
|
+
};
|
|
4125
|
+
var GetDocsConfigByIdResponseSchema = z19.object({
|
|
4126
|
+
docsConfig: DocsConfigSchema,
|
|
4127
|
+
apis: z19.record(z19.string(), z19.unknown())
|
|
4128
|
+
});
|
|
4129
|
+
var DocsDomainItemSchema = z19.object({
|
|
4130
|
+
domain: z19.string(),
|
|
4131
|
+
basePath: z19.string().optional(),
|
|
4132
|
+
organizationId: z19.string(),
|
|
4133
|
+
updatedAt: z19.string()
|
|
4134
|
+
});
|
|
4135
|
+
var ListAllDocsUrlsResponseSchema = z19.object({
|
|
4136
|
+
urls: z19.array(DocsDomainItemSchema)
|
|
4137
|
+
});
|
|
4138
|
+
var getDocsForUrl;
|
|
4139
|
+
((getDocsForUrl2) => {
|
|
4140
|
+
let Error2;
|
|
4141
|
+
((Error3) => {
|
|
4142
|
+
function _unknown(fetcherError) {
|
|
4143
|
+
return { error: void 0, content: fetcherError };
|
|
4144
|
+
}
|
|
4145
|
+
Error3._unknown = _unknown;
|
|
4146
|
+
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
4147
|
+
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
4148
|
+
var docsV2ReadContract = {
|
|
4149
|
+
getDocsUrlMetadata: import_contract14.oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
4150
|
+
getDocsForUrl: import_contract14.oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
4151
|
+
getPrivateDocsForUrl: import_contract14.oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
4152
|
+
listAllDocsUrls: import_contract14.oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
4153
|
+
getDocsConfigById: import_contract14.oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
4154
|
+
prepopulateFdrReadS3Bucket: import_contract14.oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z19.void()),
|
|
4155
|
+
ensureDocsInS3: import_contract14.oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z19.void()),
|
|
4156
|
+
getDocsFields: import_contract14.oc.route({ method: "POST", path: "/load-fields" }).output(z19.void())
|
|
4157
|
+
};
|
|
4158
|
+
|
|
4159
|
+
// src/orpc-client/docs/v2/read/client.ts
|
|
4160
|
+
function createDocsV2ReadClient(options) {
|
|
4161
|
+
const link = new import_fetch7.OpenAPILink(docsV2ReadContract, {
|
|
4162
|
+
url: `${options.baseUrl}/v2/registry/docs`,
|
|
4163
|
+
headers: () => ({
|
|
4164
|
+
Authorization: `Bearer ${options.token}`,
|
|
4165
|
+
...options.headers
|
|
4166
|
+
}),
|
|
4167
|
+
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4168
|
+
});
|
|
4169
|
+
return (0, import_client7.createORPCClient)(link);
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
// src/orpc-client/docs/v2/write/client.ts
|
|
4173
|
+
var import_client8 = require("@orpc/client");
|
|
4174
|
+
var import_fetch8 = require("@orpc/openapi-client/fetch");
|
|
4138
4175
|
|
|
4139
4176
|
// src/orpc-client/docs/v2/write/contract.ts
|
|
4140
|
-
var
|
|
4177
|
+
var import_contract16 = require("@orpc/contract");
|
|
4178
|
+
var z20 = __toESM(require("zod"), 1);
|
|
4179
|
+
var FilePathSchema2 = z20.string();
|
|
4141
4180
|
function FilePath(value) {
|
|
4142
4181
|
return value;
|
|
4143
4182
|
}
|
|
4144
|
-
var FilePathInputSchema =
|
|
4183
|
+
var FilePathInputSchema = z20.union([
|
|
4145
4184
|
FilePathSchema2,
|
|
4146
|
-
|
|
4185
|
+
z20.object({ path: FilePathSchema2, fileHash: z20.string().nullish() })
|
|
4147
4186
|
]);
|
|
4148
|
-
var ImageFilePathSchema =
|
|
4187
|
+
var ImageFilePathSchema = z20.object({
|
|
4149
4188
|
filePath: FilePathSchema2,
|
|
4150
|
-
width:
|
|
4151
|
-
height:
|
|
4152
|
-
blurDataUrl:
|
|
4153
|
-
alt:
|
|
4154
|
-
fileHash:
|
|
4155
|
-
});
|
|
4156
|
-
var AuthConfigSchema =
|
|
4157
|
-
type:
|
|
4158
|
-
});
|
|
4159
|
-
var StartDocsRegisterV2InputSchema =
|
|
4160
|
-
orgId:
|
|
4161
|
-
domain:
|
|
4162
|
-
customDomains:
|
|
4163
|
-
filepaths:
|
|
4164
|
-
images:
|
|
4189
|
+
width: z20.number(),
|
|
4190
|
+
height: z20.number(),
|
|
4191
|
+
blurDataUrl: z20.string().nullish(),
|
|
4192
|
+
alt: z20.string().nullish(),
|
|
4193
|
+
fileHash: z20.string().nullish()
|
|
4194
|
+
});
|
|
4195
|
+
var AuthConfigSchema = z20.object({
|
|
4196
|
+
type: z20.string()
|
|
4197
|
+
});
|
|
4198
|
+
var StartDocsRegisterV2InputSchema = z20.object({
|
|
4199
|
+
orgId: z20.string(),
|
|
4200
|
+
domain: z20.string(),
|
|
4201
|
+
customDomains: z20.array(z20.string()),
|
|
4202
|
+
filepaths: z20.array(FilePathInputSchema),
|
|
4203
|
+
images: z20.array(ImageFilePathSchema).nullish(),
|
|
4165
4204
|
authConfig: AuthConfigSchema.nullish()
|
|
4166
4205
|
});
|
|
4167
|
-
var StartDocsRegisterV2ResponseSchema =
|
|
4168
|
-
docsRegistrationId:
|
|
4169
|
-
uploadUrls:
|
|
4170
|
-
skippedFiles:
|
|
4206
|
+
var StartDocsRegisterV2ResponseSchema = z20.object({
|
|
4207
|
+
docsRegistrationId: z20.string(),
|
|
4208
|
+
uploadUrls: z20.record(z20.string(), FileS3UploadUrlSchema),
|
|
4209
|
+
skippedFiles: z20.array(z20.string())
|
|
4171
4210
|
});
|
|
4172
|
-
var StartDocsPreviewRegisterInputSchema =
|
|
4173
|
-
orgId:
|
|
4174
|
-
filepaths:
|
|
4175
|
-
basePath:
|
|
4176
|
-
images:
|
|
4211
|
+
var StartDocsPreviewRegisterInputSchema = z20.object({
|
|
4212
|
+
orgId: z20.string(),
|
|
4213
|
+
filepaths: z20.array(FilePathInputSchema),
|
|
4214
|
+
basePath: z20.string().nullish(),
|
|
4215
|
+
images: z20.array(ImageFilePathSchema).nullish(),
|
|
4177
4216
|
authConfig: AuthConfigSchema.nullish(),
|
|
4178
|
-
previewId:
|
|
4179
|
-
});
|
|
4180
|
-
var StartDocsPreviewRegisterResponseSchema = z19.object({
|
|
4181
|
-
docsRegistrationId: z19.string(),
|
|
4182
|
-
uploadUrls: z19.record(z19.string(), FileS3UploadUrlSchema),
|
|
4183
|
-
skippedFiles: z19.array(z19.string()),
|
|
4184
|
-
previewUrl: z19.string()
|
|
4185
|
-
});
|
|
4186
|
-
var FinishDocsRegisterV2InputSchema = z19.object({
|
|
4187
|
-
docsRegistrationId: z19.string(),
|
|
4188
|
-
docsDefinition: z19.unknown(),
|
|
4189
|
-
libraryDocs: z19.unknown().nullish(),
|
|
4190
|
-
excludeApis: z19.boolean().nullish(),
|
|
4191
|
-
basepathAware: z19.boolean().nullish()
|
|
4192
|
-
});
|
|
4193
|
-
var TransferOwnershipInputSchema = z19.object({
|
|
4194
|
-
domain: z19.string(),
|
|
4195
|
-
toOrgId: z19.string()
|
|
4217
|
+
previewId: z20.string().nullish()
|
|
4196
4218
|
});
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
|
|
4219
|
+
var StartDocsPreviewRegisterResponseSchema = z20.object({
|
|
4220
|
+
docsRegistrationId: z20.string(),
|
|
4221
|
+
uploadUrls: z20.record(z20.string(), FileS3UploadUrlSchema),
|
|
4222
|
+
skippedFiles: z20.array(z20.string()),
|
|
4223
|
+
previewUrl: z20.string()
|
|
4200
4224
|
});
|
|
4201
|
-
var
|
|
4202
|
-
|
|
4203
|
-
|
|
4225
|
+
var FinishDocsRegisterV2InputSchema = z20.object({
|
|
4226
|
+
docsRegistrationId: z20.string(),
|
|
4227
|
+
docsDefinition: z20.unknown(),
|
|
4228
|
+
libraryDocs: z20.unknown().nullish(),
|
|
4229
|
+
excludeApis: z20.boolean().nullish(),
|
|
4230
|
+
basepathAware: z20.boolean().nullish()
|
|
4204
4231
|
});
|
|
4205
|
-
var
|
|
4206
|
-
domain:
|
|
4232
|
+
var TransferOwnershipInputSchema = z20.object({
|
|
4233
|
+
domain: z20.string(),
|
|
4234
|
+
toOrgId: z20.string()
|
|
4207
4235
|
});
|
|
4208
|
-
var
|
|
4209
|
-
|
|
4236
|
+
var SetIsArchivedInputSchema = z20.object({
|
|
4237
|
+
url: z20.string(),
|
|
4238
|
+
isArchived: z20.boolean()
|
|
4210
4239
|
});
|
|
4211
|
-
var
|
|
4212
|
-
url:
|
|
4240
|
+
var SetDocsUrlMetadataInputSchema = z20.object({
|
|
4241
|
+
url: z20.string(),
|
|
4242
|
+
githubUrl: z20.string().nullish()
|
|
4243
|
+
});
|
|
4244
|
+
var AlgoliaDomainInputSchema = z20.object({
|
|
4245
|
+
domain: z20.string()
|
|
4246
|
+
});
|
|
4247
|
+
var ListAlgoliaPreviewWhitelistResponseSchema = z20.object({
|
|
4248
|
+
domains: z20.array(z20.string())
|
|
4213
4249
|
});
|
|
4214
|
-
var
|
|
4250
|
+
var DeleteDocsSiteInputSchema = z20.object({
|
|
4251
|
+
url: z20.string()
|
|
4252
|
+
});
|
|
4253
|
+
var RemoveCustomDomainAliasInputSchema = z20.object({
|
|
4215
4254
|
/** The custom-domain URL to remove (e.g. `docs.example.com` or `docs.example.com/api`). */
|
|
4216
|
-
url:
|
|
4255
|
+
url: z20.string()
|
|
4217
4256
|
});
|
|
4218
|
-
var Bcp47LocaleSchema2 =
|
|
4257
|
+
var Bcp47LocaleSchema2 = z20.string().regex(
|
|
4219
4258
|
/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$/,
|
|
4220
4259
|
"Locale must be a valid BCP 47 language tag (e.g. 'en', 'fr', 'pt-BR', 'zh-Hans-CN')"
|
|
4221
4260
|
);
|
|
4222
|
-
var RegisterTranslationInputSchema =
|
|
4223
|
-
domain:
|
|
4261
|
+
var RegisterTranslationInputSchema = z20.object({
|
|
4262
|
+
domain: z20.string(),
|
|
4224
4263
|
/**
|
|
4225
4264
|
* Custom domains that share the docs registration with `domain`. The translation
|
|
4226
4265
|
* blob is written to S3 once per URL (fern URL + each custom domain), mirroring
|
|
4227
4266
|
* the fan-out shape of `finishDocsRegister`. Without this, requests to a custom
|
|
4228
4267
|
* domain hit the translation S3 path under the fern URL prefix and 404.
|
|
4229
4268
|
*/
|
|
4230
|
-
customDomains:
|
|
4231
|
-
orgId:
|
|
4269
|
+
customDomains: z20.array(z20.string()).optional().default([]),
|
|
4270
|
+
orgId: z20.string(),
|
|
4232
4271
|
/** BCP 47 language tag identifying the locale for this translation. */
|
|
4233
4272
|
locale: Bcp47LocaleSchema2,
|
|
4234
4273
|
/** The full docs definition for this locale, same structure as finishDocsRegister. */
|
|
4235
|
-
docsDefinition:
|
|
4274
|
+
docsDefinition: z20.unknown()
|
|
4236
4275
|
});
|
|
4237
|
-
var RegisterTranslationResponseSchema =
|
|
4238
|
-
locale:
|
|
4276
|
+
var RegisterTranslationResponseSchema = z20.object({
|
|
4277
|
+
locale: z20.string()
|
|
4239
4278
|
});
|
|
4240
4279
|
var docsV2WriteContract = {
|
|
4241
|
-
startDocsRegister:
|
|
4242
|
-
startDocsPreviewRegister:
|
|
4243
|
-
finishDocsRegister:
|
|
4244
|
-
transferOwnershipOfDomain:
|
|
4245
|
-
setIsArchived:
|
|
4246
|
-
setDocsUrlMetadata:
|
|
4247
|
-
addAlgoliaPreviewWhitelistEntry:
|
|
4248
|
-
removeAlgoliaPreviewWhitelistEntry:
|
|
4249
|
-
listAlgoliaPreviewWhitelist:
|
|
4250
|
-
deleteDocsSite:
|
|
4280
|
+
startDocsRegister: import_contract16.oc.route({ method: "POST", path: "/v2/init" }).input(StartDocsRegisterV2InputSchema).output(StartDocsRegisterV2ResponseSchema),
|
|
4281
|
+
startDocsPreviewRegister: import_contract16.oc.route({ method: "POST", path: "/preview/init" }).input(StartDocsPreviewRegisterInputSchema).output(StartDocsPreviewRegisterResponseSchema),
|
|
4282
|
+
finishDocsRegister: import_contract16.oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV2InputSchema).output(z20.void()),
|
|
4283
|
+
transferOwnershipOfDomain: import_contract16.oc.route({ method: "POST", path: "/transfer-ownership" }).input(TransferOwnershipInputSchema).output(z20.void()),
|
|
4284
|
+
setIsArchived: import_contract16.oc.route({ method: "POST", path: "/set-is-archived" }).input(SetIsArchivedInputSchema).output(z20.void()),
|
|
4285
|
+
setDocsUrlMetadata: import_contract16.oc.route({ method: "POST", path: "/set-metadata-for-url" }).input(SetDocsUrlMetadataInputSchema).output(z20.void()),
|
|
4286
|
+
addAlgoliaPreviewWhitelistEntry: import_contract16.oc.route({ method: "POST", path: "/algolia-preview-whitelist/add" }).input(AlgoliaDomainInputSchema).output(z20.void()),
|
|
4287
|
+
removeAlgoliaPreviewWhitelistEntry: import_contract16.oc.route({ method: "POST", path: "/algolia-preview-whitelist/remove" }).input(AlgoliaDomainInputSchema).output(z20.void()),
|
|
4288
|
+
listAlgoliaPreviewWhitelist: import_contract16.oc.route({ method: "GET", path: "/algolia-preview-whitelist/list" }).output(ListAlgoliaPreviewWhitelistResponseSchema),
|
|
4289
|
+
deleteDocsSite: import_contract16.oc.route({ method: "POST", path: "/delete" }).input(DeleteDocsSiteInputSchema).output(z20.void()),
|
|
4251
4290
|
/**
|
|
4252
4291
|
* Removes a single custom-domain alias from a docs site, leaving the
|
|
4253
4292
|
* Fern-URL sibling intact. Use this when un-binding a custom domain
|
|
@@ -4256,13 +4295,13 @@ var docsV2WriteContract = {
|
|
|
4256
4295
|
*
|
|
4257
4296
|
* Idempotent: succeeds with no-op if the URL is not registered.
|
|
4258
4297
|
*/
|
|
4259
|
-
removeCustomDomainAlias:
|
|
4260
|
-
registerTranslation:
|
|
4298
|
+
removeCustomDomainAlias: import_contract16.oc.route({ method: "POST", path: "/remove-custom-domain-alias" }).input(RemoveCustomDomainAliasInputSchema).output(z20.void()),
|
|
4299
|
+
registerTranslation: import_contract16.oc.route({ method: "POST", path: "/translations/register" }).input(RegisterTranslationInputSchema).output(RegisterTranslationResponseSchema)
|
|
4261
4300
|
};
|
|
4262
4301
|
|
|
4263
4302
|
// src/orpc-client/docs/v2/write/client.ts
|
|
4264
4303
|
function createDocsV2WriteClient(options) {
|
|
4265
|
-
const link = new
|
|
4304
|
+
const link = new import_fetch8.OpenAPILink(docsV2WriteContract, {
|
|
4266
4305
|
url: `${options.baseUrl}/v2/registry/docs`,
|
|
4267
4306
|
headers: () => ({
|
|
4268
4307
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -4270,14 +4309,15 @@ function createDocsV2WriteClient(options) {
|
|
|
4270
4309
|
}),
|
|
4271
4310
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4272
4311
|
});
|
|
4273
|
-
return (0,
|
|
4312
|
+
return (0, import_client8.createORPCClient)(link);
|
|
4274
4313
|
}
|
|
4275
4314
|
|
|
4276
4315
|
// src/orpc-client/docs/client.ts
|
|
4277
4316
|
function createDocsClient(options) {
|
|
4278
4317
|
return {
|
|
4279
4318
|
v1: {
|
|
4280
|
-
read: createDocsV1ReadClient(options)
|
|
4319
|
+
read: createDocsV1ReadClient(options),
|
|
4320
|
+
write: createDocsV1WriteClient(options)
|
|
4281
4321
|
},
|
|
4282
4322
|
v2: {
|
|
4283
4323
|
read: createDocsV2ReadClient(options),
|
|
@@ -4289,22 +4329,22 @@ function createDocsClient(options) {
|
|
|
4289
4329
|
}
|
|
4290
4330
|
|
|
4291
4331
|
// src/orpc-client/docs-cache/client.ts
|
|
4292
|
-
var
|
|
4293
|
-
var
|
|
4332
|
+
var import_client15 = require("@orpc/client");
|
|
4333
|
+
var import_fetch9 = require("@orpc/openapi-client/fetch");
|
|
4294
4334
|
|
|
4295
4335
|
// src/orpc-client/docs-cache/contract.ts
|
|
4296
|
-
var
|
|
4297
|
-
var
|
|
4298
|
-
var InvalidateCachedDocsInputSchema =
|
|
4299
|
-
url:
|
|
4336
|
+
var import_contract18 = require("@orpc/contract");
|
|
4337
|
+
var z21 = __toESM(require("zod"), 1);
|
|
4338
|
+
var InvalidateCachedDocsInputSchema = z21.object({
|
|
4339
|
+
url: z21.string()
|
|
4300
4340
|
});
|
|
4301
4341
|
var docsCacheContract = {
|
|
4302
|
-
invalidate:
|
|
4342
|
+
invalidate: import_contract18.oc.route({ method: "POST", path: "/invalidate" }).input(InvalidateCachedDocsInputSchema).output(z21.void())
|
|
4303
4343
|
};
|
|
4304
4344
|
|
|
4305
4345
|
// src/orpc-client/docs-cache/client.ts
|
|
4306
4346
|
function createDocsCacheClient(options) {
|
|
4307
|
-
const link = new
|
|
4347
|
+
const link = new import_fetch9.OpenAPILink(docsCacheContract, {
|
|
4308
4348
|
url: `${options.baseUrl}/docs-cache`,
|
|
4309
4349
|
headers: () => ({
|
|
4310
4350
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -4312,14 +4352,14 @@ function createDocsCacheClient(options) {
|
|
|
4312
4352
|
}),
|
|
4313
4353
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4314
4354
|
});
|
|
4315
|
-
return (0,
|
|
4355
|
+
return (0, import_client15.createORPCClient)(link);
|
|
4316
4356
|
}
|
|
4317
4357
|
|
|
4318
4358
|
// src/orpc-client/docs-deployment/client.ts
|
|
4319
|
-
var
|
|
4320
|
-
var
|
|
4359
|
+
var import_client16 = require("@orpc/client");
|
|
4360
|
+
var import_fetch10 = require("@orpc/openapi-client/fetch");
|
|
4321
4361
|
function createDocsDeploymentClient(options) {
|
|
4322
|
-
const link = new
|
|
4362
|
+
const link = new import_fetch10.OpenAPILink(docsDeploymentContract, {
|
|
4323
4363
|
url: `${options.baseUrl}/docs-deployment`,
|
|
4324
4364
|
headers: () => ({
|
|
4325
4365
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -4327,58 +4367,58 @@ function createDocsDeploymentClient(options) {
|
|
|
4327
4367
|
}),
|
|
4328
4368
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
4329
4369
|
});
|
|
4330
|
-
return (0,
|
|
4370
|
+
return (0, import_client16.createORPCClient)(link);
|
|
4331
4371
|
}
|
|
4332
4372
|
|
|
4333
4373
|
// src/orpc-client/docs-ledger/client.ts
|
|
4334
|
-
var
|
|
4335
|
-
var
|
|
4374
|
+
var import_client17 = require("@orpc/client");
|
|
4375
|
+
var import_fetch11 = require("@orpc/openapi-client/fetch");
|
|
4336
4376
|
|
|
4337
4377
|
// src/orpc-client/docs-ledger/contract.ts
|
|
4338
|
-
var
|
|
4339
|
-
var
|
|
4340
|
-
var MissingContentSchema =
|
|
4341
|
-
hash:
|
|
4342
|
-
uploadUrl:
|
|
4378
|
+
var import_contract21 = require("@orpc/contract");
|
|
4379
|
+
var z22 = __toESM(require("zod"), 1);
|
|
4380
|
+
var MissingContentSchema = z22.object({
|
|
4381
|
+
hash: z22.string(),
|
|
4382
|
+
uploadUrl: z22.string()
|
|
4343
4383
|
});
|
|
4344
|
-
var RegisterResponseSchema =
|
|
4345
|
-
deploymentHash:
|
|
4346
|
-
missingContent:
|
|
4384
|
+
var RegisterResponseSchema = z22.object({
|
|
4385
|
+
deploymentHash: z22.string(),
|
|
4386
|
+
missingContent: z22.array(MissingContentSchema)
|
|
4347
4387
|
});
|
|
4348
|
-
var FinishResponseSchema =
|
|
4349
|
-
deploymentId:
|
|
4388
|
+
var FinishResponseSchema = z22.object({
|
|
4389
|
+
deploymentId: z22.string(),
|
|
4350
4390
|
/** ID of the canonical (fern URL) site row. */
|
|
4351
|
-
siteId:
|
|
4391
|
+
siteId: z22.string(),
|
|
4352
4392
|
/**
|
|
4353
4393
|
* IDs of any additional site rows created for `customDomains` URLs
|
|
4354
4394
|
* (ADR 0010). Empty when the publish has no `customDomains`. One ID
|
|
4355
4395
|
* per parsed customDomain, in the same order as the input.
|
|
4356
4396
|
*/
|
|
4357
|
-
additionalSiteIds:
|
|
4358
|
-
deploymentHash:
|
|
4359
|
-
reusedDeployment:
|
|
4397
|
+
additionalSiteIds: z22.array(z22.string()).default([]),
|
|
4398
|
+
deploymentHash: z22.string(),
|
|
4399
|
+
reusedDeployment: z22.boolean(),
|
|
4360
4400
|
/**
|
|
4361
4401
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
4362
4402
|
* finish input. Absent when no translations were included.
|
|
4363
4403
|
*/
|
|
4364
|
-
translationsProcessed:
|
|
4404
|
+
translationsProcessed: z22.array(z22.object({ locale: z22.string(), segmentsAdded: z22.number() })).optional()
|
|
4365
4405
|
});
|
|
4366
|
-
var ArchiveSiteInputSchema =
|
|
4367
|
-
siteId:
|
|
4406
|
+
var ArchiveSiteInputSchema = z22.object({
|
|
4407
|
+
siteId: z22.string()
|
|
4368
4408
|
});
|
|
4369
|
-
var ArchiveSiteResponseSchema =
|
|
4370
|
-
status:
|
|
4409
|
+
var ArchiveSiteResponseSchema = z22.object({
|
|
4410
|
+
status: z22.enum(["archived", "already_archived", "not_found"])
|
|
4371
4411
|
});
|
|
4372
|
-
var BlobRefSchema =
|
|
4373
|
-
hash:
|
|
4374
|
-
contentType:
|
|
4375
|
-
contentLength:
|
|
4412
|
+
var BlobRefSchema = z22.object({
|
|
4413
|
+
hash: z22.string(),
|
|
4414
|
+
contentType: z22.string(),
|
|
4415
|
+
contentLength: z22.number()
|
|
4376
4416
|
});
|
|
4377
|
-
var PageBlobRefSchema =
|
|
4417
|
+
var PageBlobRefSchema = z22.object({
|
|
4378
4418
|
/** SHA-256 hex of the page content bytes. */
|
|
4379
|
-
hash:
|
|
4380
|
-
contentType:
|
|
4381
|
-
contentLength:
|
|
4419
|
+
hash: z22.string(),
|
|
4420
|
+
contentType: z22.string().default("text/markdown"),
|
|
4421
|
+
contentLength: z22.number(),
|
|
4382
4422
|
/**
|
|
4383
4423
|
* Bare `fullPath`s of the file/image artifacts this page's rendered
|
|
4384
4424
|
* markdown references (the `<fullPath>` of each `file:<fullPath>` token).
|
|
@@ -4388,35 +4428,35 @@ var PageBlobRefSchema = z21.object({
|
|
|
4388
4428
|
* (ADR 0016, "File metadata on the render path"). Optional — older CLIs
|
|
4389
4429
|
* omit it and the page simply contributes no shard-side file identities.
|
|
4390
4430
|
*/
|
|
4391
|
-
referencedFiles:
|
|
4431
|
+
referencedFiles: z22.array(z22.string()).optional()
|
|
4392
4432
|
});
|
|
4393
|
-
var FileManifestEntrySchema =
|
|
4433
|
+
var FileManifestEntrySchema = z22.object({
|
|
4394
4434
|
/** SHA-256 hex of the file bytes (= CAS content hash). */
|
|
4395
|
-
hash:
|
|
4396
|
-
contentType:
|
|
4397
|
-
contentLength:
|
|
4435
|
+
hash: z22.string(),
|
|
4436
|
+
contentType: z22.string(),
|
|
4437
|
+
contentLength: z22.number(),
|
|
4398
4438
|
/** Original filename (e.g. "logo.png"). Used for Content-Disposition and URL cosmetics. */
|
|
4399
|
-
filename:
|
|
4439
|
+
filename: z22.string(),
|
|
4400
4440
|
/** Image width in pixels (images only). */
|
|
4401
|
-
width:
|
|
4441
|
+
width: z22.number().optional(),
|
|
4402
4442
|
/** Image height in pixels (images only). */
|
|
4403
|
-
height:
|
|
4443
|
+
height: z22.number().optional(),
|
|
4404
4444
|
/** Base64-encoded blur placeholder (images only). */
|
|
4405
|
-
blurDataURL:
|
|
4445
|
+
blurDataURL: z22.string().optional()
|
|
4406
4446
|
});
|
|
4407
|
-
var ImageRefSchema =
|
|
4408
|
-
path:
|
|
4409
|
-
width:
|
|
4410
|
-
height:
|
|
4447
|
+
var ImageRefSchema = z22.object({
|
|
4448
|
+
path: z22.string(),
|
|
4449
|
+
width: z22.number(),
|
|
4450
|
+
height: z22.number()
|
|
4411
4451
|
});
|
|
4412
|
-
var PathOrUrlSchema =
|
|
4413
|
-
|
|
4414
|
-
|
|
4452
|
+
var PathOrUrlSchema = z22.discriminatedUnion("type", [
|
|
4453
|
+
z22.object({ type: z22.literal("path"), value: z22.string() }),
|
|
4454
|
+
z22.object({ type: z22.literal("url"), value: z22.string() })
|
|
4415
4455
|
]);
|
|
4416
|
-
var RgbaSchema =
|
|
4417
|
-
var BackgroundColorSchema =
|
|
4418
|
-
|
|
4419
|
-
|
|
4456
|
+
var RgbaSchema = z22.object({ r: z22.number(), g: z22.number(), b: z22.number(), a: z22.number().optional() });
|
|
4457
|
+
var BackgroundColorSchema = z22.discriminatedUnion("type", [
|
|
4458
|
+
z22.object({ type: z22.literal("solid"), ...RgbaSchema.shape }),
|
|
4459
|
+
z22.object({ type: z22.literal("gradient") })
|
|
4420
4460
|
]);
|
|
4421
4461
|
var ACCENT_SCALE_KEYS = [
|
|
4422
4462
|
"accent1",
|
|
@@ -4433,9 +4473,9 @@ var ACCENT_SCALE_KEYS = [
|
|
|
4433
4473
|
"accent12"
|
|
4434
4474
|
];
|
|
4435
4475
|
var accentScaleShape = Object.fromEntries(ACCENT_SCALE_KEYS.map((key) => [key, RgbaSchema.optional()]));
|
|
4436
|
-
var LedgerThemeConfigSchema =
|
|
4476
|
+
var LedgerThemeConfigSchema = z22.object({
|
|
4437
4477
|
logo: ImageRefSchema.optional(),
|
|
4438
|
-
backgroundImage:
|
|
4478
|
+
backgroundImage: z22.string().optional(),
|
|
4439
4479
|
accentPrimary: RgbaSchema,
|
|
4440
4480
|
background: BackgroundColorSchema.optional(),
|
|
4441
4481
|
border: RgbaSchema.optional(),
|
|
@@ -4444,51 +4484,51 @@ var LedgerThemeConfigSchema = z21.object({
|
|
|
4444
4484
|
cardBackground: RgbaSchema.optional(),
|
|
4445
4485
|
...accentScaleShape
|
|
4446
4486
|
});
|
|
4447
|
-
var LedgerColorsConfigSchema =
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
type:
|
|
4487
|
+
var LedgerColorsConfigSchema = z22.discriminatedUnion("type", [
|
|
4488
|
+
z22.object({ type: z22.literal("dark"), ...LedgerThemeConfigSchema.shape }),
|
|
4489
|
+
z22.object({ type: z22.literal("light"), ...LedgerThemeConfigSchema.shape }),
|
|
4490
|
+
z22.object({
|
|
4491
|
+
type: z22.literal("darkAndLight"),
|
|
4452
4492
|
dark: LedgerThemeConfigSchema,
|
|
4453
4493
|
light: LedgerThemeConfigSchema
|
|
4454
4494
|
})
|
|
4455
4495
|
]);
|
|
4456
|
-
var LedgerFontVariantSchema =
|
|
4457
|
-
fontFile:
|
|
4458
|
-
weight:
|
|
4459
|
-
style:
|
|
4460
|
-
});
|
|
4461
|
-
var LedgerFontConfigSchema =
|
|
4462
|
-
|
|
4463
|
-
type:
|
|
4464
|
-
name:
|
|
4465
|
-
variants:
|
|
4466
|
-
display:
|
|
4467
|
-
fallback:
|
|
4468
|
-
fontVariationSettings:
|
|
4496
|
+
var LedgerFontVariantSchema = z22.object({
|
|
4497
|
+
fontFile: z22.string(),
|
|
4498
|
+
weight: z22.array(z22.string()).optional(),
|
|
4499
|
+
style: z22.array(z22.enum(["normal", "italic"])).optional()
|
|
4500
|
+
});
|
|
4501
|
+
var LedgerFontConfigSchema = z22.discriminatedUnion("type", [
|
|
4502
|
+
z22.object({
|
|
4503
|
+
type: z22.literal("custom"),
|
|
4504
|
+
name: z22.string(),
|
|
4505
|
+
variants: z22.array(LedgerFontVariantSchema),
|
|
4506
|
+
display: z22.enum(["auto", "block", "swap", "fallback", "optional"]).optional(),
|
|
4507
|
+
fallback: z22.array(z22.string()).optional(),
|
|
4508
|
+
fontVariationSettings: z22.string().optional()
|
|
4469
4509
|
})
|
|
4470
4510
|
]);
|
|
4471
|
-
var LedgerTypographySchema =
|
|
4511
|
+
var LedgerTypographySchema = z22.object({
|
|
4472
4512
|
headingsFont: LedgerFontConfigSchema.optional(),
|
|
4473
4513
|
bodyFont: LedgerFontConfigSchema.optional(),
|
|
4474
4514
|
codeFont: LedgerFontConfigSchema.optional()
|
|
4475
4515
|
});
|
|
4476
|
-
var LedgerJsFileSchema =
|
|
4477
|
-
path:
|
|
4478
|
-
strategy:
|
|
4516
|
+
var LedgerJsFileSchema = z22.object({
|
|
4517
|
+
path: z22.string(),
|
|
4518
|
+
strategy: z22.enum(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
4479
4519
|
});
|
|
4480
|
-
var LedgerJsConfigSchema =
|
|
4481
|
-
remote:
|
|
4482
|
-
|
|
4483
|
-
url:
|
|
4484
|
-
strategy:
|
|
4520
|
+
var LedgerJsConfigSchema = z22.object({
|
|
4521
|
+
remote: z22.array(
|
|
4522
|
+
z22.object({
|
|
4523
|
+
url: z22.string(),
|
|
4524
|
+
strategy: z22.enum(["beforeInteractive", "afterInteractive", "lazyOnload"]).optional()
|
|
4485
4525
|
})
|
|
4486
4526
|
).optional(),
|
|
4487
|
-
files:
|
|
4488
|
-
inline:
|
|
4527
|
+
files: z22.array(LedgerJsFileSchema).optional(),
|
|
4528
|
+
inline: z22.array(z22.string()).optional()
|
|
4489
4529
|
});
|
|
4490
|
-
var LedgerMetadataConfigSchema =
|
|
4491
|
-
|
|
4530
|
+
var LedgerMetadataConfigSchema = z22.record(z22.string(), z22.unknown()).and(
|
|
4531
|
+
z22.object({
|
|
4492
4532
|
"og:image": PathOrUrlSchema.optional(),
|
|
4493
4533
|
"og:logo": PathOrUrlSchema.optional(),
|
|
4494
4534
|
"twitter:image": PathOrUrlSchema.optional(),
|
|
@@ -4496,83 +4536,83 @@ var LedgerMetadataConfigSchema = z21.record(z21.string(), z21.unknown()).and(
|
|
|
4496
4536
|
"og:dynamic:background-image": PathOrUrlSchema.optional()
|
|
4497
4537
|
})
|
|
4498
4538
|
);
|
|
4499
|
-
var NavbarLinksFieldSchema =
|
|
4500
|
-
var FooterLinksFieldSchema =
|
|
4539
|
+
var NavbarLinksFieldSchema = z22.array(NavbarLinkSchema);
|
|
4540
|
+
var FooterLinksFieldSchema = z22.array(FooterLinkSchema);
|
|
4501
4541
|
var LayoutFieldSchema = DocsLayoutConfigSchema;
|
|
4502
4542
|
var ThemeFieldSchema = DocsThemeConfigSchema;
|
|
4503
4543
|
var SettingsFieldSchema = DocsSettingsConfigSchema;
|
|
4504
4544
|
var AnalyticsFieldSchema = AnalyticsConfigSchema;
|
|
4505
4545
|
var AIChatFieldSchema = AIChatConfigSchema;
|
|
4506
4546
|
var PageActionsFieldSchema = PageActionsConfigSchema;
|
|
4507
|
-
var LedgerAgentsConfigSchema =
|
|
4508
|
-
pageDirective:
|
|
4509
|
-
pageDescriptionSource:
|
|
4510
|
-
siteDescription:
|
|
4511
|
-
});
|
|
4512
|
-
var LedgerConfigSchema =
|
|
4513
|
-
title:
|
|
4514
|
-
rootSlug:
|
|
4515
|
-
defaultLanguage:
|
|
4516
|
-
translations:
|
|
4517
|
-
defaultLocale:
|
|
4518
|
-
translations:
|
|
4547
|
+
var LedgerAgentsConfigSchema = z22.object({
|
|
4548
|
+
pageDirective: z22.string().optional(),
|
|
4549
|
+
pageDescriptionSource: z22.enum(["description", "subtitle"]).optional(),
|
|
4550
|
+
siteDescription: z22.string().optional()
|
|
4551
|
+
});
|
|
4552
|
+
var LedgerConfigSchema = z22.object({
|
|
4553
|
+
title: z22.string().optional(),
|
|
4554
|
+
rootSlug: z22.string().optional(),
|
|
4555
|
+
defaultLanguage: z22.string().optional(),
|
|
4556
|
+
translations: z22.object({
|
|
4557
|
+
defaultLocale: z22.string(),
|
|
4558
|
+
translations: z22.array(z22.string()).optional()
|
|
4519
4559
|
}).optional(),
|
|
4520
|
-
announcement:
|
|
4560
|
+
announcement: z22.object({ text: z22.string() }).optional(),
|
|
4521
4561
|
navbarLinks: NavbarLinksFieldSchema.optional(),
|
|
4522
4562
|
footerLinks: FooterLinksFieldSchema.optional(),
|
|
4523
|
-
logoHeight:
|
|
4524
|
-
logoHref:
|
|
4525
|
-
logoRightText:
|
|
4563
|
+
logoHeight: z22.number().optional(),
|
|
4564
|
+
logoHref: z22.string().optional(),
|
|
4565
|
+
logoRightText: z22.string().optional(),
|
|
4526
4566
|
/** fullPath of the favicon file artifact (any extension: .svg/.png/.ico). */
|
|
4527
|
-
favicon:
|
|
4567
|
+
favicon: z22.string().nullish(),
|
|
4528
4568
|
agents: LedgerAgentsConfigSchema.optional(),
|
|
4529
4569
|
metadata: LedgerMetadataConfigSchema.optional(),
|
|
4530
|
-
redirects:
|
|
4570
|
+
redirects: z22.array(z22.object({ source: z22.string(), destination: z22.string(), permanent: z22.boolean().optional() })).optional(),
|
|
4531
4571
|
colorsV3: LedgerColorsConfigSchema.optional(),
|
|
4532
4572
|
layout: LayoutFieldSchema.optional(),
|
|
4533
4573
|
theme: ThemeFieldSchema.optional(),
|
|
4534
4574
|
settings: SettingsFieldSchema.optional(),
|
|
4535
4575
|
typographyV2: LedgerTypographySchema.optional(),
|
|
4536
4576
|
analyticsConfig: AnalyticsFieldSchema.optional(),
|
|
4537
|
-
integrations:
|
|
4538
|
-
intercom:
|
|
4577
|
+
integrations: z22.object({
|
|
4578
|
+
intercom: z22.string().optional()
|
|
4539
4579
|
}).optional(),
|
|
4540
|
-
css:
|
|
4580
|
+
css: z22.object({ inline: z22.array(z22.string()).optional() }).optional(),
|
|
4541
4581
|
js: LedgerJsConfigSchema.optional(),
|
|
4542
4582
|
aiChatConfig: AIChatFieldSchema.optional(),
|
|
4543
4583
|
pageActions: PageActionsFieldSchema.optional(),
|
|
4544
|
-
editThisPageLaunch:
|
|
4584
|
+
editThisPageLaunch: z22.enum(["github", "dashboard"]).optional(),
|
|
4545
4585
|
/**
|
|
4546
4586
|
* Explicit edit-this-page GitHub config from docs.yml (ADR 0012 parity).
|
|
4547
4587
|
* When present, the loader synthesises `editThisPageUrl` from these fields
|
|
4548
4588
|
* instead of relying on deployment-scoped git provenance. This matches the
|
|
4549
4589
|
* v2 behaviour where the CLI derives the URL from the declared config.
|
|
4550
4590
|
*/
|
|
4551
|
-
editThisPageGithub:
|
|
4552
|
-
owner:
|
|
4553
|
-
repo:
|
|
4554
|
-
branch:
|
|
4555
|
-
host:
|
|
4591
|
+
editThisPageGithub: z22.object({
|
|
4592
|
+
owner: z22.string(),
|
|
4593
|
+
repo: z22.string(),
|
|
4594
|
+
branch: z22.string().default("main"),
|
|
4595
|
+
host: z22.string().default("https://github.com")
|
|
4556
4596
|
}).optional(),
|
|
4557
|
-
header:
|
|
4558
|
-
footer:
|
|
4559
|
-
});
|
|
4560
|
-
var MetadataStringArraySchema =
|
|
4561
|
-
var FeatureFlagMetadataSchema =
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
flag:
|
|
4566
|
-
fallbackValue:
|
|
4567
|
-
match:
|
|
4597
|
+
header: z22.string().optional(),
|
|
4598
|
+
footer: z22.string().optional()
|
|
4599
|
+
});
|
|
4600
|
+
var MetadataStringArraySchema = z22.array(z22.string());
|
|
4601
|
+
var FeatureFlagMetadataSchema = z22.array(
|
|
4602
|
+
z22.union([
|
|
4603
|
+
z22.string(),
|
|
4604
|
+
z22.object({
|
|
4605
|
+
flag: z22.string(),
|
|
4606
|
+
fallbackValue: z22.unknown().optional(),
|
|
4607
|
+
match: z22.unknown().optional()
|
|
4568
4608
|
})
|
|
4569
4609
|
])
|
|
4570
4610
|
);
|
|
4571
|
-
var LinkTargetSchema2 =
|
|
4572
|
-
var CollapsedSchema =
|
|
4573
|
-
var LedgerAvailabilitySchema =
|
|
4611
|
+
var LinkTargetSchema2 = z22.enum(["_blank", "_self", "_parent", "_top"]);
|
|
4612
|
+
var CollapsedSchema = z22.union([z22.boolean(), z22.literal("open-by-default")]);
|
|
4613
|
+
var LedgerAvailabilitySchema = z22.union([
|
|
4574
4614
|
AvailabilitySchema,
|
|
4575
|
-
|
|
4615
|
+
z22.enum([
|
|
4576
4616
|
"alpha",
|
|
4577
4617
|
"stable",
|
|
4578
4618
|
"generally-available",
|
|
@@ -4584,7 +4624,7 @@ var LedgerAvailabilitySchema = z21.union([
|
|
|
4584
4624
|
"legacy"
|
|
4585
4625
|
])
|
|
4586
4626
|
]);
|
|
4587
|
-
var LedgerArtifactTypeSchema =
|
|
4627
|
+
var LedgerArtifactTypeSchema = z22.enum([
|
|
4588
4628
|
"markdown",
|
|
4589
4629
|
"page",
|
|
4590
4630
|
"rest",
|
|
@@ -4598,170 +4638,170 @@ var LedgerArtifactTypeSchema = z21.enum([
|
|
|
4598
4638
|
"image",
|
|
4599
4639
|
"redirect"
|
|
4600
4640
|
]);
|
|
4601
|
-
var LedgerMetadataBaseSchema =
|
|
4641
|
+
var LedgerMetadataBaseSchema = z22.object({}).passthrough();
|
|
4602
4642
|
var NodeMetadataFields = {
|
|
4603
|
-
title:
|
|
4604
|
-
slug:
|
|
4605
|
-
icon:
|
|
4606
|
-
authed:
|
|
4643
|
+
title: z22.string().optional(),
|
|
4644
|
+
slug: z22.string().optional(),
|
|
4645
|
+
icon: z22.string().optional(),
|
|
4646
|
+
authed: z22.boolean().optional(),
|
|
4607
4647
|
viewers: MetadataStringArraySchema.optional(),
|
|
4608
|
-
orphaned:
|
|
4648
|
+
orphaned: z22.boolean().optional(),
|
|
4609
4649
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
4610
4650
|
};
|
|
4611
4651
|
var ApiNodeMetadataFields = {
|
|
4612
4652
|
...NodeMetadataFields,
|
|
4613
|
-
apiDefinitionId:
|
|
4653
|
+
apiDefinitionId: z22.string(),
|
|
4614
4654
|
availability: LedgerAvailabilitySchema.optional()
|
|
4615
4655
|
};
|
|
4616
4656
|
var LedgerSegmentDetailMetadataObjectSchema = LedgerMetadataBaseSchema.extend({
|
|
4617
|
-
slug:
|
|
4618
|
-
default:
|
|
4619
|
-
subtitle:
|
|
4620
|
-
href:
|
|
4621
|
-
url:
|
|
4657
|
+
slug: z22.string().optional(),
|
|
4658
|
+
default: z22.boolean().optional(),
|
|
4659
|
+
subtitle: z22.string().optional(),
|
|
4660
|
+
href: z22.string().optional(),
|
|
4661
|
+
url: z22.string().optional(),
|
|
4622
4662
|
target: LinkTargetSchema2.optional(),
|
|
4623
|
-
image:
|
|
4624
|
-
pointsTo:
|
|
4663
|
+
image: z22.string().optional(),
|
|
4664
|
+
pointsTo: z22.string().optional(),
|
|
4625
4665
|
availability: LedgerAvailabilitySchema.optional(),
|
|
4626
|
-
tab_type:
|
|
4666
|
+
tab_type: z22.enum(["tab", "link", "changelog"]).optional()
|
|
4627
4667
|
});
|
|
4628
4668
|
var LedgerSegmentDetailMetadataSchema = LedgerSegmentDetailMetadataObjectSchema.nullable();
|
|
4629
|
-
var LedgerSegmentMetadataObjectSchema =
|
|
4669
|
+
var LedgerSegmentMetadataObjectSchema = z22.discriminatedUnion("type", [
|
|
4630
4670
|
LedgerMetadataBaseSchema.extend({
|
|
4631
|
-
type:
|
|
4671
|
+
type: z22.literal("tabRoot")
|
|
4632
4672
|
}),
|
|
4633
4673
|
LedgerMetadataBaseSchema.extend({
|
|
4634
|
-
type:
|
|
4635
|
-
title:
|
|
4636
|
-
icon:
|
|
4637
|
-
authed:
|
|
4674
|
+
type: z22.literal("section"),
|
|
4675
|
+
title: z22.string().optional(),
|
|
4676
|
+
icon: z22.string().optional(),
|
|
4677
|
+
authed: z22.boolean().optional(),
|
|
4638
4678
|
collapsed: CollapsedSchema.optional(),
|
|
4639
|
-
collapsible:
|
|
4640
|
-
collapsedByDefault:
|
|
4679
|
+
collapsible: z22.boolean().optional(),
|
|
4680
|
+
collapsedByDefault: z22.boolean().optional(),
|
|
4641
4681
|
availability: LedgerAvailabilitySchema.optional(),
|
|
4642
|
-
overviewPageId:
|
|
4643
|
-
noindex:
|
|
4644
|
-
pointsTo:
|
|
4682
|
+
overviewPageId: z22.string().optional(),
|
|
4683
|
+
noindex: z22.boolean().optional(),
|
|
4684
|
+
pointsTo: z22.string().optional(),
|
|
4645
4685
|
viewers: MetadataStringArraySchema.optional(),
|
|
4646
|
-
orphaned:
|
|
4686
|
+
orphaned: z22.boolean().optional(),
|
|
4647
4687
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
4648
4688
|
}),
|
|
4649
4689
|
LedgerMetadataBaseSchema.extend({
|
|
4650
|
-
type:
|
|
4651
|
-
title:
|
|
4652
|
-
icon:
|
|
4653
|
-
authed:
|
|
4654
|
-
apiDefinitionId:
|
|
4655
|
-
overviewPageId:
|
|
4656
|
-
noindex:
|
|
4690
|
+
type: z22.literal("apiReference"),
|
|
4691
|
+
title: z22.string().optional(),
|
|
4692
|
+
icon: z22.string().optional(),
|
|
4693
|
+
authed: z22.boolean().optional(),
|
|
4694
|
+
apiDefinitionId: z22.string().optional(),
|
|
4695
|
+
overviewPageId: z22.string().optional(),
|
|
4696
|
+
noindex: z22.boolean().optional(),
|
|
4657
4697
|
availability: LedgerAvailabilitySchema.optional(),
|
|
4658
|
-
pointsTo:
|
|
4659
|
-
paginated:
|
|
4660
|
-
showErrors:
|
|
4661
|
-
hideTitle:
|
|
4698
|
+
pointsTo: z22.string().optional(),
|
|
4699
|
+
paginated: z22.boolean().optional(),
|
|
4700
|
+
showErrors: z22.boolean().optional(),
|
|
4701
|
+
hideTitle: z22.boolean().optional(),
|
|
4662
4702
|
viewers: MetadataStringArraySchema.optional(),
|
|
4663
|
-
orphaned:
|
|
4703
|
+
orphaned: z22.boolean().optional(),
|
|
4664
4704
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
4665
4705
|
}),
|
|
4666
4706
|
LedgerMetadataBaseSchema.extend({
|
|
4667
|
-
type:
|
|
4668
|
-
title:
|
|
4669
|
-
icon:
|
|
4670
|
-
authed:
|
|
4671
|
-
apiDefinitionId:
|
|
4672
|
-
overviewPageId:
|
|
4673
|
-
noindex:
|
|
4707
|
+
type: z22.literal("apiPackage"),
|
|
4708
|
+
title: z22.string().optional(),
|
|
4709
|
+
icon: z22.string().optional(),
|
|
4710
|
+
authed: z22.boolean().optional(),
|
|
4711
|
+
apiDefinitionId: z22.string().optional(),
|
|
4712
|
+
overviewPageId: z22.string().optional(),
|
|
4713
|
+
noindex: z22.boolean().optional(),
|
|
4674
4714
|
availability: LedgerAvailabilitySchema.optional(),
|
|
4675
|
-
pointsTo:
|
|
4715
|
+
pointsTo: z22.string().optional(),
|
|
4676
4716
|
viewers: MetadataStringArraySchema.optional(),
|
|
4677
|
-
orphaned:
|
|
4717
|
+
orphaned: z22.boolean().optional(),
|
|
4678
4718
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
4679
4719
|
}),
|
|
4680
4720
|
LedgerMetadataBaseSchema.extend({
|
|
4681
|
-
type:
|
|
4682
|
-
title:
|
|
4683
|
-
icon:
|
|
4684
|
-
overviewPageId:
|
|
4685
|
-
apiDefinitionId:
|
|
4686
|
-
noindex:
|
|
4687
|
-
authed:
|
|
4721
|
+
type: z22.literal("changelog"),
|
|
4722
|
+
title: z22.string().optional(),
|
|
4723
|
+
icon: z22.string().optional(),
|
|
4724
|
+
overviewPageId: z22.string().optional(),
|
|
4725
|
+
apiDefinitionId: z22.string().optional(),
|
|
4726
|
+
noindex: z22.boolean().optional(),
|
|
4727
|
+
authed: z22.boolean().optional(),
|
|
4688
4728
|
viewers: MetadataStringArraySchema.optional(),
|
|
4689
|
-
orphaned:
|
|
4729
|
+
orphaned: z22.boolean().optional(),
|
|
4690
4730
|
featureFlags: FeatureFlagMetadataSchema.optional()
|
|
4691
4731
|
}),
|
|
4692
4732
|
LedgerMetadataBaseSchema.extend({
|
|
4693
|
-
type:
|
|
4733
|
+
type: z22.literal("files")
|
|
4694
4734
|
}),
|
|
4695
4735
|
LedgerMetadataBaseSchema.extend({
|
|
4696
|
-
type:
|
|
4736
|
+
type: z22.literal("redirects")
|
|
4697
4737
|
}),
|
|
4698
4738
|
LedgerMetadataBaseSchema.extend({
|
|
4699
|
-
type:
|
|
4739
|
+
type: z22.literal("productLink")
|
|
4700
4740
|
}),
|
|
4701
4741
|
LedgerMetadataBaseSchema.extend({
|
|
4702
|
-
type:
|
|
4742
|
+
type: z22.literal("tabLink")
|
|
4703
4743
|
})
|
|
4704
4744
|
]);
|
|
4705
4745
|
var LedgerSegmentMetadataSchema = LedgerSegmentMetadataObjectSchema;
|
|
4706
4746
|
var LedgerMarkdownMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4707
4747
|
...NodeMetadataFields,
|
|
4708
|
-
pageId:
|
|
4709
|
-
isOverview:
|
|
4710
|
-
noindex:
|
|
4748
|
+
pageId: z22.string().optional(),
|
|
4749
|
+
isOverview: z22.boolean().optional(),
|
|
4750
|
+
noindex: z22.boolean().optional()
|
|
4711
4751
|
});
|
|
4712
4752
|
var LedgerRestMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4713
4753
|
...ApiNodeMetadataFields,
|
|
4714
|
-
endpointId:
|
|
4754
|
+
endpointId: z22.string(),
|
|
4715
4755
|
method: HttpMethodSchema,
|
|
4716
|
-
isResponseStream:
|
|
4717
|
-
endpointPairKey:
|
|
4756
|
+
isResponseStream: z22.boolean().optional(),
|
|
4757
|
+
endpointPairKey: z22.string().optional()
|
|
4718
4758
|
});
|
|
4719
4759
|
var LedgerWebSocketMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4720
4760
|
...ApiNodeMetadataFields,
|
|
4721
|
-
webSocketId:
|
|
4761
|
+
webSocketId: z22.string()
|
|
4722
4762
|
});
|
|
4723
4763
|
var LedgerWebhookMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4724
4764
|
...ApiNodeMetadataFields,
|
|
4725
|
-
webhookId:
|
|
4765
|
+
webhookId: z22.string(),
|
|
4726
4766
|
// V1.WebhookNode carries the full HttpMethod union, so the read model must accept it too.
|
|
4727
4767
|
method: HttpMethodSchema
|
|
4728
4768
|
});
|
|
4729
4769
|
var LedgerGrpcMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4730
4770
|
...ApiNodeMetadataFields,
|
|
4731
|
-
grpcId:
|
|
4771
|
+
grpcId: z22.string(),
|
|
4732
4772
|
method: GrpcMethodSchema
|
|
4733
4773
|
});
|
|
4734
4774
|
var LedgerGraphQlMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4735
4775
|
...ApiNodeMetadataFields,
|
|
4736
|
-
graphqlOperationId:
|
|
4776
|
+
graphqlOperationId: z22.string(),
|
|
4737
4777
|
operationType: GraphQlOperationTypeSchema
|
|
4738
4778
|
});
|
|
4739
4779
|
var LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4740
4780
|
...NodeMetadataFields,
|
|
4741
|
-
pageId:
|
|
4742
|
-
noindex:
|
|
4743
|
-
date:
|
|
4781
|
+
pageId: z22.string(),
|
|
4782
|
+
noindex: z22.boolean().optional(),
|
|
4783
|
+
date: z22.string().optional(),
|
|
4744
4784
|
tags: MetadataStringArraySchema.optional()
|
|
4745
4785
|
});
|
|
4746
4786
|
var LedgerLinkMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4747
|
-
title:
|
|
4748
|
-
slug:
|
|
4749
|
-
icon:
|
|
4750
|
-
url:
|
|
4787
|
+
title: z22.string().optional(),
|
|
4788
|
+
slug: z22.string().optional(),
|
|
4789
|
+
icon: z22.string().optional(),
|
|
4790
|
+
url: z22.string(),
|
|
4751
4791
|
target: LinkTargetSchema2.optional()
|
|
4752
4792
|
});
|
|
4753
4793
|
var LedgerFileArtifactMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4754
|
-
contentType:
|
|
4755
|
-
contentLength:
|
|
4756
|
-
filename:
|
|
4757
|
-
width:
|
|
4758
|
-
height:
|
|
4759
|
-
blurDataURL:
|
|
4794
|
+
contentType: z22.string(),
|
|
4795
|
+
contentLength: z22.number().optional(),
|
|
4796
|
+
filename: z22.string(),
|
|
4797
|
+
width: z22.number().optional(),
|
|
4798
|
+
height: z22.number().optional(),
|
|
4799
|
+
blurDataURL: z22.string().optional()
|
|
4760
4800
|
});
|
|
4761
4801
|
var LedgerRedirectMetadataSchema = LedgerMetadataBaseSchema.extend({
|
|
4762
|
-
href:
|
|
4802
|
+
href: z22.string().optional()
|
|
4763
4803
|
});
|
|
4764
|
-
var LedgerArtifactMetadataSchema =
|
|
4804
|
+
var LedgerArtifactMetadataSchema = z22.union([
|
|
4765
4805
|
LedgerMarkdownMetadataSchema,
|
|
4766
4806
|
LedgerRestMetadataSchema,
|
|
4767
4807
|
LedgerWebSocketMetadataSchema,
|
|
@@ -4789,23 +4829,23 @@ var LEDGER_ARTIFACT_METADATA_SCHEMAS = {
|
|
|
4789
4829
|
};
|
|
4790
4830
|
function artifactTypeVariant(base, type) {
|
|
4791
4831
|
return base.extend({
|
|
4792
|
-
artifactType:
|
|
4832
|
+
artifactType: z22.literal(type),
|
|
4793
4833
|
artifactMetadata: LEDGER_ARTIFACT_METADATA_SCHEMAS[type]
|
|
4794
4834
|
});
|
|
4795
4835
|
}
|
|
4796
|
-
var NavRouteBaseSchema =
|
|
4797
|
-
fullPath:
|
|
4798
|
-
artifactId:
|
|
4799
|
-
hidden:
|
|
4800
|
-
displaySortOrder:
|
|
4836
|
+
var NavRouteBaseSchema = z22.object({
|
|
4837
|
+
fullPath: z22.string().nullable(),
|
|
4838
|
+
artifactId: z22.string(),
|
|
4839
|
+
hidden: z22.boolean(),
|
|
4840
|
+
displaySortOrder: z22.number().nullable().optional()
|
|
4801
4841
|
});
|
|
4802
4842
|
function navRouteVariant(type) {
|
|
4803
4843
|
return NavRouteBaseSchema.extend({
|
|
4804
|
-
type:
|
|
4844
|
+
type: z22.literal(type),
|
|
4805
4845
|
metadata: LEDGER_ARTIFACT_METADATA_SCHEMAS[type]
|
|
4806
4846
|
});
|
|
4807
4847
|
}
|
|
4808
|
-
var LedgerNavRouteSchema =
|
|
4848
|
+
var LedgerNavRouteSchema = z22.discriminatedUnion("type", [
|
|
4809
4849
|
navRouteVariant("markdown"),
|
|
4810
4850
|
navRouteVariant("page"),
|
|
4811
4851
|
navRouteVariant("rest"),
|
|
@@ -4819,35 +4859,35 @@ var LedgerNavRouteSchema = z21.discriminatedUnion("type", [
|
|
|
4819
4859
|
navRouteVariant("image"),
|
|
4820
4860
|
navRouteVariant("redirect")
|
|
4821
4861
|
]);
|
|
4822
|
-
var DocsPublishGitInputSchema =
|
|
4862
|
+
var DocsPublishGitInputSchema = z22.object({
|
|
4823
4863
|
/** Full HTTPS URL of the repo (e.g. `https://github.com/acme/docs`). */
|
|
4824
|
-
repoUrl:
|
|
4864
|
+
repoUrl: z22.string(),
|
|
4825
4865
|
/** Branch the publish ran from. Used to build the edit-this-page URL. */
|
|
4826
|
-
branch:
|
|
4866
|
+
branch: z22.string(),
|
|
4827
4867
|
/**
|
|
4828
4868
|
* Optional commit SHA captured when the CLI knows it. Currently surfaced
|
|
4829
4869
|
* on `versionMetadata` for diagnostics but not used in URL synthesis.
|
|
4830
4870
|
*/
|
|
4831
|
-
commitSha:
|
|
4871
|
+
commitSha: z22.string().optional()
|
|
4832
4872
|
});
|
|
4833
|
-
var DocsContentFieldsSchema =
|
|
4834
|
-
root:
|
|
4835
|
-
pages:
|
|
4873
|
+
var DocsContentFieldsSchema = z22.object({
|
|
4874
|
+
root: z22.unknown(),
|
|
4875
|
+
pages: z22.record(z22.string(), PageBlobRefSchema),
|
|
4836
4876
|
apiManifest: BlobRefSchema.nullish(),
|
|
4837
4877
|
config: LedgerConfigSchema.optional(),
|
|
4838
4878
|
/**
|
|
4839
4879
|
* Content-addressable file manifest: maps fullPath → file metadata + CAS blob ref.
|
|
4840
4880
|
* Each entry becomes a file/image artifact in the ledger with nav routing by fullPath.
|
|
4841
4881
|
*/
|
|
4842
|
-
fileManifest:
|
|
4882
|
+
fileManifest: z22.record(z22.string(), FileManifestEntrySchema).optional(),
|
|
4843
4883
|
// TODO: jsFiles is a single blob containing all custom React component bundles.
|
|
4844
4884
|
// These should eventually be individual artifacts so they can be loaded/cached
|
|
4845
4885
|
// independently rather than as a monolithic bundle.
|
|
4846
4886
|
jsFiles: BlobRefSchema.nullish(),
|
|
4847
4887
|
redirects: BlobRefSchema.nullish(),
|
|
4848
|
-
locale:
|
|
4849
|
-
version:
|
|
4850
|
-
repo:
|
|
4888
|
+
locale: z22.string().default("en"),
|
|
4889
|
+
version: z22.string().nullish(),
|
|
4890
|
+
repo: z22.string().nullish(),
|
|
4851
4891
|
/**
|
|
4852
4892
|
* Git provenance for the deployment (ADR 0012 / FER-10489). Optional —
|
|
4853
4893
|
* older CLI versions don't send it and the columns stay NULL. When
|
|
@@ -4858,14 +4898,14 @@ var DocsContentFieldsSchema = z21.object({
|
|
|
4858
4898
|
});
|
|
4859
4899
|
var LocaleEntrySchemaInternal = DocsContentFieldsSchema.extend({
|
|
4860
4900
|
/** Locale identifier (e.g. "en", "es", "ja"). Required — no default. */
|
|
4861
|
-
locale:
|
|
4901
|
+
locale: z22.string()
|
|
4862
4902
|
});
|
|
4863
4903
|
var LocaleEntrySchema = LocaleEntrySchemaInternal;
|
|
4864
|
-
var DocsPublishInputSchemaInternal =
|
|
4865
|
-
orgId:
|
|
4866
|
-
domain:
|
|
4867
|
-
basepath:
|
|
4868
|
-
basepathAware:
|
|
4904
|
+
var DocsPublishInputSchemaInternal = z22.object({
|
|
4905
|
+
orgId: z22.string(),
|
|
4906
|
+
domain: z22.string(),
|
|
4907
|
+
basepath: z22.string().default(""),
|
|
4908
|
+
basepathAware: z22.boolean().nullish(),
|
|
4869
4909
|
/**
|
|
4870
4910
|
* Additional URLs the deployment should be served from (e.g. a customer's
|
|
4871
4911
|
* vanity hostname `docs.example.com` alongside the canonical fern URL).
|
|
@@ -4876,22 +4916,22 @@ var DocsPublishInputSchemaInternal = z21.object({
|
|
|
4876
4916
|
*
|
|
4877
4917
|
* See ADR 0010.
|
|
4878
4918
|
*/
|
|
4879
|
-
customDomains:
|
|
4880
|
-
previewId:
|
|
4919
|
+
customDomains: z22.array(z22.string()).default([]),
|
|
4920
|
+
previewId: z22.string().nullish(),
|
|
4881
4921
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
4882
|
-
defaultLocale:
|
|
4922
|
+
defaultLocale: z22.string().default("en"),
|
|
4883
4923
|
/**
|
|
4884
4924
|
* All locales for this deployment. Each locale goes through the same
|
|
4885
4925
|
* transform → upload → verify → persist pipeline.
|
|
4886
4926
|
*/
|
|
4887
|
-
locales:
|
|
4927
|
+
locales: z22.array(LocaleEntrySchema).min(1)
|
|
4888
4928
|
}).refine((data) => data.locales.some((l) => l.locale === data.defaultLocale), {
|
|
4889
4929
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
4890
4930
|
path: ["defaultLocale"]
|
|
4891
4931
|
});
|
|
4892
4932
|
var DocsPublishInputSchema = DocsPublishInputSchemaInternal;
|
|
4893
4933
|
var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial().extend({
|
|
4894
|
-
orgId:
|
|
4934
|
+
orgId: z22.string(),
|
|
4895
4935
|
/**
|
|
4896
4936
|
* Optional caller-supplied identifier for the preview hostname. Sanitized
|
|
4897
4937
|
* server-side (`[a-z0-9-]+`, no leading/trailing dashes). When absent,
|
|
@@ -4899,25 +4939,25 @@ var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial()
|
|
|
4899
4939
|
* defeats the round-trip use case where the CLI prints the predicted
|
|
4900
4940
|
* URL before the publish completes. CLIs should always send this.
|
|
4901
4941
|
*/
|
|
4902
|
-
previewId:
|
|
4942
|
+
previewId: z22.string().nullish(),
|
|
4903
4943
|
/**
|
|
4904
4944
|
* Optional path segment appended after the server-generated host.
|
|
4905
4945
|
* Mirrors V2's `basePath` — most preview publishes leave this empty,
|
|
4906
4946
|
* but explicit subpath previews (`/v2`) are supported.
|
|
4907
4947
|
*/
|
|
4908
|
-
basePath:
|
|
4948
|
+
basePath: z22.string().default(""),
|
|
4909
4949
|
/** The primary/fallback locale for this preview deployment. */
|
|
4910
|
-
defaultLocale:
|
|
4950
|
+
defaultLocale: z22.string().optional(),
|
|
4911
4951
|
/**
|
|
4912
4952
|
* All locales for this preview deployment. Preferred over the legacy
|
|
4913
4953
|
* single-locale content fields above.
|
|
4914
4954
|
*/
|
|
4915
|
-
locales:
|
|
4955
|
+
locales: z22.array(LocaleEntrySchema).min(1).optional()
|
|
4916
4956
|
}).superRefine((data, ctx) => {
|
|
4917
4957
|
if (data.locales == null) {
|
|
4918
4958
|
if (data.root == null || data.pages == null) {
|
|
4919
4959
|
ctx.addIssue({
|
|
4920
|
-
code:
|
|
4960
|
+
code: z22.ZodIssueCode.custom,
|
|
4921
4961
|
message: "Either locales or legacy single-locale content fields must be provided",
|
|
4922
4962
|
path: ["locales"]
|
|
4923
4963
|
});
|
|
@@ -4927,75 +4967,75 @@ var LedgerPreviewRegisterInputSchemaInternal = DocsContentFieldsSchema.partial()
|
|
|
4927
4967
|
const defaultLocale = data.defaultLocale ?? data.locales[0]?.locale;
|
|
4928
4968
|
if (defaultLocale == null || !data.locales.some((locale) => locale.locale === defaultLocale)) {
|
|
4929
4969
|
ctx.addIssue({
|
|
4930
|
-
code:
|
|
4970
|
+
code: z22.ZodIssueCode.custom,
|
|
4931
4971
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
4932
4972
|
path: ["defaultLocale"]
|
|
4933
4973
|
});
|
|
4934
4974
|
}
|
|
4935
4975
|
});
|
|
4936
4976
|
var LedgerPreviewRegisterInputSchema = LedgerPreviewRegisterInputSchemaInternal;
|
|
4937
|
-
var LedgerPreviewRegisterResponseSchema =
|
|
4938
|
-
deploymentHash:
|
|
4939
|
-
missingContent:
|
|
4977
|
+
var LedgerPreviewRegisterResponseSchema = z22.object({
|
|
4978
|
+
deploymentHash: z22.string(),
|
|
4979
|
+
missingContent: z22.array(MissingContentSchema),
|
|
4940
4980
|
/** Canonical preview URL, e.g. `https://acme-preview-feature-x.docs.buildwithfern.com`. */
|
|
4941
|
-
previewUrl:
|
|
4981
|
+
previewUrl: z22.string(),
|
|
4942
4982
|
/** Server-generated host portion of `previewUrl` (no scheme, no basepath). */
|
|
4943
|
-
domain:
|
|
4983
|
+
domain: z22.string(),
|
|
4944
4984
|
/** Echoed `basePath` (normalised — empty string when absent). */
|
|
4945
|
-
basepath:
|
|
4985
|
+
basepath: z22.string(),
|
|
4946
4986
|
/** Sanitized identifier the server actually used to compose the host. */
|
|
4947
|
-
previewId:
|
|
4987
|
+
previewId: z22.string()
|
|
4948
4988
|
});
|
|
4949
4989
|
var docsLedgerContract = {
|
|
4950
|
-
register:
|
|
4951
|
-
previewRegister:
|
|
4952
|
-
finish:
|
|
4953
|
-
archiveSite:
|
|
4990
|
+
register: import_contract21.oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
4991
|
+
previewRegister: import_contract21.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
4992
|
+
finish: import_contract21.oc.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema).output(FinishResponseSchema),
|
|
4993
|
+
archiveSite: import_contract21.oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema)
|
|
4954
4994
|
};
|
|
4955
|
-
var CurrentVersionInputSchema =
|
|
4956
|
-
domain:
|
|
4957
|
-
basepath:
|
|
4995
|
+
var CurrentVersionInputSchema = z22.object({
|
|
4996
|
+
domain: z22.string(),
|
|
4997
|
+
basepath: z22.string().default("")
|
|
4958
4998
|
});
|
|
4959
4999
|
var CurrentPreviewInputSchema = CurrentVersionInputSchema.extend({
|
|
4960
|
-
previewId:
|
|
4961
|
-
});
|
|
4962
|
-
var CurrentVersionResponseSchema = z21.object({
|
|
4963
|
-
orgId: z21.string(),
|
|
4964
|
-
domain: z21.string(),
|
|
4965
|
-
basepath: z21.string(),
|
|
4966
|
-
deploymentId: z21.string(),
|
|
4967
|
-
deploymentHash: z21.string(),
|
|
4968
|
-
siteId: z21.string(),
|
|
4969
|
-
assignedAt: z21.string(),
|
|
4970
|
-
assignedBy: z21.string().nullable()
|
|
4971
|
-
});
|
|
4972
|
-
var ContentRefSchema = z21.object({
|
|
4973
|
-
hash: z21.string(),
|
|
4974
|
-
s3Key: z21.string(),
|
|
4975
|
-
contentType: z21.string(),
|
|
4976
|
-
url: z21.string()
|
|
5000
|
+
previewId: z22.string()
|
|
4977
5001
|
});
|
|
4978
|
-
var
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
5002
|
+
var CurrentVersionResponseSchema = z22.object({
|
|
5003
|
+
orgId: z22.string(),
|
|
5004
|
+
domain: z22.string(),
|
|
5005
|
+
basepath: z22.string(),
|
|
5006
|
+
deploymentId: z22.string(),
|
|
5007
|
+
deploymentHash: z22.string(),
|
|
5008
|
+
siteId: z22.string(),
|
|
5009
|
+
assignedAt: z22.string(),
|
|
5010
|
+
assignedBy: z22.string().nullable()
|
|
5011
|
+
});
|
|
5012
|
+
var ContentRefSchema = z22.object({
|
|
5013
|
+
hash: z22.string(),
|
|
5014
|
+
s3Key: z22.string(),
|
|
5015
|
+
contentType: z22.string(),
|
|
5016
|
+
url: z22.string()
|
|
5017
|
+
});
|
|
5018
|
+
var SegmentDetailSchema = z22.object({
|
|
5019
|
+
id: z22.string(),
|
|
5020
|
+
displayName: z22.string(),
|
|
5021
|
+
icon: z22.string().nullable(),
|
|
5022
|
+
sortOrder: z22.number(),
|
|
5023
|
+
hidden: z22.boolean(),
|
|
5024
|
+
viewers: z22.array(z22.string()),
|
|
5025
|
+
orphaned: z22.boolean(),
|
|
5026
|
+
featureFlags: z22.array(z22.string()),
|
|
4987
5027
|
/** Type-specific fields: slug, default, subtitle, href, target, image, availability, pointsTo, tab_type. */
|
|
4988
5028
|
metadata: LedgerSegmentDetailMetadataSchema
|
|
4989
5029
|
});
|
|
4990
|
-
var SegmentSchema =
|
|
4991
|
-
segmentId:
|
|
4992
|
-
segmentHash:
|
|
4993
|
-
section:
|
|
4994
|
-
locale:
|
|
5030
|
+
var SegmentSchema = z22.object({
|
|
5031
|
+
segmentId: z22.string(),
|
|
5032
|
+
segmentHash: z22.string(),
|
|
5033
|
+
section: z22.string(),
|
|
5034
|
+
locale: z22.string(),
|
|
4995
5035
|
/** Sidebar order across segments (docs_ledger_deployment_segments.sort_order). */
|
|
4996
|
-
sortOrder:
|
|
5036
|
+
sortOrder: z22.number(),
|
|
4997
5037
|
/** Whether the segment is hidden from the sidebar. */
|
|
4998
|
-
hidden:
|
|
5038
|
+
hidden: z22.boolean(),
|
|
4999
5039
|
/** Segment type descriptor (seg.metadata): { type, title, icon, apiDefinitionId, overviewPageId, pointsTo, ... }. */
|
|
5000
5040
|
metadata: LedgerSegmentMetadataSchema,
|
|
5001
5041
|
/** Full product/version/variant/tab detail metadata, or null when the dimension is absent. */
|
|
@@ -5005,26 +5045,26 @@ var SegmentSchema = z21.object({
|
|
|
5005
5045
|
tab: SegmentDetailSchema.nullable(),
|
|
5006
5046
|
// ── Flat name/icon retained for back-compat (derivable from the
|
|
5007
5047
|
// detail objects above). ──
|
|
5008
|
-
productId:
|
|
5009
|
-
productName:
|
|
5010
|
-
productIcon:
|
|
5011
|
-
versionId:
|
|
5012
|
-
versionName:
|
|
5013
|
-
versionIcon:
|
|
5014
|
-
variantId:
|
|
5015
|
-
variantName:
|
|
5016
|
-
variantIcon:
|
|
5017
|
-
tabId:
|
|
5018
|
-
tabName:
|
|
5019
|
-
tabIcon:
|
|
5020
|
-
});
|
|
5021
|
-
var VersionMetadataInputSchema =
|
|
5022
|
-
deploymentId:
|
|
5023
|
-
locale:
|
|
5024
|
-
});
|
|
5025
|
-
var VersionMetadataResponseSchema =
|
|
5026
|
-
deploymentId:
|
|
5027
|
-
version:
|
|
5048
|
+
productId: z22.string().nullable(),
|
|
5049
|
+
productName: z22.string().nullable(),
|
|
5050
|
+
productIcon: z22.string().nullable(),
|
|
5051
|
+
versionId: z22.string().nullable(),
|
|
5052
|
+
versionName: z22.string().nullable(),
|
|
5053
|
+
versionIcon: z22.string().nullable(),
|
|
5054
|
+
variantId: z22.string().nullable(),
|
|
5055
|
+
variantName: z22.string().nullable(),
|
|
5056
|
+
variantIcon: z22.string().nullable(),
|
|
5057
|
+
tabId: z22.string().nullable(),
|
|
5058
|
+
tabName: z22.string().nullable(),
|
|
5059
|
+
tabIcon: z22.string().nullable()
|
|
5060
|
+
});
|
|
5061
|
+
var VersionMetadataInputSchema = z22.object({
|
|
5062
|
+
deploymentId: z22.string(),
|
|
5063
|
+
locale: z22.string().optional()
|
|
5064
|
+
});
|
|
5065
|
+
var VersionMetadataResponseSchema = z22.object({
|
|
5066
|
+
deploymentId: z22.string(),
|
|
5067
|
+
version: z22.string().nullable(),
|
|
5028
5068
|
/**
|
|
5029
5069
|
* Inline structural config (ADR 0009). Contains everything from
|
|
5030
5070
|
* {@link LedgerConfigSchema} except `header`, `footer`, `css.inline`,
|
|
@@ -5043,76 +5083,76 @@ var VersionMetadataResponseSchema = z21.object({
|
|
|
5043
5083
|
/** CAS ref for the joined `config.js.inline` blob (`\n`-separated JS). */
|
|
5044
5084
|
jsInline: ContentRefSchema.nullable(),
|
|
5045
5085
|
jsFiles: ContentRefSchema.nullable(),
|
|
5046
|
-
segments:
|
|
5086
|
+
segments: z22.array(SegmentSchema),
|
|
5047
5087
|
/** Mapping from human-readable API name slug to API definition UUID. */
|
|
5048
|
-
apiNameToId:
|
|
5088
|
+
apiNameToId: z22.record(z22.string(), z22.string()),
|
|
5049
5089
|
/**
|
|
5050
5090
|
* Git provenance for the deployment (ADR 0012 / FER-10489). Optional —
|
|
5051
5091
|
* nullable on CLIs that don't send `git` on the publish input. When
|
|
5052
5092
|
* present, the docs loader synthesises `editThisPageUrl` from `repoUrl`,
|
|
5053
5093
|
* `branch`, and the page `filename` server-side.
|
|
5054
5094
|
*/
|
|
5055
|
-
git:
|
|
5056
|
-
repoUrl:
|
|
5057
|
-
branch:
|
|
5058
|
-
commitSha:
|
|
5095
|
+
git: z22.object({
|
|
5096
|
+
repoUrl: z22.string(),
|
|
5097
|
+
branch: z22.string(),
|
|
5098
|
+
commitSha: z22.string().nullable().optional()
|
|
5059
5099
|
}).optional(),
|
|
5060
5100
|
/**
|
|
5061
5101
|
* Docs deployment status from the legacy `docs_sites` table, resolved
|
|
5062
5102
|
* via Kysely join in the DAO. Null when no matching row exists.
|
|
5063
5103
|
*/
|
|
5064
|
-
docsStatus:
|
|
5065
|
-
});
|
|
5066
|
-
var PageContentInputSchema =
|
|
5067
|
-
deploymentId:
|
|
5068
|
-
fullPath:
|
|
5069
|
-
pageId:
|
|
5070
|
-
locale:
|
|
5071
|
-
});
|
|
5072
|
-
var PageContentResponseSchema =
|
|
5073
|
-
s3Key:
|
|
5074
|
-
segmentHash:
|
|
5075
|
-
url:
|
|
5076
|
-
pageId:
|
|
5077
|
-
});
|
|
5078
|
-
var BatchPageContentInputSchema =
|
|
5079
|
-
deploymentId:
|
|
5080
|
-
pageIds:
|
|
5081
|
-
locale:
|
|
5082
|
-
});
|
|
5083
|
-
var BatchPageContentItemSchema =
|
|
5084
|
-
pageId:
|
|
5085
|
-
s3Key:
|
|
5086
|
-
url:
|
|
5087
|
-
});
|
|
5088
|
-
var BatchPageContentResponseSchema =
|
|
5089
|
-
items:
|
|
5090
|
-
});
|
|
5091
|
-
var NavInputSchema =
|
|
5092
|
-
segmentHash:
|
|
5093
|
-
});
|
|
5094
|
-
var NavResponseSchema =
|
|
5095
|
-
routes:
|
|
5096
|
-
});
|
|
5097
|
-
var RouteContextInputSchema =
|
|
5098
|
-
deploymentId:
|
|
5099
|
-
fullPath:
|
|
5100
|
-
locale:
|
|
5101
|
-
});
|
|
5102
|
-
var RouteContextResponseBaseSchema =
|
|
5103
|
-
artifactId:
|
|
5104
|
+
docsStatus: z22.enum(["PUBLISHING", "LIVE", "UNPUBLISHED", "ERROR"]).nullable().optional()
|
|
5105
|
+
});
|
|
5106
|
+
var PageContentInputSchema = z22.object({
|
|
5107
|
+
deploymentId: z22.string(),
|
|
5108
|
+
fullPath: z22.string().optional(),
|
|
5109
|
+
pageId: z22.string().optional(),
|
|
5110
|
+
locale: z22.string().optional()
|
|
5111
|
+
});
|
|
5112
|
+
var PageContentResponseSchema = z22.object({
|
|
5113
|
+
s3Key: z22.string(),
|
|
5114
|
+
segmentHash: z22.string(),
|
|
5115
|
+
url: z22.string(),
|
|
5116
|
+
pageId: z22.string().optional()
|
|
5117
|
+
});
|
|
5118
|
+
var BatchPageContentInputSchema = z22.object({
|
|
5119
|
+
deploymentId: z22.string(),
|
|
5120
|
+
pageIds: z22.array(z22.string()).min(1).max(2e3),
|
|
5121
|
+
locale: z22.string().optional()
|
|
5122
|
+
});
|
|
5123
|
+
var BatchPageContentItemSchema = z22.object({
|
|
5124
|
+
pageId: z22.string(),
|
|
5125
|
+
s3Key: z22.string(),
|
|
5126
|
+
url: z22.string()
|
|
5127
|
+
});
|
|
5128
|
+
var BatchPageContentResponseSchema = z22.object({
|
|
5129
|
+
items: z22.array(BatchPageContentItemSchema)
|
|
5130
|
+
});
|
|
5131
|
+
var NavInputSchema = z22.object({
|
|
5132
|
+
segmentHash: z22.string()
|
|
5133
|
+
});
|
|
5134
|
+
var NavResponseSchema = z22.object({
|
|
5135
|
+
routes: z22.array(LedgerNavRouteSchema)
|
|
5136
|
+
});
|
|
5137
|
+
var RouteContextInputSchema = z22.object({
|
|
5138
|
+
deploymentId: z22.string(),
|
|
5139
|
+
fullPath: z22.string(),
|
|
5140
|
+
locale: z22.string().optional()
|
|
5141
|
+
});
|
|
5142
|
+
var RouteContextResponseBaseSchema = z22.object({
|
|
5143
|
+
artifactId: z22.string(),
|
|
5104
5144
|
/** Hash of the segment that owns the matched route — feed to `nav`. */
|
|
5105
|
-
segmentHash:
|
|
5145
|
+
segmentHash: z22.string(),
|
|
5106
5146
|
/** Section path of the owning segment (e.g. "models/command"). */
|
|
5107
|
-
section:
|
|
5108
|
-
locale:
|
|
5147
|
+
section: z22.string(),
|
|
5148
|
+
locale: z22.string(),
|
|
5109
5149
|
/**
|
|
5110
5150
|
* Page content reference, or null for non-page artifacts (links/redirects)
|
|
5111
5151
|
* and route-only aliases that carry no content blob.
|
|
5112
5152
|
*/
|
|
5113
|
-
page:
|
|
5114
|
-
s3Key:
|
|
5115
|
-
url:
|
|
5153
|
+
page: z22.object({
|
|
5154
|
+
s3Key: z22.string(),
|
|
5155
|
+
url: z22.string()
|
|
5116
5156
|
}).nullable(),
|
|
5117
5157
|
/** Identity of the owning segment, for switchers + breadcrumbs. */
|
|
5118
5158
|
product: SegmentDetailSchema.nullable(),
|
|
@@ -5120,7 +5160,7 @@ var RouteContextResponseBaseSchema = z21.object({
|
|
|
5120
5160
|
variant: SegmentDetailSchema.nullable(),
|
|
5121
5161
|
tab: SegmentDetailSchema.nullable()
|
|
5122
5162
|
});
|
|
5123
|
-
var RouteContextResponseSchema =
|
|
5163
|
+
var RouteContextResponseSchema = z22.discriminatedUnion("artifactType", [
|
|
5124
5164
|
artifactTypeVariant(RouteContextResponseBaseSchema, "markdown"),
|
|
5125
5165
|
artifactTypeVariant(RouteContextResponseBaseSchema, "page"),
|
|
5126
5166
|
artifactTypeVariant(RouteContextResponseBaseSchema, "rest"),
|
|
@@ -5134,116 +5174,116 @@ var RouteContextResponseSchema = z21.discriminatedUnion("artifactType", [
|
|
|
5134
5174
|
artifactTypeVariant(RouteContextResponseBaseSchema, "image"),
|
|
5135
5175
|
artifactTypeVariant(RouteContextResponseBaseSchema, "redirect")
|
|
5136
5176
|
]);
|
|
5137
|
-
var TopLevelNavigationInputSchema =
|
|
5138
|
-
deploymentId:
|
|
5139
|
-
locale:
|
|
5140
|
-
});
|
|
5141
|
-
var TopLevelNavigationResponseSchema =
|
|
5142
|
-
products:
|
|
5143
|
-
versions:
|
|
5144
|
-
variants:
|
|
5145
|
-
tabs:
|
|
5146
|
-
});
|
|
5147
|
-
var VersionSwitchTargetsInputSchema =
|
|
5148
|
-
deploymentId:
|
|
5149
|
-
fullPath:
|
|
5150
|
-
locale:
|
|
5151
|
-
});
|
|
5152
|
-
var VersionSwitchTargetSchema =
|
|
5177
|
+
var TopLevelNavigationInputSchema = z22.object({
|
|
5178
|
+
deploymentId: z22.string(),
|
|
5179
|
+
locale: z22.string().optional()
|
|
5180
|
+
});
|
|
5181
|
+
var TopLevelNavigationResponseSchema = z22.object({
|
|
5182
|
+
products: z22.array(SegmentDetailSchema),
|
|
5183
|
+
versions: z22.array(SegmentDetailSchema),
|
|
5184
|
+
variants: z22.array(SegmentDetailSchema),
|
|
5185
|
+
tabs: z22.array(SegmentDetailSchema)
|
|
5186
|
+
});
|
|
5187
|
+
var VersionSwitchTargetsInputSchema = z22.object({
|
|
5188
|
+
deploymentId: z22.string(),
|
|
5189
|
+
fullPath: z22.string(),
|
|
5190
|
+
locale: z22.string().optional()
|
|
5191
|
+
});
|
|
5192
|
+
var VersionSwitchTargetSchema = z22.object({
|
|
5153
5193
|
/** The version detail id (matches a `SegmentDetail.id` from `versionMetadata`). */
|
|
5154
|
-
versionId:
|
|
5194
|
+
versionId: z22.string(),
|
|
5155
5195
|
/**
|
|
5156
5196
|
* Slug to navigate to when switching to this version — the equivalent
|
|
5157
5197
|
* route in the target version, or that version's landing/root slug when
|
|
5158
5198
|
* no equivalent exists. The current version maps to `fullPath` itself.
|
|
5159
5199
|
*/
|
|
5160
|
-
targetSlug:
|
|
5200
|
+
targetSlug: z22.string()
|
|
5161
5201
|
});
|
|
5162
|
-
var VersionSwitchTargetsResponseSchema =
|
|
5163
|
-
targets:
|
|
5202
|
+
var VersionSwitchTargetsResponseSchema = z22.object({
|
|
5203
|
+
targets: z22.array(VersionSwitchTargetSchema)
|
|
5164
5204
|
});
|
|
5165
|
-
var ApiDefinitionInputSchema =
|
|
5166
|
-
deploymentId:
|
|
5167
|
-
apiDefinitionId:
|
|
5205
|
+
var ApiDefinitionInputSchema = z22.object({
|
|
5206
|
+
deploymentId: z22.string(),
|
|
5207
|
+
apiDefinitionId: z22.string()
|
|
5168
5208
|
});
|
|
5169
|
-
var ApiDefinitionResponseSchema =
|
|
5170
|
-
s3Key:
|
|
5171
|
-
contentType:
|
|
5172
|
-
url:
|
|
5209
|
+
var ApiDefinitionResponseSchema = z22.object({
|
|
5210
|
+
s3Key: z22.string(),
|
|
5211
|
+
contentType: z22.string(),
|
|
5212
|
+
url: z22.string()
|
|
5173
5213
|
});
|
|
5174
|
-
var PrunedApiDefinitionInputSchema =
|
|
5175
|
-
deploymentId:
|
|
5176
|
-
apiDefinitionId:
|
|
5214
|
+
var PrunedApiDefinitionInputSchema = z22.object({
|
|
5215
|
+
deploymentId: z22.string(),
|
|
5216
|
+
apiDefinitionId: z22.string(),
|
|
5177
5217
|
/** Discriminator matching PruningNodeType.type → artifact metadata field. */
|
|
5178
|
-
nodeType:
|
|
5218
|
+
nodeType: z22.enum(["endpoint", "webSocket", "webhook", "grpc", "graphql"]),
|
|
5179
5219
|
/** The node ID value (endpointId, webSocketId, etc.). */
|
|
5180
|
-
nodeId:
|
|
5181
|
-
});
|
|
5182
|
-
var PrunedApiDefinitionResponseSchema =
|
|
5183
|
-
s3Key:
|
|
5184
|
-
contentType:
|
|
5185
|
-
url:
|
|
5186
|
-
});
|
|
5187
|
-
var FileArtifactInputSchema =
|
|
5188
|
-
deploymentId:
|
|
5189
|
-
fullPath:
|
|
5190
|
-
});
|
|
5191
|
-
var FileArtifactResponseSchema =
|
|
5192
|
-
fullPath:
|
|
5193
|
-
type:
|
|
5194
|
-
contentType:
|
|
5195
|
-
contentLength:
|
|
5196
|
-
filename:
|
|
5197
|
-
url:
|
|
5198
|
-
width:
|
|
5199
|
-
height:
|
|
5200
|
-
blurDataURL:
|
|
5201
|
-
});
|
|
5202
|
-
var PresignedFileDownloadInputSchema =
|
|
5220
|
+
nodeId: z22.string()
|
|
5221
|
+
});
|
|
5222
|
+
var PrunedApiDefinitionResponseSchema = z22.object({
|
|
5223
|
+
s3Key: z22.string(),
|
|
5224
|
+
contentType: z22.string(),
|
|
5225
|
+
url: z22.string()
|
|
5226
|
+
});
|
|
5227
|
+
var FileArtifactInputSchema = z22.object({
|
|
5228
|
+
deploymentId: z22.string(),
|
|
5229
|
+
fullPath: z22.string()
|
|
5230
|
+
});
|
|
5231
|
+
var FileArtifactResponseSchema = z22.object({
|
|
5232
|
+
fullPath: z22.string(),
|
|
5233
|
+
type: z22.enum(["file", "image"]),
|
|
5234
|
+
contentType: z22.string(),
|
|
5235
|
+
contentLength: z22.number().optional(),
|
|
5236
|
+
filename: z22.string(),
|
|
5237
|
+
url: z22.string(),
|
|
5238
|
+
width: z22.number().optional(),
|
|
5239
|
+
height: z22.number().optional(),
|
|
5240
|
+
blurDataURL: z22.string().optional()
|
|
5241
|
+
});
|
|
5242
|
+
var PresignedFileDownloadInputSchema = z22.object({
|
|
5203
5243
|
/** S3 object key in the public docs bucket (format: `{domain}/{hash}/{path}`). */
|
|
5204
|
-
s3Key:
|
|
5244
|
+
s3Key: z22.string().regex(/^[a-zA-Z0-9._-]+(?:\/[^/]+){2,}$/)
|
|
5205
5245
|
});
|
|
5206
|
-
var PresignedFileDownloadResponseSchema =
|
|
5246
|
+
var PresignedFileDownloadResponseSchema = z22.object({
|
|
5207
5247
|
/** Presigned S3 GET URL with long expiry (7 days). */
|
|
5208
|
-
url:
|
|
5248
|
+
url: z22.string()
|
|
5209
5249
|
});
|
|
5210
|
-
var FileMetadataInputSchema =
|
|
5211
|
-
deploymentId:
|
|
5212
|
-
fullPath:
|
|
5250
|
+
var FileMetadataInputSchema = z22.object({
|
|
5251
|
+
deploymentId: z22.string(),
|
|
5252
|
+
fullPath: z22.string()
|
|
5213
5253
|
});
|
|
5214
|
-
var FileMetadataResponseSchema =
|
|
5254
|
+
var FileMetadataResponseSchema = z22.object({
|
|
5215
5255
|
/** Content hash — used by the loader to construct CDN URLs. */
|
|
5216
|
-
hash:
|
|
5256
|
+
hash: z22.string(),
|
|
5217
5257
|
/** Domain under which the file bytes were uploaded in the docs files bucket. */
|
|
5218
|
-
domain:
|
|
5219
|
-
contentType:
|
|
5220
|
-
contentLength:
|
|
5221
|
-
filename:
|
|
5222
|
-
width:
|
|
5223
|
-
height:
|
|
5224
|
-
blurDataURL:
|
|
5258
|
+
domain: z22.string(),
|
|
5259
|
+
contentType: z22.string(),
|
|
5260
|
+
contentLength: z22.number().optional(),
|
|
5261
|
+
filename: z22.string().optional(),
|
|
5262
|
+
width: z22.number().optional(),
|
|
5263
|
+
height: z22.number().optional(),
|
|
5264
|
+
blurDataURL: z22.string().optional()
|
|
5225
5265
|
});
|
|
5226
5266
|
var docsLedgerReadContract = {
|
|
5227
|
-
currentVersion:
|
|
5228
|
-
currentPreview:
|
|
5229
|
-
versionMetadata:
|
|
5230
|
-
pageContent:
|
|
5231
|
-
batchPageContent:
|
|
5232
|
-
nav:
|
|
5233
|
-
routeContext:
|
|
5234
|
-
topLevelNavigation:
|
|
5235
|
-
versionSwitchTargets:
|
|
5236
|
-
apiDefinition:
|
|
5237
|
-
prunedApiDefinition:
|
|
5238
|
-
fileArtifact:
|
|
5239
|
-
fileMetadata:
|
|
5240
|
-
presignedFileDownload:
|
|
5267
|
+
currentVersion: import_contract21.oc.route({ method: "GET", path: "/current-version" }).input(CurrentVersionInputSchema).output(CurrentVersionResponseSchema),
|
|
5268
|
+
currentPreview: import_contract21.oc.route({ method: "GET", path: "/current-preview" }).input(CurrentPreviewInputSchema).output(CurrentVersionResponseSchema),
|
|
5269
|
+
versionMetadata: import_contract21.oc.route({ method: "GET", path: "/version-metadata/{deploymentId}" }).input(VersionMetadataInputSchema).output(VersionMetadataResponseSchema),
|
|
5270
|
+
pageContent: import_contract21.oc.route({ method: "GET", path: "/page-content/{deploymentId}" }).input(PageContentInputSchema).output(PageContentResponseSchema),
|
|
5271
|
+
batchPageContent: import_contract21.oc.route({ method: "POST", path: "/batch-page-content/{deploymentId}" }).input(BatchPageContentInputSchema).output(BatchPageContentResponseSchema),
|
|
5272
|
+
nav: import_contract21.oc.route({ method: "GET", path: "/nav/{segmentHash}" }).input(NavInputSchema).output(NavResponseSchema),
|
|
5273
|
+
routeContext: import_contract21.oc.route({ method: "GET", path: "/route-context/{deploymentId}" }).input(RouteContextInputSchema).output(RouteContextResponseSchema),
|
|
5274
|
+
topLevelNavigation: import_contract21.oc.route({ method: "GET", path: "/top-level-navigation/{deploymentId}" }).input(TopLevelNavigationInputSchema).output(TopLevelNavigationResponseSchema),
|
|
5275
|
+
versionSwitchTargets: import_contract21.oc.route({ method: "GET", path: "/version-switch-targets/{deploymentId}" }).input(VersionSwitchTargetsInputSchema).output(VersionSwitchTargetsResponseSchema),
|
|
5276
|
+
apiDefinition: import_contract21.oc.route({ method: "GET", path: "/api-definition/{deploymentId}/{apiDefinitionId}" }).input(ApiDefinitionInputSchema).output(ApiDefinitionResponseSchema),
|
|
5277
|
+
prunedApiDefinition: import_contract21.oc.route({ method: "GET", path: "/pruned-api/{deploymentId}/{apiDefinitionId}" }).input(PrunedApiDefinitionInputSchema).output(PrunedApiDefinitionResponseSchema),
|
|
5278
|
+
fileArtifact: import_contract21.oc.route({ method: "GET", path: "/file/{deploymentId}" }).input(FileArtifactInputSchema).output(FileArtifactResponseSchema),
|
|
5279
|
+
fileMetadata: import_contract21.oc.route({ method: "GET", path: "/file-metadata/{deploymentId}" }).input(FileMetadataInputSchema).output(FileMetadataResponseSchema),
|
|
5280
|
+
presignedFileDownload: import_contract21.oc.route({ method: "POST", path: "/presigned-file-download" }).input(PresignedFileDownloadInputSchema).output(PresignedFileDownloadResponseSchema)
|
|
5241
5281
|
};
|
|
5242
5282
|
|
|
5243
5283
|
// src/orpc-client/docs-ledger/client.ts
|
|
5244
5284
|
function createDocsLedgerClient(options) {
|
|
5245
5285
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
5246
|
-
const link = new
|
|
5286
|
+
const link = new import_fetch11.OpenAPILink(docsLedgerContract, {
|
|
5247
5287
|
url: `${baseUrl}/docs-ledger`,
|
|
5248
5288
|
headers: () => ({
|
|
5249
5289
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5251,53 +5291,53 @@ function createDocsLedgerClient(options) {
|
|
|
5251
5291
|
}),
|
|
5252
5292
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5253
5293
|
});
|
|
5254
|
-
return (0,
|
|
5294
|
+
return (0, import_client17.createORPCClient)(link);
|
|
5255
5295
|
}
|
|
5256
5296
|
|
|
5257
5297
|
// src/orpc-client/editor-snapshot/client.ts
|
|
5258
|
-
var
|
|
5259
|
-
var
|
|
5298
|
+
var import_client18 = require("@orpc/client");
|
|
5299
|
+
var import_fetch12 = require("@orpc/openapi-client/fetch");
|
|
5260
5300
|
|
|
5261
5301
|
// src/orpc-client/editor-snapshot/contract.ts
|
|
5262
|
-
var
|
|
5263
|
-
var
|
|
5264
|
-
var GetSnapshotInputSchema =
|
|
5265
|
-
domain:
|
|
5266
|
-
branchName:
|
|
5302
|
+
var import_contract23 = require("@orpc/contract");
|
|
5303
|
+
var z23 = __toESM(require("zod"), 1);
|
|
5304
|
+
var GetSnapshotInputSchema = z23.object({
|
|
5305
|
+
domain: z23.string(),
|
|
5306
|
+
branchName: z23.string()
|
|
5267
5307
|
});
|
|
5268
|
-
var SetSnapshotInputSchema =
|
|
5269
|
-
domain:
|
|
5270
|
-
branchName:
|
|
5271
|
-
data:
|
|
5308
|
+
var SetSnapshotInputSchema = z23.object({
|
|
5309
|
+
domain: z23.string(),
|
|
5310
|
+
branchName: z23.string(),
|
|
5311
|
+
data: z23.unknown()
|
|
5272
5312
|
});
|
|
5273
|
-
var GetDocumentsForBranchesInputSchema =
|
|
5274
|
-
domain:
|
|
5275
|
-
branchNames:
|
|
5313
|
+
var GetDocumentsForBranchesInputSchema = z23.object({
|
|
5314
|
+
domain: z23.string(),
|
|
5315
|
+
branchNames: z23.array(z23.string())
|
|
5276
5316
|
});
|
|
5277
|
-
var EditorDocumentSchema =
|
|
5278
|
-
id:
|
|
5279
|
-
domain:
|
|
5280
|
-
branchName:
|
|
5281
|
-
data:
|
|
5282
|
-
createdAt:
|
|
5283
|
-
updatedAt:
|
|
5284
|
-
expiresAt:
|
|
5317
|
+
var EditorDocumentSchema = z23.object({
|
|
5318
|
+
id: z23.string(),
|
|
5319
|
+
domain: z23.string(),
|
|
5320
|
+
branchName: z23.string(),
|
|
5321
|
+
data: z23.unknown(),
|
|
5322
|
+
createdAt: z23.string(),
|
|
5323
|
+
updatedAt: z23.string(),
|
|
5324
|
+
expiresAt: z23.string().optional()
|
|
5285
5325
|
});
|
|
5286
|
-
var GetSnapshotResponseSchema =
|
|
5287
|
-
data:
|
|
5326
|
+
var GetSnapshotResponseSchema = z23.object({
|
|
5327
|
+
data: z23.unknown().nullable()
|
|
5288
5328
|
});
|
|
5289
|
-
var GetDocumentsForBranchesResponseSchema =
|
|
5290
|
-
documents:
|
|
5329
|
+
var GetDocumentsForBranchesResponseSchema = z23.object({
|
|
5330
|
+
documents: z23.array(EditorDocumentSchema)
|
|
5291
5331
|
});
|
|
5292
5332
|
var editorSnapshotContract = {
|
|
5293
|
-
getSnapshot:
|
|
5294
|
-
setSnapshot:
|
|
5295
|
-
getDocumentsForBranches:
|
|
5333
|
+
getSnapshot: import_contract23.oc.route({ method: "POST", path: "/get" }).input(GetSnapshotInputSchema).output(GetSnapshotResponseSchema),
|
|
5334
|
+
setSnapshot: import_contract23.oc.route({ method: "POST", path: "/set" }).input(SetSnapshotInputSchema).output(z23.object({})),
|
|
5335
|
+
getDocumentsForBranches: import_contract23.oc.route({ method: "POST", path: "/branches" }).input(GetDocumentsForBranchesInputSchema).output(GetDocumentsForBranchesResponseSchema)
|
|
5296
5336
|
};
|
|
5297
5337
|
|
|
5298
5338
|
// src/orpc-client/editor-snapshot/client.ts
|
|
5299
5339
|
function createEditorSnapshotClient(options) {
|
|
5300
|
-
const link = new
|
|
5340
|
+
const link = new import_fetch12.OpenAPILink(editorSnapshotContract, {
|
|
5301
5341
|
url: `${options.baseUrl.replace(/\/+$/, "")}/editor-snapshot`,
|
|
5302
5342
|
headers: () => ({
|
|
5303
5343
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5305,16 +5345,16 @@ function createEditorSnapshotClient(options) {
|
|
|
5305
5345
|
}),
|
|
5306
5346
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5307
5347
|
});
|
|
5308
|
-
return (0,
|
|
5348
|
+
return (0, import_client18.createORPCClient)(link);
|
|
5309
5349
|
}
|
|
5310
5350
|
|
|
5311
5351
|
// src/orpc-client/generators/cli/client.ts
|
|
5312
|
-
var
|
|
5313
|
-
var
|
|
5352
|
+
var import_client19 = require("@orpc/client");
|
|
5353
|
+
var import_fetch13 = require("@orpc/openapi-client/fetch");
|
|
5314
5354
|
|
|
5315
5355
|
// src/orpc-client/generators/contract.ts
|
|
5316
|
-
var
|
|
5317
|
-
var
|
|
5356
|
+
var import_contract25 = require("@orpc/contract");
|
|
5357
|
+
var z24 = __toESM(require("zod"), 1);
|
|
5318
5358
|
function GeneratorId(value) {
|
|
5319
5359
|
return value;
|
|
5320
5360
|
}
|
|
@@ -5333,7 +5373,7 @@ var ReleaseType = {
|
|
|
5333
5373
|
Ga: "GA",
|
|
5334
5374
|
Rc: "RC"
|
|
5335
5375
|
};
|
|
5336
|
-
var GeneratorLanguageSchema =
|
|
5376
|
+
var GeneratorLanguageSchema = z24.enum([
|
|
5337
5377
|
"python",
|
|
5338
5378
|
"go",
|
|
5339
5379
|
"java",
|
|
@@ -5344,182 +5384,182 @@ var GeneratorLanguageSchema = z23.enum([
|
|
|
5344
5384
|
"swift",
|
|
5345
5385
|
"rust"
|
|
5346
5386
|
]);
|
|
5347
|
-
var ScriptSchema =
|
|
5348
|
-
steps:
|
|
5387
|
+
var ScriptSchema = z24.object({
|
|
5388
|
+
steps: z24.array(z24.string())
|
|
5349
5389
|
});
|
|
5350
|
-
var GeneratorScriptsSchema =
|
|
5390
|
+
var GeneratorScriptsSchema = z24.object({
|
|
5351
5391
|
preInstallScript: ScriptSchema.nullish(),
|
|
5352
5392
|
installScript: ScriptSchema.nullish(),
|
|
5353
5393
|
compileScript: ScriptSchema.nullish(),
|
|
5354
5394
|
testScript: ScriptSchema.nullish()
|
|
5355
5395
|
});
|
|
5356
|
-
var GeneratorTypeSchema =
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5396
|
+
var GeneratorTypeSchema = z24.discriminatedUnion("type", [
|
|
5397
|
+
z24.object({ type: z24.literal("sdk") }),
|
|
5398
|
+
z24.object({ type: z24.literal("model") }),
|
|
5399
|
+
z24.object({ type: z24.literal("server") }),
|
|
5400
|
+
z24.object({ type: z24.literal("other") })
|
|
5361
5401
|
]);
|
|
5362
|
-
var ChangelogEntryTypeSchema =
|
|
5363
|
-
var ChangelogEntrySchema =
|
|
5402
|
+
var ChangelogEntryTypeSchema = z24.enum(["fix", "feat", "chore", "break", "internal"]);
|
|
5403
|
+
var ChangelogEntrySchema = z24.object({
|
|
5364
5404
|
type: ChangelogEntryTypeSchema,
|
|
5365
|
-
summary:
|
|
5366
|
-
links:
|
|
5367
|
-
upgradeNotes:
|
|
5368
|
-
added:
|
|
5369
|
-
changed:
|
|
5370
|
-
deprecated:
|
|
5371
|
-
removed:
|
|
5372
|
-
fixed:
|
|
5373
|
-
});
|
|
5374
|
-
var YankSchema =
|
|
5375
|
-
remediationVerision:
|
|
5376
|
-
});
|
|
5377
|
-
var ReleaseTypeSchema =
|
|
5378
|
-
var VersionRangeSchema =
|
|
5379
|
-
|
|
5380
|
-
|
|
5405
|
+
summary: z24.string(),
|
|
5406
|
+
links: z24.array(z24.string()).nullish(),
|
|
5407
|
+
upgradeNotes: z24.string().nullish(),
|
|
5408
|
+
added: z24.array(z24.string()).nullish(),
|
|
5409
|
+
changed: z24.array(z24.string()).nullish(),
|
|
5410
|
+
deprecated: z24.array(z24.string()).nullish(),
|
|
5411
|
+
removed: z24.array(z24.string()).nullish(),
|
|
5412
|
+
fixed: z24.array(z24.string()).nullish()
|
|
5413
|
+
});
|
|
5414
|
+
var YankSchema = z24.object({
|
|
5415
|
+
remediationVerision: z24.string().nullish()
|
|
5416
|
+
});
|
|
5417
|
+
var ReleaseTypeSchema = z24.enum(["GA", "RC"]);
|
|
5418
|
+
var VersionRangeSchema = z24.discriminatedUnion("type", [
|
|
5419
|
+
z24.object({ type: z24.literal("inclusive"), value: z24.string() }),
|
|
5420
|
+
z24.object({ type: z24.literal("exclusive"), value: z24.string() })
|
|
5381
5421
|
]);
|
|
5382
|
-
var GeneratorSchema =
|
|
5383
|
-
id:
|
|
5384
|
-
displayName:
|
|
5422
|
+
var GeneratorSchema = z24.object({
|
|
5423
|
+
id: z24.string(),
|
|
5424
|
+
displayName: z24.string(),
|
|
5385
5425
|
generatorType: GeneratorTypeSchema,
|
|
5386
5426
|
generatorLanguage: GeneratorLanguageSchema.nullish(),
|
|
5387
|
-
dockerImage:
|
|
5427
|
+
dockerImage: z24.string(),
|
|
5388
5428
|
scripts: GeneratorScriptsSchema.nullish()
|
|
5389
5429
|
});
|
|
5390
|
-
var GeneratorOutputSchema =
|
|
5391
|
-
id:
|
|
5392
|
-
displayName:
|
|
5430
|
+
var GeneratorOutputSchema = z24.object({
|
|
5431
|
+
id: z24.string(),
|
|
5432
|
+
displayName: z24.string(),
|
|
5393
5433
|
generatorType: GeneratorTypeSchema,
|
|
5394
5434
|
generatorLanguage: GeneratorLanguageSchema.nullish(),
|
|
5395
|
-
dockerImage:
|
|
5435
|
+
dockerImage: z24.string(),
|
|
5396
5436
|
scripts: GeneratorScriptsSchema.nullish()
|
|
5397
5437
|
});
|
|
5398
|
-
var GetGeneratorByImageInputSchema =
|
|
5399
|
-
dockerImage:
|
|
5438
|
+
var GetGeneratorByImageInputSchema = z24.object({
|
|
5439
|
+
dockerImage: z24.string()
|
|
5400
5440
|
});
|
|
5401
|
-
var GetGeneratorInputSchema =
|
|
5402
|
-
generatorId:
|
|
5441
|
+
var GetGeneratorInputSchema = z24.object({
|
|
5442
|
+
generatorId: z24.string()
|
|
5403
5443
|
});
|
|
5404
|
-
var GeneratorReleaseSchema =
|
|
5405
|
-
version:
|
|
5406
|
-
createdAt:
|
|
5444
|
+
var GeneratorReleaseSchema = z24.object({
|
|
5445
|
+
version: z24.string(),
|
|
5446
|
+
createdAt: z24.string().nullish(),
|
|
5407
5447
|
isYanked: YankSchema.nullish(),
|
|
5408
|
-
changelogEntry:
|
|
5448
|
+
changelogEntry: z24.array(ChangelogEntrySchema).nullish(),
|
|
5409
5449
|
releaseType: ReleaseTypeSchema,
|
|
5410
|
-
majorVersion:
|
|
5411
|
-
generatorId:
|
|
5412
|
-
irVersion:
|
|
5413
|
-
migration:
|
|
5414
|
-
customConfigSchema:
|
|
5415
|
-
tags:
|
|
5416
|
-
});
|
|
5417
|
-
var GeneratorReleaseRequestSchema =
|
|
5418
|
-
version:
|
|
5419
|
-
createdAt:
|
|
5450
|
+
majorVersion: z24.number(),
|
|
5451
|
+
generatorId: z24.string(),
|
|
5452
|
+
irVersion: z24.number(),
|
|
5453
|
+
migration: z24.string().nullish(),
|
|
5454
|
+
customConfigSchema: z24.string().nullish(),
|
|
5455
|
+
tags: z24.array(z24.string()).nullish()
|
|
5456
|
+
});
|
|
5457
|
+
var GeneratorReleaseRequestSchema = z24.object({
|
|
5458
|
+
version: z24.string(),
|
|
5459
|
+
createdAt: z24.string().nullish(),
|
|
5420
5460
|
isYanked: YankSchema.nullish(),
|
|
5421
|
-
changelogEntry:
|
|
5422
|
-
generatorId:
|
|
5423
|
-
irVersion:
|
|
5424
|
-
migration:
|
|
5425
|
-
customConfigSchema:
|
|
5426
|
-
tags:
|
|
5427
|
-
});
|
|
5428
|
-
var GetLatestGeneratorReleaseInputSchema =
|
|
5429
|
-
generator:
|
|
5430
|
-
cliVersion:
|
|
5431
|
-
irVersion:
|
|
5432
|
-
generatorMajorVersion:
|
|
5433
|
-
releaseTypes:
|
|
5434
|
-
});
|
|
5435
|
-
var GetGeneratorChangelogInputSchema =
|
|
5436
|
-
generator:
|
|
5461
|
+
changelogEntry: z24.array(ChangelogEntrySchema).nullish(),
|
|
5462
|
+
generatorId: z24.string(),
|
|
5463
|
+
irVersion: z24.number(),
|
|
5464
|
+
migration: z24.string().nullish(),
|
|
5465
|
+
customConfigSchema: z24.string().nullish(),
|
|
5466
|
+
tags: z24.array(z24.string()).nullish()
|
|
5467
|
+
});
|
|
5468
|
+
var GetLatestGeneratorReleaseInputSchema = z24.object({
|
|
5469
|
+
generator: z24.string(),
|
|
5470
|
+
cliVersion: z24.string().nullish(),
|
|
5471
|
+
irVersion: z24.number().nullish(),
|
|
5472
|
+
generatorMajorVersion: z24.number().nullish(),
|
|
5473
|
+
releaseTypes: z24.array(ReleaseTypeSchema).nullish()
|
|
5474
|
+
});
|
|
5475
|
+
var GetGeneratorChangelogInputSchema = z24.object({
|
|
5476
|
+
generator: z24.string(),
|
|
5437
5477
|
fromVersion: VersionRangeSchema,
|
|
5438
5478
|
toVersion: VersionRangeSchema
|
|
5439
5479
|
});
|
|
5440
|
-
var ChangelogResponseSchema =
|
|
5441
|
-
version:
|
|
5442
|
-
changelogEntry:
|
|
5480
|
+
var ChangelogResponseSchema = z24.object({
|
|
5481
|
+
version: z24.string(),
|
|
5482
|
+
changelogEntry: z24.array(ChangelogEntrySchema)
|
|
5443
5483
|
});
|
|
5444
|
-
var GetChangelogResponseSchema =
|
|
5445
|
-
entries:
|
|
5484
|
+
var GetChangelogResponseSchema = z24.object({
|
|
5485
|
+
entries: z24.array(ChangelogResponseSchema)
|
|
5446
5486
|
});
|
|
5447
|
-
var GetGeneratorReleaseInputSchema =
|
|
5448
|
-
generator:
|
|
5449
|
-
version:
|
|
5487
|
+
var GetGeneratorReleaseInputSchema = z24.object({
|
|
5488
|
+
generator: z24.string(),
|
|
5489
|
+
version: z24.string()
|
|
5450
5490
|
});
|
|
5451
|
-
var ListGeneratorReleasesInputSchema =
|
|
5452
|
-
generator:
|
|
5453
|
-
page:
|
|
5454
|
-
pageSize:
|
|
5491
|
+
var ListGeneratorReleasesInputSchema = z24.object({
|
|
5492
|
+
generator: z24.string(),
|
|
5493
|
+
page: z24.coerce.number().nullish(),
|
|
5494
|
+
pageSize: z24.coerce.number().nullish()
|
|
5455
5495
|
});
|
|
5456
|
-
var ListGeneratorReleasesResponseSchema =
|
|
5457
|
-
generatorReleases:
|
|
5496
|
+
var ListGeneratorReleasesResponseSchema = z24.object({
|
|
5497
|
+
generatorReleases: z24.array(GeneratorReleaseSchema)
|
|
5458
5498
|
});
|
|
5459
|
-
var CliReleaseSchema =
|
|
5460
|
-
version:
|
|
5461
|
-
createdAt:
|
|
5499
|
+
var CliReleaseSchema = z24.object({
|
|
5500
|
+
version: z24.string(),
|
|
5501
|
+
createdAt: z24.string().nullish(),
|
|
5462
5502
|
isYanked: YankSchema.nullish(),
|
|
5463
|
-
changelogEntry:
|
|
5503
|
+
changelogEntry: z24.array(ChangelogEntrySchema).nullish(),
|
|
5464
5504
|
releaseType: ReleaseTypeSchema,
|
|
5465
|
-
majorVersion:
|
|
5466
|
-
irVersion:
|
|
5467
|
-
tags:
|
|
5505
|
+
majorVersion: z24.number(),
|
|
5506
|
+
irVersion: z24.number(),
|
|
5507
|
+
tags: z24.array(z24.string()).nullish()
|
|
5468
5508
|
});
|
|
5469
|
-
var GetLatestCliReleaseInputSchema =
|
|
5470
|
-
releaseTypes:
|
|
5471
|
-
irVersion:
|
|
5509
|
+
var GetLatestCliReleaseInputSchema = z24.object({
|
|
5510
|
+
releaseTypes: z24.array(ReleaseTypeSchema).nullish(),
|
|
5511
|
+
irVersion: z24.number().nullish()
|
|
5472
5512
|
});
|
|
5473
|
-
var GetCliChangelogInputSchema =
|
|
5513
|
+
var GetCliChangelogInputSchema = z24.object({
|
|
5474
5514
|
fromVersion: VersionRangeSchema,
|
|
5475
5515
|
toVersion: VersionRangeSchema
|
|
5476
5516
|
});
|
|
5477
|
-
var GetMinCliForIrInputSchema =
|
|
5478
|
-
irVersion:
|
|
5517
|
+
var GetMinCliForIrInputSchema = z24.object({
|
|
5518
|
+
irVersion: z24.coerce.number()
|
|
5479
5519
|
});
|
|
5480
|
-
var UpsertCliReleaseInputSchema =
|
|
5481
|
-
version:
|
|
5482
|
-
createdAt:
|
|
5520
|
+
var UpsertCliReleaseInputSchema = z24.object({
|
|
5521
|
+
version: z24.string(),
|
|
5522
|
+
createdAt: z24.string().nullish(),
|
|
5483
5523
|
isYanked: YankSchema.nullish(),
|
|
5484
|
-
changelogEntry:
|
|
5485
|
-
irVersion:
|
|
5486
|
-
tags:
|
|
5524
|
+
changelogEntry: z24.array(ChangelogEntrySchema).nullish(),
|
|
5525
|
+
irVersion: z24.number(),
|
|
5526
|
+
tags: z24.array(z24.string()).nullish()
|
|
5487
5527
|
});
|
|
5488
|
-
var GetCliReleaseInputSchema =
|
|
5489
|
-
cliVersion:
|
|
5528
|
+
var GetCliReleaseInputSchema = z24.object({
|
|
5529
|
+
cliVersion: z24.string()
|
|
5490
5530
|
});
|
|
5491
|
-
var ListCliReleasesInputSchema =
|
|
5492
|
-
page:
|
|
5493
|
-
pageSize:
|
|
5531
|
+
var ListCliReleasesInputSchema = z24.object({
|
|
5532
|
+
page: z24.coerce.number().nullish(),
|
|
5533
|
+
pageSize: z24.coerce.number().nullish()
|
|
5494
5534
|
});
|
|
5495
|
-
var ListCliReleasesResponseSchema =
|
|
5496
|
-
cliReleases:
|
|
5535
|
+
var ListCliReleasesResponseSchema = z24.object({
|
|
5536
|
+
cliReleases: z24.array(CliReleaseSchema)
|
|
5497
5537
|
});
|
|
5498
5538
|
var generatorsContract = {
|
|
5499
|
-
upsertGenerator:
|
|
5500
|
-
getGeneratorByImage:
|
|
5501
|
-
getGenerator:
|
|
5502
|
-
listGenerators:
|
|
5539
|
+
upsertGenerator: import_contract25.oc.route({ method: "PUT", path: "/" }).input(GeneratorSchema).output(z24.void()),
|
|
5540
|
+
getGeneratorByImage: import_contract25.oc.route({ method: "POST", path: "/by-image" }).input(GetGeneratorByImageInputSchema).output(GeneratorOutputSchema.nullish()),
|
|
5541
|
+
getGenerator: import_contract25.oc.route({ method: "GET", path: "/{generatorId}" }).input(GetGeneratorInputSchema).output(GeneratorOutputSchema.nullish()),
|
|
5542
|
+
listGenerators: import_contract25.oc.route({ method: "GET", path: "/" }).input(z24.object({})).output(z24.array(GeneratorOutputSchema))
|
|
5503
5543
|
};
|
|
5504
5544
|
var generatorVersionsContract = {
|
|
5505
|
-
getLatestGeneratorRelease:
|
|
5506
|
-
getChangelog:
|
|
5507
|
-
upsertGeneratorRelease:
|
|
5508
|
-
getGeneratorRelease:
|
|
5509
|
-
listGeneratorReleases:
|
|
5545
|
+
getLatestGeneratorRelease: import_contract25.oc.route({ method: "POST", path: "/latest" }).input(GetLatestGeneratorReleaseInputSchema).output(GeneratorReleaseSchema),
|
|
5546
|
+
getChangelog: import_contract25.oc.route({ method: "POST", path: "/{generator}/changelog" }).input(GetGeneratorChangelogInputSchema).output(GetChangelogResponseSchema),
|
|
5547
|
+
upsertGeneratorRelease: import_contract25.oc.route({ method: "PUT", path: "/" }).input(GeneratorReleaseRequestSchema).output(z24.void()),
|
|
5548
|
+
getGeneratorRelease: import_contract25.oc.route({ method: "GET", path: "/{generator}/{version}" }).input(GetGeneratorReleaseInputSchema).output(GeneratorReleaseSchema),
|
|
5549
|
+
listGeneratorReleases: import_contract25.oc.route({ method: "GET", path: "/{generator}" }).input(ListGeneratorReleasesInputSchema).output(ListGeneratorReleasesResponseSchema)
|
|
5510
5550
|
};
|
|
5511
5551
|
var generatorCliContract = {
|
|
5512
|
-
getLatestCliRelease:
|
|
5513
|
-
getChangelog:
|
|
5514
|
-
getMinCliForIr:
|
|
5515
|
-
upsertCliRelease:
|
|
5516
|
-
getCliRelease:
|
|
5517
|
-
listCliReleases:
|
|
5552
|
+
getLatestCliRelease: import_contract25.oc.route({ method: "POST", path: "/latest" }).input(GetLatestCliReleaseInputSchema).output(CliReleaseSchema),
|
|
5553
|
+
getChangelog: import_contract25.oc.route({ method: "POST", path: "/changelog" }).input(GetCliChangelogInputSchema).output(GetChangelogResponseSchema),
|
|
5554
|
+
getMinCliForIr: import_contract25.oc.route({ method: "GET", path: "/for-ir/{irVersion}" }).input(GetMinCliForIrInputSchema).output(CliReleaseSchema),
|
|
5555
|
+
upsertCliRelease: import_contract25.oc.route({ method: "PUT", path: "/" }).input(UpsertCliReleaseInputSchema).output(z24.void()),
|
|
5556
|
+
getCliRelease: import_contract25.oc.route({ method: "GET", path: "/{cliVersion}" }).input(GetCliReleaseInputSchema).output(CliReleaseSchema),
|
|
5557
|
+
listCliReleases: import_contract25.oc.route({ method: "GET", path: "/" }).input(ListCliReleasesInputSchema).output(ListCliReleasesResponseSchema)
|
|
5518
5558
|
};
|
|
5519
5559
|
|
|
5520
5560
|
// src/orpc-client/generators/cli/client.ts
|
|
5521
5561
|
function createGeneratorCliClient(options) {
|
|
5522
|
-
const link = new
|
|
5562
|
+
const link = new import_fetch13.OpenAPILink(generatorCliContract, {
|
|
5523
5563
|
url: `${options.baseUrl}/generators/cli`,
|
|
5524
5564
|
headers: () => ({
|
|
5525
5565
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5527,14 +5567,14 @@ function createGeneratorCliClient(options) {
|
|
|
5527
5567
|
}),
|
|
5528
5568
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5529
5569
|
});
|
|
5530
|
-
return (0,
|
|
5570
|
+
return (0, import_client19.createORPCClient)(link);
|
|
5531
5571
|
}
|
|
5532
5572
|
|
|
5533
5573
|
// src/orpc-client/generators/client.ts
|
|
5534
|
-
var
|
|
5535
|
-
var
|
|
5574
|
+
var import_client20 = require("@orpc/client");
|
|
5575
|
+
var import_fetch14 = require("@orpc/openapi-client/fetch");
|
|
5536
5576
|
function createGeneratorsRootClient(options) {
|
|
5537
|
-
const link = new
|
|
5577
|
+
const link = new import_fetch14.OpenAPILink(generatorsContract, {
|
|
5538
5578
|
url: `${options.baseUrl}/generators`,
|
|
5539
5579
|
headers: () => ({
|
|
5540
5580
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5542,14 +5582,14 @@ function createGeneratorsRootClient(options) {
|
|
|
5542
5582
|
}),
|
|
5543
5583
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5544
5584
|
});
|
|
5545
|
-
return (0,
|
|
5585
|
+
return (0, import_client20.createORPCClient)(link);
|
|
5546
5586
|
}
|
|
5547
5587
|
|
|
5548
5588
|
// src/orpc-client/generators/versions/client.ts
|
|
5549
|
-
var
|
|
5550
|
-
var
|
|
5589
|
+
var import_client21 = require("@orpc/client");
|
|
5590
|
+
var import_fetch15 = require("@orpc/openapi-client/fetch");
|
|
5551
5591
|
function createGeneratorVersionsClient(options) {
|
|
5552
|
-
const link = new
|
|
5592
|
+
const link = new import_fetch15.OpenAPILink(generatorVersionsContract, {
|
|
5553
5593
|
url: `${options.baseUrl}/generators/versions`,
|
|
5554
5594
|
headers: () => ({
|
|
5555
5595
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5557,135 +5597,135 @@ function createGeneratorVersionsClient(options) {
|
|
|
5557
5597
|
}),
|
|
5558
5598
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5559
5599
|
});
|
|
5560
|
-
return (0,
|
|
5600
|
+
return (0, import_client21.createORPCClient)(link);
|
|
5561
5601
|
}
|
|
5562
5602
|
|
|
5563
5603
|
// src/orpc-client/git/client.ts
|
|
5564
|
-
var
|
|
5565
|
-
var
|
|
5604
|
+
var import_client22 = require("@orpc/client");
|
|
5605
|
+
var import_fetch16 = require("@orpc/openapi-client/fetch");
|
|
5566
5606
|
|
|
5567
5607
|
// src/orpc-client/git/contract.ts
|
|
5568
|
-
var
|
|
5569
|
-
var
|
|
5570
|
-
var CheckRunSchema =
|
|
5571
|
-
checkId:
|
|
5572
|
-
repositoryOwner:
|
|
5573
|
-
repositoryName:
|
|
5574
|
-
ref:
|
|
5575
|
-
name:
|
|
5576
|
-
status:
|
|
5577
|
-
conclusion:
|
|
5578
|
-
checkRunUrl:
|
|
5579
|
-
createdAt:
|
|
5580
|
-
completedAt:
|
|
5581
|
-
rawCheckRun:
|
|
5582
|
-
});
|
|
5583
|
-
var GithubRepositoryIdSchema =
|
|
5584
|
-
id:
|
|
5585
|
-
});
|
|
5586
|
-
var RepositoryIdSchema =
|
|
5587
|
-
|
|
5608
|
+
var import_contract29 = require("@orpc/contract");
|
|
5609
|
+
var z25 = __toESM(require("zod"), 1);
|
|
5610
|
+
var CheckRunSchema = z25.object({
|
|
5611
|
+
checkId: z25.string(),
|
|
5612
|
+
repositoryOwner: z25.string(),
|
|
5613
|
+
repositoryName: z25.string(),
|
|
5614
|
+
ref: z25.string(),
|
|
5615
|
+
name: z25.string(),
|
|
5616
|
+
status: z25.string(),
|
|
5617
|
+
conclusion: z25.string(),
|
|
5618
|
+
checkRunUrl: z25.string(),
|
|
5619
|
+
createdAt: z25.string(),
|
|
5620
|
+
completedAt: z25.string().nullish(),
|
|
5621
|
+
rawCheckRun: z25.unknown()
|
|
5622
|
+
});
|
|
5623
|
+
var GithubRepositoryIdSchema = z25.object({
|
|
5624
|
+
id: z25.string()
|
|
5625
|
+
});
|
|
5626
|
+
var RepositoryIdSchema = z25.discriminatedUnion("type", [
|
|
5627
|
+
z25.object({ type: z25.literal("github") }).merge(GithubRepositoryIdSchema)
|
|
5588
5628
|
]);
|
|
5589
|
-
var BaseRepositorySchema =
|
|
5629
|
+
var BaseRepositorySchema = z25.object({
|
|
5590
5630
|
id: RepositoryIdSchema,
|
|
5591
|
-
name:
|
|
5592
|
-
owner:
|
|
5593
|
-
fullName:
|
|
5594
|
-
url:
|
|
5595
|
-
repositoryOwnerOrganizationId:
|
|
5596
|
-
defaultBranchChecks:
|
|
5631
|
+
name: z25.string(),
|
|
5632
|
+
owner: z25.string(),
|
|
5633
|
+
fullName: z25.string(),
|
|
5634
|
+
url: z25.string(),
|
|
5635
|
+
repositoryOwnerOrganizationId: z25.string(),
|
|
5636
|
+
defaultBranchChecks: z25.array(CheckRunSchema)
|
|
5597
5637
|
});
|
|
5598
5638
|
var SdkRepositorySchema = BaseRepositorySchema.extend({
|
|
5599
|
-
type:
|
|
5600
|
-
sdkLanguage:
|
|
5639
|
+
type: z25.literal("sdk"),
|
|
5640
|
+
sdkLanguage: z25.string()
|
|
5601
5641
|
});
|
|
5602
5642
|
var FernConfigRepositorySchema = BaseRepositorySchema.extend({
|
|
5603
|
-
type:
|
|
5643
|
+
type: z25.literal("config")
|
|
5604
5644
|
});
|
|
5605
|
-
var FernRepositorySchema =
|
|
5606
|
-
var GithubUserSchema =
|
|
5607
|
-
name:
|
|
5608
|
-
email:
|
|
5609
|
-
username:
|
|
5645
|
+
var FernRepositorySchema = z25.discriminatedUnion("type", [SdkRepositorySchema, FernConfigRepositorySchema]);
|
|
5646
|
+
var GithubUserSchema = z25.object({
|
|
5647
|
+
name: z25.string().nullish(),
|
|
5648
|
+
email: z25.string().nullish(),
|
|
5649
|
+
username: z25.string()
|
|
5610
5650
|
});
|
|
5611
|
-
var GithubTeamSchema =
|
|
5612
|
-
name:
|
|
5613
|
-
teamId:
|
|
5651
|
+
var GithubTeamSchema = z25.object({
|
|
5652
|
+
name: z25.string(),
|
|
5653
|
+
teamId: z25.string()
|
|
5614
5654
|
});
|
|
5615
|
-
var PullRequestReviewerSchema =
|
|
5616
|
-
|
|
5617
|
-
|
|
5655
|
+
var PullRequestReviewerSchema = z25.discriminatedUnion("type", [
|
|
5656
|
+
z25.object({ type: z25.literal("user") }).merge(GithubUserSchema),
|
|
5657
|
+
z25.object({ type: z25.literal("team") }).merge(GithubTeamSchema)
|
|
5618
5658
|
]);
|
|
5619
|
-
var PullRequestStateSchema =
|
|
5659
|
+
var PullRequestStateSchema = z25.enum(["open", "closed", "merged"]);
|
|
5620
5660
|
var PullRequestState = {
|
|
5621
5661
|
Open: "open",
|
|
5622
5662
|
Closed: "closed",
|
|
5623
5663
|
Merged: "merged"
|
|
5624
5664
|
};
|
|
5625
|
-
var PullRequestSchema =
|
|
5626
|
-
pullRequestNumber:
|
|
5627
|
-
repositoryName:
|
|
5628
|
-
repositoryOwner:
|
|
5665
|
+
var PullRequestSchema = z25.object({
|
|
5666
|
+
pullRequestNumber: z25.number().int(),
|
|
5667
|
+
repositoryName: z25.string(),
|
|
5668
|
+
repositoryOwner: z25.string(),
|
|
5629
5669
|
author: GithubUserSchema.nullish(),
|
|
5630
|
-
reviewers:
|
|
5631
|
-
title:
|
|
5632
|
-
url:
|
|
5633
|
-
checks:
|
|
5670
|
+
reviewers: z25.array(PullRequestReviewerSchema),
|
|
5671
|
+
title: z25.string(),
|
|
5672
|
+
url: z25.string(),
|
|
5673
|
+
checks: z25.array(CheckRunSchema),
|
|
5634
5674
|
state: PullRequestStateSchema,
|
|
5635
|
-
createdAt:
|
|
5636
|
-
updatedAt:
|
|
5637
|
-
mergedAt:
|
|
5638
|
-
closedAt:
|
|
5639
|
-
});
|
|
5640
|
-
var ListRepositoriesResponseSchema =
|
|
5641
|
-
repositories:
|
|
5642
|
-
});
|
|
5643
|
-
var ListPullRequestsResponseSchema =
|
|
5644
|
-
pullRequests:
|
|
5645
|
-
});
|
|
5646
|
-
var GetRepositoryInputSchema =
|
|
5647
|
-
repositoryOwner:
|
|
5648
|
-
repositoryName:
|
|
5649
|
-
});
|
|
5650
|
-
var ListRepositoriesInputSchema =
|
|
5651
|
-
page:
|
|
5652
|
-
pageSize:
|
|
5653
|
-
organizationId:
|
|
5654
|
-
repositoryName:
|
|
5655
|
-
repositoryOwner:
|
|
5656
|
-
});
|
|
5657
|
-
var DeleteRepositoryInputSchema =
|
|
5658
|
-
repositoryOwner:
|
|
5659
|
-
repositoryName:
|
|
5660
|
-
});
|
|
5661
|
-
var GetPullRequestInputSchema =
|
|
5662
|
-
repositoryOwner:
|
|
5663
|
-
repositoryName:
|
|
5664
|
-
pullRequestNumber:
|
|
5665
|
-
});
|
|
5666
|
-
var ListPullRequestsInputSchema =
|
|
5667
|
-
page:
|
|
5668
|
-
pageSize:
|
|
5669
|
-
repositoryName:
|
|
5670
|
-
repositoryOwner:
|
|
5671
|
-
organizationId:
|
|
5672
|
-
state:
|
|
5673
|
-
author:
|
|
5674
|
-
});
|
|
5675
|
-
var DeletePullRequestInputSchema =
|
|
5676
|
-
repositoryOwner:
|
|
5677
|
-
repositoryName:
|
|
5678
|
-
pullRequestNumber:
|
|
5675
|
+
createdAt: z25.string(),
|
|
5676
|
+
updatedAt: z25.string().nullish(),
|
|
5677
|
+
mergedAt: z25.string().nullish(),
|
|
5678
|
+
closedAt: z25.string().nullish()
|
|
5679
|
+
});
|
|
5680
|
+
var ListRepositoriesResponseSchema = z25.object({
|
|
5681
|
+
repositories: z25.array(FernRepositorySchema)
|
|
5682
|
+
});
|
|
5683
|
+
var ListPullRequestsResponseSchema = z25.object({
|
|
5684
|
+
pullRequests: z25.array(PullRequestSchema)
|
|
5685
|
+
});
|
|
5686
|
+
var GetRepositoryInputSchema = z25.object({
|
|
5687
|
+
repositoryOwner: z25.string(),
|
|
5688
|
+
repositoryName: z25.string()
|
|
5689
|
+
});
|
|
5690
|
+
var ListRepositoriesInputSchema = z25.object({
|
|
5691
|
+
page: z25.number().int().nullish(),
|
|
5692
|
+
pageSize: z25.number().int().nullish(),
|
|
5693
|
+
organizationId: z25.string().nullish(),
|
|
5694
|
+
repositoryName: z25.string().nullish(),
|
|
5695
|
+
repositoryOwner: z25.string().nullish()
|
|
5696
|
+
});
|
|
5697
|
+
var DeleteRepositoryInputSchema = z25.object({
|
|
5698
|
+
repositoryOwner: z25.string(),
|
|
5699
|
+
repositoryName: z25.string()
|
|
5700
|
+
});
|
|
5701
|
+
var GetPullRequestInputSchema = z25.object({
|
|
5702
|
+
repositoryOwner: z25.string(),
|
|
5703
|
+
repositoryName: z25.string(),
|
|
5704
|
+
pullRequestNumber: z25.coerce.number().int()
|
|
5705
|
+
});
|
|
5706
|
+
var ListPullRequestsInputSchema = z25.object({
|
|
5707
|
+
page: z25.number().int().nullish(),
|
|
5708
|
+
pageSize: z25.number().int().nullish(),
|
|
5709
|
+
repositoryName: z25.string().nullish(),
|
|
5710
|
+
repositoryOwner: z25.string().nullish(),
|
|
5711
|
+
organizationId: z25.string().nullish(),
|
|
5712
|
+
state: z25.array(PullRequestStateSchema).nullish(),
|
|
5713
|
+
author: z25.array(z25.string()).nullish()
|
|
5714
|
+
});
|
|
5715
|
+
var DeletePullRequestInputSchema = z25.object({
|
|
5716
|
+
repositoryOwner: z25.string(),
|
|
5717
|
+
repositoryName: z25.string(),
|
|
5718
|
+
pullRequestNumber: z25.coerce.number().int()
|
|
5679
5719
|
});
|
|
5680
5720
|
var gitContract = {
|
|
5681
|
-
getRepository:
|
|
5682
|
-
listRepositories:
|
|
5683
|
-
upsertRepository:
|
|
5684
|
-
deleteRepository:
|
|
5685
|
-
getPullRequest:
|
|
5686
|
-
listPullRequests:
|
|
5687
|
-
upsertPullRequest:
|
|
5688
|
-
deletePullRequest:
|
|
5721
|
+
getRepository: import_contract29.oc.route({ method: "GET", path: "/repository/{repositoryOwner}/{repositoryName}" }).input(GetRepositoryInputSchema).output(FernRepositorySchema),
|
|
5722
|
+
listRepositories: import_contract29.oc.route({ method: "POST", path: "/repository/list" }).input(ListRepositoriesInputSchema).output(ListRepositoriesResponseSchema),
|
|
5723
|
+
upsertRepository: import_contract29.oc.route({ method: "PUT", path: "/repository/upsert" }).input(FernRepositorySchema),
|
|
5724
|
+
deleteRepository: import_contract29.oc.route({ method: "DELETE", path: "/repository/{repositoryOwner}/{repositoryName}/delete" }).input(DeleteRepositoryInputSchema),
|
|
5725
|
+
getPullRequest: import_contract29.oc.route({ method: "GET", path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}" }).input(GetPullRequestInputSchema).output(PullRequestSchema),
|
|
5726
|
+
listPullRequests: import_contract29.oc.route({ method: "POST", path: "/pull-request/list" }).input(ListPullRequestsInputSchema).output(ListPullRequestsResponseSchema),
|
|
5727
|
+
upsertPullRequest: import_contract29.oc.route({ method: "PUT", path: "/pull-request/upsert" }).input(PullRequestSchema),
|
|
5728
|
+
deletePullRequest: import_contract29.oc.route({
|
|
5689
5729
|
method: "DELETE",
|
|
5690
5730
|
path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}/delete"
|
|
5691
5731
|
}).input(DeletePullRequestInputSchema)
|
|
@@ -5693,7 +5733,7 @@ var gitContract = {
|
|
|
5693
5733
|
|
|
5694
5734
|
// src/orpc-client/git/client.ts
|
|
5695
5735
|
function createGitClient(options) {
|
|
5696
|
-
const link = new
|
|
5736
|
+
const link = new import_fetch16.OpenAPILink(gitContract, {
|
|
5697
5737
|
url: `${options.baseUrl}/generators/github`,
|
|
5698
5738
|
headers: () => ({
|
|
5699
5739
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5701,106 +5741,106 @@ function createGitClient(options) {
|
|
|
5701
5741
|
}),
|
|
5702
5742
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5703
5743
|
});
|
|
5704
|
-
return (0,
|
|
5744
|
+
return (0, import_client22.createORPCClient)(link);
|
|
5705
5745
|
}
|
|
5706
5746
|
|
|
5707
5747
|
// src/orpc-client/pdf-export/client.ts
|
|
5708
|
-
var
|
|
5709
|
-
var
|
|
5748
|
+
var import_client23 = require("@orpc/client");
|
|
5749
|
+
var import_fetch17 = require("@orpc/openapi-client/fetch");
|
|
5710
5750
|
|
|
5711
5751
|
// src/orpc-client/pdf-export/contract.ts
|
|
5712
|
-
var
|
|
5713
|
-
var
|
|
5714
|
-
var PdfExportScopeSchema =
|
|
5715
|
-
pageSlugs:
|
|
5716
|
-
});
|
|
5717
|
-
var PdfExportOptionsV1Schema =
|
|
5718
|
-
coverTitle:
|
|
5719
|
-
coverSubtitle:
|
|
5720
|
-
hideCoverFooter:
|
|
5721
|
-
headerLeftTemplate:
|
|
5722
|
-
headerRightTemplate:
|
|
5723
|
-
footerLeftTemplate:
|
|
5724
|
-
footerRightTemplate:
|
|
5752
|
+
var import_contract31 = require("@orpc/contract");
|
|
5753
|
+
var z26 = __toESM(require("zod"), 1);
|
|
5754
|
+
var PdfExportScopeSchema = z26.object({
|
|
5755
|
+
pageSlugs: z26.array(z26.string())
|
|
5756
|
+
});
|
|
5757
|
+
var PdfExportOptionsV1Schema = z26.object({
|
|
5758
|
+
coverTitle: z26.string().nullish(),
|
|
5759
|
+
coverSubtitle: z26.string().nullish(),
|
|
5760
|
+
hideCoverFooter: z26.boolean().nullish(),
|
|
5761
|
+
headerLeftTemplate: z26.string().nullish(),
|
|
5762
|
+
headerRightTemplate: z26.string().nullish(),
|
|
5763
|
+
footerLeftTemplate: z26.string().nullish(),
|
|
5764
|
+
footerRightTemplate: z26.string().nullish(),
|
|
5725
5765
|
scope: PdfExportScopeSchema.nullish(),
|
|
5726
|
-
hideCover:
|
|
5727
|
-
hideToc:
|
|
5766
|
+
hideCover: z26.boolean().nullish(),
|
|
5767
|
+
hideToc: z26.boolean().nullish()
|
|
5728
5768
|
});
|
|
5729
|
-
var PdfExportOptionsSchema =
|
|
5730
|
-
|
|
5769
|
+
var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
|
|
5770
|
+
z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
5731
5771
|
]);
|
|
5732
|
-
var PdfExportTaskStatusSchema =
|
|
5733
|
-
var PdfExportTaskSchema =
|
|
5734
|
-
id:
|
|
5735
|
-
orgId:
|
|
5736
|
-
docsUrl:
|
|
5737
|
-
productId:
|
|
5738
|
-
versionId:
|
|
5739
|
-
requesterName:
|
|
5740
|
-
notifyEmails:
|
|
5772
|
+
var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
5773
|
+
var PdfExportTaskSchema = z26.object({
|
|
5774
|
+
id: z26.string(),
|
|
5775
|
+
orgId: z26.string(),
|
|
5776
|
+
docsUrl: z26.string(),
|
|
5777
|
+
productId: z26.string().nullish(),
|
|
5778
|
+
versionId: z26.string().nullish(),
|
|
5779
|
+
requesterName: z26.string().nullish(),
|
|
5780
|
+
notifyEmails: z26.array(z26.string()).nullish(),
|
|
5741
5781
|
status: PdfExportTaskStatusSchema,
|
|
5742
5782
|
options: PdfExportOptionsSchema.nullish(),
|
|
5743
|
-
createdAt:
|
|
5744
|
-
startedAt:
|
|
5745
|
-
completedAt:
|
|
5746
|
-
fileName:
|
|
5747
|
-
sizeBytes:
|
|
5748
|
-
errorMessage:
|
|
5749
|
-
});
|
|
5750
|
-
var ListPdfExportTasksResponseSchema =
|
|
5751
|
-
tasks:
|
|
5752
|
-
});
|
|
5753
|
-
var PdfExportDownloadResponseSchema =
|
|
5754
|
-
downloadUrl:
|
|
5755
|
-
fileName:
|
|
5756
|
-
sizeBytes:
|
|
5757
|
-
});
|
|
5758
|
-
var CreatePdfExportTaskInputSchema =
|
|
5759
|
-
orgId:
|
|
5760
|
-
docsUrl:
|
|
5761
|
-
productId:
|
|
5762
|
-
versionId:
|
|
5763
|
-
requesterName:
|
|
5783
|
+
createdAt: z26.string(),
|
|
5784
|
+
startedAt: z26.string().nullish(),
|
|
5785
|
+
completedAt: z26.string().nullish(),
|
|
5786
|
+
fileName: z26.string().nullish(),
|
|
5787
|
+
sizeBytes: z26.number().nullish(),
|
|
5788
|
+
errorMessage: z26.string().nullish()
|
|
5789
|
+
});
|
|
5790
|
+
var ListPdfExportTasksResponseSchema = z26.object({
|
|
5791
|
+
tasks: z26.array(PdfExportTaskSchema)
|
|
5792
|
+
});
|
|
5793
|
+
var PdfExportDownloadResponseSchema = z26.object({
|
|
5794
|
+
downloadUrl: z26.string(),
|
|
5795
|
+
fileName: z26.string(),
|
|
5796
|
+
sizeBytes: z26.number()
|
|
5797
|
+
});
|
|
5798
|
+
var CreatePdfExportTaskInputSchema = z26.object({
|
|
5799
|
+
orgId: z26.string(),
|
|
5800
|
+
docsUrl: z26.string(),
|
|
5801
|
+
productId: z26.string().nullish(),
|
|
5802
|
+
versionId: z26.string().nullish(),
|
|
5803
|
+
requesterName: z26.string().nullish(),
|
|
5764
5804
|
options: PdfExportOptionsSchema.nullish()
|
|
5765
5805
|
});
|
|
5766
|
-
var ListPdfExportTasksInputSchema =
|
|
5767
|
-
orgId:
|
|
5768
|
-
docsUrl:
|
|
5769
|
-
limit:
|
|
5806
|
+
var ListPdfExportTasksInputSchema = z26.object({
|
|
5807
|
+
orgId: z26.string(),
|
|
5808
|
+
docsUrl: z26.string(),
|
|
5809
|
+
limit: z26.coerce.number().nullish()
|
|
5770
5810
|
});
|
|
5771
|
-
var GetPdfExportTaskInputSchema =
|
|
5772
|
-
taskId:
|
|
5811
|
+
var GetPdfExportTaskInputSchema = z26.object({
|
|
5812
|
+
taskId: z26.string()
|
|
5773
5813
|
});
|
|
5774
|
-
var UpdatePdfExportTaskInputSchema =
|
|
5775
|
-
taskId:
|
|
5814
|
+
var UpdatePdfExportTaskInputSchema = z26.object({
|
|
5815
|
+
taskId: z26.string(),
|
|
5776
5816
|
status: PdfExportTaskStatusSchema,
|
|
5777
|
-
startedAt:
|
|
5778
|
-
completedAt:
|
|
5779
|
-
s3Key:
|
|
5780
|
-
fileName:
|
|
5781
|
-
sizeBytes:
|
|
5782
|
-
errorMessage:
|
|
5817
|
+
startedAt: z26.string().nullish(),
|
|
5818
|
+
completedAt: z26.string().nullish(),
|
|
5819
|
+
s3Key: z26.string().nullish(),
|
|
5820
|
+
fileName: z26.string().nullish(),
|
|
5821
|
+
sizeBytes: z26.number().nullish(),
|
|
5822
|
+
errorMessage: z26.string().nullish()
|
|
5783
5823
|
});
|
|
5784
|
-
var GetPdfExportDownloadUrlInputSchema =
|
|
5785
|
-
taskId:
|
|
5824
|
+
var GetPdfExportDownloadUrlInputSchema = z26.object({
|
|
5825
|
+
taskId: z26.string()
|
|
5786
5826
|
});
|
|
5787
|
-
var CleanupPdfExportsResponseSchema =
|
|
5788
|
-
expiredTasksDeleted:
|
|
5789
|
-
s3ObjectsDeleted:
|
|
5790
|
-
timedOutTasksFailed:
|
|
5827
|
+
var CleanupPdfExportsResponseSchema = z26.object({
|
|
5828
|
+
expiredTasksDeleted: z26.number(),
|
|
5829
|
+
s3ObjectsDeleted: z26.number(),
|
|
5830
|
+
timedOutTasksFailed: z26.number()
|
|
5791
5831
|
});
|
|
5792
5832
|
var pdfExportContract = {
|
|
5793
|
-
createTask:
|
|
5794
|
-
listTasks:
|
|
5795
|
-
getTask:
|
|
5796
|
-
updateTask:
|
|
5797
|
-
getDownloadUrl:
|
|
5798
|
-
cleanup:
|
|
5833
|
+
createTask: import_contract31.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5834
|
+
listTasks: import_contract31.oc.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
|
|
5835
|
+
getTask: import_contract31.oc.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5836
|
+
updateTask: import_contract31.oc.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
|
|
5837
|
+
getDownloadUrl: import_contract31.oc.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
|
|
5838
|
+
cleanup: import_contract31.oc.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
|
|
5799
5839
|
};
|
|
5800
5840
|
|
|
5801
5841
|
// src/orpc-client/pdf-export/client.ts
|
|
5802
5842
|
function createPdfExportClient(options) {
|
|
5803
|
-
const link = new
|
|
5843
|
+
const link = new import_fetch17.OpenAPILink(pdfExportContract, {
|
|
5804
5844
|
url: `${options.baseUrl}/pdf-export`,
|
|
5805
5845
|
headers: () => ({
|
|
5806
5846
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5808,17 +5848,17 @@ function createPdfExportClient(options) {
|
|
|
5808
5848
|
}),
|
|
5809
5849
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5810
5850
|
});
|
|
5811
|
-
return (0,
|
|
5851
|
+
return (0, import_client23.createORPCClient)(link);
|
|
5812
5852
|
}
|
|
5813
5853
|
|
|
5814
5854
|
// src/orpc-client/sdks/client.ts
|
|
5815
|
-
var
|
|
5816
|
-
var
|
|
5855
|
+
var import_client24 = require("@orpc/client");
|
|
5856
|
+
var import_fetch18 = require("@orpc/openapi-client/fetch");
|
|
5817
5857
|
|
|
5818
5858
|
// src/orpc-client/sdks/contract.ts
|
|
5819
|
-
var
|
|
5820
|
-
var
|
|
5821
|
-
var LanguageEnumSchema =
|
|
5859
|
+
var import_contract33 = require("@orpc/contract");
|
|
5860
|
+
var z27 = __toESM(require("zod"), 1);
|
|
5861
|
+
var LanguageEnumSchema = z27.enum([
|
|
5822
5862
|
"Go",
|
|
5823
5863
|
"TypeScript",
|
|
5824
5864
|
"Java",
|
|
@@ -5829,23 +5869,23 @@ var LanguageEnumSchema = z26.enum([
|
|
|
5829
5869
|
"Swift",
|
|
5830
5870
|
"Rust"
|
|
5831
5871
|
]);
|
|
5832
|
-
var VersionBumpEnumSchema =
|
|
5833
|
-
var ComputeSemanticVersionInputSchema =
|
|
5834
|
-
package:
|
|
5872
|
+
var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
|
|
5873
|
+
var ComputeSemanticVersionInputSchema = z27.object({
|
|
5874
|
+
package: z27.string(),
|
|
5835
5875
|
language: LanguageEnumSchema,
|
|
5836
|
-
githubRepository:
|
|
5876
|
+
githubRepository: z27.string().nullish()
|
|
5837
5877
|
});
|
|
5838
|
-
var ComputeSemanticVersionOutputSchema =
|
|
5839
|
-
version:
|
|
5878
|
+
var ComputeSemanticVersionOutputSchema = z27.object({
|
|
5879
|
+
version: z27.string(),
|
|
5840
5880
|
bump: VersionBumpEnumSchema
|
|
5841
5881
|
});
|
|
5842
5882
|
var sdksContract = {
|
|
5843
|
-
computeSemanticVersion:
|
|
5883
|
+
computeSemanticVersion: import_contract33.oc.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
|
|
5844
5884
|
};
|
|
5845
5885
|
|
|
5846
5886
|
// src/orpc-client/sdks/client.ts
|
|
5847
5887
|
function createSdksClient(options) {
|
|
5848
|
-
const link = new
|
|
5888
|
+
const link = new import_fetch18.OpenAPILink(sdksContract, {
|
|
5849
5889
|
url: `${options.baseUrl}/sdks`,
|
|
5850
5890
|
headers: () => ({
|
|
5851
5891
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5853,50 +5893,50 @@ function createSdksClient(options) {
|
|
|
5853
5893
|
}),
|
|
5854
5894
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5855
5895
|
});
|
|
5856
|
-
return (0,
|
|
5896
|
+
return (0, import_client24.createORPCClient)(link);
|
|
5857
5897
|
}
|
|
5858
5898
|
|
|
5859
5899
|
// src/orpc-client/slugs/client.ts
|
|
5860
|
-
var
|
|
5861
|
-
var
|
|
5900
|
+
var import_client25 = require("@orpc/client");
|
|
5901
|
+
var import_fetch19 = require("@orpc/openapi-client/fetch");
|
|
5862
5902
|
|
|
5863
5903
|
// src/orpc-client/slugs/contract.ts
|
|
5864
|
-
var
|
|
5865
|
-
var
|
|
5866
|
-
var SlugsInputSchema =
|
|
5867
|
-
domain:
|
|
5868
|
-
basepath:
|
|
5869
|
-
});
|
|
5870
|
-
var SlugEntrySchema =
|
|
5871
|
-
orgId:
|
|
5872
|
-
domain:
|
|
5873
|
-
basepath:
|
|
5874
|
-
slug:
|
|
5875
|
-
lastUpdated:
|
|
5876
|
-
});
|
|
5877
|
-
var MarkdownEntrySchema =
|
|
5878
|
-
orgId:
|
|
5879
|
-
domain:
|
|
5880
|
-
basepath:
|
|
5881
|
-
pageId:
|
|
5882
|
-
slug:
|
|
5883
|
-
hash:
|
|
5884
|
-
lastUpdated:
|
|
5885
|
-
});
|
|
5886
|
-
var GetSlugEntriesResponseSchema =
|
|
5887
|
-
entries:
|
|
5888
|
-
});
|
|
5889
|
-
var GetMarkdownEntriesResponseSchema =
|
|
5890
|
-
entries:
|
|
5904
|
+
var import_contract35 = require("@orpc/contract");
|
|
5905
|
+
var z28 = __toESM(require("zod"), 1);
|
|
5906
|
+
var SlugsInputSchema = z28.object({
|
|
5907
|
+
domain: z28.string(),
|
|
5908
|
+
basepath: z28.string().optional().default("")
|
|
5909
|
+
});
|
|
5910
|
+
var SlugEntrySchema = z28.object({
|
|
5911
|
+
orgId: z28.string(),
|
|
5912
|
+
domain: z28.string(),
|
|
5913
|
+
basepath: z28.string(),
|
|
5914
|
+
slug: z28.string(),
|
|
5915
|
+
lastUpdated: z28.string()
|
|
5916
|
+
});
|
|
5917
|
+
var MarkdownEntrySchema = z28.object({
|
|
5918
|
+
orgId: z28.string(),
|
|
5919
|
+
domain: z28.string(),
|
|
5920
|
+
basepath: z28.string(),
|
|
5921
|
+
pageId: z28.string(),
|
|
5922
|
+
slug: z28.string(),
|
|
5923
|
+
hash: z28.string(),
|
|
5924
|
+
lastUpdated: z28.string()
|
|
5925
|
+
});
|
|
5926
|
+
var GetSlugEntriesResponseSchema = z28.object({
|
|
5927
|
+
entries: z28.array(SlugEntrySchema)
|
|
5928
|
+
});
|
|
5929
|
+
var GetMarkdownEntriesResponseSchema = z28.object({
|
|
5930
|
+
entries: z28.array(MarkdownEntrySchema)
|
|
5891
5931
|
});
|
|
5892
5932
|
var slugsContract = {
|
|
5893
|
-
getSlugEntries:
|
|
5894
|
-
getMarkdownEntries:
|
|
5933
|
+
getSlugEntries: import_contract35.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
|
|
5934
|
+
getMarkdownEntries: import_contract35.oc.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
|
|
5895
5935
|
};
|
|
5896
5936
|
|
|
5897
5937
|
// src/orpc-client/slugs/client.ts
|
|
5898
5938
|
function createSlugsClient(options) {
|
|
5899
|
-
const link = new
|
|
5939
|
+
const link = new import_fetch19.OpenAPILink(slugsContract, {
|
|
5900
5940
|
url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
|
|
5901
5941
|
headers: () => ({
|
|
5902
5942
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -5904,118 +5944,118 @@ function createSlugsClient(options) {
|
|
|
5904
5944
|
}),
|
|
5905
5945
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
5906
5946
|
});
|
|
5907
|
-
return (0,
|
|
5947
|
+
return (0, import_client25.createORPCClient)(link);
|
|
5908
5948
|
}
|
|
5909
5949
|
|
|
5910
5950
|
// src/orpc-client/snippets/client.ts
|
|
5911
|
-
var
|
|
5912
|
-
var
|
|
5951
|
+
var import_client26 = require("@orpc/client");
|
|
5952
|
+
var import_fetch20 = require("@orpc/openapi-client/fetch");
|
|
5913
5953
|
|
|
5914
5954
|
// src/orpc-client/snippets/contract.ts
|
|
5915
|
-
var
|
|
5916
|
-
var
|
|
5917
|
-
var TypeScriptSdkSchema =
|
|
5918
|
-
var PythonSdkSchema =
|
|
5919
|
-
var GoSdkSchema =
|
|
5920
|
-
var RubySdkSchema =
|
|
5921
|
-
var JavaSdkSchema =
|
|
5922
|
-
var CsharpSdkSchema =
|
|
5923
|
-
var BaseSnippetCreateSchema =
|
|
5955
|
+
var import_contract37 = require("@orpc/contract");
|
|
5956
|
+
var z29 = __toESM(require("zod"), 1);
|
|
5957
|
+
var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5958
|
+
var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5959
|
+
var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
|
|
5960
|
+
var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
|
|
5961
|
+
var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
|
|
5962
|
+
var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
|
|
5963
|
+
var BaseSnippetCreateSchema = z29.object({
|
|
5924
5964
|
endpoint: EndpointIdentifierSchema,
|
|
5925
|
-
exampleIdentifier:
|
|
5965
|
+
exampleIdentifier: z29.string().nullish()
|
|
5926
5966
|
});
|
|
5927
|
-
var SdkSnippetsCreateSchema =
|
|
5928
|
-
|
|
5929
|
-
type:
|
|
5967
|
+
var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
|
|
5968
|
+
z29.object({
|
|
5969
|
+
type: z29.literal("typescript"),
|
|
5930
5970
|
sdk: TypeScriptSdkSchema,
|
|
5931
|
-
snippets:
|
|
5971
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5932
5972
|
}),
|
|
5933
|
-
|
|
5934
|
-
type:
|
|
5973
|
+
z29.object({
|
|
5974
|
+
type: z29.literal("python"),
|
|
5935
5975
|
sdk: PythonSdkSchema,
|
|
5936
|
-
snippets:
|
|
5976
|
+
snippets: z29.array(
|
|
5937
5977
|
BaseSnippetCreateSchema.extend({
|
|
5938
|
-
snippet:
|
|
5978
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
5939
5979
|
})
|
|
5940
5980
|
)
|
|
5941
5981
|
}),
|
|
5942
|
-
|
|
5943
|
-
type:
|
|
5982
|
+
z29.object({
|
|
5983
|
+
type: z29.literal("go"),
|
|
5944
5984
|
sdk: GoSdkSchema,
|
|
5945
|
-
snippets:
|
|
5985
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5946
5986
|
}),
|
|
5947
|
-
|
|
5948
|
-
type:
|
|
5987
|
+
z29.object({
|
|
5988
|
+
type: z29.literal("java"),
|
|
5949
5989
|
sdk: JavaSdkSchema,
|
|
5950
|
-
snippets:
|
|
5990
|
+
snippets: z29.array(
|
|
5951
5991
|
BaseSnippetCreateSchema.extend({
|
|
5952
|
-
snippet:
|
|
5992
|
+
snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
|
|
5953
5993
|
})
|
|
5954
5994
|
)
|
|
5955
5995
|
}),
|
|
5956
|
-
|
|
5957
|
-
type:
|
|
5996
|
+
z29.object({
|
|
5997
|
+
type: z29.literal("ruby"),
|
|
5958
5998
|
sdk: RubySdkSchema,
|
|
5959
|
-
snippets:
|
|
5999
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5960
6000
|
}),
|
|
5961
|
-
|
|
5962
|
-
type:
|
|
6001
|
+
z29.object({
|
|
6002
|
+
type: z29.literal("csharp"),
|
|
5963
6003
|
sdk: CsharpSdkSchema,
|
|
5964
|
-
snippets:
|
|
6004
|
+
snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
|
|
5965
6005
|
})
|
|
5966
6006
|
]);
|
|
5967
6007
|
var snippetsFactoryContract = {
|
|
5968
|
-
createSnippetsForSdk:
|
|
5969
|
-
|
|
5970
|
-
orgId:
|
|
5971
|
-
apiId:
|
|
6008
|
+
createSnippetsForSdk: import_contract37.oc.route({ method: "POST", path: "/create" }).input(
|
|
6009
|
+
z29.object({
|
|
6010
|
+
orgId: z29.string(),
|
|
6011
|
+
apiId: z29.string(),
|
|
5972
6012
|
snippets: SdkSnippetsCreateSchema
|
|
5973
6013
|
})
|
|
5974
6014
|
)
|
|
5975
6015
|
};
|
|
5976
|
-
var ParameterPayloadSchema =
|
|
5977
|
-
name:
|
|
5978
|
-
value:
|
|
6016
|
+
var ParameterPayloadSchema = z29.object({
|
|
6017
|
+
name: z29.string(),
|
|
6018
|
+
value: z29.unknown()
|
|
5979
6019
|
});
|
|
5980
|
-
var AuthPayloadSchema =
|
|
5981
|
-
|
|
5982
|
-
|
|
6020
|
+
var AuthPayloadSchema = z29.discriminatedUnion("type", [
|
|
6021
|
+
z29.object({ type: z29.literal("bearer"), token: z29.string() }),
|
|
6022
|
+
z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
|
|
5983
6023
|
]);
|
|
5984
|
-
var CustomSnippetPayloadSchema =
|
|
5985
|
-
headers:
|
|
5986
|
-
pathParameters:
|
|
5987
|
-
queryParameters:
|
|
5988
|
-
requestBody:
|
|
6024
|
+
var CustomSnippetPayloadSchema = z29.object({
|
|
6025
|
+
headers: z29.array(ParameterPayloadSchema).nullish(),
|
|
6026
|
+
pathParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
6027
|
+
queryParameters: z29.array(ParameterPayloadSchema).nullish(),
|
|
6028
|
+
requestBody: z29.unknown().nullish(),
|
|
5989
6029
|
auth: AuthPayloadSchema.nullish()
|
|
5990
6030
|
});
|
|
5991
6031
|
var snippetsContract = {
|
|
5992
|
-
get:
|
|
5993
|
-
|
|
5994
|
-
orgId:
|
|
5995
|
-
apiId:
|
|
5996
|
-
sdks:
|
|
6032
|
+
get: import_contract37.oc.route({ method: "POST", path: "/" }).input(
|
|
6033
|
+
z29.object({
|
|
6034
|
+
orgId: z29.string().nullish(),
|
|
6035
|
+
apiId: z29.string().nullish(),
|
|
6036
|
+
sdks: z29.array(SdkRequestSchema).nullish(),
|
|
5997
6037
|
endpoint: EndpointIdentifierSchema,
|
|
5998
|
-
exampleIdentifier:
|
|
6038
|
+
exampleIdentifier: z29.string().nullish(),
|
|
5999
6039
|
payload: CustomSnippetPayloadSchema.nullish()
|
|
6000
6040
|
})
|
|
6001
|
-
).output(
|
|
6002
|
-
load:
|
|
6003
|
-
|
|
6004
|
-
orgId:
|
|
6005
|
-
apiId:
|
|
6006
|
-
sdks:
|
|
6041
|
+
).output(z29.array(z29.unknown())),
|
|
6042
|
+
load: import_contract37.oc.route({ method: "POST", path: "/load" }).input(
|
|
6043
|
+
z29.object({
|
|
6044
|
+
orgId: z29.string().nullish(),
|
|
6045
|
+
apiId: z29.string().nullish(),
|
|
6046
|
+
sdks: z29.array(SdkRequestSchema).nullish()
|
|
6007
6047
|
})
|
|
6008
6048
|
).output(
|
|
6009
|
-
|
|
6010
|
-
next:
|
|
6011
|
-
snippets:
|
|
6049
|
+
z29.object({
|
|
6050
|
+
next: z29.number().nullish(),
|
|
6051
|
+
snippets: z29.record(z29.string(), z29.unknown())
|
|
6012
6052
|
})
|
|
6013
6053
|
)
|
|
6014
6054
|
};
|
|
6015
6055
|
|
|
6016
6056
|
// src/orpc-client/snippets/client.ts
|
|
6017
6057
|
function createSnippetsFactoryClient(options) {
|
|
6018
|
-
const link = new
|
|
6058
|
+
const link = new import_fetch20.OpenAPILink(snippetsFactoryContract, {
|
|
6019
6059
|
url: `${options.baseUrl}/snippets`,
|
|
6020
6060
|
headers: () => ({
|
|
6021
6061
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6023,10 +6063,10 @@ function createSnippetsFactoryClient(options) {
|
|
|
6023
6063
|
}),
|
|
6024
6064
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6025
6065
|
});
|
|
6026
|
-
return (0,
|
|
6066
|
+
return (0, import_client26.createORPCClient)(link);
|
|
6027
6067
|
}
|
|
6028
6068
|
function createSnippetsClient(options) {
|
|
6029
|
-
const link = new
|
|
6069
|
+
const link = new import_fetch20.OpenAPILink(snippetsContract, {
|
|
6030
6070
|
url: `${options.baseUrl}/snippets`,
|
|
6031
6071
|
headers: () => ({
|
|
6032
6072
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6034,63 +6074,63 @@ function createSnippetsClient(options) {
|
|
|
6034
6074
|
}),
|
|
6035
6075
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6036
6076
|
});
|
|
6037
|
-
return (0,
|
|
6077
|
+
return (0, import_client26.createORPCClient)(link);
|
|
6038
6078
|
}
|
|
6039
6079
|
|
|
6040
6080
|
// src/orpc-client/templates/client.ts
|
|
6041
|
-
var
|
|
6042
|
-
var
|
|
6081
|
+
var import_client27 = require("@orpc/client");
|
|
6082
|
+
var import_fetch21 = require("@orpc/openapi-client/fetch");
|
|
6043
6083
|
|
|
6044
6084
|
// src/orpc-client/templates/contract.ts
|
|
6045
|
-
var
|
|
6046
|
-
var
|
|
6047
|
-
var SnippetRegistryEntrySchema =
|
|
6085
|
+
var import_contract39 = require("@orpc/contract");
|
|
6086
|
+
var z30 = __toESM(require("zod"), 1);
|
|
6087
|
+
var SnippetRegistryEntrySchema = z30.object({
|
|
6048
6088
|
sdk: SdkSchema,
|
|
6049
|
-
endpointId:
|
|
6050
|
-
path:
|
|
6089
|
+
endpointId: z30.object({
|
|
6090
|
+
path: z30.string(),
|
|
6051
6091
|
method: HttpMethodSchema,
|
|
6052
|
-
identifierOverride:
|
|
6092
|
+
identifierOverride: z30.string().nullish()
|
|
6053
6093
|
}),
|
|
6054
|
-
snippetTemplate:
|
|
6055
|
-
type:
|
|
6056
|
-
functionInvocation:
|
|
6057
|
-
clientInstantiation:
|
|
6094
|
+
snippetTemplate: z30.object({
|
|
6095
|
+
type: z30.literal("v1"),
|
|
6096
|
+
functionInvocation: z30.unknown(),
|
|
6097
|
+
clientInstantiation: z30.string()
|
|
6058
6098
|
}),
|
|
6059
|
-
additionalTemplates:
|
|
6099
|
+
additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
|
|
6060
6100
|
});
|
|
6061
|
-
var RegisterInputSchema =
|
|
6062
|
-
orgId:
|
|
6063
|
-
apiId:
|
|
6064
|
-
apiDefinitionId:
|
|
6101
|
+
var RegisterInputSchema = z30.object({
|
|
6102
|
+
orgId: z30.string(),
|
|
6103
|
+
apiId: z30.string(),
|
|
6104
|
+
apiDefinitionId: z30.string(),
|
|
6065
6105
|
snippet: SnippetRegistryEntrySchema
|
|
6066
6106
|
});
|
|
6067
|
-
var RegisterBatchInputSchema =
|
|
6068
|
-
orgId:
|
|
6069
|
-
apiId:
|
|
6070
|
-
apiDefinitionId:
|
|
6071
|
-
snippets:
|
|
6107
|
+
var RegisterBatchInputSchema = z30.object({
|
|
6108
|
+
orgId: z30.string(),
|
|
6109
|
+
apiId: z30.string(),
|
|
6110
|
+
apiDefinitionId: z30.string(),
|
|
6111
|
+
snippets: z30.array(SnippetRegistryEntrySchema)
|
|
6072
6112
|
});
|
|
6073
|
-
var GetInputSchema =
|
|
6074
|
-
orgId:
|
|
6075
|
-
apiId:
|
|
6113
|
+
var GetInputSchema = z30.object({
|
|
6114
|
+
orgId: z30.string(),
|
|
6115
|
+
apiId: z30.string(),
|
|
6076
6116
|
sdk: SdkSchema,
|
|
6077
|
-
endpointId:
|
|
6078
|
-
path:
|
|
6117
|
+
endpointId: z30.object({
|
|
6118
|
+
path: z30.string(),
|
|
6079
6119
|
method: HttpMethodSchema,
|
|
6080
|
-
identifierOverride:
|
|
6120
|
+
identifierOverride: z30.string().nullish()
|
|
6081
6121
|
})
|
|
6082
6122
|
});
|
|
6083
|
-
var EndpointSnippetTemplateSchema =
|
|
6123
|
+
var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
|
|
6084
6124
|
var templatesContract = {
|
|
6085
|
-
register:
|
|
6086
|
-
registerBatch:
|
|
6087
|
-
get:
|
|
6125
|
+
register: import_contract39.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
|
|
6126
|
+
registerBatch: import_contract39.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
|
|
6127
|
+
get: import_contract39.oc.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
|
|
6088
6128
|
};
|
|
6089
6129
|
|
|
6090
6130
|
// src/orpc-client/templates/client.ts
|
|
6091
6131
|
function createTemplatesClient(options) {
|
|
6092
6132
|
const baseUrl = options.baseUrl.replace(/\/+$/, "");
|
|
6093
|
-
const link = new
|
|
6133
|
+
const link = new import_fetch21.OpenAPILink(templatesContract, {
|
|
6094
6134
|
url: `${baseUrl}/snippet-template`,
|
|
6095
6135
|
headers: () => ({
|
|
6096
6136
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6098,36 +6138,36 @@ function createTemplatesClient(options) {
|
|
|
6098
6138
|
}),
|
|
6099
6139
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6100
6140
|
});
|
|
6101
|
-
return (0,
|
|
6141
|
+
return (0, import_client27.createORPCClient)(link);
|
|
6102
6142
|
}
|
|
6103
6143
|
|
|
6104
6144
|
// src/orpc-client/tokens/client.ts
|
|
6105
|
-
var
|
|
6106
|
-
var
|
|
6145
|
+
var import_client28 = require("@orpc/client");
|
|
6146
|
+
var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
6107
6147
|
|
|
6108
6148
|
// src/orpc-client/tokens/contract.ts
|
|
6109
|
-
var
|
|
6110
|
-
var
|
|
6111
|
-
var GenerateTokenInputSchema =
|
|
6112
|
-
orgId:
|
|
6113
|
-
scope:
|
|
6149
|
+
var import_contract41 = require("@orpc/contract");
|
|
6150
|
+
var z31 = __toESM(require("zod"), 1);
|
|
6151
|
+
var GenerateTokenInputSchema = z31.object({
|
|
6152
|
+
orgId: z31.string(),
|
|
6153
|
+
scope: z31.string()
|
|
6114
6154
|
});
|
|
6115
|
-
var RevokeTokenInputSchema =
|
|
6116
|
-
orgId:
|
|
6117
|
-
tokenId:
|
|
6155
|
+
var RevokeTokenInputSchema = z31.object({
|
|
6156
|
+
orgId: z31.string(),
|
|
6157
|
+
tokenId: z31.string()
|
|
6118
6158
|
});
|
|
6119
|
-
var GenerateTokenOutputSchema =
|
|
6120
|
-
token:
|
|
6121
|
-
id:
|
|
6159
|
+
var GenerateTokenOutputSchema = z31.object({
|
|
6160
|
+
token: z31.string(),
|
|
6161
|
+
id: z31.string()
|
|
6122
6162
|
});
|
|
6123
6163
|
var tokensContract = {
|
|
6124
|
-
generate:
|
|
6125
|
-
revoke:
|
|
6164
|
+
generate: import_contract41.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
|
|
6165
|
+
revoke: import_contract41.oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
|
|
6126
6166
|
};
|
|
6127
6167
|
|
|
6128
6168
|
// src/orpc-client/tokens/client.ts
|
|
6129
6169
|
function createTokensClient(options) {
|
|
6130
|
-
const link = new
|
|
6170
|
+
const link = new import_fetch22.OpenAPILink(tokensContract, {
|
|
6131
6171
|
url: `${options.baseUrl}/tokens`,
|
|
6132
6172
|
headers: () => ({
|
|
6133
6173
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -6135,7 +6175,7 @@ function createTokensClient(options) {
|
|
|
6135
6175
|
}),
|
|
6136
6176
|
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6137
6177
|
});
|
|
6138
|
-
return (0,
|
|
6178
|
+
return (0, import_client28.createORPCClient)(link);
|
|
6139
6179
|
}
|
|
6140
6180
|
|
|
6141
6181
|
// src/orpc-client/client.ts
|
|
@@ -6168,45 +6208,6 @@ function createFdrORPCClient(options) {
|
|
|
6168
6208
|
};
|
|
6169
6209
|
}
|
|
6170
6210
|
|
|
6171
|
-
// src/orpc-client/docs/v1/write/client.ts
|
|
6172
|
-
var import_client44 = require("@orpc/client");
|
|
6173
|
-
var import_fetch22 = require("@orpc/openapi-client/fetch");
|
|
6174
|
-
|
|
6175
|
-
// src/orpc-client/docs/v1/write/contract.ts
|
|
6176
|
-
var import_contract41 = require("@orpc/contract");
|
|
6177
|
-
var z31 = __toESM(require("zod"), 1);
|
|
6178
|
-
var StartDocsRegisterV1InputSchema = z31.object({
|
|
6179
|
-
orgId: z31.string(),
|
|
6180
|
-
domain: z31.string(),
|
|
6181
|
-
filepaths: z31.array(z31.string())
|
|
6182
|
-
});
|
|
6183
|
-
var StartDocsRegisterV1ResponseSchema = z31.object({
|
|
6184
|
-
docsRegistrationId: z31.string(),
|
|
6185
|
-
uploadUrls: z31.record(z31.string(), FileS3UploadUrlSchema),
|
|
6186
|
-
skippedFiles: z31.array(z31.string())
|
|
6187
|
-
});
|
|
6188
|
-
var FinishDocsRegisterV1InputSchema = z31.object({
|
|
6189
|
-
docsRegistrationId: z31.string(),
|
|
6190
|
-
docsDefinition: z31.unknown()
|
|
6191
|
-
});
|
|
6192
|
-
var docsV1WriteContract = {
|
|
6193
|
-
startDocsRegister: import_contract41.oc.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
|
|
6194
|
-
finishDocsRegister: import_contract41.oc.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z31.void())
|
|
6195
|
-
};
|
|
6196
|
-
|
|
6197
|
-
// src/orpc-client/docs/v1/write/client.ts
|
|
6198
|
-
function createDocsV1WriteClient(options) {
|
|
6199
|
-
const link = new import_fetch22.OpenAPILink(docsV1WriteContract, {
|
|
6200
|
-
url: `${options.baseUrl}/registry/docs`,
|
|
6201
|
-
headers: () => ({
|
|
6202
|
-
Authorization: `Bearer ${options.token}`,
|
|
6203
|
-
...options.headers
|
|
6204
|
-
}),
|
|
6205
|
-
...options.fetch != null ? { fetch: options.fetch } : {}
|
|
6206
|
-
});
|
|
6207
|
-
return (0, import_client44.createORPCClient)(link);
|
|
6208
|
-
}
|
|
6209
|
-
|
|
6210
6211
|
// src/orpc-client/docs-ledger/config-files.ts
|
|
6211
6212
|
var z32 = __toESM(require("zod"), 1);
|
|
6212
6213
|
var PATH_OR_URL_METADATA_KEYS = [
|