Skip to content

Commit 5fdf16b

Browse files
authored
Microsoft Teams - Updated SDK to the latest version (6.4.3) (#3842)
1 parent 58af7e4 commit 5fdf16b

File tree

39 files changed

+162
-229
lines changed

39 files changed

+162
-229
lines changed

plugins/microsoft_teams/.CHECKSUM

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
11
{
2-
"spec": "e5b1705c597ac7c4bfd4c299adcf1d5d",
3-
"manifest": "0de3aa339215bd2d192cc68f0b2305e5",
4-
"setup": "8d1fb841a1e95b276ddbd6034bfa903c",
2+
"spec": "b143cba823254cdb13dabac1677fd813",
3+
"manifest": "f1bdb671e93cd228cff3fee8524b9a3c",
4+
"setup": "799ff359e382c4d5268a7fa202cc2049",
55
"schemas": [
66
{
77
"identifier": "add_channel_to_team/schema.py",
8-
"hash": "91ce7f5d7ab851150a2150135fe1166c"
8+
"hash": "77e24ac01d838c9123877dc23fd4e8ee"
99
},
1010
{
1111
"identifier": "add_group_owner/schema.py",
12-
"hash": "b5d9b0bf4162b352a24889941797ebde"
12+
"hash": "16e088871a34a4d80365d23a5fff1825"
1313
},
1414
{
1515
"identifier": "add_member_to_channel/schema.py",
16-
"hash": "51c081342f71ddfae1f5a834790b81aa"
16+
"hash": "bc3cd2a55c6a307621ae7bc2759b98e4"
1717
},
1818
{
1919
"identifier": "add_member_to_team/schema.py",
20-
"hash": "fb5437fb63532dfbf1a1063550fdcd29"
20+
"hash": "daf644fdedf69570b4de8d3c8b5d4692"
2121
},
2222
{
2323
"identifier": "create_teams_chat/schema.py",
24-
"hash": "2bbfe5114efe4da9e76b86c9b74ec2a9"
24+
"hash": "624f57b6ee026fa69e74e6ba2ebf732b"
2525
},
2626
{
2727
"identifier": "create_teams_enabled_group/schema.py",
28-
"hash": "ab9c45b6ae90a6bf82a0a972dcc15486"
28+
"hash": "9d1a41cc30c7af5e5c61841b586f0a3b"
2929
},
3030
{
3131
"identifier": "delete_team/schema.py",
32-
"hash": "5e2538621c990e24c0c0695e4bb9be07"
32+
"hash": "75dd8243f40ba2243f43bee3d830c8f7"
3333
},
3434
{
3535
"identifier": "get_channels_for_team/schema.py",
36-
"hash": "058fa03f94e55344012942e4ebf6c3e8"
36+
"hash": "b55634a33858b858e593dc50b5e38f6d"
3737
},
3838
{
3939
"identifier": "get_message_in_channel/schema.py",
40-
"hash": "040fc296820003145c4cb45f5102f1b6"
40+
"hash": "b8b1956f659ff8070bf11ac27f20e1dc"
4141
},
4242
{
4343
"identifier": "get_message_in_chat/schema.py",
44-
"hash": "a6fee929978f205bac9d9c4b580d1aa0"
44+
"hash": "7084e6609fae0c1da35859d3507cf0e2"
4545
},
4646
{
4747
"identifier": "get_reply_list/schema.py",
48-
"hash": "c4a7595aab5b50e4c11dc9c52937adab"
48+
"hash": "d299f50370d5d1672687faf0defa92be"
4949
},
5050
{
5151
"identifier": "get_teams/schema.py",
52-
"hash": "99e38d074ebc52ee83d0cfcbfd87e0a9"
52+
"hash": "d4167388ba5726a8f13639844294cee5"
5353
},
5454
{
5555
"identifier": "list_messages_in_chat/schema.py",
56-
"hash": "247807d34c2ecd3c5fe68bd6b2087861"
56+
"hash": "b20a85b662826aabdd19c0fa6c55aecc"
5757
},
5858
{
5959
"identifier": "remove_channel_from_team/schema.py",
60-
"hash": "65019f58966233cb3e3a76def931197f"
60+
"hash": "02305968869d8a40c21c7e2176862ddc"
6161
},
6262
{
6363
"identifier": "remove_member_from_team/schema.py",
64-
"hash": "6a362f2b3115af6d16e0ea3eca53781c"
64+
"hash": "96cc61fcb20382a233761dd307290a55"
6565
},
6666
{
6767
"identifier": "send_html_message/schema.py",
68-
"hash": "cda9b2e48d700eed1457848740c473f5"
68+
"hash": "9c0c92551c309818340e997a0e7e2f0d"
6969
},
7070
{
7171
"identifier": "send_message/schema.py",
72-
"hash": "f2c190da940280f101ccad3f77a97ba1"
72+
"hash": "d2b2d55bcff15c6692b22175ddf9b609"
7373
},
7474
{
7575
"identifier": "send_message_by_guid/schema.py",
76-
"hash": "aca8f934ee15780a5917bfef50fd293e"
76+
"hash": "3963118963efd46377a4cb6afcfda7b0"
7777
},
7878
{
7979
"identifier": "connection/schema.py",
80-
"hash": "c74d11e11b5a1e0fa64e8a1ba91a6700"
80+
"hash": "266a4729e25b24d5b4d60d18d18500fb"
8181
},
8282
{
8383
"identifier": "new_message_received/schema.py",
84-
"hash": "46ff48b36b6cea4e3a4d27ef84fe9d77"
84+
"hash": "3477a956b10d18dc5e72c0ce60444c17"
8585
}
8686
]
8787
}

plugins/microsoft_teams/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.2 AS builder
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.3 AS builder
22

33
WORKDIR /python/src
44

@@ -11,7 +11,7 @@ ADD . /python/src
1111
RUN pip install .
1212
RUN pip uninstall -y setuptools
1313

14-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.2
14+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.3
1515

1616
LABEL organization=rapid7
1717
LABEL sdk=python

plugins/microsoft_teams/bin/icon_microsoft_teams

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from sys import argv
66

77
Name = "Microsoft Teams"
88
Vendor = "rapid7"
9-
Version = "7.0.4"
9+
Version = "7.0.5"
1010
Description = "[Microsoft Teams](https://products.office.com/en-us/microsoft-teams/group-chat-software) is a unified communications platform. The Microsoft Teams plugin allows you to send and trigger workflows on new messages. The plugin will also allow for teams management with the ability to add and remove teams, channels, and users. This plugin uses the [Microsoft Teams API](https://docs.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0) to interact with Microsoft Teams"
1111

1212

plugins/microsoft_teams/help.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ Example output:
12101210

12111211
# Version History
12121212

1213+
* 7.0.5 - Updated SDK to the latest version (6.4.3)
12131214
* 7.0.4 - Updated SDK to the latest version (6.4.2)
12141215
* 7.0.3 - Updated SDK to the latest version (6.3.10)
12151216
* 7.0.2 - Updated SDK to the latest version (6.3.3)

plugins/microsoft_teams/icon_microsoft_teams/actions/add_channel_to_team/schema.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class Output:
1919

2020

2121
class AddChannelToTeamInput(insightconnect_plugin_runtime.Input):
22-
schema = json.loads(
23-
r"""
22+
schema = json.loads(r"""
2423
{
2524
"type": "object",
2625
"title": "Variables",
@@ -63,16 +62,14 @@ class AddChannelToTeamInput(insightconnect_plugin_runtime.Input):
6362
],
6463
"definitions": {}
6564
}
66-
"""
67-
)
65+
""")
6866

