bandwidth-sdk 17.3.2 → 18.1.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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +28 -2
  4. data/bandwidth.yml +979 -60
  5. data/coverage/.last_run.json +1 -1
  6. data/coverage/.resultset.json +783 -152
  7. data/coverage/index.html +21642 -14804
  8. data/docs/BrtcError.md +26 -0
  9. data/docs/BrtcErrorResponse.md +22 -0
  10. data/docs/BrtcErrorSource.md +24 -0
  11. data/docs/BrtcLink.md +22 -0
  12. data/docs/CreateCall.md +2 -2
  13. data/docs/CreateEndpointRequestBase.md +26 -0
  14. data/docs/CreateEndpointResponse.md +22 -0
  15. data/docs/CreateEndpointResponseData.md +32 -0
  16. data/docs/CreateWebRtcConnectionRequest.md +28 -0
  17. data/docs/Device.md +24 -0
  18. data/docs/{BusinessRegistrationIssuingCountryEnum.md → DeviceStatusEnum.md} +2 -2
  19. data/docs/Endpoint.md +30 -0
  20. data/docs/EndpointDirectionEnum.md +15 -0
  21. data/docs/EndpointEvent.md +34 -0
  22. data/docs/EndpointEventTypeEnum.md +15 -0
  23. data/docs/EndpointResponse.md +22 -0
  24. data/docs/EndpointStatusEnum.md +15 -0
  25. data/docs/EndpointTypeEnum.md +15 -0
  26. data/docs/Endpoints.md +28 -0
  27. data/docs/EndpointsApi.md +395 -0
  28. data/docs/InboundCallback.md +2 -2
  29. data/docs/ListEndpointsResponse.md +24 -0
  30. data/docs/LookupResult.md +1 -1
  31. data/docs/MachineDetectionConfiguration.md +1 -1
  32. data/docs/MediaApi.md +1 -1
  33. data/docs/MessageRequest.md +1 -1
  34. data/docs/MmsMessageContentFile.md +1 -1
  35. data/docs/Page.md +24 -0
  36. data/docs/RbmActionBase.md +1 -1
  37. data/docs/RbmSuggestionResponse.md +1 -1
  38. data/docs/SipConnectionMetadata.md +24 -0
  39. data/docs/SipCredentials.md +20 -0
  40. data/docs/StatusCallback.md +1 -1
  41. data/docs/SyncLookupRequest.md +3 -1
  42. data/docs/TfvSubmissionInfo.md +3 -3
  43. data/docs/UpdateCall.md +1 -1
  44. data/docs/VerificationRequest.md +3 -3
  45. data/docs/VerificationUpdateRequest.md +3 -3
  46. data/docs/WebhookSubscriptionError.md +22 -0
  47. data/docs/WebhookSubscriptionsListBody.md +1 -1
  48. data/lib/bandwidth-sdk/api/endpoints_api.rb +397 -0
  49. data/lib/bandwidth-sdk/api/media_api.rb +2 -2
  50. data/lib/bandwidth-sdk/configuration.rb +30 -0
  51. data/lib/bandwidth-sdk/models/brtc_error.rb +219 -0
  52. data/lib/bandwidth-sdk/models/brtc_error_response.rb +204 -0
  53. data/lib/bandwidth-sdk/models/brtc_error_source.rb +176 -0
  54. data/lib/bandwidth-sdk/models/brtc_link.rb +166 -0
  55. data/lib/bandwidth-sdk/models/create_call.rb +7 -7
  56. data/lib/bandwidth-sdk/models/create_endpoint_request_base.rb +250 -0
  57. data/lib/bandwidth-sdk/models/create_endpoint_response.rb +218 -0
  58. data/lib/bandwidth-sdk/models/create_endpoint_response_data.rb +356 -0
  59. data/lib/bandwidth-sdk/models/create_web_rtc_connection_request.rb +266 -0
  60. data/lib/bandwidth-sdk/models/device.rb +258 -0
  61. data/lib/bandwidth-sdk/models/device_status_enum.rb +40 -0
  62. data/lib/bandwidth-sdk/models/endpoint.rb +329 -0
  63. data/lib/bandwidth-sdk/models/endpoint_direction_enum.rb +41 -0
  64. data/lib/bandwidth-sdk/models/endpoint_event.rb +381 -0
  65. data/lib/bandwidth-sdk/models/endpoint_event_type_enum.rb +40 -0
  66. data/lib/bandwidth-sdk/models/endpoint_response.rb +218 -0
  67. data/lib/bandwidth-sdk/models/endpoint_status_enum.rb +40 -0
  68. data/lib/bandwidth-sdk/models/endpoint_type_enum.rb +39 -0
  69. data/lib/bandwidth-sdk/models/endpoints.rb +311 -0
  70. data/lib/bandwidth-sdk/models/inbound_callback.rb +2 -2
  71. data/lib/bandwidth-sdk/models/list_endpoints_response.rb +229 -0
  72. data/lib/bandwidth-sdk/models/lookup_result.rb +1 -1
  73. data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
  74. data/lib/bandwidth-sdk/models/message_request.rb +1 -1
  75. data/lib/bandwidth-sdk/models/mms_message_content_file.rb +1 -1
  76. data/lib/bandwidth-sdk/models/page.rb +259 -0
  77. data/lib/bandwidth-sdk/models/sip_connection_metadata.rb +175 -0
  78. data/lib/bandwidth-sdk/models/sip_credentials.rb +156 -0
  79. data/lib/bandwidth-sdk/models/status_callback.rb +1 -1
  80. data/lib/bandwidth-sdk/models/sync_lookup_request.rb +35 -4
  81. data/lib/bandwidth-sdk/models/tfv_submission_info.rb +4 -2
  82. data/lib/bandwidth-sdk/models/update_call.rb +6 -6
  83. data/lib/bandwidth-sdk/models/verification_request.rb +4 -2
  84. data/lib/bandwidth-sdk/models/verification_update_request.rb +4 -2
  85. data/lib/bandwidth-sdk/models/webhook_subscription_error.rb +165 -0
  86. data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +1 -1
  87. data/lib/bandwidth-sdk/version.rb +1 -1
  88. data/lib/bandwidth-sdk.rb +24 -2
  89. data/spec/smoke/endpoints_api_spec.rb +148 -0
  90. data/spec/smoke/phone_number_lookup_api_spec.rb +1 -9
  91. data/spec/unit/api/endpoints_api_spec.rb +172 -0
  92. data/spec/unit/api/phone_number_lookup_api_spec.rb +2 -0
  93. data/spec/unit/api/toll_free_verification_api_spec.rb +1 -1
  94. metadata +104 -54
  95. data/lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb +0 -55
