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