@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,786 @@
1
+ import { CloudflareApiClient, CloudflareCurrentDeployment, CloudflareDeploymentReconciliationResult, CloudflareDispatchNamespaceBinding, CloudflareDispatchNamespaceDescriptor, CloudflareDispatcherConfig, CloudflareScriptState, CloudflareScriptUpdateParams, CloudflareScriptUpdateResponse, DeployCloudflareWorkerInput, ReconcileCloudflareWorkerDeploymentInput, buildCloudflareScriptTags, createCloudflareApiClient, deployCloudflareWorker, getCloudflareApiError, getCloudflareCurrentDeployment, getCloudflareScriptState, listCloudflareScriptTags, reconcileCloudflareWorkerDeployment, resolveCloudflareDispatchNamespaceName } from "./cloudflare-api.js";
2
+ import { CloudflareAppList, CloudflareAppState, CloudflareAppSummary, CloudflareDeployRequest, CloudflareDeploymentDetail, CloudflareDeploymentList, CloudflareDeploymentStatus, CloudflareDeploymentSummary, DEFAULT_DEPLOYMENT_ENTRYPOINT, SUPPORTED_DEPLOYMENT_FORMAT, cloudflareAppListSchema, cloudflareAppStateSchema, cloudflareAppSummarySchema, cloudflareDeployRequestSchema, cloudflareDeployScriptSchema, cloudflareDeploymentDetailSchema, cloudflareDeploymentListSchema, cloudflareDeploymentStatusSchema, cloudflareDeploymentSummarySchema } from "./contracts.js";
3
+ import { DEFAULT_MAX_SCRIPT_NAME_LENGTH, DEFAULT_SCRIPT_NAME_SEPARATOR, resolveCloudflareScriptName } from "./script-name.js";
4
+ import { CloudflareFragmentConfig, CloudflareHooksMap, DeployWorkerHookInput, cloudflareFragmentDefinition } from "./definition.js";
5
+ import { cloudflareRoutesFactory } from "./routes.js";
6
+ import { cloudflareSchema } from "./schema.js";
7
+ import { DEFAULT_DEPLOYMENT_TAG_PREFIX, buildCloudflareAppTag, buildCloudflareDeploymentTag, findCloudflareAppTag, findCloudflareDeploymentTag, getCloudflareAppIdFromTag, getCloudflareDeploymentIdFromTag, normalizeCloudflareDeploymentTagPrefix, sanitizeCloudflareTag } from "./deployment-tag.js";
8
+ import * as _fragno_dev_core_client0 from "@fragno-dev/core/client";
9
+ import { FragnoPublicClientConfig } from "@fragno-dev/core/client";
10
+ import * as _fragno_dev_core0 from "@fragno-dev/core";
11
+ import { FragnoRouteConfig } from "@fragno-dev/core";
12
+ import * as _fragno_dev_db0 from "@fragno-dev/db";
13
+ import { FragnoPublicConfigWithDatabase } from "@fragno-dev/db";
14
+ import * as cloudflare from "cloudflare";
15
+ import * as zod from "zod";
16
+ import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema";
17
+ import * as _standard_schema_spec0 from "@standard-schema/spec";
18
+ import * as zod_v4_core0 from "zod/v4/core";
19
+ import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder";
20
+ import * as _fragno_dev_core_api0 from "@fragno-dev/core/api";
21
+
22
+ //#region src/index.d.ts
23
+ 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<{
24
+ apps: zod.ZodArray<zod.ZodObject<{
25
+ id: zod.ZodString;
26
+ scriptName: zod.ZodString;
27
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
28
+ id: zod.ZodString;
29
+ appId: zod.ZodString;
30
+ scriptName: zod.ZodString;
31
+ status: zod.ZodEnum<{
32
+ queued: "queued";
33
+ deploying: "deploying";
34
+ succeeded: "succeeded";
35
+ failed: "failed";
36
+ }>;
37
+ format: zod.ZodLiteral<"esmodule">;
38
+ entrypoint: zod.ZodString;
39
+ sourceByteLength: zod.ZodNumber;
40
+ compatibilityDate: zod.ZodString;
41
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
42
+ attemptCount: zod.ZodNumber;
43
+ queuedAt: zod.ZodString;
44
+ startedAt: zod.ZodNullable<zod.ZodString>;
45
+ completedAt: zod.ZodNullable<zod.ZodString>;
46
+ errorCode: zod.ZodNullable<zod.ZodString>;
47
+ errorMessage: zod.ZodNullable<zod.ZodString>;
48
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
49
+ etag: zod.ZodNullable<zod.ZodString>;
50
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
51
+ }, zod_v4_core0.$strip>>;
52
+ createdAt: zod.ZodString;
53
+ updatedAt: zod.ZodString;
54
+ }, zod_v4_core0.$strip>>;
55
+ createdAt: zod.ZodString;
56
+ updatedAt: zod.ZodString;
57
+ }, zod_v4_core0.$strip>>;
58
+ }, zod_v4_core0.$strip>, string, string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/apps/:appId/deployments", zod.ZodObject<{
59
+ script: zod.ZodObject<{
60
+ type: zod.ZodDefault<zod.ZodEnum<{
61
+ esmodule: "esmodule";
62
+ }>>;
63
+ entrypoint: zod.ZodDefault<zod.ZodString>;
64
+ content: zod.ZodString;
65
+ }, zod_v4_core0.$strip>;
66
+ compatibilityDate: zod.ZodOptional<zod.ZodString>;
67
+ compatibilityFlags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
68
+ }, zod_v4_core0.$strip>, zod.ZodObject<{
69
+ id: zod.ZodString;
70
+ appId: zod.ZodString;
71
+ scriptName: zod.ZodString;
72
+ status: zod.ZodEnum<{
73
+ queued: "queued";
74
+ deploying: "deploying";
75
+ succeeded: "succeeded";
76
+ failed: "failed";
77
+ }>;
78
+ format: zod.ZodLiteral<"esmodule">;
79
+ entrypoint: zod.ZodString;
80
+ sourceByteLength: zod.ZodNumber;
81
+ compatibilityDate: zod.ZodString;
82
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
83
+ attemptCount: zod.ZodNumber;
84
+ queuedAt: zod.ZodString;
85
+ startedAt: zod.ZodNullable<zod.ZodString>;
86
+ completedAt: zod.ZodNullable<zod.ZodString>;
87
+ errorCode: zod.ZodNullable<zod.ZodString>;
88
+ errorMessage: zod.ZodNullable<zod.ZodString>;
89
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
90
+ etag: zod.ZodNullable<zod.ZodString>;
91
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
92
+ }, zod_v4_core0.$strip>>;
93
+ createdAt: zod.ZodString;
94
+ updatedAt: zod.ZodString;
95
+ }, 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<{
96
+ deployments: zod.ZodArray<zod.ZodObject<{
97
+ id: zod.ZodString;
98
+ appId: zod.ZodString;
99
+ scriptName: zod.ZodString;
100
+ status: zod.ZodEnum<{
101
+ queued: "queued";
102
+ deploying: "deploying";
103
+ succeeded: "succeeded";
104
+ failed: "failed";
105
+ }>;
106
+ format: zod.ZodLiteral<"esmodule">;
107
+ entrypoint: zod.ZodString;
108
+ sourceByteLength: zod.ZodNumber;
109
+ compatibilityDate: zod.ZodString;
110
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
111
+ attemptCount: zod.ZodNumber;
112
+ queuedAt: zod.ZodString;
113
+ startedAt: zod.ZodNullable<zod.ZodString>;
114
+ completedAt: zod.ZodNullable<zod.ZodString>;
115
+ errorCode: zod.ZodNullable<zod.ZodString>;
116
+ errorMessage: zod.ZodNullable<zod.ZodString>;
117
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
118
+ etag: zod.ZodNullable<zod.ZodString>;
119
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
120
+ }, zod_v4_core0.$strip>>;
121
+ createdAt: zod.ZodString;
122
+ updatedAt: zod.ZodString;
123
+ }, zod_v4_core0.$strip>>;
124
+ }, 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<{
125
+ id: zod.ZodString;
126
+ appId: zod.ZodString;
127
+ scriptName: zod.ZodString;
128
+ status: zod.ZodEnum<{
129
+ queued: "queued";
130
+ deploying: "deploying";
131
+ succeeded: "succeeded";
132
+ failed: "failed";
133
+ }>;
134
+ format: zod.ZodLiteral<"esmodule">;
135
+ entrypoint: zod.ZodString;
136
+ sourceByteLength: zod.ZodNumber;
137
+ compatibilityDate: zod.ZodString;
138
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
139
+ attemptCount: zod.ZodNumber;
140
+ queuedAt: zod.ZodString;
141
+ startedAt: zod.ZodNullable<zod.ZodString>;
142
+ completedAt: zod.ZodNullable<zod.ZodString>;
143
+ errorCode: zod.ZodNullable<zod.ZodString>;
144
+ errorMessage: zod.ZodNullable<zod.ZodString>;
145
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
146
+ etag: zod.ZodNullable<zod.ZodString>;
147
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
148
+ }, zod_v4_core0.$strip>>;
149
+ createdAt: zod.ZodString;
150
+ updatedAt: zod.ZodString;
151
+ sourceCode: zod.ZodString;
152
+ }, 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<{
153
+ id: zod.ZodString;
154
+ scriptName: zod.ZodString;
155
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
156
+ id: zod.ZodString;
157
+ appId: zod.ZodString;
158
+ scriptName: zod.ZodString;
159
+ status: zod.ZodEnum<{
160
+ queued: "queued";
161
+ deploying: "deploying";
162
+ succeeded: "succeeded";
163
+ failed: "failed";
164
+ }>;
165
+ format: zod.ZodLiteral<"esmodule">;
166
+ entrypoint: zod.ZodString;
167
+ sourceByteLength: zod.ZodNumber;
168
+ compatibilityDate: zod.ZodString;
169
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
170
+ attemptCount: zod.ZodNumber;
171
+ queuedAt: zod.ZodString;
172
+ startedAt: zod.ZodNullable<zod.ZodString>;
173
+ completedAt: zod.ZodNullable<zod.ZodString>;
174
+ errorCode: zod.ZodNullable<zod.ZodString>;
175
+ errorMessage: zod.ZodNullable<zod.ZodString>;
176
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
177
+ etag: zod.ZodNullable<zod.ZodString>;
178
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
179
+ }, zod_v4_core0.$strip>>;
180
+ createdAt: zod.ZodString;
181
+ updatedAt: zod.ZodString;
182
+ }, zod_v4_core0.$strip>>;
183
+ createdAt: zod.ZodString;
184
+ updatedAt: zod.ZodString;
185
+ liveDeployment: zod.ZodNullable<zod.ZodObject<{
186
+ id: zod.ZodString;
187
+ appId: zod.ZodString;
188
+ scriptName: zod.ZodString;
189
+ status: zod.ZodEnum<{
190
+ queued: "queued";
191
+ deploying: "deploying";
192
+ succeeded: "succeeded";
193
+ failed: "failed";
194
+ }>;
195
+ format: zod.ZodLiteral<"esmodule">;
196
+ entrypoint: zod.ZodString;
197
+ sourceByteLength: zod.ZodNumber;
198
+ compatibilityDate: zod.ZodString;
199
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
200
+ attemptCount: zod.ZodNumber;
201
+ queuedAt: zod.ZodString;
202
+ startedAt: zod.ZodNullable<zod.ZodString>;
203
+ completedAt: zod.ZodNullable<zod.ZodString>;
204
+ errorCode: zod.ZodNullable<zod.ZodString>;
205
+ errorMessage: zod.ZodNullable<zod.ZodString>;
206
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
207
+ etag: zod.ZodNullable<zod.ZodString>;
208
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
209
+ }, zod_v4_core0.$strip>>;
210
+ createdAt: zod.ZodString;
211
+ updatedAt: zod.ZodString;
212
+ }, zod_v4_core0.$strip>>;
213
+ liveDeploymentError: zod.ZodNullable<zod.ZodString>;
214
+ deployments: zod.ZodArray<zod.ZodObject<{
215
+ id: zod.ZodString;
216
+ appId: zod.ZodString;
217
+ scriptName: zod.ZodString;
218
+ status: zod.ZodEnum<{
219
+ queued: "queued";
220
+ deploying: "deploying";
221
+ succeeded: "succeeded";
222
+ failed: "failed";
223
+ }>;
224
+ format: zod.ZodLiteral<"esmodule">;
225
+ entrypoint: zod.ZodString;
226
+ sourceByteLength: zod.ZodNumber;
227
+ compatibilityDate: zod.ZodString;
228
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
229
+ attemptCount: zod.ZodNumber;
230
+ queuedAt: zod.ZodString;
231
+ startedAt: zod.ZodNullable<zod.ZodString>;
232
+ completedAt: zod.ZodNullable<zod.ZodString>;
233
+ errorCode: zod.ZodNullable<zod.ZodString>;
234
+ errorMessage: zod.ZodNullable<zod.ZodString>;
235
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
236
+ etag: zod.ZodNullable<zod.ZodString>;
237
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
238
+ }, zod_v4_core0.$strip>>;
239
+ createdAt: zod.ZodString;
240
+ updatedAt: zod.ZodString;
241
+ }, zod_v4_core0.$strip>>;
242
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>>], {
243
+ cloudflare: cloudflare.Cloudflare;
244
+ dispatchNamespace: string;
245
+ } & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
246
+ 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"]>>>;
247
+ 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"]>>>;
248
+ }>>, _fragno_dev_core0.BoundServices<{
249
+ upsertApp: (appId: string) => _fragno_dev_db0.TxResult<{
250
+ id: string;
251
+ scriptName: string;
252
+ latestDeployment: {
253
+ id: string;
254
+ appId: string;
255
+ scriptName: string;
256
+ status: "queued" | "deploying" | "succeeded" | "failed";
257
+ format: "esmodule";
258
+ entrypoint: string;
259
+ sourceByteLength: number;
260
+ compatibilityDate: string;
261
+ compatibilityFlags: string[];
262
+ attemptCount: number;
263
+ queuedAt: string;
264
+ startedAt: string | null;
265
+ completedAt: string | null;
266
+ errorCode: string | null;
267
+ errorMessage: string | null;
268
+ cloudflare: {
269
+ etag: string | null;
270
+ modifiedOn: string | null;
271
+ } | null;
272
+ createdAt: string;
273
+ updatedAt: string;
274
+ } | null;
275
+ createdAt: string;
276
+ updatedAt: string;
277
+ }, [{
278
+ id: _fragno_dev_db_schema0.FragnoId;
279
+ scriptName: string;
280
+ liveDeploymentId: string | null;
281
+ liveCloudflareEtag: string | null;
282
+ firstDeploymentLeaseId: string | null;
283
+ createdAt: Date;
284
+ updatedAt: Date;
285
+ } | null]>;
286
+ queueDeployment: (appId: string, request: CloudflareDeployRequest) => _fragno_dev_db0.TxResult<{
287
+ id: string;
288
+ appId: string;
289
+ scriptName: string;
290
+ status: "queued";
291
+ format: "esmodule";
292
+ entrypoint: string;
293
+ sourceByteLength: number;
294
+ compatibilityDate: string;
295
+ compatibilityFlags: string[];
296
+ attemptCount: number;
297
+ queuedAt: string;
298
+ startedAt: null;
299
+ completedAt: null;
300
+ errorCode: null;
301
+ errorMessage: null;
302
+ cloudflare: null;
303
+ createdAt: string;
304
+ updatedAt: string;
305
+ }, [{
306
+ id: _fragno_dev_db_schema0.FragnoId;
307
+ scriptName: string;
308
+ liveDeploymentId: string | null;
309
+ liveCloudflareEtag: string | null;
310
+ firstDeploymentLeaseId: string | null;
311
+ createdAt: Date;
312
+ updatedAt: Date;
313
+ } | null]>;
314
+ getDeployment: (deploymentId: string) => _fragno_dev_db0.TxResult<{
315
+ id: string;
316
+ appId: string;
317
+ scriptName: string;
318
+ status: "queued" | "deploying" | "succeeded" | "failed";
319
+ format: "esmodule";
320
+ entrypoint: string;
321
+ sourceByteLength: number;
322
+ compatibilityDate: string;
323
+ compatibilityFlags: string[];
324
+ attemptCount: number;
325
+ queuedAt: string;
326
+ startedAt: string | null;
327
+ completedAt: string | null;
328
+ errorCode: string | null;
329
+ errorMessage: string | null;
330
+ cloudflare: {
331
+ etag: string | null;
332
+ modifiedOn: string | null;
333
+ } | null;
334
+ createdAt: string;
335
+ updatedAt: string;
336
+ sourceCode: string;
337
+ } | null, {
338
+ id: string;
339
+ appId: string;
340
+ scriptName: string;
341
+ status: "queued" | "deploying" | "succeeded" | "failed";
342
+ format: "esmodule";
343
+ entrypoint: string;
344
+ sourceByteLength: number;
345
+ compatibilityDate: string;
346
+ compatibilityFlags: string[];
347
+ attemptCount: number;
348
+ queuedAt: string;
349
+ startedAt: string | null;
350
+ completedAt: string | null;
351
+ errorCode: string | null;
352
+ errorMessage: string | null;
353
+ cloudflare: {
354
+ etag: string | null;
355
+ modifiedOn: string | null;
356
+ } | null;
357
+ createdAt: string;
358
+ updatedAt: string;
359
+ sourceCode: string;
360
+ } | null>;
361
+ getAppState: (appId: string) => _fragno_dev_db0.TxResult<{
362
+ liveDeploymentId: string | null;
363
+ liveCloudflareEtag: string | null;
364
+ id: string;
365
+ scriptName: string;
366
+ latestDeployment: {
367
+ id: string;
368
+ appId: string;
369
+ scriptName: string;
370
+ status: "queued" | "deploying" | "succeeded" | "failed";
371
+ format: "esmodule";
372
+ entrypoint: string;
373
+ sourceByteLength: number;
374
+ compatibilityDate: string;
375
+ compatibilityFlags: string[];
376
+ attemptCount: number;
377
+ queuedAt: string;
378
+ startedAt: string | null;
379
+ completedAt: string | null;
380
+ errorCode: string | null;
381
+ errorMessage: string | null;
382
+ cloudflare: {
383
+ etag: string | null;
384
+ modifiedOn: string | null;
385
+ } | null;
386
+ createdAt: string;
387
+ updatedAt: string;
388
+ } | null;
389
+ createdAt: string;
390
+ updatedAt: string;
391
+ } | null, {
392
+ liveDeploymentId: string | null;
393
+ liveCloudflareEtag: string | null;
394
+ id: string;
395
+ scriptName: string;
396
+ latestDeployment: {
397
+ id: string;
398
+ appId: string;
399
+ scriptName: string;
400
+ status: "queued" | "deploying" | "succeeded" | "failed";
401
+ format: "esmodule";
402
+ entrypoint: string;
403
+ sourceByteLength: number;
404
+ compatibilityDate: string;
405
+ compatibilityFlags: string[];
406
+ attemptCount: number;
407
+ queuedAt: string;
408
+ startedAt: string | null;
409
+ completedAt: string | null;
410
+ errorCode: string | null;
411
+ errorMessage: string | null;
412
+ cloudflare: {
413
+ etag: string | null;
414
+ modifiedOn: string | null;
415
+ } | null;
416
+ createdAt: string;
417
+ updatedAt: string;
418
+ } | null;
419
+ createdAt: string;
420
+ updatedAt: string;
421
+ } | null>;
422
+ listApps: () => _fragno_dev_db0.TxResult<{
423
+ id: string;
424
+ scriptName: string;
425
+ latestDeployment: {
426
+ id: string;
427
+ appId: string;
428
+ scriptName: string;
429
+ status: "queued" | "deploying" | "succeeded" | "failed";
430
+ format: "esmodule";
431
+ entrypoint: string;
432
+ sourceByteLength: number;
433
+ compatibilityDate: string;
434
+ compatibilityFlags: string[];
435
+ attemptCount: number;
436
+ queuedAt: string;
437
+ startedAt: string | null;
438
+ completedAt: string | null;
439
+ errorCode: string | null;
440
+ errorMessage: string | null;
441
+ cloudflare: {
442
+ etag: string | null;
443
+ modifiedOn: string | null;
444
+ } | null;
445
+ createdAt: string;
446
+ updatedAt: string;
447
+ } | null;
448
+ createdAt: string;
449
+ updatedAt: string;
450
+ }[], {
451
+ id: string;
452
+ scriptName: string;
453
+ latestDeployment: {
454
+ id: string;
455
+ appId: string;
456
+ scriptName: string;
457
+ status: "queued" | "deploying" | "succeeded" | "failed";
458
+ format: "esmodule";
459
+ entrypoint: string;
460
+ sourceByteLength: number;
461
+ compatibilityDate: string;
462
+ compatibilityFlags: string[];
463
+ attemptCount: number;
464
+ queuedAt: string;
465
+ startedAt: string | null;
466
+ completedAt: string | null;
467
+ errorCode: string | null;
468
+ errorMessage: string | null;
469
+ cloudflare: {
470
+ etag: string | null;
471
+ modifiedOn: string | null;
472
+ } | null;
473
+ createdAt: string;
474
+ updatedAt: string;
475
+ } | null;
476
+ createdAt: string;
477
+ updatedAt: string;
478
+ }[]>;
479
+ listAppDeployments: (appId: string) => _fragno_dev_db0.TxResult<{
480
+ id: string;
481
+ appId: string;
482
+ scriptName: string;
483
+ status: "queued" | "deploying" | "succeeded" | "failed";
484
+ format: "esmodule";
485
+ entrypoint: string;
486
+ sourceByteLength: number;
487
+ compatibilityDate: string;
488
+ compatibilityFlags: string[];
489
+ attemptCount: number;
490
+ queuedAt: string;
491
+ startedAt: string | null;
492
+ completedAt: string | null;
493
+ errorCode: string | null;
494
+ errorMessage: string | null;
495
+ cloudflare: {
496
+ etag: string | null;
497
+ modifiedOn: string | null;
498
+ } | null;
499
+ createdAt: string;
500
+ updatedAt: string;
501
+ }[] | null, {
502
+ id: string;
503
+ appId: string;
504
+ scriptName: string;
505
+ status: "queued" | "deploying" | "succeeded" | "failed";
506
+ format: "esmodule";
507
+ entrypoint: string;
508
+ sourceByteLength: number;
509
+ compatibilityDate: string;
510
+ compatibilityFlags: string[];
511
+ attemptCount: number;
512
+ queuedAt: string;
513
+ startedAt: string | null;
514
+ completedAt: string | null;
515
+ errorCode: string | null;
516
+ errorMessage: string | null;
517
+ cloudflare: {
518
+ etag: string | null;
519
+ modifiedOn: string | null;
520
+ } | null;
521
+ createdAt: string;
522
+ updatedAt: string;
523
+ }[] | null>;
524
+ } & {
525
+ cloudflare: {
526
+ getClient: () => cloudflare.Cloudflare;
527
+ };
528
+ }>, _fragno_dev_db0.DatabaseServiceContext<CloudflareHooksMap>, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase>;
529
+ declare function createCloudflareFragmentClients(fragnoConfig?: FragnoPublicClientConfig): {
530
+ useApps: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/apps", zod.ZodObject<{
531
+ apps: zod.ZodArray<zod.ZodObject<{
532
+ id: zod.ZodString;
533
+ scriptName: zod.ZodString;
534
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
535
+ id: zod.ZodString;
536
+ appId: zod.ZodString;
537
+ scriptName: zod.ZodString;
538
+ status: zod.ZodEnum<{
539
+ queued: "queued";
540
+ deploying: "deploying";
541
+ succeeded: "succeeded";
542
+ failed: "failed";
543
+ }>;
544
+ format: zod.ZodLiteral<"esmodule">;
545
+ entrypoint: zod.ZodString;
546
+ sourceByteLength: zod.ZodNumber;
547
+ compatibilityDate: zod.ZodString;
548
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
549
+ attemptCount: zod.ZodNumber;
550
+ queuedAt: zod.ZodString;
551
+ startedAt: zod.ZodNullable<zod.ZodString>;
552
+ completedAt: zod.ZodNullable<zod.ZodString>;
553
+ errorCode: zod.ZodNullable<zod.ZodString>;
554
+ errorMessage: zod.ZodNullable<zod.ZodString>;
555
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
556
+ etag: zod.ZodNullable<zod.ZodString>;
557
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
558
+ }, zod_v4_core0.$strip>>;
559
+ createdAt: zod.ZodString;
560
+ updatedAt: zod.ZodString;
561
+ }, zod_v4_core0.$strip>>;
562
+ createdAt: zod.ZodString;
563
+ updatedAt: zod.ZodString;
564
+ }, zod_v4_core0.$strip>>;
565
+ }, zod_v4_core0.$strip>, string, string>;
566
+ useApp: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/apps/:appId", zod.ZodObject<{
567
+ id: zod.ZodString;
568
+ scriptName: zod.ZodString;
569
+ latestDeployment: zod.ZodNullable<zod.ZodObject<{
570
+ id: zod.ZodString;
571
+ appId: zod.ZodString;
572
+ scriptName: zod.ZodString;
573
+ status: zod.ZodEnum<{
574
+ queued: "queued";
575
+ deploying: "deploying";
576
+ succeeded: "succeeded";
577
+ failed: "failed";
578
+ }>;
579
+ format: zod.ZodLiteral<"esmodule">;
580
+ entrypoint: zod.ZodString;
581
+ sourceByteLength: zod.ZodNumber;
582
+ compatibilityDate: zod.ZodString;
583
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
584
+ attemptCount: zod.ZodNumber;
585
+ queuedAt: zod.ZodString;
586
+ startedAt: zod.ZodNullable<zod.ZodString>;
587
+ completedAt: zod.ZodNullable<zod.ZodString>;
588
+ errorCode: zod.ZodNullable<zod.ZodString>;
589
+ errorMessage: zod.ZodNullable<zod.ZodString>;
590
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
591
+ etag: zod.ZodNullable<zod.ZodString>;
592
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
593
+ }, zod_v4_core0.$strip>>;
594
+ createdAt: zod.ZodString;
595
+ updatedAt: zod.ZodString;
596
+ }, zod_v4_core0.$strip>>;
597
+ createdAt: zod.ZodString;
598
+ updatedAt: zod.ZodString;
599
+ liveDeployment: zod.ZodNullable<zod.ZodObject<{
600
+ id: zod.ZodString;
601
+ appId: zod.ZodString;
602
+ scriptName: zod.ZodString;
603
+ status: zod.ZodEnum<{
604
+ queued: "queued";
605
+ deploying: "deploying";
606
+ succeeded: "succeeded";
607
+ failed: "failed";
608
+ }>;
609
+ format: zod.ZodLiteral<"esmodule">;
610
+ entrypoint: zod.ZodString;
611
+ sourceByteLength: zod.ZodNumber;
612
+ compatibilityDate: zod.ZodString;
613
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
614
+ attemptCount: zod.ZodNumber;
615
+ queuedAt: zod.ZodString;
616
+ startedAt: zod.ZodNullable<zod.ZodString>;
617
+ completedAt: zod.ZodNullable<zod.ZodString>;
618
+ errorCode: zod.ZodNullable<zod.ZodString>;
619
+ errorMessage: zod.ZodNullable<zod.ZodString>;
620
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
621
+ etag: zod.ZodNullable<zod.ZodString>;
622
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
623
+ }, zod_v4_core0.$strip>>;
624
+ createdAt: zod.ZodString;
625
+ updatedAt: zod.ZodString;
626
+ }, zod_v4_core0.$strip>>;
627
+ liveDeploymentError: zod.ZodNullable<zod.ZodString>;
628
+ deployments: zod.ZodArray<zod.ZodObject<{
629
+ id: zod.ZodString;
630
+ appId: zod.ZodString;
631
+ scriptName: zod.ZodString;
632
+ status: zod.ZodEnum<{
633
+ queued: "queued";
634
+ deploying: "deploying";
635
+ succeeded: "succeeded";
636
+ failed: "failed";
637
+ }>;
638
+ format: zod.ZodLiteral<"esmodule">;
639
+ entrypoint: zod.ZodString;
640
+ sourceByteLength: zod.ZodNumber;
641
+ compatibilityDate: zod.ZodString;
642
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
643
+ attemptCount: zod.ZodNumber;
644
+ queuedAt: zod.ZodString;
645
+ startedAt: zod.ZodNullable<zod.ZodString>;
646
+ completedAt: zod.ZodNullable<zod.ZodString>;
647
+ errorCode: zod.ZodNullable<zod.ZodString>;
648
+ errorMessage: zod.ZodNullable<zod.ZodString>;
649
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
650
+ etag: zod.ZodNullable<zod.ZodString>;
651
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
652
+ }, zod_v4_core0.$strip>>;
653
+ createdAt: zod.ZodString;
654
+ updatedAt: zod.ZodString;
655
+ }, zod_v4_core0.$strip>>;
656
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string>;
657
+ useAppDeployments: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/apps/:appId/deployments", zod.ZodObject<{
658
+ deployments: zod.ZodArray<zod.ZodObject<{
659
+ id: zod.ZodString;
660
+ appId: zod.ZodString;
661
+ scriptName: zod.ZodString;
662
+ status: zod.ZodEnum<{
663
+ queued: "queued";
664
+ deploying: "deploying";
665
+ succeeded: "succeeded";
666
+ failed: "failed";
667
+ }>;
668
+ format: zod.ZodLiteral<"esmodule">;
669
+ entrypoint: zod.ZodString;
670
+ sourceByteLength: zod.ZodNumber;
671
+ compatibilityDate: zod.ZodString;
672
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
673
+ attemptCount: zod.ZodNumber;
674
+ queuedAt: zod.ZodString;
675
+ startedAt: zod.ZodNullable<zod.ZodString>;
676
+ completedAt: zod.ZodNullable<zod.ZodString>;
677
+ errorCode: zod.ZodNullable<zod.ZodString>;
678
+ errorMessage: zod.ZodNullable<zod.ZodString>;
679
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
680
+ etag: zod.ZodNullable<zod.ZodString>;
681
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
682
+ }, zod_v4_core0.$strip>>;
683
+ createdAt: zod.ZodString;
684
+ updatedAt: zod.ZodString;
685
+ }, zod_v4_core0.$strip>>;
686
+ }, zod_v4_core0.$strip>, "APP_NOT_FOUND", string>;
687
+ useDeployment: _fragno_dev_core_client0.FragnoClientHookData<"GET", "/deployments/:deploymentId", zod.ZodObject<{
688
+ id: zod.ZodString;
689
+ appId: zod.ZodString;
690
+ scriptName: zod.ZodString;
691
+ status: zod.ZodEnum<{
692
+ queued: "queued";
693
+ deploying: "deploying";
694
+ succeeded: "succeeded";
695
+ failed: "failed";
696
+ }>;
697
+ format: zod.ZodLiteral<"esmodule">;
698
+ entrypoint: zod.ZodString;
699
+ sourceByteLength: zod.ZodNumber;
700
+ compatibilityDate: zod.ZodString;
701
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
702
+ attemptCount: zod.ZodNumber;
703
+ queuedAt: zod.ZodString;
704
+ startedAt: zod.ZodNullable<zod.ZodString>;
705
+ completedAt: zod.ZodNullable<zod.ZodString>;
706
+ errorCode: zod.ZodNullable<zod.ZodString>;
707
+ errorMessage: zod.ZodNullable<zod.ZodString>;
708
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
709
+ etag: zod.ZodNullable<zod.ZodString>;
710
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
711
+ }, zod_v4_core0.$strip>>;
712
+ createdAt: zod.ZodString;
713
+ updatedAt: zod.ZodString;
714
+ sourceCode: zod.ZodString;
715
+ }, zod_v4_core0.$strip>, "DEPLOYMENT_NOT_FOUND", string>;
716
+ useQueueDeployment: _fragno_dev_core_client0.FragnoClientMutatorData<_fragno_dev_core_api0.NonGetHTTPMethod, "/apps/:appId/deployments", zod.ZodObject<{
717
+ script: zod.ZodObject<{
718
+ type: zod.ZodDefault<zod.ZodEnum<{
719
+ esmodule: "esmodule";
720
+ }>>;
721
+ entrypoint: zod.ZodDefault<zod.ZodString>;
722
+ content: zod.ZodString;
723
+ }, zod_v4_core0.$strip>;
724
+ compatibilityDate: zod.ZodOptional<zod.ZodString>;
725
+ compatibilityFlags: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
726
+ }, zod_v4_core0.$strip> | _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
727
+ id: zod.ZodString;
728
+ appId: zod.ZodString;
729
+ scriptName: zod.ZodString;
730
+ status: zod.ZodEnum<{
731
+ queued: "queued";
732
+ deploying: "deploying";
733
+ succeeded: "succeeded";
734
+ failed: "failed";
735
+ }>;
736
+ format: zod.ZodLiteral<"esmodule">;
737
+ entrypoint: zod.ZodString;
738
+ sourceByteLength: zod.ZodNumber;
739
+ compatibilityDate: zod.ZodString;
740
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
741
+ attemptCount: zod.ZodNumber;
742
+ queuedAt: zod.ZodString;
743
+ startedAt: zod.ZodNullable<zod.ZodString>;
744
+ completedAt: zod.ZodNullable<zod.ZodString>;
745
+ errorCode: zod.ZodNullable<zod.ZodString>;
746
+ errorMessage: zod.ZodNullable<zod.ZodString>;
747
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
748
+ etag: zod.ZodNullable<zod.ZodString>;
749
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
750
+ }, zod_v4_core0.$strip>>;
751
+ createdAt: zod.ZodString;
752
+ updatedAt: zod.ZodString;
753
+ }, zod_v4_core0.$strip> | zod.ZodObject<{
754
+ deployments: zod.ZodArray<zod.ZodObject<{
755
+ id: zod.ZodString;
756
+ appId: zod.ZodString;
757
+ scriptName: zod.ZodString;
758
+ status: zod.ZodEnum<{
759
+ queued: "queued";
760
+ deploying: "deploying";
761
+ succeeded: "succeeded";
762
+ failed: "failed";
763
+ }>;
764
+ format: zod.ZodLiteral<"esmodule">;
765
+ entrypoint: zod.ZodString;
766
+ sourceByteLength: zod.ZodNumber;
767
+ compatibilityDate: zod.ZodString;
768
+ compatibilityFlags: zod.ZodArray<zod.ZodString>;
769
+ attemptCount: zod.ZodNumber;
770
+ queuedAt: zod.ZodString;
771
+ startedAt: zod.ZodNullable<zod.ZodString>;
772
+ completedAt: zod.ZodNullable<zod.ZodString>;
773
+ errorCode: zod.ZodNullable<zod.ZodString>;
774
+ errorMessage: zod.ZodNullable<zod.ZodString>;
775
+ cloudflare: zod.ZodNullable<zod.ZodObject<{
776
+ etag: zod.ZodNullable<zod.ZodString>;
777
+ modifiedOn: zod.ZodNullable<zod.ZodString>;
778
+ }, zod_v4_core0.$strip>>;
779
+ createdAt: zod.ZodString;
780
+ updatedAt: zod.ZodString;
781
+ }, zod_v4_core0.$strip>>;
782
+ }, zod_v4_core0.$strip> | undefined, "INVALID_DEPLOY_INPUT" | "UNSUPPORTED_DEPLOY_REQUEST" | "APP_NOT_FOUND", string>;
783
+ };
784
+ //#endregion
785
+ 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 };
786
+ //# sourceMappingURL=index.d.ts.map