@ak--47/dungeon-master 1.0.0 → 1.1.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 (103) hide show
  1. package/README.md +7 -7
  2. package/dungeons/technical/ad-spend-schema.json +128 -0
  3. package/dungeons/technical/ad-spend.js +116 -0
  4. package/dungeons/technical/anonymous-users-schema.json +91 -0
  5. package/dungeons/technical/anonymous-users.js +102 -0
  6. package/dungeons/technical/array-of-object-lookup-schema.json +191 -0
  7. package/dungeons/{array-of-object-lookup.js → technical/array-of-object-lookup.js} +11 -4
  8. package/dungeons/technical/experiments-schema.json +197 -0
  9. package/dungeons/technical/experiments.js +168 -0
  10. package/dungeons/technical/foobar-schema.json +362 -0
  11. package/dungeons/{foobar.js → technical/foobar.js} +2 -2
  12. package/dungeons/technical/group-analytics-schema.json +149 -0
  13. package/dungeons/technical/group-analytics.js +151 -0
  14. package/dungeons/technical/mirror-strategies-schema.json +84 -0
  15. package/dungeons/technical/mirror-strategies.js +126 -0
  16. package/dungeons/technical/nested-objects-schema.json +145 -0
  17. package/dungeons/technical/nested-objects.js +207 -0
  18. package/dungeons/technical/retention-cadence-schema.json +37 -0
  19. package/dungeons/{retention-cadence.js → technical/retention-cadence.js} +1 -1
  20. package/dungeons/technical/sanity-schema.json +185 -0
  21. package/dungeons/{sanity.js → technical/sanity.js} +3 -2
  22. package/dungeons/technical/scale-test-schema.json +70 -0
  23. package/dungeons/technical/scale-test.js +90 -0
  24. package/dungeons/technical/scd-schema.json +270 -0
  25. package/dungeons/{scd.js → technical/scd.js} +19 -10
  26. package/dungeons/technical/simple-schema.json +278 -0
  27. package/dungeons/{simple.js → technical/simple.js} +6 -6
  28. package/dungeons/technical/simplest-schema.json +635 -0
  29. package/dungeons/{simplest.js → technical/simplest.js} +6 -6
  30. package/dungeons/technical/text-generation-schema.json +1059 -0
  31. package/dungeons/{text-generation.js → technical/text-generation.js} +23 -9
  32. package/dungeons/vertical/community-schema.json +557 -0
  33. package/dungeons/vertical/community.js +788 -0
  34. package/dungeons/vertical/devtools-schema.json +580 -0
  35. package/dungeons/vertical/devtools.js +837 -0
  36. package/dungeons/vertical/ecommerce-schema.json +586 -0
  37. package/dungeons/{ecommerce.js → vertical/ecommerce.js} +34 -3
  38. package/dungeons/vertical/education-schema.json +697 -0
  39. package/dungeons/{education.js → vertical/education.js} +54 -36
  40. package/dungeons/vertical/fintech-schema.json +563 -0
  41. package/dungeons/{fintech.js → vertical/fintech.js} +91 -53
  42. package/dungeons/vertical/fitness-schema.json +508 -0
  43. package/dungeons/vertical/fitness.js +802 -0
  44. package/dungeons/vertical/food-delivery-schema.json +678 -0
  45. package/dungeons/{food.js → vertical/food-delivery.js} +51 -23
  46. package/dungeons/vertical/gaming-schema.json +394 -0
  47. package/dungeons/{gaming.js → vertical/gaming.js} +9 -7
  48. package/dungeons/vertical/healthcare-schema.json +527 -0
  49. package/dungeons/vertical/healthcare.js +769 -0
  50. package/dungeons/vertical/insurance-application-schema.json +466 -0
  51. package/dungeons/{insurance-application.js → vertical/insurance-application.js} +33 -29
  52. package/dungeons/vertical/logistics-schema.json +552 -0
  53. package/dungeons/vertical/logistics.js +793 -0
  54. package/dungeons/vertical/marketplace-schema.json +511 -0
  55. package/dungeons/vertical/marketplace.js +844 -0
  56. package/dungeons/vertical/media-schema.json +787 -0
  57. package/dungeons/{media.js → vertical/media.js} +94 -16
  58. package/dungeons/vertical/rpg-schema.json +654 -0
  59. package/dungeons/{rpg.js → vertical/rpg.js} +78 -57
  60. package/dungeons/vertical/sass-schema.json +653 -0
  61. package/dungeons/{sass.js → vertical/sass.js} +49 -23
  62. package/dungeons/vertical/social-schema.json +552 -0
  63. package/dungeons/{social.js → vertical/social.js} +60 -14
  64. package/dungeons/vertical/travel-schema.json +558 -0
  65. package/dungeons/vertical/travel.js +736 -0
  66. package/index.js +19 -15
  67. package/lib/core/config-validator.js +286 -1
  68. package/lib/core/context.js +7 -5
  69. package/lib/generators/adspend.js +3 -3
  70. package/lib/generators/events.js +141 -14
  71. package/lib/generators/funnels.js +67 -7
  72. package/lib/generators/text.js +2 -2
  73. package/lib/orchestrators/user-loop.js +441 -22
  74. package/lib/templates/soup-presets.js +2 -2
  75. package/lib/utils/utils.js +4 -5
  76. package/package.json +4 -3
  77. package/scripts/dungeon-to-json.mjs +163 -0
  78. package/scripts/extract-dungeon-schema.mjs +297 -0
  79. package/scripts/json-to-dungeon.mjs +200 -0
  80. package/scripts/run-dungeon.mjs +76 -0
  81. package/scripts/run-many.mjs +118 -0
  82. package/scripts/verify-runner.mjs +42 -0
  83. package/types.d.ts +313 -1
  84. package/dungeons/array-of-object-lookup-schema.json +0 -327
  85. package/dungeons/ecommerce-schema.json +0 -462
  86. package/dungeons/education-schema.json +0 -2409
  87. package/dungeons/fintech-schema.json +0 -14034
  88. package/dungeons/foobar-schema.json +0 -403
  89. package/dungeons/food-delivery-schema.json +0 -192
  90. package/dungeons/food-delivery.js +0 -602
  91. package/dungeons/food-schema.json +0 -1152
  92. package/dungeons/gaming-schema.json +0 -1270
  93. package/dungeons/insurance-application-schema.json +0 -204
  94. package/dungeons/media-schema.json +0 -906
  95. package/dungeons/retention-cadence-schema.json +0 -78
  96. package/dungeons/rpg-schema.json +0 -4526
  97. package/dungeons/sanity-schema.json +0 -255
  98. package/dungeons/sass-schema.json +0 -1291
  99. package/dungeons/scd-schema.json +0 -919
  100. package/dungeons/simple-schema.json +0 -608
  101. package/dungeons/simplest-schema.json +0 -1418
  102. package/dungeons/social-schema.json +0 -1118
  103. package/dungeons/text-generation-schema.json +0 -3096
