sentdm 0.7.0 → 0.9.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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/models/api_response_of_contact.rb +11 -8
  6. data/lib/sentdm/models/api_response_of_profile_detail.rb +8 -8
  7. data/lib/sentdm/models/api_response_of_user.rb +8 -8
  8. data/lib/sentdm/models/api_response_template.rb +8 -8
  9. data/lib/sentdm/models/api_response_webhook.rb +6 -6
  10. data/lib/sentdm/models/brands_brand_data.rb +6 -6
  11. data/lib/sentdm/models/contact_delete_params.rb +1 -1
  12. data/lib/sentdm/models/contact_list_response.rb +11 -11
  13. data/lib/sentdm/models/{api_error.rb → error_detail.rb} +1 -1
  14. data/lib/sentdm/models/me_retrieve_response.rb +37 -23
  15. data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -9
  16. data/lib/sentdm/models/message_retrieve_status_response.rb +9 -9
  17. data/lib/sentdm/models/message_send_params.rb +5 -3
  18. data/lib/sentdm/models/message_send_response.rb +9 -9
  19. data/lib/sentdm/models/{mutation_request_base.rb → mutation_request.rb} +2 -2
  20. data/lib/sentdm/models/number_lookup_response.rb +6 -6
  21. data/lib/sentdm/models/pagination_meta.rb +3 -3
  22. data/lib/sentdm/models/{profile_complete_setup_params.rb → profile_complete_params.rb} +3 -3
  23. data/lib/sentdm/models/{profile_complete_setup_response.rb → profile_complete_response.rb} +1 -1
  24. data/lib/sentdm/models/profile_create_params.rb +20 -23
  25. data/lib/sentdm/models/profile_delete_params.rb +1 -1
  26. data/lib/sentdm/models/profile_detail.rb +12 -22
  27. data/lib/sentdm/models/profile_list_response.rb +9 -9
  28. data/lib/sentdm/models/profile_update_params.rb +9 -13
  29. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +6 -6
  30. data/lib/sentdm/models/profiles/base_dto.rb +32 -0
  31. data/lib/sentdm/models/profiles/campaign_create_params.rb +2 -2
  32. data/lib/sentdm/models/profiles/campaign_delete_params.rb +1 -1
  33. data/lib/sentdm/models/profiles/campaign_list_response.rb +6 -6
  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 +1 -2
  36. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +2 -2
  37. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +1 -4
  38. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +2 -4
  39. data/lib/sentdm/models/template_create_params.rb +3 -2
  40. data/lib/sentdm/models/template_definition.rb +8 -12
  41. data/lib/sentdm/models/template_list_response.rb +11 -11
  42. data/lib/sentdm/models/template_update_params.rb +3 -2
  43. data/lib/sentdm/models/user_list_response.rb +9 -9
  44. data/lib/sentdm/models/user_remove_params.rb +1 -1
  45. data/lib/sentdm/models/webhook_list_event_types_response.rb +6 -6
  46. data/lib/sentdm/models/webhook_list_events_response.rb +6 -6
  47. data/lib/sentdm/models/webhook_list_response.rb +6 -6
  48. data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
  49. data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -6
  50. data/lib/sentdm/models/webhook_test_response.rb +6 -6
  51. data/lib/sentdm/models.rb +4 -6
  52. data/lib/sentdm/resources/messages.rb +1 -1
  53. data/lib/sentdm/resources/profiles/campaigns.rb +2 -2
  54. data/lib/sentdm/resources/profiles.rb +12 -12
  55. data/lib/sentdm/resources/templates.rb +2 -2
  56. data/lib/sentdm/version.rb +1 -1
  57. data/lib/sentdm.rb +5 -5
  58. data/rbi/sentdm/models/api_response_of_contact.rbi +10 -10
  59. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +10 -10
  60. data/rbi/sentdm/models/api_response_of_user.rbi +10 -10
  61. data/rbi/sentdm/models/api_response_template.rbi +10 -10
  62. data/rbi/sentdm/models/api_response_webhook.rbi +8 -8
  63. data/rbi/sentdm/models/brands_brand_data.rbi +6 -6
  64. data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
  65. data/rbi/sentdm/models/contact_list_response.rbi +13 -13
  66. data/rbi/sentdm/models/{api_error.rbi → error_detail.rbi} +2 -2
  67. data/rbi/sentdm/models/me_retrieve_response.rbi +37 -25
  68. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +11 -11
  69. data/rbi/sentdm/models/message_retrieve_status_response.rbi +11 -11
  70. data/rbi/sentdm/models/message_send_params.rbi +6 -3
  71. data/rbi/sentdm/models/message_send_response.rbi +11 -11
  72. data/rbi/sentdm/models/{mutation_request_base.rbi → mutation_request.rbi} +2 -2
  73. data/rbi/sentdm/models/number_lookup_response.rbi +8 -8
  74. data/rbi/sentdm/models/pagination_meta.rbi +3 -3
  75. data/rbi/sentdm/models/{profile_complete_setup_params.rbi → profile_complete_params.rbi} +2 -2
  76. data/rbi/sentdm/models/{profile_complete_setup_response.rbi → profile_complete_response.rbi} +1 -1
  77. data/rbi/sentdm/models/profile_create_params.rbi +27 -33
  78. data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
  79. data/rbi/sentdm/models/profile_detail.rbi +9 -22
  80. data/rbi/sentdm/models/profile_list_response.rbi +11 -11
  81. data/rbi/sentdm/models/profile_update_params.rbi +12 -20
  82. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +8 -8
  83. data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
  84. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +2 -2
  85. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -1
  86. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +8 -8
  87. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +2 -2
  88. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -2
  89. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +2 -2
  90. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -3
  91. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -4
  92. data/rbi/sentdm/models/template_create_params.rbi +4 -2
  93. data/rbi/sentdm/models/template_definition.rbi +8 -10
  94. data/rbi/sentdm/models/template_list_response.rbi +13 -13
  95. data/rbi/sentdm/models/template_update_params.rbi +4 -2
  96. data/rbi/sentdm/models/user_list_response.rbi +11 -11
  97. data/rbi/sentdm/models/user_remove_params.rbi +1 -1
  98. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +8 -8
  99. data/rbi/sentdm/models/webhook_list_events_response.rbi +8 -8
  100. data/rbi/sentdm/models/webhook_list_response.rbi +8 -8
  101. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
  102. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -8
  103. data/rbi/sentdm/models/webhook_test_response.rbi +8 -8
  104. data/rbi/sentdm/models.rbi +4 -6
  105. data/rbi/sentdm/resources/messages.rbi +2 -1
  106. data/rbi/sentdm/resources/profiles/campaigns.rbi +2 -2
  107. data/rbi/sentdm/resources/profiles.rbi +20 -26
  108. data/rbi/sentdm/resources/templates.rbi +4 -2
  109. data/sig/sentdm/models/api_response_of_contact.rbs +4 -4
  110. data/sig/sentdm/models/api_response_of_profile_detail.rbs +4 -4
  111. data/sig/sentdm/models/api_response_of_user.rbs +4 -4
  112. data/sig/sentdm/models/api_response_template.rbs +4 -4
  113. data/sig/sentdm/models/api_response_webhook.rbs +4 -4
  114. data/sig/sentdm/models/contact_delete_params.rbs +1 -1
  115. data/sig/sentdm/models/contact_list_response.rbs +4 -4
  116. data/sig/sentdm/models/{api_error.rbs → error_detail.rbs} +2 -2
  117. data/sig/sentdm/models/me_retrieve_response.rbs +4 -4
  118. data/sig/sentdm/models/message_retrieve_activities_response.rbs +4 -4
  119. data/sig/sentdm/models/message_retrieve_status_response.rbs +4 -4
  120. data/sig/sentdm/models/message_send_response.rbs +4 -4
  121. data/sig/sentdm/models/{mutation_request_base.rbs → mutation_request.rbs} +2 -2
  122. data/sig/sentdm/models/number_lookup_response.rbs +4 -4
  123. data/sig/sentdm/models/{profile_complete_setup_params.rbs → profile_complete_params.rbs} +2 -2
  124. data/sig/sentdm/models/profile_complete_response.rbs +5 -0
  125. data/sig/sentdm/models/profile_delete_params.rbs +1 -1
  126. data/sig/sentdm/models/profile_list_response.rbs +4 -4
  127. data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +4 -4
  128. data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
  129. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +1 -1
  130. data/sig/sentdm/models/profiles/campaign_list_response.rbs +4 -4
  131. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +2 -2
  132. data/sig/sentdm/models/template_list_response.rbs +4 -4
  133. data/sig/sentdm/models/user_list_response.rbs +4 -4
  134. data/sig/sentdm/models/user_remove_params.rbs +1 -1
  135. data/sig/sentdm/models/webhook_list_event_types_response.rbs +4 -4
  136. data/sig/sentdm/models/webhook_list_events_response.rbs +4 -4
  137. data/sig/sentdm/models/webhook_list_response.rbs +4 -4
  138. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
  139. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +4 -4
  140. data/sig/sentdm/models/webhook_test_response.rbs +4 -4
  141. data/sig/sentdm/models.rbs +4 -6
  142. data/sig/sentdm/resources/profiles.rbs +1 -1
  143. metadata +17 -17
  144. data/lib/sentdm/models/base_dto.rb +0 -30
  145. data/rbi/sentdm/models/base_dto.rbi +0 -49
  146. data/sig/sentdm/models/base_dto.rbs +0 -25
  147. data/sig/sentdm/models/profile_complete_setup_response.rbs +0 -5
