@fern-api/fdr-sdk 1.2.53-d8c526632f → 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/db.d.ts +61 -0
- package/dist/client/docs-types/db.d.ts.map +1 -1
- 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/client/docs-types/read.d.ts +27 -0
- package/dist/client/docs-types/read.d.ts.map +1 -1
- package/dist/client/docs-types/shared.d.ts +8 -0
- package/dist/client/docs-types/shared.d.ts.map +1 -1
- package/dist/client/docs-types/shared.js +1 -0
- package/dist/client/docs-types/shared.js.map +1 -1
- package/dist/client/docs-types/write.d.ts +16 -0
- package/dist/client/docs-types/write.d.ts.map +1 -1
- package/dist/js/client/FdrClient.js +1456 -1495
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1456 -1495
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/client/types.js +2 -1
- package/dist/js/client/types.js.map +1 -1
- package/dist/js/client/types.mjs +2 -1
- package/dist/js/client/types.mjs.map +1 -1
- package/dist/js/converters/index.js +304 -301
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +304 -301
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/docs/index.js +2 -1
- package/dist/js/docs/index.js.map +1 -1
- package/dist/js/docs/index.mjs +2 -1
- package/dist/js/docs/index.mjs.map +1 -1
- package/dist/js/index.js +1785 -1824
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +1784 -1823
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +304 -301
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +304 -301
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +1507 -1507
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1515 -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/v1/read/contract.d.ts +18 -0
- package/dist/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v1/write/contract.d.ts +4 -0
- package/dist/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v2/read/contract.d.ts +40 -0
- package/dist/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs/v2/write/contract.d.ts +14 -6
- package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +56 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts +14 -0
- package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client/docs-types/db.d.ts +61 -0
- package/dist/types/client/docs-types/db.d.ts.map +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/client/docs-types/read.d.ts +27 -0
- package/dist/types/client/docs-types/read.d.ts.map +1 -1
- package/dist/types/client/docs-types/shared.d.ts +8 -0
- package/dist/types/client/docs-types/shared.d.ts.map +1 -1
- package/dist/types/client/docs-types/write.d.ts +16 -0
- package/dist/types/client/docs-types/write.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/v1/read/contract.d.ts +18 -0
- package/dist/types/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v1/write/contract.d.ts +4 -0
- package/dist/types/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/read/contract.d.ts +40 -0
- package/dist/types/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts +14 -6
- package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +56 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +14 -0
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8247,6 +8247,7 @@ var PageActionOptionsSchema = z6.object({
|
|
|
8247
8247
|
cursor: z6.boolean().optional(),
|
|
8248
8248
|
claudeCode: z6.boolean().optional(),
|
|
8249
8249
|
vscode: z6.boolean().optional(),
|
|
8250
|
+
mcp: z6.boolean().optional(),
|
|
8250
8251
|
custom: z6.array(CustomPageActionSchema).optional(),
|
|
8251
8252
|
skills: SkillsConfigSchema.optional()
|
|
8252
8253
|
});
|
|
@@ -8552,226 +8553,346 @@ var LoadDocsForUrlResponseSchema = z8.object({
|
|
|
8552
8553
|
translations: z8.array(z8.string()).optional()
|
|
8553
8554
|
});
|
|
8554
8555
|
|
|
8556
|
+
// src/orpc-client/docs/v2/read/contract.ts
|
|
8557
|
+
var contract_exports = {};
|
|
8558
|
+
__export(contract_exports, {
|
|
8559
|
+
DocsDefinitionField: () => DocsDefinitionField,
|
|
8560
|
+
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
8561
|
+
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
8562
|
+
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
8563
|
+
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
8564
|
+
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
8565
|
+
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
8566
|
+
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
8567
|
+
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
8568
|
+
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
8569
|
+
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
8570
|
+
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
8571
|
+
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
8572
|
+
docsV2ReadContract: () => docsV2ReadContract,
|
|
8573
|
+
getDocsForUrl: () => getDocsForUrl
|
|
8574
|
+
});
|
|
8575
|
+
var import_contract = require("@orpc/contract");
|
|
8576
|
+
var z9 = __toESM(require("zod"), 1);
|
|
8577
|
+
var GetDocsUrlMetadataInputSchema = z9.object({
|
|
8578
|
+
url: z9.string()
|
|
8579
|
+
});
|
|
8580
|
+
var GetDocsUrlMetadataResponseSchema = z9.object({
|
|
8581
|
+
isPreviewUrl: z9.boolean(),
|
|
8582
|
+
org: z9.string(),
|
|
8583
|
+
url: z9.string(),
|
|
8584
|
+
gitUrl: z9.string().nullish(),
|
|
8585
|
+
enableAlgoliaOnPreview: z9.boolean().nullish()
|
|
8586
|
+
});
|
|
8587
|
+
var GetDocsForUrlInputSchema = z9.object({
|
|
8588
|
+
url: z9.string(),
|
|
8589
|
+
excludeApis: z9.boolean().nullish()
|
|
8590
|
+
});
|
|
8591
|
+
var GetPrivateDocsForUrlInputSchema = z9.object({
|
|
8592
|
+
url: z9.string()
|
|
8593
|
+
});
|
|
8594
|
+
var ListAllDocsUrlsInputSchema = z9.object({
|
|
8595
|
+
limit: z9.number().nullish(),
|
|
8596
|
+
page: z9.number().nullish(),
|
|
8597
|
+
custom: z9.boolean().nullish(),
|
|
8598
|
+
preview: z9.boolean().nullish()
|
|
8599
|
+
});
|
|
8600
|
+
var GetDocsConfigByIdInputSchema = z9.object({
|
|
8601
|
+
docsConfigId: z9.string()
|
|
8602
|
+
});
|
|
8603
|
+
var DocsDefinitionField = {
|
|
8604
|
+
BaseUrl: "BASE_URL",
|
|
8605
|
+
FilesV2: "FILES_V2",
|
|
8606
|
+
ApisV2: "APIS_V2",
|
|
8607
|
+
Apis: "APIS",
|
|
8608
|
+
Pages: "PAGES",
|
|
8609
|
+
JsFiles: "JS_FILES",
|
|
8610
|
+
Config: "CONFIG",
|
|
8611
|
+
Root: "ROOT"
|
|
8612
|
+
};
|
|
8613
|
+
var GetDocsConfigByIdResponseSchema = z9.object({
|
|
8614
|
+
docsConfig: DocsConfigSchema,
|
|
8615
|
+
apis: z9.record(z9.string(), z9.unknown())
|
|
8616
|
+
});
|
|
8617
|
+
var DocsDomainItemSchema = z9.object({
|
|
8618
|
+
domain: z9.string(),
|
|
8619
|
+
basePath: z9.string().optional(),
|
|
8620
|
+
organizationId: z9.string(),
|
|
8621
|
+
updatedAt: z9.string()
|
|
8622
|
+
});
|
|
8623
|
+
var ListAllDocsUrlsResponseSchema = z9.object({
|
|
8624
|
+
urls: z9.array(DocsDomainItemSchema)
|
|
8625
|
+
});
|
|
8626
|
+
var getDocsForUrl;
|
|
8627
|
+
((getDocsForUrl2) => {
|
|
8628
|
+
let Error2;
|
|
8629
|
+
((Error3) => {
|
|
8630
|
+
function _unknown(fetcherError) {
|
|
8631
|
+
return { error: void 0, content: fetcherError };
|
|
8632
|
+
}
|
|
8633
|
+
Error3._unknown = _unknown;
|
|
8634
|
+
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
8635
|
+
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
8636
|
+
var docsV2ReadContract = {
|
|
8637
|
+
getDocsUrlMetadata: import_contract.oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
8638
|
+
getDocsForUrl: import_contract.oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8639
|
+
getPrivateDocsForUrl: import_contract.oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8640
|
+
listAllDocsUrls: import_contract.oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
8641
|
+
getDocsConfigById: import_contract.oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
8642
|
+
prepopulateFdrReadS3Bucket: import_contract.oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z9.void()),
|
|
8643
|
+
ensureDocsInS3: import_contract.oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z9.void()),
|
|
8644
|
+
getDocsFields: import_contract.oc.route({ method: "POST", path: "/load-fields" }).output(z9.void())
|
|
8645
|
+
};
|
|
8646
|
+
|
|
8647
|
+
// src/orpc-client/docs/v2/write/contract.ts
|
|
8648
|
+
var contract_exports2 = {};
|
|
8649
|
+
__export(contract_exports2, {
|
|
8650
|
+
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
8651
|
+
AuthConfigSchema: () => AuthConfigSchema,
|
|
8652
|
+
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
8653
|
+
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
8654
|
+
FilePath: () => FilePath2,
|
|
8655
|
+
FilePathInputSchema: () => FilePathInputSchema,
|
|
8656
|
+
FilePathSchema: () => FilePathSchema2,
|
|
8657
|
+
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
8658
|
+
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
8659
|
+
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
8660
|
+
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
8661
|
+
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
8662
|
+
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
8663
|
+
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
8664
|
+
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
8665
|
+
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
8666
|
+
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
8667
|
+
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
8668
|
+
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
8669
|
+
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
8670
|
+
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
8671
|
+
docsV2WriteContract: () => docsV2WriteContract
|
|
8672
|
+
});
|
|
8673
|
+
var import_contract2 = require("@orpc/contract");
|
|
8674
|
+
var z12 = __toESM(require("zod"), 1);
|
|
8675
|
+
|
|
8555
8676
|
// src/client/docs-types/write.ts
|
|
8556
|
-
var
|
|
8677
|
+
var z11 = __toESM(require("zod"), 1);
|
|
8557
8678
|
|
|
8558
8679
|
// src/client/docs-types/write-commons.ts
|
|
8559
|
-
var
|
|
8560
|
-
var OrgIdSchema2 =
|
|
8680
|
+
var z10 = __toESM(require("zod"), 1);
|
|
8681
|
+
var OrgIdSchema2 = z10.string();
|
|
8561
8682
|
function OrgId2(value) {
|
|
8562
8683
|
return value;
|
|
8563
8684
|
}
|
|
8564
8685
|
|
|
8565
8686
|
// src/client/docs-types/write.ts
|
|
8566
|
-
var FilePathSchema =
|
|
8687
|
+
var FilePathSchema = z11.string();
|
|
8567
8688
|
function FilePath(value) {
|
|
8568
8689
|
return value;
|
|
8569
8690
|
}
|
|
8570
|
-
var DocsRegistrationIdSchema =
|
|
8691
|
+
var DocsRegistrationIdSchema = z11.string();
|
|
8571
8692
|
function DocsRegistrationId(value) {
|
|
8572
8693
|
return value;
|
|
8573
8694
|
}
|
|
8574
|
-
var HeightSchema2 =
|
|
8575
|
-
var FileS3UploadUrlSchema =
|
|
8576
|
-
uploadUrl:
|
|
8695
|
+
var HeightSchema2 = z11.number();
|
|
8696
|
+
var FileS3UploadUrlSchema = z11.object({
|
|
8697
|
+
uploadUrl: z11.string(),
|
|
8577
8698
|
fileId: FileIdSchema2
|
|
8578
8699
|
});
|
|
8579
|
-
var StartDocsRegisterResponseSchema =
|
|
8700
|
+
var StartDocsRegisterResponseSchema = z11.object({
|
|
8580
8701
|
docsRegistrationId: DocsRegistrationIdSchema,
|
|
8581
|
-
uploadUrls:
|
|
8582
|
-
skippedFiles:
|
|
8702
|
+
uploadUrls: z11.record(FilePathSchema, FileS3UploadUrlSchema),
|
|
8703
|
+
skippedFiles: z11.array(FilePathSchema)
|
|
8583
8704
|
});
|
|
8584
|
-
var PageContentSchema2 =
|
|
8585
|
-
markdown:
|
|
8705
|
+
var PageContentSchema2 = z11.object({
|
|
8706
|
+
markdown: z11.string(),
|
|
8586
8707
|
editThisPageUrl: UrlSchema2.optional(),
|
|
8587
8708
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
8588
|
-
rawMarkdown:
|
|
8709
|
+
rawMarkdown: z11.string().optional()
|
|
8589
8710
|
});
|
|
8590
|
-
var NavigationNodeMetadataSchema2 =
|
|
8591
|
-
icon:
|
|
8592
|
-
hidden:
|
|
8593
|
-
urlSlugOverride:
|
|
8594
|
-
fullSlug:
|
|
8711
|
+
var NavigationNodeMetadataSchema2 = z11.object({
|
|
8712
|
+
icon: z11.string().optional(),
|
|
8713
|
+
hidden: z11.boolean().optional(),
|
|
8714
|
+
urlSlugOverride: z11.string().optional(),
|
|
8715
|
+
fullSlug: z11.array(z11.string()).optional()
|
|
8595
8716
|
});
|
|
8596
|
-
var PageMetadataSchema2 =
|
|
8717
|
+
var PageMetadataSchema2 = z11.object({
|
|
8597
8718
|
...NavigationNodeMetadataSchema2.shape,
|
|
8598
8719
|
id: PageIdSchema2,
|
|
8599
|
-
title:
|
|
8720
|
+
title: z11.string()
|
|
8600
8721
|
});
|
|
8601
|
-
var LinkMetadataSchema2 =
|
|
8602
|
-
title:
|
|
8603
|
-
icon:
|
|
8722
|
+
var LinkMetadataSchema2 = z11.object({
|
|
8723
|
+
title: z11.string(),
|
|
8724
|
+
icon: z11.string().optional(),
|
|
8604
8725
|
url: UrlSchema2,
|
|
8605
8726
|
target: LinkTargetSchema.optional()
|
|
8606
8727
|
});
|
|
8607
|
-
var ChangelogItemSchema2 =
|
|
8608
|
-
date:
|
|
8728
|
+
var ChangelogItemSchema2 = z11.object({
|
|
8729
|
+
date: z11.string(),
|
|
8609
8730
|
pageId: PageIdSchema2,
|
|
8610
|
-
hidden:
|
|
8611
|
-
tags:
|
|
8612
|
-
});
|
|
8613
|
-
var ChangelogSectionSchema2 =
|
|
8614
|
-
title:
|
|
8615
|
-
icon:
|
|
8616
|
-
hidden:
|
|
8617
|
-
description:
|
|
8731
|
+
hidden: z11.boolean().optional(),
|
|
8732
|
+
tags: z11.array(z11.string()).optional()
|
|
8733
|
+
});
|
|
8734
|
+
var ChangelogSectionSchema2 = z11.object({
|
|
8735
|
+
title: z11.string().optional(),
|
|
8736
|
+
icon: z11.string().optional(),
|
|
8737
|
+
hidden: z11.boolean().optional(),
|
|
8738
|
+
description: z11.string().optional(),
|
|
8618
8739
|
pageId: PageIdSchema2.optional(),
|
|
8619
|
-
items:
|
|
8620
|
-
urlSlug:
|
|
8621
|
-
fullSlug:
|
|
8740
|
+
items: z11.array(ChangelogItemSchema2),
|
|
8741
|
+
urlSlug: z11.string(),
|
|
8742
|
+
fullSlug: z11.array(z11.string()).optional()
|
|
8622
8743
|
});
|
|
8623
|
-
var ChangelogSectionV2Schema =
|
|
8744
|
+
var ChangelogSectionV2Schema = z11.object({
|
|
8624
8745
|
...NavigationNodeMetadataSchema2.shape,
|
|
8625
|
-
title:
|
|
8626
|
-
description:
|
|
8746
|
+
title: z11.string().optional(),
|
|
8747
|
+
description: z11.string().optional(),
|
|
8627
8748
|
pageId: PageIdSchema2.optional(),
|
|
8628
|
-
items:
|
|
8749
|
+
items: z11.array(ChangelogItemSchema2)
|
|
8629
8750
|
});
|
|
8630
|
-
var ChangelogSectionV3Schema2 =
|
|
8631
|
-
node:
|
|
8751
|
+
var ChangelogSectionV3Schema2 = z11.object({
|
|
8752
|
+
node: z11.unknown()
|
|
8632
8753
|
});
|
|
8633
|
-
var NavigationTabLinkSchema2 =
|
|
8634
|
-
title:
|
|
8635
|
-
icon:
|
|
8754
|
+
var NavigationTabLinkSchema2 = z11.object({
|
|
8755
|
+
title: z11.string(),
|
|
8756
|
+
icon: z11.string().optional(),
|
|
8636
8757
|
url: UrlSchema2,
|
|
8637
8758
|
target: LinkTargetSchema.optional()
|
|
8638
8759
|
});
|
|
8639
|
-
var ApiNavigationConfigItemSchema4 =
|
|
8640
|
-
() =>
|
|
8641
|
-
|
|
8642
|
-
type:
|
|
8760
|
+
var ApiNavigationConfigItemSchema4 = z11.lazy(
|
|
8761
|
+
() => z11.discriminatedUnion("type", [
|
|
8762
|
+
z11.object({
|
|
8763
|
+
type: z11.literal("subpackage"),
|
|
8643
8764
|
summaryPageId: PageIdSchema2.optional(),
|
|
8644
8765
|
subpackageId: SubpackageIdSchema2,
|
|
8645
|
-
items:
|
|
8766
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
8646
8767
|
}),
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8768
|
+
z11.object({ type: z11.literal("endpointId"), value: EndpointIdSchema2 }),
|
|
8769
|
+
z11.object({ type: z11.literal("websocketId"), value: WebSocketIdSchema2 }),
|
|
8770
|
+
z11.object({ type: z11.literal("webhookId"), value: WebhookIdSchema2 }),
|
|
8771
|
+
z11.object({ type: z11.literal("page"), ...PageMetadataSchema2.shape })
|
|
8651
8772
|
])
|
|
8652
8773
|
);
|
|
8653
|
-
var ApiNavigationConfigSubpackageSchema =
|
|
8774
|
+
var ApiNavigationConfigSubpackageSchema = z11.object({
|
|
8654
8775
|
summaryPageId: PageIdSchema2.optional(),
|
|
8655
8776
|
subpackageId: SubpackageIdSchema2,
|
|
8656
|
-
items:
|
|
8777
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
8657
8778
|
});
|
|
8658
|
-
var ApiNavigationConfigRootSchema4 =
|
|
8779
|
+
var ApiNavigationConfigRootSchema4 = z11.object({
|
|
8659
8780
|
summaryPageId: PageIdSchema2.optional(),
|
|
8660
|
-
items:
|
|
8781
|
+
items: z11.array(ApiNavigationConfigItemSchema4)
|
|
8661
8782
|
});
|
|
8662
|
-
var ApiSectionSchema2 =
|
|
8783
|
+
var ApiSectionSchema2 = z11.object({
|
|
8663
8784
|
...NavigationNodeMetadataSchema2.shape,
|
|
8664
|
-
title:
|
|
8785
|
+
title: z11.string(),
|
|
8665
8786
|
api: ApiDefinitionIdSchema2,
|
|
8666
|
-
artifacts:
|
|
8667
|
-
sdks:
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
type:
|
|
8671
|
-
packageName:
|
|
8672
|
-
githubRepoName:
|
|
8673
|
-
version:
|
|
8787
|
+
artifacts: z11.object({
|
|
8788
|
+
sdks: z11.array(
|
|
8789
|
+
z11.discriminatedUnion("type", [
|
|
8790
|
+
z11.object({
|
|
8791
|
+
type: z11.literal("npm"),
|
|
8792
|
+
packageName: z11.string(),
|
|
8793
|
+
githubRepoName: z11.string(),
|
|
8794
|
+
version: z11.string()
|
|
8674
8795
|
}),
|
|
8675
|
-
|
|
8676
|
-
type:
|
|
8677
|
-
coordinate:
|
|
8678
|
-
githubRepoName:
|
|
8679
|
-
version:
|
|
8796
|
+
z11.object({
|
|
8797
|
+
type: z11.literal("maven"),
|
|
8798
|
+
coordinate: z11.string(),
|
|
8799
|
+
githubRepoName: z11.string(),
|
|
8800
|
+
version: z11.string()
|
|
8680
8801
|
}),
|
|
8681
|
-
|
|
8682
|
-
type:
|
|
8683
|
-
packageName:
|
|
8684
|
-
githubRepoName:
|
|
8685
|
-
version:
|
|
8802
|
+
z11.object({
|
|
8803
|
+
type: z11.literal("pypi"),
|
|
8804
|
+
packageName: z11.string(),
|
|
8805
|
+
githubRepoName: z11.string(),
|
|
8806
|
+
version: z11.string()
|
|
8686
8807
|
})
|
|
8687
8808
|
])
|
|
8688
8809
|
),
|
|
8689
|
-
postman:
|
|
8810
|
+
postman: z11.object({
|
|
8690
8811
|
url: UrlSchema2,
|
|
8691
|
-
githubRepoName:
|
|
8812
|
+
githubRepoName: z11.string().optional()
|
|
8692
8813
|
}).optional()
|
|
8693
8814
|
}).optional(),
|
|
8694
|
-
skipUrlSlug:
|
|
8695
|
-
showErrors:
|
|
8815
|
+
skipUrlSlug: z11.boolean().optional(),
|
|
8816
|
+
showErrors: z11.boolean().optional(),
|
|
8696
8817
|
changelog: ChangelogSectionSchema2.optional(),
|
|
8697
8818
|
changelogV2: ChangelogSectionV2Schema.optional(),
|
|
8698
8819
|
navigation: ApiNavigationConfigRootSchema4.optional(),
|
|
8699
|
-
longScrolling:
|
|
8700
|
-
flattened:
|
|
8820
|
+
longScrolling: z11.boolean().optional(),
|
|
8821
|
+
flattened: z11.boolean().optional()
|
|
8701
8822
|
});
|
|
8702
|
-
var ApiSectionV2Schema2 =
|
|
8703
|
-
node:
|
|
8823
|
+
var ApiSectionV2Schema2 = z11.object({
|
|
8824
|
+
node: z11.unknown()
|
|
8704
8825
|
});
|
|
8705
|
-
var DocsSectionSchema2 =
|
|
8706
|
-
() =>
|
|
8826
|
+
var DocsSectionSchema2 = z11.lazy(
|
|
8827
|
+
() => z11.object({
|
|
8707
8828
|
...NavigationNodeMetadataSchema2.shape,
|
|
8708
|
-
title:
|
|
8709
|
-
items:
|
|
8710
|
-
collapsed:
|
|
8711
|
-
collapsible:
|
|
8712
|
-
collapsedByDefault:
|
|
8713
|
-
skipUrlSlug:
|
|
8829
|
+
title: z11.string(),
|
|
8830
|
+
items: z11.array(NavigationItemSchema2),
|
|
8831
|
+
collapsed: z11.union([z11.boolean(), z11.literal("open-by-default")]).optional(),
|
|
8832
|
+
collapsible: z11.boolean().optional(),
|
|
8833
|
+
collapsedByDefault: z11.boolean().optional(),
|
|
8834
|
+
skipUrlSlug: z11.boolean().optional(),
|
|
8714
8835
|
overviewPageId: PageIdSchema2.optional()
|
|
8715
8836
|
})
|
|
8716
8837
|
);
|
|
8717
|
-
var NavigationItemSchema2 =
|
|
8718
|
-
() =>
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
type:
|
|
8838
|
+
var NavigationItemSchema2 = z11.lazy(
|
|
8839
|
+
() => z11.discriminatedUnion("type", [
|
|
8840
|
+
z11.object({ type: z11.literal("page"), ...PageMetadataSchema2.shape }),
|
|
8841
|
+
z11.object({ type: z11.literal("api"), ...ApiSectionSchema2.shape }),
|
|
8842
|
+
z11.object({ type: z11.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
|
|
8843
|
+
z11.object({
|
|
8844
|
+
type: z11.literal("section"),
|
|
8724
8845
|
...NavigationNodeMetadataSchema2.shape,
|
|
8725
|
-
title:
|
|
8726
|
-
items:
|
|
8727
|
-
collapsed:
|
|
8728
|
-
collapsible:
|
|
8729
|
-
collapsedByDefault:
|
|
8730
|
-
skipUrlSlug:
|
|
8846
|
+
title: z11.string(),
|
|
8847
|
+
items: z11.array(NavigationItemSchema2),
|
|
8848
|
+
collapsed: z11.union([z11.boolean(), z11.literal("open-by-default")]).optional(),
|
|
8849
|
+
collapsible: z11.boolean().optional(),
|
|
8850
|
+
collapsedByDefault: z11.boolean().optional(),
|
|
8851
|
+
skipUrlSlug: z11.boolean().optional(),
|
|
8731
8852
|
overviewPageId: PageIdSchema2.optional()
|
|
8732
8853
|
}),
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8854
|
+
z11.object({ type: z11.literal("link"), ...LinkMetadataSchema2.shape }),
|
|
8855
|
+
z11.object({ type: z11.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
8856
|
+
z11.object({ type: z11.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
8736
8857
|
])
|
|
8737
8858
|
);
|
|
8738
|
-
var NavigationTabGroupSchema2 =
|
|
8859
|
+
var NavigationTabGroupSchema2 = z11.object({
|
|
8739
8860
|
...NavigationNodeMetadataSchema2.shape,
|
|
8740
|
-
title:
|
|
8741
|
-
items:
|
|
8742
|
-
skipUrlSlug:
|
|
8743
|
-
});
|
|
8744
|
-
var NavigationTabSchema2 =
|
|
8745
|
-
var NavigationTabV2Schema =
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8861
|
+
title: z11.string(),
|
|
8862
|
+
items: z11.array(NavigationItemSchema2),
|
|
8863
|
+
skipUrlSlug: z11.boolean().optional()
|
|
8864
|
+
});
|
|
8865
|
+
var NavigationTabSchema2 = z11.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
|
|
8866
|
+
var NavigationTabV2Schema = z11.discriminatedUnion("type", [
|
|
8867
|
+
z11.object({ type: z11.literal("group"), ...NavigationTabGroupSchema2.shape }),
|
|
8868
|
+
z11.object({ type: z11.literal("link"), ...NavigationTabLinkSchema2.shape }),
|
|
8869
|
+
z11.object({ type: z11.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
|
|
8870
|
+
z11.object({ type: z11.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
|
|
8750
8871
|
]);
|
|
8751
|
-
var UnversionedTabbedNavigationConfigSchema2 =
|
|
8752
|
-
tabs:
|
|
8753
|
-
tabsV2:
|
|
8872
|
+
var UnversionedTabbedNavigationConfigSchema2 = z11.object({
|
|
8873
|
+
tabs: z11.array(NavigationTabSchema2).optional(),
|
|
8874
|
+
tabsV2: z11.array(NavigationTabV2Schema).optional(),
|
|
8754
8875
|
landingPage: PageMetadataSchema2.optional()
|
|
8755
8876
|
});
|
|
8756
|
-
var UnversionedUntabbedNavigationConfigSchema2 =
|
|
8757
|
-
items:
|
|
8877
|
+
var UnversionedUntabbedNavigationConfigSchema2 = z11.object({
|
|
8878
|
+
items: z11.array(NavigationItemSchema2),
|
|
8758
8879
|
landingPage: PageMetadataSchema2.optional()
|
|
8759
8880
|
});
|
|
8760
|
-
var UnversionedNavigationConfigSchema2 =
|
|
8881
|
+
var UnversionedNavigationConfigSchema2 = z11.union([
|
|
8761
8882
|
UnversionedTabbedNavigationConfigSchema2,
|
|
8762
8883
|
UnversionedUntabbedNavigationConfigSchema2
|
|
8763
8884
|
]);
|
|
8764
|
-
var VersionedNavigationConfigDataSchema2 =
|
|
8885
|
+
var VersionedNavigationConfigDataSchema2 = z11.object({
|
|
8765
8886
|
version: VersionIdSchema2,
|
|
8766
|
-
urlSlugOverride:
|
|
8887
|
+
urlSlugOverride: z11.string().optional(),
|
|
8767
8888
|
availability: AvailabilitySchema2.optional(),
|
|
8768
8889
|
config: UnversionedNavigationConfigSchema2
|
|
8769
8890
|
});
|
|
8770
|
-
var VersionedNavigationConfigSchema2 =
|
|
8771
|
-
versions:
|
|
8891
|
+
var VersionedNavigationConfigSchema2 = z11.object({
|
|
8892
|
+
versions: z11.array(VersionedNavigationConfigDataSchema2)
|
|
8772
8893
|
});
|
|
8773
|
-
var NavigationConfigSchema2 =
|
|
8774
|
-
var ThemeConfigSchema2 =
|
|
8894
|
+
var NavigationConfigSchema2 = z11.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
|
|
8895
|
+
var ThemeConfigSchema2 = z11.object({
|
|
8775
8896
|
logo: FileIdSchema2.optional(),
|
|
8776
8897
|
backgroundImage: FileIdSchema2.optional(),
|
|
8777
8898
|
accentPrimary: RgbaColorSchema,
|
|
@@ -8793,37 +8914,37 @@ var ThemeConfigSchema2 = z10.object({
|
|
|
8793
8914
|
accent11: RgbaColorSchema.optional(),
|
|
8794
8915
|
accent12: RgbaColorSchema.optional()
|
|
8795
8916
|
});
|
|
8796
|
-
var DarkAndLightModeConfigSchema2 =
|
|
8917
|
+
var DarkAndLightModeConfigSchema2 = z11.object({
|
|
8797
8918
|
dark: ThemeConfigSchema2,
|
|
8798
8919
|
light: ThemeConfigSchema2
|
|
8799
8920
|
});
|
|
8800
|
-
var ColorsConfigV3Schema2 =
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8921
|
+
var ColorsConfigV3Schema2 = z11.discriminatedUnion("type", [
|
|
8922
|
+
z11.object({ type: z11.literal("dark"), ...ThemeConfigSchema2.shape }),
|
|
8923
|
+
z11.object({ type: z11.literal("light"), ...ThemeConfigSchema2.shape }),
|
|
8924
|
+
z11.object({ type: z11.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
|
|
8804
8925
|
]);
|
|
8805
|
-
var DocsConfigSchema2 =
|
|
8806
|
-
title:
|
|
8926
|
+
var DocsConfigSchema2 = z11.object({
|
|
8927
|
+
title: z11.string().optional(),
|
|
8807
8928
|
defaultLanguage: ProgrammingLanguageSchema.optional(),
|
|
8808
|
-
languages:
|
|
8929
|
+
languages: z11.array(LanguageSchema).optional(),
|
|
8809
8930
|
translations: DocsTranslationsConfigSchema.optional(),
|
|
8810
|
-
announcement:
|
|
8931
|
+
announcement: z11.object({ text: z11.string() }).optional(),
|
|
8811
8932
|
navigation: NavigationConfigSchema2.optional(),
|
|
8812
|
-
root:
|
|
8813
|
-
navbarLinks:
|
|
8814
|
-
footerLinks:
|
|
8815
|
-
hideNavLinks:
|
|
8933
|
+
root: z11.custom().optional(),
|
|
8934
|
+
navbarLinks: z11.array(NavbarLinkSchema).optional(),
|
|
8935
|
+
footerLinks: z11.array(FooterLinkSchema).optional(),
|
|
8936
|
+
hideNavLinks: z11.boolean().optional(),
|
|
8816
8937
|
logoHeight: HeightSchema2.optional(),
|
|
8817
8938
|
logoHref: UrlSchema2.optional(),
|
|
8818
|
-
logoRightText:
|
|
8939
|
+
logoRightText: z11.string().optional(),
|
|
8819
8940
|
favicon: FileIdSchema2.optional(),
|
|
8820
8941
|
agents: AgentsConfigSchema.optional(),
|
|
8821
8942
|
metadata: MetadataConfigSchema.optional(),
|
|
8822
|
-
redirects:
|
|
8943
|
+
redirects: z11.array(RedirectConfigSchema).optional(),
|
|
8823
8944
|
colorsV3: ColorsConfigV3Schema2.optional(),
|
|
8824
8945
|
layout: DocsLayoutConfigSchema.optional(),
|
|
8825
8946
|
theme: DocsThemeConfigSchema.optional(),
|
|
8826
|
-
globalTheme:
|
|
8947
|
+
globalTheme: z11.string().optional(),
|
|
8827
8948
|
settings: DocsSettingsConfigSchema.optional(),
|
|
8828
8949
|
typographyV2: DocsTypographyConfigV2Schema.optional(),
|
|
8829
8950
|
analyticsConfig: AnalyticsConfigSchema.optional(),
|
|
@@ -8833,8 +8954,8 @@ var DocsConfigSchema2 = z10.object({
|
|
|
8833
8954
|
aiChatConfig: AIChatConfigSchema.optional(),
|
|
8834
8955
|
pageActions: PageActionsConfigSchema.optional(),
|
|
8835
8956
|
editThisPageLaunch: EditThisPageLaunchSchema.optional(),
|
|
8836
|
-
header:
|
|
8837
|
-
footer:
|
|
8957
|
+
header: z11.string().optional(),
|
|
8958
|
+
footer: z11.string().optional(),
|
|
8838
8959
|
backgroundImage: FileIdSchema2.optional(),
|
|
8839
8960
|
logoV2: ThemedFileIdSchema.optional(),
|
|
8840
8961
|
logo: FileIdSchema2.optional(),
|
|
@@ -8842,163 +8963,45 @@ var DocsConfigSchema2 = z10.object({
|
|
|
8842
8963
|
colorsV2: ColorsConfigV2Schema.optional(),
|
|
8843
8964
|
typography: DocsTypographyConfigSchema.optional()
|
|
8844
8965
|
});
|
|
8845
|
-
var DocsDefinitionSchema2 =
|
|
8846
|
-
pages:
|
|
8966
|
+
var DocsDefinitionSchema2 = z11.object({
|
|
8967
|
+
pages: z11.record(PageIdSchema2, PageContentSchema2),
|
|
8847
8968
|
config: DocsConfigSchema2,
|
|
8848
|
-
jsFiles:
|
|
8849
|
-
});
|
|
8850
|
-
var NpmPackageSchema2 =
|
|
8851
|
-
packageName:
|
|
8852
|
-
githubRepoName:
|
|
8853
|
-
version:
|
|
8854
|
-
});
|
|
8855
|
-
var MavenPackageSchema2 =
|
|
8856
|
-
coordinate:
|
|
8857
|
-
githubRepoName:
|
|
8858
|
-
version:
|
|
8859
|
-
});
|
|
8860
|
-
var PypiPackageSchema2 =
|
|
8861
|
-
packageName:
|
|
8862
|
-
githubRepoName:
|
|
8863
|
-
version:
|
|
8864
|
-
});
|
|
8865
|
-
var PublishedSdkSchema2 =
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8969
|
+
jsFiles: z11.record(z11.string(), z11.string()).optional()
|
|
8970
|
+
});
|
|
8971
|
+
var NpmPackageSchema2 = z11.object({
|
|
8972
|
+
packageName: z11.string(),
|
|
8973
|
+
githubRepoName: z11.string(),
|
|
8974
|
+
version: z11.string()
|
|
8975
|
+
});
|
|
8976
|
+
var MavenPackageSchema2 = z11.object({
|
|
8977
|
+
coordinate: z11.string(),
|
|
8978
|
+
githubRepoName: z11.string(),
|
|
8979
|
+
version: z11.string()
|
|
8980
|
+
});
|
|
8981
|
+
var PypiPackageSchema2 = z11.object({
|
|
8982
|
+
packageName: z11.string(),
|
|
8983
|
+
githubRepoName: z11.string(),
|
|
8984
|
+
version: z11.string()
|
|
8985
|
+
});
|
|
8986
|
+
var PublishedSdkSchema2 = z11.discriminatedUnion("type", [
|
|
8987
|
+
z11.object({ type: z11.literal("npm"), ...NpmPackageSchema2.shape }),
|
|
8988
|
+
z11.object({ type: z11.literal("maven"), ...MavenPackageSchema2.shape }),
|
|
8989
|
+
z11.object({ type: z11.literal("pypi"), ...PypiPackageSchema2.shape })
|
|
8869
8990
|
]);
|
|
8870
|
-
var PublishedPostmanCollectionSchema2 =
|
|
8991
|
+
var PublishedPostmanCollectionSchema2 = z11.object({
|
|
8871
8992
|
url: UrlSchema2,
|
|
8872
|
-
githubRepoName:
|
|
8993
|
+
githubRepoName: z11.string().optional()
|
|
8873
8994
|
});
|
|
8874
|
-
var ApiArtifactsSchema2 =
|
|
8875
|
-
sdks:
|
|
8995
|
+
var ApiArtifactsSchema2 = z11.object({
|
|
8996
|
+
sdks: z11.array(PublishedSdkSchema2),
|
|
8876
8997
|
postman: PublishedPostmanCollectionSchema2.optional()
|
|
8877
8998
|
});
|
|
8878
|
-
var InvalidCustomDomainErrorBodySchema =
|
|
8879
|
-
overlappingDomains:
|
|
8999
|
+
var InvalidCustomDomainErrorBodySchema = z11.object({
|
|
9000
|
+
overlappingDomains: z11.array(z11.array(z11.string()))
|
|
8880
9001
|
});
|
|
8881
|
-
var OverlappingCustomDomainsSchema =
|
|
8882
|
-
|
|
8883
|
-
// src/orpc-client/docs/v2/read/contract.ts
|
|
8884
|
-
var contract_exports = {};
|
|
8885
|
-
__export(contract_exports, {
|
|
8886
|
-
DocsDefinitionField: () => DocsDefinitionField,
|
|
8887
|
-
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
8888
|
-
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
8889
|
-
DocsReadDefinitionSchema: () => DocsDefinitionSchema,
|
|
8890
|
-
GetDocsConfigByIdInputSchema: () => GetDocsConfigByIdInputSchema,
|
|
8891
|
-
GetDocsConfigByIdResponseSchema: () => GetDocsConfigByIdResponseSchema,
|
|
8892
|
-
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
8893
|
-
GetDocsUrlMetadataInputSchema: () => GetDocsUrlMetadataInputSchema,
|
|
8894
|
-
GetDocsUrlMetadataResponseSchema: () => GetDocsUrlMetadataResponseSchema,
|
|
8895
|
-
GetPrivateDocsForUrlInputSchema: () => GetPrivateDocsForUrlInputSchema,
|
|
8896
|
-
ListAllDocsUrlsInputSchema: () => ListAllDocsUrlsInputSchema,
|
|
8897
|
-
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
8898
|
-
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
8899
|
-
docsV2ReadContract: () => docsV2ReadContract,
|
|
8900
|
-
getDocsForUrl: () => getDocsForUrl
|
|
8901
|
-
});
|
|
8902
|
-
var import_contract = require("@orpc/contract");
|
|
8903
|
-
var z11 = __toESM(require("zod"), 1);
|
|
8904
|
-
var GetDocsUrlMetadataInputSchema = z11.object({
|
|
8905
|
-
url: z11.string()
|
|
8906
|
-
});
|
|
8907
|
-
var GetDocsUrlMetadataResponseSchema = z11.object({
|
|
8908
|
-
isPreviewUrl: z11.boolean(),
|
|
8909
|
-
org: z11.string(),
|
|
8910
|
-
url: z11.string(),
|
|
8911
|
-
gitUrl: z11.string().nullish(),
|
|
8912
|
-
enableAlgoliaOnPreview: z11.boolean().nullish()
|
|
8913
|
-
});
|
|
8914
|
-
var GetDocsForUrlInputSchema = z11.object({
|
|
8915
|
-
url: z11.string(),
|
|
8916
|
-
excludeApis: z11.boolean().nullish()
|
|
8917
|
-
});
|
|
8918
|
-
var GetPrivateDocsForUrlInputSchema = z11.object({
|
|
8919
|
-
url: z11.string()
|
|
8920
|
-
});
|
|
8921
|
-
var ListAllDocsUrlsInputSchema = z11.object({
|
|
8922
|
-
limit: z11.number().nullish(),
|
|
8923
|
-
page: z11.number().nullish(),
|
|
8924
|
-
custom: z11.boolean().nullish(),
|
|
8925
|
-
preview: z11.boolean().nullish()
|
|
8926
|
-
});
|
|
8927
|
-
var GetDocsConfigByIdInputSchema = z11.object({
|
|
8928
|
-
docsConfigId: z11.string()
|
|
8929
|
-
});
|
|
8930
|
-
var DocsDefinitionField = {
|
|
8931
|
-
BaseUrl: "BASE_URL",
|
|
8932
|
-
FilesV2: "FILES_V2",
|
|
8933
|
-
ApisV2: "APIS_V2",
|
|
8934
|
-
Apis: "APIS",
|
|
8935
|
-
Pages: "PAGES",
|
|
8936
|
-
JsFiles: "JS_FILES",
|
|
8937
|
-
Config: "CONFIG",
|
|
8938
|
-
Root: "ROOT"
|
|
8939
|
-
};
|
|
8940
|
-
var GetDocsConfigByIdResponseSchema = z11.object({
|
|
8941
|
-
docsConfig: DocsConfigSchema,
|
|
8942
|
-
apis: z11.record(z11.string(), z11.unknown())
|
|
8943
|
-
});
|
|
8944
|
-
var DocsDomainItemSchema = z11.object({
|
|
8945
|
-
domain: z11.string(),
|
|
8946
|
-
basePath: z11.string().optional(),
|
|
8947
|
-
organizationId: z11.string(),
|
|
8948
|
-
updatedAt: z11.string()
|
|
8949
|
-
});
|
|
8950
|
-
var ListAllDocsUrlsResponseSchema = z11.object({
|
|
8951
|
-
urls: z11.array(DocsDomainItemSchema)
|
|
8952
|
-
});
|
|
8953
|
-
var getDocsForUrl;
|
|
8954
|
-
((getDocsForUrl2) => {
|
|
8955
|
-
let Error2;
|
|
8956
|
-
((Error3) => {
|
|
8957
|
-
function _unknown(fetcherError) {
|
|
8958
|
-
return { error: void 0, content: fetcherError };
|
|
8959
|
-
}
|
|
8960
|
-
Error3._unknown = _unknown;
|
|
8961
|
-
})(Error2 = getDocsForUrl2.Error || (getDocsForUrl2.Error = {}));
|
|
8962
|
-
})(getDocsForUrl || (getDocsForUrl = {}));
|
|
8963
|
-
var docsV2ReadContract = {
|
|
8964
|
-
getDocsUrlMetadata: import_contract.oc.route({ method: "POST", path: "/metadata-for-url" }).input(GetDocsUrlMetadataInputSchema).output(GetDocsUrlMetadataResponseSchema),
|
|
8965
|
-
getDocsForUrl: import_contract.oc.route({ method: "POST", path: "/load-with-url" }).input(GetDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8966
|
-
getPrivateDocsForUrl: import_contract.oc.route({ method: "POST", path: "/private/load-with-url" }).input(GetPrivateDocsForUrlInputSchema).output(LoadDocsForUrlResponseSchema),
|
|
8967
|
-
listAllDocsUrls: import_contract.oc.route({ method: "GET", path: "/urls/list" }).input(ListAllDocsUrlsInputSchema).output(ListAllDocsUrlsResponseSchema),
|
|
8968
|
-
getDocsConfigById: import_contract.oc.route({ method: "GET", path: "/{docsConfigId}" }).input(GetDocsConfigByIdInputSchema).output(GetDocsConfigByIdResponseSchema),
|
|
8969
|
-
prepopulateFdrReadS3Bucket: import_contract.oc.route({ method: "POST", path: "/prepopulate-s3-bucket" }).output(z11.void()),
|
|
8970
|
-
ensureDocsInS3: import_contract.oc.route({ method: "POST", path: "/ensure-docs-in-s3" }).output(z11.void()),
|
|
8971
|
-
getDocsFields: import_contract.oc.route({ method: "POST", path: "/load-fields" }).output(z11.void())
|
|
8972
|
-
};
|
|
9002
|
+
var OverlappingCustomDomainsSchema = z11.array(z11.string());
|
|
8973
9003
|
|
|
8974
9004
|
// src/orpc-client/docs/v2/write/contract.ts
|
|
8975
|
-
var contract_exports2 = {};
|
|
8976
|
-
__export(contract_exports2, {
|
|
8977
|
-
AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema,
|
|
8978
|
-
AuthConfigSchema: () => AuthConfigSchema,
|
|
8979
|
-
Bcp47LocaleSchema: () => Bcp47LocaleSchema2,
|
|
8980
|
-
DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema,
|
|
8981
|
-
FilePath: () => FilePath2,
|
|
8982
|
-
FilePathInputSchema: () => FilePathInputSchema,
|
|
8983
|
-
FilePathSchema: () => FilePathSchema2,
|
|
8984
|
-
FileS3UploadUrlSchema: () => FileS3UploadUrlSchema,
|
|
8985
|
-
FinishDocsRegisterV2InputSchema: () => FinishDocsRegisterV2InputSchema,
|
|
8986
|
-
ImageFilePathSchema: () => ImageFilePathSchema,
|
|
8987
|
-
ListAlgoliaPreviewWhitelistResponseSchema: () => ListAlgoliaPreviewWhitelistResponseSchema,
|
|
8988
|
-
RegisterTranslationInputSchema: () => RegisterTranslationInputSchema,
|
|
8989
|
-
RegisterTranslationResponseSchema: () => RegisterTranslationResponseSchema,
|
|
8990
|
-
RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema,
|
|
8991
|
-
SetDocsUrlMetadataInputSchema: () => SetDocsUrlMetadataInputSchema,
|
|
8992
|
-
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
8993
|
-
StartDocsPreviewRegisterInputSchema: () => StartDocsPreviewRegisterInputSchema,
|
|
8994
|
-
StartDocsPreviewRegisterResponseSchema: () => StartDocsPreviewRegisterResponseSchema,
|
|
8995
|
-
StartDocsRegisterV2InputSchema: () => StartDocsRegisterV2InputSchema,
|
|
8996
|
-
StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema,
|
|
8997
|
-
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
8998
|
-
docsV2WriteContract: () => docsV2WriteContract
|
|
8999
|
-
});
|
|
9000
|
-
var import_contract2 = require("@orpc/contract");
|
|
9001
|
-
var z12 = __toESM(require("zod"), 1);
|
|
9002
9005
|
var FilePathSchema2 = z12.string();
|
|
9003
9006
|
function FilePath2(value) {
|
|
9004
9007
|
return value;
|
|
@@ -11060,7 +11063,7 @@ var WithMetadataConfigSchema = z18.object({
|
|
|
11060
11063
|
nofollow: z18.boolean().optional(),
|
|
11061
11064
|
keywords: StringOrStringListSchema.optional()
|
|
11062
11065
|
});
|
|
11063
|
-
var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom"]);
|
|
11066
|
+
var LayoutSchema = z18.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
|
|
11064
11067
|
var LogoConfigurationSchema = z18.object({
|
|
11065
11068
|
light: FileIdOrUrlSchema.optional(),
|
|
11066
11069
|
dark: FileIdOrUrlSchema.optional()
|