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
|
@@ -4,7 +4,7 @@ module Courier
|
|
|
4
4
|
module Models
|
|
5
5
|
module Users
|
|
6
6
|
# @see Courier::Resources::Users::Tokens#add_single
|
|
7
|
-
class TokenAddSingleParams < Courier::
|
|
7
|
+
class TokenAddSingleParams < Courier::Internal::Type::BaseModel
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -13,9 +13,175 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute token
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :token, String
|
|
20
|
+
|
|
21
|
+
# @!attribute provider_key
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, Courier::Models::Users::TokenAddSingleParams::ProviderKey]
|
|
24
|
+
required :provider_key, enum: -> { Courier::Users::TokenAddSingleParams::ProviderKey }
|
|
25
|
+
|
|
26
|
+
# @!attribute device
|
|
27
|
+
# Information about the device the token came from.
|
|
28
|
+
#
|
|
29
|
+
# @return [Courier::Models::Users::TokenAddSingleParams::Device, nil]
|
|
30
|
+
optional :device, -> { Courier::Users::TokenAddSingleParams::Device }, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute expiry_date
|
|
33
|
+
# ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to
|
|
34
|
+
# disable expiration.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, Boolean, nil]
|
|
37
|
+
optional :expiry_date, union: -> { Courier::Users::TokenAddSingleParams::ExpiryDate }, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute properties
|
|
40
|
+
# Properties about the token.
|
|
41
|
+
#
|
|
42
|
+
# @return [Object, nil]
|
|
43
|
+
optional :properties, Courier::Internal::Type::Unknown
|
|
44
|
+
|
|
45
|
+
# @!attribute tracking
|
|
46
|
+
# Tracking information about the device the token came from.
|
|
47
|
+
#
|
|
48
|
+
# @return [Courier::Models::Users::TokenAddSingleParams::Tracking, nil]
|
|
49
|
+
optional :tracking, -> { Courier::Users::TokenAddSingleParams::Tracking }, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!method initialize(user_id:, token:, provider_key:, device: nil, expiry_date: nil, properties: nil, tracking: nil, request_options: {})
|
|
52
|
+
# Some parameter documentations has been truncated, see
|
|
53
|
+
# {Courier::Models::Users::TokenAddSingleParams} for more details.
|
|
54
|
+
#
|
|
17
55
|
# @param user_id [String]
|
|
56
|
+
#
|
|
57
|
+
# @param token [String]
|
|
58
|
+
#
|
|
59
|
+
# @param provider_key [Symbol, Courier::Models::Users::TokenAddSingleParams::ProviderKey]
|
|
60
|
+
#
|
|
61
|
+
# @param device [Courier::Models::Users::TokenAddSingleParams::Device, nil] Information about the device the token came from.
|
|
62
|
+
#
|
|
63
|
+
# @param expiry_date [String, Boolean, nil] ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to
|
|
64
|
+
#
|
|
65
|
+
# @param properties [Object] Properties about the token.
|
|
66
|
+
#
|
|
67
|
+
# @param tracking [Courier::Models::Users::TokenAddSingleParams::Tracking, nil] Tracking information about the device the token came from.
|
|
68
|
+
#
|
|
18
69
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
70
|
+
|
|
71
|
+
module ProviderKey
|
|
72
|
+
extend Courier::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
FIREBASE_FCM = :"firebase-fcm"
|
|
75
|
+
APN = :apn
|
|
76
|
+
EXPO = :expo
|
|
77
|
+
ONESIGNAL = :onesignal
|
|
78
|
+
|
|
79
|
+
# @!method self.values
|
|
80
|
+
# @return [Array<Symbol>]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class Device < Courier::Internal::Type::BaseModel
|
|
84
|
+
# @!attribute ad_id
|
|
85
|
+
# Id of the advertising identifier
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :ad_id, String, nil?: true
|
|
89
|
+
|
|
90
|
+
# @!attribute app_id
|
|
91
|
+
# Id of the application the token is used for
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :app_id, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute device_id
|
|
97
|
+
# Id of the device the token is associated with
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
optional :device_id, String, nil?: true
|
|
101
|
+
|
|
102
|
+
# @!attribute manufacturer
|
|
103
|
+
# The device manufacturer
|
|
104
|
+
#
|
|
105
|
+
# @return [String, nil]
|
|
106
|
+
optional :manufacturer, String, nil?: true
|
|
107
|
+
|
|
108
|
+
# @!attribute model
|
|
109
|
+
# The device model
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
optional :model, String, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!attribute platform
|
|
115
|
+
# The device platform i.e. android, ios, web
|
|
116
|
+
#
|
|
117
|
+
# @return [String, nil]
|
|
118
|
+
optional :platform, String, nil?: true
|
|
119
|
+
|
|
120
|
+
# @!method initialize(ad_id: nil, app_id: nil, device_id: nil, manufacturer: nil, model: nil, platform: nil)
|
|
121
|
+
# Information about the device the token came from.
|
|
122
|
+
#
|
|
123
|
+
# @param ad_id [String, nil] Id of the advertising identifier
|
|
124
|
+
#
|
|
125
|
+
# @param app_id [String, nil] Id of the application the token is used for
|
|
126
|
+
#
|
|
127
|
+
# @param device_id [String, nil] Id of the device the token is associated with
|
|
128
|
+
#
|
|
129
|
+
# @param manufacturer [String, nil] The device manufacturer
|
|
130
|
+
#
|
|
131
|
+
# @param model [String, nil] The device model
|
|
132
|
+
#
|
|
133
|
+
# @param platform [String, nil] The device platform i.e. android, ios, web
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to
|
|
137
|
+
# disable expiration.
|
|
138
|
+
module ExpiryDate
|
|
139
|
+
extend Courier::Internal::Type::Union
|
|
140
|
+
|
|
141
|
+
variant String
|
|
142
|
+
|
|
143
|
+
variant Courier::Internal::Type::Boolean
|
|
144
|
+
|
|
145
|
+
# @!method self.variants
|
|
146
|
+
# @return [Array(String, Boolean)]
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
class Tracking < Courier::Internal::Type::BaseModel
|
|
150
|
+
# @!attribute ip
|
|
151
|
+
# The IP address of the device
|
|
152
|
+
#
|
|
153
|
+
# @return [String, nil]
|
|
154
|
+
optional :ip, String, nil?: true
|
|
155
|
+
|
|
156
|
+
# @!attribute lat
|
|
157
|
+
# The latitude of the device
|
|
158
|
+
#
|
|
159
|
+
# @return [String, nil]
|
|
160
|
+
optional :lat, String, nil?: true
|
|
161
|
+
|
|
162
|
+
# @!attribute long
|
|
163
|
+
# The longitude of the device
|
|
164
|
+
#
|
|
165
|
+
# @return [String, nil]
|
|
166
|
+
optional :long, String, nil?: true
|
|
167
|
+
|
|
168
|
+
# @!attribute os_version
|
|
169
|
+
# The operating system version
|
|
170
|
+
#
|
|
171
|
+
# @return [String, nil]
|
|
172
|
+
optional :os_version, String, nil?: true
|
|
173
|
+
|
|
174
|
+
# @!method initialize(ip: nil, lat: nil, long: nil, os_version: nil)
|
|
175
|
+
# Tracking information about the device the token came from.
|
|
176
|
+
#
|
|
177
|
+
# @param ip [String, nil] The IP address of the device
|
|
178
|
+
#
|
|
179
|
+
# @param lat [String, nil] The latitude of the device
|
|
180
|
+
#
|
|
181
|
+
# @param long [String, nil] The longitude of the device
|
|
182
|
+
#
|
|
183
|
+
# @param os_version [String, nil] The operating system version
|
|
184
|
+
end
|
|
19
185
|
end
|
|
20
186
|
end
|
|
21
187
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute token
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :token, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(user_id:, token:, request_options: {})
|
|
17
22
|
# @param user_id [String]
|
|
23
|
+
# @param token [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -8,7 +8,13 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute user_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :user_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(user_id:, request_options: {})
|
|
17
|
+
# @param user_id [String]
|
|
12
18
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
13
19
|
end
|
|
14
20
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute token
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :token, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(user_id:, token:, request_options: {})
|
|
17
22
|
# @param user_id [String]
|
|
23
|
+
# @param token [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|
|
@@ -13,13 +13,19 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute token
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :token, String
|
|
20
|
+
|
|
16
21
|
# @!attribute patch
|
|
17
22
|
#
|
|
18
23
|
# @return [Array<Courier::Models::Users::TokenUpdateParams::Patch>]
|
|
19
24
|
required :patch, -> { Courier::Internal::Type::ArrayOf[Courier::Users::TokenUpdateParams::Patch] }
|
|
20
25
|
|
|
21
|
-
# @!method initialize(user_id:, patch:, request_options: {})
|
|
26
|
+
# @!method initialize(user_id:, token:, patch:, request_options: {})
|
|
22
27
|
# @param user_id [String]
|
|
28
|
+
# @param token [String]
|
|
23
29
|
# @param patch [Array<Courier::Models::Users::TokenUpdateParams::Patch>]
|
|
24
30
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
25
31
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class VersionNode < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute created
|
|
7
|
+
# Epoch milliseconds when this version was created.
|
|
8
|
+
#
|
|
9
|
+
# @return [Integer]
|
|
10
|
+
required :created, Integer
|
|
11
|
+
|
|
12
|
+
# @!attribute creator
|
|
13
|
+
# User ID of the version creator.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :creator, String
|
|
17
|
+
|
|
18
|
+
# @!attribute version
|
|
19
|
+
# Version identifier. One of "draft", "published:vNNN" (current published
|
|
20
|
+
# version), or "vNNN" (historical version).
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :version, String
|
|
24
|
+
|
|
25
|
+
# @!attribute has_changes
|
|
26
|
+
# Whether the draft has unpublished changes. Only present on the draft version.
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :has_changes, Courier::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!method initialize(created:, creator:, version:, has_changes: nil)
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {Courier::Models::VersionNode} for more details.
|
|
34
|
+
#
|
|
35
|
+
# A version entry for a notification template.
|
|
36
|
+
#
|
|
37
|
+
# @param created [Integer] Epoch milliseconds when this version was created.
|
|
38
|
+
#
|
|
39
|
+
# @param creator [String] User ID of the version creator.
|
|
40
|
+
#
|
|
41
|
+
# @param version [String] Version identifier. One of "draft", "published:vNNN" (current published version)
|
|
42
|
+
#
|
|
43
|
+
# @param has_changes [Boolean] Whether the draft has unpublished changes. Only present on the draft version.
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
data/lib/courier/models.rb
CHANGED
|
@@ -121,8 +121,12 @@ module Courier
|
|
|
121
121
|
|
|
122
122
|
BulkRunJobParams = Courier::Models::BulkRunJobParams
|
|
123
123
|
|
|
124
|
+
Channel = Courier::Models::Channel
|
|
125
|
+
|
|
124
126
|
ChannelClassification = Courier::Models::ChannelClassification
|
|
125
127
|
|
|
128
|
+
ChannelMetadata = Courier::Models::ChannelMetadata
|
|
129
|
+
|
|
126
130
|
ChannelPreference = Courier::Models::ChannelPreference
|
|
127
131
|
|
|
128
132
|
Check = Courier::Models::Check
|
|
@@ -147,6 +151,8 @@ module Courier
|
|
|
147
151
|
|
|
148
152
|
ElementalDividerNodeWithType = Courier::Models::ElementalDividerNodeWithType
|
|
149
153
|
|
|
154
|
+
ElementalHTMLNodeWithType = Courier::Models::ElementalHTMLNodeWithType
|
|
155
|
+
|
|
150
156
|
ElementalImageNodeWithType = Courier::Models::ElementalImageNodeWithType
|
|
151
157
|
|
|
152
158
|
ElementalMetaNodeWithType = Courier::Models::ElementalMetaNodeWithType
|
|
@@ -179,6 +185,18 @@ module Courier
|
|
|
179
185
|
|
|
180
186
|
IntercomRecipient = Courier::Models::IntercomRecipient
|
|
181
187
|
|
|
188
|
+
Journey = Courier::Models::Journey
|
|
189
|
+
|
|
190
|
+
JourneyInvokeParams = Courier::Models::JourneyInvokeParams
|
|
191
|
+
|
|
192
|
+
JourneyListParams = Courier::Models::JourneyListParams
|
|
193
|
+
|
|
194
|
+
JourneysInvokeRequest = Courier::Models::JourneysInvokeRequest
|
|
195
|
+
|
|
196
|
+
JourneysInvokeResponse = Courier::Models::JourneysInvokeResponse
|
|
197
|
+
|
|
198
|
+
JourneysListResponse = Courier::Models::JourneysListResponse
|
|
199
|
+
|
|
182
200
|
ListDeleteParams = Courier::Models::ListDeleteParams
|
|
183
201
|
|
|
184
202
|
ListFilter = Courier::Models::ListFilter
|
|
@@ -201,6 +219,9 @@ module Courier
|
|
|
201
219
|
|
|
202
220
|
MessageCancelParams = Courier::Models::MessageCancelParams
|
|
203
221
|
|
|
222
|
+
# @type [Courier::Internal::Type::Converter]
|
|
223
|
+
MessageChannels = Courier::Models::MessageChannels
|
|
224
|
+
|
|
204
225
|
MessageContentParams = Courier::Models::MessageContentParams
|
|
205
226
|
|
|
206
227
|
MessageContext = Courier::Models::MessageContext
|
|
@@ -211,12 +232,19 @@ module Courier
|
|
|
211
232
|
|
|
212
233
|
MessageListParams = Courier::Models::MessageListParams
|
|
213
234
|
|
|
235
|
+
# @type [Courier::Internal::Type::Converter]
|
|
236
|
+
MessageProviders = Courier::Models::MessageProviders
|
|
237
|
+
|
|
238
|
+
MessageProvidersType = Courier::Models::MessageProvidersType
|
|
239
|
+
|
|
214
240
|
MessageRetrieveParams = Courier::Models::MessageRetrieveParams
|
|
215
241
|
|
|
216
242
|
MessageRouting = Courier::Models::MessageRouting
|
|
217
243
|
|
|
218
244
|
MessageRoutingChannel = Courier::Models::MessageRoutingChannel
|
|
219
245
|
|
|
246
|
+
Metadata = Courier::Models::Metadata
|
|
247
|
+
|
|
220
248
|
MsTeams = Courier::Models::MsTeams
|
|
221
249
|
|
|
222
250
|
MsTeamsBaseProperties = Courier::Models::MsTeamsBaseProperties
|
|
@@ -225,16 +253,44 @@ module Courier
|
|
|
225
253
|
|
|
226
254
|
MultipleTokens = Courier::Models::MultipleTokens
|
|
227
255
|
|
|
256
|
+
NotificationArchiveParams = Courier::Models::NotificationArchiveParams
|
|
257
|
+
|
|
258
|
+
NotificationCreateParams = Courier::Models::NotificationCreateParams
|
|
259
|
+
|
|
228
260
|
NotificationGetContent = Courier::Models::NotificationGetContent
|
|
229
261
|
|
|
230
262
|
NotificationListParams = Courier::Models::NotificationListParams
|
|
231
263
|
|
|
264
|
+
NotificationListVersionsParams = Courier::Models::NotificationListVersionsParams
|
|
265
|
+
|
|
232
266
|
NotificationPreferenceDetails = Courier::Models::NotificationPreferenceDetails
|
|
233
267
|
|
|
268
|
+
NotificationPublishParams = Courier::Models::NotificationPublishParams
|
|
269
|
+
|
|
270
|
+
NotificationReplaceParams = Courier::Models::NotificationReplaceParams
|
|
271
|
+
|
|
234
272
|
NotificationRetrieveContentParams = Courier::Models::NotificationRetrieveContentParams
|
|
235
273
|
|
|
274
|
+
NotificationRetrieveParams = Courier::Models::NotificationRetrieveParams
|
|
275
|
+
|
|
236
276
|
Notifications = Courier::Models::Notifications
|
|
237
277
|
|
|
278
|
+
NotificationTemplateCreateRequest = Courier::Models::NotificationTemplateCreateRequest
|
|
279
|
+
|
|
280
|
+
NotificationTemplateGetResponse = Courier::Models::NotificationTemplateGetResponse
|
|
281
|
+
|
|
282
|
+
NotificationTemplateMutationResponse = Courier::Models::NotificationTemplateMutationResponse
|
|
283
|
+
|
|
284
|
+
NotificationTemplatePayload = Courier::Models::NotificationTemplatePayload
|
|
285
|
+
|
|
286
|
+
NotificationTemplatePublishRequest = Courier::Models::NotificationTemplatePublishRequest
|
|
287
|
+
|
|
288
|
+
NotificationTemplateSummary = Courier::Models::NotificationTemplateSummary
|
|
289
|
+
|
|
290
|
+
NotificationTemplateUpdateRequest = Courier::Models::NotificationTemplateUpdateRequest
|
|
291
|
+
|
|
292
|
+
NotificationTemplateVersionListResponse = Courier::Models::NotificationTemplateVersionListResponse
|
|
293
|
+
|
|
238
294
|
Pagerduty = Courier::Models::Pagerduty
|
|
239
295
|
|
|
240
296
|
PagerdutyRecipient = Courier::Models::PagerdutyRecipient
|
|
@@ -261,6 +317,22 @@ module Courier
|
|
|
261
317
|
|
|
262
318
|
ProfileUpdateParams = Courier::Models::ProfileUpdateParams
|
|
263
319
|
|
|
320
|
+
Provider = Courier::Models::Provider
|
|
321
|
+
|
|
322
|
+
ProviderCreateParams = Courier::Models::ProviderCreateParams
|
|
323
|
+
|
|
324
|
+
ProviderDeleteParams = Courier::Models::ProviderDeleteParams
|
|
325
|
+
|
|
326
|
+
ProviderListParams = Courier::Models::ProviderListParams
|
|
327
|
+
|
|
328
|
+
ProviderRetrieveParams = Courier::Models::ProviderRetrieveParams
|
|
329
|
+
|
|
330
|
+
Providers = Courier::Models::Providers
|
|
331
|
+
|
|
332
|
+
ProvidersCatalogEntry = Courier::Models::ProvidersCatalogEntry
|
|
333
|
+
|
|
334
|
+
ProviderUpdateParams = Courier::Models::ProviderUpdateParams
|
|
335
|
+
|
|
264
336
|
PutSubscriptionsRecipient = Courier::Models::PutSubscriptionsRecipient
|
|
265
337
|
|
|
266
338
|
PutTenantTemplateRequest = Courier::Models::PutTenantTemplateRequest
|
|
@@ -271,6 +343,28 @@ module Courier
|
|
|
271
343
|
|
|
272
344
|
RequestArchiveParams = Courier::Models::RequestArchiveParams
|
|
273
345
|
|
|
346
|
+
RoutingStrategyArchiveParams = Courier::Models::RoutingStrategyArchiveParams
|
|
347
|
+
|
|
348
|
+
RoutingStrategyCreateParams = Courier::Models::RoutingStrategyCreateParams
|
|
349
|
+
|
|
350
|
+
RoutingStrategyCreateRequest = Courier::Models::RoutingStrategyCreateRequest
|
|
351
|
+
|
|
352
|
+
RoutingStrategyGetResponse = Courier::Models::RoutingStrategyGetResponse
|
|
353
|
+
|
|
354
|
+
RoutingStrategyListParams = Courier::Models::RoutingStrategyListParams
|
|
355
|
+
|
|
356
|
+
RoutingStrategyListResponse = Courier::Models::RoutingStrategyListResponse
|
|
357
|
+
|
|
358
|
+
RoutingStrategyMutationResponse = Courier::Models::RoutingStrategyMutationResponse
|
|
359
|
+
|
|
360
|
+
RoutingStrategyReplaceParams = Courier::Models::RoutingStrategyReplaceParams
|
|
361
|
+
|
|
362
|
+
RoutingStrategyReplaceRequest = Courier::Models::RoutingStrategyReplaceRequest
|
|
363
|
+
|
|
364
|
+
RoutingStrategyRetrieveParams = Courier::Models::RoutingStrategyRetrieveParams
|
|
365
|
+
|
|
366
|
+
RoutingStrategySummary = Courier::Models::RoutingStrategySummary
|
|
367
|
+
|
|
274
368
|
Rule = Courier::Models::Rule
|
|
275
369
|
|
|
276
370
|
SendDirectMessage = Courier::Models::SendDirectMessage
|
|
@@ -327,6 +421,8 @@ module Courier
|
|
|
327
421
|
|
|
328
422
|
TextStyle = Courier::Models::TextStyle
|
|
329
423
|
|
|
424
|
+
Timeouts = Courier::Models::Timeouts
|
|
425
|
+
|
|
330
426
|
Token = Courier::Models::Token
|
|
331
427
|
|
|
332
428
|
TranslationRetrieveParams = Courier::Models::TranslationRetrieveParams
|
|
@@ -343,6 +439,8 @@ module Courier
|
|
|
343
439
|
|
|
344
440
|
Utm = Courier::Models::Utm
|
|
345
441
|
|
|
442
|
+
VersionNode = Courier::Models::VersionNode
|
|
443
|
+
|
|
346
444
|
WebhookAuthentication = Courier::Models::WebhookAuthentication
|
|
347
445
|
|
|
348
446
|
WebhookAuthMode = Courier::Models::WebhookAuthMode
|
|
@@ -69,10 +69,11 @@ module Courier
|
|
|
69
69
|
# @see Courier::Models::AudienceListParams
|
|
70
70
|
def list(params = {})
|
|
71
71
|
parsed, options = Courier::AudienceListParams.dump_request(params)
|
|
72
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
72
73
|
@client.request(
|
|
73
74
|
method: :get,
|
|
74
75
|
path: "audiences",
|
|
75
|
-
query:
|
|
76
|
+
query: query,
|
|
76
77
|
model: Courier::Models::AudienceListResponse,
|
|
77
78
|
options: options
|
|
78
79
|
)
|
|
@@ -113,10 +114,11 @@ module Courier
|
|
|
113
114
|
# @see Courier::Models::AudienceListMembersParams
|
|
114
115
|
def list_members(audience_id, params = {})
|
|
115
116
|
parsed, options = Courier::AudienceListMembersParams.dump_request(params)
|
|
117
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
116
118
|
@client.request(
|
|
117
119
|
method: :get,
|
|
118
120
|
path: ["audiences/%1$s/members", audience_id],
|
|
119
|
-
query:
|
|
121
|
+
query: query,
|
|
120
122
|
model: Courier::Models::AudienceListMembersResponse,
|
|
121
123
|
options: options
|
|
122
124
|
)
|
|
@@ -36,10 +36,11 @@ module Courier
|
|
|
36
36
|
# @see Courier::Models::AuditEventListParams
|
|
37
37
|
def list(params = {})
|
|
38
38
|
parsed, options = Courier::AuditEventListParams.dump_request(params)
|
|
39
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
39
40
|
@client.request(
|
|
40
41
|
method: :get,
|
|
41
42
|
path: "audit-events",
|
|
42
|
-
query:
|
|
43
|
+
query: query,
|
|
43
44
|
model: Courier::Models::AuditEventListResponse,
|
|
44
45
|
options: options
|
|
45
46
|
)
|
|
@@ -24,10 +24,11 @@ module Courier
|
|
|
24
24
|
# @see Courier::Models::AutomationListParams
|
|
25
25
|
def list(params = {})
|
|
26
26
|
parsed, options = Courier::AutomationListParams.dump_request(params)
|
|
27
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
27
28
|
@client.request(
|
|
28
29
|
method: :get,
|
|
29
30
|
path: "automations",
|
|
30
|
-
query:
|
|
31
|
+
query: query,
|
|
31
32
|
model: Courier::AutomationTemplateListResponse,
|
|
32
33
|
options: options
|
|
33
34
|
)
|
|
@@ -82,10 +82,11 @@ module Courier
|
|
|
82
82
|
# @see Courier::Models::BrandListParams
|
|
83
83
|
def list(params = {})
|
|
84
84
|
parsed, options = Courier::BrandListParams.dump_request(params)
|
|
85
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
85
86
|
@client.request(
|
|
86
87
|
method: :get,
|
|
87
88
|
path: "brands",
|
|
88
|
-
query:
|
|
89
|
+
query: query,
|
|
89
90
|
model: Courier::Models::BrandListResponse,
|
|
90
91
|
options: options
|
|
91
92
|
)
|
|
@@ -80,10 +80,11 @@ module Courier
|
|
|
80
80
|
# @see Courier::Models::BulkListUsersParams
|
|
81
81
|
def list_users(job_id, params = {})
|
|
82
82
|
parsed, options = Courier::BulkListUsersParams.dump_request(params)
|
|
83
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
83
84
|
@client.request(
|
|
84
85
|
method: :get,
|
|
85
86
|
path: ["bulk/%1$s/users", job_id],
|
|
86
|
-
query:
|
|
87
|
+
query: query,
|
|
87
88
|
model: Courier::Models::BulkListUsersResponse,
|
|
88
89
|
options: options
|
|
89
90
|
)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Resources
|
|
5
|
+
class Journeys
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Courier::Models::JourneyListParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Get the list of journeys.
|
|
10
|
+
#
|
|
11
|
+
# @overload list(cursor: nil, version: nil, request_options: {})
|
|
12
|
+
#
|
|
13
|
+
# @param cursor [String] A cursor token for pagination. Use the cursor from the previous response to fetc
|
|
14
|
+
#
|
|
15
|
+
# @param version [Symbol, Courier::Models::JourneyListParams::Version] The version of journeys to retrieve. Accepted values are published (for publishe
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
|
+
#
|
|
19
|
+
# @return [Courier::Models::JourneysListResponse]
|
|
20
|
+
#
|
|
21
|
+
# @see Courier::Models::JourneyListParams
|
|
22
|
+
def list(params = {})
|
|
23
|
+
parsed, options = Courier::JourneyListParams.dump_request(params)
|
|
24
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
25
|
+
@client.request(
|
|
26
|
+
method: :get,
|
|
27
|
+
path: "journeys",
|
|
28
|
+
query: query,
|
|
29
|
+
model: Courier::JourneysListResponse,
|
|
30
|
+
options: options
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Some parameter documentations has been truncated, see
|
|
35
|
+
# {Courier::Models::JourneyInvokeParams} for more details.
|
|
36
|
+
#
|
|
37
|
+
# Invoke a journey run from a journey template.
|
|
38
|
+
#
|
|
39
|
+
# @overload invoke(template_id, data: nil, profile: nil, user_id: nil, request_options: {})
|
|
40
|
+
#
|
|
41
|
+
# @param template_id [String] A unique identifier representing the journey template to be invoked. This could
|
|
42
|
+
#
|
|
43
|
+
# @param data [Hash{Symbol=>Object}] Data payload passed to the journey. The expected shape can be predefined using t
|
|
44
|
+
#
|
|
45
|
+
# @param profile [Hash{Symbol=>Object}] Profile data for the user. Can contain contact information (email, phone_number)
|
|
46
|
+
#
|
|
47
|
+
# @param user_id [String] A unique identifier for the user. If not provided, the system will attempt to re
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
|
+
#
|
|
51
|
+
# @return [Courier::Models::JourneysInvokeResponse]
|
|
52
|
+
#
|
|
53
|
+
# @see Courier::Models::JourneyInvokeParams
|
|
54
|
+
def invoke(template_id, params = {})
|
|
55
|
+
parsed, options = Courier::JourneyInvokeParams.dump_request(params)
|
|
56
|
+
@client.request(
|
|
57
|
+
method: :post,
|
|
58
|
+
path: ["journeys/%1$s/invoke", template_id],
|
|
59
|
+
body: parsed,
|
|
60
|
+
model: Courier::JourneysInvokeResponse,
|
|
61
|
+
options: options
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @api private
|
|
66
|
+
#
|
|
67
|
+
# @param client [Courier::Client]
|
|
68
|
+
def initialize(client:)
|
|
69
|
+
@client = client
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -19,10 +19,11 @@ module Courier
|
|
|
19
19
|
# @see Courier::Models::Lists::SubscriptionListParams
|
|
20
20
|
def list(list_id, params = {})
|
|
21
21
|
parsed, options = Courier::Lists::SubscriptionListParams.dump_request(params)
|
|
22
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
22
23
|
@client.request(
|
|
23
24
|
method: :get,
|
|
24
25
|
path: ["lists/%1$s/subscriptions", list_id],
|
|
25
|
-
query:
|
|
26
|
+
query: query,
|
|
26
27
|
model: Courier::Models::Lists::SubscriptionListResponse,
|
|
27
28
|
options: options
|
|
28
29
|
)
|
|
@@ -70,10 +70,11 @@ module Courier
|
|
|
70
70
|
# @see Courier::Models::ListListParams
|
|
71
71
|
def list(params = {})
|
|
72
72
|
parsed, options = Courier::ListListParams.dump_request(params)
|
|
73
|
+
query = Courier::Internal::Util.encode_query_params(parsed)
|
|
73
74
|
@client.request(
|
|
74
75
|
method: :get,
|
|
75
76
|
path: "lists",
|
|
76
|
-
query:
|
|
77
|
+
query: query,
|
|
77
78
|
model: Courier::Models::ListListResponse,
|
|
78
79
|
options: options
|
|
79
80
|
)
|