@ak--47/dungeon-master 1.3.0 → 1.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 (98) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dungeons/technical/array-of-object-lookup.js +0 -2
  3. package/dungeons/technical/hook-helpers-verify.js +89 -0
  4. package/dungeons/technical/identity-model-verify.js +47 -0
  5. package/dungeons/technical/pattern-aggregate-by-bin.js +41 -0
  6. package/dungeons/technical/pattern-attributed-by-source.js +42 -0
  7. package/dungeons/technical/pattern-frequency-by-frequency.js +40 -0
  8. package/dungeons/technical/pattern-funnel-frequency.js +54 -0
  9. package/dungeons/technical/pattern-ttc-by-segment.js +45 -0
  10. package/dungeons/technical/simple.js +3 -4
  11. package/dungeons/technical/simplest-schema.json +5 -0
  12. package/dungeons/technical/text-generation.js +1 -1
  13. package/dungeons/vertical/ai-platform.js +216 -164
  14. package/dungeons/vertical/community.js +74 -41
  15. package/dungeons/vertical/crypto.js +343 -233
  16. package/dungeons/vertical/dating.js +246 -292
  17. package/dungeons/vertical/devtools.js +179 -70
  18. package/dungeons/vertical/ecommerce.js +275 -122
  19. package/dungeons/vertical/education.js +345 -312
  20. package/dungeons/vertical/fintech.js +445 -314
  21. package/dungeons/vertical/fitness.js +199 -165
  22. package/dungeons/vertical/food-delivery.js +309 -330
  23. package/dungeons/vertical/gaming.js +387 -241
  24. package/dungeons/vertical/healthcare.js +149 -66
  25. package/dungeons/vertical/insurance-application.js +173 -75
  26. package/dungeons/vertical/logistics.js +107 -12
  27. package/dungeons/vertical/marketplace.js +171 -76
  28. package/dungeons/vertical/media.js +259 -402
  29. package/dungeons/vertical/real-estate.js +336 -318
  30. package/dungeons/vertical/sass.js +294 -288
  31. package/dungeons/vertical/social.js +289 -234
  32. package/dungeons/vertical/travel.js +66 -20
  33. package/index.js +17 -17
  34. package/lib/core/config-validator.js +226 -175
  35. package/lib/core/context.js +10 -24
  36. package/lib/core/storage.js +6 -1
  37. package/lib/generators/events.js +57 -104
  38. package/lib/generators/funnels.js +212 -93
  39. package/lib/generators/mirror.js +3 -2
  40. package/lib/generators/product-names.js +1 -1
  41. package/lib/generators/scd.js +2 -1
  42. package/lib/generators/text.js +1 -1
  43. package/lib/hook-helpers/_internal.js +23 -0
  44. package/lib/hook-helpers/cohort.js +124 -0
  45. package/lib/hook-helpers/identity.js +56 -0
  46. package/lib/hook-helpers/index.js +44 -0
  47. package/lib/hook-helpers/inject.js +99 -0
  48. package/lib/hook-helpers/mutate.js +151 -0
  49. package/lib/hook-helpers/timing.js +99 -0
  50. package/lib/hook-patterns/aggregate-per-user-by-bin.js +38 -0
  51. package/lib/hook-patterns/attributed-by-source.js +72 -0
  52. package/lib/hook-patterns/frequency-by-frequency.js +46 -0
  53. package/lib/hook-patterns/funnel-frequency-breakdown.js +73 -0
  54. package/lib/hook-patterns/index.js +14 -0
  55. package/lib/hook-patterns/time-to-convert-by-segment.js +41 -0
  56. package/lib/orchestrators/user-loop.js +143 -293
  57. package/lib/utils/utils.js +97 -52
  58. package/lib/verify/emulate-breakdown.js +281 -0
  59. package/lib/verify/index.js +12 -0
  60. package/lib/verify/verify-dungeon.js +61 -0
  61. package/package.json +6 -4
  62. package/scripts/smoke-test-all.mjs +162 -0
  63. package/scripts/verify-runner.mjs +72 -24
  64. package/types.d.ts +434 -225
  65. package/dungeons/technical/ad-spend-schema.json +0 -128
  66. package/dungeons/technical/anonymous-users-schema.json +0 -92
  67. package/dungeons/technical/array-of-object-lookup-schema.json +0 -191
  68. package/dungeons/technical/experiments-schema.json +0 -203
  69. package/dungeons/technical/foobar-schema.json +0 -362
  70. package/dungeons/technical/group-analytics-schema.json +0 -241
  71. package/dungeons/technical/mirror-strategies-schema.json +0 -84
  72. package/dungeons/technical/nested-objects-schema.json +0 -145
  73. package/dungeons/technical/retention-cadence-schema.json +0 -37
  74. package/dungeons/technical/sanity-schema.json +0 -185
  75. package/dungeons/technical/scale-test-schema.json +0 -70
  76. package/dungeons/technical/scd-schema.json +0 -467
  77. package/dungeons/technical/simple-schema.json +0 -362
  78. package/dungeons/technical/text-generation-schema.json +0 -1062
  79. package/dungeons/vertical/ai-platform-schema.json +0 -617
  80. package/dungeons/vertical/community-schema.json +0 -579
  81. package/dungeons/vertical/crypto-schema.json +0 -546
  82. package/dungeons/vertical/dating-schema.json +0 -401
  83. package/dungeons/vertical/devtools-schema.json +0 -601
  84. package/dungeons/vertical/ecommerce-schema.json +0 -604
  85. package/dungeons/vertical/education-schema.json +0 -5686
  86. package/dungeons/vertical/fintech-schema.json +0 -630
  87. package/dungeons/vertical/fitness-schema.json +0 -530
  88. package/dungeons/vertical/food-delivery-schema.json +0 -36728
  89. package/dungeons/vertical/gaming-schema.json +0 -2703
  90. package/dungeons/vertical/healthcare-schema.json +0 -549
  91. package/dungeons/vertical/insurance-application-schema.json +0 -485
  92. package/dungeons/vertical/logistics-schema.json +0 -574
  93. package/dungeons/vertical/marketplace-schema.json +0 -533
  94. package/dungeons/vertical/media-schema.json +0 -4749
  95. package/dungeons/vertical/real-estate-schema.json +0 -527
  96. package/dungeons/vertical/sass-schema.json +0 -3128
  97. package/dungeons/vertical/social-schema.json +0 -620
  98. package/dungeons/vertical/travel-schema.json +0 -580