@@ -0,0 +1,172 @@
1
+ # Unit tests for Bandwidth::EndpointsApi
2
+ describe 'EndpointsApi' do
3
+ let(:endpoint_id) { 'ep-abc123' }
4
+
5
+ before(:all) do
6
+ Bandwidth.configure do |config|
7
+ config.debugging = true
8
+ config.username = BW_USERNAME
9
+ config.password = BW_PASSWORD
10
+ config.ignore_operation_servers = true
11
+ config.host = '127.0.0.1:4010'
12
+ end
13
+ @endpoints_api_instance = Bandwidth::EndpointsApi.new
14
+ end
15
+
16
+ describe 'test an instance of EndpointsApi' do
17
+ it 'should create an instance of EndpointsApi' do
18
+ expect(@endpoints_api_instance).to be_instance_of(Bandwidth::EndpointsApi)
19
+ end
20
+ end
21
+
22
+ # Create Endpoint
23
+ describe '#create_endpoint' do
24
+ it 'creates a WebRTC endpoint' do
25
+ create_endpoint_body = Bandwidth::CreateWebRtcConnectionRequest.new(
26
+ type: Bandwidth::EndpointTypeEnum::WEBRTC,
27
+ direction: Bandwidth::EndpointDirectionEnum::BIDIRECTIONAL,
28
+ event_callback_url: 'https://myServer.com/bandwidth/webhooks/endpoint',
29
+ event_fallback_url: 'https://myFallbackServer.com/bandwidth/webhooks/endpoint',
30
+ tag: 'test-endpoint',
31
+ connection_metadata: { 'key1' => 'value1', 'key2' => 'value2' }
32
+ )
33
+
34
+ data, status_code = @endpoints_api_instance.create_endpoint_with_http_info(BW_ACCOUNT_ID, create_endpoint_body)
35
+
36
+ expect(status_code).to eq(201)
37
+ expect(data).to be_instance_of(Bandwidth::CreateEndpointResponse)
38
+ expect(data.links).to be_instance_of(Array)
39
+ expect(data.data).to be_instance_of(Bandwidth::CreateEndpointResponseData)
40
+ expect(data.data.endpoint_id).to be_instance_of(String)
41
+ expect(data.data.type).to be_one_of(Bandwidth::EndpointTypeEnum.all_vars)
42
+ expect(data.data.status).to be_one_of(Bandwidth::EndpointStatusEnum.all_vars)
43
+ expect(data.data.creation_timestamp).to be_instance_of(Time)
44
+ expect(data.data.expiration_timestamp).to be_instance_of(Time)
45
+ expect(data.data.token).to be_instance_of(String)
46
+ expect(data.data.tag).to be_instance_of(String)
47
+ expect(data.data.devices).to be_instance_of(Array)
48
+ expect(data.errors).to be_instance_of(Array)
49
+ end
50
+
51
+ it 'causes an ArgumentError for a missing account_id' do
52
+ expect {
53
+ @endpoints_api_instance.create_endpoint(nil, {})
54
+ }.to raise_error(ArgumentError)
55
+ end
56
+
57
+ it 'causes an ArgumentError for a missing body' do
58
+ expect {
59
+ @endpoints_api_instance.create_endpoint(BW_ACCOUNT_ID, nil)
60
+ }.to raise_error(ArgumentError)
61
+ end
62
+ end
63
+
64
+ # List Endpoints
65
+ describe '#list_endpoints' do
66
+ it 'gets a list of endpoints' do
67
+ data, status_code = @endpoints_api_instance.list_endpoints_with_http_info(BW_ACCOUNT_ID)
68
+
69
+ expect(status_code).to eq(200)
70
+ expect(data).to be_instance_of(Bandwidth::ListEndpointsResponse)
71
+ expect(data.links).to be_instance_of(Array)
72
+ expect(data.page).to be_instance_of(Bandwidth::Page)
73
+ expect(data.data).to be_instance_of(Array)
74
+ expect(data.data[0]).to be_instance_of(Bandwidth::Endpoints)
75
+ expect(data.data[0].endpoint_id).to be_instance_of(String)
76
+ expect(data.data[0].type).to be_one_of(Bandwidth::EndpointTypeEnum.all_vars)
77
+ expect(data.data[0].status).to be_one_of(Bandwidth::EndpointStatusEnum.all_vars)
78
+ expect(data.data[0].creation_timestamp).to be_instance_of(Time)
79
+ expect(data.data[0].expiration_timestamp).to be_instance_of(Time)
80
+ expect(data.data[0].tag).to be_instance_of(String)
81
+ expect(data.errors).to be_instance_of(Array)
82
+ end
83
+
84
+ it 'causes an ArgumentError for a missing account_id' do
85
+ expect {
86
+ @endpoints_api_instance.list_endpoints(nil)
87
+ }.to raise_error(ArgumentError)
88
+ end
89
+ end
90
+
91
+ # Get Endpoint
92
+ describe '#get_endpoint' do
93
+ it 'gets an endpoint' do
94
+ data, status_code = @endpoints_api_instance.get_endpoint_with_http_info(BW_ACCOUNT_ID, endpoint_id)
95
+
96
+ expect(status_code).to eq(200)
97
+ expect(data).to be_instance_of(Bandwidth::EndpointResponse)
98
+ expect(data.links).to be_instance_of(Array)
99
+ expect(data.data).to be_instance_of(Bandwidth::Endpoint)
100
+ expect(data.data.endpoint_id).to be_instance_of(String)
101
+ expect(data.data.type).to be_one_of(Bandwidth::EndpointTypeEnum.all_vars)
102
+ expect(data.data.status).to be_one_of(Bandwidth::EndpointStatusEnum.all_vars)
103
+ expect(data.data.creation_timestamp).to be_instance_of(Time)
104
+ expect(data.data.expiration_timestamp).to be_instance_of(Time)
105
+ expect(data.data.tag).to be_instance_of(String)
106
+ expect(data.data.devices).to be_instance_of(Array)
107
+ expect(data.errors).to be_instance_of(Array)
108
+ end
109
+
110
+ it 'causes an ArgumentError for a missing account_id' do
111
+ expect {
112
+ @endpoints_api_instance.get_endpoint(nil, '')
113
+ }.to raise_error(ArgumentError)
114
+ end
115
+
116
+ it 'causes an ArgumentError for a missing endpoint_id' do
117
+ expect {
118
+ @endpoints_api_instance.get_endpoint(BW_ACCOUNT_ID, nil)
119
+ }.to raise_error(ArgumentError)
120
+ end
121
+ end
122
+
123
+ # Update Endpoint BXML
124
+ describe '#update_endpoint_bxml' do
125
+ it 'updates an endpoint using bxml' do
126
+ update_bxml = "<?xml version='1.0' encoding='UTF-8'?><Bxml><SpeakSentence>Hello</SpeakSentence></Bxml>"
127
+
128
+ _data, status_code = @endpoints_api_instance.update_endpoint_bxml_with_http_info(BW_ACCOUNT_ID, endpoint_id, update_bxml)
129
+
130
+ expect(status_code).to eq(204)
131
+ end
132
+
133
+ it 'causes an ArgumentError for a missing account_id' do
134
+ expect {
135
+ @endpoints_api_instance.update_endpoint_bxml(nil, '', {})
136
+ }.to raise_error(ArgumentError)
137
+ end
138
+
139
+ it 'causes an ArgumentError for a missing endpoint_id' do
140
+ expect {
141
+ @endpoints_api_instance.update_endpoint_bxml(BW_ACCOUNT_ID, nil, {})
142
+ }.to raise_error(ArgumentError)
143
+ end
144
+
145
+ it 'causes an ArgumentError for a missing body' do
146
+ expect {
147
+ @endpoints_api_instance.update_endpoint_bxml(BW_ACCOUNT_ID, '', nil)
148
+ }.to raise_error(ArgumentError)
149
+ end
150
+ end
151
+
152
+ # Delete Endpoint
153
+ describe '#delete_endpoint' do
154
+ it 'deletes an endpoint' do
155
+ _data, status_code = @endpoints_api_instance.delete_endpoint_with_http_info(BW_ACCOUNT_ID, endpoint_id)
156
+
157
+ expect(status_code).to eq(204)
158
+ end
159
+
160
+ it 'causes an ArgumentError for a missing account_id' do
161
+ expect {
162
+ @endpoints_api_instance.delete_endpoint(nil, '')
163
+ }.to raise_error(ArgumentError)
164
+ end
165
+
166
+ it 'causes an ArgumentError for a missing endpoint_id' do
167
+ expect {
168
+ @endpoints_api_instance.delete_endpoint(BW_ACCOUNT_ID, nil)
169
+ }.to raise_error(ArgumentError)
170
+ end
171
+ end
172
+ end
@@ -2,6 +2,7 @@
2
2
  describe 'PhoneNumberLookupApi' do
