one-msg-sdk 1.0.0__tar.gz → 1.0.2__tar.gz

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 (192) hide show
  1. one_msg_sdk-1.0.2/PKG-INFO +892 -0
  2. one_msg_sdk-1.0.2/README.md +872 -0
  3. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/__init__.py +29 -1
  4. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/calling_api.py +61 -58
  5. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/webhooks_api.py +3 -3
  6. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api_client.py +1 -1
  7. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/configuration.py +1 -1
  8. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/__init__.py +14 -0
  9. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings.py +106 -0
  10. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling.py +178 -0
  11. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling_audio.py +102 -0
  12. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling_call_hours.py +106 -0
  13. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling_sip.py +122 -0
  14. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling_sip_servers_inner.py +112 -0
  15. one_msg_sdk-1.0.2/one_msg_sdk/models/calling_settings_calling_video.py +112 -0
  16. one_msg_sdk-1.0.2/one_msg_sdk/models/initiate_call_request.py +131 -0
  17. one_msg_sdk-1.0.2/one_msg_sdk/models/initiate_call_request_session.py +111 -0
  18. one_msg_sdk-1.0.2/one_msg_sdk/models/initiate_call_response.py +122 -0
  19. one_msg_sdk-1.0.2/one_msg_sdk/models/initiate_call_response_calls_inner.py +102 -0
  20. one_msg_sdk-1.0.2/one_msg_sdk/models/initiate_call_response_response.py +102 -0
  21. one_msg_sdk-1.0.2/one_msg_sdk/models/update_calling_settings200_response.py +110 -0
  22. one_msg_sdk-1.0.2/one_msg_sdk/models/update_calling_settings200_response_response.py +102 -0
  23. one_msg_sdk-1.0.2/one_msg_sdk.egg-info/PKG-INFO +892 -0
  24. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk.egg-info/SOURCES.txt +29 -0
  25. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/pyproject.toml +3 -3
  26. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/setup.py +4 -5
  27. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_calling_api.py +1 -1
  28. one_msg_sdk-1.0.2/test/test_calling_settings.py +52 -0
  29. one_msg_sdk-1.0.2/test/test_calling_settings_calling.py +62 -0
  30. one_msg_sdk-1.0.2/test/test_calling_settings_calling_audio.py +52 -0
  31. one_msg_sdk-1.0.2/test/test_calling_settings_calling_call_hours.py +54 -0
  32. one_msg_sdk-1.0.2/test/test_calling_settings_calling_sip.py +55 -0
  33. one_msg_sdk-1.0.2/test/test_calling_settings_calling_sip_servers_inner.py +59 -0
  34. one_msg_sdk-1.0.2/test/test_calling_settings_calling_video.py +52 -0
  35. one_msg_sdk-1.0.2/test/test_initiate_call_request.py +59 -0
  36. one_msg_sdk-1.0.2/test/test_initiate_call_request_session.py +55 -0
  37. one_msg_sdk-1.0.2/test/test_initiate_call_response.py +58 -0
  38. one_msg_sdk-1.0.2/test/test_initiate_call_response_calls_inner.py +52 -0
  39. one_msg_sdk-1.0.2/test/test_initiate_call_response_response.py +52 -0
  40. one_msg_sdk-1.0.2/test/test_update_calling_settings200_response.py +54 -0
  41. one_msg_sdk-1.0.2/test/test_update_calling_settings200_response_response.py +52 -0
  42. one_msg_sdk-1.0.0/PKG-INFO +0 -19
  43. one_msg_sdk-1.0.0/one_msg_sdk.egg-info/PKG-INFO +0 -19
  44. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/LICENSE +0 -0
  45. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/__init__.py +0 -0
  46. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/catalog_api.py +0 -0
  47. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/channel_api.py +0 -0
  48. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/flows_api.py +0 -0
  49. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/groups_api.py +0 -0
  50. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/messaging_api.py +0 -0
  51. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/profile_api.py +0 -0
  52. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/templates_api.py +0 -0
  53. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api/users_api.py +0 -0
  54. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/api_response.py +0 -0
  55. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/exceptions.py +0 -0
  56. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/add_template_request.py +0 -0
  57. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/block_user_request.py +0 -0
  58. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/conversational_automation.py +0 -0
  59. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/conversational_automation_commands_inner.py +0 -0
  60. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_commerce200_response.py +0 -0
  61. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_commerce_request.py +0 -0
  62. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_commerce_request_params.py +0 -0
  63. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_groups200_response.py +0 -0
  64. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_read_message200_response.py +0 -0
  65. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_read_message401_response.py +0 -0
  66. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/create_read_message_request.py +0 -0
  67. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/delete_flows_flow_id200_response.py +0 -0
  68. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/delete_groups_group_id200_response.py +0 -0
  69. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/delete_media_legacy_request.py +0 -0
  70. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/error_response.py +0 -0
  71. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/get_commerce200_response_inner.py +0 -0
  72. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/get_mm_lite_status200_response.py +0 -0
  73. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/get_webhook200_response.py +0 -0
  74. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/get_whatsapp_business_encryption200_response.py +0 -0
  75. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/list_blocked_users200_response.py +0 -0
  76. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/list_flows200_response.py +0 -0
  77. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/list_messages200_response.py +0 -0
  78. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/list_templates200_response.py +0 -0
  79. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/message_sent_response.py +0 -0
  80. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/patch_flows_flow_id_assets200_response.py +0 -0
  81. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/profile_info.py +0 -0
  82. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/retrieve_media200_response.py +0 -0
  83. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_address_message_request.py +0 -0
  84. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_button_request.py +0 -0
  85. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_button_request_sections_inner.py +0 -0
  86. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_button_request_sections_inner_reply.py +0 -0
  87. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_carousel_request1.py +0 -0
  88. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_contact_request.py +0 -0
  89. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_contact_request_contacts_inner.py +0 -0
  90. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_contact_request_contacts_inner_name.py +0 -0
  91. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_contact_request_contacts_inner_org.py +0 -0
  92. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_contact_request_contacts_inner_phones_inner.py +0 -0
  93. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_cta_url_request.py +0 -0
  94. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_file_request.py +0 -0
  95. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_flow_request1.py +0 -0
  96. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_flow_request1_header.py +0 -0
  97. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_flow_request_header.py +0 -0
  98. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_list_request.py +0 -0
  99. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_list_request_sections_inner.py +0 -0
  100. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_list_request_sections_inner_rows_inner.py +0 -0
  101. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_location_request1.py +0 -0
  102. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_location_request_request.py +0 -0
  103. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_message_request.py +0 -0
  104. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_order_details_request.py +0 -0
  105. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_order_details_request_language.py +0 -0
  106. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_order_details_request_order.py +0 -0
  107. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_order_details_request_order_items_inner.py +0 -0
  108. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_order_details_request_order_items_inner_amount.py +0 -0
  109. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_payment_request_request.py +0 -0
  110. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_reaction_request.py +0 -0
  111. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_sticker_request.py +0 -0
  112. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_template_request.py +0 -0
  113. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/send_template_request_language.py +0 -0
  114. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/set_whatsapp_business_encryption_request.py +0 -0
  115. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/success_response.py +0 -0
  116. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/models/update_me_request.py +0 -0
  117. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/py.typed +0 -0
  118. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk/rest.py +0 -0
  119. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk.egg-info/dependency_links.txt +0 -0
  120. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk.egg-info/requires.txt +0 -0
  121. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/one_msg_sdk.egg-info/top_level.txt +0 -0
  122. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/setup.cfg +0 -0
  123. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_add_template_request.py +0 -0
  124. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_block_user_request.py +0 -0
  125. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_catalog_api.py +0 -0
  126. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_channel_api.py +0 -0
  127. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_conversational_automation.py +0 -0
  128. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_conversational_automation_commands_inner.py +0 -0
  129. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_commerce200_response.py +0 -0
  130. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_commerce_request.py +0 -0
  131. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_commerce_request_params.py +0 -0
  132. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_groups200_response.py +0 -0
  133. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_read_message200_response.py +0 -0
  134. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_read_message401_response.py +0 -0
  135. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_create_read_message_request.py +0 -0
  136. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_delete_flows_flow_id200_response.py +0 -0
  137. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_delete_groups_group_id200_response.py +0 -0
  138. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_delete_media_legacy_request.py +0 -0
  139. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_error_response.py +0 -0
  140. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_flows_api.py +0 -0
  141. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_get_commerce200_response_inner.py +0 -0
  142. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_get_mm_lite_status200_response.py +0 -0
  143. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_get_webhook200_response.py +0 -0
  144. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_get_whatsapp_business_encryption200_response.py +0 -0
  145. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_groups_api.py +0 -0
  146. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_list_blocked_users200_response.py +0 -0
  147. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_list_flows200_response.py +0 -0
  148. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_list_messages200_response.py +0 -0
  149. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_list_templates200_response.py +0 -0
  150. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_message_sent_response.py +0 -0
  151. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_messaging_api.py +0 -0
  152. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_patch_flows_flow_id_assets200_response.py +0 -0
  153. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_profile_api.py +0 -0
  154. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_profile_info.py +0 -0
  155. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_retrieve_media200_response.py +0 -0
  156. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_address_message_request.py +0 -0
  157. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_button_request.py +0 -0
  158. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_button_request_sections_inner.py +0 -0
  159. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_button_request_sections_inner_reply.py +0 -0
  160. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_carousel_request1.py +0 -0
  161. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_contact_request.py +0 -0
  162. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_contact_request_contacts_inner.py +0 -0
  163. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_contact_request_contacts_inner_name.py +0 -0
  164. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_contact_request_contacts_inner_org.py +0 -0
  165. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_contact_request_contacts_inner_phones_inner.py +0 -0
  166. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_cta_url_request.py +0 -0
  167. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_file_request.py +0 -0
  168. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_flow_request1.py +0 -0
  169. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_flow_request1_header.py +0 -0
  170. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_flow_request_header.py +0 -0
  171. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_list_request.py +0 -0
  172. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_list_request_sections_inner.py +0 -0
  173. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_list_request_sections_inner_rows_inner.py +0 -0
  174. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_location_request1.py +0 -0
  175. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_location_request_request.py +0 -0
  176. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_message_request.py +0 -0
  177. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_order_details_request.py +0 -0
  178. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_order_details_request_language.py +0 -0
  179. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_order_details_request_order.py +0 -0
  180. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_order_details_request_order_items_inner.py +0 -0
  181. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_order_details_request_order_items_inner_amount.py +0 -0
  182. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_payment_request_request.py +0 -0
  183. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_reaction_request.py +0 -0
  184. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_sticker_request.py +0 -0
  185. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_template_request.py +0 -0
  186. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_send_template_request_language.py +0 -0
  187. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_set_whatsapp_business_encryption_request.py +0 -0
  188. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_success_response.py +0 -0
  189. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_templates_api.py +0 -0
  190. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_update_me_request.py +0 -0
  191. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_users_api.py +0 -0
  192. {one_msg_sdk-1.0.0 → one_msg_sdk-1.0.2}/test/test_webhooks_api.py +0 -0
@@ -0,0 +1,892 @@
1
+ Metadata-Version: 2.4
2
+ Name: one_msg_sdk
3
+ Version: 1.0.2
4
+ Summary: Official Python SDK for the 1msg WhatsApp Business API
5
+ Home-page: https://github.com/1msg/1msg-sdk
6
+ Author: 1MSG API Support
7
+ Author-email: 1MSG API Support <support@1msg.io>
8
+ Project-URL: Repository, https://github.com/1msg/1msg-sdk
9
+ Keywords: OpenAPI,OpenAPI-Generator,1MSG WhatsApp Business API (Public)
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: urllib3<3.0.0,>=2.1.0
14
+ Requires-Dist: python-dateutil>=2.8.2
15
+ Requires-Dist: pydantic>=2.11
16
+ Requires-Dist: typing-extensions>=4.7.1
17
+ Dynamic: author
18
+ Dynamic: home-page
19
+ Dynamic: license-file
20
+
21
+ # 1MSG Python SDK
22
+
23
+ Official Python SDK for the **1MSG WhatsApp Business API**.
24
+
25
+ This document is generated from the public OpenAPI contract. It covers install,
26
+ auth, quick start, and every public operation available in the client.
27
+
28
+ | | |
29
+ |---|---|
30
+ | **PyPI** | [`one-msg-sdk`](https://pypi.org/project/one-msg-sdk/) |
31
+ | **Source** | [github.com/1msg/1msg-sdk/python](https://github.com/1msg/1msg-sdk/tree/main/python) |
32
+ | **API docs** | [docs.1msg.io](https://docs.1msg.io/) |
33
+ | **Platform** | [platform.1msg.io](https://platform.1msg.io/) |
34
+ | **Support** | support@1msg.io |
35
+ | **OpenAPI version** | 1.0.0 |
36
+ | **Operations** | 60 |
37
+ | **AI agent guide** | [AGENTS.md](./AGENTS.md) |
38
+
39
+ ---
40
+
41
+ ## Install
42
+
43
+ ```bash
44
+ pip install one-msg-sdk==1.0.2
45
+ ```
46
+
47
+ ## Requirements
48
+
49
+ | Variable | Where to get it | Example |
50
+ |----------|-----------------|---------|
51
+ | `baseUrl` | Platform → channel → API host | `https://api.1msg.io` |
52
+ | `instanceId` | Platform → channel id | `ODI371267300` |
53
+ | `token` | Platform → channel → API token | JWT or API key |
54
+
55
+ Use environment variables (`MSG_API_TOKEN`, `MSG_INSTANCE_ID`). Never commit tokens.
56
+
57
+ ## Quick start
58
+
59
+ ```python
60
+ import os
61
+
62
+ from one_msg_sdk import ApiClient, Configuration
63
+ from one_msg_sdk.api.messaging_api import MessagingApi
64
+
65
+ configuration = Configuration(
66
+ host=f"https://api.1msg.io/{os.environ['MSG_INSTANCE_ID']}"
67
+ )
68
+
69
+ with ApiClient(configuration) as api_client:
70
+ messaging = MessagingApi(api_client)
71
+ response = messaging.send_message(
72
+ token=os.environ["MSG_API_TOKEN"],
73
+ body="Hello from 1MSG SDK",
74
+ chat_id="12020721369@c.us",
75
+ )
76
+ print(response)
77
+ ```
78
+
79
+ ## Authentication
80
+
81
+ All requests use query-token auth:
82
+
83
+ ```text
84
+ https://{baseUrl}/{instanceId}/{path}?token={token}
85
+ ```
86
+
87
+ Pass the channel token as the first argument to generated API methods.
88
+
89
+ ## Recipient addressing
90
+
91
+ - `chatId`: `12020721369@c.us` (1:1) or `...@g.us` (group)
92
+ - `phone`: country code + number, no `+`
93
+ - Exactly one of `chatId` | `phone` per request
94
+
95
+ ## 24-hour messaging window
96
+
97
+ Free-form `sendMessage` only works inside the 24h customer-care window.
98
+ Outside that window use `sendTemplate`.
99
+
100
+ ## Client map
101
+
102
+ ```python
103
+ MessagingApi # send/list messages, media, interactive
104
+ ProfileApi # getMe
105
+ GroupsApi # create/list/manage groups
106
+ FlowsApi # WhatsApp Flows lifecycle
107
+ TemplatesApi # listTemplates
108
+ ChannelApi # channel helpers
109
+ CallingApi # calling
110
+ WebhooksApi # webhooks
111
+ ```
112
+
113
+ ## Package notes
114
+
115
+ PyPI package is `one-msg-sdk`. Import package is `one_msg_sdk`.
116
+
117
+ ## API reference
118
+
119
+ API groups: calling, catalog, channel, flows, groups, messaging, profile, templates, users, webhooks.
120
+
121
+ ### calling
122
+
123
+ #### `getCallingSettings`
124
+
125
+ Get calling settings
126
+
127
+ Return WhatsApp Calling API settings for this channel (beta). Proxies upstream `GET /calling/settings`. **Prerequisites** - Number must be eligible for Meta Calling (Cloud API; not COEX) - Trial / `subscriptionBlocked` channels receive **403** plain text - You need your own WebRTC or SIP stack; 1msg is a **signaling proxy** only and does **not** store call history or recordings See the **Calling** tag overview for inbound/outbound flows and webhooks.
128
+
129
+ ```yaml
130
+ http: GET /callingSettings
131
+ operationId: getCallingSettings
132
+ clientGroup: calling
133
+ responses: 200, 401, 500
134
+ ```
135
+
136
+ #### `initiateCall`
137
+
138
+ Call action (connect / pre_accept / accept / reject / terminate)
139
+
140
+ 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": "..." } }`.
141
+
142
+ ```yaml
143
+ http: POST /initiateCall
144
+ operationId: initiateCall
145
+ clientGroup: calling
146
+ responses: 200, 401, 500
147
+ ```
148
+
149
+ #### `updateCallingSettings`
150
+
151
+ Update calling settings
152
+
153
+ Enable, disable, or update WhatsApp Calling settings (beta). Proxies upstream `POST /calling/settings`. Body is forwarded as-is (1msg does not validate fields). **Common fields under `calling`** - `status` (`ENABLED` | `DISABLED`) — required to turn calling on/off - `call_icon_visibility` (`DEFAULT` | `DISABLE_ALL`) — optional - `callback_permission_status` (`ENABLED` | `DISABLED`) — optional; when enabled, inbound user calls grant callback permission - `call_hours` — optional hours / timezone object - `sip` — optional SIP trunk; when SIP is ENABLED, Graph call actions and calling webhooks are not used - `srtp_key_exchange_protocol` (`DTLS` | `SDES`) — SDES only with SIP - `video.status` — optional Meta may accept only one feature group per request — prefer focused updates (e.g. enable status first, then SIP). Trial / `subscriptionBlocked` → **403** plain text.
154
+
155
+ ```yaml
156
+ http: POST /callingSettings
157
+ operationId: updateCallingSettings
158
+ clientGroup: calling
159
+ responses: 200, 401, 500
160
+ ```
161
+
162
+ ### catalog
163
+
164
+ #### `createCommerce`
165
+
166
+ Set Commerce Settings
167
+
168
+ Update catalog/cart commerce settings via the `params` object. - `params.is_catalog_visible` — show catalog storefront icon (`true`) or hide it (`false`). - `params.is_cart_enabled` — enable cart (`true`) or disable it (`false`). Blocked when the channel subscription limit is exceeded. Requires a commerce-capable channel (Cloud Functions `/commerceWAV2`).
169
+
170
+ ```yaml
171
+ http: POST /commerce
172
+ operationId: createCommerce
173
+ clientGroup: catalog
174
+ responses: 200, 401, 500
175
+ ```
176
+
177
+ #### `getCommerce`
178
+
179
+ Get Commerce Settings
180
+
181
+ 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`).
182
+
183
+ ```yaml
184
+ http: GET /commerce
185
+ operationId: getCommerce
186
+ clientGroup: catalog
187
+ responses: 200, 401, 500
188
+ ```
189
+
190
+ ### channel
191
+
192
+ #### `getConversationalAutomation`
193
+
194
+ Get conversational automation settings
195
+
196
+ Get WhatsApp conversational components for the channel (welcome message, ice-breaker prompts, and slash commands). Proxies Meta/360dialog `GET /conversational_automation`. When `enable_welcome_message` is true and a user opens chat for the first time, Meta delivers a webhook message with `type: request_welcome`. The inbound formatter exposes that as `type: "request_welcome"` and `meta.request_welcome: true` so your webhook can send a custom welcome reply.
197
+
198
+ ```yaml
199
+ http: GET /conversationalAutomation
200
+ operationId: getConversationalAutomation
201
+ clientGroup: channel
202
+ responses: 200, 401, 500
203
+ ```
204
+
205
+ #### `getStatus`
206
+
207
+ Get channel status
208
+
209
+ Returns WhatsApp Business API client connection status.
210
+
211
+ ```yaml
212
+ http: GET /status
213
+ operationId: getStatus
214
+ clientGroup: channel
215
+ responses: 200, 401, 500
216
+ ```
217
+
218
+ #### `setConversationalAutomation`
219
+
220
+ Set conversational automation settings
221
+
222
+ Update WhatsApp conversational components. Allowed body fields (others are ignored): - `enable_welcome_message` (boolean) - `prompts` (string[], max 4, each ≤ 80 chars) - `commands` (`{ command_name, command_description }[]`) Proxies Meta/360dialog `POST /conversational_automation`.
223
+
224
+ ```yaml
225
+ http: POST /conversationalAutomation
226
+ operationId: setConversationalAutomation
227
+ clientGroup: channel
228
+ responses: 200, 401, 500
229
+ ```
230
+
231
+ ### flows
232
+
233
+ #### `createFlows`
234
+
235
+ Create Flow
236
+
237
+ ```yaml
238
+ http: POST /flows
239
+ operationId: createFlows
240
+ clientGroup: flows
241
+ responses: 200
242
+ ```
243
+
244
+ #### `createFlowsFlowIdDeprecate`
245
+
246
+ Deprecate Flow
247
+
248
+ ```yaml
249
+ http: POST /flows/{flowId}/deprecate
250
+ operationId: createFlowsFlowIdDeprecate
251
+ clientGroup: flows
252
+ responses: 200
253
+ ```
254
+
255
+ #### `createFlowsFlowIdPublish`
256
+
257
+ Publish Flow
258
+
259
+ ```yaml
260
+ http: POST /flows/{flowId}/publish
261
+ operationId: createFlowsFlowIdPublish
262
+ clientGroup: flows
263
+ responses: 200
264
+ ```
265
+
266
+ #### `deleteFlowsFlowId`
267
+
268
+ Delete Flow
269
+
270
+ ```yaml
271
+ http: DELETE /flows/{flowId}
272
+ operationId: deleteFlowsFlowId
273
+ clientGroup: flows
274
+ responses: 200
275
+ ```
276
+
277
+ #### `getFlowsFlowId`
278
+
279
+ Get Flow Details
280
+
281
+ ```yaml
282
+ http: GET /flows/{flowId}
283
+ operationId: getFlowsFlowId
284
+ clientGroup: flows
285
+ responses: 200
286
+ ```
287
+
288
+ #### `getFlowsFlowIdPreview`
289
+
290
+ Preview Flow
291
+
292
+ ```yaml
293
+ http: GET /flows/{flowId}/preview
294
+ operationId: getFlowsFlowIdPreview
295
+ clientGroup: flows
296
+ responses: 200
297
+ ```
298
+
299
+ #### `getWhatsappBusinessEncryption`
300
+
301
+ Get business encryption public key
302
+
303
+ Retrieve the WhatsApp business public key and signature status for this channel's phone number. Required before publishing or sending Flows that use data encryption.
304
+
305
+ ```yaml
306
+ http: GET /whatsapp_business_encryption
307
+ operationId: getWhatsappBusinessEncryption
308
+ clientGroup: flows
309
+ responses: 200, 401, 500
310
+ ```
311
+
312
+ #### `listFlows`
313
+
314
+ List Flows
315
+
316
+ ```yaml
317
+ http: GET /flows
318
+ operationId: listFlows
319
+ clientGroup: flows
320
+ responses: 200
321
+ ```
322
+
323
+ #### `patchFlowsFlowIdAssets`
324
+
325
+ Update Flow Structure
326
+
327
+ ```yaml
328
+ http: PATCH /flows/{flowId}/assets
329
+ operationId: patchFlowsFlowIdAssets
330
+ clientGroup: flows
331
+ responses: 200
332
+ ```
333
+
334
+ #### `patchFlowsFlowIdMetadata`
335
+
336
+ Update Flow Metadata
337
+
338
+ ```yaml
339
+ http: PATCH /flows/{flowId}/metadata
340
+ operationId: patchFlowsFlowIdMetadata
341
+ clientGroup: flows
342
+ responses: 200
343
+ ```
344
+
345
+ #### `setWhatsappBusinessEncryption`
346
+
347
+ Set business encryption public key
348
+
349
+ Upload and sign a 2048-bit RSA business public key (PEM) for this channel's phone number. Meta requires a signed key before Flow publish/send. Only one active key per number; a new upload replaces the previous key.
350
+
351
+ ```yaml
352
+ http: POST /whatsapp_business_encryption
353
+ operationId: setWhatsappBusinessEncryption
354
+ clientGroup: flows
355
+ responses: 200, 400, 401, 500
356
+ ```
357
+
358
+ ### groups
359
+
360
+ #### `createGroups`
361
+
362
+ Create Group
363
+
364
+ ```yaml
365
+ http: POST /groups
366
+ operationId: createGroups
367
+ clientGroup: groups
368
+ responses: 200
369
+ ```
370
+
371
+ #### `createGroupsGroupId`
372
+
373
+ Update Group Info
374
+
375
+ ```yaml
376
+ http: POST /groups/{groupId}
377
+ operationId: createGroupsGroupId
378
+ clientGroup: groups
379
+ responses: 200
380
+ ```
381
+
382
+ #### `createGroupsGroupIdInvitelink`
383
+
384
+ Reset Invite Link
385
+
386
+ ```yaml
387
+ http: POST /groups/{groupId}/inviteLink
388
+ operationId: createGroupsGroupIdInvitelink
389
+ clientGroup: groups
390
+ responses: 200
391
+ ```
392
+
393
+ #### `deleteGroupsGroupId`
394
+
395
+ Delete Group
396
+
397
+ ```yaml
398
+ http: DELETE /groups/{groupId}
399
+ operationId: deleteGroupsGroupId
400
+ clientGroup: groups
401
+ responses: 200
402
+ ```
403
+
404
+ #### `getGroupsGroupId`
405
+
406
+ Get Group Info
407
+
408
+ ```yaml
409
+ http: GET /groups/{groupId}
410
+ operationId: getGroupsGroupId
411
+ clientGroup: groups
412
+ responses: 200
413
+ ```
414
+
415
+ #### `getGroupsGroupIdInvitelink`
416
+
417
+ Get Invite Link
418
+
419
+ ```yaml
420
+ http: GET /groups/{groupId}/inviteLink
421
+ operationId: getGroupsGroupIdInvitelink
422
+ clientGroup: groups
423
+ responses: 200
424
+ ```
425
+
426
+ #### `listGroups`
427
+
428
+ Get Groups List
429
+
430
+ ```yaml
431
+ http: GET /groups
432
+ operationId: listGroups
433
+ clientGroup: groups
434
+ responses: 200
435
+ ```
436
+
437
+ ### messaging
438
+
439
+ #### `createReadMessage`
440
+
441
+ Mark message as read
442
+
443
+ ```yaml
444
+ http: POST /readMessage
445
+ operationId: createReadMessage
446
+ clientGroup: messaging
447
+ responses: 200, 401
448
+ ```
449
+
450
+ #### `createUploadMedia`
451
+
452
+ Upload media
453
+
454
+ ```yaml
455
+ http: POST /uploadMedia
456
+ operationId: createUploadMedia
457
+ clientGroup: messaging
458
+ responses: 200
459
+ ```
460
+
461
+ #### `deleteMedia`
462
+
463
+ Delete media from WABA storage
464
+
465
+ Delete previously uploaded media by numeric `mediaId` (from `/uploadMedia`). This is the canonical deletion endpoint and uses the REST `DELETE` verb on the media resource path. The older `POST /deleteMedia` is a deprecated alias.
466
+
467
+ ```yaml
468
+ http: DELETE /media/{mediaId}
469
+ operationId: deleteMedia
470
+ clientGroup: messaging
471
+ responses: 200, 400, 401, 500
472
+ ```
473
+
474
+ #### `deleteMediaLegacy`
475
+
476
+ Delete media from WABA storage (deprecated alias)
477
+
478
+ **Deprecated.** Use `DELETE /media/{mediaId}` instead. This POST alias is kept for backward compatibility with earlier integrations. New integrations should call `DELETE /media/{mediaId}`: 1msg follows REST conventions for resource deletion going forward (delete a resource with the `DELETE` verb on its resource path).
479
+
480
+ ```yaml
481
+ http: POST /deleteMedia
482
+ operationId: deleteMediaLegacy
483
+ clientGroup: messaging
484
+ responses: 200, 400, 401, 500
485
+ ```
486
+
487
+ #### `getMmLiteStatus`
488
+
489
+ Get MM Lite availability and status
490
+
491
+ ```yaml
492
+ http: GET /mmLiteStatus
493
+ operationId: getMmLiteStatus
494
+ clientGroup: messaging
495
+ responses: 200, 401, 500
496
+ ```
497
+
498
+ #### `listMessages`
499
+
500
+ Get messages list
501
+
502
+ ```yaml
503
+ http: GET /messages
504
+ operationId: listMessages
505
+ clientGroup: messaging
506
+ responses: 200
507
+ ```
508
+
509
+ #### `retrieveMedia`
510
+
511
+ Retrieve uploaded media metadata
512
+
513
+ Get WABA media URL and metadata by mediaId (from uploadMedia). The returned `url` is temporary and typically expires within ~5 minutes.
514
+
515
+ ```yaml
516
+ http: GET /retrieveMedia
517
+ operationId: retrieveMedia
518
+ clientGroup: messaging
519
+ responses: 200, 400, 401, 500
520
+ ```
521
+
522
+ #### `sendAddressMessage`
523
+
524
+ Send address request message
525
+
526
+ Request shipping address from the user (WhatsApp interactive `address_message`). **India and Singapore only.** Requires: - Business WhatsApp number registered in that country - Recipient phone matching the country (`+91` ↔ `IN`, `+65` ↔ `SG`) Pass `country: "IN"` or `country: "SG"`. Eligibility is validated upstream; mismatches (e.g. Singapore phone with `country: "IN"`) return errors such as `Unsupported Interactive Message type` (HTTP 200 with `sent: false`). Optional action parameters: `values`, `saved_addresses`, `validation_errors`.
527
+
528
+ ```yaml
529
+ http: POST /sendAddressMessage
530
+ operationId: sendAddressMessage
531
+ clientGroup: messaging
532
+ responses: 200, 400, 401, 429, 500
533
+ ```
534
+
535
+ #### `sendButton`
536
+
537
+ Send Reply Buttons Message
538
+
539
+ ```yaml
540
+ http: POST /sendButton
541
+ operationId: sendButton
542
+ clientGroup: messaging
543
+ responses: 200, 400, 401, 429, 500
544
+ ```
545
+
546
+ #### `sendCarousel`
547
+
548
+ Send Carousel
549
+
550
+ You can send product cards via Carousel in two ways: Template messages: do not require a 24-hour customer service window between you and the recipient. Use sendTemplate. Free-form messages: can be sent only when a customer service window is open between you and the recipient. Use sendCarousel. The message structure in /sendCarousel is largely similar to sending a template. However, in this case you must explicitly specify all elements that are created in advance when working with templates. This is because the message is sent without using a template. In /sendCarousel, for sending a Catalog Carousel there can be either 1 URL button or one or more quick reply buttons.
551
+
552
+ ```yaml
553
+ http: POST /sendCarousel
554
+ operationId: sendCarousel
555
+ clientGroup: messaging
556
+ responses: 200, 400, 401, 429, 500
557
+ ```
558
+
559
+ #### `sendContact`
560
+
561
+ Send a Contact
562
+
563
+ ```yaml
564
+ http: POST /sendContact
565
+ operationId: sendContact
566
+ clientGroup: messaging
567
+ responses: 200, 400, 401, 429, 500
568
+ ```
569
+
570
+ #### `sendCtaUrl`
571
+
572
+ Send CTA URL interactive message
573
+
574
+ Send an interactive message with a single call-to-action URL button.
575
+
576
+ ```yaml
577
+ http: POST /sendCtaUrl
578
+ operationId: sendCtaUrl
579
+ clientGroup: messaging
580
+ responses: 200, 400, 401, 429, 500
581
+ ```
582
+
583
+ #### `sendFile`
584
+
585
+ Send a File
586
+
587
+ Send a file to an existing chat. (Only if the dialogue has an Open Session). Only one of two parameters is needed to determine the destination - chatId or phone.
588
+
589
+ ```yaml
590
+ http: POST /sendFile
591
+ operationId: sendFile
592
+ clientGroup: messaging
593
+ responses: 200, 400, 401, 429, 500
594
+ ```
595
+
596
+ #### `sendFlow`
597
+
598
+ Send WhatsApp Flow Message
599
+
600
+ Send Interactive WhatsApp Flow message to an existing chat. (Only if the dialogue has an Open Session). Only one of two parameters is needed to determine the destination - chatId or phone. Use this method to send a published WhatsApp Flow as a service (interactive) message. If the 24-hour window is closed, send a template with a FLOW button via /sendTemplate.
601
+
602
+ ```yaml
603
+ http: POST /sendFlow
604
+ operationId: sendFlow
605
+ clientGroup: messaging
606
+ responses: 200, 400, 401, 429, 500
607
+ ```
608
+
609
+ #### `sendList`
610
+
611
+ Send List Message
612
+
613
+ ```yaml
614
+ http: POST /sendList
615
+ operationId: sendList
616
+ clientGroup: messaging
617
+ responses: 200, 400, 401, 429, 500
618
+ ```
619
+
620
+ #### `sendLocation`
621
+
622
+ Send a Location
623
+
624
+ Send a location to an existing chat. (Only if the dialogue has an Open Session). Only one of two parameters is needed to determine the destination - chatId or phone.
625
+
626
+ ```yaml
627
+ http: POST /sendLocation
628
+ operationId: sendLocation
629
+ clientGroup: messaging
630
+ responses: 200, 400, 401, 429, 500
631
+ ```
632
+
633
+ #### `sendLocationRequest`
634
+
635
+ Send Location Request Message
636
+
637
+ ```yaml
638
+ http: POST /sendLocationRequest
639
+ operationId: sendLocationRequest
640
+ clientGroup: messaging
641
+ responses: 200, 400, 401, 429, 500
642
+ ```
643
+
644
+ #### `sendMessage`
645
+
646
+ Send a Message
647
+
648
+ Send a message to an existing chat. (Only if the dialogue has an Open Session). The message will be added to the queue for sending and delivered even if the phone is disconnected from the Internet or authorization is not passed. Only one of two parameters is needed to determine the destination - chatId or phone.
649
+
650
+ ```yaml
651
+ http: POST /sendMessage
652
+ operationId: sendMessage
653
+ clientGroup: messaging
654
+ responses: 200, 400, 401, 429, 500
655
+ ```
656
+
657
+ #### `sendOrderDetails`
658
+
659
+ Send order details (India payments template)
660
+
661
+ Send a WhatsApp **order details** payment / invoice message using a pre-approved **Utility** template that has an `ORDER_DETAILS` button. **India only** (WhatsApp Payments India). Requires: - India WhatsApp Business number - Commerce enabled on the channel (`GET`/`POST /commerce`) - Approved template with an `ORDER_DETAILS` button Use this method when you need structured fields (`order`, `referenceId`, `currency`, `paymentSettings`). The API appends a template button `sub_type: order_details` and sends via the same path as `POST /sendTemplate`. Works **outside the 24-hour session window** (template message). You can also send the same payload yourself with `POST /sendTemplate` by including a button component in `params`: ```json { "type": "button", "sub_type": "order_details", "index": 0, "parameters": [{ "type": "action", "action": { "order_details": { "reference_id": "order-123", "currency": "INR", "order": { "status": "pending", "items": [], "subtotal": { "offset": 100, "value": 50000 } } } } }] } ```
662
+
663
+ ```yaml
664
+ http: POST /sendOrderDetails
665
+ operationId: sendOrderDetails
666
+ clientGroup: messaging
667
+ responses: 200, 400, 401, 500
668
+ ```
669
+
670
+ #### `sendPaymentRequest`
671
+
672
+ Send payment request (regional)
673
+
674
+ Send a regional payment request interactive message (beta scaffold). `region` must be IN, SG, or BR. Payload shape follows Meta regional payments docs; verify on stage before production use. Full regional builders are not implemented yet.
675
+
676
+ ```yaml
677
+ http: POST /sendPaymentRequest
678
+ operationId: sendPaymentRequest
679
+ clientGroup: messaging
680
+ responses: 200, 400, 401, 500
681
+ ```
682
+
683
+ #### `sendProduct`
684
+
685
+ Send a Product
686
+
687
+ ```yaml
688
+ http: POST /sendProduct
689
+ operationId: sendProduct
690
+ clientGroup: messaging
691
+ responses: 200, 400, 401, 429, 500
692
+ ```
693
+
694
+ #### `sendReaction`
695
+
696
+ Send Reaction
697
+
698
+ ```yaml
699
+ http: POST /sendReaction
700
+ operationId: sendReaction
701
+ clientGroup: messaging
702
+ responses: 200, 400, 401, 429, 500
703
+ ```
704
+
705
+ #### `sendSticker`
706
+
707
+ Send sticker message
708
+
709
+ Send a WhatsApp sticker by mediaId or link URL.
710
+
711
+ ```yaml
712
+ http: POST /sendSticker
713
+ operationId: sendSticker
714
+ clientGroup: messaging
715
+ responses: 200, 400, 401, 429, 500
716
+ ```
717
+
718
+ ### profile
719
+
720
+ #### `getMe`
721
+
722
+ Get Profile Info
723
+
724
+ Get WhatsApp Business Account profile information
725
+
726
+ ```yaml
727
+ http: GET /me
728
+ operationId: getMe
729
+ clientGroup: profile
730
+ responses: 200, 401, 500
731
+ ```
732
+
733
+ #### `updateMe`
734
+
735
+ Update profile info
736
+
737
+ Update WhatsApp Business Account profile fields. At least one of about, description, email, photo, address, vertical, websites is required. Blocked when the channel subscription limit is exceeded.
738
+
739
+ ```yaml
740
+ http: POST /me
741
+ operationId: updateMe
742
+ clientGroup: profile
743
+ responses: 200, 401, 422, 500
744
+ ```
745
+
746
+ ### templates
747
+
748
+ #### `addTemplate`
749
+
750
+ Create message template
751
+
752
+ ```yaml
753
+ http: POST /addTemplate
754
+ operationId: addTemplate
755
+ clientGroup: templates
756
+ responses: 200, 401, 500
757
+ ```
758
+
759
+ #### `listTemplates`
760
+
761
+ Get templates list
762
+
763
+ ```yaml
764
+ http: GET /templates
765
+ operationId: listTemplates
766
+ clientGroup: templates
767
+ responses: 200
768
+ ```
769
+
770
+ #### `removeTemplate`
771
+
772
+ Remove message template
773
+
774
+ ```yaml
775
+ http: POST /removeTemplate
776
+ operationId: removeTemplate
777
+ clientGroup: templates
778
+ responses: 200, 401, 500
779
+ ```
780
+
781
+ #### `sendTemplate`
782
+
783
+ Send Template Message
784
+
785
+ Send a WhatsApp template message (works outside the 24-hour session window). Supported `params` button `sub_type` values include: `url`, `quick_reply`, `copy_code` / `coupon_code`, `catalog`, `flow`, `limited_time_offer`, and **`order_details`** (WhatsApp Payments **India only** — requires an approved Utility template with an ORDER_DETAILS button). For India order/invoice payments outside 24h, include a button component: ```json { "type": "button", "sub_type": "order_details", "index": 0, "parameters": [{ "type": "action", "action": { "order_details": { "reference_id": "...", "currency": "INR", "order": {} } } }] } ``` Convenience wrapper with structured fields: `POST /sendOrderDetails`.
786
+
787
+ ```yaml
788
+ http: POST /sendTemplate
789
+ operationId: sendTemplate
790
+ clientGroup: templates
791
+ responses: 200
792
+ ```
793
+
794
+ ### users
795
+
796
+ #### `blockUser`
797
+
798
+ Block WhatsApp user
799
+
800
+ ```yaml
801
+ http: POST /blockUser
802
+ operationId: blockUser
803
+ clientGroup: users
804
+ responses: 200, 400, 401, 500
805
+ ```
806
+
807
+ #### `listBlockedUsers`
808
+
809
+ List blocked WhatsApp users
810
+
811
+ Returns users currently blocked on this WhatsApp channel (WABA `GET /block_users`). Same channel token auth as `blockUser` / `unblockUser`.
812
+
813
+ ```yaml
814
+ http: GET /blockedUsers
815
+ operationId: listBlockedUsers
816
+ clientGroup: users
817
+ responses: 200, 401, 500
818
+ ```
819
+
820
+ #### `unblockUser`
821
+
822
+ Unblock WhatsApp user
823
+
824
+ ```yaml
825
+ http: POST /unblockUser
826
+ operationId: unblockUser
827
+ clientGroup: users
828
+ responses: 200, 400, 401, 500
829
+ ```
830
+
831
+ ### webhooks
832
+
833
+ #### `getWebhook`
834
+
835
+ Get webhook URL
836
+
837
+ Returns the configured client webhook URL for this channel.
838
+
839
+ ```yaml
840
+ http: GET /webhook
841
+ operationId: getWebhook
842
+ clientGroup: webhooks
843
+ responses: 200, 401, 500
844
+ ```
845
+
846
+ #### `setWebhook`
847
+
848
+ Set webhook URL
849
+
850
+ Configure the client webhook URL for inbound events. WhatsApp **Calling** events (`field=calls`) are forwarded as passthrough payloads with `type: "calls"` and `instanceId` (connect / status / terminate). Call permission replies arrive on the normal messages path (`call_permission_reply`). Details: **Calling** tag.
851
+
852
+ ```yaml
853
+ http: POST /webhook
854
+ operationId: setWebhook
855
+ clientGroup: webhooks
856
+ responses: 200, 401, 500
857
+ ```
858
+
859
+ ## Cookbook
860
+
861
+ 1. Install the package from the registry above.
862
+ 2. Set `MSG_API_TOKEN` and `MSG_INSTANCE_ID`.
863
+ 3. Create the messaging client with `{baseUrl}/{instanceId}`.
864
+ 4. Call `sendMessage` inside the 24h window, or `sendTemplate` outside it.
865
+ 5. Use group/profile/flows/templates APIs for advanced workflows.
866
+
867
+ ## FAQ
868
+
869
+ **Where is the package?** See the registry link in the header table.
870
+
871
+ **TypeScript has createClient — does this SDK?** Generated OpenAPI clients use
872
+ per-API classes (`MessagingApi`, `ProfileApi`, …) instead of a facade.
873
+
874
+ **Can I use this in a browser?** No — server-side only. Never expose tokens.
875
+
876
+ ## Error handling
877
+
878
+ | Code | Meaning |
879
+ |------|---------|
880
+ | 400 | Invalid parameters or body |
881
+ | 401 | Invalid or missing token |
882
+ | 429 | Rate limit exceeded |
883
+ | 500 | Internal server error |
884
+
885
+ ## Regeneration and versioning
886
+
887
+ Docs regenerate with `node gen/generate-sdk-docs-langs.js`. Registry versions are immutable.
888
+
889
+ ## License
890
+
891
+ MIT © 1MSG
892
+