sentdm 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +27 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brand_business_info.rb +114 -0
- data/lib/sentdm/models/brand_compliance_info.rb +59 -0
- data/lib/sentdm/models/brand_contact_info.rb +58 -0
- data/lib/sentdm/models/brands_brand_data.rb +34 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -295
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +139 -0
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -242
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +84 -0
- data/lib/sentdm/models/payment_details.rb +40 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -345
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +650 -0
- data/lib/sentdm/models/profile_list_response.rb +12 -815
- data/lib/sentdm/models/profile_settings.rb +85 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -345
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/template.rb +102 -0
- data/lib/sentdm/models/template_list_response.rb +12 -258
- data/lib/sentdm/models/user_list_response.rb +12 -249
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +94 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -157
- data/lib/sentdm/models/webhook_list_response.rb +12 -276
- data/lib/sentdm/models/webhook_response.rb +120 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +52 -0
- data/lib/sentdm/resources/contacts.rb +8 -8
- data/lib/sentdm/resources/conversations.rb +4 -4
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +6 -6
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +32 -22
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brand_business_info.rbi +162 -0
- data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
- data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -522
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +56 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -546
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +918 -0
- data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
- data/rbi/sentdm/models/profile_settings.rbi +102 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -546
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/template.rbi +139 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -464
- data/rbi/sentdm/models/user_list_response.rbi +16 -444
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +131 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -475
- data/rbi/sentdm/models/webhook_response.rbi +153 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +54 -0
- data/rbi/sentdm/resources/contacts.rbi +4 -4
- data/rbi/sentdm/resources/conversations.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +3 -3
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brand_business_info.rbs +89 -0
- data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
- data/sig/sentdm/models/brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -263
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -263
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +461 -0
- data/sig/sentdm/models/profile_list_response.rbs +20 -606
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -263
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/template.rbs +84 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -230
- data/sig/sentdm/models/user_list_response.rbs +20 -224
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +79 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -255
- data/sig/sentdm/models/webhook_response.rbs +110 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +52 -0
- data/sig/sentdm/resources/contacts.rbs +4 -4
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +98 -68
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
- data/lib/sentdm/models/contact_update_response.rb +0 -249
- data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
- data/lib/sentdm/models/conversation_list_response.rb +0 -433
- data/lib/sentdm/models/profile_create_response.rb +0 -760
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
- data/lib/sentdm/models/profile_update_response.rb +0 -760
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
- data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
- data/lib/sentdm/models/template_create_response.rb +0 -209
- data/lib/sentdm/models/template_retrieve_response.rb +0 -209
- data/lib/sentdm/models/template_update_response.rb +0 -209
- data/lib/sentdm/models/user_invite_response.rb +0 -201
- data/lib/sentdm/models/user_retrieve_response.rb +0 -201
- data/lib/sentdm/models/user_update_role_response.rb +0 -201
- data/lib/sentdm/models/webhook_create_response.rb +0 -229
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
- data/lib/sentdm/models/webhook_update_response.rb +0 -229
- data/rbi/sentdm/models/contact_create_response.rbi +0 -407
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
- data/rbi/sentdm/models/contact_update_response.rbi +0 -407
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
- data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
- data/rbi/sentdm/models/template_create_response.rbi +0 -349
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
- data/rbi/sentdm/models/template_update_response.rbi +0 -349
- data/rbi/sentdm/models/user_invite_response.rbi +0 -336
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
- data/sig/sentdm/models/contact_create_response.rbs +0 -216
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
- data/sig/sentdm/models/contact_update_response.rbs +0 -216
- data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
- data/sig/sentdm/models/conversation_list_response.rbs +0 -404
- data/sig/sentdm/models/profile_create_response.rbs +0 -559
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
- data/sig/sentdm/models/profile_update_response.rbs +0 -559
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
- data/sig/sentdm/models/template_create_response.rbs +0 -182
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
- data/sig/sentdm/models/template_update_response.rbs +0 -182
- data/sig/sentdm/models/user_invite_response.rbs +0 -177
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/user_update_role_response.rbs +0 -177
- data/sig/sentdm/models/webhook_create_response.rbs +0 -208
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
- data/sig/sentdm/models/webhook_update_response.rbs +0 -208
|
@@ -22,23 +22,17 @@ module Sentdm
|
|
|
22
22
|
attr_writer :data
|
|
23
23
|
|
|
24
24
|
# Error information
|
|
25
|
-
sig { returns(T.nilable(Sentdm::
|
|
25
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
26
26
|
attr_reader :error
|
|
27
27
|
|
|
28
|
-
sig
|
|
29
|
-
params(
|
|
30
|
-
error: T.nilable(Sentdm::Models::MeRetrieveResponse::Error::OrHash)
|
|
31
|
-
).void
|
|
32
|
-
end
|
|
28
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
33
29
|
attr_writer :error
|
|
34
30
|
|
|
35
31
|
# Request and response metadata
|
|
36
|
-
sig { returns(T.nilable(Sentdm::
|
|
32
|
+
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
37
33
|
attr_reader :meta
|
|
38
34
|
|
|
39
|
-
sig
|
|
40
|
-
params(meta: Sentdm::Models::MeRetrieveResponse::Meta::OrHash).void
|
|
41
|
-
end
|
|
35
|
+
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
42
36
|
attr_writer :meta
|
|
43
37
|
|
|
44
38
|
# Indicates whether the request was successful
|
|
@@ -52,8 +46,8 @@ module Sentdm
|
|
|
52
46
|
sig do
|
|
53
47
|
params(
|
|
54
48
|
data: T.nilable(Sentdm::Models::MeRetrieveResponse::Data::OrHash),
|
|
55
|
-
error: T.nilable(Sentdm::
|
|
56
|
-
meta: Sentdm::
|
|
49
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
50
|
+
meta: Sentdm::APIMeta::OrHash,
|
|
57
51
|
success: T::Boolean
|
|
58
52
|
).returns(T.attached_class)
|
|
59
53
|
end
|
|
@@ -75,8 +69,8 @@ module Sentdm
|
|
|
75
69
|
override.returns(
|
|
76
70
|
{
|
|
77
71
|
data: T.nilable(Sentdm::Models::MeRetrieveResponse::Data),
|
|
78
|
-
error: T.nilable(Sentdm::
|
|
79
|
-
meta: Sentdm::
|
|
72
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
73
|
+
meta: Sentdm::APIMeta,
|
|
80
74
|
success: T::Boolean
|
|
81
75
|
}
|
|
82
76
|
)
|
|
@@ -188,18 +182,11 @@ module Sentdm
|
|
|
188
182
|
attr_accessor :sending_phone_number_profile_id
|
|
189
183
|
|
|
190
184
|
# Profile configuration settings
|
|
191
|
-
sig
|
|
192
|
-
returns(T.nilable(Sentdm::Models::MeRetrieveResponse::Data::Settings))
|
|
193
|
-
end
|
|
185
|
+
sig { returns(T.nilable(Sentdm::ProfileSettings)) }
|
|
194
186
|
attr_reader :settings
|
|
195
187
|
|
|
196
188
|
sig do
|
|
197
|
-
params(
|
|
198
|
-
settings:
|
|
199
|
-
T.nilable(
|
|
200
|
-
Sentdm::Models::MeRetrieveResponse::Data::Settings::OrHash
|
|
201
|
-
)
|
|
202
|
-
).void
|
|
189
|
+
params(settings: T.nilable(Sentdm::ProfileSettings::OrHash)).void
|
|
203
190
|
end
|
|
204
191
|
attr_writer :settings
|
|
205
192
|
|
|
@@ -240,10 +227,7 @@ module Sentdm
|
|
|
240
227
|
],
|
|
241
228
|
sending_phone_number: T.nilable(String),
|
|
242
229
|
sending_phone_number_profile_id: T.nilable(String),
|
|
243
|
-
settings:
|
|
244
|
-
T.nilable(
|
|
245
|
-
Sentdm::Models::MeRetrieveResponse::Data::Settings::OrHash
|
|
246
|
-
),
|
|
230
|
+
settings: T.nilable(Sentdm::ProfileSettings::OrHash),
|
|
247
231
|
short_name: T.nilable(String),
|
|
248
232
|
status: T.nilable(String),
|
|
249
233
|
type: String
|
|
@@ -316,8 +300,7 @@ module Sentdm
|
|
|
316
300
|
T::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile],
|
|
317
301
|
sending_phone_number: T.nilable(String),
|
|
318
302
|
sending_phone_number_profile_id: T.nilable(String),
|
|
319
|
-
settings:
|
|
320
|
-
T.nilable(Sentdm::Models::MeRetrieveResponse::Data::Settings),
|
|
303
|
+
settings: T.nilable(Sentdm::ProfileSettings),
|
|
321
304
|
short_name: T.nilable(String),
|
|
322
305
|
status: T.nilable(String),
|
|
323
306
|
type: String
|
|
@@ -612,21 +595,10 @@ module Sentdm
|
|
|
612
595
|
attr_accessor :role
|
|
613
596
|
|
|
614
597
|
# Profile configuration settings
|
|
615
|
-
sig
|
|
616
|
-
returns(
|
|
617
|
-
T.nilable(
|
|
618
|
-
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings
|
|
619
|
-
)
|
|
620
|
-
)
|
|
621
|
-
end
|
|
598
|
+
sig { returns(T.nilable(Sentdm::ProfileSettings)) }
|
|
622
599
|
attr_reader :settings
|
|
623
600
|
|
|
624
|
-
sig
|
|
625
|
-
params(
|
|
626
|
-
settings:
|
|
627
|
-
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings::OrHash
|
|
628
|
-
).void
|
|
629
|
-
end
|
|
601
|
+
sig { params(settings: Sentdm::ProfileSettings::OrHash).void }
|
|
630
602
|
attr_writer :settings
|
|
631
603
|
|
|
632
604
|
# Profile short name (abbreviation)
|
|
@@ -646,8 +618,7 @@ module Sentdm
|
|
|
646
618
|
icon: T.nilable(String),
|
|
647
619
|
name: String,
|
|
648
620
|
role: T.nilable(String),
|
|
649
|
-
settings:
|
|
650
|
-
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings::OrHash,
|
|
621
|
+
settings: Sentdm::ProfileSettings::OrHash,
|
|
651
622
|
short_name: T.nilable(String),
|
|
652
623
|
status: T.nilable(String)
|
|
653
624
|
).returns(T.attached_class)
|
|
@@ -684,8 +655,7 @@ module Sentdm
|
|
|
684
655
|
icon: T.nilable(String),
|
|
685
656
|
name: String,
|
|
686
657
|
role: T.nilable(String),
|
|
687
|
-
settings:
|
|
688
|
-
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings,
|
|
658
|
+
settings: Sentdm::ProfileSettings,
|
|
689
659
|
short_name: T.nilable(String),
|
|
690
660
|
status: T.nilable(String)
|
|
691
661
|
}
|
|
@@ -693,327 +663,6 @@ module Sentdm
|
|
|
693
663
|
end
|
|
694
664
|
def to_hash
|
|
695
665
|
end
|
|
696
|
-
|
|
697
|
-
class Settings < Sentdm::Internal::Type::BaseModel
|
|
698
|
-
OrHash =
|
|
699
|
-
T.type_alias do
|
|
700
|
-
T.any(
|
|
701
|
-
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings,
|
|
702
|
-
Sentdm::Internal::AnyHash
|
|
703
|
-
)
|
|
704
|
-
end
|
|
705
|
-
|
|
706
|
-
# Always false. A profile no longer shares contacts with sibling profiles — it
|
|
707
|
-
# sees only what it owns. Retained so existing v3 clients reading
|
|
708
|
-
# allow_contact_sharing keep deserializing; it carries no information.
|
|
709
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
710
|
-
attr_accessor :allow_contact_sharing
|
|
711
|
-
|
|
712
|
-
# Always false. A profile no longer shares templates with sibling profiles.
|
|
713
|
-
# Retained so existing v3 clients reading allow_template_sharing keep
|
|
714
|
-
# deserializing; it carries no information.
|
|
715
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
716
|
-
attr_accessor :allow_template_sharing
|
|
717
|
-
|
|
718
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
719
|
-
sig { returns(T.nilable(String)) }
|
|
720
|
-
attr_accessor :billing_model
|
|
721
|
-
|
|
722
|
-
# Always false. A profile no longer inherits its organization's contacts. Retained
|
|
723
|
-
# so existing v3 clients reading inherit_contacts keep deserializing; it carries
|
|
724
|
-
# no information.
|
|
725
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
726
|
-
attr_accessor :inherit_contacts
|
|
727
|
-
|
|
728
|
-
# Whether this profile inherits TCR brand from the organization
|
|
729
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
730
|
-
attr_accessor :inherit_tcr_brand
|
|
731
|
-
|
|
732
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
733
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
734
|
-
attr_accessor :inherit_tcr_campaign
|
|
735
|
-
|
|
736
|
-
# Always false. A profile no longer inherits its organization's templates.
|
|
737
|
-
# Retained so existing v3 clients reading inherit_templates keep deserializing; it
|
|
738
|
-
# carries no information.
|
|
739
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
740
|
-
attr_accessor :inherit_templates
|
|
741
|
-
|
|
742
|
-
# Profile configuration settings
|
|
743
|
-
sig do
|
|
744
|
-
params(
|
|
745
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
746
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
747
|
-
billing_model: T.nilable(String),
|
|
748
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
749
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
750
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
751
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
752
|
-
).returns(T.attached_class)
|
|
753
|
-
end
|
|
754
|
-
def self.new(
|
|
755
|
-
# Always false. A profile no longer shares contacts with sibling profiles — it
|
|
756
|
-
# sees only what it owns. Retained so existing v3 clients reading
|
|
757
|
-
# allow_contact_sharing keep deserializing; it carries no information.
|
|
758
|
-
allow_contact_sharing: nil,
|
|
759
|
-
# Always false. A profile no longer shares templates with sibling profiles.
|
|
760
|
-
# Retained so existing v3 clients reading allow_template_sharing keep
|
|
761
|
-
# deserializing; it carries no information.
|
|
762
|
-
allow_template_sharing: nil,
|
|
763
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
764
|
-
billing_model: nil,
|
|
765
|
-
# Always false. A profile no longer inherits its organization's contacts. Retained
|
|
766
|
-
# so existing v3 clients reading inherit_contacts keep deserializing; it carries
|
|
767
|
-
# no information.
|
|
768
|
-
inherit_contacts: nil,
|
|
769
|
-
# Whether this profile inherits TCR brand from the organization
|
|
770
|
-
inherit_tcr_brand: nil,
|
|
771
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
772
|
-
inherit_tcr_campaign: nil,
|
|
773
|
-
# Always false. A profile no longer inherits its organization's templates.
|
|
774
|
-
# Retained so existing v3 clients reading inherit_templates keep deserializing; it
|
|
775
|
-
# carries no information.
|
|
776
|
-
inherit_templates: nil
|
|
777
|
-
)
|
|
778
|
-
end
|
|
779
|
-
|
|
780
|
-
sig do
|
|
781
|
-
override.returns(
|
|
782
|
-
{
|
|
783
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
784
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
785
|
-
billing_model: T.nilable(String),
|
|
786
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
787
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
788
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
789
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
790
|
-
}
|
|
791
|
-
)
|
|
792
|
-
end
|
|
793
|
-
def to_hash
|
|
794
|
-
end
|
|
795
|
-
end
|
|
796
|
-
end
|
|
797
|
-
|
|
798
|
-
class Settings < Sentdm::Internal::Type::BaseModel
|
|
799
|
-
OrHash =
|
|
800
|
-
T.type_alias do
|
|
801
|
-
T.any(
|
|
802
|
-
Sentdm::Models::MeRetrieveResponse::Data::Settings,
|
|
803
|
-
Sentdm::Internal::AnyHash
|
|
804
|
-
)
|
|
805
|
-
end
|
|
806
|
-
|
|
807
|
-
# Always false. A profile no longer shares contacts with sibling profiles — it
|
|
808
|
-
# sees only what it owns. Retained so existing v3 clients reading
|
|
809
|
-
# allow_contact_sharing keep deserializing; it carries no information.
|
|
810
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
811
|
-
attr_accessor :allow_contact_sharing
|
|
812
|
-
|
|
813
|
-
# Always false. A profile no longer shares templates with sibling profiles.
|
|
814
|
-
# Retained so existing v3 clients reading allow_template_sharing keep
|
|
815
|
-
# deserializing; it carries no information.
|
|
816
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
817
|
-
attr_accessor :allow_template_sharing
|
|
818
|
-
|
|
819
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
820
|
-
sig { returns(T.nilable(String)) }
|
|
821
|
-
attr_accessor :billing_model
|
|
822
|
-
|
|
823
|
-
# Always false. A profile no longer inherits its organization's contacts. Retained
|
|
824
|
-
# so existing v3 clients reading inherit_contacts keep deserializing; it carries
|
|
825
|
-
# no information.
|
|
826
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
827
|
-
attr_accessor :inherit_contacts
|
|
828
|
-
|
|
829
|
-
# Whether this profile inherits TCR brand from the organization
|
|
830
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
831
|
-
attr_accessor :inherit_tcr_brand
|
|
832
|
-
|
|
833
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
834
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
835
|
-
attr_accessor :inherit_tcr_campaign
|
|
836
|
-
|
|
837
|
-
# Always false. A profile no longer inherits its organization's templates.
|
|
838
|
-
# Retained so existing v3 clients reading inherit_templates keep deserializing; it
|
|
839
|
-
# carries no information.
|
|
840
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
841
|
-
attr_accessor :inherit_templates
|
|
842
|
-
|
|
843
|
-
# Profile configuration settings
|
|
844
|
-
sig do
|
|
845
|
-
params(
|
|
846
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
847
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
848
|
-
billing_model: T.nilable(String),
|
|
849
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
850
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
851
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
852
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
853
|
-
).returns(T.attached_class)
|
|
854
|
-
end
|
|
855
|
-
def self.new(
|
|
856
|
-
# Always false. A profile no longer shares contacts with sibling profiles — it
|
|
857
|
-
# sees only what it owns. Retained so existing v3 clients reading
|
|
858
|
-
# allow_contact_sharing keep deserializing; it carries no information.
|
|
859
|
-
allow_contact_sharing: nil,
|
|
860
|
-
# Always false. A profile no longer shares templates with sibling profiles.
|
|
861
|
-
# Retained so existing v3 clients reading allow_template_sharing keep
|
|
862
|
-
# deserializing; it carries no information.
|
|
863
|
-
allow_template_sharing: nil,
|
|
864
|
-
# Billing model: profile, organization, or profile_and_organization
|
|
865
|
-
billing_model: nil,
|
|
866
|
-
# Always false. A profile no longer inherits its organization's contacts. Retained
|
|
867
|
-
# so existing v3 clients reading inherit_contacts keep deserializing; it carries
|
|
868
|
-
# no information.
|
|
869
|
-
inherit_contacts: nil,
|
|
870
|
-
# Whether this profile inherits TCR brand from the organization
|
|
871
|
-
inherit_tcr_brand: nil,
|
|
872
|
-
# Whether this profile inherits TCR campaign from the organization
|
|
873
|
-
inherit_tcr_campaign: nil,
|
|
874
|
-
# Always false. A profile no longer inherits its organization's templates.
|
|
875
|
-
# Retained so existing v3 clients reading inherit_templates keep deserializing; it
|
|
876
|
-
# carries no information.
|
|
877
|
-
inherit_templates: nil
|
|
878
|
-
)
|
|
879
|
-
end
|
|
880
|
-
|
|
881
|
-
sig do
|
|
882
|
-
override.returns(
|
|
883
|
-
{
|
|
884
|
-
allow_contact_sharing: T.nilable(T::Boolean),
|
|
885
|
-
allow_template_sharing: T.nilable(T::Boolean),
|
|
886
|
-
billing_model: T.nilable(String),
|
|
887
|
-
inherit_contacts: T.nilable(T::Boolean),
|
|
888
|
-
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
889
|
-
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
890
|
-
inherit_templates: T.nilable(T::Boolean)
|
|
891
|
-
}
|
|
892
|
-
)
|
|
893
|
-
end
|
|
894
|
-
def to_hash
|
|
895
|
-
end
|
|
896
|
-
end
|
|
897
|
-
end
|
|
898
|
-
|
|
899
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
900
|
-
OrHash =
|
|
901
|
-
T.type_alias do
|
|
902
|
-
T.any(
|
|
903
|
-
Sentdm::Models::MeRetrieveResponse::Error,
|
|
904
|
-
Sentdm::Internal::AnyHash
|
|
905
|
-
)
|
|
906
|
-
end
|
|
907
|
-
|
|
908
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
909
|
-
sig { returns(T.nilable(String)) }
|
|
910
|
-
attr_reader :code
|
|
911
|
-
|
|
912
|
-
sig { params(code: String).void }
|
|
913
|
-
attr_writer :code
|
|
914
|
-
|
|
915
|
-
# Additional validation error details (field-level errors)
|
|
916
|
-
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
917
|
-
attr_accessor :details
|
|
918
|
-
|
|
919
|
-
# URL to documentation about this error
|
|
920
|
-
sig { returns(T.nilable(String)) }
|
|
921
|
-
attr_accessor :doc_url
|
|
922
|
-
|
|
923
|
-
# Human-readable error message
|
|
924
|
-
sig { returns(T.nilable(String)) }
|
|
925
|
-
attr_reader :message
|
|
926
|
-
|
|
927
|
-
sig { params(message: String).void }
|
|
928
|
-
attr_writer :message
|
|
929
|
-
|
|
930
|
-
# Error information
|
|
931
|
-
sig do
|
|
932
|
-
params(
|
|
933
|
-
code: String,
|
|
934
|
-
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
935
|
-
doc_url: T.nilable(String),
|
|
936
|
-
message: String
|
|
937
|
-
).returns(T.attached_class)
|
|
938
|
-
end
|
|
939
|
-
def self.new(
|
|
940
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
941
|
-
code: nil,
|
|
942
|
-
# Additional validation error details (field-level errors)
|
|
943
|
-
details: nil,
|
|
944
|
-
# URL to documentation about this error
|
|
945
|
-
doc_url: nil,
|
|
946
|
-
# Human-readable error message
|
|
947
|
-
message: nil
|
|
948
|
-
)
|
|
949
|
-
end
|
|
950
|
-
|
|
951
|
-
sig do
|
|
952
|
-
override.returns(
|
|
953
|
-
{
|
|
954
|
-
code: String,
|
|
955
|
-
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
956
|
-
doc_url: T.nilable(String),
|
|
957
|
-
message: String
|
|
958
|
-
}
|
|
959
|
-
)
|
|
960
|
-
end
|
|
961
|
-
def to_hash
|
|
962
|
-
end
|
|
963
|
-
end
|
|
964
|
-
|
|
965
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
966
|
-
OrHash =
|
|
967
|
-
T.type_alias do
|
|
968
|
-
T.any(
|
|
969
|
-
Sentdm::Models::MeRetrieveResponse::Meta,
|
|
970
|
-
Sentdm::Internal::AnyHash
|
|
971
|
-
)
|
|
972
|
-
end
|
|
973
|
-
|
|
974
|
-
# Unique identifier for this request (for tracing and support)
|
|
975
|
-
sig { returns(T.nilable(String)) }
|
|
976
|
-
attr_reader :request_id
|
|
977
|
-
|
|
978
|
-
sig { params(request_id: String).void }
|
|
979
|
-
attr_writer :request_id
|
|
980
|
-
|
|
981
|
-
# Server timestamp when the response was generated
|
|
982
|
-
sig { returns(T.nilable(Time)) }
|
|
983
|
-
attr_reader :timestamp
|
|
984
|
-
|
|
985
|
-
sig { params(timestamp: Time).void }
|
|
986
|
-
attr_writer :timestamp
|
|
987
|
-
|
|
988
|
-
# API version used for this request
|
|
989
|
-
sig { returns(T.nilable(String)) }
|
|
990
|
-
attr_reader :version
|
|
991
|
-
|
|
992
|
-
sig { params(version: String).void }
|
|
993
|
-
attr_writer :version
|
|
994
|
-
|
|
995
|
-
# Request and response metadata
|
|
996
|
-
sig do
|
|
997
|
-
params(request_id: String, timestamp: Time, version: String).returns(
|
|
998
|
-
T.attached_class
|
|
999
|
-
)
|
|
1000
|
-
end
|
|
1001
|
-
def self.new(
|
|
1002
|
-
# Unique identifier for this request (for tracing and support)
|
|
1003
|
-
request_id: nil,
|
|
1004
|
-
# Server timestamp when the response was generated
|
|
1005
|
-
timestamp: nil,
|
|
1006
|
-
# API version used for this request
|
|
1007
|
-
version: nil
|
|
1008
|
-
)
|
|
1009
|
-
end
|
|
1010
|
-
|
|
1011
|
-
sig do
|
|
1012
|
-
override.returns(
|
|
1013
|
-
{ request_id: String, timestamp: Time, version: String }
|
|
1014
|
-
)
|
|
1015
|
-
end
|
|
1016
|
-
def to_hash
|
|
1017
666
|
end
|
|
1018
667
|
end
|
|
1019
668
|
end
|