3
3
  let(:phone_numbers) { [BW_NUMBER, USER_NUMBER] }
4
4
  let(:request_id) { '123e4567-e89b-12d3-a456-426614174000' }
5
+ let(:rcs_agent) { 'TestAgent' }
5
6
 
6
7
  before(:all) do
7
8
  Bandwidth.configure do |config|
@@ -46,6 +47,7 @@ describe 'PhoneNumberLookupApi' do
46
47
  it 'should work' do
47
48
  request = Bandwidth::SyncLookupRequest.new(
48
49
  phone_numbers: phone_numbers,
50
+ rcs_agent: rcs_agent,
49
51
  )
50
52
 
51
53
  data, status_code = @api_instance.create_sync_lookup_with_http_info(BW_ACCOUNT_ID, request)
@@ -35,7 +35,7 @@ describe 'TollFreeVerificationApi' do
35
35
  business_entity_type: Bandwidth::BusinessEntityTypeEnum::PUBLIC_PROFIT,
36
36
  business_registration_number: '123456789',
37
37
  business_registration_type: Bandwidth::BusinessRegistrationTypeEnum::EIN,
38
- business_registration_issuing_country: Bandwidth::BusinessRegistrationIssuingCountryEnum::USA,
38
+ business_registration_issuing_country: 'USA',
39
39
  additional_information: 'additionalInformation',
