rcs 2.0.0.pre.rc.4 → 2.0.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.
- checksums.yaml +4 -4
- data/lib/rcs/brands/client.rb +36 -24
- data/lib/rcs/campaigns/dlc/client.rb +44 -34
- data/lib/rcs/campaigns/rcs/client.rb +26 -22
- data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +6 -6
- data/lib/rcs/campaigns/rcs/types/upsert_rcs_agent.rb +4 -4
- data/lib/rcs/campaigns/toll_free/client.rb +32 -26
- data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +6 -6
- data/lib/rcs/contacts/client.rb +10 -8
- data/lib/rcs/conversations/client.rb +142 -14
- data/lib/rcs/conversations/types/conversations_list_messages_request_direction.rb +12 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_sort_order.rb +12 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_status.rb +17 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_type.rb +13 -0
- data/lib/rcs/messages/client.rb +12 -29
- data/lib/rcs/messages/mms/client.rb +2 -2
- data/lib/rcs/messages/rcs/client.rb +1 -1
- data/lib/rcs/messages/sms/client.rb +2 -2
- data/lib/rcs/phone_numbers/campaign/client.rb +20 -6
- data/lib/rcs/phone_numbers/client.rb +0 -14
- data/lib/rcs/phone_numbers/webhook/client.rb +12 -10
- data/lib/rcs/rcs/client.rb +330 -0
- data/lib/rcs/status/get/client.rb +34 -18
- data/lib/rcs/tools/contact_card/client.rb +18 -8
- data/lib/rcs/tools/file/client.rb +92 -2
- data/lib/rcs/tools/file/types/upload_file_options.rb +21 -3
- data/lib/rcs/tools/url/client.rb +4 -2
- data/lib/rcs/types/attach_webhook_by_id_params.rb +5 -5
- data/lib/rcs/types/attach_webhook_response_webhook.rb +5 -3
- data/lib/rcs/types/autofill_campaign_params.rb +15 -3
- data/lib/rcs/types/autofill_dlc_campaign_response.rb +10 -6
- data/lib/rcs/types/autofill_dlc_response_keywords.rb +8 -10
- data/lib/rcs/types/autofill_dlc_response_keywords_help.rb +3 -3
- data/lib/rcs/types/autofill_dlc_response_keywords_opt_in.rb +6 -4
- data/lib/rcs/types/autofill_dlc_response_keywords_opt_out.rb +3 -3
- data/lib/rcs/types/autofill_dlc_response_options.rb +12 -12
- data/lib/rcs/types/brand_status.rb +5 -3
- data/lib/rcs/types/{inbound_button.rb → button_clicked.rb} +7 -7
- data/lib/rcs/types/button_clicked_data.rb +80 -0
- data/lib/rcs/types/button_clicked_data_button.rb +118 -0
- data/lib/rcs/types/{click_action_data.rb → button_clicked_data_button_raw.rb} +10 -8
- data/lib/rcs/types/button_clicked_data_button_type.rb +15 -0
- data/lib/rcs/types/campaign_query.rb +10 -2
- data/lib/rcs/types/contact.rb +5 -3
- data/lib/rcs/types/contact_id.rb +5 -3
- data/lib/rcs/types/conversation.rb +16 -8
- data/lib/rcs/types/conversation_by_id_params.rb +7 -3
- data/lib/rcs/types/conversation_contact.rb +5 -3
- data/lib/rcs/types/create_url_options.rb +4 -2
- data/lib/rcs/types/detached_webhook_info.rb +5 -3
- data/lib/rcs/types/dlc_campaign_status.rb +7 -5
- data/lib/rcs/types/dlc_campaign_with_extended_brand_and_status.rb +21 -19
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_help.rb +3 -3
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_in.rb +6 -4
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_out.rb +6 -4
- data/lib/rcs/types/extended_brand.rb +25 -13
- data/lib/rcs/types/extended_brand_with_vetting.rb +25 -13
- data/lib/rcs/types/extended_rcs_campaign.rb +25 -14
- data/lib/rcs/types/get_dlc_campaign_status_response_updates.rb +1 -1
- data/lib/rcs/types/link_click_event.rb +1 -17
- data/lib/rcs/types/message.rb +5 -3
- data/lib/rcs/types/message_content.rb +4 -4
- data/lib/rcs/types/message_event.rb +143 -0
- data/lib/rcs/types/message_event_content.rb +127 -0
- data/lib/rcs/types/message_event_conversation.rb +82 -0
- data/lib/rcs/types/message_event_direction.rb +11 -0
- data/lib/rcs/types/message_event_mms_content.rb +94 -0
- data/lib/rcs/types/message_event_rcs_button_data.rb +104 -0
- data/lib/rcs/types/message_event_rcs_cards_content.rb +99 -0
- data/lib/rcs/types/message_event_rcs_cards_content_cards_item.rb +94 -0
- data/lib/rcs/types/message_event_rcs_location_data.rb +91 -0
- data/lib/rcs/types/message_event_rcs_media_content.rb +94 -0
- data/lib/rcs/types/message_event_rcs_text_content.rb +92 -0
- data/lib/rcs/types/message_event_sms_content.rb +81 -0
- data/lib/rcs/types/message_list.rb +79 -0
- data/lib/rcs/types/message_schedule.rb +4 -5
- data/lib/rcs/types/message_with_reaction.rb +197 -0
- data/lib/rcs/types/message_with_reaction_direction.rb +11 -0
- data/lib/rcs/types/not_found_error_body.rb +59 -0
- data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item_campaign.rb +7 -3
- data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item_campaign.rb +7 -3
- data/lib/rcs/types/pinnacle_file_upload_metadata.rb +18 -2
- data/lib/rcs/types/profile_status_enum.rb +4 -4
- data/lib/rcs/types/rcs_base_options.rb +12 -1
- data/lib/rcs/types/rcs_button_call.rb +11 -2
- data/lib/rcs/types/rcs_button_open_url.rb +11 -2
- data/lib/rcs/types/rcs_button_request_user_location.rb +15 -3
- data/lib/rcs/types/rcs_button_schedule_event.rb +9 -1
- data/lib/rcs/types/rcs_button_send_location.rb +11 -2
- data/lib/rcs/types/rcs_button_trigger.rb +8 -6
- data/lib/rcs/types/rcs_campaign.rb +3 -3
- data/lib/rcs/types/rcs_campaign_schema_agent.rb +4 -4
- data/lib/rcs/types/rcs_campaign_schema_extra_agent.rb +12 -12
- data/lib/rcs/types/rcs_campaign_status.rb +5 -3
- data/lib/rcs/types/rcs_capabilities_result.rb +7 -0
- data/lib/rcs/types/rcs_capability.rb +82 -0
- data/lib/rcs/types/rcs_capability_actions.rb +105 -0
- data/lib/rcs/types/rcs_capability_cards.rb +67 -0
- data/lib/rcs/types/rcs_link_result.rb +75 -0
- data/lib/rcs/types/rcs_validate_content_media.rb +17 -3
- data/lib/rcs/types/rcs_whitelist_response.rb +58 -0
- data/lib/rcs/types/reaction_result.rb +10 -6
- data/lib/rcs/types/refreshed_file.rb +67 -0
- data/lib/rcs/types/{rcs.rb → rich_message.rb} +3 -3
- data/lib/rcs/types/scheduled_messaage.rb +5 -3
- data/lib/rcs/types/sent_mms_details.rb +4 -2
- data/lib/rcs/types/sent_rcs_details.rb +12 -13
- data/lib/rcs/types/sent_sms_details.rb +5 -3
- data/lib/rcs/types/toll_free_campaign.rb +3 -3
- data/lib/rcs/types/toll_free_campaign_status.rb +5 -3
- data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +3 -5
- data/lib/rcs/types/updated_contact_id.rb +5 -3
- data/lib/rcs/types/user_event.rb +83 -0
- data/lib/rcs/types/user_event_conversation.rb +78 -0
- data/lib/rcs/types/v_card_data.rb +5 -3
- data/lib/rcs/types/validate_campaign_params.rb +15 -3
- data/lib/rcs/types/vcard.rb +5 -3
- data/lib/rcs/types/vcard_content.rb +5 -3
- data/lib/rcs/types/vcard_resource.rb +5 -3
- data/lib/rcs/types/webhook_event_enum.rb +1 -0
- data/lib/rcs/types/webhooks.rb +5 -3
- data/lib/rcs.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +35 -5
- metadata +40 -9
- data/lib/rcs/types/click_action.rb +0 -73
- data/lib/rcs/types/click_action_data_metadata.rb +0 -69
data/lib/rcs.rb
CHANGED
|
@@ -8,6 +8,7 @@ require_relative "rcs/contacts/client"
|
|
|
8
8
|
require_relative "rcs/conversations/client"
|
|
9
9
|
require_relative "rcs/messages/client"
|
|
10
10
|
require_relative "rcs/phone_numbers/client"
|
|
11
|
+
require_relative "rcs/rcs/client"
|
|
11
12
|
require_relative "rcs/webhooks/client"
|
|
12
13
|
require_relative "rcs/campaigns/client"
|
|
13
14
|
require_relative "rcs/status/client"
|
|
@@ -25,6 +26,8 @@ module Pinnacle
|
|
|
25
26
|
attr_reader :messages
|
|
26
27
|
# @return [Pinnacle::PhoneNumbersClient]
|
|
27
28
|
attr_reader :phone_numbers
|
|
29
|
+
# @return [Pinnacle::RcsClient]
|
|
30
|
+
attr_reader :rcs
|
|
28
31
|
# @return [Pinnacle::WebhooksClient]
|
|
29
32
|
attr_reader :webhooks
|
|
30
33
|
# @return [Pinnacle::Campaigns::Client]
|
|
@@ -54,6 +57,7 @@ module Pinnacle
|
|
|
54
57
|
@conversations = Pinnacle::ConversationsClient.new(request_client: @request_client)
|
|
55
58
|
@messages = Pinnacle::MessagesClient.new(request_client: @request_client)
|
|
56
59
|
@phone_numbers = Pinnacle::PhoneNumbersClient.new(request_client: @request_client)
|
|
60
|
+
@rcs = Pinnacle::RcsClient.new(request_client: @request_client)
|
|
57
61
|
@webhooks = Pinnacle::WebhooksClient.new(request_client: @request_client)
|
|
58
62
|
@campaigns = Pinnacle::Campaigns::Client.new(request_client: @request_client)
|
|
59
63
|
@status = Pinnacle::Status::Client.new(request_client: @request_client)
|
|
@@ -72,6 +76,8 @@ module Pinnacle
|
|
|
72
76
|
attr_reader :messages
|
|
73
77
|
# @return [Pinnacle::AsyncPhoneNumbersClient]
|
|
74
78
|
attr_reader :phone_numbers
|
|
79
|
+
# @return [Pinnacle::AsyncRcsClient]
|
|
80
|
+
attr_reader :rcs
|
|
75
81
|
# @return [Pinnacle::AsyncWebhooksClient]
|
|
76
82
|
attr_reader :webhooks
|
|
77
83
|
# @return [Pinnacle::Campaigns::AsyncClient]
|
|
@@ -101,6 +107,7 @@ module Pinnacle
|
|
|
101
107
|
@conversations = Pinnacle::AsyncConversationsClient.new(request_client: @async_request_client)
|
|
102
108
|
@messages = Pinnacle::AsyncMessagesClient.new(request_client: @async_request_client)
|
|
103
109
|
@phone_numbers = Pinnacle::AsyncPhoneNumbersClient.new(request_client: @async_request_client)
|
|
110
|
+
@rcs = Pinnacle::AsyncRcsClient.new(request_client: @async_request_client)
|
|
104
111
|
@webhooks = Pinnacle::AsyncWebhooksClient.new(request_client: @async_request_client)
|
|
105
112
|
@campaigns = Pinnacle::Campaigns::AsyncClient.new(request_client: @async_request_client)
|
|
106
113
|
@status = Pinnacle::Status::AsyncClient.new(request_client: @async_request_client)
|
data/lib/requests.rb
CHANGED
|
@@ -43,7 +43,7 @@ module Pinnacle
|
|
|
43
43
|
|
|
44
44
|
# @return [Hash{String => String}]
|
|
45
45
|
def get_headers
|
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "2.0.0
|
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "2.0.0" }
|
|
47
47
|
headers["PINNACLE-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
48
48
|
headers
|
|
49
49
|
end
|
|
@@ -87,7 +87,7 @@ module Pinnacle
|
|
|
87
87
|
|
|
88
88
|
# @return [Hash{String => String}]
|
|
89
89
|
def get_headers
|
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "2.0.0
|
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "rcs", "X-Fern-SDK-Version": "2.0.0" }
|
|
91
91
|
headers["PINNACLE-API-KEY"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
92
92
|
headers
|
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "rcs/brands/types/autofill_brand_options"
|
|
4
4
|
require_relative "rcs/brands/types/brand_contact"
|
|
5
|
+
require_relative "rcs/conversations/types/conversations_list_messages_request_sort_order"
|
|
6
|
+
require_relative "rcs/conversations/types/conversations_list_messages_request_direction"
|
|
7
|
+
require_relative "rcs/conversations/types/conversations_list_messages_request_status"
|
|
8
|
+
require_relative "rcs/conversations/types/conversations_list_messages_request_type"
|
|
5
9
|
require_relative "rcs/messages/types/react_message_options"
|
|
6
10
|
require_relative "rcs/phone_numbers/types/search_phone_number_by_location"
|
|
7
11
|
require_relative "rcs/phone_numbers/types/search_phone_number_by_digits"
|
|
@@ -46,6 +50,7 @@ require_relative "rcs/tools/contact_card/types/get_v_card_schema_options"
|
|
|
46
50
|
require_relative "rcs/types/zod_error"
|
|
47
51
|
require_relative "rcs/types/error"
|
|
48
52
|
require_relative "rcs/types/bad_request_error_body"
|
|
53
|
+
require_relative "rcs/types/not_found_error_body"
|
|
49
54
|
require_relative "rcs/types/optional_contacts"
|
|
50
55
|
require_relative "rcs/types/company_sector_enum"
|
|
51
56
|
require_relative "rcs/types/company_type_enum"
|
|
@@ -145,17 +150,21 @@ require_relative "rcs/types/rcs_media_content"
|
|
|
145
150
|
require_relative "rcs/types/rcs_cards_content_cards_item"
|
|
146
151
|
require_relative "rcs/types/rcs_cards_content"
|
|
147
152
|
require_relative "rcs/types/rcs_content"
|
|
148
|
-
require_relative "rcs/types/
|
|
149
|
-
require_relative "rcs/types/
|
|
150
|
-
require_relative "rcs/types/
|
|
153
|
+
require_relative "rcs/types/button_clicked_data_button_type"
|
|
154
|
+
require_relative "rcs/types/button_clicked_data_button_raw"
|
|
155
|
+
require_relative "rcs/types/button_clicked_data_button"
|
|
156
|
+
require_relative "rcs/types/button_clicked_data"
|
|
151
157
|
require_relative "rcs/types/location_share_action_data"
|
|
152
158
|
require_relative "rcs/types/location_share_action"
|
|
153
|
-
require_relative "rcs/types/
|
|
159
|
+
require_relative "rcs/types/button_clicked"
|
|
154
160
|
require_relative "rcs/types/message_content"
|
|
155
161
|
require_relative "rcs/types/message_method_enum"
|
|
156
162
|
require_relative "rcs/types/message_status_enum"
|
|
157
163
|
require_relative "rcs/types/message_protocol_enum"
|
|
158
164
|
require_relative "rcs/types/message"
|
|
165
|
+
require_relative "rcs/types/message_with_reaction_direction"
|
|
166
|
+
require_relative "rcs/types/message_with_reaction"
|
|
167
|
+
require_relative "rcs/types/message_list"
|
|
159
168
|
require_relative "rcs/types/reaction_result"
|
|
160
169
|
require_relative "rcs/types/message_schedule"
|
|
161
170
|
require_relative "rcs/types/tracking"
|
|
@@ -169,7 +178,7 @@ require_relative "rcs/types/rich_media_message"
|
|
|
169
178
|
require_relative "rcs/types/rcs_cards_cards_item"
|
|
170
179
|
require_relative "rcs/types/rcs_cards"
|
|
171
180
|
require_relative "rcs/types/rich_cards_message"
|
|
172
|
-
require_relative "rcs/types/
|
|
181
|
+
require_relative "rcs/types/rich_message"
|
|
173
182
|
require_relative "rcs/types/sms_validation_response_segments_gsm_7"
|
|
174
183
|
require_relative "rcs/types/sms_validation_response_segments_utf_16"
|
|
175
184
|
require_relative "rcs/types/sms_validation_response_segments"
|
|
@@ -219,6 +228,12 @@ require_relative "rcs/types/phone_number_campaign_detach_phone_numbers_item_camp
|
|
|
219
228
|
require_relative "rcs/types/phone_number_campaign_detach_phone_numbers_item"
|
|
220
229
|
require_relative "rcs/types/phone_number_campaign_detach_failed_item"
|
|
221
230
|
require_relative "rcs/types/detached_phone_number_result"
|
|
231
|
+
require_relative "rcs/types/rcs_capability_cards"
|
|
232
|
+
require_relative "rcs/types/rcs_capability_actions"
|
|
233
|
+
require_relative "rcs/types/rcs_capability"
|
|
234
|
+
require_relative "rcs/types/rcs_capabilities_result"
|
|
235
|
+
require_relative "rcs/types/rcs_whitelist_response"
|
|
236
|
+
require_relative "rcs/types/rcs_link_result"
|
|
222
237
|
require_relative "rcs/types/brand_status"
|
|
223
238
|
require_relative "rcs/types/toll_free_status_enum"
|
|
224
239
|
require_relative "rcs/types/get_toll_free_campaign_status_response_updates"
|
|
@@ -236,6 +251,7 @@ require_relative "rcs/types/link_click_event"
|
|
|
236
251
|
require_relative "rcs/types/shortened_url_with_click_data"
|
|
237
252
|
require_relative "rcs/types/pinnacle_file_upload_metadata"
|
|
238
253
|
require_relative "rcs/types/upload_results"
|
|
254
|
+
require_relative "rcs/types/refreshed_file"
|
|
239
255
|
require_relative "rcs/types/v_card_address_schema_type_item"
|
|
240
256
|
require_relative "rcs/types/vcard_address"
|
|
241
257
|
require_relative "rcs/types/v_card_phone_schema_type_item"
|
|
@@ -253,3 +269,17 @@ require_relative "rcs/types/v_card_data"
|
|
|
253
269
|
require_relative "rcs/types/vcard_resource"
|
|
254
270
|
require_relative "rcs/types/webhooks"
|
|
255
271
|
require_relative "rcs/types/webhook_result"
|
|
272
|
+
require_relative "rcs/types/message_event_sms_content"
|
|
273
|
+
require_relative "rcs/types/message_event_mms_content"
|
|
274
|
+
require_relative "rcs/types/message_event_rcs_text_content"
|
|
275
|
+
require_relative "rcs/types/message_event_rcs_media_content"
|
|
276
|
+
require_relative "rcs/types/message_event_rcs_cards_content_cards_item"
|
|
277
|
+
require_relative "rcs/types/message_event_rcs_cards_content"
|
|
278
|
+
require_relative "rcs/types/message_event_rcs_button_data"
|
|
279
|
+
require_relative "rcs/types/message_event_rcs_location_data"
|
|
280
|
+
require_relative "rcs/types/message_event_content"
|
|
281
|
+
require_relative "rcs/types/message_event_conversation"
|
|
282
|
+
require_relative "rcs/types/message_event_direction"
|
|
283
|
+
require_relative "rcs/types/message_event"
|
|
284
|
+
require_relative "rcs/types/user_event_conversation"
|
|
285
|
+
require_relative "rcs/types/user_event"
|
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
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async-http-faraday
|
|
@@ -127,6 +127,10 @@ files:
|
|
|
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/conversations/types/conversations_list_messages_request_direction.rb
|
|
131
|
+
- lib/rcs/conversations/types/conversations_list_messages_request_sort_order.rb
|
|
132
|
+
- lib/rcs/conversations/types/conversations_list_messages_request_status.rb
|
|
133
|
+
- lib/rcs/conversations/types/conversations_list_messages_request_type.rb
|
|
130
134
|
- lib/rcs/messages/client.rb
|
|
131
135
|
- lib/rcs/messages/mms/client.rb
|
|
132
136
|
- lib/rcs/messages/mms/types/mms_send_response.rb
|
|
@@ -147,6 +151,7 @@ files:
|
|
|
147
151
|
- lib/rcs/phone_numbers/types/search_phone_number_by_location.rb
|
|
148
152
|
- lib/rcs/phone_numbers/types/search_phone_number_options.rb
|
|
149
153
|
- lib/rcs/phone_numbers/webhook/client.rb
|
|
154
|
+
- lib/rcs/rcs/client.rb
|
|
150
155
|
- lib/rcs/status/client.rb
|
|
151
156
|
- lib/rcs/status/get/client.rb
|
|
152
157
|
- lib/rcs/tools/client.rb
|
|
@@ -185,15 +190,17 @@ files:
|
|
|
185
190
|
- lib/rcs/types/basic_phone_information_location_country.rb
|
|
186
191
|
- lib/rcs/types/brand_status.rb
|
|
187
192
|
- lib/rcs/types/brand_status_enum.rb
|
|
193
|
+
- lib/rcs/types/button_clicked.rb
|
|
194
|
+
- lib/rcs/types/button_clicked_data.rb
|
|
195
|
+
- lib/rcs/types/button_clicked_data_button.rb
|
|
196
|
+
- lib/rcs/types/button_clicked_data_button_raw.rb
|
|
197
|
+
- lib/rcs/types/button_clicked_data_button_type.rb
|
|
188
198
|
- lib/rcs/types/buy_response_capabilities.rb
|
|
189
199
|
- lib/rcs/types/campaign_enum.rb
|
|
190
200
|
- lib/rcs/types/campaign_query.rb
|
|
191
201
|
- lib/rcs/types/campaign_submission_result.rb
|
|
192
202
|
- lib/rcs/types/campaign_validation_response_errors_item.rb
|
|
193
203
|
- lib/rcs/types/campaign_validation_result.rb
|
|
194
|
-
- lib/rcs/types/click_action.rb
|
|
195
|
-
- lib/rcs/types/click_action_data.rb
|
|
196
|
-
- lib/rcs/types/click_action_data_metadata.rb
|
|
197
204
|
- lib/rcs/types/company_sector_enum.rb
|
|
198
205
|
- lib/rcs/types/company_type_enum.rb
|
|
199
206
|
- lib/rcs/types/configured_webhook.rb
|
|
@@ -230,22 +237,37 @@ files:
|
|
|
230
237
|
- lib/rcs/types/get_conversation_params.rb
|
|
231
238
|
- lib/rcs/types/get_dlc_campaign_status_response_updates.rb
|
|
232
239
|
- lib/rcs/types/get_toll_free_campaign_status_response_updates.rb
|
|
233
|
-
- lib/rcs/types/inbound_button.rb
|
|
234
240
|
- lib/rcs/types/link_click_event.rb
|
|
235
241
|
- lib/rcs/types/location_share_action.rb
|
|
236
242
|
- lib/rcs/types/location_share_action_data.rb
|
|
237
243
|
- lib/rcs/types/message.rb
|
|
238
244
|
- lib/rcs/types/message_content.rb
|
|
245
|
+
- lib/rcs/types/message_event.rb
|
|
246
|
+
- lib/rcs/types/message_event_content.rb
|
|
247
|
+
- lib/rcs/types/message_event_conversation.rb
|
|
248
|
+
- lib/rcs/types/message_event_direction.rb
|
|
249
|
+
- lib/rcs/types/message_event_mms_content.rb
|
|
250
|
+
- lib/rcs/types/message_event_rcs_button_data.rb
|
|
251
|
+
- lib/rcs/types/message_event_rcs_cards_content.rb
|
|
252
|
+
- lib/rcs/types/message_event_rcs_cards_content_cards_item.rb
|
|
253
|
+
- lib/rcs/types/message_event_rcs_location_data.rb
|
|
254
|
+
- lib/rcs/types/message_event_rcs_media_content.rb
|
|
255
|
+
- lib/rcs/types/message_event_rcs_text_content.rb
|
|
256
|
+
- lib/rcs/types/message_event_sms_content.rb
|
|
257
|
+
- lib/rcs/types/message_list.rb
|
|
239
258
|
- lib/rcs/types/message_method_enum.rb
|
|
240
259
|
- lib/rcs/types/message_protocol_enum.rb
|
|
241
260
|
- lib/rcs/types/message_schedule.rb
|
|
242
261
|
- lib/rcs/types/message_status_enum.rb
|
|
243
262
|
- lib/rcs/types/message_volume_enum.rb
|
|
263
|
+
- lib/rcs/types/message_with_reaction.rb
|
|
264
|
+
- lib/rcs/types/message_with_reaction_direction.rb
|
|
244
265
|
- lib/rcs/types/messaging_profile_enum.rb
|
|
245
266
|
- lib/rcs/types/mms_content.rb
|
|
246
267
|
- lib/rcs/types/mms_validation_response_segments.rb
|
|
247
268
|
- lib/rcs/types/mms_validation_response_segments_value_item.rb
|
|
248
269
|
- lib/rcs/types/mms_validation_result.rb
|
|
270
|
+
- lib/rcs/types/not_found_error_body.rb
|
|
249
271
|
- lib/rcs/types/number_format.rb
|
|
250
272
|
- lib/rcs/types/opt_in_method_enum.rb
|
|
251
273
|
- lib/rcs/types/optional_brand_info.rb
|
|
@@ -271,7 +293,6 @@ files:
|
|
|
271
293
|
- lib/rcs/types/pinnacle_url_config.rb
|
|
272
294
|
- lib/rcs/types/profile_status_enum.rb
|
|
273
295
|
- lib/rcs/types/purchased_number.rb
|
|
274
|
-
- lib/rcs/types/rcs.rb
|
|
275
296
|
- lib/rcs/types/rcs_base.rb
|
|
276
297
|
- lib/rcs/types/rcs_base_options.rb
|
|
277
298
|
- lib/rcs/types/rcs_button_call.rb
|
|
@@ -301,21 +322,29 @@ files:
|
|
|
301
322
|
- lib/rcs/types/rcs_campaign_schema_use_case.rb
|
|
302
323
|
- lib/rcs/types/rcs_campaign_status.rb
|
|
303
324
|
- lib/rcs/types/rcs_campaign_use_case_enum.rb
|
|
325
|
+
- lib/rcs/types/rcs_capabilities_result.rb
|
|
326
|
+
- lib/rcs/types/rcs_capability.rb
|
|
327
|
+
- lib/rcs/types/rcs_capability_actions.rb
|
|
328
|
+
- lib/rcs/types/rcs_capability_cards.rb
|
|
304
329
|
- lib/rcs/types/rcs_cards.rb
|
|
305
330
|
- lib/rcs/types/rcs_cards_cards_item.rb
|
|
306
331
|
- lib/rcs/types/rcs_cards_content.rb
|
|
307
332
|
- lib/rcs/types/rcs_cards_content_cards_item.rb
|
|
308
333
|
- lib/rcs/types/rcs_content.rb
|
|
334
|
+
- lib/rcs/types/rcs_link_result.rb
|
|
309
335
|
- lib/rcs/types/rcs_media_content.rb
|
|
310
336
|
- lib/rcs/types/rcs_media_details_content.rb
|
|
311
337
|
- lib/rcs/types/rcs_text_content.rb
|
|
312
338
|
- lib/rcs/types/rcs_validate_content.rb
|
|
313
339
|
- lib/rcs/types/rcs_validate_content_media.rb
|
|
314
340
|
- lib/rcs/types/rcs_validation_result.rb
|
|
341
|
+
- lib/rcs/types/rcs_whitelist_response.rb
|
|
315
342
|
- lib/rcs/types/reaction_result.rb
|
|
343
|
+
- lib/rcs/types/refreshed_file.rb
|
|
316
344
|
- lib/rcs/types/rich_button.rb
|
|
317
345
|
- lib/rcs/types/rich_cards_message.rb
|
|
318
346
|
- lib/rcs/types/rich_media_message.rb
|
|
347
|
+
- lib/rcs/types/rich_message.rb
|
|
319
348
|
- lib/rcs/types/rich_text_message.rb
|
|
320
349
|
- lib/rcs/types/scheduled_messaage.rb
|
|
321
350
|
- lib/rcs/types/scheduled_send_response_config.rb
|
|
@@ -346,6 +375,8 @@ files:
|
|
|
346
375
|
- lib/rcs/types/upsert_contact.rb
|
|
347
376
|
- lib/rcs/types/upsert_toll_free_campaign_opt_in.rb
|
|
348
377
|
- lib/rcs/types/upsert_toll_free_campaign_use_case.rb
|
|
378
|
+
- lib/rcs/types/user_event.rb
|
|
379
|
+
- lib/rcs/types/user_event_conversation.rb
|
|
349
380
|
- lib/rcs/types/v_card_address_schema_type_item.rb
|
|
350
381
|
- lib/rcs/types/v_card_data.rb
|
|
351
382
|
- lib/rcs/types/v_card_data_file.rb
|
|
@@ -392,9 +423,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
392
423
|
version: 2.7.0
|
|
393
424
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
394
425
|
requirements:
|
|
395
|
-
- - "
|
|
426
|
+
- - ">="
|
|
396
427
|
- !ruby/object:Gem::Version
|
|
397
|
-
version:
|
|
428
|
+
version: '0'
|
|
398
429
|
requirements: []
|
|
399
430
|
rubygems_version: 3.1.6
|
|
400
431
|
signing_key:
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "click_action_data"
|
|
4
|
-
require "ostruct"
|
|
5
|
-
require "json"
|
|
6
|
-
|
|
7
|
-
module Pinnacle
|
|
8
|
-
module Types
|
|
9
|
-
class ClickAction
|
|
10
|
-
# @return [String] Title of the button or quick reply that was clicked on.
|
|
11
|
-
attr_reader :button
|
|
12
|
-
# @return [Pinnacle::Types::ClickActionData] Payload received from the button interaction.
|
|
13
|
-
attr_reader :data
|
|
14
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
15
|
-
attr_reader :additional_properties
|
|
16
|
-
# @return [Object]
|
|
17
|
-
attr_reader :_field_set
|
|
18
|
-
protected :_field_set
|
|
19
|
-
|
|
20
|
-
OMIT = Object.new
|
|
21
|
-
|
|
22
|
-
# @param button [String] Title of the button or quick reply that was clicked on.
|
|
23
|
-
# @param data [Pinnacle::Types::ClickActionData] Payload received from the button interaction.
|
|
24
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
25
|
-
# @return [Pinnacle::Types::ClickAction]
|
|
26
|
-
def initialize(button:, data:, additional_properties: nil)
|
|
27
|
-
@button = button
|
|
28
|
-
@data = data
|
|
29
|
-
@additional_properties = additional_properties
|
|
30
|
-
@_field_set = { "button": button, "data": data }
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Deserialize a JSON object to an instance of ClickAction
|
|
34
|
-
#
|
|
35
|
-
# @param json_object [String]
|
|
36
|
-
# @return [Pinnacle::Types::ClickAction]
|
|
37
|
-
def self.from_json(json_object:)
|
|
38
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
39
|
-
parsed_json = JSON.parse(json_object)
|
|
40
|
-
button = parsed_json["button"]
|
|
41
|
-
if parsed_json["data"].nil?
|
|
42
|
-
data = nil
|
|
43
|
-
else
|
|
44
|
-
data = parsed_json["data"].to_json
|
|
45
|
-
data = Pinnacle::Types::ClickActionData.from_json(json_object: data)
|
|
46
|
-
end
|
|
47
|
-
new(
|
|
48
|
-
button: button,
|
|
49
|
-
data: data,
|
|
50
|
-
additional_properties: struct
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# Serialize an instance of ClickAction to a JSON object
|
|
55
|
-
#
|
|
56
|
-
# @return [String]
|
|
57
|
-
def to_json(*_args)
|
|
58
|
-
@_field_set&.to_json
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
62
|
-
# hash and check each fields type against the current object's property
|
|
63
|
-
# definitions.
|
|
64
|
-
#
|
|
65
|
-
# @param obj [Object]
|
|
66
|
-
# @return [Void]
|
|
67
|
-
def self.validate_raw(obj:)
|
|
68
|
-
obj.button.is_a?(String) != false || raise("Passed value for field obj.button is not the expected type, validation failed.")
|
|
69
|
-
Pinnacle::Types::ClickActionData.validate_raw(obj: obj.data)
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "ostruct"
|
|
4
|
-
require "json"
|
|
5
|
-
|
|
6
|
-
module Pinnacle
|
|
7
|
-
module Types
|
|
8
|
-
# Data that is attached to the button. <br>
|
|
9
|
-
# This is only returned when `trigger` buttons are pressed.
|
|
10
|
-
class ClickActionDataMetadata
|
|
11
|
-
# @return [String] Additional metadata attached to the interaction.
|
|
12
|
-
attr_reader :metadata
|
|
13
|
-
# @return [String] Payload associated with the button.
|
|
14
|
-
attr_reader :payload
|
|
15
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
16
|
-
attr_reader :additional_properties
|
|
17
|
-
# @return [Object]
|
|
18
|
-
attr_reader :_field_set
|
|
19
|
-
protected :_field_set
|
|
20
|
-
|
|
21
|
-
OMIT = Object.new
|
|
22
|
-
|
|
23
|
-
# @param metadata [String] Additional metadata attached to the interaction.
|
|
24
|
-
# @param payload [String] Payload associated with the button.
|
|
25
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
|
-
# @return [Pinnacle::Types::ClickActionDataMetadata]
|
|
27
|
-
def initialize(metadata:, payload:, additional_properties: nil)
|
|
28
|
-
@metadata = metadata
|
|
29
|
-
@payload = payload
|
|
30
|
-
@additional_properties = additional_properties
|
|
31
|
-
@_field_set = { "metadata": metadata, "payload": payload }
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Deserialize a JSON object to an instance of ClickActionDataMetadata
|
|
35
|
-
#
|
|
36
|
-
# @param json_object [String]
|
|
37
|
-
# @return [Pinnacle::Types::ClickActionDataMetadata]
|
|
38
|
-
def self.from_json(json_object:)
|
|
39
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
40
|
-
parsed_json = JSON.parse(json_object)
|
|
41
|
-
metadata = parsed_json["metadata"]
|
|
42
|
-
payload = parsed_json["payload"]
|
|
43
|
-
new(
|
|
44
|
-
metadata: metadata,
|
|
45
|
-
payload: payload,
|
|
46
|
-
additional_properties: struct
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# Serialize an instance of ClickActionDataMetadata to a JSON object
|
|
51
|
-
#
|
|
52
|
-
# @return [String]
|
|
53
|
-
def to_json(*_args)
|
|
54
|
-
@_field_set&.to_json
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
58
|
-
# hash and check each fields type against the current object's property
|
|
59
|
-
# definitions.
|
|
60
|
-
#
|
|
61
|
-
# @param obj [Object]
|
|
62
|
-
# @return [Void]
|
|
63
|
-
def self.validate_raw(obj:)
|
|
64
|
-
obj.metadata.is_a?(String) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
|
65
|
-
obj.payload.is_a?(String) != false || raise("Passed value for field obj.payload is not the expected type, validation failed.")
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|