@moonpay/cli 0.6.11 → 0.6.13
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/{chunk-6TW2YUWK.js → chunk-AFUYZK7C.js} +387 -15
- package/dist/chunk-AFUYZK7C.js.map +1 -0
- package/dist/index.js +59 -52
- package/dist/index.js.map +1 -1
- package/dist/{mcp-VK7BDE25.js → mcp-BLERLDQJ.js} +2 -2
- package/package.json +1 -1
- package/skills/moonpay-virtual-account/SKILL.md +6 -2
- package/dist/chunk-6TW2YUWK.js.map +0 -1
- /package/dist/{mcp-VK7BDE25.js.map → mcp-BLERLDQJ.js.map} +0 -0
|
@@ -235,9 +235,21 @@ async function callTool(baseUrl, toolName, params) {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
if (res.status === 429) {
|
|
239
|
+
throw new Error("Rate limit exceeded. Please wait a moment and try again.");
|
|
240
|
+
}
|
|
239
241
|
if (res.status === 401) {
|
|
240
|
-
throw new Error("This command requires a MoonPay
|
|
242
|
+
throw new Error("This command requires a MoonPay CLI account. Run `moonpay login` first.");
|
|
243
|
+
}
|
|
244
|
+
const text = await res.text();
|
|
245
|
+
if (!text) {
|
|
246
|
+
throw new Error(`Empty response from server (${res.status})`);
|
|
247
|
+
}
|
|
248
|
+
let data;
|
|
249
|
+
try {
|
|
250
|
+
data = JSON.parse(text);
|
|
251
|
+
} catch {
|
|
252
|
+
throw new Error(`Unexpected response from server (${res.status})`);
|
|
241
253
|
}
|
|
242
254
|
if (res.status < 200 || res.status >= 300) {
|
|
243
255
|
const err = data;
|
|
@@ -452,6 +464,66 @@ var schemas_default = [
|
|
|
452
464
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
453
465
|
}
|
|
454
466
|
},
|
|
467
|
+
{
|
|
468
|
+
name: "deposit_retrieve",
|
|
469
|
+
description: "Retrieve details of a deposit by ID. Returns the deposit name, status, destination wallet, and deposit addresses.",
|
|
470
|
+
inputSchema: {
|
|
471
|
+
$ref: "#/definitions/deposit_retrieve_input",
|
|
472
|
+
definitions: {
|
|
473
|
+
deposit_retrieve_input: {
|
|
474
|
+
type: "object",
|
|
475
|
+
properties: {
|
|
476
|
+
id: {
|
|
477
|
+
type: "string",
|
|
478
|
+
description: "Deposit ID returned from deposit_create"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
required: [
|
|
482
|
+
"id"
|
|
483
|
+
],
|
|
484
|
+
additionalProperties: false
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
488
|
+
},
|
|
489
|
+
outputSchema: {
|
|
490
|
+
$ref: "#/definitions/deposit_retrieve_output",
|
|
491
|
+
definitions: {
|
|
492
|
+
deposit_retrieve_output: {
|
|
493
|
+
type: "object",
|
|
494
|
+
properties: {
|
|
495
|
+
id: {
|
|
496
|
+
type: "string"
|
|
497
|
+
},
|
|
498
|
+
name: {
|
|
499
|
+
type: "string"
|
|
500
|
+
},
|
|
501
|
+
status: {
|
|
502
|
+
type: "string"
|
|
503
|
+
},
|
|
504
|
+
destinationWallet: {
|
|
505
|
+
type: [
|
|
506
|
+
"string",
|
|
507
|
+
"null"
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
depositUrl: {
|
|
511
|
+
type: "string"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
required: [
|
|
515
|
+
"id",
|
|
516
|
+
"name",
|
|
517
|
+
"status",
|
|
518
|
+
"destinationWallet",
|
|
519
|
+
"depositUrl"
|
|
520
|
+
],
|
|
521
|
+
additionalProperties: false
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
455
527
|
{
|
|
456
528
|
name: "deposit_transaction_list",
|
|
457
529
|
description: "List transactions for a deposit. Pass the deposit id from deposit_create to check incoming payment status.",
|
|
@@ -5415,13 +5487,111 @@ var schemas_default = [
|
|
|
5415
5487
|
type: "string"
|
|
5416
5488
|
},
|
|
5417
5489
|
depositAccount: {
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5490
|
+
anyOf: [
|
|
5491
|
+
{
|
|
5492
|
+
type: "object",
|
|
5493
|
+
properties: {
|
|
5494
|
+
type: {
|
|
5495
|
+
type: "string"
|
|
5496
|
+
},
|
|
5497
|
+
iban: {
|
|
5498
|
+
type: [
|
|
5499
|
+
"string",
|
|
5500
|
+
"null"
|
|
5501
|
+
]
|
|
5502
|
+
},
|
|
5503
|
+
bic: {
|
|
5504
|
+
type: [
|
|
5505
|
+
"string",
|
|
5506
|
+
"null"
|
|
5507
|
+
]
|
|
5508
|
+
},
|
|
5509
|
+
accountNumber: {
|
|
5510
|
+
type: [
|
|
5511
|
+
"string",
|
|
5512
|
+
"null"
|
|
5513
|
+
]
|
|
5514
|
+
},
|
|
5515
|
+
routingNumber: {
|
|
5516
|
+
type: [
|
|
5517
|
+
"string",
|
|
5518
|
+
"null"
|
|
5519
|
+
]
|
|
5520
|
+
},
|
|
5521
|
+
bankName: {
|
|
5522
|
+
type: [
|
|
5523
|
+
"string",
|
|
5524
|
+
"null"
|
|
5525
|
+
]
|
|
5526
|
+
},
|
|
5527
|
+
bankAddress: {
|
|
5528
|
+
type: [
|
|
5529
|
+
"string",
|
|
5530
|
+
"null"
|
|
5531
|
+
]
|
|
5532
|
+
},
|
|
5533
|
+
recipientName: {
|
|
5534
|
+
type: [
|
|
5535
|
+
"string",
|
|
5536
|
+
"null"
|
|
5537
|
+
]
|
|
5538
|
+
}
|
|
5539
|
+
},
|
|
5540
|
+
required: [
|
|
5541
|
+
"type",
|
|
5542
|
+
"iban",
|
|
5543
|
+
"bic",
|
|
5544
|
+
"accountNumber",
|
|
5545
|
+
"routingNumber",
|
|
5546
|
+
"bankName",
|
|
5547
|
+
"bankAddress",
|
|
5548
|
+
"recipientName"
|
|
5549
|
+
],
|
|
5550
|
+
additionalProperties: false
|
|
5551
|
+
},
|
|
5552
|
+
{
|
|
5553
|
+
type: "null"
|
|
5554
|
+
}
|
|
5421
5555
|
]
|
|
5422
5556
|
},
|
|
5423
5557
|
walletAddress: {
|
|
5424
5558
|
type: "string"
|
|
5559
|
+
},
|
|
5560
|
+
fees: {
|
|
5561
|
+
anyOf: [
|
|
5562
|
+
{
|
|
5563
|
+
type: "object",
|
|
5564
|
+
properties: {
|
|
5565
|
+
transactionFee: {
|
|
5566
|
+
type: "string",
|
|
5567
|
+
description: "e.g. '0.50%'"
|
|
5568
|
+
},
|
|
5569
|
+
bankingFee: {
|
|
5570
|
+
type: [
|
|
5571
|
+
"string",
|
|
5572
|
+
"null"
|
|
5573
|
+
],
|
|
5574
|
+
description: "e.g. '0.50 EUR (SEPA)'"
|
|
5575
|
+
},
|
|
5576
|
+
networkFee: {
|
|
5577
|
+
type: "string",
|
|
5578
|
+
description: "'subsidized' or 'charged'"
|
|
5579
|
+
}
|
|
5580
|
+
},
|
|
5581
|
+
required: [
|
|
5582
|
+
"transactionFee",
|
|
5583
|
+
"bankingFee",
|
|
5584
|
+
"networkFee"
|
|
5585
|
+
],
|
|
5586
|
+
additionalProperties: false
|
|
5587
|
+
},
|
|
5588
|
+
{
|
|
5589
|
+
type: "null"
|
|
5590
|
+
}
|
|
5591
|
+
]
|
|
5592
|
+
},
|
|
5593
|
+
legalDisclaimer: {
|
|
5594
|
+
type: "string"
|
|
5425
5595
|
}
|
|
5426
5596
|
},
|
|
5427
5597
|
required: [
|
|
@@ -5431,7 +5601,9 @@ var schemas_default = [
|
|
|
5431
5601
|
"fiat",
|
|
5432
5602
|
"stablecoin",
|
|
5433
5603
|
"depositAccount",
|
|
5434
|
-
"walletAddress"
|
|
5604
|
+
"walletAddress",
|
|
5605
|
+
"fees",
|
|
5606
|
+
"legalDisclaimer"
|
|
5435
5607
|
],
|
|
5436
5608
|
additionalProperties: false
|
|
5437
5609
|
}
|
|
@@ -5534,13 +5706,111 @@ var schemas_default = [
|
|
|
5534
5706
|
type: "string"
|
|
5535
5707
|
},
|
|
5536
5708
|
depositAccount: {
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5709
|
+
anyOf: [
|
|
5710
|
+
{
|
|
5711
|
+
type: "object",
|
|
5712
|
+
properties: {
|
|
5713
|
+
type: {
|
|
5714
|
+
type: "string"
|
|
5715
|
+
},
|
|
5716
|
+
iban: {
|
|
5717
|
+
type: [
|
|
5718
|
+
"string",
|
|
5719
|
+
"null"
|
|
5720
|
+
]
|
|
5721
|
+
},
|
|
5722
|
+
bic: {
|
|
5723
|
+
type: [
|
|
5724
|
+
"string",
|
|
5725
|
+
"null"
|
|
5726
|
+
]
|
|
5727
|
+
},
|
|
5728
|
+
accountNumber: {
|
|
5729
|
+
type: [
|
|
5730
|
+
"string",
|
|
5731
|
+
"null"
|
|
5732
|
+
]
|
|
5733
|
+
},
|
|
5734
|
+
routingNumber: {
|
|
5735
|
+
type: [
|
|
5736
|
+
"string",
|
|
5737
|
+
"null"
|
|
5738
|
+
]
|
|
5739
|
+
},
|
|
5740
|
+
bankName: {
|
|
5741
|
+
type: [
|
|
5742
|
+
"string",
|
|
5743
|
+
"null"
|
|
5744
|
+
]
|
|
5745
|
+
},
|
|
5746
|
+
bankAddress: {
|
|
5747
|
+
type: [
|
|
5748
|
+
"string",
|
|
5749
|
+
"null"
|
|
5750
|
+
]
|
|
5751
|
+
},
|
|
5752
|
+
recipientName: {
|
|
5753
|
+
type: [
|
|
5754
|
+
"string",
|
|
5755
|
+
"null"
|
|
5756
|
+
]
|
|
5757
|
+
}
|
|
5758
|
+
},
|
|
5759
|
+
required: [
|
|
5760
|
+
"type",
|
|
5761
|
+
"iban",
|
|
5762
|
+
"bic",
|
|
5763
|
+
"accountNumber",
|
|
5764
|
+
"routingNumber",
|
|
5765
|
+
"bankName",
|
|
5766
|
+
"bankAddress",
|
|
5767
|
+
"recipientName"
|
|
5768
|
+
],
|
|
5769
|
+
additionalProperties: false
|
|
5770
|
+
},
|
|
5771
|
+
{
|
|
5772
|
+
type: "null"
|
|
5773
|
+
}
|
|
5540
5774
|
]
|
|
5541
5775
|
},
|
|
5542
5776
|
walletAddress: {
|
|
5543
5777
|
type: "string"
|
|
5778
|
+
},
|
|
5779
|
+
fees: {
|
|
5780
|
+
anyOf: [
|
|
5781
|
+
{
|
|
5782
|
+
type: "object",
|
|
5783
|
+
properties: {
|
|
5784
|
+
transactionFee: {
|
|
5785
|
+
type: "string",
|
|
5786
|
+
description: "e.g. '0.50%'"
|
|
5787
|
+
},
|
|
5788
|
+
bankingFee: {
|
|
5789
|
+
type: [
|
|
5790
|
+
"string",
|
|
5791
|
+
"null"
|
|
5792
|
+
],
|
|
5793
|
+
description: "e.g. '0.50 EUR (SEPA)'"
|
|
5794
|
+
},
|
|
5795
|
+
networkFee: {
|
|
5796
|
+
type: "string",
|
|
5797
|
+
description: "'subsidized' or 'charged'"
|
|
5798
|
+
}
|
|
5799
|
+
},
|
|
5800
|
+
required: [
|
|
5801
|
+
"transactionFee",
|
|
5802
|
+
"bankingFee",
|
|
5803
|
+
"networkFee"
|
|
5804
|
+
],
|
|
5805
|
+
additionalProperties: false
|
|
5806
|
+
},
|
|
5807
|
+
{
|
|
5808
|
+
type: "null"
|
|
5809
|
+
}
|
|
5810
|
+
]
|
|
5811
|
+
},
|
|
5812
|
+
legalDisclaimer: {
|
|
5813
|
+
type: "string"
|
|
5544
5814
|
}
|
|
5545
5815
|
},
|
|
5546
5816
|
required: [
|
|
@@ -5550,7 +5820,9 @@ var schemas_default = [
|
|
|
5550
5820
|
"fiat",
|
|
5551
5821
|
"stablecoin",
|
|
5552
5822
|
"depositAccount",
|
|
5553
|
-
"walletAddress"
|
|
5823
|
+
"walletAddress",
|
|
5824
|
+
"fees",
|
|
5825
|
+
"legalDisclaimer"
|
|
5554
5826
|
],
|
|
5555
5827
|
additionalProperties: false
|
|
5556
5828
|
},
|
|
@@ -5759,13 +6031,111 @@ var schemas_default = [
|
|
|
5759
6031
|
type: "string"
|
|
5760
6032
|
},
|
|
5761
6033
|
depositAccount: {
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
6034
|
+
anyOf: [
|
|
6035
|
+
{
|
|
6036
|
+
type: "object",
|
|
6037
|
+
properties: {
|
|
6038
|
+
type: {
|
|
6039
|
+
type: "string"
|
|
6040
|
+
},
|
|
6041
|
+
iban: {
|
|
6042
|
+
type: [
|
|
6043
|
+
"string",
|
|
6044
|
+
"null"
|
|
6045
|
+
]
|
|
6046
|
+
},
|
|
6047
|
+
bic: {
|
|
6048
|
+
type: [
|
|
6049
|
+
"string",
|
|
6050
|
+
"null"
|
|
6051
|
+
]
|
|
6052
|
+
},
|
|
6053
|
+
accountNumber: {
|
|
6054
|
+
type: [
|
|
6055
|
+
"string",
|
|
6056
|
+
"null"
|
|
6057
|
+
]
|
|
6058
|
+
},
|
|
6059
|
+
routingNumber: {
|
|
6060
|
+
type: [
|
|
6061
|
+
"string",
|
|
6062
|
+
"null"
|
|
6063
|
+
]
|
|
6064
|
+
},
|
|
6065
|
+
bankName: {
|
|
6066
|
+
type: [
|
|
6067
|
+
"string",
|
|
6068
|
+
"null"
|
|
6069
|
+
]
|
|
6070
|
+
},
|
|
6071
|
+
bankAddress: {
|
|
6072
|
+
type: [
|
|
6073
|
+
"string",
|
|
6074
|
+
"null"
|
|
6075
|
+
]
|
|
6076
|
+
},
|
|
6077
|
+
recipientName: {
|
|
6078
|
+
type: [
|
|
6079
|
+
"string",
|
|
6080
|
+
"null"
|
|
6081
|
+
]
|
|
6082
|
+
}
|
|
6083
|
+
},
|
|
6084
|
+
required: [
|
|
6085
|
+
"type",
|
|
6086
|
+
"iban",
|
|
6087
|
+
"bic",
|
|
6088
|
+
"accountNumber",
|
|
6089
|
+
"routingNumber",
|
|
6090
|
+
"bankName",
|
|
6091
|
+
"bankAddress",
|
|
6092
|
+
"recipientName"
|
|
6093
|
+
],
|
|
6094
|
+
additionalProperties: false
|
|
6095
|
+
},
|
|
6096
|
+
{
|
|
6097
|
+
type: "null"
|
|
6098
|
+
}
|
|
5765
6099
|
]
|
|
5766
6100
|
},
|
|
5767
6101
|
walletAddress: {
|
|
5768
6102
|
type: "string"
|
|
6103
|
+
},
|
|
6104
|
+
fees: {
|
|
6105
|
+
anyOf: [
|
|
6106
|
+
{
|
|
6107
|
+
type: "object",
|
|
6108
|
+
properties: {
|
|
6109
|
+
transactionFee: {
|
|
6110
|
+
type: "string",
|
|
6111
|
+
description: "e.g. '0.50%'"
|
|
6112
|
+
},
|
|
6113
|
+
bankingFee: {
|
|
6114
|
+
type: [
|
|
6115
|
+
"string",
|
|
6116
|
+
"null"
|
|
6117
|
+
],
|
|
6118
|
+
description: "e.g. '0.50 EUR (SEPA)'"
|
|
6119
|
+
},
|
|
6120
|
+
networkFee: {
|
|
6121
|
+
type: "string",
|
|
6122
|
+
description: "'subsidized' or 'charged'"
|
|
6123
|
+
}
|
|
6124
|
+
},
|
|
6125
|
+
required: [
|
|
6126
|
+
"transactionFee",
|
|
6127
|
+
"bankingFee",
|
|
6128
|
+
"networkFee"
|
|
6129
|
+
],
|
|
6130
|
+
additionalProperties: false
|
|
6131
|
+
},
|
|
6132
|
+
{
|
|
6133
|
+
type: "null"
|
|
6134
|
+
}
|
|
6135
|
+
]
|
|
6136
|
+
},
|
|
6137
|
+
legalDisclaimer: {
|
|
6138
|
+
type: "string"
|
|
5769
6139
|
}
|
|
5770
6140
|
},
|
|
5771
6141
|
required: [
|
|
@@ -5775,7 +6145,9 @@ var schemas_default = [
|
|
|
5775
6145
|
"fiat",
|
|
5776
6146
|
"stablecoin",
|
|
5777
6147
|
"depositAccount",
|
|
5778
|
-
"walletAddress"
|
|
6148
|
+
"walletAddress",
|
|
6149
|
+
"fees",
|
|
6150
|
+
"legalDisclaimer"
|
|
5779
6151
|
],
|
|
5780
6152
|
additionalProperties: false
|
|
5781
6153
|
}
|
|
@@ -7351,4 +7723,4 @@ export {
|
|
|
7351
7723
|
consentCheck,
|
|
7352
7724
|
LOCAL_TOOLS
|
|
7353
7725
|
};
|
|
7354
|
-
//# sourceMappingURL=chunk-
|
|
7726
|
+
//# sourceMappingURL=chunk-AFUYZK7C.js.map
|