sentdm 0.5.0 → 0.8.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 (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +31 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/models/api_response_of_contact.rb +9 -6
  6. data/lib/sentdm/models/api_response_of_profile_detail.rb +6 -6
  7. data/lib/sentdm/models/api_response_of_user.rb +6 -6
  8. data/lib/sentdm/models/api_response_template.rb +6 -6
  9. data/lib/sentdm/models/api_response_webhook.rb +4 -4
  10. data/lib/sentdm/models/brands_brand_data.rb +16 -252
  11. data/lib/sentdm/models/contact_delete_params.rb +1 -1
  12. data/lib/sentdm/models/contact_list_response.rb +9 -9
  13. data/lib/sentdm/models/me_retrieve_response.rb +35 -21
  14. data/lib/sentdm/models/message_retrieve_activities_response.rb +7 -7
  15. data/lib/sentdm/models/message_retrieve_status_response.rb +7 -7
  16. data/lib/sentdm/models/message_send_params.rb +5 -3
  17. data/lib/sentdm/models/message_send_response.rb +7 -7
  18. data/lib/sentdm/models/{mutation_request_base.rb → mutation_request.rb} +2 -2
  19. data/lib/sentdm/models/number_lookup_response.rb +4 -4
  20. data/lib/sentdm/models/pagination_meta.rb +3 -3
  21. data/lib/sentdm/models/{profile_complete_setup_params.rb → profile_complete_params.rb} +3 -3
  22. data/lib/sentdm/models/{profile_complete_setup_response.rb → profile_complete_response.rb} +1 -1
  23. data/lib/sentdm/models/profile_create_params.rb +20 -23
  24. data/lib/sentdm/models/profile_delete_params.rb +1 -1
  25. data/lib/sentdm/models/profile_detail.rb +12 -22
  26. data/lib/sentdm/models/profile_list_response.rb +7 -7
  27. data/lib/sentdm/models/profile_update_params.rb +9 -13
  28. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +4 -4
  29. data/lib/sentdm/models/profiles/base_dto.rb +32 -0
  30. data/lib/sentdm/models/profiles/campaign_create_params.rb +2 -2
  31. data/lib/sentdm/models/profiles/campaign_data.rb +5 -26
  32. data/lib/sentdm/models/profiles/campaign_delete_params.rb +1 -1
  33. data/lib/sentdm/models/profiles/campaign_list_response.rb +4 -4
  34. data/lib/sentdm/models/profiles/campaign_update_params.rb +2 -2
  35. data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
  36. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +2 -2
  37. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
  38. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +40 -0
  39. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
  40. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
  41. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
  42. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
  43. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
  44. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
  45. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
  46. data/lib/sentdm/models/template_create_params.rb +3 -2
  47. data/lib/sentdm/models/template_definition.rb +19 -263
  48. data/lib/sentdm/models/template_list_response.rb +9 -9
  49. data/lib/sentdm/models/template_update_params.rb +3 -2
  50. data/lib/sentdm/models/user_list_response.rb +7 -7
  51. data/lib/sentdm/models/user_remove_params.rb +1 -1
  52. data/lib/sentdm/models/webhook_list_event_types_response.rb +4 -4
  53. data/lib/sentdm/models/webhook_list_events_response.rb +4 -4
  54. data/lib/sentdm/models/webhook_list_response.rb +4 -4
  55. data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
  56. data/lib/sentdm/models/webhook_rotate_secret_response.rb +4 -4
  57. data/lib/sentdm/models/webhook_test_response.rb +4 -4
  58. data/lib/sentdm/models.rb +29 -4
  59. data/lib/sentdm/resources/messages.rb +1 -1
  60. data/lib/sentdm/resources/profiles/campaigns.rb +2 -2
  61. data/lib/sentdm/resources/profiles.rb +12 -12
  62. data/lib/sentdm/resources/templates.rb +2 -2
  63. data/lib/sentdm/version.rb +1 -1
  64. data/lib/sentdm.rb +14 -4
  65. data/rbi/sentdm/models/api_response_of_contact.rbi +6 -6
  66. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +6 -6
  67. data/rbi/sentdm/models/api_response_of_user.rbi +6 -6
  68. data/rbi/sentdm/models/api_response_template.rbi +6 -6
  69. data/rbi/sentdm/models/api_response_webhook.rbi +4 -4
  70. data/rbi/sentdm/models/brands_brand_data.rbi +53 -355
  71. data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
  72. data/rbi/sentdm/models/contact_list_response.rbi +9 -9
  73. data/rbi/sentdm/models/me_retrieve_response.rbi +33 -21
  74. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +7 -7
  75. data/rbi/sentdm/models/message_retrieve_status_response.rbi +7 -7
  76. data/rbi/sentdm/models/message_send_params.rbi +6 -3
  77. data/rbi/sentdm/models/message_send_response.rbi +7 -7
  78. data/rbi/sentdm/models/{mutation_request_base.rbi → mutation_request.rbi} +2 -2
  79. data/rbi/sentdm/models/number_lookup_response.rbi +4 -4
  80. data/rbi/sentdm/models/pagination_meta.rbi +3 -3
  81. data/rbi/sentdm/models/{profile_complete_setup_params.rbi → profile_complete_params.rbi} +2 -2
  82. data/rbi/sentdm/models/{profile_complete_setup_response.rbi → profile_complete_response.rbi} +1 -1
  83. data/rbi/sentdm/models/profile_create_params.rbi +27 -33
  84. data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
  85. data/rbi/sentdm/models/profile_detail.rbi +9 -22
  86. data/rbi/sentdm/models/profile_list_response.rbi +7 -7
  87. data/rbi/sentdm/models/profile_update_params.rbi +12 -20
  88. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +4 -4
  89. data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
  90. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +2 -2
  91. data/rbi/sentdm/models/profiles/campaign_data.rbi +14 -49
  92. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -1
  93. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +4 -4
  94. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +2 -2
  95. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
  96. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +2 -2
  97. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
  98. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +76 -0
  99. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -0
  100. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
  101. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +60 -0
  102. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -0
  103. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
  104. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
  105. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
  106. data/rbi/sentdm/models/template_create_params.rbi +4 -2
  107. data/rbi/sentdm/models/template_definition.rbi +82 -415
  108. data/rbi/sentdm/models/template_list_response.rbi +9 -9
  109. data/rbi/sentdm/models/template_update_params.rbi +4 -2
  110. data/rbi/sentdm/models/user_list_response.rbi +7 -7
  111. data/rbi/sentdm/models/user_remove_params.rbi +1 -1
  112. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +4 -4
  113. data/rbi/sentdm/models/webhook_list_events_response.rbi +4 -4
  114. data/rbi/sentdm/models/webhook_list_response.rbi +4 -4
  115. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
  116. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +4 -4
  117. data/rbi/sentdm/models/webhook_test_response.rbi +4 -4
  118. data/rbi/sentdm/models.rbi +29 -4
  119. data/rbi/sentdm/resources/messages.rbi +2 -1
  120. data/rbi/sentdm/resources/profiles/campaigns.rbi +2 -2
  121. data/rbi/sentdm/resources/profiles.rbi +20 -26
  122. data/rbi/sentdm/resources/templates.rbi +4 -2
  123. data/sig/sentdm/models/brands_brand_data.rbs +12 -192
  124. data/sig/sentdm/models/contact_delete_params.rbs +1 -1
  125. data/sig/sentdm/models/{mutation_request_base.rbs → mutation_request.rbs} +2 -2
  126. data/sig/sentdm/models/{profile_complete_setup_params.rbs → profile_complete_params.rbs} +2 -2
  127. data/sig/sentdm/models/profile_complete_response.rbs +5 -0
  128. data/sig/sentdm/models/profile_delete_params.rbs +1 -1
  129. data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
  130. data/sig/sentdm/models/profiles/campaign_data.rbs +4 -26
  131. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +1 -1
  132. data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
  133. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +2 -2
  134. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
  135. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +30 -0
  136. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -0
  137. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
  138. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +32 -0
  139. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -0
  140. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
  141. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
  142. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
  143. data/sig/sentdm/models/template_definition.rbs +20 -233
  144. data/sig/sentdm/models/user_remove_params.rbs +1 -1
  145. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
  146. data/sig/sentdm/models.rbs +20 -4
  147. data/sig/sentdm/resources/profiles.rbs +1 -1
  148. metadata +44 -14
  149. data/lib/sentdm/models/base_dto.rb +0 -30
  150. data/rbi/sentdm/models/base_dto.rbi +0 -49
  151. data/sig/sentdm/models/base_dto.rbs +0 -25
  152. data/sig/sentdm/models/profile_complete_setup_response.rbs +0 -5
@@ -8,7 +8,7 @@ module Sentdm
8
8
  T.any(Sentdm::Models::UserListResponse, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # List of users response
12
12
  sig { returns(T.nilable(Sentdm::Models::UserListResponse::Data)) }
13
13
  attr_reader :data
14
14
 
@@ -19,14 +19,14 @@ module Sentdm
19
19
  end
20
20
  attr_writer :data
21
21
 
22
- # Error details (null if successful)
22
+ # Error information
23
23
  sig { returns(T.nilable(Sentdm::APIError)) }
24
24
  attr_reader :error
25
25
 
26
26
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
27
27
  attr_writer :error
28
28
 
29
- # Metadata about the request and response
29
+ # Request and response metadata
30
30
  sig { returns(T.nilable(Sentdm::APIMeta)) }
31
31
  attr_reader :meta
32
32
 
@@ -50,11 +50,11 @@ module Sentdm
50
50
  ).returns(T.attached_class)
51
51
  end
52
52
  def self.new(
53
- # The response data (null if error)
53
+ # List of users response
54
54
  data: nil,
55
- # Error details (null if successful)
55
+ # Error information
56
56
  error: nil,
57
- # Metadata about the request and response
57
+ # Request and response metadata
58
58
  meta: nil,
59
59
  # Indicates whether the request was successful
60
60
  success: nil
@@ -90,7 +90,7 @@ module Sentdm
90
90
  sig { params(users: T::Array[Sentdm::UserResponse::OrHash]).void }
91
91
  attr_writer :users
92
92
 
93
- # The response data (null if error)
93
+ # List of users response
94
94
  sig do
95
95
  params(users: T::Array[Sentdm::UserResponse::OrHash]).returns(
96
96
  T.attached_class
@@ -57,7 +57,7 @@ module Sentdm
57
57
  def to_hash
58
58
  end
59
59
 
60
- class Body < Sentdm::Models::MutationRequestBase
60
+ class Body < Sentdm::Models::MutationRequest
61
61
  OrHash =
62
62
  T.type_alias do
63
63
  T.any(Sentdm::UserRemoveParams::Body, Sentdm::Internal::AnyHash)
@@ -27,14 +27,14 @@ module Sentdm
27
27
  end
28
28
  attr_writer :data
29
29
 
30
- # Error details (null if successful)
30
+ # Error information
31
31
  sig { returns(T.nilable(Sentdm::APIError)) }
32
32
  attr_reader :error
33
33
 
34
34
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
35
35
  attr_writer :error
36
36
 
37
- # Metadata about the request and response
37
+ # Request and response metadata
38
38
  sig { returns(T.nilable(Sentdm::APIMeta)) }
39
39
  attr_reader :meta
40
40
 
@@ -63,9 +63,9 @@ module Sentdm
63
63
  def self.new(
64
64
  # The response data (null if error)
65
65
  data: nil,
66
- # Error details (null if successful)
66
+ # Error information
67
67
  error: nil,
68
- # Metadata about the request and response
68
+ # Request and response metadata
69
69
  meta: nil,
70
70
  # Indicates whether the request was successful
71
71
  success: nil
@@ -25,14 +25,14 @@ module Sentdm
25
25
  end
26
26
  attr_writer :data
27
27
 
28
- # Error details (null if successful)
28
+ # Error information
29
29
  sig { returns(T.nilable(Sentdm::APIError)) }
30
30
  attr_reader :error
31
31
 
32
32
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
33
33
  attr_writer :error
34
34
 
35
- # Metadata about the request and response
35
+ # Request and response metadata
36
36
  sig { returns(T.nilable(Sentdm::APIMeta)) }
37
37
  attr_reader :meta
38
38
 
@@ -59,9 +59,9 @@ module Sentdm
59
59
  def self.new(
60
60
  # The response data (null if error)
61
61
  data: nil,
62
- # Error details (null if successful)
62
+ # Error information
63
63
  error: nil,
64
- # Metadata about the request and response
64
+ # Request and response metadata
65
65
  meta: nil,
66
66
  # Indicates whether the request was successful
67
67
  success: nil
@@ -19,14 +19,14 @@ module Sentdm
19
19
  end
20
20
  attr_writer :data
21
21
 
22
- # Error details (null if successful)
22
+ # Error information
23
23
  sig { returns(T.nilable(Sentdm::APIError)) }
24
24
  attr_reader :error
25
25
 
26
26
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
27
27
  attr_writer :error
28
28
 
29
- # Metadata about the request and response
29
+ # Request and response metadata
30
30
  sig { returns(T.nilable(Sentdm::APIMeta)) }
31
31
  attr_reader :meta
32
32
 
@@ -52,9 +52,9 @@ module Sentdm
52
52
  def self.new(
53
53
  # The response data (null if error)
54
54
  data: nil,
55
- # Error details (null if successful)
55
+ # Error information
56
56
  error: nil,
57
- # Metadata about the request and response
57
+ # Request and response metadata
58
58
  meta: nil,
59
59
  # Indicates whether the request was successful
60
60
  success: nil
@@ -64,7 +64,7 @@ module Sentdm
64
64
  def to_hash
65
65
  end
66
66
 
67
- class Body < Sentdm::Models::MutationRequestBase
67
+ class Body < Sentdm::Models::MutationRequest
68
68
  OrHash =
69
69
  T.type_alias do
70
70
  T.any(
@@ -25,14 +25,14 @@ module Sentdm
25
25
  end
26
26
  attr_writer :data
27
27
 
28
- # Error details (null if successful)
28
+ # Error information
29
29
  sig { returns(T.nilable(Sentdm::APIError)) }
30
30
  attr_reader :error
31
31
 
32
32
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
33
33
  attr_writer :error
34
34
 
35
- # Metadata about the request and response
35
+ # Request and response metadata
36
36
  sig { returns(T.nilable(Sentdm::APIMeta)) }
37
37
  attr_reader :meta
38
38
 
@@ -61,9 +61,9 @@ module Sentdm
61
61
  def self.new(
62
62
  # The response data (null if error)
63
63
  data: nil,
64
- # Error details (null if successful)
64
+ # Error information
65
65
  error: nil,
66
- # Metadata about the request and response
66
+ # Request and response metadata
67
67
  meta: nil,
68
68
  # Indicates whether the request was successful
69
69
  success: nil
@@ -19,14 +19,14 @@ module Sentdm
19
19
  end
20
20
  attr_writer :data
21
21
 
22
- # Error details (null if successful)
22
+ # Error information
23
23
  sig { returns(T.nilable(Sentdm::APIError)) }
24
24
  attr_reader :error
25
25
 
26
26
  sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
27
27
  attr_writer :error
28
28
 
29
- # Metadata about the request and response
29
+ # Request and response metadata
30
30
  sig { returns(T.nilable(Sentdm::APIMeta)) }
31
31
  attr_reader :meta
32
32
 
@@ -52,9 +52,9 @@ module Sentdm
52
52
  def self.new(
53
53
  # The response data (null if error)
54
54
  data: nil,
55
- # Error details (null if successful)
55
+ # Error information
56
56
  error: nil,
57
- # Metadata about the request and response
57
+ # Request and response metadata
58
58
  meta: nil,
59
59
  # Indicates whether the request was successful
60
60
  success: nil
@@ -15,8 +15,6 @@ module Sentdm
15
15
 
16
16
  APIResponseWebhook = Sentdm::Models::APIResponseWebhook
17
17
 
18
- BaseDto = Sentdm::Models::BaseDto
19
-
20
18
  BillingContactInfo = Sentdm::Models::BillingContactInfo
21
19
 
22
20
  BrandsBrandData = Sentdm::Models::BrandsBrandData
@@ -44,7 +42,7 @@ module Sentdm
44
42
 
45
43
  MessageSendParams = Sentdm::Models::MessageSendParams
46
44
 
47
- MutationRequestBase = Sentdm::Models::MutationRequestBase
45
+ MutationRequest = Sentdm::Models::MutationRequest
48
46
 
49
47
  NumberLookupParams = Sentdm::Models::NumberLookupParams
50
48
 
@@ -52,7 +50,7 @@ module Sentdm
52
50
 
53
51
  PaymentDetails = Sentdm::Models::PaymentDetails
54
52
 
55
- ProfileCompleteSetupParams = Sentdm::Models::ProfileCompleteSetupParams
53
+ ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
56
54
 
57
55
  ProfileCreateParams = Sentdm::Models::ProfileCreateParams
58
56
 
@@ -70,6 +68,33 @@ module Sentdm
70
68
 
71
69
  ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
72
70
 
71
+ SentDmServicesCommonContractsPocOsAuthenticationConfig =
72
+ Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
73
+
74
+ SentDmServicesCommonContractsPocOsTemplateBody =
75
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
76
+
77
+ SentDmServicesCommonContractsPocOsTemplateButton =
78
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
79
+
80
+ SentDmServicesCommonContractsPocOsTemplateButtonProps =
81
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
82
+
83
+ SentDmServicesCommonContractsPocOsTemplateFooter =
84
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
85
+
86
+ SentDmServicesCommonContractsPocOsTemplateHeader =
87
+ Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
88
+
89
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo =
90
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
91
+
92
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo =
93
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
94
+
95
+ SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo =
96
+ Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
97
+
73
98
  TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
74
99
 
75
100
  TcrVertical = Sentdm::Models::TcrVertical
@@ -66,7 +66,8 @@ module Sentdm
66
66
  # Body param: Sandbox flag - when true, the operation is simulated without side
67
67
  # effects Useful for testing integrations without actual execution
68
68
  sandbox: nil,
69
- # Body param: Template reference (by id or name, with optional parameters)
69
+ # Body param: SDK-style template reference: resolve by ID or by name, with
70
+ # optional parameters.
70
71
  template: nil,
71
72
  # Body param: List of recipient phone numbers in E.164 format (multi-recipient
72
73
  # fan-out)
@@ -20,7 +20,7 @@ module Sentdm
20
20
  def create(
21
21
  # Path param: Profile ID from route
22
22
  profile_id,
23
- # Body param: Campaign data
23
+ # Body param: Campaign data for create or update operation
24
24
  campaign:,
25
25
  # Body param: Sandbox flag - when true, the operation is simulated without side
26
26
  # effects Useful for testing integrations without actual execution
@@ -55,7 +55,7 @@ module Sentdm
55
55
  campaign_id,
56
56
  # Path param: Profile ID from route
57
57
  profile_id:,
58
- # Body param: Campaign data
58
+ # Body param: Campaign data for create or update operation
59
59
  campaign:,
60
60
  # Body param: Sandbox flag - when true, the operation is simulated without side
61
61
  # effects Useful for testing integrations without actual execution
@@ -75,9 +75,8 @@ module Sentdm
75
75
  allow_contact_sharing: nil,
76
76
  # Body param: Whether templates are shared across profiles (default: false)
77
77
  allow_template_sharing: nil,
78
- # Body param: Billing contact for this profile. Required when billing_model is
79
- # "profile" or "profile_and_organization". Identifies who receives invoices and
80
- # who is responsible for payment.
78
+ # Body param: Billing contact information for a profile. Required when
79
+ # billing_model is "profile" or "profile_and_organization".
81
80
  billing_contact: nil,
82
81
  # Body param: Billing model: profile, organization, or profile_and_organization
83
82
  # (default: profile).
@@ -88,9 +87,8 @@ module Sentdm
88
87
  # - "profile_and_organization": the profile is billed first with the organization
89
88
  # as fallback; billing_contact is required.
90
89
  billing_model: nil,
91
- # Body param: Brand and KYC information for this profile (optional). When
92
- # provided, creates the brand associated with this profile. Cannot be set when
93
- # inherit_tcr_brand is true.
90
+ # Body param: Brand and KYC data grouped into contact, business, and compliance
91
+ # sections
94
92
  brand: nil,
95
93
  # Body param: Profile description (optional)
96
94
  description: nil,
@@ -110,9 +108,9 @@ module Sentdm
110
108
  inherit_templates: nil,
111
109
  # Body param: Profile name (required)
112
110
  name: nil,
113
- # Body param: Payment card details for this profile (optional). Accepted when
114
- # billing_model is "profile" or "profile_and_organization". Not persisted on our
115
- # servers forwarded to the payment processor.
111
+ # Body param: Payment card details for a profile. Accepted when billing_model is
112
+ # "profile" or "profile_and_organization". These details are not stored on our
113
+ # servers and will be forwarded to the payment processor.
116
114
  payment_details: nil,
117
115
  # Body param: Sandbox flag - when true, the operation is simulated without side
118
116
  # effects Useful for testing integrations without actual execution
@@ -121,11 +119,11 @@ module Sentdm
121
119
  # contain only letters, numbers, and spaces, and include at least one letter.
122
120
  # Example: "SALES", "Mkt 2", "Support1".
123
121
  short_name: nil,
124
- # Body param: Direct WhatsApp Business Account credentials for this profile. When
125
- # provided, the profile uses its own WhatsApp Business Account instead of
126
- # inheriting from the organization. When omitted, the profile inherits the
127
- # organization's WhatsApp Business Account (requires the organization to have
128
- # completed WhatsApp Embedded Signup).
122
+ # Body param: Direct WhatsApp Business Account credentials for a profile. Use this
123
+ # when the profile should have its own WhatsApp Business Account instead of
124
+ # inheriting from the organization. Credentials must be obtained from Meta
125
+ # Business Manager by creating a System User with whatsapp_business_messaging and
126
+ # whatsapp_business_management scopes.
129
127
  whatsapp_business_account: nil,
130
128
  # Header param: Unique key to ensure idempotent request processing. Must be 1-255
131
129
  # alphanumeric characters, hyphens, or underscores. Responses are cached for 24
@@ -213,10 +211,8 @@ module Sentdm
213
211
  allow_number_change_during_onboarding: nil,
214
212
  # Body param: Whether templates are shared across profiles (optional)
215
213
  allow_template_sharing: nil,
216
- # Body param: Billing contact for this profile. Required when billing_model is
217
- # "profile" or "profile_and_organization" and no billing contact has been
218
- # configured yet. Identifies who receives invoices and who is responsible for
219
- # payment.
214
+ # Body param: Billing contact information for a profile. Required when
215
+ # billing_model is "profile" or "profile_and_organization".
220
216
  billing_contact: nil,
221
217
  # Body param: Billing model: profile, organization, or profile_and_organization
222
218
  # (optional).
@@ -227,10 +223,8 @@ module Sentdm
227
223
  # - "profile_and_organization": the profile is billed first with the organization
228
224
  # as fallback; billing_contact is required.
229
225
  billing_model: nil,
230
- # Body param: Brand and KYC information for this profile (optional). When
231
- # provided, creates or updates the brand associated with this profile. Cannot be
232
- # set when inherit_tcr_brand is true. Once a brand has been submitted to TCR it
233
- # cannot be modified.
226
+ # Body param: Brand and KYC data grouped into contact, business, and compliance
227
+ # sections
234
228
  brand: nil,
235
229
  # Body param: Profile description (optional)
236
230
  description: nil,
@@ -247,9 +241,9 @@ module Sentdm
247
241
  inherit_templates: nil,
248
242
  # Body param: Profile name (optional)
249
243
  name: nil,
250
- # Body param: Payment card details for this profile (optional). Accepted when
251
- # billing_model is "profile" or "profile_and_organization". Not persisted on our
252
- # servers forwarded to the payment processor.
244
+ # Body param: Payment card details for a profile. Accepted when billing_model is
245
+ # "profile" or "profile_and_organization". These details are not stored on our
246
+ # servers and will be forwarded to the payment processor.
253
247
  payment_details: nil,
254
248
  # Body param: Sandbox flag - when true, the operation is simulated without side
255
249
  # effects Useful for testing integrations without actual execution
@@ -349,7 +343,7 @@ module Sentdm
349
343
  request_options: Sentdm::RequestOptions::OrHash
350
344
  ).returns(T.anything)
351
345
  end
352
- def complete_setup(
346
+ def complete(
353
347
  # Path param: Profile ID from route
354
348
  profile_id,
355
349
  # Body param: Webhook URL to call when profile completion finishes (success or
@@ -26,7 +26,8 @@ module Sentdm
26
26
  category: nil,
27
27
  # Body param: Source of template creation (default: from-api)
28
28
  creation_source: nil,
29
- # Body param: Template definition including header, body, footer, and buttons
29
+ # Body param: Complete definition of a message template including header, body,
30
+ # footer, and buttons
30
31
  definition: nil,
31
32
  # Body param: Template language code (e.g., en_US) (optional, auto-detected if not
32
33
  # provided)
@@ -89,7 +90,8 @@ module Sentdm
89
90
  id,
90
91
  # Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
91
92
  category: nil,
92
- # Body param: Template definition including header, body, footer, and buttons
93
+ # Body param: Complete definition of a message template including header, body,
94
+ # footer, and buttons
93
95
  definition: nil,
94
96
  # Body param: Template language code (e.g., en_US)
95
97
  language: nil,
@@ -2,209 +2,29 @@ module Sentdm
2
2
  module Models
3
3
  type brands_brand_data =
4
4
  {
5
- compliance: Sentdm::BrandsBrandData::Compliance,
6
- contact: Sentdm::BrandsBrandData::Contact,
7
- business: Sentdm::BrandsBrandData::Business?
5
+ compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
6
+ contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
7
+ business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
8
8
  }
9
9
 
10
10
  class BrandsBrandData < Sentdm::Internal::Type::BaseModel
11
- attr_accessor compliance: Sentdm::BrandsBrandData::Compliance
11
+ attr_accessor compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
12
12
 
13
- attr_accessor contact: Sentdm::BrandsBrandData::Contact
13
+ attr_accessor contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
14
14
 
15
- attr_accessor business: Sentdm::BrandsBrandData::Business?
15
+ attr_accessor business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
16
16
 
17
17
  def initialize: (
18
- compliance: Sentdm::BrandsBrandData::Compliance,
19
- contact: Sentdm::BrandsBrandData::Contact,
20
- ?business: Sentdm::BrandsBrandData::Business?
18
+ compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
19
+ contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
20
+ ?business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
21
21
  ) -> void
22
22
 
23
23
  def to_hash: -> {
24
- compliance: Sentdm::BrandsBrandData::Compliance,
25
- contact: Sentdm::BrandsBrandData::Contact,
26
- business: Sentdm::BrandsBrandData::Business?
24
+ compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
25
+ contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
26
+ business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
27
27
  }
28
-
29
- type compliance =
30
- {
31
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
32
- vertical: Sentdm::Models::tcr_vertical,
33
- destination_countries: ::Array[Sentdm::DestinationCountry]?,
34
- expected_messaging_volume: String?,
35
- is_tcr_application: bool?,
36
- notes: String?,
37
- phone_number_prefix: String?,
38
- primary_use_case: String?
39
- }
40
-
41
- class Compliance < Sentdm::Internal::Type::BaseModel
42
- attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
43
-
44
- attr_accessor vertical: Sentdm::Models::tcr_vertical
45
-
46
- attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
47
-
48
- attr_accessor expected_messaging_volume: String?
49
-
50
- attr_accessor is_tcr_application: bool?
51
-
52
- attr_accessor notes: String?
53
-
54
- attr_accessor phone_number_prefix: String?
55
-
56
- attr_accessor primary_use_case: String?
57
-
58
- def initialize: (
59
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
60
- vertical: Sentdm::Models::tcr_vertical,
61
- ?destination_countries: ::Array[Sentdm::DestinationCountry]?,
62
- ?expected_messaging_volume: String?,
63
- ?is_tcr_application: bool?,
64
- ?notes: String?,
65
- ?phone_number_prefix: String?,
66
- ?primary_use_case: String?
67
- ) -> void
68
-
69
- def to_hash: -> {
70
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
71
- vertical: Sentdm::Models::tcr_vertical,
72
- destination_countries: ::Array[Sentdm::DestinationCountry]?,
73
- expected_messaging_volume: String?,
74
- is_tcr_application: bool?,
75
- notes: String?,
76
- phone_number_prefix: String?,
77
- primary_use_case: String?
78
- }
79
- end
80
-
81
- type contact =
82
- {
83
- name: String,
84
- business_name: String?,
85
- email: String?,
86
- phone: String?,
87
- phone_country_code: String?,
88
- role: String?
89
- }
90
-
91
- class Contact < Sentdm::Internal::Type::BaseModel
92
- attr_accessor name: String
93
-
94
- attr_accessor business_name: String?
95
-
96
- attr_accessor email: String?
97
-
98
- attr_accessor phone: String?
99
-
100
- attr_accessor phone_country_code: String?
101
-
102
- attr_accessor role: String?
103
-
104
- def initialize: (
105
- name: String,
106
- ?business_name: String?,
107
- ?email: String?,
108
- ?phone: String?,
109
- ?phone_country_code: String?,
110
- ?role: String?
111
- ) -> void
112
-
113
- def to_hash: -> {
114
- name: String,
115
- business_name: String?,
116
- email: String?,
117
- phone: String?,
118
- phone_country_code: String?,
119
- role: String?
120
- }
121
- end
122
-
123
- type business =
124
- {
125
- city: String?,
126
- country: String?,
127
- country_of_registration: String?,
128
- entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
129
- legal_name: String?,
130
- postal_code: String?,
131
- state: String?,
132
- street: String?,
133
- tax_id: String?,
134
- tax_id_type: String?,
135
- url: String?
136
- }
137
-
138
- class Business < Sentdm::Internal::Type::BaseModel
139
- attr_accessor city: String?
140
-
141
- attr_accessor country: String?
142
-
143
- attr_accessor country_of_registration: String?
144
-
145
- attr_accessor entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?
146
-
147
- attr_accessor legal_name: String?
148
-
149
- attr_accessor postal_code: String?
150
-
151
- attr_accessor state: String?
152
-
153
- attr_accessor street: String?
154
-
155
- attr_accessor tax_id: String?
156
-
157
- attr_accessor tax_id_type: String?
158
-
159
- attr_accessor url: String?
160
-
161
- def initialize: (
162
- ?city: String?,
163
- ?country: String?,
164
- ?country_of_registration: String?,
165
- ?entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
166
- ?legal_name: String?,
167
- ?postal_code: String?,
168
- ?state: String?,
169
- ?street: String?,
170
- ?tax_id: String?,
171
- ?tax_id_type: String?,
172
- ?url: String?
173
- ) -> void
174
-
175
- def to_hash: -> {
176
- city: String?,
177
- country: String?,
178
- country_of_registration: String?,
179
- entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
180
- legal_name: String?,
181
- postal_code: String?,
182
- state: String?,
183
- street: String?,
184
- tax_id: String?,
185
- tax_id_type: String?,
186
- url: String?
187
- }
188
-
189
- type entity_type =
190
- :PRIVATE_PROFIT
191
- | :PUBLIC_PROFIT
192
- | :NON_PROFIT
193
- | :SOLE_PROPRIETOR
194
- | :GOVERNMENT
195
-
196
- module EntityType
197
- extend Sentdm::Internal::Type::Enum
198
-
199
- PRIVATE_PROFIT: :PRIVATE_PROFIT
200
- PUBLIC_PROFIT: :PUBLIC_PROFIT
201
- NON_PROFIT: :NON_PROFIT
202
- SOLE_PROPRIETOR: :SOLE_PROPRIETOR
203
- GOVERNMENT: :GOVERNMENT
204
-
205
- def self?.values: -> ::Array[Sentdm::Models::BrandsBrandData::Business::entity_type]
206
- end
207
- end
208
28
  end
209
29
  end
210
30
  end
@@ -36,7 +36,7 @@ module Sentdm
36
36
 
37
37
  type body = { }
38
38
 
39
- class Body < Sentdm::Models::MutationRequestBase
39
+ class Body < Sentdm::Models::MutationRequest
40
40
  def initialize: -> void
41
41
 
42
42
  def to_hash: -> { }
@@ -1,8 +1,8 @@
1
1
  module Sentdm
2
2
  module Models
3
- type mutation_request_base = { sandbox: bool }
3
+ type mutation_request = { sandbox: bool }
4
4
 
5
- class MutationRequestBase < Sentdm::Internal::Type::BaseModel
5
+ class MutationRequest < Sentdm::Internal::Type::BaseModel
6
6
  attr_reader sandbox: bool?
7
7
 
8
8
  def sandbox=: (bool) -> bool