sentdm 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +55 -1
- data/lib/sentdm/internal/contacts_page.rb +115 -0
- data/lib/sentdm/internal/conversations_page.rb +115 -0
- data/lib/sentdm/internal/templates_page.rb +115 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/webhook_events_page.rb +115 -0
- data/lib/sentdm/internal/webhooks_page.rb +115 -0
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +42 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brand_business_info.rb +114 -0
- data/lib/sentdm/models/brand_compliance_info.rb +59 -0
- data/lib/sentdm/models/brand_contact_info.rb +58 -0
- data/lib/sentdm/models/brands_brand_data.rb +34 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_params.rb +13 -13
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +140 -0
- data/lib/sentdm/models/conversation_list_messages_params.rb +5 -5
- data/lib/sentdm/models/conversation_list_params.rb +5 -5
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -242
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +84 -0
- data/lib/sentdm/models/payment_details.rb +40 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -345
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +650 -0
- data/lib/sentdm/models/profile_list_response.rb +12 -815
- data/lib/sentdm/models/profile_settings.rb +85 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -345
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/template.rb +103 -0
- data/lib/sentdm/models/template_list_params.rb +17 -17
- data/lib/sentdm/models/user_list_response.rb +12 -249
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +94 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
- data/lib/sentdm/models/webhook_list_events_params.rb +5 -5
- data/lib/sentdm/models/webhook_list_events_response.rb +87 -295
- data/lib/sentdm/models/webhook_list_params.rb +11 -11
- data/lib/sentdm/models/webhook_response.rb +121 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +52 -0
- data/lib/sentdm/resources/contacts.rb +16 -15
- data/lib/sentdm/resources/conversations.rb +10 -8
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +16 -15
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +20 -18
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +37 -25
- data/rbi/sentdm/internal/contacts_page.rbi +71 -0
- data/rbi/sentdm/internal/conversations_page.rbi +71 -0
- data/rbi/sentdm/internal/templates_page.rbi +71 -0
- data/rbi/sentdm/internal/webhook_events_page.rbi +71 -0
- data/rbi/sentdm/internal/webhooks_page.rbi +71 -0
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brand_business_info.rbi +162 -0
- data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
- data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_params.rbi +19 -13
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_list_messages_params.rbi +12 -6
- data/rbi/sentdm/models/conversation_list_params.rbi +16 -5
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +56 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -546
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +918 -0
- data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
- data/rbi/sentdm/models/profile_settings.rbi +102 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -546
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/template.rbi +139 -0
- data/rbi/sentdm/models/template_list_params.rbi +22 -16
- data/rbi/sentdm/models/user_list_response.rbi +16 -444
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +131 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
- data/rbi/sentdm/models/webhook_list_events_params.rbi +12 -6
- data/rbi/sentdm/models/webhook_list_events_response.rbi +113 -564
- data/rbi/sentdm/models/webhook_list_params.rbi +16 -10
- data/rbi/sentdm/models/webhook_response.rbi +153 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +54 -0
- data/rbi/sentdm/resources/contacts.rbi +10 -10
- data/rbi/sentdm/resources/conversations.rbi +14 -6
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +10 -10
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +16 -12
- data/sig/sentdm/internal/contacts_page.rbs +41 -0
- data/sig/sentdm/internal/conversations_page.rbs +41 -0
- data/sig/sentdm/internal/templates_page.rbs +44 -0
- data/sig/sentdm/internal/webhook_events_page.rbs +41 -0
- data/sig/sentdm/internal/webhooks_page.rbs +41 -0
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brand_business_info.rbs +89 -0
- data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
- data/sig/sentdm/models/brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_params.rbs +11 -7
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_list_messages_params.rbs +8 -4
- data/sig/sentdm/models/conversation_list_params.rbs +8 -4
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -263
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +461 -0
- data/sig/sentdm/models/profile_list_response.rbs +20 -606
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -263
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/template.rbs +84 -0
- data/sig/sentdm/models/template_list_params.rbs +14 -10
- data/sig/sentdm/models/user_list_response.rbs +20 -224
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +79 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
- data/sig/sentdm/models/webhook_list_events_params.rbs +8 -4
- data/sig/sentdm/models/webhook_list_events_response.rbs +63 -255
- data/sig/sentdm/models/webhook_list_params.rbs +11 -7
- data/sig/sentdm/models/webhook_response.rbs +110 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +52 -0
- data/sig/sentdm/resources/contacts.rbs +7 -7
- data/sig/sentdm/resources/conversations.rbs +6 -6
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +6 -6
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +10 -10
- metadata +113 -77
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- data/lib/sentdm/models/contact_list_response.rb +0 -348
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
- data/lib/sentdm/models/contact_update_response.rb +0 -249
- data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
- data/lib/sentdm/models/conversation_list_response.rb +0 -433
- data/lib/sentdm/models/profile_create_response.rb +0 -760
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
- data/lib/sentdm/models/profile_update_response.rb +0 -760
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
- data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
- data/lib/sentdm/models/template_create_response.rb +0 -209
- data/lib/sentdm/models/template_list_response.rb +0 -311
- data/lib/sentdm/models/template_retrieve_response.rb +0 -209
- data/lib/sentdm/models/template_update_response.rb +0 -209
- data/lib/sentdm/models/user_invite_response.rb +0 -201
- data/lib/sentdm/models/user_retrieve_response.rb +0 -201
- data/lib/sentdm/models/user_update_role_response.rb +0 -201
- data/lib/sentdm/models/webhook_create_response.rb +0 -229
- data/lib/sentdm/models/webhook_list_response.rb +0 -329
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
- data/lib/sentdm/models/webhook_update_response.rb +0 -229
- data/rbi/sentdm/models/contact_create_response.rbi +0 -407
- data/rbi/sentdm/models/contact_list_response.rbi +0 -634
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
- data/rbi/sentdm/models/contact_update_response.rbi +0 -407
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
- data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
- data/rbi/sentdm/models/template_create_response.rbi +0 -349
- data/rbi/sentdm/models/template_list_response.rbi +0 -576
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
- data/rbi/sentdm/models/template_update_response.rbi +0 -349
- data/rbi/sentdm/models/user_invite_response.rbi +0 -336
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
- data/rbi/sentdm/models/webhook_list_response.rbi +0 -587
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
- data/sig/sentdm/models/contact_create_response.rbs +0 -216
- data/sig/sentdm/models/contact_list_response.rbs +0 -310
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
- data/sig/sentdm/models/contact_update_response.rbs +0 -216
- data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
- data/sig/sentdm/models/conversation_list_response.rbs +0 -404
- data/sig/sentdm/models/profile_create_response.rbs +0 -559
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
- data/sig/sentdm/models/profile_update_response.rbs +0 -559
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
- data/sig/sentdm/models/template_create_response.rbs +0 -182
- data/sig/sentdm/models/template_list_response.rbs +0 -276
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
- data/sig/sentdm/models/template_update_response.rbs +0 -182
- data/sig/sentdm/models/user_invite_response.rbs +0 -177
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/user_update_role_response.rbs +0 -177
- data/sig/sentdm/models/webhook_create_response.rbs +0 -208
- data/sig/sentdm/models/webhook_list_response.rbs +0 -302
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
- data/sig/sentdm/models/webhook_update_response.rbs +0 -208
data/rbi/sentdm/models.rbi
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
# typed: strong
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
|
+
APIMeta = Sentdm::Models::APIMeta
|
|
5
|
+
|
|
6
|
+
APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
7
|
+
|
|
8
|
+
APIResponseOfContactMessageSummary =
|
|
9
|
+
Sentdm::Models::APIResponseOfContactMessageSummary
|
|
10
|
+
|
|
11
|
+
APIResponseOfConversationMessagesList =
|
|
12
|
+
Sentdm::Models::APIResponseOfConversationMessagesList
|
|
13
|
+
|
|
14
|
+
APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
15
|
+
|
|
16
|
+
APIResponseOfUser = Sentdm::Models::APIResponseOfUser
|
|
17
|
+
|
|
18
|
+
APIResponseTemplate = Sentdm::Models::APIResponseTemplate
|
|
19
|
+
|
|
20
|
+
APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
21
|
+
|
|
4
22
|
AuthenticationConfig = Sentdm::Models::AuthenticationConfig
|
|
5
23
|
|
|
24
|
+
BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
25
|
+
|
|
26
|
+
BrandBusinessInfo = Sentdm::Models::BrandBusinessInfo
|
|
27
|
+
|
|
28
|
+
BrandComplianceInfo = Sentdm::Models::BrandComplianceInfo
|
|
29
|
+
|
|
30
|
+
BrandContactInfo = Sentdm::Models::BrandContactInfo
|
|
31
|
+
|
|
32
|
+
BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
33
|
+
|
|
6
34
|
ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
7
35
|
|
|
8
36
|
ContactDeleteParams = Sentdm::Models::ContactDeleteParams
|
|
9
37
|
|
|
10
38
|
ContactListParams = Sentdm::Models::ContactListParams
|
|
11
39
|
|
|
40
|
+
ContactMessageSummary = Sentdm::Models::ContactMessageSummary
|
|
41
|
+
|
|
42
|
+
ContactResponse = Sentdm::Models::ContactResponse
|
|
43
|
+
|
|
12
44
|
ContactRetrieveMessageSummaryParams =
|
|
13
45
|
Sentdm::Models::ContactRetrieveMessageSummaryParams
|
|
14
46
|
|
|
@@ -21,8 +53,12 @@ module Sentdm
|
|
|
21
53
|
|
|
22
54
|
ConversationListParams = Sentdm::Models::ConversationListParams
|
|
23
55
|
|
|
56
|
+
ConversationMessagesList = Sentdm::Models::ConversationMessagesList
|
|
57
|
+
|
|
24
58
|
DestinationCountry = Sentdm::Models::DestinationCountry
|
|
25
59
|
|
|
60
|
+
ErrorDetail = Sentdm::Models::ErrorDetail
|
|
61
|
+
|
|
26
62
|
InboundMessageEvent = Sentdm::Models::InboundMessageEvent
|
|
27
63
|
|
|
28
64
|
InboundMessageEventPayload = Sentdm::Models::InboundMessageEventPayload
|
|
@@ -40,26 +76,38 @@ module Sentdm
|
|
|
40
76
|
|
|
41
77
|
MessageSendParams = Sentdm::Models::MessageSendParams
|
|
42
78
|
|
|
79
|
+
MutationRequest = Sentdm::Models::MutationRequest
|
|
80
|
+
|
|
43
81
|
NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
44
82
|
|
|
83
|
+
PaginationMeta = Sentdm::Models::PaginationMeta
|
|
84
|
+
|
|
85
|
+
PaymentDetails = Sentdm::Models::PaymentDetails
|
|
86
|
+
|
|
45
87
|
ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
|
|
46
88
|
|
|
47
89
|
ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
48
90
|
|
|
49
91
|
ProfileDeleteParams = Sentdm::Models::ProfileDeleteParams
|
|
50
92
|
|
|
93
|
+
ProfileDetail = Sentdm::Models::ProfileDetail
|
|
94
|
+
|
|
51
95
|
ProfileListParams = Sentdm::Models::ProfileListParams
|
|
52
96
|
|
|
53
97
|
ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
54
98
|
|
|
55
99
|
Profiles = Sentdm::Models::Profiles
|
|
56
100
|
|
|
101
|
+
ProfileSettings = Sentdm::Models::ProfileSettings
|
|
102
|
+
|
|
57
103
|
ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
58
104
|
|
|
59
105
|
TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
60
106
|
|
|
61
107
|
TcrVertical = Sentdm::Models::TcrVertical
|
|
62
108
|
|
|
109
|
+
Template = Sentdm::Models::Template
|
|
110
|
+
|
|
63
111
|
TemplateBody = Sentdm::Models::TemplateBody
|
|
64
112
|
|
|
65
113
|
TemplateBodyContent = Sentdm::Models::TemplateBodyContent
|
|
@@ -96,6 +144,8 @@ module Sentdm
|
|
|
96
144
|
|
|
97
145
|
UserRemoveParams = Sentdm::Models::UserRemoveParams
|
|
98
146
|
|
|
147
|
+
UserResponse = Sentdm::Models::UserResponse
|
|
148
|
+
|
|
99
149
|
UserRetrieveParams = Sentdm::Models::UserRetrieveParams
|
|
100
150
|
|
|
101
151
|
UserUpdateRoleParams = Sentdm::Models::UserUpdateRoleParams
|
|
@@ -104,12 +154,16 @@ module Sentdm
|
|
|
104
154
|
|
|
105
155
|
WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
|
|
106
156
|
|
|
157
|
+
WebhookEventType = Sentdm::Models::WebhookEventType
|
|
158
|
+
|
|
107
159
|
WebhookListEventsParams = Sentdm::Models::WebhookListEventsParams
|
|
108
160
|
|
|
109
161
|
WebhookListEventTypesParams = Sentdm::Models::WebhookListEventTypesParams
|
|
110
162
|
|
|
111
163
|
WebhookListParams = Sentdm::Models::WebhookListParams
|
|
112
164
|
|
|
165
|
+
WebhookResponse = Sentdm::Models::WebhookResponse
|
|
166
|
+
|
|
113
167
|
WebhookRetrieveParams = Sentdm::Models::WebhookRetrieveParams
|
|
114
168
|
|
|
115
169
|
WebhookRotateSecretParams = Sentdm::Models::WebhookRotateSecretParams
|
|
@@ -21,7 +21,7 @@ module Sentdm
|
|
|
21
21
|
idempotency_key: String,
|
|
22
22
|
x_profile_id: String,
|
|
23
23
|
request_options: Sentdm::RequestOptions::OrHash
|
|
24
|
-
).returns(Sentdm::
|
|
24
|
+
).returns(Sentdm::APIResponseOfContact)
|
|
25
25
|
end
|
|
26
26
|
def create(
|
|
27
27
|
# Body param: Phone number of the contact to create
|
|
@@ -49,7 +49,7 @@ module Sentdm
|
|
|
49
49
|
id: String,
|
|
50
50
|
x_profile_id: String,
|
|
51
51
|
request_options: Sentdm::RequestOptions::OrHash
|
|
52
|
-
).returns(Sentdm::
|
|
52
|
+
).returns(Sentdm::APIResponseOfContact)
|
|
53
53
|
end
|
|
54
54
|
def retrieve(
|
|
55
55
|
# Contact ID from route parameter
|
|
@@ -71,7 +71,7 @@ module Sentdm
|
|
|
71
71
|
idempotency_key: String,
|
|
72
72
|
x_profile_id: String,
|
|
73
73
|
request_options: Sentdm::RequestOptions::OrHash
|
|
74
|
-
).returns(Sentdm::
|
|
74
|
+
).returns(Sentdm::APIResponseOfContact)
|
|
75
75
|
end
|
|
76
76
|
def update(
|
|
77
77
|
# Path param: Contact ID from route parameter
|
|
@@ -100,22 +100,22 @@ module Sentdm
|
|
|
100
100
|
# filtering by search term, channel, or phone number.
|
|
101
101
|
sig do
|
|
102
102
|
params(
|
|
103
|
+
channel: T.nilable(String),
|
|
103
104
|
page: Integer,
|
|
104
105
|
page_size: Integer,
|
|
105
|
-
channel: T.nilable(String),
|
|
106
106
|
phone: T.nilable(String),
|
|
107
107
|
search: T.nilable(String),
|
|
108
108
|
x_profile_id: String,
|
|
109
109
|
request_options: Sentdm::RequestOptions::OrHash
|
|
110
|
-
).returns(Sentdm::
|
|
110
|
+
).returns(Sentdm::Internal::ContactsPage[Sentdm::ContactResponse])
|
|
111
111
|
end
|
|
112
112
|
def list(
|
|
113
|
-
# Query param: Page number (1-indexed)
|
|
114
|
-
page:,
|
|
115
|
-
# Query param: Number of items per page
|
|
116
|
-
page_size:,
|
|
117
113
|
# Query param: Optional channel filter (sms, whatsapp)
|
|
118
114
|
channel: nil,
|
|
115
|
+
# Query param: Page number (1-indexed)
|
|
116
|
+
page: nil,
|
|
117
|
+
# Query param: Number of items per page
|
|
118
|
+
page_size: nil,
|
|
119
119
|
# Query param: Optional phone number filter (alternative to list view)
|
|
120
120
|
phone: nil,
|
|
121
121
|
# Query param: Optional search term for filtering contacts
|
|
@@ -169,7 +169,7 @@ module Sentdm
|
|
|
169
169
|
contact_id: String,
|
|
170
170
|
x_profile_id: String,
|
|
171
171
|
request_options: Sentdm::RequestOptions::OrHash
|
|
172
|
-
).returns(Sentdm::
|
|
172
|
+
).returns(Sentdm::APIResponseOfContactMessageSummary)
|
|
173
173
|
end
|
|
174
174
|
def retrieve_message_summary(
|
|
175
175
|
contact_id,
|
|
@@ -19,13 +19,17 @@ module Sentdm
|
|
|
19
19
|
page_size: Integer,
|
|
20
20
|
x_profile_id: String,
|
|
21
21
|
request_options: Sentdm::RequestOptions::OrHash
|
|
22
|
-
).returns(
|
|
22
|
+
).returns(
|
|
23
|
+
Sentdm::Internal::ConversationsPage[
|
|
24
|
+
Sentdm::ConversationMessagesList::Message
|
|
25
|
+
]
|
|
26
|
+
)
|
|
23
27
|
end
|
|
24
28
|
def list(
|
|
25
29
|
# Query param
|
|
26
|
-
page
|
|
30
|
+
page: nil,
|
|
27
31
|
# Query param
|
|
28
|
-
page_size
|
|
32
|
+
page_size: nil,
|
|
29
33
|
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
30
34
|
# organization API keys can use this header. The profile must belong to the
|
|
31
35
|
# calling organization.
|
|
@@ -43,15 +47,19 @@ module Sentdm
|
|
|
43
47
|
page_size: Integer,
|
|
44
48
|
x_profile_id: String,
|
|
45
49
|
request_options: Sentdm::RequestOptions::OrHash
|
|
46
|
-
).returns(
|
|
50
|
+
).returns(
|
|
51
|
+
Sentdm::Internal::ConversationsPage[
|
|
52
|
+
Sentdm::ConversationMessagesList::Message
|
|
53
|
+
]
|
|
54
|
+
)
|
|
47
55
|
end
|
|
48
56
|
def list_messages(
|
|
49
57
|
# Path param: Conversation id from the route.
|
|
50
58
|
id,
|
|
51
59
|
# Query param
|
|
52
|
-
page
|
|
60
|
+
page: nil,
|
|
53
61
|
# Query param
|
|
54
|
-
page_size
|
|
62
|
+
page_size: nil,
|
|
55
63
|
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
56
64
|
# organization API keys can use this header. The profile must belong to the
|
|
57
65
|
# calling organization.
|
|
@@ -22,12 +22,12 @@ module Sentdm
|
|
|
22
22
|
sig do
|
|
23
23
|
params(
|
|
24
24
|
profile_id: String,
|
|
25
|
-
campaign: Sentdm::Profiles::
|
|
25
|
+
campaign: Sentdm::Profiles::CampaignData::OrHash,
|
|
26
26
|
sandbox: T::Boolean,
|
|
27
27
|
idempotency_key: String,
|
|
28
28
|
x_profile_id: String,
|
|
29
29
|
request_options: Sentdm::RequestOptions::OrHash
|
|
30
|
-
).returns(Sentdm::
|
|
30
|
+
).returns(Sentdm::Profiles::APIResponseOfBrandCampaign)
|
|
31
31
|
end
|
|
32
32
|
def create(
|
|
33
33
|
# Path param: Profile ID from route
|
|
@@ -61,12 +61,12 @@ module Sentdm
|
|
|
61
61
|
params(
|
|
62
62
|
campaign_id: String,
|
|
63
63
|
profile_id: String,
|
|
64
|
-
campaign: Sentdm::Profiles::
|
|
64
|
+
campaign: Sentdm::Profiles::CampaignData::OrHash,
|
|
65
65
|
sandbox: T::Boolean,
|
|
66
66
|
idempotency_key: String,
|
|
67
67
|
x_profile_id: String,
|
|
68
68
|
request_options: Sentdm::RequestOptions::OrHash
|
|
69
|
-
).returns(Sentdm::
|
|
69
|
+
).returns(Sentdm::Profiles::APIResponseOfBrandCampaign)
|
|
70
70
|
end
|
|
71
71
|
def update(
|
|
72
72
|
# Path param: Campaign ID from route
|
|
@@ -103,7 +103,7 @@ module Sentdm
|
|
|
103
103
|
profile_id: String,
|
|
104
104
|
x_profile_id: String,
|
|
105
105
|
request_options: Sentdm::RequestOptions::OrHash
|
|
106
|
-
).returns(Sentdm::
|
|
106
|
+
).returns(Sentdm::Profiles::APIResponseOfListOfBrandCampaign)
|
|
107
107
|
end
|
|
108
108
|
def list(
|
|
109
109
|
# Profile ID from route
|
|
@@ -58,10 +58,9 @@ module Sentdm
|
|
|
58
58
|
params(
|
|
59
59
|
allow_contact_sharing: T.nilable(T::Boolean),
|
|
60
60
|
allow_template_sharing: T.nilable(T::Boolean),
|
|
61
|
-
billing_contact:
|
|
62
|
-
T.nilable(Sentdm::ProfileCreateParams::BillingContact::OrHash),
|
|
61
|
+
billing_contact: T.nilable(Sentdm::BillingContactInfo::OrHash),
|
|
63
62
|
billing_model: T.nilable(String),
|
|
64
|
-
brand: T.nilable(Sentdm::
|
|
63
|
+
brand: T.nilable(Sentdm::BrandsBrandData::OrHash),
|
|
65
64
|
description: T.nilable(String),
|
|
66
65
|
icon: T.nilable(String),
|
|
67
66
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -69,8 +68,7 @@ module Sentdm
|
|
|
69
68
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
70
69
|
inherit_templates: T.nilable(T::Boolean),
|
|
71
70
|
name: String,
|
|
72
|
-
payment_details:
|
|
73
|
-
T.nilable(Sentdm::ProfileCreateParams::PaymentDetails::OrHash),
|
|
71
|
+
payment_details: T.nilable(Sentdm::PaymentDetails::OrHash),
|
|
74
72
|
sandbox: T::Boolean,
|
|
75
73
|
short_name: T.nilable(String),
|
|
76
74
|
whatsapp_business_account:
|
|
@@ -80,7 +78,7 @@ module Sentdm
|
|
|
80
78
|
idempotency_key: String,
|
|
81
79
|
x_profile_id: String,
|
|
82
80
|
request_options: Sentdm::RequestOptions::OrHash
|
|
83
|
-
).returns(Sentdm::
|
|
81
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
84
82
|
end
|
|
85
83
|
def create(
|
|
86
84
|
# Body param: Deprecated. Accepted and ignored. Contact and template sharing
|
|
@@ -176,7 +174,7 @@ module Sentdm
|
|
|
176
174
|
profile_id: String,
|
|
177
175
|
x_profile_id: String,
|
|
178
176
|
request_options: Sentdm::RequestOptions::OrHash
|
|
179
|
-
).returns(Sentdm::
|
|
177
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
180
178
|
end
|
|
181
179
|
def retrieve(
|
|
182
180
|
# Profile ID from route parameter
|
|
@@ -232,10 +230,9 @@ module Sentdm
|
|
|
232
230
|
allow_contact_sharing: T.nilable(T::Boolean),
|
|
233
231
|
allow_number_change_during_onboarding: T.nilable(T::Boolean),
|
|
234
232
|
allow_template_sharing: T.nilable(T::Boolean),
|
|
235
|
-
billing_contact:
|
|
236
|
-
T.nilable(Sentdm::ProfileUpdateParams::BillingContact::OrHash),
|
|
233
|
+
billing_contact: T.nilable(Sentdm::BillingContactInfo::OrHash),
|
|
237
234
|
billing_model: T.nilable(String),
|
|
238
|
-
brand: T.nilable(Sentdm::
|
|
235
|
+
brand: T.nilable(Sentdm::BrandsBrandData::OrHash),
|
|
239
236
|
description: T.nilable(String),
|
|
240
237
|
icon: T.nilable(String),
|
|
241
238
|
inherit_contacts: T.nilable(T::Boolean),
|
|
@@ -243,8 +240,7 @@ module Sentdm
|
|
|
243
240
|
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
244
241
|
inherit_templates: T.nilable(T::Boolean),
|
|
245
242
|
name: T.nilable(String),
|
|
246
|
-
payment_details:
|
|
247
|
-
T.nilable(Sentdm::ProfileUpdateParams::PaymentDetails::OrHash),
|
|
243
|
+
payment_details: T.nilable(Sentdm::PaymentDetails::OrHash),
|
|
248
244
|
sandbox: T::Boolean,
|
|
249
245
|
sending_phone_number: T.nilable(String),
|
|
250
246
|
sending_phone_number_profile_id: T.nilable(String),
|
|
@@ -254,7 +250,7 @@ module Sentdm
|
|
|
254
250
|
idempotency_key: String,
|
|
255
251
|
x_profile_id: String,
|
|
256
252
|
request_options: Sentdm::RequestOptions::OrHash
|
|
257
|
-
).returns(Sentdm::
|
|
253
|
+
).returns(Sentdm::APIResponseOfProfileDetail)
|
|
258
254
|
end
|
|
259
255
|
def update(
|
|
260
256
|
# Path param: Profile ID from route parameter
|
|
@@ -24,7 +24,7 @@ module Sentdm
|
|
|
24
24
|
idempotency_key: String,
|
|
25
25
|
x_profile_id: String,
|
|
26
26
|
request_options: Sentdm::RequestOptions::OrHash
|
|
27
|
-
).returns(Sentdm::
|
|
27
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
28
28
|
end
|
|
29
29
|
def create(
|
|
30
30
|
# Body param: Template category: MARKETING, UTILITY, AUTHENTICATION (optional,
|
|
@@ -63,7 +63,7 @@ module Sentdm
|
|
|
63
63
|
id: String,
|
|
64
64
|
x_profile_id: String,
|
|
65
65
|
request_options: Sentdm::RequestOptions::OrHash
|
|
66
|
-
).returns(Sentdm::
|
|
66
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
67
67
|
end
|
|
68
68
|
def retrieve(
|
|
69
69
|
# Template ID from route parameter
|
|
@@ -89,7 +89,7 @@ module Sentdm
|
|
|
89
89
|
idempotency_key: String,
|
|
90
90
|
x_profile_id: String,
|
|
91
91
|
request_options: Sentdm::RequestOptions::OrHash
|
|
92
|
-
).returns(Sentdm::
|
|
92
|
+
).returns(Sentdm::APIResponseTemplate)
|
|
93
93
|
end
|
|
94
94
|
def update(
|
|
95
95
|
# Path param: Template ID from route parameter
|
|
@@ -125,21 +125,17 @@ module Sentdm
|
|
|
125
125
|
# Supports filtering by status, category, and search term.
|
|
126
126
|
sig do
|
|
127
127
|
params(
|
|
128
|
-
page: Integer,
|
|
129
|
-
page_size: Integer,
|
|
130
128
|
category: T.nilable(String),
|
|
131
129
|
is_welcome_playground: T.nilable(T::Boolean),
|
|
130
|
+
page: Integer,
|
|
131
|
+
page_size: Integer,
|
|
132
132
|
search: T.nilable(String),
|
|
133
133
|
status: T.nilable(String),
|
|
134
134
|
x_profile_id: String,
|
|
135
135
|
request_options: Sentdm::RequestOptions::OrHash
|
|
136
|
-
).returns(Sentdm::
|
|
136
|
+
).returns(Sentdm::Internal::TemplatesPage[Sentdm::Template])
|
|
137
137
|
end
|
|
138
138
|
def list(
|
|
139
|
-
# Query param: Page number (1-indexed)
|
|
140
|
-
page:,
|
|
141
|
-
# Query param: Number of items per page
|
|
142
|
-
page_size:,
|
|
143
139
|
# Query param: Optional category filter: MARKETING, UTILITY, AUTHENTICATION
|
|
144
140
|
category: nil,
|
|
145
141
|
# Query param: Accepted and ignored. It used to filter on the welcome-playground
|
|
@@ -148,6 +144,10 @@ module Sentdm
|
|
|
148
144
|
# so a client still passing is_welcome_playground keeps binding instead of the
|
|
149
145
|
# request shape changing under it.
|
|
150
146
|
is_welcome_playground: nil,
|
|
147
|
+
# Query param: Page number (1-indexed)
|
|
148
|
+
page: nil,
|
|
149
|
+
# Query param: Number of items per page
|
|
150
|
+
page_size: nil,
|
|
151
151
|
# Query param: Optional search term for filtering templates
|
|
152
152
|
search: nil,
|
|
153
153
|
# Query param: Optional status filter: APPROVED, PENDING, REJECTED
|
|
@@ -16,7 +16,7 @@ module Sentdm
|
|
|
16
16
|
user_id: String,
|
|
17
17
|
x_profile_id: String,
|
|
18
18
|
request_options: Sentdm::RequestOptions::OrHash
|
|
19
|
-
).returns(Sentdm::
|
|
19
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
20
20
|
end
|
|
21
21
|
def retrieve(
|
|
22
22
|
# User ID from route parameter
|
|
@@ -57,7 +57,7 @@ module Sentdm
|
|
|
57
57
|
idempotency_key: String,
|
|
58
58
|
x_profile_id: String,
|
|
59
59
|
request_options: Sentdm::RequestOptions::OrHash
|
|
60
|
-
).returns(Sentdm::
|
|
60
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
61
61
|
end
|
|
62
62
|
def invite(
|
|
63
63
|
# Body param: User email address (required)
|
|
@@ -115,7 +115,7 @@ module Sentdm
|
|
|
115
115
|
idempotency_key: String,
|
|
116
116
|
x_profile_id: String,
|
|
117
117
|
request_options: Sentdm::RequestOptions::OrHash
|
|
118
|
-
).returns(Sentdm::
|
|
118
|
+
).returns(Sentdm::APIResponseOfUser)
|
|
119
119
|
end
|
|
120
120
|
def update_role(
|
|
121
121
|
# Path param: User ID from route parameter
|
|
@@ -27,7 +27,7 @@ module Sentdm
|
|
|
27
27
|
idempotency_key: String,
|
|
28
28
|
x_profile_id: String,
|
|
29
29
|
request_options: Sentdm::RequestOptions::OrHash
|
|
30
|
-
).returns(Sentdm::
|
|
30
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
31
31
|
end
|
|
32
32
|
def create(
|
|
33
33
|
# Body param
|
|
@@ -63,7 +63,7 @@ module Sentdm
|
|
|
63
63
|
id: String,
|
|
64
64
|
x_profile_id: String,
|
|
65
65
|
request_options: Sentdm::RequestOptions::OrHash
|
|
66
|
-
).returns(Sentdm::
|
|
66
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
67
67
|
end
|
|
68
68
|
def retrieve(
|
|
69
69
|
id,
|
|
@@ -88,7 +88,7 @@ module Sentdm
|
|
|
88
88
|
idempotency_key: String,
|
|
89
89
|
x_profile_id: String,
|
|
90
90
|
request_options: Sentdm::RequestOptions::OrHash
|
|
91
|
-
).returns(Sentdm::
|
|
91
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
92
92
|
end
|
|
93
93
|
def update(
|
|
94
94
|
# Path param
|
|
@@ -123,21 +123,21 @@ module Sentdm
|
|
|
123
123
|
# Retrieves a paginated list of webhooks for the authenticated customer.
|
|
124
124
|
sig do
|
|
125
125
|
params(
|
|
126
|
+
is_active: T.nilable(T::Boolean),
|
|
126
127
|
page: Integer,
|
|
127
128
|
page_size: Integer,
|
|
128
|
-
is_active: T.nilable(T::Boolean),
|
|
129
129
|
search: T.nilable(String),
|
|
130
130
|
x_profile_id: String,
|
|
131
131
|
request_options: Sentdm::RequestOptions::OrHash
|
|
132
|
-
).returns(Sentdm::
|
|
132
|
+
).returns(Sentdm::Internal::WebhooksPage[Sentdm::WebhookResponse])
|
|
133
133
|
end
|
|
134
134
|
def list(
|
|
135
135
|
# Query param
|
|
136
|
-
|
|
136
|
+
is_active: nil,
|
|
137
137
|
# Query param
|
|
138
|
-
|
|
138
|
+
page: nil,
|
|
139
139
|
# Query param
|
|
140
|
-
|
|
140
|
+
page_size: nil,
|
|
141
141
|
# Query param
|
|
142
142
|
search: nil,
|
|
143
143
|
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -189,15 +189,19 @@ module Sentdm
|
|
|
189
189
|
search: T.nilable(String),
|
|
190
190
|
x_profile_id: String,
|
|
191
191
|
request_options: Sentdm::RequestOptions::OrHash
|
|
192
|
-
).returns(
|
|
192
|
+
).returns(
|
|
193
|
+
Sentdm::Internal::WebhookEventsPage[
|
|
194
|
+
Sentdm::Models::WebhookListEventsResponse
|
|
195
|
+
]
|
|
196
|
+
)
|
|
193
197
|
end
|
|
194
198
|
def list_events(
|
|
195
199
|
# Path param
|
|
196
200
|
id,
|
|
197
201
|
# Query param
|
|
198
|
-
page
|
|
202
|
+
page: nil,
|
|
199
203
|
# Query param
|
|
200
|
-
page_size
|
|
204
|
+
page_size: nil,
|
|
201
205
|
# Query param
|
|
202
206
|
search: nil,
|
|
203
207
|
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -277,7 +281,7 @@ module Sentdm
|
|
|
277
281
|
idempotency_key: String,
|
|
278
282
|
x_profile_id: String,
|
|
279
283
|
request_options: Sentdm::RequestOptions::OrHash
|
|
280
|
-
).returns(Sentdm::
|
|
284
|
+
).returns(Sentdm::APIResponseWebhook)
|
|
281
285
|
end
|
|
282
286
|
def toggle_status(
|
|
283
287
|
# Path param
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Internal
|
|
3
|
+
class ContactsPage[Elem]
|
|
4
|
+
include Sentdm::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: Data
|
|
7
|
+
|
|
8
|
+
def inspect: -> String
|
|
9
|
+
|
|
10
|
+
type data = { contacts: ::Array[top], pagination: Data::Pagination }
|
|
11
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_reader contacts: ::Array[top]?
|
|
13
|
+
|
|
14
|
+
def contacts=: (::Array[top]) -> ::Array[top]
|
|
15
|
+
|
|
16
|
+
attr_reader pagination: Data::Pagination?
|
|
17
|
+
|
|
18
|
+
def pagination=: (Data::Pagination) -> Data::Pagination
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?contacts: ::Array[top],
|
|
22
|
+
?pagination: Data::Pagination
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { contacts: ::Array[top], pagination: Data::Pagination }
|
|
26
|
+
|
|
27
|
+
type pagination = { has_more: bool }
|
|
28
|
+
|
|
29
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
30
|
+
attr_reader has_more: bool?
|
|
31
|
+
|
|
32
|
+
def has_more=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
def initialize: (?has_more: bool) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> { has_more: bool }
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Internal
|
|
3
|
+
class ConversationsPage[Elem]
|
|
4
|
+
include Sentdm::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: Data
|
|
7
|
+
|
|
8
|
+
def inspect: -> String
|
|
9
|
+
|
|
10
|
+
type data = { messages: ::Array[top], pagination: Data::Pagination }
|
|
11
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_reader messages: ::Array[top]?
|
|
13
|
+
|
|
14
|
+
def messages=: (::Array[top]) -> ::Array[top]
|
|
15
|
+
|
|
16
|
+
attr_reader pagination: Data::Pagination?
|
|
17
|
+
|
|
18
|
+
def pagination=: (Data::Pagination) -> Data::Pagination
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?messages: ::Array[top],
|
|
22
|
+
?pagination: Data::Pagination
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { messages: ::Array[top], pagination: Data::Pagination }
|
|
26
|
+
|
|
27
|
+
type pagination = { has_more: bool }
|
|
28
|
+
|
|
29
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
30
|
+
attr_reader has_more: bool?
|
|
31
|
+
|
|
32
|
+
def has_more=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
def initialize: (?has_more: bool) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> { has_more: bool }
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Internal
|
|
3
|
+
class TemplatesPage[Elem]
|
|
4
|
+
include Sentdm::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: Data
|
|
7
|
+
|
|
8
|
+
def inspect: -> String
|
|
9
|
+
|
|
10
|
+
type data = { pagination: Data::Pagination, templates: ::Array[top] }
|
|
11
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_reader pagination: Data::Pagination?
|
|
13
|
+
|
|
14
|
+
def pagination=: (Data::Pagination) -> Data::Pagination
|
|
15
|
+
|
|
16
|
+
attr_reader templates: ::Array[top]?
|
|
17
|
+
|
|
18
|
+
def templates=: (::Array[top]) -> ::Array[top]
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?pagination: Data::Pagination,
|
|
22
|
+
?templates: ::Array[top]
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
pagination: Data::Pagination,
|
|
27
|
+
templates: ::Array[top]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type pagination = { has_more: bool }
|
|
31
|
+
|
|
32
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
33
|
+
attr_reader has_more: bool?
|
|
34
|
+
|
|
35
|
+
def has_more=: (bool) -> bool
|
|
36
|
+
|
|
37
|
+
def initialize: (?has_more: bool) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> { has_more: bool }
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Internal
|
|
3
|
+
class WebhookEventsPage[Elem]
|
|
4
|
+
include Sentdm::Internal::Type::BasePage[Elem]
|
|
5
|
+
|
|
6
|
+
attr_accessor data: Data
|
|
7
|
+
|
|
8
|
+
def inspect: -> String
|
|
9
|
+
|
|
10
|
+
type data = { events: ::Array[top], pagination: Data::Pagination }
|
|
11
|
+
class Data < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_reader events: ::Array[top]?
|
|
13
|
+
|
|
14
|
+
def events=: (::Array[top]) -> ::Array[top]
|
|
15
|
+
|
|
16
|
+
attr_reader pagination: Data::Pagination?
|
|
17
|
+
|
|
18
|
+
def pagination=: (Data::Pagination) -> Data::Pagination
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?events: ::Array[top],
|
|
22
|
+
?pagination: Data::Pagination
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { events: ::Array[top], pagination: Data::Pagination }
|
|
26
|
+
|
|
27
|
+
type pagination = { has_more: bool }
|
|
28
|
+
|
|
29
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
30
|
+
attr_reader has_more: bool?
|
|
31
|
+
|
|
32
|
+
def has_more=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
def initialize: (?has_more: bool) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> { has_more: bool }
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|