6967
def __init__(self):
7068
super(self.__class__, self).__init__(self.schema)
7169

7270

7371
class AddChannelToTeamOutput(insightconnect_plugin_runtime.Output):
74-
schema = json.loads(
75-
r"""
72+
schema = json.loads(r"""
7673
{
7774
"type": "object",
7875
"title": "Variables",
@@ -89,8 +86,7 @@ class AddChannelToTeamOutput(insightconnect_plugin_runtime.Output):
8986
],
9087
"definitions": {}
9188
}
92-
"""
93-
)
89+
""")
9490

9591
def __init__(self):
9692
super(self.__class__, self).__init__(self.schema)

plugins/microsoft_teams/icon_microsoft_teams/actions/add_group_owner/schema.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Output:
1717

1818

1919
class AddGroupOwnerInput(insightconnect_plugin_runtime.Input):
20-
schema = json.loads(
21-
r"""
20+
schema = json.loads(r"""
2221
{
2322
"type": "object",
2423
"title": "Variables",
@@ -42,16 +41,14 @@ class AddGroupOwnerInput(insightconnect_plugin_runtime.Input):
4241
],
4342
"definitions": {}
4443
}
45-
"""
46-
)
44+
""")
4745

4846
def __init__(self):
4947
super(self.__class__, self).__init__(self.schema)
5048

5149

