@moovio/sdk 26.3.0 → 26.3.2

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 (272) hide show
  1. package/README.md +84 -80
  2. package/bin/mcp-server.js +556 -322
  3. package/bin/mcp-server.js.map +64 -65
  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/bankAccountsLink.d.ts +1 -1
  9. package/funcs/bankAccountsLink.js +1 -1
  10. package/funcs/capabilitiesDisable.d.ts +1 -1
  11. package/funcs/capabilitiesDisable.js +1 -1
  12. package/funcs/capabilitiesGet.d.ts +1 -1
  13. package/funcs/capabilitiesGet.js +1 -1
  14. package/funcs/capabilitiesList.d.ts +1 -1
  15. package/funcs/capabilitiesList.js +1 -1
  16. package/funcs/capabilitiesRequest.d.ts +1 -1
  17. package/funcs/capabilitiesRequest.js +1 -1
  18. package/funcs/cardIssuingGet.js +1 -1
  19. package/funcs/cardIssuingGet.js.map +1 -1
  20. package/funcs/cardIssuingGetFull.js +1 -1
  21. package/funcs/cardIssuingGetFull.js.map +1 -1
  22. package/funcs/cardIssuingList.js +1 -1
  23. package/funcs/cardIssuingList.js.map +1 -1
  24. package/funcs/cardIssuingRequest.js +1 -1
  25. package/funcs/cardIssuingRequest.js.map +1 -1
  26. package/funcs/cardIssuingUpdate.js +1 -1
  27. package/funcs/cardIssuingUpdate.js.map +1 -1
  28. package/funcs/transfersListCancellations.d.ts +17 -0
  29. package/funcs/transfersListCancellations.d.ts.map +1 -0
  30. package/funcs/transfersListCancellations.js +129 -0
  31. package/funcs/transfersListCancellations.js.map +1 -0
  32. package/hooks/types.d.ts +1 -0
  33. package/hooks/types.d.ts.map +1 -1
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +3 -3
  36. package/lib/config.js +3 -3
  37. package/lib/encodings.js +12 -12
  38. package/lib/encodings.js.map +1 -1
  39. package/lib/matchers.js +3 -3
  40. package/lib/matchers.js.map +1 -1
  41. package/lib/primitives.d.ts +1 -0
  42. package/lib/primitives.d.ts.map +1 -1
  43. package/lib/primitives.js +18 -0
  44. package/lib/primitives.js.map +1 -1
  45. package/lib/retries.js +7 -0
  46. package/lib/retries.js.map +1 -1
  47. package/lib/sdks.d.ts.map +1 -1
  48. package/lib/sdks.js +50 -16
  49. package/lib/sdks.js.map +1 -1
  50. package/mcp-server/mcp-server.js +1 -1
  51. package/mcp-server/server.d.ts.map +1 -1
  52. package/mcp-server/server.js +3 -1
  53. package/mcp-server/server.js.map +1 -1
  54. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  55. package/mcp-server/tools/accountsCreate.js +8 -10
  56. package/mcp-server/tools/accountsCreate.js.map +1 -1
  57. package/mcp-server/tools/bankAccountsLink.js +1 -1
  58. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  59. package/mcp-server/tools/capabilitiesGet.js +1 -1
  60. package/mcp-server/tools/capabilitiesList.js +1 -1
  61. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  62. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  63. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  64. package/{models/components/authorizeduser.js → mcp-server/tools/transfersListCancellations.js} +27 -22
  65. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  66. package/models/components/addcapabilities.d.ts +9 -0
  67. package/models/components/addcapabilities.d.ts.map +1 -1
  68. package/models/components/addcapabilities.js.map +1 -1
  69. package/models/components/capability.d.ts +7 -1
  70. package/models/components/capability.d.ts.map +1 -1
  71. package/models/components/capability.js.map +1 -1
  72. package/models/components/capabilityid.d.ts +15 -2
  73. package/models/components/capabilityid.d.ts.map +1 -1
  74. package/models/components/capabilityid.js +8 -1
  75. package/models/components/capabilityid.js.map +1 -1
  76. package/models/components/createaccount.d.ts +9 -0
  77. package/models/components/createaccount.d.ts.map +1 -1
  78. package/models/components/createaccount.js.map +1 -1
  79. package/models/components/createpaymentlink.d.ts +3 -3
  80. package/models/components/fullissuedcard.d.ts +26 -12
  81. package/models/components/fullissuedcard.d.ts.map +1 -1
  82. package/models/components/fullissuedcard.js +11 -5
  83. package/models/components/fullissuedcard.js.map +1 -1
  84. package/models/components/index.d.ts +1 -4
  85. package/models/components/index.d.ts.map +1 -1
  86. package/models/components/index.js +1 -4
  87. package/models/components/index.js.map +1 -1
  88. package/models/components/issuedcard.d.ts +26 -12
  89. package/models/components/issuedcard.d.ts.map +1 -1
  90. package/models/components/issuedcard.js +11 -5
  91. package/models/components/issuedcard.js.map +1 -1
  92. package/models/components/issuedcardstate.d.ts +2 -8
  93. package/models/components/issuedcardstate.d.ts.map +1 -1
  94. package/models/components/issuedcardstate.js +1 -5
  95. package/models/components/issuedcardstate.js.map +1 -1
  96. package/models/components/manualtermsofservice.d.ts +1 -1
  97. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  98. package/models/components/onboardinginvite.d.ts +1 -1
  99. package/models/components/onboardinginviterequest.d.ts +1 -1
  100. package/models/components/patchtransfer.d.ts +3 -0
  101. package/models/components/patchtransfer.d.ts.map +1 -1
  102. package/models/components/patchtransfer.js.map +1 -1
  103. package/models/components/paymentlink.d.ts +2 -2
  104. package/models/components/requestcard.d.ts +14 -17
  105. package/models/components/requestcard.d.ts.map +1 -1
  106. package/models/components/requestcard.js +9 -10
  107. package/models/components/requestcard.js.map +1 -1
  108. package/models/components/termsofservice.d.ts +1 -1
  109. package/models/components/updateissuedcard.d.ts +33 -8
  110. package/models/components/updateissuedcard.d.ts.map +1 -1
  111. package/models/components/updateissuedcard.js +35 -6
  112. package/models/components/updateissuedcard.js.map +1 -1
  113. package/models/components/webhookdata.d.ts +3 -2
  114. package/models/components/webhookdata.d.ts.map +1 -1
  115. package/models/components/webhookdata.js +7 -4
  116. package/models/components/webhookdata.js.map +1 -1
  117. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  118. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  119. package/models/components/{createauthorizedusererror.js → webhookdataauthorizationexpiring.js} +18 -17
  120. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  121. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  122. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  123. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  124. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  125. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  126. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  127. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  128. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  129. package/models/components/webhookdatasweepcreated.js +2 -0
  130. package/models/components/webhookdatasweepcreated.js.map +1 -1
  131. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  132. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  133. package/models/components/webhookdatasweepupdated.js +2 -0
  134. package/models/components/webhookdatasweepupdated.js.map +1 -1
  135. package/models/components/webhookeventtype.d.ts +1 -0
  136. package/models/components/webhookeventtype.d.ts.map +1 -1
  137. package/models/components/webhookeventtype.js +1 -0
  138. package/models/components/webhookeventtype.js.map +1 -1
  139. package/models/errors/requestcarderror.d.ts +12 -12
  140. package/models/errors/requestcarderror.d.ts.map +1 -1
  141. package/models/errors/requestcarderror.js +17 -17
  142. package/models/errors/requestcarderror.js.map +1 -1
  143. package/models/errors/updateissuedcarderror.d.ts +9 -6
  144. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  145. package/models/errors/updateissuedcarderror.js +12 -9
  146. package/models/errors/updateissuedcarderror.js.map +1 -1
  147. package/models/operations/disablecapability.d.ts +7 -1
  148. package/models/operations/disablecapability.d.ts.map +1 -1
  149. package/models/operations/disablecapability.js.map +1 -1
  150. package/models/operations/getcapability.d.ts +7 -1
  151. package/models/operations/getcapability.d.ts.map +1 -1
  152. package/models/operations/getcapability.js.map +1 -1
  153. package/models/operations/index.d.ts +1 -0
  154. package/models/operations/index.d.ts.map +1 -1
  155. package/models/operations/index.js +1 -0
  156. package/models/operations/index.js.map +1 -1
  157. package/models/operations/linkbankaccount.d.ts +1 -1
  158. package/models/operations/listcancellations.d.ts +45 -0
  159. package/models/operations/listcancellations.d.ts.map +1 -0
  160. package/models/operations/listcancellations.js +90 -0
  161. package/models/operations/listcancellations.js.map +1 -0
  162. package/models/operations/listissuedcards.d.ts +1 -1
  163. package/package.json +1 -1
  164. package/sdk/accounts.d.ts +8 -10
  165. package/sdk/accounts.d.ts.map +1 -1
  166. package/sdk/accounts.js +8 -10
  167. package/sdk/accounts.js.map +1 -1
  168. package/sdk/bankaccounts.d.ts +1 -1
  169. package/sdk/bankaccounts.js +1 -1
  170. package/sdk/capabilities.d.ts +4 -4
  171. package/sdk/capabilities.js +4 -4
  172. package/sdk/transfers.d.ts +7 -0
  173. package/sdk/transfers.d.ts.map +1 -1
  174. package/sdk/transfers.js +10 -0
  175. package/sdk/transfers.js.map +1 -1
  176. package/src/funcs/accountsCreate.ts +8 -10
  177. package/src/funcs/bankAccountsLink.ts +1 -1
  178. package/src/funcs/capabilitiesDisable.ts +1 -1
  179. package/src/funcs/capabilitiesGet.ts +1 -1
  180. package/src/funcs/capabilitiesList.ts +1 -1
  181. package/src/funcs/capabilitiesRequest.ts +1 -1
  182. package/src/funcs/cardIssuingGet.ts +1 -1
  183. package/src/funcs/cardIssuingGetFull.ts +3 -3
  184. package/src/funcs/cardIssuingList.ts +1 -1
  185. package/src/funcs/cardIssuingRequest.ts +1 -1
  186. package/src/funcs/cardIssuingUpdate.ts +1 -1
  187. package/src/funcs/transfersListCancellations.ts +181 -0
  188. package/src/hooks/types.ts +1 -0
  189. package/src/lib/config.ts +3 -3
  190. package/src/lib/encodings.ts +1 -1
  191. package/src/lib/matchers.ts +1 -1
  192. package/src/lib/primitives.ts +16 -0
  193. package/src/lib/retries.ts +8 -0
  194. package/src/lib/sdks.ts +54 -17
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +3 -1
  197. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  198. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  199. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  200. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  201. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  202. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  203. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  204. package/src/models/components/addcapabilities.ts +9 -0
  205. package/src/models/components/capability.ts +7 -1
  206. package/src/models/components/capabilityid.ts +15 -2
  207. package/src/models/components/createaccount.ts +9 -0
  208. package/src/models/components/createpaymentlink.ts +3 -3
  209. package/src/models/components/fullissuedcard.ts +36 -20
  210. package/src/models/components/index.ts +1 -4
  211. package/src/models/components/issuedcard.ts +36 -20
  212. package/src/models/components/issuedcardstate.ts +2 -8
  213. package/src/models/components/manualtermsofservice.ts +1 -1
  214. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  215. package/src/models/components/onboardinginvite.ts +1 -1
  216. package/src/models/components/onboardinginviterequest.ts +1 -1
  217. package/src/models/components/patchtransfer.ts +3 -0
  218. package/src/models/components/paymentlink.ts +2 -2
  219. package/src/models/components/requestcard.ts +23 -34
  220. package/src/models/components/termsofservice.ts +1 -1
  221. package/src/models/components/updateissuedcard.ts +73 -17
  222. package/src/models/components/webhookdata.ts +18 -8
  223. package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
  224. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  225. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  226. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  227. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  228. package/src/models/components/webhookeventtype.ts +1 -0
  229. package/src/models/errors/requestcarderror.ts +26 -25
  230. package/src/models/errors/updateissuedcarderror.ts +18 -13
  231. package/src/models/operations/disablecapability.ts +7 -1
  232. package/src/models/operations/getcapability.ts +7 -1
  233. package/src/models/operations/index.ts +1 -0
  234. package/src/models/operations/linkbankaccount.ts +1 -1
  235. package/src/models/operations/listcancellations.ts +120 -0
  236. package/src/models/operations/listissuedcards.ts +1 -1
  237. package/src/sdk/accounts.ts +8 -10
  238. package/src/sdk/bankaccounts.ts +1 -1
  239. package/src/sdk/capabilities.ts +4 -4
  240. package/src/sdk/transfers.ts +18 -0
  241. package/src/types/async.ts +8 -7
  242. package/types/async.d.ts.map +1 -1
  243. package/types/async.js +8 -7
  244. package/types/async.js.map +1 -1
  245. package/lib/dlv.d.ts +0 -14
  246. package/lib/dlv.d.ts.map +0 -1
  247. package/lib/dlv.js +0 -49
  248. package/lib/dlv.js.map +0 -1
  249. package/lib/is-plain-object.d.ts +0 -2
  250. package/lib/is-plain-object.d.ts.map +0 -1
  251. package/lib/is-plain-object.js +0 -41
  252. package/lib/is-plain-object.js.map +0 -1
  253. package/models/components/authorizeduser.d.ts +0 -22
  254. package/models/components/authorizeduser.d.ts.map +0 -1
  255. package/models/components/authorizeduser.js.map +0 -1
  256. package/models/components/createauthorizeduser.d.ts +0 -25
  257. package/models/components/createauthorizeduser.d.ts.map +0 -1
  258. package/models/components/createauthorizeduser.js +0 -63
  259. package/models/components/createauthorizeduser.js.map +0 -1
  260. package/models/components/createauthorizedusererror.d.ts +0 -22
  261. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  262. package/models/components/createauthorizedusererror.js.map +0 -1
  263. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  264. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  265. package/models/components/createauthorizeduserupdate.js +0 -63
  266. package/models/components/createauthorizeduserupdate.js.map +0 -1
  267. package/src/lib/dlv.ts +0 -53
  268. package/src/lib/is-plain-object.ts +0 -43
  269. package/src/models/components/authorizeduser.ts +0 -54
  270. package/src/models/components/createauthorizeduser.ts +0 -68
  271. package/src/models/components/createauthorizedusererror.ts +0 -65
  272. package/src/models/components/createauthorizeduserupdate.ts +0 -68