@@ -54,11 +54,11 @@ module Sentdm
54
54
  #
55
55
  # @param allow_template_sharing [Boolean] Body param: Whether templates are shared across profiles (default: false)
56
56
  #
57
- # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for this profile. Required when billing_model is "pr
57
+ # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
58
58
  #
59
59
  # @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (d
60
60
  #
61
- # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC information for this profile (optional).
61
+ # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
62
62
  #
63
63
  # @param description [String, nil] Body param: Profile description (optional)
64
64
  #
@@ -74,13 +74,13 @@ module Sentdm
74
74
  #
75
75
  # @param name [String] Body param: Profile name (required)
76
76
  #
77
- # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
77
+ # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
78
78
  #
79
79
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
80
80
  #
81
81
  # @param short_name [String, nil] Body param: Profile short name/abbreviation (optional). Must be 3–11 characters,
82
82
  #
83
- # @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for this profile.
83
+ # @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for a profile.
84
84
  #
85
85
  # @param idempotency_key [String] Header param: Unique key to ensure idempotent request processing. Must be 1-255
86
86
  #
@@ -165,11 +165,11 @@ module Sentdm
165
165
  #
166
166
  # @param allow_template_sharing [Boolean, nil] Body param: Whether templates are shared across profiles (optional)
167
167
  #
