-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature, ts): Add generator-cli client to generate README.md (#3817)
- Loading branch information
Showing
80 changed files
with
8,215 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+247 KB
.yarn/cache/@fern-fern-generator-cli-sdk-npm-0.0.25-cfbdb79b65-a142f33ea7.zip
Binary file not shown.
Binary file renamed
BIN
+593 KB
...sdk-npm-0.0.845-f0de9ca6c1-b21dd6e433.zip → ...sdk-npm-0.0.879-d6ca4928f3-3c738417fd.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.21.1 | ||
0.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
features: | ||
- id: USAGE | ||
description: | | ||
Instantiate and use the client with the following: | ||
- id: REQUEST_AND_RESPONSE_TYPES | ||
description: | | ||
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the | ||
following namespace: | ||
- id: EXCEPTION_HANDLING | ||
description: | | ||
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error | ||
will be thrown. | ||
- id: RETRIES | ||
description: | | ||
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long | ||
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured | ||
retry limit (default: 2). | ||
A request is deemed retriable when any of the following HTTP status codes is returned: | ||
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) | ||
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) | ||
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors) | ||
Use the `maxRetries` request option to configure this behavior. | ||
- id: TIMEOUTS | ||
description: | | ||
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior. | ||
- id: ABORTING_REQUESTS | ||
description: | | ||
The SDK allows users to abort requests at any point by passing in an abort signal. | ||
- id: RUNTIME_COMPATIBILITY | ||
description: | | ||
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following | ||
runtimes: | ||
- Node.js 18+ | ||
- Vercel | ||
- Cloudflare Workers | ||
- Deno v1.25+ | ||
- Bun 1.0+ | ||
- React Native | ||
### Customizing Fetch Client | ||
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an | ||
unsupported environment, this provides a way for you to break glass and ensure the SDK works. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.