40
40
  isv_reseller: 'isvReseller'
41
41
  } }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandwidth-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.3.2
4
+ version: 18.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bandwidth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-31 00:00:00.000000000 Z
11
+ date: 2026-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -154,8 +154,11 @@ files:
154
154
  - docs/BlockedWebhook.md
155
155
  - docs/BridgeCompleteCallback.md
156
156
  - docs/BridgeTargetCompleteCallback.md
157
+ - docs/BrtcError.md
158
+ - docs/BrtcErrorResponse.md
159
+ - docs/BrtcErrorSource.md
160
+ - docs/BrtcLink.md
157
161
  - docs/BusinessEntityTypeEnum.md
158
- - docs/BusinessRegistrationIssuingCountryEnum.md
159
162
  - docs/BusinessRegistrationTypeEnum.md
160
163
  - docs/CallDirectionEnum.md
161
164
  - docs/CallRecordingMetadata.md
@@ -188,14 +191,29 @@ files:
188
191
  - docs/CreateAsyncBulkLookupResponseData.md
189
192
  - docs/CreateCall.md
190
193
  - docs/CreateCallResponse.md
194
+ - docs/CreateEndpointRequestBase.md
195
+ - docs/CreateEndpointResponse.md
196
+ - docs/CreateEndpointResponseData.md
191
197
  - docs/CreateMessageRequestError.md
192
198
  - docs/CreateMultiChannelMessageResponse.md
193
199
  - docs/CreateSyncLookupResponse.md
194
200
  - docs/CreateSyncLookupResponseData.md
201
+ - docs/CreateWebRtcConnectionRequest.md
195
202
  - docs/DeactivationEventEnum.md
203
+ - docs/Device.md
204
+ - docs/DeviceStatusEnum.md
196
205
  - docs/DisconnectCallback.md
197
206
  - docs/Diversion.md
198
207
  - docs/DtmfCallback.md
208
+ - docs/Endpoint.md
209
+ - docs/EndpointDirectionEnum.md
210
+ - docs/EndpointEvent.md
211
+ - docs/EndpointEventTypeEnum.md
212
+ - docs/EndpointResponse.md
213
+ - docs/EndpointStatusEnum.md
214
+ - docs/EndpointTypeEnum.md
215
+ - docs/Endpoints.md
216
+ - docs/EndpointsApi.md
199
217
  - docs/Error.md
200
218
  - docs/ErrorObject.md
201
219
  - docs/ErrorSource.md
@@ -215,6 +233,7 @@ files:
215
233
  - docs/Link.md
216
234
  - docs/LinkSchema.md
217
235
  - docs/LinksObject.md
236
+ - docs/ListEndpointsResponse.md
218
237
  - docs/ListMessageDirectionEnum.md
219
238
  - docs/ListMessageItem.md
220
239
  - docs/LookupErrorResponse.md
@@ -262,6 +281,7 @@ files:
262
281
  - docs/MultiChannelMessageRequest.md
263
282
  - docs/MultiChannelMessageResponseData.md
264
283
  - docs/OptInWorkflow.md
284
+ - docs/Page.md
265
285
  - docs/PageInfo.md
266
286
  - docs/PhoneNumberLookupApi.md
267
287
  - docs/PriorityEnum.md
@@ -292,6 +312,8 @@ files:
292
312
  - docs/RecordingsApi.md
293
313
  - docs/RedirectCallback.md
294
314
  - docs/RedirectMethodEnum.md
315
+ - docs/SipConnectionMetadata.md
316
+ - docs/SipCredentials.md
295
317
  - docs/SmsMessageContent.md
296
318
  - docs/StandaloneCardOrientationEnum.md
297
319
  - docs/StatisticsApi.md
@@ -331,6 +353,7 @@ files:
331
353
  - docs/VoiceCodeResponse.md
332
354
  - docs/WebhookSubscription.md
333
355
  - docs/WebhookSubscriptionBasicAuthentication.md
356
+ - docs/WebhookSubscriptionError.md
334
357
  - docs/WebhookSubscriptionRequestSchema.md
335
358
  - docs/WebhookSubscriptionTypeEnum.md
336
359
  - docs/WebhookSubscriptionsListBody.md
@@ -338,6 +361,7 @@ files:
338
361
  - lib/bandwidth-sdk.rb
339
362
  - lib/bandwidth-sdk/api/calls_api.rb
340
363
  - lib/bandwidth-sdk/api/conferences_api.rb
364
+ - lib/bandwidth-sdk/api/endpoints_api.rb
341
365
  - lib/bandwidth-sdk/api/media_api.rb
342
366
  - lib/bandwidth-sdk/api/messages_api.rb
343
367
  - lib/bandwidth-sdk/api/mfa_api.rb
@@ -359,8 +383,11 @@ files:
359
383
  - lib/bandwidth-sdk/models/blocked_webhook.rb
360
384
  - lib/bandwidth-sdk/models/bridge_complete_callback.rb
361
385
  - lib/bandwidth-sdk/models/bridge_target_complete_callback.rb
386
+ - lib/bandwidth-sdk/models/brtc_error.rb
387
+ - lib/bandwidth-sdk/models/brtc_error_response.rb
388
+ - lib/bandwidth-sdk/models/brtc_error_source.rb
389
+ - lib/bandwidth-sdk/models/brtc_link.rb
362
390
  - lib/bandwidth-sdk/models/business_entity_type_enum.rb
363
- - lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb
364
391
  - lib/bandwidth-sdk/models/business_registration_type_enum.rb
365
392
  - lib/bandwidth-sdk/models/bxml/bxml.rb
366
393
  - lib/bandwidth-sdk/models/bxml/nestable_verb.rb
@@ -424,14 +451,28 @@ files:
424
451
  - lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb
425
452
  - lib/bandwidth-sdk/models/create_call.rb
426
453
  - lib/bandwidth-sdk/models/create_call_response.rb
454
+ - lib/bandwidth-sdk/models/create_endpoint_request_base.rb
455
+ - lib/bandwidth-sdk/models/create_endpoint_response.rb
456
+ - lib/bandwidth-sdk/models/create_endpoint_response_data.rb
427
457
  - lib/bandwidth-sdk/models/create_message_request_error.rb
428
458
  - lib/bandwidth-sdk/models/create_multi_channel_message_response.rb
429
459
  - lib/bandwidth-sdk/models/create_sync_lookup_response.rb
430
460
  - lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb
461
+ - lib/bandwidth-sdk/models/create_web_rtc_connection_request.rb
431
462
  - lib/bandwidth-sdk/models/deactivation_event_enum.rb
463
+ - lib/bandwidth-sdk/models/device.rb
464
+ - lib/bandwidth-sdk/models/device_status_enum.rb
432
465
  - lib/bandwidth-sdk/models/disconnect_callback.rb
433
466
  - lib/bandwidth-sdk/models/diversion.rb
434
467
  - lib/bandwidth-sdk/models/dtmf_callback.rb
468
+ - lib/bandwidth-sdk/models/endpoint.rb
469
+ - lib/bandwidth-sdk/models/endpoint_direction_enum.rb
470
+ - lib/bandwidth-sdk/models/endpoint_event.rb
471
+ - lib/bandwidth-sdk/models/endpoint_event_type_enum.rb
472
+ - lib/bandwidth-sdk/models/endpoint_response.rb
473
+ - lib/bandwidth-sdk/models/endpoint_status_enum.rb
474
+ - lib/bandwidth-sdk/models/endpoint_type_enum.rb
475
+ - lib/bandwidth-sdk/models/endpoints.rb
435
476
  - lib/bandwidth-sdk/models/error.rb
436
477
  - lib/bandwidth-sdk/models/error_object.rb
437
478
  - lib/bandwidth-sdk/models/error_source.rb
@@ -451,6 +492,7 @@ files:
451
492
  - lib/bandwidth-sdk/models/link.rb
452
493
  - lib/bandwidth-sdk/models/link_schema.rb
453
494
  - lib/bandwidth-sdk/models/links_object.rb
495
+ - lib/bandwidth-sdk/models/list_endpoints_response.rb
454
496
  - lib/bandwidth-sdk/models/list_message_direction_enum.rb
455
497
  - lib/bandwidth-sdk/models/list_message_item.rb
456
498
  - lib/bandwidth-sdk/models/lookup_error_response.rb
@@ -494,6 +536,7 @@ files:
494
536
  - lib/bandwidth-sdk/models/multi_channel_message_request.rb
495
537
  - lib/bandwidth-sdk/models/multi_channel_message_response_data.rb
496
538
  - lib/bandwidth-sdk/models/opt_in_workflow.rb
539
+ - lib/bandwidth-sdk/models/page.rb
497
540
  - lib/bandwidth-sdk/models/page_info.rb
498
541
  - lib/bandwidth-sdk/models/priority_enum.rb
499
542
  - lib/bandwidth-sdk/models/product_type_enum.rb
@@ -522,6 +565,8 @@ files:
522
565
  - lib/bandwidth-sdk/models/recording_transcriptions.rb
523
566
  - lib/bandwidth-sdk/models/redirect_callback.rb
524
567
  - lib/bandwidth-sdk/models/redirect_method_enum.rb
568
+ - lib/bandwidth-sdk/models/sip_connection_metadata.rb
569
+ - lib/bandwidth-sdk/models/sip_credentials.rb
525
570
  - lib/bandwidth-sdk/models/sms_message_content.rb
526
571
  - lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb
527
572
  - lib/bandwidth-sdk/models/status_callback.rb
@@ -558,6 +603,7 @@ files:
558
603
  - lib/bandwidth-sdk/models/voice_code_response.rb
559
604
  - lib/bandwidth-sdk/models/webhook_subscription.rb
560
605
  - lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb
606
+ - lib/bandwidth-sdk/models/webhook_subscription_error.rb
561
607
  - lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb
562
608
  - lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb
563
609
  - lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb
@@ -568,6 +614,7 @@ files:
568
614
  - spec/fixtures/ruby_cat.jpeg
569
615
  - spec/smoke/calls_api_spec.rb
570
616
  - spec/smoke/conferences_api_spec.rb
617
+ - spec/smoke/endpoints_api_spec.rb
571
618
  - spec/smoke/media_api_spec.rb
572
619
  - spec/smoke/messages_api_spec.rb
573
620
  - spec/smoke/mfa_api_spec.rb
@@ -580,6 +627,7 @@ files:
580
627
  - spec/spec_helper.rb
581
628
  - spec/unit/api/calls_api_spec.rb
582
629
  - spec/unit/api/conferences_api_spec.rb
630
+ - spec/unit/api/endpoints_api_spec.rb
583
631
  - spec/unit/api/media_api_spec.rb
584
632
  - spec/unit/api/messages_api_spec.rb
585
633
  - spec/unit/api/mfa_api_spec.rb
@@ -656,67 +704,69 @@ summary: Bandwidth Ruby SDK
656
704
  test_files:
657
705
  - spec/call_utils.rb
658
706
  - spec/fixtures/ruby_cat.jpeg
659
- - spec/smoke/recordings_api_spec.rb
660
- - spec/smoke/calls_api_spec.rb
661
- - spec/smoke/mfa_api_spec.rb
662
- - spec/smoke/conferences_api_spec.rb
663
707
  - spec/smoke/phone_number_lookup_api_spec.rb
664
708
  - spec/smoke/statistics_api_spec.rb
665
- - spec/smoke/toll_free_verification_api_spec.rb
666
709
  - spec/smoke/media_api_spec.rb
667
- - spec/smoke/multi_channel_api_spec.rb
710
+ - spec/smoke/toll_free_verification_api_spec.rb
668
711
  - spec/smoke/transcriptions_api_spec.rb
669
712
  - spec/smoke/messages_api_spec.rb
713
+ - spec/smoke/mfa_api_spec.rb
714
+ - spec/smoke/calls_api_spec.rb
715
+ - spec/smoke/multi_channel_api_spec.rb
716
+ - spec/smoke/endpoints_api_spec.rb
717
+ - spec/smoke/recordings_api_spec.rb
718
+ - spec/smoke/conferences_api_spec.rb
670
719
  - spec/spec_helper.rb
671
- - spec/unit/models/call_state_enum_spec.rb
720
+ - spec/unit/client/api_client_spec.rb
721
+ - spec/unit/client/api_error_spec.rb
722
+ - spec/unit/client/configuration_spec.rb
723
+ - spec/unit/api/phone_number_lookup_api_spec.rb
724
+ - spec/unit/api/statistics_api_spec.rb
725
+ - spec/unit/api/media_api_spec.rb
726
+ - spec/unit/api/toll_free_verification_api_spec.rb
727
+ - spec/unit/api/transcriptions_api_spec.rb
728
+ - spec/unit/api/messages_api_spec.rb
729
+ - spec/unit/api/mfa_api_spec.rb
730
+ - spec/unit/api/calls_api_spec.rb
731
+ - spec/unit/api/multi_channel_api_spec.rb
732
+ - spec/unit/api/endpoints_api_spec.rb
733
+ - spec/unit/api/recordings_api_spec.rb
734
+ - spec/unit/api/conferences_api_spec.rb
735
+ - spec/unit/models/verify_code_request_spec.rb
672
736
  - spec/unit/models/message_spec.rb
673
- - spec/unit/models/verify_code_response_spec.rb
674
- - spec/unit/models/tfv_error_spec.rb
675
- - spec/unit/models/call_state_spec.rb
676
- - spec/unit/models/bxml/bxml_spec.rb
677
- - spec/unit/models/bxml/response_spec.rb
678
- - spec/unit/models/bxml/nestable_verb_spec.rb
679
737
  - spec/unit/models/bxml/verb_spec.rb
738
+ - spec/unit/models/bxml/nestable_verb_spec.rb
739
+ - spec/unit/models/bxml/response_spec.rb
740
+ - spec/unit/models/bxml/verbs/stop_stream_spec.rb
741
+ - spec/unit/models/bxml/verbs/custom_param_spec.rb
742
+ - spec/unit/models/bxml/verbs/pause_spec.rb
743
+ - spec/unit/models/bxml/verbs/redirect_spec.rb
744
+ - spec/unit/models/bxml/verbs/transfer_spec.rb
680
745
  - spec/unit/models/bxml/verbs/stop_recording_spec.rb
681
- - spec/unit/models/bxml/verbs/phone_number_spec.rb
682
- - spec/unit/models/bxml/verbs/start_recording_spec.rb
683
- - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
684
- - spec/unit/models/bxml/verbs/hangup_spec.rb
746
+ - spec/unit/models/bxml/verbs/stop_gather_spec.rb
747
+ - spec/unit/models/bxml/verbs/play_audio_spec.rb
685
748
  - spec/unit/models/bxml/verbs/forward_spec.rb
749
+ - spec/unit/models/bxml/verbs/sip_uri_spec.rb
750
+ - spec/unit/models/bxml/verbs/tag_spec.rb
751
+ - spec/unit/models/bxml/verbs/start_recording_spec.rb
752
+ - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
753
+ - spec/unit/models/bxml/verbs/start_transcription_spec.rb
754
+ - spec/unit/models/bxml/verbs/send_dtmf_spec.rb
686
755
  - spec/unit/models/bxml/verbs/pause_recording_spec.rb
687
- - spec/unit/models/bxml/verbs/start_stream_spec.rb
688
- - spec/unit/models/bxml/verbs/ring_spec.rb
689
756
  - spec/unit/models/bxml/verbs/start_gather_spec.rb
