@wp-playground/client 0.1.25 → 0.1.32

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,1203 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$ref": "#/definitions/Blueprint",
4
+ "definitions": {
5
+ "Blueprint": {
6
+ "type": "object",
7
+ "properties": {
8
+ "landingPage": {
9
+ "type": "string",
10
+ "description": "The URL to navigate to after the blueprint has been run."
11
+ },
12
+ "preferredVersions": {
13
+ "type": "object",
14
+ "properties": {
15
+ "php": {
16
+ "anyOf": [
17
+ {
18
+ "$ref": "#/definitions/SupportedPHPVersion"
19
+ },
20
+ {
21
+ "type": "string",
22
+ "const": "latest"
23
+ }
24
+ ],
25
+ "description": "The preferred PHP version to use. If not specified, the latest supported version will be used"
26
+ },
27
+ "wp": {
28
+ "type": "string",
29
+ "description": "The preferred WordPress version to use. If not specified, the latest supported version will be used"
30
+ }
31
+ },
32
+ "required": [
33
+ "php",
34
+ "wp"
35
+ ],
36
+ "additionalProperties": false,
37
+ "description": "The preferred PHP and WordPress versions to use."
38
+ },
39
+ "steps": {
40
+ "type": "array",
41
+ "items": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/definitions/StepDefinition"
45
+ },
46
+ {
47
+ "type": "string"
48
+ },
49
+ {
50
+ "not": {}
51
+ },
52
+ {
53
+ "type": "boolean",
54
+ "const": false
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ]
60
+ },
61
+ "description": "The steps to run."
62
+ },
63
+ "$schema": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "SupportedPHPVersion": {
70
+ "type": "string",
71
+ "enum": [
72
+ "8.2",
73
+ "8.1",
74
+ "8.0",
75
+ "7.4",
76
+ "7.3",
77
+ "7.2",
78
+ "7.1",
79
+ "7.0",
80
+ "5.6"
81
+ ]
82
+ },
83
+ "StepDefinition": {
84
+ "anyOf": [
85
+ {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "properties": {
89
+ "progress": {
90
+ "type": "object",
91
+ "properties": {
92
+ "weight": {
93
+ "type": "number"
94
+ },
95
+ "caption": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "additionalProperties": false
100
+ },
101
+ "step": {
102
+ "type": "string",
103
+ "const": "activatePlugin"
104
+ },
105
+ "plugin": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "required": [
110
+ "plugin",
111
+ "step"
112
+ ]
113
+ },
114
+ {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "progress": {
119
+ "type": "object",
120
+ "properties": {
121
+ "weight": {
122
+ "type": "number"
123
+ },
124
+ "caption": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ "additionalProperties": false
129
+ },
130
+ "step": {
131
+ "type": "string",
132
+ "const": "applyWordPressPatches"
133
+ },
134
+ "siteUrl": {
135
+ "type": "string"
136
+ },
137
+ "wordpressPath": {
138
+ "type": "string"
139
+ },
140
+ "patchSqlitePlugin": {
141
+ "type": "boolean"
142
+ },
143
+ "addPhpInfo": {
144
+ "type": "boolean"
145
+ },
146
+ "patchSiteUrl": {
147
+ "type": "boolean"
148
+ },
149
+ "disableSiteHealth": {
150
+ "type": "boolean"
151
+ },
152
+ "disableWpNewBlogNotification": {
153
+ "type": "boolean"
154
+ }
155
+ },
156
+ "required": [
157
+ "siteUrl",
158
+ "step"
159
+ ]
160
+ },
161
+ {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "properties": {
165
+ "progress": {
166
+ "type": "object",
167
+ "properties": {
168
+ "weight": {
169
+ "type": "number"
170
+ },
171
+ "caption": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "additionalProperties": false
176
+ },
177
+ "step": {
178
+ "type": "string",
179
+ "const": "cp"
180
+ },
181
+ "fromPath": {
182
+ "type": "string"
183
+ },
184
+ "toPath": {
185
+ "type": "string"
186
+ }
187
+ },
188
+ "required": [
189
+ "fromPath",
190
+ "step",
191
+ "toPath"
192
+ ]
193
+ },
194
+ {
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "properties": {
198
+ "progress": {
199
+ "type": "object",
200
+ "properties": {
201
+ "weight": {
202
+ "type": "number"
203
+ },
204
+ "caption": {
205
+ "type": "string"
206
+ }
207
+ },
208
+ "additionalProperties": false
209
+ },
210
+ "step": {
211
+ "type": "string",
212
+ "const": "defineSiteUrl"
213
+ },
214
+ "siteUrl": {
215
+ "type": "string"
216
+ }
217
+ },
218
+ "required": [
219
+ "siteUrl",
220
+ "step"
221
+ ]
222
+ },
223
+ {
224
+ "type": "object",
225
+ "additionalProperties": false,
226
+ "properties": {
227
+ "progress": {
228
+ "type": "object",
229
+ "properties": {
230
+ "weight": {
231
+ "type": "number"
232
+ },
233
+ "caption": {
234
+ "type": "string"
235
+ }
236
+ },
237
+ "additionalProperties": false
238
+ },
239
+ "step": {
240
+ "type": "string",
241
+ "const": "importFile"
242
+ },
243
+ "file": {
244
+ "$ref": "#/definitions/FileReference"
245
+ }
246
+ },
247
+ "required": [
248
+ "file",
249
+ "step"
250
+ ]
251
+ },
252
+ {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "properties": {
256
+ "progress": {
257
+ "type": "object",
258
+ "properties": {
259
+ "weight": {
260
+ "type": "number"
261
+ },
262
+ "caption": {
263
+ "type": "string"
264
+ }
265
+ },
266
+ "additionalProperties": false
267
+ },
268
+ "step": {
269
+ "type": "string",
270
+ "const": "installPlugin"
271
+ },
272
+ "pluginZipFile": {
273
+ "$ref": "#/definitions/FileReference"
274
+ },
275
+ "options": {
276
+ "$ref": "#/definitions/InstallPluginOptions"
277
+ }
278
+ },
279
+ "required": [
280
+ "pluginZipFile",
281
+ "step"
282
+ ]
283
+ },
284
+ {
285
+ "type": "object",
286
+ "additionalProperties": false,
287
+ "properties": {
288
+ "progress": {
289
+ "type": "object",
290
+ "properties": {
291
+ "weight": {
292
+ "type": "number"
293
+ },
294
+ "caption": {
295
+ "type": "string"
296
+ }
297
+ },
298
+ "additionalProperties": false
299
+ },
300
+ "step": {
301
+ "type": "string",
302
+ "const": "installTheme"
303
+ },
304
+ "themeZipFile": {
305
+ "$ref": "#/definitions/FileReference"
306
+ },
307
+ "options": {
308
+ "$ref": "#/definitions/InstallThemeOptions"
309
+ }
310
+ },
311
+ "required": [
312
+ "step",
313
+ "themeZipFile"
314
+ ]
315
+ },
316
+ {
317
+ "type": "object",
318
+ "additionalProperties": false,
319
+ "properties": {
320
+ "progress": {
321
+ "type": "object",
322
+ "properties": {
323
+ "weight": {
324
+ "type": "number"
325
+ },
326
+ "caption": {
327
+ "type": "string"
328
+ }
329
+ },
330
+ "additionalProperties": false
331
+ },
332
+ "step": {
333
+ "type": "string",
334
+ "const": "login"
335
+ },
336
+ "username": {
337
+ "type": "string"
338
+ },
339
+ "password": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "step"
345
+ ]
346
+ },
347
+ {
348
+ "type": "object",
349
+ "additionalProperties": false,
350
+ "properties": {
351
+ "progress": {
352
+ "type": "object",
353
+ "properties": {
354
+ "weight": {
355
+ "type": "number"
356
+ },
357
+ "caption": {
358
+ "type": "string"
359
+ }
360
+ },
361
+ "additionalProperties": false
362
+ },
363
+ "step": {
364
+ "type": "string",
365
+ "const": "mkdir"
366
+ },
367
+ "path": {
368
+ "type": "string"
369
+ }
370
+ },
371
+ "required": [
372
+ "path",
373
+ "step"
374
+ ]
375
+ },
376
+ {
377
+ "type": "object",
378
+ "additionalProperties": false,
379
+ "properties": {
380
+ "progress": {
381
+ "type": "object",
382
+ "properties": {
383
+ "weight": {
384
+ "type": "number"
385
+ },
386
+ "caption": {
387
+ "type": "string"
388
+ }
389
+ },
390
+ "additionalProperties": false
391
+ },
392
+ "step": {
393
+ "type": "string",
394
+ "const": "mv"
395
+ },
396
+ "fromPath": {
397
+ "type": "string"
398
+ },
399
+ "toPath": {
400
+ "type": "string"
401
+ }
402
+ },
403
+ "required": [
404
+ "fromPath",
405
+ "step",
406
+ "toPath"
407
+ ]
408
+ },
409
+ {
410
+ "type": "object",
411
+ "additionalProperties": false,
412
+ "properties": {
413
+ "progress": {
414
+ "type": "object",
415
+ "properties": {
416
+ "weight": {
417
+ "type": "number"
418
+ },
419
+ "caption": {
420
+ "type": "string"
421
+ }
422
+ },
423
+ "additionalProperties": false
424
+ },
425
+ "step": {
426
+ "type": "string",
427
+ "const": "request"
428
+ },
429
+ "request": {
430
+ "$ref": "#/definitions/PHPRequest"
431
+ }
432
+ },
433
+ "required": [
434
+ "request",
435
+ "step"
436
+ ]
437
+ },
438
+ {
439
+ "type": "object",
440
+ "additionalProperties": false,
441
+ "properties": {
442
+ "progress": {
443
+ "type": "object",
444
+ "properties": {
445
+ "weight": {
446
+ "type": "number"
447
+ },
448
+ "caption": {
449
+ "type": "string"
450
+ }
451
+ },
452
+ "additionalProperties": false
453
+ },
454
+ "step": {
455
+ "type": "string",
456
+ "const": "replaceSite"
457
+ },
458
+ "fullSiteZip": {
459
+ "$ref": "#/definitions/FileReference"
460
+ }
461
+ },
462
+ "required": [
463
+ "fullSiteZip",
464
+ "step"
465
+ ]
466
+ },
467
+ {
468
+ "type": "object",
469
+ "additionalProperties": false,
470
+ "properties": {
471
+ "progress": {
472
+ "type": "object",
473
+ "properties": {
474
+ "weight": {
475
+ "type": "number"
476
+ },
477
+ "caption": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "additionalProperties": false
482
+ },
483
+ "step": {
484
+ "type": "string",
485
+ "const": "rm"
486
+ },
487
+ "path": {
488
+ "type": "string"
489
+ }
490
+ },
491
+ "required": [
492
+ "path",
493
+ "step"
494
+ ]
495
+ },
496
+ {
497
+ "type": "object",
498
+ "additionalProperties": false,
499
+ "properties": {
500
+ "progress": {
501
+ "type": "object",
502
+ "properties": {
503
+ "weight": {
504
+ "type": "number"
505
+ },
506
+ "caption": {
507
+ "type": "string"
508
+ }
509
+ },
510
+ "additionalProperties": false
511
+ },
512
+ "step": {
513
+ "type": "string",
514
+ "const": "rmdir"
515
+ },
516
+ "path": {
517
+ "type": "string"
518
+ }
519
+ },
520
+ "required": [
521
+ "path",
522
+ "step"
523
+ ]
524
+ },
525
+ {
526
+ "type": "object",
527
+ "additionalProperties": false,
528
+ "properties": {
529
+ "progress": {
530
+ "type": "object",
531
+ "properties": {
532
+ "weight": {
533
+ "type": "number"
534
+ },
535
+ "caption": {
536
+ "type": "string"
537
+ }
538
+ },
539
+ "additionalProperties": false
540
+ },
541
+ "step": {
542
+ "type": "string",
543
+ "const": "runPHP"
544
+ },
545
+ "code": {
546
+ "type": "string"
547
+ }
548
+ },
549
+ "required": [
550
+ "code",
551
+ "step"
552
+ ]
553
+ },
554
+ {
555
+ "type": "object",
556
+ "additionalProperties": false,
557
+ "properties": {
558
+ "progress": {
559
+ "type": "object",
560
+ "properties": {
561
+ "weight": {
562
+ "type": "number"
563
+ },
564
+ "caption": {
565
+ "type": "string"
566
+ }
567
+ },
568
+ "additionalProperties": false
569
+ },
570
+ "step": {
571
+ "type": "string",
572
+ "const": "runPHPWithOptions"
573
+ },
574
+ "options": {
575
+ "$ref": "#/definitions/PHPRunOptions"
576
+ }
577
+ },
578
+ "required": [
579
+ "options",
580
+ "step"
581
+ ]
582
+ },
583
+ {
584
+ "type": "object",
585
+ "additionalProperties": false,
586
+ "properties": {
587
+ "progress": {
588
+ "type": "object",
589
+ "properties": {
590
+ "weight": {
591
+ "type": "number"
592
+ },
593
+ "caption": {
594
+ "type": "string"
595
+ }
596
+ },
597
+ "additionalProperties": false
598
+ },
599
+ "step": {
600
+ "type": "string",
601
+ "const": "runWpInstallationWizard"
602
+ },
603
+ "options": {
604
+ "$ref": "#/definitions/WordPressInstallationOptions"
605
+ }
606
+ },
607
+ "required": [
608
+ "options",
609
+ "step"
610
+ ]
611
+ },
612
+ {
613
+ "type": "object",
614
+ "additionalProperties": false,
615
+ "properties": {
616
+ "progress": {
617
+ "type": "object",
618
+ "properties": {
619
+ "weight": {
620
+ "type": "number"
621
+ },
622
+ "caption": {
623
+ "type": "string"
624
+ }
625
+ },
626
+ "additionalProperties": false
627
+ },
628
+ "step": {
629
+ "type": "string",
630
+ "const": "setPhpIniEntry"
631
+ },
632
+ "key": {
633
+ "type": "string"
634
+ },
635
+ "value": {
636
+ "type": "string"
637
+ }
638
+ },
639
+ "required": [
640
+ "key",
641
+ "step",
642
+ "value"
643
+ ]
644
+ },
645
+ {
646
+ "type": "object",
647
+ "additionalProperties": false,
648
+ "properties": {
649
+ "progress": {
650
+ "type": "object",
651
+ "properties": {
652
+ "weight": {
653
+ "type": "number"
654
+ },
655
+ "caption": {
656
+ "type": "string"
657
+ }
658
+ },
659
+ "additionalProperties": false
660
+ },
661
+ "step": {
662
+ "type": "string",
663
+ "const": "setSiteOptions"
664
+ },
665
+ "options": {
666
+ "type": "object",
667
+ "additionalProperties": {}
668
+ }
669
+ },
670
+ "required": [
671
+ "options",
672
+ "step"
673
+ ]
674
+ },
675
+ {
676
+ "type": "object",
677
+ "additionalProperties": false,
678
+ "properties": {
679
+ "progress": {
680
+ "type": "object",
681
+ "properties": {
682
+ "weight": {
683
+ "type": "number"
684
+ },
685
+ "caption": {
686
+ "type": "string"
687
+ }
688
+ },
689
+ "additionalProperties": false
690
+ },
691
+ "step": {
692
+ "type": "string",
693
+ "const": "unzip"
694
+ },
695
+ "zipPath": {
696
+ "type": "string"
697
+ },
698
+ "extractToPath": {
699
+ "type": "string"
700
+ }
701
+ },
702
+ "required": [
703
+ "extractToPath",
704
+ "step",
705
+ "zipPath"
706
+ ]
707
+ },
708
+ {
709
+ "type": "object",
710
+ "additionalProperties": false,
711
+ "properties": {
712
+ "progress": {
713
+ "type": "object",
714
+ "properties": {
715
+ "weight": {
716
+ "type": "number"
717
+ },
718
+ "caption": {
719
+ "type": "string"
720
+ }
721
+ },
722
+ "additionalProperties": false
723
+ },
724
+ "step": {
725
+ "type": "string",
726
+ "const": "updateUserMeta"
727
+ },
728
+ "meta": {
729
+ "type": "object",
730
+ "additionalProperties": {}
731
+ },
732
+ "userId": {
733
+ "type": "number"
734
+ }
735
+ },
736
+ "required": [
737
+ "meta",
738
+ "step",
739
+ "userId"
740
+ ]
741
+ },
742
+ {
743
+ "type": "object",
744
+ "additionalProperties": false,
745
+ "properties": {
746
+ "progress": {
747
+ "type": "object",
748
+ "properties": {
749
+ "weight": {
750
+ "type": "number"
751
+ },
752
+ "caption": {
753
+ "type": "string"
754
+ }
755
+ },
756
+ "additionalProperties": false
757
+ },
758
+ "step": {
759
+ "type": "string",
760
+ "const": "writeFile"
761
+ },
762
+ "path": {
763
+ "type": "string"
764
+ },
765
+ "data": {
766
+ "anyOf": [
767
+ {
768
+ "$ref": "#/definitions/FileReference"
769
+ },
770
+ {
771
+ "type": "string"
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "BYTES_PER_ELEMENT": {
777
+ "type": "number"
778
+ },
779
+ "buffer": {
780
+ "type": "object",
781
+ "properties": {
782
+ "byteLength": {
783
+ "type": "number"
784
+ }
785
+ },
786
+ "required": [
787
+ "byteLength"
788
+ ],
789
+ "additionalProperties": false
790
+ },
791
+ "byteLength": {
792
+ "type": "number"
793
+ },
794
+ "byteOffset": {
795
+ "type": "number"
796
+ },
797
+ "length": {
798
+ "type": "number"
799
+ }
800
+ },
801
+ "required": [
802
+ "BYTES_PER_ELEMENT",
803
+ "buffer",
804
+ "byteLength",
805
+ "byteOffset",
806
+ "length"
807
+ ],
808
+ "additionalProperties": {
809
+ "type": "number"
810
+ }
811
+ }
812
+ ]
813
+ }
814
+ },
815
+ "required": [
816
+ "data",
817
+ "path",
818
+ "step"
819
+ ]
820
+ }
821
+ ]
822
+ },
823
+ "FileReference": {
824
+ "anyOf": [
825
+ {
826
+ "$ref": "#/definitions/VFSReference"
827
+ },
828
+ {
829
+ "$ref": "#/definitions/LiteralReference"
830
+ },
831
+ {
832
+ "$ref": "#/definitions/CoreThemeReference"
833
+ },
834
+ {
835
+ "$ref": "#/definitions/CorePluginReference"
836
+ },
837
+ {
838
+ "$ref": "#/definitions/UrlReference"
839
+ }
840
+ ]
841
+ },
842
+ "VFSReference": {
843
+ "type": "object",
844
+ "properties": {
845
+ "resource": {
846
+ "type": "string",
847
+ "const": "vfs",
848
+ "description": "Identifies the file resource as Virtual File System (VFS)"
849
+ },
850
+ "path": {
851
+ "type": "string",
852
+ "description": "The path to the file in the VFS"
853
+ }
854
+ },
855
+ "required": [
856
+ "resource",
857
+ "path"
858
+ ],
859
+ "additionalProperties": false
860
+ },
861
+ "LiteralReference": {
862
+ "type": "object",
863
+ "properties": {
864
+ "resource": {
865
+ "type": "string",
866
+ "const": "literal",
867
+ "description": "Identifies the file resource as a literal file"
868
+ },
869
+ "name": {
870
+ "type": "string",
871
+ "description": "The name of the file"
872
+ },
873
+ "contents": {
874
+ "anyOf": [
875
+ {
876
+ "type": "string"
877
+ },
878
+ {
879
+ "type": "object",
880
+ "properties": {
881
+ "BYTES_PER_ELEMENT": {
882
+ "type": "number"
883
+ },
884
+ "buffer": {
885
+ "type": "object",
886
+ "properties": {
887
+ "byteLength": {
888
+ "type": "number"
889
+ }
890
+ },
891
+ "required": [
892
+ "byteLength"
893
+ ],
894
+ "additionalProperties": false
895
+ },
896
+ "byteLength": {
897
+ "type": "number"
898
+ },
899
+ "byteOffset": {
900
+ "type": "number"
901
+ },
902
+ "length": {
903
+ "type": "number"
904
+ }
905
+ },
906
+ "required": [
907
+ "BYTES_PER_ELEMENT",
908
+ "buffer",
909
+ "byteLength",
910
+ "byteOffset",
911
+ "length"
912
+ ],
913
+ "additionalProperties": {
914
+ "type": "number"
915
+ }
916
+ }
917
+ ],
918
+ "description": "The contents of the file"
919
+ }
920
+ },
921
+ "required": [
922
+ "resource",
923
+ "name",
924
+ "contents"
925
+ ],
926
+ "additionalProperties": false
927
+ },
928
+ "CoreThemeReference": {
929
+ "type": "object",
930
+ "properties": {
931
+ "resource": {
932
+ "type": "string",
933
+ "const": "wordpress.org/themes",
934
+ "description": "Identifies the file resource as a WordPress Core theme"
935
+ },
936
+ "slug": {
937
+ "type": "string",
938
+ "description": "The slug of the WordPress Core theme"
939
+ }
940
+ },
941
+ "required": [
942
+ "resource",
943
+ "slug"
944
+ ],
945
+ "additionalProperties": false
946
+ },
947
+ "CorePluginReference": {
948
+ "type": "object",
949
+ "properties": {
950
+ "resource": {
951
+ "type": "string",
952
+ "const": "wordpress.org/plugins",
953
+ "description": "Identifies the file resource as a WordPress Core plugin"
954
+ },
955
+ "slug": {
956
+ "type": "string",
957
+ "description": "The slug of the WordPress Core plugin"
958
+ }
959
+ },
960
+ "required": [
961
+ "resource",
962
+ "slug"
963
+ ],
964
+ "additionalProperties": false
965
+ },
966
+ "UrlReference": {
967
+ "type": "object",
968
+ "properties": {
969
+ "resource": {
970
+ "type": "string",
971
+ "const": "url",
972
+ "description": "Identifies the file resource as a URL"
973
+ },
974
+ "url": {
975
+ "type": "string",
976
+ "description": "The URL of the file"
977
+ },
978
+ "caption": {
979
+ "type": "string",
980
+ "description": "Optional caption for displaying a progress message"
981
+ }
982
+ },
983
+ "required": [
984
+ "resource",
985
+ "url"
986
+ ],
987
+ "additionalProperties": false
988
+ },
989
+ "InstallPluginOptions": {
990
+ "type": "object",
991
+ "properties": {
992
+ "activate": {
993
+ "type": "boolean",
994
+ "description": "Whether to activate the plugin after installing it."
995
+ }
996
+ },
997
+ "additionalProperties": false
998
+ },
999
+ "InstallThemeOptions": {
1000
+ "type": "object",
1001
+ "properties": {
1002
+ "activate": {
1003
+ "type": "boolean",
1004
+ "description": "Whether to activate the theme after installing it."
1005
+ }
1006
+ },
1007
+ "additionalProperties": false
1008
+ },
1009
+ "PHPRequest": {
1010
+ "type": "object",
1011
+ "properties": {
1012
+ "method": {
1013
+ "$ref": "#/definitions/HTTPMethod",
1014
+ "description": "Request method. Default: `GET`."
1015
+ },
1016
+ "url": {
1017
+ "type": "string",
1018
+ "description": "Request path or absolute URL."
1019
+ },
1020
+ "headers": {
1021
+ "$ref": "#/definitions/PHPRequestHeaders",
1022
+ "description": "Request headers."
1023
+ },
1024
+ "files": {
1025
+ "type": "object",
1026
+ "additionalProperties": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "size": {
1030
+ "type": "number"
1031
+ },
1032
+ "type": {
1033
+ "type": "string"
1034
+ },
1035
+ "lastModified": {
1036
+ "type": "number"
1037
+ },
1038
+ "name": {
1039
+ "type": "string"
1040
+ },
1041
+ "webkitRelativePath": {
1042
+ "type": "string"
1043
+ }
1044
+ },
1045
+ "required": [
1046
+ "lastModified",
1047
+ "name",
1048
+ "size",
1049
+ "type",
1050
+ "webkitRelativePath"
1051
+ ],
1052
+ "additionalProperties": false
1053
+ },
1054
+ "description": "Uploaded files"
1055
+ },
1056
+ "body": {
1057
+ "type": "string",
1058
+ "description": "Request body without the files."
1059
+ },
1060
+ "formData": {
1061
+ "type": "object",
1062
+ "additionalProperties": {},
1063
+ "description": "Form data. If set, the request body will be ignored and the content-type header will be set to `application/x-www-form-urlencoded`."
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "url"
1068
+ ],
1069
+ "additionalProperties": false
1070
+ },
1071
+ "HTTPMethod": {
1072
+ "type": "string",
1073
+ "enum": [
1074
+ "GET",
1075
+ "POST",
1076
+ "HEAD",
1077
+ "OPTIONS",
1078
+ "PATCH",
1079
+ "PUT",
1080
+ "DELETE"
1081
+ ]
1082
+ },
1083
+ "PHPRequestHeaders": {
1084
+ "type": "object",
1085
+ "additionalProperties": {
1086
+ "type": "string"
1087
+ }
1088
+ },
1089
+ "PHPRunOptions": {
1090
+ "type": "object",
1091
+ "properties": {
1092
+ "relativeUri": {
1093
+ "type": "string",
1094
+ "description": "Request path following the domain:port part."
1095
+ },
1096
+ "scriptPath": {
1097
+ "type": "string",
1098
+ "description": "Path of the .php file to execute."
1099
+ },
1100
+ "protocol": {
1101
+ "type": "string",
1102
+ "description": "Request protocol."
1103
+ },
1104
+ "method": {
1105
+ "$ref": "#/definitions/HTTPMethod",
1106
+ "description": "Request method. Default: `GET`."
1107
+ },
1108
+ "headers": {
1109
+ "$ref": "#/definitions/PHPRequestHeaders",
1110
+ "description": "Request headers."
1111
+ },
1112
+ "body": {
1113
+ "type": "string",
1114
+ "description": "Request body without the files."
1115
+ },
1116
+ "fileInfos": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "$ref": "#/definitions/FileInfo"
1120
+ },
1121
+ "description": "Uploaded files."
1122
+ },
1123
+ "code": {
1124
+ "type": "string",
1125
+ "description": "The code snippet to eval instead of a php file."
1126
+ }
1127
+ },
1128
+ "additionalProperties": false
1129
+ },
1130
+ "FileInfo": {
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "key": {
1134
+ "type": "string"
1135
+ },
1136
+ "name": {
1137
+ "type": "string"
1138
+ },
1139
+ "type": {
1140
+ "type": "string"
1141
+ },
1142
+ "data": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "BYTES_PER_ELEMENT": {
1146
+ "type": "number"
1147
+ },
1148
+ "buffer": {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "byteLength": {
1152
+ "type": "number"
1153
+ }
1154
+ },
1155
+ "required": [
1156
+ "byteLength"
1157
+ ],
1158
+ "additionalProperties": false
1159
+ },
1160
+ "byteLength": {
1161
+ "type": "number"
1162
+ },
1163
+ "byteOffset": {
1164
+ "type": "number"
1165
+ },
1166
+ "length": {
1167
+ "type": "number"
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "BYTES_PER_ELEMENT",
1172
+ "buffer",
1173
+ "byteLength",
1174
+ "byteOffset",
1175
+ "length"
1176
+ ],
1177
+ "additionalProperties": {
1178
+ "type": "number"
1179
+ }
1180
+ }
1181
+ },
1182
+ "required": [
1183
+ "key",
1184
+ "name",
1185
+ "type",
1186
+ "data"
1187
+ ],
1188
+ "additionalProperties": false
1189
+ },
1190
+ "WordPressInstallationOptions": {
1191
+ "type": "object",
1192
+ "properties": {
1193
+ "adminUsername": {
1194
+ "type": "string"
1195
+ },
1196
+ "adminPassword": {
1197
+ "type": "string"
1198
+ }
1199
+ },
1200
+ "additionalProperties": false
1201
+ }
1202
+ }
1203
+ }