@moovio/sdk 0.10.2 → 0.10.4
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 +41 -32
- package/bin/mcp-server.js.map +10 -10
- package/docs/sdks/transfers/README.md +8 -0
- package/hooks/types.d.ts +1 -1
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/card.d.ts +12 -12
- package/models/components/card.d.ts.map +1 -1
- package/models/components/card.js +12 -12
- package/models/components/card.js.map +1 -1
- package/models/components/createtransfer.d.ts +5 -0
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +2 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/paymentmethodscard.d.ts +8 -8
- package/models/components/paymentmethodscard.d.ts.map +1 -1
- package/models/components/paymentmethodscard.js +8 -8
- package/models/components/paymentmethodscard.js.map +1 -1
- package/models/components/transfer.d.ts +5 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -0
- package/models/components/transfer.js.map +1 -1
- package/models/errors/transfer.d.ts +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/card.ts +24 -24
- package/src/models/components/createtransfer.ts +7 -0
- package/src/models/components/paymentmethodscard.ts +16 -16
- package/src/models/components/transfer.ts +7 -0
- package/src/models/errors/transfer.ts +12 -0
package/src/hooks/types.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SecurityState } from "../lib/security.js";
|
|
|
9
9
|
export type HookContext = {
|
|
10
10
|
baseURL: string | URL;
|
|
11
11
|
operationID: string;
|
|
12
|
-
oAuth2Scopes
|
|
12
|
+
oAuth2Scopes: string[] | null;
|
|
13
13
|
securitySource?: any | (() => Promise<any>);
|
|
14
14
|
retryConfig: RetryConfig;
|
|
15
15
|
resolvedSecurity: SecurityState | null;
|
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "latest",
|
|
72
|
-
sdkVersion: "0.10.
|
|
73
|
-
genVersion: "2.
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
72
|
+
sdkVersion: "0.10.4",
|
|
73
|
+
genVersion: "2.563.0",
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.10.4 2.563.0 latest @moovio/sdk",
|
|
75
75
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -112,19 +112,19 @@ export type Card = {
|
|
|
112
112
|
/**
|
|
113
113
|
* Financial institution that issued the card.
|
|
114
114
|
*/
|
|
115
|
-
issuer
|
|
115
|
+
issuer?: string | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* Country where the card was issued.
|
|
118
118
|
*/
|
|
119
|
-
issuerCountry
|
|
119
|
+
issuerCountry?: string | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* URL of the issuer.
|
|
122
122
|
*/
|
|
123
|
-
issuerURL
|
|
123
|
+
issuerURL?: string | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Phone number of the issuer.
|
|
126
126
|
*/
|
|
127
|
-
issuerPhone
|
|
127
|
+
issuerPhone?: string | undefined;
|
|
128
128
|
/**
|
|
129
129
|
* If true, the card is for commercial use, or associated with a business.
|
|
130
130
|
*
|
|
@@ -151,11 +151,11 @@ export type Card = {
|
|
|
151
151
|
/**
|
|
152
152
|
* Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
153
153
|
*/
|
|
154
|
-
domesticPushToCard
|
|
154
|
+
domesticPushToCard?: DomesticPushToCard | undefined;
|
|
155
155
|
/**
|
|
156
156
|
* Indicates if the card supports domestic pull-from-card transfer.
|
|
157
157
|
*/
|
|
158
|
-
domesticPullFromCard
|
|
158
|
+
domesticPullFromCard?: DomesticPullFromCard | undefined;
|
|
159
159
|
paymentMethods?: Array<BasicPaymentMethod> | undefined;
|
|
160
160
|
};
|
|
161
161
|
|
|
@@ -173,17 +173,17 @@ export const Card$inboundSchema: z.ZodType<Card, z.ZodTypeDef, unknown> = z
|
|
|
173
173
|
holderName: z.string().optional(),
|
|
174
174
|
billingAddress: CardAddress$inboundSchema,
|
|
175
175
|
cardVerification: CardVerification$inboundSchema,
|
|
176
|
-
issuer: z.string(),
|
|
177
|
-
issuerCountry: z.string(),
|
|
178
|
-
issuerURL: z.string(),
|
|
179
|
-
issuerPhone: z.string(),
|
|
176
|
+
issuer: z.string().optional(),
|
|
177
|
+
issuerCountry: z.string().optional(),
|
|
178
|
+
issuerURL: z.string().optional(),
|
|
179
|
+
issuerPhone: z.string().optional(),
|
|
180
180
|
commercial: z.boolean().optional(),
|
|
181
181
|
regulated: z.boolean().optional(),
|
|
182
182
|
cardOnFile: z.boolean().optional(),
|
|
183
183
|
merchantAccountID: z.string().optional(),
|
|
184
184
|
cardAccountUpdater: CardAccountUpdater$inboundSchema.optional(),
|
|
185
|
-
domesticPushToCard: DomesticPushToCard$inboundSchema,
|
|
186
|
-
domesticPullFromCard: DomesticPullFromCard$inboundSchema,
|
|
185
|
+
domesticPushToCard: DomesticPushToCard$inboundSchema.optional(),
|
|
186
|
+
domesticPullFromCard: DomesticPullFromCard$inboundSchema.optional(),
|
|
187
187
|
paymentMethods: z.array(BasicPaymentMethod$inboundSchema).optional(),
|
|
188
188
|
});
|
|
189
189
|
|
|
@@ -200,17 +200,17 @@ export type Card$Outbound = {
|
|
|
200
200
|
holderName?: string | undefined;
|
|
201
201
|
billingAddress: CardAddress$Outbound;
|
|
202
202
|
cardVerification: CardVerification$Outbound;
|
|
203
|
-
issuer
|
|
204
|
-
issuerCountry
|
|
205
|
-
issuerURL
|
|
206
|
-
issuerPhone
|
|
203
|
+
issuer?: string | undefined;
|
|
204
|
+
issuerCountry?: string | undefined;
|
|
205
|
+
issuerURL?: string | undefined;
|
|
206
|
+
issuerPhone?: string | undefined;
|
|
207
207
|
commercial?: boolean | undefined;
|
|
208
208
|
regulated?: boolean | undefined;
|
|
209
209
|
cardOnFile?: boolean | undefined;
|
|
210
210
|
merchantAccountID?: string | undefined;
|
|
211
211
|
cardAccountUpdater?: CardAccountUpdater$Outbound | undefined;
|
|
212
|
-
domesticPushToCard
|
|
213
|
-
domesticPullFromCard
|
|
212
|
+
domesticPushToCard?: string | undefined;
|
|
213
|
+
domesticPullFromCard?: string | undefined;
|
|
214
214
|
paymentMethods?: Array<BasicPaymentMethod$Outbound> | undefined;
|
|
215
215
|
};
|
|
216
216
|
|
|
@@ -228,17 +228,17 @@ export const Card$outboundSchema: z.ZodType<Card$Outbound, z.ZodTypeDef, Card> =
|
|
|
228
228
|
holderName: z.string().optional(),
|
|
229
229
|
billingAddress: CardAddress$outboundSchema,
|
|
230
230
|
cardVerification: CardVerification$outboundSchema,
|
|
231
|
-
issuer: z.string(),
|
|
232
|
-
issuerCountry: z.string(),
|
|
233
|
-
issuerURL: z.string(),
|
|
234
|
-
issuerPhone: z.string(),
|
|
231
|
+
issuer: z.string().optional(),
|
|
232
|
+
issuerCountry: z.string().optional(),
|
|
233
|
+
issuerURL: z.string().optional(),
|
|
234
|
+
issuerPhone: z.string().optional(),
|
|
235
235
|
commercial: z.boolean().optional(),
|
|
236
236
|
regulated: z.boolean().optional(),
|
|
237
237
|
cardOnFile: z.boolean().optional(),
|
|
238
238
|
merchantAccountID: z.string().optional(),
|
|
239
239
|
cardAccountUpdater: CardAccountUpdater$outboundSchema.optional(),
|
|
240
|
-
domesticPushToCard: DomesticPushToCard$outboundSchema,
|
|
241
|
-
domesticPullFromCard: DomesticPullFromCard$outboundSchema,
|
|
240
|
+
domesticPushToCard: DomesticPushToCard$outboundSchema.optional(),
|
|
241
|
+
domesticPullFromCard: DomesticPullFromCard$outboundSchema.optional(),
|
|
242
242
|
paymentMethods: z.array(BasicPaymentMethod$outboundSchema).optional(),
|
|
243
243
|
});
|
|
244
244
|
|
|
@@ -53,6 +53,10 @@ export type CreateTransfer = {
|
|
|
53
53
|
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
54
54
|
*/
|
|
55
55
|
metadata?: { [k: string]: string } | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
58
|
+
*/
|
|
59
|
+
salesTaxAmount?: Amount | undefined;
|
|
56
60
|
};
|
|
57
61
|
|
|
58
62
|
/** @internal */
|
|
@@ -67,6 +71,7 @@ export const CreateTransfer$inboundSchema: z.ZodType<
|
|
|
67
71
|
facilitatorFee: FacilitatorFee$inboundSchema.optional(),
|
|
68
72
|
description: z.string().optional(),
|
|
69
73
|
metadata: z.record(z.string()).optional(),
|
|
74
|
+
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
70
75
|
});
|
|
71
76
|
|
|
72
77
|
/** @internal */
|
|
@@ -77,6 +82,7 @@ export type CreateTransfer$Outbound = {
|
|
|
77
82
|
facilitatorFee?: FacilitatorFee$Outbound | undefined;
|
|
78
83
|
description?: string | undefined;
|
|
79
84
|
metadata?: { [k: string]: string } | undefined;
|
|
85
|
+
salesTaxAmount?: Amount$Outbound | undefined;
|
|
80
86
|
};
|
|
81
87
|
|
|
82
88
|
/** @internal */
|
|
@@ -91,6 +97,7 @@ export const CreateTransfer$outboundSchema: z.ZodType<
|
|
|
91
97
|
facilitatorFee: FacilitatorFee$outboundSchema.optional(),
|
|
92
98
|
description: z.string().optional(),
|
|
93
99
|
metadata: z.record(z.string()).optional(),
|
|
100
|
+
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
94
101
|
});
|
|
95
102
|
|
|
96
103
|
/**
|
|
@@ -99,11 +99,11 @@ export type PaymentMethodsCard = {
|
|
|
99
99
|
/**
|
|
100
100
|
* Financial institution that issued the card.
|
|
101
101
|
*/
|
|
102
|
-
issuer
|
|
102
|
+
issuer?: string | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* Country where the card was issued.
|
|
105
105
|
*/
|
|
106
|
-
issuerCountry
|
|
106
|
+
issuerCountry?: string | undefined;
|
|
107
107
|
/**
|
|
108
108
|
* Indicates cardholder has authorized card to be stored for future payments.
|
|
109
109
|
*/
|
|
@@ -116,11 +116,11 @@ export type PaymentMethodsCard = {
|
|
|
116
116
|
/**
|
|
117
117
|
* Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
118
118
|
*/
|
|
119
|
-
domesticPushToCard
|
|
119
|
+
domesticPushToCard?: DomesticPushToCard | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* Indicates if the card supports domestic pull-from-card transfer.
|
|
122
122
|
*/
|
|
123
|
-
domesticPullFromCard
|
|
123
|
+
domesticPullFromCard?: DomesticPullFromCard | undefined;
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
/** @internal */
|
|
@@ -139,13 +139,13 @@ export const PaymentMethodsCard$inboundSchema: z.ZodType<
|
|
|
139
139
|
holderName: z.string().optional(),
|
|
140
140
|
billingAddress: CardAddress$inboundSchema,
|
|
141
141
|
cardVerification: CardVerification$inboundSchema,
|
|
142
|
-
issuer: z.string(),
|
|
143
|
-
issuerCountry: z.string(),
|
|
142
|
+
issuer: z.string().optional(),
|
|
143
|
+
issuerCountry: z.string().optional(),
|
|
144
144
|
cardOnFile: z.boolean().optional(),
|
|
145
145
|
merchantAccountID: z.string().optional(),
|
|
146
146
|
cardAccountUpdater: CardAccountUpdater$inboundSchema.optional(),
|
|
147
|
-
domesticPushToCard: DomesticPushToCard$inboundSchema,
|
|
148
|
-
domesticPullFromCard: DomesticPullFromCard$inboundSchema,
|
|
147
|
+
domesticPushToCard: DomesticPushToCard$inboundSchema.optional(),
|
|
148
|
+
domesticPullFromCard: DomesticPullFromCard$inboundSchema.optional(),
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
/** @internal */
|
|
@@ -160,13 +160,13 @@ export type PaymentMethodsCard$Outbound = {
|
|
|
160
160
|
holderName?: string | undefined;
|
|
161
161
|
billingAddress: CardAddress$Outbound;
|
|
162
162
|
cardVerification: CardVerification$Outbound;
|
|
163
|
-
issuer
|
|
164
|
-
issuerCountry
|
|
163
|
+
issuer?: string | undefined;
|
|
164
|
+
issuerCountry?: string | undefined;
|
|
165
165
|
cardOnFile?: boolean | undefined;
|
|
166
166
|
merchantAccountID?: string | undefined;
|
|
167
167
|
cardAccountUpdater?: CardAccountUpdater$Outbound | undefined;
|
|
168
|
-
domesticPushToCard
|
|
169
|
-
domesticPullFromCard
|
|
168
|
+
domesticPushToCard?: string | undefined;
|
|
169
|
+
domesticPullFromCard?: string | undefined;
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
/** @internal */
|
|
@@ -185,13 +185,13 @@ export const PaymentMethodsCard$outboundSchema: z.ZodType<
|
|
|
185
185
|
holderName: z.string().optional(),
|
|
186
186
|
billingAddress: CardAddress$outboundSchema,
|
|
187
187
|
cardVerification: CardVerification$outboundSchema,
|
|
188
|
-
issuer: z.string(),
|
|
189
|
-
issuerCountry: z.string(),
|
|
188
|
+
issuer: z.string().optional(),
|
|
189
|
+
issuerCountry: z.string().optional(),
|
|
190
190
|
cardOnFile: z.boolean().optional(),
|
|
191
191
|
merchantAccountID: z.string().optional(),
|
|
192
192
|
cardAccountUpdater: CardAccountUpdater$outboundSchema.optional(),
|
|
193
|
-
domesticPushToCard: DomesticPushToCard$outboundSchema,
|
|
194
|
-
domesticPullFromCard: DomesticPullFromCard$outboundSchema,
|
|
193
|
+
domesticPushToCard: DomesticPushToCard$outboundSchema.optional(),
|
|
194
|
+
domesticPullFromCard: DomesticPullFromCard$outboundSchema.optional(),
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
/**
|
|
@@ -116,6 +116,10 @@ export type Transfer = {
|
|
|
116
116
|
sweepID?: string | undefined;
|
|
117
117
|
scheduleID?: string | undefined;
|
|
118
118
|
occurrenceID?: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
121
|
+
*/
|
|
122
|
+
salesTaxAmount?: Amount | undefined;
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
/** @internal */
|
|
@@ -148,6 +152,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
148
152
|
sweepID: z.string().optional(),
|
|
149
153
|
scheduleID: z.string().optional(),
|
|
150
154
|
occurrenceID: z.string().optional(),
|
|
155
|
+
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
151
156
|
});
|
|
152
157
|
|
|
153
158
|
/** @internal */
|
|
@@ -175,6 +180,7 @@ export type Transfer$Outbound = {
|
|
|
175
180
|
sweepID?: string | undefined;
|
|
176
181
|
scheduleID?: string | undefined;
|
|
177
182
|
occurrenceID?: string | undefined;
|
|
183
|
+
salesTaxAmount?: Amount$Outbound | undefined;
|
|
178
184
|
};
|
|
179
185
|
|
|
180
186
|
/** @internal */
|
|
@@ -206,6 +212,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
206
212
|
sweepID: z.string().optional(),
|
|
207
213
|
scheduleID: z.string().optional(),
|
|
208
214
|
occurrenceID: z.string().optional(),
|
|
215
|
+
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
209
216
|
});
|
|
210
217
|
|
|
211
218
|
/**
|
|
@@ -56,6 +56,10 @@ export type TransferData = {
|
|
|
56
56
|
sweepID?: string | undefined;
|
|
57
57
|
scheduleID?: string | undefined;
|
|
58
58
|
occurrenceID?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
61
|
+
*/
|
|
62
|
+
salesTaxAmount?: components.Amount | undefined;
|
|
59
63
|
};
|
|
60
64
|
|
|
61
65
|
/**
|
|
@@ -109,6 +113,10 @@ export class Transfer extends Error {
|
|
|
109
113
|
sweepID?: string | undefined;
|
|
110
114
|
scheduleID?: string | undefined;
|
|
111
115
|
occurrenceID?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
|
|
118
|
+
*/
|
|
119
|
+
salesTaxAmount?: components.Amount | undefined;
|
|
112
120
|
|
|
113
121
|
/** The original data that was passed to this error instance. */
|
|
114
122
|
data$: TransferData;
|
|
@@ -143,6 +151,7 @@ export class Transfer extends Error {
|
|
|
143
151
|
if (err.sweepID != null) this.sweepID = err.sweepID;
|
|
144
152
|
if (err.scheduleID != null) this.scheduleID = err.scheduleID;
|
|
145
153
|
if (err.occurrenceID != null) this.occurrenceID = err.occurrenceID;
|
|
154
|
+
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
146
155
|
|
|
147
156
|
this.name = "Transfer";
|
|
148
157
|
}
|
|
@@ -178,6 +187,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
178
187
|
sweepID: z.string().optional(),
|
|
179
188
|
scheduleID: z.string().optional(),
|
|
180
189
|
occurrenceID: z.string().optional(),
|
|
190
|
+
salesTaxAmount: components.Amount$inboundSchema.optional(),
|
|
181
191
|
})
|
|
182
192
|
.transform((v) => {
|
|
183
193
|
return new Transfer(v);
|
|
@@ -208,6 +218,7 @@ export type Transfer$Outbound = {
|
|
|
208
218
|
sweepID?: string | undefined;
|
|
209
219
|
scheduleID?: string | undefined;
|
|
210
220
|
occurrenceID?: string | undefined;
|
|
221
|
+
salesTaxAmount?: components.Amount$Outbound | undefined;
|
|
211
222
|
};
|
|
212
223
|
|
|
213
224
|
/** @internal */
|
|
@@ -242,6 +253,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
242
253
|
sweepID: z.string().optional(),
|
|
243
254
|
scheduleID: z.string().optional(),
|
|
244
255
|
occurrenceID: z.string().optional(),
|
|
256
|
+
salesTaxAmount: components.Amount$outboundSchema.optional(),
|
|
245
257
|
}));
|
|
246
258
|
|
|
247
259
|
/**
|