690
- - spec/unit/models/bxml/verbs/custom_param_spec.rb
691
- - spec/unit/models/bxml/verbs/speak_sentence_spec.rb
692
- - spec/unit/models/bxml/verbs/record_spec.rb
693
- - spec/unit/models/bxml/verbs/redirect_spec.rb
694
- - spec/unit/models/bxml/verbs/transfer_spec.rb
757
+ - spec/unit/models/bxml/verbs/stream_param_spec.rb
758
+ - spec/unit/models/bxml/verbs/phone_number_spec.rb
759
+ - spec/unit/models/bxml/verbs/start_stream_spec.rb
760
+ - spec/unit/models/bxml/verbs/conference_spec.rb
761
+ - spec/unit/models/bxml/verbs/gather_spec.rb
695
762
  - spec/unit/models/bxml/verbs/bridge_spec.rb
763
+ - spec/unit/models/bxml/verbs/ring_spec.rb
764
+ - spec/unit/models/bxml/verbs/hangup_spec.rb
696
765
  - spec/unit/models/bxml/verbs/resume_recording_spec.rb
697
- - spec/unit/models/bxml/verbs/gather_spec.rb
698
- - spec/unit/models/bxml/verbs/sip_uri_spec.rb
699
- - spec/unit/models/bxml/verbs/conference_spec.rb
700
- - spec/unit/models/bxml/verbs/stream_param_spec.rb
701
- - spec/unit/models/bxml/verbs/pause_spec.rb
702
- - spec/unit/models/bxml/verbs/send_dtmf_spec.rb
703
- - spec/unit/models/bxml/verbs/play_audio_spec.rb
704
- - spec/unit/models/bxml/verbs/stop_stream_spec.rb
705
- - spec/unit/models/bxml/verbs/start_transcription_spec.rb
706
- - spec/unit/models/bxml/verbs/stop_gather_spec.rb
707
- - spec/unit/models/bxml/verbs/tag_spec.rb
708
- - spec/unit/models/verify_code_request_spec.rb
709
- - spec/unit/client/api_client_spec.rb
710
- - spec/unit/client/configuration_spec.rb
711
- - spec/unit/client/api_error_spec.rb
712
- - spec/unit/api/recordings_api_spec.rb
713
- - spec/unit/api/calls_api_spec.rb
714
- - spec/unit/api/mfa_api_spec.rb
715
- - spec/unit/api/conferences_api_spec.rb
716
- - spec/unit/api/phone_number_lookup_api_spec.rb
717
- - spec/unit/api/statistics_api_spec.rb
718
- - spec/unit/api/toll_free_verification_api_spec.rb
719
- - spec/unit/api/media_api_spec.rb
720
- - spec/unit/api/multi_channel_api_spec.rb
721
- - spec/unit/api/transcriptions_api_spec.rb
722
- - spec/unit/api/messages_api_spec.rb
766
+ - spec/unit/models/bxml/verbs/stop_transcription_spec.rb
767
+ - spec/unit/models/bxml/verbs/record_spec.rb
768
+ - spec/unit/models/bxml/bxml_spec.rb
769
+ - spec/unit/models/verify_code_response_spec.rb
770
+ - spec/unit/models/call_state_spec.rb
771
+ - spec/unit/models/call_state_enum_spec.rb
772
+ - spec/unit/models/tfv_error_spec.rb
@@ -1,55 +0,0 @@
1
- =begin
2
- #Bandwidth
3
-
4
- #Bandwidth's Communication APIs
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: letstalk@bandwidth.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.17.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module Bandwidth
17
- class BusinessRegistrationIssuingCountryEnum
18
- USA = 'USA'.freeze
19
- CAN = 'CAN'.freeze
20
- HKG = 'HKG'.freeze
21
- GBR = 'GBR'.freeze
22
- IRL = 'IRL'.freeze
23
- BRA = 'BRA'.freeze
24
- NLD = 'NLD'.freeze
25
- AUS = 'AUS'.freeze
26
- FRA = 'FRA'.freeze
27
- NZL = 'NZL'.freeze
28
- DEU = 'DEU'.freeze
29
- ESP = 'ESP'.freeze
30
- CHE = 'CHE'.freeze
31
- CYP = 'CYP'.freeze
32
- IND = 'IND'.freeze
33
- CHN = 'CHN'.freeze
34
- BGR = 'BGR'.freeze
35
-
36
- def self.all_vars
37
- @all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE, CYP, IND, CHN, BGR].freeze
38
- end
39
-
40
- # Builds the enum from string
41
- # @param [String] The enum value in the form of the string
42
- # @return [String] The enum value
43
- def self.build_from_hash(value)
44
- new.build_from_hash(value)
45
- end
46
-
47
- # Builds the enum from string
48
- # @param [String] The enum value in the form of the string
49
- # @return [String] The enum value
50
- def build_from_hash(value)
51
- return value if BusinessRegistrationIssuingCountryEnum.all_vars.include?(value)
52
- raise "Invalid ENUM value #{value} for class #BusinessRegistrationIssuingCountryEnum"
53
- end
54
- end
55
- end