-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conversations.externalInvitePermissions.set API support (#1330)
- Loading branch information
Showing
14 changed files
with
134 additions
and
5 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
json-logs/samples/api/conversations.externalInvitePermissions.set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ok": false, | ||
"error": "", | ||
"needed": "", | ||
"provided": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...k/api/methods/request/conversations/ConversationsExternalInvitePermissionsSetRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.slack.api.methods.request.conversations; | ||
|
||
import com.slack.api.methods.SlackApiRequest; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
/** | ||
* https://api.slack.com/methods/conversations.externalInvitePermissions.set | ||
*/ | ||
@Data | ||
@Builder | ||
public class ConversationsExternalInvitePermissionsSetRequest implements SlackApiRequest { | ||
|
||
/** | ||
* Authentication token bearing required scopes. | ||
* Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. | ||
*/ | ||
private String token; | ||
|
||
/** | ||
* Type of action to be taken: upgrade or downgrade | ||
* Value should be one of "upgrade" and "downgrade" | ||
*/ | ||
private String action; | ||
|
||
/** | ||
* The channel ID to change external invite permissions for | ||
*/ | ||
private String channel; | ||
|
||
/** | ||
* The encoded team ID of the target team. Must be in the specified channel. | ||
*/ | ||
private String targetTeam; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
...api/methods/response/conversations/ConversationsExternalInvitePermissionsSetResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.slack.api.methods.response.conversations; | ||
|
||
import com.slack.api.methods.SlackApiTextResponse; | ||
import com.slack.api.model.ResponseMetadata; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class ConversationsExternalInvitePermissionsSetResponse implements SlackApiTextResponse { | ||
|
||
private boolean ok; | ||
private String warning; | ||
private String error; | ||
private String needed; | ||
private String provided; | ||
private transient Map<String, List<String>> httpResponseHeaders; | ||
|
||
private ResponseMetadata responseMetadata; | ||
} |
Oops, something went wrong.