@moovio/sdk 26.3.7 → 26.3.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.
Files changed (51) hide show
  1. package/bin/mcp-server.js +33 -10
  2. package/bin/mcp-server.js.map +14 -13
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/components/cardtransactionstatus.d.ts +1 -0
  9. package/models/components/cardtransactionstatus.d.ts.map +1 -1
  10. package/models/components/cardtransactionstatus.js +1 -0
  11. package/models/components/cardtransactionstatus.js.map +1 -1
  12. package/models/components/index.d.ts +1 -0
  13. package/models/components/index.d.ts.map +1 -1
  14. package/models/components/index.js +1 -0
  15. package/models/components/index.js.map +1 -1
  16. package/models/components/issuedcardauthorization.d.ts +5 -0
  17. package/models/components/issuedcardauthorization.d.ts.map +1 -1
  18. package/models/components/issuedcardauthorization.js +2 -0
  19. package/models/components/issuedcardauthorization.js.map +1 -1
  20. package/models/components/issuedcardtransaction.d.ts +5 -0
  21. package/models/components/issuedcardtransaction.d.ts.map +1 -1
  22. package/models/components/issuedcardtransaction.js +2 -0
  23. package/models/components/issuedcardtransaction.js.map +1 -1
  24. package/models/components/refundcardstatus.d.ts +1 -0
  25. package/models/components/refundcardstatus.d.ts.map +1 -1
  26. package/models/components/refundcardstatus.js +1 -0
  27. package/models/components/refundcardstatus.js.map +1 -1
  28. package/models/components/webhookdata.d.ts +3 -2
  29. package/models/components/webhookdata.d.ts.map +1 -1
  30. package/models/components/webhookdata.js +3 -0
  31. package/models/components/webhookdata.js.map +1 -1
  32. package/models/components/webhookdataeventtest.d.ts +20 -0
  33. package/models/components/webhookdataeventtest.d.ts.map +1 -0
  34. package/models/components/webhookdataeventtest.js +58 -0
  35. package/models/components/webhookdataeventtest.js.map +1 -0
  36. package/models/components/webhookeventtype.d.ts +1 -0
  37. package/models/components/webhookeventtype.d.ts.map +1 -1
  38. package/models/components/webhookeventtype.js +1 -0
  39. package/models/components/webhookeventtype.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/lib/config.ts +2 -2
  42. package/src/mcp-server/mcp-server.ts +1 -1
  43. package/src/mcp-server/server.ts +1 -1
  44. package/src/models/components/cardtransactionstatus.ts +1 -0
  45. package/src/models/components/index.ts +1 -0
  46. package/src/models/components/issuedcardauthorization.ts +7 -0
  47. package/src/models/components/issuedcardtransaction.ts +7 -0
  48. package/src/models/components/refundcardstatus.ts +1 -0
  49. package/src/models/components/webhookdata.ts +12 -2
  50. package/src/models/components/webhookdataeventtest.ts +54 -0
  51. package/src/models/components/webhookeventtype.ts +1 -0
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "26.3.7",
22
+ currentVersion: "26.3.9",
23
23
  },
24
24
  });
25
25
 
@@ -198,7 +198,7 @@ export function createMCPServer(deps: {
198
198
  }) {
199
199
  const server = new McpServer({
200
200
  name: "Moov",
201
- version: "26.3.7",
201
+ version: "26.3.9",
202
202
  });
203
203
 
204
204
  const client = new MoovCore({
@@ -15,6 +15,7 @@ export const CardTransactionStatus = {
15
15
  Settled: "settled",
16
16
  Failed: "failed",
17
17
  Completed: "completed",
18
+ ClearedExternal: "cleared-external",
18
19
  } as const;
19
20
  /**
20
21
  * Status of a transaction within the card payment lifecycle.
@@ -530,6 +530,7 @@ export * from "./webhookdatacapabilityupdated.js";
530
530
  export * from "./webhookdatacardautoupdated.js";
531
531
  export * from "./webhookdatadisputecreated.js";
532
532
  export * from "./webhookdatadisputeupdated.js";
533
+ export * from "./webhookdataeventtest.js";
533
534
  export * from "./webhookdatainvoicecreated.js";
534
535
  export * from "./webhookdatainvoiceupdated.js";
535
536
  export * from "./webhookdatanetworkidupdated.js";
@@ -26,6 +26,10 @@ import {
26
26
  export type IssuedCardAuthorization = {
27
27
  authorizationID: string;
28
28
  issuedCardID: string;
29
+ /**
30
+ * Last four digits of the card number. Omitted for authorizations recorded before this was captured.
31
+ */
32
+ lastFourCardNumber?: string | undefined;
29
33
  fundingWalletID: string;
30
34
  /**
31
35
  * The name of the network a card transaction is routed through.
@@ -55,6 +59,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
55
59
  > = z.object({
56
60
  authorizationID: z.string(),
57
61
  issuedCardID: z.string(),
62
+ lastFourCardNumber: z.string().optional(),
58
63
  fundingWalletID: z.string(),
59
64
  network: CardIssuingNetwork$inboundSchema,
60
65
  authorizedAmount: z.string(),
@@ -67,6 +72,7 @@ export const IssuedCardAuthorization$inboundSchema: z.ZodType<
67
72
  export type IssuedCardAuthorization$Outbound = {
68
73
  authorizationID: string;
69
74
  issuedCardID: string;
75
+ lastFourCardNumber?: string | undefined;
70
76
  fundingWalletID: string;
71
77
  network: string;
72
78
  authorizedAmount: string;
@@ -84,6 +90,7 @@ export const IssuedCardAuthorization$outboundSchema: z.ZodType<
84
90
  > = z.object({
85
91
  authorizationID: z.string(),
86
92
  issuedCardID: z.string(),
93
+ lastFourCardNumber: z.string().optional(),
87
94
  fundingWalletID: z.string(),
88
95
  network: CardIssuingNetwork$outboundSchema,
89
96
  authorizedAmount: z.string(),
@@ -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(),
@@ -11,6 +11,7 @@ export const RefundCardStatus = {
11
11
  Settled: "settled",
12
12
  Failed: "failed",
13
13
  Completed: "completed",
14
+ ClearedExternal: "cleared-external",
14
15
  } as const;
15
16
  export type RefundCardStatus = ClosedEnum<typeof RefundCardStatus>;
16
17
 
@@ -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.