1
0
Fork 0
mirror of synced 2024-09-30 01:08:13 +13:00

feat: add userId to abuse-keys

This commit is contained in:
loks0n 2023-09-28 11:33:01 +01:00
parent b8f2c1deec
commit 5ed2da4cf1
2 changed files with 3 additions and 0 deletions

View file

@ -2159,6 +2159,7 @@ App::delete('/v1/account/sessions/:sessionId')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->label('abuse-limit', 100)
->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}')
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to delete the current device session.')
->inject('requestTimestamp')
->inject('request')
@ -2237,6 +2238,7 @@ App::patch('/v1/account/sessions/:sessionId')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_SESSION)
->label('abuse-limit', 10)
->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}')
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to update the current device session.')
->inject('request')
->inject('response')

View file

@ -373,6 +373,7 @@ App::post('/v1/teams/:teamId/memberships')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_MEMBERSHIP)
->label('abuse-limit', 10)
->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}')
->param('teamId', '', new UID(), 'Team ID.')
->param('email', '', new Email(), 'Email of the new team member.', true)
->param('userId', '', new UID(), 'ID of the user to be added to a team.', true)