session.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # mautrix-instagram - A Matrix-Instagram puppeting bridge.
  2. # Copyright (C) 2020 Tulir Asokan
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU Affero General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU Affero General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Affero General Public License
  15. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. from typing import Optional, Union
  17. from attr import dataclass
  18. from mautrix.types import SerializableAttrs
  19. @dataclass
  20. class AndroidSession(SerializableAttrs):
  21. ads_opt_out: bool = False
  22. ig_www_claim: Optional[str] = None
  23. authorization: Optional[str] = None
  24. password_encryption_pubkey: Optional[str] = None
  25. password_encryption_key_id: Union[None, str, int] = None
  26. region_hint: Optional[str] = None
  27. shbid: Optional[str] = None
  28. shbts: Optional[str] = None
  29. ds_user_id: Optional[str] = None
  30. rur: Optional[str] = None