@paysponge/sdk 0.1.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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/dist/admin.d.ts +81 -0
  4. package/dist/admin.d.ts.map +1 -0
  5. package/dist/admin.js +108 -0
  6. package/dist/admin.js.map +1 -0
  7. package/dist/api/agents.d.ts +37 -0
  8. package/dist/api/agents.d.ts.map +1 -0
  9. package/dist/api/agents.js +63 -0
  10. package/dist/api/agents.js.map +1 -0
  11. package/dist/api/http.d.ts +29 -0
  12. package/dist/api/http.d.ts.map +1 -0
  13. package/dist/api/http.js +101 -0
  14. package/dist/api/http.js.map +1 -0
  15. package/dist/api/index.d.ts +6 -0
  16. package/dist/api/index.d.ts.map +1 -0
  17. package/dist/api/index.js +6 -0
  18. package/dist/api/index.js.map +1 -0
  19. package/dist/api/public-tools.d.ts +52 -0
  20. package/dist/api/public-tools.d.ts.map +1 -0
  21. package/dist/api/public-tools.js +68 -0
  22. package/dist/api/public-tools.js.map +1 -0
  23. package/dist/api/transactions.d.ts +30 -0
  24. package/dist/api/transactions.d.ts.map +1 -0
  25. package/dist/api/transactions.js +176 -0
  26. package/dist/api/transactions.js.map +1 -0
  27. package/dist/api/wallets.d.ts +33 -0
  28. package/dist/api/wallets.d.ts.map +1 -0
  29. package/dist/api/wallets.js +121 -0
  30. package/dist/api/wallets.js.map +1 -0
  31. package/dist/auth/credentials.d.ts +37 -0
  32. package/dist/auth/credentials.d.ts.map +1 -0
  33. package/dist/auth/credentials.js +100 -0
  34. package/dist/auth/credentials.js.map +1 -0
  35. package/dist/auth/device-flow.d.ts +25 -0
  36. package/dist/auth/device-flow.d.ts.map +1 -0
  37. package/dist/auth/device-flow.js +161 -0
  38. package/dist/auth/device-flow.js.map +1 -0
  39. package/dist/auth/index.d.ts +3 -0
  40. package/dist/auth/index.d.ts.map +1 -0
  41. package/dist/auth/index.js +3 -0
  42. package/dist/auth/index.js.map +1 -0
  43. package/dist/bin/cli.d.ts +3 -0
  44. package/dist/bin/cli.d.ts.map +1 -0
  45. package/dist/bin/cli.js +116 -0
  46. package/dist/bin/cli.js.map +1 -0
  47. package/dist/client.d.ts +383 -0
  48. package/dist/client.d.ts.map +1 -0
  49. package/dist/client.js +384 -0
  50. package/dist/client.js.map +1 -0
  51. package/dist/index.d.ts +11 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +18 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/mcp/config.d.ts +27 -0
  56. package/dist/mcp/config.d.ts.map +1 -0
  57. package/dist/mcp/config.js +34 -0
  58. package/dist/mcp/config.js.map +1 -0
  59. package/dist/mcp/index.d.ts +2 -0
  60. package/dist/mcp/index.d.ts.map +1 -0
  61. package/dist/mcp/index.js +2 -0
  62. package/dist/mcp/index.js.map +1 -0
  63. package/dist/tools/definitions.d.ts +16 -0
  64. package/dist/tools/definitions.d.ts.map +1 -0
  65. package/dist/tools/definitions.js +330 -0
  66. package/dist/tools/definitions.js.map +1 -0
  67. package/dist/tools/executor.d.ts +56 -0
  68. package/dist/tools/executor.d.ts.map +1 -0
  69. package/dist/tools/executor.js +182 -0
  70. package/dist/tools/executor.js.map +1 -0
  71. package/dist/tools/index.d.ts +3 -0
  72. package/dist/tools/index.d.ts.map +1 -0
  73. package/dist/tools/index.js +3 -0
  74. package/dist/tools/index.js.map +1 -0
  75. package/dist/types/index.d.ts +2 -0
  76. package/dist/types/index.d.ts.map +1 -0
  77. package/dist/types/index.js +2 -0
  78. package/dist/types/index.js.map +1 -0
  79. package/dist/types/schemas.d.ts +924 -0
  80. package/dist/types/schemas.d.ts.map +1 -0
  81. package/dist/types/schemas.js +360 -0
  82. package/dist/types/schemas.js.map +1 -0
  83. package/package.json +70 -0
