Skip to content

Commit f701ee4

Browse files
committed
Update scheme to Layer 81
1 parent 7f11f85 commit f701ee4

File tree

1 file changed

+74
-8
lines changed

1 file changed

+74
-8
lines changed

compiler/api/source/main_api.tl

Lines changed: 74 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ inputPhoto#fb95c6c4 id:long access_hash:long = InputPhoto;
6060
inputFileLocation#14637196 volume_id:long local_id:int secret:long = InputFileLocation;
6161
inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation;
6262
inputDocumentFileLocation#430f0724 id:long access_hash:long version:int = InputFileLocation;
63+
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
6364

6465
inputAppEvent#770656a8 time:double type:string peer:long data:string = InputAppEvent;
6566

@@ -149,6 +150,8 @@ messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDis
149150
messageActionScreenshotTaken#4792929b = MessageAction;
150151
messageActionCustomAction#fae69f56 message:string = MessageAction;
151152
messageActionBotAllowed#abe9affe domain:string = MessageAction;
153+
messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction;
154+
messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction;
152155

153156
dialog#e4def5db flags:# pinned:flags.2?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog;
154157

@@ -164,7 +167,7 @@ geoPoint#2049d70c long:double lat:double = GeoPoint;
164167

165168
auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone;
166169

167-
auth.sentCode#5e002502 flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
170+
auth.sentCode#38faab5f flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int terms_of_service:flags.3?help.TermsOfService = auth.SentCode;
168171

169172
auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization;
170173

@@ -452,12 +455,12 @@ authorization#7bf2e6f6 hash:long flags:int device_model:string platform:string s
452455

453456
account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations;
454457

455-
account.noPassword#96dabc18 new_salt:bytes email_unconfirmed_pattern:string = account.Password;
456-
account.password#7c18141c current_salt:bytes new_salt:bytes hint:string has_recovery:Bool email_unconfirmed_pattern:string = account.Password;
458+
account.noPassword#5ea182f6 new_salt:bytes new_secure_salt:bytes secure_random:bytes email_unconfirmed_pattern:string = account.Password;
459+
account.password#ca39b447 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true current_salt:bytes new_salt:bytes new_secure_salt:bytes secure_random:bytes hint:string email_unconfirmed_pattern:string = account.Password;
457460

458-
account.passwordSettings#b7b72ab3 email:string = account.PasswordSettings;
461+
account.passwordSettings#7bd9c3f1 email:string secure_salt:bytes secure_secret:bytes secure_secret_id:long = account.PasswordSettings;
459462

460-
account.passwordInputSettings#86916deb flags:# new_salt:flags.0?bytes new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string = account.PasswordInputSettings;
463+
account.passwordInputSettings#21ffa60d flags:# new_salt:flags.0?bytes new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_salt:flags.2?bytes new_secure_secret:flags.2?bytes new_secure_secret_id:flags.2?long = account.PasswordInputSettings;
461464

462465
auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery;
463466

@@ -545,7 +548,7 @@ channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants;
545548

546549
channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector<User> = channels.ChannelParticipant;
547550

548-
help.termsOfService#f1ee3e90 text:string = help.TermsOfService;
551+
help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService;
549552

550553
foundGif#162ecc1f url:string thumb_url:string content_url:string content_type:string w:int h:int = FoundGif;
551554
foundGifCached#9c750409 url:string photo:Photo document:Document = FoundGif;
@@ -830,6 +833,56 @@ inputClientProxy#75588b3f address:string port:int = InputClientProxy;
830833
help.proxyDataEmpty#e09e1fb8 expires:int = help.ProxyData;
831834
help.proxyDataPromo#2bf7ee23 expires:int peer:Peer chats:Vector<Chat> users:Vector<User> = help.ProxyData;
832835