5250
class AddGroupOwnerOutput(insightconnect_plugin_runtime.Output):
53-
schema = json.loads(
54-
r"""
51+
schema = json.loads(r"""
5552
{
5653
"type": "object",
5754
"title": "Variables",
@@ -68,8 +65,7 @@ class AddGroupOwnerOutput(insightconnect_plugin_runtime.Output):
6865
],
6966
"definitions": {}
7067
}
71-
"""
72-
)
68+
""")
7369

7470
def __init__(self):
7571
super(self.__class__, self).__init__(self.schema)

plugins/microsoft_teams/icon_microsoft_teams/actions/add_member_to_channel/schema.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class Output:
1919

2020

2121
class AddMemberToChannelInput(insightconnect_plugin_runtime.Input):
22-
schema = json.loads(
23-
r"""
22+
schema = json.loads(r"""
2423
{
2524
"type": "object",
2625
"title": "Variables",
@@ -63,16 +62,14 @@ class AddMemberToChannelInput(insightconnect_plugin_runtime.Input):
6362
],
6463
"definitions": {}
6564
}
66-
"""
67-
)
65+
""")
6866

6967
def __init__(self):
7068
super(self.__class__, self).__init__(self.schema)
7169

7270

7371
class AddMemberToChannelOutput(insightconnect_plugin_runtime.Output):
74-
schema = json.loads(
75-
r"""
72+
schema = json.loads(r"""
7673
{
7774
"type": "object",
7875
"title": "Variables",
@@ -89,8 +86,7 @@ class AddMemberToChannelOutput(insightconnect_plugin_runtime.Output):
8986
],
9087
"definitions": {}
9188
}
92-
"""
93-
)
89+
""")
9490

9591
def __init__(self):
9692
super(self.__class__, self).__init__(self.schema)

plugins/microsoft_teams/icon_microsoft_teams/actions/add_member_to_team/schema.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Output:
1717

1818

1919
class AddMemberToTeamInput(insightconnect_plugin_runtime.Input):
20-
schema = json.loads(
21-
r"""
20+
schema = json.loads(r"""
2221
{
2322
"type": "object",
2423
"title": "Variables",
@@ -42,16 +41,14 @@ class AddMemberToTeamInput(insightconnect_plugin_runtime.Input):
4241
],
4342
"definitions": {}
4443
}
45-
"""
46-
)
44+
""")
4745

4846
def __init__(self):
4947
super(self.__class__, self).__init__(self.schema)
5048

5149

5250
class AddMemberToTeamOutput(insightconnect_plugin_runtime.Output):
53-
schema = json.loads(
54-
r"""
51+
schema = json.loads(r"""
5552
{
5653
"type": "object",
5754
"title": "Variables",
@@ -68,8 +65,7 @@ class AddMemberToTeamOutput(insightconnect_plugin_runtime.Output):
6865
],
6966
"definitions": {}
7067
}
71-
"""
72-
)
68+
""")
7369

7470
def __init__(self):
7571
super(self.__class__, self).__init__(self.schema)

plugins/microsoft_teams/icon_microsoft_teams/actions/create_teams_chat/action.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import insightconnect_plugin_runtime
22
from .schema import CreateTeamsChatInput, CreateTeamsChatOutput, Input, Output, Component
33

4-
54
# Custom imports below
65
from icon_microsoft_teams.util.komand_clean_with_nulls import remove_null_and_clean
76
from icon_microsoft_teams.util.teams_utils import create_chat

plugins/microsoft_teams/icon_microsoft_teams/actions/create_teams_chat/schema.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Output:
1717

1818

1919
class CreateTeamsChatInput(insightconnect_plugin_runtime.Input):
20-
schema = json.loads(
21-
r"""
20+
schema = json.loads(r"""
2221
{
2322
"type": "object",
2423
"title": "Variables",
@@ -71,16 +70,14 @@ class CreateTeamsChatInput(insightconnect_plugin_runtime.Input):
7170
}
7271
}
7372
}
74-
"""
75-
)
73+
""")
7674

7775
def __init__(self):
7876
super(self.__class__, self).__init__(self.schema)
7977

8078

8179
class CreateTeamsChatOutput(insightconnect_plugin_runtime.Output):
82-
schema = json.loads(
83-
r"""
80+
schema = json.loads(r"""
8481
{
8582
"type": "object",
8683
"title": "Variables",
@@ -143,8 +140,7 @@ class CreateTeamsChatOutput(insightconnect_plugin_runtime.Output):
143140
}
144141
}
145142
}
146-
"""
147-
)
143+
""")
148144

149145
def __init__(self):
150146
super(self.__class__, self).__init__(self.schema)

0 commit comments

Comments
 (0)