@@ -1,546 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "wallet connected",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "wallet_type": [
8
- "MetaMask",
9
- "Phantom",
10
- "Coinbase Wallet",
11
- "Rainbow",
12
- "WalletConnect"
13
- ],
14
- "chain": [
15
- "Ethereum",
16
- "Solana",
17
- "Base",
18
- "Arbitrum",
19
- "Polygon"
20
- ]
21
- }
22
- },
23
- {
24
- "event": "kyc started",
25
- "weight": 2,
26
- "properties": {
27
- "document_type": [
28
- "passport",
29
- "drivers_license",
30
- "national_id"
31
- ],
32
- "verification_method": [
33
- "selfie",
34
- "video",
35
- "document_scan"
36
- ]
37
- }
38
- },
39
- {
40
- "event": "kyc completed",
41
- "properties": {
42
- "document_type": [
43
- "passport",
44
- "drivers_license",
45
- "national_id"
46
- ],
47
- "verification_method": [
48
- "selfie",
49
- "video",
50
- "document_scan"
51
- ]
52
- }
53
- },
54
- {
55
- "event": "deposit",
56
- "weight": 5,
57
- "properties": {
58
- "token": [
59
- "ETH",
60
- "USDC",
61
- "USDT",
62
- "SOL",
63
- "BTC"
64
- ],
65
- "deposit_amount_usd": {
66
- "$range": [
67
- 956,
68
- 4090
69
- ]
70
- },
71
- "chain": [
72
- "Ethereum",
73
- "Solana",
74
- "Base",
75
- "Arbitrum",
76
- "Polygon"
77
- ],
78
- "deposit_method": [
79
- "wallet_transfer",
80
- "bridge",
81
- "on_ramp",
82
- "exchange_transfer"
83
- ],
84
- "kyc_verified": [
85
- false
86
- ]
87
- }
88
- },
89
- {
90
- "event": "withdrawal",
91
- "weight": 3,
92
- "properties": {
93
- "token": [
94
- "ETH",
95
- "USDC",
96
- "USDT",
97
- "SOL",
98
- "BTC"
99
- ],
100
- "amount_usd": {
101
- "$range": [
102
- 817,
103
- 4217
104
- ]
105
- },
106
- "chain": [
107
- "Ethereum",
108
- "Solana",
109
- "Base",
110
- "Arbitrum",
111
- "Polygon"
112
- ],
113
- "withdrawal_method": [
114
- "wallet_transfer",
115
- "bridge",
116
- "off_ramp",
117
- "exchange_transfer"
118
- ]
119
- }
120
- },
121
- {
122
- "event": "swap",
123
- "weight": 10,
124
- "properties": {
125
- "token_pair": [
126
- "ETH/USDC",
127
- "ETH/USDT",
128
- "BTC/USDC",
129
- "SOL/USDC",
130
- "MATIC/ETH",
131
- "ARB/ETH",
132
- "OP/USDC",
133
- "AVAX/USDC",
134
- "LINK/ETH",
135
- "UNI/USDC",
136
- "AAVE/ETH",
137
- "CRV/USDC",
138
- "DOGE/USDT",
139
- "PEPE/ETH",
140
- "APE/USDC"
141
- ],
142
- "trade_amount_usd": {
143
- "$range": [
144
- 1946,
145
- 8471
146
- ]
147
- },
148
- "gas_fee_usd": [
149
- 20,
150
- 8,
151
- 19,
152
- 13
153
- ],
154
- "swap_status": [
155
- "completed",
156
- "pending",
157
- "failed"
158
- ],
159
- "slippage_pct": [
160
- 1
161
- ],
162
- "maker_fee_pct": [
163
- 0.3
164
- ],
165
- "is_whale": [
166
- false
167
- ],
168
- "kyc_verified": [
169
- false
170
- ],
171
- "gas_spike": [
172
- false
173
- ],
174
- "pro_advantage": [
175
- false
176
- ],
177
- "rug_pull_victim": [
178
- false
179
- ],
180
- "moon_trade": [
181
- false
182
- ],
183
- "staked_early": [
184
- false
185
- ]
186
- }
187
- },
188
- {
189
- "event": "stake",
190
- "weight": 4,
191
- "properties": {
192
- "token": [
193
- "ETH",
194
- "SOL",
195
- "MATIC",
196
- "AVAX",
197
- "ATOM",
198
- "DOT"
199
- ],
200
- "amount_usd": {
201
- "$range": [
202
- 1801,
203
- 8469
204
- ]
205
- },
206
- "apy_pct": [
207
- 7,
208
- 6,
209
- 21,
210
- 17,
211
- 10
212
- ],
213
- "lock_period_days": [
214
- 7,
215
- 14,
216
- 30,
217
- 60,
218
- 90,
219
- 180
220
- ]
221
- }
222
- },
223
- {
224
- "event": "unstake",
225
- "weight": 2,
226
- "properties": {
227
- "token": [
228
- "ETH",
229
- "SOL",
230
- "MATIC",
231
- "AVAX",
232
- "ATOM",
233
- "DOT"
234
- ],
235
- "amount_usd": {
236
- "$range": [
237
- 1375,
238
- 8170
239
- ]
240
- },
241
- "apy_pct": [
242
- 10,
243
- 11,
244
- 12,
245
- 7,
246
- 17,
247
- 8,
248
- 15,
249
- 19
250
- ],
251
- "lock_period_days": [
252
- 7,
253
- 14,
254
- 30,
255
- 60,
256
- 90,
257
- 180
258
- ]
259
- }
260
- },
261
- {
262
- "event": "claim airdrop",
263
- "weight": 2,
264
- "properties": {
265
- "airdrop_name": [
266
- "LayerZero Season 1",
267
- "zkSync Drop",
268
- "Starknet STRK",
269
- "Arbitrum ARB",
270
- "Optimism OP",
271
- "Blur Season 3",
272
- "EigenLayer Points",
273
- "Celestia TIA",
274
- "Jupiter JUP",
275
- "Wormhole W"
276
- ],
277
- "token_amount": {
278
- "$range": [
279
- 1747,
280
- 8203
281
- ]
282
- },
283
- "airdrop_value_usd": {
284
- "$range": [
285
- 366,
286
- 1571
287
- ]
288
- }
289
- }
290
- },
291
- {
292
- "event": "nft mint",
293
- "weight": 2,
294
- "properties": {
295
- "collection": [
296
- "Bored Apes",
297
- "Azuki",
298
- "DeGods",
299
- "Pudgy Penguins",
300
- "Milady",
301
- "Doodles",
302
- "CloneX",
303
- "Moonbirds",
304
- "CryptoPunks",
305
- "Art Blocks"
306
- ],
307
- "mint_price_usd": {
308
- "$range": [
309
- 364,
310
- 1652
311
- ]
312
- },
313
- "chain": [
314
- "Ethereum",
315
- "Solana",
316
- "Base",
317
- "Polygon"
318
- ]
319
- }
320
- },
321
- {
322
- "event": "portfolio viewed",
323
- "weight": 8,
324
- "properties": {
325
- "total_value_usd": {
326
- "$range": [
327
- 15147,
328
- 84328
329
- ]
330
- }
331
- }
332
- },
333
- {
334
- "event": "price alert set",
335
- "weight": 3,
336
- "properties": {
337
- "token": [
338
- "ETH",
339
- "BTC",
340
- "SOL",
341
- "MATIC",
342
- "AVAX",
343
- "LINK",
344
- "UNI",
345
- "AAVE"
346
- ],
347
- "alert_type": [
348
- "above",
349
- "below",
350
- "percent_change"
351
- ]
352
- }
353
- },
354
- {
355
- "event": "referral sent",
356
- "weight": 2,
357
- "properties": {
358
- "referral_method": [
359
- "link",
360
- "email",
361
- "twitter",
362
- "discord",
363
- "telegram"
364
- ]
365
- }
366
- },
367
- {
368
- "event": "limit order placed",
369
- "weight": 3,
370
- "properties": {
371
- "token_pair": [
372
- "ETH/USDC",
373
- "ETH/USDT",
374
- "BTC/USDC",
375
- "SOL/USDC",
376
- "MATIC/ETH",
377
- "ARB/ETH",
378
- "OP/USDC",
379
- "AVAX/USDC",
380
- "LINK/ETH",
381
- "UNI/USDC",
382
- "AAVE/ETH",
383
- "CRV/USDC",
384
- "DOGE/USDT",
385
- "PEPE/ETH",
386
- "APE/USDC"
387
- ],
388
- "order_type": [
389
- "limit_buy",
390
- "limit_sell",
391
- "stop_loss",
392
- "take_profit"
393
- ],
394
- "price_usd": {
395
- "$range": [
396
- 6805,
397
- 41840
398
- ]
399
- }
400
- }
401
- },
402
- {
403
- "event": "transfer",
404
- "weight": 3,
405
- "properties": {
406
- "token": [
407
- "ETH",
408
- "USDC",
409
- "USDT",
410
- "SOL",
411
- "BTC"
412
- ],
413
- "amount_usd": {
414
- "$range": [
415
- 892,
416
- 3988
417
- ]
418
- },
419
- "gas_fee_usd": [
420
- 7,
421
- 10,
422
- 22,
423
- 11,
424
- 8
425
- ],
426
- "destination_type": [
427
- "wallet",
428
- "exchange",
429
- "contract",
430
- "ens_name"
431
- ],
432
- "gas_spike": [
433
- false
434
- ]
435
- }
436
- }
437
- ],
438
- "funnels": [
439
- {
440
- "sequence": [
441
- "wallet connected",
442
- "kyc started",
443
- "deposit"
444
- ],
445
- "isFirstFunnel": true,
446
- "conversionRate": 60,
447
- "timeToConvert": 1
448
- },
449
- {
450
- "sequence": [
451
- "deposit",
452
- "swap",
453
- "withdrawal"
454
- ],
455
- "conversionRate": 70,
456
- "timeToConvert": 2,
457
- "weight": 5
458
- },
459
- {
460
- "sequence": [
461
- "swap",
462
- "stake",
463
- "claim airdrop"
464
- ],
465
- "conversionRate": 35,
466
- "timeToConvert": 7,
467
- "weight": 3
468
- }
469
- ],
470
- "superProps": {
471
- "trading_tier": [
472
- "Standard",
473
- "Pro"
474
- ],
475
- "preferred_chain": [
476
- "Ethereum",
477
- "Solana",
478
- "Base",
479
- "Arbitrum",
480
- "Polygon"
481
- ],
482
- "wallet_type": [
483
- "MetaMask",
484
- "Phantom",
485
- "Coinbase Wallet",
486
- "Rainbow",
487
- "WalletConnect"
488
- ],
489
- "staked_early": [
490
- false
491
- ]
492
- },
493
- "userProps": {
494
- "trading_tier": [
495
- "Standard",
496
- "Pro"
497
- ],
498
- "preferred_chain": [
499
- "Ethereum",
500
- "Solana",
501
- "Base",
502
- "Arbitrum",
503
- "Polygon"
504
- ],
505
- "wallet_type": [
506
- "MetaMask",
507
- "Phantom",
508
- "Coinbase Wallet",
509
- "Rainbow",
510
- "WalletConnect"
511
- ],
512
- "total_trade_volume": {
513
- "$range": [
514
- 66033,
515
- 415215
516
- ]
517
- },
518
- "portfolio_value": {
519
- "$range": [
520
- 30644,
521
- 167675
522
- ]
523
- },
524
- "kyc_status": [
525
- "pending"
526
- ],
527
- "has_staked": [
528
- false
529
- ],
530
- "staked_early": [
531
- false
532
- ]
533
- },
534
- "scdProps": {
535
- "trading_tier": {
536
- "type": "user",
537
- "frequency": "month",
538
- "timing": "fuzzy",
539
- "max": 4,
540
- "values": [
541
- "Standard",
542
- "Pro"
543
- ]
544
- }
545
- }
546
- }