@moovio/sdk 25.7.8 → 25.7.10
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/bin/mcp-server.js +52 -41
- package/bin/mcp-server.js.map +30 -31
- package/funcs/disputesUploadEvidenceFile.js +6 -0
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/filesUpload.js +6 -0
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/imagesUpdate.js +7 -0
- package/funcs/imagesUpdate.js.map +1 -1
- package/funcs/imagesUpload.js +7 -0
- package/funcs/imagesUpload.js.map +1 -1
- 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/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/shared.js +1 -1
- package/mcp-server/shared.js.map +1 -1
- package/models/components/billablefee.d.ts +3 -0
- package/models/components/billablefee.d.ts.map +1 -1
- package/models/components/billablefee.js.map +1 -1
- package/models/components/createfeeplanagreement.d.ts +3 -0
- package/models/components/createfeeplanagreement.d.ts.map +1 -1
- package/models/components/createfeeplanagreement.js.map +1 -1
- package/models/components/createpaymentlinklineitem.d.ts +3 -2
- package/models/components/createpaymentlinklineitem.d.ts.map +1 -1
- package/models/components/createpaymentlinklineitem.js.map +1 -1
- package/models/components/createpaymentlinklineitemoption.d.ts +1 -1
- package/models/components/createscheduledtransferlineitem.d.ts +6 -1
- package/models/components/createscheduledtransferlineitem.d.ts.map +1 -1
- package/models/components/createscheduledtransferlineitem.js.map +1 -1
- package/models/components/createscheduledtransferlineitemoption.d.ts +6 -1
- package/models/components/createscheduledtransferlineitemoption.d.ts.map +1 -1
- package/models/components/createscheduledtransferlineitemoption.js.map +1 -1
- package/models/components/createtransferlineitem.d.ts +6 -1
- package/models/components/createtransferlineitem.d.ts.map +1 -1
- package/models/components/createtransferlineitem.js.map +1 -1
- package/models/components/createtransferlineitemoption.d.ts +6 -1
- package/models/components/createtransferlineitemoption.d.ts.map +1 -1
- package/models/components/createtransferlineitemoption.js.map +1 -1
- package/models/components/feeplan.d.ts +3 -0
- package/models/components/feeplan.d.ts.map +1 -1
- package/models/components/feeplan.js.map +1 -1
- package/models/components/feeplanagreement.d.ts +9 -0
- package/models/components/feeplanagreement.d.ts.map +1 -1
- package/models/components/feeplanagreement.js.map +1 -1
- package/models/components/generatedby.d.ts +18 -0
- package/models/components/generatedby.d.ts.map +1 -1
- package/models/components/generatedby.js.map +1 -1
- package/models/components/incurredfee.d.ts +3 -0
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js.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/partnerpricingagreement.d.ts +9 -0
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/models/components/transferdestination.d.ts +44 -4
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +36 -4
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/wallettransactiontype.d.ts +0 -1
- package/models/components/wallettransactiontype.d.ts.map +1 -1
- package/models/components/wallettransactiontype.js +0 -1
- package/models/components/wallettransactiontype.js.map +1 -1
- package/models/errors/feeplanagreementerror.d.ts +6 -0
- package/models/errors/feeplanagreementerror.d.ts.map +1 -1
- package/models/errors/feeplanagreementerror.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +15 -0
- package/src/funcs/filesUpload.ts +15 -0
- package/src/funcs/imagesUpdate.ts +16 -0
- package/src/funcs/imagesUpload.ts +16 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/shared.ts +2 -2
- package/src/models/components/billablefee.ts +3 -0
- package/src/models/components/createfeeplanagreement.ts +3 -0
- package/src/models/components/createpaymentlinklineitem.ts +3 -2
- package/src/models/components/createpaymentlinklineitemoption.ts +1 -1
- package/src/models/components/createscheduledtransferlineitem.ts +6 -1
- package/src/models/components/createscheduledtransferlineitemoption.ts +6 -1
- package/src/models/components/createtransferlineitem.ts +6 -1
- package/src/models/components/createtransferlineitemoption.ts +6 -1
- package/src/models/components/feeplan.ts +3 -0
- package/src/models/components/feeplanagreement.ts +9 -0
- package/src/models/components/generatedby.ts +18 -0
- package/src/models/components/incurredfee.ts +3 -0
- package/src/models/components/index.ts +0 -1
- package/src/models/components/partnerpricingagreement.ts +9 -0
- package/src/models/components/transferdestination.ts +96 -10
- package/src/models/components/wallettransactiontype.ts +0 -1
- package/src/models/errors/feeplanagreementerror.ts +6 -0
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/examples/package-lock.json +0 -620
- package/examples/package.json +0 -18
- package/models/components/rtptransactiondetails.d.ts +0 -43
- package/models/components/rtptransactiondetails.d.ts.map +0 -1
- package/models/components/rtptransactiondetails.js +0 -75
- package/models/components/rtptransactiondetails.js.map +0 -1
- package/renovate.json +0 -30
- package/src/models/components/rtptransactiondetails.ts +0 -102
- package/test/package.json +0 -27
- package/test/tsconfig.json +0 -30
- package/tsconfig.json +0 -40
|
@@ -28,7 +28,6 @@ export declare const WalletTransactionType: {
|
|
|
28
28
|
readonly Adjustment: "adjustment";
|
|
29
29
|
readonly FeeRevenue: "fee-revenue";
|
|
30
30
|
readonly Residual: "residual";
|
|
31
|
-
readonly InstantBankFailure: "instant-bank-failure";
|
|
32
31
|
};
|
|
33
32
|
export type WalletTransactionType = ClosedEnum<typeof WalletTransactionType>;
|
|
34
33
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallettransactiontype.d.ts","sourceRoot":"","sources":["../../src/models/components/wallettransactiontype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"wallettransactiontype.d.ts","sourceRoot":"","sources":["../../src/models/components/wallettransactiontype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,aAAa,CAC/D,OAAO,qBAAqB,CACS,CAAC;AACxC,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,aAAa,CAChE,OAAO,qBAAqB,CACS,CAAC"}
|
|
@@ -66,7 +66,6 @@ exports.WalletTransactionType = {
|
|
|
66
66
|
Adjustment: "adjustment",
|
|
67
67
|
FeeRevenue: "fee-revenue",
|
|
68
68
|
Residual: "residual",
|
|
69
|
-
InstantBankFailure: "instant-bank-failure",
|
|
70
69
|
};
|
|
71
70
|
/** @internal */
|
|
72
71
|
exports.WalletTransactionType$inboundSchema = z.nativeEnum(exports.WalletTransactionType);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallettransactiontype.js","sourceRoot":"","sources":["../../src/models/components/wallettransactiontype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,qBAAqB,GAAG;IACnC,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,qBAAqB;IACzC,4BAA4B,EAAE,gCAAgC;IAC9D,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,sBAAsB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"wallettransactiontype.js","sourceRoot":"","sources":["../../src/models/components/wallettransactiontype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,qBAAqB,GAAG;IACnC,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,qBAAqB;IACzC,4BAA4B,EAAE,gCAAgC;IAC9D,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,sBAAsB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AACxC,gBAAgB;AACH,QAAA,oCAAoC,GAE7C,2CAAmC,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { MoovError } from "./mooverror.js";
|
|
3
3
|
export type FeePlanAgreementErrorData = {
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
6
|
+
*/
|
|
4
7
|
planID?: string | undefined;
|
|
5
8
|
};
|
|
6
9
|
export declare class FeePlanAgreementError extends MoovError {
|
|
10
|
+
/**
|
|
11
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
12
|
+
*/
|
|
7
13
|
planID?: string | undefined;
|
|
8
14
|
/** The original data that was passed to this error instance. */
|
|
9
15
|
data$: FeePlanAgreementErrorData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeplanagreementerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/feeplanagreementerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B,gEAAgE;IAChE,KAAK,EAAE,yBAAyB,CAAC;gBAG/B,GAAG,EAAE,yBAAyB,EAC9B,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAWnE;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAKlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"feeplanagreementerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/feeplanagreementerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,qBAAa,qBAAsB,SAAQ,SAAS;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B,gEAAgE;IAChE,KAAK,EAAE,yBAAyB,CAAC;gBAG/B,GAAG,EAAE,yBAAyB,EAC9B,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAWnE;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAKlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeplanagreementerror.js","sourceRoot":"","sources":["../../src/models/errors/feeplanagreementerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iDAA2C;
|
|
1
|
+
{"version":3,"file":"feeplanagreementerror.js","sourceRoot":"","sources":["../../src/models/errors/feeplanagreementerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,iDAA2C;AAS3C,MAAa,qBAAsB,SAAQ,wBAAS;IASlD,YACE,GAA8B,EAC9B,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEjD,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAtBD,sDAsBC;AAED,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,qBAAqB,CAAC,CAAC,EAAE;QAClC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC;KACpC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -123,6 +123,21 @@ async function $do(
|
|
|
123
123
|
blob,
|
|
124
124
|
payload.CreateEvidenceFileMultiPart.file.fileName,
|
|
125
125
|
);
|
|
126
|
+
} else if (
|
|
127
|
+
payload.CreateEvidenceFileMultiPart.file.content instanceof Uint8Array
|
|
128
|
+
) {
|
|
129
|
+
const contentType =
|
|
130
|
+
getContentTypeFromFileName(
|
|
131
|
+
payload.CreateEvidenceFileMultiPart.file.fileName,
|
|
132
|
+
) || "application/octet-stream";
|
|
133
|
+
appendForm(
|
|
134
|
+
body,
|
|
135
|
+
"file",
|
|
136
|
+
new Blob([
|
|
137
|
+
new Uint8Array(payload.CreateEvidenceFileMultiPart.file.content).buffer,
|
|
138
|
+
], { type: contentType }),
|
|
139
|
+
payload.CreateEvidenceFileMultiPart.file.fileName,
|
|
140
|
+
);
|
|
126
141
|
} else {
|
|
127
142
|
const contentType =
|
|
128
143
|
getContentTypeFromFileName(
|
package/src/funcs/filesUpload.ts
CHANGED
|
@@ -118,6 +118,21 @@ async function $do(
|
|
|
118
118
|
blob,
|
|
119
119
|
payload.FileUploadRequestMultiPart.file.fileName,
|
|
120
120
|
);
|
|
121
|
+
} else if (
|
|
122
|
+
payload.FileUploadRequestMultiPart.file.content instanceof Uint8Array
|
|
123
|
+
) {
|
|
124
|
+
const contentType =
|
|
125
|
+
getContentTypeFromFileName(
|
|
126
|
+
payload.FileUploadRequestMultiPart.file.fileName,
|
|
127
|
+
) || "application/octet-stream";
|
|
128
|
+
appendForm(
|
|
129
|
+
body,
|
|
130
|
+
"file",
|
|
131
|
+
new Blob([
|
|
132
|
+
new Uint8Array(payload.FileUploadRequestMultiPart.file.content).buffer,
|
|
133
|
+
], { type: contentType }),
|
|
134
|
+
payload.FileUploadRequestMultiPart.file.fileName,
|
|
135
|
+
);
|
|
121
136
|
} else {
|
|
122
137
|
const contentType =
|
|
123
138
|
getContentTypeFromFileName(
|
|
@@ -115,6 +115,22 @@ async function $do(
|
|
|
115
115
|
blob,
|
|
116
116
|
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
117
117
|
);
|
|
118
|
+
} else if (
|
|
119
|
+
payload.ImageUploadRequestMultiPart.image.content instanceof Uint8Array
|
|
120
|
+
) {
|
|
121
|
+
const contentType =
|
|
122
|
+
getContentTypeFromFileName(
|
|
123
|
+
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
124
|
+
) || "application/octet-stream";
|
|
125
|
+
appendForm(
|
|
126
|
+
body,
|
|
127
|
+
"image",
|
|
128
|
+
new Blob([
|
|
129
|
+
new Uint8Array(payload.ImageUploadRequestMultiPart.image.content)
|
|
130
|
+
.buffer,
|
|
131
|
+
], { type: contentType }),
|
|
132
|
+
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
133
|
+
);
|
|
118
134
|
} else {
|
|
119
135
|
const contentType =
|
|
120
136
|
getContentTypeFromFileName(
|
|
@@ -113,6 +113,22 @@ async function $do(
|
|
|
113
113
|
blob,
|
|
114
114
|
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
115
115
|
);
|
|
116
|
+
} else if (
|
|
117
|
+
payload.ImageUploadRequestMultiPart.image.content instanceof Uint8Array
|
|
118
|
+
) {
|
|
119
|
+
const contentType =
|
|
120
|
+
getContentTypeFromFileName(
|
|
121
|
+
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
122
|
+
) || "application/octet-stream";
|
|
123
|
+
appendForm(
|
|
124
|
+
body,
|
|
125
|
+
"image",
|
|
126
|
+
new Blob([
|
|
127
|
+
new Uint8Array(payload.ImageUploadRequestMultiPart.image.content)
|
|
128
|
+
.buffer,
|
|
129
|
+
], { type: contentType }),
|
|
130
|
+
payload.ImageUploadRequestMultiPart.image.fileName,
|
|
131
|
+
);
|
|
116
132
|
} else {
|
|
117
133
|
const contentType =
|
|
118
134
|
getContentTypeFromFileName(
|
package/src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "v2025.07.00",
|
|
76
|
-
sdkVersion: "25.7.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 25.7.
|
|
76
|
+
sdkVersion: "25.7.10",
|
|
77
|
+
genVersion: "2.856.1",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 25.7.10 2.856.1 v2025.07.00 @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/lib/matchers.ts
CHANGED
|
@@ -248,8 +248,9 @@ export function match<T, E>(
|
|
|
248
248
|
raw = body;
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
throw new Error(
|
|
252
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
253
|
+
);
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
if (matcher.enc === "fail") {
|
package/src/lib/security.ts
CHANGED
|
@@ -197,8 +197,7 @@ export function resolveSecurity(
|
|
|
197
197
|
applyBearer(state, spec);
|
|
198
198
|
break;
|
|
199
199
|
default:
|
|
200
|
-
spec satisfies never;
|
|
201
|
-
throw SecurityError.unrecognizedType(type);
|
|
200
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
202
201
|
}
|
|
203
202
|
});
|
|
204
203
|
|
package/src/mcp-server/server.ts
CHANGED
package/src/mcp-server/shared.ts
CHANGED
|
@@ -16,12 +16,12 @@ export async function consumeStream(
|
|
|
16
16
|
stream: ReadableStream<Uint8Array>,
|
|
17
17
|
): Promise<Uint8Array> {
|
|
18
18
|
const reader = stream.getReader();
|
|
19
|
-
const chunks:
|
|
19
|
+
const chunks: ArrayBuffer[] = [];
|
|
20
20
|
|
|
21
21
|
try {
|
|
22
22
|
while (true) {
|
|
23
23
|
const { done, value } = await reader.read();
|
|
24
|
-
if (value != null) chunks.push(value);
|
|
24
|
+
if (value != null) chunks.push(new Uint8Array(value).buffer);
|
|
25
25
|
if (done) break;
|
|
26
26
|
}
|
|
27
27
|
} finally {
|
|
@@ -24,6 +24,9 @@ import {
|
|
|
24
24
|
} from "./feeproperties.js";
|
|
25
25
|
|
|
26
26
|
export type BillableFee = {
|
|
27
|
+
/**
|
|
28
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
29
|
+
*/
|
|
27
30
|
billableFeeID?: string | undefined;
|
|
28
31
|
/**
|
|
29
32
|
* A unique code identifying a charge.
|
|
@@ -8,6 +8,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type CreateFeePlanAgreement = {
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
13
|
+
*/
|
|
11
14
|
planID: string;
|
|
12
15
|
};
|
|
13
16
|
|
|
@@ -43,7 +43,7 @@ export type CreatePaymentLinkLineItem = {
|
|
|
43
43
|
* Optional list of images associated with this line item.
|
|
44
44
|
*
|
|
45
45
|
* @remarks
|
|
46
|
-
* This field is deprecated
|
|
46
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
47
47
|
*
|
|
48
48
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
49
|
*/
|
|
@@ -52,7 +52,8 @@ export type CreatePaymentLinkLineItem = {
|
|
|
52
52
|
* Optional unique identifier associating the line item with a product.
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
*
|
|
55
|
+
* When provided, images associated with the product will be included on the line item.
|
|
56
|
+
* This does not populate other details of the line item.
|
|
56
57
|
*/
|
|
57
58
|
productID?: string | undefined;
|
|
58
59
|
};
|
|
@@ -33,7 +33,7 @@ export type CreatePaymentLinkLineItemOption = {
|
|
|
33
33
|
* Optional list of images associated with this line item option.
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* This field is deprecated
|
|
36
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
37
37
|
*
|
|
38
38
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
39
39
|
*/
|
|
@@ -47,7 +47,12 @@ export type CreateScheduledTransferLineItem = {
|
|
|
47
47
|
*/
|
|
48
48
|
productID?: string | undefined;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Optional list of images associated with this line item.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
51
56
|
*/
|
|
52
57
|
imageIDs?: Array<string> | undefined;
|
|
53
58
|
};
|
|
@@ -34,7 +34,12 @@ export type CreateScheduledTransferLineItemOption = {
|
|
|
34
34
|
*/
|
|
35
35
|
group?: string | undefined;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Optional list of images associated with this line item option.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
43
|
*/
|
|
39
44
|
imageIDs?: Array<string> | undefined;
|
|
40
45
|
};
|
|
@@ -40,7 +40,12 @@ export type CreateTransferLineItem = {
|
|
|
40
40
|
*/
|
|
41
41
|
options?: Array<CreateTransferLineItemOption> | undefined;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Optional list of images associated with this line item.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
47
|
+
*
|
|
48
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
44
49
|
*/
|
|
45
50
|
imageIDs?: Array<string> | undefined;
|
|
46
51
|
/**
|
|
@@ -30,7 +30,12 @@ export type CreateTransferLineItemOption = {
|
|
|
30
30
|
*/
|
|
31
31
|
priceModifier?: AmountDecimal | undefined;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Optional list of images associated with this line item option.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
39
|
*/
|
|
35
40
|
imageIDs?: Array<string> | undefined;
|
|
36
41
|
/**
|
|
@@ -31,6 +31,9 @@ import {
|
|
|
31
31
|
} from "./monthlyplatformfee.js";
|
|
32
32
|
|
|
33
33
|
export type FeePlan = {
|
|
34
|
+
/**
|
|
35
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
36
|
+
*/
|
|
34
37
|
planID: string;
|
|
35
38
|
/**
|
|
36
39
|
* The name of the fee plan.
|
|
@@ -36,8 +36,17 @@ import {
|
|
|
36
36
|
} from "./monthlyplatformfee.js";
|
|
37
37
|
|
|
38
38
|
export type FeePlanAgreement = {
|
|
39
|
+
/**
|
|
40
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
41
|
+
*/
|
|
39
42
|
agreementID: string;
|
|
43
|
+
/**
|
|
44
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
45
|
+
*/
|
|
40
46
|
planID: string;
|
|
47
|
+
/**
|
|
48
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
49
|
+
*/
|
|
41
50
|
accountID?: string | undefined;
|
|
42
51
|
/**
|
|
43
52
|
* The name of the agreement.
|
|
@@ -11,11 +11,29 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
* The entity that generated the fee.
|
|
12
12
|
*/
|
|
13
13
|
export type GeneratedBy = {
|
|
14
|
+
/**
|
|
15
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
16
|
+
*/
|
|
14
17
|
transferID?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
20
|
+
*/
|
|
15
21
|
cardID?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
24
|
+
*/
|
|
16
25
|
disputeID?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
28
|
+
*/
|
|
17
29
|
accountID?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
32
|
+
*/
|
|
18
33
|
bankAccountID?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
36
|
+
*/
|
|
19
37
|
invoiceID?: string | undefined;
|
|
20
38
|
};
|
|
21
39
|
|
|
@@ -23,6 +23,9 @@ import {
|
|
|
23
23
|
* A fee incurred by a user.
|
|
24
24
|
*/
|
|
25
25
|
export type IncurredFee = {
|
|
26
|
+
/**
|
|
27
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
28
|
+
*/
|
|
26
29
|
feeID?: string | undefined;
|
|
27
30
|
/**
|
|
28
31
|
* Account ID the fee belongs to.
|
|
@@ -398,7 +398,6 @@ export * from "./rtpfailurecode.js";
|
|
|
398
398
|
export * from "./rtpinstitution.js";
|
|
399
399
|
export * from "./rtprejectioncode.js";
|
|
400
400
|
export * from "./rtpservices.js";
|
|
401
|
-
export * from "./rtptransactiondetails.js";
|
|
402
401
|
export * from "./rtptransactionstatus.js";
|
|
403
402
|
export * from "./runtransfer.js";
|
|
404
403
|
export * from "./scheduledtransferimagemetadata.js";
|
|
@@ -36,8 +36,17 @@ import {
|
|
|
36
36
|
} from "./monthlyplatformfee.js";
|
|
37
37
|
|
|
38
38
|
export type PartnerPricingAgreement = {
|
|
39
|
+
/**
|
|
40
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
41
|
+
*/
|
|
39
42
|
agreementID: string;
|
|
43
|
+
/**
|
|
44
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
45
|
+
*/
|
|
40
46
|
planID: string;
|
|
47
|
+
/**
|
|
48
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
49
|
+
*/
|
|
41
50
|
accountID?: string | undefined;
|
|
42
51
|
/**
|
|
43
52
|
* The name of the agreement.
|
|
@@ -25,11 +25,15 @@ import {
|
|
|
25
25
|
CardTransactionDetails$outboundSchema,
|
|
26
26
|
} from "./cardtransactiondetails.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
RTPFailureCode,
|
|
29
|
+
RTPFailureCode$inboundSchema,
|
|
30
|
+
RTPFailureCode$outboundSchema,
|
|
31
|
+
} from "./rtpfailurecode.js";
|
|
32
|
+
import {
|
|
33
|
+
RTPTransactionStatus,
|
|
34
|
+
RTPTransactionStatus$inboundSchema,
|
|
35
|
+
RTPTransactionStatus$outboundSchema,
|
|
36
|
+
} from "./rtptransactionstatus.js";
|
|
33
37
|
import {
|
|
34
38
|
TransferAccount,
|
|
35
39
|
TransferAccount$inboundSchema,
|
|
@@ -60,6 +64,30 @@ import {
|
|
|
60
64
|
TransferPaymentMethodType$outboundSchema,
|
|
61
65
|
} from "./transferpaymentmethodtype.js";
|
|
62
66
|
|
|
67
|
+
/**
|
|
68
|
+
* DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
|
|
69
|
+
*
|
|
70
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
71
|
+
*/
|
|
72
|
+
export type RtpDetails = {
|
|
73
|
+
/**
|
|
74
|
+
* Status of a transaction within the RTP lifecycle.
|
|
75
|
+
*/
|
|
76
|
+
status?: RTPTransactionStatus | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Response code returned by network on failure.
|
|
79
|
+
*/
|
|
80
|
+
networkResponseCode?: string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Status codes for RTP failures.
|
|
83
|
+
*/
|
|
84
|
+
failureCode?: RTPFailureCode | undefined;
|
|
85
|
+
initiatedOn?: Date | undefined;
|
|
86
|
+
completedOn?: Date | undefined;
|
|
87
|
+
failedOn?: Date | undefined;
|
|
88
|
+
acceptedWithoutPostingOn?: Date | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
63
91
|
export type TransferDestination = {
|
|
64
92
|
paymentMethodID: string;
|
|
65
93
|
/**
|
|
@@ -89,11 +117,69 @@ export type TransferDestination = {
|
|
|
89
117
|
*/
|
|
90
118
|
cardDetails?: CardTransactionDetails | undefined;
|
|
91
119
|
/**
|
|
92
|
-
*
|
|
120
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
93
121
|
*/
|
|
94
|
-
rtpDetails?:
|
|
122
|
+
rtpDetails?: RtpDetails | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const RtpDetails$inboundSchema: z.ZodType<
|
|
127
|
+
RtpDetails,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
status: RTPTransactionStatus$inboundSchema.optional(),
|
|
132
|
+
networkResponseCode: z.string().optional(),
|
|
133
|
+
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
134
|
+
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
|
+
.optional(),
|
|
136
|
+
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
137
|
+
.optional(),
|
|
138
|
+
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
|
+
.optional(),
|
|
140
|
+
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
|
|
141
|
+
new Date(v)
|
|
142
|
+
).optional(),
|
|
143
|
+
});
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type RtpDetails$Outbound = {
|
|
146
|
+
status?: string | undefined;
|
|
147
|
+
networkResponseCode?: string | undefined;
|
|
148
|
+
failureCode?: string | undefined;
|
|
149
|
+
initiatedOn?: string | undefined;
|
|
150
|
+
completedOn?: string | undefined;
|
|
151
|
+
failedOn?: string | undefined;
|
|
152
|
+
acceptedWithoutPostingOn?: string | undefined;
|
|
95
153
|
};
|
|
96
154
|
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const RtpDetails$outboundSchema: z.ZodType<
|
|
157
|
+
RtpDetails$Outbound,
|
|
158
|
+
z.ZodTypeDef,
|
|
159
|
+
RtpDetails
|
|
160
|
+
> = z.object({
|
|
161
|
+
status: RTPTransactionStatus$outboundSchema.optional(),
|
|
162
|
+
networkResponseCode: z.string().optional(),
|
|
163
|
+
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
164
|
+
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
165
|
+
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
166
|
+
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
167
|
+
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
export function rtpDetailsToJSON(rtpDetails: RtpDetails): string {
|
|
171
|
+
return JSON.stringify(RtpDetails$outboundSchema.parse(rtpDetails));
|
|
172
|
+
}
|
|
173
|
+
export function rtpDetailsFromJSON(
|
|
174
|
+
jsonString: string,
|
|
175
|
+
): SafeParseResult<RtpDetails, SDKValidationError> {
|
|
176
|
+
return safeParse(
|
|
177
|
+
jsonString,
|
|
178
|
+
(x) => RtpDetails$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
+
`Failed to parse 'RtpDetails' from JSON`,
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
97
183
|
/** @internal */
|
|
98
184
|
export const TransferDestination$inboundSchema: z.ZodType<
|
|
99
185
|
TransferDestination,
|
|
@@ -109,7 +195,7 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
109
195
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
110
196
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
111
197
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
112
|
-
rtpDetails:
|
|
198
|
+
rtpDetails: z.lazy(() => RtpDetails$inboundSchema).optional(),
|
|
113
199
|
});
|
|
114
200
|
/** @internal */
|
|
115
201
|
export type TransferDestination$Outbound = {
|
|
@@ -122,7 +208,7 @@ export type TransferDestination$Outbound = {
|
|
|
122
208
|
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
123
209
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
124
210
|
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
125
|
-
rtpDetails?:
|
|
211
|
+
rtpDetails?: RtpDetails$Outbound | undefined;
|
|
126
212
|
};
|
|
127
213
|
|
|
128
214
|
/** @internal */
|
|
@@ -140,7 +226,7 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
140
226
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
141
227
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
142
228
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
143
|
-
rtpDetails:
|
|
229
|
+
rtpDetails: z.lazy(() => RtpDetails$outboundSchema).optional(),
|
|
144
230
|
});
|
|
145
231
|
|
|
146
232
|
export function transferDestinationToJSON(
|
|
@@ -33,7 +33,6 @@ export const WalletTransactionType = {
|
|
|
33
33
|
Adjustment: "adjustment",
|
|
34
34
|
FeeRevenue: "fee-revenue",
|
|
35
35
|
Residual: "residual",
|
|
36
|
-
InstantBankFailure: "instant-bank-failure",
|
|
37
36
|
} as const;
|
|
38
37
|
export type WalletTransactionType = ClosedEnum<typeof WalletTransactionType>;
|
|
39
38
|
|
|
@@ -6,10 +6,16 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { MoovError } from "./mooverror.js";
|
|
7
7
|
|
|
8
8
|
export type FeePlanAgreementErrorData = {
|
|
9
|
+
/**
|
|
10
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
11
|
+
*/
|
|
9
12
|
planID?: string | undefined;
|
|
10
13
|
};
|
|
11
14
|
|
|
12
15
|
export class FeePlanAgreementError extends MoovError {
|
|
16
|
+
/**
|
|
17
|
+
* A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
|
|
18
|
+
*/
|
|
13
19
|
planID?: string | undefined;
|
|
14
20
|
|
|
15
21
|
/** The original data that was passed to this error instance. */
|