@fern-api/fdr-sdk 1.2.54-6737dc66b0 → 1.2.54-efc419b23b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/js/client/FdrClient.js +1495 -1455
  2. package/dist/js/client/FdrClient.js.map +1 -1
  3. package/dist/js/client/FdrClient.mjs +1495 -1455
  4. package/dist/js/client/FdrClient.mjs.map +1 -1
  5. package/dist/js/converters/index.js +300 -302
  6. package/dist/js/converters/index.js.map +1 -1
  7. package/dist/js/converters/index.mjs +300 -302
  8. package/dist/js/converters/index.mjs.map +1 -1
  9. package/dist/js/index.js +1819 -1779
  10. package/dist/js/index.js.map +1 -1
  11. package/dist/js/index.mjs +1816 -1776
  12. package/dist/js/index.mjs.map +1 -1
  13. package/dist/js/navigation/index.js +300 -302
  14. package/dist/js/navigation/index.js.map +1 -1
  15. package/dist/js/navigation/index.mjs +300 -302
  16. package/dist/js/navigation/index.mjs.map +1 -1
  17. package/dist/js/orpc-client.js +1507 -1506
  18. package/dist/js/orpc-client.js.map +1 -1
  19. package/dist/js/orpc-client.mjs +1506 -1505
  20. package/dist/js/orpc-client.mjs.map +1 -1
  21. package/dist/orpc-client/docs/client.d.ts +2 -0
  22. package/dist/orpc-client/docs/client.d.ts.map +1 -1
  23. package/dist/orpc-client/docs/client.js +3 -1
  24. package/dist/orpc-client/docs/client.js.map +1 -1
  25. package/dist/orpc-client/docs/v2/write/contract.d.ts +6 -6
  26. package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/dist/types/orpc-client/docs/client.d.ts +2 -0
  29. package/dist/types/orpc-client/docs/client.d.ts.map +1 -1
  30. package/dist/types/orpc-client/docs/v2/write/contract.d.ts +6 -6
  31. package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -8553,346 +8553,226 @@ 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
-
8676
8556
  // src/client/docs-types/write.ts
8677
- var z11 = __toESM(require("zod"), 1);
8557
+ var z10 = __toESM(require("zod"), 1);
8678
8558
 
8679
8559
  // src/client/docs-types/write-commons.ts
8680
- var z10 = __toESM(require("zod"), 1);
8681
- var OrgIdSchema2 = z10.string();
8560
+ var z9 = __toESM(require("zod"), 1);
8561
+ var OrgIdSchema2 = z9.string();
8682
8562
  function OrgId2(value) {
8683
8563
  return value;
8684
8564
  }
8685
8565
 
8686
8566
  // src/client/docs-types/write.ts
8687
- var FilePathSchema = z11.string();
8567
+ var FilePathSchema = z10.string();
8688
8568
  function FilePath(value) {
8689
8569
  return value;
8690
8570
  }
8691
- var DocsRegistrationIdSchema = z11.string();
8571
+ var DocsRegistrationIdSchema = z10.string();
8692
8572
  function DocsRegistrationId(value) {
8693
8573
  return value;
8694
8574
  }
