@fern-api/fdr-sdk 1.2.150-6ecd5b84b9 → 1.2.151-1537a7ea13
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/js/client/FdrClient.js +21 -3
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +21 -3
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +21 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +21 -3
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +21 -3
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +21 -3
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +54 -2
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.js +21 -3
- package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +54 -2
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -131,39 +131,65 @@ export declare const MigrateV2SiteInputSchema: z.ZodObject<{
|
|
|
131
131
|
*/
|
|
132
132
|
export declare const StartStaticBuildInputSchema: z.ZodObject<{
|
|
133
133
|
domain: z.ZodString;
|
|
134
|
-
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
134
|
+
/** "" for a root site, otherwise a leading-slash basepath. Ignored when `path` is given. */
|
|
135
135
|
basepath: z.ZodDefault<z.ZodString>;
|
|
136
|
+
/**
|
|
137
|
+
* A request path on `domain`: the site to build is the one whose basepath the
|
|
138
|
+
* path falls under (the longest match; the root site catches the rest). What
|
|
139
|
+
* the docs-router sends, since it does not know which basepaths a host publishes.
|
|
140
|
+
*/
|
|
141
|
+
path: z.ZodOptional<z.ZodString>;
|
|
142
|
+
/**
|
|
143
|
+
* `publish` (the default) waits for the Job and reports how it ended.
|
|
144
|
+
* `background` returns as soon as the Job exists (`outcome: "queued"`): the
|
|
145
|
+
* Job promotes itself when it succeeds. What the docs-router asks for when a
|
|
146
|
+
* visitor reaches a preview that has no static build yet.
|
|
147
|
+
*/
|
|
148
|
+
priority: z.ZodDefault<z.ZodEnum<["publish", "background"]>>;
|
|
136
149
|
}, "strip", z.ZodTypeAny, {
|
|
137
150
|
domain: string;
|
|
138
151
|
basepath: string;
|
|
152
|
+
priority: "background" | "publish";
|
|
153
|
+
path?: string | undefined;
|
|
139
154
|
}, {
|
|
140
155
|
domain: string;
|
|
156
|
+
path?: string | undefined;
|
|
141
157
|
basepath?: string | undefined;
|
|
158
|
+
priority?: "background" | "publish" | undefined;
|
|
142
159
|
}>;
|
|
143
160
|
export declare const StartStaticBuildResponseSchema: z.ZodObject<{
|
|
144
161
|
/** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
|
|
145
162
|
status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published"]>;
|
|
146
163
|
domain: z.ZodString;
|
|
164
|
+
/** The site built: the requested basepath, or the one `path` resolved to. */
|
|
147
165
|
basepath: z.ZodString;
|
|
166
|
+
/** Every basepath currently published at `domain` ("" is the root site). */
|
|
167
|
+
basepaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
168
|
/** The deployment being built, absent when the site has never published. */
|
|
149
169
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
150
170
|
jobName: z.ZodOptional<z.ZodString>;
|
|
151
171
|
/** The host the build is exported to and served from, which may not be `domain`. */
|
|
152
172
|
host: z.ZodOptional<z.ZodString>;
|
|
173
|
+
/** How the Job ended, or `queued` for a `background` build nobody waited on. */
|
|
174
|
+
outcome: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]>>;
|
|
153
175
|
}, "strip", z.ZodTypeAny, {
|
|
154
176
|
status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
|
|
155
177
|
domain: string;
|
|
156
178
|
basepath: string;
|
|
157
179
|
deploymentId?: string | undefined;
|
|
180
|
+
basepaths?: string[] | undefined;
|
|
158
181
|
jobName?: string | undefined;
|
|
159
182
|
host?: string | undefined;
|
|
183
|
+
outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
|
|
160
184
|
}, {
|
|
161
185
|
status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
|
|
162
186
|
domain: string;
|
|
163
187
|
basepath: string;
|
|
164
188
|
deploymentId?: string | undefined;
|
|
189
|
+
basepaths?: string[] | undefined;
|
|
165
190
|
jobName?: string | undefined;
|
|
166
191
|
host?: string | undefined;
|
|
192
|
+
outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
|
|
167
193
|
}>;
|
|
168
194
|
/**
|
|
169
195
|
* Input for `POST /static-build/rebuild-all`: rebuild every production static
|
|
@@ -58030,38 +58056,64 @@ export declare const docsLedgerContract: {
|
|
|
58030
58056
|
}>]>, Record<never, never>, Record<never, never>>;
|
|
58031
58057
|
startStaticBuild: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
58032
58058
|
domain: z.ZodString;
|
|
58033
|
-
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
58059
|
+
/** "" for a root site, otherwise a leading-slash basepath. Ignored when `path` is given. */
|
|
58034
58060
|
basepath: z.ZodDefault<z.ZodString>;
|
|
58061
|
+
/**
|
|
58062
|
+
* A request path on `domain`: the site to build is the one whose basepath the
|
|
58063
|
+
* path falls under (the longest match; the root site catches the rest). What
|
|
58064
|
+
* the docs-router sends, since it does not know which basepaths a host publishes.
|
|
58065
|
+
*/
|
|
58066
|
+
path: z.ZodOptional<z.ZodString>;
|
|
58067
|
+
/**
|
|
58068
|
+
* `publish` (the default) waits for the Job and reports how it ended.
|
|
58069
|
+
* `background` returns as soon as the Job exists (`outcome: "queued"`): the
|
|
58070
|
+
* Job promotes itself when it succeeds. What the docs-router asks for when a
|
|
58071
|
+
* visitor reaches a preview that has no static build yet.
|
|
58072
|
+
*/
|
|
58073
|
+
priority: z.ZodDefault<z.ZodEnum<["publish", "background"]>>;
|
|
58035
58074
|
}, "strip", z.ZodTypeAny, {
|
|
58036
58075
|
domain: string;
|
|
58037
58076
|
basepath: string;
|
|
58077
|
+
priority: "background" | "publish";
|
|
58078
|
+
path?: string | undefined;
|
|
58038
58079
|
}, {
|
|
58039
58080
|
domain: string;
|
|
58081
|
+
path?: string | undefined;
|
|
58040
58082
|
basepath?: string | undefined;
|
|
58083
|
+
priority?: "background" | "publish" | undefined;
|
|
58041
58084
|
}>, z.ZodObject<{
|
|
58042
58085
|
/** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
|
|
58043
58086
|
status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published"]>;
|
|
58044
58087
|
domain: z.ZodString;
|
|
58088
|
+
/** The site built: the requested basepath, or the one `path` resolved to. */
|
|
58045
58089
|
basepath: z.ZodString;
|
|
58090
|
+
/** Every basepath currently published at `domain` ("" is the root site). */
|
|
58091
|
+
basepaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
58046
58092
|
/** The deployment being built, absent when the site has never published. */
|
|
58047
58093
|
deploymentId: z.ZodOptional<z.ZodString>;
|
|
58048
58094
|
jobName: z.ZodOptional<z.ZodString>;
|
|
58049
58095
|
/** The host the build is exported to and served from, which may not be `domain`. */
|
|
58050
58096
|
host: z.ZodOptional<z.ZodString>;
|
|
58097
|
+
/** How the Job ended, or `queued` for a `background` build nobody waited on. */
|
|
58098
|
+
outcome: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]>>;
|
|
58051
58099
|
}, "strip", z.ZodTypeAny, {
|
|
58052
58100
|
status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
|
|
58053
58101
|
domain: string;
|
|
58054
58102
|
basepath: string;
|
|
58055
58103
|
deploymentId?: string | undefined;
|
|
58104
|
+
basepaths?: string[] | undefined;
|
|
58056
58105
|
jobName?: string | undefined;
|
|
58057
58106
|
host?: string | undefined;
|
|
58107
|
+
outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
|
|
58058
58108
|
}, {
|
|
58059
58109
|
status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
|
|
58060
58110
|
domain: string;
|
|
58061
58111
|
basepath: string;
|
|
58062
58112
|
deploymentId?: string | undefined;
|
|
58113
|
+
basepaths?: string[] | undefined;
|
|
58063
58114
|
jobName?: string | undefined;
|
|
58064
58115
|
host?: string | undefined;
|
|
58116
|
+
outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
|
|
58065
58117
|
}>, Record<never, never>, Record<never, never>>;
|
|
58066
58118
|
rebuildAllStaticBuilds: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
58067
58119
|
/** Resolve and report the sites without dispatching any build. */
|