@treeseed/sdk 0.4.8 → 0.4.10

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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/control-plane-client.d.ts +45 -0
  3. package/dist/control-plane-client.js +229 -0
  4. package/dist/control-plane.d.ts +94 -0
  5. package/dist/control-plane.js +125 -0
  6. package/dist/d1-store.d.ts +56 -1
  7. package/dist/d1-store.js +132 -0
  8. package/dist/dispatch.d.ts +4 -0
  9. package/dist/dispatch.js +180 -0
  10. package/dist/index.d.ts +14 -2
  11. package/dist/index.js +94 -4
  12. package/dist/operations/services/config-runtime.d.ts +10 -0
  13. package/dist/operations/services/config-runtime.js +62 -4
  14. package/dist/operations/services/deploy.d.ts +95 -3
  15. package/dist/operations/services/deploy.js +351 -10
  16. package/dist/operations/services/github-automation.d.ts +37 -1
  17. package/dist/operations/services/github-automation.js +71 -14
  18. package/dist/operations/services/project-platform.d.ts +835 -0
  19. package/dist/operations/services/project-platform.js +782 -0
  20. package/dist/operations/services/railway-deploy.d.ts +113 -18
  21. package/dist/operations/services/railway-deploy.js +357 -8
  22. package/dist/operations/services/runtime-tools.d.ts +25 -1
  23. package/dist/operations/services/runtime-tools.js +66 -5
  24. package/dist/operations/services/template-registry.d.ts +1 -1
  25. package/dist/operations/services/template-registry.js +17 -3
  26. package/dist/platform/books-data.d.ts +3 -4
  27. package/dist/platform/books-data.js +30 -4
  28. package/dist/platform/contracts.d.ts +56 -4
  29. package/dist/platform/deploy-config.js +109 -4
  30. package/dist/platform/deploy-runtime.d.ts +2 -0
  31. package/dist/platform/deploy-runtime.js +9 -1
  32. package/dist/platform/env.yaml +677 -0
  33. package/dist/platform/environment.js +57 -2
  34. package/dist/platform/plugin.d.ts +8 -0
  35. package/dist/platform/plugins/constants.d.ts +2 -0
  36. package/dist/platform/plugins/constants.js +2 -0
  37. package/dist/platform/plugins/runtime.d.ts +2 -0
  38. package/dist/platform/plugins/runtime.js +9 -1
  39. package/dist/platform/plugins.d.ts +1 -1
  40. package/dist/platform/plugins.js +4 -0
  41. package/dist/platform/published-content-pipeline.d.ts +84 -0
  42. package/dist/platform/published-content-pipeline.js +543 -0
  43. package/dist/platform/published-content.d.ts +223 -0
  44. package/dist/platform/published-content.js +588 -0
  45. package/dist/platform/tenant/runtime-config.d.ts +1 -1
  46. package/dist/platform/tenant/runtime-config.js +34 -1
  47. package/dist/platform/tenant-config.d.ts +2 -1
  48. package/dist/platform/tenant-config.js +17 -1
  49. package/dist/platform/utils/site-config-schema.js +104 -0
  50. package/dist/plugin-default.d.ts +2 -0
  51. package/dist/plugin-default.js +2 -0
  52. package/dist/remote.d.ts +65 -9
  53. package/dist/remote.js +104 -28
  54. package/dist/scripts/check-build-warnings.js +50 -0
  55. package/dist/scripts/config-treeseed.js +7 -0
  56. package/dist/scripts/tenant-workflow-action.js +71 -0
  57. package/dist/sdk-dispatch.d.ts +12 -0
  58. package/dist/sdk-dispatch.js +142 -0
  59. package/dist/sdk-types.d.ts +579 -7
  60. package/dist/sdk-types.js +53 -1
  61. package/dist/sdk.d.ts +17 -1
  62. package/dist/sdk.js +109 -0
  63. package/dist/stores/operational-store.d.ts +22 -2
  64. package/dist/stores/operational-store.js +235 -0
  65. package/dist/template-catalog.js +8 -1
  66. package/dist/treeseed/template-catalog/templates/starter-basic/template/treeseed.site.yaml +20 -0
  67. package/dist/types/cloudflare.d.ts +23 -0
  68. package/dist/workflow/operations.d.ts +12 -3
  69. package/dist/workflow/policy.d.ts +1 -1
  70. package/dist/workflow-state.js +2 -1
  71. package/package.json +7 -2
  72. package/templates/github/deploy.workflow.yml +442 -0
  73. package/templates/github/hosted-project.workflow.yml +77 -0
