sentdm 0.25.0 → 0.27.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.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +7 -11
  4. data/lib/sentdm/client.rb +4 -0
  5. data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
  6. data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
  7. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rb → authentication_config.rb} +2 -3
  8. data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb → brand_business_info.rb} +5 -7
  9. data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb → brand_compliance_info.rb} +2 -10
  10. data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb → brand_contact_info.rb} +1 -1
  11. data/lib/sentdm/models/brands_brand_data.rb +9 -13
  12. data/lib/sentdm/models/contact_message_summary.rb +76 -0
  13. data/lib/sentdm/models/contact_retrieve_message_summary_params.rb +26 -0
  14. data/lib/sentdm/models/conversation_list_messages_params.rb +38 -0
  15. data/lib/sentdm/models/conversation_list_params.rb +32 -0
  16. data/lib/sentdm/models/conversation_messages_list.rb +245 -0
  17. data/lib/sentdm/models/inbound_message_event.rb +52 -0
  18. data/lib/sentdm/models/inbound_message_event_payload.rb +81 -0
  19. data/lib/sentdm/models/message_event.rb +53 -0
  20. data/lib/sentdm/models/message_event_payload.rb +92 -0
  21. data/lib/sentdm/models/message_send_response.rb +2 -6
  22. data/lib/sentdm/models/profile_detail.rb +13 -13
  23. data/lib/sentdm/models/profile_update_params.rb +2 -2
  24. data/lib/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rb → api_response_of_brand_campaign.rb} +5 -5
  25. data/lib/sentdm/models/profiles/{campaign_list_response.rb → api_response_of_list_of_brand_campaign.rb} +4 -6
  26. data/lib/sentdm/models/profiles/{tcr_campaign_with_use_cases.rb → brand_campaign.rb} +63 -111
  27. data/lib/sentdm/models/profiles/campaign_data.rb +13 -6
  28. data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
  29. data/lib/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb → campaign_use_case_data.rb} +1 -1
  30. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rb → template_body.rb} +2 -3
  31. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button.rb → template_button.rb} +5 -6
  32. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rb → template_button_props.rb} +2 -3
  33. data/lib/sentdm/models/template_definition.rb +15 -19
  34. data/lib/sentdm/models/template_event.rb +52 -0
  35. data/lib/sentdm/models/template_event_payload.rb +88 -0
  36. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rb → template_footer.rb} +1 -1
  37. data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rb → template_header.rb} +2 -3
  38. data/lib/sentdm/models/webhook_list_events_response.rb +45 -3
  39. data/lib/sentdm/models.rb +44 -27
  40. data/lib/sentdm/resources/contacts.rb +30 -0
  41. data/lib/sentdm/resources/conversations.rb +82 -0
  42. data/lib/sentdm/resources/messages.rb +6 -1
  43. data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
  44. data/lib/sentdm/resources/profiles.rb +34 -22
  45. data/lib/sentdm/resources/users.rb +3 -3
  46. data/lib/sentdm/version.rb +1 -1
  47. data/lib/sentdm.rb +28 -14
  48. data/rbi/sentdm/client.rbi +3 -0
  49. data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
  50. data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
  51. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rbi → authentication_config.rbi} +2 -5
  52. data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi → brand_business_info.rbi} +12 -30
  53. data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi → brand_compliance_info.rbi} +2 -13
  54. data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi → brand_contact_info.rbi} +2 -5
  55. data/rbi/sentdm/models/brands_brand_data.rbi +12 -51
  56. data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
  57. data/rbi/sentdm/models/contact_retrieve_message_summary_params.rbi +49 -0
  58. data/rbi/sentdm/models/conversation_list_messages_params.rbi +65 -0
  59. data/rbi/sentdm/models/conversation_list_params.rbi +51 -0
  60. data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
  61. data/rbi/sentdm/models/inbound_message_event.rbi +88 -0
  62. data/rbi/sentdm/models/inbound_message_event_payload.rbi +122 -0
  63. data/rbi/sentdm/models/message_event.rbi +86 -0
  64. data/rbi/sentdm/models/message_event_payload.rbi +132 -0
  65. data/rbi/sentdm/models/message_send_response.rbi +2 -4
  66. data/rbi/sentdm/models/profile_detail.rbi +10 -12
  67. data/rbi/sentdm/models/profile_update_params.rbi +2 -2
  68. data/rbi/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rbi → api_response_of_brand_campaign.rbi} +8 -10
  69. data/rbi/sentdm/models/profiles/{campaign_list_response.rbi → api_response_of_list_of_brand_campaign.rbi} +5 -13
  70. data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
  71. data/rbi/sentdm/models/profiles/campaign_data.rbi +16 -18
  72. data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
  73. data/rbi/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi → campaign_use_case_data.rbi} +2 -2
  74. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rbi → template_body.rbi} +2 -7
  75. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button.rbi → template_button.rbi} +6 -22
  76. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rbi → template_button_props.rbi} +2 -5
  77. data/rbi/sentdm/models/template_definition.rbi +19 -87
  78. data/rbi/sentdm/models/template_event.rbi +84 -0
  79. data/rbi/sentdm/models/template_event_payload.rbi +131 -0
  80. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rbi → template_footer.rbi} +2 -5
  81. data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rbi → template_header.rbi} +2 -5
  82. data/rbi/sentdm/models/webhook_list_events_response.rbi +60 -4
  83. data/rbi/sentdm/models.rbi +48 -27
  84. data/rbi/sentdm/resources/contacts.rbi +20 -0
  85. data/rbi/sentdm/resources/conversations.rbi +61 -0
  86. data/rbi/sentdm/resources/messages.rbi +6 -1
  87. data/rbi/sentdm/resources/profiles/campaigns.rbi +3 -3
  88. data/rbi/sentdm/resources/profiles.rbi +32 -20
  89. data/rbi/sentdm/resources/users.rbi +3 -2
  90. data/sig/sentdm/client.rbs +2 -0
  91. data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
  92. data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
  93. data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rbs → authentication_config.rbs} +2 -2
  94. data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs → brand_business_info.rbs} +7 -7
  95. data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs → brand_compliance_info.rbs} +2 -7
  96. data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs → brand_contact_info.rbs} +2 -2
  97. data/sig/sentdm/models/brands_brand_data.rbs +12 -12
  98. data/sig/sentdm/models/contact_message_summary.rbs +84 -0
  99. data/sig/sentdm/models/contact_retrieve_message_summary_params.rbs +30 -0
  100. data/sig/sentdm/models/conversation_list_messages_params.rbs +38 -0
  101. data/sig/sentdm/models/conversation_list_params.rbs +34 -0
  102. data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
  103. data/sig/sentdm/models/inbound_message_event.rbs +39 -0
  104. data/sig/sentdm/models/inbound_message_event_payload.rbs +69 -0
  105. data/sig/sentdm/models/message_event.rbs +39 -0
  106. data/sig/sentdm/models/message_event_payload.rbs +72 -0
  107. data/sig/sentdm/models/profile_detail.rbs +0 -5
  108. data/sig/sentdm/models/profiles/{campaign_list_response.rbs → api_response_of_brand_campaign.rbs} +6 -6
  109. data/sig/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rbs → api_response_of_list_of_brand_campaign.rbs} +6 -6
  110. data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
  111. data/sig/sentdm/models/profiles/campaign_data.rbs +12 -7
  112. data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
  113. data/sig/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs → campaign_use_case_data.rbs} +2 -2
  114. data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rbs → template_body.rbs} +2 -2
  115. data/sig/sentdm/models/template_button.rbs +28 -0
  116. data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rbs → template_button_props.rbs} +2 -2
  117. data/sig/sentdm/models/template_definition.rbs +20 -20
  118. data/sig/sentdm/models/template_event.rbs +39 -0
  119. data/sig/sentdm/models/template_event_payload.rbs +76 -0
  120. data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rbs → template_footer.rbs} +2 -2
  121. data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rbs → template_header.rbs} +2 -2
  122. data/sig/sentdm/models/webhook_list_events_response.rbs +18 -5
  123. data/sig/sentdm/models.rbs +44 -18
  124. data/sig/sentdm/resources/contacts.rbs +6 -0
  125. data/sig/sentdm/resources/conversations.rbs +22 -0
  126. data/sig/sentdm/resources/profiles/campaigns.rbs +3 -3
  127. metadata +86 -44
  128. data/lib/sentdm/models/profiles/base_dto.rb +0 -32
  129. data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
  130. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -425
  131. data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
  132. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -306
  133. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
