how is your OpenAPI spec defined? You need to define the security scheme as being a client_credentials oauth flow
That said... it looks like the generator your using does't have support for Oauth2 client credentials
Disclaimer that I work for the company, but Speakeasy generates a pydantic-based client, and does have support for OAuth2. You can maintain one SDK free. I would give it a look.