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,126 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Resources
|
|
5
|
+
class RoutingStrategies
|
|
6
|
+
# Create a routing strategy. Requires a name and routing configuration at minimum.
|
|
7
|
+
# Channels and providers default to empty if omitted.
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
name: String,
|
|
11
|
+
routing: Courier::MessageRouting::OrHash,
|
|
12
|
+
channels: T.nilable(T::Hash[Symbol, Courier::Channel::OrHash]),
|
|
13
|
+
description: T.nilable(String),
|
|
14
|
+
providers:
|
|
15
|
+
T.nilable(T::Hash[Symbol, Courier::MessageProvidersType::OrHash]),
|
|
16
|
+
tags: T.nilable(T::Array[String]),
|
|
17
|
+
request_options: Courier::RequestOptions::OrHash
|
|
18
|
+
).returns(Courier::RoutingStrategyMutationResponse)
|
|
19
|
+
end
|
|
20
|
+
def create(
|
|
21
|
+
# Human-readable name for the routing strategy.
|
|
22
|
+
name:,
|
|
23
|
+
# Routing tree defining channel selection method and order.
|
|
24
|
+
routing:,
|
|
25
|
+
# Per-channel delivery configuration. Defaults to empty if omitted.
|
|
26
|
+
channels: nil,
|
|
27
|
+
# Optional description of the routing strategy.
|
|
28
|
+
description: nil,
|
|
29
|
+
# Per-provider delivery configuration. Defaults to empty if omitted.
|
|
30
|
+
providers: nil,
|
|
31
|
+
# Optional tags for categorization.
|
|
32
|
+
tags: nil,
|
|
33
|
+
request_options: {}
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Retrieve a routing strategy by ID. Returns the full entity including routing
|
|
38
|
+
# content and metadata.
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
id: String,
|
|
42
|
+
request_options: Courier::RequestOptions::OrHash
|
|
43
|
+
).returns(Courier::RoutingStrategyGetResponse)
|
|
44
|
+
end
|
|
45
|
+
def retrieve(
|
|
46
|
+
# Routing strategy ID (rs\_ prefix).
|
|
47
|
+
id,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List routing strategies in your workspace. Returns metadata only (no
|
|
53
|
+
# routing/channels/providers content). Use GET /routing-strategies/{id} for full
|
|
54
|
+
# details.
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
cursor: T.nilable(String),
|
|
58
|
+
limit: Integer,
|
|
59
|
+
request_options: Courier::RequestOptions::OrHash
|
|
60
|
+
).returns(Courier::RoutingStrategyListResponse)
|
|
61
|
+
end
|
|
62
|
+
def list(
|
|
63
|
+
# Opaque pagination cursor from a previous response. Omit for the first page.
|
|
64
|
+
cursor: nil,
|
|
65
|
+
# Maximum number of results per page. Default 20, max 100.
|
|
66
|
+
limit: nil,
|
|
67
|
+
request_options: {}
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Archive a routing strategy. The strategy must not have associated notification
|
|
72
|
+
# templates. Unlink all templates before archiving.
|
|
73
|
+
sig do
|
|
74
|
+
params(
|
|
75
|
+
id: String,
|
|
76
|
+
request_options: Courier::RequestOptions::OrHash
|
|
77
|
+
).void
|
|
78
|
+
end
|
|
79
|
+
def archive(
|
|
80
|
+
# Routing strategy ID (rs\_ prefix).
|
|
81
|
+
id,
|
|
82
|
+
request_options: {}
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Replace a routing strategy. Full document replacement; the caller must send the
|
|
87
|
+
# complete desired state. Missing optional fields are cleared.
|
|
88
|
+
sig do
|
|
89
|
+
params(
|
|
90
|
+
id: String,
|
|
91
|
+
name: String,
|
|
92
|
+
routing: Courier::MessageRouting::OrHash,
|
|
93
|
+
channels: T.nilable(T::Hash[Symbol, Courier::Channel::OrHash]),
|
|
94
|
+
description: T.nilable(String),
|
|
95
|
+
providers:
|
|
96
|
+
T.nilable(T::Hash[Symbol, Courier::MessageProvidersType::OrHash]),
|
|
97
|
+
tags: T.nilable(T::Array[String]),
|
|
98
|
+
request_options: Courier::RequestOptions::OrHash
|
|
99
|
+
).returns(Courier::RoutingStrategyMutationResponse)
|
|
100
|
+
end
|
|
101
|
+
def replace(
|
|
102
|
+
# Routing strategy ID (rs\_ prefix).
|
|
103
|
+
id,
|
|
104
|
+
# Human-readable name for the routing strategy.
|
|
105
|
+
name:,
|
|
106
|
+
# Routing tree defining channel selection method and order.
|
|
107
|
+
routing:,
|
|
108
|
+
# Per-channel delivery configuration. Omit to clear.
|
|
109
|
+
channels: nil,
|
|
110
|
+
# Optional description. Omit or null to clear.
|
|
111
|
+
description: nil,
|
|
112
|
+
# Per-provider delivery configuration. Omit to clear.
|
|
113
|
+
providers: nil,
|
|
114
|
+
# Optional tags. Omit or null to clear.
|
|
115
|
+
tags: nil,
|
|
116
|
+
request_options: {}
|
|
117
|
+
)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @api private
|
|
121
|
+
sig { params(client: Courier::Client).returns(T.attached_class) }
|
|
122
|
+
def self.new(client:)
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -89,25 +89,27 @@ module Courier
|
|
|
89
89
|
# Adds a single token to a user and overwrites a matching existing token.
|
|
90
90
|
sig do
|
|
91
91
|
params(
|
|
92
|
-
|
|
92
|
+
token: String,
|
|
93
93
|
user_id: String,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
device:
|
|
94
|
+
provider_key:
|
|
95
|
+
Courier::Users::TokenAddSingleParams::ProviderKey::OrSymbol,
|
|
96
|
+
device:
|
|
97
|
+
T.nilable(Courier::Users::TokenAddSingleParams::Device::OrHash),
|
|
97
98
|
expiry_date:
|
|
98
|
-
T.nilable(
|
|
99
|
+
T.nilable(
|
|
100
|
+
Courier::Users::TokenAddSingleParams::ExpiryDate::Variants
|
|
101
|
+
),
|
|
99
102
|
properties: T.anything,
|
|
100
|
-
tracking:
|
|
103
|
+
tracking:
|
|
104
|
+
T.nilable(Courier::Users::TokenAddSingleParams::Tracking::OrHash),
|
|
101
105
|
request_options: Courier::RequestOptions::OrHash
|
|
102
106
|
).void
|
|
103
107
|
end
|
|
104
108
|
def add_single(
|
|
105
109
|
# Path param: The full token string.
|
|
106
|
-
|
|
110
|
+
token,
|
|
107
111
|
# Path param: The user's ID. This can be any uniquely identifiable string.
|
|
108
112
|
user_id:,
|
|
109
|
-
# Body param: Full body of the token. Must match token in URL path parameter.
|
|
110
|
-
body_token:,
|
|
111
113
|
# Body param
|
|
112
114
|
provider_key:,
|
|
113
115
|
# Body param: Information about the device the token came from.
|
data/sig/courier/client.rbs
CHANGED
|
@@ -14,12 +14,16 @@ module Courier
|
|
|
14
14
|
|
|
15
15
|
attr_reader audiences: Courier::Resources::Audiences
|
|
16
16
|
|
|
17
|
+
attr_reader providers: Courier::Resources::Providers
|
|
18
|
+
|
|
17
19
|
attr_reader audit_events: Courier::Resources::AuditEvents
|
|
18
20
|
|
|
19
21
|
attr_reader auth: Courier::Resources::Auth
|
|
20
22
|
|
|
21
23
|
attr_reader automations: Courier::Resources::Automations
|
|
22
24
|
|
|
25
|
+
attr_reader journeys: Courier::Resources::Journeys
|
|
26
|
+
|
|
23
27
|
attr_reader brands: Courier::Resources::Brands
|
|
24
28
|
|
|
25
29
|
attr_reader bulk: Courier::Resources::Bulk
|
|
@@ -34,6 +38,8 @@ module Courier
|
|
|
34
38
|
|
|
35
39
|
attr_reader notifications: Courier::Resources::Notifications
|
|
36
40
|
|
|
41
|
+
attr_reader routing_strategies: Courier::Resources::RoutingStrategies
|
|
42
|
+
|
|
37
43
|
attr_reader profiles: Courier::Resources::Profiles
|
|
38
44
|
|
|
39
45
|
attr_reader tenants: Courier::Resources::Tenants
|
|
@@ -45,8 +45,12 @@ module Courier
|
|
|
45
45
|
-> top?
|
|
46
46
|
} -> top?
|
|
47
47
|
|
|
48
|
+
RFC_3986_NOT_PCHARS: Regexp
|
|
49
|
+
|
|
48
50
|
def self?.uri_origin: (URI::Generic uri) -> String
|
|
49
51
|
|
|
52
|
+
def self?.encode_path: (String | Integer path) -> String
|
|
53
|
+
|
|
50
54
|
def self?.interpolate_path: (String | ::Array[String] path) -> String
|
|
51
55
|
|
|
52
56
|
def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
|
|
@@ -106,6 +110,16 @@ module Courier
|
|
|
106
110
|
JSON_CONTENT: Regexp
|
|
107
111
|
JSONL_CONTENT: Regexp
|
|
108
112
|
|
|
113
|
+
def encode_query_params: (
|
|
114
|
+
::Hash[Symbol, top] query
|
|
115
|
+
) -> ::Hash[Symbol, top]
|
|
116
|
+
|
|
117
|
+
private def write_query_param_element!: (
|
|
118
|
+
::Hash[Symbol, top] collection,
|
|
119
|
+
String key,
|
|
120
|
+
top element
|
|
121
|
+
) -> nil
|
|
122
|
+
|
|
109
123
|
def self?.write_multipart_content: (
|
|
110
124
|
Enumerator::Yielder y,
|
|
111
125
|
val: top,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type audience_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ audience_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AudienceDeleteParams < 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 audience_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
audience_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
audience_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type audience_list_members_params =
|
|
4
|
-
{ cursor: String? }
|
|
4
|
+
{ audience_id: String, cursor: String? }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class AudienceListMembersParams < Courier::Internal::Type::BaseModel
|
|
7
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Courier::Internal::Type::RequestParameters
|
|
9
10
|
|
|
11
|
+
attr_accessor audience_id: String
|
|
12
|
+
|
|
10
13
|
attr_accessor cursor: String?
|
|
11
14
|
|
|
12
15
|
def initialize: (
|
|
16
|
+
audience_id: String,
|
|
13
17
|
?cursor: String?,
|
|
14
18
|
?request_options: Courier::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
22
|
+
audience_id: String,
|
|
18
23
|
cursor: String?,
|
|
19
24
|
request_options: Courier::RequestOptions
|
|
20
25
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type audience_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ audience_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AudienceRetrieveParams < 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 audience_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
audience_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
audience_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
type audience_update_params =
|
|
4
4
|
{
|
|
5
|
+
audience_id: String,
|
|
5
6
|
description: String?,
|
|
6
7
|
filter: Courier::AudienceFilterConfig?,
|
|
7
8
|
name: String?,
|
|
@@ -13,6 +14,8 @@ module Courier
|
|
|
13
14
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Courier::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor audience_id: String
|
|
18
|
+
|
|
16
19
|
attr_accessor description: String?
|
|
17
20
|
|
|
18
21
|
attr_accessor filter: Courier::AudienceFilterConfig?
|
|
@@ -22,6 +25,7 @@ module Courier
|
|
|
22
25
|
attr_accessor operator: Courier::Models::AudienceUpdateParams::operator?
|
|
23
26
|
|
|
24
27
|
def initialize: (
|
|
28
|
+
audience_id: String,
|
|
25
29
|
?description: String?,
|
|
26
30
|
?filter: Courier::AudienceFilterConfig?,
|
|
27
31
|
?name: String?,
|
|
@@ -30,6 +34,7 @@ module Courier
|
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
32
36
|
def to_hash: -> {
|
|
37
|
+
audience_id: String,
|
|
33
38
|
description: String?,
|
|
34
39
|
filter: Courier::AudienceFilterConfig?,
|
|
35
40
|
name: String?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type audit_event_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ audit_event_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AuditEventRetrieveParams < 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 audit_event_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
audit_event_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
audit_event_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -3,6 +3,7 @@ module Courier
|
|
|
3
3
|
module Automations
|
|
4
4
|
type invoke_invoke_by_template_params =
|
|
5
5
|
{
|
|
6
|
+
template_id: String,
|
|
6
7
|
recipient: String?,
|
|
7
8
|
brand: String?,
|
|
8
9
|
data: ::Hash[Symbol, top]?,
|
|
@@ -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 template_id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor recipient: String?
|
|
19
22
|
|
|
20
23
|
attr_accessor brand: String?
|
|
@@ -26,6 +29,7 @@ module Courier
|
|
|
26
29
|
attr_accessor template: String?
|
|
27
30
|
|
|
28
31
|
def initialize: (
|
|
32
|
+
template_id: String,
|
|
29
33
|
recipient: String?,
|
|
30
34
|
?brand: String?,
|
|
31
35
|
?data: ::Hash[Symbol, top]?,
|
|
@@ -35,6 +39,7 @@ module Courier
|
|
|
35
39
|
) -> void
|
|
36
40
|
|
|
37
41
|
def to_hash: -> {
|
|
42
|
+
template_id: String,
|
|
38
43
|
recipient: String?,
|
|
39
44
|
brand: String?,
|
|
40
45
|
data: ::Hash[Symbol, top]?,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type brand_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{ brand_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BrandDeleteParams < 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 brand_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
brand_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
brand_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type brand_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ brand_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BrandRetrieveParams < 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 brand_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
brand_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
brand_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,6 +2,7 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
type brand_update_params =
|
|
4
4
|
{
|
|
5
|
+
brand_id: String,
|
|
5
6
|
name: String,
|
|
6
7
|
settings: Courier::BrandSettings?,
|
|
7
8
|
snippets: Courier::BrandSnippets?
|
|
@@ -12,6 +13,8 @@ module Courier
|
|
|
12
13
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
13
14
|
include Courier::Internal::Type::RequestParameters
|
|
14
15
|
|
|
16
|
+
attr_accessor brand_id: String
|
|
17
|
+
|
|
15
18
|
attr_accessor name: String
|
|
16
19
|
|
|
17
20
|
attr_accessor settings: Courier::BrandSettings?
|
|
@@ -19,6 +22,7 @@ module Courier
|
|
|
19
22
|
attr_accessor snippets: Courier::BrandSnippets?
|
|
20
23
|
|
|
21
24
|
def initialize: (
|
|
25
|
+
brand_id: String,
|
|
22
26
|
name: String,
|
|
23
27
|
?settings: Courier::BrandSettings?,
|
|
24
28
|
?snippets: Courier::BrandSnippets?,
|
|
@@ -26,6 +30,7 @@ module Courier
|
|
|
26
30
|
) -> void
|
|
27
31
|
|
|
28
32
|
def to_hash: -> {
|
|
33
|
+
brand_id: String,
|
|
29
34
|
name: String,
|
|
30
35
|
settings: Courier::BrandSettings?,
|
|
31
36
|
snippets: Courier::BrandSnippets?,
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type bulk_add_users_params =
|
|
4
|
-
{ users: ::Array[Courier::InboundBulkMessageUser] }
|
|
4
|
+
{ job_id: String, users: ::Array[Courier::InboundBulkMessageUser] }
|
|
5
5
|
& Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class BulkAddUsersParams < Courier::Internal::Type::BaseModel
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
attr_accessor job_id: String
|
|
12
|
+
|
|
11
13
|
attr_accessor users: ::Array[Courier::InboundBulkMessageUser]
|
|
12
14
|
|
|
13
15
|
def initialize: (
|
|
16
|
+
job_id: String,
|
|
14
17
|
users: ::Array[Courier::InboundBulkMessageUser],
|
|
15
18
|
?request_options: Courier::request_opts
|
|
16
19
|
) -> void
|
|
17
20
|
|
|
18
21
|
def to_hash: -> {
|
|
22
|
+
job_id: String,
|
|
19
23
|
users: ::Array[Courier::InboundBulkMessageUser],
|
|
20
24
|
request_options: Courier::RequestOptions
|
|
21
25
|
}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type bulk_list_users_params =
|
|
4
|
-
{ cursor: String? }
|
|
4
|
+
{ job_id: String, cursor: String? }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class BulkListUsersParams < Courier::Internal::Type::BaseModel
|
|
7
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Courier::Internal::Type::RequestParameters
|
|
9
10
|
|
|
11
|
+
attr_accessor job_id: String
|
|
12
|
+
|
|
10
13
|
attr_accessor cursor: String?
|
|
11
14
|
|
|
12
15
|
def initialize: (
|
|
16
|
+
job_id: String,
|
|
13
17
|
?cursor: String?,
|
|
14
18
|
?request_options: Courier::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
22
|
+
job_id: String,
|
|
18
23
|
cursor: String?,
|
|
19
24
|
request_options: Courier::RequestOptions
|
|
20
25
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type bulk_retrieve_job_params =
|
|
4
|
-
{
|
|
4
|
+
{ job_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BulkRetrieveJobParams < 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 job_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
job_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
job_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type bulk_run_job_params =
|
|
4
|
-
{
|
|
4
|
+
{ job_id: String } & Courier::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class BulkRunJobParams < 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 job_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
job_id: String,
|
|
14
|
+
?request_options: Courier::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
job_id: String,
|
|
19
|
+
request_options: Courier::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type channel =
|
|
4
|
+
{
|
|
5
|
+
brand_id: String?,
|
|
6
|
+
if_: String?,
|
|
7
|
+
metadata: Courier::ChannelMetadata?,
|
|
8
|
+
override: ::Hash[Symbol, top]?,
|
|
9
|
+
providers: ::Array[String]?,
|
|
10
|
+
routing_method: Courier::Models::Channel::routing_method?,
|
|
11
|
+
timeouts: Courier::Timeouts?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class Channel < Courier::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor brand_id: String?
|
|
16
|
+
|
|
17
|
+
attr_accessor if_: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor metadata: Courier::ChannelMetadata?
|
|
20
|
+
|
|
21
|
+
attr_accessor override: ::Hash[Symbol, top]?
|
|
22
|
+
|
|
23
|
+
attr_accessor providers: ::Array[String]?
|
|
24
|
+
|
|
25
|
+
attr_accessor routing_method: Courier::Models::Channel::routing_method?
|
|
26
|
+
|
|
27
|
+
attr_accessor timeouts: Courier::Timeouts?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
?brand_id: String?,
|
|
31
|
+
?if_: String?,
|
|
32
|
+
?metadata: Courier::ChannelMetadata?,
|
|
33
|
+
?override: ::Hash[Symbol, top]?,
|
|
34
|
+
?providers: ::Array[String]?,
|
|
35
|
+
?routing_method: Courier::Models::Channel::routing_method?,
|
|
36
|
+
?timeouts: Courier::Timeouts?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
brand_id: String?,
|
|
41
|
+
if_: String?,
|
|
42
|
+
metadata: Courier::ChannelMetadata?,
|
|
43
|
+
override: ::Hash[Symbol, top]?,
|
|
44
|
+
providers: ::Array[String]?,
|
|
45
|
+
routing_method: Courier::Models::Channel::routing_method?,
|
|
46
|
+
timeouts: Courier::Timeouts?
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type routing_method = :all | :single
|
|
50
|
+
|
|
51
|
+
module RoutingMethod
|
|
52
|
+
extend Courier::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
ALL: :all
|
|
55
|
+
SINGLE: :single
|
|
56
|
+
|
|
57
|
+
def self?.values: -> ::Array[Courier::Models::Channel::routing_method]
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type channel_metadata = { utm: Courier::Utm? }
|
|
4
|
+
|
|
5
|
+
class ChannelMetadata < Courier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor utm: Courier::Utm?
|
|
7
|
+
|
|
8
|
+
def initialize: (?utm: Courier::Utm?) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { utm: Courier::Utm? }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|