@@ -1,26 +1,23 @@
1
1
  module Sentdm
2
2
  module Models
3
- type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info =
3
+ type brand_compliance_info =
4
4
  {
5
5
  brand_relationship: Sentdm::Models::tcr_brand_relationship,
6
6
  vertical: Sentdm::Models::tcr_vertical,
7
7
  destination_countries: ::Array[Sentdm::DestinationCountry]?,
8
- expected_messaging_volume: String?,
9
8
  is_tcr_application: bool?,
10
9
  notes: String?,
11
10
  phone_number_prefix: String?,
12
11
  primary_use_case: String?
13
12
  }
14
13
 
15
- class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo < Sentdm::Internal::Type::BaseModel
14
+ class BrandComplianceInfo < Sentdm::Internal::Type::BaseModel
16
15
  attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
17
16
 
18
17
  attr_accessor vertical: Sentdm::Models::tcr_vertical
19
18
 
20
19
  attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
21
20
 
22
- attr_accessor expected_messaging_volume: String?
23
-
24
21
  attr_accessor is_tcr_application: bool?
25
22
 
26
23
  attr_accessor notes: String?
@@ -33,7 +30,6 @@ module Sentdm
33
30
  brand_relationship: Sentdm::Models::tcr_brand_relationship,
34
31
  vertical: Sentdm::Models::tcr_vertical,
