Skip to content

Commit

Permalink
New parameter create_mpc_if_alone in MPC Add Participant API (#195)
Browse files Browse the repository at this point in the history
* New parameter `create_mpc_if_alone` in MPC Add Participant API

* param name change

* parameter name change

* Version commit

* changelog update

* changes

---------

Co-authored-by: eniyavan <eniyavan@plivo.com>
  • Loading branch information
1 parent 38b1493 commit cc43e39
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 50 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [7.45.2](https://github.com/plivo/plivo-go/tree/v7.45.2) (2024-01-25)
**Feature - Added new params 'create_mpc_with_single_participant' for Add Participant API of MPC**
- Added new params 'create_mpc_with_single_participant' for Add Participant API of MPC

## [7.45.1](https://github.com/plivo/plivo-go/tree/v7.45.1) (2023-12-19)
**Feature - Added type params for speak api in call and mpc**
- Added params 'type' for POST Speak API for Call and MPC
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.45.1"
const sdkVersion = "7.45.2"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
99 changes: 50 additions & 49 deletions multipartycall.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,56 @@ type MPCUpdateResponse struct {
}

type MultiPartyCallAddParticipantParams struct {
Role string `json:"role,omitempty" url:"role,omitempty"`
From string `json:"from,omitempty" url:"from,omitempty"`
To string `json:"to,omitempty" url:"to,omitempty"`
CallUuid string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"`
CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"`
CallStatusCallbackUrl string `json:"call_status_callback_url,omitempty" url:"call_status_callback_url,omitempty"`
CallStatusCallbackMethod string `json:"call_status_callback_method,omitempty" url:"call_status_callback_method,omitempty"`
SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"`
ConfirmKey string `json:"confirm_key,omitempty" url:"confirm_key,omitempty"`
ConfirmKeySoundUrl string `json:"confirm_key_sound_url,omitempty" url:"confirm_key_sound_url,omitempty"`
ConfirmKeySoundMethod string `json:"confirm_key_sound_method,omitempty" url:"confirm_key_sound_method,omitempty"`
DialMusic string `json:"dial_music,omitempty" url:"dial_music,omitempty"`
RingTimeout interface{} `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"`
DelayDial interface{} `json:"delay_dial,omitempty" uril:"caller_name,omitempty"`
MaxDuration int64 `json:"max_duration,omitempty" url:"max_duration,omitempty"`
MaxParticipants int64 `json:"max_participants,omitempty" url:"max_participants,omitempty"`
WaitMusicUrl string `json:"wait_music_url,omitempty" url:"wait_music_url,omitempty"`
WaitMusicMethod string `json:"wait_music_method,omitempty" url:"wait_music_method,omitempty"`
AgentHoldMusicUrl string `json:"agent_hold_music_url,omitempty" url:"agent_hold_music_url,omitempty"`
AgentHoldMusicMethod string `json:"agent_hold_music_method,omitempty" url:"agent_hold_music_method,omitempty"`
CustomerHoldMusicUrl string `json:"customer_hold_music_url,omitempty" url:"customer_hold_music_url,omitempty"`
CustomerHoldMusicMethod string `json:"customer_hold_music_method,omitempty" url:"customer_hold_music_method,omitempty"`
RecordingCallbackUrl string `json:"recording_callback_url,omitempty" url:"recording_callback_url,omitempty"`
RecordingCallbackMethod string `json:"recording_callback_method,omitempty" url:"recording_callback_method,omitempty"`
StatusCallbackUrl string `json:"status_callback_url,omitempty" url:"status_callback_url,omitempty"`
StatusCallbackMethod string `json:"status_callback_method,omitempty" url:"status_callback_method,omitempty"`
OnExitActionUrl string `json:"on_exit_action_url,omitempty" url:"on_exit_action_url,omitempty"`
OnExitActionMethod string `json:"on_exit_action_method,omitempty" url:"on_exit_action_method,omitempty"`
Record bool `json:"record,omitempty" url:"record,omitempty"`
RecordFileFormat string `json:"record_file_format,omitempty" url:"record_file_format,omitempty"`
StatusCallbackEvents string `json:"status_callback_events,omitempty" url:"status_callback_events,omitempty"`
StayAlone bool `json:"stay_alone,omitempty" url:"stay_alone,omitempty"`
CoachMode bool `json:"coach_mode,omitempty" url:"coach_mode,omitempty"`
Mute bool `json:"mute,omitempty" url:"mute,omitempty"`
Hold bool `json:"hold,omitempty" url:"hold,omitempty"`
StartMpcOnEnter *bool `json:"start_mpc_on_enter,omitempty" url:"start_mpc_on_enter,omitempty"`
EndMpcOnExit bool `json:"end_mpc_on_exit,omitempty" url:"end_mpc_on_exit,omitempty"`
RelayDtmfInputs bool `json:"relay_dtmf_inputs,omitempty" url:"relay_dtmf_inputs,omitempty"`
EnterSound string `json:"enter_sound,omitempty" url:"enter_sound,omitempty"`
EnterSoundMethod string `json:"enter_sound_method,omitempty" url:"enter_sound_method,omitempty"`
ExitSound string `json:"exit_sound,omitempty" url:"exit_sound,omitempty"`
ExitSoundMethod string `json:"exit_sound_method,omitempty" url:"exit_sound_method,omitempty"`
StartRecordingAudio string `json:"start_recording_audio,omitempty" url:"start_recording_audio,omitempty"`
StartRecordingAudioMethod string `json:"start_recording_audio_method,omitempty" url:"start_recording_audio_method,omitempty"`
StopRecordingAudio string `json:"stop_recording_audio,omitempty" url:"stop_recording_audio,omitempty"`
StopRecordingAudioMethod string `json:"stop_recording_audio_method,omitempty" url:"stop_recording_audio_method,omitempty"`
RecordMinMemberCount int64 `json:"record_min_member_count,omitempty" url:"record_min_member_count,omitempty"`
AgentHoldMusic string `json:"agent_hold_music,omitempty" url:"agent_hold_music,omitempty"`
CustomerHoldMusic string `json:"customer_hold_music,omitempty" url:"customer_hold_music,omitempty"`
Role string `json:"role,omitempty" url:"role,omitempty"`
From string `json:"from,omitempty" url:"from,omitempty"`
To string `json:"to,omitempty" url:"to,omitempty"`
CallUuid string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"`
CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"`
CallStatusCallbackUrl string `json:"call_status_callback_url,omitempty" url:"call_status_callback_url,omitempty"`
CallStatusCallbackMethod string `json:"call_status_callback_method,omitempty" url:"call_status_callback_method,omitempty"`
SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"`
ConfirmKey string `json:"confirm_key,omitempty" url:"confirm_key,omitempty"`
ConfirmKeySoundUrl string `json:"confirm_key_sound_url,omitempty" url:"confirm_key_sound_url,omitempty"`
ConfirmKeySoundMethod string `json:"confirm_key_sound_method,omitempty" url:"confirm_key_sound_method,omitempty"`
DialMusic string `json:"dial_music,omitempty" url:"dial_music,omitempty"`
RingTimeout interface{} `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"`
DelayDial interface{} `json:"delay_dial,omitempty" uril:"caller_name,omitempty"`
MaxDuration int64 `json:"max_duration,omitempty" url:"max_duration,omitempty"`
MaxParticipants int64 `json:"max_participants,omitempty" url:"max_participants,omitempty"`
WaitMusicUrl string `json:"wait_music_url,omitempty" url:"wait_music_url,omitempty"`
WaitMusicMethod string `json:"wait_music_method,omitempty" url:"wait_music_method,omitempty"`
AgentHoldMusicUrl string `json:"agent_hold_music_url,omitempty" url:"agent_hold_music_url,omitempty"`
AgentHoldMusicMethod string `json:"agent_hold_music_method,omitempty" url:"agent_hold_music_method,omitempty"`
CustomerHoldMusicUrl string `json:"customer_hold_music_url,omitempty" url:"customer_hold_music_url,omitempty"`
CustomerHoldMusicMethod string `json:"customer_hold_music_method,omitempty" url:"customer_hold_music_method,omitempty"`
RecordingCallbackUrl string `json:"recording_callback_url,omitempty" url:"recording_callback_url,omitempty"`
RecordingCallbackMethod string `json:"recording_callback_method,omitempty" url:"recording_callback_method,omitempty"`
StatusCallbackUrl string `json:"status_callback_url,omitempty" url:"status_callback_url,omitempty"`
StatusCallbackMethod string `json:"status_callback_method,omitempty" url:"status_callback_method,omitempty"`
OnExitActionUrl string `json:"on_exit_action_url,omitempty" url:"on_exit_action_url,omitempty"`
OnExitActionMethod string `json:"on_exit_action_method,omitempty" url:"on_exit_action_method,omitempty"`
Record bool `json:"record,omitempty" url:"record,omitempty"`
RecordFileFormat string `json:"record_file_format,omitempty" url:"record_file_format,omitempty"`
StatusCallbackEvents string `json:"status_callback_events,omitempty" url:"status_callback_events,omitempty"`
StayAlone bool `json:"stay_alone,omitempty" url:"stay_alone,omitempty"`
CoachMode bool `json:"coach_mode,omitempty" url:"coach_mode,omitempty"`
Mute bool `json:"mute,omitempty" url:"mute,omitempty"`
Hold bool `json:"hold,omitempty" url:"hold,omitempty"`
StartMpcOnEnter *bool `json:"start_mpc_on_enter,omitempty" url:"start_mpc_on_enter,omitempty"`
EndMpcOnExit bool `json:"end_mpc_on_exit,omitempty" url:"end_mpc_on_exit,omitempty"`
RelayDtmfInputs bool `json:"relay_dtmf_inputs,omitempty" url:"relay_dtmf_inputs,omitempty"`
EnterSound string `json:"enter_sound,omitempty" url:"enter_sound,omitempty"`
EnterSoundMethod string `json:"enter_sound_method,omitempty" url:"enter_sound_method,omitempty"`
ExitSound string `json:"exit_sound,omitempty" url:"exit_sound,omitempty"`
ExitSoundMethod string `json:"exit_sound_method,omitempty" url:"exit_sound_method,omitempty"`
StartRecordingAudio string `json:"start_recording_audio,omitempty" url:"start_recording_audio,omitempty"`
StartRecordingAudioMethod string `json:"start_recording_audio_method,omitempty" url:"start_recording_audio_method,omitempty"`
StopRecordingAudio string `json:"stop_recording_audio,omitempty" url:"stop_recording_audio,omitempty"`
StopRecordingAudioMethod string `json:"stop_recording_audio_method,omitempty" url:"stop_recording_audio_method,omitempty"`
RecordMinMemberCount int64 `json:"record_min_member_count,omitempty" url:"record_min_member_count,omitempty"`
AgentHoldMusic string `json:"agent_hold_music,omitempty" url:"agent_hold_music,omitempty"`
CustomerHoldMusic string `json:"customer_hold_music,omitempty" url:"customer_hold_music,omitempty"`
CreateMpcWithSingleParticipant *bool `json:"create_mpc_with_single_participant,omitempty" url:"create_mpc_with_single_participant,omitempty"`
}

type MultiPartyCallListParams struct {
Expand Down

0 comments on commit cc43e39

Please sign in to comment.