@@ -0,0 +1,924 @@
1
+ import { z } from "zod";
2
+ export declare const ChainSchema: z.ZodEnum<["ethereum", "base", "sepolia", "base-sepolia", "tempo", "solana", "solana-devnet"]>;
3
+ export type Chain = z.infer<typeof ChainSchema>;
4
+ export declare const ChainTypeSchema: z.ZodEnum<["evm", "solana"]>;
5
+ export type ChainType = z.infer<typeof ChainTypeSchema>;
6
+ export declare const CurrencySchema: z.ZodEnum<["ETH", "SOL", "USDC", "pathUSD"]>;
7
+ export type Currency = z.infer<typeof CurrencySchema>;
8
+ export declare const EvmChainSchema: z.ZodEnum<["ethereum", "base", "sepolia", "base-sepolia"]>;
9
+ export type EvmChain = z.infer<typeof EvmChainSchema>;
10
+ export declare const SolanaChainSchema: z.ZodEnum<["solana", "solana-devnet"]>;
11
+ export type SolanaChain = z.infer<typeof SolanaChainSchema>;
12
+ export declare const MainnetChainSchema: z.ZodEnum<["ethereum", "base", "solana"]>;
13
+ export type MainnetChain = z.infer<typeof MainnetChainSchema>;
14
+ export declare const TestnetChainSchema: z.ZodEnum<["sepolia", "base-sepolia", "tempo", "solana-devnet"]>;
15
+ export type TestnetChain = z.infer<typeof TestnetChainSchema>;
16
+ export declare const EthereumAddressSchema: z.ZodString;
17
+ export declare const SolanaAddressSchema: z.ZodString;
18
+ export declare const AddressSchema: z.ZodEffects<z.ZodString, string, string>;
19
+ export declare const ConnectOptionsSchema: z.ZodObject<{
20
+ /** Agent name (creates new agent if doesn't exist) */
21
+ name: z.ZodOptional<z.ZodString>;
22
+ /** Existing agent ID to connect to */
23
+ agentId: z.ZodOptional<z.ZodString>;
24
+ /** API key to use (skips device flow) */
25
+ apiKey: z.ZodOptional<z.ZodString>;
26
+ /** Use testnets only */
27
+ testnet: z.ZodOptional<z.ZodBoolean>;
28
+ /** Base URL for the API (defaults to production) */
29
+ baseUrl: z.ZodOptional<z.ZodString>;
30
+ /** Disable browser auto-open during device flow */
31
+ noBrowser: z.ZodOptional<z.ZodBoolean>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ name?: string | undefined;
34
+ agentId?: string | undefined;
35
+ apiKey?: string | undefined;
36
+ testnet?: boolean | undefined;
37
+ baseUrl?: string | undefined;
38
+ noBrowser?: boolean | undefined;
39
+ }, {
40
+ name?: string | undefined;
41
+ agentId?: string | undefined;
42
+ apiKey?: string | undefined;
43
+ testnet?: boolean | undefined;
44
+ baseUrl?: string | undefined;
45
+ noBrowser?: boolean | undefined;
46
+ }>;
47
+ export type ConnectOptions = z.infer<typeof ConnectOptionsSchema>;
48
+ export declare const CreateAgentOptionsSchema: z.ZodObject<{
49
+ name: z.ZodString;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ dailySpendingLimit: z.ZodOptional<z.ZodString>;
52
+ weeklySpendingLimit: z.ZodOptional<z.ZodString>;
53
+ monthlySpendingLimit: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ name: string;
56
+ description?: string | undefined;
57
+ dailySpendingLimit?: string | undefined;
58
+ weeklySpendingLimit?: string | undefined;
59
+ monthlySpendingLimit?: string | undefined;
60
+ }, {
61
+ name: string;
62
+ description?: string | undefined;
63
+ dailySpendingLimit?: string | undefined;
64
+ weeklySpendingLimit?: string | undefined;
65
+ monthlySpendingLimit?: string | undefined;
66
+ }>;
67
+ export type CreateAgentOptions = z.infer<typeof CreateAgentOptionsSchema>;
68
+ export declare const AgentSchema: z.ZodObject<{
69
+ id: z.ZodString;
70
+ name: z.ZodString;
71
+ description: z.ZodNullable<z.ZodString>;
72
+ status: z.ZodEnum<["active", "paused", "suspended"]>;
73
+ dailySpendingLimit: z.ZodNullable<z.ZodString>;
74
+ weeklySpendingLimit: z.ZodNullable<z.ZodString>;
75
+ monthlySpendingLimit: z.ZodNullable<z.ZodString>;
76
+ createdAt: z.ZodDate;
77
+ updatedAt: z.ZodDate;
78
+ }, "strip", z.ZodTypeAny, {
79
+ status: "active" | "paused" | "suspended";
80
+ name: string;
81
+ description: string | null;
82
+ dailySpendingLimit: string | null;
83
+ weeklySpendingLimit: string | null;
84
+ monthlySpendingLimit: string | null;
85
+ id: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ }, {
89
+ status: "active" | "paused" | "suspended";
90
+ name: string;
91
+ description: string | null;
92
+ dailySpendingLimit: string | null;
93
+ weeklySpendingLimit: string | null;
94
+ monthlySpendingLimit: string | null;
95
+ id: string;
96
+ createdAt: Date;
97
+ updatedAt: Date;
98
+ }>;
99
+ export type Agent = z.infer<typeof AgentSchema>;
100
+ export declare const WalletSchema: z.ZodObject<{
101
+ id: z.ZodString;
102
+ agentId: z.ZodString;
103
+ chainId: z.ZodNumber;
104
+ chainName: z.ZodString;
105
+ chainType: z.ZodOptional<z.ZodEnum<["evm", "solana"]>>;
106
+ address: z.ZodString;
107
+ isActive: z.ZodBoolean;
108
+ createdAt: z.ZodDate;
109
+ balance: z.ZodOptional<z.ZodString>;
110
+ balanceUsdValue: z.ZodOptional<z.ZodString>;
111
+ symbol: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ agentId: string;
114
+ id: string;
115
+ createdAt: Date;
116
+ chainId: number;
117
+ chainName: string;
118
+ address: string;
119
+ isActive: boolean;
120
+ symbol?: string | undefined;
121
+ chainType?: "solana" | "evm" | undefined;
122
+ balance?: string | undefined;
123
+ balanceUsdValue?: string | undefined;
124
+ }, {
125
+ agentId: string;
126
+ id: string;
127
+ createdAt: Date;
128
+ chainId: number;
129
+ chainName: string;
130
+ address: string;
131
+ isActive: boolean;
132
+ symbol?: string | undefined;
133
+ chainType?: "solana" | "evm" | undefined;
134
+ balance?: string | undefined;
135
+ balanceUsdValue?: string | undefined;
136
+ }>;
137
+ export type Wallet = z.infer<typeof WalletSchema>;
138
+ export declare const TokenBalanceSchema: z.ZodObject<{
139
+ tokenAddress: z.ZodString;
140
+ symbol: z.ZodString;
141
+ name: z.ZodString;
142
+ decimals: z.ZodNumber;
143
+ balance: z.ZodString;
144
+ formatted: z.ZodString;
145
+ usdValue: z.ZodOptional<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ symbol: string;
148
+ name: string;
149
+ balance: string;
150
+ tokenAddress: string;
151
+ decimals: number;
152
+ formatted: string;
153
+ usdValue?: string | undefined;
154
+ }, {
155
+ symbol: string;
156
+ name: string;
157
+ balance: string;
158
+ tokenAddress: string;
159
+ decimals: number;
160
+ formatted: string;
161
+ usdValue?: string | undefined;
162
+ }>;
163
+ export type TokenBalance = z.infer<typeof TokenBalanceSchema>;
164
+ export declare const BalanceSchema: z.ZodRecord<z.ZodString, z.ZodString>;
165
+ export type Balance = z.infer<typeof BalanceSchema>;
166
+ export declare const AllBalancesSchema: z.ZodRecord<z.ZodEnum<["ethereum", "base", "sepolia", "base-sepolia", "tempo", "solana", "solana-devnet"]>, z.ZodRecord<z.ZodString, z.ZodString>>;
167
+ export type AllBalances = z.infer<typeof AllBalancesSchema>;
168
+ export declare const TransferOptionsSchema: z.ZodObject<{
169
+ chain: z.ZodEnum<["ethereum", "base", "sepolia", "base-sepolia", "tempo", "solana", "solana-devnet"]>;
170
+ to: z.ZodEffects<z.ZodString, string, string>;
171
+ amount: z.ZodString;
172
+ currency: z.ZodEnum<["ETH", "SOL", "USDC", "pathUSD"]>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ chain: "ethereum" | "base" | "sepolia" | "base-sepolia" | "tempo" | "solana" | "solana-devnet";
175
+ to: string;
176
+ amount: string;
177
+ currency: "ETH" | "SOL" | "USDC" | "pathUSD";
178
+ }, {
179
+ chain: "ethereum" | "base" | "sepolia" | "base-sepolia" | "tempo" | "solana" | "solana-devnet";
180
+ to: string;
181
+ amount: string;
182
+ currency: "ETH" | "SOL" | "USDC" | "pathUSD";
183
+ }>;
184
+ export type TransferOptions = z.infer<typeof TransferOptionsSchema>;
185
+ export declare const TransactionResultSchema: z.ZodObject<{
186
+ txHash: z.ZodString;
187
+ status: z.ZodEnum<["pending", "confirmed", "failed"]>;
188
+ explorerUrl: z.ZodOptional<z.ZodString>;
189
+ chainId: z.ZodOptional<z.ZodNumber>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ status: "pending" | "confirmed" | "failed";
192
+ txHash: string;
193
+ chainId?: number | undefined;
194
+ explorerUrl?: string | undefined;
195
+ }, {
196
+ status: "pending" | "confirmed" | "failed";
197
+ txHash: string;
198
+ chainId?: number | undefined;
199
+ explorerUrl?: string | undefined;
200
+ }>;
201
+ export type TransactionResult = z.infer<typeof TransactionResultSchema>;
202
+ export declare const TransactionStatusSchema: z.ZodObject<{
203
+ txHash: z.ZodString;
204
+ status: z.ZodEnum<["pending", "confirmed", "failed", "unknown"]>;
205
+ blockNumber: z.ZodNullable<z.ZodNumber>;
206
+ confirmations: z.ZodNullable<z.ZodNumber>;
207
+ errorMessage: z.ZodNullable<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ status: "unknown" | "pending" | "confirmed" | "failed";
210
+ txHash: string;
211
+ blockNumber: number | null;
212
+ confirmations: number | null;
213
+ errorMessage: string | null;
214
+ }, {
215
+ status: "unknown" | "pending" | "confirmed" | "failed";
216
+ txHash: string;
217
+ blockNumber: number | null;
218
+ confirmations: number | null;
219
+ errorMessage: string | null;
220
+ }>;
221
+ export type TransactionStatus = z.infer<typeof TransactionStatusSchema>;
222
+ export declare const SwapOptionsSchema: z.ZodObject<{
223
+ chain: z.ZodUnion<[z.ZodLiteral<"solana">, z.ZodLiteral<"solana-devnet">]>;
224
+ from: z.ZodString;
225
+ to: z.ZodString;
226
+ amount: z.ZodString;
227
+ slippageBps: z.ZodOptional<z.ZodNumber>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ chain: "solana" | "solana-devnet";
230
+ to: string;
231
+ amount: string;
232
+ from: string;
233
+ slippageBps?: number | undefined;
234
+ }, {
235
+ chain: "solana" | "solana-devnet";
236
+ to: string;
237
+ amount: string;
238
+ from: string;
239
+ slippageBps?: number | undefined;
240
+ }>;
241
+ export type SwapOptions = z.infer<typeof SwapOptionsSchema>;
242
+ export declare const DetailedTokenBalanceSchema: z.ZodObject<{
243
+ token: z.ZodString;
244
+ amount: z.ZodString;
245
+ usdValue: z.ZodOptional<z.ZodString>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ amount: string;
248
+ token: string;
249
+ usdValue?: string | undefined;
250
+ }, {
251
+ amount: string;
252
+ token: string;
253
+ usdValue?: string | undefined;
254
+ }>;
255
+ export type DetailedTokenBalance = z.infer<typeof DetailedTokenBalanceSchema>;
256
+ export declare const DetailedChainBalanceSchema: z.ZodObject<{
257
+ address: z.ZodString;
258
+ balances: z.ZodArray<z.ZodObject<{
259
+ token: z.ZodString;
260
+ amount: z.ZodString;
261
+ usdValue: z.ZodOptional<z.ZodString>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ amount: string;
264
+ token: string;
265
+ usdValue?: string | undefined;
266
+ }, {
267
+ amount: string;
268
+ token: string;
269
+ usdValue?: string | undefined;
270
+ }>, "many">;
271
+ }, "strip", z.ZodTypeAny, {
272
+ address: string;
273
+ balances: {
274
+ amount: string;
275
+ token: string;
276
+ usdValue?: string | undefined;
277
+ }[];
278
+ }, {
279
+ address: string;
280
+ balances: {
281
+ amount: string;
282
+ token: string;
283
+ usdValue?: string | undefined;
284
+ }[];
285
+ }>;
286
+ export type DetailedChainBalance = z.infer<typeof DetailedChainBalanceSchema>;
287
+ export declare const DetailedBalancesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
288
+ address: z.ZodString;
289
+ balances: z.ZodArray<z.ZodObject<{
290
+ token: z.ZodString;
291
+ amount: z.ZodString;
292
+ usdValue: z.ZodOptional<z.ZodString>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ amount: string;
295
+ token: string;
296
+ usdValue?: string | undefined;
297
+ }, {
298
+ amount: string;
299
+ token: string;
300
+ usdValue?: string | undefined;
301
+ }>, "many">;
302
+ }, "strip", z.ZodTypeAny, {
303
+ address: string;
304
+ balances: {
305
+ amount: string;
306
+ token: string;
307
+ usdValue?: string | undefined;
308
+ }[];
309
+ }, {
310
+ address: string;
311
+ balances: {
312
+ amount: string;
313
+ token: string;
314
+ usdValue?: string | undefined;
315
+ }[];
316
+ }>>;
317
+ export type DetailedBalances = z.infer<typeof DetailedBalancesSchema>;
318
+ export declare const EvmTransferOptionsSchema: z.ZodObject<{
319
+ chain: z.ZodEnum<["ethereum", "base", "sepolia", "base-sepolia"]>;
320
+ to: z.ZodString;
321
+ amount: z.ZodString;
322
+ currency: z.ZodEnum<["ETH", "USDC"]>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ chain: "ethereum" | "base" | "sepolia" | "base-sepolia";
325
+ to: string;
326
+ amount: string;
327
+ currency: "ETH" | "USDC";
328
+ }, {
329
+ chain: "ethereum" | "base" | "sepolia" | "base-sepolia";
330
+ to: string;
331
+ amount: string;
332
+ currency: "ETH" | "USDC";
333
+ }>;
334
+ export type EvmTransferOptions = z.infer<typeof EvmTransferOptionsSchema>;
335
+ export declare const SolanaTransferOptionsSchema: z.ZodObject<{
336
+ chain: z.ZodEnum<["solana", "solana-devnet"]>;
337
+ to: z.ZodString;
338
+ amount: z.ZodString;
339
+ currency: z.ZodEnum<["SOL", "USDC"]>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ chain: "solana" | "solana-devnet";
342
+ to: string;
343
+ amount: string;
344
+ currency: "SOL" | "USDC";
345
+ }, {
346
+ chain: "solana" | "solana-devnet";
347
+ to: string;
348
+ amount: string;
349
+ currency: "SOL" | "USDC";
350
+ }>;
351
+ export type SolanaTransferOptions = z.infer<typeof SolanaTransferOptionsSchema>;
352
+ export declare const SubmitTransactionSchema: z.ZodObject<{
353
+ transactionHash: z.ZodString;
354
+ status: z.ZodString;
355
+ explorerUrl: z.ZodOptional<z.ZodString>;
356
+ message: z.ZodOptional<z.ZodString>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ status: string;
359
+ transactionHash: string;
360
+ message?: string | undefined;
361
+ explorerUrl?: string | undefined;
362
+ }, {
363
+ status: string;
364
+ transactionHash: string;
365
+ message?: string | undefined;
366
+ explorerUrl?: string | undefined;
367
+ }>;
368
+ export type SubmitTransaction = z.infer<typeof SubmitTransactionSchema>;
369
+ export declare const SolanaTokensResponseSchema: z.ZodObject<{
370
+ address: z.ZodString;
371
+ tokens: z.ZodArray<z.ZodObject<{
372
+ mint: z.ZodString;
373
+ symbol: z.ZodString;
374
+ name: z.ZodString;
375
+ balance: z.ZodString;
376
+ decimals: z.ZodNumber;
377
+ logoURI: z.ZodNullable<z.ZodString>;
378
+ verified: z.ZodBoolean;
379
+ }, "strip", z.ZodTypeAny, {
380
+ symbol: string;
381
+ name: string;
382
+ balance: string;
383
+ decimals: number;
384
+ mint: string;
385
+ logoURI: string | null;
386
+ verified: boolean;
387
+ }, {
388
+ symbol: string;
389
+ name: string;
390
+ balance: string;
391
+ decimals: number;
392
+ mint: string;
393
+ logoURI: string | null;
394
+ verified: boolean;
395
+ }>, "many">;
396
+ }, "strip", z.ZodTypeAny, {
397
+ address: string;
398
+ tokens: {
399
+ symbol: string;
400
+ name: string;
401
+ balance: string;
402
+ decimals: number;
403
+ mint: string;
404
+ logoURI: string | null;
405
+ verified: boolean;
406
+ }[];
407
+ }, {
408
+ address: string;
409
+ tokens: {
410
+ symbol: string;
411
+ name: string;
412
+ balance: string;
413
+ decimals: number;
414
+ mint: string;
415
+ logoURI: string | null;
416
+ verified: boolean;
417
+ }[];
418
+ }>;
419
+ export type SolanaTokensResponse = z.infer<typeof SolanaTokensResponseSchema>;
420
+ export declare const SolanaTokenSearchResponseSchema: z.ZodObject<{
421
+ tokens: z.ZodArray<z.ZodObject<{
422
+ mint: z.ZodString;
423
+ symbol: z.ZodString;
424
+ name: z.ZodString;
425
+ decimals: z.ZodNumber;
426
+ logoURI: z.ZodNullable<z.ZodString>;
427
+ verified: z.ZodBoolean;
428
+ }, "strip", z.ZodTypeAny, {
429
+ symbol: string;
430
+ name: string;
431
+ decimals: number;
432
+ mint: string;
433
+ logoURI: string | null;
434
+ verified: boolean;
435
+ }, {
436
+ symbol: string;
437
+ name: string;
438
+ decimals: number;
439
+ mint: string;
440
+ logoURI: string | null;
441
+ verified: boolean;
442
+ }>, "many">;
443
+ }, "strip", z.ZodTypeAny, {
444
+ tokens: {
445
+ symbol: string;
446
+ name: string;
447
+ decimals: number;
448
+ mint: string;
449
+ logoURI: string | null;
450
+ verified: boolean;
451
+ }[];
452
+ }, {
453
+ tokens: {
454
+ symbol: string;
455
+ name: string;
456
+ decimals: number;
457
+ mint: string;
458
+ logoURI: string | null;
459
+ verified: boolean;
460
+ }[];
461
+ }>;
462
+ export type SolanaTokenSearchResponse = z.infer<typeof SolanaTokenSearchResponseSchema>;
463
+ export declare const FundingRequestResponseSchema: z.ZodObject<{
464
+ success: z.ZodBoolean;
465
+ requestId: z.ZodString;
466
+ message: z.ZodString;
467
+ status: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ message: string;
470
+ status: string;
471
+ success: boolean;
472
+ requestId: string;
473
+ }, {
474
+ message: string;
475
+ status: string;
476
+ success: boolean;
477
+ requestId: string;
478
+ }>;
479
+ export type FundingRequestResponse = z.infer<typeof FundingRequestResponseSchema>;
480
+ export declare const WithdrawToMainWalletResponseSchema: z.ZodObject<{
481
+ success: z.ZodBoolean;
482
+ txHash: z.ZodString;
483
+ amount: z.ZodString;
484
+ toAddress: z.ZodString;
485
+ chainId: z.ZodNumber;
486
+ explorerUrl: z.ZodOptional<z.ZodString>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ chainId: number;
489
+ amount: string;
490
+ txHash: string;
491
+ success: boolean;
492
+ toAddress: string;
493
+ explorerUrl?: string | undefined;
494
+ }, {
495
+ chainId: number;
496
+ amount: string;
497
+ txHash: string;
498
+ success: boolean;
499
+ toAddress: string;
500
+ explorerUrl?: string | undefined;
501
+ }>;
502
+ export type WithdrawToMainWalletResponse = z.infer<typeof WithdrawToMainWalletResponseSchema>;
503
+ export declare const TransactionHistoryDetailedSchema: z.ZodObject<{
504
+ transactions: z.ZodArray<z.ZodObject<{
505
+ txHash: z.ZodNullable<z.ZodString>;
506
+ status: z.ZodString;
507
+ from: z.ZodString;
508
+ to: z.ZodString;
509
+ value: z.ZodString;
510
+ token: z.ZodString;
511
+ direction: z.ZodString;
512
+ chain: z.ZodString;
513
+ timestamp: z.ZodString;
514
+ }, "strip", z.ZodTypeAny, {
515
+ value: string;
516
+ status: string;
517
+ chain: string;
518
+ to: string;
519
+ txHash: string | null;
520
+ from: string;
521
+ token: string;
522
+ direction: string;
523
+ timestamp: string;
524
+ }, {
525
+ value: string;
526
+ status: string;
527
+ chain: string;
528
+ to: string;
529
+ txHash: string | null;
530
+ from: string;
531
+ token: string;
532
+ direction: string;
533
+ timestamp: string;
534
+ }>, "many">;
535
+ total: z.ZodNumber;
536
+ hasMore: z.ZodBoolean;
537
+ }, "strip", z.ZodTypeAny, {
538
+ transactions: {
539
+ value: string;
540
+ status: string;
541
+ chain: string;
542
+ to: string;
543
+ txHash: string | null;
544
+ from: string;
545
+ token: string;
546
+ direction: string;
547
+ timestamp: string;
548
+ }[];
549
+ total: number;
550
+ hasMore: boolean;
551
+ }, {
552
+ transactions: {
553
+ value: string;
554
+ status: string;
555
+ chain: string;
556
+ to: string;
557
+ txHash: string | null;
558
+ from: string;
559
+ token: string;
560
+ direction: string;
561
+ timestamp: string;
562
+ }[];
563
+ total: number;
564
+ hasMore: boolean;
565
+ }>;
566
+ export type TransactionHistoryDetailed = z.infer<typeof TransactionHistoryDetailedSchema>;
567
+ export declare const SpongeResponseSchema: z.ZodObject<{
568
+ summary: z.ZodOptional<z.ZodString>;
569
+ status: z.ZodEnum<["success", "payment_required", "error"]>;
570
+ task: z.ZodString;
571
+ provider: z.ZodString;
572
+ data: z.ZodOptional<z.ZodUnknown>;
573
+ image_data: z.ZodOptional<z.ZodString>;
574
+ image_mime_type: z.ZodOptional<z.ZodString>;
575
+ payment: z.ZodOptional<z.ZodObject<{
576
+ chain: z.ZodString;
577
+ to: z.ZodString;
578
+ token: z.ZodString;
579
+ amount: z.ZodString;
580
+ raw_amount: z.ZodString;
581
+ decimals: z.ZodNumber;
582
+ }, "strip", z.ZodTypeAny, {
583
+ decimals: number;
584
+ chain: string;
585
+ to: string;
586
+ amount: string;
587
+ token: string;
588
+ raw_amount: string;
589
+ }, {
590
+ decimals: number;
591
+ chain: string;
592
+ to: string;
593
+ amount: string;
594
+ token: string;
595
+ raw_amount: string;
596
+ }>>;
597
+ payment_made: z.ZodOptional<z.ZodObject<{
598
+ chain: z.ZodString;
599
+ to: z.ZodString;
600
+ amount: z.ZodString;
601
+ token: z.ZodString;
602
+ expiresAt: z.ZodString;
603
+ }, "strip", z.ZodTypeAny, {
604
+ chain: string;
605
+ to: string;
606
+ amount: string;
607
+ token: string;
608
+ expiresAt: string;
609
+ }, {
610
+ chain: string;
611
+ to: string;
612
+ amount: string;
613
+ token: string;
614
+ expiresAt: string;
615
+ }>>;
616
+ wallet_balance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
617
+ address: z.ZodString;
618
+ balances: z.ZodArray<z.ZodObject<{
619
+ token: z.ZodString;
620
+ amount: z.ZodString;
621
+ usdValue: z.ZodOptional<z.ZodString>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ amount: string;
624
+ token: string;
625
+ usdValue?: string | undefined;
626
+ }, {
627
+ amount: string;
628
+ token: string;
629
+ usdValue?: string | undefined;
630
+ }>, "many">;
631
+ }, "strip", z.ZodTypeAny, {
632
+ address: string;
633
+ balances: {
634
+ amount: string;
635
+ token: string;
636
+ usdValue?: string | undefined;
637
+ }[];
638
+ }, {
639
+ address: string;
640
+ balances: {
641
+ amount: string;
642
+ token: string;
643
+ usdValue?: string | undefined;
644
+ }[];
645
+ }>>>;
646
+ next_step: z.ZodOptional<z.ZodString>;
647
+ error: z.ZodOptional<z.ZodString>;
648
+ api_error_details: z.ZodOptional<z.ZodUnknown>;
649
+ receipt: z.ZodOptional<z.ZodUnknown>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ status: "success" | "payment_required" | "error";
652
+ task: string;
653
+ provider: string;
654
+ summary?: string | undefined;
655
+ error?: string | undefined;
656
+ data?: unknown;
657
+ image_data?: string | undefined;
658
+ image_mime_type?: string | undefined;
659
+ payment?: {
660
+ decimals: number;
661
+ chain: string;
662
+ to: string;
663
+ amount: string;
664
+ token: string;
665
+ raw_amount: string;
666
+ } | undefined;
667
+ payment_made?: {
668
+ chain: string;
669
+ to: string;
670
+ amount: string;
671
+ token: string;
672
+ expiresAt: string;
673
+ } | undefined;
674
+ wallet_balance?: Record<string, {
675
+ address: string;
676
+ balances: {
677
+ amount: string;
678
+ token: string;
679
+ usdValue?: string | undefined;
680
+ }[];
681
+ }> | undefined;
682
+ next_step?: string | undefined;
683
+ api_error_details?: unknown;
684
+ receipt?: unknown;
685
+ }, {
686
+ status: "success" | "payment_required" | "error";
687
+ task: string;
688
+ provider: string;
689
+ summary?: string | undefined;
690
+ error?: string | undefined;
691
+ data?: unknown;
692
+ image_data?: string | undefined;
693
+ image_mime_type?: string | undefined;
694
+ payment?: {
695
+ decimals: number;
696
+ chain: string;
697
+ to: string;
698
+ amount: string;
699
+ token: string;
700
+ raw_amount: string;
701
+ } | undefined;
702
+ payment_made?: {
703
+ chain: string;
704
+ to: string;
705
+ amount: string;
706
+ token: string;
707
+ expiresAt: string;
708
+ } | undefined;
709
+ wallet_balance?: Record<string, {
710
+ address: string;
711
+ balances: {
712
+ amount: string;
713
+ token: string;
714
+ usdValue?: string | undefined;
715
+ }[];
716
+ }> | undefined;
717
+ next_step?: string | undefined;
718
+ api_error_details?: unknown;
719
+ receipt?: unknown;
720
+ }>;
721
+ export type SpongeResponse = z.infer<typeof SpongeResponseSchema>;
722
+ export declare const X402PaymentResponseSchema: z.ZodObject<{
723
+ paymentPayload: z.ZodUnknown;
724
+ paymentPayloadBase64: z.ZodString;
725
+ headerName: z.ZodOptional<z.ZodString>;
726
+ paymentRequirements: z.ZodObject<{
727
+ scheme: z.ZodLiteral<"exact">;
728
+ network: z.ZodString;
729
+ maxAmountRequired: z.ZodString;
730
+ asset: z.ZodString;
731
+ payTo: z.ZodString;
732
+ }, "strip", z.ZodTypeAny, {
733
+ scheme: "exact";
734
+ network: string;
735
+ maxAmountRequired: string;
736
+ asset: string;
737
+ payTo: string;
738
+ }, {
739
+ scheme: "exact";
740
+ network: string;
741
+ maxAmountRequired: string;
742
+ asset: string;
743
+ payTo: string;
744
+ }>;
745
+ expiresAt: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ expiresAt: string;
748
+ paymentPayloadBase64: string;
749
+ paymentRequirements: {
750
+ scheme: "exact";
751
+ network: string;
752
+ maxAmountRequired: string;
753
+ asset: string;
754
+ payTo: string;
755
+ };
756
+ paymentPayload?: unknown;
757
+ headerName?: string | undefined;
758
+ }, {
759
+ expiresAt: string;
760
+ paymentPayloadBase64: string;
761
+ paymentRequirements: {
762
+ scheme: "exact";
763
+ network: string;
764
+ maxAmountRequired: string;
765
+ asset: string;
766
+ payTo: string;
767
+ };
768
+ paymentPayload?: unknown;
769
+ headerName?: string | undefined;
770
+ }>;
771
+ export type X402PaymentResponse = z.infer<typeof X402PaymentResponseSchema>;
772
+ export declare const DeviceCodeResponseSchema: z.ZodObject<{
773
+ deviceCode: z.ZodString;
774
+ userCode: z.ZodString;
775
+ verificationUri: z.ZodString;
776
+ expiresIn: z.ZodNumber;
777
+ interval: z.ZodNumber;
778
+ }, "strip", z.ZodTypeAny, {
779
+ deviceCode: string;
780
+ userCode: string;
781
+ verificationUri: string;
782
+ expiresIn: number;
783
+ interval: number;
784
+ }, {
785
+ deviceCode: string;
786
+ userCode: string;
787
+ verificationUri: string;
788
+ expiresIn: number;
789
+ interval: number;
790
+ }>;
791
+ export type DeviceCodeResponse = z.infer<typeof DeviceCodeResponseSchema>;
792
+ export declare const TokenResponseSchema: z.ZodObject<{
793
+ accessToken: z.ZodString;
794
+ tokenType: z.ZodLiteral<"Bearer">;
795
+ expiresIn: z.ZodOptional<z.ZodNumber>;
796
+ refreshToken: z.ZodOptional<z.ZodString>;
797
+ agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
+ apiKey: z.ZodString;
799
+ keyType: z.ZodOptional<z.ZodEnum<["agent", "master"]>>;
800
+ }, "strip", z.ZodTypeAny, {
801
+ apiKey: string;
802
+ accessToken: string;
803
+ tokenType: "Bearer";
804
+ agentId?: string | null | undefined;
805
+ expiresIn?: number | undefined;
806
+ refreshToken?: string | undefined;
807
+ keyType?: "agent" | "master" | undefined;
808
+ }, {
809
+ apiKey: string;
810
+ accessToken: string;
811
+ tokenType: "Bearer";
812
+ agentId?: string | null | undefined;
813
+ expiresIn?: number | undefined;
814
+ refreshToken?: string | undefined;
815
+ keyType?: "agent" | "master" | undefined;
816
+ }>;
817
+ export type TokenResponse = z.infer<typeof TokenResponseSchema>;
818
+ export declare const DeviceFlowErrorSchema: z.ZodObject<{
819
+ error: z.ZodEnum<["authorization_pending", "slow_down", "access_denied", "expired_token"]>;
820
+ errorDescription: z.ZodOptional<z.ZodString>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ error: "authorization_pending" | "slow_down" | "access_denied" | "expired_token";
823
+ errorDescription?: string | undefined;
824
+ }, {
825
+ error: "authorization_pending" | "slow_down" | "access_denied" | "expired_token";
826
+ errorDescription?: string | undefined;
827
+ }>;
828
+ export type DeviceFlowError = z.infer<typeof DeviceFlowErrorSchema>;
829
+ export declare const CredentialsSchema: z.ZodObject<{
830
+ apiKey: z.ZodString;
831
+ agentId: z.ZodString;
832
+ agentName: z.ZodOptional<z.ZodString>;
833
+ testnet: z.ZodOptional<z.ZodBoolean>;
834
+ createdAt: z.ZodDate;
835
+ baseUrl: z.ZodOptional<z.ZodString>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ agentId: string;
838
+ apiKey: string;
839
+ createdAt: Date;
840
+ testnet?: boolean | undefined;
841
+ baseUrl?: string | undefined;
842
+ agentName?: string | undefined;
843
+ }, {
844
+ agentId: string;
845
+ apiKey: string;
846
+ createdAt: Date;
847
+ testnet?: boolean | undefined;
848
+ baseUrl?: string | undefined;
849
+ agentName?: string | undefined;
850
+ }>;
851
+ export type Credentials = z.infer<typeof CredentialsSchema>;
852
+ export declare const McpConfigSchema: z.ZodObject<{
853
+ url: z.ZodString;
854
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
855
+ }, "strip", z.ZodTypeAny, {
856
+ url: string;
857
+ headers: Record<string, string>;
858
+ }, {
859
+ url: string;
860
+ headers: Record<string, string>;
861
+ }>;
862
+ export type McpConfig = z.infer<typeof McpConfigSchema>;
863
+ export declare const ToolInputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
864
+ export type ToolInput = z.infer<typeof ToolInputSchema>;
865
+ export declare const ToolResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
866
+ status: z.ZodLiteral<"success">;
867
+ data: z.ZodUnknown;
868
+ }, "strip", z.ZodTypeAny, {
869
+ status: "success";
870
+ data?: unknown;
871
+ }, {
872
+ status: "success";
873
+ data?: unknown;
874
+ }>, z.ZodObject<{
875
+ status: z.ZodLiteral<"error">;
876
+ error: z.ZodString;
877
+ }, "strip", z.ZodTypeAny, {
878
+ status: "error";
879
+ error: string;
880
+ }, {
881
+ status: "error";
882
+ error: string;
883
+ }>]>;
884
+ export type ToolResult = z.infer<typeof ToolResultSchema>;
885
+ export declare const ApiErrorSchema: z.ZodObject<{
886
+ error: z.ZodString;
887
+ message: z.ZodString;
888
+ statusCode: z.ZodNumber;
889
+ }, "strip", z.ZodTypeAny, {
890
+ message: string;
891
+ error: string;
892
+ statusCode: number;
893
+ }, {
894
+ message: string;
895
+ error: string;
896
+ statusCode: number;
897
+ }>;
898
+ export type ApiError = z.infer<typeof ApiErrorSchema>;
899
+ export declare const ChainInfoSchema: z.ZodObject<{
900
+ chainId: z.ZodNumber;
901
+ name: z.ZodString;
902
+ symbol: z.ZodString;
903
+ explorerUrl: z.ZodString;
904
+ isTestnet: z.ZodBoolean;
905
+ chainType: z.ZodEnum<["evm", "solana"]>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ symbol: string;
908
+ name: string;
909
+ chainId: number;
910
+ chainType: "solana" | "evm";
911
+ explorerUrl: string;
912
+ isTestnet: boolean;
913
+ }, {
914
+ symbol: string;
915
+ name: string;
916
+ chainId: number;
917
+ chainType: "solana" | "evm";
918
+ explorerUrl: string;
919
+ isTestnet: boolean;
920
+ }>;
921
+ export type ChainInfo = z.infer<typeof ChainInfoSchema>;
922
+ export declare const CHAIN_IDS: Record<Chain, number>;
923
+ export declare const CHAIN_NAMES: Record<number, Chain>;
924
+ //# sourceMappingURL=schemas.d.ts.map