@moovio/sdk 26.5.8 → 26.5.9
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 +29 -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 +58 -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 +54 -0
- package/src/models/components/webhookeventtype.ts +1 -0
|
@@ -16,6 +16,10 @@ import {
|
|
|
16
16
|
export type IssuedCardTransaction = {
|
|
17
17
|
cardTransactionID: string;
|
|
18
18
|
issuedCardID: string;
|
|
19
|
+
/**
|
|
20
|
+
* Last four digits of the card number. Omitted for transactions recorded before this was captured.
|
|
21
|
+
*/
|
|
22
|
+
lastFourCardNumber?: string | undefined;
|
|
19
23
|
fundingWalletID: string;
|
|
20
24
|
/**
|
|
21
25
|
* 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.
|
|
@@ -35,6 +39,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
35
39
|
> = z.object({
|
|
36
40
|
cardTransactionID: z.string(),
|
|
37
41
|
issuedCardID: z.string(),
|
|
42
|
+
lastFourCardNumber: z.string().optional(),
|
|
38
43
|
fundingWalletID: z.string(),
|
|
39
44
|
amount: z.string(),
|
|
40
45
|
authorizationID: z.string().optional(),
|
|
@@ -48,6 +53,7 @@ export const IssuedCardTransaction$inboundSchema: z.ZodType<
|
|
|
48
53
|
export type IssuedCardTransaction$Outbound = {
|
|
49
54
|
cardTransactionID: string;
|
|
50
55
|
issuedCardID: string;
|
|
56
|
+
lastFourCardNumber?: string | undefined;
|
|
51
57
|
fundingWalletID: string;
|
|
52
58
|
amount: string;
|
|
53
59
|
authorizationID?: string | undefined;
|
|
@@ -64,6 +70,7 @@ export const IssuedCardTransaction$outboundSchema: z.ZodType<
|
|
|
64
70
|
> = z.object({
|
|
65
71
|
cardTransactionID: z.string(),
|
|
66
72
|
issuedCardID: z.string(),
|
|
73
|
+
lastFourCardNumber: z.string().optional(),
|
|
67
74
|
fundingWalletID: z.string(),
|
|
68
75
|
amount: z.string(),
|
|
69
76
|
authorizationID: z.string().optional(),
|
|
@@ -102,6 +102,12 @@ import {
|
|
|
102
102
|
WebhookDataDisputeUpdated$Outbound,
|
|
103
103
|
WebhookDataDisputeUpdated$outboundSchema,
|
|
104
104
|
} from "./webhookdatadisputeupdated.js";
|
|
105
|
+
import {
|
|
106
|
+
WebhookDataEventTest,
|
|
107
|
+
WebhookDataEventTest$inboundSchema,
|
|
108
|
+
WebhookDataEventTest$Outbound,
|
|
109
|
+
WebhookDataEventTest$outboundSchema,
|
|
110
|
+
} from "./webhookdataeventtest.js";
|
|
105
111
|
import {
|
|
106
112
|
WebhookDataInvoiceCreated,
|
|
107
113
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
@@ -276,7 +282,8 @@ export type WebhookData =
|
|
|
276
282
|
| WebhookDataAccountCreated
|
|
277
283
|
| WebhookDataAccountUpdated
|
|
278
284
|
| WebhookDataAccountDisconnected
|
|
279
|
-
| WebhookDataNetworkIDUpdated
|
|
285
|
+
| WebhookDataNetworkIDUpdated
|
|
286
|
+
| WebhookDataEventTest;
|
|
280
287
|
|
|
281
288
|
/** @internal */
|
|
282
289
|
export const WebhookData$inboundSchema: z.ZodType<
|
|
@@ -322,6 +329,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
322
329
|
WebhookDataAccountUpdated$inboundSchema,
|
|
323
330
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
324
331
|
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
332
|
+
WebhookDataEventTest$inboundSchema,
|
|
325
333
|
]);
|
|
326
334
|
/** @internal */
|
|
327
335
|
export type WebhookData$Outbound =
|
|
@@ -362,7 +370,8 @@ export type WebhookData$Outbound =
|
|
|
362
370
|
| WebhookDataAccountCreated$Outbound
|
|
363
371
|
| WebhookDataAccountUpdated$Outbound
|
|
364
372
|
| WebhookDataAccountDisconnected$Outbound
|
|
365
|
-
| WebhookDataNetworkIDUpdated$Outbound
|
|
373
|
+
| WebhookDataNetworkIDUpdated$Outbound
|
|
374
|
+
| WebhookDataEventTest$Outbound;
|
|
366
375
|
|
|
367
376
|
/** @internal */
|
|
368
377
|
export const WebhookData$outboundSchema: z.ZodType<
|
|
@@ -408,6 +417,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
408
417
|
WebhookDataAccountUpdated$outboundSchema,
|
|
409
418
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
410
419
|
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
420
|
+
WebhookDataEventTest$outboundSchema,
|
|
411
421
|
]);
|
|
412
422
|
|
|
413
423
|
export function webhookDataToJSON(webhookData: WebhookData): string {
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The data payload sent for an `event.test` event, such as a webhook ping.
|
|
12
|
+
*/
|
|
13
|
+
export type WebhookDataEventTest = {
|
|
14
|
+
ping: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const WebhookDataEventTest$inboundSchema: z.ZodType<
|
|
19
|
+
WebhookDataEventTest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
ping: z.boolean(),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataEventTest$Outbound = {
|
|
27
|
+
ping: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const WebhookDataEventTest$outboundSchema: z.ZodType<
|
|
32
|
+
WebhookDataEventTest$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
WebhookDataEventTest
|
|
35
|
+
> = z.object({
|
|
36
|
+
ping: z.boolean(),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function webhookDataEventTestToJSON(
|
|
40
|
+
webhookDataEventTest: WebhookDataEventTest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
WebhookDataEventTest$outboundSchema.parse(webhookDataEventTest),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export function webhookDataEventTestFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<WebhookDataEventTest, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => WebhookDataEventTest$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'WebhookDataEventTest' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -48,6 +48,7 @@ export const WebhookEventType = {
|
|
|
48
48
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
49
49
|
BillingStatementCreated: "billingStatement.created",
|
|
50
50
|
AuthorizationExpiring: "authorization.expiring",
|
|
51
|
+
EventTest: "event.test",
|
|
51
52
|
} as const;
|
|
52
53
|
/**
|
|
53
54
|
* The type of event that occurred.
|