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