trycourier 4.7.1 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/README.md +25 -235
- data/lib/courier/client.rb +12 -0
- data/lib/courier/internal/util.rb +50 -6
- data/lib/courier/models/audience_delete_params.rb +7 -1
- data/lib/courier/models/audience_list_members_params.rb +8 -1
- data/lib/courier/models/audience_retrieve_params.rb +7 -1
- data/lib/courier/models/audience_update_params.rb +8 -1
- data/lib/courier/models/audit_event_retrieve_params.rb +7 -1
- data/lib/courier/models/automations/invoke_invoke_by_template_params.rb +7 -1
- data/lib/courier/models/brand_delete_params.rb +7 -1
- data/lib/courier/models/brand_retrieve_params.rb +7 -1
- data/lib/courier/models/brand_update_params.rb +8 -1
- data/lib/courier/models/bulk_add_users_params.rb +7 -1
- data/lib/courier/models/bulk_list_users_params.rb +8 -1
- data/lib/courier/models/bulk_retrieve_job_params.rb +7 -1
- data/lib/courier/models/bulk_run_job_params.rb +7 -1
- data/lib/courier/models/channel.rb +75 -0
- data/lib/courier/models/channel_metadata.rb +15 -0
- data/lib/courier/models/elemental_content.rb +3 -10
- data/lib/courier/models/elemental_html_node_with_type.rb +24 -0
- data/lib/courier/models/elemental_node.rb +3 -1
- data/lib/courier/models/journey.rb +63 -0
- data/lib/courier/models/journey_invoke_params.rb +20 -0
- data/lib/courier/models/journey_list_params.rb +47 -0
- data/lib/courier/models/journeys_invoke_request.rb +49 -0
- data/lib/courier/models/journeys_invoke_response.rb +17 -0
- data/lib/courier/models/journeys_list_response.rb +24 -0
- data/lib/courier/models/list_delete_params.rb +7 -1
- data/lib/courier/models/list_restore_params.rb +7 -1
- data/lib/courier/models/list_retrieve_params.rb +7 -1
- data/lib/courier/models/list_update_params.rb +7 -1
- data/lib/courier/models/lists/subscription_add_params.rb +7 -1
- data/lib/courier/models/lists/subscription_list_params.rb +8 -1
- data/lib/courier/models/lists/subscription_subscribe_params.rb +7 -1
- data/lib/courier/models/lists/subscription_subscribe_user_params.rb +7 -1
- data/lib/courier/models/lists/subscription_unsubscribe_user_params.rb +7 -1
- data/lib/courier/models/message_cancel_params.rb +7 -1
- data/lib/courier/models/message_channels.rb +8 -0
- data/lib/courier/models/message_content_params.rb +7 -1
- data/lib/courier/models/message_details.rb +37 -37
- data/lib/courier/models/message_history_params.rb +8 -1
- data/lib/courier/models/message_providers.rb +8 -0
- data/lib/courier/models/message_providers_type.rb +38 -0
- data/lib/courier/models/message_retrieve_params.rb +7 -1
- data/lib/courier/models/metadata.rb +15 -0
- data/lib/courier/models/notification_archive_params.rb +20 -0
- data/lib/courier/models/notification_create_params.rb +14 -0
- data/lib/courier/models/notification_list_params.rb +13 -4
- data/lib/courier/models/notification_list_response.rb +108 -93
- data/lib/courier/models/notification_list_versions_params.rb +37 -0
- data/lib/courier/models/notification_publish_params.rb +20 -0
- data/lib/courier/models/notification_replace_params.rb +20 -0
- data/lib/courier/models/notification_retrieve_content_params.rb +7 -1
- data/lib/courier/models/notification_retrieve_params.rb +33 -0
- data/lib/courier/models/notification_template_create_request.rb +45 -0
- data/lib/courier/models/notification_template_get_response.rb +92 -0
- data/lib/courier/models/notification_template_mutation_response.rb +51 -0
- data/lib/courier/models/notification_template_payload.rb +98 -0
- data/lib/courier/models/notification_template_publish_request.rb +19 -0
- data/lib/courier/models/notification_template_summary.rb +81 -0
- data/lib/courier/models/notification_template_update_request.rb +46 -0
- data/lib/courier/models/notification_template_version_list_response.rb +22 -0
- data/lib/courier/models/notifications/check_delete_params.rb +7 -1
- data/lib/courier/models/notifications/check_list_params.rb +7 -1
- data/lib/courier/models/notifications/check_update_params.rb +7 -1
- data/lib/courier/models/notifications/draft_retrieve_content_params.rb +7 -1
- data/lib/courier/models/profile_create_params.rb +7 -1
- data/lib/courier/models/profile_delete_params.rb +7 -1
- data/lib/courier/models/profile_replace_params.rb +7 -1
- data/lib/courier/models/profile_retrieve_params.rb +7 -1
- data/lib/courier/models/profile_update_params.rb +8 -1
- data/lib/courier/models/profiles/list_delete_params.rb +7 -1
- data/lib/courier/models/profiles/list_retrieve_params.rb +8 -1
- data/lib/courier/models/profiles/list_subscribe_params.rb +7 -1
- data/lib/courier/models/provider.rb +67 -0
- data/lib/courier/models/provider_create_params.rb +52 -0
- data/lib/courier/models/provider_delete_params.rb +20 -0
- data/lib/courier/models/provider_list_params.rb +22 -0
- data/lib/courier/models/provider_list_response.rb +24 -0
- data/lib/courier/models/provider_retrieve_params.rb +20 -0
- data/lib/courier/models/provider_update_params.rb +58 -0
- data/lib/courier/models/providers/catalog_list_params.rb +44 -0
- data/lib/courier/models/providers/catalog_list_response.rb +26 -0
- data/lib/courier/models/providers_catalog_entry.rb +86 -0
- data/lib/courier/models/request_archive_params.rb +7 -1
- data/lib/courier/models/routing_strategy_archive_params.rb +20 -0
- data/lib/courier/models/routing_strategy_create_params.rb +14 -0
- data/lib/courier/models/routing_strategy_create_request.rb +58 -0
- data/lib/courier/models/routing_strategy_get_response.rb +99 -0
- data/lib/courier/models/routing_strategy_list_params.rb +30 -0
- data/lib/courier/models/routing_strategy_list_response.rb +24 -0
- data/lib/courier/models/routing_strategy_mutation_response.rb +19 -0
- data/lib/courier/models/routing_strategy_replace_params.rb +20 -0
- data/lib/courier/models/routing_strategy_replace_request.rb +59 -0
- data/lib/courier/models/routing_strategy_retrieve_params.rb +20 -0
- data/lib/courier/models/routing_strategy_summary.rb +75 -0
- data/lib/courier/models/send_message_params.rb +6 -154
- data/lib/courier/models/tenant_delete_params.rb +7 -1
- data/lib/courier/models/tenant_list_users_params.rb +8 -1
- data/lib/courier/models/tenant_retrieve_params.rb +7 -1
- data/lib/courier/models/tenant_template_input.rb +6 -152
- data/lib/courier/models/tenant_update_params.rb +8 -1
- data/lib/courier/models/tenants/preferences/item_delete_params.rb +7 -1
- data/lib/courier/models/tenants/preferences/item_update_params.rb +7 -1
- data/lib/courier/models/tenants/template_list_params.rb +8 -1
- data/lib/courier/models/tenants/template_publish_params.rb +7 -1
- data/lib/courier/models/tenants/template_replace_params.rb +7 -1
- data/lib/courier/models/tenants/template_retrieve_params.rb +7 -1
- data/lib/courier/models/tenants/templates/version_retrieve_params.rb +7 -1
- data/lib/courier/models/timeouts.rb +21 -0
- data/lib/courier/models/translation_retrieve_params.rb +7 -1
- data/lib/courier/models/translation_update_params.rb +7 -1
- data/lib/courier/models/users/preference_retrieve_params.rb +8 -1
- data/lib/courier/models/users/preference_retrieve_topic_params.rb +8 -1
- data/lib/courier/models/users/preference_update_or_create_topic_params.rb +8 -1
- data/lib/courier/models/users/tenant_add_multiple_params.rb +7 -1
- data/lib/courier/models/users/tenant_add_single_params.rb +7 -1
- data/lib/courier/models/users/tenant_list_params.rb +8 -1
- data/lib/courier/models/users/tenant_remove_all_params.rb +7 -1
- data/lib/courier/models/users/tenant_remove_single_params.rb +7 -1
- data/lib/courier/models/users/token_add_multiple_params.rb +7 -1
- data/lib/courier/models/users/token_add_single_params.rb +168 -2
- data/lib/courier/models/users/token_delete_params.rb +7 -1
- data/lib/courier/models/users/token_list_params.rb +7 -1
- data/lib/courier/models/users/token_retrieve_params.rb +7 -1
- data/lib/courier/models/users/token_update_params.rb +7 -1
- data/lib/courier/models/version_node.rb +46 -0
- data/lib/courier/models.rb +98 -0
- data/lib/courier/resources/audiences.rb +4 -2
- data/lib/courier/resources/audit_events.rb +2 -1
- data/lib/courier/resources/automations.rb +2 -1
- data/lib/courier/resources/brands.rb +2 -1
- data/lib/courier/resources/bulk.rb +2 -1
- data/lib/courier/resources/journeys.rb +73 -0
- data/lib/courier/resources/lists/subscriptions.rb +2 -1
- data/lib/courier/resources/lists.rb +2 -1
- data/lib/courier/resources/messages.rb +4 -2
- data/lib/courier/resources/notifications.rb +167 -4
- data/lib/courier/resources/profiles/lists.rb +2 -1
- data/lib/courier/resources/providers/catalog.rb +49 -0
- data/lib/courier/resources/providers.rb +150 -0
- data/lib/courier/resources/routing_strategies.rb +151 -0
- data/lib/courier/resources/tenants/templates.rb +2 -1
- data/lib/courier/resources/tenants.rb +4 -2
- data/lib/courier/resources/users/preferences.rb +7 -4
- data/lib/courier/resources/users/tenants.rb +2 -1
- data/lib/courier/resources/users/tokens.rb +7 -9
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +54 -0
- data/rbi/courier/client.rbi +9 -0
- data/rbi/courier/internal/util.rbi +28 -0
- data/rbi/courier/models/audience_delete_params.rbi +13 -5
- data/rbi/courier/models/audience_list_members_params.rbi +6 -0
- data/rbi/courier/models/audience_retrieve_params.rbi +13 -5
- data/rbi/courier/models/audience_update_params.rbi +6 -0
- data/rbi/courier/models/audit_event_retrieve_params.rbi +13 -5
- data/rbi/courier/models/automations/invoke_invoke_by_template_params.rbi +6 -0
- data/rbi/courier/models/brand_delete_params.rbi +13 -5
- data/rbi/courier/models/brand_retrieve_params.rbi +13 -5
- data/rbi/courier/models/brand_update_params.rbi +6 -0
- data/rbi/courier/models/bulk_add_users_params.rbi +6 -1
- data/rbi/courier/models/bulk_list_users_params.rbi +6 -0
- data/rbi/courier/models/bulk_retrieve_job_params.rbi +13 -5
- data/rbi/courier/models/bulk_run_job_params.rbi +13 -5
- data/rbi/courier/models/channel.rbi +106 -0
- data/rbi/courier/models/channel_metadata.rbi +28 -0
- data/rbi/courier/models/elemental_content.rbi +9 -12
- data/rbi/courier/models/elemental_html_node_with_type.rbi +59 -0
- data/rbi/courier/models/elemental_node.rbi +2 -1
- data/rbi/courier/models/journey.rbi +91 -0
- data/rbi/courier/models/journey_invoke_params.rbi +35 -0
- data/rbi/courier/models/journey_list_params.rbi +85 -0
- data/rbi/courier/models/journeys_invoke_request.rbi +84 -0
- data/rbi/courier/models/journeys_invoke_response.rbi +27 -0
- data/rbi/courier/models/journeys_list_response.rbi +46 -0
- data/rbi/courier/models/list_delete_params.rbi +13 -5
- data/rbi/courier/models/list_restore_params.rbi +13 -5
- data/rbi/courier/models/list_retrieve_params.rbi +13 -5
- data/rbi/courier/models/list_update_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_add_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_list_params.rbi +6 -0
- data/rbi/courier/models/lists/subscription_subscribe_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_subscribe_user_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_unsubscribe_user_params.rbi +10 -2
- data/rbi/courier/models/message_cancel_params.rbi +13 -5
- data/rbi/courier/models/message_channels.rbi +11 -0
- data/rbi/courier/models/message_content_params.rbi +13 -5
- data/rbi/courier/models/message_details.rbi +55 -43
- data/rbi/courier/models/message_history_params.rbi +10 -1
- data/rbi/courier/models/message_providers.rbi +11 -0
- data/rbi/courier/models/message_providers_type.rbi +60 -0
- data/rbi/courier/models/message_retrieve_params.rbi +13 -5
- data/rbi/courier/models/metadata.rbi +26 -0
- data/rbi/courier/models/notification_archive_params.rbi +35 -0
- data/rbi/courier/models/notification_create_params.rbi +27 -0
- data/rbi/courier/models/notification_list_params.rbi +15 -2
- data/rbi/courier/models/notification_list_response.rbi +159 -119
- data/rbi/courier/models/notification_list_versions_params.rbi +66 -0
- data/rbi/courier/models/notification_publish_params.rbi +35 -0
- data/rbi/courier/models/notification_replace_params.rbi +35 -0
- data/rbi/courier/models/notification_retrieve_content_params.rbi +13 -5
- data/rbi/courier/models/notification_retrieve_params.rbi +54 -0
- data/rbi/courier/models/notification_template_create_request.rbi +102 -0
- data/rbi/courier/models/notification_template_get_response.rbi +162 -0
- data/rbi/courier/models/notification_template_mutation_response.rbi +121 -0
- data/rbi/courier/models/notification_template_payload.rbi +183 -0
- data/rbi/courier/models/notification_template_publish_request.rbi +35 -0
- data/rbi/courier/models/notification_template_summary.rbi +124 -0
- data/rbi/courier/models/notification_template_update_request.rbi +103 -0
- data/rbi/courier/models/notification_template_version_list_response.rbi +41 -0
- data/rbi/courier/models/notifications/check_delete_params.rbi +10 -2
- data/rbi/courier/models/notifications/check_list_params.rbi +10 -2
- data/rbi/courier/models/notifications/check_update_params.rbi +6 -1
- data/rbi/courier/models/notifications/draft_retrieve_content_params.rbi +13 -5
- data/rbi/courier/models/profile_create_params.rbi +6 -1
- data/rbi/courier/models/profile_delete_params.rbi +13 -5
- data/rbi/courier/models/profile_replace_params.rbi +6 -1
- data/rbi/courier/models/profile_retrieve_params.rbi +13 -5
- data/rbi/courier/models/profile_update_params.rbi +6 -0
- data/rbi/courier/models/profiles/list_delete_params.rbi +13 -5
- data/rbi/courier/models/profiles/list_retrieve_params.rbi +6 -0
- data/rbi/courier/models/profiles/list_subscribe_params.rbi +6 -1
- data/rbi/courier/models/provider.rbi +87 -0
- data/rbi/courier/models/provider_create_params.rbi +82 -0
- data/rbi/courier/models/provider_delete_params.rbi +35 -0
- data/rbi/courier/models/provider_list_params.rbi +43 -0
- data/rbi/courier/models/provider_list_response.rbi +42 -0
- data/rbi/courier/models/provider_retrieve_params.rbi +35 -0
- data/rbi/courier/models/provider_update_params.rbi +86 -0
- data/rbi/courier/models/providers/catalog_list_params.rbi +75 -0
- data/rbi/courier/models/providers/catalog_list_response.rbi +47 -0
- data/rbi/courier/models/providers_catalog_entry.rbi +129 -0
- data/rbi/courier/models/request_archive_params.rbi +13 -5
- data/rbi/courier/models/routing_strategy_archive_params.rbi +38 -0
- data/rbi/courier/models/routing_strategy_create_params.rbi +30 -0
- data/rbi/courier/models/routing_strategy_create_request.rbi +86 -0
- data/rbi/courier/models/routing_strategy_get_response.rbi +121 -0
- data/rbi/courier/models/routing_strategy_list_params.rbi +54 -0
- data/rbi/courier/models/routing_strategy_list_response.rbi +45 -0
- data/rbi/courier/models/routing_strategy_mutation_response.rbi +31 -0
- data/rbi/courier/models/routing_strategy_replace_params.rbi +38 -0
- data/rbi/courier/models/routing_strategy_replace_request.rbi +87 -0
- data/rbi/courier/models/routing_strategy_retrieve_params.rbi +38 -0
- data/rbi/courier/models/routing_strategy_summary.rbi +95 -0
- data/rbi/courier/models/send_message_params.rbi +6 -362
- data/rbi/courier/models/tenant_delete_params.rbi +13 -5
- data/rbi/courier/models/tenant_list_users_params.rbi +6 -0
- data/rbi/courier/models/tenant_retrieve_params.rbi +13 -5
- data/rbi/courier/models/tenant_template_input.rbi +8 -336
- data/rbi/courier/models/tenant_update_params.rbi +6 -0
- data/rbi/courier/models/tenants/preferences/item_delete_params.rbi +10 -2
- data/rbi/courier/models/tenants/preferences/item_update_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_list_params.rbi +6 -0
- data/rbi/courier/models/tenants/template_publish_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_replace_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_retrieve_params.rbi +10 -2
- data/rbi/courier/models/tenants/templates/version_retrieve_params.rbi +6 -1
- data/rbi/courier/models/timeouts.rbi +33 -0
- data/rbi/courier/models/translation_retrieve_params.rbi +10 -2
- data/rbi/courier/models/translation_update_params.rbi +6 -1
- data/rbi/courier/models/users/preference_retrieve_params.rbi +6 -0
- data/rbi/courier/models/users/preference_retrieve_topic_params.rbi +6 -0
- data/rbi/courier/models/users/preference_update_or_create_topic_params.rbi +6 -0
- data/rbi/courier/models/users/tenant_add_multiple_params.rbi +6 -1
- data/rbi/courier/models/users/tenant_add_single_params.rbi +6 -1
- data/rbi/courier/models/users/tenant_list_params.rbi +6 -0
- data/rbi/courier/models/users/tenant_remove_all_params.rbi +13 -5
- data/rbi/courier/models/users/tenant_remove_single_params.rbi +10 -2
- data/rbi/courier/models/users/token_add_multiple_params.rbi +13 -5
- data/rbi/courier/models/users/token_add_single_params.rbi +290 -3
- data/rbi/courier/models/users/token_delete_params.rbi +10 -2
- data/rbi/courier/models/users/token_list_params.rbi +13 -5
- data/rbi/courier/models/users/token_retrieve_params.rbi +10 -2
- data/rbi/courier/models/users/token_update_params.rbi +6 -1
- data/rbi/courier/models/version_node.rbi +65 -0
- data/rbi/courier/models.rbi +106 -0
- data/rbi/courier/resources/journeys.rbi +64 -0
- data/rbi/courier/resources/notifications.rbi +119 -1
- data/rbi/courier/resources/providers/catalog.rbi +38 -0
- data/rbi/courier/resources/providers.rbi +116 -0
- data/rbi/courier/resources/routing_strategies.rbi +126 -0
- data/rbi/courier/resources/users/tokens.rbi +11 -9
- data/sig/courier/client.rbs +6 -0
- data/sig/courier/internal/util.rbs +14 -0
- data/sig/courier/models/audience_delete_params.rbs +11 -3
- data/sig/courier/models/audience_list_members_params.rbs +6 -1
- data/sig/courier/models/audience_retrieve_params.rbs +11 -3
- data/sig/courier/models/audience_update_params.rbs +5 -0
- data/sig/courier/models/audit_event_retrieve_params.rbs +11 -3
- data/sig/courier/models/automations/invoke_invoke_by_template_params.rbs +5 -0
- data/sig/courier/models/brand_delete_params.rbs +11 -3
- data/sig/courier/models/brand_retrieve_params.rbs +11 -3
- data/sig/courier/models/brand_update_params.rbs +5 -0
- data/sig/courier/models/bulk_add_users_params.rbs +5 -1
- data/sig/courier/models/bulk_list_users_params.rbs +6 -1
- data/sig/courier/models/bulk_retrieve_job_params.rbs +11 -3
- data/sig/courier/models/bulk_run_job_params.rbs +11 -3
- data/sig/courier/models/channel.rbs +61 -0
- data/sig/courier/models/channel_metadata.rbs +13 -0
- data/sig/courier/models/elemental_content.rbs +3 -11
- data/sig/courier/models/elemental_html_node_with_type.rbs +32 -0
- data/sig/courier/models/elemental_node.rbs +1 -0
- data/sig/courier/models/journey.rbs +55 -0
- data/sig/courier/models/journey_invoke_params.rbs +25 -0
- data/sig/courier/models/journey_list_params.rbs +45 -0
- data/sig/courier/models/journeys_invoke_request.rbs +36 -0
- data/sig/courier/models/journeys_invoke_response.rbs +13 -0
- data/sig/courier/models/journeys_list_response.rbs +23 -0
- data/sig/courier/models/list_delete_params.rbs +12 -3
- data/sig/courier/models/list_restore_params.rbs +11 -3
- data/sig/courier/models/list_retrieve_params.rbs +11 -3
- data/sig/courier/models/list_update_params.rbs +9 -1
- data/sig/courier/models/lists/subscription_add_params.rbs +8 -1
- data/sig/courier/models/lists/subscription_list_params.rbs +6 -1
- data/sig/courier/models/lists/subscription_subscribe_params.rbs +8 -1
- data/sig/courier/models/lists/subscription_subscribe_user_params.rbs +9 -1
- data/sig/courier/models/lists/subscription_unsubscribe_user_params.rbs +6 -1
- data/sig/courier/models/message_cancel_params.rbs +11 -3
- data/sig/courier/models/message_channels.rbs +7 -0
- data/sig/courier/models/message_content_params.rbs +11 -3
- data/sig/courier/models/message_details.rbs +31 -23
- data/sig/courier/models/message_history_params.rbs +6 -1
- data/sig/courier/models/message_providers.rbs +7 -0
- data/sig/courier/models/message_providers_type.rbs +35 -0
- data/sig/courier/models/message_retrieve_params.rbs +11 -3
- data/sig/courier/models/metadata.rbs +13 -0
- data/sig/courier/models/notification_archive_params.rbs +20 -0
- data/sig/courier/models/notification_create_params.rbs +15 -0
- data/sig/courier/models/notification_list_params.rbs +7 -1
- data/sig/courier/models/notification_list_response.rbs +81 -71
- data/sig/courier/models/notification_list_versions_params.rbs +36 -0
- data/sig/courier/models/notification_publish_params.rbs +22 -0
- data/sig/courier/models/notification_replace_params.rbs +22 -0
- data/sig/courier/models/notification_retrieve_content_params.rbs +8 -3
- data/sig/courier/models/notification_retrieve_params.rbs +30 -0
- data/sig/courier/models/notification_template_create_request.rbs +40 -0
- data/sig/courier/models/notification_template_get_response.rbs +72 -0
- data/sig/courier/models/notification_template_mutation_response.rbs +46 -0
- data/sig/courier/models/notification_template_payload.rbs +75 -0
- data/sig/courier/models/notification_template_publish_request.rbs +15 -0
- data/sig/courier/models/notification_template_summary.rbs +70 -0
- data/sig/courier/models/notification_template_update_request.rbs +40 -0
- data/sig/courier/models/notification_template_version_list_response.rbs +22 -0
- data/sig/courier/models/notifications/check_delete_params.rbs +10 -2
- data/sig/courier/models/notifications/check_list_params.rbs +10 -2
- data/sig/courier/models/notifications/check_update_params.rbs +9 -1
- data/sig/courier/models/notifications/draft_retrieve_content_params.rbs +8 -3
- data/sig/courier/models/profile_create_params.rbs +5 -1
- data/sig/courier/models/profile_delete_params.rbs +11 -3
- data/sig/courier/models/profile_replace_params.rbs +5 -1
- data/sig/courier/models/profile_retrieve_params.rbs +11 -3
- data/sig/courier/models/profile_update_params.rbs +5 -1
- data/sig/courier/models/profiles/list_delete_params.rbs +11 -3
- data/sig/courier/models/profiles/list_retrieve_params.rbs +6 -1
- data/sig/courier/models/profiles/list_subscribe_params.rbs +8 -1
- data/sig/courier/models/provider.rbs +52 -0
- data/sig/courier/models/provider_create_params.rbs +47 -0
- data/sig/courier/models/provider_delete_params.rbs +20 -0
- data/sig/courier/models/provider_list_params.rbs +25 -0
- data/sig/courier/models/provider_list_response.rbs +22 -0
- data/sig/courier/models/provider_retrieve_params.rbs +20 -0
- data/sig/courier/models/provider_update_params.rbs +52 -0
- data/sig/courier/models/providers/catalog_list_params.rbs +40 -0
- data/sig/courier/models/providers/catalog_list_response.rbs +27 -0
- data/sig/courier/models/providers_catalog_entry.rbs +64 -0
- data/sig/courier/models/request_archive_params.rbs +11 -3
- data/sig/courier/models/routing_strategy_archive_params.rbs +20 -0
- data/sig/courier/models/routing_strategy_create_params.rbs +15 -0
- data/sig/courier/models/routing_strategy_create_request.rbs +45 -0
- data/sig/courier/models/routing_strategy_get_response.rbs +70 -0
- data/sig/courier/models/routing_strategy_list_params.rbs +30 -0
- data/sig/courier/models/routing_strategy_list_response.rbs +25 -0
- data/sig/courier/models/routing_strategy_mutation_response.rbs +13 -0
- data/sig/courier/models/routing_strategy_replace_params.rbs +22 -0
- data/sig/courier/models/routing_strategy_replace_request.rbs +45 -0
- data/sig/courier/models/routing_strategy_retrieve_params.rbs +20 -0
- data/sig/courier/models/routing_strategy_summary.rbs +55 -0
- data/sig/courier/models/send_message_params.rbs +8 -130
- data/sig/courier/models/tenant_delete_params.rbs +11 -3
- data/sig/courier/models/tenant_list_users_params.rbs +5 -1
- data/sig/courier/models/tenant_retrieve_params.rbs +11 -3
- data/sig/courier/models/tenant_template_input.rbs +12 -134
- data/sig/courier/models/tenant_update_params.rbs +5 -0
- data/sig/courier/models/tenants/preferences/item_delete_params.rbs +6 -1
- data/sig/courier/models/tenants/preferences/item_update_params.rbs +8 -1
- data/sig/courier/models/tenants/template_list_params.rbs +5 -1
- data/sig/courier/models/tenants/template_publish_params.rbs +8 -1
- data/sig/courier/models/tenants/template_replace_params.rbs +8 -1
- data/sig/courier/models/tenants/template_retrieve_params.rbs +6 -1
- data/sig/courier/models/tenants/templates/version_retrieve_params.rbs +5 -1
- data/sig/courier/models/timeouts.rbs +15 -0
- data/sig/courier/models/translation_retrieve_params.rbs +6 -1
- data/sig/courier/models/translation_update_params.rbs +5 -1
- data/sig/courier/models/users/preference_retrieve_params.rbs +6 -1
- data/sig/courier/models/users/preference_retrieve_topic_params.rbs +5 -1
- data/sig/courier/models/users/preference_update_or_create_topic_params.rbs +5 -0
- data/sig/courier/models/users/tenant_add_multiple_params.rbs +5 -1
- data/sig/courier/models/users/tenant_add_single_params.rbs +5 -1
- data/sig/courier/models/users/tenant_list_params.rbs +5 -1
- data/sig/courier/models/users/tenant_remove_all_params.rbs +11 -3
- data/sig/courier/models/users/tenant_remove_single_params.rbs +6 -1
- data/sig/courier/models/users/token_add_multiple_params.rbs +11 -3
- data/sig/courier/models/users/token_add_single_params.rbs +127 -4
- data/sig/courier/models/users/token_delete_params.rbs +6 -1
- data/sig/courier/models/users/token_list_params.rbs +11 -3
- data/sig/courier/models/users/token_retrieve_params.rbs +6 -1
- data/sig/courier/models/users/token_update_params.rbs +5 -0
- data/sig/courier/models/version_node.rbs +32 -0
- data/sig/courier/models.rbs +96 -0
- data/sig/courier/resources/journeys.rbs +21 -0
- data/sig/courier/resources/notifications.rbs +35 -0
- data/sig/courier/resources/providers/catalog.rbs +16 -0
- data/sig/courier/resources/providers.rbs +38 -0
- data/sig/courier/resources/routing_strategies.rbs +41 -0
- data/sig/courier/resources/users/tokens.rbs +5 -6
- metadata +164 -2
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute message_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :message_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(message_id:, request_options: {})
|
|
16
|
+
# @param message_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute message_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :message_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(message_id:, request_options: {})
|
|
16
|
+
# @param message_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -11,20 +11,6 @@ module Courier
|
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :id, String
|
|
13
13
|
|
|
14
|
-
# @!attribute clicked
|
|
15
|
-
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
16
|
-
# time. Stored as a millisecond representation of the Unix epoch.
|
|
17
|
-
#
|
|
18
|
-
# @return [Integer]
|
|
19
|
-
required :clicked, Integer
|
|
20
|
-
|
|
21
|
-
# @!attribute delivered
|
|
22
|
-
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
23
|
-
# as a millisecond representation of the Unix epoch.
|
|
24
|
-
#
|
|
25
|
-
# @return [Integer]
|
|
26
|
-
required :delivered, Integer
|
|
27
|
-
|
|
28
14
|
# @!attribute enqueued
|
|
29
15
|
# A UTC timestamp at which Courier received the message request. Stored as a
|
|
30
16
|
# millisecond representation of the Unix epoch.
|
|
@@ -44,71 +30,85 @@ module Courier
|
|
|
44
30
|
# @return [String]
|
|
45
31
|
required :notification, String
|
|
46
32
|
|
|
47
|
-
# @!attribute opened
|
|
48
|
-
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
49
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
50
|
-
#
|
|
51
|
-
# @return [Integer]
|
|
52
|
-
required :opened, Integer
|
|
53
|
-
|
|
54
33
|
# @!attribute recipient
|
|
55
34
|
# A unique identifier associated with the recipient of the delivered message.
|
|
56
35
|
#
|
|
57
36
|
# @return [String]
|
|
58
37
|
required :recipient, String
|
|
59
38
|
|
|
60
|
-
# @!attribute sent
|
|
61
|
-
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
62
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
63
|
-
#
|
|
64
|
-
# @return [Integer]
|
|
65
|
-
required :sent, Integer
|
|
66
|
-
|
|
67
39
|
# @!attribute status
|
|
68
40
|
# The current status of the message.
|
|
69
41
|
#
|
|
70
42
|
# @return [Symbol, Courier::Models::MessageDetails::Status]
|
|
71
43
|
required :status, enum: -> { Courier::MessageDetails::Status }
|
|
72
44
|
|
|
45
|
+
# @!attribute clicked
|
|
46
|
+
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
47
|
+
# time. Stored as a millisecond representation of the Unix epoch.
|
|
48
|
+
#
|
|
49
|
+
# @return [Integer, nil]
|
|
50
|
+
optional :clicked, Integer
|
|
51
|
+
|
|
52
|
+
# @!attribute delivered
|
|
53
|
+
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
54
|
+
# as a millisecond representation of the Unix epoch.
|
|
55
|
+
#
|
|
56
|
+
# @return [Integer, nil]
|
|
57
|
+
optional :delivered, Integer
|
|
58
|
+
|
|
73
59
|
# @!attribute error
|
|
74
60
|
# A message describing the error that occurred.
|
|
75
61
|
#
|
|
76
62
|
# @return [String, nil]
|
|
77
63
|
optional :error, String, nil?: true
|
|
78
64
|
|
|
65
|
+
# @!attribute opened
|
|
66
|
+
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
67
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
68
|
+
#
|
|
69
|
+
# @return [Integer, nil]
|
|
70
|
+
optional :opened, Integer
|
|
71
|
+
|
|
79
72
|
# @!attribute reason
|
|
80
73
|
# The reason for the current status of the message.
|
|
81
74
|
#
|
|
82
75
|
# @return [Symbol, Courier::Models::MessageDetails::Reason, nil]
|
|
83
76
|
optional :reason, enum: -> { Courier::MessageDetails::Reason }, nil?: true
|
|
84
77
|
|
|
85
|
-
# @!
|
|
78
|
+
# @!attribute sent
|
|
79
|
+
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
80
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
81
|
+
#
|
|
82
|
+
# @return [Integer, nil]
|
|
83
|
+
optional :sent, Integer
|
|
84
|
+
|
|
85
|
+
# @!method initialize(id:, enqueued:, event:, notification:, recipient:, status:, clicked: nil, delivered: nil, error: nil, opened: nil, reason: nil, sent: nil)
|
|
86
86
|
# Some parameter documentations has been truncated, see
|
|
87
87
|
# {Courier::Models::MessageDetails} for more details.
|
|
88
88
|
#
|
|
89
89
|
# @param id [String] A unique identifier associated with the message you wish to retrieve (results fr
|
|
90
90
|
#
|
|
91
|
-
# @param clicked [Integer] A UTC timestamp at which the recipient clicked on a tracked link for the first t
|
|
92
|
-
#
|
|
93
|
-
# @param delivered [Integer] A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
94
|
-
#
|
|
95
91
|
# @param enqueued [Integer] A UTC timestamp at which Courier received the message request. Stored as a milli
|
|
96
92
|
#
|
|
97
93
|
# @param event [String] A unique identifier associated with the event of the delivered message.
|
|
98
94
|
#
|
|
99
95
|
# @param notification [String] A unique identifier associated with the notification of the delivered message.
|
|
100
96
|
#
|
|
101
|
-
# @param opened [Integer] A UTC timestamp at which the recipient opened a message for the first time. Stor
|
|
102
|
-
#
|
|
103
97
|
# @param recipient [String] A unique identifier associated with the recipient of the delivered message.
|
|
104
98
|
#
|
|
105
|
-
# @param sent [Integer] A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
106
|
-
#
|
|
107
99
|
# @param status [Symbol, Courier::Models::MessageDetails::Status] The current status of the message.
|
|
108
100
|
#
|
|
101
|
+
# @param clicked [Integer] A UTC timestamp at which the recipient clicked on a tracked link for the first t
|
|
102
|
+
#
|
|
103
|
+
# @param delivered [Integer] A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
104
|
+
#
|
|
109
105
|
# @param error [String, nil] A message describing the error that occurred.
|
|
110
106
|
#
|
|
107
|
+
# @param opened [Integer] A UTC timestamp at which the recipient opened a message for the first time. Stor
|
|
108
|
+
#
|
|
111
109
|
# @param reason [Symbol, Courier::Models::MessageDetails::Reason, nil] The reason for the current status of the message.
|
|
110
|
+
#
|
|
111
|
+
# @param sent [Integer] A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
112
112
|
|
|
113
113
|
# The current status of the message.
|
|
114
114
|
#
|
|
@@ -7,13 +7,20 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute message_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :message_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute type
|
|
11
16
|
# A supported Message History type that will filter the events returned.
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
14
19
|
optional :type, String, nil?: true
|
|
15
20
|
|
|
16
|
-
# @!method initialize(type: nil, request_options: {})
|
|
21
|
+
# @!method initialize(message_id:, type: nil, request_options: {})
|
|
22
|
+
# @param message_id [String]
|
|
23
|
+
#
|
|
17
24
|
# @param type [String, nil] A supported Message History type that will filter the events returned.
|
|
18
25
|
#
|
|
19
26
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class MessageProvidersType < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute if_
|
|
7
|
+
# JS conditional with access to data/profile.
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :if_, String, api_name: :if, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute metadata
|
|
13
|
+
#
|
|
14
|
+
# @return [Courier::Models::Metadata, nil]
|
|
15
|
+
optional :metadata, -> { Courier::Metadata }, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute override
|
|
18
|
+
# Provider-specific overrides.
|
|
19
|
+
#
|
|
20
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
21
|
+
optional :override, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute timeouts
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :timeouts, Integer, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!method initialize(if_: nil, metadata: nil, override: nil, timeouts: nil)
|
|
29
|
+
# @param if_ [String, nil] JS conditional with access to data/profile.
|
|
30
|
+
#
|
|
31
|
+
# @param metadata [Courier::Models::Metadata, nil]
|
|
32
|
+
#
|
|
33
|
+
# @param override [Hash{Symbol=>Object}, nil] Provider-specific overrides.
|
|
34
|
+
#
|
|
35
|
+
# @param timeouts [Integer, nil]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute message_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :message_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(message_id:, request_options: {})
|
|
16
|
+
# @param message_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class Metadata < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute utm
|
|
7
|
+
#
|
|
8
|
+
# @return [Courier::Models::Utm, nil]
|
|
9
|
+
optional :utm, -> { Courier::Utm }, nil?: true
|
|
10
|
+
|
|
11
|
+
# @!method initialize(utm: nil)
|
|
12
|
+
# @param utm [Courier::Models::Utm, nil]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Notifications#archive
|
|
6
|
+
class NotificationArchiveParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(id:, request_options: {})
|
|
16
|
+
# @param id [String]
|
|
17
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Notifications#create
|
|
6
|
+
class NotificationCreateParams < Courier::Models::NotificationTemplateCreateRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -8,20 +8,29 @@ module Courier
|
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute cursor
|
|
11
|
+
# Opaque pagination cursor from a previous response. Omit for the first page.
|
|
11
12
|
#
|
|
12
13
|
# @return [String, nil]
|
|
13
14
|
optional :cursor, String, nil?: true
|
|
14
15
|
|
|
16
|
+
# @!attribute event_id
|
|
17
|
+
# Filter to templates linked to this event map ID.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :event_id, String
|
|
21
|
+
|
|
15
22
|
# @!attribute notes
|
|
16
|
-
#
|
|
23
|
+
# Include template notes in the response. Only applies to legacy templates.
|
|
17
24
|
#
|
|
18
25
|
# @return [Boolean, nil]
|
|
19
26
|
optional :notes, Courier::Internal::Type::Boolean, nil?: true
|
|
20
27
|
|
|
21
|
-
# @!method initialize(cursor: nil, notes: nil, request_options: {})
|
|
22
|
-
# @param cursor [String, nil]
|
|
28
|
+
# @!method initialize(cursor: nil, event_id: nil, notes: nil, request_options: {})
|
|
29
|
+
# @param cursor [String, nil] Opaque pagination cursor from a previous response. Omit for the first page.
|
|
30
|
+
#
|
|
31
|
+
# @param event_id [String] Filter to templates linked to this event map ID.
|
|
23
32
|
#
|
|
24
|
-
# @param notes [Boolean, nil]
|
|
33
|
+
# @param notes [Boolean, nil] Include template notes in the response. Only applies to legacy templates.
|
|
25
34
|
#
|
|
26
35
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
27
36
|
end
|
|
@@ -10,108 +10,123 @@ module Courier
|
|
|
10
10
|
required :paging, -> { Courier::Paging }
|
|
11
11
|
|
|
12
12
|
# @!attribute results
|
|
13
|
+
# Notification templates in this workspace.
|
|
13
14
|
#
|
|
14
|
-
# @return [Array<Courier::Models::NotificationListResponse::Result>]
|
|
15
|
+
# @return [Array<Courier::Models::NotificationListResponse::Result::Notification, Courier::Models::NotificationTemplateSummary>]
|
|
15
16
|
required :results,
|
|
16
|
-
-> { Courier::Internal::Type::ArrayOf[Courier::Models::NotificationListResponse::Result] }
|
|
17
|
+
-> { Courier::Internal::Type::ArrayOf[union: Courier::Models::NotificationListResponse::Result] }
|
|
17
18
|
|
|
18
19
|
# @!method initialize(paging:, results:)
|
|
19
20
|
# @param paging [Courier::Models::Paging]
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
class Result < Courier::Internal::Type::BaseModel
|
|
23
|
-
# @!attribute id
|
|
24
|
-
#
|
|
25
|
-
# @return [String]
|
|
26
|
-
required :id, String
|
|
27
|
-
|
|
28
|
-
# @!attribute created_at
|
|
29
|
-
#
|
|
30
|
-
# @return [Integer]
|
|
31
|
-
required :created_at, Integer
|
|
32
|
-
|
|
33
|
-
# @!attribute event_ids
|
|
34
|
-
# Array of event IDs associated with this notification
|
|
35
|
-
#
|
|
36
|
-
# @return [Array<String>]
|
|
37
|
-
required :event_ids, Courier::Internal::Type::ArrayOf[String]
|
|
38
|
-
|
|
39
|
-
# @!attribute note
|
|
40
|
-
#
|
|
41
|
-
# @return [String]
|
|
42
|
-
required :note, String
|
|
43
|
-
|
|
44
|
-
# @!attribute routing
|
|
45
|
-
#
|
|
46
|
-
# @return [Courier::Models::MessageRouting]
|
|
47
|
-
required :routing, -> { Courier::MessageRouting }
|
|
48
|
-
|
|
49
|
-
# @!attribute topic_id
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :topic_id, String
|
|
53
|
-
|
|
54
|
-
# @!attribute updated_at
|
|
55
|
-
#
|
|
56
|
-
# @return [Integer]
|
|
57
|
-
required :updated_at, Integer
|
|
58
|
-
|
|
59
|
-
# @!attribute tags
|
|
60
|
-
#
|
|
61
|
-
# @return [Courier::Models::NotificationListResponse::Result::Tags, nil]
|
|
62
|
-
optional :tags, -> { Courier::Models::NotificationListResponse::Result::Tags }, nil?: true
|
|
63
|
-
|
|
64
|
-
# @!attribute title
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :title, String, nil?: true
|
|
68
|
-
|
|
69
|
-
# @!method initialize(id:, created_at:, event_ids:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil)
|
|
70
|
-
# @param id [String]
|
|
71
|
-
#
|
|
72
|
-
# @param created_at [Integer]
|
|
73
|
-
#
|
|
74
|
-
# @param event_ids [Array<String>] Array of event IDs associated with this notification
|
|
75
|
-
#
|
|
76
|
-
# @param note [String]
|
|
77
|
-
#
|
|
78
|
-
# @param routing [Courier::Models::MessageRouting]
|
|
79
|
-
#
|
|
80
|
-
# @param topic_id [String]
|
|
81
|
-
#
|
|
82
|
-
# @param updated_at [Integer]
|
|
83
|
-
#
|
|
84
|
-
# @param tags [Courier::Models::NotificationListResponse::Result::Tags, nil]
|
|
85
|
-
#
|
|
86
|
-
# @param title [String, nil]
|
|
87
|
-
|
|
88
|
-
# @see Courier::Models::NotificationListResponse::Result#tags
|
|
89
|
-
class Tags < Courier::Internal::Type::BaseModel
|
|
90
|
-
# @!attribute data
|
|
91
|
-
#
|
|
92
|
-
# @return [Array<Courier::Models::NotificationListResponse::Result::Tags::Data>]
|
|
93
|
-
required :data,
|
|
94
|
-
-> { Courier::Internal::Type::ArrayOf[Courier::Models::NotificationListResponse::Result::Tags::Data] }
|
|
95
|
-
|
|
96
|
-
# @!method initialize(data:)
|
|
97
|
-
# @param data [Array<Courier::Models::NotificationListResponse::Result::Tags::Data>]
|
|
98
|
-
|
|
99
|
-
class Data < Courier::Internal::Type::BaseModel
|
|
100
|
-
# @!attribute id
|
|
101
|
-
#
|
|
102
|
-
# @return [String]
|
|
103
|
-
required :id, String
|
|
21
|
+
#
|
|
22
|
+
# @param results [Array<Courier::Models::NotificationListResponse::Result::Notification, Courier::Models::NotificationTemplateSummary>] Notification templates in this workspace.
|
|
104
23
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
24
|
+
# V2 (CDS) template summary returned in list responses.
|
|
25
|
+
module Result
|
|
26
|
+
extend Courier::Internal::Type::Union
|
|
27
|
+
|
|
28
|
+
variant -> { Courier::Models::NotificationListResponse::Result::Notification }
|
|
29
|
+
|
|
30
|
+
# V2 (CDS) template summary returned in list responses.
|
|
31
|
+
variant -> { Courier::NotificationTemplateSummary }
|
|
32
|
+
|
|
33
|
+
class Notification < Courier::Internal::Type::BaseModel
|
|
34
|
+
# @!attribute id
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :id, String
|
|
38
|
+
|
|
39
|
+
# @!attribute created_at
|
|
40
|
+
#
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
required :created_at, Integer
|
|
43
|
+
|
|
44
|
+
# @!attribute event_ids
|
|
45
|
+
# Array of event IDs associated with this notification
|
|
46
|
+
#
|
|
47
|
+
# @return [Array<String>]
|
|
48
|
+
required :event_ids, Courier::Internal::Type::ArrayOf[String]
|
|
49
|
+
|
|
50
|
+
# @!attribute note
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
required :note, String
|
|
54
|
+
|
|
55
|
+
# @!attribute routing
|
|
56
|
+
#
|
|
57
|
+
# @return [Courier::Models::MessageRouting]
|
|
58
|
+
required :routing, -> { Courier::MessageRouting }
|
|
59
|
+
|
|
60
|
+
# @!attribute topic_id
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
required :topic_id, String
|
|
109
64
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
65
|
+
# @!attribute updated_at
|
|
66
|
+
#
|
|
67
|
+
# @return [Integer]
|
|
68
|
+
required :updated_at, Integer
|
|
69
|
+
|
|
70
|
+
# @!attribute tags
|
|
71
|
+
#
|
|
72
|
+
# @return [Courier::Models::NotificationListResponse::Result::Notification::Tags, nil]
|
|
73
|
+
optional :tags, -> { Courier::Models::NotificationListResponse::Result::Notification::Tags }, nil?: true
|
|
74
|
+
|
|
75
|
+
# @!attribute title
|
|
76
|
+
#
|
|
77
|
+
# @return [String, nil]
|
|
78
|
+
optional :title, String, nil?: true
|
|
79
|
+
|
|
80
|
+
# @!method initialize(id:, created_at:, event_ids:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil)
|
|
81
|
+
# @param id [String]
|
|
82
|
+
#
|
|
83
|
+
# @param created_at [Integer]
|
|
84
|
+
#
|
|
85
|
+
# @param event_ids [Array<String>] Array of event IDs associated with this notification
|
|
86
|
+
#
|
|
87
|
+
# @param note [String]
|
|
88
|
+
#
|
|
89
|
+
# @param routing [Courier::Models::MessageRouting]
|
|
90
|
+
#
|
|
91
|
+
# @param topic_id [String]
|
|
92
|
+
#
|
|
93
|
+
# @param updated_at [Integer]
|
|
94
|
+
#
|
|
95
|
+
# @param tags [Courier::Models::NotificationListResponse::Result::Notification::Tags, nil]
|
|
96
|
+
#
|
|
97
|
+
# @param title [String, nil]
|
|
98
|
+
|
|
99
|
+
# @see Courier::Models::NotificationListResponse::Result::Notification#tags
|
|
100
|
+
class Tags < Courier::Internal::Type::BaseModel
|
|
101
|
+
# @!attribute data
|
|
102
|
+
#
|
|
103
|
+
# @return [Array<Courier::Models::NotificationListResponse::Result::Notification::Tags::Data>]
|
|
104
|
+
required :data,
|
|
105
|
+
-> { Courier::Internal::Type::ArrayOf[Courier::Models::NotificationListResponse::Result::Notification::Tags::Data] }
|
|
106
|
+
|
|
107
|
+
# @!method initialize(data:)
|
|
108
|
+
# @param data [Array<Courier::Models::NotificationListResponse::Result::Notification::Tags::Data>]
|
|
109
|
+
|
|
110
|
+
class Data < Courier::Internal::Type::BaseModel
|
|
111
|
+
# @!attribute id
|
|
112
|
+
#
|
|
113
|
+
# @return [String]
|
|
114
|
+
required :id, String
|
|
115
|
+
|
|
116
|
+
# @!attribute name
|
|
117
|
+
#
|
|
118
|
+
# @return [String]
|
|
119
|
+
required :name, String
|
|
120
|
+
|
|
121
|
+
# @!method initialize(id:, name:)
|
|
122
|
+
# @param id [String]
|
|
123
|
+
# @param name [String]
|
|
124
|
+
end
|
|
113
125
|
end
|
|
114
126
|
end
|
|
127
|
+
|
|
128
|
+
# @!method self.variants
|
|
129
|
+
# @return [Array(Courier::Models::NotificationListResponse::Result::Notification, Courier::Models::NotificationTemplateSummary)]
|
|
115
130
|
end
|
|
116
131
|
end
|
|
117
132
|
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Notifications#list_versions
|
|
6
|
+
class NotificationListVersionsParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute cursor
|
|
16
|
+
# Opaque pagination cursor from a previous response. Omit for the first page.
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :cursor, String
|
|
20
|
+
|
|
21
|
+
# @!attribute limit
|
|
22
|
+
# Maximum number of versions to return per page. Default 10, max 10.
|
|
23
|
+
#
|
|
24
|
+
# @return [Integer, nil]
|
|
25
|
+
optional :limit, Integer
|
|
26
|
+
|
|
27
|
+
# @!method initialize(id:, cursor: nil, limit: nil, request_options: {})
|
|
28
|
+
# @param id [String]
|
|
29
|
+
#
|
|
30
|
+
# @param cursor [String] Opaque pagination cursor from a previous response. Omit for the first page.
|
|
31
|
+
#
|
|
32
|
+
# @param limit [Integer] Maximum number of versions to return per page. Default 10, max 10.
|
|
33
|
+
#
|
|
34
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Notifications#publish
|
|
6
|
+
class NotificationPublishParams < Courier::Models::NotificationTemplatePublishRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(id:, request_options: {})
|
|
16
|
+
# @param id [String]
|
|
17
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Notifications#replace
|
|
6
|
+
class NotificationReplaceParams < Courier::Models::NotificationTemplateUpdateRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(id:, request_options: {})
|
|
16
|
+
# @param id [String]
|
|
17
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(id:, request_options: {})
|
|
16
|
+
# @param id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|