@wp-playground/blueprints 3.1.44 → 3.1.45

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 (37) hide show
  1. package/blueprint-schema-validator.d.ts +4 -1
  2. package/blueprint-schema-validator.js +2322 -1831
  3. package/blueprint-schema.json +3067 -1
  4. package/blueprint-v2-schema-validator.d.ts +5 -0
  5. package/blueprint-v2-schema-validator.js +37821 -0
  6. package/index.cjs +974 -151
  7. package/index.cjs.map +1 -1
  8. package/index.d.ts +7 -4
  9. package/index.js +7203 -5120
  10. package/index.js.map +1 -1
  11. package/lib/compile.d.ts +5 -2
  12. package/lib/invalid-blueprint-error.d.ts +5 -0
  13. package/lib/reflection.d.ts +1 -1
  14. package/lib/resolve-runtime-configuration.d.ts +13 -1
  15. package/lib/steps/import-wxr.d.ts +20 -0
  16. package/lib/steps/reset-data.d.ts +9 -2
  17. package/lib/v1/compile.d.ts +2 -4
  18. package/lib/v2/blueprint-v2-declaration.d.ts +0 -10
  19. package/lib/v2/compile.d.ts +23 -2
  20. package/lib/v2/resolve-runtime-configuration.d.ts +20 -0
  21. package/lib/v2/validate-blueprint-v2.d.ts +17 -0
  22. package/lib/v2/wep-1-blueprint-v2-schema/appendix-A-blueprint-v2-schema.d.ts +91 -17
  23. package/lib/v2/wep-1-blueprint-v2-schema/appendix-B-data-sources.d.ts +54 -15
  24. package/lib/validate-blueprint-declaration.d.ts +6 -0
  25. package/package.json +11 -11
  26. package/schema-readme.md +6 -5
  27. package/tests/v2/schema-conformance-fixtures.d.ts +2033 -0
  28. package/validate-blueprint-v2-C3rgpKFU.js +17393 -0
  29. package/validate-blueprint-v2-C3rgpKFU.js.map +1 -0
  30. package/validate-blueprint-v2-CJ8Xbxyz.cjs +201 -0
  31. package/validate-blueprint-v2-CJ8Xbxyz.cjs.map +1 -0
  32. package/blueprints-Gs5fAvvo.cjs +0 -2
  33. package/blueprints-Gs5fAvvo.cjs.map +0 -1
  34. package/blueprints-pMn3V9MZ.js +0 -5
  35. package/blueprints-pMn3V9MZ.js.map +0 -1
  36. package/lib/v2/get-v2-runner.d.ts +0 -1
  37. package/lib/v2/run-blueprint-v2.d.ts +0 -36
