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