@@ -8,14 +8,16 @@ import { MoovError } from "./mooverror.js";
8
8
 
9
9
  export type UpdateIssuedCardErrorData = {
10
10
  state?: string | undefined;
11
- memo?: string | undefined;
12
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
11
+ nickname?: string | undefined;
12
+ metadata?: string | undefined;
13
+ billingAddress?: components.AddressError | undefined;
13
14
  };
14
15
 
15
16
  export class UpdateIssuedCardError extends MoovError {
16
17
  state?: string | undefined;
17
- memo?: string | undefined;
18
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
18
+ nickname?: string | undefined;
19
+ metadata?: string | undefined;
20
+ billingAddress?: components.AddressError | undefined;
19
21
 
20
22
  /** The original data that was passed to this error instance. */
21
23
  data$: UpdateIssuedCardErrorData;
@@ -30,8 +32,9 @@ export class UpdateIssuedCardError extends MoovError {
30
32
  super(message, httpMeta);
31
33
  this.data$ = err;
32
34
  if (err.state != null) this.state = err.state;
33
- if (err.memo != null) this.memo = err.memo;
34
- if (err.authorizedUser != null) this.authorizedUser = err.authorizedUser;
35
+ if (err.nickname != null) this.nickname = err.nickname;
36
+ if (err.metadata != null) this.metadata = err.metadata;
37
+ if (err.billingAddress != null) this.billingAddress = err.billingAddress;
35
38
 
36
39
  this.name = "UpdateIssuedCardError";
37
40
  }
@@ -44,8 +47,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
44
47
  unknown
45
48
  > = z.object({
46
49
  state: z.string().optional(),
47
- memo: z.string().optional(),
48
- authorizedUser: components.CreateAuthorizedUserError$inboundSchema.optional(),
50
+ nickname: z.string().optional(),
51
+ metadata: z.string().optional(),
52
+ billingAddress: components.AddressError$inboundSchema.optional(),
49
53
  request$: z.instanceof(Request),
50
54
  response$: z.instanceof(Response),
51
55
  body$: z.string(),
@@ -61,8 +65,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
61
65
  /** @internal */
62
66
  export type UpdateIssuedCardError$Outbound = {
63
67
  state?: string | undefined;
64
- memo?: string | undefined;
65
- authorizedUser?: components.CreateAuthorizedUserError$Outbound | undefined;
68
+ nickname?: string | undefined;
69
+ metadata?: string | undefined;
70
+ billingAddress?: components.AddressError$Outbound | undefined;
66
71
  };
67
72
 
68
73
  /** @internal */
@@ -74,7 +79,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
74
79
  .transform(v => v.data$)
75
80
  .pipe(z.object({
76
81
  state: z.string().optional(),
77
- memo: z.string().optional(),
78
- authorizedUser: components.CreateAuthorizedUserError$outboundSchema
79
- .optional(),
82
+ nickname: z.string().optional(),
83
+ metadata: z.string().optional(),
84
+ billingAddress: components.AddressError$outboundSchema.optional(),
80
85
  }));
@@ -16,7 +16,13 @@ export type DisableCapabilityRequest = {
16
16
  *
17
17
  * @remarks
18
18
  *
19
- * 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.
19
+ * **Deprecated capabilities**
20
+ *
21
+ * 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.
22
+ *
23
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
24
+ *
25
+ * 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.
20
26
  */
21
27
  capabilityID: components.CapabilityID;
22
28
  };
@@ -16,7 +16,13 @@ export type GetCapabilityRequest = {
16
16
  *
17
17
  * @remarks
18
18
  *
19
- * 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.
19
+ * **Deprecated capabilities**
20
+ *
21
+ * 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.
22
+ *
23
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
24
+ *
25
+ * 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.
20
26
  */
21
27
  capabilityID: components.CapabilityID;
22
28
  };
@@ -101,6 +101,7 @@ export * from "./listaccounts.js";
101
101
  export * from "./listaccountterminalapplications.js";
102
102
  export * from "./listadjustments.js";
103
103
  export * from "./listbankaccounts.js";
104
+ export * from "./listcancellations.js";
104
105
  export * from "./listcapabilities.js";
105
106
  export * from "./listcards.js";
106
107
  export * from "./listconnectedaccountsforaccount.js";
@@ -16,7 +16,7 @@ export type LinkBankAccountRequest = {
16
16
  * @remarks
17
17
  *
18
18
  * When this header is set to `payment-method`, the response will include any payment methods that were created for the newly
19
- * linked card in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
19
+ * linked bank account in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
20
20
  */
21
21
  xWaitFor?: components.BankAccountWaitFor | undefined;
22
22
  accountID: string;
@@ -0,0 +1,120 @@
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 components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListCancellationsRequest = {
13
+ /**
14
+ * Moov account ID of the partner or transfer's source or destination.
15
+ */
16
+ accountID: string;
17
+ /**
18
+ * Identifier for the transfer.
19
+ */
20
+ transferID: string;
21
+ };
22
+
23
+ export type ListCancellationsResponse = {
24
+ headers: { [k: string]: Array<string> };
25
+ result: Array<components.Cancellation>;
26
+ };
27
+
28
+ /** @internal */
29
+ export const ListCancellationsRequest$inboundSchema: z.ZodType<
30
+ ListCancellationsRequest,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ accountID: z.string(),
35
+ transferID: z.string(),
36
+ });
37
+ /** @internal */
38
+ export type ListCancellationsRequest$Outbound = {
39
+ accountID: string;
40
+ transferID: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ListCancellationsRequest$outboundSchema: z.ZodType<
45
+ ListCancellationsRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ ListCancellationsRequest
48
+ > = z.object({
49
+ accountID: z.string(),
50
+ transferID: z.string(),
51
+ });
52
+
53
+ export function listCancellationsRequestToJSON(
54
+ listCancellationsRequest: ListCancellationsRequest,
55
+ ): string {
56
+ return JSON.stringify(
57
+ ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest),
58
+ );
59
+ }
60
+ export function listCancellationsRequestFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<ListCancellationsRequest, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'ListCancellationsRequest' from JSON`,
67
+ );
68
+ }
69
+
70
+ /** @internal */
71
+ export const ListCancellationsResponse$inboundSchema: z.ZodType<
72
+ ListCancellationsResponse,
73
+ z.ZodTypeDef,
74
+ unknown
75
+ > = z.object({
76
+ Headers: z.record(z.array(z.string())).default({}),
77
+ Result: z.array(components.Cancellation$inboundSchema),
78
+ }).transform((v) => {
79
+ return remap$(v, {
80
+ "Headers": "headers",
81
+ "Result": "result",
82
+ });
83
+ });
84
+ /** @internal */
85
+ export type ListCancellationsResponse$Outbound = {
86
+ Headers: { [k: string]: Array<string> };
87
+ Result: Array<components.Cancellation$Outbound>;
88
+ };
89
+
90
+ /** @internal */
91
+ export const ListCancellationsResponse$outboundSchema: z.ZodType<
92
+ ListCancellationsResponse$Outbound,
93
+ z.ZodTypeDef,
94
+ ListCancellationsResponse
95
+ > = z.object({
96
+ headers: z.record(z.array(z.string())),
97
+ result: z.array(components.Cancellation$outboundSchema),
98
+ }).transform((v) => {
99
+ return remap$(v, {
100
+ headers: "Headers",
101
+ result: "Result",
102
+ });
103
+ });
104
+
105
+ export function listCancellationsResponseToJSON(
106
+ listCancellationsResponse: ListCancellationsResponse,
107
+ ): string {
108
+ return JSON.stringify(
109
+ ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse),
110
+ );
111
+ }
112
+ export function listCancellationsResponseFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<ListCancellationsResponse, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) => ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)),
118
+ `Failed to parse 'ListCancellationsResponse' from JSON`,
119
+ );
120
+ }
@@ -17,7 +17,7 @@ export type ListIssuedCardsRequest = {
17
17
  skip?: number | undefined;
18
18
  count?: number | undefined;
19
19
  /**
20
- * Optional, comma-separated states to filter the Moov list issued cards response. For example `active,pending-verification`
20
+ * Optional, comma-separated states to filter the Moov list issued cards response. For example `active,closed`
21
21
  */
22
22
  states?: Array<components.IssuedCardState> | undefined;
23
23
  };
@@ -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,
@@ -20,7 +20,7 @@ export class BankAccounts extends ClientSDK {
20
20
  * Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
21
21
  *
22
22
  * It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
23
- * bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
23
+ * bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
24
24
  * Methods](https://docs.moov.io/api/sources/payment-methods/list/)
25
25
  * endpoint to wait for the new payment methods to be available for use.
26
26
  *
@@ -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
  *
@@ -21,16 +21,17 @@ export type APICall =
21
21
 
22
22
  export class APIPromise<T> implements Promise<T> {
23
23
  readonly #promise: Promise<[T, APICall]>;
24
- readonly #unwrapped: Promise<T>;
24
+ #unwrapped: Promise<T> | null;
25
25
 
26
26
  readonly [Symbol.toStringTag] = "APIPromise";
27
27
 
28
28
  constructor(p: [T, APICall] | Promise<[T, APICall]>) {
29
29
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
30
- this.#unwrapped =
31
- p instanceof Promise
32
- ? this.#promise.then(([value]) => value)
33
- : Promise.resolve(p[0]);
30
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
31
+ }
32
+
33
+ #getUnwrapped(): Promise<T> {
34
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
34
35
  }
35
36
 
36
37
  then<TResult1 = T, TResult2 = never>(
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
55
56
  | null
56
57
  | undefined,
57
58
  ): Promise<T | TResult> {
58
- return this.#unwrapped.catch(onrejected);
59
+ return this.#getUnwrapped().catch(onrejected);
59
60
  }
60
61
 
61
62
  finally(onfinally?: (() => void) | null | undefined): Promise<T> {
62
- return this.#unwrapped.finally(onfinally);
63
+ return this.#getUnwrapped().finally(onfinally);
63
64
  }
64
65
 
65
66
  $inspect(): Promise<[T, APICall]> {
@@ -1 +1 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAQnD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
1
+ {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IASnD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
package/types/async.js CHANGED
@@ -13,32 +13,33 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _APIPromise_promise, _APIPromise_unwrapped, _a;
16
+ var _APIPromise_instances, _APIPromise_promise, _APIPromise_unwrapped, _APIPromise_getUnwrapped, _a;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.APIPromise = void 0;
19
19
  class APIPromise {
20
20
  constructor(p) {
21
+ _APIPromise_instances.add(this);
21
22
  _APIPromise_promise.set(this, void 0);
22
23
  _APIPromise_unwrapped.set(this, void 0);
23
24
  this[_a] = "APIPromise";
24
25
  __classPrivateFieldSet(this, _APIPromise_promise, p instanceof Promise ? p : Promise.resolve(p), "f");
25
- __classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise
26
- ? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value)
27
- : Promise.resolve(p[0]), "f");
26
+ __classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise ? null : Promise.resolve(p[0]), "f");
28
27
  }
29
28
  then(onfulfilled, onrejected) {
30
29
  return __classPrivateFieldGet(this, _APIPromise_promise, "f").then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
31
30
  }
32
31
  catch(onrejected) {
33
- return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").catch(onrejected);
32
+ return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).catch(onrejected);
34
33
  }
35
34
  finally(onfinally) {
36
- return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").finally(onfinally);
35
+ return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).finally(onfinally);
37
36
  }
38
37
  $inspect() {
39
38
  return __classPrivateFieldGet(this, _APIPromise_promise, "f");
40
39
  }
41
40
  }
42
41
  exports.APIPromise = APIPromise;
43
- _APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _a = Symbol.toStringTag;
42
+ _APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _APIPromise_instances = new WeakSet(), _a = Symbol.toStringTag, _APIPromise_getUnwrapped = function _APIPromise_getUnwrapped() {
43
+ return (__classPrivateFieldSet(this, _APIPromise_unwrapped, __classPrivateFieldGet(this, _APIPromise_unwrapped, "f") ?? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value), "f"));
44
+ };
44
45
  //# sourceMappingURL=async.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC;QAL1C,sCAAgC;QAChC,wCAAuB;QAEvB,QAAoB,GAAG,YAAY,CAAC;QAG3C,uBAAA,IAAI,uBAAY,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,CAAC;QAC9D,uBAAA,IAAI,yBACF,CAAC,YAAY,OAAO;YAClB,CAAC,CAAC,uBAAA,IAAI,2BAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC;YACxC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,CAAC;IAC9B,CAAC;IAED,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,uBAAA,IAAI,2BAAS,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,uBAAA,IAAI,6BAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,uBAAA,IAAI,6BAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED,QAAQ;QACN,OAAO,uBAAA,IAAI,2BAAS,CAAC;IACvB,CAAC;CACF;AA9CD,gCA8CC;iFA1CW,MAAM,CAAC,WAAW"}
1
+ {"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC;;QAL1C,sCAAgC;QACzC,wCAA8B;QAErB,QAAoB,GAAG,YAAY,CAAC;QAG3C,uBAAA,IAAI,uBAAY,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,CAAC;QAC9D,uBAAA,IAAI,yBAAc,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,CAAC;IACxE,CAAC;IAMD,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,uBAAA,IAAI,2BAAS,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ;QACN,OAAO,uBAAA,IAAI,2BAAS,CAAC;IACvB,CAAC;CACF;AA/CD,gCA+CC;wHA3CW,MAAM,CAAC,WAAW;IAQ1B,OAAO,CAAC,gHAAoB,uBAAA,IAAI,2BAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAA,CAAC,CAAC;AACtE,CAAC"}
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;AAC9D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCH,oDAEC;AACD,wDAQC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,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"}