daily-ruby 1.0.0 → 1.0.1
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/Gemfile +1 -1
- data/Gemfile.lock +17 -16
- data/README.md +205 -192
- data/daily-ruby-1.0.0.gem +0 -0
- data/daily-ruby.gemspec +2 -1
- data/docs/BatchProcessorError.md +24 -0
- data/docs/BatchProcessorErrorPayload.md +26 -0
- data/docs/BatchProcessorErrorPayloadInput.md +24 -0
- data/docs/BatchProcessorJobFinished.md +24 -0
- data/docs/BatchProcessorJobFinishedPayload.md +26 -0
- data/docs/BatchProcessorJobFinishedPayloadInput.md +24 -0
- data/docs/BatchProcessorJobFinishedPayloadOutput.md +24 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputConcept.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSoap.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSoapS3Config.md +22 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputSummary.md +20 -0
- data/docs/BatchProcessorJobFinishedPayloadOutputTranscriptionInner.md +20 -0
- data/docs/BuyPhoneNumberRequest.md +18 -0
- data/docs/DailyStreamingCustomLayoutConfig.md +1 -1
- data/docs/DailyStreamingCustomLayoutConfigCompositionParamsValue.md +15 -0
- data/docs/DialinApi.md +80 -0
- data/docs/DialoutProperties.md +26 -0
- data/docs/DialoutPropertiesCodecs.md +20 -0
- data/docs/DomainProperties.md +14 -4
- data/docs/EjectRequest.md +6 -2
- data/docs/GetDomainConfig200ResponseConfig.md +2 -0
- data/docs/GetTranscriptInfo200Response.md +1 -1
- data/docs/ListAPILogs200Response.md +1 -1
- data/docs/MeetingEnded.md +24 -0
- data/docs/MeetingEndedPayload.md +24 -0
- data/docs/MeetingParticipantsGetRes.md +0 -2
- data/docs/MeetingStarted.md +24 -0
- data/docs/MeetingStartedPayload.md +22 -0
- data/docs/ParticipantJoined.md +24 -0
- data/docs/ParticipantJoinedPayload.md +32 -0
- data/docs/ParticipantJoinedPayloadPermissions.md +22 -0
- data/docs/ParticipantLeft.md +24 -0
- data/docs/ParticipantLeftPayload.md +34 -0
- data/docs/PhoneNumbersApi.md +304 -0
- data/docs/PinDialinInner.md +22 -0
- data/docs/PinDialinInnerIvrGreeting.md +18 -0
- data/docs/PinlessCallUpdateRequest.md +22 -0
- data/docs/PinlessDialinInner.md +24 -0
- data/docs/PostWebhook.md +5 -1
- data/docs/Properties.md +3 -1
- data/docs/RecordingError.md +1 -1
- data/docs/RecordingReadyToDownload.md +1 -1
- data/docs/RecordingStarted.md +1 -1
- data/docs/RoomDialOutSendDTMFRequest.md +20 -0
- data/docs/RoomDialOutStopRequest.md +18 -0
- data/docs/RoomProperties.md +12 -2
- data/docs/RoomSipCallTransferRequest.md +20 -0
- data/docs/RoomsApi.md +376 -0
- data/docs/StreamingEnded.md +1 -1
- data/docs/StreamingError.md +1 -1
- data/docs/StreamingStarted.md +1 -1
- data/docs/StreamingUpdated.md +1 -1
- data/docs/TranscriptionProperties.md +4 -2
- data/docs/UpdateWebhook.md +5 -1
- data/docs/WaitingParticipantJoined.md +24 -0
- data/docs/WaitingParticipantJoinedPayload.md +32 -0
- data/docs/WaitingParticipantLeft.md +24 -0
- data/docs/WaitingParticipantLeftPayload.md +34 -0
- data/docs/Webhook.md +6 -4
- data/lib/daily-ruby/api/batch_rooms_api.rb +3 -3
- data/lib/daily-ruby/api/dialin_api.rb +86 -0
- data/lib/daily-ruby/api/domain_api.rb +3 -3
- data/lib/daily-ruby/api/logs_api.rb +4 -4
- data/lib/daily-ruby/api/meeting_tokens_api.rb +3 -3
- data/lib/daily-ruby/api/meetings_api.rb +4 -4
- data/lib/daily-ruby/api/phone_numbers_api.rb +281 -0
- data/lib/daily-ruby/api/presence_api.rb +2 -2
- data/lib/daily-ruby/api/recordings_api.rb +5 -5
- data/lib/daily-ruby/api/rooms_api.rb +370 -20
- data/lib/daily-ruby/api/transcript_api.rb +6 -6
- data/lib/daily-ruby/api/webhooks_api.rb +6 -6
- data/lib/daily-ruby/api_client.rb +34 -28
- data/lib/daily-ruby/api_error.rb +1 -1
- data/lib/daily-ruby/configuration.rb +11 -1
- data/lib/daily-ruby/models/batch_processor_error.rb +278 -0
- data/lib/daily-ruby/models/batch_processor_error_payload.rb +289 -0
- data/lib/daily-ruby/models/batch_processor_error_payload_input.rb +280 -0
- data/lib/daily-ruby/models/batch_processor_job_finished.rb +278 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload.rb +288 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_input.rb +280 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output.rb +245 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_concept.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_soap_s3_config.rb +236 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_summary.rb +259 -0
- data/lib/daily-ruby/models/batch_processor_job_finished_payload_output_transcription_inner.rb +258 -0
- data/lib/daily-ruby/models/batch_room_create_request.rb +1 -1
- data/lib/daily-ruby/models/batch_room_create_request_rooms_inner.rb +1 -1
- data/lib/daily-ruby/models/batch_room_delete200_response.rb +1 -1
- data/lib/daily-ruby/models/buy_phone_number_request.rb +215 -0
- data/lib/daily-ruby/models/create_meeting_token200_response.rb +1 -1
- data/lib/daily-ruby/models/create_meeting_token_request.rb +1 -1
- data/lib/daily-ruby/models/create_room200_response.rb +1 -1
- data/lib/daily-ruby/models/create_room_request.rb +1 -1
- data/lib/daily-ruby/models/daily_live_streaming_options.rb +1 -1
- data/lib/daily-ruby/models/daily_live_streaming_options_rtmp_url.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_active_participant_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config.rb +4 -4
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_custom_layout_config_composition_params_value.rb +105 -0
- data/lib/daily-ruby/models/daily_streaming_default_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_endpoint.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_layout_config.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_options.rb +1 -1
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_config.rb +3 -3
- data/lib/daily-ruby/models/daily_streaming_portrait_layout_variant.rb +3 -2
- data/lib/daily-ruby/models/daily_streaming_single_participant_layout_config.rb +3 -3
- data/lib/daily-ruby/models/delete_transcript200_response.rb +3 -3
- data/lib/daily-ruby/models/dialout_properties.rb +254 -0
- data/lib/daily-ruby/models/dialout_properties_codecs.rb +228 -0
- data/lib/daily-ruby/models/domain.rb +1 -1
- data/lib/daily-ruby/models/domain_properties.rb +74 -16
- data/lib/daily-ruby/models/eject200_response.rb +1 -1
- data/lib/daily-ruby/models/eject_request.rb +30 -6
- data/lib/daily-ruby/models/get_domain_config200_response.rb +1 -1
- data/lib/daily-ruby/models/get_domain_config200_response_config.rb +11 -2
- data/lib/daily-ruby/models/get_domain_config200_response_config_recordings_bucket.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/get_meeting_info200_response_data_inner_participants_inner.rb +1 -1
- data/lib/daily-ruby/models/get_presence200_response.rb +1 -1
- data/lib/daily-ruby/models/get_presence200_response_aivw_whz_hl_lhr_sd_hdw7_ew_inner.rb +1 -1
- data/lib/daily-ruby/models/get_recording_info200_response.rb +3 -3
- data/lib/daily-ruby/models/get_recording_info200_response_tracks_inner.rb +3 -3
- data/lib/daily-ruby/models/get_recording_link200_response.rb +1 -1
- data/lib/daily-ruby/models/get_transcript_info200_response.rb +4 -4
- data/lib/daily-ruby/models/get_transcript_info200_response_out_params.rb +2 -1
- data/lib/daily-ruby/models/get_transcript_link200_response.rb +1 -1
- data/lib/daily-ruby/models/list_api_logs200_response.rb +2 -2
- data/lib/daily-ruby/models/list_recordings200_response.rb +1 -1
- data/lib/daily-ruby/models/list_recordings200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response_data_inner.rb +1 -1
- data/lib/daily-ruby/models/list_rooms200_response_data_inner_config.rb +1 -1
- data/lib/daily-ruby/models/list_transcript200_response.rb +1 -1
- data/lib/daily-ruby/models/list_transcript200_response_data_inner.rb +3 -3
- data/lib/daily-ruby/models/meeting_ended.rb +278 -0
- data/lib/daily-ruby/models/meeting_ended_payload.rb +246 -0
- data/lib/daily-ruby/models/meeting_participants_get_res.rb +2 -11
- data/lib/daily-ruby/models/meeting_participants_get_res_data_inner.rb +1 -1
- data/lib/daily-ruby/models/meeting_started.rb +278 -0
- data/lib/daily-ruby/models/meeting_started_payload.rb +236 -0
- data/lib/daily-ruby/models/meetings_meeting_get_res.rb +1 -1
- data/lib/daily-ruby/models/participant_joined.rb +278 -0
- data/lib/daily-ruby/models/participant_joined_payload.rb +285 -0
- data/lib/daily-ruby/models/participant_joined_payload_permissions.rb +240 -0
- data/lib/daily-ruby/models/participant_left.rb +278 -0
- data/lib/daily-ruby/models/participant_left_payload.rb +295 -0
- data/lib/daily-ruby/models/permissions.rb +1 -1
- data/lib/daily-ruby/models/permissions_can_admin.rb +1 -1
- data/lib/daily-ruby/models/permissions_can_send.rb +1 -1
- data/lib/daily-ruby/models/pin_dialin_inner.rb +234 -0
- data/lib/daily-ruby/models/pin_dialin_inner_ivr_greeting.rb +215 -0
- data/lib/daily-ruby/models/pinless_call_update_request.rb +235 -0
- data/lib/daily-ruby/models/pinless_dialin_inner.rb +245 -0
- data/lib/daily-ruby/models/post_webhook.rb +37 -5
- data/lib/daily-ruby/models/properties.rb +17 -7
- data/lib/daily-ruby/models/recording_error.rb +4 -4
- data/lib/daily-ruby/models/recording_error_payload.rb +3 -3
- data/lib/daily-ruby/models/recording_ready_to_download.rb +4 -4
- data/lib/daily-ruby/models/recording_ready_to_download_payload.rb +5 -5
- data/lib/daily-ruby/models/recording_started.rb +4 -4
- data/lib/daily-ruby/models/recording_started_payload.rb +3 -3
- data/lib/daily-ruby/models/recording_streaming_options.rb +3 -3
- data/lib/daily-ruby/models/recordings_bucket.rb +1 -1
- data/lib/daily-ruby/models/room_dial_out_send_dtmf_request.rb +224 -0
- data/lib/daily-ruby/models/room_dial_out_stop_request.rb +215 -0
- data/lib/daily-ruby/models/room_properties.rb +67 -9
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner.rb +267 -267
- data/lib/daily-ruby/models/room_properties_streaming_endpoints_inner_hls_config_variants_inner.rb +1 -1
- data/lib/daily-ruby/models/room_sip_call_transfer_request.rb +224 -0
- data/lib/daily-ruby/models/rooms_room_name_get_res.rb +1 -1
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res.rb +1 -1
- data/lib/daily-ruby/models/rooms_room_name_presence_get_res_data_inner.rb +1 -1
- data/lib/daily-ruby/models/send_app_message_request.rb +1 -1
- data/lib/daily-ruby/models/set_room_config_request.rb +1 -1
- data/lib/daily-ruby/models/set_session_data_request.rb +3 -3
- data/lib/daily-ruby/models/streaming_ended.rb +4 -4
- data/lib/daily-ruby/models/streaming_ended_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_error.rb +4 -4
- data/lib/daily-ruby/models/streaming_error_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_started.rb +4 -4
- data/lib/daily-ruby/models/streaming_started_payload.rb +1 -1
- data/lib/daily-ruby/models/streaming_updated.rb +4 -4
- data/lib/daily-ruby/models/streaming_updated_payload.rb +1 -1
- data/lib/daily-ruby/models/transcription_bucket.rb +1 -1
- data/lib/daily-ruby/models/transcription_properties.rb +16 -6
- data/lib/daily-ruby/models/transcription_properties_endpointing.rb +1 -1
- data/lib/daily-ruby/models/transcription_properties_redact.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request_data_value.rb +1 -1
- data/lib/daily-ruby/models/update_permissions_request_data_value_can_send.rb +1 -1
- data/lib/daily-ruby/models/update_webhook.rb +37 -5
- data/lib/daily-ruby/models/validate_meeting_token200_response.rb +1 -1
- data/lib/daily-ruby/models/waiting_participant_joined.rb +278 -0
- data/lib/daily-ruby/models/waiting_participant_joined_payload.rb +285 -0
- data/lib/daily-ruby/models/waiting_participant_left.rb +278 -0
- data/lib/daily-ruby/models/waiting_participant_left_payload.rb +295 -0
- data/lib/daily-ruby/models/webhook.rb +32 -10
- data/lib/daily-ruby/version.rb +2 -2
- data/lib/daily-ruby.rb +39 -2
- data/run.sh +3 -3
- data/spec/api/dialin_api_spec.rb +47 -0
- data/spec/api/phone_numbers_api_spec.rb +87 -0
- data/spec/models/batch_processor_error_payload_input_spec.rb +58 -0
- data/spec/models/batch_processor_error_payload_spec.rb +64 -0
- data/spec/models/batch_processor_error_spec.rb +58 -0
- data/spec/models/batch_processor_job_finished_payload_input_spec.rb +58 -0
- data/spec/models/batch_processor_job_finished_payload_output_concept_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_soap_s3_config_spec.rb +48 -0
- data/spec/models/batch_processor_job_finished_payload_output_soap_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_spec.rb +54 -0
- data/spec/models/batch_processor_job_finished_payload_output_summary_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_output_transcription_inner_spec.rb +46 -0
- data/spec/models/batch_processor_job_finished_payload_spec.rb +64 -0
- data/spec/models/batch_processor_job_finished_spec.rb +58 -0
- data/spec/models/buy_phone_number_request_spec.rb +36 -0
- data/spec/models/daily_streaming_custom_layout_config_composition_params_value_spec.rb +21 -0
- data/spec/models/dialout_properties_codecs_spec.rb +42 -0
- data/spec/models/dialout_properties_spec.rb +60 -0
- data/spec/models/meeting_ended_payload_spec.rb +54 -0
- data/spec/models/meeting_ended_spec.rb +58 -0
- data/spec/models/meeting_started_payload_spec.rb +48 -0
- data/spec/models/meeting_started_spec.rb +58 -0
- data/spec/models/participant_joined_payload_permissions_spec.rb +48 -0
- data/spec/models/participant_joined_payload_spec.rb +78 -0
- data/spec/models/participant_joined_spec.rb +58 -0
- data/spec/models/participant_left_payload_spec.rb +84 -0
- data/spec/models/participant_left_spec.rb +58 -0
- data/spec/models/pin_dialin_inner_ivr_greeting_spec.rb +36 -0
- data/spec/models/pin_dialin_inner_spec.rb +48 -0
- data/spec/models/pinless_call_update_request_spec.rb +48 -0
- data/spec/models/pinless_dialin_inner_spec.rb +54 -0
- data/spec/models/room_dial_out_send_dtmf_request_spec.rb +42 -0
- data/spec/models/room_dial_out_stop_request_spec.rb +36 -0
- data/spec/models/room_sip_call_transfer_request_spec.rb +42 -0
- data/spec/models/waiting_participant_joined_payload_spec.rb +78 -0
- data/spec/models/waiting_participant_joined_spec.rb +58 -0
- data/spec/models/waiting_participant_left_payload_spec.rb +84 -0
- data/spec/models/waiting_participant_left_spec.rb +58 -0
- data/spec/spec_helper.rb +1 -1
- metadata +170 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Daily::WaitingParticipantJoinedPayload
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **joined_at** | **Float** | The Unix epoch time in seconds representing when the waiting participant joined. | [optional] |
|
|
8
|
+
| **session_id** | **String** | The user session ID, or participant id. | [optional] |
|
|
9
|
+
| **room** | **String** | The name of the room. | [optional] |
|
|
10
|
+
| **user_id** | **String** | The ID of the user, set by the meeting token. | [optional] |
|
|
11
|
+
| **user_name** | **String** | The name of the user, set by the meeting token. | [optional] |
|
|
12
|
+
| **owner** | **Boolean** | A flag determining if this user is considered the owner. | [optional] |
|
|
13
|
+
| **will_eject_at** | **Integer** | The Unix epoch time in seconds representing when the participant will be ejected. | [optional] |
|
|
14
|
+
| **permissions** | [**ParticipantJoinedPayloadPermissions**](ParticipantJoinedPayloadPermissions.md) | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'daily-ruby'
|
|
20
|
+
|
|
21
|
+
instance = Daily::WaitingParticipantJoinedPayload.new(
|
|
22
|
+
joined_at: null,
|
|
23
|
+
session_id: null,
|
|
24
|
+
room: null,
|
|
25
|
+
user_id: null,
|
|
26
|
+
user_name: null,
|
|
27
|
+
owner: null,
|
|
28
|
+
will_eject_at: null,
|
|
29
|
+
permissions: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Daily::WaitingParticipantLeft
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **version** | **String** | The semantic version of the current message. | [optional] |
|
|
8
|
+
| **type** | **String** | The type of event that is being provided. | [optional] |
|
|
9
|
+
| **event_ts** | **Float** | The Unix epoch time in seconds representing when the event was generated. | [optional] |
|
|
10
|
+
| **payload** | [**WaitingParticipantLeftPayload**](WaitingParticipantLeftPayload.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'daily-ruby'
|
|
16
|
+
|
|
17
|
+
instance = Daily::WaitingParticipantLeft.new(
|
|
18
|
+
version: null,
|
|
19
|
+
type: null,
|
|
20
|
+
event_ts: null,
|
|
21
|
+
payload: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Daily::WaitingParticipantLeftPayload
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **joined_at** | **Float** | The Unix epoch time in seconds representing when the waiting participant joined. | [optional] |
|
|
8
|
+
| **duration** | **Float** | The time in seconds representing how long the participant was in the call. | [optional] |
|
|
9
|
+
| **session_id** | **String** | The user session ID, or participant id. | [optional] |
|
|
10
|
+
| **room** | **String** | The name of the room. | [optional] |
|
|
11
|
+
| **user_id** | **String** | The ID of the user, set by the meeting token. | [optional] |
|
|
12
|
+
| **user_name** | **String** | The name of the user, set by the meeting token. | [optional] |
|
|
13
|
+
| **owner** | **Boolean** | A flag determining if this user is considered the owner. | [optional] |
|
|
14
|
+
| **will_eject_at** | **Integer** | The Unix epoch time in seconds representing when the participant will be ejected. | [optional] |
|
|
15
|
+
| **permissions** | [**ParticipantJoinedPayloadPermissions**](ParticipantJoinedPayloadPermissions.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'daily-ruby'
|
|
21
|
+
|
|
22
|
+
instance = Daily::WaitingParticipantLeftPayload.new(
|
|
23
|
+
joined_at: null,
|
|
24
|
+
duration: null,
|
|
25
|
+
session_id: null,
|
|
26
|
+
room: null,
|
|
27
|
+
user_id: null,
|
|
28
|
+
user_name: null,
|
|
29
|
+
owner: null,
|
|
30
|
+
will_eject_at: null,
|
|
31
|
+
permissions: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/Webhook.md
CHANGED
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
| **url** | **String** | The webhook server endpoint that was provided. | [optional] |
|
|
9
9
|
| **hmac** | **String** | A secret that can be used to verify the signature of the webhook. | [optional] |
|
|
10
10
|
| **basic_auth** | **String** | The basic auth credentials that will be used to POST to the webhook URL. | [optional] |
|
|
11
|
+
| **retry_type** | **String** | The retry configuration for this webhook endpoint to use. The default is circuit-breaker. | [optional] |
|
|
11
12
|
| **event_types** | **Array<String>** | The set of event types this webhook is subscribed to. | [optional] |
|
|
12
|
-
| **state** | **
|
|
13
|
+
| **state** | **String** | The current state of the webhook. \"FAILED\" | \"INACTIVE\" | [optional] |
|
|
13
14
|
| **failed_count** | **Float** | The number of consecutive failures this webhook has made. | [optional] |
|
|
14
|
-
| **last_moment_pushed** | **
|
|
15
|
+
| **last_moment_pushed** | **String** | The ISO 8601 time of the last moment an event was pushed to the webhook server. | [optional] |
|
|
15
16
|
| **domain_id** | **String** | The domain ID this webhook is associated with. | [optional] |
|
|
16
|
-
| **created_at** | **
|
|
17
|
-
| **updated_at** | **
|
|
17
|
+
| **created_at** | **String** | The ISO 8601 time of when this webhook was created. | [optional] |
|
|
18
|
+
| **updated_at** | **String** | The ISO 8601 time of when this webhook was last updated. | [optional] |
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -26,6 +27,7 @@ instance = Daily::Webhook.new(
|
|
|
26
27
|
url: null,
|
|
27
28
|
hmac: null,
|
|
28
29
|
basic_auth: null,
|
|
30
|
+
retry_type: null,
|
|
29
31
|
event_types: null,
|
|
30
32
|
state: null,
|
|
31
33
|
failed_count: null,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,7 +47,7 @@ module Daily
|
|
|
47
47
|
# header parameters
|
|
48
48
|
header_params = opts[:header_params] || {}
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
51
|
# HTTP header 'Content-Type'
|
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
53
|
if !content_type.nil?
|
|
@@ -109,7 +109,7 @@ module Daily
|
|
|
109
109
|
# header parameters
|
|
110
110
|
header_params = opts[:header_params] || {}
|
|
111
111
|
# HTTP header 'Accept' (if needed)
|
|
112
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
112
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
113
113
|
|
|
114
114
|
# form parameters
|
|
115
115
|
form_params = opts[:form_params] || {}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daily API
|
|
3
|
+
|
|
4
|
+
#The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
|
7
|
+
Contact: help@daily.co
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.8.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Daily
|
|
16
|
+
class DialinApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# /dialin/pinlessCallUpdate
|
|
23
|
+
# Direct a SIP or PSTN call on hold to a specified SIP URI associated to a Daily Room.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [PinlessCallUpdateRequest] :pinless_call_update_request
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def pinless_call_update(opts = {})
|
|
28
|
+
pinless_call_update_with_http_info(opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# /dialin/pinlessCallUpdate
|
|
33
|
+
# Direct a SIP or PSTN call on hold to a specified SIP URI associated to a Daily Room.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [PinlessCallUpdateRequest] :pinless_call_update_request
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def pinless_call_update_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: DialinApi.pinless_call_update ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/dialin/pinlessCallUpdate'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'pinless_call_update_request'])
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type]
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['sec0']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"DialinApi.pinless_call_update",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: DialinApi#pinless_call_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -45,7 +45,7 @@ module Daily
|
|
|
45
45
|
# header parameters
|
|
46
46
|
header_params = opts[:header_params] || {}
|
|
47
47
|
# HTTP header 'Accept' (if needed)
|
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
49
|
|
|
50
50
|
# form parameters
|
|
51
51
|
form_params = opts[:form_params] || {}
|
|
@@ -104,7 +104,7 @@ module Daily
|
|
|
104
104
|
# header parameters
|
|
105
105
|
header_params = opts[:header_params] || {}
|
|
106
106
|
# HTTP header 'Accept' (if needed)
|
|
107
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
107
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
108
108
|
# HTTP header 'Content-Type'
|
|
109
109
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
110
110
|
if !content_type.nil?
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ module Daily
|
|
|
58
58
|
# header parameters
|
|
59
59
|
header_params = opts[:header_params] || {}
|
|
60
60
|
# HTTP header 'Accept' (if needed)
|
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
62
62
|
|
|
63
63
|
# form parameters
|
|
64
64
|
form_params = opts[:form_params] || {}
|
|
@@ -124,7 +124,7 @@ module Daily
|
|
|
124
124
|
if @api_client.config.debugging
|
|
125
125
|
@api_client.config.logger.debug 'Calling API: LogsApi.list_logs ...'
|
|
126
126
|
end
|
|
127
|
-
allowable_values = ["ERROR", "INFO", "DEBUG"]
|
|
127
|
+
allowable_values = ["ERROR", "INFO", "DEBUG", "unknown_default_open_api"]
|
|
128
128
|
if @api_client.config.client_side_validation && opts[:'log_level'] && !allowable_values.include?(opts[:'log_level'])
|
|
129
129
|
fail ArgumentError, "invalid value for \"log_level\", must be one of #{allowable_values}"
|
|
130
130
|
end
|
|
@@ -147,7 +147,7 @@ module Daily
|
|
|
147
147
|
# header parameters
|
|
148
148
|
header_params = opts[:header_params] || {}
|
|
149
149
|
# HTTP header 'Accept' (if needed)
|
|
150
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
151
151
|
|
|
152
152
|
# form parameters
|
|
153
153
|
form_params = opts[:form_params] || {}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -47,7 +47,7 @@ module Daily
|
|
|
47
47
|
# header parameters
|
|
48
48
|
header_params = opts[:header_params] || {}
|
|
49
49
|
# HTTP header 'Accept' (if needed)
|
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
51
|
# HTTP header 'Content-Type'
|
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
53
|
if !content_type.nil?
|
|
@@ -118,7 +118,7 @@ module Daily
|
|
|
118
118
|
# header parameters
|
|
119
119
|
header_params = opts[:header_params] || {}
|
|
120
120
|
# HTTP header 'Accept' (if needed)
|
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
122
122
|
|
|
123
123
|
# form parameters
|
|
124
124
|
form_params = opts[:form_params] || {}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -51,7 +51,7 @@ module Daily
|
|
|
51
51
|
# header parameters
|
|
52
52
|
header_params = opts[:header_params] || {}
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
55
|
|
|
56
56
|
# form parameters
|
|
57
57
|
form_params = opts[:form_params] || {}
|
|
@@ -132,7 +132,7 @@ module Daily
|
|
|
132
132
|
# header parameters
|
|
133
133
|
header_params = opts[:header_params] || {}
|
|
134
134
|
# HTTP header 'Accept' (if needed)
|
|
135
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
136
136
|
|
|
137
137
|
# form parameters
|
|
138
138
|
form_params = opts[:form_params] || {}
|
|
@@ -204,7 +204,7 @@ module Daily
|
|
|
204
204
|
# header parameters
|
|
205
205
|
header_params = opts[:header_params] || {}
|
|
206
206
|
# HTTP header 'Accept' (if needed)
|
|
207
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
208
208
|
|
|
209
209
|
# form parameters
|
|
210
210
|
form_params = opts[:form_params] || {}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daily API
|
|
3
|
+
|
|
4
|
+
#The Daily REST API offers the ability to manage the following: - Overall Domain Configuration - Individual Room creation and config management - Meeting token creation and validation - Recording and compositing management - Meeting analytics - Logs and metrics - Real-time presence Please reach out to help@daily.co if we can help with anything
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
|
7
|
+
Contact: help@daily.co
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.8.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Daily
|
|
16
|
+
class PhoneNumbersApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# /buy-phone-number
|
|
23
|
+
# This will buy a phone number. In the POST request you can either provide the phone number you want to buy, or leave it empty. If the specified `number` is still available, it will be bought or the API will return a failure. Alternatively, if you skipped the `number` field, a random phone number from California (CA) will be bought.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [BuyPhoneNumberRequest] :buy_phone_number_request
|
|
26
|
+
# @return [Object]
|
|
27
|
+
def buy_phone_number(opts = {})
|
|
28
|
+
data, _status_code, _headers = buy_phone_number_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# /buy-phone-number
|
|
33
|
+
# This will buy a phone number. In the POST request you can either provide the phone number you want to buy, or leave it empty. If the specified `number` is still available, it will be bought or the API will return a failure. Alternatively, if you skipped the `number` field, a random phone number from California (CA) will be bought.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [BuyPhoneNumberRequest] :buy_phone_number_request
|
|
36
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
37
|
+
def buy_phone_number_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: PhoneNumbersApi.buy_phone_number ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/buy-phone-number'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'buy_phone_number_request'])
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['sec0']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"PhoneNumbersApi.buy_phone_number",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: PhoneNumbersApi#buy_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# /list-available-numbers
|
|
87
|
+
# Search for available phone numbers to purchase
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :areacode An areacode to search within.
|
|
90
|
+
# @option opts [String] :region A region or state to search within. Must be an ISO 3166-2 alpha-2 code, i.e. CA for California. Cannot be used in combination with areacode.
|
|
91
|
+
# @option opts [String] :city A specific City to search within. Example, New York. The string must be url encoded because it is a url parameter. Must be used in combination with region. Cannot be used in combination with areacode, starts_with, contains, or ends_with.
|
|
92
|
+
# @option opts [String] :contains A string of 3 to 7 digits that should appear somewhere in the number.
|
|
93
|
+
# @option opts [String] :starts_with A string of 3 to 7 digits that should be used as the start of a number. Cannot be used in combination with contains or ends_with.
|
|
94
|
+
# @option opts [String] :ends_with A string of 3 to 7 digits that should be used as the end of a number. Cannot be used in combination with starts_with or contains.
|
|
95
|
+
# @return [nil]
|
|
96
|
+
def list_available_numbers(opts = {})
|
|
97
|
+
list_available_numbers_with_http_info(opts)
|
|
98
|
+
nil
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# /list-available-numbers
|
|
102
|
+
# Search for available phone numbers to purchase
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :areacode An areacode to search within.
|
|
105
|
+
# @option opts [String] :region A region or state to search within. Must be an ISO 3166-2 alpha-2 code, i.e. CA for California. Cannot be used in combination with areacode.
|
|
106
|
+
# @option opts [String] :city A specific City to search within. Example, New York. The string must be url encoded because it is a url parameter. Must be used in combination with region. Cannot be used in combination with areacode, starts_with, contains, or ends_with.
|
|
107
|
+
# @option opts [String] :contains A string of 3 to 7 digits that should appear somewhere in the number.
|
|
108
|
+
# @option opts [String] :starts_with A string of 3 to 7 digits that should be used as the start of a number. Cannot be used in combination with contains or ends_with.
|
|
109
|
+
# @option opts [String] :ends_with A string of 3 to 7 digits that should be used as the end of a number. Cannot be used in combination with starts_with or contains.
|
|
110
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
111
|
+
def list_available_numbers_with_http_info(opts = {})
|
|
112
|
+
if @api_client.config.debugging
|
|
113
|
+
@api_client.config.logger.debug 'Calling API: PhoneNumbersApi.list_available_numbers ...'
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '/list-available-numbers'
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
query_params[:'areacode'] = opts[:'areacode'] if !opts[:'areacode'].nil?
|
|
121
|
+
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
|
122
|
+
query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
|
|
123
|
+
query_params[:'contains'] = opts[:'contains'] if !opts[:'contains'].nil?
|
|
124
|
+
query_params[:'starts_with'] = opts[:'starts_with'] if !opts[:'starts_with'].nil?
|
|
125
|
+
query_params[:'ends_with'] = opts[:'ends_with'] if !opts[:'ends_with'].nil?
|
|
126
|
+
|
|
127
|
+
# header parameters
|
|
128
|
+
header_params = opts[:header_params] || {}
|
|
129
|
+
# HTTP header 'Accept' (if needed)
|
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = opts[:form_params] || {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = opts[:debug_body]
|
|
137
|
+
|
|
138
|
+
# return_type
|
|
139
|
+
return_type = opts[:debug_return_type]
|
|
140
|
+
|
|
141
|
+
# auth_names
|
|
142
|
+
auth_names = opts[:debug_auth_names] || ['sec0']
|
|
143
|
+
|
|
144
|
+
new_options = opts.merge(
|
|
145
|
+
:operation => :"PhoneNumbersApi.list_available_numbers",
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => return_type
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
155
|
+
if @api_client.config.debugging
|
|
156
|
+
@api_client.config.logger.debug "API called: PhoneNumbersApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# /purchased-phone-numbers
|
|
162
|
+
# List the purchased phone numbers for this domain
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @return [nil]
|
|
165
|
+
def purchased_phone_nunbers(opts = {})
|
|
166
|
+
purchased_phone_nunbers_with_http_info(opts)
|
|
167
|
+
nil
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# /purchased-phone-numbers
|
|
171
|
+
# List the purchased phone numbers for this domain
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
174
|
+
def purchased_phone_nunbers_with_http_info(opts = {})
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug 'Calling API: PhoneNumbersApi.purchased_phone_nunbers ...'
|
|
177
|
+
end
|
|
178
|
+
# resource path
|
|
179
|
+
local_var_path = '/purchased-phone-numbers'
|
|
180
|
+
|
|
181
|
+
# query parameters
|
|
182
|
+
query_params = opts[:query_params] || {}
|
|
183
|
+
|
|
184
|
+
# header parameters
|
|
185
|
+
header_params = opts[:header_params] || {}
|
|
186
|
+
# HTTP header 'Accept' (if needed)
|
|
187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
188
|
+
|
|
189
|
+
# form parameters
|
|
190
|
+
form_params = opts[:form_params] || {}
|
|
191
|
+
|
|
192
|
+
# http body (model)
|
|
193
|
+
post_body = opts[:debug_body]
|
|
194
|
+
|
|
195
|
+
# return_type
|
|
196
|
+
return_type = opts[:debug_return_type]
|
|
197
|
+
|
|
198
|
+
# auth_names
|
|
199
|
+
auth_names = opts[:debug_auth_names] || ['sec0']
|
|
200
|
+
|
|
201
|
+
new_options = opts.merge(
|
|
202
|
+
:operation => :"PhoneNumbersApi.purchased_phone_nunbers",
|
|
203
|
+
:header_params => header_params,
|
|
204
|
+
:query_params => query_params,
|
|
205
|
+
:form_params => form_params,
|
|
206
|
+
:body => post_body,
|
|
207
|
+
:auth_names => auth_names,
|
|
208
|
+
:return_type => return_type
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
@api_client.config.logger.debug "API called: PhoneNumbersApi#purchased_phone_nunbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
214
|
+
end
|
|
215
|
+
return data, status_code, headers
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# release-phone-number/:id
|
|
219
|
+
# Release a purchased number. The number is referenced by its id. A number cannot be deleted within the 14 days of purchase. Calling this API before this period expires results in an error.
|
|
220
|
+
# @param id [String]
|
|
221
|
+
# @param [Hash] opts the optional parameters
|
|
222
|
+
# @return [Object]
|
|
223
|
+
def release_phone_number(id, opts = {})
|
|
224
|
+
data, _status_code, _headers = release_phone_number_with_http_info(id, opts)
|
|
225
|
+
data
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# release-phone-number/:id
|
|
229
|
+
# Release a purchased number. The number is referenced by its id. A number cannot be deleted within the 14 days of purchase. Calling this API before this period expires results in an error.
|
|
230
|
+
# @param id [String]
|
|
231
|
+
# @param [Hash] opts the optional parameters
|
|
232
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
233
|
+
def release_phone_number_with_http_info(id, opts = {})
|
|
234
|
+
if @api_client.config.debugging
|
|
235
|
+
@api_client.config.logger.debug 'Calling API: PhoneNumbersApi.release_phone_number ...'
|
|
236
|
+
end
|
|
237
|
+
# verify the required parameter 'id' is set
|
|
238
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
239
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PhoneNumbersApi.release_phone_number"
|
|
240
|
+
end
|
|
241
|
+
# resource path
|
|
242
|
+
local_var_path = '/release-phone-number/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
243
|
+
|
|
244
|
+
# query parameters
|
|
245
|
+
query_params = opts[:query_params] || {}
|
|
246
|
+
|
|
247
|
+
# header parameters
|
|
248
|
+
header_params = opts[:header_params] || {}
|
|
249
|
+
# HTTP header 'Accept' (if needed)
|
|
250
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
|
+
|
|
252
|
+
# form parameters
|
|
253
|
+
form_params = opts[:form_params] || {}
|
|
254
|
+
|
|
255
|
+
# http body (model)
|
|
256
|
+
post_body = opts[:debug_body]
|
|
257
|
+
|
|
258
|
+
# return_type
|
|
259
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
260
|
+
|
|
261
|
+
# auth_names
|
|
262
|
+
auth_names = opts[:debug_auth_names] || ['sec0']
|
|
263
|
+
|
|
264
|
+
new_options = opts.merge(
|
|
265
|
+
:operation => :"PhoneNumbersApi.release_phone_number",
|
|
266
|
+
:header_params => header_params,
|
|
267
|
+
:query_params => query_params,
|
|
268
|
+
:form_params => form_params,
|
|
269
|
+
:body => post_body,
|
|
270
|
+
:auth_names => auth_names,
|
|
271
|
+
:return_type => return_type
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
275
|
+
if @api_client.config.debugging
|
|
276
|
+
@api_client.config.logger.debug "API called: PhoneNumbersApi#release_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
277
|
+
end
|
|
278
|
+
return data, status_code, headers
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.1.1
|
|
7
7
|
Contact: help@daily.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.8.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@ module Daily
|
|
|
43
43
|
# header parameters
|
|
44
44
|
header_params = opts[:header_params] || {}
|
|
45
45
|
# HTTP header 'Accept' (if needed)
|
|
46
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
46
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
47
47
|
|
|
48
48
|
# form parameters
|
|
49
49
|
form_params = opts[:form_params] || {}
|