one_msg_sdk 2.0.2 → 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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +62 -16
  3. data/README.md +97 -29
  4. data/docs/AddTemplate200Response.md +18 -0
  5. data/docs/AddTemplateRequest.md +7 -7
  6. data/docs/CallingApi.md +1 -1
  7. data/docs/CatalogApi.md +1 -1
  8. data/docs/ChannelApi.md +151 -5
  9. data/docs/CreateFlowsRequest.md +26 -0
  10. data/docs/CreateGroupsGroupIdRequest.md +22 -0
  11. data/docs/CreateGroupsRequest.md +20 -0
  12. data/docs/CreateSettingsRequest.md +28 -0
  13. data/docs/CreateSettingsRequestWebhookUrl.md +49 -0
  14. data/docs/CreateUploadMedia200Response.md +18 -0
  15. data/docs/CreateUploadMediaRequest.md +20 -0
  16. data/docs/FlowsApi.md +32 -16
  17. data/docs/GetStatus200Response.md +26 -0
  18. data/docs/GetWebhook200Response.md +24 -2
  19. data/docs/GetWebhook200ResponseWebhookUrl.md +49 -0
  20. data/docs/GroupsApi.md +38 -18
  21. data/docs/ListSettings200Response.md +52 -0
  22. data/docs/ListSettings200ResponseWebhookUrl.md +49 -0
  23. data/docs/MessagingApi.md +140 -35
  24. data/docs/PatchFlowsFlowIdAssetsRequest.md +18 -0
  25. data/docs/PatchFlowsFlowIdMetadataRequest.md +22 -0
  26. data/docs/ProfileApi.md +9 -11
  27. data/docs/RemoveTemplateRequest.md +18 -0
  28. data/docs/SendButtonRequest.md +9 -1
  29. data/docs/SendCarouselRequest1.md +4 -2
  30. data/docs/SendContactInfoRequest.md +26 -0
  31. data/docs/SendContactRequest.md +7 -1
  32. data/docs/SendContactRequestContact.md +26 -0
  33. data/docs/SendContactRequestContactName.md +49 -0
  34. data/docs/SendContactRequestContactsInner.md +3 -3
  35. data/docs/SendContactRequestContactsInnerPhonesInner.md +1 -1
  36. data/docs/SendListRequest.md +5 -1
  37. data/docs/SendLocationRequestRequest.md +5 -1
  38. data/docs/SendMessageRequest.md +6 -2
  39. data/docs/SendMessageRequestDirectSend.md +20 -0
  40. data/docs/SendProductRequest.md +30 -0
  41. data/docs/SendReactionRequest.md +3 -1
  42. data/docs/SendTemplateRequest.md +9 -5
  43. data/docs/SendTemplateRequestLanguage.md +3 -3
  44. data/docs/SetWebhook200Response.md +20 -0
  45. data/docs/SetWebhook200ResponseWebhookUrl.md +49 -0
  46. data/docs/SetWebhookRequest.md +18 -0
  47. data/docs/SetWebhookRequestWebhookUrl.md +49 -0
  48. data/docs/TemplatesApi.md +29 -17
  49. data/docs/UpdateMe200Response.md +18 -0
  50. data/docs/UpdateMeRequest.md +6 -6
  51. data/docs/WebhookUrlStatus.md +34 -0
  52. data/docs/WebhooksApi.md +10 -12
  53. data/lib/one_msg_sdk/api/calling_api.rb +4 -4
  54. data/lib/one_msg_sdk/api/catalog_api.rb +4 -4
  55. data/lib/one_msg_sdk/api/channel_api.rb +146 -7
  56. data/lib/one_msg_sdk/api/flows_api.rb +58 -14
  57. data/lib/one_msg_sdk/api/groups_api.rb +48 -10
  58. data/lib/one_msg_sdk/api/messaging_api.rb +163 -38
  59. data/lib/one_msg_sdk/api/profile_api.rb +17 -13
  60. data/lib/one_msg_sdk/api/templates_api.rb +36 -13
  61. data/lib/one_msg_sdk/api/users_api.rb +2 -2
  62. data/lib/one_msg_sdk/api/webhooks_api.rb +19 -15
  63. data/lib/one_msg_sdk/api_client.rb +2 -2
  64. data/lib/one_msg_sdk/api_error.rb +2 -2
  65. data/lib/one_msg_sdk/api_model_base.rb +2 -2
  66. data/lib/one_msg_sdk/configuration.rb +2 -2
  67. data/lib/one_msg_sdk/models/add_template200_response.rb +150 -0
  68. data/lib/one_msg_sdk/models/add_template_request.rb +6 -2
  69. data/lib/one_msg_sdk/models/block_user_request.rb +2 -2
  70. data/lib/one_msg_sdk/models/calling_settings.rb +2 -2
  71. data/lib/one_msg_sdk/models/calling_settings_calling.rb +2 -2
  72. data/lib/one_msg_sdk/models/calling_settings_calling_audio.rb +2 -2
  73. data/lib/one_msg_sdk/models/calling_settings_calling_call_hours.rb +2 -2
  74. data/lib/one_msg_sdk/models/calling_settings_calling_sip.rb +2 -2
  75. data/lib/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.rb +2 -2
  76. data/lib/one_msg_sdk/models/calling_settings_calling_video.rb +2 -2
  77. data/lib/one_msg_sdk/models/conversational_automation.rb +2 -2
  78. data/lib/one_msg_sdk/models/conversational_automation_commands_inner.rb +2 -2
  79. data/lib/one_msg_sdk/models/create_commerce200_response.rb +2 -2
  80. data/lib/one_msg_sdk/models/create_commerce_request.rb +2 -2
  81. data/lib/one_msg_sdk/models/create_commerce_request_params.rb +2 -2
  82. data/lib/one_msg_sdk/models/create_flows_request.rb +238 -0
  83. data/lib/one_msg_sdk/models/create_groups200_response.rb +2 -2
  84. data/lib/one_msg_sdk/models/create_groups_group_id_request.rb +168 -0
  85. data/lib/one_msg_sdk/models/create_groups_request.rb +175 -0
  86. data/lib/one_msg_sdk/models/create_read_message200_response.rb +2 -2
  87. data/lib/one_msg_sdk/models/create_read_message401_response.rb +2 -2
  88. data/lib/one_msg_sdk/models/create_read_message_request.rb +2 -2
  89. data/lib/one_msg_sdk/models/create_settings_request.rb +192 -0
  90. data/lib/one_msg_sdk/models/create_settings_request_webhook_url.rb +105 -0
  91. data/lib/one_msg_sdk/models/create_upload_media200_response.rb +147 -0
  92. data/lib/one_msg_sdk/models/create_upload_media_request.rb +158 -0
  93. data/lib/one_msg_sdk/models/delete_flows_flow_id200_response.rb +2 -2
  94. data/lib/one_msg_sdk/models/delete_groups_group_id200_response.rb +2 -2
  95. data/lib/one_msg_sdk/models/delete_media_legacy_request.rb +2 -2
  96. data/lib/one_msg_sdk/models/error_response.rb +2 -2
  97. data/lib/one_msg_sdk/models/get_commerce200_response_inner.rb +2 -2
  98. data/lib/one_msg_sdk/models/get_mm_lite_status200_response.rb +2 -2
  99. data/lib/one_msg_sdk/models/get_status200_response.rb +185 -0
  100. data/lib/one_msg_sdk/models/get_webhook200_response.rb +155 -6
  101. data/lib/one_msg_sdk/models/get_webhook200_response_webhook_url.rb +105 -0
  102. data/lib/one_msg_sdk/models/get_whatsapp_business_encryption200_response.rb +2 -2
  103. data/lib/one_msg_sdk/models/initiate_call_request.rb +2 -2
  104. data/lib/one_msg_sdk/models/initiate_call_request_session.rb +2 -2
  105. data/lib/one_msg_sdk/models/initiate_call_response.rb +2 -2
  106. data/lib/one_msg_sdk/models/initiate_call_response_calls_inner.rb +2 -2
  107. data/lib/one_msg_sdk/models/initiate_call_response_response.rb +2 -2
  108. data/lib/one_msg_sdk/models/list_blocked_users200_response.rb +2 -2
  109. data/lib/one_msg_sdk/models/list_flows200_response.rb +2 -2
  110. data/lib/one_msg_sdk/models/list_messages200_response.rb +2 -2
  111. data/lib/one_msg_sdk/models/list_settings200_response.rb +352 -0
  112. data/lib/one_msg_sdk/models/list_settings200_response_webhook_url.rb +105 -0
  113. data/lib/one_msg_sdk/models/list_templates200_response.rb +2 -2
  114. data/lib/one_msg_sdk/models/message_sent_response.rb +2 -2
  115. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets200_response.rb +2 -2
  116. data/lib/one_msg_sdk/models/patch_flows_flow_id_assets_request.rb +167 -0
  117. data/lib/one_msg_sdk/models/patch_flows_flow_id_metadata_request.rb +190 -0
  118. data/lib/one_msg_sdk/models/profile_info.rb +2 -2
  119. data/lib/one_msg_sdk/models/remove_template_request.rb +165 -0
  120. data/lib/one_msg_sdk/models/retrieve_media200_response.rb +2 -2
  121. data/lib/one_msg_sdk/models/send_address_message_request.rb +2 -2
  122. data/lib/one_msg_sdk/models/send_button_request.rb +48 -3
  123. data/lib/one_msg_sdk/models/send_button_request_sections_inner.rb +2 -2
  124. data/lib/one_msg_sdk/models/send_button_request_sections_inner_reply.rb +2 -2
  125. data/lib/one_msg_sdk/models/send_carousel_request1.rb +38 -13
  126. data/lib/one_msg_sdk/models/send_contact_info_request.rb +222 -0
  127. data/lib/one_msg_sdk/models/send_contact_request.rb +32 -3
  128. data/lib/one_msg_sdk/models/send_contact_request_contact.rb +221 -0
  129. data/lib/one_msg_sdk/models/send_contact_request_contact_name.rb +105 -0
  130. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner.rb +5 -5
  131. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_name.rb +2 -2
  132. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_org.rb +2 -2
  133. data/lib/one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.rb +3 -2
  134. data/lib/one_msg_sdk/models/send_cta_url_request.rb +2 -2
  135. data/lib/one_msg_sdk/models/send_file_request.rb +2 -2
  136. data/lib/one_msg_sdk/models/send_flow_request1.rb +2 -2
  137. data/lib/one_msg_sdk/models/send_flow_request1_header.rb +2 -2
  138. data/lib/one_msg_sdk/models/send_flow_request_header.rb +2 -2
  139. data/lib/one_msg_sdk/models/send_list_request.rb +23 -3
  140. data/lib/one_msg_sdk/models/send_list_request_sections_inner.rb +2 -2
  141. data/lib/one_msg_sdk/models/send_list_request_sections_inner_rows_inner.rb +2 -2
  142. data/lib/one_msg_sdk/models/send_location_request1.rb +2 -2
  143. data/lib/one_msg_sdk/models/send_location_request_request.rb +23 -3
  144. data/lib/one_msg_sdk/models/send_message_request.rb +60 -28
  145. data/lib/one_msg_sdk/models/send_message_request_direct_send.rb +189 -0
  146. data/lib/one_msg_sdk/models/send_order_details_request.rb +2 -2
  147. data/lib/one_msg_sdk/models/send_order_details_request_language.rb +2 -2
  148. data/lib/one_msg_sdk/models/send_order_details_request_order.rb +2 -2
  149. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner.rb +2 -2
  150. data/lib/one_msg_sdk/models/send_order_details_request_order_items_inner_amount.rb +2 -2
  151. data/lib/one_msg_sdk/models/send_payment_request_request.rb +2 -2
  152. data/lib/one_msg_sdk/models/send_product_request.rb +225 -0
  153. data/lib/one_msg_sdk/models/send_reaction_request.rb +14 -3
  154. data/lib/one_msg_sdk/models/send_sticker_request.rb +2 -2
  155. data/lib/one_msg_sdk/models/send_template_request.rb +29 -5
  156. data/lib/one_msg_sdk/models/send_template_request_language.rb +6 -2
  157. data/lib/one_msg_sdk/models/set_webhook200_response.rb +157 -0
  158. data/lib/one_msg_sdk/models/set_webhook200_response_webhook_url.rb +105 -0
  159. data/lib/one_msg_sdk/models/set_webhook_request.rb +164 -0
  160. data/lib/one_msg_sdk/models/set_webhook_request_webhook_url.rb +105 -0
  161. data/lib/one_msg_sdk/models/set_whatsapp_business_encryption_request.rb +2 -2
  162. data/lib/one_msg_sdk/models/success_response.rb +2 -2
  163. data/lib/one_msg_sdk/models/update_calling_settings200_response.rb +2 -2
  164. data/lib/one_msg_sdk/models/update_calling_settings200_response_response.rb +2 -2
  165. data/lib/one_msg_sdk/models/update_me200_response.rb +147 -0
  166. data/lib/one_msg_sdk/models/update_me_request.rb +6 -3
  167. data/lib/one_msg_sdk/models/webhook_url_status.rb +287 -0
  168. data/lib/one_msg_sdk/platform_client.rb +182 -0
  169. data/lib/one_msg_sdk/version.rb +3 -3
  170. data/lib/one_msg_sdk.rb +30 -2
  171. data/one_msg_sdk.gemspec +2 -2
  172. data/spec/api/calling_api_spec.rb +3 -3
  173. data/spec/api/catalog_api_spec.rb +3 -3
  174. data/spec/api/channel_api_spec.rb +29 -4
  175. data/spec/api/flows_api_spec.rb +10 -2
  176. data/spec/api/groups_api_spec.rb +10 -2
  177. data/spec/api/messaging_api_spec.rb +37 -9
  178. data/spec/api/profile_api_spec.rb +5 -5
  179. data/spec/api/templates_api_spec.rb +11 -5
  180. data/spec/api/users_api_spec.rb +2 -2
  181. data/spec/api/webhooks_api_spec.rb +6 -6
  182. data/spec/models/add_template200_response_spec.rb +36 -0
  183. data/spec/models/add_template_request_spec.rb +2 -2
  184. data/spec/models/block_user_request_spec.rb +2 -2
  185. data/spec/models/calling_settings_calling_audio_spec.rb +2 -2
  186. data/spec/models/calling_settings_calling_call_hours_spec.rb +2 -2
  187. data/spec/models/calling_settings_calling_sip_servers_inner_spec.rb +2 -2
  188. data/spec/models/calling_settings_calling_sip_spec.rb +2 -2
  189. data/spec/models/calling_settings_calling_spec.rb +2 -2
  190. data/spec/models/calling_settings_calling_video_spec.rb +2 -2
  191. data/spec/models/calling_settings_spec.rb +2 -2
  192. data/spec/models/conversational_automation_commands_inner_spec.rb +2 -2
  193. data/spec/models/conversational_automation_spec.rb +2 -2
  194. data/spec/models/create_commerce200_response_spec.rb +2 -2
  195. data/spec/models/create_commerce_request_params_spec.rb +2 -2
  196. data/spec/models/create_commerce_request_spec.rb +2 -2
  197. data/spec/models/create_flows_request_spec.rb +64 -0
  198. data/spec/models/create_groups200_response_spec.rb +2 -2
  199. data/spec/models/create_groups_group_id_request_spec.rb +48 -0
  200. data/spec/models/create_groups_request_spec.rb +42 -0
  201. data/spec/models/create_read_message200_response_spec.rb +2 -2
  202. data/spec/models/create_read_message401_response_spec.rb +2 -2
  203. data/spec/models/create_read_message_request_spec.rb +2 -2
  204. data/spec/models/create_settings_request_spec.rb +66 -0
  205. data/spec/models/create_settings_request_webhook_url_spec.rb +32 -0
  206. data/spec/models/create_upload_media200_response_spec.rb +36 -0
  207. data/spec/models/create_upload_media_request_spec.rb +42 -0
  208. data/spec/models/delete_flows_flow_id200_response_spec.rb +2 -2
  209. data/spec/models/delete_groups_group_id200_response_spec.rb +2 -2
  210. data/spec/models/delete_media_legacy_request_spec.rb +2 -2
  211. data/spec/models/error_response_spec.rb +2 -2
  212. data/spec/models/get_commerce200_response_inner_spec.rb +2 -2
  213. data/spec/models/get_mm_lite_status200_response_spec.rb +2 -2
  214. data/spec/models/get_status200_response_spec.rb +60 -0
  215. data/spec/models/get_webhook200_response_spec.rb +72 -2
  216. data/spec/models/get_webhook200_response_webhook_url_spec.rb +32 -0
  217. data/spec/models/get_whatsapp_business_encryption200_response_spec.rb +2 -2
  218. data/spec/models/initiate_call_request_session_spec.rb +2 -2
  219. data/spec/models/initiate_call_request_spec.rb +2 -2
  220. data/spec/models/initiate_call_response_calls_inner_spec.rb +2 -2
  221. data/spec/models/initiate_call_response_response_spec.rb +2 -2
  222. data/spec/models/initiate_call_response_spec.rb +2 -2
  223. data/spec/models/list_blocked_users200_response_spec.rb +2 -2
  224. data/spec/models/list_flows200_response_spec.rb +2 -2
  225. data/spec/models/list_messages200_response_spec.rb +2 -2
  226. data/spec/models/list_settings200_response_spec.rb +142 -0
  227. data/spec/models/list_settings200_response_webhook_url_spec.rb +32 -0
  228. data/spec/models/list_templates200_response_spec.rb +2 -2
  229. data/spec/models/message_sent_response_spec.rb +2 -2
  230. data/spec/models/patch_flows_flow_id_assets200_response_spec.rb +2 -2
  231. data/spec/models/patch_flows_flow_id_assets_request_spec.rb +36 -0
  232. data/spec/models/patch_flows_flow_id_metadata_request_spec.rb +52 -0
  233. data/spec/models/profile_info_spec.rb +2 -2
  234. data/spec/models/remove_template_request_spec.rb +36 -0
  235. data/spec/models/retrieve_media200_response_spec.rb +2 -2
  236. data/spec/models/send_address_message_request_spec.rb +2 -2
  237. data/spec/models/send_button_request_sections_inner_reply_spec.rb +2 -2
  238. data/spec/models/send_button_request_sections_inner_spec.rb +2 -2
  239. data/spec/models/send_button_request_spec.rb +26 -2
  240. data/spec/models/send_carousel_request1_spec.rb +8 -2
  241. data/spec/models/send_contact_info_request_spec.rb +60 -0
  242. data/spec/models/send_contact_request_contact_name_spec.rb +32 -0
  243. data/spec/models/send_contact_request_contact_spec.rb +60 -0
  244. data/spec/models/send_contact_request_contacts_inner_name_spec.rb +2 -2
  245. data/spec/models/send_contact_request_contacts_inner_org_spec.rb +2 -2
  246. data/spec/models/send_contact_request_contacts_inner_phones_inner_spec.rb +2 -2
  247. data/spec/models/send_contact_request_contacts_inner_spec.rb +2 -2
  248. data/spec/models/send_contact_request_spec.rb +20 -2
  249. data/spec/models/send_cta_url_request_spec.rb +2 -2
  250. data/spec/models/send_file_request_spec.rb +2 -2
  251. data/spec/models/send_flow_request1_header_spec.rb +2 -2
  252. data/spec/models/send_flow_request1_spec.rb +2 -2
  253. data/spec/models/send_flow_request_header_spec.rb +2 -2
  254. data/spec/models/send_list_request_sections_inner_rows_inner_spec.rb +2 -2
  255. data/spec/models/send_list_request_sections_inner_spec.rb +2 -2
  256. data/spec/models/send_list_request_spec.rb +14 -2
  257. data/spec/models/send_location_request1_spec.rb +2 -2
  258. data/spec/models/send_location_request_request_spec.rb +14 -2
  259. data/spec/models/send_message_request_direct_send_spec.rb +42 -0
  260. data/spec/models/send_message_request_spec.rb +18 -2
  261. data/spec/models/send_order_details_request_language_spec.rb +2 -2
  262. data/spec/models/send_order_details_request_order_items_inner_amount_spec.rb +2 -2
  263. data/spec/models/send_order_details_request_order_items_inner_spec.rb +2 -2
  264. data/spec/models/send_order_details_request_order_spec.rb +2 -2
  265. data/spec/models/send_order_details_request_spec.rb +2 -2
  266. data/spec/models/send_payment_request_request_spec.rb +2 -2
  267. data/spec/models/send_product_request_spec.rb +72 -0
  268. data/spec/models/send_reaction_request_spec.rb +8 -2
  269. data/spec/models/send_sticker_request_spec.rb +2 -2
  270. data/spec/models/send_template_request_language_spec.rb +2 -2
  271. data/spec/models/send_template_request_spec.rb +14 -2
  272. data/spec/models/set_webhook200_response_spec.rb +42 -0
  273. data/spec/models/set_webhook200_response_webhook_url_spec.rb +32 -0
  274. data/spec/models/set_webhook_request_spec.rb +36 -0
  275. data/spec/models/set_webhook_request_webhook_url_spec.rb +32 -0
  276. data/spec/models/set_whatsapp_business_encryption_request_spec.rb +2 -2
  277. data/spec/models/success_response_spec.rb +2 -2
  278. data/spec/models/update_calling_settings200_response_response_spec.rb +2 -2
  279. data/spec/models/update_calling_settings200_response_spec.rb +2 -2
  280. data/spec/models/update_me200_response_spec.rb +36 -0
  281. data/spec/models/update_me_request_spec.rb +2 -2
  282. data/spec/models/webhook_url_status_spec.rb +88 -0
  283. data/spec/spec_helper.rb +2 -2
  284. metadata +204 -31
