{"id":37422253,"url":"https://github.com/devrev/sdk-typescript","last_synced_at":"2026-01-16T06:07:45.122Z","repository":{"id":249720967,"uuid":"832324250","full_name":"devrev/sdk-typescript","owner":"devrev","description":"TypeScript SDK generated by Fern","archived":false,"fork":false,"pushed_at":"2025-07-15T10:10:13.000Z","size":1719,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T13:18:11.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devrev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-22T19:38:59.000Z","updated_at":"2025-07-15T10:10:18.000Z","dependencies_parsed_at":"2024-08-01T08:12:51.629Z","dependency_job_id":"764e2dfb-050d-41b6-b610-9c39717d22d5","html_url":"https://github.com/devrev/sdk-typescript","commit_stats":null,"previous_names":["devrev/sdk-typescript"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/devrev/sdk-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrev%2Fsdk-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrev%2Fsdk-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrev%2Fsdk-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrev%2Fsdk-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devrev","download_url":"https://codeload.github.com/devrev/sdk-typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrev%2Fsdk-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T06:07:44.536Z","updated_at":"2026-01-16T06:07:45.115Z","avatar_url":"https://github.com/devrev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Devrev TypeScript Library\n\n[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github\u0026utm_medium=github\u0026utm_campaign=readme\u0026utm_source=https%3A%2F%2Fgithub.com%2Fdevrev%2Fsdk-typescript)\n[![npm shield](https://img.shields.io/npm/v/@devrev/api)](https://www.npmjs.com/package/@devrev/api)\n\nThe Devrev TypeScript library provides convenient access to the Devrev API from TypeScript.\n\n## Installation\n\n```sh\nnpm i -s @devrev/api\n```\n\n## Usage\n\nInstantiate and use the client with the following:\n\n```typescript\nimport { DevRevClient } from \"@devrev/api\";\n\nconst client = new DevRevClient({ token: \"YOUR_TOKEN\" });\nawait client.accounts.create({\n    displayName: \"display_name\",\n});\n```\n\n## Request And Response Types\n\nThe SDK exports all request and response types as TypeScript interfaces. Simply import them with the\nfollowing namespace:\n\n```typescript\nimport { DevRev } from \"@devrev/api\";\n\nconst request: DevRev.AccountsCreateRequest = {\n    ...\n};\n```\n\n## Exception Handling\n\nWhen the API returns a non-success status code (4xx or 5xx response), a subclass of the following error\nwill be thrown.\n\n```typescript\nimport { DevRevError } from \"@devrev/api\";\n\ntry {\n    await client.accounts.create(...);\n} catch (err) {\n    if (err instanceof DevRevError) {\n        console.log(err.statusCode);\n        console.log(err.message);\n        console.log(err.body);\n    }\n}\n```\n\n## Advanced\n\n### Retries\n\nThe SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long\nas the request is deemed retriable and the number of retry attempts has not grown larger than the configured\nretry limit (default: 2).\n\nA request is deemed retriable when any of the following HTTP status codes is returned:\n\n-   [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)\n-   [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)\n-   [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)\n\nUse the `maxRetries` request option to configure this behavior.\n\n```typescript\nconst response = await client.accounts.create(..., {\n    maxRetries: 0 // override maxRetries at the request level\n});\n```\n\n### Timeouts\n\nThe SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.\n\n```typescript\nconst response = await client.accounts.create(..., {\n    timeoutInSeconds: 30 // override timeout to 30s\n});\n```\n\n### Aborting Requests\n\nThe SDK allows users to abort requests at any point by passing in an abort signal.\n\n```typescript\nconst controller = new AbortController();\nconst response = await client.accounts.create(..., {\n    abortSignal: controller.signal\n});\ncontroller.abort(); // aborts the request\n```\n\n### Runtime Compatibility\n\nThe SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following\nruntimes:\n\n-   Node.js 18+\n-   Vercel\n-   Cloudflare Workers\n-   Deno v1.25+\n-   Bun 1.0+\n-   React Native\n\n### Customizing Fetch Client\n\nThe SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an\nunsupported environment, this provides a way for you to break glass and ensure the SDK works.\n\n```typescript\nimport { DevRevClient } from \"@devrev/api\";\n\nconst client = new DevRevClient({\n    ...\n    fetcher: // provide your implementation here\n});\n```\n\n## Contributing\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nAdditions made directly to this library would have to be moved over to our generation code,\notherwise they would be overwritten upon the next generated release. Feel free to open a PR as\na proof of concept, but know that we will not be able to merge it as-is. We suggest opening\nan issue first to discuss with us!\n\nOn the other hand, contributions to the README are always very welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrev%2Fsdk-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevrev%2Fsdk-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrev%2Fsdk-typescript/lists"}