@fern-api/fdr-sdk 1.2.174-e751c03595 → 1.2.174-e8c7a2e671
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/converters/db/examples/generateHttpBodyExample.d.ts.map +1 -1
- package/dist/converters/db/examples/generateHttpBodyExample.js +15 -14
- package/dist/converters/db/examples/generateHttpBodyExample.js.map +1 -1
- package/dist/converters/db/examples/generateHttpBodyExample.test.d.ts +2 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.d.ts.map +1 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.js +79 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.js.map +1 -0
- package/dist/docs-ledger/inputTypes.d.ts +5 -0
- package/dist/docs-ledger/inputTypes.d.ts.map +1 -1
- package/dist/js/client/FdrClient.js +34 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +34 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +18 -11
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +18 -11
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/docs-ledger/index.js +34 -1
- package/dist/js/docs-ledger/index.js.map +1 -1
- package/dist/js/docs-ledger/index.mjs +34 -1
- package/dist/js/docs-ledger/index.mjs.map +1 -1
- package/dist/js/index.js +52 -12
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +52 -12
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +42 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +40 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.d.ts +24 -0
- package/dist/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.js +4 -0
- package/dist/orpc-client/docs-anonymous/contract.js.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +152 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.js +41 -1
- package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
- package/dist/types/converters/db/examples/generateHttpBodyExample.d.ts.map +1 -1
- package/dist/types/converters/db/examples/generateHttpBodyExample.test.d.ts +2 -0
- package/dist/types/converters/db/examples/generateHttpBodyExample.test.d.ts.map +1 -0
- package/dist/types/docs-ledger/inputTypes.d.ts +5 -0
- package/dist/types/docs-ledger/inputTypes.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts +24 -0
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +152 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- 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;
|
|
@@ -28795,6 +28802,13 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
28795
28802
|
*/
|
|
28796
28803
|
customDomains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
28797
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>>;
|
|
28798
28812
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
28799
28813
|
defaultLocale: z.ZodDefault<z.ZodString>;
|
|
28800
28814
|
/**
|
|
@@ -30780,6 +30794,24 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
30780
30794
|
commitSha?: string | undefined;
|
|
30781
30795
|
} | undefined;
|
|
30782
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
|
+
}>>>;
|
|
30783
30815
|
}, "strip", z.ZodTypeAny, {
|
|
30784
30816
|
defaultLocale: string;
|
|
30785
30817
|
orgId: string;
|
|
@@ -31776,8 +31808,14 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
31776
31808
|
commitSha?: string | undefined;
|
|
31777
31809
|
} | undefined;
|
|
31778
31810
|
}[];
|
|
31811
|
+
source?: {
|
|
31812
|
+
contentType: string;
|
|
31813
|
+
hash: string;
|
|
31814
|
+
contentLength: number;
|
|
31815
|
+
} | null | undefined;
|
|
31779
31816
|
previewId?: string | null | undefined;
|
|
31780
31817
|
basepathAware?: boolean | null | undefined;
|
|
31818
|
+
publishStartedAt?: string | null | undefined;
|
|
31781
31819
|
}, {
|
|
31782
31820
|
orgId: string;
|
|
31783
31821
|
domain: string;
|
|
@@ -32772,10 +32810,16 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
32772
32810
|
} | undefined;
|
|
32773
32811
|
}[];
|
|
32774
32812
|
defaultLocale?: string | undefined;
|
|
32813
|
+
source?: {
|
|
32814
|
+
contentType: string;
|
|
32815
|
+
hash: string;
|
|
32816
|
+
contentLength: number;
|
|
32817
|
+
} | null | undefined;
|
|
32775
32818
|
basepath?: string | undefined;
|
|
32776
32819
|
customDomains?: string[] | undefined;
|
|
32777
32820
|
previewId?: string | null | undefined;
|
|
32778
32821
|
basepathAware?: boolean | null | undefined;
|
|
32822
|
+
publishStartedAt?: string | null | undefined;
|
|
32779
32823
|
}>, {
|
|
32780
32824
|
defaultLocale: string;
|
|
32781
32825
|
orgId: string;
|
|
@@ -33772,8 +33816,14 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
33772
33816
|
commitSha?: string | undefined;
|
|
33773
33817
|
} | undefined;
|
|
33774
33818
|
}[];
|
|
33819
|
+
source?: {
|
|
33820
|
+
contentType: string;
|
|
33821
|
+
hash: string;
|
|
33822
|
+
contentLength: number;
|
|
33823
|
+
} | null | undefined;
|
|
33775
33824
|
previewId?: string | null | undefined;
|
|
33776
33825
|
basepathAware?: boolean | null | undefined;
|
|
33826
|
+
publishStartedAt?: string | null | undefined;
|
|
33777
33827
|
}, {
|
|
33778
33828
|
orgId: string;
|
|
33779
33829
|
domain: string;
|
|
@@ -34768,10 +34818,16 @@ declare const DocsPublishInputSchemaInternal: z.ZodEffects<z.ZodObject<{
|
|
|
34768
34818
|
} | undefined;
|
|
34769
34819
|
}[];
|
|
34770
34820
|
defaultLocale?: string | undefined;
|
|
34821
|
+
source?: {
|
|
34822
|
+
contentType: string;
|
|
34823
|
+
hash: string;
|
|
34824
|
+
contentLength: number;
|
|
34825
|
+
} | null | undefined;
|
|
34771
34826
|
basepath?: string | undefined;
|
|
34772
34827
|
customDomains?: string[] | undefined;
|
|
34773
34828
|
previewId?: string | null | undefined;
|
|
34774
34829
|
basepathAware?: boolean | null | undefined;
|
|
34830
|
+
publishStartedAt?: string | null | undefined;
|
|
34775
34831
|
}>;
|
|
34776
34832
|
export type DocsPublishInput = z.output<typeof DocsPublishInputSchemaInternal>;
|
|
34777
34833
|
export type DocsPublishInputRaw = z.input<typeof DocsPublishInputSchemaInternal>;
|
|
@@ -50734,6 +50790,42 @@ export declare const ListStaticBuildFilesResponseSchema: z.ZodObject<{
|
|
|
50734
50790
|
buildId: string;
|
|
50735
50791
|
nextCursor?: string | undefined;
|
|
50736
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>;
|
|
50737
50829
|
export type ListStaticBuildFilesInput = z.input<typeof ListStaticBuildFilesInputSchema>;
|
|
50738
50830
|
export type StaticBuildFile = z.infer<typeof StaticBuildFileSchema>;
|
|
50739
50831
|
export type ListStaticBuildFilesResponse = z.infer<typeof ListStaticBuildFilesResponseSchema>;
|
|
@@ -51737,8 +51829,14 @@ export declare const docsLedgerContract: {
|
|
|
51737
51829
|
commitSha?: string | undefined;
|
|
51738
51830
|
} | undefined;
|
|
51739
51831
|
}[];
|
|
51832
|
+
source?: {
|
|
51833
|
+
contentType: string;
|
|
51834
|
+
hash: string;
|
|
51835
|
+
contentLength: number;
|
|
51836
|
+
} | null | undefined;
|
|
51740
51837
|
previewId?: string | null | undefined;
|
|
51741
51838
|
basepathAware?: boolean | null | undefined;
|
|
51839
|
+
publishStartedAt?: string | null | undefined;
|
|
51742
51840
|
}, z.ZodTypeDef, {
|
|
51743
51841
|
orgId: string;
|
|
51744
51842
|
domain: string;
|
|
@@ -52733,10 +52831,16 @@ export declare const docsLedgerContract: {
|
|
|
52733
52831
|
} | undefined;
|
|
52734
52832
|
}[];
|
|
52735
52833
|
defaultLocale?: string | undefined;
|
|
52834
|
+
source?: {
|
|
52835
|
+
contentType: string;
|
|
52836
|
+
hash: string;
|
|
52837
|
+
contentLength: number;
|
|
52838
|
+
} | null | undefined;
|
|
52736
52839
|
basepath?: string | undefined;
|
|
52737
52840
|
customDomains?: string[] | undefined;
|
|
52738
52841
|
previewId?: string | null | undefined;
|
|
52739
52842
|
basepathAware?: boolean | null | undefined;
|
|
52843
|
+
publishStartedAt?: string | null | undefined;
|
|
52740
52844
|
}>, z.ZodObject<{
|
|
52741
52845
|
deploymentHash: z.ZodString;
|
|
52742
52846
|
missingContent: z.ZodArray<z.ZodObject<{
|
|
@@ -57765,8 +57869,14 @@ export declare const docsLedgerContract: {
|
|
|
57765
57869
|
commitSha?: string | undefined;
|
|
57766
57870
|
} | undefined;
|
|
57767
57871
|
}[];
|
|
57872
|
+
source?: {
|
|
57873
|
+
contentType: string;
|
|
57874
|
+
hash: string;
|
|
57875
|
+
contentLength: number;
|
|
57876
|
+
} | null | undefined;
|
|
57768
57877
|
previewId?: string | null | undefined;
|
|
57769
57878
|
basepathAware?: boolean | null | undefined;
|
|
57879
|
+
publishStartedAt?: string | null | undefined;
|
|
57770
57880
|
}, z.ZodTypeDef, {
|
|
57771
57881
|
orgId: string;
|
|
57772
57882
|
domain: string;
|
|
@@ -58761,10 +58871,16 @@ export declare const docsLedgerContract: {
|
|
|
58761
58871
|
} | undefined;
|
|
58762
58872
|
}[];
|
|
58763
58873
|
defaultLocale?: string | undefined;
|
|
58874
|
+
source?: {
|
|
58875
|
+
contentType: string;
|
|
58876
|
+
hash: string;
|
|
58877
|
+
contentLength: number;
|
|
58878
|
+
} | null | undefined;
|
|
58764
58879
|
basepath?: string | undefined;
|
|
58765
58880
|
customDomains?: string[] | undefined;
|
|
58766
58881
|
previewId?: string | null | undefined;
|
|
58767
58882
|
basepathAware?: boolean | null | undefined;
|
|
58883
|
+
publishStartedAt?: string | null | undefined;
|
|
58768
58884
|
}>, z.ZodObject<{
|
|
58769
58885
|
deploymentId: z.ZodString;
|
|
58770
58886
|
/** ID of the canonical (fern URL) site row. */
|
|
@@ -58777,6 +58893,11 @@ export declare const docsLedgerContract: {
|
|
|
58777
58893
|
additionalSiteIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
58778
58894
|
deploymentHash: z.ZodString;
|
|
58779
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>;
|
|
58780
58901
|
/**
|
|
58781
58902
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
58782
58903
|
* finish input. Absent when no translations were included.
|
|
@@ -58804,6 +58925,7 @@ export declare const docsLedgerContract: {
|
|
|
58804
58925
|
deploymentHash: string;
|
|
58805
58926
|
additionalSiteIds: string[];
|
|
58806
58927
|
reusedDeployment: boolean;
|
|
58928
|
+
superseded?: boolean | undefined;
|
|
58807
58929
|
translationsProcessed?: {
|
|
58808
58930
|
locale: string;
|
|
58809
58931
|
segmentsAdded: number;
|
|
@@ -58816,6 +58938,7 @@ export declare const docsLedgerContract: {
|
|
|
58816
58938
|
deploymentHash: string;
|
|
58817
58939
|
reusedDeployment: boolean;
|
|
58818
58940
|
additionalSiteIds?: string[] | undefined;
|
|
58941
|
+
superseded?: boolean | undefined;
|
|
58819
58942
|
translationsProcessed?: {
|
|
58820
58943
|
locale: string;
|
|
58821
58944
|
segmentsAdded: number;
|
|
@@ -59193,6 +59316,35 @@ export declare const docsLedgerContract: {
|
|
|
59193
59316
|
buildId: string;
|
|
59194
59317
|
nextCursor?: string | undefined;
|
|
59195
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>>;
|
|
59196
59348
|
getCustomHostname: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
59197
59349
|
/** A bare hostname (`docs.acme.com`); a scheme, path or port is rejected. */
|
|
59198
59350
|
host: z.ZodString;
|