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
|
@@ -3,72 +3,80 @@ module Courier
|
|
|
3
3
|
type message_details =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
clicked: Integer,
|
|
7
|
-
delivered: Integer,
|
|
8
6
|
enqueued: Integer,
|
|
9
7
|
event: String,
|
|
10
8
|
notification: String,
|
|
11
|
-
opened: Integer,
|
|
12
9
|
recipient: String,
|
|
13
|
-
sent: Integer,
|
|
14
10
|
status: Courier::Models::MessageDetails::status,
|
|
11
|
+
clicked: Integer,
|
|
12
|
+
delivered: Integer,
|
|
15
13
|
error: String?,
|
|
16
|
-
|
|
14
|
+
opened: Integer,
|
|
15
|
+
reason: Courier::Models::MessageDetails::reason?,
|
|
16
|
+
sent: Integer
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
class MessageDetails < Courier::Internal::Type::BaseModel
|
|
20
20
|
attr_accessor id: String
|
|
21
21
|
|
|
22
|
-
attr_accessor clicked: Integer
|
|
23
|
-
|
|
24
|
-
attr_accessor delivered: Integer
|
|
25
|
-
|
|
26
22
|
attr_accessor enqueued: Integer
|
|
27
23
|
|
|
28
24
|
attr_accessor event: String
|
|
29
25
|
|
|
30
26
|
attr_accessor notification: String
|
|
31
27
|
|
|
32
|
-
attr_accessor opened: Integer
|
|
33
|
-
|
|
34
28
|
attr_accessor recipient: String
|
|
35
29
|
|
|
36
|
-
attr_accessor sent: Integer
|
|
37
|
-
|
|
38
30
|
attr_accessor status: Courier::Models::MessageDetails::status
|
|
39
31
|
|
|
32
|
+
attr_reader clicked: Integer?
|
|
33
|
+
|
|
34
|
+
def clicked=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
attr_reader delivered: Integer?
|
|
37
|
+
|
|
38
|
+
def delivered=: (Integer) -> Integer
|
|
39
|
+
|
|
40
40
|
attr_accessor error: String?
|
|
41
41
|
|
|
42
|
+
attr_reader opened: Integer?
|
|
43
|
+
|
|
44
|
+
def opened=: (Integer) -> Integer
|
|
45
|
+
|
|
42
46
|
attr_accessor reason: Courier::Models::MessageDetails::reason?
|
|
43
47
|
|
|
48
|
+
attr_reader sent: Integer?
|
|
49
|
+
|
|
50
|
+
def sent=: (Integer) -> Integer
|
|
51
|
+
|
|
44
52
|
def initialize: (
|
|
45
53
|
id: String,
|
|
46
|
-
clicked: Integer,
|
|
47
|
-
delivered: Integer,
|
|
48
54
|
enqueued: Integer,
|
|
49
55
|
event: String,
|
|
50
56
|
notification: String,
|
|
51
|
-
opened: Integer,
|
|
52
57
|
recipient: String,
|
|
53
|
-
sent: Integer,
|
|
54
58
|
status: Courier::Models::MessageDetails::status,
|
|
59
|
+
?clicked: Integer,
|
|
60
|
+
?delivered: Integer,
|
|
55
61
|
?error: String?,
|
|
56
|
-
?
|
|
62
|
+
?opened: Integer,
|
|
63
|
+
?reason: Courier::Models::MessageDetails::reason?,
|
|
64
|
+
?sent: Integer
|
|
57
65
|
) -> void
|
|
58
66
|
|
|
59
67
|
def to_hash: -> {
|
|
60
68
|
id: String,
|
|
61
|
-
clicked: Integer,
|
|
62
|
-
delivered: Integer,
|
|
63
69
|
enqueued: Integer,
|
|
64
70
|
event: String,
|
|
65
71
|
notification: String,
|
|
66
|
-
opened: Integer,
|
|
67
72
|
recipient: String,
|
|
68
|
-
sent: Integer,
|
|
69
73
|
status: Courier::Models::MessageDetails::status,
|
|
74
|
+
clicked: Integer,
|
|
75
|
+
delivered: Integer,
|
|
70
76
|
error: String?,
|
|
71
|
-
|
|
77
|
+
opened: Integer,
|
|
78
|
+
reason: Courier::Models::MessageDetails::reason?,
|
|
79
|
+
sent: Integer
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
type status =
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type message_history_params =
|
|
4
|
-
{ type: String? }
|
|
4
|
+
{ message_id: String, type: String? }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class MessageHistoryParams < Courier::Internal::Type::BaseModel
|
|
7
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Courier::Internal::Type::RequestParameters
|
|
9
10
|
|
|
11
|
+
attr_accessor message_id: String
|
|
12
|
+
|
|
10
13
|
attr_accessor type: String?
|
|
11
14
|
|
|
12
15
|
def initialize: (
|
|
16
|
+
message_id: String,
|
|
13
17
|
?type: String?,
|
|
14
18
|
?request_options: Courier::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
22
|
+
message_id: String,
|
|
18
23
|
type: String?,
|
|
19
24
|
request_options: Courier::RequestOptions
|
|
20
25
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type message_providers_type =
|
|
4
|
+
{
|
|
5
|
+
if_: String?,
|
|
6
|
+
metadata: Courier::Metadata?,
|
|
7
|
+
override: ::Hash[Symbol, top]?,
|
|
8
|
+
timeouts: Integer?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class MessageProvidersType < Courier::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor if_: String?
|
|
13
|
+
|
|
14
|
+
attr_accessor metadata: Courier::Metadata?
|
|
15
|
+
|
|
16
|
+
attr_accessor override: ::Hash[Symbol, top]?
|
|
17
|
+
|
|
18
|
+
attr_accessor timeouts: Integer?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?if_: String?,
|
|
22
|
+
?metadata: Courier::Metadata?,
|
|
23
|
+
?override: ::Hash[Symbol, top]?,
|
|
24
|
+
?timeouts: Integer?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
if_: String?,
|
|
29
|
+
metadata: Courier::Metadata?,
|
|
30
|
+
override: ::Hash[Symbol, top]?,
|
|
31
|
+
timeouts: Integer?
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type message_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ message_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class MessageRetrieveParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor message_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
message_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
message_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type metadata = { utm: Courier::Utm? }
|
|
4
|
+
|
|
5
|
+
class Metadata < Courier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor utm: Courier::Utm?
|
|
7
|
+
|
|
8
|
+
def initialize: (?utm: Courier::Utm?) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { utm: Courier::Utm? }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_archive_params =
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationArchiveParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Courier::RequestOptions }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_create_params =
|
|
4
|
+
{ } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationCreateParams < Courier::Models::NotificationTemplateCreateRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: Courier::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: Courier::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type notification_list_params =
|
|
4
|
-
{ cursor: String?, notes: bool? }
|
|
4
|
+
{ cursor: String?, event_id: String, notes: bool? }
|
|
5
5
|
& Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class NotificationListParams < Courier::Internal::Type::BaseModel
|
|
@@ -10,16 +10,22 @@ module Courier
|
|
|
10
10
|
|
|
11
11
|
attr_accessor cursor: String?
|
|
12
12
|
|
|
13
|
+
attr_reader event_id: String?
|
|
14
|
+
|
|
15
|
+
def event_id=: (String) -> String
|
|
16
|
+
|
|
13
17
|
attr_accessor notes: bool?
|
|
14
18
|
|
|
15
19
|
def initialize: (
|
|
16
20
|
?cursor: String?,
|
|
21
|
+
?event_id: String,
|
|
17
22
|
?notes: bool?,
|
|
18
23
|
?request_options: Courier::request_opts
|
|
19
24
|
) -> void
|
|
20
25
|
|
|
21
26
|
def to_hash: -> {
|
|
22
27
|
cursor: String?,
|
|
28
|
+
event_id: String,
|
|
23
29
|
notes: bool?,
|
|
24
30
|
request_options: Courier::RequestOptions
|
|
25
31
|
}
|
|
@@ -3,108 +3,118 @@ module Courier
|
|
|
3
3
|
type notification_list_response =
|
|
4
4
|
{
|
|
5
5
|
paging: Courier::Paging,
|
|
6
|
-
results: ::Array[Courier::Models::NotificationListResponse::
|
|
6
|
+
results: ::Array[Courier::Models::NotificationListResponse::result]
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
class NotificationListResponse < Courier::Internal::Type::BaseModel
|
|
10
10
|
attr_accessor paging: Courier::Paging
|
|
11
11
|
|
|
12
|
-
attr_accessor results: ::Array[Courier::Models::NotificationListResponse::
|
|
12
|
+
attr_accessor results: ::Array[Courier::Models::NotificationListResponse::result]
|
|
13
13
|
|
|
14
14
|
def initialize: (
|
|
15
15
|
paging: Courier::Paging,
|
|
16
|
-
results: ::Array[Courier::Models::NotificationListResponse::
|
|
16
|
+
results: ::Array[Courier::Models::NotificationListResponse::result]
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
19
19
|
def to_hash: -> {
|
|
20
20
|
paging: Courier::Paging,
|
|
21
|
-
results: ::Array[Courier::Models::NotificationListResponse::
|
|
21
|
+
results: ::Array[Courier::Models::NotificationListResponse::result]
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
type result =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
updated_at: Integer,
|
|
33
|
-
tags: Courier::Models::NotificationListResponse::Result::Tags?,
|
|
34
|
-
title: String?
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
class Result < Courier::Internal::Type::BaseModel
|
|
38
|
-
attr_accessor id: String
|
|
39
|
-
|
|
40
|
-
attr_accessor created_at: Integer
|
|
41
|
-
|
|
42
|
-
attr_accessor event_ids: ::Array[String]
|
|
43
|
-
|
|
44
|
-
attr_accessor note: String
|
|
45
|
-
|
|
46
|
-
attr_accessor routing: Courier::MessageRouting
|
|
47
|
-
|
|
48
|
-
attr_accessor topic_id: String
|
|
49
|
-
|
|
50
|
-
attr_accessor updated_at: Integer
|
|
51
|
-
|
|
52
|
-
attr_accessor tags: Courier::Models::NotificationListResponse::Result::Tags?
|
|
53
|
-
|
|
54
|
-
attr_accessor title: String?
|
|
55
|
-
|
|
56
|
-
def initialize: (
|
|
57
|
-
id: String,
|
|
58
|
-
created_at: Integer,
|
|
59
|
-
event_ids: ::Array[String],
|
|
60
|
-
note: String,
|
|
61
|
-
routing: Courier::MessageRouting,
|
|
62
|
-
topic_id: String,
|
|
63
|
-
updated_at: Integer,
|
|
64
|
-
?tags: Courier::Models::NotificationListResponse::Result::Tags?,
|
|
65
|
-
?title: String?
|
|
66
|
-
) -> void
|
|
67
|
-
|
|
68
|
-
def to_hash: -> {
|
|
69
|
-
id: String,
|
|
70
|
-
created_at: Integer,
|
|
71
|
-
event_ids: ::Array[String],
|
|
72
|
-
note: String,
|
|
73
|
-
routing: Courier::MessageRouting,
|
|
74
|
-
topic_id: String,
|
|
75
|
-
updated_at: Integer,
|
|
76
|
-
tags: Courier::Models::NotificationListResponse::Result::Tags?,
|
|
77
|
-
title: String?
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type tags =
|
|
25
|
+
Courier::Models::NotificationListResponse::Result::Notification
|
|
26
|
+
| Courier::NotificationTemplateSummary
|
|
27
|
+
|
|
28
|
+
module Result
|
|
29
|
+
extend Courier::Internal::Type::Union
|
|
30
|
+
|
|
31
|
+
type notification =
|
|
81
32
|
{
|
|
82
|
-
|
|
33
|
+
id: String,
|
|
34
|
+
created_at: Integer,
|
|
35
|
+
event_ids: ::Array[String],
|
|
36
|
+
note: String,
|
|
37
|
+
routing: Courier::MessageRouting,
|
|
38
|
+
topic_id: String,
|
|
39
|
+
updated_at: Integer,
|
|
40
|
+
tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
41
|
+
title: String?
|
|
83
42
|
}
|
|
84
43
|
|
|
85
|
-
class
|
|
86
|
-
attr_accessor
|
|
44
|
+
class Notification < Courier::Internal::Type::BaseModel
|
|
45
|
+
attr_accessor id: String
|
|
46
|
+
|
|
47
|
+
attr_accessor created_at: Integer
|
|
48
|
+
|
|
49
|
+
attr_accessor event_ids: ::Array[String]
|
|
50
|
+
|
|
51
|
+
attr_accessor note: String
|
|
52
|
+
|
|
53
|
+
attr_accessor routing: Courier::MessageRouting
|
|
54
|
+
|
|
55
|
+
attr_accessor topic_id: String
|
|
56
|
+
|
|
57
|
+
attr_accessor updated_at: Integer
|
|
58
|
+
|
|
59
|
+
attr_accessor tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?
|
|
60
|
+
|
|
61
|
+
attr_accessor title: String?
|
|
87
62
|
|
|
88
63
|
def initialize: (
|
|
89
|
-
|
|
64
|
+
id: String,
|
|
65
|
+
created_at: Integer,
|
|
66
|
+
event_ids: ::Array[String],
|
|
67
|
+
note: String,
|
|
68
|
+
routing: Courier::MessageRouting,
|
|
69
|
+
topic_id: String,
|
|
70
|
+
updated_at: Integer,
|
|
71
|
+
?tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
72
|
+
?title: String?
|
|
90
73
|
) -> void
|
|
91
74
|
|
|
92
75
|
def to_hash: -> {
|
|
93
|
-
|
|
76
|
+
id: String,
|
|
77
|
+
created_at: Integer,
|
|
78
|
+
event_ids: ::Array[String],
|
|
79
|
+
note: String,
|
|
80
|
+
routing: Courier::MessageRouting,
|
|
81
|
+
topic_id: String,
|
|
82
|
+
updated_at: Integer,
|
|
83
|
+
tags: Courier::Models::NotificationListResponse::Result::Notification::Tags?,
|
|
84
|
+
title: String?
|
|
94
85
|
}
|
|
95
86
|
|
|
96
|
-
type
|
|
87
|
+
type tags =
|
|
88
|
+
{
|
|
89
|
+
data: ::Array[Courier::Models::NotificationListResponse::Result::Notification::Tags::Data]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
class Tags < Courier::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor data: ::Array[Courier::Models::NotificationListResponse::Result::Notification::Tags::Data]
|
|
94
|
+
|
|
95
|
+
def initialize: (
|
|
96
|
+
data: ::Array[Courier::Models::NotificationListResponse::Result::Notification::Tags::Data]
|
|
97
|
+
) -> void
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
data: ::Array[Courier::Models::NotificationListResponse::Result::Notification::Tags::Data]
|
|
101
|
+
}
|
|
100
102
|
|
|
101
|
-
|
|
103
|
+
type data = { id: String, name: String }
|
|
102
104
|
|
|
103
|
-
|
|
105
|
+
class Data < Courier::Internal::Type::BaseModel
|
|
106
|
+
attr_accessor id: String
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
attr_accessor name: String
|
|
109
|
+
|
|
110
|
+
def initialize: (id: String, name: String) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> { id: String, name: String }
|
|
113
|
+
end
|
|
106
114
|
end
|
|
107
115
|
end
|
|
116
|
+
|
|
117
|
+
def self?.variants: -> ::Array[Courier::Models::NotificationListResponse::result]
|
|
108
118
|
end
|
|
109
119
|
end
|
|
110
120
|
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_list_versions_params =
|
|
4
|
+
{ id: String, cursor: String, limit: Integer }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NotificationListVersionsParams < Courier::Internal::Type::BaseModel
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader cursor: String?
|
|
14
|
+
|
|
15
|
+
def cursor=: (String) -> String
|
|
16
|
+
|
|
17
|
+
attr_reader limit: Integer?
|
|
18
|
+
|
|
19
|
+
def limit=: (Integer) -> Integer
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
id: String,
|
|
23
|
+
?cursor: String,
|
|
24
|
+
?limit: Integer,
|
|
25
|
+
?request_options: Courier::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
id: String,
|
|
30
|
+
cursor: String,
|
|
31
|
+
limit: Integer,
|
|
32
|
+
request_options: Courier::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_publish_params =
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationPublishParams < Courier::Models::NotificationTemplatePublishRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def id: -> String
|
|
11
|
+
|
|
12
|
+
def id=: (String _) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
id: String,
|
|
16
|
+
?request_options: Courier::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { id: String, request_options: Courier::RequestOptions }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_replace_params =
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationReplaceParams < Courier::Models::NotificationTemplateUpdateRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def id: -> String
|
|
11
|
+
|
|
12
|
+
def id=: (String _) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
id: String,
|
|
16
|
+
?request_options: Courier::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { id: String, request_options: Courier::RequestOptions }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type notification_retrieve_content_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class NotificationRetrieveContentParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Courier::RequestOptions }
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_retrieve_params =
|
|
4
|
+
{ id: String, version: String }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NotificationRetrieveParams < Courier::Internal::Type::BaseModel
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader version: String?
|
|
14
|
+
|
|
15
|
+
def version=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
?version: String,
|
|
20
|
+
?request_options: Courier::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
version: String,
|
|
26
|
+
request_options: Courier::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_template_create_request =
|
|
4
|
+
{
|
|
5
|
+
notification: Courier::NotificationTemplatePayload,
|
|
6
|
+
state: Courier::Models::NotificationTemplateCreateRequest::state
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class NotificationTemplateCreateRequest < Courier::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor notification: Courier::NotificationTemplatePayload
|
|
11
|
+
|
|
12
|
+
attr_reader state: Courier::Models::NotificationTemplateCreateRequest::state?
|
|
13
|
+
|
|
14
|
+
def state=: (
|
|
15
|
+
Courier::Models::NotificationTemplateCreateRequest::state
|
|
16
|
+
) -> Courier::Models::NotificationTemplateCreateRequest::state
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
notification: Courier::NotificationTemplatePayload,
|
|
20
|
+
?state: Courier::Models::NotificationTemplateCreateRequest::state
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
notification: Courier::NotificationTemplatePayload,
|
|
25
|
+
state: Courier::Models::NotificationTemplateCreateRequest::state
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type state = :DRAFT | :PUBLISHED
|
|
29
|
+
|
|
30
|
+
module State
|
|
31
|
+
extend Courier::Internal::Type::Enum
|
|
32
|
+
|
|
33
|
+
DRAFT: :DRAFT
|
|
34
|
+
PUBLISHED: :PUBLISHED
|
|
35
|
+
|
|
36
|
+
def self?.values: -> ::Array[Courier::Models::NotificationTemplateCreateRequest::state]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|