@moovio/sdk 0.12.4 → 0.12.5
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/README.md +54 -36
- package/bin/mcp-server.js +392 -162
- package/bin/mcp-server.js.map +20 -17
- package/docs/sdks/transfers/README.md +117 -2
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +5 -3
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +5 -3
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/transfersGenerateOptions.d.ts +1 -1
- package/funcs/transfersGenerateOptions.js +1 -1
- package/funcs/transfersGenerateOptionsForAccount.d.ts +23 -0
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/funcs/transfersGenerateOptionsForAccount.js +133 -0
- package/funcs/transfersGenerateOptionsForAccount.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +8 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +1 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +70 -0
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +1 -0
- package/models/components/createaccount.d.ts +4 -4
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js +4 -4
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createrefundresponse.d.ts +2 -2
- package/models/components/createrefundresponse.d.ts.map +1 -1
- package/models/components/createrefundresponse.js +2 -2
- package/models/components/createrefundresponse.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +38 -38
- package/models/components/webhookdata.js.map +1 -1
- package/models/operations/createtransfer.d.ts +4 -4
- package/models/operations/createtransfer.d.ts.map +1 -1
- package/models/operations/createtransfer.js +8 -8
- package/models/operations/createtransfer.js.map +1 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
- package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
- package/models/operations/createtransferoptionsforaccount.js +155 -0
- package/models/operations/createtransferoptionsforaccount.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +13 -1
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +16 -1
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
- package/src/funcs/filesUpload.ts +20 -4
- package/src/funcs/transfersGenerateOptions.ts +1 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
- package/src/models/components/createaccount.ts +10 -10
- package/src/models/components/createrefundresponse.ts +5 -5
- package/src/models/components/webhookdata.ts +76 -76
- package/src/models/operations/createtransfer.ts +16 -16
- package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/transfers.ts +24 -1
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
package/README.md
CHANGED
|
@@ -986,6 +986,15 @@ you'll need to specify the `/terminal-applications.write` scope.
|
|
|
986
986
|
|
|
987
987
|
### [transfers](docs/sdks/transfers/README.md)
|
|
988
988
|
|
|
989
|
+
* [generateOptionsForAccount](docs/sdks/transfers/README.md#generateoptionsforaccount) - Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
990
|
+
supply in the request body.
|
|
991
|
+
|
|
992
|
+
The accountID in the route should the partner's accountID.
|
|
993
|
+
|
|
994
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
995
|
+
|
|
996
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
997
|
+
you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
989
998
|
* [create](docs/sdks/transfers/README.md#create) - Move money by providing the source, destination, and amount in the request body.
|
|
990
999
|
|
|
991
1000
|
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
@@ -1051,7 +1060,7 @@ supply in the request.
|
|
|
1051
1060
|
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
1052
1061
|
|
|
1053
1062
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1054
|
-
you'll need to specify the `/accounts/{accountID}/transfers.
|
|
1063
|
+
you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
1055
1064
|
|
|
1056
1065
|
### [underwriting](docs/sdks/underwriting/README.md)
|
|
1057
1066
|
|
|
@@ -1785,7 +1794,16 @@ supply in the request.
|
|
|
1785
1794
|
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
1786
1795
|
|
|
1787
1796
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1788
|
-
you'll need to specify the `/accounts/{accountID}/transfers.
|
|
1797
|
+
you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
1798
|
+
- [`transfersGenerateOptionsForAccount`](docs/sdks/transfers/README.md#generateoptionsforaccount) - Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
1799
|
+
supply in the request body.
|
|
1800
|
+
|
|
1801
|
+
The accountID in the route should the partner's accountID.
|
|
1802
|
+
|
|
1803
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
1804
|
+
|
|
1805
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1806
|
+
you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
1789
1807
|
- [`transfersGet`](docs/sdks/transfers/README.md#get) - Retrieve full transfer details for an individual transfer of a particular Moov account.
|
|
1790
1808
|
|
|
1791
1809
|
Payment rail-specific details are included in the source and destination. Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/)
|
|
@@ -2074,40 +2092,40 @@ run();
|
|
|
2074
2092
|
|
|
2075
2093
|
|
|
2076
2094
|
**Inherit from [`MoovError`](./src/models/errors/mooverror.ts)**:
|
|
2077
|
-
* [`GenericError`](docs/models/errors/genericerror.md): Applicable to
|
|
2078
|
-
* [`BrandValidationError`](docs/models/errors/brandvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 3 of
|
|
2079
|
-
* [`ScheduleValidationError`](docs/models/errors/schedulevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of
|
|
2080
|
-
* [`
|
|
2081
|
-
* [`
|
|
2082
|
-
* [`
|
|
2083
|
-
* [`
|
|
2084
|
-
* [`
|
|
2085
|
-
* [`
|
|
2086
|
-
* [`
|
|
2087
|
-
* [`
|
|
2088
|
-
* [`
|
|
2089
|
-
* [`
|
|
2090
|
-
* [`
|
|
2091
|
-
* [`
|
|
2092
|
-
* [`
|
|
2093
|
-
* [`
|
|
2094
|
-
* [`
|
|
2095
|
-
* [`
|
|
2096
|
-
* [`
|
|
2097
|
-
* [`
|
|
2098
|
-
* [`
|
|
2099
|
-
* [`
|
|
2100
|
-
* [`
|
|
2101
|
-
* [`
|
|
2102
|
-
* [`
|
|
2103
|
-
* [`
|
|
2104
|
-
* [`UpdateUnderwritingError`](docs/models/errors/updateunderwritingerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2105
|
-
* [`RequestCardError`](docs/models/errors/requestcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2106
|
-
* [`UpdateIssuedCardError`](docs/models/errors/updateissuedcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2107
|
-
* [`RevokeTokenRequestError`](docs/models/errors/revoketokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2108
|
-
* [`AuthTokenRequestError`](docs/models/errors/authtokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2109
|
-
* [`OnboardingInviteError`](docs/models/errors/onboardinginviteerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2110
|
-
* [`TerminalApplicationError`](docs/models/errors/terminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of
|
|
2095
|
+
* [`GenericError`](docs/models/errors/genericerror.md): Applicable to 59 of 137 methods.*
|
|
2096
|
+
* [`BrandValidationError`](docs/models/errors/brandvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 3 of 137 methods.*
|
|
2097
|
+
* [`ScheduleValidationError`](docs/models/errors/schedulevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of 137 methods.*
|
|
2098
|
+
* [`TransferOptionsValidationError`](docs/models/errors/transferoptionsvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of 137 methods.*
|
|
2099
|
+
* [`Transfer`](docs/models/errors/transfer.md): Details of a Transfer. Status code `409`. Applicable to 1 of 137 methods.*
|
|
2100
|
+
* [`CardAcquiringRefund`](docs/models/errors/cardacquiringrefund.md): Details of a card refund. Status code `409`. Applicable to 1 of 137 methods.*
|
|
2101
|
+
* [`CreateAccountResponseBody`](docs/models/errors/createaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2102
|
+
* [`UpdateAccountResponseBody`](docs/models/errors/updateaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2103
|
+
* [`AssignCountriesError`](docs/models/errors/assigncountrieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2104
|
+
* [`LinkApplePayError`](docs/models/errors/linkapplepayerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2105
|
+
* [`BankAccountValidationError`](docs/models/errors/bankaccountvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2106
|
+
* [`MicroDepositValidationError`](docs/models/errors/microdepositvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2107
|
+
* [`AddCapabilitiesError`](docs/models/errors/addcapabilitieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2108
|
+
* [`LinkCardError`](docs/models/errors/linkcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2109
|
+
* [`UpdateCardError`](docs/models/errors/updatecarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2110
|
+
* [`FileUploadValidationError`](docs/models/errors/fileuploadvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2111
|
+
* [`FeePlanAgreementError`](docs/models/errors/feeplanagreementerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2112
|
+
* [`FileValidationError`](docs/models/errors/filevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2113
|
+
* [`CreatePaymentLinkError`](docs/models/errors/createpaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2114
|
+
* [`UpdatePaymentLinkError`](docs/models/errors/updatepaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2115
|
+
* [`RepresentativeValidationError`](docs/models/errors/representativevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2116
|
+
* [`CreateSweepConfigError`](docs/models/errors/createsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2117
|
+
* [`PatchSweepConfigError`](docs/models/errors/patchsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2118
|
+
* [`AccountTerminalApplicationError`](docs/models/errors/accountterminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2119
|
+
* [`TransferValidationError`](docs/models/errors/transfervalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2120
|
+
* [`RefundValidationError`](docs/models/errors/refundvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2121
|
+
* [`ReversalValidationError`](docs/models/errors/reversalvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2122
|
+
* [`UpdateUnderwritingError`](docs/models/errors/updateunderwritingerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2123
|
+
* [`RequestCardError`](docs/models/errors/requestcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2124
|
+
* [`UpdateIssuedCardError`](docs/models/errors/updateissuedcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2125
|
+
* [`RevokeTokenRequestError`](docs/models/errors/revoketokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2126
|
+
* [`AuthTokenRequestError`](docs/models/errors/authtokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2127
|
+
* [`OnboardingInviteError`](docs/models/errors/onboardinginviteerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2128
|
+
* [`TerminalApplicationError`](docs/models/errors/terminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 137 methods.*
|
|
2111
2129
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
2112
2130
|
|
|
2113
2131
|
</details>
|