@@ -4,10 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | | [optional] |
8
- | **category** | **String** | | [optional] |
9
- | **language** | **String** | | [optional] |
10
- | **components** | **Array<Hash<String, Object>>** | | [optional] |
7
+ | **name** | **String** | Template name | [optional] |
8
+ | **category** | **String** | MARKETING, UTILITY, or AUTHENTICATION | [optional] |
9
+ | **language** | **String** | Template language code (e.g. en_US) | [optional] |
10
+ | **components** | **Array<Hash<String, Object>>** | Template components (HEADER, BODY, FOOTER, BUTTONS, CAROUSEL) | [optional] |
11
11
 
12
12
  ## Example
13
13
 
@@ -15,9 +15,9 @@
15
15
  require 'one_msg_sdk'
16
16
 
17
17
  instance = OneMsgSdk::AddTemplateRequest.new(
18
- name: null,
19
- category: null,
20
- language: null,
18
+ name: hello_world,
19
+ category: UTILITY,
20
+ language: en_US,
21
21
  components: null
22
22
  )
23
23
  ```
data/docs/CallingApi.md CHANGED
@@ -86,7 +86,7 @@ end
86
86
 
87
87
  Call action (connect / pre_accept / accept / reject / terminate)
88
88
 
89
- Perform a WhatsApp Calling action (beta). Proxies upstream `POST /calling/calls`. Despite the historical path name `/initiateCall`, this endpoint handles **all** call actions: | action | Use | Required | |--------|-----|----------| | `connect` | Outbound business → user | `to` + `session` (`sdp_type: offer`) | | `pre_accept` | Inbound (optional, reduces audio clipping) | `call_id` + `session` (`sdp_type: answer`) | | `accept` | Inbound answer | `call_id` + `session` (`sdp_type: answer`) | | `reject` | Decline inbound | `call_id` | | `terminate` | Hang up | `call_id` | **SDP / media (critical)** - `accept` / `pre_accept` require a **WebRTC-generated SDP answer**. - Do **not** send Meta's offer SDP back as the answer. - Postman (or curl) alone **cannot** establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling. Answer within ~**30–60 seconds** of an inbound `connect` webhook or Meta terminates as unanswered. Common Meta errors include Calling not enabled (`138000`), no permission (`138006`), SDP validation failures. **Outbound** requires a prior Call Permission Request (CPR) acceptance. See the **Calling** tag overview for the full outbound flow and CPR limits. Trial / `subscriptionBlocked` → **403** plain text. Upstream failures often return HTTP 200 with `{ \"response\": { \"error\": \"...\" } }`.
89
+ Perform a WhatsApp Calling action (beta). Proxies upstream `POST /calling/calls`. Despite the historical path name `/initiateCall`, this endpoint handles **all** call actions: | action | Use | Required | |--------|-----|----------| | `connect` | Outbound business → user | `to` + `session` (`sdp_type: offer`) | | `pre_accept` | Inbound (optional, reduces audio clipping) | `call_id` + `session` (`sdp_type: answer`) | | `accept` | Inbound answer | `call_id` + `session` (`sdp_type: answer`) | | `reject` | Decline inbound | `call_id` | | `terminate` | Hang up | `call_id` | **SDP / media (critical)** - `accept` / `pre_accept` require a **WebRTC-generated SDP answer**. - Do **not** send Meta's offer SDP back as the answer. - Postman (or curl) alone **cannot** establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling. Answer within ~**30–60 seconds** of an inbound `connect` webhook or Meta terminates as unanswered. Common Meta errors include Calling not enabled (`138000`), no permission (`138006`), SDP validation failures. **Outbound** requires a prior Call Permission Request (CPR) acceptance. See the **Calling** tag overview for the full outbound flow and CPR limits. Trial / `subscriptionBlocked` → **403** plain text. Upstream failures often return HTTP 200 with `{ \"response\": { \"error\": \"<upstream message>\" } }`. `Invalid API KEY` is used only when Meta/360 body actually indicates an invalid API key or token. Other upstream 401s (notably call permission `138006`) pass through `error.message` / `error_user_msg`.
90
90
 
91
91
  ### Examples
92
92
 
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&lt;String, Object&gt; 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
+
data/docs/FlowsApi.md CHANGED
@@ -19,10 +19,12 @@ All URIs are relative to *https://api.1msg.io*
19
19
 
20
20
  ## create_flows
21
21
 
22
- > <CreateGroups200Response> create_flows(token, opts)
22
+ > <CreateGroups200Response> create_flows(token, create_flows_request, opts)
23
23
 
24
24
  Create Flow
25
25
 
26
+ Create a WhatsApp Flow (`name` + `categories` required). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
27
+
26
28
  ### Examples
27
29
 
28
30
  ```ruby
@@ -38,13 +40,14 @@ end
38
40
 
39
41
  api_instance = OneMsgSdk::FlowsApi.new
40
42
  token = 'token_example' # String | JWT token or API key for authorization
43
+ create_flows_request = OneMsgSdk::CreateFlowsRequest.new({name: 'name_example', categories: ['SIGN_UP']}) # CreateFlowsRequest |
41
44
  opts = {
42
45
  waba_account_id: '{{wabaAccountId}}' # String |
43
46
  }
44
47
 
45
48
  begin
46
49
  # Create Flow
47
- result = api_instance.create_flows(token, opts)
50
+ result = api_instance.create_flows(token, create_flows_request, opts)
48
51
  p result
49
52
  rescue OneMsgSdk::ApiError => e
50
53
  puts "Error when calling FlowsApi->create_flows: #{e}"
@@ -55,12 +58,12 @@ end
55
58
 
56
59
  This returns an Array which contains the response data, status code and headers.
57
60
 
58
- > <Array(<CreateGroups200Response>, Integer, Hash)> create_flows_with_http_info(token, opts)
61
+ > <Array(<CreateGroups200Response>, Integer, Hash)> create_flows_with_http_info(token, create_flows_request, opts)
59
62
 
60
63
  ```ruby
61
64
  begin
62
65
  # Create Flow
63
- data, status_code, headers = api_instance.create_flows_with_http_info(token, opts)
66
+ data, status_code, headers = api_instance.create_flows_with_http_info(token, create_flows_request, opts)
64
67
  p status_code # => 2xx
65
68
  p headers # => { ... }
66
69
  p data # => <CreateGroups200Response>
@@ -74,6 +77,7 @@ end
74
77
  | Name | Type | Description | Notes |
75
78
  | ---- | ---- | ----------- | ----- |
76
79
  | **token** | **String** | JWT token or API key for authorization | |
80
+ | **create_flows_request** | [**CreateFlowsRequest**](CreateFlowsRequest.md) | | |
77
81
  | **waba_account_id** | **String** | | [optional] |
78
82
 
79
83
  ### Return type
@@ -86,7 +90,7 @@ end
86
90
 
87
91
  ### HTTP request headers
88
92
 
89
- - **Content-Type**: Not defined
93
+ - **Content-Type**: application/json
90
94
  - **Accept**: application/json
91
95
 
92
96
 
@@ -542,6 +546,8 @@ end
542
546
 
543
547
  List Flows
544
548
 
549
+ List WhatsApp Flows for the WABA. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
550
+
545
551
  ### Examples
546
552
 
547
553
  ```ruby
@@ -558,7 +564,8 @@ end
558
564
  api_instance = OneMsgSdk::FlowsApi.new
559
565
  token = 'token_example' # String | JWT token or API key for authorization
560
566
  opts = {
561
- waba_account_id: '{{wabaAccountId}}' # String |
567
+ waba_account_id: '{{wabaAccountId}}', # String |
568
+ fields: 'fields_example' # String | Comma-separated Flow fields to return
562
569
  }
563
570
 
564
571
  begin
@@ -594,6 +601,7 @@ end
594
601
  | ---- | ---- | ----------- | ----- |
595
602
  | **token** | **String** | JWT token or API key for authorization | |
596
603
  | **waba_account_id** | **String** | | [optional] |
604
+ | **fields** | **String** | Comma-separated Flow fields to return | [optional] |
597
605
 
598
606
  ### Return type
599
607
 
@@ -611,10 +619,12 @@ end
611
619
 
612
620
  ## patch_flows_flow_id_assets
613
621
 
614
- > <PatchFlowsFlowIdAssets200Response> patch_flows_flow_id_assets(flow_id, token, opts)
622
+ > <PatchFlowsFlowIdAssets200Response> patch_flows_flow_id_assets(flow_id, token, patch_flows_flow_id_assets_request, opts)
615
623
 
616
624
  Update Flow Structure
617
625
 
626
+ Replace the Flow JSON document (`flowJson`). Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
627
+
618
628
  ### Examples
619
629
 
620
630
  ```ruby
@@ -631,13 +641,14 @@ end
631
641
  api_instance = OneMsgSdk::FlowsApi.new
632
642
  flow_id = 'flow_id_example' # String | Flow ID
633
643
  token = 'token_example' # String | JWT token or API key for authorization
644
+ patch_flows_flow_id_assets_request = OneMsgSdk::PatchFlowsFlowIdAssetsRequest.new({flow_json: { key: 3.56}}) # PatchFlowsFlowIdAssetsRequest |
634
645
  opts = {
635
646
  waba_account_id: '{{wabaAccountId}}' # String |
636
647
  }
637
648
 
638
649
  begin
639
650
  # Update Flow Structure
640
- result = api_instance.patch_flows_flow_id_assets(flow_id, token, opts)
651
+ result = api_instance.patch_flows_flow_id_assets(flow_id, token, patch_flows_flow_id_assets_request, opts)
641
652
  p result
642
653
  rescue OneMsgSdk::ApiError => e
643
654
  puts "Error when calling FlowsApi->patch_flows_flow_id_assets: #{e}"
@@ -648,12 +659,12 @@ end
648
659
 
649
660
  This returns an Array which contains the response data, status code and headers.
650
661
 
651
- > <Array(<PatchFlowsFlowIdAssets200Response>, Integer, Hash)> patch_flows_flow_id_assets_with_http_info(flow_id, token, opts)
662
+ > <Array(<PatchFlowsFlowIdAssets200Response>, Integer, Hash)> patch_flows_flow_id_assets_with_http_info(flow_id, token, patch_flows_flow_id_assets_request, opts)
652
663
 
653
664
  ```ruby
654
665
  begin
655
666
  # Update Flow Structure
656
- data, status_code, headers = api_instance.patch_flows_flow_id_assets_with_http_info(flow_id, token, opts)
667
+ data, status_code, headers = api_instance.patch_flows_flow_id_assets_with_http_info(flow_id, token, patch_flows_flow_id_assets_request, opts)
657
668
  p status_code # => 2xx
658
669
  p headers # => { ... }
659
670
  p data # => <PatchFlowsFlowIdAssets200Response>
@@ -668,6 +679,7 @@ end
668
679
  | ---- | ---- | ----------- | ----- |
669
680
  | **flow_id** | **String** | Flow ID | |
670
681
  | **token** | **String** | JWT token or API key for authorization | |
682
+ | **patch_flows_flow_id_assets_request** | [**PatchFlowsFlowIdAssetsRequest**](PatchFlowsFlowIdAssetsRequest.md) | | |
671
683
  | **waba_account_id** | **String** | | [optional] |
672
684
 
673
685
  ### Return type
@@ -680,16 +692,18 @@ end
680
692
 
681
693
  ### HTTP request headers
682
694
 
683
- - **Content-Type**: Not defined
695
+ - **Content-Type**: application/json
684
696
  - **Accept**: application/json
685
697
 
686
698
 
687
699
  ## patch_flows_flow_id_metadata
688
700
 
689
- > Hash&lt;String, Object&gt; patch_flows_flow_id_metadata(flow_id, token, opts)
701
+ > Hash&lt;String, Object&gt; patch_flows_flow_id_metadata(flow_id, token, patch_flows_flow_id_metadata_request, opts)
690
702
 
691
703
  Update Flow Metadata
692
704
 
705
+ Update Flow `name`, `categories`, and/or `endpointUri`. Currently returns HTTP 501 until the Meta Graph Flows rewrite is available.
706
+
693
707
  ### Examples
694
708
 
695
709
  ```ruby
@@ -706,13 +720,14 @@ end
706
720
  api_instance = OneMsgSdk::FlowsApi.new
707
721
  flow_id = 'flow_id_example' # String | Flow ID
708
722
  token = 'token_example' # String | JWT token or API key for authorization
723
+ patch_flows_flow_id_metadata_request = OneMsgSdk::PatchFlowsFlowIdMetadataRequest.new # PatchFlowsFlowIdMetadataRequest |
709
724
  opts = {
710
725
  waba_account_id: '{{wabaAccountId}}' # String |
711
726
  }
712
727
 
713
728
  begin
714
729
  # Update Flow Metadata
715
- result = api_instance.patch_flows_flow_id_metadata(flow_id, token, opts)
730
+ result = api_instance.patch_flows_flow_id_metadata(flow_id, token, patch_flows_flow_id_metadata_request, opts)
716
731
  p result
717
732
  rescue OneMsgSdk::ApiError => e
718
733
  puts "Error when calling FlowsApi->patch_flows_flow_id_metadata: #{e}"
@@ -723,12 +738,12 @@ end
723
738
 
724
739
  This returns an Array which contains the response data, status code and headers.
725
740
 
726
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> patch_flows_flow_id_metadata_with_http_info(flow_id, token, opts)
741
+ > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> patch_flows_flow_id_metadata_with_http_info(flow_id, token, patch_flows_flow_id_metadata_request, opts)
727
742
 
728
743
  ```ruby
729
744
  begin
730
745
  # Update Flow Metadata
731
- data, status_code, headers = api_instance.patch_flows_flow_id_metadata_with_http_info(flow_id, token, opts)
746
+ data, status_code, headers = api_instance.patch_flows_flow_id_metadata_with_http_info(flow_id, token, patch_flows_flow_id_metadata_request, opts)
732
747
  p status_code # => 2xx
733
748
  p headers # => { ... }
734
749
  p data # => Hash&lt;String, Object&gt;
@@ -743,6 +758,7 @@ end
743
758
  | ---- | ---- | ----------- | ----- |
744
759
  | **flow_id** | **String** | Flow ID | |
745
760
  | **token** | **String** | JWT token or API key for authorization | |
761
+ | **patch_flows_flow_id_metadata_request** | [**PatchFlowsFlowIdMetadataRequest**](PatchFlowsFlowIdMetadataRequest.md) | | |
746
762
  | **waba_account_id** | **String** | | [optional] |
747
763
 
748
764
  ### Return type
@@ -755,7 +771,7 @@ end
755
771
 
756
772
  ### HTTP request headers
757
773
 
758
- - **Content-Type**: Not defined
774
+ - **Content-Type**: application/json
759
775
  - **Accept**: application/json
760
776
 
761
777
 
@@ -0,0 +1,26 @@
1
+ # OneMsgSdk::GetStatus200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **is_cloud** | **Boolean** | | [optional] |
8
+ | **status** | **String** | typically &#x60;connected&#x60; when the number can send | [optional] |
9
+ | **account_status** | **String** | | [optional] |
10
+ | **mm_lite_available** | **Boolean** | | [optional] |
11
+ | **health_status_warning** | **String** | Optional soft-fail warning when Meta Graph health_status could not be loaded. Never includes internal provider names. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'one_msg_sdk'
17
+
18
+ instance = OneMsgSdk::GetStatus200Response.new(
19
+ is_cloud: true,
20
+ status: connected,
21
+ account_status: authenticated,
22
+ mm_lite_available: null,
23
+ health_status_warning: null
24
+ )
25
+ ```
26
+