@moovio/sdk 0.0.0-dev.27 → 0.0.0-dev.28

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 (277) hide show
  1. package/README.md +121 -59
  2. package/bin/mcp-server.js +969 -217
  3. package/bin/mcp-server.js.map +55 -29
  4. package/funcs/avatarsDelete.d.ts +23 -0
  5. package/funcs/avatarsDelete.d.ts.map +1 -0
  6. package/funcs/avatarsDelete.js +135 -0
  7. package/funcs/avatarsDelete.js.map +1 -0
  8. package/funcs/avatarsUpload.d.ts +23 -0
  9. package/funcs/avatarsUpload.d.ts.map +1 -0
  10. package/funcs/avatarsUpload.js +155 -0
  11. package/funcs/avatarsUpload.js.map +1 -0
  12. package/funcs/productsList.js +1 -0
  13. package/funcs/productsList.js.map +1 -1
  14. package/funcs/productsListCategories.d.ts +14 -0
  15. package/funcs/productsListCategories.d.ts.map +1 -0
  16. package/funcs/productsListCategories.js +107 -0
  17. package/funcs/productsListCategories.js.map +1 -0
  18. package/hooks/oauth2scopes.d.ts +5 -0
  19. package/hooks/oauth2scopes.d.ts.map +1 -0
  20. package/hooks/oauth2scopes.js +6 -0
  21. package/hooks/oauth2scopes.js.map +1 -0
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +3 -3
  24. package/lib/config.js +3 -3
  25. package/mcp-server/mcp-server.js +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +3 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/productsListCategories.d.ts +3 -0
  30. package/mcp-server/tools/productsListCategories.d.ts.map +1 -0
  31. package/mcp-server/tools/productsListCategories.js +24 -0
  32. package/mcp-server/tools/productsListCategories.js.map +1 -0
  33. package/models/components/allowedscheduleerror.d.ts +24 -0
  34. package/models/components/allowedscheduleerror.d.ts.map +1 -0
  35. package/models/components/allowedscheduleerror.js +62 -0
  36. package/models/components/allowedscheduleerror.js.map +1 -0
  37. package/models/components/avataruploadrequest.d.ts +35 -0
  38. package/models/components/avataruploadrequest.d.ts.map +1 -0
  39. package/models/components/avataruploadrequest.js +88 -0
  40. package/models/components/avataruploadrequest.js.map +1 -0
  41. package/models/components/capabilityid.d.ts +1 -0
  42. package/models/components/capabilityid.d.ts.map +1 -1
  43. package/models/components/capabilityid.js +1 -0
  44. package/models/components/capabilityid.js.map +1 -1
  45. package/models/components/createtransfer.d.ts +6 -0
  46. package/models/components/createtransfer.d.ts.map +1 -1
  47. package/models/components/createtransfer.js +3 -0
  48. package/models/components/createtransfer.js.map +1 -1
  49. package/models/components/feepaidby.d.ts +18 -0
  50. package/models/components/feepaidby.d.ts.map +1 -0
  51. package/models/components/feepaidby.js +52 -0
  52. package/models/components/feepaidby.js.map +1 -0
  53. package/models/components/fullissuedcard.d.ts +6 -3
  54. package/models/components/fullissuedcard.d.ts.map +1 -1
  55. package/models/components/fullissuedcard.js +3 -3
  56. package/models/components/fullissuedcard.js.map +1 -1
  57. package/models/components/incurredfee.d.ts +6 -0
  58. package/models/components/incurredfee.d.ts.map +1 -1
  59. package/models/components/incurredfee.js +3 -0
  60. package/models/components/incurredfee.js.map +1 -1
  61. package/models/components/index.d.ts +21 -0
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +21 -0
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/issuedcard.d.ts +6 -3
  66. package/models/components/issuedcard.d.ts.map +1 -1
  67. package/models/components/issuedcard.js +3 -3
  68. package/models/components/issuedcard.js.map +1 -1
  69. package/models/components/issuedcontrols.d.ts +76 -0
  70. package/models/components/issuedcontrols.d.ts.map +1 -0
  71. package/models/components/issuedcontrols.js +92 -0
  72. package/models/components/issuedcontrols.js.map +1 -0
  73. package/models/components/issuedvelocitylimit.d.ts +59 -0
  74. package/models/components/issuedvelocitylimit.d.ts.map +1 -0
  75. package/models/components/issuedvelocitylimit.js +74 -0
  76. package/models/components/issuedvelocitylimit.js.map +1 -0
  77. package/models/components/issuingcontrols.d.ts +47 -0
  78. package/models/components/issuingcontrols.d.ts.map +1 -1
  79. package/models/components/issuingcontrols.js +33 -1
  80. package/models/components/issuingcontrols.js.map +1 -1
  81. package/models/components/issuingcontrolserror.d.ts +11 -0
  82. package/models/components/issuingcontrolserror.d.ts.map +1 -1
  83. package/models/components/issuingcontrolserror.js +12 -0
  84. package/models/components/issuingcontrolserror.js.map +1 -1
  85. package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
  86. package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
  87. package/models/components/issuingcontrolsrestrictionmode.js +52 -0
  88. package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
  89. package/models/components/issuingintervallimit.d.ts +9 -6
  90. package/models/components/issuingintervallimit.d.ts.map +1 -1
  91. package/models/components/issuingintervallimit.js +7 -4
  92. package/models/components/issuingintervallimit.js.map +1 -1
  93. package/models/components/issuingmerchantcategory.d.ts +42 -0
  94. package/models/components/issuingmerchantcategory.d.ts.map +1 -0
  95. package/models/components/issuingmerchantcategory.js +76 -0
  96. package/models/components/issuingmerchantcategory.js.map +1 -0
  97. package/models/components/issuingscheduleday.d.ts +17 -0
  98. package/models/components/issuingscheduleday.d.ts.map +1 -0
  99. package/models/components/issuingscheduleday.js +54 -0
  100. package/models/components/issuingscheduleday.js.map +1 -0
  101. package/models/components/issuingvelocitylimit.d.ts +8 -3
  102. package/models/components/issuingvelocitylimit.d.ts.map +1 -1
  103. package/models/components/issuingvelocitylimit.js +4 -2
  104. package/models/components/issuingvelocitylimit.js.map +1 -1
  105. package/models/components/issuingvelocitylimiterror.d.ts +2 -0
  106. package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
  107. package/models/components/issuingvelocitylimiterror.js +2 -0
  108. package/models/components/issuingvelocitylimiterror.js.map +1 -1
  109. package/models/components/merchantcategoryrestrictions.d.ts +41 -0
  110. package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
  111. package/models/components/merchantcategoryrestrictions.js +68 -0
  112. package/models/components/merchantcategoryrestrictions.js.map +1 -0
  113. package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
  114. package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
  115. package/models/components/merchantcategoryrestrictionserror.js +66 -0
  116. package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
  117. package/models/components/merchantentry.d.ts +33 -0
  118. package/models/components/merchantentry.d.ts.map +1 -0
  119. package/models/components/merchantentry.js +63 -0
  120. package/models/components/merchantentry.js.map +1 -0
  121. package/models/components/merchantentryerror.d.ts +19 -0
  122. package/models/components/merchantentryerror.d.ts.map +1 -0
  123. package/models/components/merchantentryerror.js +61 -0
  124. package/models/components/merchantentryerror.js.map +1 -0
  125. package/models/components/merchantrestrictions.d.ts +30 -0
  126. package/models/components/merchantrestrictions.d.ts.map +1 -0
  127. package/models/components/merchantrestrictions.js +62 -0
  128. package/models/components/merchantrestrictions.js.map +1 -0
  129. package/models/components/merchantrestrictionserror.d.ts +24 -0
  130. package/models/components/merchantrestrictionserror.d.ts.map +1 -0
  131. package/models/components/merchantrestrictionserror.js +62 -0
  132. package/models/components/merchantrestrictionserror.js.map +1 -0
  133. package/models/components/paymentlinkpayoutdetails.d.ts +14 -0
  134. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  135. package/models/components/paymentlinkpayoutdetails.js +3 -0
  136. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  137. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +14 -0
  138. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  139. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  140. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  141. package/models/components/payoutdetailserror.d.ts +2 -0
  142. package/models/components/payoutdetailserror.d.ts.map +1 -1
  143. package/models/components/payoutdetailserror.js +2 -0
  144. package/models/components/payoutdetailserror.js.map +1 -1
  145. package/models/components/product.d.ts +6 -0
  146. package/models/components/product.d.ts.map +1 -1
  147. package/models/components/product.js +3 -0
  148. package/models/components/product.js.map +1 -1
  149. package/models/components/productcategories.d.ts +21 -0
  150. package/models/components/productcategories.d.ts.map +1 -0
  151. package/models/components/productcategories.js +59 -0
  152. package/models/components/productcategories.js.map +1 -0
  153. package/models/components/productcategory.d.ts +43 -0
  154. package/models/components/productcategory.d.ts.map +1 -0
  155. package/models/components/productcategory.js +67 -0
  156. package/models/components/productcategory.js.map +1 -0
  157. package/models/components/productrequest.d.ts +5 -0
  158. package/models/components/productrequest.d.ts.map +1 -1
  159. package/models/components/productrequest.js +2 -0
  160. package/models/components/productrequest.js.map +1 -1
  161. package/models/components/schedulewindow.d.ts +34 -0
  162. package/models/components/schedulewindow.d.ts.map +1 -0
  163. package/models/components/schedulewindow.js +64 -0
  164. package/models/components/schedulewindow.js.map +1 -0
  165. package/models/components/schedulewindowerror.d.ts +21 -0
  166. package/models/components/schedulewindowerror.d.ts.map +1 -0
  167. package/models/components/schedulewindowerror.js +63 -0
  168. package/models/components/schedulewindowerror.js.map +1 -0
  169. package/models/components/transferfeepaidby.d.ts +24 -0
  170. package/models/components/transferfeepaidby.d.ts.map +1 -0
  171. package/models/components/transferfeepaidby.js +60 -0
  172. package/models/components/transferfeepaidby.js.map +1 -0
  173. package/models/components/updateissuedcard.d.ts +6 -0
  174. package/models/components/updateissuedcard.d.ts.map +1 -1
  175. package/models/components/updateissuedcard.js +3 -0
  176. package/models/components/updateissuedcard.js.map +1 -1
  177. package/models/components/updateissuingcontrols.d.ts +130 -0
  178. package/models/components/updateissuingcontrols.d.ts.map +1 -0
  179. package/models/components/updateissuingcontrols.js +130 -0
  180. package/models/components/updateissuingcontrols.js.map +1 -0
  181. package/models/components/updateissuingcontrolserror.d.ts +33 -0
  182. package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
  183. package/models/components/updateissuingcontrolserror.js +72 -0
  184. package/models/components/updateissuingcontrolserror.js.map +1 -0
  185. package/models/errors/productrequestvalidationerror.d.ts +3 -0
  186. package/models/errors/productrequestvalidationerror.d.ts.map +1 -1
  187. package/models/errors/productrequestvalidationerror.js +4 -0
  188. package/models/errors/productrequestvalidationerror.js.map +1 -1
  189. package/models/errors/updateissuedcarderror.d.ts +3 -0
  190. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  191. package/models/errors/updateissuedcarderror.js +4 -0
  192. package/models/errors/updateissuedcarderror.js.map +1 -1
  193. package/models/operations/deleteavatar.d.ts +52 -0
  194. package/models/operations/deleteavatar.d.ts.map +1 -0
  195. package/models/operations/deleteavatar.js +102 -0
  196. package/models/operations/deleteavatar.js.map +1 -0
  197. package/models/operations/index.d.ts +3 -0
  198. package/models/operations/index.d.ts.map +1 -1
  199. package/models/operations/index.js +3 -0
  200. package/models/operations/index.js.map +1 -1
  201. package/models/operations/listproductcategories.d.ts +24 -0
  202. package/models/operations/listproductcategories.d.ts.map +1 -0
  203. package/models/operations/listproductcategories.js +72 -0
  204. package/models/operations/listproductcategories.js.map +1 -0
  205. package/models/operations/listproducts.d.ts +9 -0
  206. package/models/operations/listproducts.d.ts.map +1 -1
  207. package/models/operations/listproducts.js +2 -0
  208. package/models/operations/listproducts.js.map +1 -1
  209. package/models/operations/uploadavatar.d.ts +55 -0
  210. package/models/operations/uploadavatar.d.ts.map +1 -0
  211. package/models/operations/uploadavatar.js +113 -0
  212. package/models/operations/uploadavatar.js.map +1 -0
  213. package/package.json +1 -1
  214. package/sdk/avatars.d.ts +24 -0
  215. package/sdk/avatars.d.ts.map +1 -1
  216. package/sdk/avatars.js +30 -0
  217. package/sdk/avatars.js.map +1 -1
  218. package/sdk/products.d.ts +4 -0
  219. package/sdk/products.d.ts.map +1 -1
  220. package/sdk/products.js +7 -0
  221. package/sdk/products.js.map +1 -1
  222. package/src/funcs/avatarsDelete.ts +194 -0
  223. package/src/funcs/avatarsUpload.ts +231 -0
  224. package/src/funcs/productsList.ts +1 -0
  225. package/src/funcs/productsListCategories.ts +149 -0
  226. package/src/hooks/oauth2scopes.ts +8 -0
  227. package/src/lib/config.ts +3 -3
  228. package/src/mcp-server/mcp-server.ts +1 -1
  229. package/src/mcp-server/server.ts +3 -1
  230. package/src/mcp-server/tools/productsListCategories.ts +29 -0
  231. package/src/models/components/allowedscheduleerror.ts +62 -0
  232. package/src/models/components/avataruploadrequest.ts +113 -0
  233. package/src/models/components/capabilityid.ts +1 -0
  234. package/src/models/components/createtransfer.ts +13 -0
  235. package/src/models/components/feepaidby.ts +32 -0
  236. package/src/models/components/fullissuedcard.ts +12 -9
  237. package/src/models/components/incurredfee.ts +12 -0
  238. package/src/models/components/index.ts +21 -0
  239. package/src/models/components/issuedcard.ts +12 -9
  240. package/src/models/components/issuedcontrols.ts +180 -0
  241. package/src/models/components/issuedvelocitylimit.ts +112 -0
  242. package/src/models/components/issuingcontrols.ts +107 -0
  243. package/src/models/components/issuingcontrolserror.ts +39 -0
  244. package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
  245. package/src/models/components/issuingintervallimit.ts +18 -10
  246. package/src/models/components/issuingmerchantcategory.ts +56 -0
  247. package/src/models/components/issuingscheduleday.ts +26 -0
  248. package/src/models/components/issuingvelocitylimit.ts +12 -5
  249. package/src/models/components/issuingvelocitylimiterror.ts +4 -0
  250. package/src/models/components/merchantcategoryrestrictions.ts +97 -0
  251. package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
  252. package/src/models/components/merchantentry.ts +68 -0
  253. package/src/models/components/merchantentryerror.ts +56 -0
  254. package/src/models/components/merchantrestrictions.ts +75 -0
  255. package/src/models/components/merchantrestrictionserror.ts +62 -0
  256. package/src/models/components/paymentlinkpayoutdetails.ts +16 -0
  257. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +16 -0
  258. package/src/models/components/payoutdetailserror.ts +4 -0
  259. package/src/models/components/product.ts +13 -0
  260. package/src/models/components/productcategories.ts +60 -0
  261. package/src/models/components/productcategory.ts +84 -0
  262. package/src/models/components/productrequest.ts +7 -0
  263. package/src/models/components/schedulewindow.ts +73 -0
  264. package/src/models/components/schedulewindowerror.ts +60 -0
  265. package/src/models/components/transferfeepaidby.ts +63 -0
  266. package/src/models/components/updateissuedcard.ts +13 -0
  267. package/src/models/components/updateissuingcontrols.ts +351 -0
  268. package/src/models/components/updateissuingcontrolserror.ts +101 -0
  269. package/src/models/errors/productrequestvalidationerror.ts +6 -0
  270. package/src/models/errors/updateissuedcarderror.ts +6 -0
  271. package/src/models/operations/deleteavatar.ts +154 -0
  272. package/src/models/operations/index.ts +3 -0
  273. package/src/models/operations/listproductcategories.ts +69 -0
  274. package/src/models/operations/listproducts.ts +11 -0
  275. package/src/models/operations/uploadavatar.ts +167 -0
  276. package/src/sdk/avatars.ts +50 -0
  277. package/src/sdk/products.ts +13 -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: "dev",
