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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type routing_strategy_replace_request =
|
|
4
|
+
{
|
|
5
|
+
name: String,
|
|
6
|
+
routing: Courier::MessageRouting,
|
|
7
|
+
channels: Courier::Models::message_channels?,
|
|
8
|
+
description: String?,
|
|
9
|
+
providers: Courier::Models::message_providers?,
|
|
10
|
+
tags: ::Array[String]?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class RoutingStrategyReplaceRequest < Courier::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor name: String
|
|
15
|
+
|
|
16
|
+
attr_accessor routing: Courier::MessageRouting
|
|
17
|
+
|
|
18
|
+
attr_accessor channels: Courier::Models::message_channels?
|
|
19
|
+
|
|
20
|
+
attr_accessor description: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor providers: Courier::Models::message_providers?
|
|
23
|
+
|
|
24
|
+
attr_accessor tags: ::Array[String]?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
name: String,
|
|
28
|
+
routing: Courier::MessageRouting,
|
|
29
|
+
?channels: Courier::Models::message_channels?,
|
|
30
|
+
?description: String?,
|
|
31
|
+
?providers: Courier::Models::message_providers?,
|
|
32
|
+
?tags: ::Array[String]?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
name: String,
|
|
37
|
+
routing: Courier::MessageRouting,
|
|
38
|
+
channels: Courier::Models::message_channels?,
|
|
39
|
+
description: String?,
|
|
40
|
+
providers: Courier::Models::message_providers?,
|
|
41
|
+
tags: ::Array[String]?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type routing_strategy_retrieve_params =
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class RoutingStrategyRetrieveParams < 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,55 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type routing_strategy_summary =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created: Integer,
|
|
7
|
+
creator: String,
|
|
8
|
+
name: String,
|
|
9
|
+
description: String?,
|
|
10
|
+
tags: ::Array[String]?,
|
|
11
|
+
updated: Integer?,
|
|
12
|
+
updater: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class RoutingStrategySummary < Courier::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor created: Integer
|
|
19
|
+
|
|
20
|
+
attr_accessor creator: String
|
|
21
|
+
|
|
22
|
+
attr_accessor name: String
|
|
23
|
+
|
|
24
|
+
attr_accessor description: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor tags: ::Array[String]?
|
|
27
|
+
|
|
28
|
+
attr_accessor updated: Integer?
|
|
29
|
+
|
|
30
|
+
attr_accessor updater: String?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
created: Integer,
|
|
35
|
+
creator: String,
|
|
36
|
+
name: String,
|
|
37
|
+
?description: String?,
|
|
38
|
+
?tags: ::Array[String]?,
|
|
39
|
+
?updated: Integer?,
|
|
40
|
+
?updater: String?
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
id: String,
|
|
45
|
+
created: Integer,
|
|
46
|
+
creator: String,
|
|
47
|
+
name: String,
|
|
48
|
+
description: String?,
|
|
49
|
+
tags: ::Array[String]?,
|
|
50
|
+
updated: Integer?,
|
|
51
|
+
updater: String?
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -23,7 +23,7 @@ module Courier
|
|
|
23
23
|
type message =
|
|
24
24
|
{
|
|
25
25
|
brand_id: String?,
|
|
26
|
-
channels:
|
|
26
|
+
channels: Courier::Models::message_channels?,
|
|
27
27
|
content: Courier::Models::SendMessageParams::Message::content,
|
|
28
28
|
context: Courier::MessageContext?,
|
|
29
29
|
data: ::Hash[Symbol, top]?,
|
|
@@ -31,7 +31,7 @@ module Courier
|
|
|
31
31
|
expiry: Courier::SendMessageParams::Message::Expiry?,
|
|
32
32
|
metadata: Courier::SendMessageParams::Message::Metadata?,
|
|
33
33
|
preferences: Courier::SendMessageParams::Message::Preferences?,
|
|
34
|
-
providers:
|
|
34
|
+
providers: Courier::Models::message_providers?,
|
|
35
35
|
routing: Courier::SendMessageParams::Message::Routing?,
|
|
36
36
|
template: String?,
|
|
37
37
|
timeout: Courier::SendMessageParams::Message::Timeout?,
|
|
@@ -41,7 +41,7 @@ module Courier
|
|
|
41
41
|
class Message < Courier::Internal::Type::BaseModel
|
|
42
42
|
attr_accessor brand_id: String?
|
|
43
43
|
|
|
44
|
-
attr_accessor channels:
|
|
44
|
+
attr_accessor channels: Courier::Models::message_channels?
|
|
45
45
|
|
|
46
46
|
attr_reader content: Courier::Models::SendMessageParams::Message::content?
|
|
47
47
|
|
|
@@ -61,7 +61,7 @@ module Courier
|
|
|
61
61
|
|
|
62
62
|
attr_accessor preferences: Courier::SendMessageParams::Message::Preferences?
|
|
63
63
|
|
|
64
|
-
attr_accessor providers:
|
|
64
|
+
attr_accessor providers: Courier::Models::message_providers?
|
|
65
65
|
|
|
66
66
|
attr_accessor routing: Courier::SendMessageParams::Message::Routing?
|
|
67
67
|
|
|
@@ -73,7 +73,7 @@ module Courier
|
|
|
73
73
|
|
|
74
74
|
def initialize: (
|
|
75
75
|
?brand_id: String?,
|
|
76
|
-
?channels:
|
|
76
|
+
?channels: Courier::Models::message_channels?,
|
|
77
77
|
?content: Courier::Models::SendMessageParams::Message::content,
|
|
78
78
|
?context: Courier::MessageContext?,
|
|
79
79
|
?data: ::Hash[Symbol, top]?,
|
|
@@ -81,7 +81,7 @@ module Courier
|
|
|
81
81
|
?expiry: Courier::SendMessageParams::Message::Expiry?,
|
|
82
82
|
?metadata: Courier::SendMessageParams::Message::Metadata?,
|
|
83
83
|
?preferences: Courier::SendMessageParams::Message::Preferences?,
|
|
84
|
-
?providers:
|
|
84
|
+
?providers: Courier::Models::message_providers?,
|
|
85
85
|
?routing: Courier::SendMessageParams::Message::Routing?,
|
|
86
86
|
?template: String?,
|
|
87
87
|
?timeout: Courier::SendMessageParams::Message::Timeout?,
|
|
@@ -90,7 +90,7 @@ module Courier
|
|
|
90
90
|
|
|
91
91
|
def to_hash: -> {
|
|
92
92
|
brand_id: String?,
|
|
93
|
-
channels:
|
|
93
|
+
channels: Courier::Models::message_channels?,
|
|
94
94
|
content: Courier::Models::SendMessageParams::Message::content,
|
|
95
95
|
context: Courier::MessageContext?,
|
|
96
96
|
data: ::Hash[Symbol, top]?,
|
|
@@ -98,93 +98,13 @@ module Courier
|
|
|
98
98
|
expiry: Courier::SendMessageParams::Message::Expiry?,
|
|
99
99
|
metadata: Courier::SendMessageParams::Message::Metadata?,
|
|
100
100
|
preferences: Courier::SendMessageParams::Message::Preferences?,
|
|
101
|
-
providers:
|
|
101
|
+
providers: Courier::Models::message_providers?,
|
|
102
102
|
routing: Courier::SendMessageParams::Message::Routing?,
|
|
103
103
|
template: String?,
|
|
104
104
|
timeout: Courier::SendMessageParams::Message::Timeout?,
|
|
105
105
|
to: Courier::Models::SendMessageParams::Message::to?
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
type channel =
|
|
109
|
-
{
|
|
110
|
-
brand_id: String?,
|
|
111
|
-
if_: String?,
|
|
112
|
-
metadata: Courier::SendMessageParams::Message::Channel::Metadata?,
|
|
113
|
-
override: ::Hash[Symbol, top]?,
|
|
114
|
-
providers: ::Array[String]?,
|
|
115
|
-
routing_method: Courier::Models::SendMessageParams::Message::Channel::routing_method?,
|
|
116
|
-
timeouts: Courier::SendMessageParams::Message::Channel::Timeouts?
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
class Channel < Courier::Internal::Type::BaseModel
|
|
120
|
-
attr_accessor brand_id: String?
|
|
121
|
-
|
|
122
|
-
attr_accessor if_: String?
|
|
123
|
-
|
|
124
|
-
attr_accessor metadata: Courier::SendMessageParams::Message::Channel::Metadata?
|
|
125
|
-
|
|
126
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
127
|
-
|
|
128
|
-
attr_accessor providers: ::Array[String]?
|
|
129
|
-
|
|
130
|
-
attr_accessor routing_method: Courier::Models::SendMessageParams::Message::Channel::routing_method?
|
|
131
|
-
|
|
132
|
-
attr_accessor timeouts: Courier::SendMessageParams::Message::Channel::Timeouts?
|
|
133
|
-
|
|
134
|
-
def initialize: (
|
|
135
|
-
?brand_id: String?,
|
|
136
|
-
?if_: String?,
|
|
137
|
-
?metadata: Courier::SendMessageParams::Message::Channel::Metadata?,
|
|
138
|
-
?override: ::Hash[Symbol, top]?,
|
|
139
|
-
?providers: ::Array[String]?,
|
|
140
|
-
?routing_method: Courier::Models::SendMessageParams::Message::Channel::routing_method?,
|
|
141
|
-
?timeouts: Courier::SendMessageParams::Message::Channel::Timeouts?
|
|
142
|
-
) -> void
|
|
143
|
-
|
|
144
|
-
def to_hash: -> {
|
|
145
|
-
brand_id: String?,
|
|
146
|
-
if_: String?,
|
|
147
|
-
metadata: Courier::SendMessageParams::Message::Channel::Metadata?,
|
|
148
|
-
override: ::Hash[Symbol, top]?,
|
|
149
|
-
providers: ::Array[String]?,
|
|
150
|
-
routing_method: Courier::Models::SendMessageParams::Message::Channel::routing_method?,
|
|
151
|
-
timeouts: Courier::SendMessageParams::Message::Channel::Timeouts?
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
type metadata = { utm: Courier::Utm? }
|
|
155
|
-
|
|
156
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
157
|
-
attr_accessor utm: Courier::Utm?
|
|
158
|
-
|
|
159
|
-
def initialize: (?utm: Courier::Utm?) -> void
|
|
160
|
-
|
|
161
|
-
def to_hash: -> { utm: Courier::Utm? }
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
type routing_method = :all | :single
|
|
165
|
-
|
|
166
|
-
module RoutingMethod
|
|
167
|
-
extend Courier::Internal::Type::Enum
|
|
168
|
-
|
|
169
|
-
ALL: :all
|
|
170
|
-
SINGLE: :single
|
|
171
|
-
|
|
172
|
-
def self?.values: -> ::Array[Courier::Models::SendMessageParams::Message::Channel::routing_method]
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
type timeouts = { channel: Integer?, provider: Integer? }
|
|
176
|
-
|
|
177
|
-
class Timeouts < Courier::Internal::Type::BaseModel
|
|
178
|
-
attr_accessor channel: Integer?
|
|
179
|
-
|
|
180
|
-
attr_accessor provider: Integer?
|
|
181
|
-
|
|
182
|
-
def initialize: (?channel: Integer?, ?provider: Integer?) -> void
|
|
183
|
-
|
|
184
|
-
def to_hash: -> { channel: Integer?, provider: Integer? }
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
108
|
type content =
|
|
189
109
|
Courier::ElementalContentSugar | Courier::ElementalContent
|
|
190
110
|
|
|
@@ -288,48 +208,6 @@ module Courier
|
|
|
288
208
|
def to_hash: -> { subscription_topic_id: String }
|
|
289
209
|
end
|
|
290
210
|
|
|
291
|
-
type provider =
|
|
292
|
-
{
|
|
293
|
-
if_: String?,
|
|
294
|
-
metadata: Courier::SendMessageParams::Message::Provider::Metadata?,
|
|
295
|
-
override: ::Hash[Symbol, top]?,
|
|
296
|
-
timeouts: Integer?
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
class Provider < Courier::Internal::Type::BaseModel
|
|
300
|
-
attr_accessor if_: String?
|
|
301
|
-
|
|
302
|
-
attr_accessor metadata: Courier::SendMessageParams::Message::Provider::Metadata?
|
|
303
|
-
|
|
304
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
305
|
-
|
|
306
|
-
attr_accessor timeouts: Integer?
|
|
307
|
-
|
|
308
|
-
def initialize: (
|
|
309
|
-
?if_: String?,
|
|
310
|
-
?metadata: Courier::SendMessageParams::Message::Provider::Metadata?,
|
|
311
|
-
?override: ::Hash[Symbol, top]?,
|
|
312
|
-
?timeouts: Integer?
|
|
313
|
-
) -> void
|
|
314
|
-
|
|
315
|
-
def to_hash: -> {
|
|
316
|
-
if_: String?,
|
|
317
|
-
metadata: Courier::SendMessageParams::Message::Provider::Metadata?,
|
|
318
|
-
override: ::Hash[Symbol, top]?,
|
|
319
|
-
timeouts: Integer?
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
type metadata = { utm: Courier::Utm? }
|
|
323
|
-
|
|
324
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
325
|
-
attr_accessor utm: Courier::Utm?
|
|
326
|
-
|
|
327
|
-
def initialize: (?utm: Courier::Utm?) -> void
|
|
328
|
-
|
|
329
|
-
def to_hash: -> { utm: Courier::Utm? }
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
211
|
type routing =
|
|
334
212
|
{
|
|
335
213
|
channels: ::Array[Courier::Models::message_routing_channel],
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ tenant_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class TenantDeleteParams < 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 tenant_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
tenant_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
tenant_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_list_users_params =
|
|
4
|
-
{ cursor: String?, limit: Integer? }
|
|
4
|
+
{ tenant_id: String, cursor: String?, limit: Integer? }
|
|
5
5
|
& Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class TenantListUsersParams < Courier::Internal::Type::BaseModel
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor tenant_id: String
|
|
12
|
+
|
|
11
13
|
attr_accessor cursor: String?
|
|
12
14
|
|
|
13
15
|
attr_accessor limit: Integer?
|
|
14
16
|
|
|
15
17
|
def initialize: (
|
|
18
|
+
tenant_id: String,
|
|
16
19
|
?cursor: String?,
|
|
17
20
|
?limit: Integer?,
|
|
18
21
|
?request_options: Courier::request_opts
|
|
19
22
|
) -> void
|
|
20
23
|
|
|
21
24
|
def to_hash: -> {
|
|
25
|
+
tenant_id: String,
|
|
22
26
|
cursor: String?,
|
|
23
27
|
limit: Integer?,
|
|
24
28
|
request_options: Courier::RequestOptions
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ tenant_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class TenantRetrieveParams < 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 tenant_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
tenant_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
tenant_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -3,25 +3,25 @@ module Courier
|
|
|
3
3
|
type tenant_template_input =
|
|
4
4
|
{
|
|
5
5
|
content: Courier::ElementalContent,
|
|
6
|
-
channels:
|
|
7
|
-
providers:
|
|
6
|
+
channels: Courier::Models::message_channels,
|
|
7
|
+
providers: Courier::Models::message_providers,
|
|
8
8
|
routing: Courier::MessageRouting
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class TenantTemplateInput < Courier::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor content: Courier::ElementalContent
|
|
13
13
|
|
|
14
|
-
attr_reader channels:
|
|
14
|
+
attr_reader channels: Courier::Models::message_channels?
|
|
15
15
|
|
|
16
16
|
def channels=: (
|
|
17
|
-
|
|
18
|
-
) ->
|
|
17
|
+
Courier::Models::message_channels
|
|
18
|
+
) -> Courier::Models::message_channels
|
|
19
19
|
|
|
20
|
-
attr_reader providers:
|
|
20
|
+
attr_reader providers: Courier::Models::message_providers?
|
|
21
21
|
|
|
22
22
|
def providers=: (
|
|
23
|
-
|
|
24
|
-
) ->
|
|
23
|
+
Courier::Models::message_providers
|
|
24
|
+
) -> Courier::Models::message_providers
|
|
25
25
|
|
|
26
26
|
attr_reader routing: Courier::MessageRouting?
|
|
27
27
|
|
|
@@ -29,139 +29,17 @@ module Courier
|
|
|
29
29
|
|
|
30
30
|
def initialize: (
|
|
31
31
|
content: Courier::ElementalContent,
|
|
32
|
-
?channels:
|
|
33
|
-
?providers:
|
|
32
|
+
?channels: Courier::Models::message_channels,
|
|
33
|
+
?providers: Courier::Models::message_providers,
|
|
34
34
|
?routing: Courier::MessageRouting
|
|
35
35
|
) -> void
|
|
36
36
|
|
|
37
37
|
def to_hash: -> {
|
|
38
38
|
content: Courier::ElementalContent,
|
|
39
|
-
channels:
|
|
40
|
-
providers:
|
|
39
|
+
channels: Courier::Models::message_channels,
|
|
40
|
+
providers: Courier::Models::message_providers,
|
|
41
41
|
routing: Courier::MessageRouting
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
type channel =
|
|
45
|
-
{
|
|
46
|
-
brand_id: String?,
|
|
47
|
-
if_: String?,
|
|
48
|
-
metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
49
|
-
override: ::Hash[Symbol, top]?,
|
|
50
|
-
providers: ::Array[String]?,
|
|
51
|
-
routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
52
|
-
timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
class Channel < Courier::Internal::Type::BaseModel
|
|
56
|
-
attr_accessor brand_id: String?
|
|
57
|
-
|
|
58
|
-
attr_accessor if_: String?
|
|
59
|
-
|
|
60
|
-
attr_accessor metadata: Courier::TenantTemplateInput::Channel::Metadata?
|
|
61
|
-
|
|
62
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
63
|
-
|
|
64
|
-
attr_accessor providers: ::Array[String]?
|
|
65
|
-
|
|
66
|
-
attr_accessor routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?
|
|
67
|
-
|
|
68
|
-
attr_accessor timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
69
|
-
|
|
70
|
-
def initialize: (
|
|
71
|
-
?brand_id: String?,
|
|
72
|
-
?if_: String?,
|
|
73
|
-
?metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
74
|
-
?override: ::Hash[Symbol, top]?,
|
|
75
|
-
?providers: ::Array[String]?,
|
|
76
|
-
?routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
77
|
-
?timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
78
|
-
) -> void
|
|
79
|
-
|
|
80
|
-
def to_hash: -> {
|
|
81
|
-
brand_id: String?,
|
|
82
|
-
if_: String?,
|
|
83
|
-
metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
84
|
-
override: ::Hash[Symbol, top]?,
|
|
85
|
-
providers: ::Array[String]?,
|
|
86
|
-
routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
87
|
-
timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
type metadata = { utm: Courier::Utm? }
|
|
91
|
-
|
|
92
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
93
|
-
attr_accessor utm: Courier::Utm?
|
|
94
|
-
|
|
95
|
-
def initialize: (?utm: Courier::Utm?) -> void
|
|
96
|
-
|
|
97
|
-
def to_hash: -> { utm: Courier::Utm? }
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
type routing_method = :all | :single
|
|
101
|
-
|
|
102
|
-
module RoutingMethod
|
|
103
|
-
extend Courier::Internal::Type::Enum
|
|
104
|
-
|
|
105
|
-
ALL: :all
|
|
106
|
-
SINGLE: :single
|
|
107
|
-
|
|
108
|
-
def self?.values: -> ::Array[Courier::Models::TenantTemplateInput::Channel::routing_method]
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
type timeouts = { channel: Integer?, provider: Integer? }
|
|
112
|
-
|
|
113
|
-
class Timeouts < Courier::Internal::Type::BaseModel
|
|
114
|
-
attr_accessor channel: Integer?
|
|
115
|
-
|
|
116
|
-
attr_accessor provider: Integer?
|
|
117
|
-
|
|
118
|
-
def initialize: (?channel: Integer?, ?provider: Integer?) -> void
|
|
119
|
-
|
|
120
|
-
def to_hash: -> { channel: Integer?, provider: Integer? }
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
type provider =
|
|
125
|
-
{
|
|
126
|
-
if_: String?,
|
|
127
|
-
metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
128
|
-
override: ::Hash[Symbol, top]?,
|
|
129
|
-
timeouts: Integer?
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
class Provider < Courier::Internal::Type::BaseModel
|
|
133
|
-
attr_accessor if_: String?
|
|
134
|
-
|
|
135
|
-
attr_accessor metadata: Courier::TenantTemplateInput::Provider::Metadata?
|
|
136
|
-
|
|
137
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
138
|
-
|
|
139
|
-
attr_accessor timeouts: Integer?
|
|
140
|
-
|
|
141
|
-
def initialize: (
|
|
142
|
-
?if_: String?,
|
|
143
|
-
?metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
144
|
-
?override: ::Hash[Symbol, top]?,
|
|
145
|
-
?timeouts: Integer?
|
|
146
|
-
) -> void
|
|
147
|
-
|
|
148
|
-
def to_hash: -> {
|
|
149
|
-
if_: String?,
|
|
150
|
-
metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
151
|
-
override: ::Hash[Symbol, top]?,
|
|
152
|
-
timeouts: Integer?
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
type metadata = { utm: Courier::Utm? }
|
|
156
|
-
|
|
157
|
-
class Metadata < Courier::Internal::Type::BaseModel
|
|
158
|
-
attr_accessor utm: Courier::Utm?
|
|
159
|
-
|
|
160
|
-
def initialize: (?utm: Courier::Utm?) -> void
|
|
161
|
-
|
|
162
|
-
def to_hash: -> { utm: Courier::Utm? }
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
43
|
end
|
|
166
44
|
end
|
|
167
45
|
end
|
|
@@ -2,6 +2,7 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
type tenant_update_params =
|
|
4
4
|
{
|
|
5
|
+
tenant_id: String,
|
|
5
6
|
name: String,
|
|
6
7
|
brand_id: String?,
|
|
7
8
|
default_preferences: Courier::DefaultPreferences?,
|
|
@@ -15,6 +16,8 @@ module Courier
|
|
|
15
16
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
16
17
|
include Courier::Internal::Type::RequestParameters
|
|
17
18
|
|
|
19
|
+
attr_accessor tenant_id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor name: String
|
|
19
22
|
|
|
20
23
|
attr_accessor brand_id: String?
|
|
@@ -28,6 +31,7 @@ module Courier
|
|
|
28
31
|
attr_accessor user_profile: ::Hash[Symbol, top]?
|
|
29
32
|
|
|
30
33
|
def initialize: (
|
|
34
|
+
tenant_id: String,
|
|
31
35
|
name: String,
|
|
32
36
|
?brand_id: String?,
|
|
33
37
|
?default_preferences: Courier::DefaultPreferences?,
|
|
@@ -38,6 +42,7 @@ module Courier
|
|
|
38
42
|
) -> void
|
|
39
43
|
|
|
40
44
|
def to_hash: -> {
|
|
45
|
+
tenant_id: String,
|
|
41
46
|
name: String,
|
|
42
47
|
brand_id: String?,
|
|
43
48
|
default_preferences: Courier::DefaultPreferences?,
|
|
@@ -3,7 +3,8 @@ module Courier
|
|
|
3
3
|
module Tenants
|
|
4
4
|
module Preferences
|
|
5
5
|
type item_delete_params =
|
|
6
|
-
{ tenant_id: String
|
|
6
|
+
{ tenant_id: String, topic_id: String }
|
|
7
|
+
& Courier::Internal::Type::request_parameters
|
|
7
8
|
|
|
8
9
|
class ItemDeleteParams < Courier::Internal::Type::BaseModel
|
|
9
10
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -11,13 +12,17 @@ module Courier
|
|
|
11
12
|
|
|
12
13
|
attr_accessor tenant_id: String
|
|
13
14
|
|
|
15
|
+
attr_accessor topic_id: String
|
|
16
|
+
|
|
14
17
|
def initialize: (
|
|
15
18
|
tenant_id: String,
|
|
19
|
+
topic_id: String,
|
|
16
20
|
?request_options: Courier::request_opts
|
|
17
21
|
) -> void
|
|
18
22
|
|
|
19
23
|
def to_hash: -> {
|
|
20
24
|
tenant_id: String,
|
|
25
|
+
topic_id: String,
|
|
21
26
|
request_options: Courier::RequestOptions
|
|
22
27
|
}
|
|
23
28
|
end
|
|
@@ -3,7 +3,8 @@ module Courier
|
|
|
3
3
|
module Tenants
|
|
4
4
|
module Preferences
|
|
5
5
|
type item_update_params =
|
|
6
|
-
{ tenant_id: String
|
|
6
|
+
{ tenant_id: String, topic_id: String }
|
|
7
|
+
& Courier::Internal::Type::request_parameters
|
|
7
8
|
|
|
8
9
|
class ItemUpdateParams < Courier::Models::SubscriptionTopicNew
|
|
9
10
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -13,13 +14,19 @@ module Courier
|
|
|
13
14
|
|
|
14
15
|
def tenant_id=: (String _) -> String
|
|
15
16
|
|
|
17
|
+
def topic_id: -> String
|
|
18
|
+
|
|
19
|
+
def topic_id=: (String _) -> String
|
|
20
|
+
|
|
16
21
|
def initialize: (
|
|
17
22
|
tenant_id: String,
|
|
23
|
+
topic_id: String,
|
|
18
24
|
?request_options: Courier::request_opts
|
|
19
25
|
) -> void
|
|
20
26
|
|
|
21
27
|
def to_hash: -> {
|
|
22
28
|
tenant_id: String,
|
|
29
|
+
topic_id: String,
|
|
23
30
|
request_options: Courier::RequestOptions
|
|
24
31
|
}
|
|
25
32
|
end
|