@moovio/sdk 25.12.1 → 25.12.3
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 +2 -2
- package/bin/mcp-server.js +18 -13
- package/bin/mcp-server.js.map +20 -20
- package/funcs/bankAccountsLink.d.ts +1 -1
- package/funcs/bankAccountsLink.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/http.d.ts +1 -1
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +1 -1
- package/lib/http.js.map +1 -1
- package/lib/security.d.ts +5 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -7
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/bankAccountsLink.js +1 -1
- package/models/components/capabilityid.d.ts +1 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +1 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardbrandfees.d.ts +5 -0
- package/models/components/cardbrandfees.d.ts.map +1 -1
- package/models/components/cardbrandfees.js +2 -0
- package/models/components/cardbrandfees.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +1 -3
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/issuedcard.d.ts +1 -3
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +2 -8
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +1 -5
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/manualtermsofservice.d.ts +1 -1
- package/models/components/manualtermsofserviceupdate.d.ts +1 -1
- package/models/components/patchtransfer.d.ts +3 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js.map +1 -1
- package/models/components/termsofservice.d.ts +1 -1
- package/models/operations/linkbankaccount.d.ts +1 -1
- package/models/operations/listissuedcards.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/bankaccounts.d.ts +1 -1
- package/sdk/bankaccounts.js +1 -1
- package/src/funcs/bankAccountsLink.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
- package/src/models/components/capabilityid.ts +1 -0
- package/src/models/components/cardbrandfees.ts +7 -0
- package/src/models/components/fullissuedcard.ts +1 -3
- package/src/models/components/issuedcard.ts +1 -3
- package/src/models/components/issuedcardstate.ts +2 -8
- package/src/models/components/manualtermsofservice.ts +1 -1
- package/src/models/components/manualtermsofserviceupdate.ts +1 -1
- package/src/models/components/patchtransfer.ts +3 -0
- package/src/models/components/termsofservice.ts +1 -1
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/sdk/bankaccounts.ts +1 -1
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
31
31
|
*
|
|
32
32
|
* It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
|
|
33
|
-
* bank
|
|
33
|
+
* bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
34
34
|
* Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
35
35
|
* endpoint to wait for the new payment methods to be available for use.
|
|
36
36
|
*
|
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.10.00",
|
|
76
|
-
sdkVersion: "25.12.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 25.12.
|
|
76
|
+
sdkVersion: "25.12.3",
|
|
77
|
+
genVersion: "2.917.0",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 25.12.3 2.917.0 v2025.10.00 @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/lib/http.ts
CHANGED
|
@@ -45,8 +45,10 @@ export class HTTPClient {
|
|
|
45
45
|
private requestHooks: BeforeRequestHook[] = [];
|
|
46
46
|
private requestErrorHooks: RequestErrorHook[] = [];
|
|
47
47
|
private responseHooks: ResponseHook[] = [];
|
|
48
|
+
private options: HTTPClientOptions;
|
|
48
49
|
|
|
49
|
-
constructor(
|
|
50
|
+
constructor(options: HTTPClientOptions = {}) {
|
|
51
|
+
this.options = options;
|
|
50
52
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
|
51
53
|
}
|
|
52
54
|
|
package/src/lib/security.ts
CHANGED
|
@@ -12,17 +12,22 @@ type OAuth2PasswordFlow = {
|
|
|
12
12
|
tokenURL: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export
|
|
16
|
-
Incomplete
|
|
17
|
-
UnrecognisedSecurityType
|
|
18
|
-
}
|
|
15
|
+
export const SecurityErrorCode = {
|
|
16
|
+
Incomplete: "incomplete",
|
|
17
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
18
|
+
} as const;
|
|
19
|
+
export type SecurityErrorCode =
|
|
20
|
+
(typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
|
|
19
21
|
|
|
20
22
|
export class SecurityError extends Error {
|
|
23
|
+
public code: SecurityErrorCode;
|
|
24
|
+
|
|
21
25
|
constructor(
|
|
22
|
-
|
|
26
|
+
code: SecurityErrorCode,
|
|
23
27
|
message: string,
|
|
24
28
|
) {
|
|
25
29
|
super(message);
|
|
30
|
+
this.code = code;
|
|
26
31
|
this.name = "SecurityError";
|
|
27
32
|
}
|
|
28
33
|
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -16,7 +16,7 @@ export const tool$bankAccountsLink: ToolDefinition<typeof args> = {
|
|
|
16
16
|
`Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
17
17
|
|
|
18
18
|
It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
|
|
19
|
-
bank
|
|
19
|
+
bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
20
20
|
Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
21
21
|
endpoint to wait for the new payment methods to be available for use.
|
|
22
22
|
|
|
@@ -33,6 +33,7 @@ export const CapabilityID = {
|
|
|
33
33
|
Wallet: "wallet",
|
|
34
34
|
WalletBalance: "wallet.balance",
|
|
35
35
|
CardIssuing: "card-issuing",
|
|
36
|
+
IssuingCardholder: "issuing.cardholder",
|
|
36
37
|
ProductionApp: "production-app",
|
|
37
38
|
PlatformProductionApp: "platform.production-app",
|
|
38
39
|
PlatformWalletTransfers: "platform.wallet-transfers",
|
|
@@ -56,6 +56,10 @@ export type CardBrandFees = {
|
|
|
56
56
|
* Details of refunded transactions.
|
|
57
57
|
*/
|
|
58
58
|
refunds?: BillingCountAndAmount | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Details of card cancellations.
|
|
61
|
+
*/
|
|
62
|
+
cardCancellations?: BillingCountAndAmount | undefined;
|
|
59
63
|
/**
|
|
60
64
|
* Total fees for this card brand.
|
|
61
65
|
*/
|
|
@@ -79,6 +83,7 @@ export const CardBrandFees$inboundSchema: z.ZodType<
|
|
|
79
83
|
.optional(),
|
|
80
84
|
declines: BillingCountAndAmount$inboundSchema.optional(),
|
|
81
85
|
refunds: BillingCountAndAmount$inboundSchema.optional(),
|
|
86
|
+
cardCancellations: BillingCountAndAmount$inboundSchema.optional(),
|
|
82
87
|
total: BillingCountAndAmount$inboundSchema,
|
|
83
88
|
});
|
|
84
89
|
/** @internal */
|
|
@@ -94,6 +99,7 @@ export type CardBrandFees$Outbound = {
|
|
|
94
99
|
completedInternationalInPerson?: BillingCountAndAmount$Outbound | undefined;
|
|
95
100
|
declines?: BillingCountAndAmount$Outbound | undefined;
|
|
96
101
|
refunds?: BillingCountAndAmount$Outbound | undefined;
|
|
102
|
+
cardCancellations?: BillingCountAndAmount$Outbound | undefined;
|
|
97
103
|
total: BillingCountAndAmount$Outbound;
|
|
98
104
|
};
|
|
99
105
|
|
|
@@ -114,6 +120,7 @@ export const CardBrandFees$outboundSchema: z.ZodType<
|
|
|
114
120
|
.optional(),
|
|
115
121
|
declines: BillingCountAndAmount$outboundSchema.optional(),
|
|
116
122
|
refunds: BillingCountAndAmount$outboundSchema.optional(),
|
|
123
|
+
cardCancellations: BillingCountAndAmount$outboundSchema.optional(),
|
|
117
124
|
total: BillingCountAndAmount$outboundSchema,
|
|
118
125
|
});
|
|
119
126
|
|
|
@@ -79,10 +79,8 @@ export type FullIssuedCard = {
|
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
81
|
*
|
|
82
|
-
* - `active`: The card is operational and
|
|
83
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
82
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
84
83
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
85
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
86
84
|
*/
|
|
87
85
|
state: IssuedCardState;
|
|
88
86
|
/**
|
|
@@ -76,10 +76,8 @@ export type IssuedCard = {
|
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
78
|
*
|
|
79
|
-
* - `active`: The card is operational and
|
|
80
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
79
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
81
80
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
82
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
83
81
|
*/
|
|
84
82
|
state: IssuedCardState;
|
|
85
83
|
/**
|
|
@@ -10,15 +10,11 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
|
-
* - `active`: The card is operational and
|
|
14
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
13
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
15
14
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
16
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
17
15
|
*/
|
|
18
16
|
export const IssuedCardState = {
|
|
19
17
|
Active: "active",
|
|
20
|
-
Inactive: "inactive",
|
|
21
|
-
PendingVerification: "pending-verification",
|
|
22
18
|
Closed: "closed",
|
|
23
19
|
} as const;
|
|
24
20
|
/**
|
|
@@ -26,10 +22,8 @@ export const IssuedCardState = {
|
|
|
26
22
|
*
|
|
27
23
|
* @remarks
|
|
28
24
|
*
|
|
29
|
-
* - `active`: The card is operational and
|
|
30
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
25
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
31
26
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
32
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
33
27
|
*/
|
|
34
28
|
export type IssuedCardState = ClosedEnum<typeof IssuedCardState>;
|
|
35
29
|
|
|
@@ -16,7 +16,7 @@ export type ManualTermsOfServiceUpdate = {
|
|
|
16
16
|
*/
|
|
17
17
|
acceptedDate?: Date | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* The IP address from which the terms of service were accepted.
|
|
19
|
+
* The IP address (IPv4 or IPv6) from which the terms of service were accepted.
|
|
20
20
|
*/
|
|
21
21
|
acceptedIP?: string | undefined;
|
|
22
22
|
/**
|
|
@@ -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 PatchTransfer = {
|
|
11
|
+
/**
|
|
12
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
13
|
+
*/
|
|
11
14
|
metadata?: { [k: string]: string } | null | undefined;
|
|
12
15
|
/**
|
|
13
16
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
@@ -16,7 +16,7 @@ export type LinkBankAccountRequest = {
|
|
|
16
16
|
* @remarks
|
|
17
17
|
*
|
|
18
18
|
* When this header is set to `payment-method`, the response will include any payment methods that were created for the newly
|
|
19
|
-
* linked
|
|
19
|
+
* linked bank account in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
|
|
20
20
|
*/
|
|
21
21
|
xWaitFor?: components.BankAccountWaitFor | undefined;
|
|
22
22
|
accountID: string;
|
|
@@ -17,7 +17,7 @@ export type ListIssuedCardsRequest = {
|
|
|
17
17
|
skip?: number | undefined;
|
|
18
18
|
count?: number | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* Optional, comma-separated states to filter the Moov list issued cards response. For example `active,
|
|
20
|
+
* Optional, comma-separated states to filter the Moov list issued cards response. For example `active,closed`
|
|
21
21
|
*/
|
|
22
22
|
states?: Array<components.IssuedCardState> | undefined;
|
|
23
23
|
};
|
package/src/sdk/bankaccounts.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class BankAccounts extends ClientSDK {
|
|
|
20
20
|
* Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
21
21
|
*
|
|
22
22
|
* It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
|
|
23
|
-
* bank
|
|
23
|
+
* bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
|
|
24
24
|
* Methods](https://docs.moov.io/api/sources/payment-methods/list/)
|
|
25
25
|
* endpoint to wait for the new payment methods to be available for use.
|
|
26
26
|
*
|