1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-30 04:19:47 +01:00

Add layer 020

This commit is contained in:
Viktor Oreshkin 2017-07-02 21:09:11 +03:00
parent 02d7c6c2e0
commit 064ea94ca4
5 changed files with 165 additions and 0 deletions

5
l020/README.md Normal file
View File

@ -0,0 +1,5 @@
### Version info
App|Version/Hash|Date
---|---|---
TDesktop|27de201bda4457860fd922f4213c7b340bad05c4|03.12.14
Webogram|7bc6e36ec6e955930cd0d1a7f2ebfe86b69b44c8|10.12.14

77
l020/schema.json Normal file
View File

@ -0,0 +1,77 @@
{
"constructors": [
{
"id": "-1527411636",
"predicate": "account.sentChangePhoneCode",
"params": [
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "send_call_timeout",
"type": "int"
}
],
"type": "account.SentChangePhoneCode"
},
{
"id": "314130811",
"predicate": "updateUserPhone",
"params": [
{
"name": "user_id",
"type": "int"
},
{
"name": "phone",
"type": "string"
}
],
"type": "Update"
}
],
"methods": [
{
"id": "200282908",
"method": "contacts.resolveUsername",
"params": [
{
"name": "username",
"type": "string"
}
],
"type": "User"
},
{
"id": "-1543001868",
"method": "account.sendChangePhoneCode",
"params": [
{
"name": "phone_number",
"type": "string"
}
],
"type": "account.SentChangePhoneCode"
},
{
"id": "1891839707",
"method": "account.changePhone",
"params": [
{
"name": "phone_number",
"type": "string"
},
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "phone_code",
"type": "string"
}
],
"type": "User"
}
]
}

7
l020/schema.tl Normal file
View File

@ -0,0 +1,7 @@
---types---
account.sentChangePhoneCode#a4f58c4c phone_code_hash:string send_call_timeout:int = account.SentChangePhoneCode;
updateUserPhone#12b9417b user_id:int phone:string = Update;
---functions---
contacts.resolveUsername#bf0131c username:string = User;
account.sendChangePhoneCode#a407a8f4 phone_number:string = account.SentChangePhoneCode;
account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

View File

@ -4456,6 +4456,36 @@
}
],
"type": "AccountDaysTTL"
},
{
"id": "-1527411636",
"predicate": "account.sentChangePhoneCode",
"params": [
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "send_call_timeout",
"type": "int"
}
],
"type": "account.SentChangePhoneCode"
},
{
"id": "314130811",
"predicate": "updateUserPhone",
"params": [
{
"name": "user_id",
"type": "int"
},
{
"name": "phone",
"type": "string"
}
],
"type": "Update"
}
],
"methods": [
@ -6066,6 +6096,47 @@
}
],
"type": "X"
},
{
"id": "200282908",
"method": "contacts.resolveUsername",
"params": [
{
"name": "username",
"type": "string"
}
],
"type": "User"
},
{
"id": "-1543001868",
"method": "account.sendChangePhoneCode",
"params": [
{
"name": "phone_number",
"type": "string"
}
],
"type": "account.SentChangePhoneCode"
},
{
"id": "1891839707",
"method": "account.changePhone",
"params": [
{
"name": "phone_number",
"type": "string"
},
{
"name": "phone_code_hash",
"type": "string"
},
{
"name": "phone_code",
"type": "string"
}
],
"type": "User"
}
]
}

View File

@ -290,6 +290,8 @@ privacyValueDisallowAll#8b73e763 = PrivacyRule;
privacyValueDisallowUsers#c7f49b7 users:Vector<int> = PrivacyRule;
account.privacyRules#554abb6f rules:Vector<PrivacyRule> users:Vector<User> = account.PrivacyRules;
accountDaysTTL#b8d0afdf days:int = AccountDaysTTL;
account.sentChangePhoneCode#a4f58c4c phone_code_hash:string send_call_timeout:int = account.SentChangePhoneCode;
updateUserPhone#12b9417b user_id:int phone:string = Update;
---functions---
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
@ -396,3 +398,6 @@ account.deleteAccount#418d4e0b reason:string = Bool;
account.getAccountTTL#8fc711d = AccountDaysTTL;
account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;
invokeWithLayer#da9b0d0d layer:int query:!X = X;
contacts.resolveUsername#bf0131c username:string = User;
account.sendChangePhoneCode#a407a8f4 phone_number:string = account.SentChangePhoneCode;
account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;