@dcentralab/d402-client 0.3.16 → 0.3.18
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.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +2431 -2351
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2431 -2352
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1161,6 +1161,22 @@ declare function getUnlockedBalanceForProvider(params: {
|
|
|
1161
1161
|
tokenAddress: Address;
|
|
1162
1162
|
network?: SupportedNetwork;
|
|
1163
1163
|
}): Promise<bigint>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Get total dispute amount currently in progress for a provider.
|
|
1166
|
+
*
|
|
1167
|
+
* @param params - Query parameters
|
|
1168
|
+
* @param params.publicClient - Viem PublicClient (from wagmi usePublicClient)
|
|
1169
|
+
* @param params.providerAddress - Provider (utility agent) IATPWallet address
|
|
1170
|
+
* @param params.tokenAddress - Token contract address
|
|
1171
|
+
* @param params.network - Network: "sepolia" | "arbitrum" (default: "sepolia")
|
|
1172
|
+
* @returns Total dispute amount in progress in base units (wei)
|
|
1173
|
+
*/
|
|
1174
|
+
declare function getProviderTotalDisputeInProgress(params: {
|
|
1175
|
+
publicClient: PublicClient;
|
|
1176
|
+
providerAddress: Address;
|
|
1177
|
+
tokenAddress: Address;
|
|
1178
|
+
network?: SupportedNetwork;
|
|
1179
|
+
}): Promise<bigint>;
|
|
1164
1180
|
|
|
1165
1181
|
/**
|
|
1166
1182
|
* IATPSettlementLayer operations
|
|
@@ -1436,4 +1452,4 @@ declare class UnsupportedNetworkError extends PaymentError {
|
|
|
1436
1452
|
constructor(network: string);
|
|
1437
1453
|
}
|
|
1438
1454
|
|
|
1439
|
-
export { ContractName, D402Client, type D402ClientConfig, type D402Response, type EIP712Domain, Invalid402ResponseError, type JsonRpcPayload, type McpToolResult, MissingRequestConfigError, type ParsedMcpResponse, PaymentAlreadyAttemptedError, PaymentAmountExceededError, type PaymentAuthorization, PaymentError, type PaymentRequirement, type PaymentSelector, type PaymentSelectorOptions, PaymentVerificationError, type SignedPayment, type SupportedNetwork, UnsupportedNetworkError, UnsupportedSchemeError, type WalletCreationResult, type WithdrawalRequest, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
|
|
1455
|
+
export { ContractName, D402Client, type D402ClientConfig, type D402Response, type EIP712Domain, Invalid402ResponseError, type JsonRpcPayload, type McpToolResult, MissingRequestConfigError, type ParsedMcpResponse, PaymentAlreadyAttemptedError, PaymentAmountExceededError, type PaymentAuthorization, PaymentError, type PaymentRequirement, type PaymentSelector, type PaymentSelectorOptions, PaymentVerificationError, type SignedPayment, type SupportedNetwork, UnsupportedNetworkError, UnsupportedSchemeError, type WalletCreationResult, type WithdrawalRequest, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getProviderTotalDisputeInProgress, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
|
package/dist/index.d.ts
CHANGED
|
@@ -1161,6 +1161,22 @@ declare function getUnlockedBalanceForProvider(params: {
|
|
|
1161
1161
|
tokenAddress: Address;
|
|
1162
1162
|
network?: SupportedNetwork;
|
|
1163
1163
|
}): Promise<bigint>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Get total dispute amount currently in progress for a provider.
|
|
1166
|
+
*
|
|
1167
|
+
* @param params - Query parameters
|
|
1168
|
+
* @param params.publicClient - Viem PublicClient (from wagmi usePublicClient)
|
|
1169
|
+
* @param params.providerAddress - Provider (utility agent) IATPWallet address
|
|
1170
|
+
* @param params.tokenAddress - Token contract address
|
|
1171
|
+
* @param params.network - Network: "sepolia" | "arbitrum" (default: "sepolia")
|
|
1172
|
+
* @returns Total dispute amount in progress in base units (wei)
|
|
1173
|
+
*/
|
|
1174
|
+
declare function getProviderTotalDisputeInProgress(params: {
|
|
1175
|
+
publicClient: PublicClient;
|
|
1176
|
+
providerAddress: Address;
|
|
1177
|
+
tokenAddress: Address;
|
|
1178
|
+
network?: SupportedNetwork;
|
|
1179
|
+
}): Promise<bigint>;
|
|
1164
1180
|
|
|
1165
1181
|
/**
|
|
1166
1182
|
* IATPSettlementLayer operations
|
|
@@ -1436,4 +1452,4 @@ declare class UnsupportedNetworkError extends PaymentError {
|
|
|
1436
1452
|
constructor(network: string);
|
|
1437
1453
|
}
|
|
1438
1454
|
|
|
1439
|
-
export { ContractName, D402Client, type D402ClientConfig, type D402Response, type EIP712Domain, Invalid402ResponseError, type JsonRpcPayload, type McpToolResult, MissingRequestConfigError, type ParsedMcpResponse, PaymentAlreadyAttemptedError, PaymentAmountExceededError, type PaymentAuthorization, PaymentError, type PaymentRequirement, type PaymentSelector, type PaymentSelectorOptions, PaymentVerificationError, type SignedPayment, type SupportedNetwork, UnsupportedNetworkError, UnsupportedSchemeError, type WalletCreationResult, type WithdrawalRequest, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
|
|
1455
|
+
export { ContractName, D402Client, type D402ClientConfig, type D402Response, type EIP712Domain, Invalid402ResponseError, type JsonRpcPayload, type McpToolResult, MissingRequestConfigError, type ParsedMcpResponse, PaymentAlreadyAttemptedError, PaymentAmountExceededError, type PaymentAuthorization, PaymentError, type PaymentRequirement, type PaymentSelector, type PaymentSelectorOptions, PaymentVerificationError, type SignedPayment, type SupportedNetwork, UnsupportedNetworkError, UnsupportedSchemeError, type WalletCreationResult, type WithdrawalRequest, buildMcpHeaders, buildToolCallPayload, createIATPWallet, createPaymentSelector, decodePayment, decodePaymentResponse, encodePayment, executeWithdrawal, extractToolResult, findMatchingPaymentRequirement, formatMoney, generateNonce, getAvailableBalance, getChain, getChainId, getContractAbi, getContractAddress, getContractConfig, getCurrentTimestamp, getLockedBalanceForProvider, getProviderTotalDisputeInProgress, getUnlockedBalanceForProvider, getUsdcAddress, getWalletEIP712Domain, getWalletInfo, getWalletsByOwner, getWithdrawalRequest, initMcpSession, isValidAddress, normalizeAddress, parseAllPaymentRequirements, parseMcpResponse, parseMoney, parsePaymentRequirement, requestWithdrawal, selectPaymentRequirement, signD402Payment, sortPaymentRequirements, usdToUsdc, validateConsumerSignature, withdrawAllAvailableEpochs, withdrawAllFromSettlement };
|