8695
- var HeightSchema2 = z11.number();
8696
- var FileS3UploadUrlSchema = z11.object({
8697
- uploadUrl: z11.string(),
8575
+ var HeightSchema2 = z10.number();
8576
+ var FileS3UploadUrlSchema = z10.object({
8577
+ uploadUrl: z10.string(),
8698
8578
  fileId: FileIdSchema2
8699
8579
  });
8700
- var StartDocsRegisterResponseSchema = z11.object({
8580
+ var StartDocsRegisterResponseSchema = z10.object({
8701
8581
  docsRegistrationId: DocsRegistrationIdSchema,
8702
- uploadUrls: z11.record(FilePathSchema, FileS3UploadUrlSchema),
8703
- skippedFiles: z11.array(FilePathSchema)
8582
+ uploadUrls: z10.record(FilePathSchema, FileS3UploadUrlSchema),
8583
+ skippedFiles: z10.array(FilePathSchema)
8704
8584
  });
8705
- var PageContentSchema2 = z11.object({
8706
- markdown: z11.string(),
8585
+ var PageContentSchema2 = z10.object({
8586
+ markdown: z10.string(),
8707
8587
  editThisPageUrl: UrlSchema2.optional(),
8708
8588
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
8709
- rawMarkdown: z11.string().optional()
8589
+ rawMarkdown: z10.string().optional()
8710
8590
  });
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()
8591
+ var NavigationNodeMetadataSchema2 = z10.object({
8592
+ icon: z10.string().optional(),
8593
+ hidden: z10.boolean().optional(),
8594
+ urlSlugOverride: z10.string().optional(),
8595
+ fullSlug: z10.array(z10.string()).optional()
8716
8596
  });
8717
- var PageMetadataSchema2 = z11.object({
8597
+ var PageMetadataSchema2 = z10.object({
8718
8598
  ...NavigationNodeMetadataSchema2.shape,
8719
8599
  id: PageIdSchema2,
8720
- title: z11.string()
8600
+ title: z10.string()
8721
8601
  });
8722
- var LinkMetadataSchema2 = z11.object({
8723
- title: z11.string(),
8724
- icon: z11.string().optional(),
8602
+ var LinkMetadataSchema2 = z10.object({
8603
+ title: z10.string(),
8604
+ icon: z10.string().optional(),
8725
8605
  url: UrlSchema2,
8726
8606
  target: LinkTargetSchema.optional()
8727
8607
  });
8728
- var ChangelogItemSchema2 = z11.object({
8729
- date: z11.string(),
8608
+ var ChangelogItemSchema2 = z10.object({
8609
+ date: z10.string(),
8730
8610
  pageId: PageIdSchema2,
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(),
8611
+ hidden: z10.boolean().optional(),
8612
+ tags: z10.array(z10.string()).optional()
8613
+ });
8614
+ var ChangelogSectionSchema2 = z10.object({
8615
+ title: z10.string().optional(),
8616
+ icon: z10.string().optional(),
8617
+ hidden: z10.boolean().optional(),
8618
+ description: z10.string().optional(),
8739
8619
  pageId: PageIdSchema2.optional(),
8740
- items: z11.array(ChangelogItemSchema2),
8741
- urlSlug: z11.string(),
8742
- fullSlug: z11.array(z11.string()).optional()
8620
+ items: z10.array(ChangelogItemSchema2),
8621
+ urlSlug: z10.string(),
8622
+ fullSlug: z10.array(z10.string()).optional()
8743
8623
  });
8744
- var ChangelogSectionV2Schema = z11.object({
8624
+ var ChangelogSectionV2Schema = z10.object({
8745
8625
  ...NavigationNodeMetadataSchema2.shape,
8746
- title: z11.string().optional(),
8747
- description: z11.string().optional(),
8626
+ title: z10.string().optional(),
8627
+ description: z10.string().optional(),
8748
8628
  pageId: PageIdSchema2.optional(),
8749
- items: z11.array(ChangelogItemSchema2)
8629
+ items: z10.array(ChangelogItemSchema2)
8750
8630
  });
8751
- var ChangelogSectionV3Schema2 = z11.object({
8752
- node: z11.unknown()
8631
+ var ChangelogSectionV3Schema2 = z10.object({
8632
+ node: z10.unknown()
8753
8633
  });
8754
- var NavigationTabLinkSchema2 = z11.object({
8755
- title: z11.string(),
8756
- icon: z11.string().optional(),
8634
+ var NavigationTabLinkSchema2 = z10.object({
8635
+ title: z10.string(),
8636
+ icon: z10.string().optional(),
8757
8637
  url: UrlSchema2,
8758
8638
  target: LinkTargetSchema.optional()
8759
8639
  });
8760
- var ApiNavigationConfigItemSchema4 = z11.lazy(
8761
- () => z11.discriminatedUnion("type", [
8762
- z11.object({
8763
- type: z11.literal("subpackage"),
8640
+ var ApiNavigationConfigItemSchema4 = z10.lazy(
8641
+ () => z10.discriminatedUnion("type", [
8642
+ z10.object({
8643
+ type: z10.literal("subpackage"),
8764
8644
  summaryPageId: PageIdSchema2.optional(),
8765
8645
  subpackageId: SubpackageIdSchema2,
8766
- items: z11.array(ApiNavigationConfigItemSchema4)
8646
+ items: z10.array(ApiNavigationConfigItemSchema4)
8767
8647
  }),
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 })
8648
+ z10.object({ type: z10.literal("endpointId"), value: EndpointIdSchema2 }),
8649
+ z10.object({ type: z10.literal("websocketId"), value: WebSocketIdSchema2 }),
8650
+ z10.object({ type: z10.literal("webhookId"), value: WebhookIdSchema2 }),
8651
+ z10.object({ type: z10.literal("page"), ...PageMetadataSchema2.shape })
8772
8652
  ])
8773
8653
  );
8774
- var ApiNavigationConfigSubpackageSchema = z11.object({
8654
+ var ApiNavigationConfigSubpackageSchema = z10.object({
8775
8655
  summaryPageId: PageIdSchema2.optional(),
8776
8656
  subpackageId: SubpackageIdSchema2,
8777
- items: z11.array(ApiNavigationConfigItemSchema4)
8657
+ items: z10.array(ApiNavigationConfigItemSchema4)
8778
8658
  });
8779
- var ApiNavigationConfigRootSchema4 = z11.object({
8659
+ var ApiNavigationConfigRootSchema4 = z10.object({
8780
8660
  summaryPageId: PageIdSchema2.optional(),
8781
- items: z11.array(ApiNavigationConfigItemSchema4)
8661
+ items: z10.array(ApiNavigationConfigItemSchema4)
8782
8662
  });
8783
- var ApiSectionSchema2 = z11.object({
8663
+ var ApiSectionSchema2 = z10.object({
8784
8664
  ...NavigationNodeMetadataSchema2.shape,
8785
- title: z11.string(),
8665
+ title: z10.string(),
8786
8666
  api: ApiDefinitionIdSchema2,
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()
8667
+ artifacts: z10.object({
8668
+ sdks: z10.array(
8669
+ z10.discriminatedUnion("type", [
8670
+ z10.object({
8671
+ type: z10.literal("npm"),
8672
+ packageName: z10.string(),
8673
+ githubRepoName: z10.string(),
8674
+ version: z10.string()
8795
8675
  }),
8796
- z11.object({
8797
- type: z11.literal("maven"),
8798
- coordinate: z11.string(),
8799
- githubRepoName: z11.string(),
8800
- version: z11.string()
8676
+ z10.object({
8677
+ type: z10.literal("maven"),
8678
+ coordinate: z10.string(),
8679
+ githubRepoName: z10.string(),
8680
+ version: z10.string()
8801
8681
  }),
8802
- z11.object({
8803
- type: z11.literal("pypi"),
8804
- packageName: z11.string(),
8805
- githubRepoName: z11.string(),
8806
- version: z11.string()
8682
+ z10.object({
8683
+ type: z10.literal("pypi"),
8684
+ packageName: z10.string(),
8685
+ githubRepoName: z10.string(),
8686
+ version: z10.string()
8807
8687
  })
8808
8688
  ])
8809
8689
  ),
8810
- postman: z11.object({
8690
+ postman: z10.object({
8811
8691
  url: UrlSchema2,
8812
- githubRepoName: z11.string().optional()
8692
+ githubRepoName: z10.string().optional()
8813
8693
  }).optional()
8814
8694
  }).optional(),
8815
- skipUrlSlug: z11.boolean().optional(),
8816
- showErrors: z11.boolean().optional(),
8695
+ skipUrlSlug: z10.boolean().optional(),
8696
+ showErrors: z10.boolean().optional(),
8817
8697
  changelog: ChangelogSectionSchema2.optional(),
8818
8698
  changelogV2: ChangelogSectionV2Schema.optional(),
8819
8699
  navigation: ApiNavigationConfigRootSchema4.optional(),
8820
- longScrolling: z11.boolean().optional(),
8821
- flattened: z11.boolean().optional()
8700
+ longScrolling: z10.boolean().optional(),
8701
+ flattened: z10.boolean().optional()
8822
8702
  });
8823
- var ApiSectionV2Schema2 = z11.object({
8824
- node: z11.unknown()
8703
+ var ApiSectionV2Schema2 = z10.object({
8704
+ node: z10.unknown()
8825
8705
  });
8826
- var DocsSectionSchema2 = z11.lazy(
8827
- () => z11.object({
8706
+ var DocsSectionSchema2 = z10.lazy(
8707
+ () => z10.object({
8828
8708
  ...NavigationNodeMetadataSchema2.shape,
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(),
8709
+ title: z10.string(),
8710
+ items: z10.array(NavigationItemSchema2),
8711
+ collapsed: z10.union([z10.boolean(), z10.literal("open-by-default")]).optional(),
8712
+ collapsible: z10.boolean().optional(),
8713
+ collapsedByDefault: z10.boolean().optional(),
8714
+ skipUrlSlug: z10.boolean().optional(),
8835
8715
  overviewPageId: PageIdSchema2.optional()
8836
8716
  })
8837
8717
  );
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"),
8718
+ var NavigationItemSchema2 = z10.lazy(
8719
+ () => z10.discriminatedUnion("type", [
8720
+ z10.object({ type: z10.literal("page"), ...PageMetadataSchema2.shape }),
8721
+ z10.object({ type: z10.literal("api"), ...ApiSectionSchema2.shape }),
8722
+ z10.object({ type: z10.literal("apiV2"), ...ApiSectionV2Schema2.shape }),
8723
+ z10.object({
8724
+ type: z10.literal("section"),
8845
8725
  ...NavigationNodeMetadataSchema2.shape,
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(),
8726
+ title: z10.string(),
8727
+ items: z10.array(NavigationItemSchema2),
8728
+ collapsed: z10.union([z10.boolean(), z10.literal("open-by-default")]).optional(),
8729
+ collapsible: z10.boolean().optional(),
8730
+ collapsedByDefault: z10.boolean().optional(),
8731
+ skipUrlSlug: z10.boolean().optional(),
8852
8732
  overviewPageId: PageIdSchema2.optional()
8853
8733
  }),
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 })
8734
+ z10.object({ type: z10.literal("link"), ...LinkMetadataSchema2.shape }),
8735
+ z10.object({ type: z10.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
8736
+ z10.object({ type: z10.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
8857
8737
  ])
8858
8738
  );
8859
- var NavigationTabGroupSchema2 = z11.object({
8739
+ var NavigationTabGroupSchema2 = z10.object({
8860
8740
  ...NavigationNodeMetadataSchema2.shape,
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 })
8741
+ title: z10.string(),
8742
+ items: z10.array(NavigationItemSchema2),
8743
+ skipUrlSlug: z10.boolean().optional()
8744
+ });
8745
+ var NavigationTabSchema2 = z10.union([NavigationTabGroupSchema2, NavigationTabLinkSchema2]);
8746
+ var NavigationTabV2Schema = z10.discriminatedUnion("type", [
8747
+ z10.object({ type: z10.literal("group"), ...NavigationTabGroupSchema2.shape }),
8748
+ z10.object({ type: z10.literal("link"), ...NavigationTabLinkSchema2.shape }),
8749
+ z10.object({ type: z10.literal("changelog"), ...ChangelogSectionV2Schema.shape }),
8750
+ z10.object({ type: z10.literal("changelogV3"), ...ChangelogSectionV3Schema2.shape })
8871
8751
  ]);
8872
- var UnversionedTabbedNavigationConfigSchema2 = z11.object({
8873
- tabs: z11.array(NavigationTabSchema2).optional(),
8874
- tabsV2: z11.array(NavigationTabV2Schema).optional(),
8752
+ var UnversionedTabbedNavigationConfigSchema2 = z10.object({
8753
+ tabs: z10.array(NavigationTabSchema2).optional(),
8754
+ tabsV2: z10.array(NavigationTabV2Schema).optional(),
8875
8755
  landingPage: PageMetadataSchema2.optional()
8876
8756
  });
8877
- var UnversionedUntabbedNavigationConfigSchema2 = z11.object({
8878
- items: z11.array(NavigationItemSchema2),
8757
+ var UnversionedUntabbedNavigationConfigSchema2 = z10.object({
8758
+ items: z10.array(NavigationItemSchema2),
8879
8759
  landingPage: PageMetadataSchema2.optional()
8880
8760
  });
8881
- var UnversionedNavigationConfigSchema2 = z11.union([
8761
+ var UnversionedNavigationConfigSchema2 = z10.union([
8882
8762
  UnversionedTabbedNavigationConfigSchema2,
8883
8763
  UnversionedUntabbedNavigationConfigSchema2
8884
8764
  ]);
8885
- var VersionedNavigationConfigDataSchema2 = z11.object({
8765
+ var VersionedNavigationConfigDataSchema2 = z10.object({
8886
8766
  version: VersionIdSchema2,
8887
- urlSlugOverride: z11.string().optional(),
8767
+ urlSlugOverride: z10.string().optional(),
8888
8768
  availability: AvailabilitySchema2.optional(),
8889
8769
  config: UnversionedNavigationConfigSchema2
8890
8770
  });
8891
- var VersionedNavigationConfigSchema2 = z11.object({
8892
- versions: z11.array(VersionedNavigationConfigDataSchema2)
8771
+ var VersionedNavigationConfigSchema2 = z10.object({
8772
+ versions: z10.array(VersionedNavigationConfigDataSchema2)
8893
8773
  });
8894
- var NavigationConfigSchema2 = z11.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
8895
- var ThemeConfigSchema2 = z11.object({
8774
+ var NavigationConfigSchema2 = z10.union([UnversionedNavigationConfigSchema2, VersionedNavigationConfigSchema2]);
8775
+ var ThemeConfigSchema2 = z10.object({
8896
8776
  logo: FileIdSchema2.optional(),
8897
8777
  backgroundImage: FileIdSchema2.optional(),
8898
8778
  accentPrimary: RgbaColorSchema,
@@ -8914,37 +8794,37 @@ var ThemeConfigSchema2 = z11.object({
8914
8794
  accent11: RgbaColorSchema.optional(),
8915
8795
  accent12: RgbaColorSchema.optional()
8916
8796
  });
8917
- var DarkAndLightModeConfigSchema2 = z11.object({
8797
+ var DarkAndLightModeConfigSchema2 = z10.object({
8918
8798
  dark: ThemeConfigSchema2,
8919
8799
  light: ThemeConfigSchema2
8920
8800
  });
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 })
8801
+ var ColorsConfigV3Schema2 = z10.discriminatedUnion("type", [
8802
+ z10.object({ type: z10.literal("dark"), ...ThemeConfigSchema2.shape }),
8803
+ z10.object({ type: z10.literal("light"), ...ThemeConfigSchema2.shape }),
8804
+ z10.object({ type: z10.literal("darkAndLight"), ...DarkAndLightModeConfigSchema2.shape })
8925
8805
  ]);
8926
- var DocsConfigSchema2 = z11.object({
8927
- title: z11.string().optional(),
8806
+ var DocsConfigSchema2 = z10.object({
8807
+ title: z10.string().optional(),
8928
8808
  defaultLanguage: ProgrammingLanguageSchema.optional(),
8929
- languages: z11.array(LanguageSchema).optional(),
8809
+ languages: z10.array(LanguageSchema).optional(),
8930
8810
  translations: DocsTranslationsConfigSchema.optional(),
8931
- announcement: z11.object({ text: z11.string() }).optional(),
8811
+ announcement: z10.object({ text: z10.string() }).optional(),
8932
8812
  navigation: NavigationConfigSchema2.optional(),
8933
- root: z11.custom().optional(),
8934
- navbarLinks: z11.array(NavbarLinkSchema).optional(),
8935
- footerLinks: z11.array(FooterLinkSchema).optional(),
8936
- hideNavLinks: z11.boolean().optional(),
8813
+ root: z10.custom().optional(),
8814
+ navbarLinks: z10.array(NavbarLinkSchema).optional(),
8815
+ footerLinks: z10.array(FooterLinkSchema).optional(),
8816
+ hideNavLinks: z10.boolean().optional(),
8937
8817
  logoHeight: HeightSchema2.optional(),
8938
8818
  logoHref: UrlSchema2.optional(),
8939
- logoRightText: z11.string().optional(),
8819
+ logoRightText: z10.string().optional(),
8940
8820
  favicon: FileIdSchema2.optional(),
8941
8821
  agents: AgentsConfigSchema.optional(),
8942
8822
  metadata: MetadataConfigSchema.optional(),
8943
- redirects: z11.array(RedirectConfigSchema).optional(),
8823
+ redirects: z10.array(RedirectConfigSchema).optional(),
8944
8824
  colorsV3: ColorsConfigV3Schema2.optional(),
8945
8825
  layout: DocsLayoutConfigSchema.optional(),
8946
8826
  theme: DocsThemeConfigSchema.optional(),
8947
- globalTheme: z11.string().optional(),
8827
+ globalTheme: z10.string().optional(),
8948
8828
  settings: DocsSettingsConfigSchema.optional(),
8949
8829
  typographyV2: DocsTypographyConfigV2Schema.optional(),
8950
8830
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -8954,8 +8834,8 @@ var DocsConfigSchema2 = z11.object({
8954
8834
  aiChatConfig: AIChatConfigSchema.optional(),
8955
8835
  pageActions: PageActionsConfigSchema.optional(),
8956
8836
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
8957
- header: z11.string().optional(),
8958
- footer: z11.string().optional(),
8837
+ header: z10.string().optional(),
8838
+ footer: z10.string().optional(),
8959
8839
  backgroundImage: FileIdSchema2.optional(),
8960
8840
  logoV2: ThemedFileIdSchema.optional(),
8961
8841
  logo: FileIdSchema2.optional(),
@@ -8963,45 +8843,163 @@ var DocsConfigSchema2 = z11.object({
8963
8843
  colorsV2: ColorsConfigV2Schema.optional(),
8964
8844
  typography: DocsTypographyConfigSchema.optional()
8965
8845
  });
8966
- var DocsDefinitionSchema2 = z11.object({
8967
- pages: z11.record(PageIdSchema2, PageContentSchema2),
8846
+ var DocsDefinitionSchema2 = z10.object({
8847
+ pages: z10.record(PageIdSchema2, PageContentSchema2),
8968
8848
  config: DocsConfigSchema2,
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 })
8849
+ jsFiles: z10.record(z10.string(), z10.string()).optional()
8850
+ });
8851
+ var NpmPackageSchema2 = z10.object({
8852
+ packageName: z10.string(),
8853
+ githubRepoName: z10.string(),
8854
+ version: z10.string()
8855
+ });
8856
+ var MavenPackageSchema2 = z10.object({
8857
+ coordinate: z10.string(),
8858
+ githubRepoName: z10.string(),
8859
+ version: z10.string()
8860
+ });
8861
+ var PypiPackageSchema2 = z10.object({
8862
+ packageName: z10.string(),
8863
+ githubRepoName: z10.string(),
8864
+ version: z10.string()
8865
+ });
8866
+ var PublishedSdkSchema2 = z10.discriminatedUnion("type", [
8867
+ z10.object({ type: z10.literal("npm"), ...NpmPackageSchema2.shape }),
8868
+ z10.object({ type: z10.literal("maven"), ...MavenPackageSchema2.shape }),
8869
+ z10.object({ type: z10.literal("pypi"), ...PypiPackageSchema2.shape })
8990
8870
  ]);
8991
- var PublishedPostmanCollectionSchema2 = z11.object({
8871
+ var PublishedPostmanCollectionSchema2 = z10.object({
8992
8872
  url: UrlSchema2,
8993
- githubRepoName: z11.string().optional()
8873
+ githubRepoName: z10.string().optional()
8994
8874
  });
8995
- var ApiArtifactsSchema2 = z11.object({
8996
- sdks: z11.array(PublishedSdkSchema2),
8875
+ var ApiArtifactsSchema2 = z10.object({
8876
+ sdks: z10.array(PublishedSdkSchema2),
8997
8877
  postman: PublishedPostmanCollectionSchema2.optional()
8998
8878
  });
8999
- var InvalidCustomDomainErrorBodySchema = z11.object({
9000
- overlappingDomains: z11.array(z11.array(z11.string()))
8879
+ var InvalidCustomDomainErrorBodySchema = z10.object({
8880
+ overlappingDomains: z10.array(z10.array(z10.string()))
9001
8881
  });
9002
- var OverlappingCustomDomainsSchema = z11.array(z11.string());
8882
+ var OverlappingCustomDomainsSchema = z10.array(z10.string());
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
+ };
9003
8974
 
9004
8975
  // 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);
9005
9003
  var FilePathSchema2 = z12.string();
9006
9004
  function FilePath2(value) {
9007
9005
  return value;