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,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentLimits < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute allowed_countries
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<String>, nil]
|
|
10
|
+
optional :allowed_countries, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute max_call_seconds
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
optional :max_call_seconds, Integer
|
|
16
|
+
|
|
17
|
+
# @!attribute max_concurrent_calls
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :max_concurrent_calls, Integer
|
|
21
|
+
|
|
22
|
+
# @!method initialize(allowed_countries: nil, max_call_seconds: nil, max_concurrent_calls: nil)
|
|
23
|
+
# @param allowed_countries [Array<String>, nil]
|
|
24
|
+
# @param max_call_seconds [Integer]
|
|
25
|
+
# @param max_concurrent_calls [Integer]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
VoiceAgentLimits = Voice::VoiceAgentLimits
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentLimitsSpec < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute allowed_countries
|
|
8
|
+
# ISO 3166-1 alpha-2 codes of the countries the agent may call or transfer to.
|
|
9
|
+
# Omit it to allow every country. Stored now, applied when the agent places calls.
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<String>, nil]
|
|
12
|
+
optional :allowed_countries, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute max_call_seconds
|
|
15
|
+
# The longest a call may last, 60 to 14,400 seconds. Default 3,600.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer, nil]
|
|
18
|
+
optional :max_call_seconds, Integer, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute max_concurrent_calls
|
|
21
|
+
# How many calls the agent may have going at once, from 1. Default 10.
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer, nil]
|
|
24
|
+
optional :max_concurrent_calls, Integer, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!method initialize(allowed_countries: nil, max_call_seconds: nil, max_concurrent_calls: nil)
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Sentdm::Models::Voice::VoiceAgentLimitsSpec} for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param allowed_countries [Array<String>, nil] ISO 3166-1 alpha-2 codes of the countries the agent may call or transfer to. Omi
|
|
31
|
+
#
|
|
32
|
+
# @param max_call_seconds [Integer, nil] The longest a call may last, 60 to 14,400 seconds. Default 3,600.
|
|
33
|
+
#
|
|
34
|
+
# @param max_concurrent_calls [Integer, nil] How many calls the agent may have going at once, from 1. Default 10.
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
VoiceAgentLimitsSpec = Voice::VoiceAgentLimitsSpec
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentParty < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute kind
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :kind, String
|
|
11
|
+
|
|
12
|
+
# @!attribute value
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :value, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(kind: nil, value: nil)
|
|
18
|
+
# @param kind [String]
|
|
19
|
+
# @param value [String]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
VoiceAgentParty = Voice::VoiceAgentParty
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentPartySpec < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute kind
|
|
8
|
+
# number, user or agent.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :kind, String, nil?: true
|
|
12
|
+
|
|
13
|
+
# @!attribute value
|
|
14
|
+
# The E.164 number, the app user's identity, or the agent id (agent\_…).
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :value, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!method initialize(kind: nil, value: nil)
|
|
20
|
+
# @param kind [String, nil] number, user or agent.
|
|
21
|
+
#
|
|
22
|
+
# @param value [String, nil] The E.164 number, the app user's identity, or the agent id (agent\_…).
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
VoiceAgentPartySpec = Voice::VoiceAgentPartySpec
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentSecret < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute signing_secret
|
|
8
|
+
# The new whsec\_ secret. The previous one stopped signing the moment this was
|
|
9
|
+
# returned. Shown once.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
optional :signing_secret, String
|
|
13
|
+
|
|
14
|
+
# @!method initialize(signing_secret: nil)
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {Sentdm::Models::Voice::VoiceAgentSecret} for more details.
|
|
17
|
+
#
|
|
18
|
+
# A freshly rotated signing secret.
|
|
19
|
+
#
|
|
20
|
+
# @param signing_secret [String] The new whsec\_ secret. The previous one stopped signing the moment this was
|
|
21
|
+
# retu
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
VoiceAgentSecret = Voice::VoiceAgentSecret
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentSpeech < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute language
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :language, String
|
|
11
|
+
|
|
12
|
+
# @!attribute setting
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :setting, String
|
|
16
|
+
|
|
17
|
+
# @!attribute voice
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :voice, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(language: nil, setting: nil, voice: nil)
|
|
23
|
+
# @param language [String]
|
|
24
|
+
# @param setting [String]
|
|
25
|
+
# @param voice [String]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
VoiceAgentSpeech = Voice::VoiceAgentSpeech
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentSpeechSpec < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute language
|
|
8
|
+
# The language spoken and listened for, a BCP 47 tag from GET /v3/voice/voices.
|
|
9
|
+
# Default en-US.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
optional :language, String, nil?: true
|
|
13
|
+
|
|
14
|
+
# @!attribute setting
|
|
15
|
+
# standard, Sent's speech. Other settings are not available yet.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :setting, String, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute voice
|
|
21
|
+
# A voice name from GET /v3/voice/voices. Default: the catalogue's default voice.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :voice, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!method initialize(language: nil, setting: nil, voice: nil)
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Sentdm::Models::Voice::VoiceAgentSpeechSpec} for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param language [String, nil] The language spoken and listened for, a BCP 47 tag from GET /v3/voice/voices. De
|
|
31
|
+
#
|
|
32
|
+
# @param setting [String, nil] standard, Sent's speech. Other settings are not available yet.
|
|
33
|
+
#
|
|
34
|
+
# @param voice [String, nil] A voice name from GET /v3/voice/voices. Default: the catalogue's default voice.
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
VoiceAgentSpeechSpec = Voice::VoiceAgentSpeechSpec
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentTranscripts < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute retention_days
|
|
8
|
+
#
|
|
9
|
+
# @return [Integer, nil]
|
|
10
|
+
optional :retention_days, Integer
|
|
11
|
+
|
|
12
|
+
# @!attribute store
|
|
13
|
+
#
|
|
14
|
+
# @return [Boolean, nil]
|
|
15
|
+
optional :store, Sentdm::Internal::Type::Boolean
|
|
16
|
+
|
|
17
|
+
# @!method initialize(retention_days: nil, store: nil)
|
|
18
|
+
# @param retention_days [Integer]
|
|
19
|
+
# @param store [Boolean]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
VoiceAgentTranscripts = Voice::VoiceAgentTranscripts
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentTranscriptsSpec < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute retention_days
|
|
8
|
+
# How long a stored transcript is kept, 1 to 365 days. Default 30.
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer, nil]
|
|
11
|
+
optional :retention_days, Integer, nil?: true
|
|
12
|
+
|
|
13
|
+
# @!attribute store
|
|
14
|
+
# Whether Sent keeps the call's transcript. Default false. Stored now, applied
|
|
15
|
+
# when transcripts land.
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean, nil]
|
|
18
|
+
optional :store, Sentdm::Internal::Type::Boolean, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!method initialize(retention_days: nil, store: nil)
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Sentdm::Models::Voice::VoiceAgentTranscriptsSpec} for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param retention_days [Integer, nil] How long a stored transcript is kept, 1 to 365 days. Default 30.
|
|
25
|
+
#
|
|
26
|
+
# @param store [Boolean, nil] Whether Sent keeps the call's transcript. Default false. Stored now, applied whe
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
VoiceAgentTranscriptsSpec = Voice::VoiceAgentTranscriptsSpec
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceAgentsList < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute agents
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<Sentdm::Models::Voice::VoiceAgent>, nil]
|
|
10
|
+
optional :agents, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceAgent] }
|
|
11
|
+
|
|
12
|
+
# @!attribute pagination
|
|
13
|
+
# Pagination metadata for list responses
|
|
14
|
+
#
|
|
15
|
+
# @return [Sentdm::Models::PaginationMeta, nil]
|
|
16
|
+
optional :pagination, -> { Sentdm::PaginationMeta }
|
|
17
|
+
|
|
18
|
+
# @!method initialize(agents: nil, pagination: nil)
|
|
19
|
+
# A page of the account's agents. The agent itself is VoiceAgentResponse, shared
|
|
20
|
+
# with the admin API.
|
|
21
|
+
#
|
|
22
|
+
# @param agents [Array<Sentdm::Models::Voice::VoiceAgent>]
|
|
23
|
+
#
|
|
24
|
+
# @param pagination [Sentdm::Models::PaginationMeta] Pagination metadata for list responses
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
VoiceAgentsList = Voice::VoiceAgentsList
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceCatalogue < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute languages
|
|
8
|
+
# BCP 47 tags accepted as speech.language.
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<String>, nil]
|
|
11
|
+
optional :languages, Sentdm::Internal::Type::ArrayOf[String]
|
|
12
|
+
|
|
13
|
+
# @!attribute voices
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Sentdm::Models::Voice::VoiceCatalogueVoice>, nil]
|
|
16
|
+
optional :voices, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceCatalogueVoice] }
|
|
17
|
+
|
|
18
|
+
# @!method initialize(languages: nil, voices: nil)
|
|
19
|
+
# The voices and languages a text-session agent may name in its speech settings:
|
|
20
|
+
# what GET /v3/voice/voices and the admin GET /voice/voices answer, in one shape.
|
|
21
|
+
#
|
|
22
|
+
# @param languages [Array<String>] BCP 47 tags accepted as speech.language.
|
|
23
|
+
#
|
|
24
|
+
# @param voices [Array<Sentdm::Models::Voice::VoiceCatalogueVoice>]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
VoiceCatalogue = Voice::VoiceCatalogue
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Voice
|
|
6
|
+
class VoiceCatalogueVoice < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute default
|
|
8
|
+
# Whether this is the voice used when an agent names none.
|
|
9
|
+
#
|
|
10
|
+
# @return [Boolean, nil]
|
|
11
|
+
optional :default, Sentdm::Internal::Type::Boolean
|
|
12
|
+
|
|
13
|
+
# @!attribute description
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :description, String
|
|
17
|
+
|
|
18
|
+
# @!attribute language
|
|
19
|
+
# The language the voice speaks.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :language, String
|
|
23
|
+
|
|
24
|
+
# @!attribute name
|
|
25
|
+
# The value to send as speech.voice.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :name, String
|
|
29
|
+
|
|
30
|
+
# @!method initialize(default: nil, description: nil, language: nil, name: nil)
|
|
31
|
+
# @param default [Boolean] Whether this is the voice used when an agent names none.
|
|
32
|
+
#
|
|
33
|
+
# @param description [String]
|
|
34
|
+
#
|
|
35
|
+
# @param language [String] The language the voice speaks.
|
|
36
|
+
#
|
|
37
|
+
# @param name [String] The value to send as speech.voice.
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
VoiceCatalogueVoice = Voice::VoiceCatalogueVoice
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
5
|
+
module Voice
|
|
6
6
|
class VoiceToken < Sentdm::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute token
|
|
8
|
-
# The signed token. Hand it to the client SDK unchanged.
|
|
8
|
+
# The signed token. Hand it to the client SDK unchanged. Treat it as opaque: read
|
|
9
|
+
# the identity, number, and expiry from this response, not from the token.
|
|
9
10
|
#
|
|
10
11
|
# @return [String, nil]
|
|
11
12
|
optional :token, String
|
|
@@ -29,9 +30,12 @@ module Sentdm
|
|
|
29
30
|
optional :number, String
|
|
30
31
|
|
|
31
32
|
# @!method initialize(token: nil, expires_at: nil, identity: nil, number: nil)
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Sentdm::Models::Voice::VoiceToken} for more details.
|
|
35
|
+
#
|
|
32
36
|
# A short-lived token your app passes to the voice client SDK to register
|
|
33
37
|
#
|
|
34
|
-
# @param token [String] The signed token. Hand it to the client SDK unchanged.
|
|
38
|
+
# @param token [String] The signed token. Hand it to the client SDK unchanged. Treat it as opaque: read
|
|
35
39
|
#
|
|
36
40
|
# @param expires_at [Time] When the token expires (UTC)
|
|
37
41
|
#
|
|
@@ -40,5 +44,7 @@ module Sentdm
|
|
|
40
44
|
# @param number [String] The phone number this identity is now bound to, in E.164 format
|
|
41
45
|
end
|
|
42
46
|
end
|
|
47
|
+
|
|
48
|
+
VoiceToken = Voice::VoiceToken
|
|
43
49
|
end
|
|
44
50
|
end
|
|
@@ -29,7 +29,18 @@ module Sentdm
|
|
|
29
29
|
# @return [Array<String>, nil]
|
|
30
30
|
optional :event_types, Sentdm::Internal::Type::ArrayOf[String]
|
|
31
31
|
|
|
32
|
+
# @!attribute is_inheritable
|
|
33
|
+
# Also delivers every sender profile's events to this webhook, at the same URL and
|
|
34
|
+
# with the same signing secret, and lets each profile see the webhook and read the
|
|
35
|
+
# events about itself. Off by default: the organization's own events only. Only an
|
|
36
|
+
# organization's version 2 webhook can set it.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean, nil]
|
|
39
|
+
optional :is_inheritable, Sentdm::Internal::Type::Boolean
|
|
40
|
+
|
|
32
41
|
# @!attribute retry_count
|
|
42
|
+
# Delivery retries. Applies to version 1 only: Svix retries a version 2 webhook on
|
|
43
|
+
# its own schedule.
|
|
33
44
|
#
|
|
34
45
|
# @return [Integer, nil]
|
|
35
46
|
optional :retry_count, Integer
|
|
@@ -43,16 +54,26 @@ module Sentdm
|
|
|
43
54
|
|
|
44
55
|
# @!attribute sender_profile
|
|
45
56
|
# Request-only: the events an organization webhook's sender profile clones
|
|
46
|
-
# receive, one clone per existing and future profile.
|
|
57
|
+
# receive, one clone per existing and future profile. A version 1 webhook's
|
|
58
|
+
# responses report it as WebhookSenderProfileV3Response.
|
|
47
59
|
#
|
|
48
60
|
# @return [Sentdm::Models::WebhookCreateParams::SenderProfile, nil]
|
|
49
61
|
optional :sender_profile, -> { Sentdm::WebhookCreateParams::SenderProfile }, nil?: true
|
|
50
62
|
|
|
51
63
|
# @!attribute timeout_seconds
|
|
64
|
+
# Delivery timeout. Applies to version 1 only.
|
|
52
65
|
#
|
|
53
66
|
# @return [Integer, nil]
|
|
54
67
|
optional :timeout_seconds, Integer
|
|
55
68
|
|
|
69
|
+
# @!attribute webhook_version
|
|
70
|
+
# Who delivers the webhook: 2, the default, is delivered by Svix and signed with
|
|
71
|
+
# the webhook-id, webhook-timestamp and webhook-signature headers; 1 is the older
|
|
72
|
+
# delivery, signed with the X-Webhook-\* headers, which will be retired.
|
|
73
|
+
#
|
|
74
|
+
# @return [Integer, nil]
|
|
75
|
+
optional :webhook_version, Integer, nil?: true
|
|
76
|
+
|
|
56
77
|
# @!attribute idempotency_key
|
|
57
78
|
#
|
|
58
79
|
# @return [String, nil]
|
|
@@ -63,7 +84,7 @@ module Sentdm
|
|
|
63
84
|
# @return [String, nil]
|
|
64
85
|
optional :x_profile_id, String
|
|
65
86
|
|
|
66
|
-
# @!method initialize(display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, retry_count: nil, sandbox: nil, sender_profile: nil, timeout_seconds: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
87
|
+
# @!method initialize(display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, is_inheritable: nil, retry_count: nil, sandbox: nil, sender_profile: nil, timeout_seconds: nil, webhook_version: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
67
88
|
# Some parameter documentations has been truncated, see
|
|
68
89
|
# {Sentdm::Models::WebhookCreateParams} for more details.
|
|
69
90
|
#
|
|
@@ -75,13 +96,17 @@ module Sentdm
|
|
|
75
96
|
#
|
|
76
97
|
# @param event_types [Array<String>]
|
|
77
98
|
#
|
|
78
|
-
# @param
|
|
99
|
+
# @param is_inheritable [Boolean] Also delivers every sender profile's events to this webhook, at the same URL and
|
|
100
|
+
#
|
|
101
|
+
# @param retry_count [Integer] Delivery retries. Applies to version 1 only: Svix retries a version 2 webhook on
|
|
79
102
|
#
|
|
80
103
|
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
81
104
|
#
|
|
82
105
|
# @param sender_profile [Sentdm::Models::WebhookCreateParams::SenderProfile, nil] Request-only: the events an organization webhook's sender profile clones receive
|
|
83
106
|
#
|
|
84
|
-
# @param timeout_seconds [Integer]
|
|
107
|
+
# @param timeout_seconds [Integer] Delivery timeout. Applies to version 1 only.
|
|
108
|
+
#
|
|
109
|
+
# @param webhook_version [Integer, nil] Who delivers the webhook: 2, the default, is delivered by Svix and signed with t
|
|
85
110
|
#
|
|
86
111
|
# @param idempotency_key [String]
|
|
87
112
|
#
|
|
@@ -104,7 +129,8 @@ module Sentdm
|
|
|
104
129
|
|
|
105
130
|
# @!method initialize(event_filters: nil, event_types: nil)
|
|
106
131
|
# Request-only: the events an organization webhook's sender profile clones
|
|
107
|
-
# receive, one clone per existing and future profile.
|
|
132
|
+
# receive, one clone per existing and future profile. A version 1 webhook's
|
|
133
|
+
# responses report it as WebhookSenderProfileV3Response.
|
|
108
134
|
#
|
|
109
135
|
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
110
136
|
# @param event_types [Array<String>]
|
|
@@ -10,6 +10,8 @@ module Sentdm
|
|
|
10
10
|
optional :id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute consecutive_failures
|
|
13
|
+
# Failed attempts since the last success. Version 1 only: always 0 on a version 2
|
|
14
|
+
# webhook, whose deliveries are in its events (GET /v3/webhooks/{id}/events).
|
|
13
15
|
#
|
|
14
16
|
# @return [Integer, nil]
|
|
15
17
|
optional :consecutive_failures, Integer
|
|
@@ -53,12 +55,24 @@ module Sentdm
|
|
|
53
55
|
# @return [Boolean, nil]
|
|
54
56
|
optional :is_active, Sentdm::Internal::Type::Boolean
|
|
55
57
|
|
|
58
|
+
# @!attribute is_inheritable
|
|
59
|
+
# Whether the webhook also receives its organization's sender profiles' events,
|
|
60
|
+
# and each profile sees it and reads the events about itself. Always false on a
|
|
61
|
+
# version 1 webhook.
|
|
62
|
+
#
|
|
63
|
+
# @return [Boolean, nil]
|
|
64
|
+
optional :is_inheritable, Sentdm::Internal::Type::Boolean
|
|
65
|
+
|
|
56
66
|
# @!attribute last_delivery_attempt_at
|
|
67
|
+
# When the webhook was last attempted. Version 1 only: always null on a version 2
|
|
68
|
+
# webhook.
|
|
57
69
|
#
|
|
58
70
|
# @return [Time, nil]
|
|
59
71
|
optional :last_delivery_attempt_at, Time, nil?: true
|
|
60
72
|
|
|
61
73
|
# @!attribute last_successful_delivery_at
|
|
74
|
+
# When the webhook last received an event. Version 1 only: always null on a
|
|
75
|
+
# version 2 webhook.
|
|
62
76
|
#
|
|
63
77
|
# @return [Time, nil]
|
|
64
78
|
optional :last_successful_delivery_at, Time, nil?: true
|
|
@@ -68,6 +82,16 @@ module Sentdm
|
|
|
68
82
|
# @return [Integer, nil]
|
|
69
83
|
optional :retry_count, Integer
|
|
70
84
|
|
|
85
|
+
# @!attribute sender_profile
|
|
86
|
+
# The events a version 1 webhook's sender profile clones receive, as a response
|
|
87
|
+
# reports them.
|
|
88
|
+
#
|
|
89
|
+
# Its own type, field for field the same as the request's sender_profile. A
|
|
90
|
+
# response is not a request, whatever it carries.
|
|
91
|
+
#
|
|
92
|
+
# @return [Sentdm::Models::WebhookResponse::SenderProfile, nil]
|
|
93
|
+
optional :sender_profile, -> { Sentdm::WebhookResponse::SenderProfile }, nil?: true
|
|
94
|
+
|
|
71
95
|
# @!attribute signing_secret
|
|
72
96
|
#
|
|
73
97
|
# @return [String, nil]
|
|
@@ -83,13 +107,20 @@ module Sentdm
|
|
|
83
107
|
# @return [Time, nil]
|
|
84
108
|
optional :updated_at, Time, nil?: true
|
|
85
109
|
|
|
86
|
-
# @!
|
|
110
|
+
# @!attribute webhook_version
|
|
111
|
+
# Who delivers the webhook: 1 the older delivery, which will be retired, or 2
|
|
112
|
+
# Svix. A webhook is created as version 2 unless the request asks for 1.
|
|
113
|
+
#
|
|
114
|
+
# @return [Integer, nil]
|
|
115
|
+
optional :webhook_version, Integer
|
|
116
|
+
|
|
117
|
+
# @!method initialize(id: nil, consecutive_failures: nil, created_at: nil, customer_id: nil, display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, is_active: nil, is_inheritable: nil, last_delivery_attempt_at: nil, last_successful_delivery_at: nil, retry_count: nil, sender_profile: nil, signing_secret: nil, timeout_seconds: nil, updated_at: nil, webhook_version: nil)
|
|
87
118
|
# Some parameter documentations has been truncated, see
|
|
88
119
|
# {Sentdm::Models::WebhookResponse} for more details.
|
|
89
120
|
#
|
|
90
121
|
# @param id [String]
|
|
91
122
|
#
|
|
92
|
-
# @param consecutive_failures [Integer]
|
|
123
|
+
# @param consecutive_failures [Integer] Failed attempts since the last success. Version 1 only: always 0 on a version 2
|
|
93
124
|
#
|
|
94
125
|
# @param created_at [Time]
|
|
95
126
|
#
|
|
@@ -105,17 +136,48 @@ module Sentdm
|
|
|
105
136
|
#
|
|
106
137
|
# @param is_active [Boolean]
|
|
107
138
|
#
|
|
108
|
-
# @param
|
|
139
|
+
# @param is_inheritable [Boolean] Whether the webhook also receives its organization's sender profiles' events, an
|
|
109
140
|
#
|
|
110
|
-
# @param
|
|
141
|
+
# @param last_delivery_attempt_at [Time, nil] When the webhook was last attempted. Version 1 only: always null on a version 2
|
|
142
|
+
#
|
|
143
|
+
# @param last_successful_delivery_at [Time, nil] When the webhook last received an event. Version 1 only: always null on a versio
|
|
111
144
|
#
|
|
112
145
|
# @param retry_count [Integer]
|
|
113
146
|
#
|
|
147
|
+
# @param sender_profile [Sentdm::Models::WebhookResponse::SenderProfile, nil] The events a version 1 webhook's sender profile clones receive, as a response re
|
|
148
|
+
#
|
|
114
149
|
# @param signing_secret [String, nil]
|
|
115
150
|
#
|
|
116
151
|
# @param timeout_seconds [Integer]
|
|
117
152
|
#
|
|
118
153
|
# @param updated_at [Time, nil]
|
|
154
|
+
#
|
|
155
|
+
# @param webhook_version [Integer] Who delivers the webhook: 1 the older delivery, which will be retired, or 2 Svix
|
|
156
|
+
|
|
157
|
+
# @see Sentdm::Models::WebhookResponse#sender_profile
|
|
158
|
+
class SenderProfile < Sentdm::Internal::Type::BaseModel
|
|
159
|
+
# @!attribute event_filters
|
|
160
|
+
#
|
|
161
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
162
|
+
optional :event_filters,
|
|
163
|
+
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
164
|
+
nil?: true
|
|
165
|
+
|
|
166
|
+
# @!attribute event_types
|
|
167
|
+
#
|
|
168
|
+
# @return [Array<String>, nil]
|
|
169
|
+
optional :event_types, Sentdm::Internal::Type::ArrayOf[String]
|
|
170
|
+
|
|
171
|
+
# @!method initialize(event_filters: nil, event_types: nil)
|
|
172
|
+
# The events a version 1 webhook's sender profile clones receive, as a response
|
|
173
|
+
# reports them.
|
|
174
|
+
#
|
|
175
|
+
# Its own type, field for field the same as the request's sender_profile. A
|
|
176
|
+
# response is not a request, whatever it carries.
|
|
177
|
+
#
|
|
178
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
179
|
+
# @param event_types [Array<String>]
|
|
180
|
+
end
|
|
119
181
|
end
|
|
120
182
|
end
|
|
121
183
|
end
|