@fern-api/fdr-sdk 1.2.174-2a00de7f08 → 1.2.174-2ea1270aa3

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 (121) hide show
  1. package/dist/client/FdrClient.d.ts +5 -0
  2. package/dist/client/FdrClient.d.ts.map +1 -1
  3. package/dist/client/docs-types/db.d.ts +47 -0
  4. package/dist/client/docs-types/db.d.ts.map +1 -1
  5. package/dist/client/docs-types/read.d.ts +21 -0
  6. package/dist/client/docs-types/read.d.ts.map +1 -1
  7. package/dist/client/docs-types/shared.d.ts +3 -0
  8. package/dist/client/docs-types/shared.d.ts.map +1 -1
  9. package/dist/client/docs-types/shared.js +2 -1
  10. package/dist/client/docs-types/shared.js.map +1 -1
  11. package/dist/client/docs-types/write.d.ts +12 -0
  12. package/dist/client/docs-types/write.d.ts.map +1 -1
  13. package/dist/docs-ledger/inputTypes.d.ts +5 -0
  14. package/dist/docs-ledger/inputTypes.d.ts.map +1 -1
  15. package/dist/js/client/FdrClient.js +45 -5
  16. package/dist/js/client/FdrClient.js.map +1 -1
  17. package/dist/js/client/FdrClient.mjs +45 -5
  18. package/dist/js/client/FdrClient.mjs.map +1 -1
  19. package/dist/js/client/types.js +2 -1
  20. package/dist/js/client/types.js.map +1 -1
  21. package/dist/js/client/types.mjs +2 -1
  22. package/dist/js/client/types.mjs.map +1 -1
  23. package/dist/js/converters/index.js +2 -1
  24. package/dist/js/converters/index.js.map +1 -1
  25. package/dist/js/converters/index.mjs +2 -1
  26. package/dist/js/converters/index.mjs.map +1 -1
  27. package/dist/js/docs/index.js +2 -1
  28. package/dist/js/docs/index.js.map +1 -1
  29. package/dist/js/docs/index.mjs +2 -1
  30. package/dist/js/docs/index.mjs.map +1 -1
  31. package/dist/js/docs-ledger/index.js +36 -2
  32. package/dist/js/docs-ledger/index.js.map +1 -1
  33. package/dist/js/docs-ledger/index.mjs +36 -2
  34. package/dist/js/docs-ledger/index.mjs.map +1 -1
  35. package/dist/js/index.js +45 -5
  36. package/dist/js/index.js.map +1 -1
  37. package/dist/js/index.mjs +45 -5
  38. package/dist/js/index.mjs.map +1 -1
  39. package/dist/js/navigation/index.js +2 -1
  40. package/dist/js/navigation/index.js.map +1 -1
  41. package/dist/js/navigation/index.mjs +2 -1
  42. package/dist/js/navigation/index.mjs.map +1 -1
  43. package/dist/js/orpc-client.js +98 -6
  44. package/dist/js/orpc-client.js.map +1 -1
  45. package/dist/js/orpc-client.mjs +90 -6
  46. package/dist/js/orpc-client.mjs.map +1 -1
  47. package/dist/orpc-client/client.d.ts.map +1 -1
  48. package/dist/orpc-client/client.js +2 -2
  49. package/dist/orpc-client/client.js.map +1 -1
  50. package/dist/orpc-client/docs/v1/read/contract.d.ts +14 -0
  51. package/dist/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
  52. package/dist/orpc-client/docs/v1/write/contract.d.ts +4 -0
  53. package/dist/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
  54. package/dist/orpc-client/docs/v2/read/contract.d.ts +32 -0
  55. package/dist/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
  56. package/dist/orpc-client/docs/v2/write/contract.d.ts +8 -0
  57. package/dist/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  58. package/dist/orpc-client/docs-anonymous/contract.d.ts +140 -0
  59. package/dist/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
  60. package/dist/orpc-client/docs-anonymous/contract.js +40 -2
  61. package/dist/orpc-client/docs-anonymous/contract.js.map +1 -1
  62. package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.js +14 -1
  63. package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.js.map +1 -1
  64. package/dist/orpc-client/docs-ledger/contract.d.ts +208 -0
  65. package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
  66. package/dist/orpc-client/docs-ledger/contract.js +41 -1
  67. package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
  68. package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts +30 -0
  69. package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
  70. package/dist/orpc-client/docs-ledger/static-build-files.d.ts +5 -0
  71. package/dist/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -1
  72. package/dist/orpc-client/docs-ledger/static-build-files.js +7 -0
  73. package/dist/orpc-client/docs-ledger/static-build-files.js.map +1 -1
  74. package/dist/orpc-client/pdf-export/__test__/client.test.d.ts +2 -0
  75. package/dist/orpc-client/pdf-export/__test__/client.test.d.ts.map +1 -0
  76. package/dist/orpc-client/pdf-export/__test__/client.test.js +19 -0
  77. package/dist/orpc-client/pdf-export/__test__/client.test.js.map +1 -0
  78. package/dist/orpc-client/pdf-export/client.d.ts +5 -0
  79. package/dist/orpc-client/pdf-export/client.d.ts.map +1 -1
  80. package/dist/orpc-client/pdf-export/client.js +8 -1
  81. package/dist/orpc-client/pdf-export/client.js.map +1 -1
  82. package/dist/orpc-client/pdf-export/contract.d.ts +31 -0
  83. package/dist/orpc-client/pdf-export/contract.d.ts.map +1 -1
  84. package/dist/orpc-client/pdf-export/contract.js +4 -0
  85. package/dist/orpc-client/pdf-export/contract.js.map +1 -1
  86. package/dist/types/client/FdrClient.d.ts +5 -0
  87. package/dist/types/client/FdrClient.d.ts.map +1 -1
  88. package/dist/types/client/docs-types/db.d.ts +47 -0
  89. package/dist/types/client/docs-types/db.d.ts.map +1 -1
  90. package/dist/types/client/docs-types/read.d.ts +21 -0
  91. package/dist/types/client/docs-types/read.d.ts.map +1 -1
  92. package/dist/types/client/docs-types/shared.d.ts +3 -0
  93. package/dist/types/client/docs-types/shared.d.ts.map +1 -1
  94. package/dist/types/client/docs-types/write.d.ts +12 -0
  95. package/dist/types/client/docs-types/write.d.ts.map +1 -1
  96. package/dist/types/docs-ledger/inputTypes.d.ts +5 -0
  97. package/dist/types/docs-ledger/inputTypes.d.ts.map +1 -1
  98. package/dist/types/orpc-client/client.d.ts.map +1 -1
  99. package/dist/types/orpc-client/docs/v1/read/contract.d.ts +14 -0
  100. package/dist/types/orpc-client/docs/v1/read/contract.d.ts.map +1 -1
  101. package/dist/types/orpc-client/docs/v1/write/contract.d.ts +4 -0
  102. package/dist/types/orpc-client/docs/v1/write/contract.d.ts.map +1 -1
  103. package/dist/types/orpc-client/docs/v2/read/contract.d.ts +32 -0
  104. package/dist/types/orpc-client/docs/v2/read/contract.d.ts.map +1 -1
  105. package/dist/types/orpc-client/docs/v2/write/contract.d.ts +8 -0
  106. package/dist/types/orpc-client/docs/v2/write/contract.d.ts.map +1 -1
  107. package/dist/types/orpc-client/docs-anonymous/contract.d.ts +140 -0
  108. package/dist/types/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
  109. package/dist/types/orpc-client/docs-ledger/contract.d.ts +208 -0
  110. package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
  111. package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +30 -0
  112. package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
  113. package/dist/types/orpc-client/docs-ledger/static-build-files.d.ts +5 -0
  114. package/dist/types/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -1
  115. package/dist/types/orpc-client/pdf-export/__test__/client.test.d.ts +2 -0
  116. package/dist/types/orpc-client/pdf-export/__test__/client.test.d.ts.map +1 -0
  117. package/dist/types/orpc-client/pdf-export/client.d.ts +5 -0
  118. package/dist/types/orpc-client/pdf-export/client.d.ts.map +1 -1
  119. package/dist/types/orpc-client/pdf-export/contract.d.ts +31 -0
  120. package/dist/types/orpc-client/pdf-export/contract.d.ts.map +1 -1
  121. package/package.json +1 -1
