mirror of
https://github.com/danog/tl-schema.git
synced 2024-11-30 04:19:47 +01:00
Add layer 018
This commit is contained in:
parent
7ebed65437
commit
2fbf17d1bb
5
l018/README.md
Normal file
5
l018/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
### Version info
|
||||
App|Version/Hash|Date
|
||||
---|---|---
|
||||
TDesktop|30ae07308075d119b21060697231f99cbef8f89c|22.10.14
|
||||
Webogram|52e639cfa48f041834b13b93b8fb2ea3367db4e5|14.10.14
|
260
l018/schema.json
Normal file
260
l018/schema.json
Normal file
@ -0,0 +1,260 @@
|
||||
{
|
||||
"constructors": [
|
||||
{
|
||||
"id": "1879553105",
|
||||
"predicate": "userSelf",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "UserStatus"
|
||||
},
|
||||
{
|
||||
"name": "inactive",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-894214632",
|
||||
"predicate": "userContact",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "UserStatus"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-640891665",
|
||||
"predicate": "userRequest",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "UserStatus"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "123533224",
|
||||
"predicate": "userForeign",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
},
|
||||
{
|
||||
"name": "photo",
|
||||
"type": "UserProfilePhoto"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"type": "UserStatus"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-704549510",
|
||||
"predicate": "userDeleted",
|
||||
"params": [
|
||||
{
|
||||
"name": "id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-1489818765",
|
||||
"predicate": "updateUserName",
|
||||
"params": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "first_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "942527460",
|
||||
"predicate": "updateServiceNotification",
|
||||
"params": [
|
||||
{
|
||||
"name": "type",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "media",
|
||||
"type": "MessageMedia"
|
||||
},
|
||||
{
|
||||
"name": "popup",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
{
|
||||
"id": "655677548",
|
||||
"method": "account.checkUsername",
|
||||
"params": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"id": "1040964988",
|
||||
"method": "account.updateUsername",
|
||||
"params": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "479200567",
|
||||
"method": "invokeWithLayer18",
|
||||
"params": [
|
||||
{
|
||||
"name": "query",
|
||||
"type": "!X"
|
||||
}
|
||||
],
|
||||
"type": "X"
|
||||
}
|
||||
]
|
||||
}
|
18
l018/schema.tl
Normal file
18
l018/schema.tl
Normal file
@ -0,0 +1,18 @@
|
||||
---types---
|
||||
// userSelf#720535ec id:int first_name:string last_name:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
|
||||
userSelf#7007b451 id:int first_name:string last_name:string username:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
|
||||
// userContact#f2fb8319 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userContact#cab35e18 id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
// userRequest#22e8ceb0 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userRequest#d9ccc4ef id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
// userForeign#5214c89d id:int first_name:string last_name:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
|
||||
userForeign#75cf7a8 id:int first_name:string last_name:string username:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
|
||||
// userDeleted#b29ad7cc id:int first_name:string last_name:string = User;
|
||||
userDeleted#d6016d7a id:int first_name:string last_name:string username:string = User;
|
||||
// updateUserName#da22d9ad user_id:int first_name:string last_name:string = Update;
|
||||
updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update;
|
||||
updateServiceNotification#382dd3e4 type:string message:string media:MessageMedia popup:Bool = Update;
|
||||
---functions---
|
||||
account.checkUsername#2714d86c username:string = Bool;
|
||||
account.updateUsername#3e0bdd7c username:string = User;
|
||||
invokeWithLayer18#1c900537 query:!X = X;
|
92
schema.json
92
schema.json
@ -604,7 +604,7 @@
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "1912944108",
|
||||
"id": "1879553105",
|
||||
"predicate": "userSelf",
|
||||
"params": [
|
||||
{
|
||||
@ -619,6 +619,10 @@
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"type": "string"
|
||||
@ -639,7 +643,7 @@
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-218397927",
|
||||
"id": "-894214632",
|
||||
"predicate": "userContact",
|
||||
"params": [
|
||||
{
|
||||
@ -654,6 +658,10 @@
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
@ -674,7 +682,7 @@
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "585682608",
|
||||
"id": "-640891665",
|
||||
"predicate": "userRequest",
|
||||
"params": [
|
||||
{
|
||||
@ -689,6 +697,10 @@
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
@ -709,7 +721,7 @@
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "1377093789",
|
||||
"id": "123533224",
|
||||
"predicate": "userForeign",
|
||||
"params": [
|
||||
{
|
||||
@ -724,6 +736,10 @@
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "access_hash",
|
||||
"type": "long"
|
||||
@ -740,7 +756,7 @@
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "-1298475060",
|
||||
"id": "-704549510",
|
||||
"predicate": "userDeleted",
|
||||
"params": [
|
||||
{
|
||||
@ -754,6 +770,10 @@
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
@ -2354,7 +2374,7 @@
|
||||
"type": "Update"
|
||||
},
|
||||
{
|
||||
"id": "-635250259",
|
||||
"id": "-1489818765",
|
||||
"predicate": "updateUserName",
|
||||
"params": [
|
||||
{
|
||||
@ -2368,6 +2388,10 @@
|
||||
{
|
||||
"name": "last_name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
@ -4246,6 +4270,29 @@
|
||||
"predicate": "sendMessageChooseContactAction",
|
||||
"params": [],
|
||||
"type": "SendMessageAction"
|
||||
},
|
||||
{
|
||||
"id": "942527460",
|
||||
"predicate": "updateServiceNotification",
|
||||
"params": [
|
||||
{
|
||||
"name": "type",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "media",
|
||||
"type": "MessageMedia"
|
||||
},
|
||||
{
|
||||
"name": "popup",
|
||||
"type": "Bool"
|
||||
}
|
||||
],
|
||||
"type": "Update"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
@ -5952,6 +5999,39 @@
|
||||
}
|
||||
],
|
||||
"type": "X"
|
||||
},
|
||||
{
|
||||
"id": "655677548",
|
||||
"method": "account.checkUsername",
|
||||
"params": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "Bool"
|
||||
},
|
||||
{
|
||||
"id": "1040964988",
|
||||
"method": "account.updateUsername",
|
||||
"params": [
|
||||
{
|
||||
"name": "username",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"type": "User"
|
||||
},
|
||||
{
|
||||
"id": "479200567",
|
||||
"method": "invokeWithLayer18",
|
||||
"params": [
|
||||
{
|
||||
"name": "query",
|
||||
"type": "!X"
|
||||
}
|
||||
],
|
||||
"type": "X"
|
||||
}
|
||||
]
|
||||
}
|
16
schema.tl
16
schema.tl
@ -50,11 +50,11 @@ storage.fileWebp#1081464c = storage.FileType;
|
||||
fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation;
|
||||
fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation;
|
||||
userEmpty#200250ba id:int = User;
|
||||
userSelf#720535ec id:int first_name:string last_name:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
|
||||
userContact#f2fb8319 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userRequest#22e8ceb0 id:int first_name:string last_name:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userForeign#5214c89d id:int first_name:string last_name:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
|
||||
userDeleted#b29ad7cc id:int first_name:string last_name:string = User;
|
||||
userSelf#7007b451 id:int first_name:string last_name:string username:string phone:string photo:UserProfilePhoto status:UserStatus inactive:Bool = User;
|
||||
userContact#cab35e18 id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userRequest#d9ccc4ef id:int first_name:string last_name:string username:string access_hash:long phone:string photo:UserProfilePhoto status:UserStatus = User;
|
||||
userForeign#75cf7a8 id:int first_name:string last_name:string username:string access_hash:long photo:UserProfilePhoto status:UserStatus = User;
|
||||
userDeleted#d6016d7a id:int first_name:string last_name:string username:string = User;
|
||||
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
|
||||
userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
|
||||
userStatusEmpty#9d05049 = UserStatus;
|
||||
@ -157,7 +157,7 @@ updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update;
|
||||
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;
|
||||
updateChatParticipants#7761198 participants:ChatParticipants = Update;
|
||||
updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update;
|
||||
updateUserName#da22d9ad user_id:int first_name:string last_name:string = Update;
|
||||
updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update;
|
||||
updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update;
|
||||
updateContactRegistered#2575bbb9 user_id:int date:int = Update;
|
||||
updateContactLink#51a48a9a user_id:int my_link:contacts.MyLink foreign_link:contacts.ForeignLink = Update;
|
||||
@ -269,6 +269,7 @@ sendMessageUploadPhotoAction#990a3c1a = SendMessageAction;
|
||||
sendMessageUploadDocumentAction#8faee98e = SendMessageAction;
|
||||
sendMessageGeoLocationAction#176f8ba1 = SendMessageAction;
|
||||
sendMessageChooseContactAction#628cbc6f = SendMessageAction;
|
||||
updateServiceNotification#382dd3e4 type:string message:string media:MessageMedia popup:Bool = Update;
|
||||
---functions---
|
||||
invokeAfterMsg#cb9f372d msg_id:long query:!X = X;
|
||||
invokeAfterMsgs#3dc4b4f0 msg_ids:Vector<long> query:!X = X;
|
||||
@ -384,3 +385,6 @@ auth.sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool;
|
||||
invokeWithLayer16#cf5f0987 query:!X = X;
|
||||
messages.readMessageContents#354b5bc2 id:Vector<int> = Vector<int>;
|
||||
invokeWithLayer17#50858a19 query:!X = X;
|
||||
account.checkUsername#2714d86c username:string = Bool;
|
||||
account.updateUsername#3e0bdd7c username:string = User;
|
||||
invokeWithLayer18#1c900537 query:!X = X;
|
||||
|
Loading…
Reference in New Issue
Block a user