lex-microsoft_teams 0.6.44 → 0.6.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a1c2dc593a74891fd6a394c6da088eeea72e5c44ec5a13f412dfafe9ce43999
|
|
4
|
+
data.tar.gz: bd6da610d115de11d6d8196a2f8123044e77089fe2d8ad8ed9b8f27a4a69d4d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f90c34c0164a9350f5a5d8b345b508c94fcc45ebc4985c52bf2bef6f42582b2d58bca2681810aed7226f65d6a1f74060bdf842e6587b21614bb7c2cc18d9e7e2
|
|
7
|
+
data.tar.gz: 5a5c0f04323cd85c10cec26cf259d96c2f0770064e407e760847a412e0e1076da7afc9aabc48bc793c5d7e321393c3affb267d7256f81539e5ddffd1f1db6bb8
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.45] - 2026-04-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `Runners::Meetings#resolve_meeting` — accepts `chat_thread_id:` (e.g., `19:meeting_...@thread.v2`) or `join_url:` (e.g., `https://teams.microsoft.com/meet/CODE`). When given a chat thread ID, fetches the chat to extract the `joinWebUrl` from `onlineMeetingInfo`, then resolves the actual meeting object via `get_meeting_by_join_url`. Bridges the gap between meeting URLs and Graph API meeting endpoints which require the real meeting ID
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `Runners::AiInsights#list_call_records` — removed `$top` query parameter not supported by the `communications/callRecords` Graph API endpoint (`Query option 'Top' is not allowed`)
|
|
12
|
+
|
|
5
13
|
## [0.6.44] - 2026-04-23
|
|
6
14
|
|
|
7
15
|
### Fixed
|
|
@@ -29,8 +29,8 @@ module Legion
|
|
|
29
29
|
{ result: response.body }
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def list_call_records(
|
|
33
|
-
response = graph_connection(**).get('communications/callRecords'
|
|
32
|
+
def list_call_records(**)
|
|
33
|
+
response = graph_connection(**).get('communications/callRecords')
|
|
34
34
|
{ result: response.body }
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -59,6 +59,26 @@ module Legion
|
|
|
59
59
|
{ result: response.body }
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
def resolve_meeting(chat_thread_id: nil, join_url: nil, user_id: 'me', **)
|
|
63
|
+
return { error: 'provide chat_thread_id or join_url' } unless chat_thread_id || join_url
|
|
64
|
+
|
|
65
|
+
unless join_url
|
|
66
|
+
chat_response = graph_connection(**).get("chats/#{chat_thread_id}")
|
|
67
|
+
chat_body = chat_response.body
|
|
68
|
+
return { error: 'chat not found', result: chat_body } unless chat_body.is_a?(Hash) && !chat_body.key?('error')
|
|
69
|
+
|
|
70
|
+
join_url = chat_body.dig('onlineMeetingInfo', 'joinWebUrl')
|
|
71
|
+
return { error: 'chat has no onlineMeetingInfo', result: chat_body } unless join_url
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
meeting_response = get_meeting_by_join_url(join_url: join_url, user_id: user_id, **)
|
|
75
|
+
meeting_body = meeting_response[:result]
|
|
76
|
+
items = meeting_body.is_a?(Hash) ? meeting_body['value'] : nil
|
|
77
|
+
return { error: 'could not resolve meeting from join URL', result: meeting_body } unless items.is_a?(Array) && !items.empty?
|
|
78
|
+
|
|
79
|
+
{ result: items.first }
|
|
80
|
+
end
|
|
81
|
+
|
|
62
82
|
include Legion::Extensions::Helpers::Lex if Legion::Extensions.const_defined?(:Helpers, false) &&
|
|
63
83
|
Legion::Extensions::Helpers.const_defined?(:Lex, false)
|
|
64
84
|
end
|