@moovio/sdk 26.7.0-dev.3 → 26.7.0-dev.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 (301) hide show
  1. package/README.md +90 -86
  2. package/bin/mcp-server.js +664 -356
  3. package/bin/mcp-server.js.map +65 -63
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/capabilitiesDisable.d.ts +1 -1
  9. package/funcs/capabilitiesDisable.js +1 -1
  10. package/funcs/capabilitiesGet.d.ts +1 -1
  11. package/funcs/capabilitiesGet.js +1 -1
  12. package/funcs/capabilitiesList.d.ts +1 -1
  13. package/funcs/capabilitiesList.js +1 -1
  14. package/funcs/capabilitiesRequest.d.ts +1 -1
  15. package/funcs/capabilitiesRequest.js +1 -1
  16. package/funcs/cardIssuingGet.js +1 -1
  17. package/funcs/cardIssuingGet.js.map +1 -1
  18. package/funcs/cardIssuingGetFull.js +1 -1
  19. package/funcs/cardIssuingGetFull.js.map +1 -1
  20. package/funcs/cardIssuingList.js +1 -1
  21. package/funcs/cardIssuingList.js.map +1 -1
  22. package/funcs/cardIssuingRequest.js +1 -1
  23. package/funcs/cardIssuingRequest.js.map +1 -1
  24. package/funcs/cardIssuingUpdate.js +1 -1
  25. package/funcs/cardIssuingUpdate.js.map +1 -1
  26. package/funcs/transfersListCancellations.d.ts +17 -0
  27. package/funcs/transfersListCancellations.d.ts.map +1 -0
  28. package/funcs/transfersListCancellations.js +129 -0
  29. package/funcs/transfersListCancellations.js.map +1 -0
  30. package/hooks/types.d.ts +1 -0
  31. package/hooks/types.d.ts.map +1 -1
  32. package/jsr.json +1 -1
  33. package/lib/config.d.ts +3 -3
  34. package/lib/config.js +3 -3
  35. package/lib/encodings.js +12 -12
  36. package/lib/encodings.js.map +1 -1
  37. package/lib/matchers.js +3 -3
  38. package/lib/matchers.js.map +1 -1
  39. package/lib/primitives.d.ts +1 -0
  40. package/lib/primitives.d.ts.map +1 -1
  41. package/lib/primitives.js +18 -0
  42. package/lib/primitives.js.map +1 -1
  43. package/lib/retries.js +7 -0
  44. package/lib/retries.js.map +1 -1
  45. package/lib/sdks.d.ts.map +1 -1
  46. package/lib/sdks.js +50 -16
  47. package/lib/sdks.js.map +1 -1
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +3 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  53. package/mcp-server/tools/accountsCreate.js +8 -10
  54. package/mcp-server/tools/accountsCreate.js.map +1 -1
  55. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  56. package/mcp-server/tools/capabilitiesGet.js +1 -1
  57. package/mcp-server/tools/capabilitiesList.js +1 -1
  58. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  59. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  60. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  61. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -23
  62. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  63. package/models/components/addcapabilities.d.ts +9 -0
  64. package/models/components/addcapabilities.d.ts.map +1 -1
  65. package/models/components/addcapabilities.js.map +1 -1
  66. package/models/components/amountdecimalrange.d.ts +15 -4
  67. package/models/components/amountdecimalrange.d.ts.map +1 -1
  68. package/models/components/amountdecimalrange.js +5 -4
  69. package/models/components/amountdecimalrange.js.map +1 -1
  70. package/models/components/amountdecimalrangeupdate.d.ts +11 -0
  71. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  72. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  73. package/models/components/capability.d.ts +7 -1
  74. package/models/components/capability.d.ts.map +1 -1
  75. package/models/components/capability.js.map +1 -1
  76. package/models/components/capabilityid.d.ts +14 -2
  77. package/models/components/capabilityid.d.ts.map +1 -1
  78. package/models/components/capabilityid.js +7 -1
  79. package/models/components/capabilityid.js.map +1 -1
  80. package/models/components/createaccount.d.ts +9 -0
  81. package/models/components/createaccount.d.ts.map +1 -1
  82. package/models/components/createaccount.js.map +1 -1
  83. package/models/components/createpaymentlink.d.ts +9 -3
  84. package/models/components/createpaymentlink.d.ts.map +1 -1
  85. package/models/components/createpaymentlink.js +4 -0
  86. package/models/components/createpaymentlink.js.map +1 -1
  87. package/models/components/customamountpaymentdetailserror.d.ts +29 -0
  88. package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
  89. package/models/components/customamountpaymentdetailserror.js +71 -0
  90. package/models/components/customamountpaymentdetailserror.js.map +1 -0
  91. package/models/components/fullissuedcard.d.ts +25 -9
  92. package/models/components/fullissuedcard.d.ts.map +1 -1
  93. package/models/components/fullissuedcard.js +11 -5
  94. package/models/components/fullissuedcard.js.map +1 -1
  95. package/models/components/index.d.ts +4 -4
  96. package/models/components/index.d.ts.map +1 -1
  97. package/models/components/index.js +4 -4
  98. package/models/components/index.js.map +1 -1
  99. package/models/components/issuedcard.d.ts +25 -9
  100. package/models/components/issuedcard.d.ts.map +1 -1
  101. package/models/components/issuedcard.js +11 -5
  102. package/models/components/issuedcard.js.map +1 -1
  103. package/models/components/onboardinginvite.d.ts +1 -1
  104. package/models/components/onboardinginviterequest.d.ts +1 -1
  105. package/models/components/paymentlink.d.ts +13 -2
  106. package/models/components/paymentlink.d.ts.map +1 -1
  107. package/models/components/paymentlink.js +4 -0
  108. package/models/components/paymentlink.js.map +1 -1
  109. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
  110. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
  111. package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
  112. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
  113. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
  114. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
  115. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
  116. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
  117. package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
  118. package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
  119. package/models/components/paymentlinkpaymentdetails.js +1 -21
  120. package/models/components/paymentlinkpaymentdetails.js.map +1 -1
  121. package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
  122. package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
  123. package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
  124. package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
  125. package/models/components/paymentlinktype.d.ts +1 -0
  126. package/models/components/paymentlinktype.d.ts.map +1 -1
  127. package/models/components/paymentlinktype.js +1 -0
  128. package/models/components/paymentlinktype.js.map +1 -1
  129. package/models/components/requestcard.d.ts +14 -17
  130. package/models/components/requestcard.d.ts.map +1 -1
  131. package/models/components/requestcard.js +9 -10
  132. package/models/components/requestcard.js.map +1 -1
  133. package/models/components/updateissuedcard.d.ts +33 -8
  134. package/models/components/updateissuedcard.d.ts.map +1 -1
  135. package/models/components/updateissuedcard.js +35 -6
  136. package/models/components/updateissuedcard.js.map +1 -1
  137. package/models/components/updatepaymentlink.d.ts +6 -0
  138. package/models/components/updatepaymentlink.d.ts.map +1 -1
  139. package/models/components/updatepaymentlink.js +3 -0
  140. package/models/components/updatepaymentlink.js.map +1 -1
  141. package/models/components/webhookdata.d.ts +3 -2
  142. package/models/components/webhookdata.d.ts.map +1 -1
  143. package/models/components/webhookdata.js +7 -4
  144. package/models/components/webhookdata.js.map +1 -1
  145. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  146. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  147. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  148. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  149. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  150. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  151. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  152. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  153. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  154. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  155. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  156. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  157. package/models/components/webhookdatasweepcreated.js +2 -0
  158. package/models/components/webhookdatasweepcreated.js.map +1 -1
  159. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  160. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  161. package/models/components/webhookdatasweepupdated.js +2 -0
  162. package/models/components/webhookdatasweepupdated.js.map +1 -1
  163. package/models/components/webhookeventtype.d.ts +1 -0
  164. package/models/components/webhookeventtype.d.ts.map +1 -1
  165. package/models/components/webhookeventtype.js +1 -0
  166. package/models/components/webhookeventtype.js.map +1 -1
  167. package/models/errors/createpaymentlinkerror.d.ts +3 -0
  168. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  169. package/models/errors/createpaymentlinkerror.js +6 -0
  170. package/models/errors/createpaymentlinkerror.js.map +1 -1
  171. package/models/errors/requestcarderror.d.ts +12 -12
  172. package/models/errors/requestcarderror.d.ts.map +1 -1
  173. package/models/errors/requestcarderror.js +17 -17
  174. package/models/errors/requestcarderror.js.map +1 -1
  175. package/models/errors/updateissuedcarderror.d.ts +9 -6
  176. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  177. package/models/errors/updateissuedcarderror.js +12 -9
  178. package/models/errors/updateissuedcarderror.js.map +1 -1
  179. package/models/errors/updatepaymentlinkerror.d.ts +3 -0
  180. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  181. package/models/errors/updatepaymentlinkerror.js +6 -0
  182. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  183. package/models/operations/disablecapability.d.ts +7 -1
  184. package/models/operations/disablecapability.d.ts.map +1 -1
  185. package/models/operations/disablecapability.js.map +1 -1
  186. package/models/operations/getcapability.d.ts +7 -1
  187. package/models/operations/getcapability.d.ts.map +1 -1
  188. package/models/operations/getcapability.js.map +1 -1
  189. package/models/operations/index.d.ts +1 -0
  190. package/models/operations/index.d.ts.map +1 -1
  191. package/models/operations/index.js +1 -0
  192. package/models/operations/index.js.map +1 -1
  193. package/models/operations/listcancellations.d.ts +45 -0
  194. package/models/operations/listcancellations.d.ts.map +1 -0
  195. package/models/operations/listcancellations.js +91 -0
  196. package/models/operations/listcancellations.js.map +1 -0
  197. package/package.json +1 -1
  198. package/sdk/accounts.d.ts +8 -10
  199. package/sdk/accounts.d.ts.map +1 -1
  200. package/sdk/accounts.js +8 -10
  201. package/sdk/accounts.js.map +1 -1
  202. package/sdk/capabilities.d.ts +4 -4
  203. package/sdk/capabilities.js +4 -4
  204. package/sdk/transfers.d.ts +7 -0
  205. package/sdk/transfers.d.ts.map +1 -1
  206. package/sdk/transfers.js +10 -0
  207. package/sdk/transfers.js.map +1 -1
  208. package/src/funcs/accountsCreate.ts +8 -10
  209. package/src/funcs/capabilitiesDisable.ts +1 -1
  210. package/src/funcs/capabilitiesGet.ts +1 -1
  211. package/src/funcs/capabilitiesList.ts +1 -1
  212. package/src/funcs/capabilitiesRequest.ts +1 -1
  213. package/src/funcs/cardIssuingGet.ts +1 -1
  214. package/src/funcs/cardIssuingGetFull.ts +3 -3
  215. package/src/funcs/cardIssuingList.ts +1 -1
  216. package/src/funcs/cardIssuingRequest.ts +1 -1
  217. package/src/funcs/cardIssuingUpdate.ts +1 -1
  218. package/src/funcs/transfersListCancellations.ts +181 -0
  219. package/src/hooks/types.ts +1 -0
  220. package/src/lib/config.ts +3 -3
  221. package/src/lib/encodings.ts +1 -1
  222. package/src/lib/matchers.ts +1 -1
  223. package/src/lib/primitives.ts +16 -0
  224. package/src/lib/retries.ts +8 -0
  225. package/src/lib/sdks.ts +54 -17
  226. package/src/mcp-server/mcp-server.ts +1 -1
  227. package/src/mcp-server/server.ts +3 -1
  228. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  229. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  230. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  231. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  232. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  233. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  234. package/src/models/components/addcapabilities.ts +9 -0
  235. package/src/models/components/amountdecimalrange.ts +20 -8
  236. package/src/models/components/amountdecimalrangeupdate.ts +11 -0
  237. package/src/models/components/capability.ts +7 -1
  238. package/src/models/components/capabilityid.ts +14 -2
  239. package/src/models/components/createaccount.ts +9 -0
  240. package/src/models/components/createpaymentlink.ts +21 -3
  241. package/src/models/components/customamountpaymentdetailserror.ts +86 -0
  242. package/src/models/components/fullissuedcard.ts +35 -17
  243. package/src/models/components/index.ts +4 -4
  244. package/src/models/components/issuedcard.ts +35 -17
  245. package/src/models/components/onboardinginvite.ts +1 -1
  246. package/src/models/components/onboardinginviterequest.ts +1 -1
  247. package/src/models/components/paymentlink.ts +25 -2
  248. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
  249. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
  250. package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
  251. package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
  252. package/src/models/components/paymentlinktype.ts +1 -0
  253. package/src/models/components/requestcard.ts +23 -34
  254. package/src/models/components/updateissuedcard.ts +73 -17
  255. package/src/models/components/updatepaymentlink.ts +18 -0
  256. package/src/models/components/webhookdata.ts +18 -8
  257. package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
  258. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  259. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  260. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  261. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  262. package/src/models/components/webhookeventtype.ts +1 -0
  263. package/src/models/errors/createpaymentlinkerror.ts +13 -0
  264. package/src/models/errors/requestcarderror.ts +26 -27
  265. package/src/models/errors/updateissuedcarderror.ts +18 -15
  266. package/src/models/errors/updatepaymentlinkerror.ts +13 -0
  267. package/src/models/operations/disablecapability.ts +7 -1
  268. package/src/models/operations/getcapability.ts +7 -1
  269. package/src/models/operations/index.ts +1 -0
  270. package/src/models/operations/listcancellations.ts +121 -0
  271. package/src/sdk/accounts.ts +8 -10
  272. package/src/sdk/capabilities.ts +4 -4
  273. package/src/sdk/transfers.ts +18 -0
  274. package/lib/dlv.d.ts +0 -14
  275. package/lib/dlv.d.ts.map +0 -1
  276. package/lib/dlv.js +0 -49
  277. package/lib/dlv.js.map +0 -1
  278. package/lib/is-plain-object.d.ts +0 -2
  279. package/lib/is-plain-object.d.ts.map +0 -1
  280. package/lib/is-plain-object.js +0 -41
  281. package/lib/is-plain-object.js.map +0 -1
  282. package/models/components/authorizeduser.d.ts +0 -22
  283. package/models/components/authorizeduser.d.ts.map +0 -1
  284. package/models/components/authorizeduser.js.map +0 -1
  285. package/models/components/createauthorizeduser.d.ts +0 -25
  286. package/models/components/createauthorizeduser.d.ts.map +0 -1
  287. package/models/components/createauthorizeduser.js +0 -64
  288. package/models/components/createauthorizeduser.js.map +0 -1
  289. package/models/components/createauthorizedusererror.d.ts +0 -22
  290. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  291. package/models/components/createauthorizedusererror.js.map +0 -1
  292. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  293. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  294. package/models/components/createauthorizeduserupdate.js +0 -64
  295. package/models/components/createauthorizeduserupdate.js.map +0 -1
  296. package/src/lib/dlv.ts +0 -53
  297. package/src/lib/is-plain-object.ts +0 -43
  298. package/src/models/components/authorizeduser.ts +0 -55
  299. package/src/models/components/createauthorizeduser.ts +0 -69
  300. package/src/models/components/createauthorizedusererror.ts +0 -66
  301. package/src/models/components/createauthorizeduserupdate.ts +0 -69
