@moovio/sdk 0.12.0 → 0.12.1

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 (118) hide show
  1. package/FUNCTIONS.md +6 -22
  2. package/README.md +97 -55
  3. package/bin/mcp-server.js +749 -415
  4. package/bin/mcp-server.js.map +19 -9
  5. package/docs/sdks/accounts/README.md +63 -81
  6. package/docs/sdks/accountterminalapplications/README.md +28 -36
  7. package/docs/sdks/adjustments/README.md +14 -18
  8. package/docs/sdks/applepay/README.md +35 -45
  9. package/docs/sdks/authentication/README.md +14 -18
  10. package/docs/sdks/avatars/README.md +7 -9
  11. package/docs/sdks/bankaccounts/README.md +63 -81
  12. package/docs/sdks/branding/README.md +28 -36
  13. package/docs/sdks/capabilities/README.md +28 -36
  14. package/docs/sdks/cardissuing/README.md +35 -45
  15. package/docs/sdks/cards/README.md +35 -45
  16. package/docs/sdks/disputes/README.md +77 -99
  17. package/docs/sdks/endtoendencryption/README.md +14 -18
  18. package/docs/sdks/enrichedaddress/README.md +7 -9
  19. package/docs/sdks/enrichedprofile/README.md +7 -9
  20. package/docs/sdks/feeplans/README.md +49 -63
  21. package/docs/sdks/files/README.md +21 -27
  22. package/docs/sdks/industries/README.md +7 -9
  23. package/docs/sdks/institutions/README.md +98 -9
  24. package/docs/sdks/issuingtransactions/README.md +35 -45
  25. package/docs/sdks/onboarding/README.md +28 -36
  26. package/docs/sdks/paymentlinks/README.md +42 -54
  27. package/docs/sdks/paymentmethods/README.md +14 -18
  28. package/docs/sdks/ping/README.md +7 -9
  29. package/docs/sdks/receipts/README.md +14 -18
  30. package/docs/sdks/representatives/README.md +35 -45
  31. package/docs/sdks/scheduling/README.md +42 -54
  32. package/docs/sdks/sweeps/README.md +42 -54
  33. package/docs/sdks/terminalapplications/README.md +28 -36
  34. package/docs/sdks/transfers/README.md +77 -99
  35. package/docs/sdks/underwriting/README.md +14 -18
  36. package/docs/sdks/wallets/README.md +14 -18
  37. package/docs/sdks/wallettransactions/README.md +14 -18
  38. package/funcs/institutionsSearchInstitutions.d.ts +20 -0
  39. package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
  40. package/funcs/institutionsSearchInstitutions.js +129 -0
  41. package/funcs/institutionsSearchInstitutions.js.map +1 -0
  42. package/jsr.json +1 -1
  43. package/lib/config.d.ts +3 -3
  44. package/lib/config.js +3 -3
  45. package/mcp-server/mcp-server.js +1 -1
  46. package/mcp-server/server.d.ts.map +1 -1
  47. package/mcp-server/server.js +3 -1
  48. package/mcp-server/server.js.map +1 -1
  49. package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
  50. package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
  51. package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
  52. package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
  53. package/models/components/achinstitution.d.ts +40 -0
  54. package/models/components/achinstitution.d.ts.map +1 -0
  55. package/models/components/achinstitution.js +77 -0
  56. package/models/components/achinstitution.js.map +1 -0
  57. package/models/components/contact.d.ts +30 -0
  58. package/models/components/contact.d.ts.map +1 -0
  59. package/models/components/contact.js +70 -0
  60. package/models/components/contact.js.map +1 -0
  61. package/models/components/index.d.ts +7 -0
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +7 -0
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/institutionssearchresponse.d.ts +36 -0
  66. package/models/components/institutionssearchresponse.d.ts.map +1 -0
  67. package/models/components/institutionssearchresponse.js +76 -0
  68. package/models/components/institutionssearchresponse.js.map +1 -0
  69. package/models/components/rtpinstitution.d.ts +37 -0
  70. package/models/components/rtpinstitution.d.ts.map +1 -0
  71. package/models/components/rtpinstitution.js +74 -0
  72. package/models/components/rtpinstitution.js.map +1 -0
  73. package/models/components/rtpservices.d.ts +37 -0
  74. package/models/components/rtpservices.d.ts.map +1 -0
  75. package/models/components/rtpservices.js +71 -0
  76. package/models/components/rtpservices.js.map +1 -0
  77. package/models/components/wireinstitution.d.ts +40 -0
  78. package/models/components/wireinstitution.d.ts.map +1 -0
  79. package/models/components/wireinstitution.js +77 -0
  80. package/models/components/wireinstitution.js.map +1 -0
  81. package/models/components/wireservices.d.ts +42 -0
  82. package/models/components/wireservices.d.ts.map +1 -0
  83. package/models/components/wireservices.js +73 -0
  84. package/models/components/wireservices.js.map +1 -0
  85. package/models/errors/apierror.d.ts +14 -2
  86. package/models/errors/apierror.d.ts.map +1 -1
  87. package/models/errors/apierror.js +1 -1
  88. package/models/errors/apierror.js.map +1 -1
  89. package/models/operations/index.d.ts +1 -0
  90. package/models/operations/index.d.ts.map +1 -1
  91. package/models/operations/index.js +1 -0
  92. package/models/operations/index.js.map +1 -1
  93. package/models/operations/searchinstitutions.d.ts +112 -0
  94. package/models/operations/searchinstitutions.d.ts.map +1 -0
  95. package/models/operations/searchinstitutions.js +149 -0
  96. package/models/operations/searchinstitutions.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/institutions.d.ts +11 -0
  99. package/sdk/institutions.d.ts.map +1 -1
  100. package/sdk/institutions.js +14 -0
  101. package/sdk/institutions.js.map +1 -1
  102. package/src/funcs/institutionsSearchInstitutions.ts +179 -0
  103. package/src/lib/config.ts +3 -3
  104. package/src/mcp-server/mcp-server.ts +1 -1
  105. package/src/mcp-server/server.ts +3 -1
  106. package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
  107. package/src/models/components/achinstitution.ts +89 -0
  108. package/src/models/components/contact.ts +65 -0
  109. package/src/models/components/index.ts +7 -0
  110. package/src/models/components/institutionssearchresponse.ts +92 -0
  111. package/src/models/components/rtpinstitution.ts +79 -0
  112. package/src/models/components/rtpservices.ts +72 -0
  113. package/src/models/components/wireinstitution.ts +91 -0
  114. package/src/models/components/wireservices.ts +79 -0
  115. package/src/models/errors/apierror.ts +18 -3
  116. package/src/models/operations/index.ts +1 -0
  117. package/src/models/operations/searchinstitutions.ts +236 -0
  118. package/src/sdk/institutions.ts +22 -0
