@mysten-incubation/suipay 0.2.0-dev.3 → 0.2.0-dev.5

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.d.ts CHANGED
@@ -2704,6 +2704,55 @@ declare const ERRORS: {
2704
2704
  readonly message: "That web address doesn't exist. Check the spelling and try again.";
2705
2705
  };
2706
2706
  };
2707
+ readonly 'request.recipient_changed': {
2708
+ readonly surfaces: readonly ["gateway"];
2709
+ readonly status: 409;
2710
+ readonly title: "Pay-to address changed while its registry was being checked";
2711
+ readonly paymentState: "not_charged";
2712
+ readonly retry: "never";
2713
+ readonly nextAction: "fix_request";
2714
+ readonly user: {
2715
+ readonly title: "Retry this publish";
2716
+ readonly message: "The payout address changed while its payment registry was being checked. Retry so the current address is checked.";
2717
+ };
2718
+ };
2719
+ readonly 'request.recipient_registry_invalid': {
2720
+ readonly surfaces: readonly ["gateway"];
2721
+ readonly status: 409;
2722
+ readonly title: "Payment registry does not verify for this deployment";
2723
+ readonly paymentState: "not_charged";
2724
+ readonly retry: "never";
2725
+ readonly nextAction: "fix_request";
2726
+ readonly user: {
2727
+ readonly title: "Registry does not match";
2728
+ readonly message: "The payout address's payment registry does not match this deployment. Fix it, then publish again.";
2729
+ };
2730
+ };
2731
+ readonly 'request.recipient_registry_missing': {
2732
+ readonly surfaces: readonly ["gateway"];
2733
+ readonly status: 409;
2734
+ readonly title: "Pay-to address has no payment registry";
2735
+ readonly paymentState: "not_charged";
2736
+ readonly retry: "never";
2737
+ readonly nextAction: "fix_request";
2738
+ readonly user: {
2739
+ readonly title: "Create a payment registry";
2740
+ readonly message: "This payout address has no payment registry on this network yet. Create it in the seller console, then publish again.";
2741
+ };
2742
+ };
2743
+ readonly 'request.recipient_registry_unreadable': {
2744
+ readonly surfaces: readonly ["gateway"];
2745
+ readonly status: 503;
2746
+ readonly title: "Payment registry could not be read";
2747
+ readonly paymentState: "not_charged";
2748
+ readonly retry: "after_delay";
2749
+ readonly retryAfterSeconds: 5;
2750
+ readonly nextAction: "retry_later";
2751
+ readonly user: {
2752
+ readonly title: "Registry unread";
2753
+ readonly message: "The payment registry could not be read just now. Wait a moment and try again.";
2754
+ };
2755
+ };
2707
2756
  readonly 'request.redirect_refused': {
2708
2757
  readonly surfaces: readonly ["console_server", "sdk"];
2709
2758
  readonly status: 422;
package/dist/index.js CHANGED
@@ -1618,6 +1618,55 @@ var REQUEST_CODES = {
1618
1618
  nextAction: "fix_request",
1619
1619
  user: { title: "Address not found", message: "That web address doesn't exist. Check the spelling and try again." }
1620
1620
  },
1621
+ "request.recipient_changed": {
1622
+ surfaces: ["gateway"],
1623
+ status: 409,
1624
+ title: "Pay-to address changed while its registry was being checked",
1625
+ paymentState: "not_charged",
1626
+ retry: "never",
1627
+ nextAction: "fix_request",
1628
+ user: {
1629
+ title: "Retry this publish",
1630
+ message: "The payout address changed while its payment registry was being checked. Retry so the current address is checked."
1631
+ }
1632
+ },
1633
+ "request.recipient_registry_invalid": {
1634
+ surfaces: ["gateway"],
1635
+ status: 409,
1636
+ title: "Payment registry does not verify for this deployment",
1637
+ paymentState: "not_charged",
1638
+ retry: "never",
1639
+ nextAction: "fix_request",
1640
+ user: {
1641
+ title: "Registry does not match",
1642
+ message: "The payout address's payment registry does not match this deployment. Fix it, then publish again."
1643
+ }
1644
+ },
1645
+ "request.recipient_registry_missing": {
1646
+ surfaces: ["gateway"],
1647
+ status: 409,
1648
+ title: "Pay-to address has no payment registry",
1649
+ paymentState: "not_charged",
1650
+ retry: "never",
1651
+ nextAction: "fix_request",
1652
+ user: {
1653
+ title: "Create a payment registry",
1654
+ message: "This payout address has no payment registry on this network yet. Create it in the seller console, then publish again."
1655
+ }
1656
+ },
1657
+ "request.recipient_registry_unreadable": {
1658
+ surfaces: ["gateway"],
1659
+ status: 503,
1660
+ title: "Payment registry could not be read",
1661
+ paymentState: "not_charged",
1662
+ retry: "after_delay",
1663
+ retryAfterSeconds: 5,
1664
+ nextAction: "retry_later",
1665
+ user: {
1666
+ title: "Registry unread",
1667
+ message: "The payment registry could not be read just now. Wait a moment and try again."
1668
+ }
1669
+ },
1621
1670
  "request.redirect_refused": {
1622
1671
  surfaces: ["console_server", "sdk"],
1623
1672
  status: 422,
@@ -2922,6 +2971,11 @@ var CONTEXT_ALLOWLIST = /* @__PURE__ */ new Set([
2922
2971
  "rails",
2923
2972
  "shard",
2924
2973
  "metric",
2974
+ // Gateway readiness gauge. Fixed marks only: 0 or 1, and up, down, skipped, unknown.
2975
+ "ready",
2976
+ "grpc",
2977
+ "enoki",
2978
+ "postgres",
2925
2979
  "alarm",
2926
2980
  "alert",
2927
2981
  "from",
@@ -3622,6 +3676,14 @@ var SERVICE_STATE_TRANSITIONS = Object.freeze([
3622
3676
  to: "payout_change",
3623
3677
  actors: ["system"],
3624
3678
  requires: ["reason_code"]
3679
+ },
3680
+ {
3681
+ id: "T25",
3682
+ dimension: "suspension",
3683
+ from: ["binding_changed"],
3684
+ to: "none",
3685
+ actors: ["system"],
3686
+ requires: ["reason_code"]
3625
3687
  }
3626
3688
  ]);
3627
3689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten-incubation/suipay",
3
- "version": "0.2.0-dev.3",
3
+ "version": "0.2.0-dev.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "SuiPay embeddable client — quote and pay a 402 from a spend-account grant.",