@@ -9,14 +9,16 @@ import { MoovError } from "./mooverror.js";
9
9
 
10
10
  export type UpdateIssuedCardErrorData = {
11
11
  state?: string | undefined;
12
- memo?: string | undefined;
13
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
12
+ nickname?: string | undefined;
13
+ metadata?: string | undefined;
14
+ billingAddress?: components.AddressError | undefined;
14
15
  };
15
16
 
16
17
  export class UpdateIssuedCardError extends MoovError {
17
18
  state?: string | undefined;
18
- memo?: string | undefined;
19
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
19
+ nickname?: string | undefined;
20
+ metadata?: string | undefined;
21
+ billingAddress?: components.AddressError | undefined;
20
22
 
21
23
  /** The original data that was passed to this error instance. */
22
24
  data$: UpdateIssuedCardErrorData;
@@ -31,8 +33,9 @@ export class UpdateIssuedCardError extends MoovError {
31
33
  super(message, httpMeta);
32
34
  this.data$ = err;
33
35
  if (err.state != null) this.state = err.state;
34
- if (err.memo != null) this.memo = err.memo;
35
- if (err.authorizedUser != null) this.authorizedUser = err.authorizedUser;
36
+ if (err.nickname != null) this.nickname = err.nickname;
37
+ if (err.metadata != null) this.metadata = err.metadata;
38
+ if (err.billingAddress != null) this.billingAddress = err.billingAddress;
36
39
 
37
40
  this.name = "UpdateIssuedCardError";
38
41
  }
@@ -45,10 +48,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
45
48
  unknown
46
49
  > = z.object({
47
50
  state: types.optional(types.string()),
48
- memo: types.optional(types.string()),
49
- authorizedUser: types.optional(
50
- components.CreateAuthorizedUserError$inboundSchema,
51
- ),
51
+ nickname: types.optional(types.string()),
52
+ metadata: types.optional(types.string()),
53
+ billingAddress: types.optional(components.AddressError$inboundSchema),
52
54
  request$: z.instanceof(Request),
53
55
  response$: z.instanceof(Response),
54
56
  body$: z.string(),
@@ -64,8 +66,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
64
66
  /** @internal */
65
67
  export type UpdateIssuedCardError$Outbound = {
66
68
  state?: string | undefined;
67
- memo?: string | undefined;
68
- authorizedUser?: components.CreateAuthorizedUserError$Outbound | undefined;
69
+ nickname?: string | undefined;
70
+ metadata?: string | undefined;
71
+ billingAddress?: components.AddressError$Outbound | undefined;
69
72
  };
70
73
 
71
74
  /** @internal */
@@ -77,7 +80,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
77
80
  .transform(v => v.data$)
78
81
  .pipe(z.object({
79
82
  state: z.string().optional(),
80
- memo: z.string().optional(),
81
- authorizedUser: components.CreateAuthorizedUserError$outboundSchema
82
- .optional(),
83
+ nickname: z.string().optional(),
84
+ metadata: z.string().optional(),
85
+ billingAddress: components.AddressError$outboundSchema.optional(),
83
86
  }));
@@ -13,6 +13,7 @@ export type UpdatePaymentLinkErrorData = {
13
13
  display?: components.DisplayOptionsError | undefined;
14
14
  payment?: components.PaymentDetailsError | undefined;
15
15
  payout?: components.PayoutDetailsError | undefined;
16
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
16
17
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
17
18
  amountDetails?:
18
19
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -25,6 +26,7 @@ export class UpdatePaymentLinkError extends MoovError {
25
26
  display?: components.DisplayOptionsError | undefined;
26
27
  payment?: components.PaymentDetailsError | undefined;
27
28
  payout?: components.PayoutDetailsError | undefined;
29
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
28
30
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
29
31
  amountDetails?:
30
32
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -47,6 +49,9 @@ export class UpdatePaymentLinkError extends MoovError {
47
49
  if (err.display != null) this.display = err.display;
48
50
  if (err.payment != null) this.payment = err.payment;
49
51
  if (err.payout != null) this.payout = err.payout;
52
+ if (err.customAmountPayment != null) {
53
+ this.customAmountPayment = err.customAmountPayment;
54
+ }
50
55
  if (err.lineItems != null) this.lineItems = err.lineItems;
51
56
  if (err.amountDetails != null) this.amountDetails = err.amountDetails;
52
57
 
@@ -65,6 +70,9 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
65
70
  display: types.optional(components.DisplayOptionsError$inboundSchema),
66
71
  payment: types.optional(components.PaymentDetailsError$inboundSchema),
67
72
  payout: types.optional(components.PayoutDetailsError$inboundSchema),
73
+ customAmountPayment: types.optional(
74
+ components.CustomAmountPaymentDetailsError$inboundSchema,
75
+ ),
68
76
  lineItems: types.optional(
69
77
  components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
70
78
  ),
@@ -90,6 +98,9 @@ export type UpdatePaymentLinkError$Outbound = {
90
98
  display?: components.DisplayOptionsError$Outbound | undefined;
91
99
  payment?: components.PaymentDetailsError$Outbound | undefined;
92
100
  payout?: components.PayoutDetailsError$Outbound | undefined;
101
+ customAmountPayment?:
102
+ | components.CustomAmountPaymentDetailsError$Outbound
103
+ | undefined;
93
104
  lineItems?:
94
105
  | components.CreatePaymentLinkLineItemsValidationError$Outbound
95
106
  | undefined;
@@ -111,6 +122,8 @@ export const UpdatePaymentLinkError$outboundSchema: z.ZodType<
111
122
  display: components.DisplayOptionsError$outboundSchema.optional(),
112
123
  payment: components.PaymentDetailsError$outboundSchema.optional(),
113
124
  payout: components.PayoutDetailsError$outboundSchema.optional(),
125
+ customAmountPayment: components
126
+ .CustomAmountPaymentDetailsError$outboundSchema.optional(),
114
127
  lineItems: components
115
128
  .CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
116
129
  amountDetails: components
@@ -17,7 +17,13 @@ export type DisableCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -17,7 +17,13 @@ export type GetCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -112,6 +112,7 @@ export * from "./listaccounts.js";
112
112
  export * from "./listaccountterminalapplications.js";
113
113
  export * from "./listadjustments.js";
114
114
  export * from "./listbankaccounts.js";
115
+ export * from "./listcancellations.js";
115
116
  export * from "./listcapabilities.js";
116
117
  export * from "./listcards.js";
117
118
  export * from "./listconnectedaccountsforaccount.js";
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type ListCancellationsRequest = {
14
+ /**
15
+ * Moov account ID of the partner or transfer's source or destination.
16
+ */
17
+ accountID: string;
18
+ /**
19
+ * Identifier for the transfer.
20
+ */
21
+ transferID: string;
22
+ };
23
+
24
+ export type ListCancellationsResponse = {
25
+ headers: { [k: string]: Array<string> };
26
+ result: Array<components.Cancellation>;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ListCancellationsRequest$inboundSchema: z.ZodType<
31
+ ListCancellationsRequest,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ accountID: types.string(),
36
+ transferID: types.string(),
37
+ });
38
+ /** @internal */
39
+ export type ListCancellationsRequest$Outbound = {
40
+ accountID: string;
41
+ transferID: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const ListCancellationsRequest$outboundSchema: z.ZodType<
46
+ ListCancellationsRequest$Outbound,
47
+ z.ZodTypeDef,
48
+ ListCancellationsRequest
49
+ > = z.object({
50
+ accountID: z.string(),
51
+ transferID: z.string(),
52
+ });
53
+
54
+ export function listCancellationsRequestToJSON(
55
+ listCancellationsRequest: ListCancellationsRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest),
59
+ );
60
+ }
61
+ export function listCancellationsRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<ListCancellationsRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'ListCancellationsRequest' from JSON`,
68
+ );
69
+ }
70
+
71
+ /** @internal */
72
+ export const ListCancellationsResponse$inboundSchema: z.ZodType<
73
+ ListCancellationsResponse,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ Headers: z.record(z.array(z.string())).default({}),
78
+ Result: z.array(components.Cancellation$inboundSchema),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ "Headers": "headers",
82
+ "Result": "result",
83
+ });
84
+ });
85
+ /** @internal */
86
+ export type ListCancellationsResponse$Outbound = {
87
+ Headers: { [k: string]: Array<string> };
88
+ Result: Array<components.Cancellation$Outbound>;
89
+ };
90
+
91
+ /** @internal */
92
+ export const ListCancellationsResponse$outboundSchema: z.ZodType<
93
+ ListCancellationsResponse$Outbound,
94
+ z.ZodTypeDef,
95
+ ListCancellationsResponse
96
+ > = z.object({
97
+ headers: z.record(z.array(z.string())),
98
+ result: z.array(components.Cancellation$outboundSchema),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ headers: "Headers",
102
+ result: "Result",
103
+ });
104
+ });
105
+
106
+ export function listCancellationsResponseToJSON(
107
+ listCancellationsResponse: ListCancellationsResponse,
108
+ ): string {
109
+ return JSON.stringify(
110
+ ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse),
111
+ );
112
+ }
113
+ export function listCancellationsResponseFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<ListCancellationsResponse, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'ListCancellationsResponse' from JSON`,
120
+ );
121
+ }
@@ -20,21 +20,19 @@ import { unwrapAsync } from "../types/fp.js";
20
20
 
21
21
  export class Accounts extends ClientSDK {
22
22
  /**
23
- * You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
24
- * information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
23
+ * You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
25
24
  *
26
- * If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
27
- * + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
28
- * This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
29
- * If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
25
+ * The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
26
+ * + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
27
+ * + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
28
+ *
29
+ * If you're creating a business account, depending on the business type, you'll also need to:
30
30
  * + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
31
31
  * + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
32
32
  *
33
- * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
34
- * Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
33
+ * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
35
34
  *
36
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
37
- * to specify the `/accounts.write` scope.
35
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
38
36
  */
39
37
  async create(
40
38
  request: components.CreateAccount,
@@ -14,7 +14,7 @@ export class Capabilities extends ClientSDK {
14
14
  /**
15
15
  * Retrieve all the capabilities an account has requested.
16
16
  *
17
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
17
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
18
18
  *
19
19
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
20
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -31,7 +31,7 @@ export class Capabilities extends ClientSDK {
31
31
  }
32
32
 
33
33
  /**
34
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
34
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
35
35
  *
36
36
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
37
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -48,7 +48,7 @@ export class Capabilities extends ClientSDK {
48
48
  }
49
49
 
50
50
  /**
51
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
51
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
52
52
  *
53
53
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
54
54
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -65,7 +65,7 @@ export class Capabilities extends ClientSDK {
65
65
  }
66
66
 
67
67
  /**
68
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
68
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
69
69
  *
70
70
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71
71
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -12,6 +12,7 @@ import { transfersGetCancellation } from "../funcs/transfersGetCancellation.js";
12
12
  import { transfersGetRefund } from "../funcs/transfersGetRefund.js";
13
13
  import { transfersInitiateRefund } from "../funcs/transfersInitiateRefund.js";
14
14
  import { transfersList } from "../funcs/transfersList.js";
15
+ import { transfersListCancellations } from "../funcs/transfersListCancellations.js";
15
16
  import { transfersListRefunds } from "../funcs/transfersListRefunds.js";
16
17
  import { transfersUpdate } from "../funcs/transfersUpdate.js";
17
18
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -161,6 +162,23 @@ export class Transfers extends ClientSDK {
161
162
  ));
162
163
  }
163
164
 
165
+ /**
166
+ * Get a list of cancellations for a transfer.
167
+ *
168
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
169
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
170
+ */
171
+ async listCancellations(
172
+ request: operations.ListCancellationsRequest,
173
+ options?: RequestOptions,
174
+ ): Promise<operations.ListCancellationsResponse> {
175
+ return unwrapAsync(transfersListCancellations(
176
+ this,
177
+ request,
178
+ options,
179
+ ));
180
+ }
181
+
164
182
  /**
165
183
  * Get details of a cancellation for a transfer.
166
184
  *
package/lib/dlv.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * @param obj The object to walk
3
- * @param key The key path to walk the object with
4
- * @param def A default value to return if the result is undefined
5
- *
6
- * @example
7
- * dlv(obj, "a.b.c.d")
8
- * @example
9
- * dlv(object, ["a", "b", "c", "d"])
10
- * @example
11
- * dlv(object, "foo.bar.baz", "Hello, default value!")
12
- */
13
- export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
14
- //# sourceMappingURL=dlv.d.ts.map
package/lib/dlv.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
package/lib/dlv.js DELETED
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.dlv = dlv;
7
- /*
8
- MIT License
9
-
10
- Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy of
13
- this software and associated documentation files (the "Software"), to deal in
14
- the Software without restriction, including without limitation the rights to
15
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16
- the Software, and to permit persons to whom the Software is furnished to do so,
17
- subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- /**
30
- * @param obj The object to walk
31
- * @param key The key path to walk the object with
32
- * @param def A default value to return if the result is undefined
33
- *
34
- * @example
35
- * dlv(obj, "a.b.c.d")
36
- * @example
37
- * dlv(object, ["a", "b", "c", "d"])
38
- * @example
39
- * dlv(object, "foo.bar.baz", "Hello, default value!")
40
- */
41
- function dlv(obj, key, def, p, undef) {
42
- key = Array.isArray(key) ? key : key.split(".");
43
- for (p = 0; p < key.length; p++) {
44
- const k = key[p];
45
- obj = k != null && obj ? obj[k] : undef;
46
- }
47
- return obj === undef ? def : obj;
48
- }
49
- //# sourceMappingURL=dlv.js.map
package/lib/dlv.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlv.js","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAqCH,kBAaC;AAhDD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function isPlainObject(value: unknown): value is object;
2
- //# sourceMappingURL=is-plain-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.d.ts","sourceRoot":"","sources":["../src/lib/is-plain-object.ts"],"names":[],"mappings":"AA6BA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa7D"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isPlainObject = isPlainObject;
7
- /*
8
- MIT License
9
-
10
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy of
13
- this software and associated documentation files (the "Software"), to deal in
14
- the Software without restriction, including without limitation the rights to
15
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16
- the Software, and to permit persons to whom the Software is furnished to do so,
17
- subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
30
- function isPlainObject(value) {
31
- if (typeof value !== "object" || value === null) {
32
- return false;
33
- }
34
- const prototype = Object.getPrototypeOf(value);
35
- return ((prototype === null ||
36
- prototype === Object.prototype ||
37
- Object.getPrototypeOf(prototype) === null) &&
38
- !(Symbol.toStringTag in value) &&
39
- !(Symbol.iterator in value));
40
- }
41
- //# sourceMappingURL=is-plain-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../src/lib/is-plain-object.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA2BH,sCAaC;AAtCD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,iHAAiH;AAEjH,SAAgB,aAAa,CAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAO,CACL,CAAC,SAAS,KAAK,IAAI;QACjB,SAAS,KAAK,MAAM,CAAC,SAAS;QAC9B,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAC5C,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,KAAK,CAAC;QAC9B,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,CAC5B,CAAC;AACJ,CAAC"}
@@ -1,22 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * Fields for identifying an authorized individual.
6
- */
7
- export type AuthorizedUser = {
8
- firstName: string;
9
- lastName: string;
10
- };
11
- /** @internal */
12
- export declare const AuthorizedUser$inboundSchema: z.ZodType<AuthorizedUser, z.ZodTypeDef, unknown>;
13
- /** @internal */
14
- export type AuthorizedUser$Outbound = {
15
- firstName: string;
16
- lastName: string;
17
- };
18
- /** @internal */
19
- export declare const AuthorizedUser$outboundSchema: z.ZodType<AuthorizedUser$Outbound, z.ZodTypeDef, AuthorizedUser>;
20
- export declare function authorizedUserToJSON(authorizedUser: AuthorizedUser): string;
21
- export declare function authorizedUserFromJSON(jsonString: string): SafeParseResult<AuthorizedUser, SDKValidationError>;
22
- //# sourceMappingURL=authorizeduser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorizeduser.d.ts","sourceRoot":"","sources":["../../src/models/components/authorizeduser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAId,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorizeduser.js","sourceRoot":"","sources":["../../src/models/components/authorizeduser.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,oDAEC;AACD,wDAQC;AAlDD,0CAA4B;AAC5B,qDAAiD;AAEjD,iEAAmD;AAWnD,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,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,25 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { BirthDate, BirthDate$Outbound } from "./birthdate.js";
5
- /**
6
- * Fields for identifying an authorized individual.
7
- */
8
- export type CreateAuthorizedUser = {
9
- firstName: string;
10
- lastName: string;
11
- birthDate?: BirthDate | undefined;
12
- };
13
- /** @internal */
14
- export declare const CreateAuthorizedUser$inboundSchema: z.ZodType<CreateAuthorizedUser, z.ZodTypeDef, unknown>;
15
- /** @internal */
16
- export type CreateAuthorizedUser$Outbound = {
17
- firstName: string;
18
- lastName: string;
19
- birthDate?: BirthDate$Outbound | undefined;
20
- };
21
- /** @internal */
22
- export declare const CreateAuthorizedUser$outboundSchema: z.ZodType<CreateAuthorizedUser$Outbound, z.ZodTypeDef, CreateAuthorizedUser>;
23
- export declare function createAuthorizedUserToJSON(createAuthorizedUser: CreateAuthorizedUser): string;
24
- export declare function createAuthorizedUserFromJSON(jsonString: string): SafeParseResult<CreateAuthorizedUser, SDKValidationError>;
25
- //# sourceMappingURL=createauthorizeduser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createauthorizeduser.d.ts","sourceRoot":"","sources":["../../src/models/components/createauthorizeduser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,SAAS,EAET,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAKpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.CreateAuthorizedUser$outboundSchema = exports.CreateAuthorizedUser$inboundSchema = void 0;
40
- exports.createAuthorizedUserToJSON = createAuthorizedUserToJSON;
41
- exports.createAuthorizedUserFromJSON = createAuthorizedUserFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const types = __importStar(require("../../types/primitives.js"));
45
- const birthdate_js_1 = require("./birthdate.js");
46
- /** @internal */
47
- exports.CreateAuthorizedUser$inboundSchema = z.object({
48
- firstName: types.string(),
49
- lastName: types.string(),
50
- birthDate: types.optional(birthdate_js_1.BirthDate$inboundSchema),
51
- });
52
- /** @internal */
53
- exports.CreateAuthorizedUser$outboundSchema = z.object({
54
- firstName: z.string(),
55
- lastName: z.string(),
56
- birthDate: birthdate_js_1.BirthDate$outboundSchema.optional(),
57
- });
58
- function createAuthorizedUserToJSON(createAuthorizedUser) {
59
- return JSON.stringify(exports.CreateAuthorizedUser$outboundSchema.parse(createAuthorizedUser));
60
- }
61
- function createAuthorizedUserFromJSON(jsonString) {
62
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAuthorizedUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthorizedUser' from JSON`);
63
- }
64
- //# sourceMappingURL=createauthorizeduser.js.map