mirror of
https://github.com/daimyomizukagebay61/SteamPanel.git
synced 2026-08-26 17:27:43 +00:00
v 3.0.3
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from .enums_pb2 import k_ESessionPersistence_Persistent
|
||||
from .steammessages_auth.steamclient_pb2 import (
|
||||
CAuthentication_BeginAuthSessionViaCredentials_Request,
|
||||
CAuthentication_BeginAuthSessionViaCredentials_Response,
|
||||
CAuthentication_GetPasswordRSAPublicKey_Request,
|
||||
CAuthentication_GetPasswordRSAPublicKey_Response,
|
||||
CAuthentication_PollAuthSessionStatus_Request,
|
||||
CAuthentication_PollAuthSessionStatus_Response,
|
||||
CAuthentication_UpdateAuthSessionWithSteamGuardCode_Request,
|
||||
k_EAuthSessionGuardType_DeviceCode,
|
||||
k_EAuthTokenPlatformType_WebBrowser,
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
'CAuthentication_BeginAuthSessionViaCredentials_Request',
|
||||
'CAuthentication_BeginAuthSessionViaCredentials_Response',
|
||||
'CAuthentication_GetPasswordRSAPublicKey_Request',
|
||||
'CAuthentication_GetPasswordRSAPublicKey_Response',
|
||||
'CAuthentication_PollAuthSessionStatus_Request',
|
||||
'CAuthentication_PollAuthSessionStatus_Response',
|
||||
'CAuthentication_UpdateAuthSessionWithSteamGuardCode_Request',
|
||||
'k_EAuthSessionGuardType_DeviceCode',
|
||||
'k_EAuthTokenPlatformType_WebBrowser',
|
||||
'k_ESessionPersistence_Persistent',
|
||||
]
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
||||
from enum import IntEnum
|
||||
|
||||
|
||||
class ESessionPersistence(IntEnum):
|
||||
k_ESessionPersistence_Invalid: int = -1
|
||||
k_ESessionPersistence_Ephemeral: int = 0
|
||||
k_ESessionPersistence_Persistent: int = 1
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,139 @@
|
||||
from enum import IntEnum
|
||||
from typing import (
|
||||
List,
|
||||
Optional,
|
||||
)
|
||||
|
||||
from pysteamauth.pb2.enums_pb2 import ESessionPersistence
|
||||
|
||||
|
||||
class EAuthTokenPlatformType(IntEnum):
|
||||
k_EAuthTokenPlatformType_Unknown: int = 0
|
||||
k_EAuthTokenPlatformType_SteamClient: int = 1
|
||||
k_EAuthTokenPlatformType_WebBrowser: int = 2
|
||||
k_EAuthTokenPlatformType_MobileApp: int = 3
|
||||
|
||||
|
||||
class EAuthSessionGuardType(IntEnum):
|
||||
k_EAuthSessionGuardType_Unknown: int = 0
|
||||
k_EAuthSessionGuardType_None: int = 1
|
||||
k_EAuthSessionGuardType_EmailCode: int = 2
|
||||
k_EAuthSessionGuardType_DeviceCode: int = 3
|
||||
k_EAuthSessionGuardType_DeviceConfirmation: int = 4
|
||||
k_EAuthSessionGuardType_EmailConfirmation: int = 5
|
||||
k_EAuthSessionGuardType_MachineToken: int = 6
|
||||
|
||||
|
||||
class CAuthentication_UpdateAuthSessionWithSteamGuardCode_Request:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
client_id: int,
|
||||
steamid: int,
|
||||
code: Optional[str],
|
||||
code_type: Optional[int],
|
||||
):
|
||||
...
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_UpdateAuthSessionWithSteamGuardCode_Request':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
class CAuthentication_AllowedConfirmation:
|
||||
confirmation_type: EAuthSessionGuardType
|
||||
associated_message: Optional[str]
|
||||
|
||||
|
||||
class CAuthentication_BeginAuthSessionViaCredentials_Response:
|
||||
client_id: int
|
||||
request_id: bytes
|
||||
interval: Optional[float]
|
||||
allowed_confirmations: Optional[List[CAuthentication_AllowedConfirmation]]
|
||||
steamid: int
|
||||
weak_token: Optional[str]
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_BeginAuthSessionViaCredentials_Response':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class CAuthentication_GetPasswordRSAPublicKey_Request:
|
||||
|
||||
def __init__(self, account_name: str):
|
||||
...
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_GetPasswordRSAPublicKey_Request':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
class CAuthentication_BeginAuthSessionViaCredentials_Request:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
account_name: str,
|
||||
encrypted_password: str,
|
||||
encryption_timestamp: int,
|
||||
device_friendly_name: str,
|
||||
website_id: str = 'Unknown',
|
||||
remember_login: bool = True,
|
||||
platform_type: int = EAuthTokenPlatformType.k_EAuthTokenPlatformType_Unknown,
|
||||
persistence: int = ESessionPersistence.k_ESessionPersistence_Persistent,
|
||||
):
|
||||
...
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_BeginAuthSessionViaCredentials_Request':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
class CAuthentication_PollAuthSessionStatus_Request:
|
||||
|
||||
def __init__(self, client_id: int, request_id: bytes, token_to_revoke: Optional[int] = None):
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
class CAuthentication_GetPasswordRSAPublicKey_Response:
|
||||
publickey_mod: str
|
||||
publickey_exp: str
|
||||
timestamp: int
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_GetPasswordRSAPublicKey_Response':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
|
||||
|
||||
class CAuthentication_PollAuthSessionStatus_Response:
|
||||
new_client_id: Optional[int]
|
||||
new_challenge_url: Optional[str]
|
||||
refresh_token: str
|
||||
access_token: str
|
||||
had_remote_interaction: bool
|
||||
account_name: str
|
||||
|
||||
@staticmethod
|
||||
def FromString(message: bytes) -> 'CAuthentication_PollAuthSessionStatus_Response':
|
||||
...
|
||||
|
||||
def SerializeToString(self) -> bytes:
|
||||
...
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,68 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: steammessages_unified_base.steamclient.proto
|
||||
# flake8: noqa
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,steammessages_unified_base.steamclient.proto\x1a google/protobuf/descriptor.proto\"\x0c\n\nNoResponse*]\n\x13\x45ProtoExecutionSite\x12 \n\x1ck_EProtoExecutionSiteUnknown\x10\x00\x12$\n k_EProtoExecutionSiteSteamClient\x10\x02:4\n\x0b\x64\x65scription\x12\x1d.google.protobuf.FieldOptions\x18\xd0\x86\x03 \x01(\t:>\n\x13service_description\x12\x1f.google.protobuf.ServiceOptions\x18\xd0\x86\x03 \x01(\t:u\n\x16service_execution_site\x12\x1f.google.protobuf.ServiceOptions\x18\xd8\x86\x03 \x01(\x0e\x32\x14.EProtoExecutionSite:\x1ck_EProtoExecutionSiteUnknown:<\n\x12method_description\x12\x1e.google.protobuf.MethodOptions\x18\xd0\x86\x03 \x01(\t:8\n\x10\x65num_description\x12\x1c.google.protobuf.EnumOptions\x18\xd0\x86\x03 \x01(\t:C\n\x16\x65num_value_description\x12!.google.protobuf.EnumValueOptions\x18\xd0\x86\x03 \x01(\tB\x05H\x01\x80\x01\x00')
|
||||
|
||||
_EPROTOEXECUTIONSITE = DESCRIPTOR.enum_types_by_name['EProtoExecutionSite']
|
||||
EProtoExecutionSite = enum_type_wrapper.EnumTypeWrapper(_EPROTOEXECUTIONSITE)
|
||||
k_EProtoExecutionSiteUnknown = 0
|
||||
k_EProtoExecutionSiteSteamClient = 2
|
||||
|
||||
DESCRIPTION_FIELD_NUMBER = 50000
|
||||
description = DESCRIPTOR.extensions_by_name['description']
|
||||
SERVICE_DESCRIPTION_FIELD_NUMBER = 50000
|
||||
service_description = DESCRIPTOR.extensions_by_name['service_description']
|
||||
SERVICE_EXECUTION_SITE_FIELD_NUMBER = 50008
|
||||
service_execution_site = DESCRIPTOR.extensions_by_name['service_execution_site']
|
||||
METHOD_DESCRIPTION_FIELD_NUMBER = 50000
|
||||
method_description = DESCRIPTOR.extensions_by_name['method_description']
|
||||
ENUM_DESCRIPTION_FIELD_NUMBER = 50000
|
||||
enum_description = DESCRIPTOR.extensions_by_name['enum_description']
|
||||
ENUM_VALUE_DESCRIPTION_FIELD_NUMBER = 50000
|
||||
enum_value_description = DESCRIPTOR.extensions_by_name['enum_value_description']
|
||||
|
||||
_NORESPONSE = DESCRIPTOR.message_types_by_name['NoResponse']
|
||||
NoResponse = _reflection.GeneratedProtocolMessageType('NoResponse', (_message.Message,), {
|
||||
'DESCRIPTOR': _NORESPONSE,
|
||||
'__module__': 'steammessages_unified_base.steamclient_pb2'
|
||||
# @@protoc_insertion_point(class_scope:NoResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(NoResponse)
|
||||
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(
|
||||
description)
|
||||
google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(
|
||||
service_description)
|
||||
google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(
|
||||
service_execution_site)
|
||||
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(
|
||||
method_description)
|
||||
google_dot_protobuf_dot_descriptor__pb2.EnumOptions.RegisterExtension(
|
||||
enum_description)
|
||||
google_dot_protobuf_dot_descriptor__pb2.EnumValueOptions.RegisterExtension(
|
||||
enum_value_description)
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'H\001\200\001\000'
|
||||
_EPROTOEXECUTIONSITE._serialized_start = 96
|
||||
_EPROTOEXECUTIONSITE._serialized_end = 189
|
||||
_NORESPONSE._serialized_start = 82
|
||||
_NORESPONSE._serialized_end = 94
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
Reference in New Issue
Block a user