35
32
  ?destination_countries: ::Array[Sentdm::DestinationCountry]?,
36
- ?expected_messaging_volume: String?,
37
33
  ?is_tcr_application: bool?,
38
34
  ?notes: String?,
39
35
  ?phone_number_prefix: String?,
@@ -44,7 +40,6 @@ module Sentdm
44
40
  brand_relationship: Sentdm::Models::tcr_brand_relationship,
45
41
  vertical: Sentdm::Models::tcr_vertical,
46
42
  destination_countries: ::Array[Sentdm::DestinationCountry]?,
47
- expected_messaging_volume: String?,
48
43
  is_tcr_application: bool?,
49
44
  notes: String?,
50
45
  phone_number_prefix: String?,
@@ -1,6 +1,6 @@
1
1
  module Sentdm
2
2
  module Models
3
- type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info =
3
+ type brand_contact_info =
4
4
  {
5
5
  name: String,
6
6
  business_name: String?,
@@ -10,7 +10,7 @@ module Sentdm
10
10
  role: String?
11
11
  }
12
12
 
13
- class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo < Sentdm::Internal::Type::BaseModel
13
+ class BrandContactInfo < Sentdm::Internal::Type::BaseModel
14
14
  attr_accessor name: String
15
15
 
16
16
  attr_accessor business_name: String?
@@ -2,28 +2,28 @@ module Sentdm
2
2
  module Models
3
3
  type brands_brand_data =
4
4
  {
5
- compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
6
- contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
7
- business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
5
+ compliance: Sentdm::BrandComplianceInfo,
6
+ contact: Sentdm::BrandContactInfo,
7
+ business: Sentdm::BrandBusinessInfo?
8
8
  }
9
9
 
10
10
  class BrandsBrandData < Sentdm::Internal::Type::BaseModel
11
- attr_accessor compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
11
+ attr_accessor compliance: Sentdm::BrandComplianceInfo
12
12
 
13
- attr_accessor contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
13
+ attr_accessor contact: Sentdm::BrandContactInfo
14
14
 
15
- attr_accessor business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
15
+ attr_accessor business: Sentdm::BrandBusinessInfo?
16
16
 
17
17
  def initialize: (
18
- compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
19
- contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
20
- ?business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
18
+ compliance: Sentdm::BrandComplianceInfo,
19
+ contact: Sentdm::BrandContactInfo,
20
+ ?business: Sentdm::BrandBusinessInfo?
21
21
  ) -> void
22
22
 
23
23
  def to_hash: -> {
24
- compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
25
- contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
26
- business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
24
+ compliance: Sentdm::BrandComplianceInfo,
25
+ contact: Sentdm::BrandContactInfo,
26
+ business: Sentdm::BrandBusinessInfo?
27
27
  }
28
28
  end
29
29
  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,30 @@
