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