@@ -51,6 +51,11 @@ export declare const FinishResponseSchema: z.ZodObject<{
51
51
  additionalSiteIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
52
52
  deploymentHash: z.ZodString;
53
53
  reusedDeployment: z.ZodBoolean;
54
+ /**
55
+ * True when a publish of the same URL that started later was already live,
56
+ * so this deployment was stored but not made live.
57
+ */
58
+ superseded: z.ZodOptional<z.ZodBoolean>;
54
59
  /**
55
60
  * Per-locale segment counts when `translations[]` was supplied on the
56
61
  * finish input. Absent when no translations were included.
@@ -78,6 +83,7 @@ export declare const FinishResponseSchema: z.ZodObject<{
78
83
  deploymentHash: string;
79
84
  additionalSiteIds: string[];
80
85
  reusedDeployment: boolean;
86
+ superseded?: boolean | undefined;
81
87
  translationsProcessed?: {
82
88
  locale: string;
83
89
  segmentsAdded: number;
@@ -90,6 +96,7 @@ export declare const FinishResponseSchema: z.ZodObject<{
90
96
  deploymentHash: string;
91
97
  reusedDeployment: boolean;
92
98
  additionalSiteIds?: string[] | undefined;
99
+ superseded?: boolean | undefined;
93
100
  translationsProcessed?: {
94
101
  locale: string;
95
102
  segmentsAdded: number;
@@ -4697,6 +4704,7 @@ export declare const LedgerConfigSchema: z.ZodObject<{
4697
4704
  }[] | undefined;
4698
4705
  maskPii?: boolean | undefined;
4699
4706
  disclaimer?: string | undefined;
4707
+ buttonText?: string | undefined;
4700
4708
  }, z.ZodTypeDef, {
4701
4709
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
4702
4710
  systemPrompt?: string | undefined;
@@ -4707,6 +4715,7 @@ export declare const LedgerConfigSchema: z.ZodObject<{
4707
4715
  }[] | undefined;
4708
4716
  maskPii?: boolean | undefined;
4709
4717
  disclaimer?: string | undefined;
4718
+ buttonText?: string | undefined;
4710
4719
  }>>;
4711
4720
  pageActions: z.ZodOptional<z.ZodType<{
4712
4721
  options?: {
@@ -5707,6 +5716,7 @@ export declare const LedgerConfigSchema: z.ZodObject<{
5707
5716
  }[] | undefined;
5708
5717
  maskPii?: boolean | undefined;
5709
5718
  disclaimer?: string | undefined;
5719
+ buttonText?: string | undefined;
5710
5720
  } | undefined;
5711
5721
  pageActions?: {
5712
5722
  options?: {
@@ -6654,6 +6664,7 @@ export declare const LedgerConfigSchema: z.ZodObject<{
6654
6664
  }[] | undefined;
6655
6665
  maskPii?: boolean | undefined;
6656
6666
  disclaimer?: string | undefined;
6667
+ buttonText?: string | undefined;
6657
6668
  } | undefined;
6658
6669
  pageActions?: {
6659
6670
  options?: {
@@ -16813,6 +16824,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
16813
16824
  }[] | undefined;
16814
16825
  maskPii?: boolean | undefined;
16815
16826
  disclaimer?: string | undefined;
16827
+ buttonText?: string | undefined;
16816
16828
  }, z.ZodTypeDef, {
16817
16829
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
16818
16830
  systemPrompt?: string | undefined;
@@ -16823,6 +16835,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
16823
16835
  }[] | undefined;
16824
16836
  maskPii?: boolean | undefined;
16825
16837
  disclaimer?: string | undefined;
16838
+ buttonText?: string | undefined;
16826
16839
  }>>;
16827
16840
  pageActions: z.ZodOptional<z.ZodType<{
16828
16841
  options?: {
@@ -17823,6 +17836,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
17823
17836
  }[] | undefined;
17824
17837
  maskPii?: boolean | undefined;
17825
17838
  disclaimer?: string | undefined;
17839
+ buttonText?: string | undefined;
17826
17840
  } | undefined;
17827
17841
  pageActions?: {
17828
17842
  options?: {
@@ -18770,6 +18784,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
18770
18784
  }[] | undefined;
18771
18785
  maskPii?: boolean | undefined;
18772
18786
  disclaimer?: string | undefined;
18787
+ buttonText?: string | undefined;
18773
18788
  } | undefined;
18774
18789
  pageActions?: {
18775
18790
  options?: {
@@ -19816,6 +19831,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
19816
19831
  }[] | undefined;
19817
19832
  maskPii?: boolean | undefined;
19818
19833
  disclaimer?: string | undefined;
19834
+ buttonText?: string | undefined;
19819
19835
  } | undefined;
19820
19836
  pageActions?: {
19821
19837
  options?: {
@@ -20804,6 +20820,7 @@ export declare const DocsContentFieldsSchema: z.ZodObject<{
20804
20820
  }[] | undefined;
20805
20821
  maskPii?: boolean | undefined;
20806
20822
  disclaimer?: string | undefined;
20823
+ buttonText?: string | undefined;
20807
20824
  } | undefined;
20808
20825
  pageActions?: {
20809
20826
  options?: {
@@ -24690,6 +24707,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
24690
24707
  }[] | undefined;
24691
24708
  maskPii?: boolean | undefined;
24692
24709
  disclaimer?: string | undefined;
24710
+ buttonText?: string | undefined;
24693
24711
  }, z.ZodTypeDef, {
24694
24712
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
24695
24713
  systemPrompt?: string | undefined;
@@ -24700,6 +24718,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
24700
24718
  }[] | undefined;
24701
24719
  maskPii?: boolean | undefined;
24702
24720
  disclaimer?: string | undefined;
24721
+ buttonText?: string | undefined;
24703
24722
  }>>;
24704
24723
  pageActions: z.ZodOptional<z.ZodType<{
24705
24724
  options?: {
@@ -25700,6 +25719,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
25700
25719
  }[] | undefined;
25701
25720
  maskPii?: boolean | undefined;
25702
25721
  disclaimer?: string | undefined;
25722
+ buttonText?: string | undefined;
25703
25723
  } | undefined;
25704
25724
  pageActions?: {
25705
25725
  options?: {
@@ -26647,6 +26667,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
26647
26667
  }[] | undefined;
26648
26668
  maskPii?: boolean | undefined;
26649
26669
  disclaimer?: string | undefined;
26670
+ buttonText?: string | undefined;
26650
26671
  } | undefined;
26651
26672
  pageActions?: {
26652
26673
  options?: {
@@ -27684,6 +27705,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
27684
27705
  }[] | undefined;
27685
27706
  maskPii?: boolean | undefined;
27686
27707
  disclaimer?: string | undefined;
27708
+ buttonText?: string | undefined;
27687
27709
  } | undefined;
27688
27710
  pageActions?: {
27689
27711
  options?: {
@@ -28672,6 +28694,7 @@ declare const LocaleEntrySchemaInternal: z.ZodObject<{
28672
28694
  }[] | undefined;
28673
28695
  maskPii?: boolean | undefined;
28674
28696
  disclaimer?: string | undefined;
28697
+ buttonText?: string | undefined;
28675
28698
  } | undefined;
28676
28699
  pageActions?: {
28677
28700
  options?: {
@@ -28779,6 +28802,13 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
28779
28802
  */
28780
28803
  customDomains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28781
28804
  previewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28805
+ /**
28806
+ * When the CLI started this publish (ISO 8601). FDR orders overlapping
28807
+ * publishes of one URL by it, so the client's local build and upload
28808
+ * time count. FDR falls back to its own clock when absent, in the
28809
+ * future, or more than 6 hours old (ADR 0040).
28810
+ */
28811
+ publishStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28782
28812
  /** The primary/fallback locale for this deployment (e.g. "en"). */
28783
28813
  defaultLocale: z.ZodDefault<z.ZodString>;
28784
28814
  /**
@@ -29696,6 +29726,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
29696
29726
  }[] | undefined;
29697
29727
  maskPii?: boolean | undefined;
29698
29728
  disclaimer?: string | undefined;
29729
+ buttonText?: string | undefined;
29699
29730
  } | undefined;
29700
29731
  pageActions?: {
29701
29732
  options?: {
@@ -30684,6 +30715,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
30684
30715
  }[] | undefined;
30685
30716
  maskPii?: boolean | undefined;
30686
30717
  disclaimer?: string | undefined;
30718
+ buttonText?: string | undefined;
30687
30719
  } | undefined;
30688
30720
  pageActions?: {
30689
30721
  options?: {
@@ -30762,6 +30794,24 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
30762
30794
  commitSha?: string | undefined;
30763
30795
  } | undefined;
30764
30796
  }>, "many">;
30797
+ /**
30798
+ * The publisher's `fern/` folder as a JSON `RepositoryFile[]` CAS blob, so the site can
30799
+ * later be written to a GitHub repo as it was published. Optional — older CLIs omit it,
30800
+ * and the CLI only sends it for guest publishes. A missing upload never fails the publish.
30801
+ */
30802
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30803
+ hash: z.ZodString;
30804
+ contentType: z.ZodString;
30805
+ contentLength: z.ZodNumber;
30806
+ }, "strip", z.ZodTypeAny, {
30807
+ contentType: string;
30808
+ hash: string;
30809
+ contentLength: number;
30810
+ }, {
30811
+ contentType: string;
30812
+ hash: string;
30813
+ contentLength: number;
30814
+ }>>>;
30765
30815
  }, "strip", z.ZodTypeAny, {
30766
30816
  defaultLocale: string;
30767
30817
  orgId: string;
@@ -31679,6 +31729,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
31679
31729
  }[] | undefined;
