sentdm 0.18.0 → 0.19.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 +13 -0
- data/README.md +1 -31
- data/lib/sentdm/internal/transport/base_client.rb +2 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +0 -25
- data/lib/sentdm/models/contact_create_response.rb +236 -0
- data/lib/sentdm/models/contact_delete_params.rb +16 -2
- data/lib/sentdm/models/contact_list_response.rb +278 -12
- data/lib/sentdm/models/contact_retrieve_response.rb +236 -0
- data/lib/sentdm/models/contact_update_params.rb +4 -16
- data/lib/sentdm/models/contact_update_response.rb +236 -0
- data/lib/sentdm/models/me_retrieve_response.rb +204 -12
- data/lib/sentdm/models/message_retrieve_activities_response.rb +74 -6
- data/lib/sentdm/models/message_retrieve_status_response.rb +87 -7
- data/lib/sentdm/models/message_send_params.rb +2 -2
- data/lib/sentdm/models/message_send_response.rb +74 -6
- data/lib/sentdm/models/number_lookup_response.rb +74 -6
- data/lib/sentdm/models/profile_complete_response.rb +74 -6
- data/lib/sentdm/models/profile_create_params.rb +423 -9
- data/lib/sentdm/models/profile_create_response.rb +781 -0
- data/lib/sentdm/models/profile_delete_params.rb +16 -2
- data/lib/sentdm/models/profile_list_response.rb +753 -9
- data/lib/sentdm/models/profile_retrieve_response.rb +783 -0
- data/lib/sentdm/models/profile_update_params.rb +423 -9
- data/lib/sentdm/models/profile_update_response.rb +781 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_create_response.rb +459 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
- data/lib/sentdm/models/profiles/campaign_list_response.rb +420 -9
- data/lib/sentdm/models/profiles/campaign_update_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_update_response.rb +459 -0
- data/lib/sentdm/models/template_create_params.rb +889 -3
- data/lib/sentdm/models/template_create_response.rb +197 -0
- data/lib/sentdm/models/template_list_response.rb +242 -12
- data/lib/sentdm/models/template_retrieve_response.rb +197 -0
- data/lib/sentdm/models/template_update_params.rb +889 -3
- data/lib/sentdm/models/template_update_response.rb +197 -0
- data/lib/sentdm/models/user_invite_response.rb +189 -0
- data/lib/sentdm/models/user_list_response.rb +154 -9
- data/lib/sentdm/models/user_remove_params.rb +16 -2
- data/lib/sentdm/models/user_retrieve_response.rb +189 -0
- data/lib/sentdm/models/user_update_role_response.rb +189 -0
- data/lib/sentdm/models/webhook_create_response.rb +204 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +118 -9
- data/lib/sentdm/models/webhook_list_events_response.rb +153 -9
- data/lib/sentdm/models/webhook_list_response.rb +247 -12
- data/lib/sentdm/models/webhook_retrieve_response.rb +204 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
- data/lib/sentdm/models/webhook_test_response.rb +74 -6
- data/lib/sentdm/models/webhook_toggle_status_response.rb +204 -0
- data/lib/sentdm/models/webhook_update_response.rb +204 -0
- data/lib/sentdm/models.rb +0 -77
- data/lib/sentdm/resources/contacts.rb +8 -10
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +8 -8
- 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 +18 -40
- data/rbi/sentdm/models/contact_create_response.rbi +390 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
- data/rbi/sentdm/models/contact_list_response.rbi +505 -16
- data/rbi/sentdm/models/contact_retrieve_response.rbi +392 -0
- data/rbi/sentdm/models/contact_update_params.rbi +4 -20
- data/rbi/sentdm/models/contact_update_response.rbi +390 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +335 -16
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +154 -8
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +171 -11
- data/rbi/sentdm/models/message_send_params.rbi +4 -4
- data/rbi/sentdm/models/message_send_response.rbi +135 -8
- data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
- data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
- data/rbi/sentdm/models/profile_create_params.rbi +810 -12
- data/rbi/sentdm/models/profile_create_response.rbi +1439 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
- data/rbi/sentdm/models/profile_list_response.rbi +1400 -14
- data/rbi/sentdm/models/profile_retrieve_response.rbi +1443 -0
- data/rbi/sentdm/models/profile_update_params.rbi +810 -12
- data/rbi/sentdm/models/profile_update_response.rbi +1439 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +814 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +733 -11
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +814 -0
- data/rbi/sentdm/models/template_create_params.rbi +1701 -4
- data/rbi/sentdm/models/template_create_response.rbi +339 -0
- data/rbi/sentdm/models/template_list_response.rbi +454 -16
- data/rbi/sentdm/models/template_retrieve_response.rbi +345 -0
- data/rbi/sentdm/models/template_update_params.rbi +1701 -4
- data/rbi/sentdm/models/template_update_response.rbi +339 -0
- data/rbi/sentdm/models/user_invite_response.rbi +323 -0
- data/rbi/sentdm/models/user_list_response.rbi +271 -14
- data/rbi/sentdm/models/user_remove_params.rbi +19 -2
- data/rbi/sentdm/models/user_retrieve_response.rbi +323 -0
- data/rbi/sentdm/models/user_update_role_response.rbi +328 -0
- data/rbi/sentdm/models/webhook_create_response.rbi +348 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +247 -12
- data/rbi/sentdm/models/webhook_list_events_response.rbi +314 -12
- data/rbi/sentdm/models/webhook_list_response.rbi +462 -16
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +350 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
- data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +366 -0
- data/rbi/sentdm/models/webhook_update_response.rbi +348 -0
- data/rbi/sentdm/models.rbi +0 -77
- data/rbi/sentdm/resources/contacts.rbi +5 -12
- data/rbi/sentdm/resources/messages.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +13 -9
- data/rbi/sentdm/resources/templates.rbi +6 -5
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/contact_create_response.rbs +209 -0
- data/sig/sentdm/models/contact_delete_params.rbs +10 -6
- data/sig/sentdm/models/contact_list_response.rbs +256 -20
- data/sig/sentdm/models/contact_retrieve_response.rbs +209 -0
- data/sig/sentdm/models/contact_update_params.rbs +0 -5
- data/sig/sentdm/models/contact_update_response.rbs +209 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +71 -9
- data/sig/sentdm/models/message_retrieve_status_response.rbs +95 -13
- data/sig/sentdm/models/message_send_response.rbs +71 -9
- data/sig/sentdm/models/number_lookup_response.rbs +71 -9
- data/sig/sentdm/models/profile_complete_response.rbs +71 -9
- data/sig/sentdm/models/profile_create_params.rbs +363 -12
- data/sig/sentdm/models/profile_create_response.rbs +662 -0
- data/sig/sentdm/models/profile_delete_params.rbs +10 -6
- data/sig/sentdm/models/profile_list_response.rbs +645 -15
- data/sig/sentdm/models/profile_retrieve_response.rbs +662 -0
- data/sig/sentdm/models/profile_update_params.rbs +363 -12
- data/sig/sentdm/models/profile_update_response.rbs +662 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +424 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +396 -13
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +424 -0
- data/sig/sentdm/models/template_create_params.rbs +853 -6
- data/sig/sentdm/models/template_create_response.rbs +177 -0
- data/sig/sentdm/models/template_list_response.rbs +225 -19
- data/sig/sentdm/models/template_retrieve_response.rbs +177 -0
- data/sig/sentdm/models/template_update_params.rbs +851 -4
- data/sig/sentdm/models/template_update_response.rbs +177 -0
- data/sig/sentdm/models/user_invite_response.rbs +170 -0
- data/sig/sentdm/models/user_list_response.rbs +151 -15
- data/sig/sentdm/models/user_remove_params.rbs +10 -6
- data/sig/sentdm/models/user_retrieve_response.rbs +170 -0
- data/sig/sentdm/models/user_update_role_response.rbs +170 -0
- data/sig/sentdm/models/webhook_create_response.rbs +201 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +130 -15
- data/sig/sentdm/models/webhook_list_events_response.rbs +142 -14
- data/sig/sentdm/models/webhook_list_response.rbs +248 -20
- data/sig/sentdm/models/webhook_retrieve_response.rbs +201 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
- data/sig/sentdm/models/webhook_test_response.rbs +71 -9
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +201 -0
- data/sig/sentdm/models/webhook_update_response.rbs +201 -0
- data/sig/sentdm/models.rbs +0 -68
- data/sig/sentdm/resources/contacts.rbs +3 -4
- data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +5 -5
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +56 -122
- data/lib/sentdm/models/api_meta.rb +0 -34
- data/lib/sentdm/models/api_response_of_contact.rb +0 -46
- data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
- data/lib/sentdm/models/api_response_of_user.rb +0 -43
- data/lib/sentdm/models/api_response_template.rb +0 -43
- data/lib/sentdm/models/api_response_webhook.rb +0 -43
- data/lib/sentdm/models/billing_contact_info.rb +0 -47
- data/lib/sentdm/models/brands_brand_data.rb +0 -38
- data/lib/sentdm/models/contact_response.rb +0 -136
- data/lib/sentdm/models/destination_country.rb +0 -21
- data/lib/sentdm/models/error_detail.rb +0 -42
- data/lib/sentdm/models/mutation_request.rb +0 -20
- data/lib/sentdm/models/pagination_meta.rb +0 -80
- data/lib/sentdm/models/payment_details.rb +0 -44
- data/lib/sentdm/models/profile_detail.rb +0 -605
- data/lib/sentdm/models/profile_settings.rb +0 -66
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +0 -45
- data/lib/sentdm/models/profiles/base_dto.rb +0 -32
- data/lib/sentdm/models/profiles/campaign_data.rb +0 -123
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +0 -28
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -29
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +0 -236
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +0 -116
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +0 -75
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +0 -58
- data/lib/sentdm/models/tcr_brand_relationship.rb +0 -18
- data/lib/sentdm/models/tcr_vertical.rb +0 -36
- data/lib/sentdm/models/template.rb +0 -90
- data/lib/sentdm/models/template_body_content.rb +0 -27
- data/lib/sentdm/models/template_definition.rb +0 -66
- data/lib/sentdm/models/template_variable.rb +0 -80
- data/lib/sentdm/models/user_response.rb +0 -82
- data/lib/sentdm/models/webhook_event_type.rb +0 -45
- data/lib/sentdm/models/webhook_response.rb +0 -95
- data/rbi/sentdm/models/api_meta.rbi +0 -55
- data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
- data/rbi/sentdm/models/api_response_template.rbi +0 -74
- data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
- data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
- data/rbi/sentdm/models/brands_brand_data.rbi +0 -104
- data/rbi/sentdm/models/contact_response.rbi +0 -195
- data/rbi/sentdm/models/destination_country.rbi +0 -32
- data/rbi/sentdm/models/error_detail.rbi +0 -66
- data/rbi/sentdm/models/mutation_request.rbi +0 -32
- data/rbi/sentdm/models/pagination_meta.rbi +0 -135
- data/rbi/sentdm/models/payment_details.rbi +0 -59
- data/rbi/sentdm/models/profile_detail.rbi +0 -874
- data/rbi/sentdm/models/profile_settings.rbi +0 -86
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +0 -83
- data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
- data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -148
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +0 -73
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -51
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -410
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -72
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -57
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -59
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -180
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -95
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +0 -81
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +0 -30
- data/rbi/sentdm/models/tcr_vertical.rbi +0 -41
- data/rbi/sentdm/models/template.rbi +0 -129
- data/rbi/sentdm/models/template_body_content.rbi +0 -43
- data/rbi/sentdm/models/template_definition.rbi +0 -164
- data/rbi/sentdm/models/template_variable.rbi +0 -120
- data/rbi/sentdm/models/user_response.rbi +0 -118
- data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
- data/rbi/sentdm/models/webhook_response.rbi +0 -140
- data/sig/sentdm/models/api_meta.rbs +0 -27
- data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
- data/sig/sentdm/models/api_response_of_user.rbs +0 -39
- data/sig/sentdm/models/api_response_template.rbs +0 -39
- data/sig/sentdm/models/api_response_webhook.rbs +0 -39
- data/sig/sentdm/models/billing_contact_info.rbs +0 -30
- data/sig/sentdm/models/brands_brand_data.rbs +0 -30
- data/sig/sentdm/models/contact_response.rbs +0 -116
- data/sig/sentdm/models/destination_country.rbs +0 -19
- data/sig/sentdm/models/error_detail.rbs +0 -39
- data/sig/sentdm/models/mutation_request.rbs +0 -15
- data/sig/sentdm/models/pagination_meta.rbs +0 -67
- data/sig/sentdm/models/payment_details.rbs +0 -30
- data/sig/sentdm/models/profile_detail.rbs +0 -474
- data/sig/sentdm/models/profile_settings.rbs +0 -50
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +0 -41
- data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
- data/sig/sentdm/models/profiles/campaign_data.rbs +0 -82
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +0 -40
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -285
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +0 -89
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +0 -55
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +0 -45
- data/sig/sentdm/models/tcr_brand_relationship.rbs +0 -22
- data/sig/sentdm/models/tcr_vertical.rbs +0 -58
- data/sig/sentdm/models/template.rbs +0 -79
- data/sig/sentdm/models/template_body_content.rbs +0 -30
- data/sig/sentdm/models/template_definition.rbs +0 -45
- data/sig/sentdm/models/template_variable.rbs +0 -84
- data/sig/sentdm/models/user_response.rbs +0 -72
- data/sig/sentdm/models/webhook_event_type.rbs +0 -51
- data/sig/sentdm/models/webhook_response.rbs +0 -103
|
@@ -22,17 +22,23 @@ 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::Models::MeRetrieveResponse::Error)) }
|
|
26
26
|
attr_reader :error
|
|
27
27
|
|
|
28
|
-
sig
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
error: T.nilable(Sentdm::Models::MeRetrieveResponse::Error::OrHash)
|
|
31
|
+
).void
|
|
32
|
+
end
|
|
29
33
|
attr_writer :error
|
|
30
34
|
|
|
31
35
|
# Request and response metadata
|
|
32
|
-
sig { returns(T.nilable(Sentdm::
|
|
36
|
+
sig { returns(T.nilable(Sentdm::Models::MeRetrieveResponse::Meta)) }
|
|
33
37
|
attr_reader :meta
|
|
34
38
|
|
|
35
|
-
sig
|
|
39
|
+
sig do
|
|
40
|
+
params(meta: Sentdm::Models::MeRetrieveResponse::Meta::OrHash).void
|
|
41
|
+
end
|
|
36
42
|
attr_writer :meta
|
|
37
43
|
|
|
38
44
|
# Indicates whether the request was successful
|
|
@@ -46,8 +52,8 @@ module Sentdm
|
|
|
46
52
|
sig do
|
|
47
53
|
params(
|
|
48
54
|
data: T.nilable(Sentdm::Models::MeRetrieveResponse::Data::OrHash),
|
|
49
|
-
error: T.nilable(Sentdm::
|
|
50
|
-
meta: Sentdm::
|
|
55
|
+
error: T.nilable(Sentdm::Models::MeRetrieveResponse::Error::OrHash),
|
|
56
|
+
meta: Sentdm::Models::MeRetrieveResponse::Meta::OrHash,
|
|
51
57
|
success: T::Boolean
|
|
52
58
|
).returns(T.attached_class)
|
|
53
59
|
end
|
|
@@ -69,8 +75,8 @@ module Sentdm
|
|
|
69
75
|
override.returns(
|
|
70
76
|
{
|
|
71
77
|
data: T.nilable(Sentdm::Models::MeRetrieveResponse::Data),
|
|
72
|
-
error: T.nilable(Sentdm::
|
|
73
|
-
meta: Sentdm::
|
|
78
|
+
error: T.nilable(Sentdm::Models::MeRetrieveResponse::Error),
|
|
79
|
+
meta: Sentdm::Models::MeRetrieveResponse::Meta,
|
|
74
80
|
success: T::Boolean
|
|
75
81
|
}
|
|
76
82
|
)
|
|
@@ -160,11 +166,18 @@ module Sentdm
|
|
|
160
166
|
attr_writer :profiles
|
|
161
167
|
|
|
162
168
|
# Profile configuration settings
|
|
163
|
-
sig
|
|
169
|
+
sig do
|
|
170
|
+
returns(T.nilable(Sentdm::Models::MeRetrieveResponse::Data::Settings))
|
|
171
|
+
end
|
|
164
172
|
attr_reader :settings
|
|
165
173
|
|
|
166
174
|
sig do
|
|
167
|
-
params(
|
|
175
|
+
params(
|
|
176
|
+
settings:
|
|
177
|
+
T.nilable(
|
|
178
|
+
Sentdm::Models::MeRetrieveResponse::Data::Settings::OrHash
|
|
179
|
+
)
|
|
180
|
+
).void
|
|
168
181
|
end
|
|
169
182
|
attr_writer :settings
|
|
170
183
|
|
|
@@ -203,7 +216,10 @@ module Sentdm
|
|
|
203
216
|
T::Array[
|
|
204
217
|
Sentdm::Models::MeRetrieveResponse::Data::Profile::OrHash
|
|
205
218
|
],
|
|
206
|
-
settings:
|
|
219
|
+
settings:
|
|
220
|
+
T.nilable(
|
|
221
|
+
Sentdm::Models::MeRetrieveResponse::Data::Settings::OrHash
|
|
222
|
+
),
|
|
207
223
|
short_name: T.nilable(String),
|
|
208
224
|
status: T.nilable(String),
|
|
209
225
|
type: String
|
|
@@ -256,7 +272,8 @@ module Sentdm
|
|
|
256
272
|
organization_id: T.nilable(String),
|
|
257
273
|
profiles:
|
|
258
274
|
T::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile],
|
|
259
|
-
settings:
|
|
275
|
+
settings:
|
|
276
|
+
T.nilable(Sentdm::Models::MeRetrieveResponse::Data::Settings),
|
|
260
277
|
short_name: T.nilable(String),
|
|
261
278
|
status: T.nilable(String),
|
|
262
279
|
type: String
|
|
@@ -551,10 +568,21 @@ module Sentdm
|
|
|
551
568
|
attr_accessor :role
|
|
552
569
|
|
|
553
570
|
# Profile configuration settings
|
|
554
|
-
sig
|
|
571
|
+
sig do
|
|
572
|
+
returns(
|
|
573
|
+
T.nilable(
|
|
574
|
+
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings
|
|
575
|
+
)
|
|
576
|
+
)
|
|
577
|
+
end
|
|
555
578
|
attr_reader :settings
|
|
556
579
|
|
|
557
|
-
sig
|
|
580
|
+
sig do
|
|
581
|
+
params(
|
|
582
|
+
settings:
|
|
583
|
+
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings::OrHash
|
|
584
|
+
).void
|
|
585
|
+
end
|
|
558
586
|
attr_writer :settings
|
|
559
587
|
|
|
560
588
|
# Profile short name (abbreviation)
|
|
@@ -574,7 +602,8 @@ module Sentdm
|
|
|
574
602
|
icon: T.nilable(String),
|
|
575
603
|
name: String,
|
|
576
604
|
role: T.nilable(String),
|
|
577
|
-
settings:
|
|
605
|
+
settings:
|
|
606
|
+
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings::OrHash,
|
|
578
607
|
short_name: T.nilable(String),
|
|
579
608
|
status: T.nilable(String)
|
|
580
609
|
).returns(T.attached_class)
|
|
@@ -611,7 +640,8 @@ module Sentdm
|
|
|
611
640
|
icon: T.nilable(String),
|
|
612
641
|
name: String,
|
|
613
642
|
role: T.nilable(String),
|
|
614
|
-
settings:
|
|
643
|
+
settings:
|
|
644
|
+
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings,
|
|
615
645
|
short_name: T.nilable(String),
|
|
616
646
|
status: T.nilable(String)
|
|
617
647
|
}
|
|
@@ -619,6 +649,295 @@ module Sentdm
|
|
|
619
649
|
end
|
|
620
650
|
def to_hash
|
|
621
651
|
end
|
|
652
|
+
|
|
653
|
+
class Settings < Sentdm::Internal::Type::BaseModel
|
|
654
|
+
OrHash =
|
|
655
|
+
T.type_alias do
|
|
656
|
+
T.any(
|
|
657
|
+
Sentdm::Models::MeRetrieveResponse::Data::Profile::Settings,
|
|
658
|
+
Sentdm::Internal::AnyHash
|
|
659
|
+
)
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
# Whether contacts are shared across profiles in the organization
|
|
663
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
664
|
+
attr_accessor :allow_contact_sharing
|
|
665
|
+
|
|
666
|
+
# Whether templates are shared across profiles in the organization
|
|
667
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
668
|
+
attr_accessor :allow_template_sharing
|
|
669
|
+
|
|
670
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
671
|
+
sig { returns(T.nilable(String)) }
|
|
672
|
+
attr_accessor :billing_model
|
|
673
|
+
|
|
674
|
+
# Whether this profile inherits contacts from the organization
|
|
675
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
676
|
+
attr_accessor :inherit_contacts
|
|
677
|
+
|
|
678
|
+
# Whether this profile inherits TCR brand from the organization
|
|
679
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
680
|
+
attr_accessor :inherit_tcr_brand
|
|
681
|
+
|
|
682
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
683
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
684
|
+
attr_accessor :inherit_tcr_campaign
|
|
685
|
+
|
|
686
|
+
# Whether this profile inherits templates from the organization
|
|
687
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
688
|
+
attr_accessor :inherit_templates
|
|
689
|
+
|
|
690
|
+
# Profile configuration settings
|
|
691
|
+
sig do
|
|
692
|
+
params(
|
|
693
|
+
allow_contact_sharing: T.nilable(T::Boolean),
|
|
694
|
+
allow_template_sharing: T.nilable(T::Boolean),
|
|
695
|
+
billing_model: T.nilable(String),
|
|
696
|
+
inherit_contacts: T.nilable(T::Boolean),
|
|
697
|
+
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
698
|
+
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
699
|
+
inherit_templates: T.nilable(T::Boolean)
|
|
700
|
+
).returns(T.attached_class)
|
|
701
|
+
end
|
|
702
|
+
def self.new(
|
|
703
|
+
# Whether contacts are shared across profiles in the organization
|
|
704
|
+
allow_contact_sharing: nil,
|
|
705
|
+
# Whether templates are shared across profiles in the organization
|
|
706
|
+
allow_template_sharing: nil,
|
|
707
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
708
|
+
billing_model: nil,
|
|
709
|
+
# Whether this profile inherits contacts from the organization
|
|
710
|
+
inherit_contacts: nil,
|
|
711
|
+
# Whether this profile inherits TCR brand from the organization
|
|
712
|
+
inherit_tcr_brand: nil,
|
|
713
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
714
|
+
inherit_tcr_campaign: nil,
|
|
715
|
+
# Whether this profile inherits templates from the organization
|
|
716
|
+
inherit_templates: nil
|
|
717
|
+
)
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
sig do
|
|
721
|
+
override.returns(
|
|
722
|
+
{
|
|
723
|
+
allow_contact_sharing: T.nilable(T::Boolean),
|
|
724
|
+
allow_template_sharing: T.nilable(T::Boolean),
|
|
725
|
+
billing_model: T.nilable(String),
|
|
726
|
+
inherit_contacts: T.nilable(T::Boolean),
|
|
727
|
+
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
728
|
+
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
729
|
+
inherit_templates: T.nilable(T::Boolean)
|
|
730
|
+
}
|
|
731
|
+
)
|
|
732
|
+
end
|
|
733
|
+
def to_hash
|
|
734
|
+
end
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
class Settings < Sentdm::Internal::Type::BaseModel
|
|
739
|
+
OrHash =
|
|
740
|
+
T.type_alias do
|
|
741
|
+
T.any(
|
|
742
|
+
Sentdm::Models::MeRetrieveResponse::Data::Settings,
|
|
743
|
+
Sentdm::Internal::AnyHash
|
|
744
|
+
)
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# Whether contacts are shared across profiles in the organization
|
|
748
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
749
|
+
attr_accessor :allow_contact_sharing
|
|
750
|
+
|
|
751
|
+
# Whether templates are shared across profiles in the organization
|
|
752
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
753
|
+
attr_accessor :allow_template_sharing
|
|
754
|
+
|
|
755
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
756
|
+
sig { returns(T.nilable(String)) }
|
|
757
|
+
attr_accessor :billing_model
|
|
758
|
+
|
|
759
|
+
# Whether this profile inherits contacts from the organization
|
|
760
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
761
|
+
attr_accessor :inherit_contacts
|
|
762
|
+
|
|
763
|
+
# Whether this profile inherits TCR brand from the organization
|
|
764
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
765
|
+
attr_accessor :inherit_tcr_brand
|
|
766
|
+
|
|
767
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
768
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
769
|
+
attr_accessor :inherit_tcr_campaign
|
|
770
|
+
|
|
771
|
+
# Whether this profile inherits templates from the organization
|
|
772
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
773
|
+
attr_accessor :inherit_templates
|
|
774
|
+
|
|
775
|
+
# Profile configuration settings
|
|
776
|
+
sig do
|
|
777
|
+
params(
|
|
778
|
+
allow_contact_sharing: T.nilable(T::Boolean),
|
|
779
|
+
allow_template_sharing: T.nilable(T::Boolean),
|
|
780
|
+
billing_model: T.nilable(String),
|
|
781
|
+
inherit_contacts: T.nilable(T::Boolean),
|
|
782
|
+
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
783
|
+
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
784
|
+
inherit_templates: T.nilable(T::Boolean)
|
|
785
|
+
).returns(T.attached_class)
|
|
786
|
+
end
|
|
787
|
+
def self.new(
|
|
788
|
+
# Whether contacts are shared across profiles in the organization
|
|
789
|
+
allow_contact_sharing: nil,
|
|
790
|
+
# Whether templates are shared across profiles in the organization
|
|
791
|
+
allow_template_sharing: nil,
|
|
792
|
+
# Billing model: profile, organization, or profile_and_organization
|
|
793
|
+
billing_model: nil,
|
|
794
|
+
# Whether this profile inherits contacts from the organization
|
|
795
|
+
inherit_contacts: nil,
|
|
796
|
+
# Whether this profile inherits TCR brand from the organization
|
|
797
|
+
inherit_tcr_brand: nil,
|
|
798
|
+
# Whether this profile inherits TCR campaign from the organization
|
|
799
|
+
inherit_tcr_campaign: nil,
|
|
800
|
+
# Whether this profile inherits templates from the organization
|
|
801
|
+
inherit_templates: nil
|
|
802
|
+
)
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
sig do
|
|
806
|
+
override.returns(
|
|
807
|
+
{
|
|
808
|
+
allow_contact_sharing: T.nilable(T::Boolean),
|
|
809
|
+
allow_template_sharing: T.nilable(T::Boolean),
|
|
810
|
+
billing_model: T.nilable(String),
|
|
811
|
+
inherit_contacts: T.nilable(T::Boolean),
|
|
812
|
+
inherit_tcr_brand: T.nilable(T::Boolean),
|
|
813
|
+
inherit_tcr_campaign: T.nilable(T::Boolean),
|
|
814
|
+
inherit_templates: T.nilable(T::Boolean)
|
|
815
|
+
}
|
|
816
|
+
)
|
|
817
|
+
end
|
|
818
|
+
def to_hash
|
|
819
|
+
end
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
824
|
+
OrHash =
|
|
825
|
+
T.type_alias do
|
|
826
|
+
T.any(
|
|
827
|
+
Sentdm::Models::MeRetrieveResponse::Error,
|
|
828
|
+
Sentdm::Internal::AnyHash
|
|
829
|
+
)
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
833
|
+
sig { returns(T.nilable(String)) }
|
|
834
|
+
attr_reader :code
|
|
835
|
+
|
|
836
|
+
sig { params(code: String).void }
|
|
837
|
+
attr_writer :code
|
|
838
|
+
|
|
839
|
+
# Additional validation error details (field-level errors)
|
|
840
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
841
|
+
attr_accessor :details
|
|
842
|
+
|
|
843
|
+
# URL to documentation about this error
|
|
844
|
+
sig { returns(T.nilable(String)) }
|
|
845
|
+
attr_accessor :doc_url
|
|
846
|
+
|
|
847
|
+
# Human-readable error message
|
|
848
|
+
sig { returns(T.nilable(String)) }
|
|
849
|
+
attr_reader :message
|
|
850
|
+
|
|
851
|
+
sig { params(message: String).void }
|
|
852
|
+
attr_writer :message
|
|
853
|
+
|
|
854
|
+
# Error information
|
|
855
|
+
sig do
|
|
856
|
+
params(
|
|
857
|
+
code: String,
|
|
858
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
859
|
+
doc_url: T.nilable(String),
|
|
860
|
+
message: String
|
|
861
|
+
).returns(T.attached_class)
|
|
862
|
+
end
|
|
863
|
+
def self.new(
|
|
864
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
865
|
+
code: nil,
|
|
866
|
+
# Additional validation error details (field-level errors)
|
|
867
|
+
details: nil,
|
|
868
|
+
# URL to documentation about this error
|
|
869
|
+
doc_url: nil,
|
|
870
|
+
# Human-readable error message
|
|
871
|
+
message: nil
|
|
872
|
+
)
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
sig do
|
|
876
|
+
override.returns(
|
|
877
|
+
{
|
|
878
|
+
code: String,
|
|
879
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
880
|
+
doc_url: T.nilable(String),
|
|
881
|
+
message: String
|
|
882
|
+
}
|
|
883
|
+
)
|
|
884
|
+
end
|
|
885
|
+
def to_hash
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
890
|
+
OrHash =
|
|
891
|
+
T.type_alias do
|
|
892
|
+
T.any(
|
|
893
|
+
Sentdm::Models::MeRetrieveResponse::Meta,
|
|
894
|
+
Sentdm::Internal::AnyHash
|
|
895
|
+
)
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# Unique identifier for this request (for tracing and support)
|
|
899
|
+
sig { returns(T.nilable(String)) }
|
|
900
|
+
attr_reader :request_id
|
|
901
|
+
|
|
902
|
+
sig { params(request_id: String).void }
|
|
903
|
+
attr_writer :request_id
|
|
904
|
+
|
|
905
|
+
# Server timestamp when the response was generated
|
|
906
|
+
sig { returns(T.nilable(Time)) }
|
|
907
|
+
attr_reader :timestamp
|
|
908
|
+
|
|
909
|
+
sig { params(timestamp: Time).void }
|
|
910
|
+
attr_writer :timestamp
|
|
911
|
+
|
|
912
|
+
# API version used for this request
|
|
913
|
+
sig { returns(T.nilable(String)) }
|
|
914
|
+
attr_reader :version
|
|
915
|
+
|
|
916
|
+
sig { params(version: String).void }
|
|
917
|
+
attr_writer :version
|
|
918
|
+
|
|
919
|
+
# Request and response metadata
|
|
920
|
+
sig do
|
|
921
|
+
params(request_id: String, timestamp: Time, version: String).returns(
|
|
922
|
+
T.attached_class
|
|
923
|
+
)
|
|
924
|
+
end
|
|
925
|
+
def self.new(
|
|
926
|
+
# Unique identifier for this request (for tracing and support)
|
|
927
|
+
request_id: nil,
|
|
928
|
+
# Server timestamp when the response was generated
|
|
929
|
+
timestamp: nil,
|
|
930
|
+
# API version used for this request
|
|
931
|
+
version: nil
|
|
932
|
+
)
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
sig do
|
|
936
|
+
override.returns(
|
|
937
|
+
{ request_id: String, timestamp: Time, version: String }
|
|
938
|
+
)
|
|
939
|
+
end
|
|
940
|
+
def to_hash
|
|
622
941
|
end
|
|
623
942
|
end
|
|
624
943
|
end
|
|
@@ -30,17 +30,36 @@ module Sentdm
|
|
|
30
30
|
attr_writer :data
|
|
31
31
|
|
|
32
32
|
# Error information
|
|
33
|
-
sig
|
|
33
|
+
sig do
|
|
34
|
+
returns(
|
|
35
|
+
T.nilable(Sentdm::Models::MessageRetrieveActivitiesResponse::Error)
|
|
36
|
+
)
|
|
37
|
+
end
|
|
34
38
|
attr_reader :error
|
|
35
39
|
|
|
36
|
-
sig
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
error:
|
|
43
|
+
T.nilable(
|
|
44
|
+
Sentdm::Models::MessageRetrieveActivitiesResponse::Error::OrHash
|
|
45
|
+
)
|
|
46
|
+
).void
|
|
47
|
+
end
|
|
37
48
|
attr_writer :error
|
|
38
49
|
|
|
39
50
|
# Request and response metadata
|
|
40
|
-
sig
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
T.nilable(Sentdm::Models::MessageRetrieveActivitiesResponse::Meta)
|
|
54
|
+
)
|
|
55
|
+
end
|
|
41
56
|
attr_reader :meta
|
|
42
57
|
|
|
43
|
-
sig
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
meta: Sentdm::Models::MessageRetrieveActivitiesResponse::Meta::OrHash
|
|
61
|
+
).void
|
|
62
|
+
end
|
|
44
63
|
attr_writer :meta
|
|
45
64
|
|
|
46
65
|
# Indicates whether the request was successful
|
|
@@ -57,8 +76,11 @@ module Sentdm
|
|
|
57
76
|
T.nilable(
|
|
58
77
|
Sentdm::Models::MessageRetrieveActivitiesResponse::Data::OrHash
|
|
59
78
|
),
|
|
60
|
-
error:
|
|
61
|
-
|
|
79
|
+
error:
|
|
80
|
+
T.nilable(
|
|
81
|
+
Sentdm::Models::MessageRetrieveActivitiesResponse::Error::OrHash
|
|
82
|
+
),
|
|
83
|
+
meta: Sentdm::Models::MessageRetrieveActivitiesResponse::Meta::OrHash,
|
|
62
84
|
success: T::Boolean
|
|
63
85
|
).returns(T.attached_class)
|
|
64
86
|
end
|
|
@@ -81,8 +103,11 @@ module Sentdm
|
|
|
81
103
|
T.nilable(
|
|
82
104
|
Sentdm::Models::MessageRetrieveActivitiesResponse::Data
|
|
83
105
|
),
|
|
84
|
-
error:
|
|
85
|
-
|
|
106
|
+
error:
|
|
107
|
+
T.nilable(
|
|
108
|
+
Sentdm::Models::MessageRetrieveActivitiesResponse::Error
|
|
109
|
+
),
|
|
110
|
+
meta: Sentdm::Models::MessageRetrieveActivitiesResponse::Meta,
|
|
86
111
|
success: T::Boolean
|
|
87
112
|
}
|
|
88
113
|
)
|
|
@@ -253,6 +278,127 @@ module Sentdm
|
|
|
253
278
|
end
|
|
254
279
|
end
|
|
255
280
|
end
|
|
281
|
+
|
|
282
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
283
|
+
OrHash =
|
|
284
|
+
T.type_alias do
|
|
285
|
+
T.any(
|
|
286
|
+
Sentdm::Models::MessageRetrieveActivitiesResponse::Error,
|
|
287
|
+
Sentdm::Internal::AnyHash
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
292
|
+
sig { returns(T.nilable(String)) }
|
|
293
|
+
attr_reader :code
|
|
294
|
+
|
|
295
|
+
sig { params(code: String).void }
|
|
296
|
+
attr_writer :code
|
|
297
|
+
|
|
298
|
+
# Additional validation error details (field-level errors)
|
|
299
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
300
|
+
attr_accessor :details
|
|
301
|
+
|
|
302
|
+
# URL to documentation about this error
|
|
303
|
+
sig { returns(T.nilable(String)) }
|
|
304
|
+
attr_accessor :doc_url
|
|
305
|
+
|
|
306
|
+
# Human-readable error message
|
|
307
|
+
sig { returns(T.nilable(String)) }
|
|
308
|
+
attr_reader :message
|
|
309
|
+
|
|
310
|
+
sig { params(message: String).void }
|
|
311
|
+
attr_writer :message
|
|
312
|
+
|
|
313
|
+
# Error information
|
|
314
|
+
sig do
|
|
315
|
+
params(
|
|
316
|
+
code: String,
|
|
317
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
318
|
+
doc_url: T.nilable(String),
|
|
319
|
+
message: String
|
|
320
|
+
).returns(T.attached_class)
|
|
321
|
+
end
|
|
322
|
+
def self.new(
|
|
323
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
324
|
+
code: nil,
|
|
325
|
+
# Additional validation error details (field-level errors)
|
|
326
|
+
details: nil,
|
|
327
|
+
# URL to documentation about this error
|
|
328
|
+
doc_url: nil,
|
|
329
|
+
# Human-readable error message
|
|
330
|
+
message: nil
|
|
331
|
+
)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
sig do
|
|
335
|
+
override.returns(
|
|
336
|
+
{
|
|
337
|
+
code: String,
|
|
338
|
+
details: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
339
|
+
doc_url: T.nilable(String),
|
|
340
|
+
message: String
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
end
|
|
344
|
+
def to_hash
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
349
|
+
OrHash =
|
|
350
|
+
T.type_alias do
|
|
351
|
+
T.any(
|
|
352
|
+
Sentdm::Models::MessageRetrieveActivitiesResponse::Meta,
|
|
353
|
+
Sentdm::Internal::AnyHash
|
|
354
|
+
)
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Unique identifier for this request (for tracing and support)
|
|
358
|
+
sig { returns(T.nilable(String)) }
|
|
359
|
+
attr_reader :request_id
|
|
360
|
+
|
|
361
|
+
sig { params(request_id: String).void }
|
|
362
|
+
attr_writer :request_id
|
|
363
|
+
|
|
364
|
+
# Server timestamp when the response was generated
|
|
365
|
+
sig { returns(T.nilable(Time)) }
|
|
366
|
+
attr_reader :timestamp
|
|
367
|
+
|
|
368
|
+
sig { params(timestamp: Time).void }
|
|
369
|
+
attr_writer :timestamp
|
|
370
|
+
|
|
371
|
+
# API version used for this request
|
|
372
|
+
sig { returns(T.nilable(String)) }
|
|
373
|
+
attr_reader :version
|
|
374
|
+
|
|
375
|
+
sig { params(version: String).void }
|
|
376
|
+
attr_writer :version
|
|
377
|
+
|
|
378
|
+
# Request and response metadata
|
|
379
|
+
sig do
|
|
380
|
+
params(request_id: String, timestamp: Time, version: String).returns(
|
|
381
|
+
T.attached_class
|
|
382
|
+
)
|
|
383
|
+
end
|
|
384
|
+
def self.new(
|
|
385
|
+
# Unique identifier for this request (for tracing and support)
|
|
386
|
+
request_id: nil,
|
|
387
|
+
# Server timestamp when the response was generated
|
|
388
|
+
timestamp: nil,
|
|
389
|
+
# API version used for this request
|
|
390
|
+
version: nil
|
|
391
|
+
)
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
sig do
|
|
395
|
+
override.returns(
|
|
396
|
+
{ request_id: String, timestamp: Time, version: String }
|
|
397
|
+
)
|
|
398
|
+
end
|
|
399
|
+
def to_hash
|
|
400
|
+
end
|
|
401
|
+
end
|
|
256
402
|
end
|
|
257
403
|
end
|
|
258
404
|
end
|