package/FUNCTIONS.md CHANGED
@@ -21,11 +21,11 @@ specific category of applications.
21
21
  ```typescript
22
22
  import { MoovCore } from "@moovio/sdk/core.js";
23
23
  import { accountsCreate } from "@moovio/sdk/funcs/accountsCreate.js";
24
- import { SDKValidationError } from "@moovio/sdk/models/errors/sdkvalidationerror.js";
25
24
 
26
25
  // Use `MoovCore` for best tree-shaking performance.
27
26
  // You can create one instance of it to use across an application.
28
27
  const moov = new MoovCore({
28
+ xMoovVersion: "v2024.01.00",
29
29
  security: {
30
30
  username: "",
31
31
  password: "",
@@ -41,28 +41,12 @@ async function run() {
41
41
  },
42
42
  },
43
43
  });
44
-
45
- switch (true) {
46
- case res.ok:
47
- // The success case will be handled outside of the switch block
48
- break;
49
- case res.error instanceof SDKValidationError:
50
- // Pretty-print validation errors.
51
- return console.log(res.error.pretty());
52
- case res.error instanceof Error:
53
- return console.log(res.error);
54
- default:
55
- // TypeScript's type checking will fail on the following line if the above
56
- // cases were not exhaustive.
57
- res.error satisfies never;
58
- throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
44
+ if (res.ok) {
45
+ const { value: result } = res;
46
+ console.log(result);
47
+ } else {
48
+ console.log("accountsCreate failed:", res.error);
59
49
  }
60
-
61
-
62
- const { value: result } = res;
63
-
64
- // Handle the result
65
- console.log(result);
66
50
  }
67
51
 
68
52
  run();
package/README.md CHANGED
@@ -177,6 +177,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
177
177
  import { Moov } from "@moovio/sdk";
178
178
 
179
179
  const moov = new Moov({
180
+ xMoovVersion: "v2024.01.00",
180
181
  security: {
181
182
  username: "",
182
183
  password: "",
@@ -193,7 +194,6 @@ async function run() {
193
194
  },
194
195
  });
195
196
 
196
- // Handle the result
197
197
  console.log(result);
198
198
  }
199
199
 
@@ -222,6 +222,7 @@ const moov = new Moov({
222
222
  username: "",
223
223
  password: "",
224
224
  },
225
+ xMoovVersion: "v2024.01.00",
225
226
  });
226
227
 
227
228
  async function run() {
@@ -234,7 +235,6 @@ async function run() {
234
235
  },
235
236
  });
236
237
 
237
- // Handle the result
238
238
  console.log(result);
239
239
  }
240
240
 
@@ -755,6 +755,14 @@ you'll need to specify the `/profile-enrichment.read` scope.
755
755
 
756
756
  ### [institutions](docs/sdks/institutions/README.md)
757
757
 
758
+ * [searchInstitutions](docs/sdks/institutions/README.md#searchinstitutions) - Search for financial institutions by name or routing number.
759
+
760
+ This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
761
+
762
+ This can be used to validate a financial institution before initiating payment activity, or to check which payment rails are available for a given routing number.
763
+
764
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
765
+ you'll need to specify the `/institutions.read` scope.
758
766
  * [search](docs/sdks/institutions/README.md#search) - Search for institutions by either their name or routing number.
759
767
 
760
768
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -1562,6 +1570,14 @@ you'll need to specify the `/profile-enrichment.read` scope.
1562
1570
 
1563
1571
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1564
1572
  you'll need to specify the `/fed.read` scope.
1573
+ - [`institutionsSearchInstitutions`](docs/sdks/institutions/README.md#searchinstitutions) - Search for financial institutions by name or routing number.
1574
+
1575
+ This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
1576
+
1577
+ This can be used to validate a financial institution before initiating payment activity, or to check which payment rails are available for a given routing number.
1578
+
1579
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
1580
+ you'll need to specify the `/institutions.read` scope.
1565
1581
  - [`issuingTransactionsGet`](docs/sdks/issuingtransactions/README.md#get) - Retrieves details of an issued card transaction associated with a specific Moov account.
1566
1582
 
1567
1583
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -1872,6 +1888,7 @@ import { Moov } from "@moovio/sdk";
1872
1888
  import { openAsBlob } from "node:fs";
1873
1889
 
1874
1890
  const moov = new Moov({
1891
+ xMoovVersion: "v2024.01.00",
1875
1892
  security: {
1876
1893
  username: "",
1877
1894
  password: "",
@@ -1888,7 +1905,6 @@ async function run() {
1888
1905
  },
1889
1906
  });
1890
1907
 
1891
- // Handle the result
1892
1908
  console.log(result);
1893
1909
  }
1894
1910
 
@@ -1907,6 +1923,7 @@ To change the default retry strategy for a single API call, simply provide a ret
1907
1923
  import { Moov } from "@moovio/sdk";
1908
1924
 
1909
1925
  const moov = new Moov({
1926
+ xMoovVersion: "v2024.01.00",
1910
1927
  security: {
1911
1928
  username: "",
1912
1929
  password: "",
@@ -1934,7 +1951,6 @@ async function run() {
1934
1951
  },
1935
1952
  });
1936
1953
 
1937
- // Handle the result
1938
1954
  console.log(result);
1939
1955
  }
1940
1956
 
@@ -1957,6 +1973,7 @@ const moov = new Moov({
1957
1973
  },
1958
1974
  retryConnectionErrors: false,
1959
1975
  },
1976
+ xMoovVersion: "v2024.01.00",
1960
1977
  security: {
1961
1978
  username: "",
1962
1979
  password: "",
@@ -1973,7 +1990,6 @@ async function run() {
1973
1990
  },
1974
1991
  });
1975
1992
 
1976
- // Handle the result
1977
1993
  console.log(result);
1978
1994
  }
1979
1995
 
@@ -1985,25 +2001,25 @@ run();
1985
2001
  <!-- Start Error Handling [errors] -->
1986
2002
  ## Error Handling
1987
2003
 
1988
- Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `create` method may throw the following errors:
2004
+ This table shows properties which are common on error classes. For full details see [error classes](#error-classes).
1989
2005
 
1990
- | Error Type | Status Code | Content Type |
1991
- | -------------------------------- | ----------- | ---------------- |
1992
- | errors.GenericError | 400, 409 | application/json |
1993
- | errors.CreateAccountResponseBody | 422 | application/json |
1994
- | errors.APIError | 4XX, 5XX | \*/\* |
1995
-
1996
- If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.
2006
+ | Property | Type | Description |
2007
+ | ------------------- | ---------- | --------------------------------------------------------------------------------------- |
2008
+ | `error.name` | `string` | Error class name eg `APIError` |
2009
+ | `error.message` | `string` | Error message |
2010
+ | `error.statusCode` | `number` | HTTP status code eg `404` |
2011
+ | `error.contentType` | `string` | HTTP content type eg `application/json` |
2012
+ | `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
2013
+ | `error.rawResponse` | `Response` | Raw HTTP response. Access to headers and more. |
2014
+ | `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
1997
2015
 
2016
+ ### Example
1998
2017
  ```typescript