31680
31730
  maskPii?: boolean | undefined;
31681
31731
  disclaimer?: string | undefined;
31732
+ buttonText?: string | undefined;
31682
31733
  } | undefined;
31683
31734
  pageActions?: {
31684
31735
  options?: {
@@ -31757,8 +31808,14 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
31757
31808
  commitSha?: string | undefined;
31758
31809
  } | undefined;
31759
31810
  }[];
31811
+ source?: {
31812
+ contentType: string;
31813
+ hash: string;
31814
+ contentLength: number;
31815
+ } | null | undefined;
31760
31816
  previewId?: string | null | undefined;
31761
31817
  basepathAware?: boolean | null | undefined;
31818
+ publishStartedAt?: string | null | undefined;
31762
31819
  }, {
31763
31820
  orgId: string;
31764
31821
  domain: string;
@@ -32673,6 +32730,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
32673
32730
  }[] | undefined;
32674
32731
  maskPii?: boolean | undefined;
32675
32732
  disclaimer?: string | undefined;
32733
+ buttonText?: string | undefined;
32676
32734
  } | undefined;
32677
32735
  pageActions?: {
32678
32736
  options?: {
@@ -32752,10 +32810,16 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
32752
32810
  } | undefined;
32753
32811
  }[];
32754
32812
  defaultLocale?: string | undefined;