76
- sdkVersion: "0.0.0-dev.27",
77
- genVersion: "2.917.0",
78
- userAgent: "speakeasy-sdk/typescript 0.0.0-dev.27 2.917.0 dev @moovio/sdk",
76
+ sdkVersion: "0.0.0-dev.28",
77
+ genVersion: "2.924.0",
78
+ userAgent: "speakeasy-sdk/typescript 0.0.0-dev.28 2.924.0 dev @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: "0.0.0-dev.27",
22
+ currentVersion: "0.0.0-dev.28",
23
23
  },
24
24
  });
25
25
 
@@ -134,6 +134,7 @@ import { tool$productsCreate } from "./tools/productsCreate.js";
134
134
  import { tool$productsDisable } from "./tools/productsDisable.js";
135
135
  import { tool$productsGet } from "./tools/productsGet.js";
136
136
  import { tool$productsList } from "./tools/productsList.js";
137
+ import { tool$productsListCategories } from "./tools/productsListCategories.js";
137
138
  import { tool$productsUpdate } from "./tools/productsUpdate.js";
138
139
  import { tool$receiptsCreate } from "./tools/receiptsCreate.js";
139
140
  import { tool$receiptsList } from "./tools/receiptsList.js";
@@ -216,7 +217,7 @@ export function createMCPServer(deps: {
216
217
  }) {
217
218
  const server = new McpServer({
218
219
  name: "Moov",
219
- version: "0.0.0-dev.27",
220
+ version: "0.0.0-dev.28",
220
221
  });
221
222
 
222
223
  const client = new MoovCore({
@@ -339,6 +340,7 @@ export function createMCPServer(deps: {
339
340
  tool(tool$productsGet);
340
341
  tool(tool$productsUpdate);
341
342
  tool(tool$productsDisable);
343
+ tool(tool$productsListCategories);
342
344
  tool(tool$representativesCreate);
343
345
  tool(tool$representativesList);
344
346
  tool(tool$representativesDelete);
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { productsListCategories } from "../../funcs/productsListCategories.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$productsListCategories: ToolDefinition = {
9
+ name: "products-list-categories",
10
+ description:
11
+ `Returns the full, read-only list of product categories from the product taxonomy.`,
12
+ tool: async (client, ctx) => {
13
+ const [result, apiCall] = await productsListCategories(
14
+ client,
15
+ { fetchOptions: { signal: ctx.signal } },
16
+ ).$inspect();
17
+
18
+ if (!result.ok) {
19
+ return {
20
+ content: [{ type: "text", text: result.error.message }],
21
+ isError: true,
22
+ };
23
+ }
24
+
25
+ const value = result.value.result;
26
+
27
+ return formatResult(value, apiCall);
28
+ },
29
+ };
@@ -0,0 +1,62 @@
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
+ import {
11
+ ScheduleWindowError,
12
+ ScheduleWindowError$inboundSchema,
13
+ ScheduleWindowError$Outbound,
14
+ ScheduleWindowError$outboundSchema,
15
+ } from "./schedulewindowerror.js";
16
+
17
+ export type AllowedScheduleError = {
18
+ timezone?: string | undefined;
19
+ windows?: { [k: string]: ScheduleWindowError } | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AllowedScheduleError$inboundSchema: z.ZodType<
24
+ AllowedScheduleError,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ timezone: types.optional(types.string()),
29
+ windows: types.optional(z.record(ScheduleWindowError$inboundSchema)),
30
+ });
31
+ /** @internal */
32
+ export type AllowedScheduleError$Outbound = {
33
+ timezone?: string | undefined;
34
+ windows?: { [k: string]: ScheduleWindowError$Outbound } | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AllowedScheduleError$outboundSchema: z.ZodType<
39
+ AllowedScheduleError$Outbound,
40
+ z.ZodTypeDef,
41
+ AllowedScheduleError
42
+ > = z.object({
43
+ timezone: z.string().optional(),
44
+ windows: z.record(ScheduleWindowError$outboundSchema).optional(),
45
+ });
46
+
47
+ export function allowedScheduleErrorToJSON(
48
+ allowedScheduleError: AllowedScheduleError,
49
+ ): string {
50
+ return JSON.stringify(
51
+ AllowedScheduleError$outboundSchema.parse(allowedScheduleError),
52
+ );
53
+ }
54
+ export function allowedScheduleErrorFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<AllowedScheduleError, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => AllowedScheduleError$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'AllowedScheduleError' from JSON`,
61
+ );
62
+ }
@@ -0,0 +1,113 @@
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 { blobLikeSchema } from "../../types/blobs.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AvatarUploadRequestFile = {
13
+ fileName: string;
14
+ content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
15
+ };
16
+
17
+ export type AvatarUploadRequest = {
18
+ /**
19
+ * A JPEG, PNG, or WebP image file to upload as an avatar.
20
+ */
21
+ file: AvatarUploadRequestFile | Blob;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AvatarUploadRequestFile$inboundSchema: z.ZodType<
26
+ AvatarUploadRequestFile,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ fileName: types.string(),
31
+ content: z.union([
32
+ z.instanceof(ReadableStream<Uint8Array>),
33
+ z.instanceof(Blob),
34
+ z.instanceof(ArrayBuffer),
35
+ z.instanceof(Uint8Array),
36
+ ]),
37
+ });
38
+ /** @internal */
39
+ export type AvatarUploadRequestFile$Outbound = {
40
+ fileName: string;
41
+ content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
42
+ };
43
+
44
+ /** @internal */
45
+ export const AvatarUploadRequestFile$outboundSchema: z.ZodType<
46
+ AvatarUploadRequestFile$Outbound,
47
+ z.ZodTypeDef,
48
+ AvatarUploadRequestFile
49
+ > = z.object({
50
+ fileName: z.string(),
51
+ content: z.union([
52
+ z.instanceof(ReadableStream<Uint8Array>),
53
+ z.instanceof(Blob),
54
+ z.instanceof(ArrayBuffer),
55
+ z.instanceof(Uint8Array),
56
+ ]),
57
+ });
58
+
59
+ export function avatarUploadRequestFileToJSON(
60
+ avatarUploadRequestFile: AvatarUploadRequestFile,
61
+ ): string {
62
+ return JSON.stringify(
63
+ AvatarUploadRequestFile$outboundSchema.parse(avatarUploadRequestFile),
64
+ );
65
+ }
66
+ export function avatarUploadRequestFileFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<AvatarUploadRequestFile, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => AvatarUploadRequestFile$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'AvatarUploadRequestFile' from JSON`,
73
+ );
74
+ }
75
+
76
+ /** @internal */
77
+ export const AvatarUploadRequest$inboundSchema: z.ZodType<
78
+ AvatarUploadRequest,
79
+ z.ZodTypeDef,
80
+ unknown
81
+ > = z.object({
82
+ file: z.lazy(() => AvatarUploadRequestFile$inboundSchema),
83
+ });
84
+ /** @internal */
85
+ export type AvatarUploadRequest$Outbound = {
86
+ file: AvatarUploadRequestFile$Outbound | Blob;
87
+ };
88
+
89
+ /** @internal */
90
+ export const AvatarUploadRequest$outboundSchema: z.ZodType<
91
+ AvatarUploadRequest$Outbound,
92
+ z.ZodTypeDef,
93
+ AvatarUploadRequest
94
+ > = z.object({
95
+ file: z.lazy(() => AvatarUploadRequestFile$outboundSchema).or(blobLikeSchema),
96
+ });
97
+
98
+ export function avatarUploadRequestToJSON(
99
+ avatarUploadRequest: AvatarUploadRequest,
100
+ ): string {
101
+ return JSON.stringify(
102
+ AvatarUploadRequest$outboundSchema.parse(avatarUploadRequest),
103
+ );
104
+ }
105
+ export function avatarUploadRequestFromJSON(
106
+ jsonString: string,
107
+ ): SafeParseResult<AvatarUploadRequest, SDKValidationError> {
108
+ return safeParse(
109
+ jsonString,
110
+ (x) => AvatarUploadRequest$inboundSchema.parse(JSON.parse(x)),
111
+ `Failed to parse 'AvatarUploadRequest' from JSON`,
112
+ );
113
+ }
@@ -27,6 +27,7 @@ export const CapabilityID = {
27
27
  SendFundsAch: "send-funds.ach",
28
28
  SendFundsRtp: "send-funds.rtp",
29
29
  SendFundsInstantBank: "send-funds.instant-bank",
30
+ SendFundsWire: "send-funds.wire",
30
31
  CollectFunds: "collect-funds",
31
32
  CollectFundsCardPayments: "collect-funds.card-payments",
32
33
  MoneyTransferPullFromCard: "money-transfer.pull-from-card",
@@ -43,6 +43,12 @@ import {
43
43
  FacilitatorFee$Outbound,
44
44
  FacilitatorFee$outboundSchema,
45
45
  } from "./facilitatorfee.js";
46
+ import {
47
+ TransferFeePaidBy,
48
+ TransferFeePaidBy$inboundSchema,
49
+ TransferFeePaidBy$Outbound,
50
+ TransferFeePaidBy$outboundSchema,
51
+ } from "./transferfeepaidby.js";
46
52
 
47
53
  export type CreateTransfer = {
48
54
  /**
@@ -78,6 +84,10 @@ export type CreateTransfer = {
78
84
  */
79
85
  lineItems?: CreateTransferLineItems | undefined;
80
86
  amountDetails?: CreateTransferAmountDetails | undefined;
87
+ /**
88
+ * Indicates which party bears fees for the transfer, keyed by fee type.
89
+ */
90
+ feePaidBy?: TransferFeePaidBy | undefined;
81
91
  };
82
92
 
83
93
  /** @internal */
@@ -95,6 +105,7 @@ export const CreateTransfer$inboundSchema: z.ZodType<
95
105
  foreignID: types.optional(types.string()),
96
106
  lineItems: types.optional(CreateTransferLineItems$inboundSchema),
97
107
  amountDetails: types.optional(CreateTransferAmountDetails$inboundSchema),
108
+ feePaidBy: types.optional(TransferFeePaidBy$inboundSchema),
98
109
  });
99
110
  /** @internal */
100
111
  export type CreateTransfer$Outbound = {
@@ -107,6 +118,7 @@ export type CreateTransfer$Outbound = {
107
118
  foreignID?: string | undefined;
108
119
  lineItems?: CreateTransferLineItems$Outbound | undefined;
109
120
  amountDetails?: CreateTransferAmountDetails$Outbound | undefined;
121
+ feePaidBy?: TransferFeePaidBy$Outbound | undefined;
110
122
  };
111
123
 
112
124
  /** @internal */
@@ -124,6 +136,7 @@ export const CreateTransfer$outboundSchema: z.ZodType<
124
136
  foreignID: z.string().optional(),
125
137
  lineItems: CreateTransferLineItems$outboundSchema.optional(),
126
138
  amountDetails: CreateTransferAmountDetails$outboundSchema.optional(),
139
+ feePaidBy: TransferFeePaidBy$outboundSchema.optional(),
127
140
  });
