@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.
package/dist/app.d.ts ADDED
@@ -0,0 +1,860 @@
1
+ import { z } from "zod";
2
+ export declare const App: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ url: z.ZodURL;
6
+ state: z.ZodEnum<{
7
+ active: "active";
8
+ deleting: "deleting";
9
+ }>;
10
+ created_at: z.ZodISODateTime;
11
+ updated_at: z.ZodISODateTime;
12
+ }, z.core.$strip>;
13
+ export declare const AppConfig: z.ZodObject<{
14
+ version: z.ZodNumber;
15
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
16
+ secrets: z.ZodArray<z.ZodObject<{
17
+ name: z.ZodString;
18
+ updated_at: z.ZodISODateTime;
19
+ }, z.core.$strip>>;
20
+ platform_env: z.ZodArray<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ export declare const list_apps: import("./define.js").OperationDef<z.ZodObject<{
23
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
24
+ cursor: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ apps: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodString;
28
+ name: z.ZodString;
29
+ url: z.ZodURL;
30
+ state: z.ZodEnum<{
31
+ active: "active";
32
+ deleting: "deleting";
33
+ }>;
34
+ created_at: z.ZodISODateTime;
35
+ updated_at: z.ZodISODateTime;
36
+ }, z.core.$strip>>;
37
+ next_cursor: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ export declare const create_app: import("./define.js").OperationDef<z.ZodObject<{
40
+ name: z.ZodString;
41
+ dry_run: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ app: z.ZodObject<{
44
+ id: z.ZodString;
45
+ name: z.ZodString;
46
+ url: z.ZodURL;
47
+ state: z.ZodEnum<{
48
+ active: "active";
49
+ deleting: "deleting";
50
+ }>;
51
+ created_at: z.ZodISODateTime;
52
+ updated_at: z.ZodISODateTime;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>>;
55
+ export declare const get_app: import("./define.js").OperationDef<z.ZodObject<{
56
+ app_id: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ app: z.ZodObject<{
59
+ id: z.ZodString;
60
+ name: z.ZodString;
61
+ url: z.ZodURL;
62
+ state: z.ZodEnum<{
63
+ active: "active";
64
+ deleting: "deleting";
65
+ }>;
66
+ created_at: z.ZodISODateTime;
67
+ updated_at: z.ZodISODateTime;
68
+ }, z.core.$strip>;
69
+ }, z.core.$strip>>;
70
+ export declare const delete_app: import("./define.js").OperationDef<z.ZodObject<{
71
+ app_id: z.ZodString;
72
+ confirm_name: z.ZodString;
73
+ dry_run: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ app: z.ZodObject<{
76
+ id: z.ZodString;
77
+ name: z.ZodString;
78
+ url: z.ZodURL;
79
+ state: z.ZodEnum<{
80
+ active: "active";
81
+ deleting: "deleting";
82
+ }>;
83
+ created_at: z.ZodISODateTime;
84
+ updated_at: z.ZodISODateTime;
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>>;
87
+ export declare const list_config: import("./define.js").OperationDef<z.ZodObject<{
88
+ app_id: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ version: z.ZodNumber;
91
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
92
+ secrets: z.ZodArray<z.ZodObject<{
93
+ name: z.ZodString;
94
+ updated_at: z.ZodISODateTime;
95
+ }, z.core.$strip>>;
96
+ platform_env: z.ZodArray<z.ZodString>;
97
+ }, z.core.$strip>>;
98
+ export declare const set_env: import("./define.js").OperationDef<z.ZodObject<{
99
+ app_id: z.ZodString;
100
+ vars: z.ZodRecord<z.ZodString, z.ZodString>;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ config: z.ZodObject<{
103
+ version: z.ZodNumber;
104
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
105
+ secrets: z.ZodArray<z.ZodObject<{
106
+ name: z.ZodString;
107
+ updated_at: z.ZodISODateTime;
108
+ }, z.core.$strip>>;
109
+ platform_env: z.ZodArray<z.ZodString>;
110
+ }, z.core.$strip>;
111
+ deployment: z.ZodNullable<z.ZodObject<{
112
+ id: z.ZodString;
113
+ app_id: z.ZodString;
114
+ number: z.ZodNumber;
115
+ status: z.ZodEnum<{
116
+ awaiting_source: "awaiting_source";
117
+ queued: "queued";
118
+ running: "running";
119
+ live: "live";
120
+ superseded: "superseded";
121
+ failed: "failed";
122
+ cancelled: "cancelled";
123
+ }>;
124
+ trigger: z.ZodEnum<{
125
+ source: "source";
126
+ config: "config";
127
+ rollback: "rollback";
128
+ git_push: "git_push";
129
+ }>;
130
+ source: z.ZodObject<{
131
+ type: z.ZodEnum<{
132
+ github: "github";
133
+ upload: "upload";
134
+ files: "files";
135
+ }>;
136
+ sha256: z.ZodOptional<z.ZodString>;
137
+ size_bytes: z.ZodOptional<z.ZodNumber>;
138
+ file_count: z.ZodOptional<z.ZodNumber>;
139
+ base_deployment_id: z.ZodOptional<z.ZodString>;
140
+ github: z.ZodOptional<z.ZodObject<{
141
+ repo: z.ZodString;
142
+ ref: z.ZodString;
143
+ commit_sha: z.ZodString;
144
+ commit_message: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>;
147
+ rollback_of: z.ZodOptional<z.ZodString>;
148
+ config_version: z.ZodNumber;
149
+ runtime: z.ZodOptional<z.ZodEnum<{
150
+ serverless: "serverless";
151
+ container: "container";
152
+ }>>;
153
+ image_digest: z.ZodOptional<z.ZodString>;
154
+ steps: z.ZodArray<z.ZodObject<{
155
+ name: z.ZodEnum<{
156
+ check: "check";
157
+ build: "build";
158
+ release: "release";
159
+ receive_source: "receive_source";
160
+ smoke_test: "smoke_test";
161
+ route: "route";
162
+ health_check: "health_check";
163
+ }>;
164
+ status: z.ZodEnum<{
165
+ running: "running";
166
+ failed: "failed";
167
+ pending: "pending";
168
+ succeeded: "succeeded";
169
+ skipped: "skipped";
170
+ }>;
171
+ started_at: z.ZodOptional<z.ZodISODateTime>;
172
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
173
+ message: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strip>>;
175
+ check: z.ZodOptional<z.ZodObject<{
176
+ deployable: z.ZodBoolean;
177
+ runtime: z.ZodEnum<{
178
+ serverless: "serverless";
179
+ container: "container";
180
+ }>;
181
+ issues: z.ZodArray<z.ZodObject<{
182
+ code: z.ZodUnion<readonly [z.ZodEnum<{
183
+ work_after_response: "work_after_response";
184
+ in_process_scheduler: "in_process_scheduler";
185
+ queue_consumer: "queue_consumer";
186
+ websockets: "websockets";
187
+ writes_outside_tmp: "writes_outside_tmp";
188
+ needs_root: "needs_root";
189
+ long_requests: "long_requests";
190
+ large_bodies: "large_bodies";
191
+ always_on: "always_on";
192
+ slow_boot: "slow_boot";
193
+ }>, z.ZodEnum<{
194
+ database_not_configured: "database_not_configured";
195
+ feature_unavailable: "feature_unavailable";
196
+ missing_secret: "missing_secret";
197
+ manifest_warning: "manifest_warning";
198
+ }>]>;
199
+ severity: z.ZodEnum<{
200
+ blocker: "blocker";
201
+ warning: "warning";
202
+ }>;
203
+ where: z.ZodOptional<z.ZodString>;
204
+ evidence: z.ZodOptional<z.ZodString>;
205
+ fix_in_code: z.ZodOptional<z.ZodString>;
206
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
207
+ trial: "trial";
208
+ starter: "starter";
209
+ pro: "pro";
210
+ scale: "scale";
211
+ }>>;
212
+ docs_url: z.ZodOptional<z.ZodURL>;
213
+ }, z.core.$strip>>;
214
+ options: z.ZodArray<z.ZodObject<{
215
+ plan: z.ZodEnum<{
216
+ trial: "trial";
217
+ starter: "starter";
218
+ pro: "pro";
219
+ scale: "scale";
220
+ }>;
221
+ monthly_usd: z.ZodNumber;
222
+ requires: z.ZodString;
223
+ available: z.ZodBoolean;
224
+ waitlist_url: z.ZodOptional<z.ZodURL>;
225
+ }, z.core.$strip>>;
226
+ warnings: z.ZodArray<z.ZodString>;
227
+ }, z.core.$strip>>;
228
+ upload: z.ZodOptional<z.ZodObject<{
229
+ url: z.ZodURL;
230
+ method: z.ZodLiteral<"PUT">;
231
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
232
+ expires_at: z.ZodISODateTime;
233
+ }, z.core.$strip>>;
234
+ url: z.ZodOptional<z.ZodURL>;
235
+ error: z.ZodOptional<z.ZodObject<{
236
+ code: z.ZodEnum<{
237
+ internal: "internal";
238
+ unauthenticated: "unauthenticated";
239
+ forbidden_scope: "forbidden_scope";
240
+ approval_required: "approval_required";
241
+ payment_required: "payment_required";
242
+ quota_exceeded: "quota_exceeded";
243
+ rate_limited: "rate_limited";
244
+ suspended: "suspended";
245
+ invalid_request: "invalid_request";
246
+ invalid_manifest: "invalid_manifest";
247
+ not_found: "not_found";
248
+ conflict: "conflict";
249
+ not_available: "not_available";
250
+ plan_unavailable: "plan_unavailable";
251
+ source_too_large: "source_too_large";
252
+ build_failed: "build_failed";
253
+ image_too_large: "image_too_large";
254
+ migration_failed: "migration_failed";
255
+ healthcheck_failed: "healthcheck_failed";
256
+ app_crashed_on_start: "app_crashed_on_start";
257
+ deploy_timeout: "deploy_timeout";
258
+ capability_requires_plan: "capability_requires_plan";
259
+ capability_unconfirmed: "capability_unconfirmed";
260
+ domain_unverified: "domain_unverified";
261
+ cert_pending: "cert_pending";
262
+ db_quota_exceeded: "db_quota_exceeded";
263
+ }>;
264
+ message: z.ZodString;
265
+ retryable: z.ZodBoolean;
266
+ suggestion: z.ZodOptional<z.ZodString>;
267
+ docs_url: z.ZodOptional<z.ZodURL>;
268
+ request_id: z.ZodOptional<z.ZodString>;
269
+ deployment_id: z.ZodOptional<z.ZodString>;
270
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
+ }, z.core.$strip>>;
273
+ created_by: z.ZodObject<{
274
+ kind: z.ZodEnum<{
275
+ github: "github";
276
+ user: "user";
277
+ api_key: "api_key";
278
+ system: "system";
279
+ }>;
280
+ id: z.ZodString;
281
+ }, z.core.$strip>;
282
+ created_at: z.ZodISODateTime;
283
+ updated_at: z.ZodISODateTime;
284
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
285
+ }, z.core.$strip>>;
286
+ }, z.core.$strip>>;
287
+ export declare const unset_env: import("./define.js").OperationDef<z.ZodObject<{
288
+ app_id: z.ZodString;
289
+ names: z.ZodArray<z.ZodString>;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ config: z.ZodObject<{
292
+ version: z.ZodNumber;
293
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
294
+ secrets: z.ZodArray<z.ZodObject<{
295
+ name: z.ZodString;
296
+ updated_at: z.ZodISODateTime;
297
+ }, z.core.$strip>>;
298
+ platform_env: z.ZodArray<z.ZodString>;
299
+ }, z.core.$strip>;
300
+ deployment: z.ZodNullable<z.ZodObject<{
301
+ id: z.ZodString;
302
+ app_id: z.ZodString;
303
+ number: z.ZodNumber;
304
+ status: z.ZodEnum<{
305
+ awaiting_source: "awaiting_source";
306
+ queued: "queued";
307
+ running: "running";
308
+ live: "live";
309
+ superseded: "superseded";
310
+ failed: "failed";
311
+ cancelled: "cancelled";
312
+ }>;
313
+ trigger: z.ZodEnum<{
314
+ source: "source";
315
+ config: "config";
316
+ rollback: "rollback";
317
+ git_push: "git_push";
318
+ }>;
319
+ source: z.ZodObject<{
320
+ type: z.ZodEnum<{
321
+ github: "github";
322
+ upload: "upload";
323
+ files: "files";
324
+ }>;
325
+ sha256: z.ZodOptional<z.ZodString>;
326
+ size_bytes: z.ZodOptional<z.ZodNumber>;
327
+ file_count: z.ZodOptional<z.ZodNumber>;
328
+ base_deployment_id: z.ZodOptional<z.ZodString>;
329
+ github: z.ZodOptional<z.ZodObject<{
330
+ repo: z.ZodString;
331
+ ref: z.ZodString;
332
+ commit_sha: z.ZodString;
333
+ commit_message: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strip>>;
335
+ }, z.core.$strip>;
336
+ rollback_of: z.ZodOptional<z.ZodString>;
337
+ config_version: z.ZodNumber;
338
+ runtime: z.ZodOptional<z.ZodEnum<{
339
+ serverless: "serverless";
340
+ container: "container";
341
+ }>>;
342
+ image_digest: z.ZodOptional<z.ZodString>;
343
+ steps: z.ZodArray<z.ZodObject<{
344
+ name: z.ZodEnum<{
345
+ check: "check";
346
+ build: "build";
347
+ release: "release";
348
+ receive_source: "receive_source";
349
+ smoke_test: "smoke_test";
350
+ route: "route";
351
+ health_check: "health_check";
352
+ }>;
353
+ status: z.ZodEnum<{
354
+ running: "running";
355
+ failed: "failed";
356
+ pending: "pending";
357
+ succeeded: "succeeded";
358
+ skipped: "skipped";
359
+ }>;
360
+ started_at: z.ZodOptional<z.ZodISODateTime>;
361
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
362
+ message: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>>;
364
+ check: z.ZodOptional<z.ZodObject<{
365
+ deployable: z.ZodBoolean;
366
+ runtime: z.ZodEnum<{
367
+ serverless: "serverless";
368
+ container: "container";
369
+ }>;
370
+ issues: z.ZodArray<z.ZodObject<{
371
+ code: z.ZodUnion<readonly [z.ZodEnum<{
372
+ work_after_response: "work_after_response";
373
+ in_process_scheduler: "in_process_scheduler";
374
+ queue_consumer: "queue_consumer";
375
+ websockets: "websockets";
376
+ writes_outside_tmp: "writes_outside_tmp";
377
+ needs_root: "needs_root";
378
+ long_requests: "long_requests";
379
+ large_bodies: "large_bodies";
380
+ always_on: "always_on";
381
+ slow_boot: "slow_boot";
382
+ }>, z.ZodEnum<{
383
+ database_not_configured: "database_not_configured";
384
+ feature_unavailable: "feature_unavailable";
385
+ missing_secret: "missing_secret";
386
+ manifest_warning: "manifest_warning";
387
+ }>]>;
388
+ severity: z.ZodEnum<{
389
+ blocker: "blocker";
390
+ warning: "warning";
391
+ }>;
392
+ where: z.ZodOptional<z.ZodString>;
393
+ evidence: z.ZodOptional<z.ZodString>;
394
+ fix_in_code: z.ZodOptional<z.ZodString>;
395
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
396
+ trial: "trial";
397
+ starter: "starter";
398
+ pro: "pro";
399
+ scale: "scale";
400
+ }>>;
401
+ docs_url: z.ZodOptional<z.ZodURL>;
402
+ }, z.core.$strip>>;
403
+ options: z.ZodArray<z.ZodObject<{
404
+ plan: z.ZodEnum<{
405
+ trial: "trial";
406
+ starter: "starter";
407
+ pro: "pro";
408
+ scale: "scale";
409
+ }>;
410
+ monthly_usd: z.ZodNumber;
411
+ requires: z.ZodString;
412
+ available: z.ZodBoolean;
413
+ waitlist_url: z.ZodOptional<z.ZodURL>;
414
+ }, z.core.$strip>>;
415
+ warnings: z.ZodArray<z.ZodString>;
416
+ }, z.core.$strip>>;
417
+ upload: z.ZodOptional<z.ZodObject<{
418
+ url: z.ZodURL;
419
+ method: z.ZodLiteral<"PUT">;
420
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
421
+ expires_at: z.ZodISODateTime;
422
+ }, z.core.$strip>>;
423
+ url: z.ZodOptional<z.ZodURL>;
424
+ error: z.ZodOptional<z.ZodObject<{
425
+ code: z.ZodEnum<{
426
+ internal: "internal";
427
+ unauthenticated: "unauthenticated";
428
+ forbidden_scope: "forbidden_scope";
429
+ approval_required: "approval_required";
430
+ payment_required: "payment_required";
431
+ quota_exceeded: "quota_exceeded";
432
+ rate_limited: "rate_limited";
433
+ suspended: "suspended";
434
+ invalid_request: "invalid_request";
435
+ invalid_manifest: "invalid_manifest";
436
+ not_found: "not_found";
437
+ conflict: "conflict";
438
+ not_available: "not_available";
439
+ plan_unavailable: "plan_unavailable";
440
+ source_too_large: "source_too_large";
441
+ build_failed: "build_failed";
442
+ image_too_large: "image_too_large";
443
+ migration_failed: "migration_failed";
444
+ healthcheck_failed: "healthcheck_failed";
445
+ app_crashed_on_start: "app_crashed_on_start";
446
+ deploy_timeout: "deploy_timeout";
447
+ capability_requires_plan: "capability_requires_plan";
448
+ capability_unconfirmed: "capability_unconfirmed";
449
+ domain_unverified: "domain_unverified";
450
+ cert_pending: "cert_pending";
451
+ db_quota_exceeded: "db_quota_exceeded";
452
+ }>;
453
+ message: z.ZodString;
454
+ retryable: z.ZodBoolean;
455
+ suggestion: z.ZodOptional<z.ZodString>;
456
+ docs_url: z.ZodOptional<z.ZodURL>;
457
+ request_id: z.ZodOptional<z.ZodString>;
458
+ deployment_id: z.ZodOptional<z.ZodString>;
459
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
461
+ }, z.core.$strip>>;
462
+ created_by: z.ZodObject<{
463
+ kind: z.ZodEnum<{
464
+ github: "github";
465
+ user: "user";
466
+ api_key: "api_key";
467
+ system: "system";
468
+ }>;
469
+ id: z.ZodString;
470
+ }, z.core.$strip>;
471
+ created_at: z.ZodISODateTime;
472
+ updated_at: z.ZodISODateTime;
473
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
474
+ }, z.core.$strip>>;
475
+ }, z.core.$strip>>;
476
+ export declare const set_secret: import("./define.js").OperationDef<z.ZodObject<{
477
+ app_id: z.ZodString;
478
+ name: z.ZodString;
479
+ value: z.ZodString;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ config: z.ZodObject<{
482
+ version: z.ZodNumber;
483
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
484
+ secrets: z.ZodArray<z.ZodObject<{
485
+ name: z.ZodString;
486
+ updated_at: z.ZodISODateTime;
487
+ }, z.core.$strip>>;
488
+ platform_env: z.ZodArray<z.ZodString>;
489
+ }, z.core.$strip>;
490
+ deployment: z.ZodNullable<z.ZodObject<{
491
+ id: z.ZodString;
492
+ app_id: z.ZodString;
493
+ number: z.ZodNumber;
494
+ status: z.ZodEnum<{
495
+ awaiting_source: "awaiting_source";
496
+ queued: "queued";
497
+ running: "running";
498
+ live: "live";
499
+ superseded: "superseded";
500
+ failed: "failed";
501
+ cancelled: "cancelled";
502
+ }>;
503
+ trigger: z.ZodEnum<{
504
+ source: "source";
505
+ config: "config";
506
+ rollback: "rollback";
507
+ git_push: "git_push";
508
+ }>;
509
+ source: z.ZodObject<{
510
+ type: z.ZodEnum<{
511
+ github: "github";
512
+ upload: "upload";
513
+ files: "files";
514
+ }>;
515
+ sha256: z.ZodOptional<z.ZodString>;
516
+ size_bytes: z.ZodOptional<z.ZodNumber>;
517
+ file_count: z.ZodOptional<z.ZodNumber>;
518
+ base_deployment_id: z.ZodOptional<z.ZodString>;
519
+ github: z.ZodOptional<z.ZodObject<{
520
+ repo: z.ZodString;
521
+ ref: z.ZodString;
522
+ commit_sha: z.ZodString;
523
+ commit_message: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strip>>;
525
+ }, z.core.$strip>;
526
+ rollback_of: z.ZodOptional<z.ZodString>;
527
+ config_version: z.ZodNumber;
528
+ runtime: z.ZodOptional<z.ZodEnum<{
529
+ serverless: "serverless";
530
+ container: "container";
531
+ }>>;
532
+ image_digest: z.ZodOptional<z.ZodString>;
533
+ steps: z.ZodArray<z.ZodObject<{
534
+ name: z.ZodEnum<{
535
+ check: "check";
536
+ build: "build";
537
+ release: "release";
538
+ receive_source: "receive_source";
539
+ smoke_test: "smoke_test";
540
+ route: "route";
541
+ health_check: "health_check";
542
+ }>;
543
+ status: z.ZodEnum<{
544
+ running: "running";
545
+ failed: "failed";
546
+ pending: "pending";
547
+ succeeded: "succeeded";
548
+ skipped: "skipped";
549
+ }>;
550
+ started_at: z.ZodOptional<z.ZodISODateTime>;
551
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
552
+ message: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strip>>;
554
+ check: z.ZodOptional<z.ZodObject<{
555
+ deployable: z.ZodBoolean;
556
+ runtime: z.ZodEnum<{
557
+ serverless: "serverless";
558
+ container: "container";
559
+ }>;
560
+ issues: z.ZodArray<z.ZodObject<{
561
+ code: z.ZodUnion<readonly [z.ZodEnum<{
562
+ work_after_response: "work_after_response";
563
+ in_process_scheduler: "in_process_scheduler";
564
+ queue_consumer: "queue_consumer";
565
+ websockets: "websockets";
566
+ writes_outside_tmp: "writes_outside_tmp";
567
+ needs_root: "needs_root";
568
+ long_requests: "long_requests";
569
+ large_bodies: "large_bodies";
570
+ always_on: "always_on";
571
+ slow_boot: "slow_boot";
572
+ }>, z.ZodEnum<{
573
+ database_not_configured: "database_not_configured";
574
+ feature_unavailable: "feature_unavailable";
575
+ missing_secret: "missing_secret";
576
+ manifest_warning: "manifest_warning";
577
+ }>]>;
578
+ severity: z.ZodEnum<{
579
+ blocker: "blocker";
580
+ warning: "warning";
581
+ }>;
582
+ where: z.ZodOptional<z.ZodString>;
583
+ evidence: z.ZodOptional<z.ZodString>;
584
+ fix_in_code: z.ZodOptional<z.ZodString>;
585
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
586
+ trial: "trial";
587
+ starter: "starter";
588
+ pro: "pro";
589
+ scale: "scale";
590
+ }>>;
591
+ docs_url: z.ZodOptional<z.ZodURL>;
592
+ }, z.core.$strip>>;
593
+ options: z.ZodArray<z.ZodObject<{
594
+ plan: z.ZodEnum<{
595
+ trial: "trial";
596
+ starter: "starter";
597
+ pro: "pro";
598
+ scale: "scale";
599
+ }>;
600
+ monthly_usd: z.ZodNumber;
601
+ requires: z.ZodString;
602
+ available: z.ZodBoolean;
603
+ waitlist_url: z.ZodOptional<z.ZodURL>;
604
+ }, z.core.$strip>>;
605
+ warnings: z.ZodArray<z.ZodString>;
606
+ }, z.core.$strip>>;
607
+ upload: z.ZodOptional<z.ZodObject<{
608
+ url: z.ZodURL;
609
+ method: z.ZodLiteral<"PUT">;
610
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
611
+ expires_at: z.ZodISODateTime;
612
+ }, z.core.$strip>>;
613
+ url: z.ZodOptional<z.ZodURL>;
614
+ error: z.ZodOptional<z.ZodObject<{
615
+ code: z.ZodEnum<{
616
+ internal: "internal";
617
+ unauthenticated: "unauthenticated";
618
+ forbidden_scope: "forbidden_scope";
619
+ approval_required: "approval_required";
620
+ payment_required: "payment_required";
621
+ quota_exceeded: "quota_exceeded";
622
+ rate_limited: "rate_limited";
623
+ suspended: "suspended";
624
+ invalid_request: "invalid_request";
625
+ invalid_manifest: "invalid_manifest";
626
+ not_found: "not_found";
627
+ conflict: "conflict";
628
+ not_available: "not_available";
629
+ plan_unavailable: "plan_unavailable";
630
+ source_too_large: "source_too_large";
631
+ build_failed: "build_failed";
632
+ image_too_large: "image_too_large";
633
+ migration_failed: "migration_failed";
634
+ healthcheck_failed: "healthcheck_failed";
635
+ app_crashed_on_start: "app_crashed_on_start";
636
+ deploy_timeout: "deploy_timeout";
637
+ capability_requires_plan: "capability_requires_plan";
638
+ capability_unconfirmed: "capability_unconfirmed";
639
+ domain_unverified: "domain_unverified";
640
+ cert_pending: "cert_pending";
641
+ db_quota_exceeded: "db_quota_exceeded";
642
+ }>;
643
+ message: z.ZodString;
644
+ retryable: z.ZodBoolean;
645
+ suggestion: z.ZodOptional<z.ZodString>;
646
+ docs_url: z.ZodOptional<z.ZodURL>;
647
+ request_id: z.ZodOptional<z.ZodString>;
648
+ deployment_id: z.ZodOptional<z.ZodString>;
649
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
650
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
651
+ }, z.core.$strip>>;
652
+ created_by: z.ZodObject<{
653
+ kind: z.ZodEnum<{
654
+ github: "github";
655
+ user: "user";
656
+ api_key: "api_key";
657
+ system: "system";
658
+ }>;
659
+ id: z.ZodString;
660
+ }, z.core.$strip>;
661
+ created_at: z.ZodISODateTime;
662
+ updated_at: z.ZodISODateTime;
663
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
664
+ }, z.core.$strip>>;
665
+ }, z.core.$strip>>;
666
+ export declare const generate_secret: import("./define.js").OperationDef<z.ZodObject<{
667
+ app_id: z.ZodString;
668
+ name: z.ZodString;
669
+ length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
670
+ charset: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
671
+ base64url: "base64url";
672
+ hex: "hex";
673
+ alphanumeric: "alphanumeric";
674
+ }>>>;
675
+ }, z.core.$strip>, z.ZodObject<{
676
+ config: z.ZodObject<{
677
+ version: z.ZodNumber;
678
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
679
+ secrets: z.ZodArray<z.ZodObject<{
680
+ name: z.ZodString;
681
+ updated_at: z.ZodISODateTime;
682
+ }, z.core.$strip>>;
683
+ platform_env: z.ZodArray<z.ZodString>;
684
+ }, z.core.$strip>;
685
+ deployment: z.ZodNullable<z.ZodObject<{
686
+ id: z.ZodString;
687
+ app_id: z.ZodString;
688
+ number: z.ZodNumber;
689
+ status: z.ZodEnum<{
690
+ awaiting_source: "awaiting_source";
691
+ queued: "queued";
692
+ running: "running";
693
+ live: "live";
694
+ superseded: "superseded";
695
+ failed: "failed";
696
+ cancelled: "cancelled";
697
+ }>;
698
+ trigger: z.ZodEnum<{
699
+ source: "source";
700
+ config: "config";
701
+ rollback: "rollback";
702
+ git_push: "git_push";
703
+ }>;
704
+ source: z.ZodObject<{
705
+ type: z.ZodEnum<{
706
+ github: "github";
707
+ upload: "upload";
708
+ files: "files";
709
+ }>;
710
+ sha256: z.ZodOptional<z.ZodString>;
711
+ size_bytes: z.ZodOptional<z.ZodNumber>;
712
+ file_count: z.ZodOptional<z.ZodNumber>;
713
+ base_deployment_id: z.ZodOptional<z.ZodString>;
714
+ github: z.ZodOptional<z.ZodObject<{
715
+ repo: z.ZodString;
716
+ ref: z.ZodString;
717
+ commit_sha: z.ZodString;
718
+ commit_message: z.ZodOptional<z.ZodString>;
719
+ }, z.core.$strip>>;
720
+ }, z.core.$strip>;
721
+ rollback_of: z.ZodOptional<z.ZodString>;
722
+ config_version: z.ZodNumber;
723
+ runtime: z.ZodOptional<z.ZodEnum<{
724
+ serverless: "serverless";
725
+ container: "container";
726
+ }>>;
727
+ image_digest: z.ZodOptional<z.ZodString>;
728
+ steps: z.ZodArray<z.ZodObject<{
729
+ name: z.ZodEnum<{
730
+ check: "check";
731
+ build: "build";
732
+ release: "release";
733
+ receive_source: "receive_source";
734
+ smoke_test: "smoke_test";
735
+ route: "route";
736
+ health_check: "health_check";
737
+ }>;
738
+ status: z.ZodEnum<{
739
+ running: "running";
740
+ failed: "failed";
741
+ pending: "pending";
742
+ succeeded: "succeeded";
743
+ skipped: "skipped";
744
+ }>;
745
+ started_at: z.ZodOptional<z.ZodISODateTime>;
746
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
747
+ message: z.ZodOptional<z.ZodString>;
748
+ }, z.core.$strip>>;
749
+ check: z.ZodOptional<z.ZodObject<{
750
+ deployable: z.ZodBoolean;
751
+ runtime: z.ZodEnum<{
752
+ serverless: "serverless";
753
+ container: "container";
754
+ }>;
755
+ issues: z.ZodArray<z.ZodObject<{
756
+ code: z.ZodUnion<readonly [z.ZodEnum<{
757
+ work_after_response: "work_after_response";
758
+ in_process_scheduler: "in_process_scheduler";
759
+ queue_consumer: "queue_consumer";
760
+ websockets: "websockets";
761
+ writes_outside_tmp: "writes_outside_tmp";
762
+ needs_root: "needs_root";
763
+ long_requests: "long_requests";
764
+ large_bodies: "large_bodies";
765
+ always_on: "always_on";
766
+ slow_boot: "slow_boot";
767
+ }>, z.ZodEnum<{
768
+ database_not_configured: "database_not_configured";
769
+ feature_unavailable: "feature_unavailable";
770
+ missing_secret: "missing_secret";
771
+ manifest_warning: "manifest_warning";
772
+ }>]>;
773
+ severity: z.ZodEnum<{
774
+ blocker: "blocker";
775
+ warning: "warning";
776
+ }>;
777
+ where: z.ZodOptional<z.ZodString>;
778
+ evidence: z.ZodOptional<z.ZodString>;
779
+ fix_in_code: z.ZodOptional<z.ZodString>;
780
+ fix_by_plan: z.ZodOptional<z.ZodEnum<{
781
+ trial: "trial";
782
+ starter: "starter";
783
+ pro: "pro";
784
+ scale: "scale";
785
+ }>>;
786
+ docs_url: z.ZodOptional<z.ZodURL>;
787
+ }, z.core.$strip>>;
788
+ options: z.ZodArray<z.ZodObject<{
789
+ plan: z.ZodEnum<{
790
+ trial: "trial";
791
+ starter: "starter";
792
+ pro: "pro";
793
+ scale: "scale";
794
+ }>;
795
+ monthly_usd: z.ZodNumber;
796
+ requires: z.ZodString;
797
+ available: z.ZodBoolean;
798
+ waitlist_url: z.ZodOptional<z.ZodURL>;
799
+ }, z.core.$strip>>;
800
+ warnings: z.ZodArray<z.ZodString>;
801
+ }, z.core.$strip>>;
802
+ upload: z.ZodOptional<z.ZodObject<{
803
+ url: z.ZodURL;
804
+ method: z.ZodLiteral<"PUT">;
805
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
806
+ expires_at: z.ZodISODateTime;
807
+ }, z.core.$strip>>;
808
+ url: z.ZodOptional<z.ZodURL>;
809
+ error: z.ZodOptional<z.ZodObject<{
810
+ code: z.ZodEnum<{
811
+ internal: "internal";
812
+ unauthenticated: "unauthenticated";
813
+ forbidden_scope: "forbidden_scope";
814
+ approval_required: "approval_required";
815
+ payment_required: "payment_required";
816
+ quota_exceeded: "quota_exceeded";
817
+ rate_limited: "rate_limited";
818
+ suspended: "suspended";
819
+ invalid_request: "invalid_request";
820
+ invalid_manifest: "invalid_manifest";
821
+ not_found: "not_found";
822
+ conflict: "conflict";
823
+ not_available: "not_available";
824
+ plan_unavailable: "plan_unavailable";
825
+ source_too_large: "source_too_large";
826
+ build_failed: "build_failed";
827
+ image_too_large: "image_too_large";
828
+ migration_failed: "migration_failed";
829
+ healthcheck_failed: "healthcheck_failed";
830
+ app_crashed_on_start: "app_crashed_on_start";
831
+ deploy_timeout: "deploy_timeout";
832
+ capability_requires_plan: "capability_requires_plan";
833
+ capability_unconfirmed: "capability_unconfirmed";
834
+ domain_unverified: "domain_unverified";
835
+ cert_pending: "cert_pending";
836
+ db_quota_exceeded: "db_quota_exceeded";
837
+ }>;
838
+ message: z.ZodString;
839
+ retryable: z.ZodBoolean;
840
+ suggestion: z.ZodOptional<z.ZodString>;
841
+ docs_url: z.ZodOptional<z.ZodURL>;
842
+ request_id: z.ZodOptional<z.ZodString>;
843
+ deployment_id: z.ZodOptional<z.ZodString>;
844
+ log_excerpt: z.ZodOptional<z.ZodArray<z.ZodString>>;
845
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
846
+ }, z.core.$strip>>;
847
+ created_by: z.ZodObject<{
848
+ kind: z.ZodEnum<{
849
+ github: "github";
850
+ user: "user";
851
+ api_key: "api_key";
852
+ system: "system";
853
+ }>;
854
+ id: z.ZodString;
855
+ }, z.core.$strip>;
856
+ created_at: z.ZodISODateTime;
857
+ updated_at: z.ZodISODateTime;
858
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
859
+ }, z.core.$strip>>;
860
+ }, z.core.$strip>>;