168
- # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for this profile. Required when billing_model is "pr
168
+ # @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
169
169
  #
170
170
  # @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (o
171
171
  #
172
- # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC information for this profile (optional).
172
+ # @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
173
173
  #
174
174
  # @param description [String, nil] Body param: Profile description (optional)
175
175
  #
@@ -185,7 +185,7 @@ module Sentdm
185
185
  #
186
186
  # @param name [String, nil] Body param: Profile name (optional)
187
187
  #
188
- # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
188
+ # @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
189
189
  #
190
190
  # @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
191
191
  #
@@ -281,7 +281,7 @@ module Sentdm
281
281
  end
282
282
 
283
283
  # Some parameter documentations has been truncated, see
284
- # {Sentdm::Models::ProfileCompleteSetupParams} for more details.
284
+ # {Sentdm::Models::ProfileCompleteParams} for more details.
285
285
  #
286
286
  # Final step in profile compliance workflow. Validates all prerequisites (general
287
287
  # data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status
@@ -302,7 +302,7 @@ module Sentdm
302
302
  # - If non-TCR with destination country (IsMain=true) → SUBMITTED
303
303
  # - Otherwise → COMPLETED
304
304
  #
305
- # @overload complete_setup(profile_id, web_hook_url:, sandbox: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
305
+ # @overload complete(profile_id, web_hook_url:, sandbox: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
306
306
  #
