You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -133,7 +133,7 @@ This SDK supports the following security scheme globally:
133
133
134
134
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
135
135
```typescript
136
-
import { Moov } from"moov-sdk";
136
+
import { Moov } from"@moovio/sdk";
137
137
138
138
const moov =newMoov({
139
139
security: {
@@ -157,7 +157,7 @@ run();
157
157
158
158
Some operations in this SDK require the security scheme to be specified at the request level. For example:
159
159
```typescript
160
-
import { Moov } from"moov-sdk";
160
+
import { Moov } from"@moovio/sdk";
161
161
162
162
const moov =newMoov();
163
163
@@ -1490,7 +1490,7 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
1490
1490
> -**Node.js v18:** A file stream can be created using the `fileFrom` helper from [`fetch-blob/from.js`](https://www.npmjs.com/package/fetch-blob).
1491
1491
1492
1492
```typescript
1493
-
import { Moov } from"moov-sdk";
1493
+
import { Moov } from"@moovio/sdk";
1494
1494
import { openAsBlob } from"node:fs";
1495
1495
1496
1496
const moov =newMoov();
@@ -1523,7 +1523,7 @@ Some of the endpoints in this SDK support retries. If you use the SDK without a
1523
1523
1524
1524
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
1525
1525
```typescript
1526
-
import { Moov } from"moov-sdk";
1526
+
import { Moov } from"@moovio/sdk";
1527
1527
1528
1528
const moov =newMoov();
1529
1529
@@ -1565,7 +1565,7 @@ run();
1565
1565
1566
1566
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
1567
1567
```typescript
1568
-
import { Moov } from"moov-sdk";
1568
+
import { Moov } from"@moovio/sdk";
1569
1569
1570
1570
const moov =newMoov({
1571
1571
retryConfig: {
@@ -1620,12 +1620,12 @@ Some methods specify known errors which can be thrown. All the known errors are
1620
1620
If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.
1621
1621
1622
1622
```typescript
1623
-
import { Moov } from"moov-sdk";
1623
+
import { Moov } from"@moovio/sdk";
1624
1624
import {
1625
1625
CreateAccountResponseBody,
1626
1626
GenericError,
1627
1627
SDKValidationError,
1628
-
} from"moov-sdk/models/errors";
1628
+
} from"@moovio/sdk/models/errors";
1629
1629
1630
1630
const moov =newMoov();
1631
1631
@@ -1702,7 +1702,7 @@ In some rare cases, the SDK can fail to get a response from the server or even m
1702
1702
1703
1703
The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
1704
1704
```typescript
1705
-
import { Moov } from"moov-sdk";
1705
+
import { Moov } from"@moovio/sdk";
1706
1706
1707
1707
const moov =newMoov({
1708
1708
serverURL: "https://api.moov.io",
@@ -1752,8 +1752,8 @@ custom header and a timeout to requests and how to use the `"requestError"` hook
1752
1752
to log errors:
1753
1753
1754
1754
```typescript
1755
-
import { Moov } from"moov-sdk";
1756
-
import { HTTPClient } from"moov-sdk/lib/http";
1755
+
import { Moov } from"@moovio/sdk";
1756
+
import { HTTPClient } from"@moovio/sdk/lib/http";
1757
1757
1758
1758
const httpClient =newHTTPClient({
1759
1759
// fetcher takes a function that has the same signature as native `fetch`.
@@ -1794,7 +1794,7 @@ You can pass a logger that matches `console`'s interface as an SDK option.
1794
1794
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
0 commit comments