This repository contains the generated API client libraries for the Deadlock API. The clients are available in multiple languages and are automatically generated from our OpenAPI specification.
The clients are organized by language:
- Python:
python/— Client for the Deadlock API. - Rust:
rust/— Client for the Deadlock API. - TypeScript:
typescript/— Client for the Deadlock API. - TypeScript Redux Query:
typescript-redux-query/— Client for the Deadlock API. - Kotlin & Java:
kotlin/— Client for the Deadlock API. - Go:
go/— Client for the Deadlock API. - PHP:
php/— Client for the Deadlock API. - C#:
csharp/— Client for the Deadlock API.
You can install the clients directly from this GitHub repository.
Use cargo to add the client to your project:
cargo add --git https://github.com/deadlock-api/openapi-clients deadlock-api-clientUse pip, poetry, or uv to install the client:
# pip
pip install git+https://github.com/deadlock-api/openapi-clients.git#subdirectory=python
# poetry
poetry add git+https://github.com/deadlock-api/openapi-clients.git#subdirectory=python
# uv
uv add git+https://github.com/deadlock-api/openapi-clients#subdirectory=pythonUse npm, yarn, pnpm, or bun to install the client:
# npm
npm install 'https://gitpkg.vercel.app/deadlock-api/openapi-clients/typescript?master'
# yarn
yarn add 'https://gitpkg.vercel.app/deadlock-api/openapi-clients/typescript?master'
# pnpm
pnpm add github:deadlock-api/openapi-clients#path:/typescriptUse npm, yarn, pnpm, or bun to install the client:
# npm
npm install 'https://gitpkg.vercel.app/deadlock-api/openapi-clients/typescript-redux-query?master'
# yarn
yarn add 'https://gitpkg.vercel.app/deadlock-api/openapi-clients/typescript-redux-query?master'
# pnpm
pnpm add github:deadlock-api/openapi-clients#path:/typescript-redux-queryUse gradle or maven to install the client:
# settings.gradle
sourceControl {
gitRepository(url = "https://github.com/deadlock-api/openapi-clients") {
producesModule("com.deadlock-api:deadlock-api-client")
rootDir = "kotlin"
}
}
# build.gradle
implementation 'com.deadlock-api:deadlock-api-client:0.1.0'Use go get to install the client:
go get github.com/deadlock-api/openapi-clients/goClone the repository and add a project reference:
git clone https://github.com/deadlock-api/openapi-clients.git
dotnet add reference openapi-clients/csharp/src/DeadlockApiClient/DeadlockApiClient.csprojEach client is located in its respective directory. Please refer to the README.md and documentation within each client's directory for specific installation and usage instructions.
The clients in this repository are generated using openapi-generator-cli.
You can regenerate the clients manually using the provided Makefile:
-
Regenerate all clients:
make all
-
Regenerate clients for a specific language:
make python make rust make typescript make typescript-redux-query make kotlin make go make php make csharp
-
Clean all generated clients:
make clean
The generation scripts fetch the latest OpenAPI specification from:
https://api.deadlock-api.com/openapi.json
A GitHub Actions workflow, defined in .github/workflows/update-clients.yml, automatically runs make all every day at midnight UTC. It will commit and push any changes to the master branch. This ensures the clients are always up-to-date with the latest API specification. The workflow can also be triggered manually.
Please do not open pull requests with changes to the generated client code directly.
Since all clients are auto-generated, any manual changes will be overwritten. If you find an issue or believe a change is needed, it should be addressed in the source OpenAPI specification itself. The clients in this repository will be updated in the next generation cycle.