@moovio/sdk 26.7.2 → 26.7.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.
Files changed (51) hide show
  1. package/bin/mcp-server.js +33 -9
  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 +59 -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 +55 -0
  51. package/src/models/components/webhookeventtype.ts +1 -0
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "v2026.07.00",
76
- sdkVersion: "26.7.2",
76
+ sdkVersion: "26.7.4",
77
77
  genVersion: "2.935.1",
78
- userAgent: "speakeasy-sdk/typescript 26.7.2 2.935.1 v2026.07.00 @moovio/sdk",
78
+ userAgent: "speakeasy-sdk/typescript 26.7.4 2.935.1 v2026.07.00 @moovio/sdk",
79
79
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "26.7.2",
22
+ currentVersion: "26.7.4",
23
23
  },
24
24
  });
25
25
 
@@ -217,7 +217,7 @@ export function createMCPServer(deps: {
217
217
  }) {
218
218
  const server = new McpServer({
219
219
  name: "Moov",
220
- version: "26.7.2",
220
+ version: "26.7.4",
221
221
  });
222
222
 
223
223
  const client = new MoovCore({
@@ -16,6 +16,7 @@ export const CardTransactionStatus = {
16
16
  Settled: "settled",
17
17
  Failed: "failed",
18
18
  Completed: "completed",
19
+ ClearedExternal: "cleared-external",
19
20
  Deferred: "deferred",
20
21
  } as const;
21
22
  /**
@@ -634,6 +634,7 @@ export * from "./webhookdatacapabilityupdated.js";
634
634
  export * from "./webhookdatacardautoupdated.js";
635
635
  export * from "./webhookdatadisputecreated.js";
636
636
  export * from "./webhookdatadisputeupdated.js";
637
+ export * from "./webhookdataeventtest.js";
637
638
  export * from "./webhookdatainvoicecreated.js";
638
639
  export * from "./webhookdatainvoiceupdated.js";
639
640
  export * from "./webhookdatanetworkidupdated.js";
@@ -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(),
@@ -12,6 +12,7 @@ export const RefundCardStatus = {
12
12
  Settled: "settled",
13
13
  Failed: "failed",
14
14
  Completed: "completed",
15
+ ClearedExternal: "cleared-external",
15
16
  } as const;
16
17
  export type RefundCardStatus = OpenEnum<typeof RefundCardStatus>;
17
18
 
@@ -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.