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
|
@@ -12,15 +12,15 @@ module Courier
|
|
|
12
12
|
# @!attribute channels
|
|
13
13
|
# Channel-specific delivery configuration (email, SMS, push, etc.)
|
|
14
14
|
#
|
|
15
|
-
# @return [Hash{Symbol=>Courier::Models::
|
|
16
|
-
optional :channels, -> { Courier::Internal::Type::HashOf[Courier::
|
|
15
|
+
# @return [Hash{Symbol=>Courier::Models::Channel}, nil]
|
|
16
|
+
optional :channels, -> { Courier::Internal::Type::HashOf[Courier::Channel] }
|
|
17
17
|
|
|
18
18
|
# @!attribute providers
|
|
19
19
|
# Provider-specific delivery configuration for routing to specific email/SMS
|
|
20
20
|
# providers
|
|
21
21
|
#
|
|
22
|
-
# @return [Hash{Symbol=>Courier::Models::
|
|
23
|
-
optional :providers, -> { Courier::Internal::Type::HashOf[Courier::
|
|
22
|
+
# @return [Hash{Symbol=>Courier::Models::MessageProvidersType}, nil]
|
|
23
|
+
optional :providers, -> { Courier::Internal::Type::HashOf[Courier::MessageProvidersType] }
|
|
24
24
|
|
|
25
25
|
# @!attribute routing
|
|
26
26
|
# Message routing configuration for multi-channel delivery strategies
|
|
@@ -36,157 +36,11 @@ module Courier
|
|
|
36
36
|
#
|
|
37
37
|
# @param content [Courier::Models::ElementalContent] Template content configuration including blocks, elements, and message structure
|
|
38
38
|
#
|
|
39
|
-
# @param channels [Hash{Symbol=>Courier::Models::
|
|
39
|
+
# @param channels [Hash{Symbol=>Courier::Models::Channel}] Channel-specific delivery configuration (email, SMS, push, etc.)
|
|
40
40
|
#
|
|
41
|
-
# @param providers [Hash{Symbol=>Courier::Models::
|
|
41
|
+
# @param providers [Hash{Symbol=>Courier::Models::MessageProvidersType}] Provider-specific delivery configuration for routing to specific email/SMS provi
|
|
42
42
|
#
|
|
43
43
|
# @param routing [Courier::Models::MessageRouting] Message routing configuration for multi-channel delivery strategies
|
|
44
|
-
|
|
45
|
-
class Channel < Courier::Internal::Type::BaseModel
|
|
46
|
-
# @!attribute brand_id
|
|
47
|
-
# Brand id used for rendering.
|
|
48
|
-
#
|
|
49
|
-
# @return [String, nil]
|
|
50
|
-
optional :brand_id, String, nil?: true
|
|
51
|
-
|
|
52
|
-
# @!attribute if_
|
|
53
|
-
# JS conditional with access to data/profile.
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
optional :if_, String, api_name: :if, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute metadata
|
|
59
|
-
#
|
|
60
|
-
# @return [Courier::Models::TenantTemplateInput::Channel::Metadata, nil]
|
|
61
|
-
optional :metadata, -> { Courier::TenantTemplateInput::Channel::Metadata }, nil?: true
|
|
62
|
-
|
|
63
|
-
# @!attribute override
|
|
64
|
-
# Channel specific overrides.
|
|
65
|
-
#
|
|
66
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
67
|
-
optional :override, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
68
|
-
|
|
69
|
-
# @!attribute providers
|
|
70
|
-
# Providers enabled for this channel.
|
|
71
|
-
#
|
|
72
|
-
# @return [Array<String>, nil]
|
|
73
|
-
optional :providers, Courier::Internal::Type::ArrayOf[String], nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute routing_method
|
|
76
|
-
# Defaults to `single`.
|
|
77
|
-
#
|
|
78
|
-
# @return [Symbol, Courier::Models::TenantTemplateInput::Channel::RoutingMethod, nil]
|
|
79
|
-
optional :routing_method,
|
|
80
|
-
enum: -> {
|
|
81
|
-
Courier::TenantTemplateInput::Channel::RoutingMethod
|
|
82
|
-
},
|
|
83
|
-
nil?: true
|
|
84
|
-
|
|
85
|
-
# @!attribute timeouts
|
|
86
|
-
#
|
|
87
|
-
# @return [Courier::Models::TenantTemplateInput::Channel::Timeouts, nil]
|
|
88
|
-
optional :timeouts, -> { Courier::TenantTemplateInput::Channel::Timeouts }, nil?: true
|
|
89
|
-
|
|
90
|
-
# @!method initialize(brand_id: nil, if_: nil, metadata: nil, override: nil, providers: nil, routing_method: nil, timeouts: nil)
|
|
91
|
-
# @param brand_id [String, nil] Brand id used for rendering.
|
|
92
|
-
#
|
|
93
|
-
# @param if_ [String, nil] JS conditional with access to data/profile.
|
|
94
|
-
#
|
|
95
|
-
# @param metadata [Courier::Models::TenantTemplateInput::Channel::Metadata, nil]
|
|
96
|
-
#
|
|
97
|
-
# @param override [Hash{Symbol=>Object}, nil] Channel specific overrides.
|
|
98
|
-
#
|
|
99
|
-
# @param providers [Array<String>, nil] Providers enabled for this channel.
|
|
100
|
-
#
|
|
101
|
-
# @param routing_method [Symbol, Courier::Models::TenantTemplateInput::Channel::RoutingMethod, nil] Defaults to `single`.
|
|
102
|
-
#
|
|
103
|
-
# @param timeouts [Courier::Models::TenantTemplateInput::Channel::Timeouts, nil]
|
|
104
|
-
|
|
105
|
-
# @see Courier::Models::TenantTemplateInput::Channel#metadata
|
|
106
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
107
|
-
# @!attribute utm
|
|
108
|
-
#
|
|
109
|
-
# @return [Courier::Models::Utm, nil]
|
|
110
|
-
optional :utm, -> { Courier::Utm }, nil?: true
|
|
111
|
-
|
|
112
|
-
# @!method initialize(utm: nil)
|
|
113
|
-
# @param utm [Courier::Models::Utm, nil]
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Defaults to `single`.
|
|
117
|
-
#
|
|
118
|
-
# @see Courier::Models::TenantTemplateInput::Channel#routing_method
|
|
119
|
-
module RoutingMethod
|
|
120
|
-
extend Courier::Internal::Type::Enum
|
|
121
|
-
|
|
122
|
-
ALL = :all
|
|
123
|
-
SINGLE = :single
|
|
124
|
-
|
|
125
|
-
# @!method self.values
|
|
126
|
-
# @return [Array<Symbol>]
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# @see Courier::Models::TenantTemplateInput::Channel#timeouts
|
|
130
|
-
class Timeouts < Courier::Internal::Type::BaseModel
|
|
131
|
-
# @!attribute channel
|
|
132
|
-
#
|
|
133
|
-
# @return [Integer, nil]
|
|
134
|
-
optional :channel, Integer, nil?: true
|
|
135
|
-
|
|
136
|
-
# @!attribute provider
|
|
137
|
-
#
|
|
138
|
-
# @return [Integer, nil]
|
|
139
|
-
optional :provider, Integer, nil?: true
|
|
140
|
-
|
|
141
|
-
# @!method initialize(channel: nil, provider: nil)
|
|
142
|
-
# @param channel [Integer, nil]
|
|
143
|
-
# @param provider [Integer, nil]
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
class Provider < Courier::Internal::Type::BaseModel
|
|
148
|
-
# @!attribute if_
|
|
149
|
-
# JS conditional with access to data/profile.
|
|
150
|
-
#
|
|
151
|
-
# @return [String, nil]
|
|
152
|
-
optional :if_, String, api_name: :if, nil?: true
|
|
153
|
-
|
|
154
|
-
# @!attribute metadata
|
|
155
|
-
#
|
|
156
|
-
# @return [Courier::Models::TenantTemplateInput::Provider::Metadata, nil]
|
|
157
|
-
optional :metadata, -> { Courier::TenantTemplateInput::Provider::Metadata }, nil?: true
|
|
158
|
-
|
|
159
|
-
# @!attribute override
|
|
160
|
-
# Provider-specific overrides.
|
|
161
|
-
#
|
|
162
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
163
|
-
optional :override, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
164
|
-
|
|
165
|
-
# @!attribute timeouts
|
|
166
|
-
#
|
|
167
|
-
# @return [Integer, nil]
|
|
168
|
-
optional :timeouts, Integer, nil?: true
|
|
169
|
-
|
|
170
|
-
# @!method initialize(if_: nil, metadata: nil, override: nil, timeouts: nil)
|
|
171
|
-
# @param if_ [String, nil] JS conditional with access to data/profile.
|
|
172
|
-
#
|
|
173
|
-
# @param metadata [Courier::Models::TenantTemplateInput::Provider::Metadata, nil]
|
|
174
|
-
#
|
|
175
|
-
# @param override [Hash{Symbol=>Object}, nil] Provider-specific overrides.
|
|
176
|
-
#
|
|
177
|
-
# @param timeouts [Integer, nil]
|
|
178
|
-
|
|
179
|
-
# @see Courier::Models::TenantTemplateInput::Provider#metadata
|
|
180
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
181
|
-
# @!attribute utm
|
|
182
|
-
#
|
|
183
|
-
# @return [Courier::Models::Utm, nil]
|
|
184
|
-
optional :utm, -> { Courier::Utm }, nil?: true
|
|
185
|
-
|
|
186
|
-
# @!method initialize(utm: nil)
|
|
187
|
-
# @param utm [Courier::Models::Utm, nil]
|
|
188
|
-
end
|
|
189
|
-
end
|
|
190
44
|
end
|
|
191
45
|
end
|
|
192
46
|
end
|
|
@@ -7,6 +7,11 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute tenant_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :tenant_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute name
|
|
11
16
|
# Name of the tenant.
|
|
12
17
|
#
|
|
@@ -44,10 +49,12 @@ module Courier
|
|
|
44
49
|
# @return [Hash{Symbol=>Object}, nil]
|
|
45
50
|
optional :user_profile, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
46
51
|
|
|
47
|
-
# @!method initialize(name:, brand_id: nil, default_preferences: nil, parent_tenant_id: nil, properties: nil, user_profile: nil, request_options: {})
|
|
52
|
+
# @!method initialize(tenant_id:, name:, brand_id: nil, default_preferences: nil, parent_tenant_id: nil, properties: nil, user_profile: nil, request_options: {})
|
|
48
53
|
# Some parameter documentations has been truncated, see
|
|
49
54
|
# {Courier::Models::TenantUpdateParams} for more details.
|
|
50
55
|
#
|
|
56
|
+
# @param tenant_id [String]
|
|
57
|
+
#
|
|
51
58
|
# @param name [String] Name of the tenant.
|
|
52
59
|
#
|
|
53
60
|
# @param brand_id [String, nil] Brand to be used for the account when one is not specified by the send call.
|
|
@@ -14,8 +14,14 @@ module Courier
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :tenant_id, String
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute topic_id
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :topic_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(tenant_id:, topic_id:, request_options: {})
|
|
18
23
|
# @param tenant_id [String]
|
|
24
|
+
# @param topic_id [String]
|
|
19
25
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -14,8 +14,14 @@ module Courier
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :tenant_id, String
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute topic_id
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :topic_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(tenant_id:, topic_id:, request_options: {})
|
|
18
23
|
# @param tenant_id [String]
|
|
24
|
+
# @param topic_id [String]
|
|
19
25
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -8,6 +8,11 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute tenant_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :tenant_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute cursor
|
|
12
17
|
# Continue the pagination with the next cursor
|
|
13
18
|
#
|
|
@@ -20,7 +25,9 @@ module Courier
|
|
|
20
25
|
# @return [Integer, nil]
|
|
21
26
|
optional :limit, Integer, nil?: true
|
|
22
27
|
|
|
23
|
-
# @!method initialize(cursor: nil, limit: nil, request_options: {})
|
|
28
|
+
# @!method initialize(tenant_id:, cursor: nil, limit: nil, request_options: {})
|
|
29
|
+
# @param tenant_id [String]
|
|
30
|
+
#
|
|
24
31
|
# @param cursor [String, nil] Continue the pagination with the next cursor
|
|
25
32
|
#
|
|
26
33
|
# @param limit [Integer, nil] The number of templates to return (defaults to 20, maximum value of 100)
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :tenant_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute template_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :template_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(tenant_id:, template_id:, request_options: {})
|
|
17
22
|
# @param tenant_id [String]
|
|
23
|
+
# @param template_id [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :tenant_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute template_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :template_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(tenant_id:, template_id:, request_options: {})
|
|
17
22
|
# @param tenant_id [String]
|
|
23
|
+
# @param template_id [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :tenant_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute template_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :template_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(tenant_id:, template_id:, request_options: {})
|
|
17
22
|
# @param tenant_id [String]
|
|
23
|
+
# @param template_id [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -19,9 +19,15 @@ module Courier
|
|
|
19
19
|
# @return [String]
|
|
20
20
|
required :template_id, String
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute version
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :version, String
|
|
26
|
+
|
|
27
|
+
# @!method initialize(tenant_id:, template_id:, version:, request_options: {})
|
|
23
28
|
# @param tenant_id [String]
|
|
24
29
|
# @param template_id [String]
|
|
30
|
+
# @param version [String]
|
|
25
31
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
26
32
|
end
|
|
27
33
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class Timeouts < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute channel
|
|
7
|
+
#
|
|
8
|
+
# @return [Integer, nil]
|
|
9
|
+
optional :channel, Integer, nil?: true
|
|
10
|
+
|
|
11
|
+
# @!attribute provider
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer, nil]
|
|
14
|
+
optional :provider, Integer, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(channel: nil, provider: nil)
|
|
17
|
+
# @param channel [Integer, nil]
|
|
18
|
+
# @param provider [Integer, nil]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -12,8 +12,14 @@ module Courier
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :domain, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute locale
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :locale, String
|
|
19
|
+
|
|
20
|
+
# @!method initialize(domain:, locale:, request_options: {})
|
|
16
21
|
# @param domain [String]
|
|
22
|
+
# @param locale [String]
|
|
17
23
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
19
25
|
end
|
|
@@ -12,13 +12,19 @@ module Courier
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :domain, String
|
|
14
14
|
|
|
15
|
+
# @!attribute locale
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :locale, String
|
|
19
|
+
|
|
15
20
|
# @!attribute body
|
|
16
21
|
#
|
|
17
22
|
# @return [String]
|
|
18
23
|
required :body, String
|
|
19
24
|
|
|
20
|
-
# @!method initialize(domain:, body:, request_options: {})
|
|
25
|
+
# @!method initialize(domain:, locale:, body:, request_options: {})
|
|
21
26
|
# @param domain [String]
|
|
27
|
+
# @param locale [String]
|
|
22
28
|
# @param body [String]
|
|
23
29
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
24
30
|
end
|
|
@@ -8,13 +8,20 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute tenant_id
|
|
12
17
|
# Query the preferences of a user for this specific tenant context.
|
|
13
18
|
#
|
|
14
19
|
# @return [String, nil]
|
|
15
20
|
optional :tenant_id, String, nil?: true
|
|
16
21
|
|
|
17
|
-
# @!method initialize(tenant_id: nil, request_options: {})
|
|
22
|
+
# @!method initialize(user_id:, tenant_id: nil, request_options: {})
|
|
23
|
+
# @param user_id [String]
|
|
24
|
+
#
|
|
18
25
|
# @param tenant_id [String, nil] Query the preferences of a user for this specific tenant context.
|
|
19
26
|
#
|
|
20
27
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -13,15 +13,22 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute topic_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :topic_id, String
|
|
20
|
+
|
|
16
21
|
# @!attribute tenant_id
|
|
17
22
|
# Query the preferences of a user for this specific tenant context.
|
|
18
23
|
#
|
|
19
24
|
# @return [String, nil]
|
|
20
25
|
optional :tenant_id, String, nil?: true
|
|
21
26
|
|
|
22
|
-
# @!method initialize(user_id:, tenant_id: nil, request_options: {})
|
|
27
|
+
# @!method initialize(user_id:, topic_id:, tenant_id: nil, request_options: {})
|
|
23
28
|
# @param user_id [String]
|
|
24
29
|
#
|
|
30
|
+
# @param topic_id [String]
|
|
31
|
+
#
|
|
25
32
|
# @param tenant_id [String, nil] Query the preferences of a user for this specific tenant context.
|
|
26
33
|
#
|
|
27
34
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -13,6 +13,11 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute topic_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :topic_id, String
|
|
20
|
+
|
|
16
21
|
# @!attribute topic
|
|
17
22
|
#
|
|
18
23
|
# @return [Courier::Models::Users::PreferenceUpdateOrCreateTopicParams::Topic]
|
|
@@ -24,9 +29,11 @@ module Courier
|
|
|
24
29
|
# @return [String, nil]
|
|
25
30
|
optional :tenant_id, String, nil?: true
|
|
26
31
|
|
|
27
|
-
# @!method initialize(user_id:, topic:, tenant_id: nil, request_options: {})
|
|
32
|
+
# @!method initialize(user_id:, topic_id:, topic:, tenant_id: nil, request_options: {})
|
|
28
33
|
# @param user_id [String]
|
|
29
34
|
#
|
|
35
|
+
# @param topic_id [String]
|
|
36
|
+
#
|
|
30
37
|
# @param topic [Courier::Models::Users::PreferenceUpdateOrCreateTopicParams::Topic]
|
|
31
38
|
#
|
|
32
39
|
# @param tenant_id [String, nil] Update the preferences of a user for this specific tenant context.
|
|
@@ -8,12 +8,18 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute tenants
|
|
12
17
|
#
|
|
13
18
|
# @return [Array<Courier::Models::TenantAssociation>]
|
|
14
19
|
required :tenants, -> { Courier::Internal::Type::ArrayOf[Courier::TenantAssociation] }
|
|
15
20
|
|
|
16
|
-
# @!method initialize(tenants:, request_options: {})
|
|
21
|
+
# @!method initialize(user_id:, tenants:, request_options: {})
|
|
22
|
+
# @param user_id [String]
|
|
17
23
|
# @param tenants [Array<Courier::Models::TenantAssociation>]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
@@ -13,13 +13,19 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute tenant_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :tenant_id, String
|
|
20
|
+
|
|
16
21
|
# @!attribute profile
|
|
17
22
|
#
|
|
18
23
|
# @return [Hash{Symbol=>Object}, nil]
|
|
19
24
|
optional :profile, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
20
25
|
|
|
21
|
-
# @!method initialize(user_id:, profile: nil, request_options: {})
|
|
26
|
+
# @!method initialize(user_id:, tenant_id:, profile: nil, request_options: {})
|
|
22
27
|
# @param user_id [String]
|
|
28
|
+
# @param tenant_id [String]
|
|
23
29
|
# @param profile [Hash{Symbol=>Object}, nil]
|
|
24
30
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
25
31
|
end
|
|
@@ -8,6 +8,11 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute cursor
|
|
12
17
|
# Continue the pagination with the next cursor
|
|
13
18
|
#
|
|
@@ -20,10 +25,12 @@ module Courier
|
|
|
20
25
|
# @return [Integer, nil]
|
|
21
26
|
optional :limit, Integer, nil?: true
|
|
22
27
|
|
|
23
|
-
# @!method initialize(cursor: nil, limit: nil, request_options: {})
|
|
28
|
+
# @!method initialize(user_id:, cursor: nil, limit: nil, request_options: {})
|
|
24
29
|
# Some parameter documentations has been truncated, see
|
|
25
30
|
# {Courier::Models::Users::TenantListParams} for more details.
|
|
26
31
|
#
|
|
32
|
+
# @param user_id [String]
|
|
33
|
+
#
|
|
27
34
|
# @param cursor [String, nil] Continue the pagination with the next cursor
|
|
28
35
|
#
|
|
29
36
|
# @param limit [Integer, nil] The number of accounts to return
|
|
@@ -8,7 +8,13 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(user_id:, request_options: {})
|
|
17
|
+
# @param user_id [String]
|
|
12
18
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
13
19
|
end
|
|
14
20
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute tenant_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :tenant_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(user_id:, tenant_id:, request_options: {})
|
|
17
22
|
# @param user_id [String]
|
|
23
|
+
# @param tenant_id [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -8,7 +8,13 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(user_id:, request_options: {})
|
|
17
|
+
# @param user_id [String]
|
|
12
18
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
13
19
|
end
|
|
14
20
|
end
|