@t2000/sdk 10.31.0 → 10.32.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.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
2
  import { SuiGrpcClient } from '@mysten/sui/grpc';
3
3
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
4
- import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-D5P8lZWN.cjs';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-D5P8lZWN.cjs';
4
+ import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-DCLIDCx5.cjs';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.cjs';
6
6
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
2
  import { SuiGrpcClient } from '@mysten/sui/grpc';
3
3
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
4
- import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-D5P8lZWN.js';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-D5P8lZWN.js';
4
+ import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-DCLIDCx5.js';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.js';
6
6
  import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
package/dist/index.js CHANGED
@@ -3727,6 +3727,9 @@ async function listServices(base, filter = {}) {
3727
3727
  const params = new URLSearchParams();
3728
3728
  if (filter.agent) params.set("agent", filter.agent);
3729
3729
  if (filter.query) params.set("q", filter.query);
3730
+ if (filter.category) params.set("category", filter.category);
3731
+ if (filter.limit !== void 0) params.set("limit", String(filter.limit));
3732
+ if (filter.offset !== void 0) params.set("offset", String(filter.offset));
3730
3733
  const qs = params.size > 0 ? `?${params.toString()}` : "";
3731
3734
  const json = await commerceFetchJson(`${base}/services${qs}`);
3732
3735
  const services = json.services ?? [];