@@ -0,0 +1,563 @@
1
+ {
2
+ "events": [
3
+ {
4
+ "event": "account opened",
5
+ "isFirstEvent": true,
6
+ "properties": {
7
+ "account_type": [
8
+ "business",
9
+ "personal"
10
+ ],
11
+ "signup_channel": [
12
+ "app",
13
+ "web",
14
+ "referral",
15
+ "branch"
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "event": "app session",
21
+ "weight": 20,
22
+ "properties": {
23
+ "session_duration_sec": {
24
+ "$range": [
25
+ 131,
26
+ 471
27
+ ]
28
+ },
29
+ "pages_viewed": [
30
+ 5,
31
+ 4,
32
+ 6
33
+ ],
34
+ "month_end_anxiety": [
35
+ false
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "event": "balance checked",
41
+ "weight": 15,
42
+ "properties": {
43
+ "account_balance": {
44
+ "$range": [
45
+ 4,
46
+ 49589
47
+ ]
48
+ },
49
+ "account_type": [
50
+ "checking",
51
+ "savings",
52
+ "investment"
53
+ ],
54
+ "month_end_check": [
55
+ false
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "event": "transaction completed",
61
+ "weight": 18,
62
+ "properties": {
63
+ "transaction_type": [
64
+ "purchase",
65
+ "atm",
66
+ "direct_deposit",
67
+ "refund"
68
+ ],
69
+ "amount": {
70
+ "$range": [
71
+ 996,
72
+ 3927
73
+ ]
74
+ },
75
+ "merchant_category": [
76
+ "grocery",
77
+ "restaurant",
78
+ "gas",
79
+ "retail",
80
+ "online",
81
+ "subscription",
82
+ "utilities"
83
+ ],
84
+ "payment_method": [
85
+ "debit",
86
+ "credit",
87
+ "contactless",
88
+ "online"
89
+ ],
90
+ "payday": [
91
+ false
92
+ ],
93
+ "fraud_sequence": [
94
+ false
95
+ ]
96
+ }
97
+ },
98
+ {
99
+ "event": "transfer sent",
100
+ "weight": 8,
101
+ "properties": {
102
+ "transfer_type": [
103
+ "internal",
104
+ "external",
105
+ "p2p",
106
+ "wire"
107
+ ],
108
+ "amount": {
109
+ "$range": [
110
+ 1690,
111
+ 8053
112
+ ]
113
+ },
114
+ "recipient_type": [
115
+ "friend",
116
+ "family",
117
+ "business",
118
+ "self"
119
+ ],
120
+ "post_payday_spending": [
121
+ false
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "event": "bill paid",
127
+ "weight": 6,
128
+ "properties": {
129
+ "bill_type": [
130
+ "rent",
131
+ "utilities",
132
+ "phone",
133
+ "insurance",
134
+ "subscription",
135
+ "loan_payment"
136
+ ],
137
+ "amount": {
138
+ "$range": [
139
+ 376,
140
+ 2710
141
+ ]
142
+ },
143
+ "auto_pay": {
144
+ "$type": "array"
145
+ },
146
+ "missed_payment": [
147
+ false
148
+ ],
149
+ "manual_payment": [
150
+ false
151
+ ]
152
+ }
153
+ },
154
+ {
155
+ "event": "budget created",
156
+ "weight": 3,
157
+ "properties": {
158
+ "category": [
159
+ "food",
160
+ "transport",
161
+ "entertainment",
162
+ "shopping",
163
+ "bills",
164
+ "savings"
165
+ ],
166
+ "monthly_limit": {
167
+ "$range": [
168
+ 233,
169
+ 1774
170
+ ]
171
+ }
172
+ }
173
+ },
174
+ {
175
+ "event": "budget alert",
176
+ "weight": 4,
177
+ "properties": {
178
+ "alert_type": [
179
+ "approaching_limit",
180
+ "exceeded",
181
+ "on_track"
182
+ ],
183
+ "percent_used": {
184
+ "$range": [
185
+ 52,
186
+ 145
187
+ ]
188
+ }
189
+ }
190
+ },
191
+ {
192
+ "event": "savings goal set",
193
+ "weight": 3,
194
+ "properties": {
195
+ "goal_type": [
196
+ "emergency",
197
+ "vacation",
198
+ "car",
199
+ "home",
200
+ "education",
201
+ "retirement"
202
+ ],
203
+ "target_amount": {
204
+ "$range": [
205
+ 7730,
206
+ 41915
207
+ ]
208
+ },
209
+ "monthly_contribution": {
210
+ "$range": [
211
+ 289,
212
+ 1749
213
+ ]
214
+ },
215
+ "budget_discipline": [
216
+ false
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "event": "investment made",
222
+ "weight": 4,
223
+ "properties": {
224
+ "investment_type": [
225
+ "stocks",
226
+ "etf",
227
+ "crypto",
228
+ "bonds",
229
+ "mutual_fund"
230
+ ],
231
+ "amount": {
232
+ "$range": [
233
+ 1880,
234
+ 8014
235
+ ]
236
+ },
237
+ "action": [
238
+ "buy"
239
+ ],
240
+ "premium_returns": [
241
+ false
242
+ ],
243
+ "budget_discipline": [
244
+ false
245
+ ]
246
+ }
247
+ },
248
+ {
249
+ "event": "card locked",
250
+ "properties": {
251
+ "reason": [
252
+ "lost",
253
+ "stolen",
254
+ "suspicious_activity",
255
+ "travel"
256
+ ],
257
+ "fraud_sequence": [
258
+ false
259
+ ]
260
+ }
261
+ },
262
+ {
263
+ "event": "dispute filed",
264
+ "properties": {
265
+ "dispute_amount": {
266
+ "$range": [
267
+ 216,
268
+ 1663
269
+ ]
270
+ },
271
+ "reason": [
272
+ "unauthorized",
273
+ "duplicate",
274
+ "not_received",
275
+ "damaged",
276
+ "wrong_amount"
277
+ ],
278
+ "fraud_sequence": [
279
+ false
280
+ ]
281
+ }
282
+ },
283
+ {
284
+ "event": "loan applied",
285
+ "weight": 2,
286
+ "properties": {
287
+ "loan_type": [
288
+ "personal",
289
+ "auto",
290
+ "home",
291
+ "student",
292
+ "business"
293
+ ],
294
+ "requested_amount": {
295
+ "$range": [
296
+ 15174,
297
+ 84022
298
+ ]
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "event": "loan approved",
304
+ "properties": {
305
+ "loan_type": [
306
+ "personal",
307
+ "auto",
308
+ "home",
309
+ "student",
310
+ "business"
311
+ ],
312
+ "approved_amount": {
313
+ "$range": [
314
+ 15610,
315
+ 85097
316
+ ]
317
+ },
318
+ "interest_rate": [
319
+ 4,
320
+ 14,
321
+ 7,
322
+ 17,
323
+ 10,
324
+ 18,
325
+ 8
326
+ ]
327
+ }
328
+ },
329
+ {
330
+ "event": "premium upgraded",
331
+ "weight": 2,
332
+ "properties": {
333
+ "old_tier": [
334
+ "basic",
335
+ "plus",
336
+ "premium"
337
+ ],
338
+ "new_tier": [
339
+ "premium",
340
+ "plus"
341
+ ],
342
+ "monthly_fee": [
343
+ 14.99,
344
+ 4.99,
345
+ 9.99
346
+ ]
347
+ }
348
+ },
349
+ {
350
+ "event": "support contacted",
351
+ "weight": 3,
352
+ "properties": {
353
+ "channel": [
354
+ "chat",
355
+ "phone",
356
+ "email",
357
+ "in_app"
358
+ ],
359
+ "issue_type": [
360
+ "transaction",
361
+ "account",
362
+ "card",
363
+ "transfer",
364
+ "technical"
365
+ ],
366
+ "resolved": {
367
+ "$type": "array"
368
+ },
369
+ "fraud_sequence": [
370
+ false
371
+ ]
372
+ }
373
+ },
374
+ {
375
+ "event": "notification opened",
376
+ "weight": 10,
377
+ "properties": {
378
+ "notification_type": [
379
+ "transaction",
380
+ "low_balance",
381
+ "bill_due",
382
+ "reward",
383
+ "security",
384
+ "promo"
385
+ ],
386
+ "action_taken": {
387
+ "$type": "array"
388
+ }
389
+ }
390
+ },
391
+ {
392
+ "event": "reward redeemed",
393
+ "weight": 4,
394
+ "properties": {
395
+ "reward_type": [
396
+ "cashback",
397
+ "points",
398
+ "discount",
399
+ "partner_offer"
400
+ ],
401
+ "value": [
402
+ 23,
403
+ 22,
404
+ 58,
405
+ 67,
406
+ 26,
407
+ 28,
408
+ 29,
409
+ 47,
410
+ 20
411
+ ],
412
+ "premium_reward": [
413
+ false
414
+ ]
415
+ }
416
+ }
417
+ ],
418
+ "superProps": {
419
+ "account_tier": [
420
+ "plus",
421
+ "basic",
422
+ "premium"
423
+ ],
424
+ "platform": [
425
+ "ios",
426
+ "android",
427
+ "web"
428
+ ],
429
+ "low_balance_churn": [
430
+ false
431
+ ]
432
+ },
433
+ "userProps": {
434
+ "credit_score_range": [
435
+ "300-579",
436
+ "580-669",
437
+ "670-739",
438
+ "740-799",
439
+ "800-850"
440
+ ],
441
+ "income_bracket": [
442
+ "under_30k",
443
+ "30k_50k",
444
+ "50k_75k",
445
+ "75k_100k",
446
+ "100k_150k",
447
+ "over_150k"
448
+ ],
449
+ "account_age_months": {
450
+ "$range": [
451
+ 17,
452
+ 46
453
+ ]
454
+ },
455
+ "total_balance": {
456
+ "$range": [
457
+ 16006,
458
+ 83008
459
+ ]
460
+ },
461
+ "has_direct_deposit": {
462
+ "$type": "array"
463
+ },
464
+ "account_segment": [
465
+ "personal"
466
+ ],
467
+ "employee_count": [
468
+ 0
469
+ ],
470
+ "annual_revenue": [
471
+ 0
472
+ ],
473
+ "industry": [
474
+ ""
475
+ ],
476
+ "age_range": [
477
+ ""
478
+ ],
479
+ "life_stage": [
480
+ ""
481
+ ]
482
+ },
483
+ "funnels": [
484
+ {
485
+ "sequence": [
486
+ "account opened",
487
+ "app session",
488
+ "balance checked"
489
+ ],
490
+ "isFirstFunnel": true,
491
+ "conversionRate": 85,
492
+ "timeToConvert": 0.25
493
+ },
494
+ {
495
+ "sequence": [
496
+ "app session",
497
+ "balance checked",
498
+ "transaction completed"
499
+ ],
500
+ "conversionRate": 80,
501
+ "timeToConvert": 0.5,
502
+ "weight": 5
503
+ },
504
+ {
505
+ "sequence": [
506
+ "app session",
507
+ "transfer sent",
508
+ "notification opened"
509
+ ],
510
+ "conversionRate": 50,
511
+ "timeToConvert": 1,
512
+ "weight": 3
513
+ },
514
+ {
515
+ "sequence": [
516
+ "app session",
517
+ "bill paid",
518
+ "notification opened"
519
+ ],
520
+ "conversionRate": 60,
521
+ "timeToConvert": 1,
522
+ "weight": 3
523
+ },
524
+ {
525
+ "sequence": [
526
+ "budget created",
527
+ "budget alert",
528
+ "savings goal set"
529
+ ],
530
+ "conversionRate": 40,
531
+ "timeToConvert": 12,
532
+ "weight": 2
533
+ },
534
+ {
535
+ "sequence": [
536
+ "balance checked",
537
+ "investment made",
538
+ "reward redeemed"
539
+ ],
540
+ "conversionRate": 30,
541
+ "timeToConvert": 5,
542
+ "weight": 2
543
+ },
544
+ {
545
+ "sequence": [
546
+ "support contacted",
547
+ "card locked",
548
+ "dispute filed"
549
+ ],
550
+ "conversionRate": 35,
551
+ "timeToConvert": 2
552
+ },
553
+ {
554
+ "sequence": [
555
+ "loan applied",
556
+ "loan approved",
557
+ "premium upgraded"
558
+ ],
559
+ "conversionRate": 25,
560
+ "timeToConvert": 10
561
+ }
562
+ ]
563
+ }