Commit c9881ea
committed
feat: add OAuth scopes enumeration and enhance access token model
- Introduced `Scope` enum for OAuth scopes in `enums.py`.
- Updated `HTTPException` to handle optional response in `errors.py`.
- Enhanced `AccessToken` model to include `refresh_token`, `scope`, and `token_kind`.
- Added `tags` field to `Category` model.
- Created `ChatResponse` model for chat message responses.
- Introduced `KicksLeaderboardEntry` and `KicksLeaderboard` models for leaderboard data.
- Added `LivestreamStats` model for livestream statistics.
- Updated `LiveStream` model to include optional `profile_picture`.
- Created channel rewards models including `ChannelReward`, `RedemptionUser`, and redemption-related classes.
- Added webhook models for channel reward redemption and updated user model to handle compact user objects.
- Enhanced `ChatMessage` model to support replies and created_at timestamp.
- Updated `Gift` model in kicks gifted webhook to include `pinned_time_seconds`.
- Implemented OAuth callback server for handling authorization flow.
- Updated webhook event enum to reflect new events and renamed existing ones for clarity.
- Adjusted webhook server to map new event types to their respective models.1 parent 69665eb commit c9881ea
21 files changed
Lines changed: 1055 additions & 78 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
62 | 66 | | |
63 | | - | |
64 | | - | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments