sentdm 0.28.0 → 0.30.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 +19 -0
- data/README.md +27 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- 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 +43 -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_response.rb +12 -295
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +139 -0
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/inbound_message_event_payload.rb +17 -17
- data/lib/sentdm/models/me_retrieve_response.rb +43 -243
- data/lib/sentdm/models/message_event_payload.rb +11 -11
- 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 +102 -0
- data/lib/sentdm/models/template_event_payload.rb +18 -18
- data/lib/sentdm/models/template_list_response.rb +12 -258
- 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_response.rb +9 -157
- data/lib/sentdm/models/webhook_list_response.rb +12 -276
- data/lib/sentdm/models/webhook_response.rb +120 -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 +8 -8
- data/lib/sentdm/resources/conversations.rb +4 -4
- data/lib/sentdm/resources/me.rb +11 -0
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +6 -6
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +32 -22
- 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_response.rbi +16 -522
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +16 -22
- data/rbi/sentdm/models/me_retrieve_response.rbi +60 -367
- data/rbi/sentdm/models/message_event_payload.rbi +12 -15
- 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_event_payload.rbi +21 -27
- data/rbi/sentdm/models/template_list_response.rbi +16 -464
- 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_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -475
- 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 +4 -4
- data/rbi/sentdm/resources/conversations.rbi +2 -2
- data/rbi/sentdm/resources/me.rbi +11 -0
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +3 -3
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- 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_response.rbs +20 -263
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/inbound_message_event_payload.rbs +10 -14
- data/sig/sentdm/models/me_retrieve_response.rbs +28 -176
- data/sig/sentdm/models/message_event_payload.rbs +5 -7
- 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_event_payload.rbs +13 -17
- data/sig/sentdm/models/template_list_response.rbs +19 -230
- 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_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -255
- 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 +4 -4
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +98 -68
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- 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_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_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_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_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_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_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_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_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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brands_brand_data =
|
|
4
|
+
{
|
|
5
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
6
|
+
contact: Sentdm::BrandContactInfo,
|
|
7
|
+
business: Sentdm::BrandBusinessInfo?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class BrandsBrandData < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor compliance: Sentdm::BrandComplianceInfo
|
|
12
|
+
|
|
13
|
+
attr_accessor contact: Sentdm::BrandContactInfo
|
|
14
|
+
|
|
15
|
+
attr_accessor business: Sentdm::BrandBusinessInfo?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
19
|
+
contact: Sentdm::BrandContactInfo,
|
|
20
|
+
?business: Sentdm::BrandBusinessInfo?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
25
|
+
contact: Sentdm::BrandContactInfo,
|
|
26
|
+
business: Sentdm::BrandBusinessInfo?
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type contact_delete_params =
|
|
4
|
-
{ id: String,
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
5
|
& Sentdm::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
|
-
class ContactDeleteParams < Sentdm::
|
|
7
|
+
class ContactDeleteParams < Sentdm::Models::MutationRequest
|
|
8
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
def id: -> String
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
def id=: (String _) -> String
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def x_profile_id: -> String?
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
def x_profile_id=: (String) -> String
|
|
17
|
+
def x_profile_id=: (String _) -> String
|
|
20
18
|
|
|
21
19
|
def initialize: (
|
|
22
20
|
id: String,
|
|
23
|
-
?sandbox: bool,
|
|
24
21
|
?x_profile_id: String,
|
|
25
22
|
?request_options: Sentdm::request_opts
|
|
26
23
|
) -> void
|
|
27
24
|
|
|
28
25
|
def to_hash: -> {
|
|
29
26
|
id: String,
|
|
30
|
-
sandbox: bool,
|
|
31
27
|
x_profile_id: String,
|
|
32
28
|
request_options: Sentdm::RequestOptions
|
|
33
29
|
}
|
|
@@ -3,21 +3,19 @@ module Sentdm
|
|
|
3
3
|
type contact_list_response =
|
|
4
4
|
{
|
|
5
5
|
data: Sentdm::Models::ContactListResponse::Data?,
|
|
6
|
-
error: Sentdm::
|
|
7
|
-
meta: Sentdm::
|
|
6
|
+
error: Sentdm::ErrorDetail?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
8
|
success: bool
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class ContactListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor data: Sentdm::Models::ContactListResponse::Data?
|
|
13
13
|
|
|
14
|
-
attr_accessor error: Sentdm::
|
|
14
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
15
15
|
|
|
16
|
-
attr_reader meta: Sentdm::
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
17
|
|
|
18
|
-
def meta=: (
|
|
19
|
-
Sentdm::Models::ContactListResponse::Meta
|
|
20
|
-
) -> Sentdm::Models::ContactListResponse::Meta
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
21
19
|
|
|
22
20
|
attr_reader success: bool?
|
|
23
21
|
|
|
@@ -25,285 +23,44 @@ module Sentdm
|
|
|
25
23
|
|
|
26
24
|
def initialize: (
|
|
27
25
|
?data: Sentdm::Models::ContactListResponse::Data?,
|
|
28
|
-
?error: Sentdm::
|
|
29
|
-
?meta: Sentdm::
|
|
26
|
+
?error: Sentdm::ErrorDetail?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
30
28
|
?success: bool
|
|
31
29
|
) -> void
|
|
32
30
|
|
|
33
31
|
def to_hash: -> {
|
|
34
32
|
data: Sentdm::Models::ContactListResponse::Data?,
|
|
35
|
-
error: Sentdm::
|
|
36
|
-
meta: Sentdm::
|
|
33
|
+
error: Sentdm::ErrorDetail?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
37
35
|
success: bool
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
type data =
|
|
41
39
|
{
|
|
42
|
-
contacts: ::Array[Sentdm::
|
|
43
|
-
pagination: Sentdm::
|
|
40
|
+
contacts: ::Array[Sentdm::ContactResponse],
|
|
41
|
+
pagination: Sentdm::PaginationMeta
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
class Data < Sentdm::Internal::Type::BaseModel
|
|
47
|
-
attr_reader contacts: ::Array[Sentdm::
|
|
45
|
+
attr_reader contacts: ::Array[Sentdm::ContactResponse]?
|
|
48
46
|
|
|
49
47
|
def contacts=: (
|
|
50
|
-
::Array[Sentdm::
|
|
51
|
-
) -> ::Array[Sentdm::
|
|
48
|
+
::Array[Sentdm::ContactResponse]
|
|
49
|
+
) -> ::Array[Sentdm::ContactResponse]
|
|
52
50
|
|
|
53
|
-
attr_reader pagination: Sentdm::
|
|
51
|
+
attr_reader pagination: Sentdm::PaginationMeta?
|
|
54
52
|
|
|
55
|
-
def pagination=: (
|
|
56
|
-
Sentdm::Models::ContactListResponse::Data::Pagination
|
|
57
|
-
) -> Sentdm::Models::ContactListResponse::Data::Pagination
|
|
53
|
+
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
58
54
|
|
|
59
55
|
def initialize: (
|
|
60
|
-
?contacts: ::Array[Sentdm::
|
|
61
|
-
?pagination: Sentdm::
|
|
56
|
+
?contacts: ::Array[Sentdm::ContactResponse],
|
|
57
|
+
?pagination: Sentdm::PaginationMeta
|
|
62
58
|
) -> void
|
|
63
59
|
|
|
64
60
|
def to_hash: -> {
|
|
65
|
-
contacts: ::Array[Sentdm::
|
|
66
|
-
pagination: Sentdm::
|
|
61
|
+
contacts: ::Array[Sentdm::ContactResponse],
|
|
62
|
+
pagination: Sentdm::PaginationMeta
|
|
67
63
|
}
|
|
68
|
-
|
|
69
|
-
type contact =
|
|
70
|
-
{
|
|
71
|
-
id: String,
|
|
72
|
-
available_channels: String,
|
|
73
|
-
country_code: String,
|
|
74
|
-
created_at: Time,
|
|
75
|
-
customer_id: String,
|
|
76
|
-
default_channel: String,
|
|
77
|
-
:format_e164 => String,
|
|
78
|
-
format_international: String,
|
|
79
|
-
format_national: String,
|
|
80
|
-
format_rfc: String,
|
|
81
|
-
is_inherited: bool,
|
|
82
|
-
opt_out: bool,
|
|
83
|
-
phone_number: String,
|
|
84
|
-
region_code: String,
|
|
85
|
-
updated_at: Time?
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
class Contact < Sentdm::Internal::Type::BaseModel
|
|
89
|
-
attr_reader id: String?
|
|
90
|
-
|
|
91
|
-
def id=: (String) -> String
|
|
92
|
-
|
|
93
|
-
attr_reader available_channels: String?
|
|
94
|
-
|
|
95
|
-
def available_channels=: (String) -> String
|
|
96
|
-
|
|
97
|
-
attr_reader country_code: String?
|
|
98
|
-
|
|
99
|
-
def country_code=: (String) -> String
|
|
100
|
-
|
|
101
|
-
attr_reader created_at: Time?
|
|
102
|
-
|
|
103
|
-
def created_at=: (Time) -> Time
|
|
104
|
-
|
|
105
|
-
attr_reader customer_id: String?
|
|
106
|
-
|
|
107
|
-
def customer_id=: (String) -> String
|
|
108
|
-
|
|
109
|
-
attr_reader default_channel: String?
|
|
110
|
-
|
|
111
|
-
def default_channel=: (String) -> String
|
|
112
|
-
|
|
113
|
-
attr_reader format_e164: String?
|
|
114
|
-
|
|
115
|
-
def format_e164=: (String) -> String
|
|
116
|
-
|
|
117
|
-
attr_reader format_international: String?
|
|
118
|
-
|
|
119
|
-
def format_international=: (String) -> String
|
|
120
|
-
|
|
121
|
-
attr_reader format_national: String?
|
|
122
|
-
|
|
123
|
-
def format_national=: (String) -> String
|
|
124
|
-
|
|
125
|
-
attr_reader format_rfc: String?
|
|
126
|
-
|
|
127
|
-
def format_rfc=: (String) -> String
|
|
128
|
-
|
|
129
|
-
attr_reader is_inherited: bool?
|
|
130
|
-
|
|
131
|
-
def is_inherited=: (bool) -> bool
|
|
132
|
-
|
|
133
|
-
attr_reader opt_out: bool?
|
|
134
|
-
|
|
135
|
-
def opt_out=: (bool) -> bool
|
|
136
|
-
|
|
137
|
-
attr_reader phone_number: String?
|
|
138
|
-
|
|
139
|
-
def phone_number=: (String) -> String
|
|
140
|
-
|
|
141
|
-
attr_reader region_code: String?
|
|
142
|
-
|
|
143
|
-
def region_code=: (String) -> String
|
|
144
|
-
|
|
145
|
-
attr_accessor updated_at: Time?
|
|
146
|
-
|
|
147
|
-
def initialize: (
|
|
148
|
-
?id: String,
|
|
149
|
-
?available_channels: String,
|
|
150
|
-
?country_code: String,
|
|
151
|
-
?created_at: Time,
|
|
152
|
-
?customer_id: String,
|
|
153
|
-
?default_channel: String,
|
|
154
|
-
?format_e164: String,
|
|
155
|
-
?format_international: String,
|
|
156
|
-
?format_national: String,
|
|
157
|
-
?format_rfc: String,
|
|
158
|
-
?is_inherited: bool,
|
|
159
|
-
?opt_out: bool,
|
|
160
|
-
?phone_number: String,
|
|
161
|
-
?region_code: String,
|
|
162
|
-
?updated_at: Time?
|
|
163
|
-
) -> void
|
|
164
|
-
|
|
165
|
-
def to_hash: -> {
|
|
166
|
-
id: String,
|
|
167
|
-
available_channels: String,
|
|
168
|
-
country_code: String,
|
|
169
|
-
created_at: Time,
|
|
170
|
-
customer_id: String,
|
|
171
|
-
default_channel: String,
|
|
172
|
-
:format_e164 => String,
|
|
173
|
-
format_international: String,
|
|
174
|
-
format_national: String,
|
|
175
|
-
format_rfc: String,
|
|
176
|
-
is_inherited: bool,
|
|
177
|
-
opt_out: bool,
|
|
178
|
-
phone_number: String,
|
|
179
|
-
region_code: String,
|
|
180
|
-
updated_at: Time?
|
|
181
|
-
}
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
type pagination =
|
|
185
|
-
{
|
|
186
|
-
cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
|
|
187
|
-
has_more: bool,
|
|
188
|
-
page: Integer,
|
|
189
|
-
page_size: Integer,
|
|
190
|
-
total_count: Integer,
|
|
191
|
-
total_pages: Integer
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
195
|
-
attr_accessor cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?
|
|
196
|
-
|
|
197
|
-
attr_reader has_more: bool?
|
|
198
|
-
|
|
199
|
-
def has_more=: (bool) -> bool
|
|
200
|
-
|
|
201
|
-
attr_reader page: Integer?
|
|
202
|
-
|
|
203
|
-
def page=: (Integer) -> Integer
|
|
204
|
-
|
|
205
|
-
attr_reader page_size: Integer?
|
|
206
|
-
|
|
207
|
-
def page_size=: (Integer) -> Integer
|
|
208
|
-
|
|
209
|
-
attr_reader total_count: Integer?
|
|
210
|
-
|
|
211
|
-
def total_count=: (Integer) -> Integer
|
|
212
|
-
|
|
213
|
-
attr_reader total_pages: Integer?
|
|
214
|
-
|
|
215
|
-
def total_pages=: (Integer) -> Integer
|
|
216
|
-
|
|
217
|
-
def initialize: (
|
|
218
|
-
?cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
|
|
219
|
-
?has_more: bool,
|
|
220
|
-
?page: Integer,
|
|
221
|
-
?page_size: Integer,
|
|
222
|
-
?total_count: Integer,
|
|
223
|
-
?total_pages: Integer
|
|
224
|
-
) -> void
|
|
225
|
-
|
|
226
|
-
def to_hash: -> {
|
|
227
|
-
cursors: Sentdm::Models::ContactListResponse::Data::Pagination::Cursors?,
|
|
228
|
-
has_more: bool,
|
|
229
|
-
page: Integer,
|
|
230
|
-
page_size: Integer,
|
|
231
|
-
total_count: Integer,
|
|
232
|
-
total_pages: Integer
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
type cursors = { after: String?, before: String? }
|
|
236
|
-
|
|
237
|
-
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
238
|
-
attr_accessor after: String?
|
|
239
|
-
|
|
240
|
-
attr_accessor before: String?
|
|
241
|
-
|
|
242
|
-
def initialize: (?after: String?, ?before: String?) -> void
|
|
243
|
-
|
|
244
|
-
def to_hash: -> { after: String?, before: String? }
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
type error =
|
|
250
|
-
{
|
|
251
|
-
code: String,
|
|
252
|
-
details: ::Hash[Symbol, ::Array[String]]?,
|
|
253
|
-
doc_url: String?,
|
|
254
|
-
message: String
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
258
|
-
attr_reader code: String?
|
|
259
|
-
|
|
260
|
-
def code=: (String) -> String
|
|
261
|
-
|
|
262
|
-
attr_accessor details: ::Hash[Symbol, ::Array[String]]?
|
|
263
|
-
|
|
264
|
-
attr_accessor doc_url: String?
|
|
265
|
-
|
|
266
|
-
attr_reader message: String?
|
|
267
|
-
|
|
268
|
-
def message=: (String) -> String
|
|
269
|
-
|
|
270
|
-
def initialize: (
|
|
271
|
-
?code: String,
|
|
272
|
-
?details: ::Hash[Symbol, ::Array[String]]?,
|
|
273
|
-
?doc_url: String?,
|
|
274
|
-
?message: String
|
|
275
|
-
) -> void
|
|
276
|
-
|
|
277
|
-
def to_hash: -> {
|
|
278
|
-
code: String,
|
|
279
|
-
details: ::Hash[Symbol, ::Array[String]]?,
|
|
280
|
-
doc_url: String?,
|
|
281
|
-
message: String
|
|
282
|
-
}
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
type meta = { request_id: String, timestamp: Time, version: String }
|
|
286
|
-
|
|
287
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
288
|
-
attr_reader request_id: String?
|
|
289
|
-
|
|
290
|
-
def request_id=: (String) -> String
|
|
291
|
-
|
|
292
|
-
attr_reader timestamp: Time?
|
|
293
|
-
|
|
294
|
-
def timestamp=: (Time) -> Time
|
|
295
|
-
|
|
296
|
-
attr_reader version: String?
|
|
297
|
-
|
|
298
|
-
def version=: (String) -> String
|
|
299
|
-
|
|
300
|
-
def initialize: (
|
|
301
|
-
?request_id: String,
|
|
302
|
-
?timestamp: Time,
|
|
303
|
-
?version: String
|
|
304
|
-
) -> void
|
|
305
|
-
|
|
306
|
-
def to_hash: -> { request_id: String, timestamp: Time, version: String }
|
|
307
64
|
end
|
|
308
65
|
end
|
|
309
66
|
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type contact_message_summary =
|
|
4
|
+
{
|
|
5
|
+
channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
6
|
+
channels_used: ::Array[String],
|
|
7
|
+
contact_id: String,
|
|
8
|
+
first_message_at: Time?,
|
|
9
|
+
last_message_at: Time?,
|
|
10
|
+
message_count: Integer
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ContactMessageSummary < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_reader channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore]?
|
|
15
|
+
|
|
16
|
+
def channel_scores=: (
|
|
17
|
+
::Array[Sentdm::ContactMessageSummary::ChannelScore]
|
|
18
|
+
) -> ::Array[Sentdm::ContactMessageSummary::ChannelScore]
|
|
19
|
+
|
|
20
|
+
attr_reader channels_used: ::Array[String]?
|
|
21
|
+
|
|
22
|
+
def channels_used=: (::Array[String]) -> ::Array[String]
|
|
23
|
+
|
|
24
|
+
attr_reader contact_id: String?
|
|
25
|
+
|
|
26
|
+
def contact_id=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_accessor first_message_at: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor last_message_at: Time?
|
|
31
|
+
|
|
32
|
+
attr_reader message_count: Integer?
|
|
33
|
+
|
|
34
|
+
def message_count=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
?channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
38
|
+
?channels_used: ::Array[String],
|
|
39
|
+
?contact_id: String,
|
|
40
|
+
?first_message_at: Time?,
|
|
41
|
+
?last_message_at: Time?,
|
|
42
|
+
?message_count: Integer
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
47
|
+
channels_used: ::Array[String],
|
|
48
|
+
contact_id: String,
|
|
49
|
+
first_message_at: Time?,
|
|
50
|
+
last_message_at: Time?,
|
|
51
|
+
message_count: Integer
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type channel_score =
|
|
55
|
+
{ channel: String, fail_score: Integer, success_score: Integer }
|
|
56
|
+
|
|
57
|
+
class ChannelScore < Sentdm::Internal::Type::BaseModel
|
|
58
|
+
attr_reader channel: String?
|
|
59
|
+
|
|
60
|
+
def channel=: (String) -> String
|
|
61
|
+
|
|
62
|
+
attr_reader fail_score: Integer?
|
|
63
|
+
|
|
64
|
+
def fail_score=: (Integer) -> Integer
|
|
65
|
+
|
|
66
|
+
attr_reader success_score: Integer?
|
|
67
|
+
|
|
68
|
+
def success_score=: (Integer) -> Integer
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
?channel: String,
|
|
72
|
+
?fail_score: Integer,
|
|
73
|
+
?success_score: Integer
|
|
74
|
+
) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> {
|
|
77
|
+
channel: String,
|
|
78
|
+
fail_score: Integer,
|
|
79
|
+
success_score: Integer
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type contact_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
available_channels: String,
|
|
7
|
+
country_code: String,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
customer_id: String,
|
|
10
|
+
default_channel: String,
|
|
11
|
+
:format_e164 => String,
|
|
12
|
+
format_international: String,
|
|
13
|
+
format_national: String,
|
|
14
|
+
format_rfc: String,
|
|
15
|
+
is_inherited: bool,
|
|
16
|
+
opt_out: bool,
|
|
17
|
+
phone_number: String,
|
|
18
|
+
region_code: String,
|
|
19
|
+
updated_at: Time?
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class ContactResponse < Sentdm::Internal::Type::BaseModel
|
|
23
|
+
attr_reader id: String?
|
|
24
|
+
|
|
25
|
+
def id=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader available_channels: String?
|
|
28
|
+
|
|
29
|
+
def available_channels=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader country_code: String?
|
|
32
|
+
|
|
33
|
+
def country_code=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader created_at: Time?
|
|
36
|
+
|
|
37
|
+
def created_at=: (Time) -> Time
|
|
38
|
+
|
|
39
|
+
attr_reader customer_id: String?
|
|
40
|
+
|
|
41
|
+
def customer_id=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader default_channel: String?
|
|
44
|
+
|
|
45
|
+
def default_channel=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader format_e164: String?
|
|
48
|
+
|
|
49
|
+
def format_e164=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader format_international: String?
|
|
52
|
+
|
|
53
|
+
def format_international=: (String) -> String
|
|
54
|
+
|
|
55
|
+
attr_reader format_national: String?
|
|
56
|
+
|
|
57
|
+
def format_national=: (String) -> String
|
|
58
|
+
|
|
59
|
+
attr_reader format_rfc: String?
|
|
60
|
+
|
|
61
|
+
def format_rfc=: (String) -> String
|
|
62
|
+
|
|
63
|
+
attr_reader is_inherited: bool?
|
|
64
|
+
|
|
65
|
+
def is_inherited=: (bool) -> bool
|
|
66
|
+
|
|
67
|
+
attr_reader opt_out: bool?
|
|
68
|
+
|
|
69
|
+
def opt_out=: (bool) -> bool
|
|
70
|
+
|
|
71
|
+
attr_reader phone_number: String?
|
|
72
|
+
|
|
73
|
+
def phone_number=: (String) -> String
|
|
74
|
+
|
|
75
|
+
attr_reader region_code: String?
|
|
76
|
+
|
|
77
|
+
def region_code=: (String) -> String
|
|
78
|
+
|
|
79
|
+
attr_accessor updated_at: Time?
|
|
80
|
+
|
|
81
|
+
def initialize: (
|
|
82
|
+
?id: String,
|
|
83
|
+
?available_channels: String,
|
|
84
|
+
?country_code: String,
|
|
85
|
+
?created_at: Time,
|
|
86
|
+
?customer_id: String,
|
|
87
|
+
?default_channel: String,
|
|
88
|
+
?format_e164: String,
|
|
89
|
+
?format_international: String,
|
|
90
|
+
?format_national: String,
|
|
91
|
+
?format_rfc: String,
|
|
92
|
+
?is_inherited: bool,
|
|
93
|
+
?opt_out: bool,
|
|
94
|
+
?phone_number: String,
|
|
95
|
+
?region_code: String,
|
|
96
|
+
?updated_at: Time?
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
id: String,
|
|
101
|
+
available_channels: String,
|
|
102
|
+
country_code: String,
|
|
103
|
+
created_at: Time,
|
|
104
|
+
customer_id: String,
|
|
105
|
+
default_channel: String,
|
|
106
|
+
:format_e164 => String,
|
|
107
|
+
format_international: String,
|
|
108
|
+
format_national: String,
|
|
109
|
+
format_rfc: String,
|
|
110
|
+
is_inherited: bool,
|
|
111
|
+
opt_out: bool,
|
|
112
|
+
phone_number: String,
|
|
113
|
+
region_code: String,
|
|
114
|
+
updated_at: Time?
|
|
115
|
+
}
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|