@wp-operations/wp-ops 0.3.0 → 0.4.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.
Files changed (119) hide show
  1. package/README.md +6 -3
  2. package/package.json +6 -2
  3. package/src/commands/platform.js +58 -2
  4. package/src/commands/start.js +2 -2
  5. package/src/main.js +19 -8
  6. package/wp-operations/CHANGELOG.md +14 -0
  7. package/wp-operations/README.md +39 -0
  8. package/wp-operations/agents/builder/AGENT.md +15 -0
  9. package/wp-operations/assets/admin.css +631 -0
  10. package/wp-operations/assets/admin.js +614 -0
  11. package/wp-operations/assets/app/app.css +1 -0
  12. package/wp-operations/assets/app/app.js +70 -0
  13. package/wp-operations/assets/app/fonts/inter-medium.woff +0 -0
  14. package/wp-operations/assets/app/fonts/inter-regular.woff +0 -0
  15. package/wp-operations/assets/app/fonts/inter-semibold.woff +0 -0
  16. package/wp-operations/assets/app/login.css +42 -0
  17. package/wp-operations/assets/brand/icon.svg +20 -0
  18. package/wp-operations/assets/brand/mark.svg +19 -0
  19. package/wp-operations/assets/editors/audiobook.css +311 -0
  20. package/wp-operations/assets/editors/audiofile.css +286 -0
  21. package/wp-operations/assets/editors/course.css +701 -0
  22. package/wp-operations/assets/editors/course.js +698 -0
  23. package/wp-operations/assets/editors/faq.css +258 -0
  24. package/wp-operations/assets/editors/faq.js +196 -0
  25. package/wp-operations/assets/editors/interactive.css +220 -0
  26. package/wp-operations/assets/editors/interactive.js +378 -0
  27. package/wp-operations/assets/editors/media-sources.css +3 -0
  28. package/wp-operations/assets/editors/media-sources.js +40 -0
  29. package/wp-operations/assets/editors/open-media.css +114 -0
  30. package/wp-operations/assets/editors/open-media.js +182 -0
  31. package/wp-operations/assets/editors/thumbnails.css +335 -0
  32. package/wp-operations/assets/editors/thumbnails.js +447 -0
  33. package/wp-operations/assets/editors/translator.css +818 -0
  34. package/wp-operations/functions.php +24 -0
  35. package/wp-operations/index.php +14 -0
  36. package/wp-operations/platform.json +1836 -0
  37. package/wp-operations/skills/ai-development-guardrails/SKILL.md +49 -0
  38. package/wp-operations/skills/gutenberg-reference/SKILL.md +45 -0
  39. package/wp-operations/skills/js-tooling-for-themes/SKILL.md +51 -0
  40. package/wp-operations/skills/tailwind-for-wp/SKILL.md +62 -0
  41. package/wp-operations/skills/wp-clean-classic-themes/SKILL.md +112 -0
  42. package/wp-operations/skills/wp-psr4-plugins/SKILL.md +2043 -0
  43. package/wp-operations/skills/wp-security/SKILL.md +90 -0
  44. package/wp-operations/src/Admin.php +78 -0
  45. package/wp-operations/src/App/Access.php +57 -0
  46. package/wp-operations/src/App/Admin.php +442 -0
  47. package/wp-operations/src/App/App.php +157 -0
  48. package/wp-operations/src/App/Apps.php +379 -0
  49. package/wp-operations/src/App/Bundle.php +111 -0
  50. package/wp-operations/src/App/Contents.php +676 -0
  51. package/wp-operations/src/App/Engine.php +554 -0
  52. package/wp-operations/src/App/Github.php +308 -0
  53. package/wp-operations/src/App/Module.php +23 -0
  54. package/wp-operations/src/App/Ops.php +470 -0
  55. package/wp-operations/src/App/Packages.php +289 -0
  56. package/wp-operations/src/App/Rest.php +539 -0
  57. package/wp-operations/src/App/Sandboxes.php +206 -0
  58. package/wp-operations/src/App/Store.php +104 -0
  59. package/wp-operations/src/App/Usage.php +268 -0
  60. package/wp-operations/src/Config.php +249 -0
  61. package/wp-operations/src/Content/Editor.php +223 -0
  62. package/wp-operations/src/Content/Fields.php +681 -0
  63. package/wp-operations/src/Content/Scoring.php +253 -0
  64. package/wp-operations/src/Content/Structure.php +293 -0
  65. package/wp-operations/src/Content/Types.php +150 -0
  66. package/wp-operations/src/Content/Uploads.php +50 -0
  67. package/wp-operations/src/Editors/AudiobookAuthor.php +61 -0
  68. package/wp-operations/src/Editors/AudiobookChapters.php +632 -0
  69. package/wp-operations/src/Editors/AudiobookCover.php +235 -0
  70. package/wp-operations/src/Editors/Audiofile.php +462 -0
  71. package/wp-operations/src/Editors/Course.php +784 -0
  72. package/wp-operations/src/Editors/Ebook.php +242 -0
  73. package/wp-operations/src/Editors/Editors.php +44 -0
  74. package/wp-operations/src/Editors/Faq.php +237 -0
  75. package/wp-operations/src/Editors/Files.php +139 -0
  76. package/wp-operations/src/Editors/Interactive/Builder.php +103 -0
  77. package/wp-operations/src/Editors/Interactive/Card.php +76 -0
  78. package/wp-operations/src/Editors/Interactive/Editor.php +42 -0
  79. package/wp-operations/src/Editors/Interactive/Field.php +272 -0
  80. package/wp-operations/src/Editors/Interactive/Map.php +84 -0
  81. package/wp-operations/src/Editors/Interactive/Models.php +227 -0
  82. package/wp-operations/src/Editors/Interactive/Report.php +59 -0
  83. package/wp-operations/src/Editors/Interactive/Save.php +323 -0
  84. package/wp-operations/src/Editors/Interactive/Scoring.php +244 -0
  85. package/wp-operations/src/Editors/Interactive/Structure.php +195 -0
  86. package/wp-operations/src/Editors/Legal.php +235 -0
  87. package/wp-operations/src/Editors/OpenMedia.php +140 -0
  88. package/wp-operations/src/Editors/OriginalTitle.php +112 -0
  89. package/wp-operations/src/Editors/Sources.php +28 -0
  90. package/wp-operations/src/Editors/Thumbnails/Admin.php +306 -0
  91. package/wp-operations/src/Editors/Thumbnails/Ajax.php +163 -0
  92. package/wp-operations/src/Editors/Thumbnails/Box.php +188 -0
  93. package/wp-operations/src/Editors/Thumbnails/Storage.php +228 -0
  94. package/wp-operations/src/Editors/Translator/Admin.php +913 -0
  95. package/wp-operations/src/Editors/Translator/Api.php +63 -0
  96. package/wp-operations/src/Editors/Translator/Bar.php +83 -0
  97. package/wp-operations/src/Editors/Translator/Fields.php +273 -0
  98. package/wp-operations/src/Editors/Translator/Storage.php +131 -0
  99. package/wp-operations/src/Editors/Translator/Thumbnail.php +215 -0
  100. package/wp-operations/src/Identity.php +104 -0
  101. package/wp-operations/src/Languages.php +45 -0
  102. package/wp-operations/src/Lockdown.php +85 -0
  103. package/wp-operations/src/Modules/Apps/Admin.php +472 -0
  104. package/wp-operations/src/Modules/Apps/Api.php +193 -0
  105. package/wp-operations/src/Modules/Apps/Apps.php +279 -0
  106. package/wp-operations/src/Modules/Apps/Formatters.php +478 -0
  107. package/wp-operations/src/Modules/Apps/Schemes.php +248 -0
  108. package/wp-operations/src/Modules/Apps/Table.php +101 -0
  109. package/wp-operations/src/Modules/Thumbnails.php +68 -0
  110. package/wp-operations/src/Modules/Translations.php +133 -0
  111. package/wp-operations/src/Platform.php +59 -0
  112. package/wp-operations/src/Setup.php +273 -0
  113. package/wp-operations/src/Status.php +99 -0
  114. package/wp-operations/src/Storage/Client.php +168 -0
  115. package/wp-operations/src/Storage/Offload.php +120 -0
  116. package/wp-operations/src/Storage/Settings.php +166 -0
  117. package/wp-operations/src/Storage/Storage.php +35 -0
  118. package/wp-operations/src/Updates.php +151 -0
  119. package/wp-operations/style.css +11 -0
