@moovio/sdk 0.21.16 → 0.21.17
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 +44 -46
- package/bin/mcp-server.js +81 -154
- package/bin/mcp-server.js.map +36 -37
- package/examples/package-lock.json +1 -1
- package/funcs/imagesUpdate.d.ts +1 -2
- package/funcs/imagesUpdate.d.ts.map +1 -1
- package/funcs/imagesUpdate.js +12 -13
- package/funcs/imagesUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +3 -1
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/accountsUpdate.js +1 -1
- package/mcp-server/tools/applePayUpdateMerchantDomains.js +3 -3
- package/mcp-server/tools/brandingUpdate.js +1 -1
- package/mcp-server/tools/cardIssuingUpdate.js +1 -1
- package/mcp-server/tools/cardsUpdate.js +6 -6
- package/mcp-server/tools/imagesUpdate.d.ts.map +1 -1
- package/mcp-server/tools/imagesUpdate.js +1 -2
- package/mcp-server/tools/imagesUpdate.js.map +1 -1
- package/mcp-server/tools/paymentLinksUpdate.js +1 -1
- package/mcp-server/tools/representativesUpdate.js +2 -2
- package/mcp-server/tools/supportUpdateTicket.js +1 -1
- package/mcp-server/tools/sweepsUpdateConfig.js +1 -1
- package/mcp-server/tools/transfersUpdate.js +3 -3
- package/mcp-server/tools/walletsUpdate.js +1 -1
- package/models/components/createevidencefilemultipart.d.ts +1 -1
- package/models/components/createpaymentlink.d.ts +0 -2
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/fileuploadrequestmultipart.d.ts +1 -4
- package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/fileuploadrequestmultipart.js.map +1 -1
- package/models/components/imageuploadrequestmultipart.d.ts +3 -3
- package/models/components/imageuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +4 -12
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/patchsweepconfig.d.ts +6 -60
- package/models/components/patchsweepconfig.d.ts.map +1 -1
- package/models/components/patchsweepconfig.js +7 -79
- package/models/components/patchsweepconfig.js.map +1 -1
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +24 -34
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/updaterepresentative.d.ts +2 -20
- package/models/components/updaterepresentative.d.ts.map +1 -1
- package/models/components/updaterepresentative.js +3 -32
- package/models/components/updaterepresentative.js.map +1 -1
- package/models/operations/createpaymentlink.d.ts +3 -0
- package/models/operations/createpaymentlink.d.ts.map +1 -1
- package/models/operations/createpaymentlink.js.map +1 -1
- package/models/operations/disablepaymentlink.d.ts +3 -0
- package/models/operations/disablepaymentlink.d.ts.map +1 -1
- package/models/operations/disablepaymentlink.js.map +1 -1
- package/models/operations/getpaymentlink.d.ts +3 -0
- package/models/operations/getpaymentlink.d.ts.map +1 -1
- package/models/operations/getpaymentlink.js.map +1 -1
- package/models/operations/getpaymentlinkqrcode.d.ts +3 -0
- package/models/operations/getpaymentlinkqrcode.d.ts.map +1 -1
- package/models/operations/getpaymentlinkqrcode.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/updateimage.d.ts +2 -2
- package/models/operations/updateimage.js +4 -4
- package/models/operations/updatepaymentlink.d.ts +3 -0
- package/models/operations/updatepaymentlink.d.ts.map +1 -1
- package/models/operations/updatepaymentlink.js.map +1 -1
- package/package.json +1 -1
- package/sdk/images.d.ts +1 -2
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +1 -2
- package/sdk/images.js.map +1 -1
- package/src/funcs/imagesUpdate.ts +12 -13
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/accountsUpdate.ts +1 -1
- package/src/mcp-server/tools/applePayUpdateMerchantDomains.ts +3 -3
- package/src/mcp-server/tools/brandingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardIssuingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardsUpdate.ts +6 -6
- package/src/mcp-server/tools/imagesUpdate.ts +1 -2
- package/src/mcp-server/tools/paymentLinksUpdate.ts +1 -1
- package/src/mcp-server/tools/representativesUpdate.ts +2 -2
- package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
- package/src/mcp-server/tools/sweepsUpdateConfig.ts +1 -1
- package/src/mcp-server/tools/transfersUpdate.ts +3 -3
- package/src/mcp-server/tools/walletsUpdate.ts +1 -1
- package/src/models/components/createevidencefilemultipart.ts +1 -1
- package/src/models/components/createpaymentlink.ts +0 -2
- package/src/models/components/fileuploadrequestmultipart.ts +1 -4
- package/src/models/components/imageuploadrequestmultipart.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/components/invoicepayment.ts +4 -12
- package/src/models/components/patchsweepconfig.ts +12 -252
- package/src/models/components/paymentmethod.ts +24 -70
- package/src/models/components/updaterepresentative.ts +4 -59
- package/src/models/operations/createpaymentlink.ts +3 -0
- package/src/models/operations/disablepaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlinkqrcode.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/updateimage.ts +8 -8
- package/src/models/operations/updatepaymentlink.ts +3 -0
- package/src/sdk/images.ts +1 -2
- package/models/components/imageupdaterequestmultipart.d.ts +0 -67
- package/models/components/imageupdaterequestmultipart.d.ts.map +0 -1
- package/models/components/imageupdaterequestmultipart.js +0 -105
- package/models/components/imageupdaterequestmultipart.js.map +0 -1
- package/src/models/components/imageupdaterequestmultipart.ts +0 -178
|
@@ -12,12 +12,12 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$applePayUpdateMerchantDomains: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "apple-pay-update-merchant-domains",
|
|
15
|
-
description: `Add or remove domains to be registered with Apple Pay.
|
|
15
|
+
description: `Add or remove domains to be registered with Apple Pay.
|
|
16
16
|
|
|
17
|
-
Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
17
|
+
Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
18
18
|
with Apple.
|
|
19
19
|
|
|
20
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
21
21
|
you'll need to specify the \`/accounts/{accountID}/apple-pay.write\` scope.`,
|
|
22
22
|
args,
|
|
23
23
|
tool: async (client, args, ctx) => {
|
|
@@ -14,7 +14,7 @@ export const tool$brandingUpdate: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "branding-update",
|
|
15
15
|
description: `Updates the brand properties for the specified account.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/accounts/{accountID}/branding.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -14,7 +14,7 @@ export const tool$cardIssuingUpdate: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "card-issuing-update",
|
|
15
15
|
description: `Update a Moov issued card.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/accounts/{accountID}/issued-cards.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -12,18 +12,18 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$cardsUpdate: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "cards-update",
|
|
15
|
-
description: `Update a linked card and/or resubmit it for verification.
|
|
15
|
+
description: `Update a linked card and/or resubmit it for verification.
|
|
16
16
|
|
|
17
|
-
If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration
|
|
18
|
-
date or
|
|
17
|
+
If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration
|
|
18
|
+
date or
|
|
19
19
|
address will update the information stored on file for the card but will not be verified.
|
|
20
20
|
|
|
21
|
-
Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/#reverify-a-card) to learn
|
|
21
|
+
Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/#reverify-a-card) to learn
|
|
22
22
|
more.
|
|
23
23
|
|
|
24
|
-
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
24
|
+
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
25
25
|
|
|
26
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
26
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
27
27
|
you'll need to specify the \`/accounts/{accountID}/cards.write\` scope.`,
|
|
28
28
|
args,
|
|
29
29
|
tool: async (client, args, ctx) => {
|
|
@@ -15,8 +15,7 @@ export const tool$imagesUpdate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Replace an existing image and, optionally, its metadata.
|
|
16
16
|
|
|
17
17
|
This endpoint replaces the existing image with the new PNG, JPEG, or WebP. Omit
|
|
18
|
-
the metadata form section to keep existing metadata,
|
|
19
|
-
Duplicate images, and requests larger than 16MB will be rejected.`,
|
|
18
|
+
the metadata form section to keep existing metadata. Duplicate images, and requests larger than 16MB will be rejected.`,
|
|
20
19
|
args,
|
|
21
20
|
tool: async (client, args, ctx) => {
|
|
22
21
|
const [result, apiCall] = await imagesUpdate(
|
|
@@ -14,7 +14,7 @@ export const tool$paymentLinksUpdate: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "payment-links-update",
|
|
15
15
|
description: `Update a payment link.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$representativesUpdate: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "representatives-update",
|
|
15
15
|
description:
|
|
16
|
-
`If a representative's information has changed you can patch the information associated with a specific representative ID.
|
|
16
|
+
`If a representative's information has changed you can patch the information associated with a specific representative ID.
|
|
17
17
|
Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
|
|
18
18
|
|
|
19
19
|
When **can** profile data be updated:
|
|
@@ -28,7 +28,7 @@ When **can't** profile data be updated:
|
|
|
28
28
|
|
|
29
29
|
If you need to update information in a locked state, please contact Moov support.
|
|
30
30
|
|
|
31
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
32
|
you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope.`,
|
|
33
33
|
args,
|
|
34
34
|
tool: async (client, args, ctx) => {
|
|
@@ -14,7 +14,7 @@ export const tool$supportUpdateTicket: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "support-update-ticket",
|
|
15
15
|
description: `Updates a support ticket.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
19
19
|
|
|
20
20
|
If you're updating the ticket on behalf of another account, then you'll need to
|
|
@@ -14,7 +14,7 @@ export const tool$sweepsUpdateConfig: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "sweeps-update-config",
|
|
15
15
|
description: `Update settings on a sweep config.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -12,11 +12,11 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$transfersUpdate: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-update",
|
|
15
|
-
description: `Update the metadata contained on a transfer.
|
|
15
|
+
description: `Update the metadata contained on a transfer.
|
|
16
16
|
|
|
17
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
17
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
18
18
|
|
|
19
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
20
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
21
21
|
args,
|
|
22
22
|
tool: async (client, args, ctx) => {
|
|
@@ -17,7 +17,7 @@ export const tool$walletsUpdate: ToolDefinition<typeof args> = {
|
|
|
17
17
|
|
|
18
18
|
Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
|
19
19
|
|
|
20
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
21
21
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
22
22
|
args,
|
|
23
23
|
tool: async (client, args, ctx) => {
|
|
@@ -24,7 +24,7 @@ export type CreateEvidenceFileMultiPart = {
|
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* The `Content-Type` header for this form part must be one of the following:
|
|
28
28
|
* - `image/jpeg`
|
|
29
29
|
* - `image/tiff`
|
|
30
30
|
* - `application/pdf`
|
|
@@ -51,8 +51,6 @@ import {
|
|
|
51
51
|
* A payment link must include either `payment` or `payout` details, but not both. For payout payment links,
|
|
52
52
|
* `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
|
|
53
53
|
* to a specific recipient.
|
|
54
|
-
*
|
|
55
|
-
* **Note:** The `payout` option is currently under development and is not yet available for general use.
|
|
56
54
|
*/
|
|
57
55
|
export type CreatePaymentLink = {
|
|
58
56
|
/**
|
|
@@ -18,16 +18,13 @@ export type FileUploadRequestMultiPartFile = {
|
|
|
18
18
|
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Request to upload a file for an account.
|
|
23
|
-
*/
|
|
24
21
|
export type FileUploadRequestMultiPart = {
|
|
25
22
|
/**
|
|
26
23
|
* The file to be added. Valid types are `csv`, `png`, `jpeg`, `pdf`.
|
|
27
24
|
*/
|
|
28
25
|
file: FileUploadRequestMultiPartFile | Blob;
|
|
29
26
|
/**
|
|
30
|
-
* The file
|
|
27
|
+
* The purpose of the file being uploaded.
|
|
31
28
|
*/
|
|
32
29
|
filePurpose: FilePurpose;
|
|
33
30
|
/**
|
|
@@ -19,10 +19,10 @@ export type Image = {
|
|
|
19
19
|
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Multipart request body for uploading an image with optional metadata.
|
|
24
|
-
*/
|
|
25
22
|
export type ImageUploadRequestMultiPart = {
|
|
23
|
+
/**
|
|
24
|
+
* A PNG, JPEG, or WebP image file to upload.
|
|
25
|
+
*/
|
|
26
26
|
image: Image | Blob;
|
|
27
27
|
/**
|
|
28
28
|
* Optional, json-encoded metadata to associate with the uploaded image.
|
|
@@ -230,7 +230,6 @@ export * from "./guestprofile.js";
|
|
|
230
230
|
export * from "./imagemetadata.js";
|
|
231
231
|
export * from "./imagemetadatarequest.js";
|
|
232
232
|
export * from "./imagemetadatavalidationerror.js";
|
|
233
|
-
export * from "./imageupdaterequestmultipart.js";
|
|
234
233
|
export * from "./imageuploadrequestmultipart.js";
|
|
235
234
|
export * from "./incurredfee.js";
|
|
236
235
|
export * from "./individualname.js";
|
|
@@ -30,14 +30,10 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
30
30
|
unknown
|
|
31
31
|
> = z.union([
|
|
32
32
|
InvoiceExternalPayment$inboundSchema.and(
|
|
33
|
-
z.object({ paymentType: z.literal("external") })
|
|
34
|
-
paymentType: v.paymentType,
|
|
35
|
-
})),
|
|
33
|
+
z.object({ paymentType: z.literal("external") }),
|
|
36
34
|
),
|
|
37
35
|
InvoiceTransferPayment$inboundSchema.and(
|
|
38
|
-
z.object({ paymentType: z.literal("transfer") })
|
|
39
|
-
paymentType: v.paymentType,
|
|
40
|
-
})),
|
|
36
|
+
z.object({ paymentType: z.literal("transfer") }),
|
|
41
37
|
),
|
|
42
38
|
]);
|
|
43
39
|
/** @internal */
|
|
@@ -52,14 +48,10 @@ export const InvoicePayment$outboundSchema: z.ZodType<
|
|
|
52
48
|
InvoicePayment
|
|
53
49
|
> = z.union([
|
|
54
50
|
InvoiceExternalPayment$outboundSchema.and(
|
|
55
|
-
z.object({ paymentType: z.literal("external") })
|
|
56
|
-
paymentType: v.paymentType,
|
|
57
|
-
})),
|
|
51
|
+
z.object({ paymentType: z.literal("external") }),
|
|
58
52
|
),
|
|
59
53
|
InvoiceTransferPayment$outboundSchema.and(
|
|
60
|
-
z.object({ paymentType: z.literal("transfer") })
|
|
61
|
-
paymentType: v.paymentType,
|
|
62
|
-
})),
|
|
54
|
+
z.object({ paymentType: z.literal("transfer") }),
|
|
63
55
|
),
|
|
64
56
|
]);
|
|
65
57
|
|
|
@@ -14,23 +14,11 @@ export const Status = {
|
|
|
14
14
|
} as const;
|
|
15
15
|
export type Status = ClosedEnum<typeof Status>;
|
|
16
16
|
|
|
17
|
-
export type PushPaymentMethodId2 = {};
|
|
18
|
-
|
|
19
|
-
export type PushPaymentMethodID = string | PushPaymentMethodId2;
|
|
20
|
-
|
|
21
|
-
export type PullPaymentMethodId2 = {};
|
|
22
|
-
|
|
23
|
-
export type PullPaymentMethodID = string | PullPaymentMethodId2;
|
|
24
|
-
|
|
25
|
-
export type StatementDescriptor2 = {};
|
|
26
|
-
|
|
27
|
-
export type StatementDescriptor = string | StatementDescriptor2;
|
|
28
|
-
|
|
29
17
|
export type PatchSweepConfig = {
|
|
30
18
|
status?: Status | null | undefined;
|
|
31
|
-
pushPaymentMethodID?: string |
|
|
32
|
-
pullPaymentMethodID?: string |
|
|
33
|
-
statementDescriptor?: string |
|
|
19
|
+
pushPaymentMethodID?: string | null | undefined;
|
|
20
|
+
pullPaymentMethodID?: string | null | undefined;
|
|
21
|
+
statementDescriptor?: string | null | undefined;
|
|
34
22
|
minimumBalance?: string | null | undefined;
|
|
35
23
|
};
|
|
36
24
|
|
|
@@ -41,210 +29,6 @@ export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
|
41
29
|
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
42
30
|
Status$inboundSchema;
|
|
43
31
|
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const PushPaymentMethodId2$inboundSchema: z.ZodType<
|
|
46
|
-
PushPaymentMethodId2,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({});
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type PushPaymentMethodId2$Outbound = {};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const PushPaymentMethodId2$outboundSchema: z.ZodType<
|
|
55
|
-
PushPaymentMethodId2$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
PushPaymentMethodId2
|
|
58
|
-
> = z.object({});
|
|
59
|
-
|
|
60
|
-
export function pushPaymentMethodID2ToJSON(
|
|
61
|
-
pushPaymentMethodId2: PushPaymentMethodId2,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
PushPaymentMethodId2$outboundSchema.parse(pushPaymentMethodId2),
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
export function pushPaymentMethodID2FromJSON(
|
|
68
|
-
jsonString: string,
|
|
69
|
-
): SafeParseResult<PushPaymentMethodId2, SDKValidationError> {
|
|
70
|
-
return safeParse(
|
|
71
|
-
jsonString,
|
|
72
|
-
(x) => PushPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
-
`Failed to parse 'PushPaymentMethodId2' from JSON`,
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const PushPaymentMethodID$inboundSchema: z.ZodType<
|
|
79
|
-
PushPaymentMethodID,
|
|
80
|
-
z.ZodTypeDef,
|
|
81
|
-
unknown
|
|
82
|
-
> = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$inboundSchema)]);
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type PushPaymentMethodID$Outbound =
|
|
85
|
-
| string
|
|
86
|
-
| PushPaymentMethodId2$Outbound;
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const PushPaymentMethodID$outboundSchema: z.ZodType<
|
|
90
|
-
PushPaymentMethodID$Outbound,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
PushPaymentMethodID
|
|
93
|
-
> = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$outboundSchema)]);
|
|
94
|
-
|
|
95
|
-
export function pushPaymentMethodIDToJSON(
|
|
96
|
-
pushPaymentMethodID: PushPaymentMethodID,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
PushPaymentMethodID$outboundSchema.parse(pushPaymentMethodID),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
export function pushPaymentMethodIDFromJSON(
|
|
103
|
-
jsonString: string,
|
|
104
|
-
): SafeParseResult<PushPaymentMethodID, SDKValidationError> {
|
|
105
|
-
return safeParse(
|
|
106
|
-
jsonString,
|
|
107
|
-
(x) => PushPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
-
`Failed to parse 'PushPaymentMethodID' from JSON`,
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const PullPaymentMethodId2$inboundSchema: z.ZodType<
|
|
114
|
-
PullPaymentMethodId2,
|
|
115
|
-
z.ZodTypeDef,
|
|
116
|
-
unknown
|
|
117
|
-
> = z.object({});
|
|
118
|
-
/** @internal */
|
|
119
|
-
export type PullPaymentMethodId2$Outbound = {};
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const PullPaymentMethodId2$outboundSchema: z.ZodType<
|
|
123
|
-
PullPaymentMethodId2$Outbound,
|
|
124
|
-
z.ZodTypeDef,
|
|
125
|
-
PullPaymentMethodId2
|
|
126
|
-
> = z.object({});
|
|
127
|
-
|
|
128
|
-
export function pullPaymentMethodID2ToJSON(
|
|
129
|
-
pullPaymentMethodId2: PullPaymentMethodId2,
|
|
130
|
-
): string {
|
|
131
|
-
return JSON.stringify(
|
|
132
|
-
PullPaymentMethodId2$outboundSchema.parse(pullPaymentMethodId2),
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
export function pullPaymentMethodID2FromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<PullPaymentMethodId2, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) => PullPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
-
`Failed to parse 'PullPaymentMethodId2' from JSON`,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const PullPaymentMethodID$inboundSchema: z.ZodType<
|
|
147
|
-
PullPaymentMethodID,
|
|
148
|
-
z.ZodTypeDef,
|
|
149
|
-
unknown
|
|
150
|
-
> = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]);
|
|
151
|
-
/** @internal */
|
|
152
|
-
export type PullPaymentMethodID$Outbound =
|
|
153
|
-
| string
|
|
154
|
-
| PullPaymentMethodId2$Outbound;
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const PullPaymentMethodID$outboundSchema: z.ZodType<
|
|
158
|
-
PullPaymentMethodID$Outbound,
|
|
159
|
-
z.ZodTypeDef,
|
|
160
|
-
PullPaymentMethodID
|
|
161
|
-
> = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]);
|
|
162
|
-
|
|
163
|
-
export function pullPaymentMethodIDToJSON(
|
|
164
|
-
pullPaymentMethodID: PullPaymentMethodID,
|
|
165
|
-
): string {
|
|
166
|
-
return JSON.stringify(
|
|
167
|
-
PullPaymentMethodID$outboundSchema.parse(pullPaymentMethodID),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
export function pullPaymentMethodIDFromJSON(
|
|
171
|
-
jsonString: string,
|
|
172
|
-
): SafeParseResult<PullPaymentMethodID, SDKValidationError> {
|
|
173
|
-
return safeParse(
|
|
174
|
-
jsonString,
|
|
175
|
-
(x) => PullPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
-
`Failed to parse 'PullPaymentMethodID' from JSON`,
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export const StatementDescriptor2$inboundSchema: z.ZodType<
|
|
182
|
-
StatementDescriptor2,
|
|
183
|
-
z.ZodTypeDef,
|
|
184
|
-
unknown
|
|
185
|
-
> = z.object({});
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type StatementDescriptor2$Outbound = {};
|
|
188
|
-
|
|
189
|
-
/** @internal */
|
|
190
|
-
export const StatementDescriptor2$outboundSchema: z.ZodType<
|
|
191
|
-
StatementDescriptor2$Outbound,
|
|
192
|
-
z.ZodTypeDef,
|
|
193
|
-
StatementDescriptor2
|
|
194
|
-
> = z.object({});
|
|
195
|
-
|
|
196
|
-
export function statementDescriptor2ToJSON(
|
|
197
|
-
statementDescriptor2: StatementDescriptor2,
|
|
198
|
-
): string {
|
|
199
|
-
return JSON.stringify(
|
|
200
|
-
StatementDescriptor2$outboundSchema.parse(statementDescriptor2),
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
export function statementDescriptor2FromJSON(
|
|
204
|
-
jsonString: string,
|
|
205
|
-
): SafeParseResult<StatementDescriptor2, SDKValidationError> {
|
|
206
|
-
return safeParse(
|
|
207
|
-
jsonString,
|
|
208
|
-
(x) => StatementDescriptor2$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
-
`Failed to parse 'StatementDescriptor2' from JSON`,
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const StatementDescriptor$inboundSchema: z.ZodType<
|
|
215
|
-
StatementDescriptor,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
unknown
|
|
218
|
-
> = z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]);
|
|
219
|
-
/** @internal */
|
|
220
|
-
export type StatementDescriptor$Outbound =
|
|
221
|
-
| string
|
|
222
|
-
| StatementDescriptor2$Outbound;
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const StatementDescriptor$outboundSchema: z.ZodType<
|
|
226
|
-
StatementDescriptor$Outbound,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
StatementDescriptor
|
|
229
|
-
> = z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]);
|
|
230
|
-
|
|
231
|
-
export function statementDescriptorToJSON(
|
|
232
|
-
statementDescriptor: StatementDescriptor,
|
|
233
|
-
): string {
|
|
234
|
-
return JSON.stringify(
|
|
235
|
-
StatementDescriptor$outboundSchema.parse(statementDescriptor),
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
export function statementDescriptorFromJSON(
|
|
239
|
-
jsonString: string,
|
|
240
|
-
): SafeParseResult<StatementDescriptor, SDKValidationError> {
|
|
241
|
-
return safeParse(
|
|
242
|
-
jsonString,
|
|
243
|
-
(x) => StatementDescriptor$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
-
`Failed to parse 'StatementDescriptor' from JSON`,
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
32
|
/** @internal */
|
|
249
33
|
export const PatchSweepConfig$inboundSchema: z.ZodType<
|
|
250
34
|
PatchSweepConfig,
|
|
@@ -252,35 +36,17 @@ export const PatchSweepConfig$inboundSchema: z.ZodType<
|
|
|
252
36
|
unknown
|
|
253
37
|
> = z.object({
|
|
254
38
|
status: z.nullable(Status$inboundSchema).optional(),
|
|
255
|
-
pushPaymentMethodID: z.nullable(
|
|
256
|
-
|
|
257
|
-
).optional(),
|
|
258
|
-
pullPaymentMethodID: z.nullable(
|
|
259
|
-
z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]),
|
|
260
|
-
).optional(),
|
|
261
|
-
statementDescriptor: z.nullable(
|
|
262
|
-
z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]),
|
|
263
|
-
).optional(),
|
|
39
|
+
pushPaymentMethodID: z.nullable(z.string()).optional(),
|
|
40
|
+
pullPaymentMethodID: z.nullable(z.string()).optional(),
|
|
41
|
+
statementDescriptor: z.nullable(z.string()).optional(),
|
|
264
42
|
minimumBalance: z.nullable(z.string()).optional(),
|
|
265
43
|
});
|
|
266
44
|
/** @internal */
|
|
267
45
|
export type PatchSweepConfig$Outbound = {
|
|
268
46
|
status?: string | null | undefined;
|
|
269
|
-
pushPaymentMethodID?:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
| null
|
|
273
|
-
| undefined;
|
|
274
|
-
pullPaymentMethodID?:
|
|
275
|
-
| string
|
|
276
|
-
| PullPaymentMethodId2$Outbound
|
|
277
|
-
| null
|
|
278
|
-
| undefined;
|
|
279
|
-
statementDescriptor?:
|
|
280
|
-
| string
|
|
281
|
-
| StatementDescriptor2$Outbound
|
|
282
|
-
| null
|
|
283
|
-
| undefined;
|
|
47
|
+
pushPaymentMethodID?: string | null | undefined;
|
|
48
|
+
pullPaymentMethodID?: string | null | undefined;
|
|
49
|
+
statementDescriptor?: string | null | undefined;
|
|
284
50
|
minimumBalance?: string | null | undefined;
|
|
285
51
|
};
|
|
286
52
|
|
|
@@ -291,15 +57,9 @@ export const PatchSweepConfig$outboundSchema: z.ZodType<
|
|
|
291
57
|
PatchSweepConfig
|
|
292
58
|
> = z.object({
|
|
293
59
|
status: z.nullable(Status$outboundSchema).optional(),
|
|
294
|
-
pushPaymentMethodID: z.nullable(
|
|
295
|
-
|
|
296
|
-
).optional(),
|
|
297
|
-
pullPaymentMethodID: z.nullable(
|
|
298
|
-
z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]),
|
|
299
|
-
).optional(),
|
|
300
|
-
statementDescriptor: z.nullable(
|
|
301
|
-
z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]),
|
|
302
|
-
).optional(),
|
|
60
|
+
pushPaymentMethodID: z.nullable(z.string()).optional(),
|
|
61
|
+
pullPaymentMethodID: z.nullable(z.string()).optional(),
|
|
62
|
+
statementDescriptor: z.nullable(z.string()).optional(),
|
|
303
63
|
minimumBalance: z.nullable(z.string()).optional(),
|
|
304
64
|
});
|
|
305
65
|
|