@moovio/sdk 0.8.0 → 0.9.0

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 (121) hide show
  1. package/bin/mcp-server.js +218 -66
  2. package/bin/mcp-server.js.map +28 -23
  3. package/funcs/receiptsCreate.js +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/extensions.d.ts +2 -0
  8. package/mcp-server/extensions.d.ts.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/prompts.d.ts +26 -0
  11. package/mcp-server/prompts.d.ts.map +1 -0
  12. package/mcp-server/prompts.js +47 -0
  13. package/mcp-server/prompts.js.map +1 -0
  14. package/mcp-server/resources.d.ts.map +1 -1
  15. package/mcp-server/resources.js +1 -0
  16. package/mcp-server/resources.js.map +1 -1
  17. package/mcp-server/server.d.ts.map +1 -1
  18. package/mcp-server/server.js +4 -2
  19. package/mcp-server/server.js.map +1 -1
  20. package/mcp-server/tools.d.ts.map +1 -1
  21. package/mcp-server/tools.js +1 -0
  22. package/mcp-server/tools.js.map +1 -1
  23. package/models/components/cardpresentpaymentpaymentmethod.d.ts +66 -0
  24. package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +1 -0
  25. package/models/components/cardpresentpaymentpaymentmethod.js +93 -0
  26. package/models/components/cardpresentpaymentpaymentmethod.js.map +1 -0
  27. package/models/components/createtransfersource.d.ts +2 -0
  28. package/models/components/createtransfersource.d.ts.map +1 -1
  29. package/models/components/createtransfersource.js +2 -0
  30. package/models/components/createtransfersource.js.map +1 -1
  31. package/models/components/entrymode.d.ts +31 -0
  32. package/models/components/entrymode.d.ts.map +1 -0
  33. package/models/components/entrymode.js +63 -0
  34. package/models/components/entrymode.js.map +1 -0
  35. package/models/components/feeplan.d.ts +6 -0
  36. package/models/components/feeplan.d.ts.map +1 -1
  37. package/models/components/feeplan.js +3 -0
  38. package/models/components/feeplan.js.map +1 -1
  39. package/models/components/feeplanagreement.d.ts +6 -0
  40. package/models/components/feeplanagreement.d.ts.map +1 -1
  41. package/models/components/feeplanagreement.js +3 -0
  42. package/models/components/feeplanagreement.js.map +1 -1
  43. package/models/components/governmentid.d.ts +30 -30
  44. package/models/components/governmentid.d.ts.map +1 -1
  45. package/models/components/governmentid.js +38 -35
  46. package/models/components/governmentid.js.map +1 -1
  47. package/models/components/governmentiderror.d.ts +30 -30
  48. package/models/components/governmentiderror.d.ts.map +1 -1
  49. package/models/components/governmentiderror.js +35 -38
  50. package/models/components/governmentiderror.js.map +1 -1
  51. package/models/components/index.d.ts +4 -0
  52. package/models/components/index.d.ts.map +1 -1
  53. package/models/components/index.js +4 -0
  54. package/models/components/index.js.map +1 -1
  55. package/models/components/minimumcommitment.d.ts +44 -0
  56. package/models/components/minimumcommitment.d.ts.map +1 -0
  57. package/models/components/minimumcommitment.js +71 -0
  58. package/models/components/minimumcommitment.js.map +1 -0
  59. package/models/components/partnerpricing.d.ts +6 -0
  60. package/models/components/partnerpricing.d.ts.map +1 -1
  61. package/models/components/partnerpricing.js +3 -0
  62. package/models/components/partnerpricing.js.map +1 -1
  63. package/models/components/partnerpricingagreement.d.ts +6 -0
  64. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  65. package/models/components/partnerpricingagreement.js +3 -0
  66. package/models/components/partnerpricingagreement.js.map +1 -1
  67. package/models/components/paymentmethod.d.ts +5 -0
  68. package/models/components/paymentmethod.d.ts.map +1 -1
  69. package/models/components/paymentmethod.js +5 -0
  70. package/models/components/paymentmethod.js.map +1 -1
  71. package/models/components/paymentmethodtype.d.ts +3 -0
  72. package/models/components/paymentmethodtype.d.ts.map +1 -1
  73. package/models/components/paymentmethodtype.js +1 -0
  74. package/models/components/paymentmethodtype.js.map +1 -1
  75. package/models/components/taxid.d.ts +15 -15
  76. package/models/components/taxid.d.ts.map +1 -1
  77. package/models/components/taxid.js +20 -18
  78. package/models/components/taxid.js.map +1 -1
  79. package/models/components/taxidupdate.d.ts +15 -15
  80. package/models/components/taxidupdate.d.ts.map +1 -1
  81. package/models/components/taxidupdate.js +18 -20
  82. package/models/components/taxidupdate.js.map +1 -1
  83. package/models/components/terminalcard.d.ts +85 -0
  84. package/models/components/terminalcard.d.ts.map +1 -0
  85. package/models/components/terminalcard.js +91 -0
  86. package/models/components/terminalcard.js.map +1 -0
  87. package/models/components/transfersource.d.ts +6 -0
  88. package/models/components/transfersource.d.ts.map +1 -1
  89. package/models/components/transfersource.js +3 -0
  90. package/models/components/transfersource.js.map +1 -1
  91. package/models/components/wallettransactionsourcetype.d.ts +3 -0
  92. package/models/components/wallettransactionsourcetype.d.ts.map +1 -1
  93. package/models/components/wallettransactionsourcetype.js +1 -0
  94. package/models/components/wallettransactionsourcetype.js.map +1 -1
  95. package/package.json +1 -1
  96. package/src/funcs/receiptsCreate.ts +1 -1
  97. package/src/lib/config.ts +3 -3
  98. package/src/mcp-server/extensions.ts +4 -0
  99. package/src/mcp-server/mcp-server.ts +1 -1
  100. package/src/mcp-server/prompts.ts +110 -0
  101. package/src/mcp-server/resources.ts +1 -0
  102. package/src/mcp-server/server.ts +4 -2
  103. package/src/mcp-server/tools.ts +1 -0
  104. package/src/models/components/cardpresentpaymentpaymentmethod.ts +124 -0
  105. package/src/models/components/createtransfersource.ts +4 -0
  106. package/src/models/components/entrymode.ts +36 -0
  107. package/src/models/components/feeplan.ts +13 -0
  108. package/src/models/components/feeplanagreement.ts +13 -0
  109. package/src/models/components/governmentid.ts +58 -76
  110. package/src/models/components/governmentiderror.ts +78 -58
  111. package/src/models/components/index.ts +4 -0
  112. package/src/models/components/minimumcommitment.ts +83 -0
  113. package/src/models/components/partnerpricing.ts +13 -0
  114. package/src/models/components/partnerpricingagreement.ts +13 -0
  115. package/src/models/components/paymentmethod.ts +22 -2
  116. package/src/models/components/paymentmethodtype.ts +1 -0
  117. package/src/models/components/taxid.ts +27 -33
  118. package/src/models/components/taxidupdate.ts +33 -27
  119. package/src/models/components/terminalcard.ts +153 -0
  120. package/src/models/components/transfersource.ts +13 -0
  121. package/src/models/components/wallettransactionsourcetype.ts +1 -0