@@ -0,0 +1,1836 @@
1
+ {
2
+ "platform": {
3
+ "name": "",
4
+ "author": "",
5
+ "url": ""
6
+ },
7
+ "languages": [
8
+ {
9
+ "code": "en",
10
+ "name": "English"
11
+ },
12
+ {
13
+ "code": "fr",
14
+ "name": "French"
15
+ },
16
+ {
17
+ "code": "ar",
18
+ "name": "Arabic"
19
+ },
20
+ {
21
+ "code": "de",
22
+ "name": "German"
23
+ }
24
+ ],
25
+ "default_language": "en",
26
+ "admin": {
27
+ "hide_menus": [
28
+ "edit.php",
29
+ "edit.php?post_type=page",
30
+ "edit-comments.php",
31
+ "themes.php"
32
+ ],
33
+ "hide_submenus": {
34
+ "themes.php": [
35
+ "themes.php",
36
+ "customize.php",
37
+ "theme-editor.php",
38
+ "site-editor.php",
39
+ "edit.php?post_type=wp_block",
40
+ "font-library.php"
41
+ ],
42
+ "tools.php": [
43
+ "theme-editor.php",
44
+ "plugin-editor.php"
45
+ ]
46
+ },
47
+ "block_screens": [
48
+ "edit.php?post_type=post",
49
+ "edit.php?post_type=page",
50
+ "edit-comments.php",
51
+ "theme-editor.php",
52
+ "site-editor.php",
53
+ "font-library.php",
54
+ "theme-install.php"
55
+ ],
56
+ "hide_admin_bar": [
57
+ "customize",
58
+ "new-post",
59
+ "new-page",
60
+ "comments"
61
+ ],
62
+ "feeds": false,
63
+ "deny_capabilities": [
64
+ "edit_themes",
65
+ "edit_files",
66
+ "install_themes",
67
+ "delete_themes"
68
+ ]
69
+ },
70
+ "modules": {
71
+ "thumbnails": {
72
+ "label": "Thumbnails",
73
+ "icon": "dashicons-format-image",
74
+ "position": 78
75
+ },
76
+ "translations": {
77
+ "label": "Translator",
78
+ "icon": "dashicons-translation",
79
+ "position": 79
80
+ },
81
+ "apps": {
82
+ "label": "Apps",
83
+ "icon": "dashicons-screenoptions",
84
+ "position": 30
85
+ }
86
+ },
87
+ "content": {
88
+ "placeholders": [
89
+ "entity_name",
90
+ "entity_address",
91
+ "reg_number",
92
+ "service_name",
93
+ "service_oneline",
94
+ "support_email",
95
+ "support_number",
96
+ "price_point",
97
+ "recurring_amount",
98
+ "trial_amount",
99
+ "trial_days",
100
+ "about"
101
+ ],
102
+ "types": [
103
+ {
104
+ "key": "courses",
105
+ "label": "Courses",
106
+ "singular": "Course",
107
+ "kind": "media",
108
+ "editor": "course",
109
+ "icon": "dashicons-welcome-learn-more",
110
+ "position": 11,
111
+ "supports": [
112
+ "title",
113
+ "editor",
114
+ "excerpt",
115
+ "thumbnail"
116
+ ],
117
+ "translate": true,
118
+ "folder": "courses",
119
+ "api": {
120
+ "format": "course"
121
+ },
122
+ "fields": [
123
+ {
124
+ "key": "course_level",
125
+ "type": "select",
126
+ "label": "Difficulty",
127
+ "options": {
128
+ "beginner": "Beginner",
129
+ "intermediate": "Intermediate",
130
+ "advanced": "Advanced"
131
+ },
132
+ "default": "beginner",
133
+ "width": "key"
134
+ },
135
+ {
136
+ "key": "video",
137
+ "type": "video",
138
+ "label": "Intro video",
139
+ "languages": "suffix"
140
+ }
141
+ ],
142
+ "children": {
143
+ "key": "topics",
144
+ "label": "Topics",
145
+ "singular": "Topic",
146
+ "supports": [
147
+ "title",
148
+ "editor"
149
+ ],
150
+ "children": {
151
+ "key": "lessons",
152
+ "label": "Lessons",
153
+ "singular": "Lesson",
154
+ "supports": [
155
+ "title",
156
+ "editor",
157
+ "thumbnail"
158
+ ],
159
+ "fields": [
160
+ {
161
+ "key": "_video",
162
+ "type": "video",
163
+ "label": "Video",
164
+ "languages": "suffix"
165
+ },
166
+ {
167
+ "key": "_is_preview",
168
+ "type": "checkbox",
169
+ "label": "Free preview"
170
+ },
171
+ {
172
+ "key": "_tutor_attachments",
173
+ "type": "files",
174
+ "label": "Attachments"
175
+ }
176
+ ]
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "key": "audiobook",
182
+ "label": "Audiobooks",
183
+ "singular": "Audiobook",
184
+ "kind": "media",
185
+ "editor": "audiobook",
186
+ "icon": "dashicons-format-audio",
187
+ "position": 12,
188
+ "supports": [
189
+ "title",
190
+ "editor",
191
+ "excerpt",
192
+ "thumbnail"
193
+ ],
194
+ "translate": true,
195
+ "folder": "audiobooks",
196
+ "api": {
197
+ "format": "audiobook"
198
+ },
199
+ "fields": [
200
+ {
201
+ "key": "_audiobook_author_name",
202
+ "type": "text",
203
+ "label": "Author",
204
+ "width": "half"
205
+ },
206
+ {
207
+ "key": "_original_title",
208
+ "type": "text",
209
+ "label": "Original title",
210
+ "width": "half"
211
+ },
212
+ {
213
+ "key": "_audiobook_cover_image",
214
+ "type": "image",
215
+ "label": "Cover image",
216
+ "languages": "suffix"
217
+ },
218
+ {
219
+ "key": "_audiobook_chapters",
220
+ "type": "repeater",
221
+ "label": "Chapters",
222
+ "add": "Add chapter",
223
+ "translate": true,
224
+ "fields": [
225
+ {
226
+ "key": "title",
227
+ "type": "text",
228
+ "label": "Title",
229
+ "title_source": true
230
+ },
231
+ {
232
+ "key": "description",
233
+ "type": "textarea",
234
+ "label": "Description",
235
+ "rows": 2
236
+ },
237
+ {
238
+ "key": "audio",
239
+ "type": "audio",
240
+ "label": "Audio",
241
+ "inline": true
242
+ }
243
+ ]
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "key": "audiofile",
249
+ "label": "Audio Files",
250
+ "singular": "Audio File",
251
+ "kind": "media",
252
+ "editor": "audiofile",
253
+ "icon": "dashicons-playlist-audio",
254
+ "position": 13,
255
+ "supports": [
256
+ "title",
257
+ "editor",
258
+ "excerpt",
259
+ "thumbnail"
260
+ ],
261
+ "translate": true,
262
+ "folder": "audiofiles",
263
+ "api": {
264
+ "format": "audiofile"
265
+ },
266
+ "fields": [
267
+ {
268
+ "key": "_audiofile_data",
269
+ "type": "audio",
270
+ "label": "Audio"
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "key": "ebooks",
276
+ "label": "Ebooks",
277
+ "singular": "Ebook",
278
+ "kind": "media",
279
+ "editor": "ebook",
280
+ "icon": "dashicons-book-alt",
281
+ "position": 14,
282
+ "supports": [
283
+ "title",
284
+ "editor",
285
+ "thumbnail"
286
+ ],
287
+ "translate": true,
288
+ "folder": "ebooks",
289
+ "api": {
290
+ "format": "ebook"
291
+ },
292
+ "fields": [
293
+ {
294
+ "key": "_ebook_pdf_urls",
295
+ "type": "ebook",
296
+ "label": "PDF"
297
+ },
298
+ {
299
+ "key": "_ebook_allow_download",
300
+ "type": "checkbox",
301
+ "label": "Allow download"
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "key": "surveys",
307
+ "label": "Surveys",
308
+ "singular": "Survey",
309
+ "kind": "interactive",
310
+ "editor": "interactive",
311
+ "icon": "dashicons-forms",
312
+ "position": 18,
313
+ "supports": [
314
+ "title",
315
+ "editor",
316
+ "excerpt",
317
+ "thumbnail"
318
+ ],
319
+ "translate": true,
320
+ "api": {
321
+ "format": "interactive",
322
+ "items": "_items",
323
+ "staged": true
324
+ },
325
+ "boxes": [
326
+ {
327
+ "key": "card",
328
+ "label": "Card",
329
+ "context": "side"
330
+ },
331
+ {
332
+ "key": "scoring",
333
+ "label": "Scoring"
334
+ },
335
+ {
336
+ "key": "report",
337
+ "label": "Report"
338
+ }
339
+ ],
340
+ "fields": [
341
+ {
342
+ "key": "_icon",
343
+ "type": "text",
344
+ "label": "Icon name",
345
+ "box": "card"
346
+ },
347
+ {
348
+ "key": "_minutes",
349
+ "type": "number",
350
+ "step": 1,
351
+ "label": "Minutes to complete",
352
+ "box": "card"
353
+ },
354
+ {
355
+ "key": "_rating",
356
+ "type": "text",
357
+ "label": "Rating",
358
+ "box": "card"
359
+ },
360
+ {
361
+ "key": "_reviews",
362
+ "type": "number",
363
+ "step": 1,
364
+ "label": "Review count",
365
+ "box": "card"
366
+ },
367
+ {
368
+ "key": "_unlock",
369
+ "type": "select",
370
+ "label": "Order",
371
+ "box": "card",
372
+ "default": "open",
373
+ "options": {
374
+ "open": "Open, any part can be started",
375
+ "sequential": "Sequential, each part unlocks the next"
376
+ }
377
+ },
378
+ {
379
+ "key": "_intro_points",
380
+ "type": "lines",
381
+ "label": "Intro points, one per line",
382
+ "rows": 4,
383
+ "box": "card",
384
+ "translate": true
385
+ },
386
+ {
387
+ "key": "_algorithm",
388
+ "type": "scoring",
389
+ "label": "Scoring model",
390
+ "params_key": "_algorithm_params",
391
+ "box": "scoring"
392
+ },
393
+ {
394
+ "key": "_scales",
395
+ "type": "repeater",
396
+ "label": "Response scales",
397
+ "add": "Add scale",
398
+ "required": "key",
399
+ "box": "scoring",
400
+ "translate": true,
401
+ "fields": [
402
+ {
403
+ "key": "key",
404
+ "type": "key",
405
+ "label": "Key",
406
+ "width": "key",
407
+ "title_source": true
408
+ },
409
+ {
410
+ "key": "label",
411
+ "type": "text",
412
+ "label": "Label",
413
+ "width": "half"
414
+ },
415
+ {
416
+ "key": "options",
417
+ "type": "repeater",
418
+ "label": "Options",
419
+ "add": "Add option",
420
+ "required": "label",
421
+ "fields": [
422
+ {
423
+ "key": "label",
424
+ "type": "text",
425
+ "label": "Option",
426
+ "width": "half",
427
+ "title_source": true
428
+ },
429
+ {
430
+ "key": "value",
431
+ "type": "number",
432
+ "step": 1,
433
+ "label": "Value",
434
+ "width": "small"
435
+ },
436
+ {
437
+ "key": "color",
438
+ "type": "select",
439
+ "label": "Colour",
440
+ "width": "key",
441
+ "empty": "None",
442
+ "options": {
443
+ "green-strong": "Strong green",
444
+ "green-light": "Light green",
445
+ "yellow": "Yellow",
446
+ "red-light": "Light red",
447
+ "red-strong": "Strong red"
448
+ }
449
+ }
450
+ ]
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "key": "_subscales",
456
+ "type": "repeater",
457
+ "label": "Subscales",
458
+ "add": "Add subscale",
459
+ "required": "key",
460
+ "needs": "subscales",
461
+ "box": "scoring",
462
+ "translate": true,
463
+ "fields": [
464
+ {
465
+ "key": "key",
466
+ "type": "key",
467
+ "label": "Key",
468
+ "width": "key"
469
+ },
470
+ {
471
+ "key": "title",
472
+ "type": "text",
473
+ "label": "Title",
474
+ "width": "half",
475
+ "title_source": true
476
+ },
477
+ {
478
+ "key": "description",
479
+ "type": "textarea",
480
+ "label": "Description",
481
+ "rows": 2
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "key": "_outcomes",
487
+ "type": "repeater",
488
+ "label": "Outcomes",
489
+ "add": "Add outcome",
490
+ "required": "key",
491
+ "needs": "outcomes",
492
+ "box": "scoring",
493
+ "translate": true,
494
+ "fields": [
495
+ {
496
+ "key": "key",
497
+ "type": "key",
498
+ "label": "Key",
499
+ "width": "key"
500
+ },
501
+ {
502
+ "key": "title",
503
+ "type": "text",
504
+ "label": "Title",
505
+ "width": "half",
506
+ "title_source": true
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "key": "_axes",
512
+ "type": "repeater",
513
+ "label": "Axes",
514
+ "add": "Add axis",
515
+ "required": "subscale",
516
+ "needs": "axes",
517
+ "box": "scoring",
518
+ "translate": true,
519
+ "fields": [
520
+ {
521
+ "key": "subscale",
522
+ "type": "key",
523
+ "label": "Subscale",
524
+ "width": "key",
525
+ "title_source": true
526
+ },
527
+ {
528
+ "key": "midpoint",
529
+ "type": "number",
530
+ "label": "Midpoint",
531
+ "width": "small"
532
+ },
533
+ {
534
+ "key": "pole_low",
535
+ "type": "text",
536
+ "label": "Below midpoint",
537
+ "width": "half"
538
+ },
539
+ {
540
+ "key": "pole_high",
541
+ "type": "text",
542
+ "label": "At or above midpoint",
543
+ "width": "half"
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ "key": "_types",
549
+ "type": "repeater",
550
+ "label": "Types",
551
+ "add": "Add type",
552
+ "required": "key",
553
+ "needs": "types",
554
+ "box": "scoring",
555
+ "translate": true,
556
+ "fields": [
557
+ {
558
+ "key": "combination",
559
+ "type": "text",
560
+ "label": "Poles in axis order, comma separated",
561
+ "width": "half"
562
+ },
563
+ {
564
+ "key": "key",
565
+ "type": "key",
566
+ "label": "Key",
567
+ "width": "key"
568
+ },
569
+ {
570
+ "key": "title",
571
+ "type": "text",
572
+ "label": "Title",
573
+ "width": "half",
574
+ "title_source": true
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "key": "_mix",
580
+ "type": "repeater",
581
+ "label": "Subscale mix",
582
+ "add": "Add subscale",
583
+ "required": "subscale",
584
+ "needs": "mix",
585
+ "box": "scoring",
586
+ "fields": [
587
+ {
588
+ "key": "subscale",
589
+ "type": "key",
590
+ "label": "Subscale",
591
+ "width": "key",
592
+ "title_source": true
593
+ },
594
+ {
595
+ "key": "weight",
596
+ "type": "number",
597
+ "label": "Share of the raw score",
598
+ "width": "small"
599
+ }
600
+ ]
601
+ },
602
+ {
603
+ "key": "_bands",
604
+ "type": "repeater",
605
+ "label": "Bands",
606
+ "add": "Add band",
607
+ "required": "key",
608
+ "needs": "bands",
609
+ "box": "scoring",
610
+ "translate": true,
611
+ "fields": [
612
+ {
613
+ "key": "key",
614
+ "type": "key",
615
+ "label": "Key",
616
+ "width": "key"
617
+ },
618
+ {
619
+ "key": "title",
620
+ "type": "text",
621
+ "label": "Title",
622
+ "width": "half",
623
+ "title_source": true
624
+ },
625
+ {
626
+ "key": "min",
627
+ "type": "number",
628
+ "label": "From",
629
+ "width": "small"
630
+ },
631
+ {
632
+ "key": "max",
633
+ "type": "number",
634
+ "label": "To",
635
+ "width": "small"
636
+ },
637
+ {
638
+ "key": "subscale",
639
+ "type": "key",
640
+ "label": "Subscale, blank for all",
641
+ "width": "key"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "key": "_report",
647
+ "type": "repeater",
648
+ "label": "Report entries",
649
+ "add": "Add report entry",
650
+ "required": "key",
651
+ "box": "report",
652
+ "translate": true,
653
+ "fields": [
654
+ {
655
+ "key": "key",
656
+ "type": "key",
657
+ "label": "Result key",
658
+ "width": "key"
659
+ },
660
+ {
661
+ "key": "title",
662
+ "type": "text",
663
+ "label": "Title",
664
+ "width": "half",
665
+ "title_source": true
666
+ },
667
+ {
668
+ "key": "description",
669
+ "type": "html",
670
+ "label": "Description",
671
+ "rows": 3
672
+ },
673
+ {
674
+ "key": "blocks",
675
+ "type": "repeater",
676
+ "label": "Blocks",
677
+ "add": "Add block",
678
+ "required": "type",
679
+ "fields": [
680
+ {
681
+ "key": "type",
682
+ "type": "key",
683
+ "label": "Block type",
684
+ "width": "key"
685
+ },
686
+ {
687
+ "key": "heading",
688
+ "type": "text",
689
+ "label": "Heading",
690
+ "width": "half",
691
+ "title_source": true
692
+ },
693
+ {
694
+ "key": "text",
695
+ "type": "html",
696
+ "label": "Text",
697
+ "rows": 3
698
+ },
699
+ {
700
+ "key": "items",
701
+ "type": "lines",
702
+ "label": "List, one per line",
703
+ "rows": 4
704
+ }
705
+ ]
706
+ }
707
+ ]
708
+ }
709
+ ],
710
+ "children": {
711
+ "key": "sections",
712
+ "label": "Sections",
713
+ "singular": "Section",
714
+ "supports": [
715
+ "title"
716
+ ],
717
+ "fields": [
718
+ {
719
+ "key": "_section_type",
720
+ "type": "select",
721
+ "label": "Screen",
722
+ "default": "items",
723
+ "options": {
724
+ "items": "Questions",
725
+ "intro": "Intro",
726
+ "interstitial": "Interstitial message",
727
+ "capture": "Details capture",
728
+ "result": "Result"
729
+ }
730
+ },
731
+ {
732
+ "key": "_prompt",
733
+ "type": "html",
734
+ "label": "Prompt",
735
+ "rows": 2,
736
+ "translate": true
737
+ },
738
+ {
739
+ "key": "_items",
740
+ "type": "repeater",
741
+ "label": "Questions",
742
+ "add": "Add question",
743
+ "translate": true,
744
+ "fields": [
745
+ {
746
+ "key": "text",
747
+ "type": "textarea",
748
+ "label": "Question",
749
+ "rows": 2,
750
+ "title_source": true
751
+ },
752
+ {
753
+ "key": "subscale",
754
+ "type": "key",
755
+ "label": "Subscale",
756
+ "width": "key"
757
+ },
758
+ {
759
+ "key": "scale",
760
+ "type": "key",
761
+ "label": "Scale",
762
+ "width": "key"
763
+ },
764
+ {
765
+ "key": "weight",
766
+ "type": "number",
767
+ "label": "Weight",
768
+ "width": "small",
769
+ "default": 1
770
+ },
771
+ {
772
+ "key": "reversed",
773
+ "type": "checkbox",
774
+ "label": "Reverse scored"
775
+ },
776
+ {
777
+ "key": "render",
778
+ "type": "key",
779
+ "label": "Renderer",
780
+ "width": "key"
781
+ },
782
+ {
783
+ "key": "params",
784
+ "type": "pairs",
785
+ "label": "Renderer settings, one per line as name: value",
786
+ "rows": 2
787
+ },
788
+ {
789
+ "key": "options",
790
+ "type": "repeater",
791
+ "label": "Options",
792
+ "add": "Add option",
793
+ "fields": [
794
+ {
795
+ "key": "label",
796
+ "type": "text",
797
+ "label": "Option",
798
+ "width": "half",
799
+ "title_source": true
800
+ },
801
+ {
802
+ "key": "value",
803
+ "type": "number",
804
+ "label": "Value",
805
+ "width": "small",
806
+ "needs": "option_value"
807
+ },
808
+ {
809
+ "key": "correct",
810
+ "type": "checkbox",
811
+ "label": "Correct answer",
812
+ "needs": "option_correct"
813
+ },
814
+ {
815
+ "key": "points",
816
+ "type": "pairs",
817
+ "numeric": true,
818
+ "label": "Points, one per line as outcome: number",
819
+ "rows": 2,
820
+ "needs": "option_points"
821
+ },
822
+ {
823
+ "key": "render",
824
+ "type": "key",
825
+ "label": "Renderer",
826
+ "width": "key"
827
+ },
828
+ {
829
+ "key": "params",
830
+ "type": "pairs",
831
+ "label": "Renderer settings, one per line as name: value",
832
+ "rows": 2
833
+ }
834
+ ]
835
+ }
836
+ ]
837
+ }
838
+ ]
839
+ }
840
+ },
841
+ {
842
+ "key": "quizzes",
843
+ "label": "Quizzes",
844
+ "singular": "Quiz",
845
+ "kind": "interactive",
846
+ "editor": "interactive",
847
+ "icon": "dashicons-editor-help",
848
+ "position": 19,
849
+ "supports": [
850
+ "title",
851
+ "editor",
852
+ "excerpt",
853
+ "thumbnail"
854
+ ],
855
+ "translate": true,
856
+ "api": {
857
+ "format": "interactive",
858
+ "items": "_questions"
859
+ },
860
+ "boxes": [
861
+ {
862
+ "key": "card",
863
+ "label": "Card",
864
+ "context": "side"
865
+ },
866
+ {
867
+ "key": "scoring",
868
+ "label": "Scoring"
869
+ },
870
+ {
871
+ "key": "report",
872
+ "label": "Report"
873
+ }
874
+ ],
875
+ "fields": [
876
+ {
877
+ "key": "_icon",
878
+ "type": "text",
879
+ "label": "Icon name",
880
+ "box": "card"
881
+ },
882
+ {
883
+ "key": "_minutes",
884
+ "type": "number",
885
+ "step": 1,
886
+ "label": "Minutes to complete",
887
+ "box": "card"
888
+ },
889
+ {
890
+ "key": "_rating",
891
+ "type": "text",
892
+ "label": "Rating",
893
+ "box": "card"
894
+ },
895
+ {
896
+ "key": "_reviews",
897
+ "type": "number",
898
+ "step": 1,
899
+ "label": "Review count",
900
+ "box": "card"
901
+ },
902
+ {
903
+ "key": "_unlock",
904
+ "type": "select",
905
+ "label": "Order",
906
+ "box": "card",
907
+ "default": "open",
908
+ "options": {
909
+ "open": "Open, any part can be started",
910
+ "sequential": "Sequential, each part unlocks the next"
911
+ }
912
+ },
913
+ {
914
+ "key": "_intro_points",
915
+ "type": "lines",
916
+ "label": "Intro points, one per line",
917
+ "rows": 4,
918
+ "box": "card",
919
+ "translate": true
920
+ },
921
+ {
922
+ "key": "_algorithm",
923
+ "type": "scoring",
924
+ "label": "Scoring model",
925
+ "params_key": "_algorithm_params",
926
+ "box": "scoring"
927
+ },
928
+ {
929
+ "key": "_scales",
930
+ "type": "repeater",
931
+ "label": "Response scales",
932
+ "add": "Add scale",
933
+ "required": "key",
934
+ "box": "scoring",
935
+ "translate": true,
936
+ "fields": [
937
+ {
938
+ "key": "key",
939
+ "type": "key",
940
+ "label": "Key",
941
+ "width": "key",
942
+ "title_source": true
943
+ },
944
+ {
945
+ "key": "label",
946
+ "type": "text",
947
+ "label": "Label",
948
+ "width": "half"
949
+ },
950
+ {
951
+ "key": "options",
952
+ "type": "repeater",
953
+ "label": "Options",
954
+ "add": "Add option",
955
+ "required": "label",
956
+ "fields": [
957
+ {
958
+ "key": "label",
959
+ "type": "text",
960
+ "label": "Option",
961
+ "width": "half",
962
+ "title_source": true
963
+ },
964
+ {
965
+ "key": "value",
966
+ "type": "number",
967
+ "step": 1,
968
+ "label": "Value",
969
+ "width": "small"
970
+ },
971
+ {
972
+ "key": "color",
973
+ "type": "select",
974
+ "label": "Colour",
975
+ "width": "key",
976
+ "empty": "None",
977
+ "options": {
978
+ "green-strong": "Strong green",
979
+ "green-light": "Light green",
980
+ "yellow": "Yellow",
981
+ "red-light": "Light red",
982
+ "red-strong": "Strong red"
983
+ }
984
+ }
985
+ ]
986
+ }
987
+ ]
988
+ },
989
+ {
990
+ "key": "_subscales",
991
+ "type": "repeater",
992
+ "label": "Subscales",
993
+ "add": "Add subscale",
994
+ "required": "key",
995
+ "needs": "subscales",
996
+ "box": "scoring",
997
+ "translate": true,
998
+ "fields": [
999
+ {
1000
+ "key": "key",
1001
+ "type": "key",
1002
+ "label": "Key",
1003
+ "width": "key"
1004
+ },
1005
+ {
1006
+ "key": "title",
1007
+ "type": "text",
1008
+ "label": "Title",
1009
+ "width": "half",
1010
+ "title_source": true
1011
+ },
1012
+ {
1013
+ "key": "description",
1014
+ "type": "textarea",
1015
+ "label": "Description",
1016
+ "rows": 2
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "key": "_outcomes",
1022
+ "type": "repeater",
1023
+ "label": "Outcomes",
1024
+ "add": "Add outcome",
1025
+ "required": "key",
1026
+ "needs": "outcomes",
1027
+ "box": "scoring",
1028
+ "translate": true,
1029
+ "fields": [
1030
+ {
1031
+ "key": "key",
1032
+ "type": "key",
1033
+ "label": "Key",
1034
+ "width": "key"
1035
+ },
1036
+ {
1037
+ "key": "title",
1038
+ "type": "text",
1039
+ "label": "Title",
1040
+ "width": "half",
1041
+ "title_source": true
1042
+ }
1043
+ ]
1044
+ },
1045
+ {
1046
+ "key": "_axes",
1047
+ "type": "repeater",
1048
+ "label": "Axes",
1049
+ "add": "Add axis",
1050
+ "required": "subscale",
1051
+ "needs": "axes",
1052
+ "box": "scoring",
1053
+ "translate": true,
1054
+ "fields": [
1055
+ {
1056
+ "key": "subscale",
1057
+ "type": "key",
1058
+ "label": "Subscale",
1059
+ "width": "key",
1060
+ "title_source": true
1061
+ },
1062
+ {
1063
+ "key": "midpoint",
1064
+ "type": "number",
1065
+ "label": "Midpoint",
1066
+ "width": "small"
1067
+ },
1068
+ {
1069
+ "key": "pole_low",
1070
+ "type": "text",
1071
+ "label": "Below midpoint",
1072
+ "width": "half"
1073
+ },
1074
+ {
1075
+ "key": "pole_high",
1076
+ "type": "text",
1077
+ "label": "At or above midpoint",
1078
+ "width": "half"
1079
+ }
1080
+ ]
1081
+ },
1082
+ {
1083
+ "key": "_types",
1084
+ "type": "repeater",
1085
+ "label": "Types",
1086
+ "add": "Add type",
1087
+ "required": "key",
1088
+ "needs": "types",
1089
+ "box": "scoring",
1090
+ "translate": true,
1091
+ "fields": [
1092
+ {
1093
+ "key": "combination",
1094
+ "type": "text",
1095
+ "label": "Poles in axis order, comma separated",
1096
+ "width": "half"
1097
+ },
1098
+ {
1099
+ "key": "key",
1100
+ "type": "key",
1101
+ "label": "Key",
1102
+ "width": "key"
1103
+ },
1104
+ {
1105
+ "key": "title",
1106
+ "type": "text",
1107
+ "label": "Title",
1108
+ "width": "half",
1109
+ "title_source": true
1110
+ }
1111
+ ]
1112
+ },
1113
+ {
1114
+ "key": "_mix",
1115
+ "type": "repeater",
1116
+ "label": "Subscale mix",
1117
+ "add": "Add subscale",
1118
+ "required": "subscale",
1119
+ "needs": "mix",
1120
+ "box": "scoring",
1121
+ "fields": [
1122
+ {
1123
+ "key": "subscale",
1124
+ "type": "key",
1125
+ "label": "Subscale",
1126
+ "width": "key",
1127
+ "title_source": true
1128
+ },
1129
+ {
1130
+ "key": "weight",
1131
+ "type": "number",
1132
+ "label": "Share of the raw score",
1133
+ "width": "small"
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "key": "_bands",
1139
+ "type": "repeater",
1140
+ "label": "Bands",
1141
+ "add": "Add band",
1142
+ "required": "key",
1143
+ "needs": "bands",
1144
+ "box": "scoring",
1145
+ "translate": true,
1146
+ "fields": [
1147
+ {
1148
+ "key": "key",
1149
+ "type": "key",
1150
+ "label": "Key",
1151
+ "width": "key"
1152
+ },
1153
+ {
1154
+ "key": "title",
1155
+ "type": "text",
1156
+ "label": "Title",
1157
+ "width": "half",
1158
+ "title_source": true
1159
+ },
1160
+ {
1161
+ "key": "min",
1162
+ "type": "number",
1163
+ "label": "From",
1164
+ "width": "small"
1165
+ },
1166
+ {
1167
+ "key": "max",
1168
+ "type": "number",
1169
+ "label": "To",
1170
+ "width": "small"
1171
+ },
1172
+ {
1173
+ "key": "subscale",
1174
+ "type": "key",
1175
+ "label": "Subscale, blank for all",
1176
+ "width": "key"
1177
+ }
1178
+ ]
1179
+ },
1180
+ {
1181
+ "key": "_report",
1182
+ "type": "repeater",
1183
+ "label": "Report entries",
1184
+ "add": "Add report entry",
1185
+ "required": "key",
1186
+ "box": "report",
1187
+ "translate": true,
1188
+ "fields": [
1189
+ {
1190
+ "key": "key",
1191
+ "type": "key",
1192
+ "label": "Result key",
1193
+ "width": "key"
1194
+ },
1195
+ {
1196
+ "key": "title",
1197
+ "type": "text",
1198
+ "label": "Title",
1199
+ "width": "half",
1200
+ "title_source": true
1201
+ },
1202
+ {
1203
+ "key": "description",
1204
+ "type": "html",
1205
+ "label": "Description",
1206
+ "rows": 3
1207
+ },
1208
+ {
1209
+ "key": "blocks",
1210
+ "type": "repeater",
1211
+ "label": "Blocks",
1212
+ "add": "Add block",
1213
+ "required": "type",
1214
+ "fields": [
1215
+ {
1216
+ "key": "type",
1217
+ "type": "key",
1218
+ "label": "Block type",
1219
+ "width": "key"
1220
+ },
1221
+ {
1222
+ "key": "heading",
1223
+ "type": "text",
1224
+ "label": "Heading",
1225
+ "width": "half",
1226
+ "title_source": true
1227
+ },
1228
+ {
1229
+ "key": "text",
1230
+ "type": "html",
1231
+ "label": "Text",
1232
+ "rows": 3
1233
+ },
1234
+ {
1235
+ "key": "items",
1236
+ "type": "lines",
1237
+ "label": "List, one per line",
1238
+ "rows": 4
1239
+ }
1240
+ ]
1241
+ }
1242
+ ]
1243
+ }
1244
+ ],
1245
+ "children": {
1246
+ "key": "levels",
1247
+ "label": "Levels",
1248
+ "singular": "Level",
1249
+ "supports": [
1250
+ "title"
1251
+ ],
1252
+ "fields": [
1253
+ {
1254
+ "key": "_prompt",
1255
+ "type": "html",
1256
+ "label": "Prompt",
1257
+ "rows": 2,
1258
+ "translate": true
1259
+ },
1260
+ {
1261
+ "key": "_questions",
1262
+ "type": "repeater",
1263
+ "label": "Questions",
1264
+ "add": "Add question",
1265
+ "translate": true,
1266
+ "fields": [
1267
+ {
1268
+ "key": "text",
1269
+ "type": "textarea",
1270
+ "label": "Question",
1271
+ "rows": 2,
1272
+ "title_source": true
1273
+ },
1274
+ {
1275
+ "key": "subscale",
1276
+ "type": "key",
1277
+ "label": "Subscale",
1278
+ "width": "key"
1279
+ },
1280
+ {
1281
+ "key": "scale",
1282
+ "type": "key",
1283
+ "label": "Scale",
1284
+ "width": "key"
1285
+ },
1286
+ {
1287
+ "key": "weight",
1288
+ "type": "number",
1289
+ "label": "Weight",
1290
+ "width": "small",
1291
+ "default": 1
1292
+ },
1293
+ {
1294
+ "key": "reversed",
1295
+ "type": "checkbox",
1296
+ "label": "Reverse scored"
1297
+ },
1298
+ {
1299
+ "key": "render",
1300
+ "type": "key",
1301
+ "label": "Renderer",
1302
+ "width": "key"
1303
+ },
1304
+ {
1305
+ "key": "params",
1306
+ "type": "pairs",
1307
+ "label": "Renderer settings, one per line as name: value",
1308
+ "rows": 2
1309
+ },
1310
+ {
1311
+ "key": "options",
1312
+ "type": "repeater",
1313
+ "label": "Options",
1314
+ "add": "Add option",
1315
+ "fields": [
1316
+ {
1317
+ "key": "label",
1318
+ "type": "text",
1319
+ "label": "Option",
1320
+ "width": "half",
1321
+ "title_source": true
1322
+ },
1323
+ {
1324
+ "key": "value",
1325
+ "type": "number",
1326
+ "label": "Value",
1327
+ "width": "small",
1328
+ "needs": "option_value"
1329
+ },
1330
+ {
1331
+ "key": "correct",
1332
+ "type": "checkbox",
1333
+ "label": "Correct answer",
1334
+ "needs": "option_correct"
1335
+ },
1336
+ {
1337
+ "key": "points",
1338
+ "type": "pairs",
1339
+ "numeric": true,
1340
+ "label": "Points, one per line as outcome: number",
1341
+ "rows": 2,
1342
+ "needs": "option_points"
1343
+ },
1344
+ {
1345
+ "key": "render",
1346
+ "type": "key",
1347
+ "label": "Renderer",
1348
+ "width": "key"
1349
+ },
1350
+ {
1351
+ "key": "params",
1352
+ "type": "pairs",
1353
+ "label": "Renderer settings, one per line as name: value",
1354
+ "rows": 2
1355
+ }
1356
+ ]
1357
+ }
1358
+ ]
1359
+ }
1360
+ ]
1361
+ }
1362
+ },
1363
+ {
1364
+ "key": "legal_doc",
1365
+ "label": "Legal Docs",
1366
+ "singular": "Legal Doc",
1367
+ "kind": "document",
1368
+ "editor": "legal",
1369
+ "icon": "dashicons-media-document",
1370
+ "position": 20,
1371
+ "supports": [
1372
+ "title",
1373
+ "editor"
1374
+ ],
1375
+ "translate": true,
1376
+ "api": {
1377
+ "format": "legal",
1378
+ "data_key": "legal_docs_template",
1379
+ "link": "jurisdiction",
1380
+ "title_taxonomy": "legal_doc_type",
1381
+ "placeholders": true
1382
+ }
1383
+ },
1384
+ {
1385
+ "key": "faq_template",
1386
+ "label": "FAQ Templates",
1387
+ "singular": "FAQ Template",
1388
+ "kind": "document",
1389
+ "editor": "faq",
1390
+ "icon": "dashicons-format-chat",
1391
+ "supports": [
1392
+ "title"
1393
+ ],
1394
+ "translate": true,
1395
+ "api": {
1396
+ "format": "faq",
1397
+ "name": "faq",
1398
+ "link": "faq_template_id",
1399
+ "placeholders": true
1400
+ },
1401
+ "fields": [
1402
+ {
1403
+ "key": "_faqt_page",
1404
+ "type": "repeater",
1405
+ "label": "Questions",
1406
+ "add": "Add question",
1407
+ "translate": true,
1408
+ "fields": [
1409
+ {
1410
+ "key": "title",
1411
+ "type": "text",
1412
+ "label": "Question",
1413
+ "title_source": true
1414
+ },
1415
+ {
1416
+ "key": "content",
1417
+ "type": "html",
1418
+ "label": "Answer",
1419
+ "rows": 5
1420
+ }
1421
+ ]
1422
+ }
1423
+ ],
1424
+ "position": 21
1425
+ }
1426
+ ],
1427
+ "taxonomies": [
1428
+ {
1429
+ "key": "course-category",
1430
+ "label": "Categories",
1431
+ "singular": "Category",
1432
+ "hierarchical": true,
1433
+ "types": [
1434
+ "courses",
1435
+ "ebooks"
1436
+ ],
1437
+ "translate": true,
1438
+ "fields": [
1439
+ {
1440
+ "key": "thumbnail_id",
1441
+ "type": "image",
1442
+ "label": "Thumbnail"
1443
+ }
1444
+ ]
1445
+ },
1446
+ {
1447
+ "key": "course-tag",
1448
+ "label": "Tags",
1449
+ "singular": "Tag",
1450
+ "types": [
1451
+ "courses",
1452
+ "ebooks"
1453
+ ],
1454
+ "translate": true
1455
+ },
1456
+ {
1457
+ "key": "book_category",
1458
+ "label": "Categories",
1459
+ "singular": "Category",
1460
+ "hierarchical": true,
1461
+ "types": [
1462
+ "audiobook"
1463
+ ],
1464
+ "translate": true
1465
+ },
1466
+ {
1467
+ "key": "book_tag",
1468
+ "label": "Tags",
1469
+ "singular": "Tag",
1470
+ "types": [
1471
+ "audiobook"
1472
+ ],
1473
+ "translate": true
1474
+ },
1475
+ {
1476
+ "key": "audiofile_category",
1477
+ "label": "Categories",
1478
+ "singular": "Category",
1479
+ "hierarchical": true,
1480
+ "types": [
1481
+ "audiofile"
1482
+ ],
1483
+ "translate": true
1484
+ },
1485
+ {
1486
+ "key": "audiofile_tag",
1487
+ "label": "Tags",
1488
+ "singular": "Tag",
1489
+ "types": [
1490
+ "audiofile"
1491
+ ],
1492
+ "translate": true
1493
+ },
1494
+ {
1495
+ "key": "survey-category",
1496
+ "label": "Categories",
1497
+ "singular": "Category",
1498
+ "hierarchical": true,
1499
+ "types": [
1500
+ "surveys"
1501
+ ],
1502
+ "translate": true
1503
+ },
1504
+ {
1505
+ "key": "quiz-category",
1506
+ "label": "Categories",
1507
+ "singular": "Category",
1508
+ "hierarchical": true,
1509
+ "types": [
1510
+ "quizzes"
1511
+ ],
1512
+ "translate": true
1513
+ },
1514
+ {
1515
+ "key": "jurisdiction",
1516
+ "label": "Jurisdictions",
1517
+ "singular": "Jurisdiction",
1518
+ "types": [
1519
+ "legal_doc"
1520
+ ],
1521
+ "relation": "one"
1522
+ },
1523
+ {
1524
+ "key": "legal_doc_type",
1525
+ "label": "Document Types",
1526
+ "singular": "Document Type",
1527
+ "types": [
1528
+ "legal_doc"
1529
+ ],
1530
+ "relation": "one"
1531
+ }
1532
+ ]
1533
+ },
1534
+ "apps": {
1535
+ "environments": [
1536
+ {
1537
+ "key": "prod",
1538
+ "label": "Production"
1539
+ },
1540
+ {
1541
+ "key": "staging",
1542
+ "label": "Staging"
1543
+ }
1544
+ ],
1545
+ "webhook": "/wp-json/app/webhooks/content/pull",
1546
+ "links": [
1547
+ {
1548
+ "key": "jurisdiction",
1549
+ "label": "Jurisdiction",
1550
+ "taxonomy": "jurisdiction"
1551
+ },
1552
+ {
1553
+ "key": "faq_template_id",
1554
+ "label": "FAQ template",
1555
+ "type": "faq_template"
1556
+ }
1557
+ ],
1558
+ "metadata": [
1559
+ {
1560
+ "key": "entity_name",
1561
+ "label": "Entity name",
1562
+ "width": "half"
1563
+ },
1564
+ {
1565
+ "key": "entity_address",
1566
+ "label": "Entity address",
1567
+ "width": "half"
1568
+ },
1569
+ {
1570
+ "key": "reg_number",
1571
+ "label": "Registration number",
1572
+ "width": "key"
1573
+ },
1574
+ {
1575
+ "key": "service_name",
1576
+ "label": "Service name",
1577
+ "width": "half"
1578
+ },
1579
+ {
1580
+ "key": "service_oneline",
1581
+ "label": "Service one-liner",
1582
+ "width": "half"
1583
+ },
1584
+ {
1585
+ "key": "support_email",
1586
+ "label": "Support email",
1587
+ "width": "half"
1588
+ },
1589
+ {
1590
+ "key": "support_number",
1591
+ "label": "Support number",
1592
+ "width": "key"
1593
+ },
1594
+ {
1595
+ "key": "price_point",
1596
+ "label": "Price point",
1597
+ "type": "textarea",
1598
+ "rows": 2
1599
+ },
1600
+ {
1601
+ "key": "recurring_amount",
1602
+ "label": "Recurring amount",
1603
+ "width": "key"
1604
+ },
1605
+ {
1606
+ "key": "trial_amount",
1607
+ "label": "Trial amount",
1608
+ "width": "key"
1609
+ },
1610
+ {
1611
+ "key": "trial_days",
1612
+ "label": "Trial days",
1613
+ "width": "small"
1614
+ },
1615
+ {
1616
+ "key": "about",
1617
+ "label": "About",
1618
+ "type": "textarea",
1619
+ "rows": 3
1620
+ },
1621
+ {
1622
+ "key": "skip_ip_check",
1623
+ "label": "Skip IP check",
1624
+ "type": "checkbox"
1625
+ }
1626
+ ],
1627
+ "schemes": [
1628
+ {
1629
+ "key": "entities",
1630
+ "label": "Entities",
1631
+ "singular": "Entity",
1632
+ "primary": "entity_name",
1633
+ "fields": [
1634
+ "entity_name",
1635
+ "entity_address",
1636
+ "reg_number"
1637
+ ]
1638
+ }
1639
+ ]
1640
+ },
1641
+ "app": {
1642
+ "name": "wp-operations",
1643
+ "access": {
1644
+ "capability": "prompt",
1645
+ "include_roles": [
1646
+ "administrator",
1647
+ "editor"
1648
+ ],
1649
+ "exclude_roles": [
1650
+ "service_client",
1651
+ "subscriber"
1652
+ ]
1653
+ },
1654
+ "usage": {
1655
+ "monthly_credits": 500,
1656
+ "credits_per_prompt": 1,
1657
+ "alert_at": 80,
1658
+ "alert_email": true
1659
+ },
1660
+ "modes": [
1661
+ {
1662
+ "key": "build",
1663
+ "label": "Build",
1664
+ "hint": "Make changes to the app"
1665
+ },
1666
+ {
1667
+ "key": "plan",
1668
+ "label": "Plan",
1669
+ "hint": "Think it through first"
1670
+ },
1671
+ {
1672
+ "key": "chat",
1673
+ "label": "Chat",
1674
+ "hint": "Ask without changing anything"
1675
+ }
1676
+ ],
1677
+ "apps": {
1678
+ "categories": [
1679
+ "Learning",
1680
+ "Entertainment",
1681
+ "Wellness",
1682
+ "Business",
1683
+ "Utilities"
1684
+ ],
1685
+ "classifications": [
1686
+ "Production",
1687
+ "Pilot",
1688
+ "Internal",
1689
+ "Archived"
1690
+ ]
1691
+ },
1692
+ "uploads": {
1693
+ "types": [
1694
+ "png",
1695
+ "jpg",
1696
+ "jpeg",
1697
+ "webp",
1698
+ "gif",
1699
+ "svg",
1700
+ "pdf",
1701
+ "txt",
1702
+ "md",
1703
+ "csv",
1704
+ "json",
1705
+ "xlsx",
1706
+ "docx",
1707
+ "zip",
1708
+ "fig"
1709
+ ],
1710
+ "max_mb": 25
1711
+ },
1712
+ "cms": {
1713
+ "label": "CMS",
1714
+ "menu": [
1715
+ {
1716
+ "key": "apps",
1717
+ "label": "Apps",
1718
+ "icon": "apps"
1719
+ },
1720
+ {
1721
+ "key": "contents",
1722
+ "label": "All Contents",
1723
+ "icon": "contents",
1724
+ "kinds": [
1725
+ "media"
1726
+ ]
1727
+ },
1728
+ {
1729
+ "key": "questionnaires",
1730
+ "label": "Questionnaires",
1731
+ "icon": "questionnaires",
1732
+ "kinds": [
1733
+ "interactive"
1734
+ ]
1735
+ },
1736
+ {
1737
+ "key": "templates",
1738
+ "label": "Doc Templates",
1739
+ "icon": "templates",
1740
+ "kinds": [
1741
+ "document"
1742
+ ]
1743
+ },
1744
+ {
1745
+ "separator": true
1746
+ },
1747
+ {
1748
+ "key": "docs",
1749
+ "label": "Docs",
1750
+ "icon": "docs"
1751
+ },
1752
+ {
1753
+ "key": "skills",
1754
+ "label": "Skills",
1755
+ "icon": "skills"
1756
+ },
1757
+ {
1758
+ "key": "agents",
1759
+ "label": "Agents",
1760
+ "icon": "agents"
1761
+ },
1762
+ {
1763
+ "key": "account",
1764
+ "label": "Account",
1765
+ "icon": "account"
1766
+ }
1767
+ ]
1768
+ },
1769
+ "theme": {
1770
+ "font": "Inter",
1771
+ "radius": {
1772
+ "xl": "14px",
1773
+ "2xl": "18px"
1774
+ },
1775
+ "colors": {
1776
+ "bg": "#10121a",
1777
+ "canvas": "#141722",
1778
+ "panel": "#171a26",
1779
+ "raised": "#1e2230",
1780
+ "float": "#252a3b",
1781
+ "line": "rgb(255 255 255 / 0.09)",
1782
+ "edge": "rgb(255 255 255 / 0.15)",
1783
+ "fg": "#f4f5fa",
1784
+ "dim": "#c9cdd9",
1785
+ "faint": "#9ba1b4",
1786
+ "ghost": "#6f7589",
1787
+ "ok": "#4ade80",
1788
+ "warn": "#fbbf24",
1789
+ "bad": "#f87171",
1790
+ "info": "#7dd3fc",
1791
+ "brand": "#8b7cf6",
1792
+ "brand-2": "#e879f9",
1793
+ "brand-3": "#38bdf8",
1794
+ "ring": "#8b7cf6"
1795
+ }
1796
+ }
1797
+ },
1798
+ "ops": {
1799
+ "github": {
1800
+ "token_constant": "PLATFORM_GITHUB_TOKEN",
1801
+ "api": "https://api.github.com"
1802
+ },
1803
+ "sandboxes": [
1804
+ {
1805
+ "key": "codespaces",
1806
+ "label": "GitHub Codespaces",
1807
+ "url": "https://codespaces.new/{owner}/{repo}?ref={branch}"
1808
+ },
1809
+ {
1810
+ "key": "stackblitz",
1811
+ "label": "StackBlitz",
1812
+ "url": "https://stackblitz.com/github/{owner}/{repo}/tree/{branch}"
1813
+ },
1814
+ {
1815
+ "key": "codesandbox",
1816
+ "label": "CodeSandbox",
1817
+ "url": "https://codesandbox.io/p/github/{owner}/{repo}/{branch}"
1818
+ },
1819
+ {
1820
+ "key": "gitpod",
1821
+ "label": "Gitpod",
1822
+ "url": "https://gitpod.io/#https://github.com/{owner}/{repo}/tree/{branch}"
1823
+ }
1824
+ ],
1825
+ "secrets": [
1826
+ "PROD_HOST",
1827
+ "PROD_USER",
1828
+ "PROD_SSH_KEY",
1829
+ "PROD_PATH",
1830
+ "STAGING_HOST",
1831
+ "STAGING_USER",
1832
+ "STAGING_SSH_KEY",
1833
+ "STAGING_PATH"
1834
+ ]
1835
+ }
1836
+ }