@fragno-dev/cloudflare-fragment 0.0.1

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 (64) hide show
  1. package/LICENSE.md +16 -0
  2. package/README.md +92 -0
  3. package/dist/browser/client/react.d.ts +290 -0
  4. package/dist/browser/client/react.d.ts.map +1 -0
  5. package/dist/browser/client/react.js +166 -0
  6. package/dist/browser/client/react.js.map +1 -0
  7. package/dist/browser/client/solid.d.ts +292 -0
  8. package/dist/browser/client/solid.d.ts.map +1 -0
  9. package/dist/browser/client/solid.js +136 -0
  10. package/dist/browser/client/solid.js.map +1 -0
  11. package/dist/browser/client/svelte.d.ts +287 -0
  12. package/dist/browser/client/svelte.d.ts.map +1 -0
  13. package/dist/browser/client/svelte.js +134 -0
  14. package/dist/browser/client/svelte.js.map +1 -0
  15. package/dist/browser/client/vanilla.d.ts +316 -0
  16. package/dist/browser/client/vanilla.d.ts.map +1 -0
  17. package/dist/browser/client/vanilla.js +160 -0
  18. package/dist/browser/client/vanilla.js.map +1 -0
  19. package/dist/browser/client/vue.d.ts +290 -0
  20. package/dist/browser/client/vue.d.ts.map +1 -0
  21. package/dist/browser/client/vue.js +133 -0
  22. package/dist/browser/client/vue.js.map +1 -0
  23. package/dist/browser/client-Bk-J98pf.d.ts +679 -0
  24. package/dist/browser/client-Bk-J98pf.d.ts.map +1 -0
  25. package/dist/browser/index.d.ts +2027 -0
  26. package/dist/browser/index.d.ts.map +1 -0
  27. package/dist/browser/index.js +27 -0
  28. package/dist/browser/index.js.map +1 -0
  29. package/dist/browser/schema-Bt-h9kGf.js +2348 -0
  30. package/dist/browser/schema-Bt-h9kGf.js.map +1 -0
  31. package/dist/node/cloudflare-api.d.ts +106 -0
  32. package/dist/node/cloudflare-api.d.ts.map +1 -0
  33. package/dist/node/cloudflare-api.js +146 -0
  34. package/dist/node/cloudflare-api.js.map +1 -0
  35. package/dist/node/contracts.d.ts +288 -0
  36. package/dist/node/contracts.d.ts.map +1 -0
  37. package/dist/node/contracts.js +66 -0
  38. package/dist/node/contracts.js.map +1 -0
  39. package/dist/node/definition.d.ts +339 -0
  40. package/dist/node/definition.d.ts.map +1 -0
  41. package/dist/node/definition.js +417 -0
  42. package/dist/node/definition.js.map +1 -0
  43. package/dist/node/deployment-tag.d.ts +13 -0
  44. package/dist/node/deployment-tag.d.ts.map +1 -0
  45. package/dist/node/deployment-tag.js +73 -0
  46. package/dist/node/deployment-tag.js.map +1 -0
  47. package/dist/node/index.d.ts +786 -0
  48. package/dist/node/index.d.ts.map +1 -0
  49. package/dist/node/index.js +35 -0
  50. package/dist/node/index.js.map +1 -0
  51. package/dist/node/routes.d.ts +520 -0
  52. package/dist/node/routes.d.ts.map +1 -0
  53. package/dist/node/routes.js +100 -0
  54. package/dist/node/routes.js.map +1 -0
  55. package/dist/node/schema.d.ts +11 -0
  56. package/dist/node/schema.d.ts.map +1 -0
  57. package/dist/node/schema.js +24 -0
  58. package/dist/node/schema.js.map +1 -0
  59. package/dist/node/script-name.d.ts +13 -0
  60. package/dist/node/script-name.d.ts.map +1 -0
  61. package/dist/node/script-name.js +35 -0
  62. package/dist/node/script-name.js.map +1 -0
  63. package/dist/tsconfig.tsbuildinfo +1 -0
  64. package/package.json +98 -0
