@mixrpay/agent-sdk 0.9.5 → 0.10.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
@@ -213,9 +213,106 @@ interface FetchPaidOptions {
213
213
  body?: unknown;
214
214
  maxPaymentUsd?: number;
215
215
  }
216
+ /**
217
+ * Known charge types in the MixrPay system.
218
+ * The API may return additional types not listed here.
219
+ */
220
+ type KnownChargeType = 'payment' | 'defi_tx' | 'tool_call' | 'transfer' | 'swap' | 'bridge' | 'x402_payment' | 'jit_deploy';
221
+ /**
222
+ * Charge type - known types with autocomplete, plus string for forward compatibility.
223
+ */
224
+ type ChargeType = KnownChargeType | (string & {});
225
+ /**
226
+ * A single transaction record from the agent's transaction history.
227
+ */
228
+ interface TransactionRecord {
229
+ /** Unique charge ID */
230
+ id: string;
231
+ /** Type of charge (e.g., 'swap', 'transfer', 'bridge') */
232
+ chargeType: ChargeType;
233
+ /** Amount in USD (formatted string, e.g., "10.00") */
234
+ amount: string;
235
+ /** Currency (typically "USDC") */
236
+ currency: string;
237
+ /** Transaction status */
238
+ status: 'pending' | 'submitted' | 'confirmed' | 'failed';
239
+ /** Human-readable description */
240
+ description: string | null;
241
+ /** On-chain transaction hash (null if not yet submitted) */
242
+ txHash: string | null;
243
+ /** Source wallet address */
244
+ fromAddress: string;
245
+ /** Destination address */
246
+ toAddress: string;
247
+ /** Plan ID if this charge was part of a plan execution */
248
+ planId: string | null;
249
+ /** Step index within the plan */
250
+ planStepIndex: number | null;
251
+ /** ISO 8601 timestamp when the charge was created */
252
+ createdAt: string;
253
+ /** ISO 8601 timestamp when the charge was confirmed (null if pending/failed) */
254
+ confirmedAt: string | null;
255
+ }
256
+ /**
257
+ * Response from getTransactions() containing paginated transaction history.
258
+ */
259
+ interface TransactionsResponse {
260
+ /** Array of transaction records */
261
+ transactions: TransactionRecord[];
262
+ /** Total number of matching transactions */
263
+ total: number;
264
+ /** Whether there are more transactions beyond the current page */
265
+ hasMore: boolean;
266
+ }
267
+ /**
268
+ * Options for querying transaction history.
269
+ */
270
+ interface GetTransactionsOptions {
271
+ /** Maximum number of transactions to return (default: 20, max: 100) */
272
+ limit?: number;
273
+ /** Number of transactions to skip (for pagination) */
274
+ offset?: number;
275
+ /** Filter by charge type (e.g., 'swap', 'transfer') */
276
+ chargeType?: string;
277
+ /** Filter by status */
278
+ status?: 'pending' | 'submitted' | 'confirmed' | 'failed';
279
+ /** Only return transactions after this date */
280
+ since?: Date;
281
+ }
282
+ /**
283
+ * A tool definition formatted for the Anthropic API.
284
+ * Compatible with anthropic.messages.create({ tools: [...] }).
285
+ */
286
+ interface AnthropicToolDefinition {
287
+ /** Tool name (e.g., 'check_balance', 'transfer_usdc') */
288
+ name: string;
289
+ /** Description of what the tool does (shown to the LLM) */
290
+ description: string;
291
+ /** JSON Schema for the tool's input parameters */
292
+ input_schema: {
293
+ type: 'object';
294
+ properties: Record<string, unknown>;
295
+ required?: string[];
296
+ };
297
+ }
298
+ /**
299
+ * A toolkit containing Anthropic-compatible tool definitions and an executor.
300
+ * Returned by wallet.tools() for use with raw Anthropic SDK.
301
+ */
302
+ interface AnthropicToolkit {
303
+ /** Array of tool definitions for anthropic.messages.create({ tools: [...] }) */
304
+ definitions: AnthropicToolDefinition[];
305
+ /**
306
+ * Execute a tool by name with the given input.
307
+ * @param name - Tool name (e.g., 'check_balance')
308
+ * @param input - Tool input parameters
309
+ * @returns JSON string result (for tool_result content)
310
+ */
311
+ execute: (name: string, input: Record<string, unknown>) => Promise<string>;
312
+ }
216
313
 
217
314
  /** Current SDK version */
