{"id":19459595,"url":"https://github.com/revoltchat/api","last_synced_at":"2025-04-05T14:04:13.480Z","repository":{"id":40419713,"uuid":"403036160","full_name":"revoltchat/api","owner":"revoltchat","description":"Typescript typings and OpenAPI v3 generator for the Revolt API.","archived":false,"fork":false,"pushed_at":"2025-02-25T14:32:35.000Z","size":572,"stargazers_count":36,"open_issues_count":9,"forks_count":24,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T13:05:06.048Z","etag":null,"topics":["api","openapi","revolt","typescript"],"latest_commit_sha":null,"homepage":"https://developers.revolt.chat/api/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revoltchat.png","metadata":{"funding":{"ko_fi":"insertish","custom":"https://insrt.uk/donate"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-04T11:13:47.000Z","updated_at":"2025-02-25T14:32:39.000Z","dependencies_parsed_at":"2023-11-19T15:27:49.889Z","dependency_job_id":"30568991-9019-4160-9fb3-cd16aae93e85","html_url":"https://github.com/revoltchat/api","commit_stats":{"total_commits":139,"total_committers":11,"mean_commits":"12.636363636363637","dds":"0.41007194244604317","last_synced_commit":"20e314795586ae68249371ab3d90ee952af6ced6"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revoltchat%2Fapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revoltchat%2Fapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revoltchat%2Fapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revoltchat%2Fapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revoltchat","download_url":"https://codeload.github.com/revoltchat/api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190233,"owners_count":20898704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","openapi","revolt","typescript"],"created_at":"2024-11-10T17:33:20.238Z","updated_at":"2025-04-05T14:04:13.463Z","avatar_url":"https://github.com/revoltchat.png","language":"TypeScript","funding_links":["https://ko-fi.com/insertish","https://insrt.uk/donate"],"categories":[],"sub_categories":[],"readme":"# Revolt API\n\n![revolt-api](https://img.shields.io/npm/v/revolt-api)\n\nThis package contains typings for objects in the [Revolt API](https://developers.revolt.chat/api/) and a fully typed API request builder.\n\n### Example Usage\n\nIf you just need access to types:\n\n```typescript\nimport type { User } from 'revolt-api';\n```\n\nIf you want to send requests:\n\n```typescript\nimport { API } from 'revolt-api';\n\n// Initialise a new API client:\nconst client = new API();\n\n// or with authentication:\nconst client = new API({ authentication: { revolt: 'bot-token' } });\n\n// Make requests with ease:\nclient.get('/users/@me')\n    // Fully typed responses!\n    .then(user =\u003e user.username);\n\n// No need to worry about the details:\nlet channel_id = \"some channel id\";\nclient.post(`/channels/${channel_id}/messages`, {\n    // Parameters given are fully typed as well!\n    content: \"some content\"\n});\n```\n\nFor more details on how this works, see the [README of @insertish/oapi](https://github.com/insertish/oapi#example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevoltchat%2Fapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevoltchat%2Fapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevoltchat%2Fapi/lists"}