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
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class UserResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
# User unique identifier
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute created_at
|
|
13
|
-
# When the user was added to the organization
|
|
14
|
-
#
|
|
15
|
-
# @return [Time, nil]
|
|
16
|
-
optional :created_at, Time
|
|
17
|
-
|
|
18
|
-
# @!attribute email
|
|
19
|
-
# User email address
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :email, String
|
|
23
|
-
|
|
24
|
-
# @!attribute invited_at
|
|
25
|
-
# When the user was invited
|
|
26
|
-
#
|
|
27
|
-
# @return [Time, nil]
|
|
28
|
-
optional :invited_at, Time, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute last_login_at
|
|
31
|
-
# When the user last logged in
|
|
32
|
-
#
|
|
33
|
-
# @return [Time, nil]
|
|
34
|
-
optional :last_login_at, Time, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!attribute name
|
|
37
|
-
# User full name
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :name, String
|
|
41
|
-
|
|
42
|
-
# @!attribute role
|
|
43
|
-
# User role in the organization: admin, billing, developer
|
|
44
|
-
#
|
|
45
|
-
# @return [String, nil]
|
|
46
|
-
optional :role, String
|
|
47
|
-
|
|
48
|
-
# @!attribute status
|
|
49
|
-
# User status: active, invited, suspended, rejected
|
|
50
|
-
#
|
|
51
|
-
# @return [String, nil]
|
|
52
|
-
optional :status, String
|
|
53
|
-
|
|
54
|
-
# @!attribute updated_at
|
|
55
|
-
# When the user record was last updated
|
|
56
|
-
#
|
|
57
|
-
# @return [Time, nil]
|
|
58
|
-
optional :updated_at, Time, nil?: true
|
|
59
|
-
|
|
60
|
-
# @!method initialize(id: nil, created_at: nil, email: nil, invited_at: nil, last_login_at: nil, name: nil, role: nil, status: nil, updated_at: nil)
|
|
61
|
-
# User response for v3 API
|
|
62
|
-
#
|
|
63
|
-
# @param id [String] User unique identifier
|
|
64
|
-
#
|
|
65
|
-
# @param created_at [Time] When the user was added to the organization
|
|
66
|
-
#
|
|
67
|
-
# @param email [String] User email address
|
|
68
|
-
#
|
|
69
|
-
# @param invited_at [Time, nil] When the user was invited
|
|
70
|
-
#
|
|
71
|
-
# @param last_login_at [Time, nil] When the user last logged in
|
|
72
|
-
#
|
|
73
|
-
# @param name [String] User full name
|
|
74
|
-
#
|
|
75
|
-
# @param role [String] User role in the organization: admin, billing, developer
|
|
76
|
-
#
|
|
77
|
-
# @param status [String] User status: active, invited, suspended, rejected
|
|
78
|
-
#
|
|
79
|
-
# @param updated_at [Time, nil] When the user record was last updated
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class WebhookEventType < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute description
|
|
7
|
-
#
|
|
8
|
-
# @return [String, nil]
|
|
9
|
-
optional :description, String, nil?: true
|
|
10
|
-
|
|
11
|
-
# @!attribute display_name
|
|
12
|
-
#
|
|
13
|
-
# @return [String, nil]
|
|
14
|
-
optional :display_name, String
|
|
15
|
-
|
|
16
|
-
# @!attribute event_type
|
|
17
|
-
#
|
|
18
|
-
# @return [String, nil]
|
|
19
|
-
optional :event_type, String, nil?: true
|
|
20
|
-
|
|
21
|
-
# @!attribute is_active
|
|
22
|
-
#
|
|
23
|
-
# @return [Boolean, nil]
|
|
24
|
-
optional :is_active, Sentdm::Internal::Type::Boolean
|
|
25
|
-
|
|
26
|
-
# @!attribute name
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
optional :name, String
|
|
30
|
-
|
|
31
|
-
# @!attribute sub_types
|
|
32
|
-
#
|
|
33
|
-
# @return [Array<Sentdm::Models::WebhookEventType>, nil]
|
|
34
|
-
optional :sub_types, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::WebhookEventType] }, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!method initialize(description: nil, display_name: nil, event_type: nil, is_active: nil, name: nil, sub_types: nil)
|
|
37
|
-
# @param description [String, nil]
|
|
38
|
-
# @param display_name [String]
|
|
39
|
-
# @param event_type [String, nil]
|
|
40
|
-
# @param is_active [Boolean]
|
|
41
|
-
# @param name [String]
|
|
42
|
-
# @param sub_types [Array<Sentdm::Models::WebhookEventType>, nil]
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class WebhookResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
#
|
|
8
|
-
# @return [String, nil]
|
|
9
|
-
optional :id, String
|
|
10
|
-
|
|
11
|
-
# @!attribute consecutive_failures
|
|
12
|
-
#
|
|
13
|
-
# @return [Integer, nil]
|
|
14
|
-
optional :consecutive_failures, Integer
|
|
15
|
-
|
|
16
|
-
# @!attribute created_at
|
|
17
|
-
#
|
|
18
|
-
# @return [Time, nil]
|
|
19
|
-
optional :created_at, Time
|
|
20
|
-
|
|
21
|
-
# @!attribute display_name
|
|
22
|
-
#
|
|
23
|
-
# @return [String, nil]
|
|
24
|
-
optional :display_name, String
|
|
25
|
-
|
|
26
|
-
# @!attribute endpoint_url
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
optional :endpoint_url, String
|
|
30
|
-
|
|
31
|
-
# @!attribute event_filters
|
|
32
|
-
#
|
|
33
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
34
|
-
optional :event_filters,
|
|
35
|
-
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
36
|
-
nil?: true
|
|
37
|
-
|
|
38
|
-
# @!attribute event_types
|
|
39
|
-
#
|
|
40
|
-
# @return [Array<String>, nil]
|
|
41
|
-
optional :event_types, Sentdm::Internal::Type::ArrayOf[String]
|
|
42
|
-
|
|
43
|
-
# @!attribute is_active
|
|
44
|
-
#
|
|
45
|
-
# @return [Boolean, nil]
|
|
46
|
-
optional :is_active, Sentdm::Internal::Type::Boolean
|
|
47
|
-
|
|
48
|
-
# @!attribute last_delivery_attempt_at
|
|
49
|
-
#
|
|
50
|
-
# @return [Time, nil]
|
|
51
|
-
optional :last_delivery_attempt_at, Time, nil?: true
|
|
52
|
-
|
|
53
|
-
# @!attribute last_successful_delivery_at
|
|
54
|
-
#
|
|
55
|
-
# @return [Time, nil]
|
|
56
|
-
optional :last_successful_delivery_at, Time, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute retry_count
|
|
59
|
-
#
|
|
60
|
-
# @return [Integer, nil]
|
|
61
|
-
optional :retry_count, Integer
|
|
62
|
-
|
|
63
|
-
# @!attribute signing_secret
|
|
64
|
-
#
|
|
65
|
-
# @return [String, nil]
|
|
66
|
-
optional :signing_secret, String, nil?: true
|
|
67
|
-
|
|
68
|
-
# @!attribute timeout_seconds
|
|
69
|
-
#
|
|
70
|
-
# @return [Integer, nil]
|
|
71
|
-
optional :timeout_seconds, Integer
|
|
72
|
-
|
|
73
|
-
# @!attribute updated_at
|
|
74
|
-
#
|
|
75
|
-
# @return [Time, nil]
|
|
76
|
-
optional :updated_at, Time, nil?: true
|
|
77
|
-
|
|
78
|
-
# @!method initialize(id: nil, consecutive_failures: nil, created_at: nil, display_name: nil, endpoint_url: nil, event_filters: nil, event_types: nil, is_active: nil, last_delivery_attempt_at: nil, last_successful_delivery_at: nil, retry_count: nil, signing_secret: nil, timeout_seconds: nil, updated_at: nil)
|
|
79
|
-
# @param id [String]
|
|
80
|
-
# @param consecutive_failures [Integer]
|
|
81
|
-
# @param created_at [Time]
|
|
82
|
-
# @param display_name [String]
|
|
83
|
-
# @param endpoint_url [String]
|
|
84
|
-
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
85
|
-
# @param event_types [Array<String>]
|
|
86
|
-
# @param is_active [Boolean]
|
|
87
|
-
# @param last_delivery_attempt_at [Time, nil]
|
|
88
|
-
# @param last_successful_delivery_at [Time, nil]
|
|
89
|
-
# @param retry_count [Integer]
|
|
90
|
-
# @param signing_secret [String, nil]
|
|
91
|
-
# @param timeout_seconds [Integer]
|
|
92
|
-
# @param updated_at [Time, nil]
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
end
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIMeta < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias { T.any(Sentdm::APIMeta, Sentdm::Internal::AnyHash) }
|
|
8
|
-
|
|
9
|
-
# Unique identifier for this request (for tracing and support)
|
|
10
|
-
sig { returns(T.nilable(String)) }
|
|
11
|
-
attr_reader :request_id
|
|
12
|
-
|
|
13
|
-
sig { params(request_id: String).void }
|
|
14
|
-
attr_writer :request_id
|
|
15
|
-
|
|
16
|
-
# Server timestamp when the response was generated
|
|
17
|
-
sig { returns(T.nilable(Time)) }
|
|
18
|
-
attr_reader :timestamp
|
|
19
|
-
|
|
20
|
-
sig { params(timestamp: Time).void }
|
|
21
|
-
attr_writer :timestamp
|
|
22
|
-
|
|
23
|
-
# API version used for this request
|
|
24
|
-
sig { returns(T.nilable(String)) }
|
|
25
|
-
attr_reader :version
|
|
26
|
-
|
|
27
|
-
sig { params(version: String).void }
|
|
28
|
-
attr_writer :version
|
|
29
|
-
|
|
30
|
-
# Request and response metadata
|
|
31
|
-
sig do
|
|
32
|
-
params(request_id: String, timestamp: Time, version: String).returns(
|
|
33
|
-
T.attached_class
|
|
34
|
-
)
|
|
35
|
-
end
|
|
36
|
-
def self.new(
|
|
37
|
-
# Unique identifier for this request (for tracing and support)
|
|
38
|
-
request_id: nil,
|
|
39
|
-
# Server timestamp when the response was generated
|
|
40
|
-
timestamp: nil,
|
|
41
|
-
# API version used for this request
|
|
42
|
-
version: nil
|
|
43
|
-
)
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
sig do
|
|
47
|
-
override.returns(
|
|
48
|
-
{ request_id: String, timestamp: Time, version: String }
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
def to_hash
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIResponseOfContact < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::APIResponseOfContact, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
12
|
-
sig { returns(T.nilable(Sentdm::ContactResponse)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig { params(data: T.nilable(Sentdm::ContactResponse::OrHash)).void }
|
|
16
|
-
attr_writer :data
|
|
17
|
-
|
|
18
|
-
# Error information
|
|
19
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
|
-
attr_reader :error
|
|
21
|
-
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
|
-
attr_writer :error
|
|
24
|
-
|
|
25
|
-
# Request and response metadata
|
|
26
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
|
-
attr_reader :meta
|
|
28
|
-
|
|
29
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
30
|
-
attr_writer :meta
|
|
31
|
-
|
|
32
|
-
# Indicates whether the request was successful
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_reader :success
|
|
35
|
-
|
|
36
|
-
sig { params(success: T::Boolean).void }
|
|
37
|
-
attr_writer :success
|
|
38
|
-
|
|
39
|
-
# Standard API response envelope for all v3 endpoints
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
data: T.nilable(Sentdm::ContactResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
45
|
-
success: T::Boolean
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
50
|
-
data: nil,
|
|
51
|
-
# Error information
|
|
52
|
-
error: nil,
|
|
53
|
-
# Request and response metadata
|
|
54
|
-
meta: nil,
|
|
55
|
-
# Indicates whether the request was successful
|
|
56
|
-
success: nil
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig do
|
|
61
|
-
override.returns(
|
|
62
|
-
{
|
|
63
|
-
data: T.nilable(Sentdm::ContactResponse),
|
|
64
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
|
-
meta: Sentdm::APIMeta,
|
|
66
|
-
success: T::Boolean
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIResponseOfProfileDetail < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::APIResponseOfProfileDetail, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Detailed profile response for v3 API
|
|
12
|
-
sig { returns(T.nilable(Sentdm::ProfileDetail)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig { params(data: T.nilable(Sentdm::ProfileDetail::OrHash)).void }
|
|
16
|
-
attr_writer :data
|
|
17
|
-
|
|
18
|
-
# Error information
|
|
19
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
|
-
attr_reader :error
|
|
21
|
-
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
|
-
attr_writer :error
|
|
24
|
-
|
|
25
|
-
# Request and response metadata
|
|
26
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
|
-
attr_reader :meta
|
|
28
|
-
|
|
29
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
30
|
-
attr_writer :meta
|
|
31
|
-
|
|
32
|
-
# Indicates whether the request was successful
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_reader :success
|
|
35
|
-
|
|
36
|
-
sig { params(success: T::Boolean).void }
|
|
37
|
-
attr_writer :success
|
|
38
|
-
|
|
39
|
-
# Standard API response envelope for all v3 endpoints
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
data: T.nilable(Sentdm::ProfileDetail::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
45
|
-
success: T::Boolean
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# Detailed profile response for v3 API
|
|
50
|
-
data: nil,
|
|
51
|
-
# Error information
|
|
52
|
-
error: nil,
|
|
53
|
-
# Request and response metadata
|
|
54
|
-
meta: nil,
|
|
55
|
-
# Indicates whether the request was successful
|
|
56
|
-
success: nil
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig do
|
|
61
|
-
override.returns(
|
|
62
|
-
{
|
|
63
|
-
data: T.nilable(Sentdm::ProfileDetail),
|
|
64
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
|
-
meta: Sentdm::APIMeta,
|
|
66
|
-
success: T::Boolean
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIResponseOfUser < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::APIResponseOfUser, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# User response for v3 API
|
|
12
|
-
sig { returns(T.nilable(Sentdm::UserResponse)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig { params(data: T.nilable(Sentdm::UserResponse::OrHash)).void }
|
|
16
|
-
attr_writer :data
|
|
17
|
-
|
|
18
|
-
# Error information
|
|
19
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
|
-
attr_reader :error
|
|
21
|
-
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
|
-
attr_writer :error
|
|
24
|
-
|
|
25
|
-
# Request and response metadata
|
|
26
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
|
-
attr_reader :meta
|
|
28
|
-
|
|
29
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
30
|
-
attr_writer :meta
|
|
31
|
-
|
|
32
|
-
# Indicates whether the request was successful
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_reader :success
|
|
35
|
-
|
|
36
|
-
sig { params(success: T::Boolean).void }
|
|
37
|
-
attr_writer :success
|
|
38
|
-
|
|
39
|
-
# Standard API response envelope for all v3 endpoints
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
data: T.nilable(Sentdm::UserResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
45
|
-
success: T::Boolean
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# User response for v3 API
|
|
50
|
-
data: nil,
|
|
51
|
-
# Error information
|
|
52
|
-
error: nil,
|
|
53
|
-
# Request and response metadata
|
|
54
|
-
meta: nil,
|
|
55
|
-
# Indicates whether the request was successful
|
|
56
|
-
success: nil
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig do
|
|
61
|
-
override.returns(
|
|
62
|
-
{
|
|
63
|
-
data: T.nilable(Sentdm::UserResponse),
|
|
64
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
|
-
meta: Sentdm::APIMeta,
|
|
66
|
-
success: T::Boolean
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIResponseTemplate < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::APIResponseTemplate, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Template response for v3 API
|
|
12
|
-
sig { returns(T.nilable(Sentdm::Template)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig { params(data: T.nilable(Sentdm::Template::OrHash)).void }
|
|
16
|
-
attr_writer :data
|
|
17
|
-
|
|
18
|
-
# Error information
|
|
19
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
|
-
attr_reader :error
|
|
21
|
-
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
|
-
attr_writer :error
|
|
24
|
-
|
|
25
|
-
# Request and response metadata
|
|
26
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
|
-
attr_reader :meta
|
|
28
|
-
|
|
29
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
30
|
-
attr_writer :meta
|
|
31
|
-
|
|
32
|
-
# Indicates whether the request was successful
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_reader :success
|
|
35
|
-
|
|
36
|
-
sig { params(success: T::Boolean).void }
|
|
37
|
-
attr_writer :success
|
|
38
|
-
|
|
39
|
-
# Standard API response envelope for all v3 endpoints
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
data: T.nilable(Sentdm::Template::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
45
|
-
success: T::Boolean
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# Template response for v3 API
|
|
50
|
-
data: nil,
|
|
51
|
-
# Error information
|
|
52
|
-
error: nil,
|
|
53
|
-
# Request and response metadata
|
|
54
|
-
meta: nil,
|
|
55
|
-
# Indicates whether the request was successful
|
|
56
|
-
success: nil
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig do
|
|
61
|
-
override.returns(
|
|
62
|
-
{
|
|
63
|
-
data: T.nilable(Sentdm::Template),
|
|
64
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
|
-
meta: Sentdm::APIMeta,
|
|
66
|
-
success: T::Boolean
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class APIResponseWebhook < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::APIResponseWebhook, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The response data (null if error)
|
|
12
|
-
sig { returns(T.nilable(Sentdm::WebhookResponse)) }
|
|
13
|
-
attr_reader :data
|
|
14
|
-
|
|
15
|
-
sig { params(data: T.nilable(Sentdm::WebhookResponse::OrHash)).void }
|
|
16
|
-
attr_writer :data
|
|
17
|
-
|
|
18
|
-
# Error information
|
|
19
|
-
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
|
-
attr_reader :error
|
|
21
|
-
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
|
-
attr_writer :error
|
|
24
|
-
|
|
25
|
-
# Request and response metadata
|
|
26
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
|
-
attr_reader :meta
|
|
28
|
-
|
|
29
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
30
|
-
attr_writer :meta
|
|
31
|
-
|
|
32
|
-
# Indicates whether the request was successful
|
|
33
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
-
attr_reader :success
|
|
35
|
-
|
|
36
|
-
sig { params(success: T::Boolean).void }
|
|
37
|
-
attr_writer :success
|
|
38
|
-
|
|
39
|
-
# Standard API response envelope for all v3 endpoints
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
data: T.nilable(Sentdm::WebhookResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
45
|
-
success: T::Boolean
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# The response data (null if error)
|
|
50
|
-
data: nil,
|
|
51
|
-
# Error information
|
|
52
|
-
error: nil,
|
|
53
|
-
# Request and response metadata
|
|
54
|
-
meta: nil,
|
|
55
|
-
# Indicates whether the request was successful
|
|
56
|
-
success: nil
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig do
|
|
61
|
-
override.returns(
|
|
62
|
-
{
|
|
63
|
-
data: T.nilable(Sentdm::WebhookResponse),
|
|
64
|
-
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
|
-
meta: Sentdm::APIMeta,
|
|
66
|
-
success: T::Boolean
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|