1
+ module Sentdm
2
+ module Models
3
+ type contact_retrieve_message_summary_params =
4
+ { contact_id: String, x_profile_id: String }
5
+ & Sentdm::Internal::Type::request_parameters
6
+
7
+ class ContactRetrieveMessageSummaryParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ attr_accessor contact_id: String
12
+
13
+ attr_reader x_profile_id: String?
14
+
15
+ def x_profile_id=: (String) -> String
16
+
17
+ def initialize: (
18
+ contact_id: String,
19
+ ?x_profile_id: String,
20
+ ?request_options: Sentdm::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ contact_id: String,
25
+ x_profile_id: String,
26
+ request_options: Sentdm::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,38 @@
1
+ module Sentdm
2
+ module Models
3
+ type conversation_list_messages_params =
4
+ { id: String, page: Integer, page_size: Integer, x_profile_id: String }
5
+ & Sentdm::Internal::Type::request_parameters
6
+
7
+ class ConversationListMessagesParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ attr_accessor id: String
12
+
13
+ attr_accessor page: Integer
14
+
15
+ attr_accessor page_size: Integer
16
+
17
+ attr_reader x_profile_id: String?
18
+
19
+ def x_profile_id=: (String) -> String
20
+
21
+ def initialize: (
22
+ id: String,
23
+ page: Integer,
24
+ page_size: Integer,
25
+ ?x_profile_id: String,
26
+ ?request_options: Sentdm::request_opts
27
+ ) -> void
28
+
29
+ def to_hash: -> {
30
+ id: String,
31
+ page: Integer,
32
+ page_size: Integer,
33
+ x_profile_id: String,
34
+ request_options: Sentdm::RequestOptions
35
+ }
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,34 @@
1
+ module Sentdm
2
+ module Models
3
+ type conversation_list_params =
4
+ { page: Integer, page_size: Integer, x_profile_id: String }
5
+ & Sentdm::Internal::Type::request_parameters
6
+
7
+ class ConversationListParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ attr_accessor page: Integer
12
+
13
+ attr_accessor page_size: Integer
14
+
15
+ attr_reader x_profile_id: String?
16
+
17
+ def x_profile_id=: (String) -> String
18
+
19
+ def initialize: (
20
+ page: Integer,
21
+ page_size: Integer,
22
+ ?x_profile_id: String,
23
+ ?request_options: Sentdm::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ page: Integer,
28
+ page_size: Integer,
29
+ x_profile_id: String,
30
+ request_options: Sentdm::RequestOptions
31
+ }
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,240 @@
1
+ module Sentdm
2
+ module Models
3
+ type conversation_messages_list =
4
+ {
5
+ messages: ::Array[Sentdm::ConversationMessagesList::Message],
6
+ pagination: Sentdm::PaginationMeta
7
+ }
8
+
9
+ class ConversationMessagesList < Sentdm::Internal::Type::BaseModel
10
+ attr_reader messages: ::Array[Sentdm::ConversationMessagesList::Message]?
11
+
12
+ def messages=: (
13
+ ::Array[Sentdm::ConversationMessagesList::Message]
14
+ ) -> ::Array[Sentdm::ConversationMessagesList::Message]
15
+
16
+ attr_reader pagination: Sentdm::PaginationMeta?
17
+
18
+ def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
19
+
20
+ def initialize: (
21
+ ?messages: ::Array[Sentdm::ConversationMessagesList::Message],
22
+ ?pagination: Sentdm::PaginationMeta
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ messages: ::Array[Sentdm::ConversationMessagesList::Message],
27
+ pagination: Sentdm::PaginationMeta
28
+ }
29
+
30
+ type message =
31
+ {
32
+ id: String,
33
+ active_contact_price: Float?,
34
+ channel: String,
35
+ contact_id: String,
36
+ created_at: Time,
37
+ customer_id: String,
38
+ direction: String,
39
+ events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
40
+ message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
41
+ phone: String,
42
+ phone_international: String,
43
+ price: Float?,
44
+ region_code: String,
45
+ status: String,
46
+ template_category: String?,
47
+ template_id: String?,
48
+ template_name: String?
49
+ }
50
+
51
+ class Message < Sentdm::Internal::Type::BaseModel
52
+ attr_reader id: String?
53
+
54
+ def id=: (String) -> String
55
+
56
+ attr_accessor active_contact_price: Float?
57
+
58
+ attr_reader channel: String?
59
+
60
+ def channel=: (String) -> String
61
+
62
+ attr_reader contact_id: String?
63
+
64
+ def contact_id=: (String) -> String
65
+
66
+ attr_reader created_at: Time?
67
+
68
+ def created_at=: (Time) -> Time
69
+
70
+ attr_reader customer_id: String?
71
+
72
+ def customer_id=: (String) -> String
73
+
74
+ attr_reader direction: String?
75
+
76
+ def direction=: (String) -> String
77
+
78
+ attr_accessor events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?
79
+
80
+ attr_accessor message_body: Sentdm::ConversationMessagesList::Message::MessageBody?
81
+
82
+ attr_reader phone: String?
83
+
84
+ def phone=: (String) -> String
85
+
86
+ attr_reader phone_international: String?
87
+
88
+ def phone_international=: (String) -> String
89
+
90
+ attr_accessor price: Float?
91
+
92
+ attr_reader region_code: String?
93
+
94
+ def region_code=: (String) -> String
95
+
96
+ attr_reader status: String?
97
+
98
+ def status=: (String) -> String
99
+
100
+ attr_accessor template_category: String?
101
+
102
+ attr_accessor template_id: String?
103
+
104
+ attr_accessor template_name: String?
105
+
106
+ def initialize: (
107
+ ?id: String,
108
+ ?active_contact_price: Float?,
109
+ ?channel: String,
110
+ ?contact_id: String,
111
+ ?created_at: Time,
112
+ ?customer_id: String,
113
+ ?direction: String,
114
+ ?events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
115
+ ?message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
116
+ ?phone: String,
117
+ ?phone_international: String,
118
+ ?price: Float?,
119
+ ?region_code: String,
120
+ ?status: String,
121
+ ?template_category: String?,
122
+ ?template_id: String?,
123
+ ?template_name: String?
124
+ ) -> void
125
+
126
+ def to_hash: -> {
127
+ id: String,
128
+ active_contact_price: Float?,
129
+ channel: String,
130
+ contact_id: String,
131
+ created_at: Time,
132
+ customer_id: String,
133
+ direction: String,
134
+ events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
135
+ message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
136
+ phone: String,
137
+ phone_international: String,
138
+ price: Float?,
139
+ region_code: String,
140
+ status: String,
141
+ template_category: String?,
142
+ template_id: String?,
143
+ template_name: String?
144
+ }
145
+
146
+ type event = { status: String, timestamp: Time, description: String? }
147
+
148
+ class Event < Sentdm::Internal::Type::BaseModel
149
+ attr_accessor status: String
150
+
151
+ attr_accessor timestamp: Time
152
+
153
+ attr_accessor description: String?
154
+
155
+ def initialize: (
156
+ status: String,
157
+ timestamp: Time,
158
+ ?description: String?
159
+ ) -> void
160
+
161
+ def to_hash: -> {
162
+ status: String,
163
+ timestamp: Time,
164
+ description: String?
165
+ }
166
+ end
167
+
168
+ type message_body =
169
+ {
170
+ buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
171
+ content: String,
172
+ footer: String?,
173
+ header: String?
174
+ }
175
+
176
+ class MessageBody < Sentdm::Internal::Type::BaseModel
177
+ attr_accessor buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?
178
+
179
+ attr_reader content: String?
180
+
181
+ def content=: (String) -> String
182
+
183
+ attr_accessor footer: String?
184
+
185
+ attr_accessor header: String?
186
+
187
+ def initialize: (
188
+ ?buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
189
+ ?content: String,
190
+ ?footer: String?,
191
+ ?header: String?
192
+ ) -> void
193
+
194
+ def to_hash: -> {
195
+ buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
196
+ content: String,
197
+ footer: String?,
198
+ header: String?
199
+ }
200
+
201
+ type button =
202
+ {
203
+ postback_data: String?,
204
+ text: String?,
205
+ type: String,
206
+ value: String
207
+ }
208
+
209
+ class Button < Sentdm::Internal::Type::BaseModel
210
+ attr_accessor postback_data: String?
211
+
212
+ attr_accessor text: String?
213
+
214
+ attr_reader type: String?
215
+
216
+ def type=: (String) -> String
217
+
218
+ attr_reader value: String?
219
+
220
+ def value=: (String) -> String
221
+
222
+ def initialize: (
223
+ ?postback_data: String?,
224
+ ?text: String?,
225
+ ?type: String,
226
+ ?value: String
227
+ ) -> void
228
+
229
+ def to_hash: -> {
230
+ postback_data: String?,
231
+ text: String?,
232
+ type: String,
233
+ value: String
234
+ }
235
+ end
236
+ end
237
+ end
238
+ end
239
+ end
240
+ end
@@ -0,0 +1,39 @@
1
+ module Sentdm
2
+ module Models
3
+ type inbound_message_event =
4
+ {
5
+ event: String?,
6
+ field: String,
7
+ payload: Sentdm::InboundMessageEventPayload?,
8
+ timestamp: String
9
+ }
10
+
11
+ class InboundMessageEvent < Sentdm::Internal::Type::BaseModel
12
+ attr_accessor event: String?
13
+
14
+ attr_reader field: String?
15
+
16
+ def field=: (String) -> String
17
+
18
+ attr_accessor payload: Sentdm::InboundMessageEventPayload?
19
+
20
+ attr_reader timestamp: String?
21
+
22
+ def timestamp=: (String) -> String
23
+
24
+ def initialize: (
25
+ ?event: String?,
26
+ ?field: String,
27
+ ?payload: Sentdm::InboundMessageEventPayload?,
28
+ ?timestamp: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ event: String?,
33
+ field: String,
34
+ payload: Sentdm::InboundMessageEventPayload?,
35
+ timestamp: String
36
+ }
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,69 @@
1
+ module Sentdm
2
+ module Models
3
+ type inbound_message_event_payload =
4
+ {
5
+ account_id: String,
6
+ channel: String,
7
+ inbound_number: String,
8
+ message_id: String,
9
+ outbound_number: String,
10
+ received_at: String,
11
+ text: String?,
12
+ updated_at: String
13
+ }
14
+
15
+ class InboundMessageEventPayload < Sentdm::Internal::Type::BaseModel
16
+ attr_reader account_id: String?
17
+
18
+ def account_id=: (String) -> String
19
+
20
+ attr_reader channel: String?
21
+
22
+ def channel=: (String) -> String
23
+
24
+ attr_reader inbound_number: String?
25
+
26
+ def inbound_number=: (String) -> String
27
+
28
+ attr_reader message_id: String?
29
+
30
+ def message_id=: (String) -> String
31
+
32
+ attr_reader outbound_number: String?
33
+
34
+ def outbound_number=: (String) -> String
35
+
36
+ attr_reader received_at: String?
37
+
38
+ def received_at=: (String) -> String
39
+
40
+ attr_accessor text: String?
41
+
42
+ attr_reader updated_at: String?
43
+
44
+ def updated_at=: (String) -> String
45
+
46
+ def initialize: (
47
+ ?account_id: String,
48
+ ?channel: String,
49
+ ?inbound_number: String,
50
+ ?message_id: String,
51
+ ?outbound_number: String,
52
+ ?received_at: String,
53
+ ?text: String?,
54
+ ?updated_at: String
55
+ ) -> void
56
+
57
+ def to_hash: -> {
58
+ account_id: String,
59
+ channel: String,
60
+ inbound_number: String,
61
+ message_id: String,
62
+ outbound_number: String,
63
+ received_at: String,
64
+ text: String?,
65
+ updated_at: String
66
+ }
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,39 @@
1
+ module Sentdm
2
+ module Models
3
+ type message_event =
4
+ {
5
+ event: String?,
6
+ field: String,
7
+ payload: Sentdm::MessageEventPayload?,
8
+ timestamp: String
9
+ }
10
+
11
+ class MessageEvent < Sentdm::Internal::Type::BaseModel
12
+ attr_accessor event: String?
13
+
14
+ attr_reader field: String?
15
+
16
+ def field=: (String) -> String
17
+
18
+ attr_accessor payload: Sentdm::MessageEventPayload?
19
+
20
+ attr_reader timestamp: String?
21
+
22
+ def timestamp=: (String) -> String
23
+
24
+ def initialize: (
25
+ ?event: String?,
26
+ ?field: String,
27
+ ?payload: Sentdm::MessageEventPayload?,
28
+ ?timestamp: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ event: String?,
33
+ field: String,
34
+ payload: Sentdm::MessageEventPayload?,
35
+ timestamp: String
36
+ }
37
+ end
38
+ end
39
+ end