836+
help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;
837+
help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;
838+
839+
inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;
840+
inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;
841+
842+
secureFileEmpty#64199744 = SecureFile;
843+
secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile;
844+
845+
secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;
846+
847+
securePlainPhone#7d6099dd phone:string = SecurePlainData;
848+
securePlainEmail#21ec5a5f email:string = SecurePlainData;
849+
850+
secureValueTypePersonalDetails#9d2a81e3 = SecureValueType;
851+
secureValueTypePassport#3dac6a00 = SecureValueType;
852+
secureValueTypeDriverLicense#6e425c4 = SecureValueType;
853+
secureValueTypeIdentityCard#a0d0744b = SecureValueType;
854+
secureValueTypeInternalPassport#99a48f23 = SecureValueType;
855+
secureValueTypeAddress#cbe31e26 = SecureValueType;
856+
secureValueTypeUtilityBill#fc36954e = SecureValueType;
857+
secureValueTypeBankStatement#89137c0d = SecureValueType;
858+
secureValueTypeRentalAgreement#8b883488 = SecureValueType;
859+
secureValueTypePassportRegistration#99e3806a = SecureValueType;
860+
secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType;
861+
secureValueTypePhone#b320aadb = SecureValueType;
862+
secureValueTypeEmail#8e3ca7ee = SecureValueType;
863+
864+
secureValue#b4b4b699 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;
865+
866+
inputSecureValue#67872e8 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue;
867+
868+
secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash;
869+
870+
secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError;
871+
secureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError;
872+
secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError;
873+
secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError;
874+
secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError;
875+
secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError;
876+
877+
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;
878+
879+
account.authorizationForm#cb976d53 flags:# selfie_required:flags.1?true required_types:Vector<SecureValueType> values:Vector<SecureValue> errors:Vector<SecureValueError> users:Vector<User> privacy_policy_url:flags.0?string = account.AuthorizationForm;
880+
881+
account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;
882+
883+
help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo;
884+
help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector<MessageEntity> = help.DeepLinkInfo;
885+
833886
---functions---
834887

835888
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
@@ -885,9 +938,20 @@ account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPass
885938
account.getWebAuthorizations#182e6d6f = account.WebAuthorizations;
886939
account.resetWebAuthorization#2d01b9ef hash:long = Bool;
887940
account.resetWebAuthorizations#682d2594 = Bool;
941+
account.getAllSecureValues#b288bc7d = Vector<SecureValue>;
942+
account.getSecureValue#73665bc2 types:Vector<SecureValueType> = Vector<SecureValue>;
943+
account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue;
944+
account.deleteSecureValue#b880bc4b types:Vector<SecureValueType> = Bool;
945+
account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm;
946+
account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool;
947+
account.sendVerifyPhoneCode#823380b4 flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode;
948+
account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;
949+
account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode;
950+
account.verifyEmail#ecba39db email:string code:string = Bool;
888951

889952
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
890953
users.getFullUser#ca30a5b1 id:InputUser = UserFull;
954+
users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;
891955

892956
contacts.getStatuses#c4a353ee = Vector<ContactStatus>;
893957
contacts.getContacts#c023849f hash:int = contacts.Contacts;
@@ -1027,11 +1091,13 @@ help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool;
10271091
help.getInviteText#4d392343 = help.InviteText;
10281092
help.getSupport#9cdf08cd = help.Support;
10291093
help.getAppChangelog#9010ef6f prev_app_version:string = Updates;
1030-
help.getTermsOfService#8e59b7e7 country_iso2:string = help.TermsOfService;
10311094
help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;
10321095
help.getCdnConfig#52029342 = CdnConfig;
10331096
help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls;
10341097
help.getProxyData#3d7758e1 = help.ProxyData;
1098+
help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;
1099+
help.acceptTermsOfService#ee72f79a id:DataJSON = Bool;
1100+
help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo;
10351101

10361102
channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;
10371103
channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector<int> = messages.AffectedMessages;
@@ -1095,4 +1161,4 @@ langpack.getStrings#2e1ee318 lang_code:string keys:Vector<string> = Vector<LangP
10951161
langpack.getDifference#b2e4d7d from_version:int = LangPackDifference;
10961162
langpack.getLanguages#800fd57d = Vector<LangPackLanguage>;
10971163

1098-
// LAYER 79
1164+
// LAYER 81

0 commit comments

Comments
 (0)