Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
4267a5d7
Commit
4267a5d7
authored
Jul 26, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed redundant permissions, api url fixed
parent
e2be8dda
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
169 deletions
+2
-169
__init__.py
bots/__init__.py
+0
-8
teams_app_generator.py
utils/teams_app_generator.py
+2
-161
No files found.
bots/__init__.py
View file @
4267a5d7
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from
.messaging_extension_action_preview_bot
import
(
TeamsMessagingExtensionsActionPreviewBot
,
)
__all__
=
[
"TeamsMessagingExtensionsActionPreviewBot"
]
utils/teams_app_generator.py
View file @
4267a5d7
...
...
@@ -55,26 +55,10 @@ manifest = {
"orgWide"
:
[],
"resourceSpecific"
:
[
{
"name"
:
"Channel.Create.Group"
,
"type"
:
"Application"
},
{
"name"
:
"Channel.Delete.Group"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeeting.ReadBasic.Group"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeetingArtifact.Read.Group"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeetingParticipant.Read.Group"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMessage.Read.Group"
,
"type"
:
"Application"
},
...
...
@@ -103,62 +87,6 @@ manifest = {
"type"
:
"Application"
},
{
"name"
:
"TeamsAppInstallation.Read.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsActivity.Send.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamSettings.ReadWrite.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Create.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Delete.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Read.Group"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.ReadWrite.Group"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeeting.ReadBasic.Group"
,
"type"
:
"Delegated"
},
{
"name"
:
"ChannelMeetingParticipant.Read.Group"
,
"type"
:
"Delegated"
},
{
"name"
:
"InAppPurchase.Allow.Group"
,
"type"
:
"Delegated"
},
{
"name"
:
"Calls.AccessMedia.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"Calls.JoinGroupCalls.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeetingNotification.Send.Group"
,
"type"
:
"Application"
},
{
"name"
:
"Chat.Manage.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"ChatMember.Read.Chat"
,
"type"
:
"Application"
},
...
...
@@ -167,96 +95,8 @@ manifest = {
"type"
:
"Application"
},
{
"name"
:
"ChatMessageReadReceipt.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"ChatSettings.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"ChatSettings.ReadWrite.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"OnlineMeeting.ReadBasic.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"OnlineMeetingArtifact.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"OnlineMeetingNotification.Send.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsAppInstallation.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsActivity.Send.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Create.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Delete.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"TeamsTab.ReadWrite.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"OnlineMeetingParticipant.Read.Chat"
,
"type"
:
"Application"
},
{
"name"
:
"ChannelMeetingIncomingAudio.Detect.Group"
,
"type"
:
"Delegated"
},
{
"name"
:
"InAppPurchase.Allow.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"LiveShareSession.ReadWrite.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"LiveShareSession.ReadWrite.Group"
,
"type"
:
"Delegated"
},
{
"name"
:
"OnlineMeeting.ReadBasic.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"OnlineMeetingIncomingAudio.Detect.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"OnlineMeetingParticipant.Read.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"OnlineMeetingParticipant.ToggleIncomingAudio.Chat"
,
"type"
:
"Delegated"
},
{
"name"
:
"CameraStream.Read.User"
,
"type"
:
"Delegated"
},
{
"name"
:
"InAppPurchase.Allow.User"
,
"type"
:
"Delegated"
}
]
}
...
...
@@ -310,8 +150,9 @@ class TeamsAppGenerator:
supportsFiles
=
False
)
manifest
.
update
(
dict
(
bots
=
[
bot
,
]))
# WebAppInfo
default_domain
=
urlparse
(
TaskModuleConfig
.
URL
)
.
hostname
web_app_info
=
dict
(
id
=
AppConfig
.
CLIENT_ID
,
resource
=
f
"api://{
TaskModuleConfig.MARS
}/"
resource
=
f
"api://{
default_domain
}/"
f
"botid-{AppConfig.CLIENT_ID}"
)
manifest
.
update
(
dict
(
webApplicationInfo
=
web_app_info
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment