@lilbox/contracts 0.0.0-stage → 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.
@@ -0,0 +1,1495 @@
1
+ import { z } from "zod";
2
+ /** Size limits for sources (01 §11.4b), by billing plan. Enforced server-side; exported for clients. */
3
+ export declare const SOURCE_LIMITS: {
4
+ readonly trial: {
5
+ readonly upload_bytes: number;
6
+ readonly inline_bytes: number;
7
+ };
8
+ readonly starter: {
9
+ readonly upload_bytes: number;
10
+ readonly inline_bytes: number;
11
+ };
12
+ readonly pro: {
13
+ readonly upload_bytes: number;
14
+ readonly inline_bytes: number;
15
+ };
16
+ readonly scale: {
17
+ readonly upload_bytes: number;
18
+ readonly inline_bytes: number;
19
+ };
20
+ };
21
+ export declare const InlineFile: z.ZodObject<{
22
+ path: z.ZodString;
23
+ content: z.ZodString;
24
+ encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
25
+ utf8: "utf8";
26
+ base64: "base64";
27
+ }>>>;
28
+ }, z.core.$strip>;
29
+ /** A .tar.gz the caller PUTs to the upload_url returned with the deployment. What the lilbox CLI uses. */
30
+ export declare const UploadSource: z.ZodObject<{
31
+ type: z.ZodLiteral<"upload">;
32
+ size_bytes: z.ZodNumber;
33
+ sha256: z.ZodString;
34
+ }, z.core.$strip>;
35
+ /** Files in the call itself, for agents without a shell. With base_deployment_id, only what changed. */
36
+ export declare const FilesSource: z.ZodObject<{
37
+ type: z.ZodLiteral<"files">;
38
+ files: z.ZodArray<z.ZodObject<{
39
+ path: z.ZodString;
40
+ content: z.ZodString;
41
+ encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
42
+ utf8: "utf8";
43
+ base64: "base64";
44
+ }>>>;
45
+ }, z.core.$strip>>;
46
+ base_deployment_id: z.ZodOptional<z.ZodString>;
47
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ }, z.core.$strip>;
49
+ /** A commit from the app's connected GitHub repo (phase 2: not_available until then). */
50
+ export declare const GithubSource: z.ZodObject<{
51
+ type: z.ZodLiteral<"github">;
52
+ ref: z.ZodString;
53
+ }, z.core.$strip>;
54
+ export declare const SourceInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ type: z.ZodLiteral<"upload">;
56
+ size_bytes: z.ZodNumber;
57
+ sha256: z.ZodString;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"files">;
60
+ files: z.ZodArray<z.ZodObject<{
61
+ path: z.ZodString;
62
+ content: z.ZodString;
63
+ encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
64
+ utf8: "utf8";
65
+ base64: "base64";
66
+ }>>>;
67
+ }, z.core.$strip>>;
68
+ base_deployment_id: z.ZodOptional<z.ZodString>;
69
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ type: z.ZodLiteral<"github">;
72
+ ref: z.ZodString;
73
+ }, z.core.$strip>], "type">;
74
+ /** What a deployment records about where its source came from. */
75
+ export declare const SourceSummary: z.ZodObject<{
76
+ type: z.ZodEnum<{
77
+ github: "github";
78
+ upload: "upload";
79
+ files: "files";
80
+ }>;
81
+ sha256: z.ZodOptional<z.ZodString>;
82
+ size_bytes: z.ZodOptional<z.ZodNumber>;
83
+ file_count: z.ZodOptional<z.ZodNumber>;
84
+ base_deployment_id: z.ZodOptional<z.ZodString>;
85
+ github: z.ZodOptional<z.ZodObject<{
86
+ repo: z.ZodString;
87
+ ref: z.ZodString;
88
+ commit_sha: z.ZodString;
89
+ commit_message: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>;
92
+ export declare const CheckIssueCode: z.ZodUnion<readonly [z.ZodEnum<{
93
+ work_after_response: "work_after_response";
94
+ in_process_scheduler: "in_process_scheduler";
95
+ queue_consumer: "queue_consumer";
96
+ websockets: "websockets";
97
+ writes_outside_tmp: "writes_outside_tmp";
98
+ needs_root: "needs_root";
99
+ long_requests: "long_requests";
100
+ large_bodies: "large_bodies";
101
+ always_on: "always_on";
102
+ slow_boot: "slow_boot";
103
+ }>, z.ZodEnum<{
104
+ database_not_configured: "database_not_configured";
105
+ feature_unavailable: "feature_unavailable";
106
+ missing_secret: "missing_secret";
107
+ manifest_warning: "manifest_warning";
108
+ }>]>;
109
+ export declare const CheckIssue: z.ZodObject<{
110
+ code: z.ZodUnion<readonly [z.ZodEnum<{
111
+ work_after_response: "work_after_response";
112
+ in_process_scheduler: "in_process_scheduler";
113
+ queue_consumer: "queue_consumer";
114
+ websockets: "websockets";
115
+ writes_outside_tmp: "writes_outside_tmp";
116
+ needs_root: "needs_root";
117
+ long_requests: "long_requests";
118
+ large_bodies: "large_bodies";
119
+ always_on: "always_on";
120
+ slow_boot: "slow_boot";
121
+ }>, z.ZodEnum<{
122
+ database_not_configured: "database_not_configured";
123
+ feature_unavailable: "feature_unavailable";
124
+ missing_secret: "missing_secret";
125
+ manifest_warning: "manifest_warning";
126
+ }>]>;
127
+ severity: z.ZodEnum<{
128
+ blocker: "blocker";
129
+ warning: "warning";
130
+ }>;
131
+ where: z.ZodOptional<z.ZodString>;
132
+ evidence: z.ZodOptional<z.ZodString>;
133
+ fix_in_code: z.ZodOptional<z.ZodString>;
134
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
135
+ trial: "trial";
136
+ starter: "starter";
137
+ pro: "pro";
138
+ scale: "scale";
139
+ }>>;
140
+ docs_url: z.ZodOptional<z.ZodURL>;
141
+ }, z.core.$strip>;
142
+ export declare const PlanOption: z.ZodObject<{
143
+ plan: z.ZodEnum<{
144
+ trial: "trial";
145
+ starter: "starter";
146
+ pro: "pro";
147
+ scale: "scale";
148
+ }>;
149
+ monthly_usd: z.ZodNumber;
150
+ requires: z.ZodString;
151
+ available: z.ZodBoolean;
152
+ waitlist_url: z.ZodOptional<z.ZodURL>;
153
+ }, z.core.$strip>;
154
+ export declare const CheckResult: z.ZodObject<{
155
+ deployable: z.ZodBoolean;
156
+ runtime: z.ZodEnum<{
157
+ serverless: "serverless";
158
+ container: "container";
159
+ }>;
160
+ issues: z.ZodArray<z.ZodObject<{
161
+ code: z.ZodUnion<readonly [z.ZodEnum<{
162
+ work_after_response: "work_after_response";
163
+ in_process_scheduler: "in_process_scheduler";
164
+ queue_consumer: "queue_consumer";
165
+ websockets: "websockets";
166
+ writes_outside_tmp: "writes_outside_tmp";
167
+ needs_root: "needs_root";
168
+ long_requests: "long_requests";
169
+ large_bodies: "large_bodies";
170
+ always_on: "always_on";
171
+ slow_boot: "slow_boot";
172
+ }>, z.ZodEnum<{
173
+ database_not_configured: "database_not_configured";
174
+ feature_unavailable: "feature_unavailable";
175
+ missing_secret: "missing_secret";
176
+ manifest_warning: "manifest_warning";
177
+ }>]>;
178
+ severity: z.ZodEnum<{
179
+ blocker: "blocker";
180
+ warning: "warning";
181
+ }>;
182
+ where: z.ZodOptional<z.ZodString>;
183
+ evidence: z.ZodOptional<z.ZodString>;
184
+ fix_in_code: z.ZodOptional<z.ZodString>;
185
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
186
+ trial: "trial";
187
+ starter: "starter";
188
+ pro: "pro";
189
+ scale: "scale";
190
+ }>>;
191
+ docs_url: z.ZodOptional<z.ZodURL>;
192
+ }, z.core.$strip>>;
193
+ options: z.ZodArray<z.ZodObject<{
194
+ plan: z.ZodEnum<{
195
+ trial: "trial";
196
+ starter: "starter";
197
+ pro: "pro";
198
+ scale: "scale";
199
+ }>;
200
+ monthly_usd: z.ZodNumber;
201
+ requires: z.ZodString;
202
+ available: z.ZodBoolean;
203
+ waitlist_url: z.ZodOptional<z.ZodURL>;
204
+ }, z.core.$strip>>;
205
+ warnings: z.ZodArray<z.ZodString>;
206
+ }, z.core.$strip>;
207
+ export declare const DeploymentStatus: z.ZodEnum<{
208
+ awaiting_source: "awaiting_source";
209
+ queued: "queued";
210
+ running: "running";
211
+ live: "live";
212
+ superseded: "superseded";
213
+ failed: "failed";
214
+ cancelled: "cancelled";
215
+ }>;
216
+ export declare const DeploymentTrigger: z.ZodEnum<{
217
+ source: "source";
218
+ config: "config";
219
+ rollback: "rollback";
220
+ git_push: "git_push";
221
+ }>;
222
+ export declare const StepName: z.ZodEnum<{
223
+ check: "check";
224
+ build: "build";
225
+ release: "release";
226
+ receive_source: "receive_source";
227
+ smoke_test: "smoke_test";
228
+ route: "route";
229
+ health_check: "health_check";
230
+ }>;
231
+ export declare const DeploymentStep: z.ZodObject<{
232
+ name: z.ZodEnum<{
233
+ check: "check";
234
+ build: "build";
235
+ release: "release";
236
+ receive_source: "receive_source";
237
+ smoke_test: "smoke_test";
238
+ route: "route";
239
+ health_check: "health_check";
240
+ }>;
241
+ status: z.ZodEnum<{
242
+ running: "running";
243
+ failed: "failed";
244
+ pending: "pending";
245
+ succeeded: "succeeded";
246
+ skipped: "skipped";
247
+ }>;
248
+ started_at: z.ZodOptional<z.ZodISODateTime>;
249
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
250
+ message: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>;
252
+ export declare const Deployment: z.ZodObject<{
253
+ id: z.ZodString;
254
+ app_id: z.ZodString;
255
+ number: z.ZodNumber;
256
+ status: z.ZodEnum<{
257
+ awaiting_source: "awaiting_source";
258
+ queued: "queued";
259
+ running: "running";
260
+ live: "live";
261
+ superseded: "superseded";
262
+ failed: "failed";
263
+ cancelled: "cancelled";
264
+ }>;
265
+ trigger: z.ZodEnum<{
266
+ source: "source";
267
+ config: "config";
268
+ rollback: "rollback";
269
+ git_push: "git_push";
270
+ }>;
271
+ source: z.ZodObject<{
272
+ type: z.ZodEnum<{
273
+ github: "github";
274
+ upload: "upload";
275
+ files: "files";
276
+ }>;
277
+ sha256: z.ZodOptional<z.ZodString>;
278
+ size_bytes: z.ZodOptional<z.ZodNumber>;
279
+ file_count: z.ZodOptional<z.ZodNumber>;
280
+ base_deployment_id: z.ZodOptional<z.ZodString>;
281
+ github: z.ZodOptional<z.ZodObject<{
282
+ repo: z.ZodString;
283
+ ref: z.ZodString;
284
+ commit_sha: z.ZodString;
285
+ commit_message: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>;
288
+ rollback_of: z.ZodOptional<z.ZodString>;
289
+ config_version: z.ZodNumber;
290
+ runtime: z.ZodOptional<z.ZodEnum<{
291
+ serverless: "serverless";
292
+ container: "container";
293
+ }>>;
294
+ image_digest: z.ZodOptional<z.ZodString>;
295
+ steps: z.ZodArray<z.ZodObject<{
296
+ name: z.ZodEnum<{
297
+ check: "check";
298
+ build: "build";
299
+ release: "release";
300
+ receive_source: "receive_source";
301
+ smoke_test: "smoke_test";
302
+ route: "route";
303
+ health_check: "health_check";
304
+ }>;
305
+ status: z.ZodEnum<{
306
+ running: "running";
307
+ failed: "failed";
308
+ pending: "pending";
309
+ succeeded: "succeeded";
310
+ skipped: "skipped";
311
+ }>;
312
+ started_at: z.ZodOptional<z.ZodISODateTime>;
313
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
314
+ message: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strip>>;
316
+ check: z.ZodOptional<z.ZodObject<{
317
+ deployable: z.ZodBoolean;
318
+ runtime: z.ZodEnum<{
319
+ serverless: "serverless";
320
+ container: "container";
321
+ }>;
322
+ issues: z.ZodArray<z.ZodObject<{
323
+ code: z.ZodUnion<readonly [z.ZodEnum<{
324
+ work_after_response: "work_after_response";
325
+ in_process_scheduler: "in_process_scheduler";
326
+ queue_consumer: "queue_consumer";
327
+ websockets: "websockets";
328
+ writes_outside_tmp: "writes_outside_tmp";
329
+ needs_root: "needs_root";
330
+ long_requests: "long_requests";
331
+ large_bodies: "large_bodies";
332
+ always_on: "always_on";
333
+ slow_boot: "slow_boot";
334
+ }>, z.ZodEnum<{
335
+ database_not_configured: "database_not_configured";
336
+ feature_unavailable: "feature_unavailable";
337
+ missing_secret: "missing_secret";
338
+ manifest_warning: "manifest_warning";
339
+ }>]>;
340
+ severity: z.ZodEnum<{
341
+ blocker: "blocker";
342
+ warning: "warning";
343
+ }>;
344
+ where: z.ZodOptional<z.ZodString>;
345
+ evidence: z.ZodOptional<z.ZodString>;
346
+ fix_in_code: z.ZodOptional<z.ZodString>;
347
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
348
+ trial: "trial";
349
+ starter: "starter";
350
+ pro: "pro";
351
+ scale: "scale";
352
+ }>>;
353
+ docs_url: z.ZodOptional<z.ZodURL>;
354
+ }, z.core.$strip>>;
355
+ options: z.ZodArray<z.ZodObject<{
356
+ plan: z.ZodEnum<{
357
+ trial: "trial";
358
+ starter: "starter";
359
+ pro: "pro";
360
+ scale: "scale";
361
+ }>;
362
+ monthly_usd: z.ZodNumber;
363
+ requires: z.ZodString;
364
+ available: z.ZodBoolean;
365
+ waitlist_url: z.ZodOptional<z.ZodURL>;
366
+ }, z.core.$strip>>;
367
+ warnings: z.ZodArray<z.ZodString>;
368
+ }, z.core.$strip>>;
369
+ upload: z.ZodOptional<z.ZodObject<{
370
+ url: z.ZodURL;
371
+ method: z.ZodLiteral<"PUT">;
372
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
373
+ expires_at: z.ZodISODateTime;
374
+ }, z.core.$strip>>;
375
+ url: z.ZodOptional<z.ZodURL>;
376
+ error: z.ZodOptional<z.ZodObject<{
377
+ code: z.ZodEnum<{
378
+ internal: "internal";
379
+ unauthenticated: "unauthenticated";
380
+ forbidden_scope: "forbidden_scope";
381
+ approval_required: "approval_required";
382
+ payment_required: "payment_required";
383
+ quota_exceeded: "quota_exceeded";
384
+ rate_limited: "rate_limited";
385
+ suspended: "suspended";
386
+ invalid_request: "invalid_request";
387
+ invalid_manifest: "invalid_manifest";
388
+ not_found: "not_found";
389
+ conflict: "conflict";
390
+ not_available: "not_available";
391
+ plan_unavailable: "plan_unavailable";
392
+ source_too_large: "source_too_large";
393
+ build_failed: "build_failed";
394
+ image_too_large: "image_too_large";
395
+ migration_failed: "migration_failed";
396
+ healthcheck_failed: "healthcheck_failed";
397
+ app_crashed_on_start: "app_crashed_on_start";
398
+ deploy_timeout: "deploy_timeout";
399
+ capability_requires_plan: "capability_requires_plan";
400
+ capability_unconfirmed: "capability_unconfirmed";
401
+ domain_unverified: "domain_unverified";
402
+ cert_pending: "cert_pending";
403
+ db_quota_exceeded: "db_quota_exceeded";
404
+ }>;
405
+ message: z.ZodString;
406
+ retryable: z.ZodBoolean;
407
+ suggestion: z.ZodOptional<z.ZodString>;
408
+ docs_url: z.ZodOptional<z.ZodURL>;
409
+ request_id: z.ZodOptional<z.ZodString>;
410
+ deployment_id: z.ZodOptional<z.ZodString>;
411
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
413
+ }, z.core.$strip>>;
414
+ created_by: z.ZodObject<{
415
+ kind: z.ZodEnum<{
416
+ github: "github";
417
+ user: "user";
418
+ api_key: "api_key";
419
+ system: "system";
420
+ }>;
421
+ id: z.ZodString;
422
+ }, z.core.$strip>;
423
+ created_at: z.ZodISODateTime;
424
+ updated_at: z.ZodISODateTime;
425
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
426
+ }, z.core.$strip>;
427
+ export type Deployment = z.infer<typeof Deployment>;
428
+ export declare const check: import("./define.js").OperationDef<z.ZodObject<{
429
+ app_id: z.ZodString;
430
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
+ type: z.ZodLiteral<"files">;
432
+ files: z.ZodArray<z.ZodObject<{
433
+ path: z.ZodString;
434
+ content: z.ZodString;
435
+ encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
436
+ utf8: "utf8";
437
+ base64: "base64";
438
+ }>>>;
439
+ }, z.core.$strip>>;
440
+ base_deployment_id: z.ZodOptional<z.ZodString>;
441
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
+ }, z.core.$strip>, z.ZodObject<{
443
+ type: z.ZodLiteral<"github">;
444
+ ref: z.ZodString;
445
+ }, z.core.$strip>], "type">;
446
+ ack: z.ZodOptional<z.ZodArray<z.ZodEnum<{
447
+ work_after_response: "work_after_response";
448
+ in_process_scheduler: "in_process_scheduler";
449
+ queue_consumer: "queue_consumer";
450
+ websockets: "websockets";
451
+ writes_outside_tmp: "writes_outside_tmp";
452
+ needs_root: "needs_root";
453
+ long_requests: "long_requests";
454
+ large_bodies: "large_bodies";
455
+ always_on: "always_on";
456
+ slow_boot: "slow_boot";
457
+ }>>>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ deployable: z.ZodBoolean;
460
+ runtime: z.ZodEnum<{
461
+ serverless: "serverless";
462
+ container: "container";
463
+ }>;
464
+ issues: z.ZodArray<z.ZodObject<{
465
+ code: z.ZodUnion<readonly [z.ZodEnum<{
466
+ work_after_response: "work_after_response";
467
+ in_process_scheduler: "in_process_scheduler";
468
+ queue_consumer: "queue_consumer";
469
+ websockets: "websockets";
470
+ writes_outside_tmp: "writes_outside_tmp";
471
+ needs_root: "needs_root";
472
+ long_requests: "long_requests";
473
+ large_bodies: "large_bodies";
474
+ always_on: "always_on";
475
+ slow_boot: "slow_boot";
476
+ }>, z.ZodEnum<{
477
+ database_not_configured: "database_not_configured";
478
+ feature_unavailable: "feature_unavailable";
479
+ missing_secret: "missing_secret";
480
+ manifest_warning: "manifest_warning";
481
+ }>]>;
482
+ severity: z.ZodEnum<{
483
+ blocker: "blocker";
484
+ warning: "warning";
485
+ }>;
486
+ where: z.ZodOptional<z.ZodString>;
487
+ evidence: z.ZodOptional<z.ZodString>;
488
+ fix_in_code: z.ZodOptional<z.ZodString>;
489
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
490
+ trial: "trial";
491
+ starter: "starter";
492
+ pro: "pro";
493
+ scale: "scale";
494
+ }>>;
495
+ docs_url: z.ZodOptional<z.ZodURL>;
496
+ }, z.core.$strip>>;
497
+ options: z.ZodArray<z.ZodObject<{
498
+ plan: z.ZodEnum<{
499
+ trial: "trial";
500
+ starter: "starter";
501
+ pro: "pro";
502
+ scale: "scale";
503
+ }>;
504
+ monthly_usd: z.ZodNumber;
505
+ requires: z.ZodString;
506
+ available: z.ZodBoolean;
507
+ waitlist_url: z.ZodOptional<z.ZodURL>;
508
+ }, z.core.$strip>>;
509
+ warnings: z.ZodArray<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ export declare const create_deployment: import("./define.js").OperationDef<z.ZodObject<{
512
+ app_id: z.ZodString;
513
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
+ type: z.ZodLiteral<"upload">;
515
+ size_bytes: z.ZodNumber;
516
+ sha256: z.ZodString;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ type: z.ZodLiteral<"files">;
519
+ files: z.ZodArray<z.ZodObject<{
520
+ path: z.ZodString;
521
+ content: z.ZodString;
522
+ encoding: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
523
+ utf8: "utf8";
524
+ base64: "base64";
525
+ }>>>;
526
+ }, z.core.$strip>>;
527
+ base_deployment_id: z.ZodOptional<z.ZodString>;
528
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ type: z.ZodLiteral<"github">;
531
+ ref: z.ZodString;
532
+ }, z.core.$strip>], "type">;
533
+ ack: z.ZodOptional<z.ZodArray<z.ZodEnum<{
534
+ work_after_response: "work_after_response";
535
+ in_process_scheduler: "in_process_scheduler";
536
+ queue_consumer: "queue_consumer";
537
+ websockets: "websockets";
538
+ writes_outside_tmp: "writes_outside_tmp";
539
+ needs_root: "needs_root";
540
+ long_requests: "long_requests";
541
+ large_bodies: "large_bodies";
542
+ always_on: "always_on";
543
+ slow_boot: "slow_boot";
544
+ }>>>;
545
+ dry_run: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ deployment: z.ZodObject<{
548
+ id: z.ZodString;
549
+ app_id: z.ZodString;
550
+ number: z.ZodNumber;
551
+ status: z.ZodEnum<{
552
+ awaiting_source: "awaiting_source";
553
+ queued: "queued";
554
+ running: "running";
555
+ live: "live";
556
+ superseded: "superseded";
557
+ failed: "failed";
558
+ cancelled: "cancelled";
559
+ }>;
560
+ trigger: z.ZodEnum<{
561
+ source: "source";
562
+ config: "config";
563
+ rollback: "rollback";
564
+ git_push: "git_push";
565
+ }>;
566
+ source: z.ZodObject<{
567
+ type: z.ZodEnum<{
568
+ github: "github";
569
+ upload: "upload";
570
+ files: "files";
571
+ }>;
572
+ sha256: z.ZodOptional<z.ZodString>;
573
+ size_bytes: z.ZodOptional<z.ZodNumber>;
574
+ file_count: z.ZodOptional<z.ZodNumber>;
575
+ base_deployment_id: z.ZodOptional<z.ZodString>;
576
+ github: z.ZodOptional<z.ZodObject<{
577
+ repo: z.ZodString;
578
+ ref: z.ZodString;
579
+ commit_sha: z.ZodString;
580
+ commit_message: z.ZodOptional<z.ZodString>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>;
583
+ rollback_of: z.ZodOptional<z.ZodString>;
584
+ config_version: z.ZodNumber;
585
+ runtime: z.ZodOptional<z.ZodEnum<{
586
+ serverless: "serverless";
587
+ container: "container";
588
+ }>>;
589
+ image_digest: z.ZodOptional<z.ZodString>;
590
+ steps: z.ZodArray<z.ZodObject<{
591
+ name: z.ZodEnum<{
592
+ check: "check";
593
+ build: "build";
594
+ release: "release";
595
+ receive_source: "receive_source";
596
+ smoke_test: "smoke_test";
597
+ route: "route";
598
+ health_check: "health_check";
599
+ }>;
600
+ status: z.ZodEnum<{
601
+ running: "running";
602
+ failed: "failed";
603
+ pending: "pending";
604
+ succeeded: "succeeded";
605
+ skipped: "skipped";
606
+ }>;
607
+ started_at: z.ZodOptional<z.ZodISODateTime>;
608
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
609
+ message: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$strip>>;
611
+ check: z.ZodOptional<z.ZodObject<{
612
+ deployable: z.ZodBoolean;
613
+ runtime: z.ZodEnum<{
614
+ serverless: "serverless";
615
+ container: "container";
616
+ }>;
617
+ issues: z.ZodArray<z.ZodObject<{
618
+ code: z.ZodUnion<readonly [z.ZodEnum<{
619
+ work_after_response: "work_after_response";
620
+ in_process_scheduler: "in_process_scheduler";
621
+ queue_consumer: "queue_consumer";
622
+ websockets: "websockets";
623
+ writes_outside_tmp: "writes_outside_tmp";
624
+ needs_root: "needs_root";
625
+ long_requests: "long_requests";
626
+ large_bodies: "large_bodies";
627
+ always_on: "always_on";
628
+ slow_boot: "slow_boot";
629
+ }>, z.ZodEnum<{
630
+ database_not_configured: "database_not_configured";
631
+ feature_unavailable: "feature_unavailable";
632
+ missing_secret: "missing_secret";
633
+ manifest_warning: "manifest_warning";
634
+ }>]>;
635
+ severity: z.ZodEnum<{
636
+ blocker: "blocker";
637
+ warning: "warning";
638
+ }>;
639
+ where: z.ZodOptional<z.ZodString>;
640
+ evidence: z.ZodOptional<z.ZodString>;
641
+ fix_in_code: z.ZodOptional<z.ZodString>;
642
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
643
+ trial: "trial";
644
+ starter: "starter";
645
+ pro: "pro";
646
+ scale: "scale";
647
+ }>>;
648
+ docs_url: z.ZodOptional<z.ZodURL>;
649
+ }, z.core.$strip>>;
650
+ options: z.ZodArray<z.ZodObject<{
651
+ plan: z.ZodEnum<{
652
+ trial: "trial";
653
+ starter: "starter";
654
+ pro: "pro";
655
+ scale: "scale";
656
+ }>;
657
+ monthly_usd: z.ZodNumber;
658
+ requires: z.ZodString;
659
+ available: z.ZodBoolean;
660
+ waitlist_url: z.ZodOptional<z.ZodURL>;
661
+ }, z.core.$strip>>;
662
+ warnings: z.ZodArray<z.ZodString>;
663
+ }, z.core.$strip>>;
664
+ upload: z.ZodOptional<z.ZodObject<{
665
+ url: z.ZodURL;
666
+ method: z.ZodLiteral<"PUT">;
667
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
668
+ expires_at: z.ZodISODateTime;
669
+ }, z.core.$strip>>;
670
+ url: z.ZodOptional<z.ZodURL>;
671
+ error: z.ZodOptional<z.ZodObject<{
672
+ code: z.ZodEnum<{
673
+ internal: "internal";
674
+ unauthenticated: "unauthenticated";
675
+ forbidden_scope: "forbidden_scope";
676
+ approval_required: "approval_required";
677
+ payment_required: "payment_required";
678
+ quota_exceeded: "quota_exceeded";
679
+ rate_limited: "rate_limited";
680
+ suspended: "suspended";
681
+ invalid_request: "invalid_request";
682
+ invalid_manifest: "invalid_manifest";
683
+ not_found: "not_found";
684
+ conflict: "conflict";
685
+ not_available: "not_available";
686
+ plan_unavailable: "plan_unavailable";
687
+ source_too_large: "source_too_large";
688
+ build_failed: "build_failed";
689
+ image_too_large: "image_too_large";
690
+ migration_failed: "migration_failed";
691
+ healthcheck_failed: "healthcheck_failed";
692
+ app_crashed_on_start: "app_crashed_on_start";
693
+ deploy_timeout: "deploy_timeout";
694
+ capability_requires_plan: "capability_requires_plan";
695
+ capability_unconfirmed: "capability_unconfirmed";
696
+ domain_unverified: "domain_unverified";
697
+ cert_pending: "cert_pending";
698
+ db_quota_exceeded: "db_quota_exceeded";
699
+ }>;
700
+ message: z.ZodString;
701
+ retryable: z.ZodBoolean;
702
+ suggestion: z.ZodOptional<z.ZodString>;
703
+ docs_url: z.ZodOptional<z.ZodURL>;
704
+ request_id: z.ZodOptional<z.ZodString>;
705
+ deployment_id: z.ZodOptional<z.ZodString>;
706
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
707
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
708
+ }, z.core.$strip>>;
709
+ created_by: z.ZodObject<{
710
+ kind: z.ZodEnum<{
711
+ github: "github";
712
+ user: "user";
713
+ api_key: "api_key";
714
+ system: "system";
715
+ }>;
716
+ id: z.ZodString;
717
+ }, z.core.$strip>;
718
+ created_at: z.ZodISODateTime;
719
+ updated_at: z.ZodISODateTime;
720
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
721
+ }, z.core.$strip>;
722
+ }, z.core.$strip>>;
723
+ export declare const get_deployment: import("./define.js").OperationDef<z.ZodObject<{
724
+ deployment_id: z.ZodString;
725
+ wait_seconds: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
726
+ }, z.core.$strip>, z.ZodObject<{
727
+ deployment: z.ZodObject<{
728
+ id: z.ZodString;
729
+ app_id: z.ZodString;
730
+ number: z.ZodNumber;
731
+ status: z.ZodEnum<{
732
+ awaiting_source: "awaiting_source";
733
+ queued: "queued";
734
+ running: "running";
735
+ live: "live";
736
+ superseded: "superseded";
737
+ failed: "failed";
738
+ cancelled: "cancelled";
739
+ }>;
740
+ trigger: z.ZodEnum<{
741
+ source: "source";
742
+ config: "config";
743
+ rollback: "rollback";
744
+ git_push: "git_push";
745
+ }>;
746
+ source: z.ZodObject<{
747
+ type: z.ZodEnum<{
748
+ github: "github";
749
+ upload: "upload";
750
+ files: "files";
751
+ }>;
752
+ sha256: z.ZodOptional<z.ZodString>;
753
+ size_bytes: z.ZodOptional<z.ZodNumber>;
754
+ file_count: z.ZodOptional<z.ZodNumber>;
755
+ base_deployment_id: z.ZodOptional<z.ZodString>;
756
+ github: z.ZodOptional<z.ZodObject<{
757
+ repo: z.ZodString;
758
+ ref: z.ZodString;
759
+ commit_sha: z.ZodString;
760
+ commit_message: z.ZodOptional<z.ZodString>;
761
+ }, z.core.$strip>>;
762
+ }, z.core.$strip>;
763
+ rollback_of: z.ZodOptional<z.ZodString>;
764
+ config_version: z.ZodNumber;
765
+ runtime: z.ZodOptional<z.ZodEnum<{
766
+ serverless: "serverless";
767
+ container: "container";
768
+ }>>;
769
+ image_digest: z.ZodOptional<z.ZodString>;
770
+ steps: z.ZodArray<z.ZodObject<{
771
+ name: z.ZodEnum<{
772
+ check: "check";
773
+ build: "build";
774
+ release: "release";
775
+ receive_source: "receive_source";
776
+ smoke_test: "smoke_test";
777
+ route: "route";
778
+ health_check: "health_check";
779
+ }>;
780
+ status: z.ZodEnum<{
781
+ running: "running";
782
+ failed: "failed";
783
+ pending: "pending";
784
+ succeeded: "succeeded";
785
+ skipped: "skipped";
786
+ }>;
787
+ started_at: z.ZodOptional<z.ZodISODateTime>;
788
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
789
+ message: z.ZodOptional<z.ZodString>;
790
+ }, z.core.$strip>>;
791
+ check: z.ZodOptional<z.ZodObject<{
792
+ deployable: z.ZodBoolean;
793
+ runtime: z.ZodEnum<{
794
+ serverless: "serverless";
795
+ container: "container";
796
+ }>;
797
+ issues: z.ZodArray<z.ZodObject<{
798
+ code: z.ZodUnion<readonly [z.ZodEnum<{
799
+ work_after_response: "work_after_response";
800
+ in_process_scheduler: "in_process_scheduler";
801
+ queue_consumer: "queue_consumer";
802
+ websockets: "websockets";
803
+ writes_outside_tmp: "writes_outside_tmp";
804
+ needs_root: "needs_root";
805
+ long_requests: "long_requests";
806
+ large_bodies: "large_bodies";
807
+ always_on: "always_on";
808
+ slow_boot: "slow_boot";
809
+ }>, z.ZodEnum<{
810
+ database_not_configured: "database_not_configured";
811
+ feature_unavailable: "feature_unavailable";
812
+ missing_secret: "missing_secret";
813
+ manifest_warning: "manifest_warning";
814
+ }>]>;
815
+ severity: z.ZodEnum<{
816
+ blocker: "blocker";
817
+ warning: "warning";
818
+ }>;
819
+ where: z.ZodOptional<z.ZodString>;
820
+ evidence: z.ZodOptional<z.ZodString>;
821
+ fix_in_code: z.ZodOptional<z.ZodString>;
822
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
823
+ trial: "trial";
824
+ starter: "starter";
825
+ pro: "pro";
826
+ scale: "scale";
827
+ }>>;
828
+ docs_url: z.ZodOptional<z.ZodURL>;
829
+ }, z.core.$strip>>;
830
+ options: z.ZodArray<z.ZodObject<{
831
+ plan: z.ZodEnum<{
832
+ trial: "trial";
833
+ starter: "starter";
834
+ pro: "pro";
835
+ scale: "scale";
836
+ }>;
837
+ monthly_usd: z.ZodNumber;
838
+ requires: z.ZodString;
839
+ available: z.ZodBoolean;
840
+ waitlist_url: z.ZodOptional<z.ZodURL>;
841
+ }, z.core.$strip>>;
842
+ warnings: z.ZodArray<z.ZodString>;
843
+ }, z.core.$strip>>;
844
+ upload: z.ZodOptional<z.ZodObject<{
845
+ url: z.ZodURL;
846
+ method: z.ZodLiteral<"PUT">;
847
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
848
+ expires_at: z.ZodISODateTime;
849
+ }, z.core.$strip>>;
850
+ url: z.ZodOptional<z.ZodURL>;
851
+ error: z.ZodOptional<z.ZodObject<{
852
+ code: z.ZodEnum<{
853
+ internal: "internal";
854
+ unauthenticated: "unauthenticated";
855
+ forbidden_scope: "forbidden_scope";
856
+ approval_required: "approval_required";
857
+ payment_required: "payment_required";
858
+ quota_exceeded: "quota_exceeded";
859
+ rate_limited: "rate_limited";
860
+ suspended: "suspended";
861
+ invalid_request: "invalid_request";
862
+ invalid_manifest: "invalid_manifest";
863
+ not_found: "not_found";
864
+ conflict: "conflict";
865
+ not_available: "not_available";
866
+ plan_unavailable: "plan_unavailable";
867
+ source_too_large: "source_too_large";
868
+ build_failed: "build_failed";
869
+ image_too_large: "image_too_large";
870
+ migration_failed: "migration_failed";
871
+ healthcheck_failed: "healthcheck_failed";
872
+ app_crashed_on_start: "app_crashed_on_start";
873
+ deploy_timeout: "deploy_timeout";
874
+ capability_requires_plan: "capability_requires_plan";
875
+ capability_unconfirmed: "capability_unconfirmed";
876
+ domain_unverified: "domain_unverified";
877
+ cert_pending: "cert_pending";
878
+ db_quota_exceeded: "db_quota_exceeded";
879
+ }>;
880
+ message: z.ZodString;
881
+ retryable: z.ZodBoolean;
882
+ suggestion: z.ZodOptional<z.ZodString>;
883
+ docs_url: z.ZodOptional<z.ZodURL>;
884
+ request_id: z.ZodOptional<z.ZodString>;
885
+ deployment_id: z.ZodOptional<z.ZodString>;
886
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
887
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
888
+ }, z.core.$strip>>;
889
+ created_by: z.ZodObject<{
890
+ kind: z.ZodEnum<{
891
+ github: "github";
892
+ user: "user";
893
+ api_key: "api_key";
894
+ system: "system";
895
+ }>;
896
+ id: z.ZodString;
897
+ }, z.core.$strip>;
898
+ created_at: z.ZodISODateTime;
899
+ updated_at: z.ZodISODateTime;
900
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
901
+ }, z.core.$strip>;
902
+ }, z.core.$strip>>;
903
+ export declare const list_deployments: import("./define.js").OperationDef<z.ZodObject<{
904
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
905
+ cursor: z.ZodOptional<z.ZodString>;
906
+ app_id: z.ZodString;
907
+ status: z.ZodOptional<z.ZodEnum<{
908
+ awaiting_source: "awaiting_source";
909
+ queued: "queued";
910
+ running: "running";
911
+ live: "live";
912
+ superseded: "superseded";
913
+ failed: "failed";
914
+ cancelled: "cancelled";
915
+ }>>;
916
+ }, z.core.$strip>, z.ZodObject<{
917
+ deployments: z.ZodArray<z.ZodObject<{
918
+ id: z.ZodString;
919
+ app_id: z.ZodString;
920
+ number: z.ZodNumber;
921
+ status: z.ZodEnum<{
922
+ awaiting_source: "awaiting_source";
923
+ queued: "queued";
924
+ running: "running";
925
+ live: "live";
926
+ superseded: "superseded";
927
+ failed: "failed";
928
+ cancelled: "cancelled";
929
+ }>;
930
+ trigger: z.ZodEnum<{
931
+ source: "source";
932
+ config: "config";
933
+ rollback: "rollback";
934
+ git_push: "git_push";
935
+ }>;
936
+ source: z.ZodObject<{
937
+ type: z.ZodEnum<{
938
+ github: "github";
939
+ upload: "upload";
940
+ files: "files";
941
+ }>;
942
+ sha256: z.ZodOptional<z.ZodString>;
943
+ size_bytes: z.ZodOptional<z.ZodNumber>;
944
+ file_count: z.ZodOptional<z.ZodNumber>;
945
+ base_deployment_id: z.ZodOptional<z.ZodString>;
946
+ github: z.ZodOptional<z.ZodObject<{
947
+ repo: z.ZodString;
948
+ ref: z.ZodString;
949
+ commit_sha: z.ZodString;
950
+ commit_message: z.ZodOptional<z.ZodString>;
951
+ }, z.core.$strip>>;
952
+ }, z.core.$strip>;
953
+ rollback_of: z.ZodOptional<z.ZodString>;
954
+ config_version: z.ZodNumber;
955
+ runtime: z.ZodOptional<z.ZodEnum<{
956
+ serverless: "serverless";
957
+ container: "container";
958
+ }>>;
959
+ image_digest: z.ZodOptional<z.ZodString>;
960
+ steps: z.ZodArray<z.ZodObject<{
961
+ name: z.ZodEnum<{
962
+ check: "check";
963
+ build: "build";
964
+ release: "release";
965
+ receive_source: "receive_source";
966
+ smoke_test: "smoke_test";
967
+ route: "route";
968
+ health_check: "health_check";
969
+ }>;
970
+ status: z.ZodEnum<{
971
+ running: "running";
972
+ failed: "failed";
973
+ pending: "pending";
974
+ succeeded: "succeeded";
975
+ skipped: "skipped";
976
+ }>;
977
+ started_at: z.ZodOptional<z.ZodISODateTime>;
978
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
979
+ message: z.ZodOptional<z.ZodString>;
980
+ }, z.core.$strip>>;
981
+ check: z.ZodOptional<z.ZodObject<{
982
+ deployable: z.ZodBoolean;
983
+ runtime: z.ZodEnum<{
984
+ serverless: "serverless";
985
+ container: "container";
986
+ }>;
987
+ issues: z.ZodArray<z.ZodObject<{
988
+ code: z.ZodUnion<readonly [z.ZodEnum<{
989
+ work_after_response: "work_after_response";
990
+ in_process_scheduler: "in_process_scheduler";
991
+ queue_consumer: "queue_consumer";
992
+ websockets: "websockets";
993
+ writes_outside_tmp: "writes_outside_tmp";
994
+ needs_root: "needs_root";
995
+ long_requests: "long_requests";
996
+ large_bodies: "large_bodies";
997
+ always_on: "always_on";
998
+ slow_boot: "slow_boot";
999
+ }>, z.ZodEnum<{
1000
+ database_not_configured: "database_not_configured";
1001
+ feature_unavailable: "feature_unavailable";
1002
+ missing_secret: "missing_secret";
1003
+ manifest_warning: "manifest_warning";
1004
+ }>]>;
1005
+ severity: z.ZodEnum<{
1006
+ blocker: "blocker";
1007
+ warning: "warning";
1008
+ }>;
1009
+ where: z.ZodOptional<z.ZodString>;
1010
+ evidence: z.ZodOptional<z.ZodString>;
1011
+ fix_in_code: z.ZodOptional<z.ZodString>;
1012
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
1013
+ trial: "trial";
1014
+ starter: "starter";
1015
+ pro: "pro";
1016
+ scale: "scale";
1017
+ }>>;
1018
+ docs_url: z.ZodOptional<z.ZodURL>;
1019
+ }, z.core.$strip>>;
1020
+ options: z.ZodArray<z.ZodObject<{
1021
+ plan: z.ZodEnum<{
1022
+ trial: "trial";
1023
+ starter: "starter";
1024
+ pro: "pro";
1025
+ scale: "scale";
1026
+ }>;
1027
+ monthly_usd: z.ZodNumber;
1028
+ requires: z.ZodString;
1029
+ available: z.ZodBoolean;
1030
+ waitlist_url: z.ZodOptional<z.ZodURL>;
1031
+ }, z.core.$strip>>;
1032
+ warnings: z.ZodArray<z.ZodString>;
1033
+ }, z.core.$strip>>;
1034
+ upload: z.ZodOptional<z.ZodObject<{
1035
+ url: z.ZodURL;
1036
+ method: z.ZodLiteral<"PUT">;
1037
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
1038
+ expires_at: z.ZodISODateTime;
1039
+ }, z.core.$strip>>;
1040
+ url: z.ZodOptional<z.ZodURL>;
1041
+ error: z.ZodOptional<z.ZodObject<{
1042
+ code: z.ZodEnum<{
1043
+ internal: "internal";
1044
+ unauthenticated: "unauthenticated";
1045
+ forbidden_scope: "forbidden_scope";
1046
+ approval_required: "approval_required";
1047
+ payment_required: "payment_required";
1048
+ quota_exceeded: "quota_exceeded";
1049
+ rate_limited: "rate_limited";
1050
+ suspended: "suspended";
1051
+ invalid_request: "invalid_request";
1052
+ invalid_manifest: "invalid_manifest";
1053
+ not_found: "not_found";
1054
+ conflict: "conflict";
1055
+ not_available: "not_available";
1056
+ plan_unavailable: "plan_unavailable";
1057
+ source_too_large: "source_too_large";
1058
+ build_failed: "build_failed";
1059
+ image_too_large: "image_too_large";
1060
+ migration_failed: "migration_failed";
1061
+ healthcheck_failed: "healthcheck_failed";
1062
+ app_crashed_on_start: "app_crashed_on_start";
1063
+ deploy_timeout: "deploy_timeout";
1064
+ capability_requires_plan: "capability_requires_plan";
1065
+ capability_unconfirmed: "capability_unconfirmed";
1066
+ domain_unverified: "domain_unverified";
1067
+ cert_pending: "cert_pending";
1068
+ db_quota_exceeded: "db_quota_exceeded";
1069
+ }>;
1070
+ message: z.ZodString;
1071
+ retryable: z.ZodBoolean;
1072
+ suggestion: z.ZodOptional<z.ZodString>;
1073
+ docs_url: z.ZodOptional<z.ZodURL>;
1074
+ request_id: z.ZodOptional<z.ZodString>;
1075
+ deployment_id: z.ZodOptional<z.ZodString>;
1076
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
1077
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1078
+ }, z.core.$strip>>;
1079
+ created_by: z.ZodObject<{
1080
+ kind: z.ZodEnum<{
1081
+ github: "github";
1082
+ user: "user";
1083
+ api_key: "api_key";
1084
+ system: "system";
1085
+ }>;
1086
+ id: z.ZodString;
1087
+ }, z.core.$strip>;
1088
+ created_at: z.ZodISODateTime;
1089
+ updated_at: z.ZodISODateTime;
1090
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
1091
+ }, z.core.$strip>>;
1092
+ next_cursor: z.ZodOptional<z.ZodString>;
1093
+ }, z.core.$strip>>;
1094
+ export declare const cancel_deployment: import("./define.js").OperationDef<z.ZodObject<{
1095
+ deployment_id: z.ZodString;
1096
+ }, z.core.$strip>, z.ZodObject<{
1097
+ deployment: z.ZodObject<{
1098
+ id: z.ZodString;
1099
+ app_id: z.ZodString;
1100
+ number: z.ZodNumber;
1101
+ status: z.ZodEnum<{
1102
+ awaiting_source: "awaiting_source";
1103
+ queued: "queued";
1104
+ running: "running";
1105
+ live: "live";
1106
+ superseded: "superseded";
1107
+ failed: "failed";
1108
+ cancelled: "cancelled";
1109
+ }>;
1110
+ trigger: z.ZodEnum<{
1111
+ source: "source";
1112
+ config: "config";
1113
+ rollback: "rollback";
1114
+ git_push: "git_push";
1115
+ }>;
1116
+ source: z.ZodObject<{
1117
+ type: z.ZodEnum<{
1118
+ github: "github";
1119
+ upload: "upload";
1120
+ files: "files";
1121
+ }>;
1122
+ sha256: z.ZodOptional<z.ZodString>;
1123
+ size_bytes: z.ZodOptional<z.ZodNumber>;
1124
+ file_count: z.ZodOptional<z.ZodNumber>;
1125
+ base_deployment_id: z.ZodOptional<z.ZodString>;
1126
+ github: z.ZodOptional<z.ZodObject<{
1127
+ repo: z.ZodString;
1128
+ ref: z.ZodString;
1129
+ commit_sha: z.ZodString;
1130
+ commit_message: z.ZodOptional<z.ZodString>;
1131
+ }, z.core.$strip>>;
1132
+ }, z.core.$strip>;
1133
+ rollback_of: z.ZodOptional<z.ZodString>;
1134
+ config_version: z.ZodNumber;
1135
+ runtime: z.ZodOptional<z.ZodEnum<{
1136
+ serverless: "serverless";
1137
+ container: "container";
1138
+ }>>;
1139
+ image_digest: z.ZodOptional<z.ZodString>;
1140
+ steps: z.ZodArray<z.ZodObject<{
1141
+ name: z.ZodEnum<{
1142
+ check: "check";
1143
+ build: "build";
1144
+ release: "release";
1145
+ receive_source: "receive_source";
1146
+ smoke_test: "smoke_test";
1147
+ route: "route";
1148
+ health_check: "health_check";
1149
+ }>;
1150
+ status: z.ZodEnum<{
1151
+ running: "running";
1152
+ failed: "failed";
1153
+ pending: "pending";
1154
+ succeeded: "succeeded";
1155
+ skipped: "skipped";
1156
+ }>;
1157
+ started_at: z.ZodOptional<z.ZodISODateTime>;
1158
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
1159
+ message: z.ZodOptional<z.ZodString>;
1160
+ }, z.core.$strip>>;
1161
+ check: z.ZodOptional<z.ZodObject<{
1162
+ deployable: z.ZodBoolean;
1163
+ runtime: z.ZodEnum<{
1164
+ serverless: "serverless";
1165
+ container: "container";
1166
+ }>;
1167
+ issues: z.ZodArray<z.ZodObject<{
1168
+ code: z.ZodUnion<readonly [z.ZodEnum<{
1169
+ work_after_response: "work_after_response";
1170
+ in_process_scheduler: "in_process_scheduler";
1171
+ queue_consumer: "queue_consumer";
1172
+ websockets: "websockets";
1173
+ writes_outside_tmp: "writes_outside_tmp";
1174
+ needs_root: "needs_root";
1175
+ long_requests: "long_requests";
1176
+ large_bodies: "large_bodies";
1177
+ always_on: "always_on";
1178
+ slow_boot: "slow_boot";
1179
+ }>, z.ZodEnum<{
1180
+ database_not_configured: "database_not_configured";
1181
+ feature_unavailable: "feature_unavailable";
1182
+ missing_secret: "missing_secret";
1183
+ manifest_warning: "manifest_warning";
1184
+ }>]>;
1185
+ severity: z.ZodEnum<{
1186
+ blocker: "blocker";
1187
+ warning: "warning";
1188
+ }>;
1189
+ where: z.ZodOptional<z.ZodString>;
1190
+ evidence: z.ZodOptional<z.ZodString>;
1191
+ fix_in_code: z.ZodOptional<z.ZodString>;
1192
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
1193
+ trial: "trial";
1194
+ starter: "starter";
1195
+ pro: "pro";
1196
+ scale: "scale";
1197
+ }>>;
1198
+ docs_url: z.ZodOptional<z.ZodURL>;
1199
+ }, z.core.$strip>>;
1200
+ options: z.ZodArray<z.ZodObject<{
1201
+ plan: z.ZodEnum<{
1202
+ trial: "trial";
1203
+ starter: "starter";
1204
+ pro: "pro";
1205
+ scale: "scale";
1206
+ }>;
1207
+ monthly_usd: z.ZodNumber;
1208
+ requires: z.ZodString;
1209
+ available: z.ZodBoolean;
1210
+ waitlist_url: z.ZodOptional<z.ZodURL>;
1211
+ }, z.core.$strip>>;
1212
+ warnings: z.ZodArray<z.ZodString>;
1213
+ }, z.core.$strip>>;
1214
+ upload: z.ZodOptional<z.ZodObject<{
1215
+ url: z.ZodURL;
1216
+ method: z.ZodLiteral<"PUT">;
1217
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
1218
+ expires_at: z.ZodISODateTime;
1219
+ }, z.core.$strip>>;
1220
+ url: z.ZodOptional<z.ZodURL>;
1221
+ error: z.ZodOptional<z.ZodObject<{
1222
+ code: z.ZodEnum<{
1223
+ internal: "internal";
1224
+ unauthenticated: "unauthenticated";
1225
+ forbidden_scope: "forbidden_scope";
1226
+ approval_required: "approval_required";
1227
+ payment_required: "payment_required";
1228
+ quota_exceeded: "quota_exceeded";
1229
+ rate_limited: "rate_limited";
1230
+ suspended: "suspended";
1231
+ invalid_request: "invalid_request";
1232
+ invalid_manifest: "invalid_manifest";
1233
+ not_found: "not_found";
1234
+ conflict: "conflict";
1235
+ not_available: "not_available";
1236
+ plan_unavailable: "plan_unavailable";
1237
+ source_too_large: "source_too_large";
1238
+ build_failed: "build_failed";
1239
+ image_too_large: "image_too_large";
1240
+ migration_failed: "migration_failed";
1241
+ healthcheck_failed: "healthcheck_failed";
1242
+ app_crashed_on_start: "app_crashed_on_start";
1243
+ deploy_timeout: "deploy_timeout";
1244
+ capability_requires_plan: "capability_requires_plan";
1245
+ capability_unconfirmed: "capability_unconfirmed";
1246
+ domain_unverified: "domain_unverified";
1247
+ cert_pending: "cert_pending";
1248
+ db_quota_exceeded: "db_quota_exceeded";
1249
+ }>;
1250
+ message: z.ZodString;
1251
+ retryable: z.ZodBoolean;
1252
+ suggestion: z.ZodOptional<z.ZodString>;
1253
+ docs_url: z.ZodOptional<z.ZodURL>;
1254
+ request_id: z.ZodOptional<z.ZodString>;
1255
+ deployment_id: z.ZodOptional<z.ZodString>;
1256
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
1257
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1258
+ }, z.core.$strip>>;
1259
+ created_by: z.ZodObject<{
1260
+ kind: z.ZodEnum<{
1261
+ github: "github";
1262
+ user: "user";
1263
+ api_key: "api_key";
1264
+ system: "system";
1265
+ }>;
1266
+ id: z.ZodString;
1267
+ }, z.core.$strip>;
1268
+ created_at: z.ZodISODateTime;
1269
+ updated_at: z.ZodISODateTime;
1270
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
1271
+ }, z.core.$strip>;
1272
+ }, z.core.$strip>>;
1273
+ export declare const DeploymentLogLine: z.ZodObject<{
1274
+ ts: z.ZodISODateTime;
1275
+ step: z.ZodEnum<{
1276
+ check: "check";
1277
+ build: "build";
1278
+ release: "release";
1279
+ receive_source: "receive_source";
1280
+ smoke_test: "smoke_test";
1281
+ route: "route";
1282
+ health_check: "health_check";
1283
+ }>;
1284
+ message: z.ZodString;
1285
+ }, z.core.$strip>;
1286
+ export declare const get_deployment_logs: import("./define.js").OperationDef<z.ZodObject<{
1287
+ deployment_id: z.ZodString;
1288
+ step: z.ZodOptional<z.ZodEnum<{
1289
+ check: "check";
1290
+ build: "build";
1291
+ release: "release";
1292
+ receive_source: "receive_source";
1293
+ smoke_test: "smoke_test";
1294
+ route: "route";
1295
+ health_check: "health_check";
1296
+ }>>;
1297
+ grep: z.ZodOptional<z.ZodString>;
1298
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1299
+ cursor: z.ZodOptional<z.ZodString>;
1300
+ }, z.core.$strip>, z.ZodObject<{
1301
+ lines: z.ZodArray<z.ZodObject<{
1302
+ ts: z.ZodISODateTime;
1303
+ step: z.ZodEnum<{
1304
+ check: "check";
1305
+ build: "build";
1306
+ release: "release";
1307
+ receive_source: "receive_source";
1308
+ smoke_test: "smoke_test";
1309
+ route: "route";
1310
+ health_check: "health_check";
1311
+ }>;
1312
+ message: z.ZodString;
1313
+ }, z.core.$strip>>;
1314
+ next_cursor: z.ZodOptional<z.ZodString>;
1315
+ }, z.core.$strip>>;
1316
+ export declare const rollback: import("./define.js").OperationDef<z.ZodObject<{
1317
+ app_id: z.ZodString;
1318
+ to_deployment_id: z.ZodString;
1319
+ }, z.core.$strip>, z.ZodObject<{
1320
+ deployment: z.ZodObject<{
1321
+ id: z.ZodString;
1322
+ app_id: z.ZodString;
1323
+ number: z.ZodNumber;
1324
+ status: z.ZodEnum<{
1325
+ awaiting_source: "awaiting_source";
1326
+ queued: "queued";
1327
+ running: "running";
1328
+ live: "live";
1329
+ superseded: "superseded";
1330
+ failed: "failed";
1331
+ cancelled: "cancelled";
1332
+ }>;
1333
+ trigger: z.ZodEnum<{
1334
+ source: "source";
1335
+ config: "config";
1336
+ rollback: "rollback";
1337
+ git_push: "git_push";
1338
+ }>;
1339
+ source: z.ZodObject<{
1340
+ type: z.ZodEnum<{
1341
+ github: "github";
1342
+ upload: "upload";
1343
+ files: "files";
1344
+ }>;
1345
+ sha256: z.ZodOptional<z.ZodString>;
1346
+ size_bytes: z.ZodOptional<z.ZodNumber>;
1347
+ file_count: z.ZodOptional<z.ZodNumber>;
1348
+ base_deployment_id: z.ZodOptional<z.ZodString>;
1349
+ github: z.ZodOptional<z.ZodObject<{
1350
+ repo: z.ZodString;
1351
+ ref: z.ZodString;
1352
+ commit_sha: z.ZodString;
1353
+ commit_message: z.ZodOptional<z.ZodString>;
1354
+ }, z.core.$strip>>;
1355
+ }, z.core.$strip>;
1356
+ rollback_of: z.ZodOptional<z.ZodString>;
1357
+ config_version: z.ZodNumber;
1358
+ runtime: z.ZodOptional<z.ZodEnum<{
1359
+ serverless: "serverless";
1360
+ container: "container";
1361
+ }>>;
1362
+ image_digest: z.ZodOptional<z.ZodString>;
1363
+ steps: z.ZodArray<z.ZodObject<{
1364
+ name: z.ZodEnum<{
1365
+ check: "check";
1366
+ build: "build";
1367
+ release: "release";
1368
+ receive_source: "receive_source";
1369
+ smoke_test: "smoke_test";
1370
+ route: "route";
1371
+ health_check: "health_check";
1372
+ }>;
1373
+ status: z.ZodEnum<{
1374
+ running: "running";
1375
+ failed: "failed";
1376
+ pending: "pending";
1377
+ succeeded: "succeeded";
1378
+ skipped: "skipped";
1379
+ }>;
1380
+ started_at: z.ZodOptional<z.ZodISODateTime>;
1381
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
1382
+ message: z.ZodOptional<z.ZodString>;
1383
+ }, z.core.$strip>>;
1384
+ check: z.ZodOptional<z.ZodObject<{
1385
+ deployable: z.ZodBoolean;
1386
+ runtime: z.ZodEnum<{
1387
+ serverless: "serverless";
1388
+ container: "container";
1389
+ }>;
1390
+ issues: z.ZodArray<z.ZodObject<{
1391
+ code: z.ZodUnion<readonly [z.ZodEnum<{
1392
+ work_after_response: "work_after_response";
1393
+ in_process_scheduler: "in_process_scheduler";
1394
+ queue_consumer: "queue_consumer";
1395
+ websockets: "websockets";
1396
+ writes_outside_tmp: "writes_outside_tmp";
1397
+ needs_root: "needs_root";
1398
+ long_requests: "long_requests";
1399
+ large_bodies: "large_bodies";
1400
+ always_on: "always_on";
1401
+ slow_boot: "slow_boot";
1402
+ }>, z.ZodEnum<{
1403
+ database_not_configured: "database_not_configured";
1404
+ feature_unavailable: "feature_unavailable";
1405
+ missing_secret: "missing_secret";
1406
+ manifest_warning: "manifest_warning";
1407
+ }>]>;
1408
+ severity: z.ZodEnum<{
1409
+ blocker: "blocker";
1410
+ warning: "warning";
1411
+ }>;
1412
+ where: z.ZodOptional<z.ZodString>;
1413
+ evidence: z.ZodOptional<z.ZodString>;
1414
+ fix_in_code: z.ZodOptional<z.ZodString>;
1415
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
1416
+ trial: "trial";
1417
+ starter: "starter";
1418
+ pro: "pro";
1419
+ scale: "scale";
1420
+ }>>;
1421
+ docs_url: z.ZodOptional<z.ZodURL>;
1422
+ }, z.core.$strip>>;
1423
+ options: z.ZodArray<z.ZodObject<{
1424
+ plan: z.ZodEnum<{
1425
+ trial: "trial";
1426
+ starter: "starter";
1427
+ pro: "pro";
1428
+ scale: "scale";
1429
+ }>;
1430
+ monthly_usd: z.ZodNumber;
1431
+ requires: z.ZodString;
1432
+ available: z.ZodBoolean;
1433
+ waitlist_url: z.ZodOptional<z.ZodURL>;
1434
+ }, z.core.$strip>>;
1435
+ warnings: z.ZodArray<z.ZodString>;
1436
+ }, z.core.$strip>>;
1437
+ upload: z.ZodOptional<z.ZodObject<{
1438
+ url: z.ZodURL;
1439
+ method: z.ZodLiteral<"PUT">;
1440
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
1441
+ expires_at: z.ZodISODateTime;
1442
+ }, z.core.$strip>>;
1443
+ url: z.ZodOptional<z.ZodURL>;
1444
+ error: z.ZodOptional<z.ZodObject<{
1445
+ code: z.ZodEnum<{
1446
+ internal: "internal";
1447
+ unauthenticated: "unauthenticated";
1448
+ forbidden_scope: "forbidden_scope";
1449
+ approval_required: "approval_required";
1450
+ payment_required: "payment_required";
1451
+ quota_exceeded: "quota_exceeded";
1452
+ rate_limited: "rate_limited";
1453
+ suspended: "suspended";
1454
+ invalid_request: "invalid_request";
1455
+ invalid_manifest: "invalid_manifest";
1456
+ not_found: "not_found";
1457
+ conflict: "conflict";
1458
+ not_available: "not_available";
1459
+ plan_unavailable: "plan_unavailable";
1460
+ source_too_large: "source_too_large";
1461
+ build_failed: "build_failed";
1462
+ image_too_large: "image_too_large";
1463
+ migration_failed: "migration_failed";
1464
+ healthcheck_failed: "healthcheck_failed";
1465
+ app_crashed_on_start: "app_crashed_on_start";
1466
+ deploy_timeout: "deploy_timeout";
1467
+ capability_requires_plan: "capability_requires_plan";
1468
+ capability_unconfirmed: "capability_unconfirmed";
1469
+ domain_unverified: "domain_unverified";
1470
+ cert_pending: "cert_pending";
1471
+ db_quota_exceeded: "db_quota_exceeded";
1472
+ }>;
1473
+ message: z.ZodString;
1474
+ retryable: z.ZodBoolean;
1475
+ suggestion: z.ZodOptional<z.ZodString>;
1476
+ docs_url: z.ZodOptional<z.ZodURL>;
1477
+ request_id: z.ZodOptional<z.ZodString>;
1478
+ deployment_id: z.ZodOptional<z.ZodString>;
1479
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
1480
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1481
+ }, z.core.$strip>>;
1482
+ created_by: z.ZodObject<{
1483
+ kind: z.ZodEnum<{
1484
+ github: "github";
1485
+ user: "user";
1486
+ api_key: "api_key";
1487
+ system: "system";
1488
+ }>;
1489
+ id: z.ZodString;
1490
+ }, z.core.$strip>;
1491
+ created_at: z.ZodISODateTime;
1492
+ updated_at: z.ZodISODateTime;
1493
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
1494
+ }, z.core.$strip>;
1495
+ }, z.core.$strip>>;