1999
2018
  import { Moov } from "@moovio/sdk";
2000
- import {
2001
- CreateAccountResponseBody,
2002
- GenericError,
2003
- SDKValidationError,
2004
- } from "@moovio/sdk/models/errors";
2019
+ import * as errors from "@moovio/sdk/models/errors";
2005
2020
 
2006
2021
  const moov = new Moov({
2022
+ xMoovVersion: "v2024.01.00",
2007
2023
  security: {
2008
2024
  username: "",
2009
2025
  password: "",
@@ -2011,9 +2027,8 @@ const moov = new Moov({
2011
2027
  });
2012
2028
 
2013
2029
  async function run() {
2014
- let result;
2015
2030
  try {
2016
- result = await moov.accounts.create({
2031
+ const result = await moov.accounts.create({
2017
2032
  accountType: "business",
2018
2033
  profile: {
2019
2034
  business: {
@@ -2022,32 +2037,20 @@ async function run() {
2022
2037
  },
2023
2038
  });
2024
2039
 
2025
- // Handle the result
2026
2040
  console.log(result);
2027
- } catch (err) {
2028
- switch (true) {
2029
- // The server response does not match the expected SDK schema
2030
- case (err instanceof SDKValidationError): {
2031
- // Pretty-print will provide a human-readable multi-line error message
2032
- console.error(err.pretty());
2033
- // Raw value may also be inspected
2034
- console.error(err.rawValue);
2035
- return;
2036
- }
2037
- case (err instanceof GenericError): {
2038
- // Handle err.data$: GenericErrorData
2039
- console.error(err);
2040
- return;
2041
- }
2042
- case (err instanceof CreateAccountResponseBody): {
2043
- // Handle err.data$: CreateAccountResponseBodyData
2044
- console.error(err);
2045
- return;
2046
- }
2047
- default: {
2048
- // Other errors such as network errors, see HTTPClientErrors for more details
2049
- throw err;
2050
- }
2041
+ } catch (error) {
2042
+ // Depending on the method different errors may be thrown
2043
+ if (error instanceof errors.GenericError) {
2044
+ console.log(error.message);
2045
+ console.log(error.data$.error); // string
2046
+ }
2047
+
2048
+ // Fallback error class, if no other more specific error class is matched
2049
+ if (error instanceof errors.APIError) {
2050
+ console.log(error.message);
2051
+ console.log(error.statusCode);
2052
+ console.log(error.body);
2053
+ console.log(error.rawResponse.headers);
2051
2054
  }
2052
2055
  }
2053
2056
  }
@@ -2056,17 +2059,56 @@ run();
2056
2059
 
2057
2060
  ```
2058
2061
 
2059
- Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
2062
+ ### Error Classes
2063
+ * `APIError`: The fallback error class, if no other more specific error class is matched.
2064
+ * `SDKValidationError`: Type mismatch between the data returned from the server and the structure expected by the SDK. This can also be thrown for invalid method arguments. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
2065
+ * Network errors:
2066
+ * `ConnectionError`: HTTP client was unable to make a request to a server.
2067
+ * `RequestTimeoutError`: HTTP request timed out due to an AbortSignal signal.
2068
+ * `RequestAbortedError`: HTTP request was aborted by the client.
2069
+ * `InvalidRequestError`: Any input used to create a request is invalid.
2070
+ * `UnexpectedClientError`: Unrecognised or unexpected error.
2071
+
2072
+ <details><summary>Less common errors, applicable to a subset of methods (34)</summary>
2073
+
2074
+ * [`GenericError`](docs/models/errors/genericerror.md): Applicable to 58 of 136 methods.*
2075
+ * [`BrandValidationError`](docs/models/errors/brandvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 3 of 136 methods.*
2076
+ * [`ScheduleValidationError`](docs/models/errors/schedulevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of 136 methods.*
2077
+ * [`Transfer`](docs/models/errors/transfer.md): Details of a Transfer. Status code `409`. Applicable to 1 of 136 methods.*
2078
+ * [`CardAcquiringRefund`](docs/models/errors/cardacquiringrefund.md): Details of a card refund. Status code `409`. Applicable to 1 of 136 methods.*
2079
+ * [`CreateAccountResponseBody`](docs/models/errors/createaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2080
+ * [`UpdateAccountResponseBody`](docs/models/errors/updateaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2081
+ * [`AssignCountriesError`](docs/models/errors/assigncountrieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2082
+ * [`LinkApplePayError`](docs/models/errors/linkapplepayerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2083
+ * [`BankAccountValidationError`](docs/models/errors/bankaccountvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2084
+ * [`MicroDepositValidationError`](docs/models/errors/microdepositvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2085
+ * [`AddCapabilitiesError`](docs/models/errors/addcapabilitieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2086
+ * [`LinkCardError`](docs/models/errors/linkcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2087
+ * [`UpdateCardError`](docs/models/errors/updatecarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2088
+ * [`FileUploadValidationError`](docs/models/errors/fileuploadvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2089
+ * [`FeePlanAgreementError`](docs/models/errors/feeplanagreementerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2090
+ * [`FileValidationError`](docs/models/errors/filevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2091
+ * [`CreatePaymentLinkError`](docs/models/errors/createpaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2092
+ * [`UpdatePaymentLinkError`](docs/models/errors/updatepaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2093
+ * [`RepresentativeValidationError`](docs/models/errors/representativevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2094
+ * [`CreateSweepConfigError`](docs/models/errors/createsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2095
+ * [`PatchSweepConfigError`](docs/models/errors/patchsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2096
+ * [`AccountTerminalApplicationError`](docs/models/errors/accountterminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2097
+ * [`TransferValidationError`](docs/models/errors/transfervalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2098
+ * [`RefundValidationError`](docs/models/errors/refundvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2099
+ * [`ReversalValidationError`](docs/models/errors/reversalvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2100
+ * [`TransferOptionsValidationError`](docs/models/errors/transferoptionsvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2101
+ * [`UpdateUnderwritingError`](docs/models/errors/updateunderwritingerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2102
+ * [`RequestCardError`](docs/models/errors/requestcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2103
+ * [`UpdateIssuedCardError`](docs/models/errors/updateissuedcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2104
+ * [`RevokeTokenRequestError`](docs/models/errors/revoketokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2105
+ * [`AuthTokenRequestError`](docs/models/errors/authtokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2106
+ * [`OnboardingInviteError`](docs/models/errors/onboardinginviteerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2107
+ * [`TerminalApplicationError`](docs/models/errors/terminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
2108
+ </details>
2060
2109
 
2061
- In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
2062
2110
 
2063
- | HTTP Client Error | Description |
2064
- | ---------------------------------------------------- | ---------------------------------------------------- |
2065
- | RequestAbortedError | HTTP request was aborted by the client |
2066
- | RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
2067
- | ConnectionError | HTTP client was unable to make a request to a server |
2068
- | InvalidRequestError | Any input used to create a request is invalid |
2069
- | UnexpectedClientError | Unrecognised or unexpected error |
2111
+ \* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
2070
2112
  <!-- End Error Handling [errors] -->
2071
2113
 
2072
2114
  <!-- Start Server Selection [server] -->
@@ -2080,6 +2122,7 @@ import { Moov } from "@moovio/sdk";
2080
2122
 
2081
2123
  const moov = new Moov({
2082
2124
  serverURL: "https://api.moov.io",
2125
+ xMoovVersion: "v2024.01.00",
2083
2126
  security: {
2084
2127
  username: "",
2085
2128
  password: "",
@@ -2096,7 +2139,6 @@ async function run() {
2096
2139
  },
2097
2140
  });
2098
2141
 
2099
- // Handle the result
2100
2142
  console.log(result);
2101
2143
  }
2102
2144