@@ -48,6 +48,7 @@ const paymentmethodsbankaccount_js_1 = require("./paymentmethodsbankaccount.js")
48
48
  const paymentmethodscard_js_1 = require("./paymentmethodscard.js");
49
49
  const paymentmethodswallet_js_1 = require("./paymentmethodswallet.js");
50
50
  const paymentmethodtype_js_1 = require("./paymentmethodtype.js");
51
+ const terminalcard_js_1 = require("./terminalcard.js");
51
52
  const transferaccount_js_1 = require("./transferaccount.js");
52
53
  /** @internal */
53
54
  exports.TransferSource$inboundSchema = z.object({
@@ -59,6 +60,7 @@ exports.TransferSource$inboundSchema = z.object({
59
60
  wallet: paymentmethodswallet_js_1.PaymentMethodsWallet$inboundSchema.optional(),
60
61
  card: paymentmethodscard_js_1.PaymentMethodsCard$inboundSchema.optional(),
61
62
  applePay: applepayresponse_js_1.ApplePayResponse$inboundSchema.optional(),
63
+ terminalCard: terminalcard_js_1.TerminalCard$inboundSchema.optional(),
62
64
  cardDetails: cardtransactiondetails_js_1.CardTransactionDetails$inboundSchema.optional(),
63
65
  achDetails: achtransactiondetails_js_1.ACHTransactionDetails$inboundSchema.optional(),
64
66
  });
@@ -72,6 +74,7 @@ exports.TransferSource$outboundSchema = z.object({
72
74
  wallet: paymentmethodswallet_js_1.PaymentMethodsWallet$outboundSchema.optional(),
73
75
  card: paymentmethodscard_js_1.PaymentMethodsCard$outboundSchema.optional(),
74
76
  applePay: applepayresponse_js_1.ApplePayResponse$outboundSchema.optional(),
77
+ terminalCard: terminalcard_js_1.TerminalCard$outboundSchema.optional(),
75
78
  cardDetails: cardtransactiondetails_js_1.CardTransactionDetails$outboundSchema.optional(),
76
79
  achDetails: achtransactiondetails_js_1.ACHTransactionDetails$outboundSchema.optional(),
77
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"transfersource.js","sourceRoot":"","sources":["../../src/models/components/transfersource.ts"],"names":[],"mappings":";AAAA;;GAEG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Q,EAAE;CAC5D,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"transfersource.js","sourceRoot":"","sources":["../../src/models/components/transfersource.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoKH,oDAEC;AAED,wDAQC;AA9KD,uCAAyB;AACzB,qDAAiD;AAGjD,yEAKoC;AACpC,+DAK+B;AAC/B,2EAKqC;AACrC,iFAKwC;AACxC,mEAKiC;AACjC,uEAKmC;AACnC,iEAIgC;AAChC,uDAK2B;AAC3B,6DAK8B;AAwC9B,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,iBAAiB,EAAE,sDAA+B;IAClD,OAAO,EAAE,kDAA6B;IACtC,WAAW,EAAE,sEAAuC,CAAC,QAAQ,EAAE;IAC/D,MAAM,EAAE,4DAAkC,CAAC,QAAQ,EAAE;IACrD,IAAI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AE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -7,6 +7,7 @@ export declare const WalletTransactionSourceType: {
7
7
  readonly IssuingAuthorization: "issuing-authorization";
8
8
  readonly Sweep: "sweep";
9
9
  readonly Adjustment: "adjustment";
10
+ readonly Fee: "fee";
10
11
  };
11
12
  export type WalletTransactionSourceType = ClosedEnum<typeof WalletTransactionSourceType>;
12
13
  /** @internal */
@@ -26,6 +27,7 @@ export declare namespace WalletTransactionSourceType$ {
26
27
  readonly IssuingAuthorization: "issuing-authorization";
27
28
  readonly Sweep: "sweep";
28
29
  readonly Adjustment: "adjustment";
30
+ readonly Fee: "fee";
29
31
  }>;
30
32
  /** @deprecated use `WalletTransactionSourceType$outboundSchema` instead. */
31
33
  const outboundSchema: z.ZodNativeEnum<{
@@ -35,6 +37,7 @@ export declare namespace WalletTransactionSourceType$ {
35
37
  readonly IssuingAuthorization: "issuing-authorization";
36
38
  readonly Sweep: "sweep";
37
39
  readonly Adjustment: "adjustment";
40
+ readonly Fee: "fee";
38
41
  }>;
39
42
  }
40
43
  //# sourceMappingURL=wallettransactionsourcetype.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wallettransactionsourcetype.d.ts","sourceRoot":"","sources":["../../src/models/components/wallettransactionsourcetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,aAAa,CACtE,OAAO,2BAA2B,CACS,CAAC;AAE9C;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa;;;;;;;MAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc;;;;;;;MAA6C,CAAC;CAC1E"}
1
+ {"version":3,"file":"wallettransactionsourcetype.d.ts","sourceRoot":"","sources":["../../src/models/components/wallettransactionsourcetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,2BAA2B;;;;;;;;CAQ9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,aAAa,CACtE,OAAO,2BAA2B,CACS,CAAC;AAE9C;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa;;;;;;;;MAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc;;;;;;;;MAA6C,CAAC;CAC1E"}
@@ -45,6 +45,7 @@ exports.WalletTransactionSourceType = {
45
45
  IssuingAuthorization: "issuing-authorization",
46
46
  Sweep: "sweep",
47
47
  Adjustment: "adjustment",
48
+ Fee: "fee",
48
49
  };
49
50
  /** @internal */
50
51
  exports.WalletTransactionSourceType$inboundSchema = z.nativeEnum(exports.WalletTransactionSourceType);
@@ -1 +1 @@
1
- {"version":3,"file":"wallettransactionsourcetype.js","sourceRoot":"","sources":["../../src/models/components/wallettransactionsourcetype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,2BAA2B,GAAG;IACzC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,sBAAsB,EAAE,0BAA0B;IAClD,oBAAoB,EAAE,uBAAuB;IAC7C,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAChB,CAAC;AAKX,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,0CAA0C,GAEnD,iDAAyC,CAAC;AAE9C;;;GAGG;AACH,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAC3E,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C"}
1
+ {"version":3,"file":"wallettransactionsourcetype.js","sourceRoot":"","sources":["../../src/models/components/wallettransactionsourcetype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,2BAA2B,GAAG;IACzC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,sBAAsB,EAAE,0BAA0B;IAClD,oBAAoB,EAAE,uBAAuB;IAC7C,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,KAAK;CACF,CAAC;AAKX,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,0CAA0C,GAEnD,iDAAyC,CAAC;AAE9C;;;GAGG;AACH,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAC3E,CAAC,EALgB,4BAA4B,4CAA5B,4BAA4B,QAK5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -171,7 +171,7 @@ async function $do(
171
171
  | RequestTimeoutError
172
172
  | ConnectionError
173
173
  >(
174
- M.json(200, operations.CreateReceiptsResponse$inboundSchema, {
174
+ M.json(201, operations.CreateReceiptsResponse$inboundSchema, {
175
175
  hdrs: true,
176
176
  key: "Result",
177
177
  }),
package/src/lib/config.ts CHANGED
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "latest",
72
- sdkVersion: "0.8.0",
73
- genVersion: "2.548.1",
74
- userAgent: "speakeasy-sdk/typescript 0.8.0 2.548.1 latest @moovio/sdk",
72
+ sdkVersion: "0.9.0",
73
+ genVersion: "2.552.1",
74
+ userAgent: "speakeasy-sdk/typescript 0.9.0 2.552.1 latest @moovio/sdk",
75
75
  } as const;
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { ZodRawShape } from "zod";
6
+ import { PromptArgsRawShape, PromptDefinition } from "./prompts.js";
6
7
  import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
7
8
  import { ToolDefinition } from "./tools.js";
8
9
 
@@ -10,4 +11,7 @@ export type Register = {
10
11
  tool: <A extends ZodRawShape | undefined>(def: ToolDefinition<A>) => void;
11
12
  resource: (def: ResourceDefinition) => void;
12
13
  resourceTemplate: (def: ResourceTemplateDefinition) => void;
14
+ prompt: <A extends PromptArgsRawShape | undefined>(
15
+ prompt: PromptDefinition<A>,
16
+ ) => void;
13
17
  };
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.8.0",
22
+ currentVersion: "0.9.0",
23
23
  },
24
24
  });
25
25
 
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
+ import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
7
+ import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js";
8
+ import {
9
+ objectOutputType,
10
+ ZodOptional,
11
+ ZodType,
12
+ ZodTypeAny,
13
+ ZodTypeDef,
14
+ } from "zod";
15
+ import { MoovCore } from "../core.js";
16
+ import { ConsoleLogger } from "./console-logger.js";
17
+ import { MCPScope } from "./scopes.js";
18
+
19
+ // '@modelcontextprotocol/sdk' currently does not export this type
20
+ export type PromptArgsRawShape = {
21
+ [k: string]:
22
+ | ZodType<string, ZodTypeDef, string>
23
+ | ZodOptional<ZodType<string, ZodTypeDef, string>>;
24
+ };
25
+
26
+ export type PromptDefinition<
27
+ Args extends undefined | PromptArgsRawShape = undefined,
28
+ > = Args extends PromptArgsRawShape ? {
29
+ name: string;
30
+ description?: string;
31
+ scopes?: MCPScope[];
32
+ args: Args;
33
+ prompt: (
34
+ client: MoovCore,
35
+ args: objectOutputType<Args, ZodTypeAny>,
36
+ extra: RequestHandlerExtra,
37
+ ) => GetPromptResult | Promise<GetPromptResult>;
38
+ }
39
+ : {
40
+ name: string;
41
+ description?: string;
42
+ scopes?: MCPScope[];
43
+ args?: undefined;
44
+ prompt: (
45
+ client: MoovCore,
46
+ extra: RequestHandlerExtra,
47
+ ) => GetPromptResult | Promise<GetPromptResult>;
48
+ };
49
+
50
+ // Optional function to assist with formatting prompt results
51
+ export async function formatResult(value: string): Promise<GetPromptResult> {
52
+ return {
53
+ messages: [
54
+ {
55
+ role: "user",
56
+ content: {
57
+ type: "text",
58
+ text: value,
59
+ },
60
+ },
61
+ ],
62
+ };
63
+ }
64
+
65
+ export function createRegisterPrompt(
66
+ logger: ConsoleLogger,
67
+ server: McpServer,
68
+ sdk: MoovCore,
69
+ allowedScopes: Set<MCPScope>,
70
+ ): <A extends PromptArgsRawShape | undefined>(
71
+ prompt: PromptDefinition<A>,
72
+ ) => void {
73
+ return <A extends PromptArgsRawShape | undefined>(
74
+ prompt: PromptDefinition<A>,
75
+ ): void => {
76
+ const scopes = prompt.scopes ?? [];
77
+ if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) {
78
+ return;
79
+ }
80
+
81
+ if (prompt.args) {
82
+ if (prompt.description) {
83
+ server.prompt(
84
+ prompt.name,
85
+ prompt.description,
86
+ prompt.args,
87
+ async (args, ctx) => prompt.prompt(sdk, args, ctx),
88
+ );
89
+ } else {
90
+ server.prompt(
91
+ prompt.name,
92
+ prompt.args,
93
+ async (args, ctx) => prompt.prompt(sdk, args, ctx),
94
+ );
95
+ }
96
+ } else {
97
+ if (prompt.description) {
98
+ server.prompt(
99
+ prompt.name,
100
+ prompt.description,
101
+ async (ctx) => prompt.prompt(sdk, ctx),
102
+ );
103
+ } else {
104
+ server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx));
105
+ }
106
+ }
107
+
108
+ logger.debug("Registered prompt", { name: prompt.name });
109
+ };
110
+ }
@@ -46,6 +46,7 @@ export type ResourceTemplateDefinition = {
46
46
  read: ReadResourceTemplateCallback;
47
47
  };
48
48
 
49
+ // Optional function to assist with formatting resource results
49
50
  export async function formatResult(
50
51
  value: unknown,
51
52
  uri: URL,
@@ -6,6 +6,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
  import { MoovCore } from "../core.js";
7
7
  import { SDKOptions } from "../lib/config.js";
8
8
  import type { ConsoleLogger } from "./console-logger.js";
9
+ import { createRegisterPrompt } from "./prompts.js";
9
10
  import {
10
11
  createRegisterResource,
11
12
  createRegisterResourceTemplate,
@@ -155,7 +156,7 @@ export function createMCPServer(deps: {
155
156
  }) {
156
157
  const server = new McpServer({
157
158
  name: "Moov",
158
- version: "0.8.0",
159
+ version: "0.9.0",
159
160
  });
160
161
 
161
162
  const client = new MoovCore({
@@ -182,7 +183,8 @@ export function createMCPServer(deps: {
182
183
  client,
183
184
  scopes,
184
185
  );
185
- const register = { tool, resource, resourceTemplate };
186
+ const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
187
+ const register = { tool, resource, resourceTemplate, prompt };
186
188
  void register; // suppress unused warnings
187
189
 
188
190
  tool(tool$accountsCreate);
@@ -34,6 +34,7 @@ export type ToolDefinition<Args extends undefined | ZodRawShape = undefined> =
34
34
  ) => CallToolResult | Promise<CallToolResult>;
35
35
  };
36
36
 
37
+ // Optional function to assist with formatting tool results
37
38
  export async function formatResult(
38
39
  value: unknown,
39
40
  init: { response?: Response | undefined },
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ TerminalCard,
12
+ TerminalCard$inboundSchema,
13
+ TerminalCard$Outbound,
14
+ TerminalCard$outboundSchema,
15
+ } from "./terminalcard.js";
16
+
17
+ export const CardPresentPaymentPaymentMethodPaymentMethodType = {
18
+ CardPresentPayment: "card-present-payment",
19
+ } as const;
20
+ export type CardPresentPaymentPaymentMethodPaymentMethodType = ClosedEnum<
21
+ typeof CardPresentPaymentPaymentMethodPaymentMethodType
22
+ >;
23
+
24
+ /**
25
+ * A card used at point of sale terminal for a card present transaction as contained within a payment method.
26
+ */
27
+ export type CardPresentPaymentPaymentMethod = {
28
+ /**
29
+ * ID of the payment method.
30
+ */
31
+ paymentMethodID: string;
32
+ paymentMethodType: CardPresentPaymentPaymentMethodPaymentMethodType;
33
+ /**
34
+ * Describes payment card details captured with tap or in-person payment.
35
+ */
36
+ terminalCard?: TerminalCard | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export const CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema:
41
+ z.ZodNativeEnum<typeof CardPresentPaymentPaymentMethodPaymentMethodType> = z
42
+ .nativeEnum(CardPresentPaymentPaymentMethodPaymentMethodType);
43
+
44
+ /** @internal */
45
+ export const CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema:
46
+ z.ZodNativeEnum<typeof CardPresentPaymentPaymentMethodPaymentMethodType> =
47
+ CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema;
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace CardPresentPaymentPaymentMethodPaymentMethodType$ {
54
+ /** @deprecated use `CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema` instead. */
55
+ export const inboundSchema =
56
+ CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema;
57
+ /** @deprecated use `CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema` instead. */
58
+ export const outboundSchema =
59
+ CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema;
60
+ }
61
+
62
+ /** @internal */
63
+ export const CardPresentPaymentPaymentMethod$inboundSchema: z.ZodType<
64
+ CardPresentPaymentPaymentMethod,
65
+ z.ZodTypeDef,
66
+ unknown
67
+ > = z.object({
68
+ paymentMethodID: z.string(),
69
+ paymentMethodType:
70
+ CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema,
71
+ terminalCard: TerminalCard$inboundSchema.optional(),
72
+ });
73
+
74
+ /** @internal */
75
+ export type CardPresentPaymentPaymentMethod$Outbound = {
76
+ paymentMethodID: string;
77
+ paymentMethodType: string;
78
+ terminalCard?: TerminalCard$Outbound | undefined;
79
+ };
80
+
81
+ /** @internal */
82
+ export const CardPresentPaymentPaymentMethod$outboundSchema: z.ZodType<
83
+ CardPresentPaymentPaymentMethod$Outbound,
84
+ z.ZodTypeDef,
85
+ CardPresentPaymentPaymentMethod
86
+ > = z.object({
87
+ paymentMethodID: z.string(),
88
+ paymentMethodType:
89
+ CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema,
90
+ terminalCard: TerminalCard$outboundSchema.optional(),
91
+ });
92
+
93
+ /**
94
+ * @internal
95
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
96
+ */
97
+ export namespace CardPresentPaymentPaymentMethod$ {
98
+ /** @deprecated use `CardPresentPaymentPaymentMethod$inboundSchema` instead. */
99
+ export const inboundSchema = CardPresentPaymentPaymentMethod$inboundSchema;
100
+ /** @deprecated use `CardPresentPaymentPaymentMethod$outboundSchema` instead. */
101
+ export const outboundSchema = CardPresentPaymentPaymentMethod$outboundSchema;
102
+ /** @deprecated use `CardPresentPaymentPaymentMethod$Outbound` instead. */
103
+ export type Outbound = CardPresentPaymentPaymentMethod$Outbound;
104
+ }
105
+
106
+ export function cardPresentPaymentPaymentMethodToJSON(
107
+ cardPresentPaymentPaymentMethod: CardPresentPaymentPaymentMethod,
108
+ ): string {
109
+ return JSON.stringify(
110
+ CardPresentPaymentPaymentMethod$outboundSchema.parse(
111
+ cardPresentPaymentPaymentMethod,
112
+ ),
113
+ );
114
+ }
115
+
116
+ export function cardPresentPaymentPaymentMethodFromJSON(
117
+ jsonString: string,
118
+ ): SafeParseResult<CardPresentPaymentPaymentMethod, SDKValidationError> {
119
+ return safeParse(
120
+ jsonString,
121
+ (x) => CardPresentPaymentPaymentMethod$inboundSchema.parse(JSON.parse(x)),
122
+ `Failed to parse 'CardPresentPaymentPaymentMethod' from JSON`,
123
+ );
124
+ }
@@ -31,6 +31,7 @@ export type CreateTransferSource = {
31
31
  */
32
32
  transferID?: string | undefined;
33
33
  paymentMethodID?: string | undefined;
34
+ paymentToken?: string | undefined;
34
35
  cardDetails?: CreateTransferSourceCard | undefined;
35
36
  achDetails?: CreateTransferSourceACH | undefined;
36
37
  };
@@ -43,6 +44,7 @@ export const CreateTransferSource$inboundSchema: z.ZodType<
43
44
  > = z.object({
44
45
  transferID: z.string().optional(),
45
46
  paymentMethodID: z.string().optional(),
47
+ paymentToken: z.string().optional(),
46
48
  cardDetails: CreateTransferSourceCard$inboundSchema.optional(),
47
49
  achDetails: CreateTransferSourceACH$inboundSchema.optional(),
48
50
  });
@@ -51,6 +53,7 @@ export const CreateTransferSource$inboundSchema: z.ZodType<
51
53
  export type CreateTransferSource$Outbound = {
52
54
  transferID?: string | undefined;
53
55
  paymentMethodID?: string | undefined;
56
+ paymentToken?: string | undefined;
54
57
  cardDetails?: CreateTransferSourceCard$Outbound | undefined;
55
58
  achDetails?: CreateTransferSourceACH$Outbound | undefined;
56
59
  };
@@ -63,6 +66,7 @@ export const CreateTransferSource$outboundSchema: z.ZodType<
63
66
  > = z.object({
64
67
  transferID: z.string().optional(),
65
68
  paymentMethodID: z.string().optional(),
69
+ paymentToken: z.string().optional(),
66
70
  cardDetails: CreateTransferSourceCard$outboundSchema.optional(),
67
71
  achDetails: CreateTransferSourceACH$outboundSchema.optional(),
68
72
  });
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * How the card information was entered into the point of sale terminal.
10
+ */
11
+ export const EntryMode = {
12
+ Contactless: "contactless",
13
+ } as const;
14
+ /**
15
+ * How the card information was entered into the point of sale terminal.
16
+ */
17
+ export type EntryMode = ClosedEnum<typeof EntryMode>;
18
+
19
+ /** @internal */
20
+ export const EntryMode$inboundSchema: z.ZodNativeEnum<typeof EntryMode> = z
21
+ .nativeEnum(EntryMode);
22
+
23
+ /** @internal */
24
+ export const EntryMode$outboundSchema: z.ZodNativeEnum<typeof EntryMode> =
25
+ EntryMode$inboundSchema;
26
+
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export namespace EntryMode$ {
32
+ /** @deprecated use `EntryMode$inboundSchema` instead. */
33
+ export const inboundSchema = EntryMode$inboundSchema;
34
+ /** @deprecated use `EntryMode$outboundSchema` instead. */
35
+ export const outboundSchema = EntryMode$outboundSchema;
36
+ }
@@ -17,6 +17,12 @@ import {
17
17
  CardAcquiringModel$inboundSchema,
18
18
  CardAcquiringModel$outboundSchema,
19
19
  } from "./cardacquiringmodel.js";
20
+ import {
21
+ MinimumCommitment,
22
+ MinimumCommitment$inboundSchema,
23
+ MinimumCommitment$Outbound,
24
+ MinimumCommitment$outboundSchema,
25
+ } from "./minimumcommitment.js";
20
26
 
21
27
  export type FeePlan = {
22
28
  planID: string;
@@ -36,6 +42,10 @@ export type FeePlan = {
36
42
  * Additional usage-based fees for this plan.
37
43
  */
38
44
  billableFees: Array<BillableFee>;
45
+ /**
46
+ * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
47
+ */
48
+ minimumCommitment: MinimumCommitment;
39
49
  createdAt: Date;
40
50
  };
41
51
 
@@ -47,6 +57,7 @@ export const FeePlan$inboundSchema: z.ZodType<FeePlan, z.ZodTypeDef, unknown> =
47
57
  description: z.string().optional(),
48
58
  cardAcquiringModel: CardAcquiringModel$inboundSchema,
49
59
  billableFees: z.array(BillableFee$inboundSchema),
60
+ minimumCommitment: MinimumCommitment$inboundSchema,
50
61
  createdAt: z.string().datetime({ offset: true }).transform(v =>
51
62
  new Date(v)
52
63
  ),
@@ -59,6 +70,7 @@ export type FeePlan$Outbound = {
59
70
  description?: string | undefined;
60
71
  cardAcquiringModel: string;
61
72
  billableFees: Array<BillableFee$Outbound>;
73
+ minimumCommitment: MinimumCommitment$Outbound;
62
74
  createdAt: string;
63
75
  };
64
76
 
@@ -73,6 +85,7 @@ export const FeePlan$outboundSchema: z.ZodType<
73
85
  description: z.string().optional(),
74
86
  cardAcquiringModel: CardAcquiringModel$outboundSchema,
75
87
  billableFees: z.array(BillableFee$outboundSchema),
88
+ minimumCommitment: MinimumCommitment$outboundSchema,
76
89
  createdAt: z.date().transform(v => v.toISOString()),
77
90
  });
78
91
 
@@ -22,6 +22,12 @@ import {
22
22
  FeePlanAgreementStatus$inboundSchema,
23
23
  FeePlanAgreementStatus$outboundSchema,
24
24
  } from "./feeplanagreementstatus.js";
25
+ import {
26
+ MinimumCommitment,
27
+ MinimumCommitment$inboundSchema,
28
+ MinimumCommitment$Outbound,
29
+ MinimumCommitment$outboundSchema,
30
+ } from "./minimumcommitment.js";
25
31
 
26
32
  export type FeePlanAgreement = {
27
33
  agreementID: string;
@@ -42,6 +48,10 @@ export type FeePlanAgreement = {
42
48
  */
43
49
  cardAcquiringModel: CardAcquiringModel;
44
50
  billableFees: Array<BillableFee>;
51
+ /**
52
+ * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
53
+ */
54
+ minimumCommitment: MinimumCommitment;
45
55
  };
46
56
 
47
57
  /** @internal */
@@ -59,6 +69,7 @@ export const FeePlanAgreement$inboundSchema: z.ZodType<
59
69
  status: FeePlanAgreementStatus$inboundSchema,
60
70
  cardAcquiringModel: CardAcquiringModel$inboundSchema,
61
71
  billableFees: z.array(BillableFee$inboundSchema),
72
+ minimumCommitment: MinimumCommitment$inboundSchema,
62
73
  });
63
74
 
64
75
  /** @internal */
@@ -72,6 +83,7 @@ export type FeePlanAgreement$Outbound = {
72
83
  status: string;
73
84
  cardAcquiringModel: string;
74
85
  billableFees: Array<BillableFee$Outbound>;
86
+ minimumCommitment: MinimumCommitment$Outbound;
75
87
  };
76
88
 
77
89
  /** @internal */
@@ -89,6 +101,7 @@ export const FeePlanAgreement$outboundSchema: z.ZodType<
89
101
  status: FeePlanAgreementStatus$outboundSchema,
90
102
  cardAcquiringModel: CardAcquiringModel$outboundSchema,
91
103
  billableFees: z.array(BillableFee$outboundSchema),
104
+ minimumCommitment: MinimumCommitment$outboundSchema,
92
105
  });
93
106
 
94
107
  /**