32813
+ source?: {
32814
+ contentType: string;
32815
+ hash: string;
32816
+ contentLength: number;
32817
+ } | null | undefined;
32755
32818
  basepath?: string | undefined;
32756
32819
  customDomains?: string[] | undefined;
32757
32820
  previewId?: string | null | undefined;
32758
32821
  basepathAware?: boolean | null | undefined;
32822
+ publishStartedAt?: string | null | undefined;
32759
32823
  }>, {
32760
32824
  defaultLocale: string;
32761
32825
  orgId: string;
@@ -33673,6 +33737,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
33673
33737
  }[] | undefined;
33674
33738
  maskPii?: boolean | undefined;
33675
33739
  disclaimer?: string | undefined;
33740
+ buttonText?: string | undefined;
33676
33741
  } | undefined;
33677
33742
  pageActions?: {
33678
33743
  options?: {
@@ -33751,8 +33816,14 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
33751
33816
  commitSha?: string | undefined;
33752
33817
  } | undefined;
33753
33818
  }[];
33819
+ source?: {
33820
+ contentType: string;
33821
+ hash: string;
33822
+ contentLength: number;
33823
+ } | null | undefined;
33754
33824
  previewId?: string | null | undefined;
33755
33825
  basepathAware?: boolean | null | undefined;
33826
+ publishStartedAt?: string | null | undefined;
33756
33827
  }, {
33757
33828
  orgId: string;
33758
33829
  domain: string;
@@ -34667,6 +34738,7 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
34667
34738
  }[] | undefined;
34668
34739
  maskPii?: boolean | undefined;
34669
34740
  disclaimer?: string | undefined;
34741
+ buttonText?: string | undefined;
34670
34742
  } | undefined;
34671
34743
  pageActions?: {
34672
34744
  options?: {
@@ -34746,10 +34818,16 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
34746
34818
  } | undefined;
34747
34819
  }[];
34748
34820
  defaultLocale?: string | undefined;
