@orangecheck/me-client 0.30.1 → 0.31.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.
package/dist/index.mjs CHANGED
@@ -525,143 +525,143 @@ var ARCHETYPE_TEMPLATES = [
525
525
  {
526
526
  id: "saas-paywall",
527
527
  label: "SaaS \xB7 paywall",
528
- summary: "Subscription product \xB7 users sign up, sign in, sometimes pay for premium tiers. Default cashback to encourage signup + retention.",
529
- examples: ["Notion-like notes app", "Linear-like project tracker", "Figma-like editor"],
528
+ summary: "A subscription product: people sign up, sign in and sometimes pay for more. Pays them for signing up and coming back.",
529
+ examples: ["notes app", "project tracker", "design editor"],
530
530
  events: {
531
531
  account_creation: {
532
532
  enabled: true,
533
- site_pays: FIXED(1300),
534
- user_share_pct: 0.65
533
+ site_pays: FIXED(1056),
534
+ user_share_pct: 0.8
535
535
  },
536
536
  session_creation: {
537
537
  enabled: true,
538
- site_pays: FIXED(55),
539
- user_share_pct: 0.65
538
+ site_pays: FIXED(45),
539
+ user_share_pct: 0.8
540
540
  },
541
541
  payment_authorization: {
542
542
  enabled: true,
543
- site_pays: PCT(75e-4),
544
- user_share_pct: 0.65
543
+ site_pays: PCT(609375e-8),
544
+ user_share_pct: 0.8
545
545
  },
546
546
  payment_method_connected: {
547
547
  enabled: true,
548
- site_pays: FIXED(320),
549
- user_share_pct: 0.65
548
+ site_pays: FIXED(260),
549
+ user_share_pct: 0.8
550
550
  }
551
551
  }
552
552
  },
553
553
  {
554
554
  id: "marketplace",
555
555
  label: "marketplace",
556
- summary: "Two-sided marketplace \xB7 buyers + sellers transact. Heavy on payment_authorization and scoped_action_authorization for listings.",
557
- examples: ["Stripe-like checkout", "Etsy-like marketplace", "Uber-like ride-hailing"],
556
+ summary: "Buyers and sellers trade. Pays on payments, listings and new payment methods.",
557
+ examples: ["checkout", "handmade-goods market", "ride-hailing"],
558
558
  events: {
559
559
  account_creation: {
560
560
  enabled: true,
561
- site_pays: FIXED(1300),
562
- user_share_pct: 0.65
561
+ site_pays: FIXED(1056),
562
+ user_share_pct: 0.8
563
563
  },
564
564
  session_creation: {
565
565
  enabled: true,
566
- site_pays: FIXED(55),
567
- user_share_pct: 0.65
566
+ site_pays: FIXED(45),
567
+ user_share_pct: 0.8
568
568
  },
569
569
  payment_authorization: {
570
570
  enabled: true,
571
- site_pays: PCT(75e-4),
572
- user_share_pct: 0.65
571
+ site_pays: PCT(609375e-8),
572
+ user_share_pct: 0.8
573
573
  },
574
574
  scoped_action_authorization: {
575
575
  enabled: true,
576
- site_pays: FIXED(100),
577
- user_share_pct: 0.65
576
+ site_pays: FIXED(81),
577
+ user_share_pct: 0.8
578
578
  },
579
579
  payment_method_connected: {
580
580
  enabled: true,
581
- site_pays: FIXED(320),
582
- user_share_pct: 0.65
581
+ site_pays: FIXED(260),
582
+ user_share_pct: 0.8
583
583
  },
584
584
  attest_verification_at_gate: {
585
585
  enabled: true,
586
- site_pays: FIXED(280),
587
- user_share_pct: 0.65
586
+ site_pays: FIXED(227),
587
+ user_share_pct: 0.8
588
588
  }
589
589
  }
590
590
  },
591
591
  {
592
592
  id: "content-platform",
593
593
  label: "content platform",
594
- summary: "User-generated content \xB7 posts, reviews, votes, comments. Each meaningful action is scoped_action_authorization; stamp_signing for credentialed reviews.",
595
- examples: ["Reddit-like forum", "YouTube-like video host", "Substack-like publishing"],
594
+ summary: "Posts, reviews, votes and comments. Pays for each meaningful action, and for signed reviews.",
595
+ examples: ["forum", "video host", "newsletter"],
596
596
  events: {
597
597
  account_creation: {
598
598
  enabled: true,
599
- site_pays: FIXED(1300),
600
- user_share_pct: 0.7
599
+ site_pays: FIXED(1137),
600
+ user_share_pct: 0.8
601
601
  },
602
602
  session_creation: {
603
603
  enabled: true,
604
- site_pays: FIXED(55),
605
- user_share_pct: 0.7
604
+ site_pays: FIXED(49),
605
+ user_share_pct: 0.8
606
606
  },
607
607
  scoped_action_authorization: {
608
608
  enabled: true,
609
- site_pays: FIXED(100),
610
- user_share_pct: 0.7
609
+ site_pays: FIXED(87),
610
+ user_share_pct: 0.8
611
611
  },
612
612
  stamp_signing: {
613
613
  enabled: true,
614
- site_pays: FIXED(55),
615
- user_share_pct: 0.7
614
+ site_pays: FIXED(49),
615
+ user_share_pct: 0.8
616
616
  }
617
617
  }
618
618
  },
619
619
  {
620
620
  id: "gaming",
621
621
  label: "gaming",
622
- summary: "Game with monetized actions \xB7 pledges + scoped actions are core. Higher cashback ratios reward in-game engagement.",
622
+ summary: "A game where actions carry value. Pays for playing, paying and settled pledges.",
623
623
  examples: [
624
624
  "on-chain prediction markets",
625
625
  "skill-staking tournaments",
626
- "PvP wager games"
626
+ "multiplayer games"
627
627
  ],
628
628
  events: {
629
629
  account_creation: {
630
630
  enabled: true,
631
- site_pays: FIXED(1300),
632
- user_share_pct: 0.7
631
+ site_pays: FIXED(1137),
632
+ user_share_pct: 0.8
633
633
  },
634
634
  session_creation: {
635
635
  enabled: true,
636
- site_pays: FIXED(55),
637
- user_share_pct: 0.7
636
+ site_pays: FIXED(49),
637
+ user_share_pct: 0.8
638
638
  },
639
639
  scoped_action_authorization: {
640
640
  enabled: true,
641
- site_pays: FIXED(100),
642
- user_share_pct: 0.7
641
+ site_pays: FIXED(87),
642
+ user_share_pct: 0.8
643
643
  },
644
644
  payment_authorization: {
645
645
  enabled: true,
646
- site_pays: PCT(5e-3),
647
- user_share_pct: 0.7
646
+ site_pays: PCT(4375e-6),
647
+ user_share_pct: 0.8
648
648
  },
649
649
  pledge_resolution: {
650
650
  enabled: true,
651
- site_pays: PCT(0.01),
652
- user_share_pct: 0.7
651
+ site_pays: PCT(875e-5),
652
+ user_share_pct: 0.8
653
653
  },
654
654
  attest_verification_at_gate: {
655
655
  enabled: true,
656
- site_pays: FIXED(280),
657
- user_share_pct: 0.7
656
+ site_pays: FIXED(245),
657
+ user_share_pct: 0.8
658
658
  }
659
659
  }
660
660
  },
661
661
  {
662
662
  id: "agent-only",
663
663
  label: "agent-only",
664
- summary: "AI-agent surface \xB7 oc-agent delegations are the primary auth pattern. Session_creation off (delegations replace sessions); agent_delegation_issued + scoped_action_authorization carry the activity.",
664
+ summary: "AI agents act for people under a delegation. Sessions are off; delegations and the actions they allow carry the activity.",
665
665
  examples: [
666
666
  "AI assistant calling APIs on user behalf",
667
667
  "autonomous trading bot",
@@ -670,18 +670,18 @@ var ARCHETYPE_TEMPLATES = [
670
670
  events: {
671
671
  account_creation: {
672
672
  enabled: true,
673
- site_pays: FIXED(1300),
674
- user_share_pct: 0.65
673
+ site_pays: FIXED(1056),
674
+ user_share_pct: 0.8
675
675
  },
676
676
  agent_delegation_issued: {
677
677
  enabled: true,
678
- site_pays: FIXED(320),
679
- user_share_pct: 0.65
678
+ site_pays: FIXED(260),
679
+ user_share_pct: 0.8
680
680
  },
681
681
  scoped_action_authorization: {
682
682
  enabled: true,
683
- site_pays: FIXED(100),
684
- user_share_pct: 0.65
683
+ site_pays: FIXED(81),
684
+ user_share_pct: 0.8
685
685
  }
686
686
  }
687
687
  }
@@ -706,7 +706,7 @@ var ALL_SUBTYPES = [
706
706
  var DEFAULT_DISABLED = {
707
707
  enabled: false,
708
708
  site_pays: { kind: "fixed_sats", sats: 100 },
709
- user_share_pct: 0.65
709
+ user_share_pct: 0.8
710
710
  };
711
711
  function fromTemplate(useCase, identity2) {
712
712
  const template = ARCHETYPES_BY_ID[useCase];