From af217af342982b0cbe44a451625fb3dcaf21e178 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 26 May 2019 22:45:26 +0530 Subject: [PATCH 01/22] Document 'D' direct channel Fix https://github.com/mattermost/mattermost-api-reference/issues/429. --- v4/source/channels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/channels.yaml b/v4/source/channels.yaml index fce1983a..48a6dbfe 100644 --- a/v4/source/channels.yaml +++ b/v4/source/channels.yaml @@ -37,7 +37,7 @@ description: Markdown-formatted text to display in the header of the channel type: type: string - description: "'O' for a public channel, 'P' for a private channel" + description: "'O' for a public channel, 'P' for a private channel, 'D' for a direct channel" responses: '201': description: Channel creation successful From 516baf2ffb50647d96f3d6da34d5dde927ae3cc0 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 29 May 2019 20:59:46 +0530 Subject: [PATCH 02/22] Document worksocket events --- v4/source/introduction.yaml | 170 ++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index dc4619fe..0dbe1c93 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -214,23 +214,193 @@ tags: The list of Mattermost WebSocket events are: - added_to_team + ``` + { + one: { + id: t('combined_system_message.added_to_team.one'), + defaultMessage: '{firstUser} **added to the team** by {actor}.', + }, + one_you: { + id: t('combined_system_message.added_to_team.one_you'), + defaultMessage: 'You were **added to the team** by {actor}.', + }, + two: { + id: t('combined_system_message.added_to_team.two'), + defaultMessage: '{firstUser} and {secondUser} **added to the team** by {actor}.', + }, + many_expanded: { + id: t('combined_system_message.added_to_team.many_expanded'), + defaultMessage: '{users} and {lastUser} were **added to the team** by {actor}.', + } + ``` - authentication_challenge + ``` + { + token: + } + ``` - channel_converted + ``` + + ``` - channel_created + ``` + { + 'broadcast': { + 'omit_users': None, + 'channel_id': '', + 'team_id': '', + 'user_id': '' + }, + 'data': { + 'channel_id': '', + 'team_id': '' + }, + 'event': 'channel_created', + 'seq': 9 + } + ``` - channel_deleted + ``` + { + 'event': 'WebsocketEvents.CHANNEL_DELETED', + 'data': { + 'channel_id': '' + }, + 'broadcast': { + 'omit_users': 'null', + 'user_id': '', + 'channel_id': '', + 'team_id': ''}, + 'seq': '' + + ``` - channel_member_updated - channel_updated + ``` + { + 'event': 'WebsocketEvents.CHANNEL_UPDATED', + 'data': { + 'channel': { + 'id': '', + 'create_at': '', + 'update_at': '', + 'delete_at': '', + 'team_id': '', + 'type': 'O', + 'display_name':'', + 'name': '', + 'header': 'header', + 'purpose': '', + 'last_post_at': '', + 'total_msg_count': '', + 'extra_update_at': '', + 'creator_id': '' + }, + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': '' + }, + 'seq': '' + } + ``` - channel_viewed + ``` + { + 'desc': '' + } + ``` - config_changed + ``` + { + 'info': '' + } + ``` - delete_team + ``` + { + 'teamname': '', + 'teamid': '', + 'state': '' + } + ``` - direct_added + ``` + { + 'channel_id': '' + } + ``` - emoji_added + ``` + { + 'event': 'WebsocketEvents.EMOJI_ADDED', + 'data': { + 'emoji': { + 'id': '', + 'create_at': '', + 'update_at': '', + 'delete_at': '', + 'creator_id': '', + 'name': 'name' + } + }, + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': '' + }, + 'seq': 'sequence_id' + } + ``` - ephemeral_message + ``` + { + 'message': '' + } + ``` - group_added - hello + ``` + { + 'message': '' + } + ``` - leave_team + ``` + 'one': { + 'id': '', + 'defaultMessage': '{firstUser} **left the team**.', + }, + 'one_you': { + 'id': t('combined_system_message.left_team.one_you'), + 'defaultMessage': 'You **left the team**.', + }, + 'two': { + 'id': t('combined_system_message.left_team.two'), + 'defaultMessage': '{firstUser} and {secondUser} **left the team**.', + }, + 'many_expanded': { + 'id': t('combined_system_message.left_team.many_expanded'), + 'defaultMessage': '{users} and {lastUser} **left the team**.', + }, + ``` - license_changed + ``` + { + 'type': 'GeneralTypes.CLIENT_LICENSE_RECEIVED', + 'data': 'msg.data.license' + } + ``` - memberrole_updated + ``` + { + 'type': 'TeamTypes.RECEIVED_MY_TEAM_MEMBER', + 'data': 'msg.data.member', + } + ``` - new_user - plugin_disabled - plugin_enabled From 6c7ff25bffb487c024ef847c6f4ce8f7a49511b5 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 11 Jun 2019 10:29:35 +0530 Subject: [PATCH 03/22] few minor review comments --- v4/source/introduction.yaml | 61 +++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 0dbe1c93..9c4d7496 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -216,22 +216,19 @@ tags: - added_to_team ``` { - one: { - id: t('combined_system_message.added_to_team.one'), - defaultMessage: '{firstUser} **added to the team** by {actor}.', + event: '', + data: { + team_id: '', + user_id: '' }, - one_you: { - id: t('combined_system_message.added_to_team.one_you'), - defaultMessage: 'You were **added to the team** by {actor}.', + broadcast: { + omit_users: null, + user_id: '', + channel_id: '', + team_id: '' }, - two: { - id: t('combined_system_message.added_to_team.two'), - defaultMessage: '{firstUser} and {secondUser} **added to the team** by {actor}.', - }, - many_expanded: { - id: t('combined_system_message.added_to_team.many_expanded'), - defaultMessage: '{users} and {lastUser} were **added to the team** by {actor}.', - } + seq: '' + } ``` - authentication_challenge ``` @@ -263,7 +260,7 @@ tags: - channel_deleted ``` { - 'event': 'WebsocketEvents.CHANNEL_DELETED', + 'event': '', 'data': { 'channel_id': '' }, @@ -279,7 +276,7 @@ tags: - channel_updated ``` { - 'event': 'WebsocketEvents.CHANNEL_UPDATED', + 'event': '', 'data': { 'channel': { 'id': '', @@ -335,7 +332,7 @@ tags: - emoji_added ``` { - 'event': 'WebsocketEvents.EMOJI_ADDED', + 'event': '', 'data': { 'emoji': { 'id': '', @@ -370,22 +367,20 @@ tags: ``` - leave_team ``` - 'one': { - 'id': '', - 'defaultMessage': '{firstUser} **left the team**.', - }, - 'one_you': { - 'id': t('combined_system_message.left_team.one_you'), - 'defaultMessage': 'You **left the team**.', - }, - 'two': { - 'id': t('combined_system_message.left_team.two'), - 'defaultMessage': '{firstUser} and {secondUser} **left the team**.', - }, - 'many_expanded': { - 'id': t('combined_system_message.left_team.many_expanded'), - 'defaultMessage': '{users} and {lastUser} **left the team**.', - }, + { + event: .LEAVE_TEAM, + data: { + team_id: '', + user_id: '' + }, + broadcast: { + omit_users: null, + user_id: '', + channel_id: '', + team_id: '' + }, + seq: '' + } ``` - license_changed ``` From c3255441cd9c1399fdbc4324473802cf12a5556f Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 23 Jun 2019 22:06:00 +0530 Subject: [PATCH 04/22] Direct channels line deletion https://github.com/mattermost/mattermost-api-reference/pull/448#discussion_r295786326 --- v4/source/channels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/channels.yaml b/v4/source/channels.yaml index 48a6dbfe..fce1983a 100644 --- a/v4/source/channels.yaml +++ b/v4/source/channels.yaml @@ -37,7 +37,7 @@ description: Markdown-formatted text to display in the header of the channel type: type: string - description: "'O' for a public channel, 'P' for a private channel, 'D' for a direct channel" + description: "'O' for a public channel, 'P' for a private channel" responses: '201': description: Channel creation successful From cef432f97b01d1feb80edecbea1177e639c119ee Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 23 Jun 2019 22:10:16 +0530 Subject: [PATCH 05/22] Fix event names https://github.com/mattermost/mattermost-api-reference/pull/448#discussion_r295785410 --- v4/source/introduction.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 9c4d7496..d670b936 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -216,7 +216,7 @@ tags: - added_to_team ``` { - event: '', + event: 'added_to_team', data: { team_id: '', user_id: '' @@ -235,10 +235,6 @@ tags: { token: } - ``` - - channel_converted - ``` - ``` - channel_created ``` @@ -260,7 +256,7 @@ tags: - channel_deleted ``` { - 'event': '', + 'event': 'channel_deleted', 'data': { 'channel_id': '' }, @@ -272,11 +268,10 @@ tags: 'seq': '' ``` - - channel_member_updated - channel_updated ``` { - 'event': '', + 'event': 'channel_updated', 'data': { 'channel': { 'id': '', @@ -332,7 +327,7 @@ tags: - emoji_added ``` { - 'event': '', + 'event': 'emoji_added', 'data': { 'emoji': { 'id': '', From 232a6da780c8ab63dce40446a5bea9392803ff6d Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 25 Jun 2019 18:32:23 +0530 Subject: [PATCH 06/22] Use as val https://github.com/mattermost/mattermost-api-reference/pull/448#discussion_r296811918 --- v4/source/introduction.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index d670b936..b2e2b11f 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -250,7 +250,7 @@ tags: 'team_id': '' }, 'event': 'channel_created', - 'seq': 9 + 'seq': '' } ``` - channel_deleted @@ -295,7 +295,7 @@ tags: 'channel_id': '', 'team_id': '' }, - 'seq': '' + 'seq': '' } ``` - channel_viewed @@ -344,7 +344,7 @@ tags: 'channel_id': '', 'team_id': '' }, - 'seq': 'sequence_id' + 'seq': '' } ``` - ephemeral_message @@ -374,7 +374,7 @@ tags: channel_id: '', team_id: '' }, - seq: '' + seq: '' } ``` - license_changed From 899ed6ea2e89a62b416398886470b1f0b781f5f7 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 25 Jun 2019 18:38:09 +0530 Subject: [PATCH 07/22] Minor fixes https://github.com/mattermost/mattermost-api-reference/pull/448#discussion_r296812307 --- v4/source/introduction.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index b2e2b11f..411b31c5 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -239,18 +239,18 @@ tags: - channel_created ``` { + 'event': 'channel_created', + 'seq' : '', + 'data' : { + 'channel_id': '', + 'team_id' : '' + }, 'broadcast': { 'omit_users': None, 'channel_id': '', 'team_id': '', 'user_id': '' - }, - 'data': { - 'channel_id': '', - 'team_id': '' - }, - 'event': 'channel_created', - 'seq': '' + } } ``` - channel_deleted @@ -260,12 +260,12 @@ tags: 'data': { 'channel_id': '' }, - 'broadcast': { - 'omit_users': 'null', - 'user_id': '', - 'channel_id': '', - 'team_id': ''}, - 'seq': '' + 'broadcast': { + 'omit_users': 'null', + 'user_id': '', + 'channel_id': '', + 'team_id': ''}, + 'seq': '' ``` - channel_updated @@ -363,7 +363,7 @@ tags: - leave_team ``` { - event: .LEAVE_TEAM, + event: 'leave_team', data: { team_id: '', user_id: '' From b8eb9ec57b6c42a4ef2959c13c87b31c6b64119d Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 3 Jul 2019 03:13:29 +0530 Subject: [PATCH 08/22] Few Payload fixes --- v4/source/introduction.yaml | 38 +++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 411b31c5..55e438f8 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -231,11 +231,6 @@ tags: } ``` - authentication_challenge - ``` - { - token: - } - ``` - channel_created ``` { @@ -301,13 +296,30 @@ tags: - channel_viewed ``` { - 'desc': '' + 'event': 'channel_viewed', + 'data': { + 'channel_id': '' + }, + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': '' + }, + 'seq': '' } ``` - config_changed ``` { - 'info': '' + 'info': '', + 'event': 'config_changed', + 'data': { + 'config': { + 'EnableCustomEmoji': '', + 'EnableLinkPreviews': '' + } + } } ``` - delete_team @@ -321,7 +333,17 @@ tags: - direct_added ``` { - 'channel_id': '' + 'event': '', + 'data': { + 'teammate_id': '' + }, + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': ''}, + 'seq': '' + } } ``` - emoji_added From 8256c087215d6fc928ef6042d0acb5d7ae84dd78 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 7 Jul 2019 15:12:08 +0530 Subject: [PATCH 09/22] Fix omit_users field value --- v4/source/introduction.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 55e438f8..9eb9d53f 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -241,7 +241,7 @@ tags: 'team_id' : '' }, 'broadcast': { - 'omit_users': None, + 'omit_users': null, 'channel_id': '', 'team_id': '', 'user_id': '' @@ -256,7 +256,7 @@ tags: 'channel_id': '' }, 'broadcast': { - 'omit_users': 'null', + 'omit_users': null, 'user_id': '', 'channel_id': '', 'team_id': ''}, From 1ce92897cac5dfef43d88db95c35c5d45f22b04b Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 23 Jul 2019 06:05:13 +0530 Subject: [PATCH 10/22] Add quotes --- v4/source/introduction.yaml | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 9eb9d53f..0d646f19 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -216,18 +216,18 @@ tags: - added_to_team ``` { - event: 'added_to_team', - data: { - team_id: '', - user_id: '' + 'event': 'added_to_team', + 'data': { + 'team_id': '', + 'user_id': '' }, - broadcast: { - omit_users: null, - user_id: '', - channel_id: '', - team_id: '' + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': '' }, - seq: '' + 'seq': '' } ``` - authentication_challenge @@ -385,18 +385,18 @@ tags: - leave_team ``` { - event: 'leave_team', - data: { - team_id: '', - user_id: '' + 'event': 'leave_team', + 'data': { + 'team_id': '', + 'user_id': '' }, - broadcast: { - omit_users: null, - user_id: '', - channel_id: '', - team_id: '' + 'broadcast': { + 'omit_users': null, + 'user_id': '', + 'channel_id': '', + 'team_id': '' }, - seq: '' + 'seq': '' } ``` - license_changed From 127f22326b97a631b6a22565d5a706e6d33197ee Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 23 Jul 2019 06:10:25 +0530 Subject: [PATCH 11/22] Minor ordering comment fix --- v4/source/introduction.yaml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 0d646f19..eaf8ccc9 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -217,6 +217,7 @@ tags: ``` { 'event': 'added_to_team', + 'seq': '' 'data': { 'team_id': '', 'user_id': '' @@ -226,8 +227,7 @@ tags: 'user_id': '', 'channel_id': '', 'team_id': '' - }, - 'seq': '' + } } ``` - authentication_challenge @@ -252,6 +252,7 @@ tags: ``` { 'event': 'channel_deleted', + 'seq': '' 'data': { 'channel_id': '' }, @@ -259,14 +260,15 @@ tags: 'omit_users': null, 'user_id': '', 'channel_id': '', - 'team_id': ''}, - 'seq': '' + 'team_id': '' + }, ``` - channel_updated ``` { 'event': 'channel_updated', + 'seq': '' 'data': { 'channel': { 'id': '', @@ -290,13 +292,13 @@ tags: 'channel_id': '', 'team_id': '' }, - 'seq': '' - } + } ``` - channel_viewed ``` { 'event': 'channel_viewed', + 'seq': '' 'data': { 'channel_id': '' }, @@ -305,8 +307,7 @@ tags: 'user_id': '', 'channel_id': '', 'team_id': '' - }, - 'seq': '' + } } ``` - config_changed @@ -334,6 +335,7 @@ tags: ``` { 'event': '', + 'seq': '' 'data': { 'teammate_id': '' }, @@ -341,8 +343,7 @@ tags: 'omit_users': null, 'user_id': '', 'channel_id': '', - 'team_id': ''}, - 'seq': '' + 'team_id': '' } } ``` @@ -350,6 +351,7 @@ tags: ``` { 'event': 'emoji_added', + 'seq': '' 'data': { 'emoji': { 'id': '', @@ -365,8 +367,7 @@ tags: 'user_id': '', 'channel_id': '', 'team_id': '' - }, - 'seq': '' + } } ``` - ephemeral_message @@ -386,6 +387,7 @@ tags: ``` { 'event': 'leave_team', + 'seq': '' 'data': { 'team_id': '', 'user_id': '' @@ -395,8 +397,7 @@ tags: 'user_id': '', 'channel_id': '', 'team_id': '' - }, - 'seq': '' + } } ``` - license_changed From b9760a4439679cc32e6cfab8263484cad59bc870 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Tue, 23 Jul 2019 06:14:45 +0530 Subject: [PATCH 12/22] Remove info field --- v4/source/introduction.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index eaf8ccc9..ca331f96 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -313,7 +313,6 @@ tags: - config_changed ``` { - 'info': '', 'event': 'config_changed', 'data': { 'config': { From 8ea73c2d1ddaf615e82afbd450101d79f71c767b Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Thu, 25 Jul 2019 01:25:43 +0530 Subject: [PATCH 13/22] Minor review enhancements --- v4/source/introduction.yaml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index ca331f96..3de50395 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -370,18 +370,8 @@ tags: } ``` - ephemeral_message - ``` - { - 'message': '' - } - ``` - group_added - hello - ``` - { - 'message': '' - } - ``` - leave_team ``` { @@ -402,15 +392,12 @@ tags: - license_changed ``` { - 'type': 'GeneralTypes.CLIENT_LICENSE_RECEIVED', - 'data': 'msg.data.license' - } - ``` - - memberrole_updated - ``` - { - 'type': 'TeamTypes.RECEIVED_MY_TEAM_MEMBER', - 'data': 'msg.data.member', + 'type': 'LICENSE_CHANGED', + 'data': { + 'license': { + 'IsLicensed': '' + } + } } ``` - new_user @@ -425,7 +412,8 @@ tags: - preferences_deleted - reaction_added - reaction_removed - - response + - r + esponse - role_updated - status_change - typing From be41ffdc2e6024452789109267ca97a2015d6595 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:08:03 +0530 Subject: [PATCH 14/22] Add comma Co-Authored-By: Joram Wilander --- v4/source/introduction.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 3de50395..159bf9a3 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -376,7 +376,7 @@ tags: ``` { 'event': 'leave_team', - 'seq': '' + 'seq': '', 'data': { 'team_id': '', 'user_id': '' From 60749eb98a9fda0eb52e12ecd4aa4cb5853e28ea Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:08:15 +0530 Subject: [PATCH 15/22] Add comma Co-Authored-By: Joram Wilander --- v4/source/introduction.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 159bf9a3..8a2ce527 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -350,7 +350,7 @@ tags: ``` { 'event': 'emoji_added', - 'seq': '' + 'seq': '', 'data': { 'emoji': { 'id': '', From ab145bed191e26761ffd017c684b3567e10d4562 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:15:44 +0530 Subject: [PATCH 16/22] Remote quotes around --- v4/source/introduction.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 8a2ce527..fdce1f16 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -217,7 +217,7 @@ tags: ``` { 'event': 'added_to_team', - 'seq': '' + 'seq': 'data': { 'team_id': '', 'user_id': '' From 88df83721f8269407b9e6ee60960add106eff331 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:21:22 +0530 Subject: [PATCH 17/22] Remove the quotes around seq_id --- v4/source/introduction.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index fdce1f16..d4d26815 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -268,7 +268,7 @@ tags: ``` { 'event': 'channel_updated', - 'seq': '' + 'seq': 'data': { 'channel': { 'id': '', @@ -288,7 +288,7 @@ tags: }, 'broadcast': { 'omit_users': null, - 'user_id': '', + 'user_id': '', 'channel_id': '', 'team_id': '' }, @@ -298,7 +298,7 @@ tags: ``` { 'event': 'channel_viewed', - 'seq': '' + 'seq': 'data': { 'channel_id': '' }, @@ -334,7 +334,7 @@ tags: ``` { 'event': '', - 'seq': '' + 'seq': 'data': { 'teammate_id': '' }, @@ -350,7 +350,7 @@ tags: ``` { 'event': 'emoji_added', - 'seq': '', + 'seq': , 'data': { 'emoji': { 'id': '', @@ -376,7 +376,7 @@ tags: ``` { 'event': 'leave_team', - 'seq': '', + 'seq': , 'data': { 'team_id': '', 'user_id': '' From 70a3d08a31bcfe92374eb8294ff1497a021350bf Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:25:47 +0530 Subject: [PATCH 18/22] Remove delete for now Separate PR --- v4/source/introduction.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index d4d26815..637892dc 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -322,14 +322,6 @@ tags: } } ``` - - delete_team - ``` - { - 'teamname': '', - 'teamid': '', - 'state': '' - } - ``` - direct_added ``` { From b3cfb331774695632254dbb65a85976dd46770b2 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:43:17 +0530 Subject: [PATCH 19/22] Remove newline --- v4/source/introduction.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 637892dc..9f73b850 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -404,8 +404,7 @@ tags: - preferences_deleted - reaction_added - reaction_removed - - r - esponse + - response - role_updated - status_change - typing From 1d188adcd0610f5adce50a51ab4d9abbfb4a017a Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:47:10 +0530 Subject: [PATCH 20/22] Add user_id as value --- v4/source/introduction.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 9f73b850..3d86bcb1 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -284,7 +284,7 @@ tags: 'last_post_at': '', 'total_msg_count': '', 'extra_update_at': '', - 'creator_id': '' + 'creator_id': '' }, 'broadcast': { 'omit_users': null, @@ -349,7 +349,7 @@ tags: 'create_at': '', 'update_at': '', 'delete_at': '', - 'creator_id': '', + 'creator_id': '', 'name': 'name' } }, From bb454b9986bc75e3eac958bf62bfec869b994f7b Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:48:45 +0530 Subject: [PATCH 21/22] missed comma --- v4/source/introduction.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 3d86bcb1..315a59bc 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -326,7 +326,7 @@ tags: ``` { 'event': '', - 'seq': + 'seq': , 'data': { 'teammate_id': '' }, From ae49bdc07b242328538786229d08472b83eea259 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Wed, 31 Jul 2019 18:58:44 +0530 Subject: [PATCH 22/22] seq_id and comma issues --- v4/source/introduction.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/v4/source/introduction.yaml b/v4/source/introduction.yaml index 0c51caa8..8d8b96a5 100644 --- a/v4/source/introduction.yaml +++ b/v4/source/introduction.yaml @@ -217,7 +217,7 @@ tags: ``` { 'event': 'added_to_team', - 'seq': + 'seq': , 'data': { 'team_id': '', 'user_id': '' @@ -235,7 +235,7 @@ tags: ``` { 'event': 'channel_created', - 'seq' : '', + 'seq' : , 'data' : { 'channel_id': '', 'team_id' : '' @@ -252,7 +252,7 @@ tags: ``` { 'event': 'channel_deleted', - 'seq': '' + 'seq': , 'data': { 'channel_id': '' }, @@ -268,7 +268,7 @@ tags: ``` { 'event': 'channel_updated', - 'seq': + 'seq': , 'data': { 'channel': { 'id': '', @@ -298,7 +298,7 @@ tags: ``` { 'event': 'channel_viewed', - 'seq': + 'seq': , 'data': { 'channel_id': '' },