Module: Legion::Extensions::MicrosoftTeams::Runners::AiInsights

Includes:
Helpers::Lex, Helpers::Client
Defined in:
lib/legion/extensions/microsoft_teams/runners/ai_insights.rb

Instance Method Summary collapse

Methods included from Helpers::Client

#bot_connection, #graph_connection, #oauth_connection, #user_path

Instance Method Details

#get_call_record(call_id:) ⇒ Object



37
38
39
40
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 37

def get_call_record(call_id:, **)
  response = graph_connection(**).get("communications/callRecords/#{call_id}")
  { result: response.body }
end

#get_meeting_ai_insight(meeting_id:, insight_id:, user_id: 'me') ⇒ Object



17
18
19
20
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 17

def get_meeting_ai_insight(meeting_id:, insight_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/aiInsights/#{insight_id}")
  { result: response.body }
end

#get_meeting_recording(meeting_id:, recording_id:, user_id: 'me') ⇒ Object



27
28
29
30
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 27

def get_meeting_recording(meeting_id:, recording_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/recordings/#{recording_id}")
  { result: response.body }
end

#list_call_records(top: 50) ⇒ Object



32
33
34
35
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 32

def list_call_records(top: 50, **)
  response = graph_connection(**).get('communications/callRecords', { '$top' => top })
  { result: response.body }
end

#list_meeting_ai_insights(meeting_id:, user_id: 'me') ⇒ Object



12
13
14
15
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 12

def list_meeting_ai_insights(meeting_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/aiInsights")
  { result: response.body }
end

#list_meeting_recordings(meeting_id:, user_id: 'me') ⇒ Object



22
23
24
25
# File 'lib/legion/extensions/microsoft_teams/runners/ai_insights.rb', line 22

def list_meeting_recordings(meeting_id:, user_id: 'me', **)
  response = graph_connection(**).get("#{user_path(user_id)}/onlineMeetings/#{meeting_id}/recordings")
  { result: response.body }
end