@@ -0,0 +1,835 @@
1
+ import { type ControlPlaneReporter } from '../../control-plane.ts';
2
+ export type ProjectPlatformScope = 'local' | 'staging' | 'prod';
3
+ export type ProjectPlatformAction = 'provision' | 'deploy_code' | 'publish_content' | 'monitor';
4
+ export interface ProjectPlatformActionOptions {
5
+ tenantRoot: string;
6
+ scope: ProjectPlatformScope;
7
+ projectId?: string | null;
8
+ previewId?: string | null;
9
+ dryRun?: boolean;
10
+ reporter?: ControlPlaneReporter;
11
+ }
12
+ export declare function inferEnvironmentFromBranch(tenantRoot: string): "staging" | "prod";
13
+ export declare function resolveScope(environment: string | null): ProjectPlatformScope;
14
+ export declare function provisionProjectPlatform(options: ProjectPlatformActionOptions): Promise<{
15
+ ok: boolean;
16
+ scope: ProjectPlatformScope;
17
+ target: any;
18
+ summary: {
19
+ target: any;
20
+ workerName: any;
21
+ siteUrl: any;
22
+ accountId: any;
23
+ pages: any;
24
+ formGuardKv: any;
25
+ sessionKv: any;
26
+ siteDataDb: any;
27
+ queue: any;
28
+ content: any;
29
+ };
30
+ verification: {
31
+ ok: boolean;
32
+ target: any;
33
+ checks: {
34
+ pages: boolean;
35
+ formGuardKv: boolean;
36
+ sessionKv: boolean;
37
+ d1: boolean;
38
+ queue: boolean;
39
+ dlq: boolean;
40
+ r2: boolean;
41
+ };
42
+ state: any;
43
+ };
44
+ railway: {
45
+ services: string[];
46
+ schedules: {
47
+ id: any;
48
+ status: string;
49
+ enabled: any;
50
+ command: any;
51
+ service: string;
52
+ projectId: string | null;
53
+ projectName: string | null;
54
+ serviceId: string | null;
55
+ serviceName: string | null;
56
+ environment: string;
57
+ environmentId: string | null;
58
+ expression: string;
59
+ logicalName: string;
60
+ }[];
61
+ verification: {
62
+ ok: boolean;
63
+ checks: {
64
+ id: any;
65
+ ok: boolean;
66
+ service: string;
67
+ projectId: string | null;
68
+ projectName: string | null;
69
+ serviceId: string | null;
70
+ serviceName: string | null;
71
+ environment: string;
72
+ environmentId: string | null;
73
+ expression: string;
74
+ command: string | null;
75
+ enabled: boolean;
76
+ logicalName: string;
77
+ }[];
78
+ } | {
79
+ ok: boolean;
80
+ checks: {
81
+ id: any;
82
+ status: string;
83
+ enabled: any;
84
+ command: any;
85
+ service: string;
86
+ projectId: string | null;
87
+ projectName: string | null;
88
+ serviceId: string | null;
89
+ serviceName: string | null;
90
+ environment: string;
91
+ environmentId: string | null;
92
+ expression: string;
93
+ logicalName: string;
94
+ }[];
95
+ };
96
+ };
97
+ }>;
98
+ export declare function deployProjectPlatform(options: ProjectPlatformActionOptions): Promise<{
99
+ ok: boolean;
100
+ scope: ProjectPlatformScope;
101
+ monitor: {
102
+ ok: true;
103
+ target: any;
104
+ checks: {
105
+ r2: {
106
+ ok: boolean;
107
+ skipped: boolean;
108
+ reason: string;
109
+ objectKey?: undefined;
110
+ } | {
111
+ ok: boolean;
112
+ objectKey: string;
113
+ skipped?: undefined;
114
+ reason?: undefined;
115
+ };
116
+ queue: {
117
+ ok: boolean;
118
+ skipped: boolean;
119
+ reason: string;
120
+ messageId?: undefined;
121
+ attempts?: undefined;
122
+ } | {
123
+ ok: boolean;
124
+ reason: string;
125
+ skipped?: undefined;
126
+ messageId?: undefined;
127
+ attempts?: undefined;
128
+ } | {
129
+ ok: boolean;
130
+ messageId: string;
131
+ attempts: number;
132
+ skipped?: undefined;
133
+ reason?: undefined;
134
+ } | {
135
+ ok: boolean;
136
+ skipped: boolean;
137
+ reason: string;
138
+ };
139
+ runner: {
140
+ ok: boolean;
141
+ skipped: boolean;
142
+ reason: string;
143
+ status?: undefined;
144
+ payload?: undefined;
145
+ heartbeatPresent?: undefined;
146
+ attempt?: undefined;
147
+ error?: undefined;
148
+ } | {
149
+ ok: any;
150
+ status: number;
151
+ payload: any;
152
+ heartbeatPresent: any;
153
+ attempt: number;
154
+ skipped?: undefined;
155
+ reason?: undefined;
156
+ error?: undefined;
157
+ } | {
158
+ ok: boolean;
159
+ reason: string;
160
+ skipped?: undefined;
161
+ status?: undefined;
162
+ payload?: undefined;
163
+ heartbeatPresent?: undefined;
164
+ attempt?: undefined;
165
+ error?: undefined;
166
+ } | {
167
+ ok: boolean;
168
+ error: string;
169
+ skipped?: undefined;
170
+ reason?: undefined;
171
+ status?: undefined;
172
+ payload?: undefined;
173
+ heartbeatPresent?: undefined;
174
+ attempt?: undefined;
175
+ };
176
+ pages: {
177
+ ok: boolean;
178
+ status: number;
179
+ url: string;
180
+ error?: undefined;
181
+ } | {
182
+ ok: boolean;
183
+ status: null;
184
+ url: string;
185
+ error: string;
186
+ };
187
+ apiHealth: {
188
+ ok: boolean;
189
+ status: number;
190
+ url: string;
191
+ error?: undefined;
192
+ } | {
193
+ ok: boolean;
194
+ status: null;
195
+ url: string;
196
+ error: string;
197
+ } | {
198
+ ok: boolean;
199
+ skipped: boolean;
200
+ reason: string;
201
+ };
202
+ apiReady: {
203
+ ok: boolean;
204
+ status: number;
205
+ url: string;
206
+ error?: undefined;
207
+ } | {
208
+ ok: boolean;
209
+ status: null;
210
+ url: string;
211
+ error: string;
212
+ } | {
213
+ ok: boolean;
214
+ skipped: boolean;
215
+ reason: string;
216
+ };
217
+ d1Health: {
218
+ ok: boolean;
219
+ status: number;
220
+ url: string;
221
+ error?: undefined;
222
+ } | {
223
+ ok: boolean;
224
+ status: null;
225
+ url: string;
226
+ error: string;
227
+ } | {
228
+ ok: boolean;
229
+ skipped: boolean;
230
+ reason: string;
231
+ };
232
+ agentHealth: {
233
+ ok: boolean;
234
+ status: number;
235
+ url: string;
236
+ error?: undefined;
237
+ } | {
238
+ ok: boolean;
239
+ status: null;
240
+ url: string;
241
+ error: string;
242
+ } | {
243
+ ok: boolean;
244
+ skipped: boolean;
245
+ reason: string;
246
+ };
247
+ scaleProbe: {
248
+ ok: boolean;
249
+ mocked: boolean;
250
+ serviceId: any;
251
+ };
252
+ readiness: any;
253
+ };
254
+ };
255
+ serviceResults: {
256
+ service: any;
257
+ status: string;
258
+ command: string;
259
+ cwd: any;
260
+ publicBaseUrl: any;
261
+ }[];
262
+ }>;
263
+ export declare function publishProjectContent(options: ProjectPlatformActionOptions): Promise<{
264
+ ok: boolean;
265
+ scope: ProjectPlatformScope;
266
+ mode: string;
267
+ revision: string;
268
+ previewId: string | null;
269
+ previewUrl: string | null;
270
+ target: any;
271
+ }>;
272
+ export declare function monitorProjectPlatform(options: ProjectPlatformActionOptions): Promise<{
273
+ ok: true;
274
+ target: any;
275
+ checks: {
276
+ r2: {
277
+ ok: boolean;
278
+ skipped: boolean;
279
+ reason: string;
280
+ objectKey?: undefined;
281
+ } | {
282
+ ok: boolean;
283
+ objectKey: string;
284
+ skipped?: undefined;
285
+ reason?: undefined;
286
+ };
287
+ queue: {
288
+ ok: boolean;
289
+ skipped: boolean;
290
+ reason: string;
291
+ messageId?: undefined;
292
+ attempts?: undefined;
293
+ } | {
294
+ ok: boolean;
295
+ reason: string;
296
+ skipped?: undefined;
297
+ messageId?: undefined;
298
+ attempts?: undefined;
299
+ } | {
300
+ ok: boolean;
301
+ messageId: string;
302
+ attempts: number;
303
+ skipped?: undefined;
304
+ reason?: undefined;
305
+ } | {
306
+ ok: boolean;
307
+ skipped: boolean;
308
+ reason: string;
309
+ };
310
+ runner: {
311
+ ok: boolean;
312
+ skipped: boolean;
313
+ reason: string;
314
+ status?: undefined;
315
+ payload?: undefined;
316
+ heartbeatPresent?: undefined;
317
+ attempt?: undefined;
318
+ error?: undefined;
319
+ } | {
320
+ ok: any;
321
+ status: number;
322
+ payload: any;
323
+ heartbeatPresent: any;
324
+ attempt: number;
325
+ skipped?: undefined;
326
+ reason?: undefined;
327
+ error?: undefined;
328
+ } | {
329
+ ok: boolean;
330
+ reason: string;
331
+ skipped?: undefined;
332
+ status?: undefined;
333
+ payload?: undefined;
334
+ heartbeatPresent?: undefined;
335
+ attempt?: undefined;
336
+ error?: undefined;
337
+ } | {
338
+ ok: boolean;
339
+ error: string;
340
+ skipped?: undefined;
341
+ reason?: undefined;
342
+ status?: undefined;
343
+ payload?: undefined;
344
+ heartbeatPresent?: undefined;
345
+ attempt?: undefined;
346
+ };
347
+ pages: {
348
+ ok: boolean;
349
+ status: number;
350
+ url: string;
351
+ error?: undefined;
352
+ } | {
353
+ ok: boolean;
354
+ status: null;
355
+ url: string;
356
+ error: string;
357
+ };
358
+ apiHealth: {
359
+ ok: boolean;
360
+ status: number;
361
+ url: string;
362
+ error?: undefined;
363
+ } | {
364
+ ok: boolean;
365
+ status: null;
366
+ url: string;
367
+ error: string;
368
+ } | {
369
+ ok: boolean;
370
+ skipped: boolean;
371
+ reason: string;
372
+ };
373
+ apiReady: {
374
+ ok: boolean;
375
+ status: number;
376
+ url: string;
377
+ error?: undefined;
378
+ } | {
379
+ ok: boolean;
380
+ status: null;
381
+ url: string;
382
+ error: string;
383
+ } | {
384
+ ok: boolean;
385
+ skipped: boolean;
386
+ reason: string;
387
+ };
388
+ d1Health: {
389
+ ok: boolean;
390
+ status: number;
391
+ url: string;
392
+ error?: undefined;
393
+ } | {
394
+ ok: boolean;
395
+ status: null;
396
+ url: string;
397
+ error: string;
398
+ } | {
399
+ ok: boolean;
400
+ skipped: boolean;
401
+ reason: string;
402
+ };
403
+ agentHealth: {
404
+ ok: boolean;
405
+ status: number;
406
+ url: string;
407
+ error?: undefined;
408
+ } | {
409
+ ok: boolean;
410
+ status: null;
411
+ url: string;
412
+ error: string;
413
+ } | {
414
+ ok: boolean;
415
+ skipped: boolean;
416
+ reason: string;
417
+ };
418
+ scaleProbe: {
419
+ ok: boolean;
420
+ mocked: boolean;
421
+ serviceId: any;
422
+ };
423
+ readiness: any;
424
+ };
425
+ }>;
426
+ export declare function syncControlPlaneState(options: ProjectPlatformActionOptions): Promise<void>;
427
+ export declare function runProjectPlatformAction(action: ProjectPlatformAction, options: ProjectPlatformActionOptions): Promise<{
428
+ ok: boolean;
429
+ scope: ProjectPlatformScope;
430
+ mode: string;
431
+ revision: string;
432
+ previewId: string | null;
433
+ previewUrl: string | null;
434
+ target: any;
435
+ } | {
436
+ ok: boolean;
437
+ scope: ProjectPlatformScope;
438
+ target: any;
439
+ summary: {
440
+ target: any;
441
+ workerName: any;
442
+ siteUrl: any;
443
+ accountId: any;
444
+ pages: any;
445
+ formGuardKv: any;
446
+ sessionKv: any;
447
+ siteDataDb: any;
448
+ queue: any;
449
+ content: any;
450
+ };
451
+ verification: {
452
+ ok: boolean;
453
+ target: any;
454
+ checks: {
455
+ pages: boolean;
456
+ formGuardKv: boolean;
457
+ sessionKv: boolean;
458
+ d1: boolean;
459
+ queue: boolean;
460
+ dlq: boolean;
461
+ r2: boolean;
462
+ };
463
+ state: any;
464
+ };
465
+ railway: {
466
+ services: string[];
467
+ schedules: {
468
+ id: any;
469
+ status: string;
470
+ enabled: any;
471
+ command: any;
472
+ service: string;
473
+ projectId: string | null;
474
+ projectName: string | null;
475
+ serviceId: string | null;
476
+ serviceName: string | null;
477
+ environment: string;
478
+ environmentId: string | null;
479
+ expression: string;
480
+ logicalName: string;
481
+ }[];
482
+ verification: {
483
+ ok: boolean;
484
+ checks: {
485
+ id: any;
486
+ ok: boolean;
487
+ service: string;
488
+ projectId: string | null;
489
+ projectName: string | null;
490
+ serviceId: string | null;
491
+ serviceName: string | null;
492
+ environment: string;
493
+ environmentId: string | null;
494
+ expression: string;
495
+ command: string | null;
496
+ enabled: boolean;
497
+ logicalName: string;
498
+ }[];
499
+ } | {
500
+ ok: boolean;
501
+ checks: {
502
+ id: any;
503
+ status: string;
504
+ enabled: any;
505
+ command: any;
506
+ service: string;
507
+ projectId: string | null;
508
+ projectName: string | null;
509
+ serviceId: string | null;
510
+ serviceName: string | null;
511
+ environment: string;
512
+ environmentId: string | null;
513
+ expression: string;
514
+ logicalName: string;
515
+ }[];
516
+ };
517
+ };
518
+ } | {
519
+ ok: true;
520
+ target: any;
521
+ checks: {
522
+ r2: {
523
+ ok: boolean;
524
+ skipped: boolean;
525
+ reason: string;
526
+ objectKey?: undefined;
527
+ } | {
528
+ ok: boolean;
529
+ objectKey: string;
530
+ skipped?: undefined;
531
+ reason?: undefined;
532
+ };
533
+ queue: {
534
+ ok: boolean;
535
+ skipped: boolean;
536
+ reason: string;
537
+ messageId?: undefined;
538
+ attempts?: undefined;
539
+ } | {
540
+ ok: boolean;
541
+ reason: string;
542
+ skipped?: undefined;
543
+ messageId?: undefined;
544
+ attempts?: undefined;
545
+ } | {
546
+ ok: boolean;
547
+ messageId: string;
548
+ attempts: number;
549
+ skipped?: undefined;
550
+ reason?: undefined;
551
+ } | {
552
+ ok: boolean;
553
+ skipped: boolean;
554
+ reason: string;
555
+ };
556
+ runner: {
557
+ ok: boolean;
558
+ skipped: boolean;
559
+ reason: string;
560
+ status?: undefined;
561
+ payload?: undefined;
562
+ heartbeatPresent?: undefined;
563
+ attempt?: undefined;
564
+ error?: undefined;
565
+ } | {
566
+ ok: any;
567
+ status: number;
568
+ payload: any;
569
+ heartbeatPresent: any;
570
+ attempt: number;
571
+ skipped?: undefined;
572
+ reason?: undefined;
573
+ error?: undefined;
574
+ } | {
575
+ ok: boolean;
576
+ reason: string;
577
+ skipped?: undefined;
578
+ status?: undefined;
579
+ payload?: undefined;
580
+ heartbeatPresent?: undefined;
581
+ attempt?: undefined;
582
+ error?: undefined;
583
+ } | {
584
+ ok: boolean;
585
+ error: string;
586
+ skipped?: undefined;
587
+ reason?: undefined;
588
+ status?: undefined;
589
+ payload?: undefined;
590
+ heartbeatPresent?: undefined;
591
+ attempt?: undefined;
592
+ };
593
+ pages: {
594
+ ok: boolean;
595
+ status: number;
596
+ url: string;
597
+ error?: undefined;
598
+ } | {
599
+ ok: boolean;
600
+ status: null;
601
+ url: string;
602
+ error: string;
603
+ };
604
+ apiHealth: {
605
+ ok: boolean;
606
+ status: number;
607
+ url: string;
608
+ error?: undefined;
609
+ } | {
610
+ ok: boolean;
611
+ status: null;
612
+ url: string;
613
+ error: string;
614
+ } | {
615
+ ok: boolean;
616
+ skipped: boolean;
617
+ reason: string;
618
+ };
619
+ apiReady: {
620
+ ok: boolean;
621
+ status: number;
622
+ url: string;
623
+ error?: undefined;
624
+ } | {
625
+ ok: boolean;
626
+ status: null;
627
+ url: string;
628
+ error: string;
629
+ } | {
630
+ ok: boolean;
631
+ skipped: boolean;
632
+ reason: string;
633
+ };
634
+ d1Health: {
635
+ ok: boolean;
636
+ status: number;
637
+ url: string;
638
+ error?: undefined;
639
+ } | {
640
+ ok: boolean;
641
+ status: null;
642
+ url: string;
643
+ error: string;
644
+ } | {
645
+ ok: boolean;
646
+ skipped: boolean;
647
+ reason: string;
648
+ };
649
+ agentHealth: {
650
+ ok: boolean;
651
+ status: number;
652
+ url: string;
653
+ error?: undefined;
654
+ } | {
655
+ ok: boolean;
656
+ status: null;
657
+ url: string;
658
+ error: string;
659
+ } | {
660
+ ok: boolean;
661
+ skipped: boolean;
662
+ reason: string;
663
+ };
664
+ scaleProbe: {
665
+ ok: boolean;
666
+ mocked: boolean;
667
+ serviceId: any;
668
+ };
669
+ readiness: any;
670
+ };
671
+ } | {
672
+ ok: boolean;
673
+ scope: ProjectPlatformScope;
674
+ monitor: {
675
+ ok: true;
676
+ target: any;
677
+ checks: {
678
+ r2: {
679
+ ok: boolean;
680
+ skipped: boolean;
681
+ reason: string;
682
+ objectKey?: undefined;
683
+ } | {
684
+ ok: boolean;
685
+ objectKey: string;
686
+ skipped?: undefined;
687
+ reason?: undefined;
688
+ };
689
+ queue: {
690
+ ok: boolean;
691
+ skipped: boolean;
692
+ reason: string;
693
+ messageId?: undefined;
694
+ attempts?: undefined;
695
+ } | {
696
+ ok: boolean;
697
+ reason: string;
698
+ skipped?: undefined;
699
+ messageId?: undefined;
700
+ attempts?: undefined;
701
+ } | {
702
+ ok: boolean;
703
+ messageId: string;
704
+ attempts: number;
705
+ skipped?: undefined;
706
+ reason?: undefined;
707
+ } | {
708
+ ok: boolean;
709
+ skipped: boolean;
710
+ reason: string;
711
+ };
712
+ runner: {
713
+ ok: boolean;
714
+ skipped: boolean;
715
+ reason: string;
716
+ status?: undefined;
717
+ payload?: undefined;
718
+ heartbeatPresent?: undefined;
719
+ attempt?: undefined;
720
+ error?: undefined;
721
+ } | {
722
+ ok: any;
723
+ status: number;
724
+ payload: any;
725
+ heartbeatPresent: any;
726
+ attempt: number;
727
+ skipped?: undefined;
728
+ reason?: undefined;
729
+ error?: undefined;
730
+ } | {
731
+ ok: boolean;
732
+ reason: string;
733
+ skipped?: undefined;
734
+ status?: undefined;
735
+ payload?: undefined;
736
+ heartbeatPresent?: undefined;
737
+ attempt?: undefined;
738
+ error?: undefined;
739
+ } | {
740
+ ok: boolean;
741
+ error: string;
742
+ skipped?: undefined;
743
+ reason?: undefined;
744
+ status?: undefined;
745
+ payload?: undefined;
746
+ heartbeatPresent?: undefined;
747
+ attempt?: undefined;
748
+ };
749
+ pages: {
750
+ ok: boolean;
751
+ status: number;
752
+ url: string;
753
+ error?: undefined;
754
+ } | {
755
+ ok: boolean;
756
+ status: null;
757
+ url: string;
758
+ error: string;
759
+ };
760
+ apiHealth: {
761
+ ok: boolean;
762
+ status: number;
763
+ url: string;
764
+ error?: undefined;
765
+ } | {
766
+ ok: boolean;
767
+ status: null;
768
+ url: string;
769
+ error: string;
770
+ } | {
771
+ ok: boolean;
772
+ skipped: boolean;
773
+ reason: string;
774
+ };
775
+ apiReady: {
776
+ ok: boolean;
777
+ status: number;
778
+ url: string;
779
+ error?: undefined;
780
+ } | {
781
+ ok: boolean;
782
+ status: null;
783
+ url: string;
784
+ error: string;
785
+ } | {
786
+ ok: boolean;
787
+ skipped: boolean;
788
+ reason: string;
789
+ };
790
+ d1Health: {
791
+ ok: boolean;
792
+ status: number;
793
+ url: string;
794
+ error?: undefined;
795
+ } | {
796
+ ok: boolean;
797
+ status: null;
798
+ url: string;
799
+ error: string;
800
+ } | {
801
+ ok: boolean;
802
+ skipped: boolean;
803
+ reason: string;
804
+ };
805
+ agentHealth: {
806
+ ok: boolean;
807
+ status: number;
808
+ url: string;
809
+ error?: undefined;
810
+ } | {
811
+ ok: boolean;
812
+ status: null;
813
+ url: string;
814
+ error: string;
815
+ } | {
816
+ ok: boolean;
817
+ skipped: boolean;
818
+ reason: string;
819
+ };
820
+ scaleProbe: {
821
+ ok: boolean;
822
+ mocked: boolean;
823
+ serviceId: any;
824
+ };
825
+ readiness: any;
826
+ };
827
+ };
828
+ serviceResults: {
829
+ service: any;
830
+ status: string;
831
+ command: string;
832
+ cwd: any;
833
+ publicBaseUrl: any;
834
+ }[];
835
+ }>;