@wp-playground/client 0.1.61 → 0.2.0

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