@moovio/sdk 26.10.0-dev.3 → 26.10.0-dev.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 +30 -8
- package/bin/mcp-server.js.map +12 -11
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcardauthorization.d.ts +5 -0
- package/models/components/issuedcardauthorization.d.ts.map +1 -1
- package/models/components/issuedcardauthorization.js +2 -0
- package/models/components/issuedcardauthorization.js.map +1 -1
- package/models/components/issuedcardtransaction.d.ts +5 -0
- package/models/components/issuedcardtransaction.d.ts.map +1 -1
- package/models/components/issuedcardtransaction.js +2 -0
- package/models/components/issuedcardtransaction.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +3 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataeventtest.d.ts +20 -0
- package/models/components/webhookdataeventtest.d.ts.map +1 -0
- package/models/components/webhookdataeventtest.js +59 -0
- package/models/components/webhookdataeventtest.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/issuedcardauthorization.ts +7 -0
- package/src/models/components/issuedcardtransaction.ts +7 -0
- package/src/models/components/webhookdata.ts +12 -2
- package/src/models/components/webhookdataeventtest.ts +55 -0
- package/src/models/components/webhookeventtype.ts +1 -0
|
@@ -27,6 +27,10 @@ import {
|
|
|
27
27
|
export type IssuedCardAuthorization = {
|
|
28
28
|
authorizationID: string;
|
|
29
29
|
issuedCardID: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last four digits of the card number. Omitted for authorizations recorded before this was captured.
|
|
32
|
+
*/
|
|
33
|
+
lastFourCardNumber?: string | undefined;
|
|
30
34
|
fundingWalletID: string;
|
|
31
35
|
/**
|
|
32
36
|
* The name of the network a card transaction is routed through.
|
|
@@ -56,6 +60,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
|
|
|
56
60
|
> = z.object({
|
|
57
61
|
authorizationID: types.string(),
|
|
58
62
|
issuedCardID: types.string(),
|
|
63
|
+
lastFourCardNumber: types.optional(types.string()),
|
|
59
64
|
fundingWalletID: types.string(),
|
|
60
65
|
network: CardIssuingNetwork$inboundSchema,
|
|
61
66
|
authorizedAmount: types.string(),
|
|
@@ -68,6 +73,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
|
|
|
68
73
|
export type IssuedCardAuthorization$Outbound = {
|
|
69
74
|
authorizationID: string;
|
|
70
75
|
issuedCardID: string;
|
|
76
|
+
lastFourCardNumber?: string | undefined;
|
|
71
77
|
fundingWalletID: string;
|
|
72
78
|
network: string;
|
|
73
79
|
authorizedAmount: string;
|
|
@@ -85,6 +91,7 @@ export const IssuedCardAuthorization$outboundSchema: z.ZodType<
|
|
|
85
91
|
> = z.object({
|
|
86
92
|
authorizationID: z.string(),
|
|
87
93
|
issuedCardID: z.string(),
|
|
94
|
+
lastFourCardNumber: z.string().optional(),
|
|
88
95
|
fundingWalletID: z.string(),
|
|
89
96
|
network: CardIssuingNetwork$outboundSchema,
|
|
90
97
|
authorizedAmount: z.string(),
|
|
@@ -17,6 +17,10 @@ import {
|
|
|
17
17
|
export type IssuedCardTransaction = {
|
|
18
18
|
cardTransactionID: string;
|
|
19
19
|
issuedCardID: string;
|
|
20
|
+
/**
|
|
21
|
+
* Last four digits of the card number. Omitted for transactions recorded before this was captured.
|
|
22
|
+
*/
|
|
23
|
+
lastFourCardNumber?: string | undefined;
|
|
20
24
|
fundingWalletID: string;
|
|
21
25
|
/**
|
|
22
26
|
* A decimal-formatted numerical string that represents up to 2 decimal place precision. In USD for example, 12.34 is $12.34 and 0.99 is $0.99.
|
|
@@ -36,6 +40,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
36
40
|
> = z.object({
|
|
37
41
|
cardTransactionID: types.string(),
|
|
38
42
|
issuedCardID: types.string(),
|
|
43
|
+
lastFourCardNumber: types.optional(types.string()),
|
|
39
44
|
fundingWalletID: types.string(),
|
|
40
45
|
amount: types.string(),
|
|
41
46
|
authorizationID: types.optional(types.string()),
|
|
@@ -47,6 +52,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
47
52
|
export type IssuedCardTransaction$Outbound = {
|
|
48
53
|
cardTransactionID: string;
|
|
49
54
|
issuedCardID: string;
|
|
55
|
+
lastFourCardNumber?: string | undefined;
|
|
50
56
|
fundingWalletID: string;
|
|
51
57
|
amount: string;
|
|
52
58
|
authorizationID?: string | undefined;
|
|
@@ -63,6 +69,7 @@ export const IssuedCardTransaction$outboundSchema: z.ZodType<
|
|
|
63
69
|
> = z.object({
|
|
64
70
|
cardTransactionID: z.string(),
|
|
65
71
|
issuedCardID: z.string(),
|
|
72
|
+
lastFourCardNumber: z.string().optional(),
|
|
66
73
|
fundingWalletID: z.string(),
|
|
67
74
|
amount: z.string(),
|
|
68
75
|
authorizationID: z.string().optional(),
|
|
@@ -109,6 +109,12 @@ import {
|
|
|
109
109
|
WebhookDataDisputeUpdated$Outbound,
|
|
110
110
|
WebhookDataDisputeUpdated$outboundSchema,
|
|
111
111
|
} from "./webhookdatadisputeupdated.js";
|
|
112
|
+
import {
|
|
113
|
+
WebhookDataEventTest,
|
|
114
|
+
WebhookDataEventTest$inboundSchema,
|
|
115
|
+
WebhookDataEventTest$Outbound,
|
|
116
|
+
WebhookDataEventTest$outboundSchema,
|
|
117
|
+
} from "./webhookdataeventtest.js";
|
|
112
118
|
import {
|
|
113
119
|
WebhookDataInvoiceCreated,
|
|
114
120
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
@@ -284,7 +290,8 @@ export type WebhookData =
|
|
|
284
290
|
| WebhookDataAccountCreated
|
|
285
291
|
| WebhookDataAccountUpdated
|
|
286
292
|
| WebhookDataAccountDisconnected
|
|
287
|
-
| WebhookDataNetworkIDUpdated
|
|
293
|
+
| WebhookDataNetworkIDUpdated
|
|
294
|
+
| WebhookDataEventTest;
|
|
288
295
|
|
|
289
296
|
/** @internal */
|
|
290
297
|
export const WebhookData$inboundSchema: z.ZodType<
|
|
@@ -331,6 +338,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
331
338
|
WebhookDataAccountUpdated$inboundSchema,
|
|
332
339
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
333
340
|
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
341
|
+
WebhookDataEventTest$inboundSchema,
|
|
334
342
|
]);
|
|
335
343
|
/** @internal */
|
|
336
344
|
export type WebhookData$Outbound =
|
|
@@ -372,7 +380,8 @@ export type WebhookData$Outbound =
|
|
|
372
380
|
| WebhookDataAccountCreated$Outbound
|
|
373
381
|
| WebhookDataAccountUpdated$Outbound
|
|
374
382
|
| WebhookDataAccountDisconnected$Outbound
|
|
375
|
-
| WebhookDataNetworkIDUpdated$Outbound
|
|
383
|
+
| WebhookDataNetworkIDUpdated$Outbound
|
|
384
|
+
| WebhookDataEventTest$Outbound;
|
|
376
385
|
|
|
377
386
|
/** @internal */
|
|
378
387
|
export const WebhookData$outboundSchema: z.ZodType<
|
|
@@ -419,6 +428,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
419
428
|
WebhookDataAccountUpdated$outboundSchema,
|
|
420
429
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
421
430
|
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
431
|
+
WebhookDataEventTest$outboundSchema,
|
|
422
432
|
]);
|
|
423
433
|
|
|
424
434
|
export function webhookDataToJSON(webhookData: WebhookData): string {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The data payload sent for an `event.test` event, such as a webhook ping.
|
|
13
|
+
*/
|
|
14
|
+
export type WebhookDataEventTest = {
|
|
15
|
+
ping: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const WebhookDataEventTest$inboundSchema: z.ZodType<
|
|
20
|
+
WebhookDataEventTest,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
ping: types.boolean(),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type WebhookDataEventTest$Outbound = {
|
|
28
|
+
ping: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataEventTest$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataEventTest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataEventTest
|
|
36
|
+
> = z.object({
|
|
37
|
+
ping: z.boolean(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function webhookDataEventTestToJSON(
|
|
41
|
+
webhookDataEventTest: WebhookDataEventTest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
WebhookDataEventTest$outboundSchema.parse(webhookDataEventTest),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export function webhookDataEventTestFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<WebhookDataEventTest, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => WebhookDataEventTest$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'WebhookDataEventTest' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -50,6 +50,7 @@ export const WebhookEventType = {
|
|
|
50
50
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
51
51
|
BillingStatementCreated: "billingStatement.created",
|
|
52
52
|
AuthorizationExpiring: "authorization.expiring",
|
|
53
|
+
EventTest: "event.test",
|
|
53
54
|
} as const;
|
|
54
55
|
/**
|
|
55
56
|
* The type of event that occurred.
|