34821
+ source?: {
34822
+ contentType: string;
34823
+ hash: string;
34824
+ contentLength: number;
34825
+ } | null | undefined;
34749
34826
  basepath?: string | undefined;
34750
34827
  customDomains?: string[] | undefined;
34751
34828
  previewId?: string | null | undefined;
34752
34829
  basepathAware?: boolean | null | undefined;
34830
+ publishStartedAt?: string | null | undefined;
34753
34831
  }>;
34754
34832
  export type DocsPublishInput = z.output<typeof DocsPublishInputSchemaInternal>;
34755
34833
  export type DocsPublishInputRaw = z.input<typeof DocsPublishInputSchemaInternal>;
@@ -38566,6 +38644,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
38566
38644
  }[] | undefined;
38567
38645
  maskPii?: boolean | undefined;
38568
38646
  disclaimer?: string | undefined;
38647
+ buttonText?: string | undefined;
38569
38648
  }, z.ZodTypeDef, {
38570
38649
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
38571
38650
  systemPrompt?: string | undefined;
@@ -38576,6 +38655,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
38576
38655
  }[] | undefined;
38577
38656
  maskPii?: boolean | undefined;
38578
38657
  disclaimer?: string | undefined;
38658
+ buttonText?: string | undefined;
38579
38659
  }>>;
38580
38660
  pageActions: z.ZodOptional<z.ZodType<{
38581
38661
  options?: {
@@ -39576,6 +39656,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
39576
39656
  }[] | undefined;
39577
39657
  maskPii?: boolean | undefined;
39578
39658
  disclaimer?: string | undefined;
39659
+ buttonText?: string | undefined;
39579
39660
  } | undefined;
39580
39661
  pageActions?: {
39581
39662
  options?: {
@@ -40523,6 +40604,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
40523
40604
  }[] | undefined;
40524
40605
  maskPii?: boolean | undefined;
40525
40606
  disclaimer?: string | undefined;
40607
+ buttonText?: string | undefined;
40526
40608
  } | undefined;
40527
40609
  pageActions?: {
40528
40610
  options?: {
@@ -41581,6 +41663,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
41581
41663
  }[] | undefined;
41582
41664
  maskPii?: boolean | undefined;
41583
41665
  disclaimer?: string | undefined;
41666
+ buttonText?: string | undefined;
41584
41667
  } | undefined;
41585
41668
  pageActions?: {
41586
41669
  options?: {
@@ -42569,6 +42652,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
42569
42652
  }[] | undefined;
42570
42653
  maskPii?: boolean | undefined;
42571
42654
  disclaimer?: string | undefined;
42655
+ buttonText?: string | undefined;
42572
42656
  } | undefined;
42573
42657
  pageActions?: {
42574
42658
  options?: {
@@ -43555,6 +43639,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
43555
43639
  }[] | undefined;
43556
43640
  maskPii?: boolean | undefined;
43557
43641
  disclaimer?: string | undefined;
43642
+ buttonText?: string | undefined;
43558
43643
  } | undefined;
43559
43644
  pageActions?: {
43560
43645
  options?: {
@@ -44550,6 +44635,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
44550
44635
  }[] | undefined;
44551
44636
  maskPii?: boolean | undefined;
44552
44637
  disclaimer?: string | undefined;
44638
+ buttonText?: string | undefined;
44553
44639
  } | undefined;
44554
44640
  pageActions?: {
44555
44641
  options?: {
@@ -45535,6 +45621,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
45535
45621
  }[] | undefined;
45536
45622
  maskPii?: boolean | undefined;
45537
45623
  disclaimer?: string | undefined;
45624
+ buttonText?: string | undefined;
45538
45625
  } | undefined;
45539
45626
  pageActions?: {
45540
45627
  options?: {
@@ -46531,6 +46618,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
46531
46618
  }[] | undefined;
46532
46619
  maskPii?: boolean | undefined;
46533
46620
  disclaimer?: string | undefined;
46621
+ buttonText?: string | undefined;
46534
46622
  } | undefined;
46535
46623
  pageActions?: {
46536
46624
  options?: {
@@ -47517,6 +47605,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
47517
47605
  }[] | undefined;
47518
47606
  maskPii?: boolean | undefined;
47519
47607
  disclaimer?: string | undefined;
47608
+ buttonText?: string | undefined;
47520
47609
  } | undefined;
47521
47610
  pageActions?: {
47522
47611
  options?: {
@@ -48512,6 +48601,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
48512
48601
  }[] | undefined;
48513
48602
  maskPii?: boolean | undefined;
48514
48603
  disclaimer?: string | undefined;
48604
+ buttonText?: string | undefined;
48515
48605
  } | undefined;
48516
48606
  pageActions?: {
48517
48607
  options?: {
@@ -49497,6 +49587,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
49497
49587
  }[] | undefined;
49498
49588
  maskPii?: boolean | undefined;
49499
49589
  disclaimer?: string | undefined;
49590
+ buttonText?: string | undefined;
49500
49591
  } | undefined;
49501
49592
  pageActions?: {
49502
49593
  options?: {
@@ -50493,6 +50584,7 @@ declare const LedgerPreviewRegisterInputSchemaInternal: z.ZodEffects<z.ZodObject
50493
50584
  }[] | undefined;
50494
50585
  maskPii?: boolean | undefined;
50495
50586
  disclaimer?: string | undefined;
50587
+ buttonText?: string | undefined;
50496
50588
  } | undefined;
