refactor(auth): remove bot owner linkage and enforce bot-level permissions
This commit is contained in:
@@ -363,8 +363,8 @@ curl -X POST "http://localhost:8000/auth/bots" \
|
||||
-H "Authorization: Bearer <ADMIN_TOKEN>" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"owner_user_id": "user-1",
|
||||
"name": "market-bot",
|
||||
"permission": "trade-write",
|
||||
"description": "External trading bot"
|
||||
}'
|
||||
```
|
||||
@@ -374,8 +374,8 @@ Response 201:
|
||||
```json
|
||||
{
|
||||
"id": "bot-1",
|
||||
"owner_user_id": "user-1",
|
||||
"name": "market-bot",
|
||||
"permission": "trade-write",
|
||||
"description": "External trading bot",
|
||||
"is_active": true,
|
||||
"created_at": "2026-04-03T00:00:00Z",
|
||||
@@ -466,8 +466,8 @@ Response 200:
|
||||
```json
|
||||
{
|
||||
"id": "bot-1",
|
||||
"owner_user_id": "user-1",
|
||||
"name": "market-bot",
|
||||
"permission": "trade-write",
|
||||
"description": "External trading bot",
|
||||
"is_active": false,
|
||||
"created_at": "2026-04-03T00:00:00Z",
|
||||
|
||||
Reference in New Issue
Block a user