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
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
module Sentdm
|
|
2
|
-
module Models
|
|
3
|
-
type conversation_list_response =
|
|
4
|
-
{
|
|
5
|
-
data: Sentdm::Models::ConversationListResponse::Data?,
|
|
6
|
-
error: Sentdm::Models::ConversationListResponse::Error?,
|
|
7
|
-
meta: Sentdm::Models::ConversationListResponse::Meta,
|
|
8
|
-
success: bool
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class ConversationListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor data: Sentdm::Models::ConversationListResponse::Data?
|
|
13
|
-
|
|
14
|
-
attr_accessor error: Sentdm::Models::ConversationListResponse::Error?
|
|
15
|
-
|
|
16
|
-
attr_reader meta: Sentdm::Models::ConversationListResponse::Meta?
|
|
17
|
-
|
|
18
|
-
def meta=: (
|
|
19
|
-
Sentdm::Models::ConversationListResponse::Meta
|
|
20
|
-
) -> Sentdm::Models::ConversationListResponse::Meta
|
|
21
|
-
|
|
22
|
-
attr_reader success: bool?
|
|
23
|
-
|
|
24
|
-
def success=: (bool) -> bool
|
|
25
|
-
|
|
26
|
-
def initialize: (
|
|
27
|
-
?data: Sentdm::Models::ConversationListResponse::Data?,
|
|
28
|
-
?error: Sentdm::Models::ConversationListResponse::Error?,
|
|
29
|
-
?meta: Sentdm::Models::ConversationListResponse::Meta,
|
|
30
|
-
?success: bool
|
|
31
|
-
) -> void
|
|
32
|
-
|
|
33
|
-
def to_hash: -> {
|
|
34
|
-
data: Sentdm::Models::ConversationListResponse::Data?,
|
|
35
|
-
error: Sentdm::Models::ConversationListResponse::Error?,
|
|
36
|
-
meta: Sentdm::Models::ConversationListResponse::Meta,
|
|
37
|
-
success: bool
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type data =
|
|
41
|
-
{
|
|
42
|
-
messages: ::Array[Sentdm::Models::ConversationListResponse::Data::Message],
|
|
43
|
-
pagination: Sentdm::Models::ConversationListResponse::Data::Pagination
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
47
|
-
attr_reader messages: ::Array[Sentdm::Models::ConversationListResponse::Data::Message]?
|
|
48
|
-
|
|
49
|
-
def messages=: (
|
|
50
|
-
::Array[Sentdm::Models::ConversationListResponse::Data::Message]
|
|
51
|
-
) -> ::Array[Sentdm::Models::ConversationListResponse::Data::Message]
|
|
52
|
-
|
|
53
|
-
attr_reader pagination: Sentdm::Models::ConversationListResponse::Data::Pagination?
|
|
54
|
-
|
|
55
|
-
def pagination=: (
|
|
56
|
-
Sentdm::Models::ConversationListResponse::Data::Pagination
|
|
57
|
-
) -> Sentdm::Models::ConversationListResponse::Data::Pagination
|
|
58
|
-
|
|
59
|
-
def initialize: (
|
|
60
|
-
?messages: ::Array[Sentdm::Models::ConversationListResponse::Data::Message],
|
|
61
|
-
?pagination: Sentdm::Models::ConversationListResponse::Data::Pagination
|
|
62
|
-
) -> void
|
|
63
|
-
|
|
64
|
-
def to_hash: -> {
|
|
65
|
-
messages: ::Array[Sentdm::Models::ConversationListResponse::Data::Message],
|
|
66
|
-
pagination: Sentdm::Models::ConversationListResponse::Data::Pagination
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
type message =
|
|
70
|
-
{
|
|
71
|
-
id: String,
|
|
72
|
-
active_contact_price: Float?,
|
|
73
|
-
channel: String,
|
|
74
|
-
contact_id: String,
|
|
75
|
-
created_at: Time,
|
|
76
|
-
customer_id: String,
|
|
77
|
-
direction: String,
|
|
78
|
-
events: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::Event]?,
|
|
79
|
-
message_body: Sentdm::Models::ConversationListResponse::Data::Message::MessageBody?,
|
|
80
|
-
phone: String,
|
|
81
|
-
phone_international: String,
|
|
82
|
-
price: Float?,
|
|
83
|
-
region_code: String,
|
|
84
|
-
status: String,
|
|
85
|
-
template_category: String?,
|
|
86
|
-
template_id: String?,
|
|
87
|
-
template_name: String?
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
class Message < Sentdm::Internal::Type::BaseModel
|
|
91
|
-
attr_reader id: String?
|
|
92
|
-
|
|
93
|
-
def id=: (String) -> String
|
|
94
|
-
|
|
95
|
-
attr_accessor active_contact_price: Float?
|
|
96
|
-
|
|
97
|
-
attr_reader channel: String?
|
|
98
|
-
|
|
99
|
-
def channel=: (String) -> String
|
|
100
|
-
|
|
101
|
-
attr_reader contact_id: String?
|
|
102
|
-
|
|
103
|
-
def contact_id=: (String) -> String
|
|
104
|
-
|
|
105
|
-
attr_reader created_at: Time?
|
|
106
|
-
|
|
107
|
-
def created_at=: (Time) -> Time
|
|
108
|
-
|
|
109
|
-
attr_reader customer_id: String?
|
|
110
|
-
|
|
111
|
-
def customer_id=: (String) -> String
|
|
112
|
-
|
|
113
|
-
attr_reader direction: String?
|
|
114
|
-
|
|
115
|
-
def direction=: (String) -> String
|
|
116
|
-
|
|
117
|
-
attr_accessor events: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::Event]?
|
|
118
|
-
|
|
119
|
-
attr_accessor message_body: Sentdm::Models::ConversationListResponse::Data::Message::MessageBody?
|
|
120
|
-
|
|
121
|
-
attr_reader phone: String?
|
|
122
|
-
|
|
123
|
-
def phone=: (String) -> String
|
|
124
|
-
|
|
125
|
-
attr_reader phone_international: String?
|
|
126
|
-
|
|
127
|
-
def phone_international=: (String) -> String
|
|
128
|
-
|
|
129
|
-
attr_accessor price: Float?
|
|
130
|
-
|
|
131
|
-
attr_reader region_code: String?
|
|
132
|
-
|
|
133
|
-
def region_code=: (String) -> String
|
|
134
|
-
|
|
135
|
-
attr_reader status: String?
|
|
136
|
-
|
|
137
|
-
def status=: (String) -> String
|
|
138
|
-
|
|
139
|
-
attr_accessor template_category: String?
|
|
140
|
-
|
|
141
|
-
attr_accessor template_id: String?
|
|
142
|
-
|
|
143
|
-
attr_accessor template_name: String?
|
|
144
|
-
|
|
145
|
-
def initialize: (
|
|
146
|
-
?id: String,
|
|
147
|
-
?active_contact_price: Float?,
|
|
148
|
-
?channel: String,
|
|
149
|
-
?contact_id: String,
|
|
150
|
-
?created_at: Time,
|
|
151
|
-
?customer_id: String,
|
|
152
|
-
?direction: String,
|
|
153
|
-
?events: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::Event]?,
|
|
154
|
-
?message_body: Sentdm::Models::ConversationListResponse::Data::Message::MessageBody?,
|
|
155
|
-
?phone: String,
|
|
156
|
-
?phone_international: String,
|
|
157
|
-
?price: Float?,
|
|
158
|
-
?region_code: String,
|
|
159
|
-
?status: String,
|
|
160
|
-
?template_category: String?,
|
|
161
|
-
?template_id: String?,
|
|
162
|
-
?template_name: String?
|
|
163
|
-
) -> void
|
|
164
|
-
|
|
165
|
-
def to_hash: -> {
|
|
166
|
-
id: String,
|
|
167
|
-
active_contact_price: Float?,
|
|
168
|
-
channel: String,
|
|
169
|
-
contact_id: String,
|
|
170
|
-
created_at: Time,
|
|
171
|
-
customer_id: String,
|
|
172
|
-
direction: String,
|
|
173
|
-
events: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::Event]?,
|
|
174
|
-
message_body: Sentdm::Models::ConversationListResponse::Data::Message::MessageBody?,
|
|
175
|
-
phone: String,
|
|
176
|
-
phone_international: String,
|
|
177
|
-
price: Float?,
|
|
178
|
-
region_code: String,
|
|
179
|
-
status: String,
|
|
180
|
-
template_category: String?,
|
|
181
|
-
template_id: String?,
|
|
182
|
-
template_name: String?
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
type event = { status: String, timestamp: Time, description: String? }
|
|
186
|
-
|
|
187
|
-
class Event < Sentdm::Internal::Type::BaseModel
|
|
188
|
-
attr_accessor status: String
|
|
189
|
-
|
|
190
|
-
attr_accessor timestamp: Time
|
|
191
|
-
|
|
192
|
-
attr_accessor description: String?
|
|
193
|
-
|
|
194
|
-
def initialize: (
|
|
195
|
-
status: String,
|
|
196
|
-
timestamp: Time,
|
|
197
|
-
?description: String?
|
|
198
|
-
) -> void
|
|
199
|
-
|
|
200
|
-
def to_hash: -> {
|
|
201
|
-
status: String,
|
|
202
|
-
timestamp: Time,
|
|
203
|
-
description: String?
|
|
204
|
-
}
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
type message_body =
|
|
208
|
-
{
|
|
209
|
-
buttons: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::MessageBody::Button]?,
|
|
210
|
-
content: String,
|
|
211
|
-
footer: String?,
|
|
212
|
-
header: String?
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
class MessageBody < Sentdm::Internal::Type::BaseModel
|
|
216
|
-
attr_accessor buttons: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::MessageBody::Button]?
|
|
217
|
-
|
|
218
|
-
attr_reader content: String?
|
|
219
|
-
|
|
220
|
-
def content=: (String) -> String
|
|
221
|
-
|
|
222
|
-
attr_accessor footer: String?
|
|
223
|
-
|
|
224
|
-
attr_accessor header: String?
|
|
225
|
-
|
|
226
|
-
def initialize: (
|
|
227
|
-
?buttons: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::MessageBody::Button]?,
|
|
228
|
-
?content: String,
|
|
229
|
-
?footer: String?,
|
|
230
|
-
?header: String?
|
|
231
|
-
) -> void
|
|
232
|
-
|
|
233
|
-
def to_hash: -> {
|
|
234
|
-
buttons: ::Array[Sentdm::Models::ConversationListResponse::Data::Message::MessageBody::Button]?,
|
|
235
|
-
content: String,
|
|
236
|
-
footer: String?,
|
|
237
|
-
header: String?
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
type button =
|
|
241
|
-
{
|
|
242
|
-
postback_data: String?,
|
|
243
|
-
text: String?,
|
|
244
|
-
type: String,
|
|
245
|
-
value: String
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
class Button < Sentdm::Internal::Type::BaseModel
|
|
249
|
-
attr_accessor postback_data: String?
|
|
250
|
-
|
|
251
|
-
attr_accessor text: String?
|
|
252
|
-
|
|
253
|
-
attr_reader type: String?
|
|
254
|
-
|
|
255
|
-
def type=: (String) -> String
|
|
256
|
-
|
|
257
|
-
attr_reader value: String?
|
|
258
|
-
|
|
259
|
-
def value=: (String) -> String
|
|
260
|
-
|
|
261
|
-
def initialize: (
|
|
262
|
-
?postback_data: String?,
|
|
263
|
-
?text: String?,
|
|
264
|
-
?type: String,
|
|
265
|
-
?value: String
|
|
266
|
-
) -> void
|
|
267
|
-
|
|
268
|
-
def to_hash: -> {
|
|
269
|
-
postback_data: String?,
|
|
270
|
-
text: String?,
|
|
271
|
-
type: String,
|
|
272
|
-
value: String
|
|
273
|
-
}
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
type pagination =
|
|
279
|
-
{
|
|
280
|
-
cursors: Sentdm::Models::ConversationListResponse::Data::Pagination::Cursors?,
|
|
281
|
-
has_more: bool,
|
|
282
|
-
page: Integer,
|
|
283
|
-
page_size: Integer,
|
|
284
|
-
total_count: Integer,
|
|
285
|
-
total_pages: Integer
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
289
|
-
attr_accessor cursors: Sentdm::Models::ConversationListResponse::Data::Pagination::Cursors?
|
|
290
|
-
|
|
291
|
-
attr_reader has_more: bool?
|
|
292
|
-
|
|
293
|
-
def has_more=: (bool) -> bool
|
|
294
|
-
|
|
295
|
-
attr_reader page: Integer?
|
|
296
|
-
|
|
297
|
-
def page=: (Integer) -> Integer
|
|
298
|
-
|
|
299
|
-
attr_reader page_size: Integer?
|
|
300
|
-
|
|
301
|
-
def page_size=: (Integer) -> Integer
|
|
302
|
-
|
|
303
|
-
attr_reader total_count: Integer?
|
|
304
|
-
|
|
305
|
-
def total_count=: (Integer) -> Integer
|
|
306
|
-
|
|
307
|
-
attr_reader total_pages: Integer?
|
|
308
|
-
|
|
309
|
-
def total_pages=: (Integer) -> Integer
|
|
310
|
-
|
|
311
|
-
def initialize: (
|
|
312
|
-
?cursors: Sentdm::Models::ConversationListResponse::Data::Pagination::Cursors?,
|
|
313
|
-
?has_more: bool,
|
|
314
|
-
?page: Integer,
|
|
315
|
-
?page_size: Integer,
|
|
316
|
-
?total_count: Integer,
|
|
317
|
-
?total_pages: Integer
|
|
318
|
-
) -> void
|
|
319
|
-
|
|
320
|
-
def to_hash: -> {
|
|
321
|
-
cursors: Sentdm::Models::ConversationListResponse::Data::Pagination::Cursors?,
|
|
322
|
-
has_more: bool,
|
|
323
|
-
page: Integer,
|
|
324
|
-
page_size: Integer,
|
|
325
|
-
total_count: Integer,
|
|
326
|
-
total_pages: Integer
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
type cursors = { after: String?, before: String? }
|
|
330
|
-
|
|
331
|
-
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
332
|
-
attr_accessor after: String?
|
|
333
|
-
|
|
334
|
-
attr_accessor before: String?
|
|
335
|
-
|
|
336
|
-
def initialize: (?after: String?, ?before: String?) -> void
|
|
337
|
-
|
|
338
|
-
def to_hash: -> { after: String?, before: String? }
|
|
339
|
-
end
|
|
340
|
-
end
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
type error =
|
|
344
|
-
{
|
|
345
|
-
code: String,
|
|
346
|
-
details: ::Hash[Symbol, ::Array[String]]?,
|
|
347
|
-
doc_url: String?,
|
|
348
|
-
message: String
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
352
|
-
attr_reader code: String?
|
|
353
|
-
|
|
354
|
-
def code=: (String) -> String
|
|
355
|
-
|
|
356
|
-
attr_accessor details: ::Hash[Symbol, ::Array[String]]?
|
|
357
|
-
|
|
358
|
-
attr_accessor doc_url: String?
|
|
359
|
-
|
|
360
|
-
attr_reader message: String?
|
|
361
|
-
|
|
362
|
-
def message=: (String) -> String
|
|
363
|
-
|
|
364
|
-
def initialize: (
|
|
365
|
-
?code: String,
|
|
366
|
-
?details: ::Hash[Symbol, ::Array[String]]?,
|
|
367
|
-
?doc_url: String?,
|
|
368
|
-
?message: String
|
|
369
|
-
) -> void
|
|
370
|
-
|
|
371
|
-
def to_hash: -> {
|
|
372
|
-
code: String,
|
|
373
|
-
details: ::Hash[Symbol, ::Array[String]]?,
|
|
374
|
-
doc_url: String?,
|
|
375
|
-
message: String
|
|
376
|
-
}
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
type meta = { request_id: String, timestamp: Time, version: String }
|
|
380
|
-
|
|
381
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
382
|
-
attr_reader request_id: String?
|
|
383
|
-
|
|
384
|
-
def request_id=: (String) -> String
|
|
385
|
-
|
|
386
|
-
attr_reader timestamp: Time?
|
|
387
|
-
|
|
388
|
-
def timestamp=: (Time) -> Time
|
|
389
|
-
|
|
390
|
-
attr_reader version: String?
|
|
391
|
-
|
|
392
|
-
def version=: (String) -> String
|
|
393
|
-
|
|
394
|
-
def initialize: (
|
|
395
|
-
?request_id: String,
|
|
396
|
-
?timestamp: Time,
|
|
397
|
-
?version: String
|
|
398
|
-
) -> void
|
|
399
|
-
|
|
400
|
-
def to_hash: -> { request_id: String, timestamp: Time, version: String }
|
|
401
|
-
end
|
|
402
|
-
end
|
|
403
|
-
end
|
|
404
|
-
end
|