@t2000/sdk 10.22.0 → 10.23.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.cjs +0 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -14
- package/dist/index.d.ts +4 -14
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1114,9 +1114,9 @@ declare const AUDRIC_PARENT_NFT_ID = "0x070456e283ec988b6302bdd6cc5172bbdcb70999
|
|
|
1114
1114
|
* A SuiNS parent under which leaf subnames are minted: the registered SLD name
|
|
1115
1115
|
* + the on-chain `SuinsRegistration` NFT id the minting service must own/sign.
|
|
1116
1116
|
*
|
|
1117
|
-
* Added 2026-06-29
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1117
|
+
* Added 2026-06-29 to keep the leaf machinery generic over the parent.
|
|
1118
|
+
* Audric is the default (and, since the agent-id leaf product was retired
|
|
1119
|
+
* 2026-08-04, the only product parent) — every existing caller is unchanged.
|
|
1120
1120
|
*/
|
|
1121
1121
|
interface SuinsParent {
|
|
1122
1122
|
name: string;
|
|
@@ -1124,16 +1124,6 @@ interface SuinsParent {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
/** The Audric consumer-handle parent (`<label>.audric.sui` → `@audric`). */
|
|
1126
1126
|
declare const AUDRIC_PARENT: SuinsParent;
|
|
1127
|
-
/** The Agent ID parent (`<label>.agent-id.sui` → `@agent-id`). Distinct from
|
|
1128
|
-
* audric.sui on purpose (infra/agent registry vs consumer brand).
|
|
1129
|
-
*
|
|
1130
|
-
* Registered on SuiNS mainnet 2026-06-29; the `SuinsRegistration` NFT
|
|
1131
|
-
* (`0xc8c1…d5d1f`) is held by the custody address
|
|
1132
|
-
* `0x6988a92d…30e4532`, which signs leaf mints + pays their gas. Override via
|
|
1133
|
-
* `AGENT_ID_PARENT_NFT_ID` for testnet/dev. */
|
|
1134
|
-
declare const AGENT_ID_PARENT_NAME = "agent-id.sui";
|
|
1135
|
-
declare const AGENT_ID_PARENT_NFT_ID: string;
|
|
1136
|
-
declare const AGENT_ID_PARENT: SuinsParent;
|
|
1137
1127
|
interface BuildAddLeafParams {
|
|
1138
1128
|
/** Bare label, e.g. `'alice'` — NOT the full `'alice.audric.sui'` path. */
|
|
1139
1129
|
label: string;
|
|
@@ -1237,4 +1227,4 @@ declare function fullHandle(label: string, parentName?: string): string;
|
|
|
1237
1227
|
*/
|
|
1238
1228
|
declare function displayHandle(label: string, parentName?: string): string;
|
|
1239
1229
|
|
|
1240
|
-
export { A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID,
|
|
1230
|
+
export { A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MAX_OPEN_WINDOW_MS, type NormalizedAddress, OPENING_CLAIM_POLICY_ANY_ACTIVE, type OpenJobFilter, type OpenJobRow, type Opening, type OpeningTerms, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateOpeningTx, buildRefundUnclaimedTx, buildRevokeLeafTx, cancelOpenJob, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, preflightCreateOpening, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1114,9 +1114,9 @@ declare const AUDRIC_PARENT_NFT_ID = "0x070456e283ec988b6302bdd6cc5172bbdcb70999
|
|
|
1114
1114
|
* A SuiNS parent under which leaf subnames are minted: the registered SLD name
|
|
1115
1115
|
* + the on-chain `SuinsRegistration` NFT id the minting service must own/sign.
|
|
1116
1116
|
*
|
|
1117
|
-
* Added 2026-06-29
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1117
|
+
* Added 2026-06-29 to keep the leaf machinery generic over the parent.
|
|
1118
|
+
* Audric is the default (and, since the agent-id leaf product was retired
|
|
1119
|
+
* 2026-08-04, the only product parent) — every existing caller is unchanged.
|
|
1120
1120
|
*/
|
|
1121
1121
|
interface SuinsParent {
|
|
1122
1122
|
name: string;
|
|
@@ -1124,16 +1124,6 @@ interface SuinsParent {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
/** The Audric consumer-handle parent (`<label>.audric.sui` → `@audric`). */
|
|
1126
1126
|
declare const AUDRIC_PARENT: SuinsParent;
|
|
1127
|
-
/** The Agent ID parent (`<label>.agent-id.sui` → `@agent-id`). Distinct from
|
|
1128
|
-
* audric.sui on purpose (infra/agent registry vs consumer brand).
|
|
1129
|
-
*
|
|
1130
|
-
* Registered on SuiNS mainnet 2026-06-29; the `SuinsRegistration` NFT
|
|
1131
|
-
* (`0xc8c1…d5d1f`) is held by the custody address
|
|
1132
|
-
* `0x6988a92d…30e4532`, which signs leaf mints + pays their gas. Override via
|
|
1133
|
-
* `AGENT_ID_PARENT_NFT_ID` for testnet/dev. */
|
|
1134
|
-
declare const AGENT_ID_PARENT_NAME = "agent-id.sui";
|
|
1135
|
-
declare const AGENT_ID_PARENT_NFT_ID: string;
|
|
1136
|
-
declare const AGENT_ID_PARENT: SuinsParent;
|
|
1137
1127
|
interface BuildAddLeafParams {
|
|
1138
1128
|
/** Bare label, e.g. `'alice'` — NOT the full `'alice.audric.sui'` path. */
|
|
1139
1129
|
label: string;
|
|
@@ -1237,4 +1227,4 @@ declare function fullHandle(label: string, parentName?: string): string;
|
|
|
1237
1227
|
*/
|
|
1238
1228
|
declare function displayHandle(label: string, parentName?: string): string;
|
|
1239
1229
|
|
|
1240
|
-
export { A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID,
|
|
1230
|
+
export { A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MAX_OPEN_WINDOW_MS, type NormalizedAddress, OPENING_CLAIM_POLICY_ANY_ACTIVE, type OpenJobFilter, type OpenJobRow, type Opening, type OpeningTerms, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateOpeningTx, buildRefundUnclaimedTx, buildRevokeLeafTx, cancelOpenJob, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, preflightCreateOpening, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
|
package/dist/index.js
CHANGED
|
@@ -4082,12 +4082,6 @@ var AUDRIC_PARENT = {
|
|
|
4082
4082
|
name: AUDRIC_PARENT_NAME,
|
|
4083
4083
|
nftId: AUDRIC_PARENT_NFT_ID
|
|
4084
4084
|
};
|
|
4085
|
-
var AGENT_ID_PARENT_NAME = "agent-id.sui";
|
|
4086
|
-
var AGENT_ID_PARENT_NFT_ID = process.env.AGENT_ID_PARENT_NFT_ID ?? "0xc8c13f5b5a6d4c47c04877014794f65e67e2745d3bfa089b736eb54b0ebd5d1f";
|
|
4087
|
-
var AGENT_ID_PARENT = {
|
|
4088
|
-
name: AGENT_ID_PARENT_NAME,
|
|
4089
|
-
nftId: AGENT_ID_PARENT_NFT_ID
|
|
4090
|
-
};
|
|
4091
4085
|
var LABEL_PATTERN = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
|
|
4092
4086
|
function validateLabel(label) {
|
|
4093
4087
|
if (typeof label !== "string") {
|
|
@@ -4157,6 +4151,6 @@ function displayHandle(label, parentName = AUDRIC_PARENT_NAME) {
|
|
|
4157
4151
|
// src/index.ts
|
|
4158
4152
|
init_preflight();
|
|
4159
4153
|
|
|
4160
|
-
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID,
|
|
4154
|
+
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, DEFAULT_ACTIVITY_REPORT_URL, DEFAULT_API_BASE, DEFAULT_COMMERCE_API_BASE, DEFAULT_GRPC_URL, DEFAULT_NETWORK, ETH_TYPE, GASLESS_MIN_STABLE_AMOUNT, GASLESS_STABLE_TYPES, GAS_RESERVE_MIN, IKA_TYPE, InvalidAddressError, JOB_STATES, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MANIFEST_TYPE, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_OPEN_WINDOW_MS, MAX_REVIEW_WINDOW_MS, MIST_PER_SUI, NAVX_TYPE, OPENING_CLAIM_POLICY_ANY_ACTIVE, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, SENDABLE_ASSETS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, STABLE_ASSETS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SuinsNotRegisteredError, SuinsRpcError, T2000, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addSendToTx, addSwapToTx, approxUsdValue, assertAllowedAsset, assertBuyerRequirements, assertLimitConfig, buildAddLeafTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateJobTx, buildCreateOpeningTx, buildDeclineJobTx, buildDeliverJobTx, buildRefundJobTx, buildRefundUnclaimedTx, buildRejectJobTx, buildReleaseJobTx, buildRevokeLeafTx, buildSendTx, buildSwapTx, cancelOpenJob, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, claimOpenJob, classifyAction, classifyLabel, classifyTransaction, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, isAllowedAsset, isCetusRouteFresh, isInRegistry, jobActionsFor, keypairFromPrivateKey, listModels, listOpenJobs, listServices, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, parseSuiRpcTx, payWithX402, postOpenJob, preflightCreateJob, preflightCreateOpening, preflightFail, preflightPay, preflightSend, preflightSwap, putJobSpec, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, refundOpenJob, reportX402Activity, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, serializeCetusRoute, setLimits, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyJobForSeller, verifyReceipt, walletExists, writeLimitsFile };
|
|
4161
4155
|
//# sourceMappingURL=index.js.map
|
|
4162
4156
|
//# sourceMappingURL=index.js.map
|