@@ -0,0 +1,2033 @@
1
+ import type { BlueprintV2Declaration } from '../../lib/v2/blueprint-v2-declaration';
2
+ export type V2SchemaConformanceCase = {
3
+ name: string;
4
+ declaration: BlueprintV2Declaration;
5
+ };
6
+ export declare const v2SchemaConformanceFileContents: {
7
+ readonly font: "font data";
8
+ readonly media: "Blueprint v2 media";
9
+ readonly post: "<p>Blueprint v2 execution-context post</p>";
10
+ readonly sql: "CREATE TABLE IF NOT EXISTS blueprint_v2_conformance (value TEXT);";
11
+ readonly wxr: "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\" xmlns:wp=\"http://wordpress.org/export/1.2/\">\n\t<channel>\n\t\t<title>Blueprint v2 conformance</title>\n\t\t<link>https://source.example</link>\n\t\t<description></description>\n\t\t<pubDate>Sat, 11 Jul 2026 12:00:00 +0000</pubDate>\n\t\t<language>en-US</language>\n\t\t<wp:wxr_version>1.2</wp:wxr_version>\n\t\t<wp:base_site_url>https://source.example</wp:base_site_url>\n\t\t<wp:base_blog_url>https://source.example</wp:base_blog_url>\n\t</channel>\n</rss>";
12
+ readonly php: "<?php require \"/wordpress/wp-load.php\";";
13
+ };
14
+ export declare const v2SchemaConformanceCases: ({
15
+ name: string;
16
+ declaration: {
17
+ version: 2;
18
+ activeTheme: "https://example.com/assets/installable.zip" | "./assets/installable.zip" | {
19
+ filename: string;
20
+ content: string;
21
+ } | {
22
+ directoryName: string;
23
+ files: {
24
+ 'style.css': string;
25
+ 'index.php': string;
26
+ 'inline-plugin.php': string;
27
+ includes: {
28
+ files: {
29
+ 'helper.php': string;
30
+ nested: {
31
+ files: {
32
+ 'readme.txt': string;
33
+ };
34
+ };
35
+ };
36
+ };
37
+ };
38
+ } | {
39
+ gitRepository: "https://example.com/installable.git";
40
+ ref: string;
41
+ pathInRepository: string;
42
+ };
43
+ };
44
+ } | {
45
+ name: string;
46
+ declaration: {
47
+ version: 2;
48
+ wordpressVersion: "https://example.com/assets/installable.zip" | "./assets/installable.zip" | {
49
+ filename: string;
50
+ content: string;
51
+ } | {
52
+ directoryName: string;
53
+ files: {
54
+ 'style.css': string;
55
+ 'index.php': string;
56
+ 'inline-plugin.php': string;
57
+ includes: {
58
+ files: {
59
+ 'helper.php': string;
60
+ nested: {
61
+ files: {
62
+ 'readme.txt': string;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
68
+ } | {
69
+ gitRepository: "https://example.com/installable.git";
70
+ ref: string;
71
+ pathInRepository: string;
72
+ };
73
+ };
74
+ } | {
75
+ name: string;
76
+ declaration: {
77
+ version: 2;
78
+ activeTheme: {
79
+ source: "https://example.com/assets/installable.zip" | "./assets/installable.zip" | {
80
+ filename: string;
81
+ content: string;
82
+ } | {
83
+ gitRepository: "https://example.com/installable.git";
84
+ ref: string;
85
+ pathInRepository: string;
86
+ } | "conformance-theme@1.0";
87
+ importStarterContent: boolean;
88
+ targetDirectoryName: string;
89
+ onError: "throw" | "skip-theme";
90
+ ifAlreadyInstalled: "error" | "overwrite" | "skip";
91
+ humanReadableName: string;
92
+ };
93
+ };
94
+ } | {
95
+ name: string;
96
+ declaration: {
97
+ version: 2;
98
+ $schema: "https://playground.wordpress.net/blueprint-schema.json";
99
+ blueprintMeta: {
100
+ name: string;
101
+ description: string;
102
+ moreInfo: string;
103
+ version: string;
104
+ authors: string[];
105
+ homepage: "https://playground.wordpress.net/";
106
+ donateLink: "https://wordpress.org/donate/";
107
+ tags: string[];
108
+ license: string;
109
+ };
110
+ applicationOptions: {
111
+ 'wordpress-playground': {
112
+ landingPage: string;
113
+ login: true;
114
+ networkAccess: true;
115
+ loadPhpExtensions: "intl"[];
116
+ };
117
+ };
118
+ contentBaseline: "empty";
119
+ usersBaseline: "empty";
120
+ siteLanguage: string;
121
+ siteOptions: {
122
+ stringValue: string;
123
+ booleanValue: boolean;
124
+ numberValue: number;
125
+ arrayValue: (string | number | boolean | string[] | {
126
+ child: string;
127
+ })[];
128
+ objectValue: {
129
+ child: string;
130
+ booleanChild: boolean;
131
+ numberChild: number;
132
+ arrayChild: string[];
133
+ objectChild: {
134
+ leaf: string;
135
+ };
136
+ };
137
+ blogname: string;
138
+ timezone_string: string;
139
+ permalink_structure: string;
140
+ };
141
+ constants: {
142
+ WP_DEBUG: true;
143
+ WP_DEBUG_LOG: false;
144
+ WP_DEBUG_DISPLAY: true;
145
+ SCRIPT_DEBUG: false;
146
+ CUSTOM_BOOLEAN: true;
147
+ CUSTOM_STRING: string;
148
+ CUSTOM_NUMBER: number;
149
+ };
150
+ wordpressVersion: "latest";
151
+ phpVersion: "8.3";
152
+ activeTheme: {
153
+ importStarterContent: true;
154
+ targetDirectoryName: string;
155
+ onError: "skip-theme";
156
+ ifAlreadyInstalled: "overwrite";
157
+ humanReadableName: string;
158
+ source: "https://example.com/assets/installable.zip";
159
+ } | {
160
+ importStarterContent: true;
161
+ targetDirectoryName: string;
162
+ onError: "skip-theme";
163
+ ifAlreadyInstalled: "overwrite";
164
+ humanReadableName: string;
165
+ source: "./assets/installable.zip";
166
+ } | {
167
+ importStarterContent: true;
168
+ targetDirectoryName: string;
169
+ onError: "skip-theme";
170
+ ifAlreadyInstalled: "overwrite";
171
+ humanReadableName: string;
172
+ source: {
173
+ filename: string;
174
+ content: string;
175
+ };
176
+ } | {
177
+ importStarterContent: true;
178
+ targetDirectoryName: string;
179
+ onError: "skip-theme";
180
+ ifAlreadyInstalled: "overwrite";
181
+ humanReadableName: string;
182
+ source: {
183
+ directoryName: string;
184
+ files: {
185
+ 'style.css': string;
186
+ 'index.php': string;
187
+ 'inline-plugin.php': string;
188
+ includes: {
189
+ files: {
190
+ 'helper.php': string;
191
+ nested: {
192
+ files: {
193
+ 'readme.txt': string;
194
+ };
195
+ };
196
+ };
197
+ };
198
+ };
199
+ };
200
+ } | {
201
+ importStarterContent: true;
202
+ targetDirectoryName: string;
203
+ onError: "skip-theme";
204
+ ifAlreadyInstalled: "overwrite";
205
+ humanReadableName: string;
206
+ source: {
207
+ gitRepository: "https://example.com/installable.git";
208
+ ref: string;
209
+ pathInRepository: string;
210
+ };
211
+ } | {
212
+ importStarterContent: true;
213
+ targetDirectoryName: string;
214
+ onError: "skip-theme";
215
+ ifAlreadyInstalled: "overwrite";
216
+ humanReadableName: string;
217
+ source: string;
218
+ };
219
+ themes: (string | {
220
+ filename: string;
221
+ content: string;
222
+ } | {
223
+ directoryName: string;
224
+ files: {
225
+ 'style.css': string;
226
+ 'index.php': string;
227
+ 'inline-plugin.php': string;
228
+ includes: {
229
+ files: {
230
+ 'helper.php': string;
231
+ nested: {
232
+ files: {
233
+ 'readme.txt': string;
234
+ };
235
+ };
236
+ };
237
+ };
238
+ };
239
+ } | {
240
+ gitRepository: "https://example.com/installable.git";
241
+ ref: string;
242
+ pathInRepository: string;
243
+ } | {
244
+ source: "https://example.com/assets/installable.zip";
245
+ importStarterContent: true;
246
+ targetDirectoryName: string;
247
+ onError: "skip-theme";
248
+ ifAlreadyInstalled: "overwrite";
249
+ humanReadableName: string;
250
+ } | {
251
+ source: "./assets/installable.zip";
252
+ importStarterContent: false;
253
+ targetDirectoryName: string;
254
+ onError: "throw";
255
+ ifAlreadyInstalled: "skip";
256
+ humanReadableName: string;
257
+ } | {
258
+ source: {
259
+ filename: string;
260
+ content: string;
261
+ };
262
+ targetDirectoryName: string;
263
+ ifAlreadyInstalled: "error";
264
+ humanReadableName: string;
265
+ importStarterContent?: undefined;
266
+ onError?: undefined;
267
+ } | {
268
+ source: {
269
+ directoryName: string;
270
+ files: {
271
+ 'style.css': string;
272
+ 'index.php': string;
273
+ 'inline-plugin.php': string;
274
+ includes: {
275
+ files: {
276
+ 'helper.php': string;
277
+ nested: {
278
+ files: {
279
+ 'readme.txt': string;
280
+ };
281
+ };
282
+ };
283
+ };
284
+ };
285
+ };
286
+ targetDirectoryName: string;
287
+ humanReadableName: string;
288
+ importStarterContent?: undefined;
289
+ onError?: undefined;
290
+ ifAlreadyInstalled?: undefined;
291
+ } | {
292
+ source: {
293
+ gitRepository: "https://example.com/installable.git";
294
+ ref: string;
295
+ pathInRepository: string;
296
+ };
297
+ targetDirectoryName: string;
298
+ importStarterContent?: undefined;
299
+ onError?: undefined;
300
+ ifAlreadyInstalled?: undefined;
301
+ humanReadableName?: undefined;
302
+ } | {
303
+ source: string;
304
+ targetDirectoryName: string;
305
+ importStarterContent?: undefined;
306
+ onError?: undefined;
307
+ ifAlreadyInstalled?: undefined;
308
+ humanReadableName?: undefined;
309
+ })[];
310
+ plugins: (string | {
311
+ filename: string;
312
+ content: string;
313
+ } | {
314
+ directoryName: string;
315
+ files: {
316
+ 'style.css': string;
317
+ 'index.php': string;
318
+ 'inline-plugin.php': string;
319
+ includes: {
320
+ files: {
321
+ 'helper.php': string;
322
+ nested: {
323
+ files: {
324
+ 'readme.txt': string;
325
+ };
326
+ };
327
+ };
328
+ };
329
+ };
330
+ } | {
331
+ gitRepository: "https://example.com/installable.git";
332
+ ref: string;
333
+ pathInRepository: string;
334
+ } | {
335
+ source: "https://example.com/assets/installable.zip";
336
+ active: true;
337
+ activationOptions: {
338
+ stringValue: string;
339
+ booleanValue: boolean;
340
+ numberValue: number;
341
+ arrayValue: (string | number | boolean | string[] | {
342
+ child: string;
343
+ })[];
344
+ objectValue: {
345
+ child: string;
346
+ booleanChild: boolean;
347
+ numberChild: number;
348
+ arrayChild: string[];
349
+ objectChild: {
350
+ leaf: string;
351
+ };
352
+ };
353
+ };
354
+ targetDirectoryName: string;
355
+ onError: "skip-plugin";
356
+ ifAlreadyInstalled: "overwrite";
357
+ humanReadableName: string;
358
+ } | {
359
+ source: "./assets/installable.zip";
360
+ active: false;
361
+ activationOptions: {
362
+ stringValue: string;
363
+ booleanValue: boolean;
364
+ numberValue: number;
365
+ arrayValue: (string | number | boolean | string[] | {
366
+ child: string;
367
+ })[];
368
+ objectValue: {
369
+ child: string;
370
+ booleanChild: boolean;
371
+ numberChild: number;
372
+ arrayChild: string[];
373
+ objectChild: {
374
+ leaf: string;
375
+ };
376
+ };
377
+ };
378
+ targetDirectoryName: string;
379
+ onError: "throw";
380
+ ifAlreadyInstalled: "skip";
381
+ humanReadableName: string;
382
+ } | {
383
+ source: {
384
+ filename: string;
385
+ content: string;
386
+ };
387
+ active: true;
388
+ activationOptions: {
389
+ stringValue: string;
390
+ booleanValue: boolean;
391
+ numberValue: number;
392
+ arrayValue: (string | number | boolean | string[] | {
393
+ child: string;
394
+ })[];
395
+ objectValue: {
396
+ child: string;
397
+ booleanChild: boolean;
398
+ numberChild: number;
399
+ arrayChild: string[];
400
+ objectChild: {
401
+ leaf: string;
402
+ };
403
+ };
404
+ };
405
+ targetDirectoryName: string;
406
+ ifAlreadyInstalled: "error";
407
+ humanReadableName: string;
408
+ onError?: undefined;
409
+ } | {
410
+ source: {
411
+ directoryName: string;
412
+ files: {
413
+ 'style.css': string;
414
+ 'index.php': string;
415
+ 'inline-plugin.php': string;
416
+ includes: {
417
+ files: {
418
+ 'helper.php': string;
419
+ nested: {
420
+ files: {
421
+ 'readme.txt': string;
422
+ };
423
+ };
424
+ };
425
+ };
426
+ };
427
+ };
428
+ active: true;
429
+ targetDirectoryName: string;
430
+ activationOptions?: undefined;
431
+ onError?: undefined;
432
+ ifAlreadyInstalled?: undefined;
433
+ humanReadableName?: undefined;
434
+ } | {
435
+ source: {
436
+ gitRepository: "https://example.com/installable.git";
437
+ ref: string;
438
+ pathInRepository: string;
439
+ };
440
+ active: true;
441
+ targetDirectoryName: string;
442
+ activationOptions?: undefined;
443
+ onError?: undefined;
444
+ ifAlreadyInstalled?: undefined;
445
+ humanReadableName?: undefined;
446
+ } | {
447
+ source: string;
448
+ active: true;
449
+ targetDirectoryName: string;
450
+ activationOptions?: undefined;
451
+ onError?: undefined;
452
+ ifAlreadyInstalled?: undefined;
453
+ humanReadableName?: undefined;
454
+ })[];
455
+ muPlugins: ("https://example.com/assets/installable.zip" | "./assets/installable.zip" | {
456
+ filename: string;
457
+ content: string;
458
+ } | {
459
+ directoryName: string;
460
+ files: {
461
+ 'style.css': string;
462
+ 'index.php': string;
463
+ 'inline-plugin.php': string;
464
+ includes: {
465
+ files: {
466
+ 'helper.php': string;
467
+ nested: {
468
+ files: {
469
+ 'readme.txt': string;
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
475
+ } | {
476
+ gitRepository: "https://example.com/installable.git";
477
+ ref: string;
478
+ pathInRepository: string;
479
+ })[];
480
+ postTypes: {
481
+ book: {
482
+ label: string;
483
+ labels: {
484
+ name: string;
485
+ singular_name: string;
486
+ add_new: string;
487
+ add_new_item: string;
488
+ edit_item: string;
489
+ new_item: string;
490
+ view_item: string;
491
+ view_items: string;
492
+ search_items: string;
493
+ not_found: string;
494
+ not_found_in_trash: string;
495
+ parent_item_colon: string;
496
+ all_items: string;
497
+ archives: string;
498
+ attributes: string;
499
+ insert_into_item: string;
500
+ uploaded_to_this_item: string;
501
+ featured_image: string;
502
+ set_featured_image: string;
503
+ remove_featured_image: string;
504
+ use_featured_image: string;
505
+ menu_name: string;
506
+ filter_items_list: string;
507
+ filter_by_date: string;
508
+ items_list_navigation: string;
509
+ items_list: string;
510
+ item_published: string;
511
+ item_published_privately: string;
512
+ item_reverted_to_draft: string;
513
+ item_trashed: string;
514
+ item_scheduled: string;
515
+ item_updated: string;
516
+ item_link: string;
517
+ item_link_description: string;
518
+ future_label: string;
519
+ };
520
+ description: string;
521
+ public: true;
522
+ hierarchical: false;
523
+ exclude_from_search: false;
524
+ publicly_queryable: true;
525
+ show_ui: true;
526
+ show_in_menu: true;
527
+ show_in_admin_bar: true;
528
+ show_in_nav_menus: true;
529
+ show_in_rest: true;
530
+ rest_base: string;
531
+ rest_namespace: string;
532
+ rest_controller_class: string;
533
+ menu_icon: string;
534
+ menu_position: number;
535
+ rename_capabilities: true;
536
+ singular_capability_name: string;
537
+ plural_capability_name: string;
538
+ taxonomies: string[];
539
+ query_var_name: string;
540
+ register_meta_box_cb: string;
541
+ enter_title_here: string;
542
+ capability_type: string;
543
+ capabilities: {
544
+ edit_post: string;
545
+ };
546
+ map_meta_cap: true;
547
+ supports: ("author" | "title" | "comments" | "editor" | "thumbnail" | "excerpt" | "trackbacks" | "custom-fields" | "revisions" | "page-attributes" | "post-formats")[];
548
+ has_archive: true;
549
+ rewrite: false;
550
+ query_var: true;
551
+ can_export: true;
552
+ delete_with_user: false;
553
+ template: [string, {
554
+ stringValue: string;
555
+ booleanValue: boolean;
556
+ numberValue: number;
557
+ arrayValue: (string | number | boolean | string[] | {
558
+ child: string;
559
+ })[];
560
+ objectValue: {
561
+ child: string;
562
+ booleanChild: boolean;
563
+ numberChild: number;
564
+ arrayChild: string[];
565
+ objectChild: {
566
+ leaf: string;
567
+ };
568
+ };
569
+ placeholder: string;
570
+ lock: {
571
+ move: true;
572
+ };
573
+ }][];
574
+ template_lock: "all";
575
+ };
576
+ movie: {
577
+ show_in_menu: string;
578
+ menu_position: string;
579
+ capability_type: [string, string];
580
+ has_archive: string;
581
+ rewrite: {
582
+ slug: string;
583
+ with_front: false;
584
+ pages: true;
585
+ feeds: true;
586
+ ep_mask: number;
587
+ };
588
+ query_var: string;
589
+ template_lock: "insert";
590
+ };
591
+ album: {
592
+ template_lock: false;
593
+ };
594
+ from_file: "./post-types/from-file.json";
595
+ };
596
+ fonts: {
597
+ url_font: `https://example.com/${string}/url.${string}`;
598
+ execution_context_font: `./${string}/execution-context.${string}`;
599
+ target_site_font: `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}`;
600
+ inline_font: {
601
+ readonly filename: `inline.${string}`;
602
+ readonly content: string;
603
+ };
604
+ collection: {
605
+ $schema: string;
606
+ font_families: {
607
+ font_family_settings: {
608
+ name: string;
609
+ slug: string;
610
+ fontFamily: string;
611
+ preview: string;
612
+ fontFace: ({
613
+ fontFamily: string;
614
+ fontDisplay: "fallback" | "swap" | "optional";
615
+ src: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
616
+ readonly filename: `inline.${string}`;
617
+ readonly content: string;
618
+ };
619
+ } | {
620
+ preview: string;
621
+ fontFamily: string;
622
+ fontStyle: string;
623
+ fontWeight: string;
624
+ fontDisplay: "auto";
625
+ src: `https://example.com/${string}/url.${string}`;
626
+ fontStretch: string;
627
+ ascentOverride: string;
628
+ descentOverride: string;
629
+ fontVariant: string;
630
+ fontFeatureSettings: string;
631
+ fontVariationSettings: string;
632
+ lineGapOverride: string;
633
+ sizeAdjust: string;
634
+ unicodeRange: string;
635
+ } | {
636
+ fontFamily: string;
637
+ fontWeight: number;
638
+ fontDisplay: "block";
639
+ src: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
640
+ readonly filename: `inline.${string}`;
641
+ readonly content: string;
642
+ })[];
643
+ preview?: undefined;
644
+ fontStyle?: undefined;
645
+ fontStretch?: undefined;
646
+ ascentOverride?: undefined;
647
+ descentOverride?: undefined;
648
+ fontVariant?: undefined;
649
+ fontFeatureSettings?: undefined;
650
+ fontVariationSettings?: undefined;
651
+ lineGapOverride?: undefined;
652
+ sizeAdjust?: undefined;
653
+ unicodeRange?: undefined;
654
+ } | {
655
+ fontFamily: string;
656
+ src: {
657
+ readonly filename: `inline.${string}`;
658
+ readonly content: string;
659
+ };
660
+ preview?: undefined;
661
+ fontStyle?: undefined;
662
+ fontWeight?: undefined;
663
+ fontDisplay?: undefined;
664
+ fontStretch?: undefined;
665
+ ascentOverride?: undefined;
666
+ descentOverride?: undefined;
667
+ fontVariant?: undefined;
668
+ fontFeatureSettings?: undefined;
669
+ fontVariationSettings?: undefined;
670
+ lineGapOverride?: undefined;
671
+ sizeAdjust?: undefined;
672
+ unicodeRange?: undefined;
673
+ })[];
674
+ };
675
+ categories: string[];
676
+ }[];
677
+ };
678
+ };
679
+ media: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
680
+ readonly filename: `inline.${string}`;
681
+ readonly content: string;
682
+ } | {
683
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
684
+ readonly filename: `inline.${string}`;
685
+ readonly content: string;
686
+ };
687
+ title: string;
688
+ description: string;
689
+ alt: string;
690
+ caption: string;
691
+ })[];
692
+ content: ({
693
+ type: "mysql-dump";
694
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
695
+ readonly filename: `inline.${string}`;
696
+ readonly content: string;
697
+ };
698
+ } | {
699
+ type: "posts";
700
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
701
+ readonly filename: `inline.${string}`;
702
+ readonly content: string;
703
+ };
704
+ urlsMode: "rewrite" | "preserve";
705
+ urlsMap: {
706
+ readonly 'https://source.example': "https://target.example";
707
+ };
708
+ } | {
709
+ type: "posts";
710
+ source: {
711
+ post_title: string;
712
+ post_name: string;
713
+ post_status: "pending" | "private" | "draft" | "publish" | "auto-draft" | "future" | "inherit" | "trash";
714
+ comment_status: "open" | "closed";
715
+ };
716
+ } | {
717
+ type: "mysql-dump";
718
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
719
+ readonly filename: `inline.${string}`;
720
+ readonly content: string;
721
+ })[];
722
+ urlsMode?: undefined;
723
+ urlsMap?: undefined;
724
+ authorsMode?: undefined;
725
+ authorsMap?: undefined;
726
+ staticAssets?: undefined;
727
+ defaultAuthorUsername?: undefined;
728
+ importUsers?: undefined;
729
+ importComments?: undefined;
730
+ } | {
731
+ type: "posts";
732
+ source: {
733
+ post_title: string;
734
+ post_name: string;
735
+ post_type: string;
736
+ post_status: "publish";
737
+ };
738
+ urlsMode?: undefined;
739
+ urlsMap?: undefined;
740
+ authorsMode?: undefined;
741
+ authorsMap?: undefined;
742
+ staticAssets?: undefined;
743
+ defaultAuthorUsername?: undefined;
744
+ importUsers?: undefined;
745
+ importComments?: undefined;
746
+ } | {
747
+ type: "posts";
748
+ source: {
749
+ post_author: number;
750
+ post_date: string;
751
+ post_content: string;
752
+ post_title: string;
753
+ post_excerpt: string;
754
+ post_status: "publish";
755
+ post_type: string;
756
+ comment_status: "open";
757
+ post_password: string;
758
+ post_name: string;
759
+ post_parent_name: string;
760
+ menu_order: number;
761
+ post_mime_type: string;
762
+ guid: string;
763
+ post_category: string[];
764
+ post_tags: string[];
765
+ tax_input: {
766
+ category: string[];
767
+ };
768
+ meta_input: {
769
+ stringValue: string;
770
+ booleanValue: boolean;
771
+ numberValue: number;
772
+ arrayValue: (string | number | boolean | string[] | {
773
+ child: string;
774
+ })[];
775
+ objectValue: {
776
+ child: string;
777
+ booleanChild: boolean;
778
+ numberChild: number;
779
+ arrayChild: string[];
780
+ objectChild: {
781
+ leaf: string;
782
+ };
783
+ };
784
+ };
785
+ page_template: string;
786
+ };
787
+ urlsMode: "rewrite";
788
+ urlsMap: {
789
+ readonly 'https://source.example': "https://target.example";
790
+ };
791
+ authorsMode?: undefined;
792
+ authorsMap?: undefined;
793
+ staticAssets?: undefined;
794
+ defaultAuthorUsername?: undefined;
795
+ importUsers?: undefined;
796
+ importComments?: undefined;
797
+ } | {
798
+ type: "posts";
799
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
800
+ readonly filename: `inline.${string}`;
801
+ readonly content: string;
802
+ } | {
803
+ post_title: string;
804
+ post_name: string;
805
+ post_status: "pending" | "private" | "draft" | "publish" | "auto-draft" | "future" | "inherit" | "trash";
806
+ comment_status: "open" | "closed";
807
+ })[];
808
+ urlsMode: "preserve";
809
+ urlsMap: {
810
+ readonly 'https://source.example': "https://target.example";
811
+ };
812
+ authorsMode?: undefined;
813
+ authorsMap?: undefined;
814
+ staticAssets?: undefined;
815
+ defaultAuthorUsername?: undefined;
816
+ importUsers?: undefined;
817
+ importComments?: undefined;
818
+ } | {
819
+ type: "wxr";
820
+ source: `./${string}/execution-context.${string}`;
821
+ authorsMode: "map";
822
+ authorsMap: {
823
+ remote: string;
824
+ };
825
+ staticAssets: "hotlink";
826
+ urlsMode: "preserve";
827
+ urlsMap?: undefined;
828
+ defaultAuthorUsername?: undefined;
829
+ importUsers?: undefined;
830
+ importComments?: undefined;
831
+ } | {
832
+ type: "wxr";
833
+ source: `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}`;
834
+ authorsMode: "map";
835
+ authorsMap: {
836
+ remote: string;
837
+ };
838
+ urlsMode?: undefined;
839
+ urlsMap?: undefined;
840
+ staticAssets?: undefined;
841
+ defaultAuthorUsername?: undefined;
842
+ importUsers?: undefined;
843
+ importComments?: undefined;
844
+ } | {
845
+ type: "wxr";
846
+ source: {
847
+ readonly filename: `inline.${string}`;
848
+ readonly content: string;
849
+ };
850
+ authorsMode: "map";
851
+ authorsMap: {
852
+ remote: string;
853
+ };
854
+ urlsMode?: undefined;
855
+ urlsMap?: undefined;
856
+ staticAssets?: undefined;
857
+ defaultAuthorUsername?: undefined;
858
+ importUsers?: undefined;
859
+ importComments?: undefined;
860
+ } | {
861
+ type: "wxr";
862
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
863
+ readonly filename: `inline.${string}`;
864
+ readonly content: string;
865
+ })[];
866
+ authorsMode: "map";
867
+ authorsMap: {
868
+ remote: string;
869
+ };
870
+ urlsMode?: undefined;
871
+ urlsMap?: undefined;
872
+ staticAssets?: undefined;
873
+ defaultAuthorUsername?: undefined;
874
+ importUsers?: undefined;
875
+ importComments?: undefined;
876
+ } | {
877
+ type: "wxr";
878
+ source: `https://example.com/${string}/url.${string}`;
879
+ authorsMode: "map";
880
+ authorsMap: {
881
+ remote: string;
882
+ };
883
+ staticAssets: "fetch";
884
+ defaultAuthorUsername: string;
885
+ importUsers: false;
886
+ importComments: true;
887
+ urlsMode: "rewrite";
888
+ urlsMap: {
889
+ readonly 'https://source.example': "https://target.example";
890
+ };
891
+ } | {
892
+ type: "wxr";
893
+ source: `https://example.com/${string}/url.${string}`;
894
+ authorsMode: "create";
895
+ urlsMode?: undefined;
896
+ urlsMap?: undefined;
897
+ authorsMap?: undefined;
898
+ staticAssets?: undefined;
899
+ defaultAuthorUsername?: undefined;
900
+ importUsers?: undefined;
901
+ importComments?: undefined;
902
+ } | {
903
+ type: "wxr";
904
+ source: `./${string}/execution-context.${string}`;
905
+ authorsMode: "default-author";
906
+ urlsMode?: undefined;
907
+ urlsMap?: undefined;
908
+ authorsMap?: undefined;
909
+ staticAssets?: undefined;
910
+ defaultAuthorUsername?: undefined;
911
+ importUsers?: undefined;
912
+ importComments?: undefined;
913
+ } | {
914
+ type: "wxr";
915
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
916
+ readonly filename: `inline.${string}`;
917
+ readonly content: string;
918
+ })[];
919
+ authorsMode: "create";
920
+ authorsMap: {
921
+ remote: string;
922
+ };
923
+ staticAssets: "hotlink";
924
+ defaultAuthorUsername: string;
925
+ importUsers: true;
926
+ importComments: false;
927
+ urlsMode: "preserve";
928
+ urlsMap: {
929
+ readonly 'https://source.example': "https://target.example";
930
+ };
931
+ } | {
932
+ type: "wxr";
933
+ source: `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}`;
934
+ authorsMode: "default-author";
935
+ staticAssets: "fetch";
936
+ defaultAuthorUsername: string;
937
+ importUsers: false;
938
+ importComments: false;
939
+ urlsMode: "rewrite";
940
+ urlsMap: {
941
+ readonly 'https://source.example': "https://target.example";
942
+ };
943
+ authorsMap?: undefined;
944
+ } | {
945
+ type: "wxr";
946
+ source: {
947
+ readonly filename: `inline.${string}`;
948
+ readonly content: string;
949
+ };
950
+ authorsMode: "default-author";
951
+ urlsMode?: undefined;
952
+ urlsMap?: undefined;
953
+ authorsMap?: undefined;
954
+ staticAssets?: undefined;
955
+ defaultAuthorUsername?: undefined;
956
+ importUsers?: undefined;
957
+ importComments?: undefined;
958
+ })[];
959
+ users: {
960
+ username: string;
961
+ email: string;
962
+ role: string;
963
+ meta: {
964
+ first_name: string;
965
+ last_name: string;
966
+ };
967
+ }[];
968
+ roles: {
969
+ name: string;
970
+ capabilities: {
971
+ read: string;
972
+ edit_posts: string;
973
+ };
974
+ }[];
975
+ additionalStepsAfterExecution: ({
976
+ targetDirectoryName: string;
977
+ source: "https://example.com/assets/installable.zip";
978
+ active: true;
979
+ activationOptions: {
980
+ stringValue: string;
981
+ booleanValue: boolean;
982
+ numberValue: number;
983
+ arrayValue: (string | number | boolean | string[] | {
984
+ child: string;
985
+ })[];
986
+ objectValue: {
987
+ child: string;
988
+ booleanChild: boolean;
989
+ numberChild: number;
990
+ arrayChild: string[];
991
+ objectChild: {
992
+ leaf: string;
993
+ };
994
+ };
995
+ };
996
+ onError: "skip-plugin";
997
+ ifAlreadyInstalled: "overwrite";
998
+ humanReadableName: string;
999
+ step: "installPlugin";
1000
+ } | {
1001
+ targetDirectoryName: string;
1002
+ source: "./assets/installable.zip";
1003
+ active: false;
1004
+ activationOptions: {
1005
+ stringValue: string;
1006
+ booleanValue: boolean;
1007
+ numberValue: number;
1008
+ arrayValue: (string | number | boolean | string[] | {
1009
+ child: string;
1010
+ })[];
1011
+ objectValue: {
1012
+ child: string;
1013
+ booleanChild: boolean;
1014
+ numberChild: number;
1015
+ arrayChild: string[];
1016
+ objectChild: {
1017
+ leaf: string;
1018
+ };
1019
+ };
1020
+ };
1021
+ onError: "throw";
1022
+ ifAlreadyInstalled: "skip";
1023
+ humanReadableName: string;
1024
+ step: "installPlugin";
1025
+ } | {
1026
+ targetDirectoryName: string;
1027
+ source: {
1028
+ filename: string;
1029
+ content: string;
1030
+ };
1031
+ active: true;
1032
+ activationOptions: {
1033
+ stringValue: string;
1034
+ booleanValue: boolean;
1035
+ numberValue: number;
1036
+ arrayValue: (string | number | boolean | string[] | {
1037
+ child: string;
1038
+ })[];
1039
+ objectValue: {
1040
+ child: string;
1041
+ booleanChild: boolean;
1042
+ numberChild: number;
1043
+ arrayChild: string[];
1044
+ objectChild: {
1045
+ leaf: string;
1046
+ };
1047
+ };
1048
+ };
1049
+ ifAlreadyInstalled: "error";
1050
+ humanReadableName: string;
1051
+ onError?: undefined;
1052
+ step: "installPlugin";
1053
+ } | {
1054
+ targetDirectoryName: string;
1055
+ source: {
1056
+ directoryName: string;
1057
+ files: {
1058
+ 'style.css': string;
1059
+ 'index.php': string;
1060
+ 'inline-plugin.php': string;
1061
+ includes: {
1062
+ files: {
1063
+ 'helper.php': string;
1064
+ nested: {
1065
+ files: {
1066
+ 'readme.txt': string;
1067
+ };
1068
+ };
1069
+ };
1070
+ };
1071
+ };
1072
+ };
1073
+ active: true;
1074
+ activationOptions?: undefined;
1075
+ onError?: undefined;
1076
+ ifAlreadyInstalled?: undefined;
1077
+ humanReadableName?: undefined;
1078
+ step: "installPlugin";
1079
+ } | {
1080
+ targetDirectoryName: string;
1081
+ source: {
1082
+ gitRepository: "https://example.com/installable.git";
1083
+ ref: string;
1084
+ pathInRepository: string;
1085
+ };
1086
+ active: true;
1087
+ activationOptions?: undefined;
1088
+ onError?: undefined;
1089
+ ifAlreadyInstalled?: undefined;
1090
+ humanReadableName?: undefined;
1091
+ step: "installPlugin";
1092
+ } | {
1093
+ targetDirectoryName: string;
1094
+ source: string;
1095
+ active: true;
1096
+ activationOptions?: undefined;
1097
+ onError?: undefined;
1098
+ ifAlreadyInstalled?: undefined;
1099
+ humanReadableName?: undefined;
1100
+ step: "installPlugin";
1101
+ } | {
1102
+ targetDirectoryName: string;
1103
+ source: "https://example.com/assets/installable.zip";
1104
+ importStarterContent: true;
1105
+ onError: "skip-theme";
1106
+ ifAlreadyInstalled: "overwrite";
1107
+ humanReadableName: string;
1108
+ step: "installTheme";
1109
+ active: boolean;
1110
+ } | {
1111
+ targetDirectoryName: string;
1112
+ source: "./assets/installable.zip";
1113
+ importStarterContent: false;
1114
+ onError: "throw";
1115
+ ifAlreadyInstalled: "skip";
1116
+ humanReadableName: string;
1117
+ step: "installTheme";
1118
+ active: boolean;
1119
+ } | {
1120
+ targetDirectoryName: string;
1121
+ source: {
1122
+ filename: string;
1123
+ content: string;
1124
+ };
1125
+ ifAlreadyInstalled: "error";
1126
+ humanReadableName: string;
1127
+ importStarterContent?: undefined;
1128
+ onError?: undefined;
1129
+ step: "installTheme";
1130
+ active: boolean;
1131
+ } | {
1132
+ targetDirectoryName: string;
1133
+ source: {
1134
+ directoryName: string;
1135
+ files: {
1136
+ 'style.css': string;
1137
+ 'index.php': string;
1138
+ 'inline-plugin.php': string;
1139
+ includes: {
1140
+ files: {
1141
+ 'helper.php': string;
1142
+ nested: {
1143
+ files: {
1144
+ 'readme.txt': string;
1145
+ };
1146
+ };
1147
+ };
1148
+ };
1149
+ };
1150
+ };
1151
+ humanReadableName: string;
1152
+ importStarterContent?: undefined;
1153
+ onError?: undefined;
1154
+ ifAlreadyInstalled?: undefined;
1155
+ step: "installTheme";
1156
+ active: boolean;
1157
+ } | {
1158
+ targetDirectoryName: string;
1159
+ source: {
1160
+ gitRepository: "https://example.com/installable.git";
1161
+ ref: string;
1162
+ pathInRepository: string;
1163
+ };
1164
+ importStarterContent?: undefined;
1165
+ onError?: undefined;
1166
+ ifAlreadyInstalled?: undefined;
1167
+ humanReadableName?: undefined;
1168
+ step: "installTheme";
1169
+ active: boolean;
1170
+ } | {
1171
+ targetDirectoryName: string;
1172
+ source: string;
1173
+ importStarterContent?: undefined;
1174
+ onError?: undefined;
1175
+ ifAlreadyInstalled?: undefined;
1176
+ humanReadableName?: undefined;
1177
+ step: "installTheme";
1178
+ active: boolean;
1179
+ } | {
1180
+ step: "runPHP";
1181
+ code: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1182
+ readonly filename: `inline.${string}`;
1183
+ readonly content: string;
1184
+ };
1185
+ env: {
1186
+ CASE: string;
1187
+ };
1188
+ } | {
1189
+ step: "runSQL";
1190
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1191
+ readonly filename: `inline.${string}`;
1192
+ readonly content: string;
1193
+ };
1194
+ } | {
1195
+ step: "unzip";
1196
+ zipFile: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1197
+ readonly filename: `inline.${string}`;
1198
+ readonly content: string;
1199
+ };
1200
+ extractToPath: string;
1201
+ } | {
1202
+ step: "defineConstants";
1203
+ constants: {
1204
+ WP_DEBUG: true;
1205
+ WP_DEBUG_LOG: false;
1206
+ WP_DEBUG_DISPLAY: true;
1207
+ SCRIPT_DEBUG: false;
1208
+ CUSTOM_BOOLEAN: true;
1209
+ CUSTOM_STRING: string;
1210
+ CUSTOM_NUMBER: number;
1211
+ };
1212
+ source?: undefined;
1213
+ active?: undefined;
1214
+ targetDirectoryName?: undefined;
1215
+ pluginPath?: undefined;
1216
+ humanReadableName?: undefined;
1217
+ themeDirectoryName?: undefined;
1218
+ content?: undefined;
1219
+ media?: undefined;
1220
+ themeSlug?: undefined;
1221
+ path?: undefined;
1222
+ files?: undefined;
1223
+ fromPath?: undefined;
1224
+ toPath?: undefined;
1225
+ language?: undefined;
1226
+ options?: undefined;
1227
+ command?: undefined;
1228
+ wpCliPath?: undefined;
1229
+ contentTypes?: undefined;
1230
+ } | {
1231
+ step: "installPlugin";
1232
+ source: {
1233
+ directoryName: string;
1234
+ files: {
1235
+ 'style.css': string;
1236
+ 'index.php': string;
1237
+ 'inline-plugin.php': string;
1238
+ includes: {
1239
+ files: {
1240
+ 'helper.php': string;
1241
+ nested: {
1242
+ files: {
1243
+ 'readme.txt': string;
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ };
1249
+ };
1250
+ active: false;
1251
+ targetDirectoryName: string;
1252
+ constants?: undefined;
1253
+ pluginPath?: undefined;
1254
+ humanReadableName?: undefined;
1255
+ themeDirectoryName?: undefined;
1256
+ content?: undefined;
1257
+ media?: undefined;
1258
+ themeSlug?: undefined;
1259
+ path?: undefined;
1260
+ files?: undefined;
1261
+ fromPath?: undefined;
1262
+ toPath?: undefined;
1263
+ language?: undefined;
1264
+ options?: undefined;
1265
+ command?: undefined;
1266
+ wpCliPath?: undefined;
1267
+ contentTypes?: undefined;
1268
+ } | {
1269
+ step: "activatePlugin";
1270
+ pluginPath: string;
1271
+ humanReadableName: string;
1272
+ constants?: undefined;
1273
+ source?: undefined;
1274
+ active?: undefined;
1275
+ targetDirectoryName?: undefined;
1276
+ themeDirectoryName?: undefined;
1277
+ content?: undefined;
1278
+ media?: undefined;
1279
+ themeSlug?: undefined;
1280
+ path?: undefined;
1281
+ files?: undefined;
1282
+ fromPath?: undefined;
1283
+ toPath?: undefined;
1284
+ language?: undefined;
1285
+ options?: undefined;
1286
+ command?: undefined;
1287
+ wpCliPath?: undefined;
1288
+ contentTypes?: undefined;
1289
+ } | {
1290
+ step: "installTheme";
1291
+ source: {
1292
+ directoryName: string;
1293
+ files: {
1294
+ 'style.css': string;
1295
+ 'index.php': string;
1296
+ 'inline-plugin.php': string;
1297
+ includes: {
1298
+ files: {
1299
+ 'helper.php': string;
1300
+ nested: {
1301
+ files: {
1302
+ 'readme.txt': string;
1303
+ };
1304
+ };
1305
+ };
1306
+ };
1307
+ };
1308
+ };
1309
+ active: false;
1310
+ targetDirectoryName: string;
1311
+ constants?: undefined;
1312
+ pluginPath?: undefined;
1313
+ humanReadableName?: undefined;
1314
+ themeDirectoryName?: undefined;
1315
+ content?: undefined;
1316
+ media?: undefined;
1317
+ themeSlug?: undefined;
1318
+ path?: undefined;
1319
+ files?: undefined;
1320
+ fromPath?: undefined;
1321
+ toPath?: undefined;
1322
+ language?: undefined;
1323
+ options?: undefined;
1324
+ command?: undefined;
1325
+ wpCliPath?: undefined;
1326
+ contentTypes?: undefined;
1327
+ } | {
1328
+ step: "activateTheme";
1329
+ themeDirectoryName: string;
1330
+ humanReadableName: string;
1331
+ constants?: undefined;
1332
+ source?: undefined;
1333
+ active?: undefined;
1334
+ targetDirectoryName?: undefined;
1335
+ pluginPath?: undefined;
1336
+ content?: undefined;
1337
+ media?: undefined;
1338
+ themeSlug?: undefined;
1339
+ path?: undefined;
1340
+ files?: undefined;
1341
+ fromPath?: undefined;
1342
+ toPath?: undefined;
1343
+ language?: undefined;
1344
+ options?: undefined;
1345
+ command?: undefined;
1346
+ wpCliPath?: undefined;
1347
+ contentTypes?: undefined;
1348
+ } | {
1349
+ step: "importContent";
1350
+ content: ({
1351
+ type: "mysql-dump";
1352
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1353
+ readonly filename: `inline.${string}`;
1354
+ readonly content: string;
1355
+ };
1356
+ } | {
1357
+ type: "posts";
1358
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1359
+ readonly filename: `inline.${string}`;
1360
+ readonly content: string;
1361
+ };
1362
+ urlsMode: "rewrite" | "preserve";
1363
+ urlsMap: {
1364
+ readonly 'https://source.example': "https://target.example";
1365
+ };
1366
+ } | {
1367
+ type: "posts";
1368
+ source: {
1369
+ post_title: string;
1370
+ post_name: string;
1371
+ post_status: "pending" | "private" | "draft" | "publish" | "auto-draft" | "future" | "inherit" | "trash";
1372
+ comment_status: "open" | "closed";
1373
+ };
1374
+ } | {
1375
+ type: "mysql-dump";
1376
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1377
+ readonly filename: `inline.${string}`;
1378
+ readonly content: string;
1379
+ })[];
1380
+ urlsMode?: undefined;
1381
+ urlsMap?: undefined;
1382
+ authorsMode?: undefined;
1383
+ authorsMap?: undefined;
1384
+ staticAssets?: undefined;
1385
+ defaultAuthorUsername?: undefined;
1386
+ importUsers?: undefined;
1387
+ importComments?: undefined;
1388
+ } | {
1389
+ type: "posts";
1390
+ source: {
1391
+ post_title: string;
1392
+ post_name: string;
1393
+ post_type: string;
1394
+ post_status: "publish";
1395
+ };
1396
+ urlsMode?: undefined;
1397
+ urlsMap?: undefined;
1398
+ authorsMode?: undefined;
1399
+ authorsMap?: undefined;
1400
+ staticAssets?: undefined;
1401
+ defaultAuthorUsername?: undefined;
1402
+ importUsers?: undefined;
1403
+ importComments?: undefined;
1404
+ } | {
1405
+ type: "posts";
1406
+ source: {
1407
+ post_author: number;
1408
+ post_date: string;
1409
+ post_content: string;
1410
+ post_title: string;
1411
+ post_excerpt: string;
1412
+ post_status: "publish";
1413
+ post_type: string;
1414
+ comment_status: "open";
1415
+ post_password: string;
1416
+ post_name: string;
1417
+ post_parent_name: string;
1418
+ menu_order: number;
1419
+ post_mime_type: string;
1420
+ guid: string;
1421
+ post_category: string[];
1422
+ post_tags: string[];
1423
+ tax_input: {
1424
+ category: string[];
1425
+ };
1426
+ meta_input: {
1427
+ stringValue: string;
1428
+ booleanValue: boolean;
1429
+ numberValue: number;
1430
+ arrayValue: (string | number | boolean | string[] | {
1431
+ child: string;
1432
+ })[];
1433
+ objectValue: {
1434
+ child: string;
1435
+ booleanChild: boolean;
1436
+ numberChild: number;
1437
+ arrayChild: string[];
1438
+ objectChild: {
1439
+ leaf: string;
1440
+ };
1441
+ };
1442
+ };
1443
+ page_template: string;
1444
+ };
1445
+ urlsMode: "rewrite";
1446
+ urlsMap: {
1447
+ readonly 'https://source.example': "https://target.example";
1448
+ };
1449
+ authorsMode?: undefined;
1450
+ authorsMap?: undefined;
1451
+ staticAssets?: undefined;
1452
+ defaultAuthorUsername?: undefined;
1453
+ importUsers?: undefined;
1454
+ importComments?: undefined;
1455
+ } | {
1456
+ type: "posts";
1457
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1458
+ readonly filename: `inline.${string}`;
1459
+ readonly content: string;
1460
+ } | {
1461
+ post_title: string;
1462
+ post_name: string;
1463
+ post_status: "pending" | "private" | "draft" | "publish" | "auto-draft" | "future" | "inherit" | "trash";
1464
+ comment_status: "open" | "closed";
1465
+ })[];
1466
+ urlsMode: "preserve";
1467
+ urlsMap: {
1468
+ readonly 'https://source.example': "https://target.example";
1469
+ };
1470
+ authorsMode?: undefined;
1471
+ authorsMap?: undefined;
1472
+ staticAssets?: undefined;
1473
+ defaultAuthorUsername?: undefined;
1474
+ importUsers?: undefined;
1475
+ importComments?: undefined;
1476
+ } | {
1477
+ type: "wxr";
1478
+ source: `./${string}/execution-context.${string}`;
1479
+ authorsMode: "map";
1480
+ authorsMap: {
1481
+ remote: string;
1482
+ };
1483
+ staticAssets: "hotlink";
1484
+ urlsMode: "preserve";
1485
+ urlsMap?: undefined;
1486
+ defaultAuthorUsername?: undefined;
1487
+ importUsers?: undefined;
1488
+ importComments?: undefined;
1489
+ } | {
1490
+ type: "wxr";
1491
+ source: `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}`;
1492
+ authorsMode: "map";
1493
+ authorsMap: {
1494
+ remote: string;
1495
+ };
1496
+ urlsMode?: undefined;
1497
+ urlsMap?: undefined;
1498
+ staticAssets?: undefined;
1499
+ defaultAuthorUsername?: undefined;
1500
+ importUsers?: undefined;
1501
+ importComments?: undefined;
1502
+ } | {
1503
+ type: "wxr";
1504
+ source: {
1505
+ readonly filename: `inline.${string}`;
1506
+ readonly content: string;
1507
+ };
1508
+ authorsMode: "map";
1509
+ authorsMap: {
1510
+ remote: string;
1511
+ };
1512
+ urlsMode?: undefined;
1513
+ urlsMap?: undefined;
1514
+ staticAssets?: undefined;
1515
+ defaultAuthorUsername?: undefined;
1516
+ importUsers?: undefined;
1517
+ importComments?: undefined;
1518
+ } | {
1519
+ type: "wxr";
1520
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1521
+ readonly filename: `inline.${string}`;
1522
+ readonly content: string;
1523
+ })[];
1524
+ authorsMode: "map";
1525
+ authorsMap: {
1526
+ remote: string;
1527
+ };
1528
+ urlsMode?: undefined;
1529
+ urlsMap?: undefined;
1530
+ staticAssets?: undefined;
1531
+ defaultAuthorUsername?: undefined;
1532
+ importUsers?: undefined;
1533
+ importComments?: undefined;
1534
+ } | {
1535
+ type: "wxr";
1536
+ source: `https://example.com/${string}/url.${string}`;
1537
+ authorsMode: "map";
1538
+ authorsMap: {
1539
+ remote: string;
1540
+ };
1541
+ staticAssets: "fetch";
1542
+ defaultAuthorUsername: string;
1543
+ importUsers: false;
1544
+ importComments: true;
1545
+ urlsMode: "rewrite";
1546
+ urlsMap: {
1547
+ readonly 'https://source.example': "https://target.example";
1548
+ };
1549
+ } | {
1550
+ type: "wxr";
1551
+ source: `https://example.com/${string}/url.${string}`;
1552
+ authorsMode: "create";
1553
+ urlsMode?: undefined;
1554
+ urlsMap?: undefined;
1555
+ authorsMap?: undefined;
1556
+ staticAssets?: undefined;
1557
+ defaultAuthorUsername?: undefined;
1558
+ importUsers?: undefined;
1559
+ importComments?: undefined;
1560
+ } | {
1561
+ type: "wxr";
1562
+ source: `./${string}/execution-context.${string}`;
1563
+ authorsMode: "default-author";
1564
+ urlsMode?: undefined;
1565
+ urlsMap?: undefined;
1566
+ authorsMap?: undefined;
1567
+ staticAssets?: undefined;
1568
+ defaultAuthorUsername?: undefined;
1569
+ importUsers?: undefined;
1570
+ importComments?: undefined;
1571
+ } | {
1572
+ type: "wxr";
1573
+ source: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1574
+ readonly filename: `inline.${string}`;
1575
+ readonly content: string;
1576
+ })[];
1577
+ authorsMode: "create";
1578
+ authorsMap: {
1579
+ remote: string;
1580
+ };
1581
+ staticAssets: "hotlink";
1582
+ defaultAuthorUsername: string;
1583
+ importUsers: true;
1584
+ importComments: false;
1585
+ urlsMode: "preserve";
1586
+ urlsMap: {
1587
+ readonly 'https://source.example': "https://target.example";
1588
+ };
1589
+ } | {
1590
+ type: "wxr";
1591
+ source: `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}`;
1592
+ authorsMode: "default-author";
1593
+ staticAssets: "fetch";
1594
+ defaultAuthorUsername: string;
1595
+ importUsers: false;
1596
+ importComments: false;
1597
+ urlsMode: "rewrite";
1598
+ urlsMap: {
1599
+ readonly 'https://source.example': "https://target.example";
1600
+ };
1601
+ authorsMap?: undefined;
1602
+ } | {
1603
+ type: "wxr";
1604
+ source: {
1605
+ readonly filename: `inline.${string}`;
1606
+ readonly content: string;
1607
+ };
1608
+ authorsMode: "default-author";
1609
+ urlsMode?: undefined;
1610
+ urlsMap?: undefined;
1611
+ authorsMap?: undefined;
1612
+ staticAssets?: undefined;
1613
+ defaultAuthorUsername?: undefined;
1614
+ importUsers?: undefined;
1615
+ importComments?: undefined;
1616
+ })[];
1617
+ constants?: undefined;
1618
+ source?: undefined;
1619
+ active?: undefined;
1620
+ targetDirectoryName?: undefined;
1621
+ pluginPath?: undefined;
1622
+ humanReadableName?: undefined;
1623
+ themeDirectoryName?: undefined;
1624
+ media?: undefined;
1625
+ themeSlug?: undefined;
1626
+ path?: undefined;
1627
+ files?: undefined;
1628
+ fromPath?: undefined;
1629
+ toPath?: undefined;
1630
+ language?: undefined;
1631
+ options?: undefined;
1632
+ command?: undefined;
1633
+ wpCliPath?: undefined;
1634
+ contentTypes?: undefined;
1635
+ } | {
1636
+ step: "importMedia";
1637
+ media: (`https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1638
+ readonly filename: `inline.${string}`;
1639
+ readonly content: string;
1640
+ } | {
1641
+ source: `https://example.com/${string}/url.${string}` | `./${string}/execution-context.${string}` | `site:wp-content/blueprint-v2-conformance/${string}/target-site.${string}` | {
1642
+ readonly filename: `inline.${string}`;
1643
+ readonly content: string;
1644
+ };
1645
+ title: string;
1646
+ description: string;
1647
+ alt: string;
1648
+ caption: string;
1649
+ })[];
1650
+ constants?: undefined;
1651
+ source?: undefined;
1652
+ active?: undefined;
1653
+ targetDirectoryName?: undefined;
1654
+ pluginPath?: undefined;
1655
+ humanReadableName?: undefined;
1656
+ themeDirectoryName?: undefined;
1657
+ content?: undefined;
1658
+ themeSlug?: undefined;
1659
+ path?: undefined;
1660
+ files?: undefined;
1661
+ fromPath?: undefined;
1662
+ toPath?: undefined;
1663
+ language?: undefined;
1664
+ options?: undefined;
1665
+ command?: undefined;
1666
+ wpCliPath?: undefined;
1667
+ contentTypes?: undefined;
1668
+ } | {
1669
+ step: "importThemeStarterContent";
1670
+ themeSlug: string;
1671
+ constants?: undefined;
1672
+ source?: undefined;
1673
+ active?: undefined;
1674
+ targetDirectoryName?: undefined;
1675
+ pluginPath?: undefined;
1676
+ humanReadableName?: undefined;
1677
+ themeDirectoryName?: undefined;
1678
+ content?: undefined;
1679
+ media?: undefined;
1680
+ path?: undefined;
1681
+ files?: undefined;
1682
+ fromPath?: undefined;
1683
+ toPath?: undefined;
1684
+ language?: undefined;
1685
+ options?: undefined;
1686
+ command?: undefined;
1687
+ wpCliPath?: undefined;
1688
+ contentTypes?: undefined;
1689
+ } | {
1690
+ step: "mkdir";
1691
+ path: string;
1692
+ constants?: undefined;
1693
+ source?: undefined;
1694
+ active?: undefined;
1695
+ targetDirectoryName?: undefined;
1696
+ pluginPath?: undefined;
1697
+ humanReadableName?: undefined;
1698
+ themeDirectoryName?: undefined;
1699
+ content?: undefined;
1700
+ media?: undefined;
1701
+ themeSlug?: undefined;
1702
+ files?: undefined;
1703
+ fromPath?: undefined;
1704
+ toPath?: undefined;
1705
+ language?: undefined;
1706
+ options?: undefined;
1707
+ command?: undefined;
1708
+ wpCliPath?: undefined;
1709
+ contentTypes?: undefined;
1710
+ } | {
1711
+ step: "writeFiles";
1712
+ files: {
1713
+ 'site:source.txt': {
1714
+ filename: string;
1715
+ content: string;
1716
+ };
1717
+ 'site:old.txt': {
1718
+ filename: string;
1719
+ content: string;
1720
+ };
1721
+ 'site:file.txt': {
1722
+ filename: string;
1723
+ content: string;
1724
+ };
1725
+ };
1726
+ constants?: undefined;
1727
+ source?: undefined;
1728
+ active?: undefined;
1729
+ targetDirectoryName?: undefined;
1730
+ pluginPath?: undefined;
1731
+ humanReadableName?: undefined;
1732
+ themeDirectoryName?: undefined;
1733
+ content?: undefined;
1734
+ media?: undefined;
1735
+ themeSlug?: undefined;
1736
+ path?: undefined;
1737
+ fromPath?: undefined;
1738
+ toPath?: undefined;
1739
+ language?: undefined;
1740
+ options?: undefined;
1741
+ command?: undefined;
1742
+ wpCliPath?: undefined;
1743
+ contentTypes?: undefined;
1744
+ } | {
1745
+ step: "cp";
1746
+ fromPath: string;
1747
+ toPath: string;
1748
+ constants?: undefined;
1749
+ source?: undefined;
1750
+ active?: undefined;
1751
+ targetDirectoryName?: undefined;
1752
+ pluginPath?: undefined;
1753
+ humanReadableName?: undefined;
1754
+ themeDirectoryName?: undefined;
1755
+ content?: undefined;
1756
+ media?: undefined;
1757
+ themeSlug?: undefined;
1758
+ path?: undefined;
1759
+ files?: undefined;
1760
+ language?: undefined;
1761
+ options?: undefined;
1762
+ command?: undefined;
1763
+ wpCliPath?: undefined;
1764
+ contentTypes?: undefined;
1765
+ } | {
1766
+ step: "mv";
1767
+ fromPath: string;
1768
+ toPath: string;
1769
+ constants?: undefined;
1770
+ source?: undefined;
1771
+ active?: undefined;
1772
+ targetDirectoryName?: undefined;
1773
+ pluginPath?: undefined;
1774
+ humanReadableName?: undefined;
1775
+ themeDirectoryName?: undefined;
1776
+ content?: undefined;
1777
+ media?: undefined;
1778
+ themeSlug?: undefined;
1779
+ path?: undefined;
1780
+ files?: undefined;
1781
+ language?: undefined;
1782
+ options?: undefined;
1783
+ command?: undefined;
1784
+ wpCliPath?: undefined;
1785
+ contentTypes?: undefined;
1786
+ } | {
1787
+ step: "rm";
1788
+ path: string;
1789
+ constants?: undefined;
1790
+ source?: undefined;
1791
+ active?: undefined;
1792
+ targetDirectoryName?: undefined;
1793
+ pluginPath?: undefined;
1794
+ humanReadableName?: undefined;
1795
+ themeDirectoryName?: undefined;
1796
+ content?: undefined;
1797
+ media?: undefined;
1798
+ themeSlug?: undefined;
1799
+ files?: undefined;
1800
+ fromPath?: undefined;
1801
+ toPath?: undefined;
1802
+ language?: undefined;
1803
+ options?: undefined;
1804
+ command?: undefined;
1805
+ wpCliPath?: undefined;
1806
+ contentTypes?: undefined;
1807
+ } | {
1808
+ step: "rmdir";
1809
+ path: string;
1810
+ constants?: undefined;
1811
+ source?: undefined;
1812
+ active?: undefined;
1813
+ targetDirectoryName?: undefined;
1814
+ pluginPath?: undefined;
1815
+ humanReadableName?: undefined;
1816
+ themeDirectoryName?: undefined;
1817
+ content?: undefined;
1818
+ media?: undefined;
1819
+ themeSlug?: undefined;
1820
+ files?: undefined;
1821
+ fromPath?: undefined;
1822
+ toPath?: undefined;
1823
+ language?: undefined;
1824
+ options?: undefined;
1825
+ command?: undefined;
1826
+ wpCliPath?: undefined;
1827
+ contentTypes?: undefined;
1828
+ } | {
1829
+ step: "setSiteLanguage";
1830
+ language: string;
1831
+ constants?: undefined;
1832
+ source?: undefined;
1833
+ active?: undefined;
1834
+ targetDirectoryName?: undefined;
1835
+ pluginPath?: undefined;
1836
+ humanReadableName?: undefined;
1837
+ themeDirectoryName?: undefined;
1838
+ content?: undefined;
1839
+ media?: undefined;
1840
+ themeSlug?: undefined;
1841
+ path?: undefined;
1842
+ files?: undefined;
1843
+ fromPath?: undefined;
1844
+ toPath?: undefined;
1845
+ options?: undefined;
1846
+ command?: undefined;
1847
+ wpCliPath?: undefined;
1848
+ contentTypes?: undefined;
1849
+ } | {
1850
+ step: "setSiteOptions";
1851
+ options: {
1852
+ stringValue: string;
1853
+ booleanValue: boolean;
1854
+ numberValue: number;
1855
+ arrayValue: (string | number | boolean | string[] | {
1856
+ child: string;
1857
+ })[];
1858
+ objectValue: {
1859
+ child: string;
1860
+ booleanChild: boolean;
1861
+ numberChild: number;
1862
+ arrayChild: string[];
1863
+ objectChild: {
1864
+ leaf: string;
1865
+ };
1866
+ };
1867
+ };
1868
+ constants?: undefined;
1869
+ source?: undefined;
1870
+ active?: undefined;
1871
+ targetDirectoryName?: undefined;
1872
+ pluginPath?: undefined;
1873
+ humanReadableName?: undefined;
1874
+ themeDirectoryName?: undefined;
1875
+ content?: undefined;
1876
+ media?: undefined;
1877
+ themeSlug?: undefined;
1878
+ path?: undefined;
1879
+ files?: undefined;
1880
+ fromPath?: undefined;
1881
+ toPath?: undefined;
1882
+ language?: undefined;
1883
+ command?: undefined;
1884
+ wpCliPath?: undefined;
1885
+ contentTypes?: undefined;
1886
+ } | {
1887
+ step: "wp-cli";
1888
+ command: string;
1889
+ wpCliPath: string;
1890
+ constants?: undefined;
1891
+ source?: undefined;
1892
+ active?: undefined;
1893
+ targetDirectoryName?: undefined;
1894
+ pluginPath?: undefined;
1895
+ humanReadableName?: undefined;
1896
+ themeDirectoryName?: undefined;
1897
+ content?: undefined;
1898
+ media?: undefined;
1899
+ themeSlug?: undefined;
1900
+ path?: undefined;
1901
+ files?: undefined;
1902
+ fromPath?: undefined;
1903
+ toPath?: undefined;
1904
+ language?: undefined;
1905
+ options?: undefined;
1906
+ contentTypes?: undefined;
1907
+ } | {
1908
+ step: "enableMultisite";
1909
+ constants?: undefined;
1910
+ source?: undefined;
1911
+ active?: undefined;
1912
+ targetDirectoryName?: undefined;
1913
+ pluginPath?: undefined;
1914
+ humanReadableName?: undefined;
1915
+ themeDirectoryName?: undefined;
1916
+ content?: undefined;
1917
+ media?: undefined;
1918
+ themeSlug?: undefined;
1919
+ path?: undefined;
1920
+ files?: undefined;
1921
+ fromPath?: undefined;
1922
+ toPath?: undefined;
1923
+ language?: undefined;
1924
+ options?: undefined;
1925
+ command?: undefined;
1926
+ wpCliPath?: undefined;
1927
+ contentTypes?: undefined;
1928
+ } | {
1929
+ step: "resetData";
1930
+ contentTypes: ["posts", "pages", "comments"];
1931
+ constants?: undefined;
1932
+ source?: undefined;
1933
+ active?: undefined;
1934
+ targetDirectoryName?: undefined;
1935
+ pluginPath?: undefined;
1936
+ humanReadableName?: undefined;
1937
+ themeDirectoryName?: undefined;
1938
+ content?: undefined;
1939
+ media?: undefined;
1940
+ themeSlug?: undefined;
1941
+ path?: undefined;
1942
+ files?: undefined;
1943
+ fromPath?: undefined;
1944
+ toPath?: undefined;
1945
+ language?: undefined;
1946
+ options?: undefined;
1947
+ command?: undefined;
1948
+ wpCliPath?: undefined;
1949
+ })[];
1950
+ };
1951
+ } | {
1952
+ name: string;
1953
+ declaration: {
1954
+ version: 2;
1955
+ wordpressVersion: "none";
1956
+ $schema?: undefined;
1957
+ contentBaseline?: undefined;
1958
+ usersBaseline?: undefined;
1959
+ applicationOptions?: undefined;
1960
+ siteOptions?: undefined;
1961
+ phpVersion?: undefined;
1962
+ activeTheme?: undefined;
1963
+ };
1964
+ } | {
1965
+ name: string;
1966
+ declaration: {
1967
+ version: 2;
1968
+ $schema: "./blueprint-schema.json";
1969
+ contentBaseline: "keep-all";
1970
+ usersBaseline: "keep-all";
1971
+ applicationOptions: {
1972
+ 'wordpress-playground': {
1973
+ login: {
1974
+ username: string;
1975
+ password: string;
1976
+ };
1977
+ };
1978
+ };
1979
+ siteOptions: {
1980
+ permalink_structure: false;
1981
+ };
1982
+ wordpressVersion: {
1983
+ min: "6.8";
1984
+ max: "6.9";
1985
+ preferred: "latest";
1986
+ };
1987
+ phpVersion: {
1988
+ min: "8.0";
1989
+ recommended: "8.3";
1990
+ max: "8.4";
1991
+ };
1992
+ activeTheme: string;
1993
+ };
1994
+ } | {
1995
+ name: string;
1996
+ declaration: {
1997
+ version: 2;
1998
+ contentBaseline: ["posts", "pages", "comments"];
1999
+ wordpressVersion?: undefined;
2000
+ $schema?: undefined;
2001
+ usersBaseline?: undefined;
2002
+ applicationOptions?: undefined;
2003
+ siteOptions?: undefined;
2004
+ phpVersion?: undefined;
2005
+ activeTheme?: undefined;
2006
+ };
2007
+ } | {
2008
+ name: string;
2009
+ declaration: {
2010
+ version: 2;
2011
+ contentBaseline: "posts";
2012
+ wordpressVersion?: undefined;
2013
+ $schema?: undefined;
2014
+ usersBaseline?: undefined;
2015
+ applicationOptions?: undefined;
2016
+ siteOptions?: undefined;
2017
+ phpVersion?: undefined;
2018
+ activeTheme?: undefined;
2019
+ };
2020
+ } | {
2021
+ name: string;
2022
+ declaration: {
2023
+ version: 2;
2024
+ contentBaseline: "pages";
2025
+ wordpressVersion?: undefined;
2026
+ $schema?: undefined;
2027
+ usersBaseline?: undefined;
2028
+ applicationOptions?: undefined;
2029
+ siteOptions?: undefined;
2030
+ phpVersion?: undefined;
2031
+ activeTheme?: undefined;
2032
+ };
2033
+ })[];