50497
50589
  pageActions?: {
50498
50590
  options?: {
@@ -50698,6 +50790,42 @@ export declare const ListStaticBuildFilesResponseSchema: z.ZodObject<{
50698
50790
  buildId: string;
50699
50791
  nextCursor?: string | undefined;
50700
50792
  }>;
50793
+ /**
50794
+ * Input for `GET /site-source`: the `fern/` folder the site's latest publish sent as `source`.
50795
+ * The caller must belong to the org that owns the site; a guest token is refused.
50796
+ */
50797
+ export declare const GetSiteSourceInputSchema: z.ZodObject<{
50798
+ domain: z.ZodString;
50799
+ /** "" for a root site, otherwise a leading-slash basepath. */
50800
+ basepath: z.ZodDefault<z.ZodString>;
50801
+ }, "strip", z.ZodTypeAny, {
50802
+ domain: string;
50803
+ basepath: string;
50804
+ }, {
50805
+ domain: string;
50806
+ basepath?: string | undefined;
50807
+ }>;
50808
+ export declare const GetSiteSourceResponseSchema: z.ZodObject<{
50809
+ /** SHA-256 hex of the source blob. */
50810
+ hash: z.ZodString;
50811
+ contentLength: z.ZodNumber;
50812
+ /** Short-lived signed GET URL for the JSON `RepositoryFile[]`. */
50813
+ url: z.ZodString;
50814
+ /** When the publish that sent this source finished (ISO 8601). */
50815
+ updatedAt: z.ZodString;
50816
+ }, "strip", z.ZodTypeAny, {
50817
+ url: string;
50818
+ updatedAt: string;
50819
+ hash: string;
50820
+ contentLength: number;
50821
+ }, {
50822
+ url: string;
50823
+ updatedAt: string;
50824
+ hash: string;
50825
+ contentLength: number;
50826
+ }>;
50827
+ export type GetSiteSourceInput = z.input<typeof GetSiteSourceInputSchema>;
50828
+ export type GetSiteSourceResponse = z.infer<typeof GetSiteSourceResponseSchema>;
50701
50829
  export type ListStaticBuildFilesInput = z.input<typeof ListStaticBuildFilesInputSchema>;
50702
50830
  export type StaticBuildFile = z.infer<typeof StaticBuildFileSchema>;
50703
50831
  export type ListStaticBuildFilesResponse = z.infer<typeof ListStaticBuildFilesResponseSchema>;
@@ -51622,6 +51750,7 @@ export declare const docsLedgerContract: {
51622
51750
  }[] | undefined;
51623
51751
  maskPii?: boolean | undefined;
51624
51752
  disclaimer?: string | undefined;
51753
+ buttonText?: string | undefined;
51625
51754
  } | undefined;
51626
51755
  pageActions?: {
51627
51756
  options?: {
@@ -51700,8 +51829,14 @@ export declare const docsLedgerContract: {
51700
51829
  commitSha?: string | undefined;
51701
51830
  } | undefined;
51702
51831
  }[];
51832
+ source?: {
51833
+ contentType: string;
51834
+ hash: string;
51835
+ contentLength: number;
51836
+ } | null | undefined;
51703
51837
  previewId?: string | null | undefined;
51704
51838
  basepathAware?: boolean | null | undefined;
51839
+ publishStartedAt?: string | null | undefined;
51705
51840
  }, z.ZodTypeDef, {
51706
51841
  orgId: string;
51707
51842
  domain: string;
@@ -52616,6 +52751,7 @@ export declare const docsLedgerContract: {
52616
52751
  }[] | undefined;
52617
52752
  maskPii?: boolean | undefined;
52618
52753
  disclaimer?: string | undefined;
52754
+ buttonText?: string | undefined;
52619
52755
  } | undefined;
52620
52756
  pageActions?: {
52621
52757
  options?: {
@@ -52695,10 +52831,16 @@ export declare const docsLedgerContract: {
52695
52831
  } | undefined;
52696
52832
  }[];
52697
52833
  defaultLocale?: string | undefined;
52834
+ source?: {
52835
+ contentType: string;
52836
+ hash: string;
52837
+ contentLength: number;
52838
+ } | null | undefined;
52698
52839
  basepath?: string | undefined;
52699
52840
  customDomains?: string[] | undefined;
52700
52841
  previewId?: string | null | undefined;
52701
52842
  basepathAware?: boolean | null | undefined;
52843
+ publishStartedAt?: string | null | undefined;
52702
52844
  }>, z.ZodObject<{
52703
52845
  deploymentHash: z.ZodString;
52704
52846
  missingContent: z.ZodArray<z.ZodObject<{
@@ -53632,6 +53774,7 @@ export declare const docsLedgerContract: {
53632
53774
  }[] | undefined;
53633
53775
  maskPii?: boolean | undefined;
53634
53776
  disclaimer?: string | undefined;
53777
+ buttonText?: string | undefined;
53635
53778
  } | undefined;
53636
53779
  pageActions?: {
53637
53780
  options?: {
@@ -54627,6 +54770,7 @@ export declare const docsLedgerContract: {
54627
54770
  }[] | undefined;
54628
54771
  maskPii?: boolean | undefined;
54629
54772
  disclaimer?: string | undefined;
54773
+ buttonText?: string | undefined;
54630
54774
  } | undefined;
54631
54775
  pageActions?: {
54632
54776
  options?: {
@@ -55612,6 +55756,7 @@ export declare const docsLedgerContract: {
55612
55756
  }[] | undefined;
55613
55757
  maskPii?: boolean | undefined;
55614
55758
  disclaimer?: string | undefined;
55759
+ buttonText?: string | undefined;
55615
55760
  } | undefined;
55616
55761
  pageActions?: {
55617
55762
  options?: {
@@ -56608,6 +56753,7 @@ export declare const docsLedgerContract: {
56608
56753
  }[] | undefined;
56609
56754
  maskPii?: boolean | undefined;
56610
56755
  disclaimer?: string | undefined;
56756
+ buttonText?: string | undefined;
56611
56757
  } | undefined;
56612
56758
  pageActions?: {
56613
56759
  options?: {
@@ -57644,6 +57790,7 @@ export declare const docsLedgerContract: {
57644
57790
  }[] | undefined;
57645
57791
  maskPii?: boolean | undefined;
57646
57792
  disclaimer?: string | undefined;
57793
+ buttonText?: string | undefined;
57647
57794
  } | undefined;
57648
57795
  pageActions?: {
57649
57796
  options?: {
@@ -57722,8 +57869,14 @@ export declare const docsLedgerContract: {
57722
57869
  commitSha?: string | undefined;
57723
57870
  } | undefined;
57724
57871
  }[];
57872
+ source?: {
57873
+ contentType: string;
57874
+ hash: string;
57875
+ contentLength: number;
57876
+ } | null | undefined;
57725
57877
  previewId?: string | null | undefined;
57726
57878
  basepathAware?: boolean | null | undefined;
57879
+ publishStartedAt?: string | null | undefined;
57727
57880
  }, z.ZodTypeDef, {
57728
57881
  orgId: string;
57729
57882
  domain: string;
@@ -58638,6 +58791,7 @@ export declare const docsLedgerContract: {
58638
58791
  }[] | undefined;
58639
58792
  maskPii?: boolean | undefined;
58640
58793
  disclaimer?: string | undefined;
58794
+ buttonText?: string | undefined;
58641
58795
  } | undefined;
58642
58796
  pageActions?: {
58643
58797
  options?: {
@@ -58717,10 +58871,16 @@ export declare const docsLedgerContract: {
58717
58871
  } | undefined;
58718
58872
  }[];
58719
58873
  defaultLocale?: string | undefined;
58874
+ source?: {
58875
+ contentType: string;
58876
+ hash: string;
58877
+ contentLength: number;
58878
+ } | null | undefined;
58720
58879
  basepath?: string | undefined;
58721
58880
  customDomains?: string[] | undefined;
58722
58881
  previewId?: string | null | undefined;
58723
58882
  basepathAware?: boolean | null | undefined;
58883
+ publishStartedAt?: string | null | undefined;
58724
58884
  }>, z.ZodObject<{
58725
58885
  deploymentId: z.ZodString;
58726
58886
  /** ID of the canonical (fern URL) site row. */
@@ -58733,6 +58893,11 @@ export declare const docsLedgerContract: {
58733
58893
  additionalSiteIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
58734
58894
  deploymentHash: z.ZodString;
58735
58895
  reusedDeployment: z.ZodBoolean;
58896
+ /**
58897
+ * True when a publish of the same URL that started later was already live,
58898
+ * so this deployment was stored but not made live.
58899
+ */
58900
+ superseded: z.ZodOptional<z.ZodBoolean>;
58736
58901
  /**
58737
58902
  * Per-locale segment counts when `translations[]` was supplied on the
58738
58903
  * finish input. Absent when no translations were included.
@@ -58760,6 +58925,7 @@ export declare const docsLedgerContract: {
58760
58925
  deploymentHash: string;
58761
58926
  additionalSiteIds: string[];
58762
58927
  reusedDeployment: boolean;
58928
+ superseded?: boolean | undefined;
58763
58929
  translationsProcessed?: {
58764
58930
  locale: string;
58765
58931
  segmentsAdded: number;
@@ -58772,6 +58938,7 @@ export declare const docsLedgerContract: {
58772
58938
  deploymentHash: string;
58773
58939
  reusedDeployment: boolean;
58774
58940
  additionalSiteIds?: string[] | undefined;
58941
+ superseded?: boolean | undefined;
58775
58942
  translationsProcessed?: {
58776
58943
  locale: string;
58777
58944
  segmentsAdded: number;
@@ -59149,6 +59316,35 @@ export declare const docsLedgerContract: {
59149
59316
  buildId: string;
59150
59317
  nextCursor?: string | undefined;
59151
59318
  }>, Record<never, never>, Record<never, never>>;
59319
+ getSiteSource: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
59320
+ domain: z.ZodString;
59321
+ /** "" for a root site, otherwise a leading-slash basepath. */
59322
+ basepath: z.ZodDefault<z.ZodString>;
59323
+ }, "strip", z.ZodTypeAny, {
59324
+ domain: string;
59325
+ basepath: string;
59326
+ }, {
59327
+ domain: string;
59328
+ basepath?: string | undefined;
59329
+ }>, z.ZodObject<{
59330
+ /** SHA-256 hex of the source blob. */
59331
+ hash: z.ZodString;
59332
+ contentLength: z.ZodNumber;
59333
+ /** Short-lived signed GET URL for the JSON `RepositoryFile[]`. */
59334
+ url: z.ZodString;
59335
+ /** When the publish that sent this source finished (ISO 8601). */
59336
+ updatedAt: z.ZodString;
59337
+ }, "strip", z.ZodTypeAny, {
59338
+ url: string;
59339
+ updatedAt: string;
59340
+ hash: string;
59341
+ contentLength: number;
59342
+ }, {
59343
+ url: string;
59344
+ updatedAt: string;
59345
+ hash: string;
59346
+ contentLength: number;
59347
+ }>, Record<never, never>, Record<never, never>>;
59152
59348
  getCustomHostname: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
59153
59349
  /** A bare hostname (`docs.acme.com`); a scheme, path or port is rejected. */
59154
59350
  host: z.ZodString;
@@ -63487,6 +63683,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
63487
63683
  }[] | undefined;
63488
63684
  maskPii?: boolean | undefined;
63489
63685
  disclaimer?: string | undefined;
63686
+ buttonText?: string | undefined;
63490
63687
  }, z.ZodTypeDef, {
63491
63688
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
63492
63689
  systemPrompt?: string | undefined;
@@ -63497,6 +63694,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
63497
63694
  }[] | undefined;
63498
63695
  maskPii?: boolean | undefined;
63499
63696
  disclaimer?: string | undefined;
63697
+ buttonText?: string | undefined;
63500
63698
  }>>;
63501
63699
  pageActions: z.ZodOptional<z.ZodType<{
63502
63700
  options?: {
@@ -64497,6 +64695,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
64497
64695
  }[] | undefined;
64498
64696
  maskPii?: boolean | undefined;
64499
64697
  disclaimer?: string | undefined;
64698
+ buttonText?: string | undefined;
64500
64699
  } | undefined;
64501
64700
  pageActions?: {
64502
64701
  options?: {
@@ -65444,6 +65643,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
65444
65643
  }[] | undefined;
65445
65644
  maskPii?: boolean | undefined;
65446
65645
  disclaimer?: string | undefined;
65646
+ buttonText?: string | undefined;
65447
65647
  } | undefined;
65448
65648
  pageActions?: {
65449
65649
  options?: {
@@ -67968,6 +68168,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
67968
68168
  }[] | undefined;
67969
68169
  maskPii?: boolean | undefined;
67970
68170
  disclaimer?: string | undefined;
68171
+ buttonText?: string | undefined;
67971
68172
  } | undefined;
67972
68173
  pageActions?: {
67973
68174
  options?: {
@@ -69236,6 +69437,7 @@ export declare const VersionMetadataResponseSchema: z.ZodObject<{
69236
69437
  }[] | undefined;
69237
69438
  maskPii?: boolean | undefined;
69238
69439
  disclaimer?: string | undefined;
69440
+ buttonText?: string | undefined;
69239
69441
  } | undefined;
69240
69442
  pageActions?: {
69241
69443
  options?: {
@@ -86253,6 +86455,7 @@ export declare const docsLedgerReadContract: {
86253
86455
  }[] | undefined;
86254
86456
  maskPii?: boolean | undefined;
86255
86457
  disclaimer?: string | undefined;
86458
+ buttonText?: string | undefined;
86256
86459
  }, z.ZodTypeDef, {
86257
86460
  model?: "claude-3.5" | "claude-3.7" | "claude-4" | "command-a" | undefined;
86258
86461
  systemPrompt?: string | undefined;
@@ -86263,6 +86466,7 @@ export declare const docsLedgerReadContract: {
86263
86466
  }[] | undefined;
86264
86467
  maskPii?: boolean | undefined;
86265
86468
  disclaimer?: string | undefined;
86469
+ buttonText?: string | undefined;
86266
86470
  }>>;
86267
86471
  pageActions: z.ZodOptional<z.ZodType<{
86268
86472
  options?: {
@@ -87263,6 +87467,7 @@ export declare const docsLedgerReadContract: {
87263
87467
  }[] | undefined;
87264
87468
  maskPii?: boolean | undefined;
87265
87469
  disclaimer?: string | undefined;
87470
+ buttonText?: string | undefined;
87266
87471
  } | undefined;
87267
87472
  pageActions?: {
87268
87473
  options?: {
@@ -88210,6 +88415,7 @@ export declare const docsLedgerReadContract: {
88210
88415
  }[] | undefined;
88211
88416
  maskPii?: boolean | undefined;
88212
88417
  disclaimer?: string | undefined;
88418
+ buttonText?: string | undefined;
88213
88419
  } | undefined;
88214
88420
  pageActions?: {
88215
88421
  options?: {
@@ -90734,6 +90940,7 @@ export declare const docsLedgerReadContract: {
90734
90940
  }[] | undefined;
90735
90941
  maskPii?: boolean | undefined;
90736
90942
  disclaimer?: string | undefined;
90943
+ buttonText?: string | undefined;
90737
90944
  } | undefined;
90738
90945
  pageActions?: {
90739
90946
  options?: {
@@ -92002,6 +92209,7 @@ export declare const docsLedgerReadContract: {
92002
92209
  }[] | undefined;
92003
92210
  maskPii?: boolean | undefined;
92004
92211
  disclaimer?: string | undefined;
92212
+ buttonText?: string | undefined;
92005
92213
  } | undefined;
92006
92214
  pageActions?: {
92007
92215
  options?: {