@mysten-incubation/suipay-buyer 0.3.0-dev.1 → 0.3.0-dev.2

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.
@@ -2086,6 +2086,19 @@ var SERVICE_CODES = {
2086
2086
  user: null,
2087
2087
  logOnly: true
2088
2088
  },
2089
+ // A readiness gauge moved while the process is still serving. Not a degraded
2090
+ // boot: `service.config_degraded` is reserved for that, and for the sample
2091
+ // that actually fails closed.
2092
+ "service.readiness": {
2093
+ surfaces: ["gateway"],
2094
+ status: null,
2095
+ title: "Readiness gauge updated",
2096
+ paymentState: "not_charged",
2097
+ retry: "never",
2098
+ nextAction: "none",
2099
+ user: null,
2100
+ logOnly: true
2101
+ },
2089
2102
  // A best-effort write (a trace event, a receipt, a delivery record) failed.
2090
2103
  // The request it belongs to keeps its answer.
2091
2104
  "service.bookkeeping_failed": {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as ErrorCode, P as PaymentState, N as NextAction, R as Receipt, C as CodeFor, D as DelegationScope, O as Offer } from './native-transfer-By0qZ2Jy.js';
2
- export { B as BuildNativeTransferInput, M as McpPaymentSigner, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, d as NativeTransferGas, e as NativeTransferSignerInput, S as SuiPayError, f as SuiPayErrorFields, g as buildMcpPaymentPayload, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer, t as toErrorFields } from './native-transfer-By0qZ2Jy.js';
1
+ import { E as ErrorCode, P as PaymentState, N as NextAction, R as Receipt, C as CodeFor, D as DelegationScope, O as Offer } from './native-transfer-BN4VEDV0.js';
2
+ export { B as BuildNativeTransferInput, M as McpPaymentSigner, a as NativeTransferAccept, b as NativeTransferBuild, c as NativeTransferError, d as NativeTransferGas, e as NativeTransferSignerInput, S as SuiPayError, f as SuiPayErrorFields, g as buildMcpPaymentPayload, h as buildNativeTransferBytes, i as createNativeTransferSigner, j as inspectNativeTransfer, t as toErrorFields } from './native-transfer-BN4VEDV0.js';
3
3
  import { SuiGrpcClient } from '@mysten/sui/grpc';
4
4
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
5
5
  import { KeyObject } from 'node:crypto';
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  parseErrorPayload,
14
14
  stricterPaymentState,
15
15
  toErrorFields
16
- } from "./chunk-JBDYVEX2.js";
16
+ } from "./chunk-XHHXRSY3.js";
17
17
 
18
18
  // src/mcp.ts
19
19
  async function buildMcpPaymentPayload(paymentRequired, signer) {
@@ -459,6 +459,16 @@ declare const ERRORS: {
459
459
  readonly user: null;
460
460
  readonly logOnly: true;
461
461
  };
462
+ readonly 'service.readiness': {
463
+ readonly surfaces: readonly ["gateway"];
464
+ readonly status: null;
465
+ readonly title: "Readiness gauge updated";
466
+ readonly paymentState: "not_charged";
467
+ readonly retry: "never";
468
+ readonly nextAction: "none";
469
+ readonly user: null;
470
+ readonly logOnly: true;
471
+ };
462
472
  readonly 'service.bookkeeping_failed': {
463
473
  readonly surfaces: readonly ["gateway"];
464
474
  readonly status: null;
@@ -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-By0qZ2Jy.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-BN4VEDV0.js';
@@ -3,7 +3,7 @@ import {
3
3
  buildNativeTransferBytes,
4
4
  createNativeTransferSigner,
5
5
  inspectNativeTransfer
6
- } from "./chunk-JBDYVEX2.js";
6
+ } from "./chunk-XHHXRSY3.js";
7
7
  export {
8
8
  NativeTransferError,
9
9
  buildNativeTransferBytes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten-incubation/suipay-buyer",
3
- "version": "0.3.0-dev.1",
3
+ "version": "0.3.0-dev.2",
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",
@@ -40,8 +40,8 @@
40
40
  "tsup": "^8.0.0",
41
41
  "typescript": "^6.0.3",
42
42
  "vitest": "^4.1.10",
43
- "@cmdoss/suipay-core": "0.1.0",
44
- "@cmdoss/suipay-sdk": "0.1.0"
43
+ "@cmdoss/suipay-sdk": "0.1.0",
44
+ "@cmdoss/suipay-core": "0.1.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsup",