@mysten-incubation/suipay-buyer 0.3.0 → 0.4.0-dev.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.
@@ -57,6 +57,17 @@ declare const ERRORS: {
57
57
  readonly user: null;
58
58
  readonly logOnly: true;
59
59
  };
60
+ readonly 'indexer.native_settlement_deferred': {
61
+ readonly surfaces: readonly ["indexer"];
62
+ readonly status: null;
63
+ readonly title: "Native settlement is deferred; holding the checkpoint";
64
+ readonly paymentState: "not_charged";
65
+ readonly retry: "after_delay";
66
+ readonly retryAfterSeconds: 5;
67
+ readonly nextAction: "retry_later";
68
+ readonly user: null;
69
+ readonly logOnly: true;
70
+ };
60
71
  readonly 'indexer.config_invalid': {
61
72
  readonly surfaces: readonly ["indexer"];
62
73
  readonly status: null;
@@ -450,7 +461,7 @@ declare const ERRORS: {
450
461
  readonly logOnly: true;
451
462
  };
452
463
  readonly 'service.config_degraded': {
453
- readonly surfaces: readonly ["gateway"];
464
+ readonly surfaces: readonly ["gateway", "console_server"];
454
465
  readonly status: null;
455
466
  readonly title: "Service started with degraded configuration";
456
467
  readonly paymentState: "not_charged";
@@ -459,6 +470,16 @@ declare const ERRORS: {
459
470
  readonly user: null;
460
471
  readonly logOnly: true;
461
472
  };
473
+ readonly 'service.readiness': {
474
+ readonly surfaces: readonly ["gateway"];
475
+ readonly status: null;
476
+ readonly title: "Readiness gauge updated";
477
+ readonly paymentState: "not_charged";
478
+ readonly retry: "never";
479
+ readonly nextAction: "none";
480
+ readonly user: null;
481
+ readonly logOnly: true;
482
+ };
462
483
  readonly 'service.bookkeeping_failed': {
463
484
  readonly surfaces: readonly ["gateway"];
464
485
  readonly status: null;
@@ -469,6 +490,36 @@ declare const ERRORS: {
469
490
  readonly user: null;
470
491
  readonly logOnly: true;
471
492
  };
493
+ readonly 'service.boot': {
494
+ readonly surfaces: readonly ["gateway", "seller", "indexer"];
495
+ readonly status: null;
496
+ readonly title: "Service started";
497
+ readonly paymentState: "not_charged";
498
+ readonly retry: "never";
499
+ readonly nextAction: "none";
500
+ readonly user: null;
501
+ readonly logOnly: true;
502
+ };
503
+ readonly 'service.lifecycle': {
504
+ readonly surfaces: readonly ["gateway", "seller", "indexer"];
505
+ readonly status: null;
506
+ readonly title: "Background work progressed";
507
+ readonly paymentState: "not_charged";
508
+ readonly retry: "never";
509
+ readonly nextAction: "none";
510
+ readonly user: null;
511
+ readonly logOnly: true;
512
+ };
513
+ readonly 'service.diagnostic': {
514
+ readonly surfaces: readonly ["gateway", "seller", "indexer"];
515
+ readonly status: null;
516
+ readonly title: "Diagnostic detail";
517
+ readonly paymentState: "not_charged";
518
+ readonly retry: "never";
519
+ readonly nextAction: "none";
520
+ readonly user: null;
521
+ readonly logOnly: true;
522
+ };
472
523
  readonly 'limit.concurrency_exceeded': {
473
524
  readonly surfaces: readonly ["gateway"];
474
525
  readonly status: 429;
@@ -509,7 +560,7 @@ declare const ERRORS: {
509
560
  };
510
561
  };
511
562
  readonly 'limit.rate_limited': {
512
- readonly surfaces: readonly ["gateway", "console_server"];
563
+ readonly surfaces: readonly ["gateway", "console_server", "sdk"];
513
564
  readonly status: 429;
514
565
  readonly title: "Rate limit exceeded";
515
566
  readonly paymentState: "not_charged";
@@ -2666,6 +2717,55 @@ declare const ERRORS: {
2666
2717
  readonly message: "That web address doesn't exist. Check the spelling and try again.";
2667
2718
  };
2668
2719
  };
2720
+ readonly 'request.recipient_changed': {
2721
+ readonly surfaces: readonly ["gateway"];
2722
+ readonly status: 409;
2723
+ readonly title: "Pay-to address changed while its registry was being checked";
2724
+ readonly paymentState: "not_charged";
2725
+ readonly retry: "never";
2726
+ readonly nextAction: "fix_request";
2727
+ readonly user: {
2728
+ readonly title: "Retry this publish";
2729
+ readonly message: "The payout address changed while its payment registry was being checked. Retry so the current address is checked.";
2730
+ };
2731
+ };
2732
+ readonly 'request.recipient_registry_invalid': {
2733
+ readonly surfaces: readonly ["gateway"];
2734
+ readonly status: 409;
2735
+ readonly title: "Payment registry does not verify for this deployment";
2736
+ readonly paymentState: "not_charged";
2737
+ readonly retry: "never";
2738
+ readonly nextAction: "fix_request";
2739
+ readonly user: {
2740
+ readonly title: "Registry does not match";
2741
+ readonly message: "The payout address's payment registry does not match this deployment. Fix it, then publish again.";
2742
+ };
2743
+ };
2744
+ readonly 'request.recipient_registry_missing': {
2745
+ readonly surfaces: readonly ["gateway"];
2746
+ readonly status: 409;
2747
+ readonly title: "Pay-to address has no payment registry";
2748
+ readonly paymentState: "not_charged";
2749
+ readonly retry: "never";
2750
+ readonly nextAction: "fix_request";
2751
+ readonly user: {
2752
+ readonly title: "Create a payment registry";
2753
+ readonly message: "This payout address has no payment registry on this network yet. Create it in the seller console, then publish again.";
2754
+ };
2755
+ };
2756
+ readonly 'request.recipient_registry_unreadable': {
2757
+ readonly surfaces: readonly ["gateway"];
2758
+ readonly status: 503;
2759
+ readonly title: "Payment registry could not be read";
2760
+ readonly paymentState: "not_charged";
2761
+ readonly retry: "after_delay";
2762
+ readonly retryAfterSeconds: 5;
2763
+ readonly nextAction: "retry_later";
2764
+ readonly user: {
2765
+ readonly title: "Registry unread";
2766
+ readonly message: "The payment registry could not be read just now. Wait a moment and try again.";
2767
+ };
2768
+ };
2669
2769
  readonly 'request.redirect_refused': {
2670
2770
  readonly surfaces: readonly ["console_server", "sdk"];
2671
2771
  readonly status: 422;
@@ -1,2 +1,2 @@
1
1
  import '@mysten/sui/client';
2
- export { B as BuildNativeTransferInput, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, k as NativeTransferErrorCode, d as NativeTransferGas, e as NativeTransferSignerInput, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer } from './native-transfer-GD3KlVqG.js';
2
+ export { B as BuildNativeTransferInput, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, k as NativeTransferErrorCode, d as NativeTransferGas, e as NativeTransferSignerInput, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer } from './native-transfer-DspFvMQc.js';
@@ -3,7 +3,7 @@ import {
3
3
  buildNativeTransferBytes,
4
4
  createNativeTransferSigner,
5
5
  inspectNativeTransfer
6
- } from "./chunk-XSL5G2RU.js";
6
+ } from "./chunk-BCI3TKYX.js";
7
7
  export {
8
8
  NativeTransferError,
9
9
  buildNativeTransferBytes,
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@mysten-incubation/suipay-buyer",
3
- "version": "0.3.0",
3
+ "version": "0.4.0-dev.0",
4
4
  "type": "module",
5
5
  "description": "SuiPay buyer SDK — delegated spend-account pay plus a typed /v1 control-plane client.",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/MystenLabs/suipay.git",
10
+ "directory": "packages/buyer"
11
+ },
7
12
  "engines": {
8
13
  "node": ">=20"
9
14
  },
@@ -35,8 +40,8 @@
35
40
  "tsup": "^8.0.0",
36
41
  "typescript": "^6.0.3",
37
42
  "vitest": "^4.1.10",
38
- "@cmdoss/suipay-sdk": "0.1.0",
39
- "@cmdoss/suipay-core": "0.1.0"
43
+ "@cmdoss/suipay-core": "0.1.0",
44
+ "@cmdoss/suipay-sdk": "0.1.0"
40
45
  },
41
46
  "scripts": {
42
47
  "build": "tsup",