How to use the pantalaimon.thread_messages.Message function in pantalaimon

To help you get started, we’ve selected a few pantalaimon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
file_path = attr.ib()
    passphrase = attr.ib()


@attr.s
class ImportKeysMessage(_KeysOperation):
    pass


@attr.s
class ExportKeysMessage(_KeysOperation):
    pass


@attr.s
class _VerificationMessage(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class DeviceVerifyMessage(_VerificationMessage):
    pass


@attr.s
class DeviceUnverifyMessage(_VerificationMessage):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
pass


@attr.s
class CancelSendingMessage(UnverifiedResponse):
    pass


@attr.s
class KeyRequestMessage(Message):
    pan_user = attr.ib(type=str)
    event = attr.ib()


@attr.s
class _KeyShare(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class ContinueKeyShare(_KeyShare):
    pass


@attr.s
class CancelKeyShare(_KeyShare):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
@attr.s
class UpdateUsersMessage(Message):
    server = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class UpdateDevicesMessage(Message):
    pan_user = attr.ib(type=str)
    devices = attr.ib(type=dict)


@attr.s
class _KeysOperation(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    file_path = attr.ib()
    passphrase = attr.ib()


@attr.s
class ImportKeysMessage(_KeysOperation):
    pass


@attr.s
class ExportKeysMessage(_KeysOperation):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class ContinueKeyShare(_KeyShare):
    pass


@attr.s
class CancelKeyShare(_KeyShare):
    pass


@attr.s
class DaemonResponse(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    code = attr.ib()
    message = attr.ib()


@attr.s
class UpdateUsersMessage(Message):
    server = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class UpdateDevicesMessage(Message):
    pan_user = attr.ib(type=str)
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
class DaemonResponse(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    code = attr.ib()
    message = attr.ib()


@attr.s
class UpdateUsersMessage(Message):
    server = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class UpdateDevicesMessage(Message):
    pan_user = attr.ib(type=str)
    devices = attr.ib(type=dict)


@attr.s
class _KeysOperation(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    file_path = attr.ib()
    passphrase = attr.ib()


@attr.s
class ImportKeysMessage(_KeysOperation):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import attr


@attr.s
class Message:
    pass


@attr.s
class UnverifiedDevicesSignal(Message):
    pan_user = attr.ib()
    room_id = attr.ib()
    room_display_name = attr.ib()


@attr.s
class UnverifiedResponse(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    room_id = attr.ib()


@attr.s
class SendAnywaysMessage(UnverifiedResponse):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
pan_user = attr.ib()
    room_id = attr.ib()


@attr.s
class SendAnywaysMessage(UnverifiedResponse):
    pass


@attr.s
class CancelSendingMessage(UnverifiedResponse):
    pass


@attr.s
class KeyRequestMessage(Message):
    pan_user = attr.ib(type=str)
    event = attr.ib()


@attr.s
class _KeyShare(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class ContinueKeyShare(_KeyShare):
    pass
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
@attr.s
class Message:
    pass


@attr.s
class UnverifiedDevicesSignal(Message):
    pan_user = attr.ib()
    room_id = attr.ib()
    room_display_name = attr.ib()


@attr.s
class UnverifiedResponse(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    room_id = attr.ib()


@attr.s
class SendAnywaysMessage(UnverifiedResponse):
    pass


@attr.s
class CancelSendingMessage(UnverifiedResponse):
    pass


@attr.s
github matrix-org / pantalaimon / pantalaimon / thread_messages.py View on Github external
@attr.s
class CancelKeyShare(_KeyShare):
    pass


@attr.s
class DaemonResponse(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    code = attr.ib()
    message = attr.ib()


@attr.s
class UpdateUsersMessage(Message):
    server = attr.ib()
    user_id = attr.ib()
    device_id = attr.ib()


@attr.s
class UpdateDevicesMessage(Message):
    pan_user = attr.ib(type=str)
    devices = attr.ib(type=dict)


@attr.s
class _KeysOperation(Message):
    message_id = attr.ib()
    pan_user = attr.ib()
    file_path = attr.ib()