core (plugins): implementation of XEP-0215 "External Service Discovery":

rel 418
This commit is contained in:
Goffi 2023-04-07 15:16:39 +02:00
commit 9b47e8c890

View file

@ -17,9 +17,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from collections import namedtuple
from typing import Dict
from typing import Dict, Callable, Optional
from typing_extensions import TypedDict
from twisted.words.protocols.jabber import jid as t_jid
from twisted.words.protocols.jabber import xmlstream
from twisted.words.xish import domish
@ -27,7 +29,8 @@ class SatXMPPEntity:
jid: t_jid.JID
is_component: bool
server_jid: t_jid.JID
IQ: Callable[[Optional[str], Optional[int]], xmlstream.IQ]
EncryptionPlugin = namedtuple("EncryptionPlugin", ("instance",
"name",