rcs 1.0.18 → 2.0.0.pre.rc.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 (321) hide show
  1. checksums.yaml +4 -4
  2. data/lib/environment.rb +1 -1
  3. data/lib/rcs/brands/client.rb +631 -0
  4. data/lib/rcs/brands/types/autofill_brand_schema_options.rb +61 -0
  5. data/lib/rcs/brands/types/brand_contact.rb +84 -0
  6. data/lib/rcs/campaigns/client.rb +44 -0
  7. data/lib/rcs/campaigns/dlc/client.rb +480 -0
  8. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords.rb +99 -0
  9. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_help.rb +74 -0
  10. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_opt_in.rb +74 -0
  11. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_opt_out.rb +74 -0
  12. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_links.rb +74 -0
  13. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_options.rb +110 -0
  14. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_use_case.rb +76 -0
  15. data/lib/rcs/campaigns/rcs/client.rb +457 -0
  16. data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +155 -0
  17. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent.rb +140 -0
  18. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_emails_item.rb +73 -0
  19. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_phones_item.rb +73 -0
  20. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_websites_item.rb +73 -0
  21. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_links.rb +74 -0
  22. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_in.rb +75 -0
  23. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_out.rb +76 -0
  24. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_use_case.rb +75 -0
  25. data/lib/rcs/campaigns/toll_free/client.rb +429 -0
  26. data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +130 -0
  27. data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb +86 -0
  28. data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_use_case.rb +75 -0
  29. data/lib/rcs/contacts/client.rb +275 -0
  30. data/lib/rcs/conversations/client.rb +273 -0
  31. data/lib/rcs/message/client.rb +30 -0
  32. data/lib/rcs/message/sms/client.rb +96 -0
  33. data/lib/rcs/messages/client.rb +192 -0
  34. data/lib/rcs/messages/mms/client.rb +98 -0
  35. data/lib/rcs/messages/rcs/client.rb +94 -0
  36. data/lib/rcs/messages/send/client.rb +318 -0
  37. data/lib/rcs/messages/send/types/send_mms_response.rb +60 -0
  38. data/lib/rcs/messages/send/types/send_mms_schema_options.rb +108 -0
  39. data/lib/rcs/messages/send/types/send_rcs_response.rb +60 -0
  40. data/lib/rcs/messages/send/types/send_sms_response.rb +60 -0
  41. data/lib/rcs/messages/send/types/send_sms_schema_options.rb +81 -0
  42. data/lib/rcs/messages/types/message_reaction_schema_options.rb +71 -0
  43. data/lib/rcs/phone_numbers/campaign/client.rb +179 -0
  44. data/lib/rcs/phone_numbers/client.rb +359 -0
  45. data/lib/rcs/phone_numbers/types/phone_details_schema_level.rb +16 -0
  46. data/lib/rcs/phone_numbers/types/phone_details_schema_options.rb +93 -0
  47. data/lib/rcs/phone_numbers/types/phone_details_schema_options_enhanced_contact_info.rb +64 -0
  48. data/lib/rcs/phone_numbers/types/phone_numbers_get_response.rb +58 -0
  49. data/lib/rcs/phone_numbers/types/search_schema_location.rb +96 -0
  50. data/lib/rcs/phone_numbers/types/search_schema_number.rb +81 -0
  51. data/lib/rcs/phone_numbers/types/search_schema_options.rb +62 -0
  52. data/lib/rcs/phone_numbers/webhook/client.rb +191 -0
  53. data/lib/rcs/status/client.rb +30 -0
  54. data/lib/rcs/status/get/client.rb +367 -0
  55. data/lib/rcs/tools/client.rb +32 -199
  56. data/lib/rcs/tools/contact_card/client.rb +285 -0
  57. data/lib/rcs/tools/contact_card/types/get_v_card_schema_options.rb +67 -0
  58. data/lib/rcs/tools/file/client.rb +138 -0
  59. data/lib/rcs/tools/file/types/file_upload_schema_options.rb +70 -0
  60. data/lib/rcs/tools/file/types/file_upload_schema_options_download.rb +66 -0
  61. data/lib/rcs/tools/url/client.rb +245 -0
  62. data/lib/rcs/types/advanced_phone_information.rb +147 -0
  63. data/lib/rcs/types/advanced_phone_information_carrier.rb +90 -0
  64. data/lib/rcs/types/advanced_phone_information_contact.rb +146 -0
  65. data/lib/rcs/types/advanced_phone_information_location.rb +142 -0
  66. data/lib/rcs/types/advanced_phone_information_location_coordinates.rb +73 -0
  67. data/lib/rcs/types/advanced_phone_information_location_country.rb +77 -0
  68. data/lib/rcs/types/advanced_phone_information_type.rb +97 -0
  69. data/lib/rcs/types/advanced_phone_information_type_recommendation.rb +15 -0
  70. data/lib/rcs/types/agent.rb +68 -0
  71. data/lib/rcs/types/attach_webhook_params.rb +60 -0
  72. data/lib/rcs/types/attach_webhook_response_webhook.rb +86 -0
  73. data/lib/rcs/types/attach_webhook_schema_name.rb +88 -0
  74. data/lib/rcs/types/attach_webhook_schema_webhook_id.rb +77 -0
  75. data/lib/rcs/types/attached_phone_number_result.rb +75 -0
  76. data/lib/rcs/types/autofill_campaign_params.rb +69 -0
  77. data/lib/rcs/types/autofill_dlc_campaign_response.rb +169 -0
  78. data/lib/rcs/types/autofill_dlc_response_keywords.rb +95 -0
  79. data/lib/rcs/types/autofill_dlc_response_keywords_help.rb +70 -0
  80. data/lib/rcs/{send/types/send_sms_response.rb → types/autofill_dlc_response_keywords_opt_in.rb} +18 -17
  81. data/lib/rcs/types/autofill_dlc_response_keywords_opt_out.rb +70 -0
  82. data/lib/rcs/types/autofill_dlc_response_links.rb +70 -0
  83. data/lib/rcs/types/autofill_dlc_response_options.rb +106 -0
  84. data/lib/rcs/types/autofill_dlc_response_use_case.rb +72 -0
  85. data/lib/rcs/types/bad_request_error_body.rb +44 -45
  86. data/lib/rcs/types/basic_phone_information.rb +127 -0
  87. data/lib/rcs/{company/types/company_register_response_brand.rb → types/basic_phone_information_contact.rb} +12 -21
  88. data/lib/rcs/types/basic_phone_information_location.rb +74 -0
  89. data/lib/rcs/types/basic_phone_information_location_country.rb +75 -0
  90. data/lib/rcs/types/brand_status.rb +92 -0
  91. data/lib/rcs/types/brand_status_enum.rb +21 -0
  92. data/lib/rcs/types/buy_response_capabilities.rb +77 -0
  93. data/lib/rcs/types/campaign_enum.rb +15 -0
  94. data/lib/rcs/types/campaign_query.rb +69 -0
  95. data/lib/rcs/{company/types/company_register_request_company_id.rb → types/campaign_submission_result.rb} +15 -16
  96. data/lib/rcs/types/campaign_validation_response_errors_item.rb +76 -0
  97. data/lib/rcs/types/campaign_validation_result.rb +71 -0
  98. data/lib/rcs/types/click_action.rb +73 -0
  99. data/lib/rcs/types/click_action_data.rb +56 -0
  100. data/lib/rcs/types/click_action_data_metadata.rb +69 -0
  101. data/lib/rcs/types/company_sector_enum.rb +26 -0
  102. data/lib/rcs/types/company_type_enum.rb +14 -0
  103. data/lib/rcs/types/configured_webhook.rb +85 -0
  104. data/lib/rcs/types/contact.rb +105 -0
  105. data/lib/rcs/types/contact_id.rb +57 -0
  106. data/lib/rcs/types/conversation.rb +146 -0
  107. data/lib/rcs/types/conversation_contact.rb +68 -0
  108. data/lib/rcs/types/conversation_list.rb +79 -0
  109. data/lib/rcs/types/conversation_sender.rb +60 -0
  110. data/lib/rcs/types/create_url_options.rb +61 -0
  111. data/lib/rcs/types/detached_phone_number_result.rb +75 -0
  112. data/lib/rcs/types/detached_webhook_info.rb +74 -0
  113. data/lib/rcs/types/detailed_phone_number_enum.rb +25 -0
  114. data/lib/rcs/types/dlc_assignment_status_enum.rb +19 -0
  115. data/lib/rcs/types/dlc_campaign_status.rb +107 -0
  116. data/lib/rcs/types/dlc_campaign_use_case_enum.rb +35 -0
  117. data/lib/rcs/types/dlc_campaign_with_extended_brand_and_status.rb +194 -0
  118. data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords.rb +94 -0
  119. data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_help.rb +72 -0
  120. data/lib/rcs/{send/types/send_mms_response.rb → types/dlc_with_extended_brand_and_status_keywords_opt_in.rb} +20 -17
  121. data/lib/rcs/{send/types/send_rcs_response.rb → types/dlc_with_extended_brand_and_status_keywords_opt_out.rb} +20 -17
  122. data/lib/rcs/types/dlc_with_extended_brand_and_status_links.rb +70 -0
  123. data/lib/rcs/types/dlc_with_extended_brand_and_status_options.rb +106 -0
  124. data/lib/rcs/types/dlc_with_extended_brand_and_status_use_case.rb +72 -0
  125. data/lib/rcs/types/enhanced_contact.rb +9 -0
  126. data/lib/rcs/types/enhanced_contact_item.rb +104 -0
  127. data/lib/rcs/types/error.rb +61 -0
  128. data/lib/rcs/types/extended_brand.rb +194 -0
  129. data/lib/rcs/types/extended_brand_with_vetting.rb +226 -0
  130. data/lib/rcs/types/extended_rcs_campaign.rb +173 -0
  131. data/lib/rcs/{company/types/company_register_request.rb → types/get_conversation_params.rb} +13 -12
  132. data/lib/rcs/types/get_conversation_request_id.rb +58 -0
  133. data/lib/rcs/types/get_conversation_request_recipient.rb +72 -0
  134. data/lib/rcs/types/get_dlc_campaign_status_response_updates.rb +96 -0
  135. data/lib/rcs/types/get_toll_free_campaign_status_response_updates.rb +92 -0
  136. data/lib/rcs/types/inbound_button.rb +56 -0
  137. data/lib/rcs/types/link_click_event.rb +465 -0
  138. data/lib/rcs/{company/types/company_update_response.rb → types/location_share_action.rb} +19 -19
  139. data/lib/rcs/types/location_share_action_data.rb +89 -0
  140. data/lib/rcs/types/message.rb +174 -0
  141. data/lib/rcs/types/message_content.rb +85 -0
  142. data/lib/rcs/types/message_method_enum.rb +12 -0
  143. data/lib/rcs/types/message_protocol_enum.rb +12 -0
  144. data/lib/rcs/types/message_schedule.rb +94 -0
  145. data/lib/rcs/types/message_status_enum.rb +16 -0
  146. data/lib/rcs/types/message_volume_enum.rb +20 -0
  147. data/lib/rcs/types/messaging_profile_enum.rb +11 -0
  148. data/lib/rcs/types/mms_content.rb +74 -0
  149. data/lib/rcs/types/mms_validation_response_segments.rb +85 -0
  150. data/lib/rcs/types/mms_validation_response_segments_value_item.rb +75 -0
  151. data/lib/rcs/types/mms_validation_result.rb +82 -0
  152. data/lib/rcs/types/nullable_contact.rb +84 -0
  153. data/lib/rcs/types/number_format.rb +79 -0
  154. data/lib/rcs/types/opt_in_method_enum.rb +13 -0
  155. data/lib/rcs/types/optional_brand_info.rb +145 -0
  156. data/lib/rcs/types/optional_contact.rb +83 -0
  157. data/lib/rcs/types/optional_contacts.rb +84 -0
  158. data/lib/rcs/types/phone.rb +101 -0
  159. data/lib/rcs/types/phone_capabilities.rb +75 -0
  160. data/lib/rcs/types/phone_enum.rb +13 -0
  161. data/lib/rcs/types/phone_feature_enum.rb +18 -0
  162. data/lib/rcs/types/phone_number_campaign_attach_failed_item.rb +67 -0
  163. data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item.rb +75 -0
  164. data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item_campaign.rb +78 -0
  165. data/lib/rcs/types/phone_number_campaign_detach_failed_item.rb +67 -0
  166. data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item.rb +75 -0
  167. data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item_campaign.rb +78 -0
  168. data/lib/rcs/types/phone_number_cost.rb +75 -0
  169. data/lib/rcs/types/phone_number_details.rb +110 -0
  170. data/lib/rcs/types/phone_number_enum.rb +18 -0
  171. data/lib/rcs/types/phone_number_region.rb +91 -0
  172. data/lib/rcs/types/phone_number_status.rb +90 -0
  173. data/lib/rcs/types/phone_number_status_enum.rb +16 -0
  174. data/lib/rcs/types/pinnacle_file_upload_metadata.rb +84 -0
  175. data/lib/rcs/types/pinnacle_url_config.rb +71 -0
  176. data/lib/rcs/types/profile_status_enum.rb +17 -0
  177. data/lib/rcs/types/purchased_number.rb +75 -0
  178. data/lib/rcs/types/rcs.rb +70 -0
  179. data/lib/rcs/types/rcs_base.rb +82 -0
  180. data/lib/rcs/types/rcs_base_options.rb +100 -0
  181. data/lib/rcs/types/rcs_button_call.rb +68 -0
  182. data/lib/rcs/types/rcs_button_content.rb +148 -0
  183. data/lib/rcs/types/rcs_button_open_url.rb +68 -0
  184. data/lib/rcs/types/rcs_button_request_user_location.rb +58 -0
  185. data/lib/rcs/types/rcs_button_schedule_event.rb +98 -0
  186. data/lib/rcs/types/rcs_button_send_location.rb +74 -0
  187. data/lib/rcs/types/rcs_button_send_location_lat_long.rb +68 -0
  188. data/lib/rcs/types/rcs_button_trigger.rb +78 -0
  189. data/lib/rcs/types/rcs_campaign.rb +143 -0
  190. data/lib/rcs/types/rcs_campaign_opt_in_method_enum.rb +15 -0
  191. data/lib/rcs/types/rcs_campaign_schema_agent.rb +134 -0
  192. data/lib/rcs/types/rcs_campaign_schema_agent_emails_item.rb +69 -0
  193. data/lib/rcs/types/rcs_campaign_schema_agent_phones_item.rb +69 -0
  194. data/lib/rcs/types/rcs_campaign_schema_agent_websites_item.rb +69 -0
  195. data/lib/rcs/types/rcs_campaign_schema_extra_agent.rb +134 -0
  196. data/lib/rcs/types/rcs_campaign_schema_extra_agent_emails_item.rb +70 -0
  197. data/lib/rcs/types/rcs_campaign_schema_extra_agent_phones_item.rb +70 -0
  198. data/lib/rcs/types/rcs_campaign_schema_extra_agent_websites_item.rb +71 -0
  199. data/lib/rcs/types/rcs_campaign_schema_extra_links.rb +70 -0
  200. data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +71 -0
  201. data/lib/rcs/types/rcs_campaign_schema_extra_opt_out.rb +70 -0
  202. data/lib/rcs/types/rcs_campaign_schema_extra_use_case.rb +71 -0
  203. data/lib/rcs/types/rcs_campaign_schema_links.rb +70 -0
  204. data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +71 -0
  205. data/lib/rcs/types/rcs_campaign_schema_opt_out.rb +70 -0
  206. data/lib/rcs/types/rcs_campaign_schema_use_case.rb +71 -0
  207. data/lib/rcs/types/rcs_campaign_status.rb +86 -0
  208. data/lib/rcs/types/rcs_campaign_use_case_enum.rb +23 -0
  209. data/lib/rcs/types/rcs_card.rb +110 -0
  210. data/lib/rcs/types/rcs_cards.rb +79 -0
  211. data/lib/rcs/types/rcs_cards_cards_item.rb +88 -0
  212. data/lib/rcs/types/rcs_cards_content.rb +79 -0
  213. data/lib/rcs/types/rcs_cards_content_cards_item.rb +94 -0
  214. data/lib/rcs/types/rcs_content.rb +72 -0
  215. data/lib/rcs/types/rcs_media.rb +110 -0
  216. data/lib/rcs/types/rcs_media_content.rb +81 -0
  217. data/lib/rcs/types/rcs_media_details_content.rb +77 -0
  218. data/lib/rcs/types/rcs_text.rb +106 -0
  219. data/lib/rcs/types/rcs_text_content.rb +72 -0
  220. data/lib/rcs/types/rcs_validate_content.rb +70 -0
  221. data/lib/rcs/{company/types/company_register_response.rb → types/rcs_validate_content_media.rb} +19 -21
  222. data/lib/rcs/types/rcs_validation_result.rb +76 -0
  223. data/lib/rcs/types/reaction_result.rb +67 -0
  224. data/lib/rcs/types/scheduled_messaage.rb +73 -0
  225. data/lib/rcs/types/scheduled_send_response_config.rb +89 -0
  226. data/lib/rcs/types/send_sms_response_segments.rb +69 -0
  227. data/lib/rcs/types/send_sms_response_segments_encoding.rb +11 -0
  228. data/lib/rcs/types/sent_mms_details.rb +102 -0
  229. data/lib/rcs/types/sent_rcs_details.rb +105 -0
  230. data/lib/rcs/types/sent_sms_details.rb +108 -0
  231. data/lib/rcs/types/shortened_url.rb +77 -0
  232. data/lib/rcs/types/shortened_url_with_click_data.rb +90 -0
  233. data/lib/rcs/types/sms_content.rb +58 -0
  234. data/lib/rcs/types/sms_validation_response_segments.rb +80 -0
  235. data/lib/rcs/types/sms_validation_response_segments_gsm_7.rb +75 -0
  236. data/lib/rcs/types/sms_validation_response_segments_utf_16.rb +68 -0
  237. data/lib/rcs/types/sms_validation_response_total.rb +75 -0
  238. data/lib/rcs/types/sms_validation_result.rb +102 -0
  239. data/lib/rcs/types/sub_use_case_enum.rb +19 -0
  240. data/lib/rcs/types/submission_results.rb +57 -0
  241. data/lib/rcs/types/successful_conversation_update.rb +58 -0
  242. data/lib/rcs/types/toll_free_campaign.rb +118 -0
  243. data/lib/rcs/types/toll_free_campaign_schema_opt_in.rb +78 -0
  244. data/lib/rcs/types/toll_free_campaign_schema_use_case.rb +71 -0
  245. data/lib/rcs/types/toll_free_campaign_status.rb +91 -0
  246. data/lib/rcs/types/toll_free_campaign_use_case_enum.rb +52 -0
  247. data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +155 -0
  248. data/lib/rcs/types/toll_free_status_enum.rb +20 -0
  249. data/lib/rcs/types/tracking.rb +17 -0
  250. data/lib/rcs/types/updated_contact_id.rb +57 -0
  251. data/lib/rcs/types/upload_results.rb +80 -0
  252. data/lib/rcs/types/v_card_address_schema_type_item.rb +15 -0
  253. data/lib/rcs/types/v_card_data.rb +237 -0
  254. data/lib/rcs/types/v_card_data_file.rb +74 -0
  255. data/lib/rcs/types/v_card_data_file_metadata.rb +62 -0
  256. data/lib/rcs/types/v_card_email_schema_type_item.rb +21 -0
  257. data/lib/rcs/types/v_card_geo.rb +70 -0
  258. data/lib/rcs/types/v_card_name.rb +98 -0
  259. data/lib/rcs/types/v_card_organization.rb +70 -0
  260. data/lib/rcs/types/v_card_phone_schema_type_item.rb +21 -0
  261. data/lib/rcs/types/validate_campaign_params.rb +69 -0
  262. data/lib/rcs/types/validation_error_details.rb +76 -0
  263. data/lib/rcs/types/validation_results.rb +71 -0
  264. data/lib/rcs/types/vcard.rb +215 -0
  265. data/lib/rcs/types/vcard_address.rb +130 -0
  266. data/lib/rcs/types/vcard_content.rb +223 -0
  267. data/lib/rcs/types/vcard_email.rb +70 -0
  268. data/lib/rcs/types/vcard_phone.rb +70 -0
  269. data/lib/rcs/types/vcard_resource.rb +71 -0
  270. data/lib/rcs/types/vetting_feedback.rb +81 -0
  271. data/lib/rcs/types/vetting_history.rb +98 -0
  272. data/lib/rcs/types/vetting_history_vetting_status.rb +13 -0
  273. data/lib/rcs/types/vetting_results.rb +57 -0
  274. data/lib/rcs/types/webhook_event_enum.rb +13 -0
  275. data/lib/rcs/types/webhook_result.rb +64 -0
  276. data/lib/rcs/{company/types/company_update_response_brand.rb → types/webhooks.rb} +25 -17
  277. data/lib/rcs/types/zod_error.rb +73 -0
  278. data/lib/rcs/webhooks/client.rb +93 -0
  279. data/lib/rcs.rb +67 -83
  280. data/lib/requests.rb +4 -4
  281. data/lib/types_export.rb +252 -46
  282. metadata +278 -52
  283. data/lib/rcs/company/client.rb +0 -375
  284. data/lib/rcs/company/types/company_register_request_company.rb +0 -128
  285. data/lib/rcs/send/client.rb +0 -382
  286. data/lib/rcs/send/types/rcs_fallback.rb +0 -84
  287. data/lib/rcs/tools/types/tools_shorten_url_response.rb +0 -70
  288. data/lib/rcs/tools/types/tools_upload_url_response.rb +0 -69
  289. data/lib/rcs/types/action.rb +0 -154
  290. data/lib/rcs/types/action_lat_long.rb +0 -68
  291. data/lib/rcs/types/action_type.rb +0 -16
  292. data/lib/rcs/types/additional_email.rb +0 -65
  293. data/lib/rcs/types/additional_phone_number.rb +0 -65
  294. data/lib/rcs/types/additional_website.rb +0 -65
  295. data/lib/rcs/types/card.rb +0 -90
  296. data/lib/rcs/types/company.rb +0 -319
  297. data/lib/rcs/types/company_additional_emails_item.rb +0 -67
  298. data/lib/rcs/types/company_additional_phone_numbers_item.rb +0 -67
  299. data/lib/rcs/types/company_additional_websites_item.rb +0 -67
  300. data/lib/rcs/types/company_category.rb +0 -20
  301. data/lib/rcs/types/company_contact.rb +0 -117
  302. data/lib/rcs/types/company_details.rb +0 -120
  303. data/lib/rcs/types/forbidden_error_body.rb +0 -57
  304. data/lib/rcs/types/inbound_action_message.rb +0 -117
  305. data/lib/rcs/types/inbound_location_message.rb +0 -106
  306. data/lib/rcs/types/inbound_location_message_coordinates.rb +0 -65
  307. data/lib/rcs/types/inbound_media_message.rb +0 -112
  308. data/lib/rcs/types/inbound_message.rb +0 -88
  309. data/lib/rcs/types/inbound_message_message_type.rb +0 -10
  310. data/lib/rcs/types/inbound_message_metadata.rb +0 -79
  311. data/lib/rcs/types/inbound_text_message.rb +0 -100
  312. data/lib/rcs/types/internal_server_error_body.rb +0 -57
  313. data/lib/rcs/types/media_payload.rb +0 -65
  314. data/lib/rcs/types/message_metadata.rb +0 -56
  315. data/lib/rcs/types/messaging.rb +0 -95
  316. data/lib/rcs/types/optionals.rb +0 -99
  317. data/lib/rcs/types/payment_required_error_body.rb +0 -57
  318. data/lib/rcs/types/point_of_contact.rb +0 -72
  319. data/lib/rcs/types/rcs_functionalities.rb +0 -117
  320. data/lib/rcs/types/sender_metadata.rb +0 -74
  321. data/lib/rcs/types/unauthorized_error_body.rb +0 -57