@@ -0,0 +1,2027 @@
1
+ import { n as FragnoClientMutatorData, o as NonGetHTTPMethod, s as FragnoPublicClientConfig, t as FragnoClientHookData } from "./client-Bk-J98pf.js";
2
+ import * as _fragno_dev_core0 from "@fragno-dev/core";
3
+ import { FragnoRouteConfig } from "@fragno-dev/core";
4
+ import * as _fragno_dev_db0 from "@fragno-dev/db";
5
+ import { FragnoPublicConfigWithDatabase, HookFn } from "@fragno-dev/db";
6
+ import * as cloudflare from "cloudflare";
7
+ import Cloudflare, { ClientOptions } from "cloudflare";
8
+ import * as zod from "zod";
9
+ import { z } from "zod";
10
+ import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema";
11
+ import * as zod_v4_core0 from "zod/v4/core";
12
+ import * as _standard_schema_spec0 from "@standard-schema/spec";
13
+ import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder";
14
+ import { ScriptUpdateParams, ScriptUpdateResponse } from "cloudflare/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts";
15
+
16
+ //#region src/cloudflare-api.d.ts
17
+ type CloudflareDispatchNamespaceBinding = {
18
+ get(name: string, args?: Record<string, unknown>, options?: unknown): unknown;
19
+ };
20
+ type CloudflareDispatchNamespaceDescriptor = {
21
+ binding: CloudflareDispatchNamespaceBinding;
22
+ namespace: string;
23
+ };
24
+ type CloudflareDispatcherConfig = string | CloudflareDispatchNamespaceDescriptor;
25
+ type CloudflareApiClientConfig = {
26
+ apiToken: string;
27
+ fetchImplementation?: ClientOptions["fetch"];
28
+ maxRetries?: number;
29
+ };
30
+ type CloudflareApiClient = Cloudflare;
31
+ type CloudflareScriptUpdateParams = ScriptUpdateParams;
32
+ type CloudflareScriptUpdateResponse = ScriptUpdateResponse;
33
+ type DeployCloudflareWorkerInput = {
34
+ accountId: string;
35
+ dispatchNamespace: string;
36
+ scriptName: string;
37
+ entrypoint: string;
38
+ moduleContent: string;
39
+ compatibilityDate: string;
40
+ compatibilityFlags: string[];
41
+ tags?: string[];
42
+ ifMatch?: string | null;
43
+ };
44
+ type ReconcileCloudflareWorkerDeploymentInput = {
45
+ accountId: string;
46
+ dispatchNamespace: string;
47
+ appId: string;
48
+ deploymentId: string;
49
+ expectedLiveEtag: string | null;
50
+ deploymentTagPrefix?: string;
51
+ scriptName: string;
52
+ entrypoint: string;
53
+ moduleContent: string;
54
+ compatibilityDate: string;
55
+ compatibilityFlags: string[];
56
+ scriptTags?: string[];
57
+ };
58
+ type CloudflareDeploymentReconciliationResult = {
59
+ action: "already-deployed";
60
+ deploymentTag: string;
61
+ currentDeploymentTag: string;
62
+ currentDeploymentId: string | null;
63
+ currentEtag: string | null;
64
+ currentModifiedOn: string | null;
65
+ } | {
66
+ action: "uploaded";
67
+ deploymentTag: string;
68
+ response: CloudflareScriptUpdateResponse;
69
+ } | {
70
+ action: "superseded";
71
+ deploymentTag: string;
72
+ currentDeploymentTag: string;
73
+ currentDeploymentId: string | null;
74
+ currentEtag: string | null;
75
+ currentModifiedOn: string | null;
76
+ };
77
+ type CloudflareCurrentDeployment = {
78
+ deploymentTag: string;
79
+ deploymentId: string | null;
80
+ } | null;
81
+ type CloudflareScriptState = {
82
+ etag: string | null;
83
+ modifiedOn: string | null;
84
+ } | null;
85
+ declare const resolveCloudflareDispatchNamespaceName: (dispatcher: CloudflareDispatcherConfig) => string;
86
+ declare const buildCloudflareScriptTags: (dynamicTags: string | string[], staticTags?: string[]) => string[];
87
+ declare const createCloudflareApiClient: ({
88
+ apiToken,
89
+ fetchImplementation,
90
+ maxRetries
91
+ }: CloudflareApiClientConfig) => CloudflareApiClient;
92
+ declare const listCloudflareScriptTags: (client: CloudflareApiClient, input: {
93
+ accountId: string;
94
+ dispatchNamespace: string;
95
+ scriptName: string;
96
+ }) => Promise<string[]>;
97
+ declare const getCloudflareCurrentDeployment: (client: CloudflareApiClient, input: {
98
+ accountId: string;
99
+ dispatchNamespace: string;
100
+ scriptName: string;
101
+ deploymentTagPrefix?: string;
102
+ }) => Promise<CloudflareCurrentDeployment>;
103
+ declare const getCloudflareScriptState: (client: CloudflareApiClient, input: {
104
+ accountId: string;
105
+ dispatchNamespace: string;
106
+ scriptName: string;
107
+ }) => Promise<CloudflareScriptState>;
108
+ declare const deployCloudflareWorker: (client: CloudflareApiClient, input: DeployCloudflareWorkerInput) => Promise<Cloudflare.WorkersForPlatforms.Dispatch.Namespaces.Scripts.ScriptUpdateResponse>;
109
+ declare const reconcileCloudflareWorkerDeployment: (client: CloudflareApiClient, input: ReconcileCloudflareWorkerDeploymentInput) => Promise<CloudflareDeploymentReconciliationResult>;
110
+ declare const getCloudflareApiError: (error: unknown) => {
111
+ status: any;
112
+ code: string;
113
+ message: string;
114
+ details: Record<string, unknown> | undefined;
115
+ } | null;
116
+ //#endregion
117
+ //#region src/contracts.d.ts
118
+ declare const SUPPORTED_DEPLOYMENT_FORMAT = "esmodule";
119
+ declare const DEFAULT_DEPLOYMENT_ENTRYPOINT = "index.mjs";
120
+ declare const cloudflareDeploymentStatusSchema: z.ZodEnum<{
121
+ queued: "queued";
122
+ deploying: "deploying";
123
+ succeeded: "succeeded";
124
+ failed: "failed";
125
+ }>;
126
+ declare const cloudflareDeployScriptSchema: z.ZodObject<{
127
+ type: z.ZodDefault<z.ZodEnum<{
128
+ esmodule: "esmodule";
129
+ }>>;
130
+ entrypoint: z.ZodDefault<z.ZodString>;
131
+ content: z.ZodString;
132
+ }, z.core.$strip>;
133
+ declare const cloudflareDeployRequestSchema: z.ZodObject<{
134
+ script: z.ZodObject<{
135
+ type: z.ZodDefault<z.ZodEnum<{
136
+ esmodule: "esmodule";
137
+ }>>;
138
+ entrypoint: z.ZodDefault<z.ZodString>;
139
+ content: z.ZodString;
140
+ }, z.core.$strip>;
141
+ compatibilityDate: z.ZodOptional<z.ZodString>;
142
+ compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ }, z.core.$strip>;
144
+ declare const cloudflareDeploymentSummarySchema: z.ZodObject<{
145
+ id: z.ZodString;
146
+ appId: z.ZodString;
147
+ scriptName: z.ZodString;
148
+ status: z.ZodEnum<{
149
+ queued: "queued";
150
+ deploying: "deploying";
151
+ succeeded: "succeeded";
152
+ failed: "failed";
153
+ }>;
154
+ format: z.ZodLiteral<"esmodule">;
155
+ entrypoint: z.ZodString;
156
+ sourceByteLength: z.ZodNumber;
157
+ compatibilityDate: z.ZodString;
158
+ compatibilityFlags: z.ZodArray<z.ZodString>;
159
+ attemptCount: z.ZodNumber;
160
+ queuedAt: z.ZodString;
161
+ startedAt: z.ZodNullable<z.ZodString>;
162
+ completedAt: z.ZodNullable<z.ZodString>;
163
+ errorCode: z.ZodNullable<z.ZodString>;
164
+ errorMessage: z.ZodNullable<z.ZodString>;
165
+ cloudflare: z.ZodNullable<z.ZodObject<{
166
+ etag: z.ZodNullable<z.ZodString>;
167
+ modifiedOn: z.ZodNullable<z.ZodString>;
168
+ }, z.core.$strip>>;
169
+ createdAt: z.ZodString;
170
+ updatedAt: z.ZodString;
171
+ }, z.core.$strip>;
172
+ declare const cloudflareDeploymentDetailSchema: z.ZodObject<{
173
+ id: z.ZodString;
174
+ appId: z.ZodString;
175
+ scriptName: z.ZodString;
176
+ status: z.ZodEnum<{
177
+ queued: "queued";
178
+ deploying: "deploying";
179
+ succeeded: "succeeded";
180
+ failed: "failed";
181
+ }>;
182
+ format: z.ZodLiteral<"esmodule">;
183
+ entrypoint: z.ZodString;
184
+ sourceByteLength: z.ZodNumber;
185
+ compatibilityDate: z.ZodString;
186
+ compatibilityFlags: z.ZodArray<z.ZodString>;
187
+ attemptCount: z.ZodNumber;
188
+ queuedAt: z.ZodString;
189
+ startedAt: z.ZodNullable<z.ZodString>;
190
+ completedAt: z.ZodNullable<z.ZodString>;
191
+ errorCode: z.ZodNullable<z.ZodString>;
192
+ errorMessage: z.ZodNullable<z.ZodString>;
193
+ cloudflare: z.ZodNullable<z.ZodObject<{
194
+ etag: z.ZodNullable<z.ZodString>;
195
+ modifiedOn: z.ZodNullable<z.ZodString>;
196
+ }, z.core.$strip>>;
197
+ createdAt: z.ZodString;
198
+ updatedAt: z.ZodString;
199
+ sourceCode: z.ZodString;
200
+ }, z.core.$strip>;
201
+ declare const cloudflareAppSummarySchema: z.ZodObject<{
202
+ id: z.ZodString;
203
+ scriptName: z.ZodString;
204
+ latestDeployment: z.ZodNullable<z.ZodObject<{
205
+ id: z.ZodString;
206
+ appId: z.ZodString;
207
+ scriptName: z.ZodString;
208
+ status: z.ZodEnum<{
209
+ queued: "queued";
210
+ deploying: "deploying";
211
+ succeeded: "succeeded";
212
+ failed: "failed";
213
+ }>;
214
+ format: z.ZodLiteral<"esmodule">;
215
+ entrypoint: z.ZodString;
216
+ sourceByteLength: z.ZodNumber;
217
+ compatibilityDate: z.ZodString;
218
+ compatibilityFlags: z.ZodArray<z.ZodString>;
219
+ attemptCount: z.ZodNumber;
220
+ queuedAt: z.ZodString;
221
+ startedAt: z.ZodNullable<z.ZodString>;
222
+ completedAt: z.ZodNullable<z.ZodString>;
223
+ errorCode: z.ZodNullable<z.ZodString>;
224
+ errorMessage: z.ZodNullable<z.ZodString>;
225
+ cloudflare: z.ZodNullable<z.ZodObject<{
226
+ etag: z.ZodNullable<z.ZodString>;
227
+ modifiedOn: z.ZodNullable<z.ZodString>;
228
+ }, z.core.$strip>>;
229
+ createdAt: z.ZodString;
230
+ updatedAt: z.ZodString;
231
+ }, z.core.$strip>>;
232
+ createdAt: z.ZodString;
233
+ updatedAt: z.ZodString;
234
+ }, z.core.$strip>;
235
+ declare const cloudflareAppStateSchema: z.ZodObject<{
236
+ id: z.ZodString;
237
+ scriptName: z.ZodString;
238
+ latestDeployment: z.ZodNullable<z.ZodObject<{
239
+ id: z.ZodString;
240
+ appId: z.ZodString;
241
+ scriptName: z.ZodString;
242
+ status: z.ZodEnum<{
243
+ queued: "queued";
244
+ deploying: "deploying";
245
+ succeeded: "succeeded";
246
+ failed: "failed";
247
+ }>;
248
+ format: z.ZodLiteral<"esmodule">;
249
+ entrypoint: z.ZodString;
250
+ sourceByteLength: z.ZodNumber;
251
+ compatibilityDate: z.ZodString;
252
+ compatibilityFlags: z.ZodArray<z.ZodString>;
253
+ attemptCount: z.ZodNumber;
254
+ queuedAt: z.ZodString;
255
+ startedAt: z.ZodNullable<z.ZodString>;
256
+ completedAt: z.ZodNullable<z.ZodString>;
257
+ errorCode: z.ZodNullable<z.ZodString>;
258
+ errorMessage: z.ZodNullable<z.ZodString>;
259
+ cloudflare: z.ZodNullable<z.ZodObject<{
260
+ etag: z.ZodNullable<z.ZodString>;
261
+ modifiedOn: z.ZodNullable<z.ZodString>;
262
+ }, z.core.$strip>>;
263
+ createdAt: z.ZodString;
264
+ updatedAt: z.ZodString;
265
+ }, z.core.$strip>>;
266
+ createdAt: z.ZodString;
267
+ updatedAt: z.ZodString;
268
+ liveDeployment: z.ZodNullable<z.ZodObject<{
269
+ id: z.ZodString;
270
+ appId: z.ZodString;
271
+ scriptName: z.ZodString;
272
+ status: z.ZodEnum<{
273
+ queued: "queued";
274
+ deploying: "deploying";
275
+ succeeded: "succeeded";
276
+ failed: "failed";
277
+ }>;
278
+ format: z.ZodLiteral<"esmodule">;
279
+ entrypoint: z.ZodString;
280
+ sourceByteLength: z.ZodNumber;
281
+ compatibilityDate: z.ZodString;
282
+ compatibilityFlags: z.ZodArray<z.ZodString>;
283
+ attemptCount: z.ZodNumber;
284
+ queuedAt: z.ZodString;
285
+ startedAt: z.ZodNullable<z.ZodString>;
286
+ completedAt: z.ZodNullable<z.ZodString>;
287
+ errorCode: z.ZodNullable<z.ZodString>;
288
+ errorMessage: z.ZodNullable<z.ZodString>;
289
+ cloudflare: z.ZodNullable<z.ZodObject<{
290
+ etag: z.ZodNullable<z.ZodString>;
291
+ modifiedOn: z.ZodNullable<z.ZodString>;
292
+ }, z.core.$strip>>;
293
+ createdAt: z.ZodString;
294
+ updatedAt: z.ZodString;
295
+ }, z.core.$strip>>;
296
+ liveDeploymentError: z.ZodNullable<z.ZodString>;
297
+ deployments: z.ZodArray<z.ZodObject<{
298
+ id: z.ZodString;
299
+ appId: z.ZodString;
300
+ scriptName: z.ZodString;
301
+ status: z.ZodEnum<{
302
+ queued: "queued";
303
+ deploying: "deploying";
304
+ succeeded: "succeeded";
305
+ failed: "failed";
306
+ }>;
307
+ format: z.ZodLiteral<"esmodule">;
308
+ entrypoint: z.ZodString;
309
+ sourceByteLength: z.ZodNumber;
310
+ compatibilityDate: z.ZodString;
311
+ compatibilityFlags: z.ZodArray<z.ZodString>;
312
+ attemptCount: z.ZodNumber;
313
+ queuedAt: z.ZodString;
314
+ startedAt: z.ZodNullable<z.ZodString>;
315
+ completedAt: z.ZodNullable<z.ZodString>;
316
+ errorCode: z.ZodNullable<z.ZodString>;
317
+ errorMessage: z.ZodNullable<z.ZodString>;
318
+ cloudflare: z.ZodNullable<z.ZodObject<{
319
+ etag: z.ZodNullable<z.ZodString>;
320
+ modifiedOn: z.ZodNullable<z.ZodString>;
321
+ }, z.core.$strip>>;
322
+ createdAt: z.ZodString;
323
+ updatedAt: z.ZodString;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>;
326
+ declare const cloudflareAppListSchema: z.ZodObject<{
327
+ apps: z.ZodArray<z.ZodObject<{
328
+ id: z.ZodString;
329
+ scriptName: z.ZodString;
330
+ latestDeployment: z.ZodNullable<z.ZodObject<{
331
+ id: z.ZodString;
332
+ appId: z.ZodString;
333
+ scriptName: z.ZodString;
334
+ status: z.ZodEnum<{
335
+ queued: "queued";
336
+ deploying: "deploying";
337
+ succeeded: "succeeded";
338
+ failed: "failed";
339
+ }>;
340
+ format: z.ZodLiteral<"esmodule">;
341
+ entrypoint: z.ZodString;
342
+ sourceByteLength: z.ZodNumber;
343
+ compatibilityDate: z.ZodString;
344
+ compatibilityFlags: z.ZodArray<z.ZodString>;
345
+ attemptCount: z.ZodNumber;
346
+ queuedAt: z.ZodString;
347
+ startedAt: z.ZodNullable<z.ZodString>;
348
+ completedAt: z.ZodNullable<z.ZodString>;
349
+ errorCode: z.ZodNullable<z.ZodString>;
350
+ errorMessage: z.ZodNullable<z.ZodString>;
351
+ cloudflare: z.ZodNullable<z.ZodObject<{
352
+ etag: z.ZodNullable<z.ZodString>;
353
+ modifiedOn: z.ZodNullable<z.ZodString>;
354
+ }, z.core.$strip>>;
355
+ createdAt: z.ZodString;
356
+ updatedAt: z.ZodString;
357
+ }, z.core.$strip>>;
358
+ createdAt: z.ZodString;
359
+ updatedAt: z.ZodString;
360
+ }, z.core.$strip>>;
361
+ }, z.core.$strip>;
362
+ declare const cloudflareDeploymentListSchema: z.ZodObject<{
363
+ deployments: z.ZodArray<z.ZodObject<{
364
+ id: z.ZodString;
365
+ appId: z.ZodString;
366
+ scriptName: z.ZodString;
367
+ status: z.ZodEnum<{
368
+ queued: "queued";
369
+ deploying: "deploying";
370
+ succeeded: "succeeded";
371
+ failed: "failed";
372
+ }>;
373
+ format: z.ZodLiteral<"esmodule">;
374
+ entrypoint: z.ZodString;
375
+ sourceByteLength: z.ZodNumber;
376
+ compatibilityDate: z.ZodString;
377
+ compatibilityFlags: z.ZodArray<z.ZodString>;
378
+ attemptCount: z.ZodNumber;
379
+ queuedAt: z.ZodString;
380
+ startedAt: z.ZodNullable<z.ZodString>;
381
+ completedAt: z.ZodNullable<z.ZodString>;
382
+ errorCode: z.ZodNullable<z.ZodString>;
383
+ errorMessage: z.ZodNullable<z.ZodString>;
384
+ cloudflare: z.ZodNullable<z.ZodObject<{
385
+ etag: z.ZodNullable<z.ZodString>;
386
+ modifiedOn: z.ZodNullable<z.ZodString>;
387
+ }, z.core.$strip>>;
388
+ createdAt: z.ZodString;
389
+ updatedAt: z.ZodString;
390
+ }, z.core.$strip>>;
391
+ }, z.core.$strip>;
392
+ type CloudflareDeploymentStatus = z.infer<typeof cloudflareDeploymentStatusSchema>;
393
+ type CloudflareDeployRequest = z.infer<typeof cloudflareDeployRequestSchema>;
394
+ type CloudflareDeploymentSummary = z.infer<typeof cloudflareDeploymentSummarySchema>;
395
+ type CloudflareDeploymentDetail = z.infer<typeof cloudflareDeploymentDetailSchema>;
396
+ type CloudflareAppSummary = z.infer<typeof cloudflareAppSummarySchema>;
397
+ type CloudflareAppState = z.infer<typeof cloudflareAppStateSchema>;
398
+ type CloudflareAppList = z.infer<typeof cloudflareAppListSchema>;
399
+ type CloudflareDeploymentList = z.infer<typeof cloudflareDeploymentListSchema>;
400
+ //#endregion
401
+ //#region src/script-name.d.ts
402
+ interface CloudflareScriptNameConfig {
403
+ scriptNamePrefix?: string;
404
+ scriptNameSuffix?: string;
405
+ scriptNameSeparator?: string;
406
+ maxScriptNameLength?: number;
407
+ }
408
+ declare const DEFAULT_SCRIPT_NAME_SEPARATOR = "-";
409
+ declare const DEFAULT_MAX_SCRIPT_NAME_LENGTH = 63;
410
+ declare const resolveCloudflareScriptName: (appId: string, config?: CloudflareScriptNameConfig) => string;
411
+ //#endregion
412
+ //#region src/definition.d.ts
413
+ type CloudflareFragmentSharedConfig = CloudflareScriptNameConfig & {
414
+ accountId: string;
415
+ compatibilityDate: string;
416
+ compatibilityFlags?: string[];
417
+ scriptTags?: string[];
418
+ deploymentTagPrefix?: string;
419
+ };
420
+ type CloudflareFragmentApiTokenConfig = {
421
+ apiToken: string;
422
+ cloudflare?: never;
423
+ fetchImplementation?: ClientOptions["fetch"];
424
+ };
425
+ type CloudflareFragmentClientConfig = {
426
+ cloudflare: CloudflareApiClient;
427
+ apiToken?: never;
428
+ fetchImplementation?: never;
429
+ };
430
+ type CloudflareFragmentConfig = CloudflareFragmentSharedConfig & (CloudflareFragmentApiTokenConfig | CloudflareFragmentClientConfig) & ({
431
+ dispatcher: CloudflareDispatcherConfig;
432
+ dispatchNamespace?: never;
433
+ } | {
434
+ dispatchNamespace: string;
435
+ dispatcher?: never;
436
+ });
437
+ type DeployWorkerHookInput = {
438
+ deploymentId: string;
439
+ appId: string;
440
+ expectedLiveEtag: string | null;
441
+ scriptName: string;
442
+ entrypoint: string;
443
+ moduleContent: string;
444
+ compatibilityDate: string;
445
+ compatibilityFlags: string[];
446
+ };
447
+ type CloudflareHooksMap = {
448
+ deployWorker: HookFn<DeployWorkerHookInput>;
449
+ };
450
+ declare const cloudflareFragmentDefinition: _fragno_dev_core0.FragmentDefinition<CloudflareFragmentConfig, _fragno_dev_db0.FragnoPublicConfigWithDatabase, {
451
+ cloudflare: cloudflare.Cloudflare;
452
+ dispatchNamespace: string;
453
+ } & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
454
+ app: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>;
455
+ deployment: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"appId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"format", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"entrypoint", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceCode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceByteLength", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"compatibilityDate", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"compatibilityFlags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"attemptCount", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"startedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"completedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"errorCode", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"errorMessage", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareModifiedOn", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareResponse", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"app", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_deployment_app_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["appId", "createdAt"]>> & Record<"idx_deployment_status_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status", "createdAt"]>>>;
456
+ }>>, {
457
+ upsertApp: (appId: string) => _fragno_dev_db0.TxResult<{
458
+ id: string;
459
+ scriptName: string;
460
+ latestDeployment: {
461
+ id: string;
462
+ appId: string;
463
+ scriptName: string;
464
+ status: "queued" | "deploying" | "succeeded" | "failed";
465
+ format: "esmodule";
466
+ entrypoint: string;
467
+ sourceByteLength: number;
468
+ compatibilityDate: string;
469
+ compatibilityFlags: string[];
470
+ attemptCount: number;
471
+ queuedAt: string;
472
+ startedAt: string | null;
473
+ completedAt: string | null;
474
+ errorCode: string | null;
475
+ errorMessage: string | null;
476
+ cloudflare: {
477
+ etag: string | null;
478
+ modifiedOn: string | null;
479
+ } | null;
480
+ createdAt: string;
481
+ updatedAt: string;
482
+ } | null;
483
+ createdAt: string;
484
+ updatedAt: string;
485
+ }, [{
486
+ id: _fragno_dev_db_schema0.FragnoId;
487
+ scriptName: string;
488
+ liveDeploymentId: string | null;
489
+ liveCloudflareEtag: string | null;
490
+ firstDeploymentLeaseId: string | null;
491
+ createdAt: Date;
492
+ updatedAt: Date;
493
+ } | null]>;
494
+ queueDeployment: (appId: string, request: CloudflareDeployRequest) => _fragno_dev_db0.TxResult<{
495
+ id: string;
496
+ appId: string;
497
+ scriptName: string;
498
+ status: "queued";
499
+ format: "esmodule";
500
+ entrypoint: string;
501
+ sourceByteLength: number;
502
+ compatibilityDate: string;
503
+ compatibilityFlags: string[];
504
+ attemptCount: number;
505
+ queuedAt: string;
506
+ startedAt: null;
507
+ completedAt: null;
508
+ errorCode: null;
509
+ errorMessage: null;
510
+ cloudflare: null;
511
+ createdAt: string;
512
+ updatedAt: string;
513
+ }, [{
514
+ id: _fragno_dev_db_schema0.FragnoId;
515
+ scriptName: string;
516
+ liveDeploymentId: string | null;
517
+ liveCloudflareEtag: string | null;
518
+ firstDeploymentLeaseId: string | null;
519
+ createdAt: Date;
520
+ updatedAt: Date;
521
+ } | null]>;
522
+ getDeployment: (deploymentId: string) => _fragno_dev_db0.TxResult<{
523
+ id: string;
524
+ appId: string;
525
+ scriptName: string;
526
+ status: "queued" | "deploying" | "succeeded" | "failed";
527
+ format: "esmodule";
528
+ entrypoint: string;
529
+ sourceByteLength: number;
530
+ compatibilityDate: string;
531
+ compatibilityFlags: string[];
532
+ attemptCount: number;
533
+ queuedAt: string;
534
+ startedAt: string | null;
535
+ completedAt: string | null;
536
+ errorCode: string | null;
537
+ errorMessage: string | null;
538
+ cloudflare: {
539
+ etag: string | null;
540
+ modifiedOn: string | null;
541
+ } | null;
542
+ createdAt: string;
543
+ updatedAt: string;
544
+ sourceCode: string;
545
+ } | null, {
546
+ id: string;
547
+ appId: string;
548
+ scriptName: string;
549
+ status: "queued" | "deploying" | "succeeded" | "failed";
550
+ format: "esmodule";
551
+ entrypoint: string;
552
+ sourceByteLength: number;
553
+ compatibilityDate: string;
554
+ compatibilityFlags: string[];
555
+ attemptCount: number;
556
+ queuedAt: string;
557
+ startedAt: string | null;
558
+ completedAt: string | null;
559
+ errorCode: string | null;
560
+ errorMessage: string | null;
561
+ cloudflare: {
562
+ etag: string | null;
563
+ modifiedOn: string | null;
564
+ } | null;
565
+ createdAt: string;
566
+ updatedAt: string;
567
+ sourceCode: string;
568
+ } | null>;
569
+ getAppState: (appId: string) => _fragno_dev_db0.TxResult<{
570
+ liveDeploymentId: string | null;
571
+ liveCloudflareEtag: string | null;
572
+ id: string;
573
+ scriptName: string;
574
+ latestDeployment: {
575
+ id: string;
576
+ appId: string;
577
+ scriptName: string;
578
+ status: "queued" | "deploying" | "succeeded" | "failed";
579
+ format: "esmodule";
580
+ entrypoint: string;
581
+ sourceByteLength: number;
582
+ compatibilityDate: string;
583
+ compatibilityFlags: string[];
584
+ attemptCount: number;
585
+ queuedAt: string;
586
+ startedAt: string | null;
587
+ completedAt: string | null;
588
+ errorCode: string | null;
589
+ errorMessage: string | null;
590
+ cloudflare: {
591
+ etag: string | null;
592
+ modifiedOn: string | null;
593
+ } | null;
594
+ createdAt: string;
595
+ updatedAt: string;
596
+ } | null;
597
+ createdAt: string;
598
+ updatedAt: string;
599
+ } | null, {
600
+ liveDeploymentId: string | null;
601
+ liveCloudflareEtag: string | null;
602
+ id: string;
603
+ scriptName: string;
604
+ latestDeployment: {
605
+ id: string;
606
+ appId: string;
607
+ scriptName: string;
608
+ status: "queued" | "deploying" | "succeeded" | "failed";
609
+ format: "esmodule";
610
+ entrypoint: string;
611
+ sourceByteLength: number;
612
+ compatibilityDate: string;
613
+ compatibilityFlags: string[];
614
+ attemptCount: number;
615
+ queuedAt: string;
616
+ startedAt: string | null;
617
+ completedAt: string | null;
618
+ errorCode: string | null;
619
+ errorMessage: string | null;
620
+ cloudflare: {
621
+ etag: string | null;
622
+ modifiedOn: string | null;
623
+ } | null;
624
+ createdAt: string;
625
+ updatedAt: string;
626
+ } | null;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ } | null>;
630
+ listApps: () => _fragno_dev_db0.TxResult<{
631
+ id: string;
632
+ scriptName: string;
633
+ latestDeployment: {
634
+ id: string;
635
+ appId: string;
636
+ scriptName: string;
637
+ status: "queued" | "deploying" | "succeeded" | "failed";
638
+ format: "esmodule";
639
+ entrypoint: string;
640
+ sourceByteLength: number;
641
+ compatibilityDate: string;
642
+ compatibilityFlags: string[];
643
+ attemptCount: number;
644
+ queuedAt: string;
645
+ startedAt: string | null;
646
+ completedAt: string | null;
647
+ errorCode: string | null;
648
+ errorMessage: string | null;
649
+ cloudflare: {
650
+ etag: string | null;
651
+ modifiedOn: string | null;
652
+ } | null;
653
+ createdAt: string;
654
+ updatedAt: string;
655
+ } | null;
656
+ createdAt: string;
657
+ updatedAt: string;
658
+ }[], {
659
+ id: string;
660
+ scriptName: string;
661
+ latestDeployment: {
662
+ id: string;
663
+ appId: string;
664
+ scriptName: string;
665
+ status: "queued" | "deploying" | "succeeded" | "failed";
666
+ format: "esmodule";
667
+ entrypoint: string;
668
+ sourceByteLength: number;
669
+ compatibilityDate: string;
670
+ compatibilityFlags: string[];
671
+ attemptCount: number;
672
+ queuedAt: string;
673
+ startedAt: string | null;
674
+ completedAt: string | null;
675
+ errorCode: string | null;
676
+ errorMessage: string | null;
677
+ cloudflare: {
678
+ etag: string | null;
679
+ modifiedOn: string | null;
680
+ } | null;
681
+ createdAt: string;
682
+ updatedAt: string;
683
+ } | null;
684
+ createdAt: string;
685
+ updatedAt: string;
686
+ }[]>;
687
+ listAppDeployments: (appId: string) => _fragno_dev_db0.TxResult<{
688
+ id: string;
689
+ appId: string;
690
+ scriptName: string;
691
+ status: "queued" | "deploying" | "succeeded" | "failed";
692
+ format: "esmodule";
693
+ entrypoint: string;
694
+ sourceByteLength: number;
695
+ compatibilityDate: string;
696
+ compatibilityFlags: string[];
697
+ attemptCount: number;
698
+ queuedAt: string;
699
+ startedAt: string | null;
700
+ completedAt: string | null;
701
+ errorCode: string | null;
702
+ errorMessage: string | null;
703
+ cloudflare: {
704
+ etag: string | null;
705
+ modifiedOn: string | null;
706
+ } | null;
707
+ createdAt: string;
708
+ updatedAt: string;
709
+ }[] | null, {
710
+ id: string;
711
+ appId: string;
712
+ scriptName: string;
713
+ status: "queued" | "deploying" | "succeeded" | "failed";
714
+ format: "esmodule";
715
+ entrypoint: string;
716
+ sourceByteLength: number;
717
+ compatibilityDate: string;
718
+ compatibilityFlags: string[];
719
+ attemptCount: number;
720
+ queuedAt: string;
721
+ startedAt: string | null;
722
+ completedAt: string | null;
723
+ errorCode: string | null;
724
+ errorMessage: string | null;
725
+ cloudflare: {
726
+ etag: string | null;
727
+ modifiedOn: string | null;
728
+ } | null;
729
+ createdAt: string;
730
+ updatedAt: string;
731
+ }[] | null>;
732
+ }, {
733
+ cloudflare: {
734
+ getClient: () => cloudflare.Cloudflare;
735
+ };
736
+ }, {}, {}, _fragno_dev_db0.DatabaseServiceContext<CloudflareHooksMap>, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, []>;
737
+ //#endregion
738
+ //#region src/routes.d.ts
739
+ declare const cloudflareRoutesFactory: _fragno_dev_core0.RouteFactory<CloudflareFragmentConfig, {
740
+ cloudflare: cloudflare.Cloudflare;
741
+ dispatchNamespace: string;
742
+ } & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
743
+ app: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>;
744
+ deployment: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"appId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"format", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"entrypoint", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceCode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceByteLength", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"compatibilityDate", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"compatibilityFlags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"attemptCount", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"startedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"completedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"errorCode", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"errorMessage", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareModifiedOn", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareResponse", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"app", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_deployment_app_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["appId", "createdAt"]>> & Record<"idx_deployment_status_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status", "createdAt"]>>>;
745
+ }>>, _fragno_dev_core0.BoundServices<{
746
+ upsertApp: (appId: string) => _fragno_dev_db0.TxResult<{
747
+ id: string;
748
+ scriptName: string;
749
+ latestDeployment: {
750
+ id: string;
751
+ appId: string;
752
+ scriptName: string;
753
+ status: "queued" | "deploying" | "succeeded" | "failed";
754
+ format: "esmodule";
755
+ entrypoint: string;
756
+ sourceByteLength: number;
757
+ compatibilityDate: string;
758
+ compatibilityFlags: string[];
759
+ attemptCount: number;
760
+ queuedAt: string;
761
+ startedAt: string | null;
762
+ completedAt: string | null;
763
+ errorCode: string | null;
764
+ errorMessage: string | null;
765
+ cloudflare: {
766
+ etag: string | null;
767
+ modifiedOn: string | null;
768
+ } | null;
769
+ createdAt: string;
770
+ updatedAt: string;
771
+ } | null;
772
+ createdAt: string;
773
+ updatedAt: string;
774
+ }, [{
775
+ id: _fragno_dev_db_schema0.FragnoId;
776
+ scriptName: string;
777
+ liveDeploymentId: string | null;
778
+ liveCloudflareEtag: string | null;
779
+ firstDeploymentLeaseId: string | null;
780
+ createdAt: Date;
781
+ updatedAt: Date;
782
+ } | null]>;
783
+ queueDeployment: (appId: string, request: CloudflareDeployRequest) => _fragno_dev_db0.TxResult<{
784
+ id: string;
785
+ appId: string;
786
+ scriptName: string;
787
+ status: "queued";
788
+ format: "esmodule";
789
+ entrypoint: string;
790
+ sourceByteLength: number;
791
+ compatibilityDate: string;
792
+ compatibilityFlags: string[];
793
+ attemptCount: number;
794
+ queuedAt: string;
795
+ startedAt: null;
796
+ completedAt: null;
797
+ errorCode: null;
798
+ errorMessage: null;
799
+ cloudflare: null;
800
+ createdAt: string;
801
+ updatedAt: string;
802
+ }, [{
803
+ id: _fragno_dev_db_schema0.FragnoId;
804
+ scriptName: string;
805
+ liveDeploymentId: string | null;
806
+ liveCloudflareEtag: string | null;
807
+ firstDeploymentLeaseId: string | null;
808
+ createdAt: Date;
809
+ updatedAt: Date;
810
+ } | null]>;
811
+ getDeployment: (deploymentId: string) => _fragno_dev_db0.TxResult<{
812
+ id: string;
813
+ appId: string;
814
+ scriptName: string;
815
+ status: "queued" | "deploying" | "succeeded" | "failed";
816
+ format: "esmodule";
817
+ entrypoint: string;
818
+ sourceByteLength: number;
819
+ compatibilityDate: string;
820
+ compatibilityFlags: string[];
821
+ attemptCount: number;
822
+ queuedAt: string;
823
+ startedAt: string | null;
824
+ completedAt: string | null;
825
+ errorCode: string | null;
826
+ errorMessage: string | null;
827
+ cloudflare: {
828
+ etag: string | null;
829
+ modifiedOn: string | null;
830
+ } | null;
831
+ createdAt: string;
832
+ updatedAt: string;
833
+ sourceCode: string;
834
+ } | null, {
835
+ id: string;
836
+ appId: string;
837
+ scriptName: string;
838
+ status: "queued" | "deploying" | "succeeded" | "failed";
839
+ format: "esmodule";
840
+ entrypoint: string;
841
+ sourceByteLength: number;
842
+ compatibilityDate: string;
843
+ compatibilityFlags: string[];
844
+ attemptCount: number;
845
+ queuedAt: string;
846
+ startedAt: string | null;
847
+ completedAt: string | null;
848
+ errorCode: string | null;
849
+ errorMessage: string | null;
850
+ cloudflare: {
851
+ etag: string | null;
852
+ modifiedOn: string | null;
853
+ } | null;
854
+ createdAt: string;
855
+ updatedAt: string;
856
+ sourceCode: string;
857
+ } | null>;
858
+ getAppState: (appId: string) => _fragno_dev_db0.TxResult<{
859
+ liveDeploymentId: string | null;
860
+ liveCloudflareEtag: string | null;
861
+ id: string;
862
+ scriptName: string;
863
+ latestDeployment: {
864
+ id: string;
865
+ appId: string;
866
+ scriptName: string;
867
+ status: "queued" | "deploying" | "succeeded" | "failed";
868
+ format: "esmodule";
869
+ entrypoint: string;
870
+ sourceByteLength: number;
871
+ compatibilityDate: string;
872
+ compatibilityFlags: string[];
873
+ attemptCount: number;
874
+ queuedAt: string;
875
+ startedAt: string | null;
876
+ completedAt: string | null;
877
+ errorCode: string | null;
878
+ errorMessage: string | null;
879
+ cloudflare: {
880
+ etag: string | null;
881
+ modifiedOn: string | null;
882
+ } | null;
883
+ createdAt: string;
884
+ updatedAt: string;
885
+ } | null;
886
+ createdAt: string;
887
+ updatedAt: string;
888
+ } | null, {
889
+ liveDeploymentId: string | null;
890
+ liveCloudflareEtag: string | null;
891
+ id: string;
892
+ scriptName: string;
893
+ latestDeployment: {
894
+ id: string;
895
+ appId: string;
896
+ scriptName: string;
897
+ status: "queued" | "deploying" | "succeeded" | "failed";
898
+ format: "esmodule";
899
+ entrypoint: string;
900
+ sourceByteLength: number;
901
+ compatibilityDate: string;
902
+ compatibilityFlags: string[];
903
+ attemptCount: number;
904
+ queuedAt: string;
905
+ startedAt: string | null;
906
+ completedAt: string | null;
907
+ errorCode: string | null;
908
+ errorMessage: string | null;
909
+ cloudflare: {
910
+ etag: string | null;
911
+ modifiedOn: string | null;
912
+ } | null;
913
+ createdAt: string;
914
+ updatedAt: string;
915
+ } | null;
916
+ createdAt: string;
917
+ updatedAt: string;
918
+ } | null>;
919
+ listApps: () => _fragno_dev_db0.TxResult<{
920
+ id: string;
921
+ scriptName: string;
922
+ latestDeployment: {
923
+ id: string;
924
+ appId: string;
925
+ scriptName: string;
926
+ status: "queued" | "deploying" | "succeeded" | "failed";
927
+ format: "esmodule";
928
+ entrypoint: string;
929
+ sourceByteLength: number;
930
+ compatibilityDate: string;
931
+ compatibilityFlags: string[];
932
+ attemptCount: number;
933
+ queuedAt: string;
934
+ startedAt: string | null;
935
+ completedAt: string | null;
936
+ errorCode: string | null;
937
+ errorMessage: string | null;
938
+ cloudflare: {
939
+ etag: string | null;
940
+ modifiedOn: string | null;
941
+ } | null;
942
+ createdAt: string;
943
+ updatedAt: string;
944
+ } | null;
945
+ createdAt: string;
946
+ updatedAt: string;
947
+ }[], {
948
+ id: string;
949
+ scriptName: string;
950
+ latestDeployment: {
951
+ id: string;
952
+ appId: string;
953
+ scriptName: string;
954
+ status: "queued" | "deploying" | "succeeded" | "failed";
955
+ format: "esmodule";
956
+ entrypoint: string;
957
+ sourceByteLength: number;
958
+ compatibilityDate: string;
959
+ compatibilityFlags: string[];
960
+ attemptCount: number;
961
+ queuedAt: string;
962
+ startedAt: string | null;
963
+ completedAt: string | null;
964
+ errorCode: string | null;
965
+ errorMessage: string | null;
966
+ cloudflare: {
967
+ etag: string | null;
968
+ modifiedOn: string | null;
969
+ } | null;
970
+ createdAt: string;
971
+ updatedAt: string;
972
+ } | null;
973
+ createdAt: string;
974
+ updatedAt: string;
975
+ }[]>;
976
+ listAppDeployments: (appId: string) => _fragno_dev_db0.TxResult<{
977
+ id: string;
978
+ appId: string;
979
+ scriptName: string;
980
+ status: "queued" | "deploying" | "succeeded" | "failed";
981
+ format: "esmodule";
982
+ entrypoint: string;
983
+ sourceByteLength: number;
984
+ compatibilityDate: string;
985
+ compatibilityFlags: string[];
986
+ attemptCount: number;
987
+ queuedAt: string;
988
+ startedAt: string | null;
989
+ completedAt: string | null;
990
+ errorCode: string | null;
991
+ errorMessage: string | null;
992
+ cloudflare: {
993
+ etag: string | null;
994
+ modifiedOn: string | null;
995
+ } | null;
996
+ createdAt: string;
997
+ updatedAt: string;
998
+ }[] | null, {
999
+ id: string;
1000
+ appId: string;
1001
+ scriptName: string;
1002
+ status: "queued" | "deploying" | "succeeded" | "failed";
1003
+ format: "esmodule";
1004
+ entrypoint: string;
1005
+ sourceByteLength: number;
1006
+ compatibilityDate: string;
1007
+ compatibilityFlags: string[];
1008
+ attemptCount: number;
1009
+ queuedAt: string;
1010
+ startedAt: string | null;
1011
+ completedAt: string | null;
1012
+ errorCode: string | null;
1013
+ errorMessage: string | null;
1014
+ cloudflare: {
1015
+ etag: string | null;
1016
+ modifiedOn: string | null;
1017
+ } | null;
1018
+ createdAt: string;
1019
+ updatedAt: string;
1020
+ }[] | null>;
1021
+ } & {
1022
+ cloudflare: {
1023
+ getClient: () => cloudflare.Cloudflare;
1024
+ };
1025
+ }>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"GET", "/apps", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1026
+ apps: zod.ZodArray<zod.ZodObject<{
1027
+ id: zod.ZodString;
1028
+ scriptName: zod.ZodString;
1029
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1030
+ id: zod.ZodString;
1031
+ appId: zod.ZodString;
1032
+ scriptName: zod.ZodString;
1033
+ status: zod.ZodEnum<{
1034
+ queued: "queued";
1035
+ deploying: "deploying";
1036
+ succeeded: "succeeded";
1037
+ failed: "failed";
1038
+ }>;
1039
+ format: zod.ZodLiteral<"esmodule">;
1040
+ entrypoint: zod.ZodString;
1041
+ sourceByteLength: zod.ZodNumber;
1042
+ compatibilityDate: zod.ZodString;
1043
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1044
+ attemptCount: zod.ZodNumber;
1045
+ queuedAt: zod.ZodString;
1046
+ startedAt: zod.ZodNullable<zod.ZodString>;
1047
+ completedAt: zod.ZodNullable<zod.ZodString>;
1048
+ errorCode: zod.ZodNullable<zod.ZodString>;
1049
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1050
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1051
+ etag: zod.ZodNullable<zod.ZodString>;
1052
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1053
+ }, zod_v4_core0.$strip>>;
1054
+ createdAt: zod.ZodString;
1055
+ updatedAt: zod.ZodString;
1056
+ }, zod_v4_core0.$strip>>;
1057
+ createdAt: zod.ZodString;
1058
+ updatedAt: zod.ZodString;
1059
+ }, zod_v4_core0.$strip>>;
1060
+ }, zod_v4_core0.$strip>, string, string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/apps/:appId/deployments", zod.ZodObject<{
1061
+ script: zod.ZodObject<{
1062
+ type: zod.ZodDefault<zod.ZodEnum<{
1063
+ esmodule: "esmodule";
1064
+ }>>;
1065
+ entrypoint: zod.ZodDefault<zod.ZodString>;
1066
+ content: zod.ZodString;
1067
+ }, zod_v4_core0.$strip>;
1068
+ compatibilityDate: zod.ZodOptional<zod.ZodString>;
1069
+ compatibilityFlags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1070
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1071
+ id: zod.ZodString;
1072
+ appId: zod.ZodString;
1073
+ scriptName: zod.ZodString;
1074
+ status: zod.ZodEnum<{
1075
+ queued: "queued";
1076
+ deploying: "deploying";
1077
+ succeeded: "succeeded";
1078
+ failed: "failed";
1079
+ }>;
1080
+ format: zod.ZodLiteral<"esmodule">;
1081
+ entrypoint: zod.ZodString;
1082
+ sourceByteLength: zod.ZodNumber;
1083
+ compatibilityDate: zod.ZodString;
1084
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1085
+ attemptCount: zod.ZodNumber;
1086
+ queuedAt: zod.ZodString;
1087
+ startedAt: zod.ZodNullable<zod.ZodString>;
1088
+ completedAt: zod.ZodNullable<zod.ZodString>;
1089
+ errorCode: zod.ZodNullable<zod.ZodString>;
1090
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1091
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1092
+ etag: zod.ZodNullable<zod.ZodString>;
1093
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1094
+ }, zod_v4_core0.$strip>>;
1095
+ createdAt: zod.ZodString;
1096
+ updatedAt: zod.ZodString;
1097
+ }, zod_v4_core0.$strip>, "INVALID_DEPLOY_INPUT" | "UNSUPPORTED_DEPLOY_REQUEST", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/apps/:appId/deployments", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1098
+ deployments: zod.ZodArray<zod.ZodObject<{
1099
+ id: zod.ZodString;
1100
+ appId: zod.ZodString;
1101
+ scriptName: zod.ZodString;
1102
+ status: zod.ZodEnum<{
1103
+ queued: "queued";
1104
+ deploying: "deploying";
1105
+ succeeded: "succeeded";
1106
+ failed: "failed";
1107
+ }>;
1108
+ format: zod.ZodLiteral<"esmodule">;
1109
+ entrypoint: zod.ZodString;
1110
+ sourceByteLength: zod.ZodNumber;
1111
+ compatibilityDate: zod.ZodString;
1112
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1113
+ attemptCount: zod.ZodNumber;
1114
+ queuedAt: zod.ZodString;
1115
+ startedAt: zod.ZodNullable<zod.ZodString>;
1116
+ completedAt: zod.ZodNullable<zod.ZodString>;
1117
+ errorCode: zod.ZodNullable<zod.ZodString>;
1118
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1119
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1120
+ etag: zod.ZodNullable<zod.ZodString>;
1121
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1122
+ }, zod_v4_core0.$strip>>;
1123
+ createdAt: zod.ZodString;
1124
+ updatedAt: zod.ZodString;
1125
+ }, zod_v4_core0.$strip>>;
1126
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/deployments/:deploymentId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1127
+ id: zod.ZodString;
1128
+ appId: zod.ZodString;
1129
+ scriptName: zod.ZodString;
1130
+ status: zod.ZodEnum<{
1131
+ queued: "queued";
1132
+ deploying: "deploying";
1133
+ succeeded: "succeeded";
1134
+ failed: "failed";
1135
+ }>;
1136
+ format: zod.ZodLiteral<"esmodule">;
1137
+ entrypoint: zod.ZodString;
1138
+ sourceByteLength: zod.ZodNumber;
1139
+ compatibilityDate: zod.ZodString;
1140
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1141
+ attemptCount: zod.ZodNumber;
1142
+ queuedAt: zod.ZodString;
1143
+ startedAt: zod.ZodNullable<zod.ZodString>;
1144
+ completedAt: zod.ZodNullable<zod.ZodString>;
1145
+ errorCode: zod.ZodNullable<zod.ZodString>;
1146
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1147
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1148
+ etag: zod.ZodNullable<zod.ZodString>;
1149
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1150
+ }, zod_v4_core0.$strip>>;
1151
+ createdAt: zod.ZodString;
1152
+ updatedAt: zod.ZodString;
1153
+ sourceCode: zod.ZodString;
1154
+ }, zod_v4_core0.$strip>, "DEPLOYMENT_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/apps/:appId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1155
+ id: zod.ZodString;
1156
+ scriptName: zod.ZodString;
1157
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1158
+ id: zod.ZodString;
1159
+ appId: zod.ZodString;
1160
+ scriptName: zod.ZodString;
1161
+ status: zod.ZodEnum<{
1162
+ queued: "queued";
1163
+ deploying: "deploying";
1164
+ succeeded: "succeeded";
1165
+ failed: "failed";
1166
+ }>;
1167
+ format: zod.ZodLiteral<"esmodule">;
1168
+ entrypoint: zod.ZodString;
1169
+ sourceByteLength: zod.ZodNumber;
1170
+ compatibilityDate: zod.ZodString;
1171
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1172
+ attemptCount: zod.ZodNumber;
1173
+ queuedAt: zod.ZodString;
1174
+ startedAt: zod.ZodNullable<zod.ZodString>;
1175
+ completedAt: zod.ZodNullable<zod.ZodString>;
1176
+ errorCode: zod.ZodNullable<zod.ZodString>;
1177
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1178
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1179
+ etag: zod.ZodNullable<zod.ZodString>;
1180
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1181
+ }, zod_v4_core0.$strip>>;
1182
+ createdAt: zod.ZodString;
1183
+ updatedAt: zod.ZodString;
1184
+ }, zod_v4_core0.$strip>>;
1185
+ createdAt: zod.ZodString;
1186
+ updatedAt: zod.ZodString;
1187
+ liveDeployment: zod.ZodNullable<zod.ZodObject<{
1188
+ id: zod.ZodString;
1189
+ appId: zod.ZodString;
1190
+ scriptName: zod.ZodString;
1191
+ status: zod.ZodEnum<{
1192
+ queued: "queued";
1193
+ deploying: "deploying";
1194
+ succeeded: "succeeded";
1195
+ failed: "failed";
1196
+ }>;
1197
+ format: zod.ZodLiteral<"esmodule">;
1198
+ entrypoint: zod.ZodString;
1199
+ sourceByteLength: zod.ZodNumber;
1200
+ compatibilityDate: zod.ZodString;
1201
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1202
+ attemptCount: zod.ZodNumber;
1203
+ queuedAt: zod.ZodString;
1204
+ startedAt: zod.ZodNullable<zod.ZodString>;
1205
+ completedAt: zod.ZodNullable<zod.ZodString>;
1206
+ errorCode: zod.ZodNullable<zod.ZodString>;
1207
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1208
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1209
+ etag: zod.ZodNullable<zod.ZodString>;
1210
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1211
+ }, zod_v4_core0.$strip>>;
1212
+ createdAt: zod.ZodString;
1213
+ updatedAt: zod.ZodString;
1214
+ }, zod_v4_core0.$strip>>;
1215
+ liveDeploymentError: zod.ZodNullable<zod.ZodString>;
1216
+ deployments: zod.ZodArray<zod.ZodObject<{
1217
+ id: zod.ZodString;
1218
+ appId: zod.ZodString;
1219
+ scriptName: zod.ZodString;
1220
+ status: zod.ZodEnum<{
1221
+ queued: "queued";
1222
+ deploying: "deploying";
1223
+ succeeded: "succeeded";
1224
+ failed: "failed";
1225
+ }>;
1226
+ format: zod.ZodLiteral<"esmodule">;
1227
+ entrypoint: zod.ZodString;
1228
+ sourceByteLength: zod.ZodNumber;
1229
+ compatibilityDate: zod.ZodString;
1230
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1231
+ attemptCount: zod.ZodNumber;
1232
+ queuedAt: zod.ZodString;
1233
+ startedAt: zod.ZodNullable<zod.ZodString>;
1234
+ completedAt: zod.ZodNullable<zod.ZodString>;
1235
+ errorCode: zod.ZodNullable<zod.ZodString>;
1236
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1237
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1238
+ etag: zod.ZodNullable<zod.ZodString>;
1239
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1240
+ }, zod_v4_core0.$strip>>;
1241
+ createdAt: zod.ZodString;
1242
+ updatedAt: zod.ZodString;
1243
+ }, zod_v4_core0.$strip>>;
1244
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>]>;
1245
+ //#endregion
1246
+ //#region src/schema.d.ts
1247
+ declare const cloudflareSchema: _fragno_dev_db_schema0.Schema<{
1248
+ app: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>;
1249
+ deployment: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"appId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"format", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"entrypoint", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceCode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceByteLength", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"compatibilityDate", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"compatibilityFlags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"attemptCount", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"startedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"completedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"errorCode", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"errorMessage", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareModifiedOn", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareResponse", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"app", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_deployment_app_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["appId", "createdAt"]>> & Record<"idx_deployment_status_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status", "createdAt"]>>>;
1250
+ }>;
1251
+ //#endregion
1252
+ //#region src/deployment-tag.d.ts
1253
+ declare const DEFAULT_DEPLOYMENT_TAG_PREFIX = "fragno";
1254
+ declare const sanitizeCloudflareTag: (value: string) => string;
1255
+ declare const normalizeCloudflareDeploymentTagPrefix: (prefix?: string) => string;
1256
+ declare const buildCloudflareAppTag: (appId: string, prefix?: string) => string;
1257
+ declare const buildCloudflareDeploymentTag: (deploymentId: string, prefix?: string) => string;
1258
+ declare const getCloudflareAppIdFromTag: (tag: string, prefix?: string) => string | null;
1259
+ declare const getCloudflareDeploymentIdFromTag: (tag: string, prefix?: string) => string | null;
1260
+ declare const findCloudflareAppTag: (tags: string[], prefix?: string) => string | null;
1261
+ declare const findCloudflareDeploymentTag: (tags: string[], prefix?: string) => string | null;
1262
+ //#endregion
1263
+ //#region src/index.d.ts
1264
+ declare function createCloudflareFragment(config: CloudflareFragmentConfig, options: FragnoPublicConfigWithDatabase): _fragno_dev_core0.FragnoInstantiatedFragment<readonly [_fragno_dev_core0.FragnoRouteConfig<"GET", "/apps", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1265
+ apps: zod.ZodArray<zod.ZodObject<{
1266
+ id: zod.ZodString;
1267
+ scriptName: zod.ZodString;
1268
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1269
+ id: zod.ZodString;
1270
+ appId: zod.ZodString;
1271
+ scriptName: zod.ZodString;
1272
+ status: zod.ZodEnum<{
1273
+ queued: "queued";
1274
+ deploying: "deploying";
1275
+ succeeded: "succeeded";
1276
+ failed: "failed";
1277
+ }>;
1278
+ format: zod.ZodLiteral<"esmodule">;
1279
+ entrypoint: zod.ZodString;
1280
+ sourceByteLength: zod.ZodNumber;
1281
+ compatibilityDate: zod.ZodString;
1282
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1283
+ attemptCount: zod.ZodNumber;
1284
+ queuedAt: zod.ZodString;
1285
+ startedAt: zod.ZodNullable<zod.ZodString>;
1286
+ completedAt: zod.ZodNullable<zod.ZodString>;
1287
+ errorCode: zod.ZodNullable<zod.ZodString>;
1288
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1289
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1290
+ etag: zod.ZodNullable<zod.ZodString>;
1291
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1292
+ }, zod_v4_core0.$strip>>;
1293
+ createdAt: zod.ZodString;
1294
+ updatedAt: zod.ZodString;
1295
+ }, zod_v4_core0.$strip>>;
1296
+ createdAt: zod.ZodString;
1297
+ updatedAt: zod.ZodString;
1298
+ }, zod_v4_core0.$strip>>;
1299
+ }, zod_v4_core0.$strip>, string, string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/apps/:appId/deployments", zod.ZodObject<{
1300
+ script: zod.ZodObject<{
1301
+ type: zod.ZodDefault<zod.ZodEnum<{
1302
+ esmodule: "esmodule";
1303
+ }>>;
1304
+ entrypoint: zod.ZodDefault<zod.ZodString>;
1305
+ content: zod.ZodString;
1306
+ }, zod_v4_core0.$strip>;
1307
+ compatibilityDate: zod.ZodOptional<zod.ZodString>;
1308
+ compatibilityFlags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1309
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
1310
+ id: zod.ZodString;
1311
+ appId: zod.ZodString;
1312
+ scriptName: zod.ZodString;
1313
+ status: zod.ZodEnum<{
1314
+ queued: "queued";
1315
+ deploying: "deploying";
1316
+ succeeded: "succeeded";
1317
+ failed: "failed";
1318
+ }>;
1319
+ format: zod.ZodLiteral<"esmodule">;
1320
+ entrypoint: zod.ZodString;
1321
+ sourceByteLength: zod.ZodNumber;
1322
+ compatibilityDate: zod.ZodString;
1323
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1324
+ attemptCount: zod.ZodNumber;
1325
+ queuedAt: zod.ZodString;
1326
+ startedAt: zod.ZodNullable<zod.ZodString>;
1327
+ completedAt: zod.ZodNullable<zod.ZodString>;
1328
+ errorCode: zod.ZodNullable<zod.ZodString>;
1329
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1330
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1331
+ etag: zod.ZodNullable<zod.ZodString>;
1332
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1333
+ }, zod_v4_core0.$strip>>;
1334
+ createdAt: zod.ZodString;
1335
+ updatedAt: zod.ZodString;
1336
+ }, zod_v4_core0.$strip>, "INVALID_DEPLOY_INPUT" | "UNSUPPORTED_DEPLOY_REQUEST", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/apps/:appId/deployments", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1337
+ deployments: zod.ZodArray<zod.ZodObject<{
1338
+ id: zod.ZodString;
1339
+ appId: zod.ZodString;
1340
+ scriptName: zod.ZodString;
1341
+ status: zod.ZodEnum<{
1342
+ queued: "queued";
1343
+ deploying: "deploying";
1344
+ succeeded: "succeeded";
1345
+ failed: "failed";
1346
+ }>;
1347
+ format: zod.ZodLiteral<"esmodule">;
1348
+ entrypoint: zod.ZodString;
1349
+ sourceByteLength: zod.ZodNumber;
1350
+ compatibilityDate: zod.ZodString;
1351
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1352
+ attemptCount: zod.ZodNumber;
1353
+ queuedAt: zod.ZodString;
1354
+ startedAt: zod.ZodNullable<zod.ZodString>;
1355
+ completedAt: zod.ZodNullable<zod.ZodString>;
1356
+ errorCode: zod.ZodNullable<zod.ZodString>;
1357
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1358
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1359
+ etag: zod.ZodNullable<zod.ZodString>;
1360
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1361
+ }, zod_v4_core0.$strip>>;
1362
+ createdAt: zod.ZodString;
1363
+ updatedAt: zod.ZodString;
1364
+ }, zod_v4_core0.$strip>>;
1365
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/deployments/:deploymentId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1366
+ id: zod.ZodString;
1367
+ appId: zod.ZodString;
1368
+ scriptName: zod.ZodString;
1369
+ status: zod.ZodEnum<{
1370
+ queued: "queued";
1371
+ deploying: "deploying";
1372
+ succeeded: "succeeded";
1373
+ failed: "failed";
1374
+ }>;
1375
+ format: zod.ZodLiteral<"esmodule">;
1376
+ entrypoint: zod.ZodString;
1377
+ sourceByteLength: zod.ZodNumber;
1378
+ compatibilityDate: zod.ZodString;
1379
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1380
+ attemptCount: zod.ZodNumber;
1381
+ queuedAt: zod.ZodString;
1382
+ startedAt: zod.ZodNullable<zod.ZodString>;
1383
+ completedAt: zod.ZodNullable<zod.ZodString>;
1384
+ errorCode: zod.ZodNullable<zod.ZodString>;
1385
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1386
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1387
+ etag: zod.ZodNullable<zod.ZodString>;
1388
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1389
+ }, zod_v4_core0.$strip>>;
1390
+ createdAt: zod.ZodString;
1391
+ updatedAt: zod.ZodString;
1392
+ sourceCode: zod.ZodString;
1393
+ }, zod_v4_core0.$strip>, "DEPLOYMENT_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/apps/:appId", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1394
+ id: zod.ZodString;
1395
+ scriptName: zod.ZodString;
1396
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1397
+ id: zod.ZodString;
1398
+ appId: zod.ZodString;
1399
+ scriptName: zod.ZodString;
1400
+ status: zod.ZodEnum<{
1401
+ queued: "queued";
1402
+ deploying: "deploying";
1403
+ succeeded: "succeeded";
1404
+ failed: "failed";
1405
+ }>;
1406
+ format: zod.ZodLiteral<"esmodule">;
1407
+ entrypoint: zod.ZodString;
1408
+ sourceByteLength: zod.ZodNumber;
1409
+ compatibilityDate: zod.ZodString;
1410
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1411
+ attemptCount: zod.ZodNumber;
1412
+ queuedAt: zod.ZodString;
1413
+ startedAt: zod.ZodNullable<zod.ZodString>;
1414
+ completedAt: zod.ZodNullable<zod.ZodString>;
1415
+ errorCode: zod.ZodNullable<zod.ZodString>;
1416
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1417
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1418
+ etag: zod.ZodNullable<zod.ZodString>;
1419
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1420
+ }, zod_v4_core0.$strip>>;
1421
+ createdAt: zod.ZodString;
1422
+ updatedAt: zod.ZodString;
1423
+ }, zod_v4_core0.$strip>>;
1424
+ createdAt: zod.ZodString;
1425
+ updatedAt: zod.ZodString;
1426
+ liveDeployment: zod.ZodNullable<zod.ZodObject<{
1427
+ id: zod.ZodString;
1428
+ appId: zod.ZodString;
1429
+ scriptName: zod.ZodString;
1430
+ status: zod.ZodEnum<{
1431
+ queued: "queued";
1432
+ deploying: "deploying";
1433
+ succeeded: "succeeded";
1434
+ failed: "failed";
1435
+ }>;
1436
+ format: zod.ZodLiteral<"esmodule">;
1437
+ entrypoint: zod.ZodString;
1438
+ sourceByteLength: zod.ZodNumber;
1439
+ compatibilityDate: zod.ZodString;
1440
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1441
+ attemptCount: zod.ZodNumber;
1442
+ queuedAt: zod.ZodString;
1443
+ startedAt: zod.ZodNullable<zod.ZodString>;
1444
+ completedAt: zod.ZodNullable<zod.ZodString>;
1445
+ errorCode: zod.ZodNullable<zod.ZodString>;
1446
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1447
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1448
+ etag: zod.ZodNullable<zod.ZodString>;
1449
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1450
+ }, zod_v4_core0.$strip>>;
1451
+ createdAt: zod.ZodString;
1452
+ updatedAt: zod.ZodString;
1453
+ }, zod_v4_core0.$strip>>;
1454
+ liveDeploymentError: zod.ZodNullable<zod.ZodString>;
1455
+ deployments: zod.ZodArray<zod.ZodObject<{
1456
+ id: zod.ZodString;
1457
+ appId: zod.ZodString;
1458
+ scriptName: zod.ZodString;
1459
+ status: zod.ZodEnum<{
1460
+ queued: "queued";
1461
+ deploying: "deploying";
1462
+ succeeded: "succeeded";
1463
+ failed: "failed";
1464
+ }>;
1465
+ format: zod.ZodLiteral<"esmodule">;
1466
+ entrypoint: zod.ZodString;
1467
+ sourceByteLength: zod.ZodNumber;
1468
+ compatibilityDate: zod.ZodString;
1469
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1470
+ attemptCount: zod.ZodNumber;
1471
+ queuedAt: zod.ZodString;
1472
+ startedAt: zod.ZodNullable<zod.ZodString>;
1473
+ completedAt: zod.ZodNullable<zod.ZodString>;
1474
+ errorCode: zod.ZodNullable<zod.ZodString>;
1475
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1476
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1477
+ etag: zod.ZodNullable<zod.ZodString>;
1478
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1479
+ }, zod_v4_core0.$strip>>;
1480
+ createdAt: zod.ZodString;
1481
+ updatedAt: zod.ZodString;
1482
+ }, zod_v4_core0.$strip>>;
1483
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>], {
1484
+ cloudflare: cloudflare.Cloudflare;
1485
+ dispatchNamespace: string;
1486
+ } & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
1487
+ app: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>;
1488
+ deployment: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"appId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"format", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"entrypoint", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceCode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceByteLength", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"compatibilityDate", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"compatibilityFlags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"attemptCount", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"startedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"completedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"errorCode", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"errorMessage", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareModifiedOn", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareResponse", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"app", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_deployment_app_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["appId", "createdAt"]>> & Record<"idx_deployment_status_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status", "createdAt"]>>>;
1489
+ }>>, _fragno_dev_core0.BoundServices<{
1490
+ upsertApp: (appId: string) => _fragno_dev_db0.TxResult<{
1491
+ id: string;
1492
+ scriptName: string;
1493
+ latestDeployment: {
1494
+ id: string;
1495
+ appId: string;
1496
+ scriptName: string;
1497
+ status: "queued" | "deploying" | "succeeded" | "failed";
1498
+ format: "esmodule";
1499
+ entrypoint: string;
1500
+ sourceByteLength: number;
1501
+ compatibilityDate: string;
1502
+ compatibilityFlags: string[];
1503
+ attemptCount: number;
1504
+ queuedAt: string;
1505
+ startedAt: string | null;
1506
+ completedAt: string | null;
1507
+ errorCode: string | null;
1508
+ errorMessage: string | null;
1509
+ cloudflare: {
1510
+ etag: string | null;
1511
+ modifiedOn: string | null;
1512
+ } | null;
1513
+ createdAt: string;
1514
+ updatedAt: string;
1515
+ } | null;
1516
+ createdAt: string;
1517
+ updatedAt: string;
1518
+ }, [{
1519
+ id: _fragno_dev_db_schema0.FragnoId;
1520
+ scriptName: string;
1521
+ liveDeploymentId: string | null;
1522
+ liveCloudflareEtag: string | null;
1523
+ firstDeploymentLeaseId: string | null;
1524
+ createdAt: Date;
1525
+ updatedAt: Date;
1526
+ } | null]>;
1527
+ queueDeployment: (appId: string, request: CloudflareDeployRequest) => _fragno_dev_db0.TxResult<{
1528
+ id: string;
1529
+ appId: string;
1530
+ scriptName: string;
1531
+ status: "queued";
1532
+ format: "esmodule";
1533
+ entrypoint: string;
1534
+ sourceByteLength: number;
1535
+ compatibilityDate: string;
1536
+ compatibilityFlags: string[];
1537
+ attemptCount: number;
1538
+ queuedAt: string;
1539
+ startedAt: null;
1540
+ completedAt: null;
1541
+ errorCode: null;
1542
+ errorMessage: null;
1543
+ cloudflare: null;
1544
+ createdAt: string;
1545
+ updatedAt: string;
1546
+ }, [{
1547
+ id: _fragno_dev_db_schema0.FragnoId;
1548
+ scriptName: string;
1549
+ liveDeploymentId: string | null;
1550
+ liveCloudflareEtag: string | null;
1551
+ firstDeploymentLeaseId: string | null;
1552
+ createdAt: Date;
1553
+ updatedAt: Date;
1554
+ } | null]>;
1555
+ getDeployment: (deploymentId: string) => _fragno_dev_db0.TxResult<{
1556
+ id: string;
1557
+ appId: string;
1558
+ scriptName: string;
1559
+ status: "queued" | "deploying" | "succeeded" | "failed";
1560
+ format: "esmodule";
1561
+ entrypoint: string;
1562
+ sourceByteLength: number;
1563
+ compatibilityDate: string;
1564
+ compatibilityFlags: string[];
1565
+ attemptCount: number;
1566
+ queuedAt: string;
1567
+ startedAt: string | null;
1568
+ completedAt: string | null;
1569
+ errorCode: string | null;
1570
+ errorMessage: string | null;
1571
+ cloudflare: {
1572
+ etag: string | null;
1573
+ modifiedOn: string | null;
1574
+ } | null;
1575
+ createdAt: string;
1576
+ updatedAt: string;
1577
+ sourceCode: string;
1578
+ } | null, {
1579
+ id: string;
1580
+ appId: string;
1581
+ scriptName: string;
1582
+ status: "queued" | "deploying" | "succeeded" | "failed";
1583
+ format: "esmodule";
1584
+ entrypoint: string;
1585
+ sourceByteLength: number;
1586
+ compatibilityDate: string;
1587
+ compatibilityFlags: string[];
1588
+ attemptCount: number;
1589
+ queuedAt: string;
1590
+ startedAt: string | null;
1591
+ completedAt: string | null;
1592
+ errorCode: string | null;
1593
+ errorMessage: string | null;
1594
+ cloudflare: {
1595
+ etag: string | null;
1596
+ modifiedOn: string | null;
1597
+ } | null;
1598
+ createdAt: string;
1599
+ updatedAt: string;
1600
+ sourceCode: string;
1601
+ } | null>;
1602
+ getAppState: (appId: string) => _fragno_dev_db0.TxResult<{
1603
+ liveDeploymentId: string | null;
1604
+ liveCloudflareEtag: string | null;
1605
+ id: string;
1606
+ scriptName: string;
1607
+ latestDeployment: {
1608
+ id: string;
1609
+ appId: string;
1610
+ scriptName: string;
1611
+ status: "queued" | "deploying" | "succeeded" | "failed";
1612
+ format: "esmodule";
1613
+ entrypoint: string;
1614
+ sourceByteLength: number;
1615
+ compatibilityDate: string;
1616
+ compatibilityFlags: string[];
1617
+ attemptCount: number;
1618
+ queuedAt: string;
1619
+ startedAt: string | null;
1620
+ completedAt: string | null;
1621
+ errorCode: string | null;
1622
+ errorMessage: string | null;
1623
+ cloudflare: {
1624
+ etag: string | null;
1625
+ modifiedOn: string | null;
1626
+ } | null;
1627
+ createdAt: string;
1628
+ updatedAt: string;
1629
+ } | null;
1630
+ createdAt: string;
1631
+ updatedAt: string;
1632
+ } | null, {
1633
+ liveDeploymentId: string | null;
1634
+ liveCloudflareEtag: string | null;
1635
+ id: string;
1636
+ scriptName: string;
1637
+ latestDeployment: {
1638
+ id: string;
1639
+ appId: string;
1640
+ scriptName: string;
1641
+ status: "queued" | "deploying" | "succeeded" | "failed";
1642
+ format: "esmodule";
1643
+ entrypoint: string;
1644
+ sourceByteLength: number;
1645
+ compatibilityDate: string;
1646
+ compatibilityFlags: string[];
1647
+ attemptCount: number;
1648
+ queuedAt: string;
1649
+ startedAt: string | null;
1650
+ completedAt: string | null;
1651
+ errorCode: string | null;
1652
+ errorMessage: string | null;
1653
+ cloudflare: {
1654
+ etag: string | null;
1655
+ modifiedOn: string | null;
1656
+ } | null;
1657
+ createdAt: string;
1658
+ updatedAt: string;
1659
+ } | null;
1660
+ createdAt: string;
1661
+ updatedAt: string;
1662
+ } | null>;
1663
+ listApps: () => _fragno_dev_db0.TxResult<{
1664
+ id: string;
1665
+ scriptName: string;
1666
+ latestDeployment: {
1667
+ id: string;
1668
+ appId: string;
1669
+ scriptName: string;
1670
+ status: "queued" | "deploying" | "succeeded" | "failed";
1671
+ format: "esmodule";
1672
+ entrypoint: string;
1673
+ sourceByteLength: number;
1674
+ compatibilityDate: string;
1675
+ compatibilityFlags: string[];
1676
+ attemptCount: number;
1677
+ queuedAt: string;
1678
+ startedAt: string | null;
1679
+ completedAt: string | null;
1680
+ errorCode: string | null;
1681
+ errorMessage: string | null;
1682
+ cloudflare: {
1683
+ etag: string | null;
1684
+ modifiedOn: string | null;
1685
+ } | null;
1686
+ createdAt: string;
1687
+ updatedAt: string;
1688
+ } | null;
1689
+ createdAt: string;
1690
+ updatedAt: string;
1691
+ }[], {
1692
+ id: string;
1693
+ scriptName: string;
1694
+ latestDeployment: {
1695
+ id: string;
1696
+ appId: string;
1697
+ scriptName: string;
1698
+ status: "queued" | "deploying" | "succeeded" | "failed";
1699
+ format: "esmodule";
1700
+ entrypoint: string;
1701
+ sourceByteLength: number;
1702
+ compatibilityDate: string;
1703
+ compatibilityFlags: string[];
1704
+ attemptCount: number;
1705
+ queuedAt: string;
1706
+ startedAt: string | null;
1707
+ completedAt: string | null;
1708
+ errorCode: string | null;
1709
+ errorMessage: string | null;
1710
+ cloudflare: {
1711
+ etag: string | null;
1712
+ modifiedOn: string | null;
1713
+ } | null;
1714
+ createdAt: string;
1715
+ updatedAt: string;
1716
+ } | null;
1717
+ createdAt: string;
1718
+ updatedAt: string;
1719
+ }[]>;
1720
+ listAppDeployments: (appId: string) => _fragno_dev_db0.TxResult<{
1721
+ id: string;
1722
+ appId: string;
1723
+ scriptName: string;
1724
+ status: "queued" | "deploying" | "succeeded" | "failed";
1725
+ format: "esmodule";
1726
+ entrypoint: string;
1727
+ sourceByteLength: number;
1728
+ compatibilityDate: string;
1729
+ compatibilityFlags: string[];
1730
+ attemptCount: number;
1731
+ queuedAt: string;
1732
+ startedAt: string | null;
1733
+ completedAt: string | null;
1734
+ errorCode: string | null;
1735
+ errorMessage: string | null;
1736
+ cloudflare: {
1737
+ etag: string | null;
1738
+ modifiedOn: string | null;
1739
+ } | null;
1740
+ createdAt: string;
1741
+ updatedAt: string;
1742
+ }[] | null, {
1743
+ id: string;
1744
+ appId: string;
1745
+ scriptName: string;
1746
+ status: "queued" | "deploying" | "succeeded" | "failed";
1747
+ format: "esmodule";
1748
+ entrypoint: string;
1749
+ sourceByteLength: number;
1750
+ compatibilityDate: string;
1751
+ compatibilityFlags: string[];
1752
+ attemptCount: number;
1753
+ queuedAt: string;
1754
+ startedAt: string | null;
1755
+ completedAt: string | null;
1756
+ errorCode: string | null;
1757
+ errorMessage: string | null;
1758
+ cloudflare: {
1759
+ etag: string | null;
1760
+ modifiedOn: string | null;
1761
+ } | null;
1762
+ createdAt: string;
1763
+ updatedAt: string;
1764
+ }[] | null>;
1765
+ } & {
1766
+ cloudflare: {
1767
+ getClient: () => cloudflare.Cloudflare;
1768
+ };
1769
+ }>, _fragno_dev_db0.DatabaseServiceContext<CloudflareHooksMap>, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase>;
1770
+ declare function createCloudflareFragmentClients(fragnoConfig?: FragnoPublicClientConfig): {
1771
+ useApps: FragnoClientHookData<"GET", "/apps", zod.ZodObject<{
1772
+ apps: zod.ZodArray<zod.ZodObject<{
1773
+ id: zod.ZodString;
1774
+ scriptName: zod.ZodString;
1775
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1776
+ id: zod.ZodString;
1777
+ appId: zod.ZodString;
1778
+ scriptName: zod.ZodString;
1779
+ status: zod.ZodEnum<{
1780
+ queued: "queued";
1781
+ deploying: "deploying";
1782
+ succeeded: "succeeded";
1783
+ failed: "failed";
1784
+ }>;
1785
+ format: zod.ZodLiteral<"esmodule">;
1786
+ entrypoint: zod.ZodString;
1787
+ sourceByteLength: zod.ZodNumber;
1788
+ compatibilityDate: zod.ZodString;
1789
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1790
+ attemptCount: zod.ZodNumber;
1791
+ queuedAt: zod.ZodString;
1792
+ startedAt: zod.ZodNullable<zod.ZodString>;
1793
+ completedAt: zod.ZodNullable<zod.ZodString>;
1794
+ errorCode: zod.ZodNullable<zod.ZodString>;
1795
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1796
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1797
+ etag: zod.ZodNullable<zod.ZodString>;
1798
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1799
+ }, zod_v4_core0.$strip>>;
1800
+ createdAt: zod.ZodString;
1801
+ updatedAt: zod.ZodString;
1802
+ }, zod_v4_core0.$strip>>;
1803
+ createdAt: zod.ZodString;
1804
+ updatedAt: zod.ZodString;
1805
+ }, zod_v4_core0.$strip>>;
1806
+ }, zod_v4_core0.$strip>, string, string>;
1807
+ useApp: FragnoClientHookData<"GET", "/apps/:appId", zod.ZodObject<{
1808
+ id: zod.ZodString;
1809
+ scriptName: zod.ZodString;
1810
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
1811
+ id: zod.ZodString;
1812
+ appId: zod.ZodString;
1813
+ scriptName: zod.ZodString;
1814
+ status: zod.ZodEnum<{
1815
+ queued: "queued";
1816
+ deploying: "deploying";
1817
+ succeeded: "succeeded";
1818
+ failed: "failed";
1819
+ }>;
1820
+ format: zod.ZodLiteral<"esmodule">;
1821
+ entrypoint: zod.ZodString;
1822
+ sourceByteLength: zod.ZodNumber;
1823
+ compatibilityDate: zod.ZodString;
1824
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1825
+ attemptCount: zod.ZodNumber;
1826
+ queuedAt: zod.ZodString;
1827
+ startedAt: zod.ZodNullable<zod.ZodString>;
1828
+ completedAt: zod.ZodNullable<zod.ZodString>;
1829
+ errorCode: zod.ZodNullable<zod.ZodString>;
1830
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1831
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1832
+ etag: zod.ZodNullable<zod.ZodString>;
1833
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1834
+ }, zod_v4_core0.$strip>>;
1835
+ createdAt: zod.ZodString;
1836
+ updatedAt: zod.ZodString;
1837
+ }, zod_v4_core0.$strip>>;
1838
+ createdAt: zod.ZodString;
1839
+ updatedAt: zod.ZodString;
1840
+ liveDeployment: zod.ZodNullable<zod.ZodObject<{
1841
+ id: zod.ZodString;
1842
+ appId: zod.ZodString;
1843
+ scriptName: zod.ZodString;
1844
+ status: zod.ZodEnum<{
1845
+ queued: "queued";
1846
+ deploying: "deploying";
1847
+ succeeded: "succeeded";
1848
+ failed: "failed";
1849
+ }>;
1850
+ format: zod.ZodLiteral<"esmodule">;
1851
+ entrypoint: zod.ZodString;
1852
+ sourceByteLength: zod.ZodNumber;
1853
+ compatibilityDate: zod.ZodString;
1854
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1855
+ attemptCount: zod.ZodNumber;
1856
+ queuedAt: zod.ZodString;
1857
+ startedAt: zod.ZodNullable<zod.ZodString>;
1858
+ completedAt: zod.ZodNullable<zod.ZodString>;
1859
+ errorCode: zod.ZodNullable<zod.ZodString>;
1860
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1861
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1862
+ etag: zod.ZodNullable<zod.ZodString>;
1863
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1864
+ }, zod_v4_core0.$strip>>;
1865
+ createdAt: zod.ZodString;
1866
+ updatedAt: zod.ZodString;
1867
+ }, zod_v4_core0.$strip>>;
1868
+ liveDeploymentError: zod.ZodNullable<zod.ZodString>;
1869
+ deployments: zod.ZodArray<zod.ZodObject<{
1870
+ id: zod.ZodString;
1871
+ appId: zod.ZodString;
1872
+ scriptName: zod.ZodString;
1873
+ status: zod.ZodEnum<{
1874
+ queued: "queued";
1875
+ deploying: "deploying";
1876
+ succeeded: "succeeded";
1877
+ failed: "failed";
1878
+ }>;
1879
+ format: zod.ZodLiteral<"esmodule">;
1880
+ entrypoint: zod.ZodString;
1881
+ sourceByteLength: zod.ZodNumber;
1882
+ compatibilityDate: zod.ZodString;
1883
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1884
+ attemptCount: zod.ZodNumber;
1885
+ queuedAt: zod.ZodString;
1886
+ startedAt: zod.ZodNullable<zod.ZodString>;
1887
+ completedAt: zod.ZodNullable<zod.ZodString>;
1888
+ errorCode: zod.ZodNullable<zod.ZodString>;
1889
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1890
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1891
+ etag: zod.ZodNullable<zod.ZodString>;
1892
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1893
+ }, zod_v4_core0.$strip>>;
1894
+ createdAt: zod.ZodString;
1895
+ updatedAt: zod.ZodString;
1896
+ }, zod_v4_core0.$strip>>;
1897
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string>;
1898
+ useAppDeployments: FragnoClientHookData<"GET", "/apps/:appId/deployments", zod.ZodObject<{
1899
+ deployments: zod.ZodArray<zod.ZodObject<{
1900
+ id: zod.ZodString;
1901
+ appId: zod.ZodString;
1902
+ scriptName: zod.ZodString;
1903
+ status: zod.ZodEnum<{
1904
+ queued: "queued";
1905
+ deploying: "deploying";
1906
+ succeeded: "succeeded";
1907
+ failed: "failed";
1908
+ }>;
1909
+ format: zod.ZodLiteral<"esmodule">;
1910
+ entrypoint: zod.ZodString;
1911
+ sourceByteLength: zod.ZodNumber;
1912
+ compatibilityDate: zod.ZodString;
1913
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1914
+ attemptCount: zod.ZodNumber;
1915
+ queuedAt: zod.ZodString;
1916
+ startedAt: zod.ZodNullable<zod.ZodString>;
1917
+ completedAt: zod.ZodNullable<zod.ZodString>;
1918
+ errorCode: zod.ZodNullable<zod.ZodString>;
1919
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1920
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1921
+ etag: zod.ZodNullable<zod.ZodString>;
1922
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1923
+ }, zod_v4_core0.$strip>>;
1924
+ createdAt: zod.ZodString;
1925
+ updatedAt: zod.ZodString;
1926
+ }, zod_v4_core0.$strip>>;
1927
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string>;
1928
+ useDeployment: FragnoClientHookData<"GET", "/deployments/:deploymentId", zod.ZodObject<{
1929
+ id: zod.ZodString;
1930
+ appId: zod.ZodString;
1931
+ scriptName: zod.ZodString;
1932
+ status: zod.ZodEnum<{
1933
+ queued: "queued";
1934
+ deploying: "deploying";
1935
+ succeeded: "succeeded";
1936
+ failed: "failed";
1937
+ }>;
1938
+ format: zod.ZodLiteral<"esmodule">;
1939
+ entrypoint: zod.ZodString;
1940
+ sourceByteLength: zod.ZodNumber;
1941
+ compatibilityDate: zod.ZodString;
1942
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1943
+ attemptCount: zod.ZodNumber;
1944
+ queuedAt: zod.ZodString;
1945
+ startedAt: zod.ZodNullable<zod.ZodString>;
1946
+ completedAt: zod.ZodNullable<zod.ZodString>;
1947
+ errorCode: zod.ZodNullable<zod.ZodString>;
1948
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1949
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1950
+ etag: zod.ZodNullable<zod.ZodString>;
1951
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1952
+ }, zod_v4_core0.$strip>>;
1953
+ createdAt: zod.ZodString;
1954
+ updatedAt: zod.ZodString;
1955
+ sourceCode: zod.ZodString;
1956
+ }, zod_v4_core0.$strip>, "DEPLOYMENT_NOT_FOUND", string>;
1957
+ useQueueDeployment: FragnoClientMutatorData<NonGetHTTPMethod, "/apps/:appId/deployments", zod.ZodObject<{
1958
+ script: zod.ZodObject<{
1959
+ type: zod.ZodDefault<zod.ZodEnum<{
1960
+ esmodule: "esmodule";
1961
+ }>>;
1962
+ entrypoint: zod.ZodDefault<zod.ZodString>;
1963
+ content: zod.ZodString;
1964
+ }, zod_v4_core0.$strip>;
1965
+ compatibilityDate: zod.ZodOptional<zod.ZodString>;
1966
+ compatibilityFlags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1967
+ }, zod_v4_core0.$strip> | _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
1968
+ id: zod.ZodString;
1969
+ appId: zod.ZodString;
1970
+ scriptName: zod.ZodString;
1971
+ status: zod.ZodEnum<{
1972
+ queued: "queued";
1973
+ deploying: "deploying";
1974
+ succeeded: "succeeded";
1975
+ failed: "failed";
1976
+ }>;
1977
+ format: zod.ZodLiteral<"esmodule">;
1978
+ entrypoint: zod.ZodString;
1979
+ sourceByteLength: zod.ZodNumber;
1980
+ compatibilityDate: zod.ZodString;
1981
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
1982
+ attemptCount: zod.ZodNumber;
1983
+ queuedAt: zod.ZodString;
1984
+ startedAt: zod.ZodNullable<zod.ZodString>;
1985
+ completedAt: zod.ZodNullable<zod.ZodString>;
1986
+ errorCode: zod.ZodNullable<zod.ZodString>;
1987
+ errorMessage: zod.ZodNullable<zod.ZodString>;
1988
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
1989
+ etag: zod.ZodNullable<zod.ZodString>;
1990
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
1991
+ }, zod_v4_core0.$strip>>;
1992
+ createdAt: zod.ZodString;
1993
+ updatedAt: zod.ZodString;
1994
+ }, zod_v4_core0.$strip> | zod.ZodObject<{
1995
+ deployments: zod.ZodArray<zod.ZodObject<{
1996
+ id: zod.ZodString;
1997
+ appId: zod.ZodString;
1998
+ scriptName: zod.ZodString;
1999
+ status: zod.ZodEnum<{
2000
+ queued: "queued";
2001
+ deploying: "deploying";
2002
+ succeeded: "succeeded";
2003
+ failed: "failed";
2004
+ }>;
2005
+ format: zod.ZodLiteral<"esmodule">;
2006
+ entrypoint: zod.ZodString;
2007
+ sourceByteLength: zod.ZodNumber;
2008
+ compatibilityDate: zod.ZodString;
2009
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
2010
+ attemptCount: zod.ZodNumber;
2011
+ queuedAt: zod.ZodString;
2012
+ startedAt: zod.ZodNullable<zod.ZodString>;
2013
+ completedAt: zod.ZodNullable<zod.ZodString>;
2014
+ errorCode: zod.ZodNullable<zod.ZodString>;
2015
+ errorMessage: zod.ZodNullable<zod.ZodString>;
2016
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
2017
+ etag: zod.ZodNullable<zod.ZodString>;
2018
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
2019
+ }, zod_v4_core0.$strip>>;
2020
+ createdAt: zod.ZodString;
2021
+ updatedAt: zod.ZodString;
2022
+ }, zod_v4_core0.$strip>>;
2023
+ }, zod_v4_core0.$strip> | undefined, "INVALID_DEPLOY_INPUT" | "UNSUPPORTED_DEPLOY_REQUEST" | "APP_NOT_FOUND", string>;
2024
+ };
2025
+ //#endregion
2026
+ export { type CloudflareApiClient, type CloudflareAppList, type CloudflareAppState, type CloudflareAppSummary, type CloudflareCurrentDeployment, type CloudflareDeployRequest, type CloudflareDeploymentDetail, type CloudflareDeploymentList, type CloudflareDeploymentReconciliationResult, type CloudflareDeploymentStatus, type CloudflareDeploymentSummary, type CloudflareDispatchNamespaceBinding, type CloudflareDispatchNamespaceDescriptor, type CloudflareDispatcherConfig, type CloudflareFragmentConfig, type CloudflareScriptState, type CloudflareScriptUpdateParams, type CloudflareScriptUpdateResponse, DEFAULT_DEPLOYMENT_ENTRYPOINT, DEFAULT_DEPLOYMENT_TAG_PREFIX, DEFAULT_MAX_SCRIPT_NAME_LENGTH, DEFAULT_SCRIPT_NAME_SEPARATOR, type DeployCloudflareWorkerInput, type DeployWorkerHookInput, type FragnoRouteConfig, type ReconcileCloudflareWorkerDeploymentInput, SUPPORTED_DEPLOYMENT_FORMAT, buildCloudflareAppTag, buildCloudflareDeploymentTag, buildCloudflareScriptTags, cloudflareAppListSchema, cloudflareAppStateSchema, cloudflareAppSummarySchema, cloudflareDeployRequestSchema, cloudflareDeployScriptSchema, cloudflareDeploymentDetailSchema, cloudflareDeploymentListSchema, cloudflareDeploymentStatusSchema, cloudflareDeploymentSummarySchema, cloudflareFragmentDefinition, cloudflareRoutesFactory, cloudflareSchema, createCloudflareApiClient, createCloudflareFragment, createCloudflareFragmentClients, deployCloudflareWorker, findCloudflareAppTag, findCloudflareDeploymentTag, getCloudflareApiError, getCloudflareAppIdFromTag, getCloudflareCurrentDeployment, getCloudflareDeploymentIdFromTag, getCloudflareScriptState, listCloudflareScriptTags, normalizeCloudflareDeploymentTagPrefix, reconcileCloudflareWorkerDeployment, resolveCloudflareDispatchNamespaceName, resolveCloudflareScriptName, sanitizeCloudflareTag };
2027
+ //# sourceMappingURL=index.d.ts.map