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,142 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#create
|
|
7
|
+
class AgentCreateParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute audio
|
|
12
|
+
# Audio sessions only: the sound format.
|
|
13
|
+
#
|
|
14
|
+
# @return [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil]
|
|
15
|
+
optional :audio, -> { Sentdm::Voice::VoiceAgentAudioSpec }, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute fallback
|
|
18
|
+
# Who takes the call when the agent cannot: a phone number (kind: number). Omit it
|
|
19
|
+
# and such a call hangs up.
|
|
20
|
+
#
|
|
21
|
+
# @return [Sentdm::Models::Voice::VoiceAgentPartySpec, nil]
|
|
22
|
+
optional :fallback, -> { Sentdm::Voice::VoiceAgentPartySpec }, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute greeting
|
|
25
|
+
# Text sessions only: what the caller hears as soon as the call is answered,
|
|
26
|
+
# before the agent's first turn. 1 to 4,096 characters. Omit it and the agent
|
|
27
|
+
# speaks first.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :greeting, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute limits
|
|
33
|
+
#
|
|
34
|
+
# @return [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
|
|
35
|
+
optional :limits, -> { Sentdm::Voice::VoiceAgentLimitsSpec }, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute name
|
|
38
|
+
# A name for your own reference, 1 to 100 characters.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :name, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute sandbox
|
|
44
|
+
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
45
|
+
# for testing integrations without actual execution
|
|
46
|
+
#
|
|
47
|
+
# @return [Boolean, nil]
|
|
48
|
+
optional :sandbox, Sentdm::Internal::Type::Boolean
|
|
49
|
+
|
|
50
|
+
# @!attribute session_type
|
|
51
|
+
# text: Sent turns the caller's speech into text and the agent's text into speech,
|
|
52
|
+
# so the agent exchanges text frames. audio: the agent receives and sends the
|
|
53
|
+
# sound itself.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :session_type, String, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute speech
|
|
59
|
+
# Text sessions only: how the caller is spoken to and listened to.
|
|
60
|
+
#
|
|
61
|
+
# @return [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil]
|
|
62
|
+
optional :speech, -> { Sentdm::Voice::VoiceAgentSpeechSpec }, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute tools
|
|
65
|
+
# What the agent may do to the call: any of transfer, hangup, send_dtmf and hold.
|
|
66
|
+
# Default ["hangup"]. transfer needs at least one transfer_targets entry.
|
|
67
|
+
#
|
|
68
|
+
# @return [Array<String>, nil]
|
|
69
|
+
optional :tools, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute transcripts
|
|
72
|
+
#
|
|
73
|
+
# @return [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
|
|
74
|
+
optional :transcripts, -> { Sentdm::Voice::VoiceAgentTranscriptsSpec }, nil?: true
|
|
75
|
+
|
|
76
|
+
# @!attribute transfer_targets
|
|
77
|
+
# Where the agent may transfer a call to, up to 20 parties: a phone number (kind:
|
|
78
|
+
# number, E.164), one of your app users (kind: user, the identity) or another of
|
|
79
|
+
# your agents (kind: agent, its id). The agent can only transfer to a party listed
|
|
80
|
+
# here.
|
|
81
|
+
#
|
|
82
|
+
# @return [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil]
|
|
83
|
+
optional :transfer_targets,
|
|
84
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceAgentPartySpec] },
|
|
85
|
+
nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute websocket_url
|
|
88
|
+
# Where the gateway connects to the agent for each call: an absolute wss:// URL on
|
|
89
|
+
# a public host, at most 2,048 characters. The handshake is signed with the
|
|
90
|
+
# agent's signing_secret. Leave it out and the agent dials in instead, connecting
|
|
91
|
+
# to the gateway with your API key.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :websocket_url, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute idempotency_key
|
|
97
|
+
#
|
|
98
|
+
# @return [String, nil]
|
|
99
|
+
optional :idempotency_key, String
|
|
100
|
+
|
|
101
|
+
# @!attribute x_profile_id
|
|
102
|
+
#
|
|
103
|
+
# @return [String, nil]
|
|
104
|
+
optional :x_profile_id, String
|
|
105
|
+
|
|
106
|
+
# @!method initialize(audio: nil, fallback: nil, greeting: nil, limits: nil, name: nil, sandbox: nil, session_type: nil, speech: nil, tools: nil, transcripts: nil, transfer_targets: nil, websocket_url: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
107
|
+
# Some parameter documentations has been truncated, see
|
|
108
|
+
# {Sentdm::Models::Voice::AgentCreateParams} for more details.
|
|
109
|
+
#
|
|
110
|
+
# @param audio [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil] Audio sessions only: the sound format.
|
|
111
|
+
#
|
|
112
|
+
# @param fallback [Sentdm::Models::Voice::VoiceAgentPartySpec, nil] Who takes the call when the agent cannot: a phone number (kind: number). Omit it
|
|
113
|
+
#
|
|
114
|
+
# @param greeting [String, nil] Text sessions only: what the caller hears as soon as the call is answered, befor
|
|
115
|
+
#
|
|
116
|
+
# @param limits [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
|
|
117
|
+
#
|
|
118
|
+
# @param name [String, nil] A name for your own reference, 1 to 100 characters.
|
|
119
|
+
#
|
|
120
|
+
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
121
|
+
#
|
|
122
|
+
# @param session_type [String, nil] text: Sent turns the caller's speech into text and the agent's text into speech,
|
|
123
|
+
#
|
|
124
|
+
# @param speech [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil] Text sessions only: how the caller is spoken to and listened to.
|
|
125
|
+
#
|
|
126
|
+
# @param tools [Array<String>, nil] What the agent may do to the call: any of transfer, hangup, send_dtmf and
|
|
127
|
+
#
|
|
128
|
+
# @param transcripts [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
|
|
129
|
+
#
|
|
130
|
+
# @param transfer_targets [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil] Where the agent may transfer a call to, up to 20 parties: a phone number (kind:
|
|
131
|
+
#
|
|
132
|
+
# @param websocket_url [String, nil] Where the gateway connects to the agent for each call: an absolute wss:// URL on
|
|
133
|
+
#
|
|
134
|
+
# @param idempotency_key [String]
|
|
135
|
+
#
|
|
136
|
+
# @param x_profile_id [String]
|
|
137
|
+
#
|
|
138
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
# @see Sentdm::Resources::
|
|
7
|
-
class
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#delete
|
|
7
|
+
class AgentDeleteParams < Sentdm::Models::MutationRequest
|
|
8
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#list
|
|
7
|
+
class AgentListParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute page
|
|
12
|
+
# Page number, from 1
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
optional :page, Integer
|
|
16
|
+
|
|
17
|
+
# @!attribute page_size
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :page_size, Integer
|
|
21
|
+
|
|
22
|
+
# @!attribute x_profile_id
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :x_profile_id, String
|
|
26
|
+
|
|
27
|
+
# @!method initialize(page: nil, page_size: nil, x_profile_id: nil, request_options: {})
|
|
28
|
+
# @param page [Integer] Page number, from 1
|
|
29
|
+
#
|
|
30
|
+
# @param page_size [Integer]
|
|
31
|
+
#
|
|
32
|
+
# @param x_profile_id [String]
|
|
33
|
+
#
|
|
34
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
data/lib/sentdm/models/{calls/participant_remove_all_params.rb → voice/agent_retrieve_params.rb}
RENAMED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
# @see Sentdm::Resources::
|
|
7
|
-
class
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#retrieve
|
|
7
|
+
class AgentRetrieveParams < Sentdm::Internal::Type::BaseModel
|
|
8
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#rotate_secret
|
|
7
|
+
class AgentRotateSecretParams < Sentdm::Models::MutationRequest
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute idempotency_key
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :idempotency_key, String
|
|
20
|
+
|
|
21
|
+
# @!attribute x_profile_id
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :x_profile_id, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
27
|
+
# @param id [String]
|
|
28
|
+
# @param idempotency_key [String]
|
|
29
|
+
# @param x_profile_id [String]
|
|
30
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#update
|
|
7
|
+
class AgentUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute audio
|
|
17
|
+
# Audio sessions: { sample_rate }; null restores the default.
|
|
18
|
+
#
|
|
19
|
+
# @return [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil]
|
|
20
|
+
optional :audio, -> { Sentdm::Voice::VoiceAgentAudioSpec }, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute fallback
|
|
23
|
+
# A new fallback party, or null for none.
|
|
24
|
+
#
|
|
25
|
+
# @return [Sentdm::Models::Voice::VoiceAgentPartySpec, nil]
|
|
26
|
+
optional :fallback, -> { Sentdm::Voice::VoiceAgentPartySpec }, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute greeting
|
|
29
|
+
# A new greeting, or null for none.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :greeting, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute limits
|
|
35
|
+
# The whole limits object; null restores the defaults.
|
|
36
|
+
#
|
|
37
|
+
# @return [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
|
|
38
|
+
optional :limits, -> { Sentdm::Voice::VoiceAgentLimitsSpec }, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute name
|
|
41
|
+
# A new name, 1 to 100 characters.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :name, String
|
|
45
|
+
|
|
46
|
+
# @!attribute sandbox
|
|
47
|
+
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
48
|
+
# for testing integrations without actual execution
|
|
49
|
+
#
|
|
50
|
+
# @return [Boolean, nil]
|
|
51
|
+
optional :sandbox, Sentdm::Internal::Type::Boolean
|
|
52
|
+
|
|
53
|
+
# @!attribute session_type
|
|
54
|
+
# text or audio. Changing it drops the settings the other type cannot have
|
|
55
|
+
# (speech, audio, greeting) unless the body sends them.
|
|
56
|
+
#
|
|
57
|
+
# @return [String, nil]
|
|
58
|
+
optional :session_type, String
|
|
59
|
+
|
|
60
|
+
# @!attribute speech
|
|
61
|
+
# Text sessions: { setting, voice, language }, replaced whole; null restores the
|
|
62
|
+
# defaults.
|
|
63
|
+
#
|
|
64
|
+
# @return [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil]
|
|
65
|
+
optional :speech, -> { Sentdm::Voice::VoiceAgentSpeechSpec }, nil?: true
|
|
66
|
+
|
|
67
|
+
# @!attribute tools
|
|
68
|
+
# The whole list of tools; null restores the default.
|
|
69
|
+
#
|
|
70
|
+
# @return [Array<String>, nil]
|
|
71
|
+
optional :tools, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute transcripts
|
|
74
|
+
# The whole transcripts object; null restores the defaults.
|
|
75
|
+
#
|
|
76
|
+
# @return [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
|
|
77
|
+
optional :transcripts, -> { Sentdm::Voice::VoiceAgentTranscriptsSpec }, nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute transfer_targets
|
|
80
|
+
# The whole list of parties; null clears it.
|
|
81
|
+
#
|
|
82
|
+
# @return [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil]
|
|
83
|
+
optional :transfer_targets,
|
|
84
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceAgentPartySpec] },
|
|
85
|
+
nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute websocket_url
|
|
88
|
+
# A new wss:// URL, or null for an agent that dials in.
|
|
89
|
+
#
|
|
90
|
+
# @return [String, nil]
|
|
91
|
+
optional :websocket_url, String, nil?: true
|
|
92
|
+
|
|
93
|
+
# @!attribute idempotency_key
|
|
94
|
+
#
|
|
95
|
+
# @return [String, nil]
|
|
96
|
+
optional :idempotency_key, String
|
|
97
|
+
|
|
98
|
+
# @!attribute x_profile_id
|
|
99
|
+
#
|
|
100
|
+
# @return [String, nil]
|
|
101
|
+
optional :x_profile_id, String
|
|
102
|
+
|
|
103
|
+
# @!method initialize(id:, audio: nil, fallback: nil, greeting: nil, limits: nil, name: nil, sandbox: nil, session_type: nil, speech: nil, tools: nil, transcripts: nil, transfer_targets: nil, websocket_url: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
104
|
+
# Some parameter documentations has been truncated, see
|
|
105
|
+
# {Sentdm::Models::Voice::AgentUpdateParams} for more details.
|
|
106
|
+
#
|
|
107
|
+
# @param id [String]
|
|
108
|
+
#
|
|
109
|
+
# @param audio [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil] Audio sessions: { sample_rate }; null restores the default.
|
|
110
|
+
#
|
|
111
|
+
# @param fallback [Sentdm::Models::Voice::VoiceAgentPartySpec, nil] A new fallback party, or null for none.
|
|
112
|
+
#
|
|
113
|
+
# @param greeting [String, nil] A new greeting, or null for none.
|
|
114
|
+
#
|
|
115
|
+
# @param limits [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil] The whole limits object; null restores the defaults.
|
|
116
|
+
#
|
|
117
|
+
# @param name [String] A new name, 1 to 100 characters.
|
|
118
|
+
#
|
|
119
|
+
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
120
|
+
#
|
|
121
|
+
# @param session_type [String] text or audio. Changing it drops the settings the other type cannot have (speech
|
|
122
|
+
#
|
|
123
|
+
# @param speech [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil] Text sessions: { setting, voice, language }, replaced whole; null restores the d
|
|
124
|
+
#
|
|
125
|
+
# @param tools [Array<String>, nil] The whole list of tools; null restores the default.
|
|
126
|
+
#
|
|
127
|
+
# @param transcripts [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil] The whole transcripts object; null restores the defaults.
|
|
128
|
+
#
|
|
129
|
+
# @param transfer_targets [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil] The whole list of parties; null clears it.
|
|
130
|
+
#
|
|
131
|
+
# @param websocket_url [String, nil] A new wss:// URL, or null for an agent that dials in.
|
|
132
|
+
#
|
|
133
|
+
# @param idempotency_key [String]
|
|
134
|
+
#
|
|
135
|
+
# @param x_profile_id [String]
|
|
136
|
+
#
|
|
137
|
+
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
# @see Sentdm::Resources::Calls
|
|
7
|
-
class
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Calls#retrieve
|
|
7
|
+
class APIResponseOfCall < Sentdm::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute data
|
|
9
|
-
#
|
|
9
|
+
# A call record
|
|
10
10
|
#
|
|
11
|
-
# @return [
|
|
12
|
-
optional :data, -> { Sentdm::
|
|
11
|
+
# @return [Sentdm::Models::Voice::Call, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Voice::Call }, nil?: true
|
|
13
13
|
|
|
14
14
|
# @!attribute error
|
|
15
15
|
# Error information
|
|
@@ -32,7 +32,7 @@ module Sentdm
|
|
|
32
32
|
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
33
|
# Standard API response envelope for all v3 endpoints
|
|
34
34
|
#
|
|
35
|
-
# @param data [
|
|
35
|
+
# @param data [Sentdm::Models::Voice::Call, nil] A call record
|
|
36
36
|
#
|
|
37
37
|
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
38
|
#
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Calls#list_recordings
|
|
7
|
+
class APIResponseOfCallRecordings < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# The recordings of a call, each as a short-lived download link
|
|
10
|
+
#
|
|
11
|
+
# @return [Sentdm::Models::Voice::CallRecordings, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Voice::CallRecordings }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Sentdm::Models::Voice::CallRecordings, nil] The recordings of a call, each as a short-lived download link
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class APIResponseOfCallsList < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
# Paginated list of calls
|
|
9
|
+
#
|
|
10
|
+
# @return [Sentdm::Models::Voice::CallsList, nil]
|
|
11
|
+
optional :data, -> { Sentdm::Voice::CallsList }, nil?: true
|
|
12
|
+
|
|
13
|
+
# @!attribute error
|
|
14
|
+
# Error information
|
|
15
|
+
#
|
|
16
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute meta
|
|
20
|
+
# Request and response metadata
|
|
21
|
+
#
|
|
22
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
+
|
|
25
|
+
# @!attribute success
|
|
26
|
+
# Indicates whether the request was successful
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
+
# Standard API response envelope for all v3 endpoints
|
|
33
|
+
#
|
|
34
|
+
# @param data [Sentdm::Models::Voice::CallsList, nil] Paginated list of calls
|
|
35
|
+
#
|
|
36
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
+
#
|
|
38
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
+
#
|
|
40
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#create
|
|
7
|
+
class APIResponseOfVoiceAgent < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# A voice agent as stored: what was written with every default filled in, plus the
|
|
10
|
+
# signing secret the one time it is shown (on create, and on rotate). The one
|
|
11
|
+
# shape every read of an agent answers with, on /v3/voice/agents and on the admin
|
|
12
|
+
# API the dashboard uses, so the two cannot drift.
|
|
13
|
+
#
|
|
14
|
+
# @return [Sentdm::Models::Voice::VoiceAgent, nil]
|
|
15
|
+
optional :data, -> { Sentdm::Voice::VoiceAgent }, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute error
|
|
18
|
+
# Error information
|
|
19
|
+
#
|
|
20
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
21
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute meta
|
|
24
|
+
# Request and response metadata
|
|
25
|
+
#
|
|
26
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
27
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
28
|
+
|
|
29
|
+
# @!attribute success
|
|
30
|
+
# Indicates whether the request was successful
|
|
31
|
+
#
|
|
32
|
+
# @return [Boolean, nil]
|
|
33
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
34
|
+
|
|
35
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {Sentdm::Models::Voice::APIResponseOfVoiceAgent} for more details.
|
|
38
|
+
#
|
|
39
|
+
# Standard API response envelope for all v3 endpoints
|
|
40
|
+
#
|
|
41
|
+
# @param data [Sentdm::Models::Voice::VoiceAgent, nil] A voice agent as stored: what was written with every default filled in, plus the
|
|
42
|
+
#
|
|
43
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
44
|
+
#
|
|
45
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
46
|
+
#
|
|
47
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
# @see Sentdm::Resources::Voice::Agents#rotate_secret
|
|
7
|
+
class APIResponseOfVoiceAgentSecret < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
# A freshly rotated signing secret.
|
|
10
|
+
#
|
|
11
|
+
# @return [Sentdm::Models::Voice::VoiceAgentSecret, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Voice::VoiceAgentSecret }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Standard API response envelope for all v3 endpoints
|
|
34
|
+
#
|
|
35
|
+
# @param data [Sentdm::Models::Voice::VoiceAgentSecret, nil] A freshly rotated signing secret.
|
|
36
|
+
#
|
|
37
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
+
#
|
|
39
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
+
#
|
|
41
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class APIResponseOfVoiceAgentsList < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
# A page of the account's agents. The agent itself is VoiceAgentResponse, shared
|
|
9
|
+
# with the admin API.
|
|
10
|
+
#
|
|
11
|
+
# @return [Sentdm::Models::Voice::VoiceAgentsList, nil]
|
|
12
|
+
optional :data, -> { Sentdm::Voice::VoiceAgentsList }, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute error
|
|
15
|
+
# Error information
|
|
16
|
+
#
|
|
17
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute meta
|
|
21
|
+
# Request and response metadata
|
|
22
|
+
#
|
|
23
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
+
|
|
26
|
+
# @!attribute success
|
|
27
|
+
# Indicates whether the request was successful
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Sentdm::Models::Voice::APIResponseOfVoiceAgentsList} for more details.
|
|
35
|
+
#
|
|
36
|
+
# Standard API response envelope for all v3 endpoints
|
|
37
|
+
#
|
|
38
|
+
# @param data [Sentdm::Models::Voice::VoiceAgentsList, nil] A page of the account's agents. The agent itself is VoiceAgentResponse, shared w
|
|
39
|
+
#
|
|
40
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
41
|
+
#
|
|
42
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
43
|
+
#
|
|
44
|
+
# @param success [Boolean] Indicates whether the request was successful
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|