128
141
 
129
142
  export function createTransferToJSON(createTransfer: CreateTransfer): string {
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Indicates which party to a money movement bears an incurred fee.
11
+ */
12
+ export const FeePaidBy = {
13
+ Source: "source",
14
+ Destination: "destination",
15
+ } as const;
16
+ /**
17
+ * Indicates which party to a money movement bears an incurred fee.
18
+ */
19
+ export type FeePaidBy = OpenEnum<typeof FeePaidBy>;
20
+
21
+ /** @internal */
22
+ export const FeePaidBy$inboundSchema: z.ZodType<
23
+ FeePaidBy,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = openEnums.inboundSchema(FeePaidBy);
27
+ /** @internal */
28
+ export const FeePaidBy$outboundSchema: z.ZodType<
29
+ string,
30
+ z.ZodTypeDef,
31
+ FeePaidBy
32
+ > = openEnums.outboundSchema(FeePaidBy);
@@ -35,11 +35,11 @@ import {
35
35
  IssuedCardState$outboundSchema,
36
36
  } from "./issuedcardstate.js";
37
37
  import {
38
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
38
+ IssuedControls,
39
+ IssuedControls$inboundSchema,
40
+ IssuedControls$Outbound,
41
+ IssuedControls$outboundSchema,
42
+ } from "./issuedcontrols.js";
43
43
 
44
44
  /**
45
45
  * The full details of an issued card, including PAN and CVV.
@@ -88,7 +88,10 @@ export type FullIssuedCard = {
88
88
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
89
89
  */
90
90
  formFactor: IssuedCardFormFactor;
91
- controls?: IssuingControls | undefined;
91
+ /**
92
+ * Spend controls applied to an issued card, including velocity runtime state.
93
+ */
94
+ controls?: IssuedControls | undefined;
92
95
  createdOn: Date;
93
96
  updatedOn: Date;
94
97
  /**
@@ -118,7 +121,7 @@ export const FullIssuedCard$inboundSchema: z.ZodType<
118
121
  billingAddress: types.optional(Address$inboundSchema),
119
122
  state: IssuedCardState$inboundSchema,
120
123
  formFactor: IssuedCardFormFactor$inboundSchema,
121
- controls: types.optional(IssuingControls$inboundSchema),
124
+ controls: types.optional(IssuedControls$inboundSchema),
122
125
  createdOn: types.date(),
123
126
  updatedOn: types.date(),
124
127
  pan: types.string(),
@@ -137,7 +140,7 @@ export type FullIssuedCard$Outbound = {
137
140
  billingAddress?: Address$Outbound | undefined;
138
141
  state: string;
139
142
  formFactor: string;
140
- controls?: IssuingControls$Outbound | undefined;
143
+ controls?: IssuedControls$Outbound | undefined;
141
144
  createdOn: string;
142
145
  updatedOn: string;
143
146
  pan: string;
@@ -161,7 +164,7 @@ export const FullIssuedCard$outboundSchema: z.ZodType<
161
164
  billingAddress: Address$outboundSchema.optional(),
162
165
  state: IssuedCardState$outboundSchema,
163
166
  formFactor: IssuedCardFormFactor$outboundSchema,
164
- controls: IssuingControls$outboundSchema.optional(),
167
+ controls: IssuedControls$outboundSchema.optional(),
165
168
  createdOn: z.date().transform(v => v.toISOString()),
166
169
  updatedOn: z.date().transform(v => v.toISOString()),
167
170
  pan: z.string(),
@@ -13,6 +13,11 @@ import {
13
13
  AmountDecimal$Outbound,
14
14
  AmountDecimal$outboundSchema,
15
15
  } from "./amountdecimal.js";
16
+ import {
17
+ FeePaidBy,
18
+ FeePaidBy$inboundSchema,
19
+ FeePaidBy$outboundSchema,
20
+ } from "./feepaidby.js";
16
21
  import {
17
22
  GeneratedBy,
18
23
  GeneratedBy$inboundSchema,
@@ -60,6 +65,10 @@ export type IncurredFee = {
60
65
  * Unique identifier for this residual payment calculation.
61
66
  */
62
67
  residualID?: string | undefined;
68
+ /**
69
+ * Indicates which party to the money movement bore this fee.
70
+ */
71
+ feePaidBy?: FeePaidBy | undefined;
63
72
  };
