2022-07-05 15:33:51 -07:00
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-07-05 15:33:51 -07:00
|
|
|
|
|
|
|
from ..models.o_auth2_grant_type import OAuth2GrantType
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class DeviceAccessTokenRequestForm(BaseModel):
|
|
|
|
"""The form for a device access token request."""
|
2022-07-05 15:33:51 -07:00
|
|
|
|
2023-11-29 10:32:31 -08:00
|
|
|
client_id: str
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-29 10:32:31 -08:00
|
|
|
device_code: str
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
grant_type: OAuth2GrantType
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|