@moovio/sdk 0.16.5 → 0.17.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/README.md +60 -45
- package/bin/mcp-server.js +1167 -551
- package/bin/mcp-server.js.map +23 -12
- package/docs/sdks/images/README.md +190 -0
- package/docs/sdks/products/README.md +32 -8
- package/examples/package-lock.json +1 -1
- package/funcs/imagesUpdate.d.ts +19 -0
- package/funcs/imagesUpdate.d.ts.map +1 -0
- package/funcs/imagesUpdate.js +170 -0
- package/funcs/imagesUpdate.js.map +1 -0
- package/funcs/imagesUpload.d.ts +16 -0
- package/funcs/imagesUpload.d.ts.map +1 -0
- package/funcs/imagesUpload.js +161 -0
- package/funcs/imagesUpload.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.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 +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/imagesUpdate.d.ts +8 -0
- package/mcp-server/tools/imagesUpdate.d.ts.map +1 -0
- package/mcp-server/tools/imagesUpdate.js +66 -0
- package/mcp-server/tools/imagesUpdate.js.map +1 -0
- package/mcp-server/tools/imagesUpload.d.ts +8 -0
- package/mcp-server/tools/imagesUpload.d.ts.map +1 -0
- package/mcp-server/tools/imagesUpload.js +63 -0
- package/mcp-server/tools/imagesUpload.js.map +1 -0
- package/models/components/createproductoption.d.ts +3 -2
- package/models/components/createproductoption.d.ts.map +1 -1
- package/models/components/createproductoption.js +3 -2
- package/models/components/createproductoption.js.map +1 -1
- package/models/components/imagemetadatarequest.d.ts +35 -0
- package/models/components/imagemetadatarequest.d.ts.map +1 -0
- package/models/components/imagemetadatarequest.js +69 -0
- package/models/components/imagemetadatarequest.js.map +1 -0
- package/models/components/imagemetadatavalidationerror.d.ts +29 -0
- package/models/components/imagemetadatavalidationerror.d.ts.map +1 -0
- package/models/components/imagemetadatavalidationerror.js +69 -0
- package/models/components/imagemetadatavalidationerror.js.map +1 -0
- package/models/components/imageupdaterequestmultipart.d.ts +103 -0
- package/models/components/imageupdaterequestmultipart.d.ts.map +1 -0
- package/models/components/imageupdaterequestmultipart.js +139 -0
- package/models/components/imageupdaterequestmultipart.js.map +1 -0
- package/models/components/imageuploadrequestmultipart.d.ts +65 -0
- package/models/components/imageuploadrequestmultipart.d.ts.map +1 -0
- package/models/components/imageuploadrequestmultipart.js +113 -0
- package/models/components/imageuploadrequestmultipart.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/productoption.d.ts +3 -2
- package/models/components/productoption.d.ts.map +1 -1
- package/models/components/productoption.js +3 -2
- package/models/components/productoption.js.map +1 -1
- package/models/components/productoptionvalidationerror.d.ts +3 -2
- package/models/components/productoptionvalidationerror.d.ts.map +1 -1
- package/models/components/productoptionvalidationerror.js +3 -2
- package/models/components/productoptionvalidationerror.js.map +1 -1
- package/models/errors/imagerequestvalidationerror.d.ts +40 -0
- package/models/errors/imagerequestvalidationerror.d.ts.map +1 -0
- package/models/errors/imagerequestvalidationerror.js +91 -0
- package/models/errors/imagerequestvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/updateimage.d.ts +103 -0
- package/models/operations/updateimage.d.ts.map +1 -0
- package/models/operations/updateimage.js +157 -0
- package/models/operations/updateimage.js.map +1 -0
- package/models/operations/uploadimage.d.ts +101 -0
- package/models/operations/uploadimage.d.ts.map +1 -0
- package/models/operations/uploadimage.js +155 -0
- package/models/operations/uploadimage.js.map +1 -0
- package/package.json +1 -1
- package/sdk/images.d.ts +13 -0
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +19 -0
- package/sdk/images.js.map +1 -1
- package/src/funcs/imagesUpdate.ts +258 -0
- package/src/funcs/imagesUpload.ts +249 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/imagesUpdate.ts +39 -0
- package/src/mcp-server/tools/imagesUpload.ts +36 -0
- package/src/models/components/createproductoption.ts +10 -4
- package/src/models/components/imagemetadatarequest.ts +72 -0
- package/src/models/components/imagemetadatavalidationerror.ts +68 -0
- package/src/models/components/imageupdaterequestmultipart.ts +224 -0
- package/src/models/components/imageuploadrequestmultipart.ts +150 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/productoption.ts +10 -4
- package/src/models/components/productoptionvalidationerror.ts +10 -4
- package/src/models/errors/imagerequestvalidationerror.ts +86 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/updateimage.ts +237 -0
- package/src/models/operations/uploadimage.ts +233 -0
- package/src/sdk/images.ts +35 -0
package/README.md
CHANGED
|
@@ -746,7 +746,14 @@ you'll need to specify the `/accounts/{accountID}/files.read` scope.
|
|
|
746
746
|
### [images](docs/sdks/images/README.md)
|
|
747
747
|
|
|
748
748
|
* [list](docs/sdks/images/README.md#list) - List metadata for all images in the specified account.
|
|
749
|
+
* [upload](docs/sdks/images/README.md#upload) - Upload a new PNG, JPEG, or WebP image with optional metadata.
|
|
750
|
+
Duplicate images, and requests larger than 16MB will be rejected.
|
|
749
751
|
* [getMetadata](docs/sdks/images/README.md#getmetadata) - Retrieve metadata for a specific image by its ID.
|
|
752
|
+
* [update](docs/sdks/images/README.md#update) - Update an existing image and/or its metadata.
|
|
753
|
+
|
|
754
|
+
Duplicate images, and requests larger than 16MB will be rejected. Omit any
|
|
755
|
+
form parts you do not wish to update. Existing metadata can be cleared by
|
|
756
|
+
sending `null` for the `metadata` form part.
|
|
750
757
|
* [delete](docs/sdks/images/README.md#delete) - Permanently delete an image by its ID.
|
|
751
758
|
* [getPublic](docs/sdks/images/README.md#getpublic) - Get an image by its public ID.
|
|
752
759
|
|
|
@@ -1654,6 +1661,13 @@ you'll need to specify the `/accounts/{accountID}/files.write` scope.
|
|
|
1654
1661
|
- [`imagesGetMetadata`](docs/sdks/images/README.md#getmetadata) - Retrieve metadata for a specific image by its ID.
|
|
1655
1662
|
- [`imagesGetPublic`](docs/sdks/images/README.md#getpublic) - Get an image by its public ID.
|
|
1656
1663
|
- [`imagesList`](docs/sdks/images/README.md#list) - List metadata for all images in the specified account.
|
|
1664
|
+
- [`imagesUpdate`](docs/sdks/images/README.md#update) - Update an existing image and/or its metadata.
|
|
1665
|
+
|
|
1666
|
+
Duplicate images, and requests larger than 16MB will be rejected. Omit any
|
|
1667
|
+
form parts you do not wish to update. Existing metadata can be cleared by
|
|
1668
|
+
sending `null` for the `metadata` form part.
|
|
1669
|
+
- [`imagesUpload`](docs/sdks/images/README.md#upload) - Upload a new PNG, JPEG, or WebP image with optional metadata.
|
|
1670
|
+
Duplicate images, and requests larger than 16MB will be rejected.
|
|
1657
1671
|
- [`industriesList`](docs/sdks/industries/README.md#list) - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
1658
1672
|
|
|
1659
1673
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
@@ -2229,7 +2243,7 @@ run();
|
|
|
2229
2243
|
**Primary error:**
|
|
2230
2244
|
* [`MoovError`](./src/models/errors/mooverror.ts): The base class for HTTP error responses.
|
|
2231
2245
|
|
|
2232
|
-
<details><summary>Less common errors (
|
|
2246
|
+
<details><summary>Less common errors (51)</summary>
|
|
2233
2247
|
|
|
2234
2248
|
<br />
|
|
2235
2249
|
|
|
@@ -2242,50 +2256,51 @@ run();
|
|
|
2242
2256
|
|
|
2243
2257
|
|
|
2244
2258
|
**Inherit from [`MoovError`](./src/models/errors/mooverror.ts)**:
|
|
2245
|
-
* [`GenericError`](./src/models/errors/genericerror.ts): Applicable to
|
|
2246
|
-
* [`BrandValidationError`](./src/models/errors/brandvalidationerror.ts): 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
|
|
2247
|
-
* [`
|
|
2248
|
-
* [`
|
|
2249
|
-
* [`
|
|
2250
|
-
* [`
|
|
2251
|
-
* [`
|
|
2252
|
-
* [`
|
|
2253
|
-
* [`
|
|
2254
|
-
* [`
|
|
2255
|
-
* [`
|
|
2256
|
-
* [`
|
|
2257
|
-
* [`
|
|
2258
|
-
* [`
|
|
2259
|
-
* [`
|
|
2260
|
-
* [`
|
|
2261
|
-
* [`
|
|
2262
|
-
* [`
|
|
2263
|
-
* [`
|
|
2264
|
-
* [`
|
|
2265
|
-
* [`
|
|
2266
|
-
* [`
|
|
2267
|
-
* [`
|
|
2268
|
-
* [`
|
|
2269
|
-
* [`
|
|
2270
|
-
* [`
|
|
2271
|
-
* [`
|
|
2272
|
-
* [`
|
|
2273
|
-
* [`
|
|
2274
|
-
* [`
|
|
2275
|
-
* [`
|
|
2276
|
-
* [`
|
|
2277
|
-
* [`
|
|
2278
|
-
* [`
|
|
2279
|
-
* [`
|
|
2280
|
-
* [`
|
|
2281
|
-
* [`
|
|
2282
|
-
* [`
|
|
2283
|
-
* [`
|
|
2284
|
-
* [`
|
|
2285
|
-
* [`
|
|
2286
|
-
* [`
|
|
2287
|
-
* [`
|
|
2288
|
-
* [`
|
|
2259
|
+
* [`GenericError`](./src/models/errors/genericerror.ts): Applicable to 71 of 158 methods.*
|
|
2260
|
+
* [`BrandValidationError`](./src/models/errors/brandvalidationerror.ts): 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 158 methods.*
|
|
2261
|
+
* [`ImageRequestValidationError`](./src/models/errors/imagerequestvalidationerror.ts): 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 158 methods.*
|
|
2262
|
+
* [`ProductRequestValidationError`](./src/models/errors/productrequestvalidationerror.ts): 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 158 methods.*
|
|
2263
|
+
* [`ScheduleValidationError`](./src/models/errors/schedulevalidationerror.ts): 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 158 methods.*
|
|
2264
|
+
* [`TerminalApplicationError`](./src/models/errors/terminalapplicationerror.ts): 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 158 methods.*
|
|
2265
|
+
* [`Transfer`](./src/models/errors/transfer.ts): Details of a Transfer. Status code `409`. Applicable to 1 of 158 methods.*
|
|
2266
|
+
* [`CardAcquiringRefund`](./src/models/errors/cardacquiringrefund.ts): Details of a card refund. Status code `409`. Applicable to 1 of 158 methods.*
|
|
2267
|
+
* [`CreateAccountError`](./src/models/errors/createaccounterror.ts): 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 158 methods.*
|
|
2268
|
+
* [`PatchAccountError`](./src/models/errors/patchaccounterror.ts): 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 158 methods.*
|
|
2269
|
+
* [`AssignCountriesError`](./src/models/errors/assigncountrieserror.ts): 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 158 methods.*
|
|
2270
|
+
* [`LinkApplePayError`](./src/models/errors/linkapplepayerror.ts): 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 158 methods.*
|
|
2271
|
+
* [`BankAccountValidationError`](./src/models/errors/bankaccountvalidationerror.ts): 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 158 methods.*
|
|
2272
|
+
* [`MicroDepositValidationError`](./src/models/errors/microdepositvalidationerror.ts): 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 158 methods.*
|
|
2273
|
+
* [`AddCapabilitiesError`](./src/models/errors/addcapabilitieserror.ts): 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 158 methods.*
|
|
2274
|
+
* [`LinkCardError`](./src/models/errors/linkcarderror.ts): 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 158 methods.*
|
|
2275
|
+
* [`UpdateCardError`](./src/models/errors/updatecarderror.ts): 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 158 methods.*
|
|
2276
|
+
* [`FileUploadValidationError`](./src/models/errors/fileuploadvalidationerror.ts): 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 158 methods.*
|
|
2277
|
+
* [`FeePlanAgreementError`](./src/models/errors/feeplanagreementerror.ts): 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 158 methods.*
|
|
2278
|
+
* [`FileValidationError`](./src/models/errors/filevalidationerror.ts): 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 158 methods.*
|
|
2279
|
+
* [`CreatePaymentLinkError`](./src/models/errors/createpaymentlinkerror.ts): 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 158 methods.*
|
|
2280
|
+
* [`UpdatePaymentLinkError`](./src/models/errors/updatepaymentlinkerror.ts): 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 158 methods.*
|
|
2281
|
+
* [`RepresentativeValidationError`](./src/models/errors/representativevalidationerror.ts): 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 158 methods.*
|
|
2282
|
+
* [`CreateSweepConfigError`](./src/models/errors/createsweepconfigerror.ts): 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 158 methods.*
|
|
2283
|
+
* [`PatchSweepConfigError`](./src/models/errors/patchsweepconfigerror.ts): 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 158 methods.*
|
|
2284
|
+
* [`AccountTerminalApplicationError`](./src/models/errors/accountterminalapplicationerror.ts): 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 158 methods.*
|
|
2285
|
+
* [`CreateTicketError`](./src/models/errors/createticketerror.ts): 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 158 methods.*
|
|
2286
|
+
* [`UpdateTicketError`](./src/models/errors/updateticketerror.ts): 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 158 methods.*
|
|
2287
|
+
* [`TransferOptionsValidationError`](./src/models/errors/transferoptionsvalidationerror.ts): 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 158 methods.*
|
|
2288
|
+
* [`TransferValidationError`](./src/models/errors/transfervalidationerror.ts): 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 158 methods.*
|
|
2289
|
+
* [`ListTransfersValidationError`](./src/models/errors/listtransfersvalidationerror.ts): 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 158 methods.*
|
|
2290
|
+
* [`PatchTransferValidationError`](./src/models/errors/patchtransfervalidationerror.ts): 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 158 methods.*
|
|
2291
|
+
* [`RefundValidationError`](./src/models/errors/refundvalidationerror.ts): 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 158 methods.*
|
|
2292
|
+
* [`ReversalValidationError`](./src/models/errors/reversalvalidationerror.ts): 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 158 methods.*
|
|
2293
|
+
* [`UpsertUnderwritingError`](./src/models/errors/upsertunderwritingerror.ts): 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 158 methods.*
|
|
2294
|
+
* [`UpdateUnderwritingError`](./src/models/errors/updateunderwritingerror.ts): 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 158 methods.*
|
|
2295
|
+
* [`CreateWalletValidationError`](./src/models/errors/createwalletvalidationerror.ts): 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 158 methods.*
|
|
2296
|
+
* [`ListWalletsValidationError`](./src/models/errors/listwalletsvalidationerror.ts): 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 158 methods.*
|
|
2297
|
+
* [`PatchWalletValidationError`](./src/models/errors/patchwalletvalidationerror.ts): 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 158 methods.*
|
|
2298
|
+
* [`ListWalletTransactionsValidationError`](./src/models/errors/listwallettransactionsvalidationerror.ts): 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 158 methods.*
|
|
2299
|
+
* [`RequestCardError`](./src/models/errors/requestcarderror.ts): 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 158 methods.*
|
|
2300
|
+
* [`UpdateIssuedCardError`](./src/models/errors/updateissuedcarderror.ts): 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 158 methods.*
|
|
2301
|
+
* [`RevokeTokenRequestError`](./src/models/errors/revoketokenrequesterror.ts): 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 158 methods.*
|
|
2302
|
+
* [`AuthTokenRequestError`](./src/models/errors/authtokenrequesterror.ts): 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 158 methods.*
|
|
2303
|
+
* [`OnboardingInviteError`](./src/models/errors/onboardinginviteerror.ts): 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 158 methods.*
|
|
2289
2304
|
* [`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.
|
|
2290
2305
|
|
|
2291
2306
|
</details>
|