@moovio/sdk 26.7.2 → 26.7.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/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(),
|
|
@@ -103,6 +103,12 @@ import {
|
|
|
103
103
|
WebhookDataDisputeUpdated$Outbound,
|
|
104
104
|
WebhookDataDisputeUpdated$outboundSchema,
|
|
105
105
|
} from "./webhookdatadisputeupdated.js";
|
|
106
|
+
import {
|
|
107
|
+
WebhookDataEventTest,
|
|
108
|
+
WebhookDataEventTest$inboundSchema,
|
|
109
|
+
WebhookDataEventTest$Outbound,
|
|
110
|
+
WebhookDataEventTest$outboundSchema,
|
|
111
|
+
} from "./webhookdataeventtest.js";
|
|
106
112
|
import {
|
|
107
113
|
WebhookDataInvoiceCreated,
|
|
108
114
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
@@ -277,7 +283,8 @@ export type WebhookData =
|
|
|
277
283
|
| WebhookDataAccountCreated
|
|
278
284
|
| WebhookDataAccountUpdated
|
|
279
285
|
| WebhookDataAccountDisconnected
|
|
280
|
-
| WebhookDataNetworkIDUpdated
|
|
286
|
+
| WebhookDataNetworkIDUpdated
|
|
287
|
+
| WebhookDataEventTest;
|
|
281
288
|
|
|
282
289
|
/** @internal */
|
|
283
290
|
export const WebhookData$inboundSchema: z.ZodType<
|
|
@@ -323,6 +330,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
323
330
|
WebhookDataAccountUpdated$inboundSchema,
|
|
324
331
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
325
332
|
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
333
|
+
WebhookDataEventTest$inboundSchema,
|
|
326
334
|
]);
|
|
327
335
|
/** @internal */
|
|
328
336
|
export type WebhookData$Outbound =
|
|
@@ -363,7 +371,8 @@ export type WebhookData$Outbound =
|
|
|
363
371
|
| WebhookDataAccountCreated$Outbound
|
|
364
372
|
| WebhookDataAccountUpdated$Outbound
|
|
365
373
|
| WebhookDataAccountDisconnected$Outbound
|
|
366
|
-
| WebhookDataNetworkIDUpdated$Outbound
|
|
374
|
+
| WebhookDataNetworkIDUpdated$Outbound
|
|
375
|
+
| WebhookDataEventTest$Outbound;
|
|
367
376
|
|
|
368
377
|
/** @internal */
|
|
369
378
|
export const WebhookData$outboundSchema: z.ZodType<
|
|
@@ -409,6 +418,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
409
418
|
WebhookDataAccountUpdated$outboundSchema,
|
|
410
419
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
411
420
|
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
421
|
+
WebhookDataEventTest$outboundSchema,
|
|
412
422
|
]);
|
|
413
423
|
|
|
414
424
|
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
|
+
}
|
|
@@ -49,6 +49,7 @@ export const WebhookEventType = {
|
|
|
49
49
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
50
50
|
BillingStatementCreated: "billingStatement.created",
|
|
51
51
|
AuthorizationExpiring: "authorization.expiring",
|
|
52
|
+
EventTest: "event.test",
|
|
52
53
|
} as const;
|
|
53
54
|
/**
|
|
54
55
|
* The type of event that occurred.
|