Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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
@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
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)
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
# 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
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
@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
@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()