@@ -1,154 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "action_type"
4
- require_relative "action_lat_long"
5
- require "ostruct"
6
- require "json"
7
-
8
- module Pinnacle
9
- class Action
10
- # @return [String] Title of the action (must be less than 25 characters).
11
- attr_reader :title
12
- # @return [Pinnacle::ActionType] Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
13
- # number, 'trigger' sends the predefined payload to the webhook when pressed,
14
- # 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
15
- # calendar event, 'sendLocation' sends a location.
16
- attr_reader :type
17
- # @return [String] Optional payload associated with the action. This payload encodes the respective
18
- # fields for the action type and is required. For 'openUrl', the payload is the
19
- # URL to open. For 'call', the payload is the phone number to dial. For 'trigger',
20
- # the payload is the predefined payload to send to the webhook.
21
- attr_reader :payload
22
- # @return [String] Optional metadata. Only used for type 'trigger' ignored for other action types.
23
- # When the user presses the action, the metadata is sent to the webhook alongside
24
- # the payload.
25
- attr_reader :metadata
26
- # @return [String] Start time for events in ISO 8601 format. For example, '2022-01-01T12:00:00Z'.
27
- # Required for 'scheduleEvent'.
28
- attr_reader :event_start_time
29
- # @return [String] End time for events in ISO 8601 format. For example, '2022-01-01T12:00:00Z'.
30
- # Required for 'scheduleEvent'.
31
- attr_reader :event_end_time
32
- # @return [String] Event title. Required for 'scheduleEvent'.
33
- attr_reader :event_title
34
- # @return [String] Optional event description.
35
- attr_reader :event_description
36
- # @return [Pinnacle::ActionLatLong] Latitude and longitude coordinates. Required for 'sendLocation'.
37
- attr_reader :lat_long
38
- # @return [OpenStruct] Additional properties unmapped to the current class definition
39
- attr_reader :additional_properties
40
- # @return [Object]
41
- attr_reader :_field_set
42
- protected :_field_set
43
-
44
- OMIT = Object.new
45
-
46
- # @param title [String] Title of the action (must be less than 25 characters).
47
- # @param type [Pinnacle::ActionType] Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
48
- # number, 'trigger' sends the predefined payload to the webhook when pressed,
49
- # 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
50
- # calendar event, 'sendLocation' sends a location.
51
- # @param payload [String] Optional payload associated with the action. This payload encodes the respective
52
- # fields for the action type and is required. For 'openUrl', the payload is the
53
- # URL to open. For 'call', the payload is the phone number to dial. For 'trigger',
54
- # the payload is the predefined payload to send to the webhook.
55
- # @param metadata [String] Optional metadata. Only used for type 'trigger' ignored for other action types.
56
- # When the user presses the action, the metadata is sent to the webhook alongside
57
- # the payload.
58
- # @param event_start_time [String] Start time for events in ISO 8601 format. For example, '2022-01-01T12:00:00Z'.
59
- # Required for 'scheduleEvent'.
60
- # @param event_end_time [String] End time for events in ISO 8601 format. For example, '2022-01-01T12:00:00Z'.
61
- # Required for 'scheduleEvent'.
62
- # @param event_title [String] Event title. Required for 'scheduleEvent'.
63
- # @param event_description [String] Optional event description.
64
- # @param lat_long [Pinnacle::ActionLatLong] Latitude and longitude coordinates. Required for 'sendLocation'.
65
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
66
- # @return [Pinnacle::Action]
67
- def initialize(title: OMIT, type: OMIT, payload: OMIT, metadata: OMIT, event_start_time: OMIT,
68
- event_end_time: OMIT, event_title: OMIT, event_description: OMIT, lat_long: OMIT, additional_properties: nil)
69
- @title = title if title != OMIT
70
- @type = type if type != OMIT
71
- @payload = payload if payload != OMIT
72
- @metadata = metadata if metadata != OMIT
73
- @event_start_time = event_start_time if event_start_time != OMIT
74
- @event_end_time = event_end_time if event_end_time != OMIT
75
- @event_title = event_title if event_title != OMIT
76
- @event_description = event_description if event_description != OMIT
77
- @lat_long = lat_long if lat_long != OMIT
78
- @additional_properties = additional_properties
79
- @_field_set = {
80
- "title": title,
81
- "type": type,
82
- "payload": payload,
83
- "metadata": metadata,
84
- "eventStartTime": event_start_time,
85
- "eventEndTime": event_end_time,
86
- "eventTitle": event_title,
87
- "eventDescription": event_description,
88
- "latLong": lat_long
89
- }.reject do |_k, v|
90
- v == OMIT
91
- end
92
- end
93
-
94
- # Deserialize a JSON object to an instance of Action
95
- #
96
- # @param json_object [String]
97
- # @return [Pinnacle::Action]
98
- def self.from_json(json_object:)
99
- struct = JSON.parse(json_object, object_class: OpenStruct)
100
- parsed_json = JSON.parse(json_object)
101
- title = parsed_json["title"]
102
- type = parsed_json["type"]
103
- payload = parsed_json["payload"]
104
- metadata = parsed_json["metadata"]
105
- event_start_time = parsed_json["eventStartTime"]
106
- event_end_time = parsed_json["eventEndTime"]
107
- event_title = parsed_json["eventTitle"]
108
- event_description = parsed_json["eventDescription"]
109
- if parsed_json["latLong"].nil?
110
- lat_long = nil
111
- else
112
- lat_long = parsed_json["latLong"].to_json
113
- lat_long = Pinnacle::ActionLatLong.from_json(json_object: lat_long)
114
- end
115
- new(
116
- title: title,
117
- type: type,
118
- payload: payload,
119
- metadata: metadata,
120
- event_start_time: event_start_time,
121
- event_end_time: event_end_time,
122
- event_title: event_title,
123
- event_description: event_description,
124
- lat_long: lat_long,
125
- additional_properties: struct
126
- )
127
- end
128
-
129
- # Serialize an instance of Action to a JSON object
130
- #
131
- # @return [String]
132
- def to_json(*_args)
133
- @_field_set&.to_json
134
- end
135
-
136
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
137
- # hash and check each fields type against the current object's property
138
- # definitions.
139
- #
140
- # @param obj [Object]
141
- # @return [Void]
142
- def self.validate_raw(obj:)
143
- obj.title&.is_a?(String) != false || raise("Passed value for field obj.title is not the expected type, validation failed.")
144
- obj.type&.is_a?(Pinnacle::ActionType) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
145
- obj.payload&.is_a?(String) != false || raise("Passed value for field obj.payload is not the expected type, validation failed.")
146
- obj.metadata&.is_a?(String) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
147
- obj.event_start_time&.is_a?(String) != false || raise("Passed value for field obj.event_start_time is not the expected type, validation failed.")
148
- obj.event_end_time&.is_a?(String) != false || raise("Passed value for field obj.event_end_time is not the expected type, validation failed.")
149
- obj.event_title&.is_a?(String) != false || raise("Passed value for field obj.event_title is not the expected type, validation failed.")
150
- obj.event_description&.is_a?(String) != false || raise("Passed value for field obj.event_description is not the expected type, validation failed.")
151
- obj.lat_long.nil? || Pinnacle::ActionLatLong.validate_raw(obj: obj.lat_long)
152
- end
153
- end
154
- end
@@ -1,68 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module Pinnacle
7
- # Latitude and longitude coordinates. Required for 'sendLocation'.
8
- class ActionLatLong
9
- # @return [Float] Latitude value.
10
- attr_reader :lat
11
- # @return [Float] Longitude value.
12
- attr_reader :lng
13
- # @return [OpenStruct] Additional properties unmapped to the current class definition
14
- attr_reader :additional_properties
15
- # @return [Object]
16
- attr_reader :_field_set
17
- protected :_field_set
18
-
19
- OMIT = Object.new
20
-
21
- # @param lat [Float] Latitude value.
22
- # @param lng [Float] Longitude value.
23
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
- # @return [Pinnacle::ActionLatLong]
25
- def initialize(lat: OMIT, lng: OMIT, additional_properties: nil)
26
- @lat = lat if lat != OMIT
27
- @lng = lng if lng != OMIT
28
- @additional_properties = additional_properties
29
- @_field_set = { "lat": lat, "lng": lng }.reject do |_k, v|
30
- v == OMIT
31
- end
32
- end
33
-
34
- # Deserialize a JSON object to an instance of ActionLatLong
35
- #
36
- # @param json_object [String]
37
- # @return [Pinnacle::ActionLatLong]
38
- def self.from_json(json_object:)
39
- struct = JSON.parse(json_object, object_class: OpenStruct)
40
- parsed_json = JSON.parse(json_object)
41
- lat = parsed_json["lat"]
42
- lng = parsed_json["lng"]
43
- new(
44
- lat: lat,
45
- lng: lng,
46
- additional_properties: struct
47
- )
48
- end
49
-
50
- # Serialize an instance of ActionLatLong 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.lat&.is_a?(Float) != false || raise("Passed value for field obj.lat is not the expected type, validation failed.")
65
- obj.lng&.is_a?(Float) != false || raise("Passed value for field obj.lng is not the expected type, validation failed.")
66
- end
67
- end
68
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Pinnacle
4
- # Type of action for the button. 'openUrl' opens a URL, 'call' dials a phone
5
- # number, 'trigger' sends the predefined payload to the webhook when pressed,
6
- # 'requestUserLocation' requests the user's location, 'scheduleEvent' creates a
7
- # calendar event, 'sendLocation' sends a location.
8
- class ActionType
9
- OPEN_URL = "openUrl"
10
- CALL = "call"
11
- TRIGGER = "trigger"
12
- REQUEST_USER_LOCATION = "requestUserLocation"
13
- SCHEDULE_EVENT = "scheduleEvent"
14
- SEND_LOCATION = "sendLocation"
15
- end
16
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module Pinnacle
7
- class AdditionalEmail
8
- # @return [String] Additional email address.
9
- attr_reader :email
10
- # @return [String] Label for the additional email address.
11
- attr_reader :label
12
- # @return [OpenStruct] Additional properties unmapped to the current class definition
13
- attr_reader :additional_properties
14
- # @return [Object]
15
- attr_reader :_field_set
16
- protected :_field_set
17
-
18
- OMIT = Object.new
19
-
20
- # @param email [String] Additional email address.
21
- # @param label [String] Label for the additional email address.
22
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
- # @return [Pinnacle::AdditionalEmail]
24
- def initialize(email:, label:, additional_properties: nil)
25
- @email = email
26
- @label = label
27
- @additional_properties = additional_properties
28
- @_field_set = { "email": email, "label": label }
29
- end
30
-
31
- # Deserialize a JSON object to an instance of AdditionalEmail
32
- #
33
- # @param json_object [String]
34
- # @return [Pinnacle::AdditionalEmail]
35
- def self.from_json(json_object:)
36
- struct = JSON.parse(json_object, object_class: OpenStruct)
37
- parsed_json = JSON.parse(json_object)
38
- email = parsed_json["email"]
39
- label = parsed_json["label"]
40
- new(
41
- email: email,
42
- label: label,
43
- additional_properties: struct
44
- )
45
- end
46
-
47
- # Serialize an instance of AdditionalEmail to a JSON object
48
- #
49
- # @return [String]
50
- def to_json(*_args)
51
- @_field_set&.to_json
52
- end
53
-
54
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
55
- # hash and check each fields type against the current object's property
56
- # definitions.
57
- #
58
- # @param obj [Object]
59
- # @return [Void]
60
- def self.validate_raw(obj:)
61
- obj.email.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
62
- obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
63
- end
64
- end
65
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module Pinnacle
7
- class AdditionalPhoneNumber
8
- # @return [String] Additional phone number in international format.
9
- attr_reader :phone
10
- # @return [String] Label for the additional phone number.
11
- attr_reader :label
12
- # @return [OpenStruct] Additional properties unmapped to the current class definition
13
- attr_reader :additional_properties
14
- # @return [Object]
15
- attr_reader :_field_set
16
- protected :_field_set
17
-
18
- OMIT = Object.new
19
-
20
- # @param phone [String] Additional phone number in international format.
21
- # @param label [String] Label for the additional phone number.
22
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
- # @return [Pinnacle::AdditionalPhoneNumber]
24
- def initialize(phone:, label:, additional_properties: nil)
25
- @phone = phone
26
- @label = label
27
- @additional_properties = additional_properties
28
- @_field_set = { "phone": phone, "label": label }
29
- end
30
-
31
- # Deserialize a JSON object to an instance of AdditionalPhoneNumber
32
- #
33
- # @param json_object [String]
34
- # @return [Pinnacle::AdditionalPhoneNumber]
35
- def self.from_json(json_object:)
36
- struct = JSON.parse(json_object, object_class: OpenStruct)
37
- parsed_json = JSON.parse(json_object)
38
- phone = parsed_json["phone"]
39
- label = parsed_json["label"]
40
- new(
41
- phone: phone,
42
- label: label,
43
- additional_properties: struct
44
- )
45
- end
46
-
47
- # Serialize an instance of AdditionalPhoneNumber to a JSON object
48
- #
49
- # @return [String]
50
- def to_json(*_args)
51
- @_field_set&.to_json
52
- end
53
-
54
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
55
- # hash and check each fields type against the current object's property
56
- # definitions.
57
- #
58
- # @param obj [Object]
59
- # @return [Void]
60
- def self.validate_raw(obj:)
61
- obj.phone.is_a?(String) != false || raise("Passed value for field obj.phone is not the expected type, validation failed.")
62
- obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
63
- end
64
- end
65
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "ostruct"
4
- require "json"
5
-
6
- module Pinnacle
7
- class AdditionalWebsite
8
- # @return [String] URL of the additional website.
9
- attr_reader :url
10
- # @return [String] Label for the additional website.
11
- attr_reader :label
12
- # @return [OpenStruct] Additional properties unmapped to the current class definition
13
- attr_reader :additional_properties
14
- # @return [Object]
15
- attr_reader :_field_set
16
- protected :_field_set
17
-
18
- OMIT = Object.new
19
-
20
- # @param url [String] URL of the additional website.
21
- # @param label [String] Label for the additional website.
22
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
- # @return [Pinnacle::AdditionalWebsite]
24
- def initialize(url:, label:, additional_properties: nil)
25
- @url = url
26
- @label = label
27
- @additional_properties = additional_properties
28
- @_field_set = { "url": url, "label": label }
29
- end
30
-
31
- # Deserialize a JSON object to an instance of AdditionalWebsite
32
- #
33
- # @param json_object [String]
34
- # @return [Pinnacle::AdditionalWebsite]
35
- def self.from_json(json_object:)
36
- struct = JSON.parse(json_object, object_class: OpenStruct)
37
- parsed_json = JSON.parse(json_object)
38
- url = parsed_json["url"]
39
- label = parsed_json["label"]
40
- new(
41
- url: url,
42
- label: label,
43
- additional_properties: struct
44
- )
45
- end
46
-
47
- # Serialize an instance of AdditionalWebsite to a JSON object
48
- #
49
- # @return [String]
50
- def to_json(*_args)
51
- @_field_set&.to_json
52
- end
53
-
54
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
55
- # hash and check each fields type against the current object's property
56
- # definitions.
57
- #
58
- # @param obj [Object]
59
- # @return [Void]
60
- def self.validate_raw(obj:)
61
- obj.url.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
62
- obj.label.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.")
63
- end
64
- end
65
- end
@@ -1,90 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "action"
4
- require "ostruct"
5
- require "json"
6
-
7
- module Pinnacle
8
- class Card
9
- # @return [String] The title of the card.
10
- attr_reader :title
11
- # @return [String] Optional subtitle for the card.
12
- attr_reader :subtitle
13
- # @return [String] Optional media URL displayed with the card.
14
- attr_reader :media_url
15
- # @return [Array<Pinnacle::Action>] Optional list of buttons on the card (max 4).
16
- attr_reader :buttons
17
- # @return [OpenStruct] Additional properties unmapped to the current class definition
18
- attr_reader :additional_properties
19
- # @return [Object]
20
- attr_reader :_field_set
21
- protected :_field_set
22
-
23
- OMIT = Object.new
24
-
25
- # @param title [String] The title of the card.
26
- # @param subtitle [String] Optional subtitle for the card.
27
- # @param media_url [String] Optional media URL displayed with the card.
28
- # @param buttons [Array<Pinnacle::Action>] Optional list of buttons on the card (max 4).
29
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
- # @return [Pinnacle::Card]
31
- def initialize(title:, subtitle: OMIT, media_url: OMIT, buttons: OMIT, additional_properties: nil)
32
- @title = title
33
- @subtitle = subtitle if subtitle != OMIT
34
- @media_url = media_url if media_url != OMIT
35
- @buttons = buttons if buttons != OMIT
36
- @additional_properties = additional_properties
37
- @_field_set = {
38
- "title": title,
39
- "subtitle": subtitle,
40
- "mediaUrl": media_url,
41
- "buttons": buttons
42
- }.reject do |_k, v|
43
- v == OMIT
44
- end
45
- end
46
-
47
- # Deserialize a JSON object to an instance of Card
48
- #
49
- # @param json_object [String]
50
- # @return [Pinnacle::Card]
51
- def self.from_json(json_object:)
52
- struct = JSON.parse(json_object, object_class: OpenStruct)
53
- parsed_json = JSON.parse(json_object)
54
- title = parsed_json["title"]
55
- subtitle = parsed_json["subtitle"]
56
- media_url = parsed_json["mediaUrl"]
57
- buttons = parsed_json["buttons"]&.map do |item|
58
- item = item.to_json
59
- Pinnacle::Action.from_json(json_object: item)
60
- end
61
- new(
62
- title: title,
63
- subtitle: subtitle,
64
- media_url: media_url,
65
- buttons: buttons,
66
- additional_properties: struct
67
- )
68
- end
69
-
70
- # Serialize an instance of Card to a JSON object
71
- #
72
- # @return [String]
73
- def to_json(*_args)
74
- @_field_set&.to_json
75
- end
76
-
77
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
78
- # hash and check each fields type against the current object's property
79
- # definitions.
80
- #
81
- # @param obj [Object]
82
- # @return [Void]
83
- def self.validate_raw(obj:)
84
- obj.title.is_a?(String) != false || raise("Passed value for field obj.title is not the expected type, validation failed.")
85
- obj.subtitle&.is_a?(String) != false || raise("Passed value for field obj.subtitle is not the expected type, validation failed.")
86
- obj.media_url&.is_a?(String) != false || raise("Passed value for field obj.media_url is not the expected type, validation failed.")
87
- obj.buttons&.is_a?(Array) != false || raise("Passed value for field obj.buttons is not the expected type, validation failed.")
88
- end
89
- end
90
- end