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