one_msg_sdk 2.0.0 → 2.0.2

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +707 -0
  3. data/README.md +868 -0
  4. data/docs/CallingApi.md +27 -31
  5. data/docs/CallingSettings.md +18 -0
  6. data/docs/CallingSettingsCalling.md +38 -0
  7. data/docs/CallingSettingsCallingAudio.md +18 -0
  8. data/docs/CallingSettingsCallingCallHours.md +22 -0
  9. data/docs/CallingSettingsCallingSip.md +20 -0
  10. data/docs/CallingSettingsCallingSipServersInner.md +28 -0
  11. data/docs/CallingSettingsCallingVideo.md +18 -0
  12. data/docs/InitiateCallRequest.md +28 -0
  13. data/docs/InitiateCallRequestSession.md +20 -0
  14. data/docs/InitiateCallResponse.md +26 -0
  15. data/docs/InitiateCallResponseCallsInner.md +18 -0
  16. data/docs/InitiateCallResponseResponse.md +18 -0
  17. data/docs/UpdateCallingSettings200Response.md +22 -0
  18. data/docs/UpdateCallingSettings200ResponseResponse.md +18 -0
  19. data/docs/WebhooksApi.md +1 -1
  20. data/lib/one_msg_sdk/api/calling_api.rb +37 -29
  21. data/lib/one_msg_sdk/api/webhooks_api.rb +2 -2
  22. data/lib/one_msg_sdk/models/calling_settings.rb +148 -0
  23. data/lib/one_msg_sdk/models/calling_settings_calling.rb +321 -0
  24. data/lib/one_msg_sdk/models/calling_settings_calling_audio.rb +148 -0
  25. data/lib/one_msg_sdk/models/calling_settings_calling_call_hours.rb +166 -0
  26. data/lib/one_msg_sdk/models/calling_settings_calling_sip.rb +193 -0
  27. data/lib/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.rb +196 -0
  28. data/lib/one_msg_sdk/models/calling_settings_calling_video.rb +182 -0
  29. data/lib/one_msg_sdk/models/initiate_call_request.rb +277 -0
  30. data/lib/one_msg_sdk/models/initiate_call_request_session.rb +217 -0
  31. data/lib/one_msg_sdk/models/initiate_call_response.rb +188 -0
  32. data/lib/one_msg_sdk/models/initiate_call_response_calls_inner.rb +147 -0
  33. data/lib/one_msg_sdk/models/initiate_call_response_response.rb +148 -0
  34. data/lib/one_msg_sdk/models/update_calling_settings200_response.rb +165 -0
  35. data/lib/one_msg_sdk/models/update_calling_settings200_response_response.rb +147 -0
  36. data/lib/one_msg_sdk/version.rb +1 -1
  37. data/lib/one_msg_sdk.rb +14 -0
  38. data/one_msg_sdk.gemspec +2 -2
  39. data/spec/api/calling_api_spec.rb +9 -9
  40. data/spec/api/webhooks_api_spec.rb +1 -1
  41. data/spec/models/calling_settings_calling_audio_spec.rb +36 -0
  42. data/spec/models/calling_settings_calling_call_hours_spec.rb +48 -0
  43. data/spec/models/calling_settings_calling_sip_servers_inner_spec.rb +66 -0
  44. data/spec/models/calling_settings_calling_sip_spec.rb +46 -0
  45. data/spec/models/calling_settings_calling_spec.rb +112 -0
  46. data/spec/models/calling_settings_calling_video_spec.rb +40 -0
  47. data/spec/models/calling_settings_spec.rb +36 -0
  48. data/spec/models/initiate_call_request_session_spec.rb +46 -0
  49. data/spec/models/initiate_call_request_spec.rb +74 -0
  50. data/spec/models/initiate_call_response_calls_inner_spec.rb +36 -0
  51. data/spec/models/initiate_call_response_response_spec.rb +36 -0
  52. data/spec/models/initiate_call_response_spec.rb +60 -0
  53. data/spec/models/update_calling_settings200_response_response_spec.rb +36 -0
  54. data/spec/models/update_calling_settings200_response_spec.rb +48 -0
  55. metadata +984 -57
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::InitiateCallRequestSession
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::InitiateCallRequestSession do
21
+ #let(:instance) { OneMsgSdk::InitiateCallRequestSession.new }
22
+
23
+ describe 'test an instance of InitiateCallRequestSession' do
24
+ it 'should create an instance of InitiateCallRequestSession' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::InitiateCallRequestSession)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "sdp_type"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["offer", "answer"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.sdp_type = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "sdp"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::InitiateCallRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::InitiateCallRequest do
21
+ #let(:instance) { OneMsgSdk::InitiateCallRequest.new }
22
+
23
+ describe 'test an instance of InitiateCallRequest' do
24
+ it 'should create an instance of InitiateCallRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::InitiateCallRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "messaging_product"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["whatsapp"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.messaging_product = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "action"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["connect", "pre_accept", "accept", "reject", "terminate"])
44
+ # validator.allowable_values.each do |value|
45
+ # expect { instance.action = value }.not_to raise_error
46
+ # end
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "call_id"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "to"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "biz_opaque_callback_data"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "session"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
+ end
72
+ end
73
+
74
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::InitiateCallResponseCallsInner
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::InitiateCallResponseCallsInner do
21
+ #let(:instance) { OneMsgSdk::InitiateCallResponseCallsInner.new }
22
+
23
+ describe 'test an instance of InitiateCallResponseCallsInner' do
24
+ it 'should create an instance of InitiateCallResponseCallsInner' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::InitiateCallResponseCallsInner)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::InitiateCallResponseResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::InitiateCallResponseResponse do
21
+ #let(:instance) { OneMsgSdk::InitiateCallResponseResponse.new }
22
+
23
+ describe 'test an instance of InitiateCallResponseResponse' do
24
+ it 'should create an instance of InitiateCallResponseResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::InitiateCallResponseResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "error"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::InitiateCallResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::InitiateCallResponse do
21
+ #let(:instance) { OneMsgSdk::InitiateCallResponse.new }
22
+
23
+ describe 'test an instance of InitiateCallResponse' do
24
+ it 'should create an instance of InitiateCallResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::InitiateCallResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "messaging_product"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "success"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "calls"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "result"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "response"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::UpdateCallingSettings200ResponseResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::UpdateCallingSettings200ResponseResponse do
21
+ #let(:instance) { OneMsgSdk::UpdateCallingSettings200ResponseResponse.new }
22
+
23
+ describe 'test an instance of UpdateCallingSettings200ResponseResponse' do
24
+ it 'should create an instance of UpdateCallingSettings200ResponseResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::UpdateCallingSettings200ResponseResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "error"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #1MSG WhatsApp Business API (Public)
3
+
4
+ #Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** All requests require `token` query parameter with JWT or API key. **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@1msg.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OneMsgSdk::UpdateCallingSettings200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OneMsgSdk::UpdateCallingSettings200Response do
21
+ #let(:instance) { OneMsgSdk::UpdateCallingSettings200Response.new }
22
+
23
+ describe 'test an instance of UpdateCallingSettings200Response' do
24
+ it 'should create an instance of UpdateCallingSettings200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(OneMsgSdk::UpdateCallingSettings200Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "success"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "result"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "response"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end