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
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::WebhookListEventTypesResponse::Error, nil]
|
|
17
|
+
optional :error, -> { Sentdm::Models::WebhookListEventTypesResponse::Error }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::WebhookListEventTypesResponse::Meta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::Models::WebhookListEventTypesResponse::Meta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::WebhookListEventTypesResponse::Data, nil] The response data (null if error)
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::WebhookListEventTypesResponse::Error, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::WebhookListEventTypesResponse::Meta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -43,13 +43,122 @@ module Sentdm
|
|
|
43
43
|
class Data < Sentdm::Internal::Type::BaseModel
|
|
44
44
|
# @!attribute event_types
|
|
45
45
|
#
|
|
46
|
-
# @return [Array<Sentdm::Models::
|
|
47
|
-
optional :event_types,
|
|
46
|
+
# @return [Array<Sentdm::Models::WebhookListEventTypesResponse::Data::EventType>, nil]
|
|
47
|
+
optional :event_types,
|
|
48
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::WebhookListEventTypesResponse::Data::EventType] }
|
|
48
49
|
|
|
49
50
|
# @!method initialize(event_types: nil)
|
|
50
51
|
# The response data (null if error)
|
|
51
52
|
#
|
|
52
|
-
# @param event_types [Array<Sentdm::Models::
|
|
53
|
+
# @param event_types [Array<Sentdm::Models::WebhookListEventTypesResponse::Data::EventType>]
|
|
54
|
+
|
|
55
|
+
class EventType < Sentdm::Internal::Type::BaseModel
|
|
56
|
+
# @!attribute description
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :description, String, nil?: true
|
|
60
|
+
|
|
61
|
+
# @!attribute display_name
|
|
62
|
+
#
|
|
63
|
+
# @return [String, nil]
|
|
64
|
+
optional :display_name, String
|
|
65
|
+
|
|
66
|
+
# @!attribute event_type
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :event_type, String, nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute is_active
|
|
72
|
+
#
|
|
73
|
+
# @return [Boolean, nil]
|
|
74
|
+
optional :is_active, Sentdm::Internal::Type::Boolean
|
|
75
|
+
|
|
76
|
+
# @!attribute name
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
optional :name, String
|
|
80
|
+
|
|
81
|
+
# @!attribute sub_types
|
|
82
|
+
#
|
|
83
|
+
# @return [Array<Object>, nil]
|
|
84
|
+
optional :sub_types, Sentdm::Internal::Type::ArrayOf[Sentdm::Internal::Type::Unknown], nil?: true
|
|
85
|
+
|
|
86
|
+
# @!method initialize(description: nil, display_name: nil, event_type: nil, is_active: nil, name: nil, sub_types: nil)
|
|
87
|
+
# @param description [String, nil]
|
|
88
|
+
# @param display_name [String]
|
|
89
|
+
# @param event_type [String, nil]
|
|
90
|
+
# @param is_active [Boolean]
|
|
91
|
+
# @param name [String]
|
|
92
|
+
# @param sub_types [Array<Object>, nil]
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# @see Sentdm::Models::WebhookListEventTypesResponse#error
|
|
97
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
98
|
+
# @!attribute code
|
|
99
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
100
|
+
#
|
|
101
|
+
# @return [String, nil]
|
|
102
|
+
optional :code, String
|
|
103
|
+
|
|
104
|
+
# @!attribute details
|
|
105
|
+
# Additional validation error details (field-level errors)
|
|
106
|
+
#
|
|
107
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
108
|
+
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
109
|
+
|
|
110
|
+
# @!attribute doc_url
|
|
111
|
+
# URL to documentation about this error
|
|
112
|
+
#
|
|
113
|
+
# @return [String, nil]
|
|
114
|
+
optional :doc_url, String, nil?: true
|
|
115
|
+
|
|
116
|
+
# @!attribute message
|
|
117
|
+
# Human-readable error message
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :message, String
|
|
121
|
+
|
|
122
|
+
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
123
|
+
# Error information
|
|
124
|
+
#
|
|
125
|
+
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
126
|
+
#
|
|
127
|
+
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
128
|
+
#
|
|
129
|
+
# @param doc_url [String, nil] URL to documentation about this error
|
|
130
|
+
#
|
|
131
|
+
# @param message [String] Human-readable error message
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# @see Sentdm::Models::WebhookListEventTypesResponse#meta
|
|
135
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
136
|
+
# @!attribute request_id
|
|
137
|
+
# Unique identifier for this request (for tracing and support)
|
|
138
|
+
#
|
|
139
|
+
# @return [String, nil]
|
|
140
|
+
optional :request_id, String
|
|
141
|
+
|
|
142
|
+
# @!attribute timestamp
|
|
143
|
+
# Server timestamp when the response was generated
|
|
144
|
+
#
|
|
145
|
+
# @return [Time, nil]
|
|
146
|
+
optional :timestamp, Time
|
|
147
|
+
|
|
148
|
+
# @!attribute version
|
|
149
|
+
# API version used for this request
|
|
150
|
+
#
|
|
151
|
+
# @return [String, nil]
|
|
152
|
+
optional :version, String
|
|
153
|
+
|
|
154
|
+
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
155
|
+
# Request and response metadata
|
|
156
|
+
#
|
|
157
|
+
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
158
|
+
#
|
|
159
|
+
# @param timestamp [Time] Server timestamp when the response was generated
|
|
160
|
+
#
|
|
161
|
+
# @param version [String] API version used for this request
|
|
53
162
|
end
|
|
54
163
|
end
|
|
55
164
|
end
|
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::WebhookListEventsResponse::Error, nil]
|
|
17
|
+
optional :error, -> { Sentdm::Models::WebhookListEventsResponse::Error }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::WebhookListEventsResponse::Meta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::Models::WebhookListEventsResponse::Meta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::WebhookListEventsResponse::Data, nil] The response data (null if error)
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::WebhookListEventsResponse::Error, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::WebhookListEventsResponse::Meta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -50,15 +50,15 @@ module Sentdm
|
|
|
50
50
|
# @!attribute pagination
|
|
51
51
|
# Pagination metadata for list responses
|
|
52
52
|
#
|
|
53
|
-
# @return [Sentdm::Models::
|
|
54
|
-
optional :pagination, -> { Sentdm::
|
|
53
|
+
# @return [Sentdm::Models::WebhookListEventsResponse::Data::Pagination, nil]
|
|
54
|
+
optional :pagination, -> { Sentdm::Models::WebhookListEventsResponse::Data::Pagination }
|
|
55
55
|
|
|
56
56
|
# @!method initialize(events: nil, pagination: nil)
|
|
57
57
|
# The response data (null if error)
|
|
58
58
|
#
|
|
59
59
|
# @param events [Array<Sentdm::Models::WebhookListEventsResponse::Data::Event>]
|
|
60
60
|
#
|
|
61
|
-
# @param pagination [Sentdm::Models::
|
|
61
|
+
# @param pagination [Sentdm::Models::WebhookListEventsResponse::Data::Pagination] Pagination metadata for list responses
|
|
62
62
|
|
|
63
63
|
class Event < Sentdm::Internal::Type::BaseModel
|
|
64
64
|
# @!attribute id
|
|
@@ -129,6 +129,150 @@ module Sentdm
|
|
|
129
129
|
# @param processing_started_at [Time, nil]
|
|
130
130
|
# @param response_body [String, nil]
|
|
131
131
|
end
|
|
132
|
+
|
|
133
|
+
# @see Sentdm::Models::WebhookListEventsResponse::Data#pagination
|
|
134
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
135
|
+
# @!attribute cursors
|
|
136
|
+
# Cursor-based pagination pointers
|
|
137
|
+
#
|
|
138
|
+
# @return [Sentdm::Models::WebhookListEventsResponse::Data::Pagination::Cursors, nil]
|
|
139
|
+
optional :cursors, -> { Sentdm::Models::WebhookListEventsResponse::Data::Pagination::Cursors }, nil?: true
|
|
140
|
+
|
|
141
|
+
# @!attribute has_more
|
|
142
|
+
# Whether there are more pages after this one
|
|
143
|
+
#
|
|
144
|
+
# @return [Boolean, nil]
|
|
145
|
+
optional :has_more, Sentdm::Internal::Type::Boolean
|
|
146
|
+
|
|
147
|
+
# @!attribute page
|
|
148
|
+
# Current page number (1-indexed)
|
|
149
|
+
#
|
|
150
|
+
# @return [Integer, nil]
|
|
151
|
+
optional :page, Integer
|
|
152
|
+
|
|
153
|
+
# @!attribute page_size
|
|
154
|
+
# Number of items per page
|
|
155
|
+
#
|
|
156
|
+
# @return [Integer, nil]
|
|
157
|
+
optional :page_size, Integer
|
|
158
|
+
|
|
159
|
+
# @!attribute total_count
|
|
160
|
+
# Total number of items across all pages
|
|
161
|
+
#
|
|
162
|
+
# @return [Integer, nil]
|
|
163
|
+
optional :total_count, Integer
|
|
164
|
+
|
|
165
|
+
# @!attribute total_pages
|
|
166
|
+
# Total number of pages
|
|
167
|
+
#
|
|
168
|
+
# @return [Integer, nil]
|
|
169
|
+
optional :total_pages, Integer
|
|
170
|
+
|
|
171
|
+
# @!method initialize(cursors: nil, has_more: nil, page: nil, page_size: nil, total_count: nil, total_pages: nil)
|
|
172
|
+
# Pagination metadata for list responses
|
|
173
|
+
#
|
|
174
|
+
# @param cursors [Sentdm::Models::WebhookListEventsResponse::Data::Pagination::Cursors, nil] Cursor-based pagination pointers
|
|
175
|
+
#
|
|
176
|
+
# @param has_more [Boolean] Whether there are more pages after this one
|
|
177
|
+
#
|
|
178
|
+
# @param page [Integer] Current page number (1-indexed)
|
|
179
|
+
#
|
|
180
|
+
# @param page_size [Integer] Number of items per page
|
|
181
|
+
#
|
|
182
|
+
# @param total_count [Integer] Total number of items across all pages
|
|
183
|
+
#
|
|
184
|
+
# @param total_pages [Integer] Total number of pages
|
|
185
|
+
|
|
186
|
+
# @see Sentdm::Models::WebhookListEventsResponse::Data::Pagination#cursors
|
|
187
|
+
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
188
|
+
# @!attribute after
|
|
189
|
+
# Cursor to fetch the next page
|
|
190
|
+
#
|
|
191
|
+
# @return [String, nil]
|
|
192
|
+
optional :after, String, nil?: true
|
|
193
|
+
|
|
194
|
+
# @!attribute before
|
|
195
|
+
# Cursor to fetch the previous page
|
|
196
|
+
#
|
|
197
|
+
# @return [String, nil]
|
|
198
|
+
optional :before, String, nil?: true
|
|
199
|
+
|
|
200
|
+
# @!method initialize(after: nil, before: nil)
|
|
201
|
+
# Cursor-based pagination pointers
|
|
202
|
+
#
|
|
203
|
+
# @param after [String, nil] Cursor to fetch the next page
|
|
204
|
+
#
|
|
205
|
+
# @param before [String, nil] Cursor to fetch the previous page
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# @see Sentdm::Models::WebhookListEventsResponse#error
|
|
211
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
212
|
+
# @!attribute code
|
|
213
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
214
|
+
#
|
|
215
|
+
# @return [String, nil]
|
|
216
|
+
optional :code, String
|
|
217
|
+
|
|
218
|
+
# @!attribute details
|
|
219
|
+
# Additional validation error details (field-level errors)
|
|
220
|
+
#
|
|
221
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
222
|
+
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
223
|
+
|
|
224
|
+
# @!attribute doc_url
|
|
225
|
+
# URL to documentation about this error
|
|
226
|
+
#
|
|
227
|
+
# @return [String, nil]
|
|
228
|
+
optional :doc_url, String, nil?: true
|
|
229
|
+
|
|
230
|
+
# @!attribute message
|
|
231
|
+
# Human-readable error message
|
|
232
|
+
#
|
|
233
|
+
# @return [String, nil]
|
|
234
|
+
optional :message, String
|
|
235
|
+
|
|
236
|
+
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
237
|
+
# Error information
|
|
238
|
+
#
|
|
239
|
+
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
240
|
+
#
|
|
241
|
+
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
242
|
+
#
|
|
243
|
+
# @param doc_url [String, nil] URL to documentation about this error
|
|
244
|
+
#
|
|
245
|
+
# @param message [String] Human-readable error message
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# @see Sentdm::Models::WebhookListEventsResponse#meta
|
|
249
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
250
|
+
# @!attribute request_id
|
|
251
|
+
# Unique identifier for this request (for tracing and support)
|
|
252
|
+
#
|
|
253
|
+
# @return [String, nil]
|
|
254
|
+
optional :request_id, String
|
|
255
|
+
|
|
256
|
+
# @!attribute timestamp
|
|
257
|
+
# Server timestamp when the response was generated
|
|
258
|
+
#
|
|
259
|
+
# @return [Time, nil]
|
|
260
|
+
optional :timestamp, Time
|
|
261
|
+
|
|
262
|
+
# @!attribute version
|
|
263
|
+
# API version used for this request
|
|
264
|
+
#
|
|
265
|
+
# @return [String, nil]
|
|
266
|
+
optional :version, String
|
|
267
|
+
|
|
268
|
+
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
269
|
+
# Request and response metadata
|
|
270
|
+
#
|
|
271
|
+
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
272
|
+
#
|
|
273
|
+
# @param timestamp [Time] Server timestamp when the response was generated
|
|
274
|
+
#
|
|
275
|
+
# @param version [String] API version used for this request
|
|
132
276
|
end
|
|
133
277
|
end
|
|
134
278
|
end
|
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::WebhookListResponse::Error, nil]
|
|
17
|
+
optional :error, -> { Sentdm::Models::WebhookListResponse::Error }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::WebhookListResponse::Meta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::Models::WebhookListResponse::Meta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::WebhookListResponse::Data, nil] The response data (null if error)
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::WebhookListResponse::Error, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::WebhookListResponse::Meta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -44,20 +44,255 @@ module Sentdm
|
|
|
44
44
|
# @!attribute pagination
|
|
45
45
|
# Pagination metadata for list responses
|
|
46
46
|
#
|
|
47
|
-
# @return [Sentdm::Models::
|
|
48
|
-
optional :pagination, -> { Sentdm::
|
|
47
|
+
# @return [Sentdm::Models::WebhookListResponse::Data::Pagination, nil]
|
|
48
|
+
optional :pagination, -> { Sentdm::Models::WebhookListResponse::Data::Pagination }
|
|
49
49
|
|
|
50
50
|
# @!attribute webhooks
|
|
51
51
|
#
|
|
52
|
-
# @return [Array<Sentdm::Models::
|
|
53
|
-
optional :webhooks,
|
|
52
|
+
# @return [Array<Sentdm::Models::WebhookListResponse::Data::Webhook>, nil]
|
|
53
|
+
optional :webhooks,
|
|
54
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::WebhookListResponse::Data::Webhook] }
|
|
54
55
|
|
|
55
56
|
# @!method initialize(pagination: nil, webhooks: nil)
|
|
56
57
|
# The response data (null if error)
|
|
57
58
|
#
|
|
58
|
-
# @param pagination [Sentdm::Models::
|
|
59
|
+
# @param pagination [Sentdm::Models::WebhookListResponse::Data::Pagination] Pagination metadata for list responses
|
|
59
60
|
#
|
|
60
|
-
# @param webhooks [Array<Sentdm::Models::
|
|
61
|
+
# @param webhooks [Array<Sentdm::Models::WebhookListResponse::Data::Webhook>]
|
|
62
|
+
|
|
63
|
+
# @see Sentdm::Models::WebhookListResponse::Data#pagination
|
|
64
|
+
class Pagination < Sentdm::Internal::Type::BaseModel
|
|
65
|
+
# @!attribute cursors
|
|
66
|
+
# Cursor-based pagination pointers
|
|
67
|
+
#
|
|
68
|
+
# @return [Sentdm::Models::WebhookListResponse::Data::Pagination::Cursors, nil]
|
|
69
|
+
optional :cursors, -> { Sentdm::Models::WebhookListResponse::Data::Pagination::Cursors }, nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute has_more
|
|
72
|
+
# Whether there are more pages after this one
|
|
73
|
+
#
|
|
74
|
+
# @return [Boolean, nil]
|
|
75
|
+
optional :has_more, Sentdm::Internal::Type::Boolean
|
|
76
|
+
|
|
77
|
+
# @!attribute page
|
|
78
|
+
# Current page number (1-indexed)
|
|
79
|
+
#
|
|
80
|
+
# @return [Integer, nil]
|
|
81
|
+
optional :page, Integer
|
|
82
|
+
|
|
83
|
+
# @!attribute page_size
|
|
84
|
+
# Number of items per page
|
|
85
|
+
#
|
|
86
|
+
# @return [Integer, nil]
|
|
87
|
+
optional :page_size, Integer
|
|
88
|
+
|
|
89
|
+
# @!attribute total_count
|
|
90
|
+
# Total number of items across all pages
|
|
91
|
+
#
|
|
92
|
+
# @return [Integer, nil]
|
|
93
|
+
optional :total_count, Integer
|
|
94
|
+
|
|
95
|
+
# @!attribute total_pages
|
|
96
|
+
# Total number of pages
|
|
97
|
+
#
|
|
98
|
+
# @return [Integer, nil]
|
|
99
|
+
optional :total_pages, Integer
|
|
100
|
+
|
|
101
|
+
# @!method initialize(cursors: nil, has_more: nil, page: nil, page_size: nil, total_count: nil, total_pages: nil)
|
|
102
|
+
# Pagination metadata for list responses
|
|
103
|
+
#
|
|
104
|
+
# @param cursors [Sentdm::Models::WebhookListResponse::Data::Pagination::Cursors, nil] Cursor-based pagination pointers
|
|
105
|
+
#
|
|
106
|
+
# @param has_more [Boolean] Whether there are more pages after this one
|
|
107
|
+
#
|
|
108
|
+
# @param page [Integer] Current page number (1-indexed)
|
|
109
|
+
#
|
|
110
|
+
# @param page_size [Integer] Number of items per page
|
|
111
|
+
#
|
|
112
|
+
# @param total_count [Integer] Total number of items across all pages
|
|
113
|
+
#
|
|
114
|
+
# @param total_pages [Integer] Total number of pages
|
|
115
|
+
|
|
116
|
+
# @see Sentdm::Models::WebhookListResponse::Data::Pagination#cursors
|
|
117
|
+
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
118
|
+
# @!attribute after
|
|
119
|
+
# Cursor to fetch the next page
|
|
120
|
+
#
|
|
121
|
+
# @return [String, nil]
|
|
122
|
+
optional :after, String, nil?: true
|
|
123
|
+
|
|
124
|
+
# @!attribute before
|
|
125
|
+
# Cursor to fetch the previous page
|
|
126
|
+
#
|
|
127
|
+
# @return [String, nil]
|
|
128
|
+
optional :before, String, nil?: true
|
|
129
|
+
|
|
130
|
+
# @!method initialize(after: nil, before: nil)
|
|
131
|
+
# Cursor-based pagination pointers
|
|
132
|
+
#
|
|
133
|
+
# @param after [String, nil] Cursor to fetch the next page
|
|
134
|
+
#
|
|
135
|
+
# @param before [String, nil] Cursor to fetch the previous page
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class Webhook < Sentdm::Internal::Type::BaseModel
|
|
140
|
+
# @!attribute id
|
|
141
|
+
#
|
|
142
|
+
# @return [String, nil]
|
|
143
|
+
optional :id, String
|
|
144
|
+
|
|
145
|
+
# @!attribute consecutive_failures
|
|
146
|
+
#
|
|
147
|
+
# @return [Integer, nil]
|
|
148
|
+
optional :consecutive_failures, Integer
|
|
149
|
+
|
|
150
|
+
# @!attribute created_at
|
|
151
|
+
#
|
|
152
|
+
# @return [Time, nil]
|
|
153
|
+
optional :created_at, Time
|
|
154
|
+
|
|
155
|
+
# @!attribute display_name
|
|
156
|
+
#
|
|
157
|
+
# @return [String, nil]
|
|
158
|
+
optional :display_name, String
|
|
159
|
+
|
|
160
|
+
# @!attribute endpoint_url
|
|
161
|
+
#
|
|
162
|
+
# @return [String, nil]
|
|
163
|
+
optional :endpoint_url, String
|
|
164
|
+
|
|
165
|
+
# @!attribute event_filters
|
|
166
|
+
#
|
|
167
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
168
|
+
optional :event_filters,
|
|
169
|
+
Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]],
|
|
170
|
+
nil?: true
|
|
171
|
+
|
|
172
|
+
# @!attribute event_types
|
|
173
|
+
#
|
|
174
|
+
# @return [Array<String>, nil]
|
|
175
|
+
optional :event_types, Sentdm::Internal::Type::ArrayOf[String]
|
|
176
|
+
|
|
177
|
+
# @!attribute is_active
|
|
178
|
+
#
|
|
179
|
+
# @return [Boolean, nil]
|
|
180
|
+
optional :is_active, Sentdm::Internal::Type::Boolean
|
|
181
|
+
|
|
182
|
+
# @!attribute last_delivery_attempt_at
|
|
183
|
+
#
|
|
184
|
+
# @return [Time, nil]
|
|
185
|
+
optional :last_delivery_attempt_at, Time, nil?: true
|
|
186
|
+
|
|
187
|
+
# @!attribute last_successful_delivery_at
|
|
188
|
+
#
|
|
189
|
+
# @return [Time, nil]
|
|
190
|
+
optional :last_successful_delivery_at, Time, nil?: true
|
|
191
|
+
|
|
192
|
+
# @!attribute retry_count
|
|
193
|
+
#
|
|
194
|
+
# @return [Integer, nil]
|
|
195
|
+
optional :retry_count, Integer
|
|
196
|
+
|
|
197
|
+
# @!attribute signing_secret
|
|
198
|
+
#
|
|
199
|
+
# @return [String, nil]
|
|
200
|
+
optional :signing_secret, String, nil?: true
|
|
201
|
+
|
|
202
|
+
# @!attribute timeout_seconds
|
|
203
|
+
#
|
|
204
|
+
# @return [Integer, nil]
|
|
205
|
+
optional :timeout_seconds, Integer
|
|
206
|
+
|
|
207
|
+
# @!attribute updated_at
|
|
208
|
+
#
|
|
209
|
+
# @return [Time, nil]
|
|
210
|
+
optional :updated_at, Time, nil?: true
|
|
211
|
+
|
|
212
|
+
# @!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)
|
|
213
|
+
# @param id [String]
|
|
214
|
+
# @param consecutive_failures [Integer]
|
|
215
|
+
# @param created_at [Time]
|
|
216
|
+
# @param display_name [String]
|
|
217
|
+
# @param endpoint_url [String]
|
|
218
|
+
# @param event_filters [Hash{Symbol=>Array<String>}, nil]
|
|
219
|
+
# @param event_types [Array<String>]
|
|
220
|
+
# @param is_active [Boolean]
|
|
221
|
+
# @param last_delivery_attempt_at [Time, nil]
|
|
222
|
+
# @param last_successful_delivery_at [Time, nil]
|
|
223
|
+
# @param retry_count [Integer]
|
|
224
|
+
# @param signing_secret [String, nil]
|
|
225
|
+
# @param timeout_seconds [Integer]
|
|
226
|
+
# @param updated_at [Time, nil]
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# @see Sentdm::Models::WebhookListResponse#error
|
|
231
|
+
class Error < Sentdm::Internal::Type::BaseModel
|
|
232
|
+
# @!attribute code
|
|
233
|
+
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
234
|
+
#
|
|
235
|
+
# @return [String, nil]
|
|
236
|
+
optional :code, String
|
|
237
|
+
|
|
238
|
+
# @!attribute details
|
|
239
|
+
# Additional validation error details (field-level errors)
|
|
240
|
+
#
|
|
241
|
+
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
242
|
+
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
243
|
+
|
|
244
|
+
# @!attribute doc_url
|
|
245
|
+
# URL to documentation about this error
|
|
246
|
+
#
|
|
247
|
+
# @return [String, nil]
|
|
248
|
+
optional :doc_url, String, nil?: true
|
|
249
|
+
|
|
250
|
+
# @!attribute message
|
|
251
|
+
# Human-readable error message
|
|
252
|
+
#
|
|
253
|
+
# @return [String, nil]
|
|
254
|
+
optional :message, String
|
|
255
|
+
|
|
256
|
+
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
257
|
+
# Error information
|
|
258
|
+
#
|
|
259
|
+
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
260
|
+
#
|
|
261
|
+
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
262
|
+
#
|
|
263
|
+
# @param doc_url [String, nil] URL to documentation about this error
|
|
264
|
+
#
|
|
265
|
+
# @param message [String] Human-readable error message
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# @see Sentdm::Models::WebhookListResponse#meta
|
|
269
|
+
class Meta < Sentdm::Internal::Type::BaseModel
|
|
270
|
+
# @!attribute request_id
|
|
271
|
+
# Unique identifier for this request (for tracing and support)
|
|
272
|
+
#
|
|
273
|
+
# @return [String, nil]
|
|
274
|
+
optional :request_id, String
|
|
275
|
+
|
|
276
|
+
# @!attribute timestamp
|
|
277
|
+
# Server timestamp when the response was generated
|
|
278
|
+
#
|
|
279
|
+
# @return [Time, nil]
|
|
280
|
+
optional :timestamp, Time
|
|
281
|
+
|
|
282
|
+
# @!attribute version
|
|
283
|
+
# API version used for this request
|
|
284
|
+
#
|
|
285
|
+
# @return [String, nil]
|
|
286
|
+
optional :version, String
|
|
287
|
+
|
|
288
|
+
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
289
|
+
# Request and response metadata
|
|
290
|
+
#
|
|
291
|
+
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
292
|
+
#
|
|
293
|
+
# @param timestamp [Time] Server timestamp when the response was generated
|
|
294
|
+
#
|
|
295
|
+
# @param version [String] API version used for this request
|
|
61
296
|
end
|
|
62
297
|
end
|
|
63
298
|
end
|