sentdm 0.38.1 → 0.40.0
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 +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/sentdm/client.rb +3 -20
- data/lib/sentdm/internal/voice_agents_page.rb +115 -0
- data/lib/sentdm/models/call_event.rb +8 -6
- data/lib/sentdm/models/call_event_payload.rb +29 -9
- data/lib/sentdm/models/channels/voice_create_params.rb +23 -11
- data/lib/sentdm/models/channels/voice_number.rb +23 -1
- data/lib/sentdm/models/channels/voice_update_params.rb +12 -1
- data/lib/sentdm/models/message_send_params.rb +8 -1
- data/lib/sentdm/models/template.rb +6 -5
- data/lib/sentdm/models/template_body.rb +8 -8
- data/lib/sentdm/models/voice/agent_create_params.rb +142 -0
- data/lib/sentdm/models/{calls/participant_list_params.rb → voice/agent_delete_params.rb} +3 -3
- data/lib/sentdm/models/voice/agent_list_params.rb +38 -0
- data/lib/sentdm/models/{calls/participant_remove_all_params.rb → voice/agent_retrieve_params.rb} +3 -3
- data/lib/sentdm/models/voice/agent_rotate_secret_params.rb +34 -0
- data/lib/sentdm/models/voice/agent_update_params.rb +141 -0
- data/lib/sentdm/models/{calls/api_response_of_list_of_call_participant.rb → voice/api_response_of_call.rb} +7 -7
- data/lib/sentdm/models/voice/api_response_of_call_recordings.rb +45 -0
- data/lib/sentdm/models/voice/api_response_of_calls_list.rb +44 -0
- data/lib/sentdm/models/voice/api_response_of_voice_agent.rb +51 -0
- data/lib/sentdm/models/voice/api_response_of_voice_agent_secret.rb +45 -0
- data/lib/sentdm/models/voice/api_response_of_voice_agents_list.rb +48 -0
- data/lib/sentdm/models/voice/api_response_of_voice_catalogue.rb +49 -0
- data/lib/sentdm/models/{channels → voice}/api_response_of_voice_token.rb +5 -5
- data/lib/sentdm/models/voice/call.rb +241 -0
- data/lib/sentdm/models/{calls/participant_remove_params.rb → voice/call_hangup_params.rb} +8 -8
- data/lib/sentdm/models/voice/call_list_params.rb +103 -0
- data/lib/sentdm/models/voice/call_list_recordings_params.rb +28 -0
- data/lib/sentdm/models/voice/call_party.rb +33 -0
- data/lib/sentdm/models/{calls/participant_update_params.rb → voice/call_record_params.rb} +10 -17
- data/lib/sentdm/models/voice/call_recording.rb +40 -0
- data/lib/sentdm/models/voice/call_recordings.rb +26 -0
- data/lib/sentdm/models/voice/call_retrieve_params.rb +28 -0
- data/lib/sentdm/models/voice/call_timeline_entry.rb +28 -0
- data/lib/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rb +51 -0
- data/lib/sentdm/models/voice/calls/call_participant.rb +62 -0
- data/lib/sentdm/models/voice/calls/call_participant_target.rb +32 -0
- data/lib/sentdm/models/voice/calls/participant_add_params.rb +68 -0
- data/lib/sentdm/models/voice/calls/participant_list_params.rb +30 -0
- data/lib/sentdm/models/voice/calls/participant_remove_all_params.rb +30 -0
- data/lib/sentdm/models/voice/calls/participant_remove_params.rb +36 -0
- data/lib/sentdm/models/voice/calls/participant_update_params.rb +66 -0
- data/lib/sentdm/models/voice/calls_list.rb +28 -0
- data/lib/sentdm/models/voice/catalogue_list_params.rb +22 -0
- data/lib/sentdm/models/{channels/voice_create_token_params.rb → voice/token_create_params.rb} +4 -4
- data/lib/sentdm/models/voice/voice_agent.rb +138 -0
- data/lib/sentdm/models/voice/voice_agent_audio.rb +19 -0
- data/lib/sentdm/models/voice/voice_agent_audio_spec.rb +20 -0
- data/lib/sentdm/models/voice/voice_agent_limits.rb +31 -0
- data/lib/sentdm/models/voice/voice_agent_limits_spec.rb +40 -0
- data/lib/sentdm/models/voice/voice_agent_party.rb +25 -0
- data/lib/sentdm/models/voice/voice_agent_party_spec.rb +28 -0
- data/lib/sentdm/models/voice/voice_agent_secret.rb +27 -0
- data/lib/sentdm/models/voice/voice_agent_speech.rb +31 -0
- data/lib/sentdm/models/voice/voice_agent_speech_spec.rb +40 -0
- data/lib/sentdm/models/voice/voice_agent_transcripts.rb +25 -0
- data/lib/sentdm/models/voice/voice_agent_transcripts_spec.rb +32 -0
- data/lib/sentdm/models/voice/voice_agents_list.rb +30 -0
- data/lib/sentdm/models/voice/voice_catalogue.rb +30 -0
- data/lib/sentdm/models/voice/voice_catalogue_voice.rb +43 -0
- data/lib/sentdm/models/{channels → voice}/voice_token.rb +9 -3
- data/lib/sentdm/models/webhook_create_params.rb +31 -5
- data/lib/sentdm/models/webhook_response.rb +66 -4
- data/lib/sentdm/models/webhook_update_params.rb +15 -3
- data/lib/sentdm/models.rb +2 -30
- data/lib/sentdm/resources/channels/voice.rb +43 -63
- data/lib/sentdm/resources/channels.rb +2 -2
- data/lib/sentdm/resources/profiles/campaigns.rb +3 -2
- data/lib/sentdm/resources/voice/agents.rb +319 -0
- data/lib/sentdm/resources/voice/calls/participants.rb +244 -0
- data/lib/sentdm/resources/voice/calls.rb +269 -0
- data/lib/sentdm/resources/voice/catalogue.rb +71 -0
- data/lib/sentdm/resources/voice/tokens.rb +86 -0
- data/lib/sentdm/resources/voice.rb +142 -0
- data/lib/sentdm/resources/webhooks.rb +43 -15
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +59 -28
- data/rbi/sentdm/client.rbi +2 -19
- data/rbi/sentdm/internal/voice_agents_page.rbi +71 -0
- data/rbi/sentdm/models/call_event.rbi +14 -10
- data/rbi/sentdm/models/call_event_payload.rbi +34 -9
- data/rbi/sentdm/models/channels/voice_create_params.rbi +33 -17
- data/rbi/sentdm/models/channels/voice_number.rbi +31 -0
- data/rbi/sentdm/models/channels/voice_update_params.rbi +14 -0
- data/rbi/sentdm/models/message_send_params.rbi +16 -2
- data/rbi/sentdm/models/template.rbi +12 -10
- data/rbi/sentdm/models/template_body.rbi +12 -12
- data/rbi/sentdm/models/voice/agent_create_params.rbi +215 -0
- data/rbi/sentdm/models/{calls/participant_remove_all_params.rbi → voice/agent_delete_params.rbi} +3 -6
- data/rbi/sentdm/models/voice/agent_list_params.rbi +66 -0
- data/rbi/sentdm/models/voice/agent_retrieve_params.rbi +48 -0
- data/rbi/sentdm/models/{calls/participant_remove_params.rbi → voice/agent_rotate_secret_params.rbi} +11 -8
- data/rbi/sentdm/models/voice/agent_update_params.rbi +211 -0
- data/rbi/sentdm/models/voice/api_response_of_call.rbi +76 -0
- data/rbi/sentdm/models/voice/api_response_of_call_recordings.rbi +81 -0
- data/rbi/sentdm/models/{calls/api_response_of_list_of_call_participant.rbi → voice/api_response_of_calls_list.rbi} +12 -9
- data/rbi/sentdm/models/voice/api_response_of_voice_agent.rbi +85 -0
- data/rbi/sentdm/models/voice/api_response_of_voice_agent_secret.rbi +81 -0
- data/rbi/sentdm/models/voice/api_response_of_voice_agents_list.rbi +83 -0
- data/rbi/sentdm/models/voice/api_response_of_voice_catalogue.rbi +83 -0
- data/rbi/sentdm/models/{channels → voice}/api_response_of_voice_token.rbi +6 -8
- data/rbi/sentdm/models/voice/call.rbi +329 -0
- data/rbi/sentdm/models/voice/call_hangup_params.rbi +61 -0
- data/rbi/sentdm/models/voice/call_list_params.rbi +134 -0
- data/rbi/sentdm/models/{calls/participant_list_params.rbi → voice/call_list_recordings_params.rbi} +3 -3
- data/rbi/sentdm/models/voice/call_party.rbi +47 -0
- data/rbi/sentdm/models/{calls/participant_update_params.rbi → voice/call_record_params.rbi} +12 -21
- data/rbi/sentdm/models/voice/call_recording.rbi +63 -0
- data/rbi/sentdm/models/voice/call_recordings.rbi +49 -0
- data/rbi/sentdm/models/voice/call_retrieve_params.rbi +48 -0
- data/rbi/sentdm/models/voice/call_timeline_entry.rbi +44 -0
- data/rbi/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbi +84 -0
- data/rbi/sentdm/models/voice/calls/call_participant.rbi +97 -0
- data/rbi/sentdm/models/voice/calls/call_participant_target.rbi +49 -0
- data/rbi/sentdm/models/voice/calls/participant_add_params.rbi +104 -0
- data/rbi/sentdm/models/voice/calls/participant_list_params.rbi +53 -0
- data/rbi/sentdm/models/voice/calls/participant_remove_all_params.rbi +53 -0
- data/rbi/sentdm/models/voice/calls/participant_remove_params.rbi +63 -0
- data/rbi/sentdm/models/voice/calls/participant_update_params.rbi +96 -0
- data/rbi/sentdm/models/voice/calls_list.rbi +54 -0
- data/rbi/sentdm/models/voice/catalogue_list_params.rbi +40 -0
- data/rbi/sentdm/models/{channels/voice_create_token_params.rbi → voice/token_create_params.rbi} +3 -6
- data/rbi/sentdm/models/voice/voice_agent.rbi +196 -0
- data/rbi/sentdm/models/voice/voice_agent_audio.rbi +30 -0
- data/rbi/sentdm/models/voice/voice_agent_audio_spec.rbi +33 -0
- data/rbi/sentdm/models/voice/voice_agent_limits.rbi +57 -0
- data/rbi/sentdm/models/voice/voice_agent_limits_spec.rbi +62 -0
- data/rbi/sentdm/models/voice/voice_agent_party.rbi +36 -0
- data/rbi/sentdm/models/voice/voice_agent_party_spec.rbi +45 -0
- data/rbi/sentdm/models/voice/voice_agent_secret.rbi +37 -0
- data/rbi/sentdm/models/voice/voice_agent_speech.rbi +48 -0
- data/rbi/sentdm/models/voice/voice_agent_speech_spec.rbi +62 -0
- data/rbi/sentdm/models/voice/voice_agent_transcripts.rbi +43 -0
- data/rbi/sentdm/models/voice/voice_agent_transcripts_spec.rbi +51 -0
- data/rbi/sentdm/models/voice/voice_agents_list.rbi +55 -0
- data/rbi/sentdm/models/voice/voice_catalogue.rbi +59 -0
- data/rbi/sentdm/models/voice/voice_catalogue_voice.rbi +75 -0
- data/rbi/sentdm/models/{channels → voice}/voice_token.rbi +8 -4
- data/rbi/sentdm/models/webhook_create_params.rbi +41 -3
- data/rbi/sentdm/models/webhook_response.rbi +112 -3
- data/rbi/sentdm/models/webhook_update_params.rbi +18 -3
- data/rbi/sentdm/models.rbi +2 -30
- data/rbi/sentdm/resources/channels/voice.rbi +57 -67
- data/rbi/sentdm/resources/channels.rbi +2 -2
- data/rbi/sentdm/resources/messages.rbi +8 -1
- data/rbi/sentdm/resources/profiles/campaigns.rbi +3 -2
- data/rbi/sentdm/resources/voice/agents.rbi +316 -0
- data/rbi/sentdm/resources/voice/calls/participants.rbi +212 -0
- data/rbi/sentdm/resources/voice/calls.rbi +244 -0
- data/rbi/sentdm/resources/voice/catalogue.rbi +59 -0
- data/rbi/sentdm/resources/voice/tokens.rbi +84 -0
- data/rbi/sentdm/resources/voice.rbi +136 -0
- data/rbi/sentdm/resources/webhooks.rbi +56 -16
- data/sig/sentdm/client.rbs +1 -1
- data/sig/sentdm/internal/voice_agents_page.rbs +41 -0
- data/sig/sentdm/models/call_event_payload.rbs +12 -0
- data/sig/sentdm/models/channels/voice_create_params.rbs +9 -4
- data/sig/sentdm/models/channels/voice_number.rbs +12 -0
- data/sig/sentdm/models/channels/voice_update_params.rbs +5 -0
- data/sig/sentdm/models/voice/agent_create_params.rbs +99 -0
- data/sig/sentdm/models/{calls/participant_remove_all_params.rbs → voice/agent_delete_params.rbs} +3 -3
- data/sig/sentdm/models/voice/agent_list_params.rbs +40 -0
- data/sig/sentdm/models/{calls/participant_list_params.rbs → voice/agent_retrieve_params.rbs} +3 -3
- data/sig/sentdm/models/{calls/participant_remove_params.rbs → voice/agent_rotate_secret_params.rbs} +8 -8
- data/sig/sentdm/models/voice/agent_update_params.rbs +108 -0
- data/sig/sentdm/models/{calls/api_response_of_list_of_call_participant.rbs → voice/api_response_of_call.rbs} +7 -7
- data/sig/sentdm/models/voice/api_response_of_call_recordings.rbs +41 -0
- data/sig/sentdm/models/voice/api_response_of_calls_list.rbs +41 -0
- data/sig/sentdm/models/voice/api_response_of_voice_agent.rbs +41 -0
- data/sig/sentdm/models/voice/api_response_of_voice_agent_secret.rbs +41 -0
- data/sig/sentdm/models/voice/api_response_of_voice_agents_list.rbs +41 -0
- data/sig/sentdm/models/voice/api_response_of_voice_catalogue.rbs +41 -0
- data/sig/sentdm/models/{channels → voice}/api_response_of_voice_token.rbs +5 -5
- data/sig/sentdm/models/voice/call.rbs +175 -0
- data/sig/sentdm/models/voice/call_hangup_params.rbs +40 -0
- data/sig/sentdm/models/voice/call_list_params.rbs +79 -0
- data/sig/sentdm/models/voice/call_list_recordings_params.rbs +32 -0
- data/sig/sentdm/models/voice/call_party.rbs +19 -0
- data/sig/sentdm/models/{calls/participant_update_params.rbs → voice/call_record_params.rbs} +8 -13
- data/sig/sentdm/models/voice/call_recording.rbs +34 -0
- data/sig/sentdm/models/voice/call_recordings.rbs +22 -0
- data/sig/sentdm/models/voice/call_retrieve_params.rbs +32 -0
- data/sig/sentdm/models/voice/call_timeline_entry.rbs +21 -0
- data/sig/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbs +43 -0
- data/sig/sentdm/models/voice/calls/call_participant.rbs +54 -0
- data/sig/sentdm/models/voice/calls/call_participant_target.rbs +25 -0
- data/sig/sentdm/models/voice/calls/participant_add_params.rbs +65 -0
- data/sig/sentdm/models/voice/calls/participant_list_params.rbs +34 -0
- data/sig/sentdm/models/voice/calls/participant_remove_all_params.rbs +36 -0
- data/sig/sentdm/models/voice/calls/participant_remove_params.rbs +42 -0
- data/sig/sentdm/models/voice/calls/participant_update_params.rbs +63 -0
- data/sig/sentdm/models/voice/calls_list.rbs +33 -0
- data/sig/sentdm/models/voice/catalogue_list_params.rbs +27 -0
- data/sig/sentdm/models/{channels/voice_create_token_params.rbs → voice/token_create_params.rbs} +3 -3
- data/sig/sentdm/models/voice/voice_agent.rbs +116 -0
- data/sig/sentdm/models/voice/voice_agent_audio.rbs +19 -0
- data/sig/sentdm/models/voice/voice_agent_audio_spec.rbs +17 -0
- data/sig/sentdm/models/voice/voice_agent_limits.rbs +38 -0
- data/sig/sentdm/models/voice/voice_agent_limits_spec.rbs +34 -0
- data/sig/sentdm/models/{calls/call_participant_target.rbs → voice/voice_agent_party.rbs} +4 -4
- data/sig/sentdm/models/voice/voice_agent_party_spec.rbs +19 -0
- data/sig/sentdm/models/voice/voice_agent_secret.rbs +19 -0
- data/sig/sentdm/models/voice/voice_agent_speech.rbs +32 -0
- data/sig/sentdm/models/voice/voice_agent_speech_spec.rbs +26 -0
- data/sig/sentdm/models/voice/voice_agent_transcripts.rbs +23 -0
- data/sig/sentdm/models/voice/voice_agent_transcripts_spec.rbs +20 -0
- data/sig/sentdm/models/voice/voice_agents_list.rbs +35 -0
- data/sig/sentdm/models/voice/voice_catalogue.rbs +35 -0
- data/sig/sentdm/models/voice/voice_catalogue_voice.rbs +42 -0
- data/sig/sentdm/models/{channels → voice}/voice_token.rbs +3 -1
- data/sig/sentdm/models/webhook_create_params.rbs +12 -0
- data/sig/sentdm/models/webhook_response.rbs +46 -3
- data/sig/sentdm/models/webhook_update_params.rbs +5 -0
- data/sig/sentdm/models.rbs +2 -30
- data/sig/sentdm/resources/channels/voice.rbs +3 -11
- data/sig/sentdm/resources/voice/agents.rbs +74 -0
- data/sig/sentdm/resources/voice/calls/participants.rbs +52 -0
- data/sig/sentdm/resources/{calls/participants.rbs → voice/calls.rbs} +25 -21
- data/sig/sentdm/resources/voice/catalogue.rbs +14 -0
- data/sig/sentdm/resources/voice/tokens.rbs +19 -0
- data/sig/sentdm/resources/voice.rbs +15 -0
- data/sig/sentdm/resources/webhooks.rbs +3 -0
- metadata +176 -83
- data/lib/sentdm/models/api_response_of_call.rb +0 -43
- data/lib/sentdm/models/api_response_of_call_recordings.rb +0 -43
- data/lib/sentdm/models/api_response_of_calls_list.rb +0 -42
- data/lib/sentdm/models/call.rb +0 -134
- data/lib/sentdm/models/call_hangup_params.rb +0 -32
- data/lib/sentdm/models/call_list_params.rb +0 -83
- data/lib/sentdm/models/call_list_recordings_params.rb +0 -26
- data/lib/sentdm/models/call_party.rb +0 -31
- data/lib/sentdm/models/call_record_params.rb +0 -55
- data/lib/sentdm/models/call_recording.rb +0 -38
- data/lib/sentdm/models/call_recordings.rb +0 -24
- data/lib/sentdm/models/call_retrieve_params.rb +0 -26
- data/lib/sentdm/models/call_timeline_entry.rb +0 -26
- data/lib/sentdm/models/calls/call_participant.rb +0 -60
- data/lib/sentdm/models/calls/call_participant_target.rb +0 -30
- data/lib/sentdm/models/calls/participant_add_params.rb +0 -66
- data/lib/sentdm/models/calls_list.rb +0 -26
- data/lib/sentdm/resources/calls/participants.rb +0 -231
- data/lib/sentdm/resources/calls.rb +0 -236
- data/rbi/sentdm/models/api_response_of_call.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_call_recordings.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_calls_list.rbi +0 -74
- data/rbi/sentdm/models/call.rbi +0 -179
- data/rbi/sentdm/models/call_hangup_params.rbi +0 -59
- data/rbi/sentdm/models/call_list_params.rbi +0 -112
- data/rbi/sentdm/models/call_list_recordings_params.rbi +0 -46
- data/rbi/sentdm/models/call_party.rbi +0 -41
- data/rbi/sentdm/models/call_record_params.rbi +0 -83
- data/rbi/sentdm/models/call_recording.rbi +0 -59
- data/rbi/sentdm/models/call_recordings.rbi +0 -39
- data/rbi/sentdm/models/call_retrieve_params.rbi +0 -46
- data/rbi/sentdm/models/call_timeline_entry.rbi +0 -40
- data/rbi/sentdm/models/calls/call_participant.rbi +0 -92
- data/rbi/sentdm/models/calls/call_participant_target.rbi +0 -47
- data/rbi/sentdm/models/calls/participant_add_params.rbi +0 -98
- data/rbi/sentdm/models/calls_list.rbi +0 -47
- data/rbi/sentdm/resources/calls/participants.rbi +0 -199
- data/rbi/sentdm/resources/calls.rbi +0 -207
- data/sig/sentdm/models/api_response_of_call.rbs +0 -39
- data/sig/sentdm/models/api_response_of_call_recordings.rbs +0 -39
- data/sig/sentdm/models/api_response_of_calls_list.rbs +0 -39
- data/sig/sentdm/models/call.rbs +0 -101
- data/sig/sentdm/models/call_hangup_params.rbs +0 -38
- data/sig/sentdm/models/call_list_params.rbs +0 -67
- data/sig/sentdm/models/call_list_recordings_params.rbs +0 -30
- data/sig/sentdm/models/call_party.rbs +0 -17
- data/sig/sentdm/models/call_record_params.rbs +0 -54
- data/sig/sentdm/models/call_recording.rbs +0 -32
- data/sig/sentdm/models/call_recordings.rbs +0 -17
- data/sig/sentdm/models/call_retrieve_params.rbs +0 -30
- data/sig/sentdm/models/call_timeline_entry.rbs +0 -19
- data/sig/sentdm/models/calls/call_participant.rbs +0 -52
- data/sig/sentdm/models/calls/participant_add_params.rbs +0 -63
- data/sig/sentdm/models/calls_list.rbs +0 -26
- data/sig/sentdm/resources/calls.rbs +0 -50
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type agent_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
audio: Sentdm::Voice::VoiceAgentAudioSpec?,
|
|
8
|
+
fallback: Sentdm::Voice::VoiceAgentPartySpec?,
|
|
9
|
+
greeting: String?,
|
|
10
|
+
limits: Sentdm::Voice::VoiceAgentLimitsSpec?,
|
|
11
|
+
name: String,
|
|
12
|
+
sandbox: bool,
|
|
13
|
+
session_type: String,
|
|
14
|
+
speech: Sentdm::Voice::VoiceAgentSpeechSpec?,
|
|
15
|
+
tools: ::Array[String]?,
|
|
16
|
+
transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?,
|
|
17
|
+
transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?,
|
|
18
|
+
websocket_url: String?,
|
|
19
|
+
idempotency_key: String,
|
|
20
|
+
x_profile_id: String
|
|
21
|
+
}
|
|
22
|
+
& Sentdm::Internal::Type::request_parameters
|
|
23
|
+
|
|
24
|
+
class AgentUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
25
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
26
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
27
|
+
|
|
28
|
+
attr_accessor id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor audio: Sentdm::Voice::VoiceAgentAudioSpec?
|
|
31
|
+
|
|
32
|
+
attr_accessor fallback: Sentdm::Voice::VoiceAgentPartySpec?
|
|
33
|
+
|
|
34
|
+
attr_accessor greeting: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor limits: Sentdm::Voice::VoiceAgentLimitsSpec?
|
|
37
|
+
|
|
38
|
+
attr_reader name: String?
|
|
39
|
+
|
|
40
|
+
def name=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_reader sandbox: bool?
|
|
43
|
+
|
|
44
|
+
def sandbox=: (bool) -> bool
|
|
45
|
+
|
|
46
|
+
attr_reader session_type: String?
|
|
47
|
+
|
|
48
|
+
def session_type=: (String) -> String
|
|
49
|
+
|
|
50
|
+
attr_accessor speech: Sentdm::Voice::VoiceAgentSpeechSpec?
|
|
51
|
+
|
|
52
|
+
attr_accessor tools: ::Array[String]?
|
|
53
|
+
|
|
54
|
+
attr_accessor transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?
|
|
55
|
+
|
|
56
|
+
attr_accessor transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?
|
|
57
|
+
|
|
58
|
+
attr_accessor websocket_url: String?
|
|
59
|
+
|
|
60
|
+
attr_reader idempotency_key: String?
|
|
61
|
+
|
|
62
|
+
def idempotency_key=: (String) -> String
|
|
63
|
+
|
|
64
|
+
attr_reader x_profile_id: String?
|
|
65
|
+
|
|
66
|
+
def x_profile_id=: (String) -> String
|
|
67
|
+
|
|
68
|
+
def initialize: (
|
|
69
|
+
id: String,
|
|
70
|
+
?audio: Sentdm::Voice::VoiceAgentAudioSpec?,
|
|
71
|
+
?fallback: Sentdm::Voice::VoiceAgentPartySpec?,
|
|
72
|
+
?greeting: String?,
|
|
73
|
+
?limits: Sentdm::Voice::VoiceAgentLimitsSpec?,
|
|
74
|
+
?name: String,
|
|
75
|
+
?sandbox: bool,
|
|
76
|
+
?session_type: String,
|
|
77
|
+
?speech: Sentdm::Voice::VoiceAgentSpeechSpec?,
|
|
78
|
+
?tools: ::Array[String]?,
|
|
79
|
+
?transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?,
|
|
80
|
+
?transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?,
|
|
81
|
+
?websocket_url: String?,
|
|
82
|
+
?idempotency_key: String,
|
|
83
|
+
?x_profile_id: String,
|
|
84
|
+
?request_options: Sentdm::request_opts
|
|
85
|
+
) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> {
|
|
88
|
+
id: String,
|
|
89
|
+
audio: Sentdm::Voice::VoiceAgentAudioSpec?,
|
|
90
|
+
fallback: Sentdm::Voice::VoiceAgentPartySpec?,
|
|
91
|
+
greeting: String?,
|
|
92
|
+
limits: Sentdm::Voice::VoiceAgentLimitsSpec?,
|
|
93
|
+
name: String,
|
|
94
|
+
sandbox: bool,
|
|
95
|
+
session_type: String,
|
|
96
|
+
speech: Sentdm::Voice::VoiceAgentSpeechSpec?,
|
|
97
|
+
tools: ::Array[String]?,
|
|
98
|
+
transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?,
|
|
99
|
+
transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?,
|
|
100
|
+
websocket_url: String?,
|
|
101
|
+
idempotency_key: String,
|
|
102
|
+
x_profile_id: String,
|
|
103
|
+
request_options: Sentdm::RequestOptions
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
4
|
-
type
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_call =
|
|
5
5
|
{
|
|
6
|
-
data:
|
|
6
|
+
data: Sentdm::Voice::Call?,
|
|
7
7
|
error: Sentdm::ErrorDetail?,
|
|
8
8
|
meta: Sentdm::APIMeta,
|
|
9
9
|
success: bool
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
attr_accessor data:
|
|
12
|
+
class APIResponseOfCall < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::Call?
|
|
14
14
|
|
|
15
15
|
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
16
|
|
|
@@ -23,14 +23,14 @@ module Sentdm
|
|
|
23
23
|
def success=: (bool) -> bool
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
?data:
|
|
26
|
+
?data: Sentdm::Voice::Call?,
|
|
27
27
|
?error: Sentdm::ErrorDetail?,
|
|
28
28
|
?meta: Sentdm::APIMeta,
|
|
29
29
|
?success: bool
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
data:
|
|
33
|
+
data: Sentdm::Voice::Call?,
|
|
34
34
|
error: Sentdm::ErrorDetail?,
|
|
35
35
|
meta: Sentdm::APIMeta,
|
|
36
36
|
success: bool
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_call_recordings =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::CallRecordings?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfCallRecordings < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::CallRecordings?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::CallRecordings?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::CallRecordings?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_calls_list =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::CallsList?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfCallsList < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::CallsList?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::CallsList?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::CallsList?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_voice_agent =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::VoiceAgent?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceAgent < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::VoiceAgent?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::VoiceAgent?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::VoiceAgent?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_voice_agent_secret =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::VoiceAgentSecret?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceAgentSecret < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::VoiceAgentSecret?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::VoiceAgentSecret?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::VoiceAgentSecret?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_voice_agents_list =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::VoiceAgentsList?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceAgentsList < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::VoiceAgentsList?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::VoiceAgentsList?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::VoiceAgentsList?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type api_response_of_voice_catalogue =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Voice::VoiceCatalogue?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceCatalogue < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Voice::VoiceCatalogue?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Voice::VoiceCatalogue?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Voice::VoiceCatalogue?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module Voice
|
|
4
4
|
type api_response_of_voice_token =
|
|
5
5
|
{
|
|
6
|
-
data: Sentdm::
|
|
6
|
+
data: Sentdm::Voice::VoiceToken?,
|
|
7
7
|
error: Sentdm::ErrorDetail?,
|
|
8
8
|
meta: Sentdm::APIMeta,
|
|
9
9
|
success: bool
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
class APIResponseOfVoiceToken < Sentdm::Internal::Type::BaseModel
|
|
13
|
-
attr_accessor data: Sentdm::
|
|
13
|
+
attr_accessor data: Sentdm::Voice::VoiceToken?
|
|
14
14
|
|
|
15
15
|
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
16
|
|
|
@@ -23,14 +23,14 @@ module Sentdm
|
|
|
23
23
|
def success=: (bool) -> bool
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
?data: Sentdm::
|
|
26
|
+
?data: Sentdm::Voice::VoiceToken?,
|
|
27
27
|
?error: Sentdm::ErrorDetail?,
|
|
28
28
|
?meta: Sentdm::APIMeta,
|
|
29
29
|
?success: bool
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
data: Sentdm::
|
|
33
|
+
data: Sentdm::Voice::VoiceToken?,
|
|
34
34
|
error: Sentdm::ErrorDetail?,
|
|
35
35
|
meta: Sentdm::APIMeta,
|
|
36
36
|
success: bool
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type call =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
agent_id: String?,
|
|
8
|
+
answered_at: Time?,
|
|
9
|
+
caller_id_used: String?,
|
|
10
|
+
connected_number: String?,
|
|
11
|
+
direction: String,
|
|
12
|
+
duration_seconds: Integer?,
|
|
13
|
+
ended_at: Time?,
|
|
14
|
+
failure_reason: String?,
|
|
15
|
+
from: Sentdm::Voice::CallParty,
|
|
16
|
+
legs: ::Array[Sentdm::Voice::Call::Leg]?,
|
|
17
|
+
mode: String,
|
|
18
|
+
number: String,
|
|
19
|
+
price: Float?,
|
|
20
|
+
recording_available: bool,
|
|
21
|
+
started_at: Time,
|
|
22
|
+
status: String,
|
|
23
|
+
timeline: ::Array[Sentdm::Voice::CallTimelineEntry]?,
|
|
24
|
+
to: Sentdm::Voice::CallParty
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
class Call < Sentdm::Internal::Type::BaseModel
|
|
28
|
+
attr_reader id: String?
|
|
29
|
+
|
|
30
|
+
def id=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_accessor agent_id: String?
|
|
33
|
+
|
|
34
|
+
attr_accessor answered_at: Time?
|
|
35
|
+
|
|
36
|
+
attr_accessor caller_id_used: String?
|
|
37
|
+
|
|
38
|
+
attr_accessor connected_number: String?
|
|
39
|
+
|
|
40
|
+
attr_reader direction: String?
|
|
41
|
+
|
|
42
|
+
def direction=: (String) -> String
|
|
43
|
+
|
|
44
|
+
attr_accessor duration_seconds: Integer?
|
|
45
|
+
|
|
46
|
+
attr_accessor ended_at: Time?
|
|
47
|
+
|
|
48
|
+
attr_accessor failure_reason: String?
|
|
49
|
+
|
|
50
|
+
attr_reader from: Sentdm::Voice::CallParty?
|
|
51
|
+
|
|
52
|
+
def from=: (Sentdm::Voice::CallParty) -> Sentdm::Voice::CallParty
|
|
53
|
+
|
|
54
|
+
attr_accessor legs: ::Array[Sentdm::Voice::Call::Leg]?
|
|
55
|
+
|
|
56
|
+
attr_reader mode: String?
|
|
57
|
+
|
|
58
|
+
def mode=: (String) -> String
|
|
59
|
+
|
|
60
|
+
attr_reader number: String?
|
|
61
|
+
|
|
62
|
+
def number=: (String) -> String
|
|
63
|
+
|
|
64
|
+
attr_accessor price: Float?
|
|
65
|
+
|
|
66
|
+
attr_reader recording_available: bool?
|
|
67
|
+
|
|
68
|
+
def recording_available=: (bool) -> bool
|
|
69
|
+
|
|
70
|
+
attr_reader started_at: Time?
|
|
71
|
+
|
|
72
|
+
def started_at=: (Time) -> Time
|
|
73
|
+
|
|
74
|
+
attr_reader status: String?
|
|
75
|
+
|
|
76
|
+
def status=: (String) -> String
|
|
77
|
+
|
|
78
|
+
attr_accessor timeline: ::Array[Sentdm::Voice::CallTimelineEntry]?
|
|
79
|
+
|
|
80
|
+
attr_reader to: Sentdm::Voice::CallParty?
|
|
81
|
+
|
|
82
|
+
def to=: (Sentdm::Voice::CallParty) -> Sentdm::Voice::CallParty
|
|
83
|
+
|
|
84
|
+
def initialize: (
|
|
85
|
+
?id: String,
|
|
86
|
+
?agent_id: String?,
|
|
87
|
+
?answered_at: Time?,
|
|
88
|
+
?caller_id_used: String?,
|
|
89
|
+
?connected_number: String?,
|
|
90
|
+
?direction: String,
|
|
91
|
+
?duration_seconds: Integer?,
|
|
92
|
+
?ended_at: Time?,
|
|
93
|
+
?failure_reason: String?,
|
|
94
|
+
?from: Sentdm::Voice::CallParty,
|
|
95
|
+
?legs: ::Array[Sentdm::Voice::Call::Leg]?,
|
|
96
|
+
?mode: String,
|
|
97
|
+
?number: String,
|
|
98
|
+
?price: Float?,
|
|
99
|
+
?recording_available: bool,
|
|
100
|
+
?started_at: Time,
|
|
101
|
+
?status: String,
|
|
102
|
+
?timeline: ::Array[Sentdm::Voice::CallTimelineEntry]?,
|
|
103
|
+
?to: Sentdm::Voice::CallParty
|
|
104
|
+
) -> void
|
|
105
|
+
|
|
106
|
+
def to_hash: -> {
|
|
107
|
+
id: String,
|
|
108
|
+
agent_id: String?,
|
|
109
|
+
answered_at: Time?,
|
|
110
|
+
caller_id_used: String?,
|
|
111
|
+
connected_number: String?,
|
|
112
|
+
direction: String,
|
|
113
|
+
duration_seconds: Integer?,
|
|
114
|
+
ended_at: Time?,
|
|
115
|
+
failure_reason: String?,
|
|
116
|
+
from: Sentdm::Voice::CallParty,
|
|
117
|
+
legs: ::Array[Sentdm::Voice::Call::Leg]?,
|
|
118
|
+
mode: String,
|
|
119
|
+
number: String,
|
|
120
|
+
price: Float?,
|
|
121
|
+
recording_available: bool,
|
|
122
|
+
started_at: Time,
|
|
123
|
+
status: String,
|
|
124
|
+
timeline: ::Array[Sentdm::Voice::CallTimelineEntry]?,
|
|
125
|
+
to: Sentdm::Voice::CallParty
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type leg =
|
|
129
|
+
{
|
|
130
|
+
billed_minutes: Integer,
|
|
131
|
+
cost: Float,
|
|
132
|
+
currency: String,
|
|
133
|
+
direction: String,
|
|
134
|
+
number: String?
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
class Leg < Sentdm::Internal::Type::BaseModel
|
|
138
|
+
attr_reader billed_minutes: Integer?
|
|
139
|
+
|
|
140
|
+
def billed_minutes=: (Integer) -> Integer
|
|
141
|
+
|
|
142
|
+
attr_reader cost: Float?
|
|
143
|
+
|
|
144
|
+
def cost=: (Float) -> Float
|
|
145
|
+
|
|
146
|
+
attr_reader currency: String?
|
|
147
|
+
|
|
148
|
+
def currency=: (String) -> String
|
|
149
|
+
|
|
150
|
+
attr_reader direction: String?
|
|
151
|
+
|
|
152
|
+
def direction=: (String) -> String
|
|
153
|
+
|
|
154
|
+
attr_accessor number: String?
|
|
155
|
+
|
|
156
|
+
def initialize: (
|
|
157
|
+
?billed_minutes: Integer,
|
|
158
|
+
?cost: Float,
|
|
159
|
+
?currency: String,
|
|
160
|
+
?direction: String,
|
|
161
|
+
?number: String?
|
|
162
|
+
) -> void
|
|
163
|
+
|
|
164
|
+
def to_hash: -> {
|
|
165
|
+
billed_minutes: Integer,
|
|
166
|
+
cost: Float,
|
|
167
|
+
currency: String,
|
|
168
|
+
direction: String,
|
|
169
|
+
number: String?
|
|
170
|
+
}
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Voice
|
|
4
|
+
type call_hangup_params =
|
|
5
|
+
{ id: String, idempotency_key: String, x_profile_id: String }
|
|
6
|
+
& Sentdm::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class CallHangupParams < Sentdm::Models::MutationRequest
|
|
9
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
def id: -> String
|
|
13
|
+
|
|
14
|
+
def id=: (String _) -> String
|
|
15
|
+
|
|
16
|
+
def idempotency_key: -> String?
|
|
17
|
+
|
|
18
|
+
def idempotency_key=: (String _) -> String
|
|
19
|
+
|
|
20
|
+
def x_profile_id: -> String?
|
|
21
|
+
|
|
22
|
+
def x_profile_id=: (String _) -> String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
id: String,
|
|
26
|
+
?idempotency_key: String,
|
|
27
|
+
?x_profile_id: String,
|
|
28
|
+
?request_options: Sentdm::request_opts
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
idempotency_key: String,
|
|
34
|
+
x_profile_id: String,
|
|
35
|
+
request_options: Sentdm::RequestOptions
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|