Add a flag to indicate if the requesting user can unbridge the portal
This commit is contained in:
@@ -57,6 +57,11 @@ paths:
|
||||
required: true
|
||||
type: string
|
||||
pattern: "![^/]+"
|
||||
- name: user_id
|
||||
in: query
|
||||
description: Optional Matrix user ID to check if the user has permissions to do bridging.
|
||||
required: false
|
||||
type: string
|
||||
/portal/{chat_id}:
|
||||
get:
|
||||
operationId: get_portal_by_tgid
|
||||
@@ -102,6 +107,11 @@ paths:
|
||||
required: true
|
||||
type: integer
|
||||
pattern: "-[0-9]+"
|
||||
- name: user_id
|
||||
in: query
|
||||
description: Optional Matrix user ID to check if the user has permissions to do bridging.
|
||||
required: false
|
||||
type: string
|
||||
/portal/{room_id}/connect/{chat_id}:
|
||||
post:
|
||||
operationId: connect_portal
|
||||
@@ -829,6 +839,9 @@ definitions:
|
||||
type: string
|
||||
about:
|
||||
type: string
|
||||
can_unbridge:
|
||||
type: boolean
|
||||
description: If a user ID was provided with the request, this will indicate whether or not the user can unbridge the room.
|
||||
|
||||
AuthSuccess:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user