218
- declare const SDK_VERSION = "0.9.4";
315
+ declare const SDK_VERSION = "0.10.0";
219
316
  /** Supported networks */
220
317
  declare const NETWORKS: {
221
318
  readonly BASE_MAINNET: {
@@ -1269,9 +1366,13 @@ declare class AgentWallet {
1269
1366
  */
1270
1367
  getSpendingStats(): Promise<SpendingStats>;
1271
1368
  /**
1272
- * Get list of payments made in this session.
1369
+ * Get list of payments made in this session (in-memory only).
1370
+ *
1371
+ * @deprecated Use {@link getTransactions} instead for persistent transaction history.
1372
+ * This method only returns payments from the current process and is lost on restart.
1373
+ * `getTransactions()` returns server-persisted transaction history across all sessions.
1273
1374
  *
1274
- * @returns Array of payment events
1375
+ * @returns Array of payment events from the current session
1275
1376
  */
1276
1377
  getPaymentHistory(): PaymentEvent[];
1277
1378
  /**
@@ -1452,12 +1553,39 @@ declare class AgentWallet {
1452
1553
  */
1453
1554
  mcp(): McpServerConfig;
1454
1555
  /**
1455
- * Get the API key if set (internal use only).
1556
+ * Get tool definitions for use with the Anthropic SDK or other LLM frameworks.
1557
+ *
1558
+ * This provides an in-process alternative to the MCP server. While `mcp()` spawns
1559
+ * a subprocess for Claude Agent SDK integration, `tools()` returns function-callable
1560
+ * tools for direct use with `anthropic.messages.create({ tools: [...] })`.
1561
+ *
1562
+ * @returns Toolkit with Anthropic-compatible definitions and execute dispatcher
1563
+ *
1564
+ * @example
1565
+ * ```typescript
1566
+ * import Anthropic from '@anthropic-ai/sdk';
1567
+ * import { AgentWallet } from '@mixrpay/agent-sdk';
1456
1568
  *
1457
- // ===========================================================================
1458
- // Diagnostics
1459
- // ===========================================================================
1460
-
1569
+ * const wallet = AgentWallet.fromApiKey('agt_live_xxx');
1570
+ * const { definitions, execute } = wallet.tools();
1571
+ *
1572
+ * const response = await anthropic.messages.create({
1573
+ * model: 'claude-sonnet-4-5-20250514',
1574
+ * max_tokens: 1024,
1575
+ * tools: definitions,
1576
+ * messages: [{ role: 'user', content: 'Check my USDC balance' }],
1577
+ * });
1578
+ *
1579
+ * for (const block of response.content) {
1580
+ * if (block.type === 'tool_use') {
1581
+ * const result = await execute(block.name, block.input as Record<string, unknown>);
1582
+ * // Feed result back to Claude as tool_result
1583
+ * console.log(`Tool ${block.name} returned:`, result);
1584
+ * }
1585
+ * }
1586
+ * ```
1587
+ */
1588
+ tools(): AnthropicToolkit;
1461
1589
  /**
1462
1590
  * Run diagnostics to verify the wallet is properly configured.
1463
1591
  *
@@ -2699,6 +2827,35 @@ declare class AgentWallet {
2699
2827
  * ```
2700
2828
  */
2701
2829
  getBalances(): Promise<BalancesResponse>;
2830
+ /**
2831
+ * Get the agent's transaction history with filtering and pagination.
2832
+ *
2833
+ * Returns server-persisted transaction records including swaps, transfers,
2834
+ * bridges, and tool payments. Unlike `getPaymentHistory()`, this data
2835
+ * persists across process restarts and includes all historical transactions.
2836
+ *
2837
+ * @param options - Query options for filtering and pagination
2838
+ * @returns Paginated transaction records
2839
+ * @throws {MixrPayError} If the query fails
2840
+ *
2841
+ * @example
2842
+ * ```typescript
2843
+ * // Get recent transactions
2844
+ * const { transactions, total, hasMore } = await wallet.getTransactions();
2845
+ *
2846
+ * // Filter by type
2847
+ * const swaps = await wallet.getTransactions({ chargeType: 'swap' });
2848
+ *
2849
+ * // Paginate
2850
+ * const page2 = await wallet.getTransactions({ limit: 20, offset: 20 });
2851
+ *
2852
+ * // Get transactions since yesterday
2853
+ * const recent = await wallet.getTransactions({
2854
+ * since: new Date(Date.now() - 24 * 60 * 60 * 1000)
2855
+ * });
2856
+ * ```
2857
+ */
2858
+ getTransactions(options?: GetTransactionsOptions): Promise<TransactionsResponse>;
2702
2859
  /**
2703
2860
  * Transfer USDC to another address.
2704
2861
  *
@@ -4516,4 +4673,4 @@ declare function getWalletStoragePath(): string;
4516
4673
  */
4517
4674
  declare function deleteWalletKey(): Promise<boolean>;
4518
4675
 
4519
- export { type AgentClaimInviteOptions, type AgentClaimInviteResult, type AgentMessage, type AgentRunConfig, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentRunStatusResult, AgentWallet, type AgentWalletConfig, AuthenticationError, type AvailableBudget, type BalancesResponse, type BridgeResponse, type BridgeStatusResponse, type CallMerchantApiOptions, type ChargeResult, type ChildSession, type CompleteOptions, type CompleteResult, type ConnectOptions, type CredentialLoadResult, type DelegationBudget, type DeployJitMcpOptions, type DeployJitMcpResult, type DiagnosticsResult, type FetchPaidOptions, type FetchPaidResponse, type FetchPaymentInfo, type GlamaImportData, type GlamaSearchResult, type GlamaServer, InsufficientBalanceError, InvalidSessionKeyError, type JitInstance, type MCPTool, type MCPToolResult, type McpServerConfig, MerchantNotAllowedError, MixrPayError, NetworkError, type PaymentEvent, PaymentFailedError, RateLimitError, SDK_VERSION, type SessionAuthorization, SessionExpiredError, SessionKeyExpiredError, type SessionKeyInfo, SessionLimitExceededError, SessionNotFoundError, SessionRevokedError, type SessionStats, type SiweOptions, type SiweResult, type SkillInfo, type SkillStatus, type SpawnChildOptions, type SpawnChildResult, SpendingLimitExceededError, type SpendingStats, type StoredCredentials, type StoredWallet, type SwapResponse, type TokenBalance, type Tool, type ToolResult, type TransferResponse, type UseSkillOptions, type UseSkillResult, X402ProtocolError, deleteCredentials, deleteWalletKey, getCredentialsFilePath, getErrorMessage, getWalletStoragePath, hasCredentials, hasWalletKey, isMixrPayError, loadCredentials, loadWalletData, loadWalletKey, saveCredentials, saveWalletKey };
4676
+ export { type AgentClaimInviteOptions, type AgentClaimInviteResult, type AgentMessage, type AgentRunConfig, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentRunStatusResult, AgentWallet, type AgentWalletConfig, type AnthropicToolDefinition, type AnthropicToolkit, AuthenticationError, type AvailableBudget, type BalancesResponse, type BridgeResponse, type BridgeStatusResponse, type CallMerchantApiOptions, type ChargeResult, type ChargeType, type ChildSession, type CompleteOptions, type CompleteResult, type ConnectOptions, type CredentialLoadResult, type DelegationBudget, type DeployJitMcpOptions, type DeployJitMcpResult, type DiagnosticsResult, type FetchPaidOptions, type FetchPaidResponse, type FetchPaymentInfo, type GetTransactionsOptions, type GlamaImportData, type GlamaSearchResult, type GlamaServer, InsufficientBalanceError, InvalidSessionKeyError, type JitInstance, type KnownChargeType, type MCPTool, type MCPToolResult, type McpServerConfig, MerchantNotAllowedError, MixrPayError, NetworkError, type PaymentEvent, PaymentFailedError, RateLimitError, SDK_VERSION, type SessionAuthorization, SessionExpiredError, SessionKeyExpiredError, type SessionKeyInfo, SessionLimitExceededError, SessionNotFoundError, SessionRevokedError, type SessionStats, type SiweOptions, type SiweResult, type SkillInfo, type SkillStatus, type SpawnChildOptions, type SpawnChildResult, SpendingLimitExceededError, type SpendingStats, type StoredCredentials, type StoredWallet, type SwapResponse, type TokenBalance, type Tool, type ToolResult, type TransactionRecord, type TransactionsResponse, type TransferResponse, type UseSkillOptions, type UseSkillResult, X402ProtocolError, deleteCredentials, deleteWalletKey, getCredentialsFilePath, getErrorMessage, getWalletStoragePath, hasCredentials, hasWalletKey, isMixrPayError, loadCredentials, loadWalletData, loadWalletKey, saveCredentials, saveWalletKey };
package/dist/index.d.ts CHANGED
@@ -213,9 +213,106 @@ interface FetchPaidOptions {
213
213
  body?: unknown;
214
214
  maxPaymentUsd?: number;
215
215
  }
216
+ /**
217
+ * Known charge types in the MixrPay system.
218
+ * The API may return additional types not listed here.
219
+ */
220
+ type KnownChargeType = 'payment' | 'defi_tx' | 'tool_call' | 'transfer' | 'swap' | 'bridge' | 'x402_payment' | 'jit_deploy';
221
+ /**
222
+ * Charge type - known types with autocomplete, plus string for forward compatibility.
223
+ */
224
+ type ChargeType = KnownChargeType | (string & {});
225
+ /**
226
+ * A single transaction record from the agent's transaction history.
227
+ */
228
+ interface TransactionRecord {
229
+ /** Unique charge ID */
230
+ id: string;
231
+ /** Type of charge (e.g., 'swap', 'transfer', 'bridge') */
232
+ chargeType: ChargeType;
233
+ /** Amount in USD (formatted string, e.g., "10.00") */
234
+ amount: string;
235
+ /** Currency (typically "USDC") */
236
+ currency: string;
237
+ /** Transaction status */
238
+ status: 'pending' | 'submitted' | 'confirmed' | 'failed';
239
+ /** Human-readable description */
240
+ description: string | null;
241
+ /** On-chain transaction hash (null if not yet submitted) */
242
+ txHash: string | null;
243
+ /** Source wallet address */
244
+ fromAddress: string;
245
+ /** Destination address */
246
+ toAddress: string;
247
+ /** Plan ID if this charge was part of a plan execution */
248
+ planId: string | null;
249
+ /** Step index within the plan */
250
+ planStepIndex: number | null;
251
+ /** ISO 8601 timestamp when the charge was created */
252
+ createdAt: string;
253
+ /** ISO 8601 timestamp when the charge was confirmed (null if pending/failed) */
254
+ confirmedAt: string | null;
255
+ }
256
+ /**
257
+ * Response from getTransactions() containing paginated transaction history.
258
+ */
259
+ interface TransactionsResponse {
260
+ /** Array of transaction records */
261
+ transactions: TransactionRecord[];
262
+ /** Total number of matching transactions */
263
+ total: number;
264
+ /** Whether there are more transactions beyond the current page */
265
+ hasMore: boolean;
266
+ }
267
+ /**
268
+ * Options for querying transaction history.
269
+ */
270
+ interface GetTransactionsOptions {
271
+ /** Maximum number of transactions to return (default: 20, max: 100) */
272
+ limit?: number;
273
+ /** Number of transactions to skip (for pagination) */
274
+ offset?: number;
275
+ /** Filter by charge type (e.g., 'swap', 'transfer') */
276
+ chargeType?: string;
277
+ /** Filter by status */
278
+ status?: 'pending' | 'submitted' | 'confirmed' | 'failed';
279
+ /** Only return transactions after this date */
280
+ since?: Date;
281
+ }
282
+ /**
283
+ * A tool definition formatted for the Anthropic API.
284
+ * Compatible with anthropic.messages.create({ tools: [...] }).
285
+ */
286
+ interface AnthropicToolDefinition {
287
+ /** Tool name (e.g., 'check_balance', 'transfer_usdc') */
288
+ name: string;
289
+ /** Description of what the tool does (shown to the LLM) */
290
+ description: string;
291
+ /** JSON Schema for the tool's input parameters */
292
+ input_schema: {
293
+ type: 'object';
294
+ properties: Record<string, unknown>;
295
+ required?: string[];
296
+ };
297
+ }
298
+ /**
299
+ * A toolkit containing Anthropic-compatible tool definitions and an executor.
300
+ * Returned by wallet.tools() for use with raw Anthropic SDK.
301
+ */
302
+ interface AnthropicToolkit {
303
+ /** Array of tool definitions for anthropic.messages.create({ tools: [...] }) */
304
+ definitions: AnthropicToolDefinition[];
305
+ /**
306
+ * Execute a tool by name with the given input.
307
+ * @param name - Tool name (e.g., 'check_balance')
308
+ * @param input - Tool input parameters
309
+ * @returns JSON string result (for tool_result content)
310
+ */
311
+ execute: (name: string, input: Record<string, unknown>) => Promise<string>;
312
+ }
216
313
 
217
314
  /** Current SDK version */
218
- declare const SDK_VERSION = "0.9.4";
315
+ declare const SDK_VERSION = "0.10.0";
219
316
  /** Supported networks */
220
317
  declare const NETWORKS: {
221
318
  readonly BASE_MAINNET: {
@@ -1269,9 +1366,13 @@ declare class AgentWallet {
1269
1366
  */
1270
1367
  getSpendingStats(): Promise<SpendingStats>;
1271
1368
  /**
1272
- * Get list of payments made in this session.
1369
+ * Get list of payments made in this session (in-memory only).
1370
+ *
1371
+ * @deprecated Use {@link getTransactions} instead for persistent transaction history.
1372
+ * This method only returns payments from the current process and is lost on restart.
1373
+ * `getTransactions()` returns server-persisted transaction history across all sessions.
1273
1374
  *
1274
- * @returns Array of payment events
1375
+ * @returns Array of payment events from the current session
1275
1376
  */
1276
1377
  getPaymentHistory(): PaymentEvent[];
1277
1378
  /**
@@ -1452,12 +1553,39 @@ declare class AgentWallet {
1452
1553
  */
1453
1554
  mcp(): McpServerConfig;
1454
1555
  /**
1455
- * Get the API key if set (internal use only).
1556
+ * Get tool definitions for use with the Anthropic SDK or other LLM frameworks.
1557
+ *
1558
+ * This provides an in-process alternative to the MCP server. While `mcp()` spawns
1559
+ * a subprocess for Claude Agent SDK integration, `tools()` returns function-callable
1560
+ * tools for direct use with `anthropic.messages.create({ tools: [...] })`.
1561
+ *
1562
+ * @returns Toolkit with Anthropic-compatible definitions and execute dispatcher
1563
+ *
1564
+ * @example
1565
+ * ```typescript
1566
+ * import Anthropic from '@anthropic-ai/sdk';
1567
+ * import { AgentWallet } from '@mixrpay/agent-sdk';
1456
1568
  *
1457
- // ===========================================================================
1458
- // Diagnostics
1459
- // ===========================================================================
1460
-
1569
+ * const wallet = AgentWallet.fromApiKey('agt_live_xxx');
1570
+ * const { definitions, execute } = wallet.tools();
1571
+ *
1572
+ * const response = await anthropic.messages.create({
1573
+ * model: 'claude-sonnet-4-5-20250514',
1574
+ * max_tokens: 1024,
1575
+ * tools: definitions,
1576
+ * messages: [{ role: 'user', content: 'Check my USDC balance' }],
1577
+ * });
1578
+ *
1579
+ * for (const block of response.content) {
1580
+ * if (block.type === 'tool_use') {
1581
+ * const result = await execute(block.name, block.input as Record<string, unknown>);
1582
+ * // Feed result back to Claude as tool_result
1583
+ * console.log(`Tool ${block.name} returned:`, result);
1584
+ * }
1585
+ * }
1586
+ * ```
1587
+ */
1588
+ tools(): AnthropicToolkit;
1461
1589
  /**
1462
1590
  * Run diagnostics to verify the wallet is properly configured.
1463
1591
  *
@@ -2699,6 +2827,35 @@ declare class AgentWallet {
2699
2827
  * ```
2700
2828
  */
2701
2829
  getBalances(): Promise<BalancesResponse>;
2830
+ /**
2831
+ * Get the agent's transaction history with filtering and pagination.
2832
+ *
2833
+ * Returns server-persisted transaction records including swaps, transfers,
2834
+ * bridges, and tool payments. Unlike `getPaymentHistory()`, this data
2835
+ * persists across process restarts and includes all historical transactions.
2836
+ *
2837
+ * @param options - Query options for filtering and pagination
2838
+ * @returns Paginated transaction records
2839
+ * @throws {MixrPayError} If the query fails
2840
+ *
2841
+ * @example
2842
+ * ```typescript
2843
+ * // Get recent transactions
2844
+ * const { transactions, total, hasMore } = await wallet.getTransactions();
2845
+ *
2846
+ * // Filter by type
2847
+ * const swaps = await wallet.getTransactions({ chargeType: 'swap' });
2848
+ *
2849
+ * // Paginate
2850
+ * const page2 = await wallet.getTransactions({ limit: 20, offset: 20 });
2851
+ *
2852
+ * // Get transactions since yesterday
2853
+ * const recent = await wallet.getTransactions({
2854
+ * since: new Date(Date.now() - 24 * 60 * 60 * 1000)
2855
+ * });
2856
+ * ```
2857
+ */
2858
+ getTransactions(options?: GetTransactionsOptions): Promise<TransactionsResponse>;
2702
2859
  /**
2703
2860
  * Transfer USDC to another address.
2704
2861
  *
@@ -4516,4 +4673,4 @@ declare function getWalletStoragePath(): string;
4516
4673
  */
4517
4674
  declare function deleteWalletKey(): Promise<boolean>;
4518
4675
 
4519
- export { type AgentClaimInviteOptions, type AgentClaimInviteResult, type AgentMessage, type AgentRunConfig, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentRunStatusResult, AgentWallet, type AgentWalletConfig, AuthenticationError, type AvailableBudget, type BalancesResponse, type BridgeResponse, type BridgeStatusResponse, type CallMerchantApiOptions, type ChargeResult, type ChildSession, type CompleteOptions, type CompleteResult, type ConnectOptions, type CredentialLoadResult, type DelegationBudget, type DeployJitMcpOptions, type DeployJitMcpResult, type DiagnosticsResult, type FetchPaidOptions, type FetchPaidResponse, type FetchPaymentInfo, type GlamaImportData, type GlamaSearchResult, type GlamaServer, InsufficientBalanceError, InvalidSessionKeyError, type JitInstance, type MCPTool, type MCPToolResult, type McpServerConfig, MerchantNotAllowedError, MixrPayError, NetworkError, type PaymentEvent, PaymentFailedError, RateLimitError, SDK_VERSION, type SessionAuthorization, SessionExpiredError, SessionKeyExpiredError, type SessionKeyInfo, SessionLimitExceededError, SessionNotFoundError, SessionRevokedError, type SessionStats, type SiweOptions, type SiweResult, type SkillInfo, type SkillStatus, type SpawnChildOptions, type SpawnChildResult, SpendingLimitExceededError, type SpendingStats, type StoredCredentials, type StoredWallet, type SwapResponse, type TokenBalance, type Tool, type ToolResult, type TransferResponse, type UseSkillOptions, type UseSkillResult, X402ProtocolError, deleteCredentials, deleteWalletKey, getCredentialsFilePath, getErrorMessage, getWalletStoragePath, hasCredentials, hasWalletKey, isMixrPayError, loadCredentials, loadWalletData, loadWalletKey, saveCredentials, saveWalletKey };
4676
+ export { type AgentClaimInviteOptions, type AgentClaimInviteResult, type AgentMessage, type AgentRunConfig, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentRunStatusResult, AgentWallet, type AgentWalletConfig, type AnthropicToolDefinition, type AnthropicToolkit, AuthenticationError, type AvailableBudget, type BalancesResponse, type BridgeResponse, type BridgeStatusResponse, type CallMerchantApiOptions, type ChargeResult, type ChargeType, type ChildSession, type CompleteOptions, type CompleteResult, type ConnectOptions, type CredentialLoadResult, type DelegationBudget, type DeployJitMcpOptions, type DeployJitMcpResult, type DiagnosticsResult, type FetchPaidOptions, type FetchPaidResponse, type FetchPaymentInfo, type GetTransactionsOptions, type GlamaImportData, type GlamaSearchResult, type GlamaServer, InsufficientBalanceError, InvalidSessionKeyError, type JitInstance, type KnownChargeType, type MCPTool, type MCPToolResult, type McpServerConfig, MerchantNotAllowedError, MixrPayError, NetworkError, type PaymentEvent, PaymentFailedError, RateLimitError, SDK_VERSION, type SessionAuthorization, SessionExpiredError, SessionKeyExpiredError, type SessionKeyInfo, SessionLimitExceededError, SessionNotFoundError, SessionRevokedError, type SessionStats, type SiweOptions, type SiweResult, type SkillInfo, type SkillStatus, type SpawnChildOptions, type SpawnChildResult, SpendingLimitExceededError, type SpendingStats, type StoredCredentials, type StoredWallet, type SwapResponse, type TokenBalance, type Tool, type ToolResult, type TransactionRecord, type TransactionsResponse, type TransferResponse, type UseSkillOptions, type UseSkillResult, X402ProtocolError, deleteCredentials, deleteWalletKey, getCredentialsFilePath, getErrorMessage, getWalletStoragePath, hasCredentials, hasWalletKey, isMixrPayError, loadCredentials, loadWalletData, loadWalletKey, saveCredentials, saveWalletKey };