one_msg_sdk 2.0.1 → 2.0.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.
Files changed (298) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +65 -19
  3. data/README.md +102 -34
  4. data/docs/AddTemplate200Response.md +18 -0
  5. data/docs/AddTemplateRequest.md +7 -7
  6. data/docs/CallingApi.md +27 -31
  7. data/docs/CallingSettings.md +18 -0
  8. data/docs/CallingSettingsCalling.md +38 -0
  9. data/docs/CallingSettingsCallingAudio.md +18 -0
  10. data/docs/CallingSettingsCallingCallHours.md +22 -0
  11. data/docs/CallingSettingsCallingSip.md +20 -0
  12. data/docs/CallingSettingsCallingSipServersInner.md +28 -0
  13. data/docs/CallingSettingsCallingVideo.md +18 -0
  14. data/docs/CatalogApi.md +1 -1
  15. data/docs/ChannelApi.md +151 -5
  16. data/docs/CreateFlowsRequest.md +26 -0
  17. data/docs/CreateGroupsGroupIdRequest.md +22 -0
  18. data/docs/CreateGroupsRequest.md +20 -0
  19. data/docs/CreateSettingsRequest.md +28 -0
  20. data/docs/CreateSettingsRequestWebhookUrl.md +49 -0
  21. data/docs/CreateUploadMedia200Response.md +18 -0
  22. data/docs/CreateUploadMediaRequest.md +20 -0
  23. data/docs/FlowsApi.md +32 -16
  24. data/docs/GetStatus200Response.md +26 -0
  25. data/docs/GetWebhook200Response.md +24 -2
  26. data/docs/GetWebhook200ResponseWebhookUrl.md +49 -0
  27. data/docs/GroupsApi.md +38 -18
  28. data/docs/InitiateCallRequest.md +28 -0
  29. data/docs/InitiateCallRequestSession.md +20 -0
  30. data/docs/InitiateCallResponse.md +26 -0
  31. data/docs/InitiateCallResponseCallsInner.md +18 -0
  32. data/docs/InitiateCallResponseResponse.md +18 -0
  33. data/docs/ListSettings200Response.md +52 -0
  34. data/docs/ListSettings200ResponseWebhookUrl.md +49 -0
  35. data/docs/MessagingApi.md +140 -35
  36. data/docs/PatchFlowsFlowIdAssetsRequest.md +18 -0
  37. data/docs/PatchFlowsFlowIdMetadataRequest.md +22 -0
  38. data/docs/ProfileApi.md +9 -11
  39. data/docs/RemoveTemplateRequest.md +18 -0
  40. data/docs/SendButtonRequest.md +9 -1
  41. data/docs/SendCarouselRequest1.md +4 -2
  42. data/docs/SendContactInfoRequest.md +26 -0
  43. data/docs/SendContactRequest.md +7 -1
  44. data/docs/SendContactRequestContact.md +26 -0
  45. data/docs/SendContactRequestContactName.md +49 -0
  46. data/docs/SendContactRequestContactsInner.md +3 -3
  47. data/docs/SendContactRequestContactsInnerPhonesInner.md +1 -1
  48. data/docs/SendListRequest.md +5 -1
  49. data/docs/SendLocationRequestRequest.md +5 -1
  50. data/docs/SendMessageRequest.md +6 -2
  51. data/docs/SendMessageRequestDirectSend.md +20 -0
  52. data/docs/SendProductRequest.md +30 -0
  53. data/docs/SendReactionRequest.md +3 -1
  54. data/docs/SendTemplateRequest.md +9 -5
  55. data/docs/SendTemplateRequestLanguage.md +3 -3
  56. data/docs/SetWebhook200Response.md +20 -0
  57. data/docs/SetWebhook200ResponseWebhookUrl.md +49 -0
  58. data/docs/SetWebhookRequest.md +18 -0
  59. data/docs/SetWebhookRequestWebhookUrl.md +49 -0
  60. data/docs/TemplatesApi.md +29 -17
  61. data/docs/UpdateCallingSettings200Response.md +22 -0
  62. data/docs/UpdateCallingSettings200ResponseResponse.md +18 -0
  63. data/docs/UpdateMe200Response.md +18 -0
  64. data/docs/UpdateMeRequest.md +6 -6
  65. data/docs/WebhookUrlStatus.md +34 -0
  66. data/docs/WebhooksApi.md +10 -12
  67. data/lib/one_msg_sdk/api/calling_api.rb +39 -31
  68. data/lib/one_msg_sdk/api/catalog_api.rb +4 -4
  69. data/lib/one_msg_sdk/api/channel_api.rb +146 -7
  70. data/lib/one_msg_sdk/api/flows_api.rb +58 -14
  71. data/lib/one_msg_sdk/api/groups_api.rb +48 -10
  72. data/lib/one_msg_sdk/api/messaging_api.rb +163 -38
  73. data/lib/one_msg_sdk/api/profile_api.rb +17 -13
  74. data/lib/one_msg_sdk/api/templates_api.rb +36 -13
  75. data/lib/one_msg_sdk/api/users_api.rb +2 -2
  76. data/lib/one_msg_sdk/api/webhooks_api.rb +19 -15
  77. data/lib/one_msg_sdk/api_client.rb +2 -2
  78. data/lib/one_msg_sdk/api_error.rb +2 -2
  79. data/lib/one_msg_sdk/api_model_base.rb +2 -2
  80. data/lib/one_msg_sdk/configuration.rb +2 -2
  81. data/lib/one_msg_sdk/models/add_template200_response.rb +150 -0
  82. data/lib/one_msg_sdk/models/add_template_request.rb +6 -2
  83. data/lib/one_msg_sdk/models/block_user_request.rb +2 -2
  84. data/lib/one_msg_sdk/models/calling_settings.rb +148 -0
  85. data/lib/one_msg_sdk/models/calling_settings_calling.rb +321 -0
  86. data/lib/one_msg_sdk/models/calling_settings_calling_audio.rb +148 -0
  87. data/lib/one_msg_sdk/models/calling_settings_calling_call_hours.rb +166 -0
  88. data/lib/one_msg_sdk/models/calling_settings_calling_sip.rb +193 -0
  89. data/lib/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.rb +196 -0
  90. data/lib/one_msg_sdk/models/calling_settings_calling_video.rb +182 -0
  91. data/lib/one_msg_sdk/models/conversational_automation.rb +2 -2
  92. data/lib/one_msg_sdk/models/conversational_automation_commands_inner.rb +2 -2
  93. data/lib/one_msg_sdk/models/create_commerce200_response.rb +2 -2
  94. data/lib/one_msg_sdk/models/create_commerce_request.rb +2 -2
  95. data/lib/one_msg_sdk/models/create_commerce_request_params.rb +2 -2
  96. data/lib/one_msg_sdk/models/create_flows_request.rb +238 -0
  97. data/lib/one_msg_sdk/models/create_groups200_response.rb +2 -2
  98. data/lib/one_msg_sdk/models/create_groups_group_id_request.rb +168 -0
  99. data/lib/one_msg_sdk/models/create_groups_request.rb +175 -0
  100. data/lib/one_msg_sdk/models/create_read_message200_response.rb +2 -2
  101. data/lib/one_msg_sdk/models/create_read_message401_response.rb +2 -2
  102. data/lib/one_msg_sdk/models/create_read_message_request.rb +2 -2
  103. data/lib/one_msg_sdk/models/create_settings_request.rb +192 -0
  104. data/lib/one_msg_sdk/models/create_settings_request_webhook_url.rb +105 -0
  105. data/lib/one_msg_sdk/models/create_upload_media200_response.rb +147 -0
  106. data/lib/one_msg_sdk/models/create_upload_media_request.rb +158 -0
  107. data/lib/one_msg_sdk/models/delete_flows_flow_id200_response.rb +2 -2
  108. data/lib/one_msg_sdk/models/delete_groups_group_id200_response.rb +2 -2
  109. data/lib/one_msg_sdk/models/delete_media_legacy_request.rb +2 -2
  110. data/lib/one_msg_sdk/models/error_response.rb +2 -2
  111. data/lib/one_msg_sdk/models/get_commerce200_response_inner.rb +2 -2
  112. data/lib/one_msg_sdk/models/get_mm_lite_status200_response.rb +2 -2
  113. data/lib/one_msg_sdk/models/get_status200_response.rb +185 -0
  114. data/lib/one_msg_sdk/models/get_webhook200_response.rb +155 -6
  115. data/lib/one_msg_sdk/models/get_webhook200_response_webhook_url.rb +105 -0
  116. data/lib/one_msg_sdk/models/get_whatsapp_business_encryption200_response.rb +2 -2
  117. data/lib/one_msg_sdk/models/initiate_call_request.rb +277 -0
  118. data/lib/one_msg_sdk/models/initiate_call_request_session.rb +217 -0
  119. data/lib/one_msg_sdk/models/initiate_call_response.rb +188 -0
  120. data/lib/one_msg_sdk/models/initiate_call_response_calls_inner.rb +147 -0
  121. data/lib/one_msg_sdk/models/initiate_call_response_response.rb +148 -0
  122. data/lib/one_msg_sdk/models/list_blocked_users200_response.rb +2 -2
  123. data/lib/one_msg_sdk/models/list_flows200_response.rb +2 -2
  124. data/lib/one_msg_sdk/models/list_messages200_response.rb +2 -2
  125. data/lib/one_msg_sdk/models/list_settings200_response.rb +352 -0
  126. data/lib/one_msg_sdk/models/list_settings200_response_webhook_url.rb +105 -0
  127. data/lib/one_msg_sdk/models/list_templates200_response.rb +2 -2
  128. data/lib/one_msg_sdk/models/message_sent_response.rb +2 -2
  129. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets200_response.rb +2 -2
  130. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets_request.rb +167 -0
  131. data/lib/one_msg_sdk/models/patch_flows_flow_id_metadata_request.rb +190 -0
  132. data/lib/one_msg_sdk/models/profile_info.rb +2 -2
  133. data/lib/one_msg_sdk/models/remove_template_request.rb +165 -0
  134. data/lib/one_msg_sdk/models/retrieve_media200_response.rb +2 -2
  135. data/lib/one_msg_sdk/models/send_address_message_request.rb +2 -2
  136. data/lib/one_msg_sdk/models/send_button_request.rb +48 -3
  137. data/lib/one_msg_sdk/models/send_button_request_sections_inner.rb +2 -2
  138. data/lib/one_msg_sdk/models/send_button_request_sections_inner_reply.rb +2 -2
  139. data/lib/one_msg_sdk/models/send_carousel_request1.rb +38 -13
  140. data/lib/one_msg_sdk/models/send_contact_info_request.rb +222 -0
  141. data/lib/one_msg_sdk/models/send_contact_request.rb +32 -3
  142. data/lib/one_msg_sdk/models/send_contact_request_contact.rb +221 -0
  143. data/lib/one_msg_sdk/models/send_contact_request_contact_name.rb +105 -0
  144. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner.rb +5 -5
  145. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_name.rb +2 -2
  146. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_org.rb +2 -2
  147. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.rb +3 -2
  148. data/lib/one_msg_sdk/models/send_cta_url_request.rb +2 -2
  149. data/lib/one_msg_sdk/models/send_file_request.rb +2 -2
  150. data/lib/one_msg_sdk/models/send_flow_request1.rb +2 -2
  151. data/lib/one_msg_sdk/models/send_flow_request1_header.rb +2 -2
  152. data/lib/one_msg_sdk/models/send_flow_request_header.rb +2 -2
  153. data/lib/one_msg_sdk/models/send_list_request.rb +23 -3
  154. data/lib/one_msg_sdk/models/send_list_request_sections_inner.rb +2 -2
  155. data/lib/one_msg_sdk/models/send_list_request_sections_inner_rows_inner.rb +2 -2
  156. data/lib/one_msg_sdk/models/send_location_request1.rb +2 -2
  157. data/lib/one_msg_sdk/models/send_location_request_request.rb +23 -3
  158. data/lib/one_msg_sdk/models/send_message_request.rb +60 -28
  159. data/lib/one_msg_sdk/models/send_message_request_direct_send.rb +189 -0
  160. data/lib/one_msg_sdk/models/send_order_details_request.rb +2 -2
  161. data/lib/one_msg_sdk/models/send_order_details_request_language.rb +2 -2
  162. data/lib/one_msg_sdk/models/send_order_details_request_order.rb +2 -2
  163. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner.rb +2 -2
  164. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner_amount.rb +2 -2
  165. data/lib/one_msg_sdk/models/send_payment_request_request.rb +2 -2
  166. data/lib/one_msg_sdk/models/send_product_request.rb +225 -0
  167. data/lib/one_msg_sdk/models/send_reaction_request.rb +14 -3
  168. data/lib/one_msg_sdk/models/send_sticker_request.rb +2 -2
  169. data/lib/one_msg_sdk/models/send_template_request.rb +29 -5
  170. data/lib/one_msg_sdk/models/send_template_request_language.rb +6 -2
  171. data/lib/one_msg_sdk/models/set_webhook200_response.rb +157 -0
  172. data/lib/one_msg_sdk/models/set_webhook200_response_webhook_url.rb +105 -0
  173. data/lib/one_msg_sdk/models/set_webhook_request.rb +164 -0
  174. data/lib/one_msg_sdk/models/set_webhook_request_webhook_url.rb +105 -0
  175. data/lib/one_msg_sdk/models/set_whatsapp_business_encryption_request.rb +2 -2
  176. data/lib/one_msg_sdk/models/success_response.rb +2 -2
  177. data/lib/one_msg_sdk/models/update_calling_settings200_response.rb +165 -0
  178. data/lib/one_msg_sdk/models/update_calling_settings200_response_response.rb +147 -0
  179. data/lib/one_msg_sdk/models/update_me200_response.rb +147 -0
  180. data/lib/one_msg_sdk/models/update_me_request.rb +6 -3
  181. data/lib/one_msg_sdk/models/webhook_url_status.rb +287 -0
  182. data/lib/one_msg_sdk/platform_client.rb +182 -0
  183. data/lib/one_msg_sdk/version.rb +3 -3
  184. data/lib/one_msg_sdk.rb +44 -2
  185. data/one_msg_sdk.gemspec +2 -2
  186. data/spec/api/calling_api_spec.rb +11 -11
  187. data/spec/api/catalog_api_spec.rb +3 -3
  188. data/spec/api/channel_api_spec.rb +29 -4
  189. data/spec/api/flows_api_spec.rb +10 -2
  190. data/spec/api/groups_api_spec.rb +10 -2
  191. data/spec/api/messaging_api_spec.rb +37 -9
  192. data/spec/api/profile_api_spec.rb +5 -5
  193. data/spec/api/templates_api_spec.rb +11 -5
  194. data/spec/api/users_api_spec.rb +2 -2
  195. data/spec/api/webhooks_api_spec.rb +6 -6
  196. data/spec/models/add_template200_response_spec.rb +36 -0
  197. data/spec/models/add_template_request_spec.rb +2 -2
  198. data/spec/models/block_user_request_spec.rb +2 -2
  199. data/spec/models/calling_settings_calling_audio_spec.rb +36 -0
  200. data/spec/models/calling_settings_calling_call_hours_spec.rb +48 -0
  201. data/spec/models/calling_settings_calling_sip_servers_inner_spec.rb +66 -0
  202. data/spec/models/calling_settings_calling_sip_spec.rb +46 -0
  203. data/spec/models/calling_settings_calling_spec.rb +112 -0
  204. data/spec/models/calling_settings_calling_video_spec.rb +40 -0
  205. data/spec/models/calling_settings_spec.rb +36 -0
  206. data/spec/models/conversational_automation_commands_inner_spec.rb +2 -2
  207. data/spec/models/conversational_automation_spec.rb +2 -2
  208. data/spec/models/create_commerce200_response_spec.rb +2 -2
  209. data/spec/models/create_commerce_request_params_spec.rb +2 -2
  210. data/spec/models/create_commerce_request_spec.rb +2 -2
  211. data/spec/models/create_flows_request_spec.rb +64 -0
  212. data/spec/models/create_groups200_response_spec.rb +2 -2
  213. data/spec/models/create_groups_group_id_request_spec.rb +48 -0
  214. data/spec/models/create_groups_request_spec.rb +42 -0
  215. data/spec/models/create_read_message200_response_spec.rb +2 -2
  216. data/spec/models/create_read_message401_response_spec.rb +2 -2
  217. data/spec/models/create_read_message_request_spec.rb +2 -2
  218. data/spec/models/create_settings_request_spec.rb +66 -0
  219. data/spec/models/create_settings_request_webhook_url_spec.rb +32 -0
  220. data/spec/models/create_upload_media200_response_spec.rb +36 -0
  221. data/spec/models/create_upload_media_request_spec.rb +42 -0
  222. data/spec/models/delete_flows_flow_id200_response_spec.rb +2 -2
  223. data/spec/models/delete_groups_group_id200_response_spec.rb +2 -2
  224. data/spec/models/delete_media_legacy_request_spec.rb +2 -2
  225. data/spec/models/error_response_spec.rb +2 -2
  226. data/spec/models/get_commerce200_response_inner_spec.rb +2 -2
  227. data/spec/models/get_mm_lite_status200_response_spec.rb +2 -2
  228. data/spec/models/get_status200_response_spec.rb +60 -0
  229. data/spec/models/get_webhook200_response_spec.rb +72 -2
  230. data/spec/models/get_webhook200_response_webhook_url_spec.rb +32 -0
  231. data/spec/models/get_whatsapp_business_encryption200_response_spec.rb +2 -2
  232. data/spec/models/initiate_call_request_session_spec.rb +46 -0
  233. data/spec/models/initiate_call_request_spec.rb +74 -0
  234. data/spec/models/initiate_call_response_calls_inner_spec.rb +36 -0
  235. data/spec/models/initiate_call_response_response_spec.rb +36 -0
  236. data/spec/models/initiate_call_response_spec.rb +60 -0
  237. data/spec/models/list_blocked_users200_response_spec.rb +2 -2
  238. data/spec/models/list_flows200_response_spec.rb +2 -2
  239. data/spec/models/list_messages200_response_spec.rb +2 -2
  240. data/spec/models/list_settings200_response_spec.rb +142 -0
  241. data/spec/models/list_settings200_response_webhook_url_spec.rb +32 -0
  242. data/spec/models/list_templates200_response_spec.rb +2 -2
  243. data/spec/models/message_sent_response_spec.rb +2 -2
  244. data/spec/models/patch_flows_flow_id_assets200_response_spec.rb +2 -2
  245. data/spec/models/patch_flows_flow_id_assets_request_spec.rb +36 -0
  246. data/spec/models/patch_flows_flow_id_metadata_request_spec.rb +52 -0
  247. data/spec/models/profile_info_spec.rb +2 -2
  248. data/spec/models/remove_template_request_spec.rb +36 -0
  249. data/spec/models/retrieve_media200_response_spec.rb +2 -2
  250. data/spec/models/send_address_message_request_spec.rb +2 -2
  251. data/spec/models/send_button_request_sections_inner_reply_spec.rb +2 -2
  252. data/spec/models/send_button_request_sections_inner_spec.rb +2 -2
  253. data/spec/models/send_button_request_spec.rb +26 -2
  254. data/spec/models/send_carousel_request1_spec.rb +8 -2
  255. data/spec/models/send_contact_info_request_spec.rb +60 -0
  256. data/spec/models/send_contact_request_contact_name_spec.rb +32 -0
  257. data/spec/models/send_contact_request_contact_spec.rb +60 -0
  258. data/spec/models/send_contact_request_contacts_inner_name_spec.rb +2 -2
  259. data/spec/models/send_contact_request_contacts_inner_org_spec.rb +2 -2
  260. data/spec/models/send_contact_request_contacts_inner_phones_inner_spec.rb +2 -2
  261. data/spec/models/send_contact_request_contacts_inner_spec.rb +2 -2
  262. data/spec/models/send_contact_request_spec.rb +20 -2
  263. data/spec/models/send_cta_url_request_spec.rb +2 -2
  264. data/spec/models/send_file_request_spec.rb +2 -2
  265. data/spec/models/send_flow_request1_header_spec.rb +2 -2
  266. data/spec/models/send_flow_request1_spec.rb +2 -2
  267. data/spec/models/send_flow_request_header_spec.rb +2 -2
  268. data/spec/models/send_list_request_sections_inner_rows_inner_spec.rb +2 -2
  269. data/spec/models/send_list_request_sections_inner_spec.rb +2 -2
  270. data/spec/models/send_list_request_spec.rb +14 -2
  271. data/spec/models/send_location_request1_spec.rb +2 -2
  272. data/spec/models/send_location_request_request_spec.rb +14 -2
  273. data/spec/models/send_message_request_direct_send_spec.rb +42 -0
  274. data/spec/models/send_message_request_spec.rb +18 -2
  275. data/spec/models/send_order_details_request_language_spec.rb +2 -2
  276. data/spec/models/send_order_details_request_order_items_inner_amount_spec.rb +2 -2
  277. data/spec/models/send_order_details_request_order_items_inner_spec.rb +2 -2
  278. data/spec/models/send_order_details_request_order_spec.rb +2 -2
  279. data/spec/models/send_order_details_request_spec.rb +2 -2
  280. data/spec/models/send_payment_request_request_spec.rb +2 -2
  281. data/spec/models/send_product_request_spec.rb +72 -0
  282. data/spec/models/send_reaction_request_spec.rb +8 -2
  283. data/spec/models/send_sticker_request_spec.rb +2 -2
  284. data/spec/models/send_template_request_language_spec.rb +2 -2
  285. data/spec/models/send_template_request_spec.rb +14 -2
  286. data/spec/models/set_webhook200_response_spec.rb +42 -0
  287. data/spec/models/set_webhook200_response_webhook_url_spec.rb +32 -0
  288. data/spec/models/set_webhook_request_spec.rb +36 -0
  289. data/spec/models/set_webhook_request_webhook_url_spec.rb +32 -0
  290. data/spec/models/set_whatsapp_business_encryption_request_spec.rb +2 -2
  291. data/spec/models/success_response_spec.rb +2 -2
  292. data/spec/models/update_calling_settings200_response_response_spec.rb +36 -0
  293. data/spec/models/update_calling_settings200_response_spec.rb +48 -0
  294. data/spec/models/update_me200_response_spec.rb +36 -0
  295. data/spec/models/update_me_request_spec.rb +2 -2
  296. data/spec/models/webhook_url_status_spec.rb +88 -0
  297. data/spec/spec_helper.rb +2 -2
  298. metadata +319 -89
@@ -0,0 +1,38 @@
1
+ # OneMsgSdk::CallingSettingsCalling
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | Enable or disable Calling API on this number | [optional] |
8
+ | **call_icon_visibility** | **String** | Controls call icon visibility in the WhatsApp client | [optional] |
9
+ | **callback_permission_status** | **String** | When ENABLED, a user who calls your business automatically grants call permission for business-initiated callbacks (subject to Meta rules). | [optional] |
10
+ | **srtp_key_exchange_protocol** | **String** | SRTP key exchange. DTLS is default/recommended. SDES is only valid when SIP signaling is enabled. | [optional] |
11
+ | **call_hours** | [**CallingSettingsCallingCallHours**](CallingSettingsCallingCallHours.md) | | [optional] |
12
+ | **sip** | [**CallingSettingsCallingSip**](CallingSettingsCallingSip.md) | | [optional] |
13
+ | **video** | [**CallingSettingsCallingVideo**](CallingSettingsCallingVideo.md) | | [optional] |
14
+ | **audio** | [**CallingSettingsCallingAudio**](CallingSettingsCallingAudio.md) | | [optional] |
15
+ | **restrictions** | **Hash<String, Object>** | Calling restrictions (response-only) | [optional] |
16
+ | **ip_addresses** | **Hash<String, Object>** | Meta media IP ranges (response-only) | [optional] |
17
+ | **call_icons** | **Hash<String, Object>** | Call icon country restrictions (response-only) | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'one_msg_sdk'
23
+
24
+ instance = OneMsgSdk::CallingSettingsCalling.new(
25
+ status: ENABLED,
26
+ call_icon_visibility: DEFAULT,
27
+ callback_permission_status: ENABLED,
28
+ srtp_key_exchange_protocol: DTLS,
29
+ call_hours: null,
30
+ sip: null,
31
+ video: null,
32
+ audio: null,
33
+ restrictions: null,
34
+ ip_addresses: null,
35
+ call_icons: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,18 @@
1
+ # OneMsgSdk::CallingSettingsCallingAudio
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'one_msg_sdk'
13
+
14
+ instance = OneMsgSdk::CallingSettingsCallingAudio.new(
15
+ status: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # OneMsgSdk::CallingSettingsCallingCallHours
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | [optional] |
8
+ | **timezone** | **String** | | [optional] |
9
+ | **day_of_week_start** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'one_msg_sdk'
15
+
16
+ instance = OneMsgSdk::CallingSettingsCallingCallHours.new(
17
+ status: ENABLED,
18
+ timezone: America/Los_Angeles,
19
+ day_of_week_start: MONDAY
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # OneMsgSdk::CallingSettingsCallingSip
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | [optional] |
8
+ | **servers** | [**Array<CallingSettingsCallingSipServersInner>**](CallingSettingsCallingSipServersInner.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'one_msg_sdk'
14
+
15
+ instance = OneMsgSdk::CallingSettingsCallingSip.new(
16
+ status: DISABLED,
17
+ servers: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # OneMsgSdk::CallingSettingsCallingSipServersInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **hostname** | **String** | | [optional] |
8
+ | **port** | **Integer** | | [optional] |
9
+ | **request_uri_user_params** | **Hash<String, String>** | | [optional] |
10
+ | **sip_user_password** | **String** | Present on GET when SIP credentials are returned by Meta | [optional] |
11
+ | **password** | **String** | Alternate password field name from some Meta responses | [optional] |
12
+ | **app_id** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'one_msg_sdk'
18
+
19
+ instance = OneMsgSdk::CallingSettingsCallingSipServersInner.new(
20
+ hostname: sip.example.com,
21
+ port: 5061,
22
+ request_uri_user_params: null,
23
+ sip_user_password: null,
24
+ password: null,
25
+ app_id: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,18 @@
1
+ # OneMsgSdk::CallingSettingsCallingVideo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'one_msg_sdk'
13
+
14
+ instance = OneMsgSdk::CallingSettingsCallingVideo.new(
15
+ status: null
16
+ )
17
+ ```
18
+
data/docs/CatalogApi.md CHANGED
@@ -87,7 +87,7 @@ end
87
87
 
88
88
  Get Commerce Settings
89
89
 
90
- Returns catalog/cart commerce settings for the channel. - `is_catalog_visible` — show catalog storefront icon (`true`) or hide it (`false`). - `is_cart_enabled` — enable cart (`true`) or disable it (`false`).
90
+ Returns catalog/cart commerce settings for the channel. Fails with a provider error when the WABA has no catalog linked — that is an API/account limitation, not an MCP schema bug. - `is_catalog_visible` — show catalog storefront icon (`true`) or hide it (`false`). - `is_cart_enabled` — enable cart (`true`) or disable it (`false`).
91
91
 
92
92
  ### Examples
93
93
 
data/docs/ChannelApi.md CHANGED
@@ -4,11 +4,86 @@ All URIs are relative to *https://api.1msg.io*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**create_settings**](ChannelApi.md#create_settings) | **POST** /settings | Update channel settings |
7
8
  | [**get_conversational_automation**](ChannelApi.md#get_conversational_automation) | **GET** /conversationalAutomation | Get conversational automation settings |
8
9
  | [**get_status**](ChannelApi.md#get_status) | **GET** /status | Get channel status |
10
+ | [**list_settings**](ChannelApi.md#list_settings) | **GET** /settings | Get channel settings |
9
11
  | [**set_conversational_automation**](ChannelApi.md#set_conversational_automation) | **POST** /conversationalAutomation | Set conversational automation settings |
10
12
 
11
13
 
14
+ ## create_settings
15
+
16
+ > Hash<String, Object> create_settings(token, create_settings_request)
17
+
18
+ Update channel settings
19
+
20
+ Update channel settings. Only send fields you want to change. `webhookUrl` **replaces** the stored list (one URL string, or up to 5 URLs as an array). Passing an empty value clears webhooks. Repeating the same URL(s) also clears a sticky auto-disable. With several URLs, send the complete array to re-enable one of them — omitting a URL removes it from the channel.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'one_msg_sdk'
27
+ # setup authorization
28
+ OneMsgSdk.configure do |config|
29
+ # Configure API key authorization: tokenAuth
30
+ config.api_key['token'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['token'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = OneMsgSdk::ChannelApi.new
36
+ token = 'token_example' # String | JWT token or API key for authorization
37
+ create_settings_request = OneMsgSdk::CreateSettingsRequest.new # CreateSettingsRequest |
38
+
39
+ begin
40
+ # Update channel settings
41
+ result = api_instance.create_settings(token, create_settings_request)
42
+ p result
43
+ rescue OneMsgSdk::ApiError => e
44
+ puts "Error when calling ChannelApi->create_settings: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the create_settings_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> create_settings_with_http_info(token, create_settings_request)
53
+
54
+ ```ruby
55
+ begin
56
+ # Update channel settings
57
+ data, status_code, headers = api_instance.create_settings_with_http_info(token, create_settings_request)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => Hash&lt;String, Object&gt;
61
+ rescue OneMsgSdk::ApiError => e
62
+ puts "Error when calling ChannelApi->create_settings_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **token** | **String** | JWT token or API key for authorization | |
71
+ | **create_settings_request** | [**CreateSettingsRequest**](CreateSettingsRequest.md) | | |
72
+
73
+ ### Return type
74
+
75
+ **Hash&lt;String, Object&gt;**
76
+
77
+ ### Authorization
78
+
79
+ [tokenAuth](../README.md#tokenAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: application/json
85
+
86
+
12
87
  ## get_conversational_automation
13
88
 
14
89
  > <ConversationalAutomation> get_conversational_automation(token)
@@ -82,11 +157,11 @@ end
82
157
 
83
158
  ## get_status
84
159
 
85
- > Hash&lt;String, Object&gt; get_status(token)
160
+ > <GetStatus200Response> get_status(token)
86
161
 
87
162
  Get channel status
88
163
 
89
- Returns WhatsApp Business API client connection status.
164
+ Return WhatsApp Cloud API connection status for this channel (`connected` when the number can send). May include `accountStatus`, messaging limit, and MM Lite availability. Optional `health_status_warning` appears only when Meta Graph health could not be loaded and a soft `connected` response is returned. Omitted on the normal path and when health details are not applicable for the channel — never an internal provider/transport name.
90
165
 
91
166
  ### Examples
92
167
 
@@ -117,7 +192,7 @@ end
117
192
 
118
193
  This returns an Array which contains the response data, status code and headers.
119
194
 
120
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_status_with_http_info(token)
195
+ > <Array(<GetStatus200Response>, Integer, Hash)> get_status_with_http_info(token)
121
196
 
122
197
  ```ruby
123
198
  begin
@@ -125,7 +200,7 @@ begin
125
200
  data, status_code, headers = api_instance.get_status_with_http_info(token)
126
201
  p status_code # => 2xx
127
202
  p headers # => { ... }
128
- p data # => Hash&lt;String, Object&gt;
203
+ p data # => <GetStatus200Response>
129
204
  rescue OneMsgSdk::ApiError => e
130
205
  puts "Error when calling ChannelApi->get_status_with_http_info: #{e}"
131
206
  end
@@ -139,7 +214,78 @@ end
139
214
 
140
215
  ### Return type
141
216
 
142
- **Hash&lt;String, Object&gt;**
217
+ [**GetStatus200Response**](GetStatus200Response.md)
218
+
219
+ ### Authorization
220
+
221
+ [tokenAuth](../README.md#tokenAuth)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+ ## list_settings
230
+
231
+ > <ListSettings200Response> list_settings(token)
232
+
233
+ Get channel settings
234
+
235
+ Return channel settings: webhook URL(s), delivery flags, and analytics toggles. Auto-disable / circuit state matches `GET /webhook`. **Prefer `webhookStatuses`** (one row per configured URL). The breaker is per URL, not per channel. Channel-level `haveDisabledWebhooks` is `true` when **at least one** URL in `webhookUrl` is sticky auto-disabled — not \"the channel is dead\". Live URLs still receive events. Top-level `circuitState` / `reason` / `fails` / `trips` are a compatibility summary of one URL (first sticky-disabled, else first configured). This is the same `GET /settings` endpoint as the REST API (previously missing from MCP).
236
+
237
+ ### Examples
238
+
239
+ ```ruby
240
+ require 'time'
241
+ require 'one_msg_sdk'
242
+ # setup authorization
243
+ OneMsgSdk.configure do |config|
244
+ # Configure API key authorization: tokenAuth
245
+ config.api_key['token'] = 'YOUR API KEY'
246
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
247
+ # config.api_key_prefix['token'] = 'Bearer'
248
+ end
249
+
250
+ api_instance = OneMsgSdk::ChannelApi.new
251
+ token = 'token_example' # String | JWT token or API key for authorization
252
+
253
+ begin
254
+ # Get channel settings
255
+ result = api_instance.list_settings(token)
256
+ p result
257
+ rescue OneMsgSdk::ApiError => e
258
+ puts "Error when calling ChannelApi->list_settings: #{e}"
259
+ end
260
+ ```
261
+
262
+ #### Using the list_settings_with_http_info variant
263
+
264
+ This returns an Array which contains the response data, status code and headers.
265
+
266
+ > <Array(<ListSettings200Response>, Integer, Hash)> list_settings_with_http_info(token)
267
+
268
+ ```ruby
269
+ begin
270
+ # Get channel settings
271
+ data, status_code, headers = api_instance.list_settings_with_http_info(token)
272
+ p status_code # => 2xx
273
+ p headers # => { ... }
274
+ p data # => <ListSettings200Response>
275
+ rescue OneMsgSdk::ApiError => e
276
+ puts "Error when calling ChannelApi->list_settings_with_http_info: #{e}"
277
+ end
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+ | Name | Type | Description | Notes |
283
+ | ---- | ---- | ----------- | ----- |
284
+ | **token** | **String** | JWT token or API key for authorization | |
285
+
286
+ ### Return type
287
+
288
+ [**ListSettings200Response**](ListSettings200Response.md)
143
289
 
144
290
  ### Authorization
145
291
 
@@ -0,0 +1,26 @@
1
+ # OneMsgSdk::CreateFlowsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Flow name | |
8
+ | **categories** | **Array&lt;String&gt;** | One or more Flow categories | |
9
+ | **endpoint_uri** | **String** | HTTPS endpoint for the Flow data channel | [optional] |
10
+ | **publish** | **Boolean** | Publish immediately after create | [optional] |
11
+ | **flow_json** | **Hash&lt;String, Object&gt;** | Optional Flow JSON document | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'one_msg_sdk'
17
+
18
+ instance = OneMsgSdk::CreateFlowsRequest.new(
19
+ name: null,
20
+ categories: null,
21
+ endpoint_uri: null,
22
+ publish: null,
23
+ flow_json: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,22 @@
1
+ # OneMsgSdk::CreateGroupsGroupIdRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subject** | **String** | New group subject / name | [optional] |
8
+ | **description** | **String** | New group description | [optional] |
9
+ | **profile_picture_file** | **String** | Image URL or base64 data URI for the group profile picture | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'one_msg_sdk'
15
+
16
+ instance = OneMsgSdk::CreateGroupsGroupIdRequest.new(
17
+ subject: null,
18
+ description: null,
19
+ profile_picture_file: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # OneMsgSdk::CreateGroupsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **group_name** | **String** | Group subject / name | |
8
+ | **description** | **String** | Optional group description | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'one_msg_sdk'
14
+
15
+ instance = OneMsgSdk::CreateGroupsRequest.new(
16
+ group_name: null,
17
+ description: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # OneMsgSdk::CreateSettingsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **webhook_url** | [**CreateSettingsRequestWebhookUrl**](CreateSettingsRequestWebhookUrl.md) | | [optional] |
8
+ | **guaranteed_hooks** | **Boolean** | | [optional] |
9
+ | **ack_notifications_on** | **Boolean** | | [optional] |
10
+ | **raw_hooks** | **Boolean** | | [optional] |
11
+ | **template_analytics_enabled** | **Boolean** | | [optional] |
12
+ | **cta_url_link_tracking_opted_out** | **Boolean** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'one_msg_sdk'
18
+
19
+ instance = OneMsgSdk::CreateSettingsRequest.new(
20
+ webhook_url: null,
21
+ guaranteed_hooks: null,
22
+ ack_notifications_on: null,
23
+ raw_hooks: null,
24
+ template_analytics_enabled: null,
25
+ cta_url_link_tracking_opted_out: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,49 @@
1
+ # OneMsgSdk::CreateSettingsRequestWebhookUrl
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'one_msg_sdk'
13
+
14
+ OneMsgSdk::CreateSettingsRequestWebhookUrl.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'Array<String>',
18
+ # :'String'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'one_msg_sdk'
30
+
31
+ OneMsgSdk::CreateSettingsRequestWebhookUrl.build(data)
32
+ # => #<Array<String>:0x00007fdd4aab02a0>
33
+
34
+ OneMsgSdk::CreateSettingsRequestWebhookUrl.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `Array<String>`
47
+ - `String`
48
+ - `nil` (if no type matches)
49
+
@@ -0,0 +1,18 @@
1
+ # OneMsgSdk::CreateUploadMedia200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **media_id** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'one_msg_sdk'
13
+
14
+ instance = OneMsgSdk::CreateUploadMedia200Response.new(
15
+ media_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # OneMsgSdk::CreateUploadMediaRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **body** | **String** | File HTTP(S) URL or base64 data URI (&#x60;data:&lt;mime&gt;;base64,...&#x60;) | [optional] |
8
+ | **url** | **String** | Alias for &#x60;body&#x60; — public HTTP(S) URL of the file to upload | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'one_msg_sdk'
14
+
15
+ instance = OneMsgSdk::CreateUploadMediaRequest.new(
16
+ body: null,
17
+ url: null
18
+ )
19
+ ```
20
+