PySPlusthon 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PySPlusthon/__init__.py +3 -0
- PySPlusthon/client/__init__.py +1 -0
- PySPlusthon/client/attachments/__init__.py +29 -0
- PySPlusthon/client/attachments/get_file.py +22 -0
- PySPlusthon/client/attachments/send_animation.py +71 -0
- PySPlusthon/client/attachments/send_audio.py +54 -0
- PySPlusthon/client/attachments/send_contact.py +47 -0
- PySPlusthon/client/attachments/send_document.py +63 -0
- PySPlusthon/client/attachments/send_location.py +45 -0
- PySPlusthon/client/attachments/send_media_group.py +88 -0
- PySPlusthon/client/attachments/send_photo.py +67 -0
- PySPlusthon/client/attachments/send_sticker.py +51 -0
- PySPlusthon/client/attachments/send_video.py +56 -0
- PySPlusthon/client/attachments/send_voice.py +52 -0
- PySPlusthon/client/attachments/upload_file.py +82 -0
- PySPlusthon/client/chats/__init__.py +43 -0
- PySPlusthon/client/chats/ban_chat_member.py +24 -0
- PySPlusthon/client/chats/delete_chat_photo.py +32 -0
- PySPlusthon/client/chats/get_chat.py +69 -0
- PySPlusthon/client/chats/get_chat_administrators.py +18 -0
- PySPlusthon/client/chats/get_chat_history.py +39 -0
- PySPlusthon/client/chats/get_chat_member.py +16 -0
- PySPlusthon/client/chats/get_chat_members.py +29 -0
- PySPlusthon/client/chats/get_chat_members_count.py +21 -0
- PySPlusthon/client/chats/join_chat.py +31 -0
- PySPlusthon/client/chats/leave_chat.py +22 -0
- PySPlusthon/client/chats/pin_chat_message.py +31 -0
- PySPlusthon/client/chats/promote_chat_member.py +64 -0
- PySPlusthon/client/chats/restrict_chat_member.py +25 -0
- PySPlusthon/client/chats/set_chat_description.py +23 -0
- PySPlusthon/client/chats/set_chat_photo.py +33 -0
- PySPlusthon/client/chats/set_chat_title.py +23 -0
- PySPlusthon/client/chats/unban_chat_member.py +24 -0
- PySPlusthon/client/chats/unpin_all_chat_messages.py +38 -0
- PySPlusthon/client/chats/unpin_chat_message.py +33 -0
- PySPlusthon/client/client.py +223 -0
- PySPlusthon/client/invite_links/__init__.py +7 -0
- PySPlusthon/client/invite_links/create_chat_invite_link.py +14 -0
- PySPlusthon/client/invite_links/export_chat_invite_link.py +21 -0
- PySPlusthon/client/invite_links/revoke_chat_invite_link.py +23 -0
- PySPlusthon/client/messages/__init__.py +21 -0
- PySPlusthon/client/messages/answer_callback_query.py +12 -0
- PySPlusthon/client/messages/copy_message.py +43 -0
- PySPlusthon/client/messages/delete_message.py +29 -0
- PySPlusthon/client/messages/edit_message_caption.py +40 -0
- PySPlusthon/client/messages/edit_message_reply_markup.py +17 -0
- PySPlusthon/client/messages/edit_message_text.py +40 -0
- PySPlusthon/client/messages/forward_message.py +35 -0
- PySPlusthon/client/messages/send_message.py +39 -0
- PySPlusthon/client/stickers/__init__.py +9 -0
- PySPlusthon/client/stickers/add_sticker_to_set.py +15 -0
- PySPlusthon/client/stickers/create_new_sticker_set.py +16 -0
- PySPlusthon/client/stickers/delete_sticker_from_set.py +10 -0
- PySPlusthon/client/stickers/get_sticker_set.py +11 -0
- PySPlusthon/client/stickers/upload_sticker_file.py +16 -0
- PySPlusthon/client/updates/__init__.py +8 -0
- PySPlusthon/client/updates/delete_webhook.py +9 -0
- PySPlusthon/client/updates/get_updates.py +14 -0
- PySPlusthon/client/updates/get_webhook_info.py +10 -0
- PySPlusthon/client/updates/set_webhook.py +10 -0
- PySPlusthon/client/users/__init__.py +6 -0
- PySPlusthon/client/users/ask_review.py +14 -0
- PySPlusthon/client/users/get_me.py +16 -0
- PySPlusthon/conditions/__init__.py +43 -0
- PySPlusthon/conditions/all.py +6 -0
- PySPlusthon/conditions/animation.py +7 -0
- PySPlusthon/conditions/at_state.py +18 -0
- PySPlusthon/conditions/audio.py +7 -0
- PySPlusthon/conditions/author.py +13 -0
- PySPlusthon/conditions/caption.py +7 -0
- PySPlusthon/conditions/channel.py +11 -0
- PySPlusthon/conditions/channel_chat_created.py +7 -0
- PySPlusthon/conditions/chat.py +14 -0
- PySPlusthon/conditions/click.py +24 -0
- PySPlusthon/conditions/command.py +23 -0
- PySPlusthon/conditions/condition.py +88 -0
- PySPlusthon/conditions/contact.py +7 -0
- PySPlusthon/conditions/content.py +7 -0
- PySPlusthon/conditions/delete_chat_photo.py +7 -0
- PySPlusthon/conditions/document.py +7 -0
- PySPlusthon/conditions/entities.py +7 -0
- PySPlusthon/conditions/equals.py +14 -0
- PySPlusthon/conditions/forward.py +7 -0
- PySPlusthon/conditions/group.py +11 -0
- PySPlusthon/conditions/group_chat_created.py +7 -0
- PySPlusthon/conditions/is_admin.py +17 -0
- PySPlusthon/conditions/is_instance.py +10 -0
- PySPlusthon/conditions/is_joined.py +61 -0
- PySPlusthon/conditions/left_chat_member.py +7 -0
- PySPlusthon/conditions/location.py +7 -0
- PySPlusthon/conditions/media.py +7 -0
- PySPlusthon/conditions/media_group.py +7 -0
- PySPlusthon/conditions/new_chat_members.py +7 -0
- PySPlusthon/conditions/new_chat_photo.py +7 -0
- PySPlusthon/conditions/new_chat_title.py +7 -0
- PySPlusthon/conditions/number.py +12 -0
- PySPlusthon/conditions/photo.py +7 -0
- PySPlusthon/conditions/pinned_message.py +7 -0
- PySPlusthon/conditions/poll.py +7 -0
- PySPlusthon/conditions/private.py +11 -0
- PySPlusthon/conditions/regex.py +17 -0
- PySPlusthon/conditions/reply.py +7 -0
- PySPlusthon/conditions/sticker.py +7 -0
- PySPlusthon/conditions/supergroup_chat_created.py +7 -0
- PySPlusthon/conditions/text.py +7 -0
- PySPlusthon/conditions/video.py +7 -0
- PySPlusthon/conditions/voice.py +7 -0
- PySPlusthon/dispatcher/__init__.py +5 -0
- PySPlusthon/dispatcher/chain.py +165 -0
- PySPlusthon/dispatcher/dispatcher.py +124 -0
- PySPlusthon/dispatcher/logging_chain.py +36 -0
- PySPlusthon/dispatcher/monitoring_chain.py +19 -0
- PySPlusthon/dispatcher/printing_chain.py +21 -0
- PySPlusthon/enums/__init__.py +7 -0
- PySPlusthon/enums/chat_member_status.py +9 -0
- PySPlusthon/enums/chat_type.py +9 -0
- PySPlusthon/enums/message_media_type.py +16 -0
- PySPlusthon/enums/name_enum.py +13 -0
- PySPlusthon/enums/peer_type.py +8 -0
- PySPlusthon/enums/poll_type.py +8 -0
- PySPlusthon/enums/transaction_status.py +10 -0
- PySPlusthon/errors/__init__.py +11 -0
- PySPlusthon/errors/dispatching_errors/__init__.py +2 -0
- PySPlusthon/errors/dispatching_errors/break_dispatching.py +2 -0
- PySPlusthon/errors/dispatching_errors/continue_dispatching.py +2 -0
- PySPlusthon/errors/rpc_errors/__init__.py +8 -0
- PySPlusthon/errors/rpc_errors/bad_request_error.py +6 -0
- PySPlusthon/errors/rpc_errors/flood_error.py +6 -0
- PySPlusthon/errors/rpc_errors/forbidden_error.py +6 -0
- PySPlusthon/errors/rpc_errors/internal_error.py +6 -0
- PySPlusthon/errors/rpc_errors/not_found_error.py +6 -0
- PySPlusthon/errors/rpc_errors/rpc_error.py +23 -0
- PySPlusthon/errors/rpc_errors/too_many_requests.py +10 -0
- PySPlusthon/errors/rpc_errors/unauthorized_error.py +6 -0
- PySPlusthon/event_handlers/__init__.py +12 -0
- PySPlusthon/event_handlers/callback_query_handler.py +16 -0
- PySPlusthon/event_handlers/command_handler.py +46 -0
- PySPlusthon/event_handlers/connect_handler.py +19 -0
- PySPlusthon/event_handlers/disconnect_handler.py +18 -0
- PySPlusthon/event_handlers/edited_message_handler.py +16 -0
- PySPlusthon/event_handlers/error_handler.py +15 -0
- PySPlusthon/event_handlers/event_handler.py +53 -0
- PySPlusthon/event_handlers/initialize_handler.py +18 -0
- PySPlusthon/event_handlers/message_handler.py +16 -0
- PySPlusthon/event_handlers/shipping_query_handler.py +16 -0
- PySPlusthon/event_handlers/shutdown_handler.py +18 -0
- PySPlusthon/event_handlers/update_handler.py +16 -0
- PySPlusthon/network/__init__.py +1 -0
- PySPlusthon/network/httpconnection.py +74 -0
- PySPlusthon/objects/__init__.py +43 -0
- PySPlusthon/objects/animation.py +44 -0
- PySPlusthon/objects/audio.py +36 -0
- PySPlusthon/objects/callback_query.py +37 -0
- PySPlusthon/objects/chat.py +118 -0
- PySPlusthon/objects/chat_member.py +53 -0
- PySPlusthon/objects/chat_permissions.py +26 -0
- PySPlusthon/objects/chat_photo.py +24 -0
- PySPlusthon/objects/contact.py +18 -0
- PySPlusthon/objects/date.py +35 -0
- PySPlusthon/objects/document.py +36 -0
- PySPlusthon/objects/edited_message.py +27 -0
- PySPlusthon/objects/entity.py +21 -0
- PySPlusthon/objects/file.py +21 -0
- PySPlusthon/objects/forward_origin.py +22 -0
- PySPlusthon/objects/inline_keyboard.py +65 -0
- PySPlusthon/objects/inline_keyboard_button.py +30 -0
- PySPlusthon/objects/input_media.py +44 -0
- PySPlusthon/objects/input_media_photo.py +14 -0
- PySPlusthon/objects/input_media_video.py +14 -0
- PySPlusthon/objects/invite_link.py +32 -0
- PySPlusthon/objects/list.py +24 -0
- PySPlusthon/objects/location.py +14 -0
- PySPlusthon/objects/message.py +478 -0
- PySPlusthon/objects/message_id.py +31 -0
- PySPlusthon/objects/object.py +154 -0
- PySPlusthon/objects/order_info.py +19 -0
- PySPlusthon/objects/photo.py +31 -0
- PySPlusthon/objects/poll.py +34 -0
- PySPlusthon/objects/poll_option.py +16 -0
- PySPlusthon/objects/reply_keyboard.py +79 -0
- PySPlusthon/objects/reply_keyboard_button.py +27 -0
- PySPlusthon/objects/reply_keyboard_remove.py +10 -0
- PySPlusthon/objects/reply_markup.py +12 -0
- PySPlusthon/objects/shipping_address.py +22 -0
- PySPlusthon/objects/shipping_query.py +20 -0
- PySPlusthon/objects/sticker.py +54 -0
- PySPlusthon/objects/sticker_set.py +29 -0
- PySPlusthon/objects/transaction.py +25 -0
- PySPlusthon/objects/update.py +33 -0
- PySPlusthon/objects/user.py +60 -0
- PySPlusthon/objects/video.py +45 -0
- PySPlusthon/objects/voice.py +31 -0
- PySPlusthon/objects/webhook_info.py +16 -0
- PySPlusthon/proto/__init__.py +2 -0
- PySPlusthon/proto/enums_pb2.py +46 -0
- PySPlusthon/proto/enums_pb2.pyi +99 -0
- PySPlusthon/proto/enums_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/__init__.py +209 -0
- PySPlusthon/proto/requests/abacus_pb2.py +40 -0
- PySPlusthon/proto/requests/abacus_pb2.pyi +31 -0
- PySPlusthon/proto/requests/abacus_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/auth_pb2.py +49 -0
- PySPlusthon/proto/requests/auth_pb2.pyi +67 -0
- PySPlusthon/proto/requests/auth_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/configs_pb2.py +37 -0
- PySPlusthon/proto/requests/configs_pb2.pyi +15 -0
- PySPlusthon/proto/requests/configs_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/files_pb2.py +40 -0
- PySPlusthon/proto/requests/files_pb2.pyi +34 -0
- PySPlusthon/proto/requests/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/groups_pb2.py +82 -0
- PySPlusthon/proto/requests/groups_pb2.pyi +213 -0
- PySPlusthon/proto/requests/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/messaging_pb2.py +56 -0
- PySPlusthon/proto/requests/messaging_pb2.pyi +119 -0
- PySPlusthon/proto/requests/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/presence_pb2.py +40 -0
- PySPlusthon/proto/requests/presence_pb2.pyi +24 -0
- PySPlusthon/proto/requests/presence_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/request_pb2.py +42 -0
- PySPlusthon/proto/requests/request_pb2.pyi +35 -0
- PySPlusthon/proto/requests/request_pb2_grpc.py +24 -0
- PySPlusthon/proto/requests/users_pb2.py +43 -0
- PySPlusthon/proto/requests/users_pb2.pyi +34 -0
- PySPlusthon/proto/requests/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/__init__.py +6 -0
- PySPlusthon/proto/responses/abacus_pb2.py +37 -0
- PySPlusthon/proto/responses/abacus_pb2.pyi +14 -0
- PySPlusthon/proto/responses/abacus_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/auth_pb2.py +42 -0
- PySPlusthon/proto/responses/auth_pb2.pyi +40 -0
- PySPlusthon/proto/responses/auth_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/files_pb2.py +39 -0
- PySPlusthon/proto/responses/files_pb2.pyi +27 -0
- PySPlusthon/proto/responses/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/groups_pb2.py +59 -0
- PySPlusthon/proto/responses/groups_pb2.pyi +90 -0
- PySPlusthon/proto/responses/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/messaging_pb2.py +44 -0
- PySPlusthon/proto/responses/messaging_pb2.pyi +37 -0
- PySPlusthon/proto/responses/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/responses/users_pb2.py +41 -0
- PySPlusthon/proto/responses/users_pb2.pyi +28 -0
- PySPlusthon/proto/responses/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/__init__.py +7 -0
- PySPlusthon/proto/structs/collections_pb2.py +54 -0
- PySPlusthon/proto/structs/collections_pb2.pyi +79 -0
- PySPlusthon/proto/structs/collections_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/files_pb2.py +52 -0
- PySPlusthon/proto/structs/files_pb2.pyi +93 -0
- PySPlusthon/proto/structs/files_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/groups_pb2.py +49 -0
- PySPlusthon/proto/structs/groups_pb2.pyi +144 -0
- PySPlusthon/proto/structs/groups_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/messaging_pb2.py +81 -0
- PySPlusthon/proto/structs/messaging_pb2.pyi +296 -0
- PySPlusthon/proto/structs/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/peers_pb2.py +47 -0
- PySPlusthon/proto/structs/peers_pb2.pyi +56 -0
- PySPlusthon/proto/structs/peers_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/set_updates_pb2.py +37 -0
- PySPlusthon/proto/structs/set_updates_pb2.pyi +15 -0
- PySPlusthon/proto/structs/set_updates_pb2_grpc.py +24 -0
- PySPlusthon/proto/structs/users_pb2.py +54 -0
- PySPlusthon/proto/structs/users_pb2.pyi +122 -0
- PySPlusthon/proto/structs/users_pb2_grpc.py +24 -0
- PySPlusthon/proto/updates/__init__.py +1 -0
- PySPlusthon/proto/updates/messaging_pb2.py +38 -0
- PySPlusthon/proto/updates/messaging_pb2.pyi +26 -0
- PySPlusthon/proto/updates/messaging_pb2_grpc.py +24 -0
- PySPlusthon/proto/ws_pb2.py +52 -0
- PySPlusthon/proto/ws_pb2.pyi +76 -0
- PySPlusthon/proto/ws_pb2_grpc.py +24 -0
- PySPlusthon/smart_call.py +73 -0
- PySPlusthon/states/__init__.py +3 -0
- PySPlusthon/states/state.py +11 -0
- PySPlusthon/states/state_group.py +13 -0
- PySPlusthon/states/state_machine.py +83 -0
- PySPlusthon/sync_support.py +48 -0
- pysplusthon-0.5.3.dist-info/METADATA +65 -0
- pysplusthon-0.5.3.dist-info/RECORD +284 -0
- pysplusthon-0.5.3.dist-info/WHEEL +5 -0
- pysplusthon-0.5.3.dist-info/licenses/LICENSE +19 -0
- pysplusthon-0.5.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from typing import ClassVar as _ClassVar
|
|
4
|
+
|
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
|
+
|
|
7
|
+
class SendType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
SEND_TYPE_UNKNOWN: _ClassVar[SendType]
|
|
10
|
+
SEND_TYPE_PHOTO: _ClassVar[SendType]
|
|
11
|
+
SEND_TYPE_VIDEO: _ClassVar[SendType]
|
|
12
|
+
SEND_TYPE_VOICE: _ClassVar[SendType]
|
|
13
|
+
SEND_TYPE_GIF: _ClassVar[SendType]
|
|
14
|
+
SEND_TYPE_AUDIO: _ClassVar[SendType]
|
|
15
|
+
SEND_TYPE_DOCUMENT: _ClassVar[SendType]
|
|
16
|
+
SEND_TYPE_STICKER: _ClassVar[SendType]
|
|
17
|
+
SEND_TYPE_CROWDFUNDING: _ClassVar[SendType]
|
|
18
|
+
SEND_TYPE_SPONSORED: _ClassVar[SendType]
|
|
19
|
+
|
|
20
|
+
class Restriction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
21
|
+
__slots__ = ()
|
|
22
|
+
RESTRICTION_PRIVATE: _ClassVar[Restriction]
|
|
23
|
+
RESTRICTION_PUBLIC: _ClassVar[Restriction]
|
|
24
|
+
|
|
25
|
+
class GroupType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
26
|
+
__slots__ = ()
|
|
27
|
+
GROUP_TYPE_GROUP: _ClassVar[GroupType]
|
|
28
|
+
GROUP_TYPE_CHANNEL: _ClassVar[GroupType]
|
|
29
|
+
GROUP_TYPE_SUPER_GROUP: _ClassVar[GroupType]
|
|
30
|
+
|
|
31
|
+
class ExPeerType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
32
|
+
__slots__ = ()
|
|
33
|
+
EX_PEER_TYPE_UNKNOWN: _ClassVar[ExPeerType]
|
|
34
|
+
EX_PEER_TYPE_PRIVATE: _ClassVar[ExPeerType]
|
|
35
|
+
EX_PEER_TYPE_GROUP: _ClassVar[ExPeerType]
|
|
36
|
+
EX_PEER_TYPE_CHANNEL: _ClassVar[ExPeerType]
|
|
37
|
+
EX_PEER_TYPE_BOT: _ClassVar[ExPeerType]
|
|
38
|
+
EX_PEER_TYPE_SUPERGROUP: _ClassVar[ExPeerType]
|
|
39
|
+
EX_PEER_TYPE_THREAD: _ClassVar[ExPeerType]
|
|
40
|
+
|
|
41
|
+
class TypingType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
42
|
+
__slots__ = ()
|
|
43
|
+
TYPING_TYPE_UNKNOWN: _ClassVar[TypingType]
|
|
44
|
+
TYPING_TYPE_TEXT: _ClassVar[TypingType]
|
|
45
|
+
TYPING_TYPE_VOICE_RECORDING: _ClassVar[TypingType]
|
|
46
|
+
TYPING_TYPE_SENDING_VOICE: _ClassVar[TypingType]
|
|
47
|
+
TYPING_TYPE_SENDING_FILE: _ClassVar[TypingType]
|
|
48
|
+
TYPING_TYPE_SENDING_PHOTO: _ClassVar[TypingType]
|
|
49
|
+
TYPING_TYPE_SENDING_VIDEO: _ClassVar[TypingType]
|
|
50
|
+
TYPING_TYPE_SENDING_MUSIC: _ClassVar[TypingType]
|
|
51
|
+
TYPING_TYPE_CHOOSING_STICKER: _ClassVar[TypingType]
|
|
52
|
+
TYPING_TYPE_CHOOSING_GIF: _ClassVar[TypingType]
|
|
53
|
+
TYPING_TYPE_CREATING_GIFT_PACKET: _ClassVar[TypingType]
|
|
54
|
+
TYPING_TYPE_SENDING_ALBUM: _ClassVar[TypingType]
|
|
55
|
+
TYPING_TYPE_CHOOSING_EMOJI: _ClassVar[TypingType]
|
|
56
|
+
|
|
57
|
+
class Sex(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
58
|
+
__slots__ = ()
|
|
59
|
+
SEX_UNKNOWN: _ClassVar[Sex]
|
|
60
|
+
SEX_MALE: _ClassVar[Sex]
|
|
61
|
+
SEX_FEMALE: _ClassVar[Sex]
|
|
62
|
+
SEND_TYPE_UNKNOWN: SendType
|
|
63
|
+
SEND_TYPE_PHOTO: SendType
|
|
64
|
+
SEND_TYPE_VIDEO: SendType
|
|
65
|
+
SEND_TYPE_VOICE: SendType
|
|
66
|
+
SEND_TYPE_GIF: SendType
|
|
67
|
+
SEND_TYPE_AUDIO: SendType
|
|
68
|
+
SEND_TYPE_DOCUMENT: SendType
|
|
69
|
+
SEND_TYPE_STICKER: SendType
|
|
70
|
+
SEND_TYPE_CROWDFUNDING: SendType
|
|
71
|
+
SEND_TYPE_SPONSORED: SendType
|
|
72
|
+
RESTRICTION_PRIVATE: Restriction
|
|
73
|
+
RESTRICTION_PUBLIC: Restriction
|
|
74
|
+
GROUP_TYPE_GROUP: GroupType
|
|
75
|
+
GROUP_TYPE_CHANNEL: GroupType
|
|
76
|
+
GROUP_TYPE_SUPER_GROUP: GroupType
|
|
77
|
+
EX_PEER_TYPE_UNKNOWN: ExPeerType
|
|
78
|
+
EX_PEER_TYPE_PRIVATE: ExPeerType
|
|
79
|
+
EX_PEER_TYPE_GROUP: ExPeerType
|
|
80
|
+
EX_PEER_TYPE_CHANNEL: ExPeerType
|
|
81
|
+
EX_PEER_TYPE_BOT: ExPeerType
|
|
82
|
+
EX_PEER_TYPE_SUPERGROUP: ExPeerType
|
|
83
|
+
EX_PEER_TYPE_THREAD: ExPeerType
|
|
84
|
+
TYPING_TYPE_UNKNOWN: TypingType
|
|
85
|
+
TYPING_TYPE_TEXT: TypingType
|
|
86
|
+
TYPING_TYPE_VOICE_RECORDING: TypingType
|
|
87
|
+
TYPING_TYPE_SENDING_VOICE: TypingType
|
|
88
|
+
TYPING_TYPE_SENDING_FILE: TypingType
|
|
89
|
+
TYPING_TYPE_SENDING_PHOTO: TypingType
|
|
90
|
+
TYPING_TYPE_SENDING_VIDEO: TypingType
|
|
91
|
+
TYPING_TYPE_SENDING_MUSIC: TypingType
|
|
92
|
+
TYPING_TYPE_CHOOSING_STICKER: TypingType
|
|
93
|
+
TYPING_TYPE_CHOOSING_GIF: TypingType
|
|
94
|
+
TYPING_TYPE_CREATING_GIFT_PACKET: TypingType
|
|
95
|
+
TYPING_TYPE_SENDING_ALBUM: TypingType
|
|
96
|
+
TYPING_TYPE_CHOOSING_EMOJI: TypingType
|
|
97
|
+
SEX_UNKNOWN: Sex
|
|
98
|
+
SEX_MALE: Sex
|
|
99
|
+
SEX_FEMALE: Sex
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in enums_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
from .abacus_pb2 import *
|
|
2
|
+
from .auth_pb2 import *
|
|
3
|
+
from .configs_pb2 import *
|
|
4
|
+
from .files_pb2 import *
|
|
5
|
+
from .groups_pb2 import *
|
|
6
|
+
from .messaging_pb2 import *
|
|
7
|
+
from .presence_pb2 import *
|
|
8
|
+
from .request_pb2 import *
|
|
9
|
+
from .users_pb2 import *
|
|
10
|
+
|
|
11
|
+
GetMessageViews.service_name = "bale.abacus.v1.Abacus"
|
|
12
|
+
GetMessageViews.method = "GetMessagesViews"
|
|
13
|
+
GetMessageViews.http2 = False
|
|
14
|
+
|
|
15
|
+
MessageSetReaction.service_name = "bale.abacus.v1.Abacus"
|
|
16
|
+
MessageSetReaction.method = "MessageSetReaction"
|
|
17
|
+
MessageSetReaction.http2 = False
|
|
18
|
+
|
|
19
|
+
StartPhoneAuth.service_name = "bale.auth.v1.Auth"
|
|
20
|
+
StartPhoneAuth.method = "StartPhoneAuth"
|
|
21
|
+
StartPhoneAuth.http2 = True
|
|
22
|
+
|
|
23
|
+
ValidateCode.service_name = "bale.auth.v1.Auth"
|
|
24
|
+
ValidateCode.method = "ValidateCode"
|
|
25
|
+
ValidateCode.http2 = True
|
|
26
|
+
|
|
27
|
+
ValidatePassword.service_name = "bale.auth.v1.Auth"
|
|
28
|
+
ValidatePassword.method = "ValidatePassword"
|
|
29
|
+
ValidatePassword.http2 = True
|
|
30
|
+
|
|
31
|
+
SignUp.service_name = "bale.auth.v1.Auth"
|
|
32
|
+
SignUp.method = "SignUp"
|
|
33
|
+
SignUp.http2 = True
|
|
34
|
+
|
|
35
|
+
TerminateAllSessions.service_name = "bale.auth.v1.Auth"
|
|
36
|
+
TerminateAllSessions.method = "TerminateAllSessions"
|
|
37
|
+
TerminateAllSessions.http2 = True
|
|
38
|
+
|
|
39
|
+
GetJWTToken.service_name = "bale.auth.v1.Auth"
|
|
40
|
+
GetJWTToken.method = "GetJWTToken"
|
|
41
|
+
GetJWTToken.http2 = True
|
|
42
|
+
|
|
43
|
+
SignOut.service_name = "bale.auth.v1.Auth"
|
|
44
|
+
SignOut.method = "SignOut"
|
|
45
|
+
SignOut.http2 = True
|
|
46
|
+
|
|
47
|
+
EditParameter.service_name = "bale.v1.Configs"
|
|
48
|
+
EditParameter.method = "EditParameter"
|
|
49
|
+
EditParameter.http2 = False
|
|
50
|
+
|
|
51
|
+
GetNasimFileUploadUrl.service_name = "ai.bale.server.Files"
|
|
52
|
+
GetNasimFileUploadUrl.method = "GetNasimFileUploadUrl"
|
|
53
|
+
GetNasimFileUploadUrl.http2 = False
|
|
54
|
+
|
|
55
|
+
GetNasimFileUrl.service_name = "ai.bale.server.Files"
|
|
56
|
+
GetNasimFileUrl.method = "GetNasimFileUrl"
|
|
57
|
+
GetNasimFileUrl.http2 = False
|
|
58
|
+
|
|
59
|
+
JoinGroup.service_name = "bale.groups.v1.Groups"
|
|
60
|
+
JoinGroup.method = "JoinGroup"
|
|
61
|
+
JoinGroup.http2 = False
|
|
62
|
+
|
|
63
|
+
JoinPublicGroup.service_name = "bale.groups.v1.Groups"
|
|
64
|
+
JoinPublicGroup.method = "JoinPublicGroup"
|
|
65
|
+
JoinPublicGroup.http2 = False
|
|
66
|
+
|
|
67
|
+
LeaveGroup.service_name = "bale.groups.v1.Groups"
|
|
68
|
+
LeaveGroup.method = "LeaveGroup"
|
|
69
|
+
LeaveGroup.http2 = False
|
|
70
|
+
|
|
71
|
+
GetFullGroup.service_name = "bale.groups.v1.Groups"
|
|
72
|
+
GetFullGroup.method = "GetFullGroup"
|
|
73
|
+
GetFullGroup.http2 = False
|
|
74
|
+
|
|
75
|
+
PinMessage.service_name = "bale.groups.v1.Groups"
|
|
76
|
+
PinMessage.method = "PinMessage"
|
|
77
|
+
PinMessage.http2 = False
|
|
78
|
+
|
|
79
|
+
EditGroupAvatar.service_name = "bale.groups.v1.Groups"
|
|
80
|
+
EditGroupAvatar.method = "EditGroupAvatar"
|
|
81
|
+
EditGroupAvatar.http2 = False
|
|
82
|
+
|
|
83
|
+
LoadGroupAvatars.service_name = "bale.groups.v1.Groups"
|
|
84
|
+
LoadGroupAvatars.method = "LoadGroupAvatars"
|
|
85
|
+
LoadGroupAvatars.http2 = False
|
|
86
|
+
|
|
87
|
+
RemoveGroupAvatar.service_name = "bale.groups.v1.Groups"
|
|
88
|
+
RemoveGroupAvatar.method = "RemoveGroupAvatar"
|
|
89
|
+
RemoveGroupAvatar.http2 = False
|
|
90
|
+
|
|
91
|
+
EditGroupTitle.service_name = "bale.groups.v1.Groups"
|
|
92
|
+
EditGroupTitle.method = "EditGroupTitle"
|
|
93
|
+
EditGroupTitle.http2 = False
|
|
94
|
+
|
|
95
|
+
EditGroupAbout.service_name = "bale.groups.v1.Groups"
|
|
96
|
+
EditGroupAbout.method = "EditGroupAbout"
|
|
97
|
+
EditGroupAbout.http2 = False
|
|
98
|
+
|
|
99
|
+
RevokeInviteUrl.service_name = "bale.groups.v1.Groups"
|
|
100
|
+
RevokeInviteUrl.method = "RevokeInviteUrl"
|
|
101
|
+
RevokeInviteUrl.http2 = False
|
|
102
|
+
|
|
103
|
+
UnBanUser.service_name = "bale.groups.v1.Groups"
|
|
104
|
+
UnBanUser.method = "UnBanUser"
|
|
105
|
+
UnBanUser.http2 = False
|
|
106
|
+
|
|
107
|
+
KickUser.service_name = "bale.groups.v1.Groups"
|
|
108
|
+
KickUser.method = "KickUser"
|
|
109
|
+
KickUser.http2 = False
|
|
110
|
+
|
|
111
|
+
GetGroupInviteUrl.service_name = "bale.groups.v1.Groups"
|
|
112
|
+
GetGroupInviteUrl.method = "GetGroupInviteUrl"
|
|
113
|
+
GetGroupInviteUrl.http2 = False
|
|
114
|
+
|
|
115
|
+
InviteUsers.service_name = "bale.groups.v1.Groups"
|
|
116
|
+
InviteUsers.method = "InviteUsers"
|
|
117
|
+
InviteUsers.http2 = False
|
|
118
|
+
|
|
119
|
+
SetMemberPermissions.service_name = "bale.groups.v1.Groups"
|
|
120
|
+
SetMemberPermissions.method = "SetMemberPermissions"
|
|
121
|
+
SetMemberPermissions.http2 = False
|
|
122
|
+
|
|
123
|
+
LoadMembers.service_name = "bale.groups.v1.Groups"
|
|
124
|
+
LoadMembers.method = "LoadMembers"
|
|
125
|
+
LoadMembers.http2 = False
|
|
126
|
+
|
|
127
|
+
GetGroupMembersCount.service_name = "bale.groups.v1.Groups"
|
|
128
|
+
GetGroupMembersCount.method = "GetGroupMembersCount"
|
|
129
|
+
GetGroupMembersCount.http2 = False
|
|
130
|
+
|
|
131
|
+
RemoveSinglePin.service_name = "bale.groups.v1.Groups"
|
|
132
|
+
RemoveSinglePin.method = "RemoveSinglePin"
|
|
133
|
+
RemoveSinglePin.http2 = False
|
|
134
|
+
|
|
135
|
+
RemovePin.service_name = "bale.groups.v1.Groups"
|
|
136
|
+
RemovePin.method = "RemovePin"
|
|
137
|
+
RemovePin.http2 = False
|
|
138
|
+
|
|
139
|
+
RemoveUserAdmin.service_name = "bale.groups.v1.Groups"
|
|
140
|
+
RemoveUserAdmin.method = "RemoveUserAdmin"
|
|
141
|
+
RemoveUserAdmin.http2 = False
|
|
142
|
+
|
|
143
|
+
GetGroupPreview.service_name = "bale.groups.v1.Groups"
|
|
144
|
+
GetGroupPreview.method = "GetGroupPreview"
|
|
145
|
+
GetGroupPreview.http2 = False
|
|
146
|
+
|
|
147
|
+
SendMessage.service_name = "bale.messaging.v2.Messaging"
|
|
148
|
+
SendMessage.method = "SendMessage"
|
|
149
|
+
SendMessage.http2 = False
|
|
150
|
+
|
|
151
|
+
UpdateMessage.service_name = "bale.messaging.v2.Messaging"
|
|
152
|
+
UpdateMessage.method = "UpdateMessage"
|
|
153
|
+
UpdateMessage.http2 = False
|
|
154
|
+
|
|
155
|
+
DeleteMessage.service_name = "bale.messaging.v2.Messaging"
|
|
156
|
+
DeleteMessage.method = "DeleteMessage"
|
|
157
|
+
DeleteMessage.http2 = False
|
|
158
|
+
|
|
159
|
+
ForwardMessages.service_name = "bale.messaging.v2.Messaging"
|
|
160
|
+
ForwardMessages.method = "ForwardMessages"
|
|
161
|
+
ForwardMessages.http2 = False
|
|
162
|
+
|
|
163
|
+
LoadHistory.service_name = "bale.messaging.v2.Messaging"
|
|
164
|
+
LoadHistory.method = "LoadHistory"
|
|
165
|
+
LoadHistory.http2 = False
|
|
166
|
+
|
|
167
|
+
PinMessages.service_name = "bale.messaging.v2.Messaging"
|
|
168
|
+
PinMessages.method = "PinMessage"
|
|
169
|
+
PinMessages.http2 = False
|
|
170
|
+
|
|
171
|
+
UnPinMessages.service_name = "bale.messaging.v2.Messaging"
|
|
172
|
+
UnPinMessages.method = "UnPinMessages"
|
|
173
|
+
UnPinMessages.http2 = False
|
|
174
|
+
|
|
175
|
+
LoadPinnedMessages.service_name = "bale.messaging.v2.Messaging"
|
|
176
|
+
LoadPinnedMessages.method = "LoadPinnedMessages"
|
|
177
|
+
LoadPinnedMessages.http2 = False
|
|
178
|
+
|
|
179
|
+
SendMultiMediaMessage.service_name = "bale.messaging.v2.Messaging"
|
|
180
|
+
SendMultiMediaMessage.method = "SendMultiMediaMessage"
|
|
181
|
+
SendMultiMediaMessage.http2 = False
|
|
182
|
+
|
|
183
|
+
LoadDialogs.service_name = "bale.messaging.v2.Messaging"
|
|
184
|
+
LoadDialogs.method = "LoadDialogs"
|
|
185
|
+
LoadDialogs.http2 = False
|
|
186
|
+
|
|
187
|
+
SetOnline.service_name = "bale.presence.v1.Presence"
|
|
188
|
+
SetOnline.method = "SetOnline"
|
|
189
|
+
SetOnline.http2 = False
|
|
190
|
+
|
|
191
|
+
Typing.service_name = "bale.presence.v1.Presence"
|
|
192
|
+
Typing.method = "Typing"
|
|
193
|
+
Typing.http2 = False
|
|
194
|
+
|
|
195
|
+
EditName.service_name = "bale.users.v1.Users"
|
|
196
|
+
EditName.method = "EditName"
|
|
197
|
+
EditName.http2 = False
|
|
198
|
+
|
|
199
|
+
LoadUsers.service_name = "bale.users.v1.Users"
|
|
200
|
+
LoadUsers.method = "LoadUsers"
|
|
201
|
+
LoadUsers.http2 = False
|
|
202
|
+
|
|
203
|
+
LoadFullUsers.service_name = "bale.users.v1.Users"
|
|
204
|
+
LoadFullUsers.method = "LoadFullUsers"
|
|
205
|
+
LoadFullUsers.http2 = False
|
|
206
|
+
|
|
207
|
+
SearchContacts.service_name = "bale.users.v1.Users"
|
|
208
|
+
SearchContacts.method = "SearchContacts"
|
|
209
|
+
SearchContacts.http2 = False
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/abacus.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/abacus.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import peers_pb2 as structs_dot_peers__pb2
|
|
26
|
+
from ..structs import messaging_pb2 as structs_dot_messaging__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15requests/abacus.proto\x12\x08requests\x1a\x13structs/peers.proto\x1a\x17structs/messaging.proto\"c\n\x0fGetMessageViews\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12 \n\x04mids\x18\x02 \x03(\x0b\x32\x12.structs.MessageId\x12\x11\n\tincrement\x18\x03 \x01(\x08\"Z\n\x12MessageSetReaction\x12\x1b\n\x04peer\x18\x01 \x01(\x0b\x32\r.structs.Peer\x12\x0b\n\x03rid\x18\x02 \x01(\x03\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61te\x18\x04 \x01(\x03\x62\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.abacus_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
DESCRIPTOR._loaded_options = None
|
|
36
|
+
_globals['_GETMESSAGEVIEWS']._serialized_start=81
|
|
37
|
+
_globals['_GETMESSAGEVIEWS']._serialized_end=180
|
|
38
|
+
_globals['_MESSAGESETREACTION']._serialized_start=182
|
|
39
|
+
_globals['_MESSAGESETREACTION']._serialized_end=272
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from ..structs import peers_pb2 as _peers_pb2
|
|
2
|
+
from ..structs import messaging_pb2 as _messaging_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
7
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
8
|
+
|
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
10
|
+
|
|
11
|
+
class GetMessageViews(_message.Message):
|
|
12
|
+
__slots__ = ("peer", "mids", "increment")
|
|
13
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
MIDS_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
INCREMENT_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
peer: _peers_pb2.Peer
|
|
17
|
+
mids: _containers.RepeatedCompositeFieldContainer[_messaging_pb2.MessageId]
|
|
18
|
+
increment: bool
|
|
19
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., mids: _Optional[_Iterable[_Union[_messaging_pb2.MessageId, _Mapping]]] = ..., increment: bool = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class MessageSetReaction(_message.Message):
|
|
22
|
+
__slots__ = ("peer", "rid", "code", "date")
|
|
23
|
+
PEER_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
RID_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
DATE_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
peer: _peers_pb2.Peer
|
|
28
|
+
rid: int
|
|
29
|
+
code: str
|
|
30
|
+
date: int
|
|
31
|
+
def __init__(self, peer: _Optional[_Union[_peers_pb2.Peer, _Mapping]] = ..., rid: _Optional[int] = ..., code: _Optional[str] = ..., date: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/abacus_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/auth.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/auth.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import collections_pb2 as structs_dot_collections__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13requests/auth.proto\x12\x08requests\x1a\x19structs/collections.proto\"\x8a\x01\n\x0eStartPhoneAuth\x12\x14\n\x0cphone_number\x18\x01 \x01(\x03\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\x05\x12\x0f\n\x07\x61pi_key\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65vice_hash\x18\x04 \x01(\t\x12\x14\n\x0c\x64\x65vice_title\x18\x05 \x01(\t\x12\x16\n\x0esend_code_type\x18\t \x01(\x05\"Z\n\x0cValidateCode\x12\x18\n\x10transaction_hash\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\"\n\x06is_jwt\x18\x03 \x01(\x0b\x32\x12.structs.BoolValue\"b\n\x10ValidatePassword\x12\x18\n\x10transaction_hash\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\"\n\x06is_jwt\x18\x03 \x01(\x0b\x32\x12.structs.BoolValue\"e\n\x06SignUp\x12\x18\n\x10transaction_hash\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03sex\x18\x03 \x01(\x05\x12&\n\x08password\x18\x04 \x01(\x0b\x32\x14.structs.StringValue\"\x16\n\x14TerminateAllSessions\"\r\n\x0bGetJWTToken\"\t\n\x07SignOutb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.auth_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_STARTPHONEAUTH']._serialized_start=61
|
|
36
|
+
_globals['_STARTPHONEAUTH']._serialized_end=199
|
|
37
|
+
_globals['_VALIDATECODE']._serialized_start=201
|
|
38
|
+
_globals['_VALIDATECODE']._serialized_end=291
|
|
39
|
+
_globals['_VALIDATEPASSWORD']._serialized_start=293
|
|
40
|
+
_globals['_VALIDATEPASSWORD']._serialized_end=391
|
|
41
|
+
_globals['_SIGNUP']._serialized_start=393
|
|
42
|
+
_globals['_SIGNUP']._serialized_end=494
|
|
43
|
+
_globals['_TERMINATEALLSESSIONS']._serialized_start=496
|
|
44
|
+
_globals['_TERMINATEALLSESSIONS']._serialized_end=518
|
|
45
|
+
_globals['_GETJWTTOKEN']._serialized_start=520
|
|
46
|
+
_globals['_GETJWTTOKEN']._serialized_end=533
|
|
47
|
+
_globals['_SIGNOUT']._serialized_start=535
|
|
48
|
+
_globals['_SIGNOUT']._serialized_end=544
|
|
49
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from ..structs import collections_pb2 as _collections_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class StartPhoneAuth(_message.Message):
|
|
10
|
+
__slots__ = ("phone_number", "app_id", "api_key", "device_hash", "device_title", "send_code_type")
|
|
11
|
+
PHONE_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
APP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
API_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
DEVICE_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
DEVICE_TITLE_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
SEND_CODE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
phone_number: int
|
|
18
|
+
app_id: int
|
|
19
|
+
api_key: str
|
|
20
|
+
device_hash: str
|
|
21
|
+
device_title: str
|
|
22
|
+
send_code_type: int
|
|
23
|
+
def __init__(self, phone_number: _Optional[int] = ..., app_id: _Optional[int] = ..., api_key: _Optional[str] = ..., device_hash: _Optional[str] = ..., device_title: _Optional[str] = ..., send_code_type: _Optional[int] = ...) -> None: ...
|
|
24
|
+
|
|
25
|
+
class ValidateCode(_message.Message):
|
|
26
|
+
__slots__ = ("transaction_hash", "code", "is_jwt")
|
|
27
|
+
TRANSACTION_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
IS_JWT_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
transaction_hash: str
|
|
31
|
+
code: str
|
|
32
|
+
is_jwt: _collections_pb2.BoolValue
|
|
33
|
+
def __init__(self, transaction_hash: _Optional[str] = ..., code: _Optional[str] = ..., is_jwt: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ...) -> None: ...
|
|
34
|
+
|
|
35
|
+
class ValidatePassword(_message.Message):
|
|
36
|
+
__slots__ = ("transaction_hash", "password", "is_jwt")
|
|
37
|
+
TRANSACTION_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
IS_JWT_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
transaction_hash: str
|
|
41
|
+
password: str
|
|
42
|
+
is_jwt: _collections_pb2.BoolValue
|
|
43
|
+
def __init__(self, transaction_hash: _Optional[str] = ..., password: _Optional[str] = ..., is_jwt: _Optional[_Union[_collections_pb2.BoolValue, _Mapping]] = ...) -> None: ...
|
|
44
|
+
|
|
45
|
+
class SignUp(_message.Message):
|
|
46
|
+
__slots__ = ("transaction_hash", "name", "sex", "password")
|
|
47
|
+
TRANSACTION_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
SEX_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
transaction_hash: str
|
|
52
|
+
name: str
|
|
53
|
+
sex: int
|
|
54
|
+
password: _collections_pb2.StringValue
|
|
55
|
+
def __init__(self, transaction_hash: _Optional[str] = ..., name: _Optional[str] = ..., sex: _Optional[int] = ..., password: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ...) -> None: ...
|
|
56
|
+
|
|
57
|
+
class TerminateAllSessions(_message.Message):
|
|
58
|
+
__slots__ = ()
|
|
59
|
+
def __init__(self) -> None: ...
|
|
60
|
+
|
|
61
|
+
class GetJWTToken(_message.Message):
|
|
62
|
+
__slots__ = ()
|
|
63
|
+
def __init__(self) -> None: ...
|
|
64
|
+
|
|
65
|
+
class SignOut(_message.Message):
|
|
66
|
+
__slots__ = ()
|
|
67
|
+
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/auth_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: requests/configs.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'requests/configs.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from ..structs import collections_pb2 as structs_dot_collections__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16requests/configs.proto\x12\x08requests\x1a\x19structs/collections.proto\"A\n\rEditParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.structs.StringValueb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'requests.configs_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
DESCRIPTOR._loaded_options = None
|
|
35
|
+
_globals['_EDITPARAMETER']._serialized_start=63
|
|
36
|
+
_globals['_EDITPARAMETER']._serialized_end=128
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from ..structs import collections_pb2 as _collections_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class EditParameter(_message.Message):
|
|
10
|
+
__slots__ = ("key", "value")
|
|
11
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
key: str
|
|
14
|
+
value: _collections_pb2.StringValue
|
|
15
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_collections_pb2.StringValue, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in requests/configs_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|