307
307
  # @param profile_id [String] Path param: Profile ID from route
308
308
  #
@@ -318,9 +318,9 @@ module Sentdm
318
318
  #
319
319
  # @return [Object]
320
320
  #
321
- # @see Sentdm::Models::ProfileCompleteSetupParams
322
- def complete_setup(profile_id, params)
323
- parsed, options = Sentdm::ProfileCompleteSetupParams.dump_request(params)
321
+ # @see Sentdm::Models::ProfileCompleteParams
322
+ def complete(profile_id, params)
323
+ parsed, options = Sentdm::ProfileCompleteParams.dump_request(params)
324
324
  header_params = {idempotency_key: "idempotency-key", x_profile_id: "x-profile-id"}
325
325
  @client.request(
326
326
  method: :post,
@@ -17,7 +17,7 @@ module Sentdm
17
17
  #
18
18
  # @param creation_source [String, nil] Body param: Source of template creation (default: from-api)
19
19
  #
20
- # @param definition [Sentdm::Models::TemplateDefinition] Body param: Template definition including header, body, footer, and buttons
20
+ # @param definition [Sentdm::Models::TemplateDefinition] Body param: Complete definition of a message template including header, body, fo
21
21
  #
22
22
  # @param language [String, nil] Body param: Template language code (e.g., en_US) (optional, auto-detected if not
23
23
  #
@@ -87,7 +87,7 @@ module Sentdm
87
87
  #
88
88
  # @param category [String, nil] Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
89
89
  #
90
- # @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Template definition including header, body, footer, and buttons
90
+ # @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Complete definition of a message template including header, body, fo
91
91
  #
92
92
  # @param language [String, nil] Body param: Template language code (e.g., en_US)
93
93
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.7.0"
4
+ VERSION = "0.9.0"
5
5
  end
data/lib/sentdm.rb CHANGED
@@ -52,9 +52,8 @@ require_relative "sentdm/errors"
52
52
  require_relative "sentdm/internal/transport/base_client"
53
53
  require_relative "sentdm/internal/transport/pooled_net_requester"
54
54
  require_relative "sentdm/client"
55
- require_relative "sentdm/models/mutation_request_base"
56
- require_relative "sentdm/models/base_dto"
57
- require_relative "sentdm/models/api_error"
55
+ require_relative "sentdm/models/mutation_request"
56
+ require_relative "sentdm/models/profiles/base_dto"
58
57
  require_relative "sentdm/models/api_meta"
59
58
  require_relative "sentdm/models/api_response_of_contact"
60
59
  require_relative "sentdm/models/api_response_of_profile_detail"
@@ -71,6 +70,7 @@ require_relative "sentdm/models/contact_response"
71
70
  require_relative "sentdm/models/contact_retrieve_params"
72
71
  require_relative "sentdm/models/contact_update_params"
73
72
  require_relative "sentdm/models/destination_country"
73
+ require_relative "sentdm/models/error_detail"
74
74
  require_relative "sentdm/models/me_retrieve_params"
75
75
  require_relative "sentdm/models/me_retrieve_response"
76
76
  require_relative "sentdm/models/message_retrieve_activities_params"
@@ -83,8 +83,8 @@ require_relative "sentdm/models/number_lookup_params"
83
83
  require_relative "sentdm/models/number_lookup_response"
84
84
  require_relative "sentdm/models/pagination_meta"
85
85
  require_relative "sentdm/models/payment_details"
86
- require_relative "sentdm/models/profile_complete_setup_params"
87
- require_relative "sentdm/models/profile_complete_setup_response"
86
+ require_relative "sentdm/models/profile_complete_params"
87
+ require_relative "sentdm/models/profile_complete_response"
88
88
  require_relative "sentdm/models/profile_create_params"
89
89
  require_relative "sentdm/models/profile_delete_params"
90
90
  require_relative "sentdm/models/profile_detail"
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfContact, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Contact response for v3 API Uses snake_case for JSON property names
12
12
  sig { returns(T.nilable(Sentdm::ContactResponse)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::ContactResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
19
- sig { returns(T.nilable(Sentdm::APIError)) }
18
+ # Error information
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -40,17 +40,17 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::ContactResponse::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Contact response for v3 API Uses snake_case for JSON property names
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::ContactResponse),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfProfileDetail, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Detailed profile response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::ProfileDetail)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::ProfileDetail::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
19
- sig { returns(T.nilable(Sentdm::APIError)) }
18
+ # Error information
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -40,17 +40,17 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::ProfileDetail::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Detailed profile response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::ProfileDetail),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseOfUser, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # User response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::UserResponse)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::UserResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
19
- sig { returns(T.nilable(Sentdm::APIError)) }
18
+ # Error information
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -40,17 +40,17 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::UserResponse::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # User response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::UserResponse),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }
@@ -8,21 +8,21 @@ module Sentdm
8
8
  T.any(Sentdm::APIResponseTemplate, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Template response for v3 API
12
12
  sig { returns(T.nilable(Sentdm::Template)) }
13
13
  attr_reader :data
14
14
 
15
15
  sig { params(data: T.nilable(Sentdm::Template::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
19
- sig { returns(T.nilable(Sentdm::APIError)) }
18
+ # Error information
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -40,17 +40,17 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::Template::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The response data (null if error)
49
+ # Template response for v3 API
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::Template),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }
@@ -15,14 +15,14 @@ module Sentdm
15
15
  sig { params(data: T.nilable(Sentdm::WebhookResponse::OrHash)).void }
16
16
  attr_writer :data
17
17
 
18
- # Error details (null if successful)
19
- sig { returns(T.nilable(Sentdm::APIError)) }
18
+ # Error information
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
- # Metadata about the request and response
25
+ # Request and response metadata
26
26
  sig { returns(T.nilable(Sentdm::APIMeta)) }
27
27
  attr_reader :meta
28
28
 
@@ -40,7 +40,7 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::WebhookResponse::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
@@ -48,9 +48,9 @@ module Sentdm
48
48
  def self.new(
49
49
  # The response data (null if error)
50
50
  data: nil,
51
- # Error details (null if successful)
51
+ # Error information
52
52
  error: nil,
53
- # Metadata about the request and response
53
+ # Request and response metadata
54
54
  meta: nil,
55
55
  # Indicates whether the request was successful
56
56
  success: nil
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::WebhookResponse),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }
@@ -8,7 +8,7 @@ module Sentdm
8
8
  T.any(Sentdm::BrandsBrandData, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # Compliance and TCR-related information
11
+ # Compliance and TCR information for brand registration
12
12
  sig do
13
13
  returns(
14
14
  Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
@@ -24,7 +24,7 @@ module Sentdm
24
24
  end
25
25
  attr_writer :compliance
26
26
 
27
- # Contact information for the brand
27
+ # Contact information for brand KYC
28
28
  sig do
29
29
  returns(
30
30
  Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
@@ -40,7 +40,7 @@ module Sentdm
40
40
  end
41
41
  attr_writer :contact
42
42
 
43
- # Business details and address information
43
+ # Business details and address for brand KYC
44
44
  sig do
45
45
  returns(
46
46
  T.nilable(
@@ -74,11 +74,11 @@ module Sentdm
74
74
  ).returns(T.attached_class)
75
75
  end
76
76
  def self.new(
77
- # Compliance and TCR-related information
77
+ # Compliance and TCR information for brand registration
78
78
  compliance:,
79
- # Contact information for the brand
79
+ # Contact information for brand KYC
80
80
  contact:,
81
- # Business details and address information
81
+ # Business details and address for brand KYC
82
82
  business: nil
83
83
  )
84
84
  end
@@ -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::ContactDeleteParams::Body, Sentdm::Internal::AnyHash)
@@ -8,7 +8,7 @@ module Sentdm
8
8
  T.any(Sentdm::Models::ContactListResponse, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The response data (null if error)
11
+ # Paginated list of contacts response
12
12
  sig { returns(T.nilable(Sentdm::Models::ContactListResponse::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)
23
- sig { returns(T.nilable(Sentdm::APIError)) }
22
+ # Error information
23
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
24
24
  attr_reader :error
25
25
 
26
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
26
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::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
 
@@ -44,17 +44,17 @@ module Sentdm
44
44
  sig do
45
45
  params(
46
46
  data: T.nilable(Sentdm::Models::ContactListResponse::Data::OrHash),
47
- error: T.nilable(Sentdm::APIError::OrHash),
47
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
48
48
  meta: Sentdm::APIMeta::OrHash,
49
49
  success: T::Boolean
50
50
  ).returns(T.attached_class)
51
51
  end
52
52
  def self.new(
53
- # The response data (null if error)
53
+ # Paginated list of contacts 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
@@ -65,7 +65,7 @@ module Sentdm
65
65
  override.returns(
66
66
  {
67
67
  data: T.nilable(Sentdm::Models::ContactListResponse::Data),
68
- error: T.nilable(Sentdm::APIError),
68
+ error: T.nilable(Sentdm::ErrorDetail),
69
69
  meta: Sentdm::APIMeta,
70
70
  success: T::Boolean
71
71
  }
@@ -90,14 +90,14 @@ module Sentdm
90
90
  sig { params(contacts: T::Array[Sentdm::ContactResponse::OrHash]).void }
91
91
  attr_writer :contacts
92
92
 
93
- # Pagination metadata
93
+ # Pagination metadata for list responses
94
94
  sig { returns(T.nilable(Sentdm::PaginationMeta)) }
95
95
  attr_reader :pagination
96
96
 
97
97
  sig { params(pagination: Sentdm::PaginationMeta::OrHash).void }
98
98
  attr_writer :pagination
99
99
 
100
- # The response data (null if error)
100
+ # Paginated list of contacts response
101
101
  sig do
102
102
  params(
103
103
  contacts: T::Array[Sentdm::ContactResponse::OrHash],
@@ -107,7 +107,7 @@ module Sentdm
107
107
  def self.new(
108
108
  # List of contacts
109
109
  contacts: nil,
110
- # Pagination metadata
110
+ # Pagination metadata for list responses
111
111
  pagination: nil
112
112
  )
113
113
  end
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Sentdm
4
4
  module Models
5
- class APIError < Sentdm::Internal::Type::BaseModel
5
+ class ErrorDetail < Sentdm::Internal::Type::BaseModel
6
6
  OrHash =
7
- T.type_alias { T.any(Sentdm::APIError, Sentdm::Internal::AnyHash) }
7
+ T.type_alias { T.any(Sentdm::ErrorDetail, Sentdm::Internal::AnyHash) }
8
8
 
9
9
  # Machine-readable error code (e.g., "RESOURCE_001")
10
10
  sig { returns(T.nilable(String)) }