64
73
 
65
74
  /** @internal */
@@ -77,6 +86,7 @@ export const IncurredFee$inboundSchema: z.ZodType<
77
86
  generatedBy: types.optional(GeneratedBy$inboundSchema),
78
87
  feeGroup: types.optional(types.string()),
79
88
  residualID: types.optional(types.string()),
89
+ feePaidBy: types.optional(FeePaidBy$inboundSchema),
80
90
  });
81
91
  /** @internal */
82
92
  export type IncurredFee$Outbound = {
@@ -89,6 +99,7 @@ export type IncurredFee$Outbound = {
89
99
  generatedBy?: GeneratedBy$Outbound | undefined;
90
100
  feeGroup?: string | undefined;
91
101
  residualID?: string | undefined;
102
+ feePaidBy?: string | undefined;
92
103
  };
93
104
 
94
105
  /** @internal */
@@ -106,6 +117,7 @@ export const IncurredFee$outboundSchema: z.ZodType<
106
117
  generatedBy: GeneratedBy$outboundSchema.optional(),
107
118
  feeGroup: z.string().optional(),
108
119
  residualID: z.string().optional(),
120
+ feePaidBy: FeePaidBy$outboundSchema.optional(),
109
121
  });
110
122
 
111
123
  export function incurredFeeToJSON(incurredFee: IncurredFee): string {
@@ -35,6 +35,7 @@ export * from "./addresserror.js";
35
35
  export * from "./addresssuggestion.js";
36
36
  export * from "./addressupdate.js";
37
37
  export * from "./adjustment.js";
38
+ export * from "./allowedscheduleerror.js";
38
39
  export * from "./amount.js";
39
40
  export * from "./amountdecimal.js";
40
41
  export * from "./amountdecimalrange.js";
@@ -59,6 +60,7 @@ export * from "./asynccreatedrefund.js";
59
60
  export * from "./asynctransfer.js";
60
61
  export * from "./authtoken.js";
61
62
  export * from "./authtokenrequest.js";
63
+ export * from "./avataruploadrequest.js";
62
64
  export * from "./bankaccount.js";
63
65
  export * from "./bankaccountexception.js";
64
66
  export * from "./bankaccountholdertype.js";
@@ -249,6 +251,7 @@ export * from "./fednowinstitution.js";
249
251
  export * from "./fednowservices.js";
250
252
  export * from "./feecategory.js";
251
253
  export * from "./feemodel.js";
254
+ export * from "./feepaidby.js";
252
255
  export * from "./feeplan.js";
253
256
  export * from "./feeplanagreement.js";
254
257
  export * from "./feeplanagreementstatus.js";
@@ -320,11 +323,16 @@ export * from "./issuedcardeventtype.js";
320
323
  export * from "./issuedcardformfactor.js";
321
324
  export * from "./issuedcardstate.js";
322
325
  export * from "./issuedcardtransaction.js";
326
+ export * from "./issuedcontrols.js";
327
+ export * from "./issuedvelocitylimit.js";
323
328
  export * from "./issuingauthorizationstatus.js";
324
329
  export * from "./issuingcontrols.js";
325
330
  export * from "./issuingcontrolserror.js";
331
+ export * from "./issuingcontrolsrestrictionmode.js";
326
332
  export * from "./issuingintervallimit.js";
333
+ export * from "./issuingmerchantcategory.js";
327
334
  export * from "./issuingmerchantdata.js";
335
+ export * from "./issuingscheduleday.js";
328
336
  export * from "./issuingvelocitylimit.js";
329
337
  export * from "./issuingvelocitylimiterror.js";
330
338
  export * from "./itemlistnextpage.js";
@@ -343,6 +351,12 @@ export * from "./linkgooglepay.js";
343
351
  export * from "./listfeesfetchrequest.js";
344
352
  export * from "./manualtermsofservice.js";
345
353
  export * from "./manualtermsofserviceupdate.js";
354
+ export * from "./merchantcategoryrestrictions.js";
355
+ export * from "./merchantcategoryrestrictionserror.js";
356
+ export * from "./merchantentry.js";
357
+ export * from "./merchantentryerror.js";
358
+ export * from "./merchantrestrictions.js";
359
+ export * from "./merchantrestrictionserror.js";
346
360
  export * from "./microdepositstatus.js";
347
361
  export * from "./minimumcommitment.js";
348
362
  export * from "./mode.js";
@@ -415,6 +429,8 @@ export * from "./plaidpayload.js";
415
429
  export * from "./platformfees.js";
416
430
  export * from "./primaryregulator.js";
417
431
  export * from "./product.js";
432
+ export * from "./productcategories.js";
433
+ export * from "./productcategory.js";
418
434
  export * from "./productimagemetadata.js";
419
435
  export * from "./productoption.js";
420
436
  export * from "./productoptiongroup.js";
@@ -484,6 +500,8 @@ export * from "./scheduledtransferlineitems.js";
484
500
  export * from "./schedulelistresponse.js";
485
501
  export * from "./schedulepaymentmethod.js";
486
502
  export * from "./scheduleresponse.js";
503
+ export * from "./schedulewindow.js";
504
+ export * from "./schedulewindowerror.js";
487
505
  export * from "./seccode.js";
488
506
  export * from "./security.js";
489
507
  export * from "./sendfunds.js";
@@ -540,6 +558,7 @@ export * from "./transfercontrols.js";
540
558
  export * from "./transferdestination.js";
541
559
  export * from "./transferentrymode.js";
542
560
  export * from "./transferfailurereason.js";
561
+ export * from "./transferfeepaidby.js";
543
562
  export * from "./transferlineitem.js";
544
563
  export * from "./transferlineitemimagemetadata.js";
545
564
  export * from "./transferlineitemoption.js";
@@ -565,6 +584,8 @@ export * from "./updateevidence.js";
565
584
  export * from "./updateinvoice.js";
566
585
  export * from "./updateissuedcard.js";
567
586
  export * from "./updateissuedcardstate.js";
587
+ export * from "./updateissuingcontrols.js";
588
+ export * from "./updateissuingcontrolserror.js";
568
589
  export * from "./updatepaymentlink.js";
569
590
  export * from "./updatepaymentlinkamountdetails.js";
570
591
  export * from "./updatepaymentlinkamountdetailsvalidationerror.js";
@@ -35,11 +35,11 @@ import {
35
35
  IssuedCardState$outboundSchema,
36
36
  } from "./issuedcardstate.js";
37
37
  import {
38
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
38
+ IssuedControls,
39
+ IssuedControls$inboundSchema,
40
+ IssuedControls$Outbound,
41
+ IssuedControls$outboundSchema,
42
+ } from "./issuedcontrols.js";
43
43
 
44
44
  export type IssuedCard = {
45
45
  issuedCardID: string;
@@ -85,7 +85,10 @@ export type IssuedCard = {
85
85
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
86
86
  */
87
87
  formFactor: IssuedCardFormFactor;
88
- controls?: IssuingControls | undefined;
88
+ /**
89
+ * Spend controls applied to an issued card, including velocity runtime state.
90
+ */
91
+ controls?: IssuedControls | undefined;
89
92
  createdOn: Date;
90
93
  updatedOn: Date;
91
94
  };
@@ -107,7 +110,7 @@ export const IssuedCard$inboundSchema: z.ZodType<
107
110
  billingAddress: types.optional(Address$inboundSchema),
108
111
  state: IssuedCardState$inboundSchema,
109
112
  formFactor: IssuedCardFormFactor$inboundSchema,
110
- controls: types.optional(IssuingControls$inboundSchema),
113
+ controls: types.optional(IssuedControls$inboundSchema),
111
114
  createdOn: types.date(),
112
115
  updatedOn: types.date(),
113
116
  });
@@ -124,7 +127,7 @@ export type IssuedCard$Outbound = {
124
127
  billingAddress?: Address$Outbound | undefined;
125
128
  state: string;
126
129
  formFactor: string;
127
- controls?: IssuingControls$Outbound | undefined;
130
+ controls?: IssuedControls$Outbound | undefined;
128
131
  createdOn: string;
129
132
  updatedOn: string;
130
133
  };
@@ -146,7 +149,7 @@ export const IssuedCard$outboundSchema: z.ZodType<
146
149
  billingAddress: Address$outboundSchema.optional(),
147
150
  state: IssuedCardState$outboundSchema,
148
151
  formFactor: IssuedCardFormFactor$outboundSchema,
149
- controls: IssuingControls$outboundSchema.optional(),
152
+ controls: IssuedControls$outboundSchema.optional(),
150
153
  createdOn: z.date().transform(v => v.toISOString()),
151
154
  updatedOn: z.date().transform(v => v.toISOString()),
152
155
  });