rcs 2.0.0.pre.rc.2 → 2.0.0.pre.rc.3
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/lib/rcs/brands/client.rb +6 -6
- data/lib/rcs/brands/types/{autofill_brand_schema_options.rb → autofill_brand_options.rb} +5 -5
- data/lib/rcs/campaigns/dlc/client.rb +12 -12
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_help.rb → upsert_dlc_campaign_help_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords.rb → upsert_dlc_campaign_keywords.rb} +20 -20
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_links.rb → upsert_dlc_campaign_links.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_in.rb → upsert_dlc_campaign_opt_in_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_out.rb → upsert_dlc_campaign_opt_out_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_options.rb → upsert_dlc_campaign_options.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_use_case.rb → upsert_dlc_campaign_use_case.rb} +5 -5
- data/lib/rcs/campaigns/rcs/client.rb +25 -25
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_emails_item.rb → rcs_agent_email.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_phones_item.rb → rcs_agent_phone.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_websites_item.rb → rcs_agent_website.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent.rb → upsert_rcs_agent.rb} +17 -17
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_links.rb → upsert_rcs_links.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_in.rb → upsert_rcs_opt_in.rb} +13 -13
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_out.rb → upsert_rcs_opt_out.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_use_case.rb → upsert_rcs_use_case.rb} +5 -5
- data/lib/rcs/campaigns/toll_free/client.rb +4 -4
- data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +10 -10
- data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb +8 -8
- data/lib/rcs/conversations/client.rb +2 -2
- data/lib/rcs/messages/client.rb +24 -10
- data/lib/rcs/messages/mms/client.rb +118 -0
- data/lib/rcs/messages/{send/types/send_mms_response.rb → mms/types/mms_send_response.rb} +4 -4
- data/lib/rcs/messages/{send/types/send_mms_schema_options.rb → mms/types/send_mms_options.rb} +6 -6
- data/lib/rcs/messages/rcs/client.rb +68 -0
- data/lib/rcs/messages/{send/types/send_rcs_response.rb → rcs/types/rcs_send_response.rb} +4 -4
- data/lib/rcs/messages/sms/client.rb +198 -0
- data/lib/rcs/messages/{send/types/send_sms_schema_options.rb → sms/types/send_sms_options.rb} +6 -6
- data/lib/rcs/messages/{send/types/send_sms_response.rb → sms/types/sms_send_response.rb} +4 -4
- data/lib/rcs/messages/types/{message_reaction_schema_options.rb → react_message_options.rb} +5 -5
- data/lib/rcs/phone_numbers/client.rb +18 -18
- data/lib/rcs/phone_numbers/types/{phone_details_schema_options_enhanced_contact_info.rb → enhanced_contact_info.rb} +5 -7
- data/lib/rcs/phone_numbers/types/{phone_details_schema_options.rb → retrieve_phone_number_details_options.rb} +10 -10
- data/lib/rcs/phone_numbers/types/{search_schema_number.rb → search_phone_number_by_digits.rb} +5 -5
- data/lib/rcs/phone_numbers/types/{search_schema_location.rb → search_phone_number_by_location.rb} +5 -5
- data/lib/rcs/phone_numbers/types/{search_schema_options.rb → search_phone_number_options.rb} +5 -5
- data/lib/rcs/phone_numbers/webhook/client.rb +2 -2
- data/lib/rcs/tools/file/client.rb +3 -3
- data/lib/rcs/tools/file/types/{file_upload_schema_options_download.rb → download_options.rb} +5 -5
- data/lib/rcs/tools/file/types/{file_upload_schema_options.rb → upload_file_options.rb} +10 -10
- data/lib/rcs/types/{attach_webhook_schema_webhook_id.rb → attach_webhook_by_id_params.rb} +5 -5
- data/lib/rcs/types/attach_webhook_params.rb +8 -8
- data/lib/rcs/types/{get_conversation_request_id.rb → conversation_by_id_params.rb} +5 -5
- data/lib/rcs/types/{get_conversation_request_recipient.rb → conversation_by_participants_params.rb} +5 -5
- data/lib/rcs/types/{attach_webhook_schema_name.rb → create_and_attach_webhook_by_url_params.rb} +5 -5
- data/lib/rcs/types/get_conversation_params.rb +8 -8
- data/lib/rcs/types/link_click_event.rb +8 -8
- data/lib/rcs/types/message.rb +8 -8
- data/lib/rcs/types/rcs.rb +12 -12
- data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +8 -8
- data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +8 -8
- data/lib/rcs/types/rcs_cards.rb +4 -4
- data/lib/rcs/types/rcs_cards_cards_item.rb +4 -4
- data/lib/rcs/types/rcs_cards_content.rb +4 -4
- data/lib/rcs/types/rcs_cards_content_cards_item.rb +4 -4
- data/lib/rcs/types/rcs_media_content.rb +4 -4
- data/lib/rcs/types/rcs_text_content.rb +4 -4
- data/lib/rcs/types/{rcs_button_content.rb → rich_button.rb} +10 -10
- data/lib/rcs/types/{rcs_card.rb → rich_cards_message.rb} +9 -9
- data/lib/rcs/types/{rcs_media.rb → rich_media_message.rb} +9 -9
- data/lib/rcs/types/{rcs_text.rb → rich_text_message.rb} +9 -9
- data/lib/rcs/types/toll_free_campaign.rb +10 -10
- data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +10 -10
- data/lib/rcs/types/{nullable_contact.rb → upsert_contact.rb} +5 -5
- data/lib/rcs/types/{toll_free_campaign_schema_opt_in.rb → upsert_toll_free_campaign_opt_in.rb} +13 -13
- data/lib/rcs/types/{toll_free_campaign_schema_use_case.rb → upsert_toll_free_campaign_use_case.rb} +5 -5
- data/lib/rcs.rb +0 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +40 -40
- metadata +43 -45
- data/lib/rcs/message/client.rb +0 -30
- data/lib/rcs/message/sms/client.rb +0 -96
- data/lib/rcs/messages/send/client.rb +0 -318
data/lib/types_export.rb
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "rcs/brands/types/
|
3
|
+
require_relative "rcs/brands/types/autofill_brand_options"
|
4
4
|
require_relative "rcs/brands/types/brand_contact"
|
5
|
-
require_relative "rcs/messages/types/
|
6
|
-
require_relative "rcs/phone_numbers/types/
|
7
|
-
require_relative "rcs/phone_numbers/types/
|
8
|
-
require_relative "rcs/phone_numbers/types/
|
5
|
+
require_relative "rcs/messages/types/react_message_options"
|
6
|
+
require_relative "rcs/phone_numbers/types/search_phone_number_by_location"
|
7
|
+
require_relative "rcs/phone_numbers/types/search_phone_number_by_digits"
|
8
|
+
require_relative "rcs/phone_numbers/types/search_phone_number_options"
|
9
9
|
require_relative "rcs/phone_numbers/types/phone_details_schema_level"
|
10
|
-
require_relative "rcs/phone_numbers/types/
|
11
|
-
require_relative "rcs/phone_numbers/types/
|
10
|
+
require_relative "rcs/phone_numbers/types/enhanced_contact_info"
|
11
|
+
require_relative "rcs/phone_numbers/types/retrieve_phone_number_details_options"
|
12
12
|
require_relative "rcs/types/basic_phone_information"
|
13
13
|
require_relative "rcs/types/advanced_phone_information"
|
14
14
|
require_relative "rcs/phone_numbers/types/phone_numbers_get_response"
|
15
|
-
require_relative "rcs/campaigns/dlc/types/
|
16
|
-
require_relative "rcs/campaigns/dlc/types/
|
17
|
-
require_relative "rcs/campaigns/dlc/types/
|
18
|
-
require_relative "rcs/campaigns/dlc/types/
|
19
|
-
require_relative "rcs/campaigns/dlc/types/
|
20
|
-
require_relative "rcs/campaigns/dlc/types/
|
21
|
-
require_relative "rcs/campaigns/dlc/types/
|
15
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_help_keywords"
|
16
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_opt_in_keywords"
|
17
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_opt_out_keywords"
|
18
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_keywords"
|
19
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_links"
|
20
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_options"
|
21
|
+
require_relative "rcs/campaigns/dlc/types/upsert_dlc_campaign_use_case"
|
22
22
|
require_relative "rcs/campaigns/toll_free/types/toll_free_autofill_response"
|
23
23
|
require_relative "rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in"
|
24
24
|
require_relative "rcs/campaigns/toll_free/types/upsert_toll_free_schema_use_case"
|
25
25
|
require_relative "rcs/campaigns/rcs/types/rcs_autofill_response"
|
26
|
-
require_relative "rcs/campaigns/rcs/types/
|
27
|
-
require_relative "rcs/campaigns/rcs/types/
|
28
|
-
require_relative "rcs/campaigns/rcs/types/
|
29
|
-
require_relative "rcs/campaigns/rcs/types/
|
30
|
-
require_relative "rcs/campaigns/rcs/types/
|
31
|
-
require_relative "rcs/campaigns/rcs/types/
|
32
|
-
require_relative "rcs/campaigns/rcs/types/
|
33
|
-
require_relative "rcs/campaigns/rcs/types/
|
34
|
-
require_relative "rcs/messages/
|
26
|
+
require_relative "rcs/campaigns/rcs/types/rcs_agent_email"
|
27
|
+
require_relative "rcs/campaigns/rcs/types/rcs_agent_phone"
|
28
|
+
require_relative "rcs/campaigns/rcs/types/rcs_agent_website"
|
29
|
+
require_relative "rcs/campaigns/rcs/types/upsert_rcs_agent"
|
30
|
+
require_relative "rcs/campaigns/rcs/types/upsert_rcs_links"
|
31
|
+
require_relative "rcs/campaigns/rcs/types/upsert_rcs_opt_in"
|
32
|
+
require_relative "rcs/campaigns/rcs/types/upsert_rcs_opt_out"
|
33
|
+
require_relative "rcs/campaigns/rcs/types/upsert_rcs_use_case"
|
34
|
+
require_relative "rcs/messages/sms/types/send_sms_options"
|
35
35
|
require_relative "rcs/types/sent_sms_details"
|
36
36
|
require_relative "rcs/types/scheduled_messaage"
|
37
|
-
require_relative "rcs/messages/
|
38
|
-
require_relative "rcs/messages/
|
37
|
+
require_relative "rcs/messages/sms/types/sms_send_response"
|
38
|
+
require_relative "rcs/messages/mms/types/send_mms_options"
|
39
39
|
require_relative "rcs/types/sent_mms_details"
|
40
|
-
require_relative "rcs/messages/
|
40
|
+
require_relative "rcs/messages/mms/types/mms_send_response"
|
41
41
|
require_relative "rcs/types/sent_rcs_details"
|
42
|
-
require_relative "rcs/messages/
|
43
|
-
require_relative "rcs/tools/file/types/
|
44
|
-
require_relative "rcs/tools/file/types/
|
42
|
+
require_relative "rcs/messages/rcs/types/rcs_send_response"
|
43
|
+
require_relative "rcs/tools/file/types/download_options"
|
44
|
+
require_relative "rcs/tools/file/types/upload_file_options"
|
45
45
|
require_relative "rcs/tools/contact_card/types/get_v_card_schema_options"
|
46
46
|
require_relative "rcs/types/zod_error"
|
47
47
|
require_relative "rcs/types/error"
|
@@ -50,7 +50,7 @@ require_relative "rcs/types/optional_contacts"
|
|
50
50
|
require_relative "rcs/types/company_sector_enum"
|
51
51
|
require_relative "rcs/types/company_type_enum"
|
52
52
|
require_relative "rcs/types/optional_brand_info"
|
53
|
-
require_relative "rcs/types/
|
53
|
+
require_relative "rcs/types/upsert_contact"
|
54
54
|
require_relative "rcs/types/brand_status_enum"
|
55
55
|
require_relative "rcs/types/extended_brand"
|
56
56
|
require_relative "rcs/types/vetting_feedback"
|
@@ -88,8 +88,8 @@ require_relative "rcs/types/campaign_validation_result"
|
|
88
88
|
require_relative "rcs/types/message_volume_enum"
|
89
89
|
require_relative "rcs/types/opt_in_method_enum"
|
90
90
|
require_relative "rcs/types/toll_free_campaign_use_case_enum"
|
91
|
-
require_relative "rcs/types/
|
92
|
-
require_relative "rcs/types/
|
91
|
+
require_relative "rcs/types/upsert_toll_free_campaign_opt_in"
|
92
|
+
require_relative "rcs/types/upsert_toll_free_campaign_use_case"
|
93
93
|
require_relative "rcs/types/toll_free_campaign"
|
94
94
|
require_relative "rcs/types/toll_free_campaign_with_extended_brand_and_status"
|
95
95
|
require_relative "rcs/types/rcs_campaign_opt_in_method_enum"
|
@@ -116,8 +116,8 @@ require_relative "rcs/types/contact"
|
|
116
116
|
require_relative "rcs/types/optional_contact"
|
117
117
|
require_relative "rcs/types/updated_contact_id"
|
118
118
|
require_relative "rcs/types/contact_id"
|
119
|
-
require_relative "rcs/types/
|
120
|
-
require_relative "rcs/types/
|
119
|
+
require_relative "rcs/types/conversation_by_id_params"
|
120
|
+
require_relative "rcs/types/conversation_by_participants_params"
|
121
121
|
require_relative "rcs/types/get_conversation_params"
|
122
122
|
require_relative "rcs/types/campaign_enum"
|
123
123
|
require_relative "rcs/types/campaign_query"
|
@@ -138,7 +138,7 @@ require_relative "rcs/types/rcs_button_request_user_location"
|
|
138
138
|
require_relative "rcs/types/rcs_button_schedule_event"
|
139
139
|
require_relative "rcs/types/rcs_button_send_location_lat_long"
|
140
140
|
require_relative "rcs/types/rcs_button_send_location"
|
141
|
-
require_relative "rcs/types/
|
141
|
+
require_relative "rcs/types/rich_button"
|
142
142
|
require_relative "rcs/types/rcs_text_content"
|
143
143
|
require_relative "rcs/types/rcs_media_details_content"
|
144
144
|
require_relative "rcs/types/rcs_media_content"
|
@@ -164,11 +164,11 @@ require_relative "rcs/types/send_sms_response_segments"
|
|
164
164
|
require_relative "rcs/types/scheduled_send_response_config"
|
165
165
|
require_relative "rcs/types/rcs_base_options"
|
166
166
|
require_relative "rcs/types/rcs_base"
|
167
|
-
require_relative "rcs/types/
|
168
|
-
require_relative "rcs/types/
|
167
|
+
require_relative "rcs/types/rich_text_message"
|
168
|
+
require_relative "rcs/types/rich_media_message"
|
169
169
|
require_relative "rcs/types/rcs_cards_cards_item"
|
170
170
|
require_relative "rcs/types/rcs_cards"
|
171
|
-
require_relative "rcs/types/
|
171
|
+
require_relative "rcs/types/rich_cards_message"
|
172
172
|
require_relative "rcs/types/rcs"
|
173
173
|
require_relative "rcs/types/sms_validation_response_segments_gsm_7"
|
174
174
|
require_relative "rcs/types/sms_validation_response_segments_utf_16"
|
@@ -204,8 +204,8 @@ require_relative "rcs/types/advanced_phone_information_location"
|
|
204
204
|
require_relative "rcs/types/advanced_phone_information_carrier"
|
205
205
|
require_relative "rcs/types/advanced_phone_information_contact"
|
206
206
|
require_relative "rcs/types/webhook_event_enum"
|
207
|
-
require_relative "rcs/types/
|
208
|
-
require_relative "rcs/types/
|
207
|
+
require_relative "rcs/types/attach_webhook_by_id_params"
|
208
|
+
require_relative "rcs/types/create_and_attach_webhook_by_url_params"
|
209
209
|
require_relative "rcs/types/attach_webhook_params"
|
210
210
|
require_relative "rcs/types/attach_webhook_response_webhook"
|
211
211
|
require_relative "rcs/types/configured_webhook"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.rc.
|
4
|
+
version: 2.0.0.pre.rc.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -100,54 +100,52 @@ files:
|
|
100
100
|
- lib/gemconfig.rb
|
101
101
|
- lib/rcs.rb
|
102
102
|
- lib/rcs/brands/client.rb
|
103
|
-
- lib/rcs/brands/types/
|
103
|
+
- lib/rcs/brands/types/autofill_brand_options.rb
|
104
104
|
- lib/rcs/brands/types/brand_contact.rb
|
105
105
|
- lib/rcs/campaigns/client.rb
|
106
106
|
- lib/rcs/campaigns/dlc/client.rb
|
107
|
-
- lib/rcs/campaigns/dlc/types/
|
108
|
-
- lib/rcs/campaigns/dlc/types/
|
109
|
-
- lib/rcs/campaigns/dlc/types/
|
110
|
-
- lib/rcs/campaigns/dlc/types/
|
111
|
-
- lib/rcs/campaigns/dlc/types/
|
112
|
-
- lib/rcs/campaigns/dlc/types/
|
113
|
-
- lib/rcs/campaigns/dlc/types/
|
107
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_help_keywords.rb
|
108
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_keywords.rb
|
109
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_links.rb
|
110
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_opt_in_keywords.rb
|
111
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_opt_out_keywords.rb
|
112
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_options.rb
|
113
|
+
- lib/rcs/campaigns/dlc/types/upsert_dlc_campaign_use_case.rb
|
114
114
|
- lib/rcs/campaigns/rcs/client.rb
|
115
|
+
- lib/rcs/campaigns/rcs/types/rcs_agent_email.rb
|
116
|
+
- lib/rcs/campaigns/rcs/types/rcs_agent_phone.rb
|
117
|
+
- lib/rcs/campaigns/rcs/types/rcs_agent_website.rb
|
115
118
|
- lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb
|
116
|
-
- lib/rcs/campaigns/rcs/types/
|
117
|
-
- lib/rcs/campaigns/rcs/types/
|
118
|
-
- lib/rcs/campaigns/rcs/types/
|
119
|
-
- lib/rcs/campaigns/rcs/types/
|
120
|
-
- lib/rcs/campaigns/rcs/types/
|
121
|
-
- lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_in.rb
|
122
|
-
- lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_out.rb
|
123
|
-
- lib/rcs/campaigns/rcs/types/upsert_rcs_schema_use_case.rb
|
119
|
+
- lib/rcs/campaigns/rcs/types/upsert_rcs_agent.rb
|
120
|
+
- lib/rcs/campaigns/rcs/types/upsert_rcs_links.rb
|
121
|
+
- lib/rcs/campaigns/rcs/types/upsert_rcs_opt_in.rb
|
122
|
+
- lib/rcs/campaigns/rcs/types/upsert_rcs_opt_out.rb
|
123
|
+
- lib/rcs/campaigns/rcs/types/upsert_rcs_use_case.rb
|
124
124
|
- lib/rcs/campaigns/toll_free/client.rb
|
125
125
|
- lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb
|
126
126
|
- lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb
|
127
127
|
- lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_use_case.rb
|
128
128
|
- lib/rcs/contacts/client.rb
|
129
129
|
- lib/rcs/conversations/client.rb
|
130
|
-
- lib/rcs/message/client.rb
|
131
|
-
- lib/rcs/message/sms/client.rb
|
132
130
|
- lib/rcs/messages/client.rb
|
133
131
|
- lib/rcs/messages/mms/client.rb
|
132
|
+
- lib/rcs/messages/mms/types/mms_send_response.rb
|
133
|
+
- lib/rcs/messages/mms/types/send_mms_options.rb
|
134
134
|
- lib/rcs/messages/rcs/client.rb
|
135
|
-
- lib/rcs/messages/
|
136
|
-
- lib/rcs/messages/
|
137
|
-
- lib/rcs/messages/
|
138
|
-
- lib/rcs/messages/
|
139
|
-
- lib/rcs/messages/
|
140
|
-
- lib/rcs/messages/send/types/send_sms_schema_options.rb
|
141
|
-
- lib/rcs/messages/types/message_reaction_schema_options.rb
|
135
|
+
- lib/rcs/messages/rcs/types/rcs_send_response.rb
|
136
|
+
- lib/rcs/messages/sms/client.rb
|
137
|
+
- lib/rcs/messages/sms/types/send_sms_options.rb
|
138
|
+
- lib/rcs/messages/sms/types/sms_send_response.rb
|
139
|
+
- lib/rcs/messages/types/react_message_options.rb
|
142
140
|
- lib/rcs/phone_numbers/campaign/client.rb
|
143
141
|
- lib/rcs/phone_numbers/client.rb
|
142
|
+
- lib/rcs/phone_numbers/types/enhanced_contact_info.rb
|
144
143
|
- lib/rcs/phone_numbers/types/phone_details_schema_level.rb
|
145
|
-
- lib/rcs/phone_numbers/types/phone_details_schema_options.rb
|
146
|
-
- lib/rcs/phone_numbers/types/phone_details_schema_options_enhanced_contact_info.rb
|
147
144
|
- lib/rcs/phone_numbers/types/phone_numbers_get_response.rb
|
148
|
-
- lib/rcs/phone_numbers/types/
|
149
|
-
- lib/rcs/phone_numbers/types/
|
150
|
-
- lib/rcs/phone_numbers/types/
|
145
|
+
- lib/rcs/phone_numbers/types/retrieve_phone_number_details_options.rb
|
146
|
+
- lib/rcs/phone_numbers/types/search_phone_number_by_digits.rb
|
147
|
+
- lib/rcs/phone_numbers/types/search_phone_number_by_location.rb
|
148
|
+
- lib/rcs/phone_numbers/types/search_phone_number_options.rb
|
151
149
|
- lib/rcs/phone_numbers/webhook/client.rb
|
152
150
|
- lib/rcs/status/client.rb
|
153
151
|
- lib/rcs/status/get/client.rb
|
@@ -155,8 +153,8 @@ files:
|
|
155
153
|
- lib/rcs/tools/contact_card/client.rb
|
156
154
|
- lib/rcs/tools/contact_card/types/get_v_card_schema_options.rb
|
157
155
|
- lib/rcs/tools/file/client.rb
|
158
|
-
- lib/rcs/tools/file/types/
|
159
|
-
- lib/rcs/tools/file/types/
|
156
|
+
- lib/rcs/tools/file/types/download_options.rb
|
157
|
+
- lib/rcs/tools/file/types/upload_file_options.rb
|
160
158
|
- lib/rcs/tools/url/client.rb
|
161
159
|
- lib/rcs/types/advanced_phone_information.rb
|
162
160
|
- lib/rcs/types/advanced_phone_information_carrier.rb
|
@@ -167,10 +165,9 @@ files:
|
|
167
165
|
- lib/rcs/types/advanced_phone_information_type.rb
|
168
166
|
- lib/rcs/types/advanced_phone_information_type_recommendation.rb
|
169
167
|
- lib/rcs/types/agent.rb
|
168
|
+
- lib/rcs/types/attach_webhook_by_id_params.rb
|
170
169
|
- lib/rcs/types/attach_webhook_params.rb
|
171
170
|
- lib/rcs/types/attach_webhook_response_webhook.rb
|
172
|
-
- lib/rcs/types/attach_webhook_schema_name.rb
|
173
|
-
- lib/rcs/types/attach_webhook_schema_webhook_id.rb
|
174
171
|
- lib/rcs/types/attached_phone_number_result.rb
|
175
172
|
- lib/rcs/types/autofill_campaign_params.rb
|
176
173
|
- lib/rcs/types/autofill_dlc_campaign_response.rb
|
@@ -203,9 +200,12 @@ files:
|
|
203
200
|
- lib/rcs/types/contact.rb
|
204
201
|
- lib/rcs/types/contact_id.rb
|
205
202
|
- lib/rcs/types/conversation.rb
|
203
|
+
- lib/rcs/types/conversation_by_id_params.rb
|
204
|
+
- lib/rcs/types/conversation_by_participants_params.rb
|
206
205
|
- lib/rcs/types/conversation_contact.rb
|
207
206
|
- lib/rcs/types/conversation_list.rb
|
208
207
|
- lib/rcs/types/conversation_sender.rb
|
208
|
+
- lib/rcs/types/create_and_attach_webhook_by_url_params.rb
|
209
209
|
- lib/rcs/types/create_url_options.rb
|
210
210
|
- lib/rcs/types/detached_phone_number_result.rb
|
211
211
|
- lib/rcs/types/detached_webhook_info.rb
|
@@ -228,8 +228,6 @@ files:
|
|
228
228
|
- lib/rcs/types/extended_brand_with_vetting.rb
|
229
229
|
- lib/rcs/types/extended_rcs_campaign.rb
|
230
230
|
- lib/rcs/types/get_conversation_params.rb
|
231
|
-
- lib/rcs/types/get_conversation_request_id.rb
|
232
|
-
- lib/rcs/types/get_conversation_request_recipient.rb
|
233
231
|
- lib/rcs/types/get_dlc_campaign_status_response_updates.rb
|
234
232
|
- lib/rcs/types/get_toll_free_campaign_status_response_updates.rb
|
235
233
|
- lib/rcs/types/inbound_button.rb
|
@@ -248,7 +246,6 @@ files:
|
|
248
246
|
- lib/rcs/types/mms_validation_response_segments.rb
|
249
247
|
- lib/rcs/types/mms_validation_response_segments_value_item.rb
|
250
248
|
- lib/rcs/types/mms_validation_result.rb
|
251
|
-
- lib/rcs/types/nullable_contact.rb
|
252
249
|
- lib/rcs/types/number_format.rb
|
253
250
|
- lib/rcs/types/opt_in_method_enum.rb
|
254
251
|
- lib/rcs/types/optional_brand_info.rb
|
@@ -278,7 +275,6 @@ files:
|
|
278
275
|
- lib/rcs/types/rcs_base.rb
|
279
276
|
- lib/rcs/types/rcs_base_options.rb
|
280
277
|
- lib/rcs/types/rcs_button_call.rb
|
281
|
-
- lib/rcs/types/rcs_button_content.rb
|
282
278
|
- lib/rcs/types/rcs_button_open_url.rb
|
283
279
|
- lib/rcs/types/rcs_button_request_user_location.rb
|
284
280
|
- lib/rcs/types/rcs_button_schedule_event.rb
|
@@ -305,21 +301,22 @@ files:
|
|
305
301
|
- lib/rcs/types/rcs_campaign_schema_use_case.rb
|
306
302
|
- lib/rcs/types/rcs_campaign_status.rb
|
307
303
|
- lib/rcs/types/rcs_campaign_use_case_enum.rb
|
308
|
-
- lib/rcs/types/rcs_card.rb
|
309
304
|
- lib/rcs/types/rcs_cards.rb
|
310
305
|
- lib/rcs/types/rcs_cards_cards_item.rb
|
311
306
|
- lib/rcs/types/rcs_cards_content.rb
|
312
307
|
- lib/rcs/types/rcs_cards_content_cards_item.rb
|
313
308
|
- lib/rcs/types/rcs_content.rb
|
314
|
-
- lib/rcs/types/rcs_media.rb
|
315
309
|
- lib/rcs/types/rcs_media_content.rb
|
316
310
|
- lib/rcs/types/rcs_media_details_content.rb
|
317
|
-
- lib/rcs/types/rcs_text.rb
|
318
311
|
- lib/rcs/types/rcs_text_content.rb
|
319
312
|
- lib/rcs/types/rcs_validate_content.rb
|
320
313
|
- lib/rcs/types/rcs_validate_content_media.rb
|
321
314
|
- lib/rcs/types/rcs_validation_result.rb
|
322
315
|
- lib/rcs/types/reaction_result.rb
|
316
|
+
- lib/rcs/types/rich_button.rb
|
317
|
+
- lib/rcs/types/rich_cards_message.rb
|
318
|
+
- lib/rcs/types/rich_media_message.rb
|
319
|
+
- lib/rcs/types/rich_text_message.rb
|
323
320
|
- lib/rcs/types/scheduled_messaage.rb
|
324
321
|
- lib/rcs/types/scheduled_send_response_config.rb
|
325
322
|
- lib/rcs/types/send_sms_response_segments.rb
|
@@ -339,8 +336,6 @@ files:
|
|
339
336
|
- lib/rcs/types/submission_results.rb
|
340
337
|
- lib/rcs/types/successful_conversation_update.rb
|
341
338
|
- lib/rcs/types/toll_free_campaign.rb
|
342
|
-
- lib/rcs/types/toll_free_campaign_schema_opt_in.rb
|
343
|
-
- lib/rcs/types/toll_free_campaign_schema_use_case.rb
|
344
339
|
- lib/rcs/types/toll_free_campaign_status.rb
|
345
340
|
- lib/rcs/types/toll_free_campaign_use_case_enum.rb
|
346
341
|
- lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb
|
@@ -348,6 +343,9 @@ files:
|
|
348
343
|
- lib/rcs/types/tracking.rb
|
349
344
|
- lib/rcs/types/updated_contact_id.rb
|
350
345
|
- lib/rcs/types/upload_results.rb
|
346
|
+
- lib/rcs/types/upsert_contact.rb
|
347
|
+
- lib/rcs/types/upsert_toll_free_campaign_opt_in.rb
|
348
|
+
- lib/rcs/types/upsert_toll_free_campaign_use_case.rb
|
351
349
|
- lib/rcs/types/v_card_address_schema_type_item.rb
|
352
350
|
- lib/rcs/types/v_card_data.rb
|
353
351
|
- lib/rcs/types/v_card_data_file.rb
|
data/lib/rcs/message/client.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../../requests"
|
4
|
-
require_relative "sms/client"
|
5
|
-
|
6
|
-
module Pinnacle
|
7
|
-
module Message
|
8
|
-
class Client
|
9
|
-
# @return [Pinnacle::Message::SmsClient]
|
10
|
-
attr_reader :sms
|
11
|
-
|
12
|
-
# @param request_client [Pinnacle::RequestClient]
|
13
|
-
# @return [Pinnacle::Message::Client]
|
14
|
-
def initialize(request_client:)
|
15
|
-
@sms = Pinnacle::Message::SmsClient.new(request_client: request_client)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
class AsyncClient
|
20
|
-
# @return [Pinnacle::Message::AsyncSmsClient]
|
21
|
-
attr_reader :sms
|
22
|
-
|
23
|
-
# @param request_client [Pinnacle::AsyncRequestClient]
|
24
|
-
# @return [Pinnacle::Message::AsyncClient]
|
25
|
-
def initialize(request_client:)
|
26
|
-
@sms = Pinnacle::Message::AsyncSmsClient.new(request_client: request_client)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../../../requests"
|
4
|
-
require_relative "../../types/sms_content"
|
5
|
-
require_relative "../../types/sms_validation_result"
|
6
|
-
require "async"
|
7
|
-
|
8
|
-
module Pinnacle
|
9
|
-
module Message
|
10
|
-
class SmsClient
|
11
|
-
# @return [Pinnacle::RequestClient]
|
12
|
-
attr_reader :request_client
|
13
|
-
|
14
|
-
# @param request_client [Pinnacle::RequestClient]
|
15
|
-
# @return [Pinnacle::Message::SmsClient]
|
16
|
-
def initialize(request_client:)
|
17
|
-
@request_client = request_client
|
18
|
-
end
|
19
|
-
|
20
|
-
# Validate SMS message content without sending it.
|
21
|
-
#
|
22
|
-
# @param request [Hash] Request of type Pinnacle::Types::SmsContent, as a Hash
|
23
|
-
# * :text (String)
|
24
|
-
# @param request_options [Pinnacle::RequestOptions]
|
25
|
-
# @return [Pinnacle::Types::SmsValidationResult]
|
26
|
-
# @example
|
27
|
-
# api = Pinnacle::Client.new(
|
28
|
-
# base_url: "https://api.example.com",
|
29
|
-
# environment: Pinnacle::Environment::DEFAULT,
|
30
|
-
# api_key: "YOUR_API_KEY"
|
31
|
-
# )
|
32
|
-
# api.message.sms.validate(request: { text: "Hello from Pinnacle" })
|
33
|
-
def validate(request:, request_options: nil)
|
34
|
-
response = @request_client.conn.post do |req|
|
35
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
36
|
-
req.headers["PINNACLE-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
37
|
-
req.headers = {
|
38
|
-
**(req.headers || {}),
|
39
|
-
**@request_client.get_headers,
|
40
|
-
**(request_options&.additional_headers || {})
|
41
|
-
}.compact
|
42
|
-
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
43
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
44
|
-
end
|
45
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
46
|
-
req.url "#{@request_client.get_url(request_options: request_options)}/messages/validate/sms"
|
47
|
-
end
|
48
|
-
Pinnacle::Types::SmsValidationResult.from_json(json_object: response.body)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
class AsyncSmsClient
|
53
|
-
# @return [Pinnacle::AsyncRequestClient]
|
54
|
-
attr_reader :request_client
|
55
|
-
|
56
|
-
# @param request_client [Pinnacle::AsyncRequestClient]
|
57
|
-
# @return [Pinnacle::Message::AsyncSmsClient]
|
58
|
-
def initialize(request_client:)
|
59
|
-
@request_client = request_client
|
60
|
-
end
|
61
|
-
|
62
|
-
# Validate SMS message content without sending it.
|
63
|
-
#
|
64
|
-
# @param request [Hash] Request of type Pinnacle::Types::SmsContent, as a Hash
|
65
|
-
# * :text (String)
|
66
|
-
# @param request_options [Pinnacle::RequestOptions]
|
67
|
-
# @return [Pinnacle::Types::SmsValidationResult]
|
68
|
-
# @example
|
69
|
-
# api = Pinnacle::Client.new(
|
70
|
-
# base_url: "https://api.example.com",
|
71
|
-
# environment: Pinnacle::Environment::DEFAULT,
|
72
|
-
# api_key: "YOUR_API_KEY"
|
73
|
-
# )
|
74
|
-
# api.message.sms.validate(request: { text: "Hello from Pinnacle" })
|
75
|
-
def validate(request:, request_options: nil)
|
76
|
-
Async do
|
77
|
-
response = @request_client.conn.post do |req|
|
78
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
79
|
-
req.headers["PINNACLE-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
80
|
-
req.headers = {
|
81
|
-
**(req.headers || {}),
|
82
|
-
**@request_client.get_headers,
|
83
|
-
**(request_options&.additional_headers || {})
|
84
|
-
}.compact
|
85
|
-
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
86
|
-
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
87
|
-
end
|
88
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
89
|
-
req.url "#{@request_client.get_url(request_options: request_options)}/messages/validate/sms"
|
90
|
-
end
|
91
|
-
Pinnacle::Types::SmsValidationResult.from_json(json_object: response.body)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|