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
|
@@ -7,6 +7,11 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute brand_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :brand_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute name
|
|
11
16
|
# The name of the brand.
|
|
12
17
|
#
|
|
@@ -23,7 +28,9 @@ module Courier
|
|
|
23
28
|
# @return [Courier::Models::BrandSnippets, nil]
|
|
24
29
|
optional :snippets, -> { Courier::BrandSnippets }, nil?: true
|
|
25
30
|
|
|
26
|
-
# @!method initialize(name:, settings: nil, snippets: nil, request_options: {})
|
|
31
|
+
# @!method initialize(brand_id:, name:, settings: nil, snippets: nil, request_options: {})
|
|
32
|
+
# @param brand_id [String]
|
|
33
|
+
#
|
|
27
34
|
# @param name [String] The name of the brand.
|
|
28
35
|
#
|
|
29
36
|
# @param settings [Courier::Models::BrandSettings, nil]
|
|
@@ -7,12 +7,18 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute job_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :job_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute users
|
|
11
16
|
#
|
|
12
17
|
# @return [Array<Courier::Models::InboundBulkMessageUser>]
|
|
13
18
|
required :users, -> { Courier::Internal::Type::ArrayOf[Courier::InboundBulkMessageUser] }
|
|
14
19
|
|
|
15
|
-
# @!method initialize(users:, request_options: {})
|
|
20
|
+
# @!method initialize(job_id:, users:, request_options: {})
|
|
21
|
+
# @param job_id [String]
|
|
16
22
|
# @param users [Array<Courier::Models::InboundBulkMessageUser>]
|
|
17
23
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
24
|
end
|
|
@@ -7,6 +7,11 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute job_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :job_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute cursor
|
|
11
16
|
# A unique identifier that allows for fetching the next set of users added to the
|
|
12
17
|
# bulk job
|
|
@@ -14,10 +19,12 @@ module Courier
|
|
|
14
19
|
# @return [String, nil]
|
|
15
20
|
optional :cursor, String, nil?: true
|
|
16
21
|
|
|
17
|
-
# @!method initialize(cursor: nil, request_options: {})
|
|
22
|
+
# @!method initialize(job_id:, cursor: nil, request_options: {})
|
|
18
23
|
# Some parameter documentations has been truncated, see
|
|
19
24
|
# {Courier::Models::BulkListUsersParams} for more details.
|
|
20
25
|
#
|
|
26
|
+
# @param job_id [String]
|
|
27
|
+
#
|
|
21
28
|
# @param cursor [String, nil] A unique identifier that allows for fetching the next set of users added to the
|
|
22
29
|
#
|
|
23
30
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute job_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :job_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(job_id:, request_options: {})
|
|
16
|
+
# @param job_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute job_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :job_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(job_id:, request_options: {})
|
|
16
|
+
# @param job_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class Channel < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute brand_id
|
|
7
|
+
# Brand id used for rendering.
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :brand_id, String, nil?: true
|
|
11
|
+
|
|
12
|
+
# @!attribute if_
|
|
13
|
+
# JS conditional with access to data/profile.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :if_, String, api_name: :if, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute metadata
|
|
19
|
+
#
|
|
20
|
+
# @return [Courier::Models::ChannelMetadata, nil]
|
|
21
|
+
optional :metadata, -> { Courier::ChannelMetadata }, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute override
|
|
24
|
+
# Channel specific overrides.
|
|
25
|
+
#
|
|
26
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
27
|
+
optional :override, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute providers
|
|
30
|
+
# Providers enabled for this channel.
|
|
31
|
+
#
|
|
32
|
+
# @return [Array<String>, nil]
|
|
33
|
+
optional :providers, Courier::Internal::Type::ArrayOf[String], nil?: true
|
|
34
|
+
|
|
35
|
+
# @!attribute routing_method
|
|
36
|
+
# Defaults to `single`.
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Courier::Models::Channel::RoutingMethod, nil]
|
|
39
|
+
optional :routing_method, enum: -> { Courier::Channel::RoutingMethod }, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute timeouts
|
|
42
|
+
#
|
|
43
|
+
# @return [Courier::Models::Timeouts, nil]
|
|
44
|
+
optional :timeouts, -> { Courier::Timeouts }, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!method initialize(brand_id: nil, if_: nil, metadata: nil, override: nil, providers: nil, routing_method: nil, timeouts: nil)
|
|
47
|
+
# @param brand_id [String, nil] Brand id used for rendering.
|
|
48
|
+
#
|
|
49
|
+
# @param if_ [String, nil] JS conditional with access to data/profile.
|
|
50
|
+
#
|
|
51
|
+
# @param metadata [Courier::Models::ChannelMetadata, nil]
|
|
52
|
+
#
|
|
53
|
+
# @param override [Hash{Symbol=>Object}, nil] Channel specific overrides.
|
|
54
|
+
#
|
|
55
|
+
# @param providers [Array<String>, nil] Providers enabled for this channel.
|
|
56
|
+
#
|
|
57
|
+
# @param routing_method [Symbol, Courier::Models::Channel::RoutingMethod, nil] Defaults to `single`.
|
|
58
|
+
#
|
|
59
|
+
# @param timeouts [Courier::Models::Timeouts, nil]
|
|
60
|
+
|
|
61
|
+
# Defaults to `single`.
|
|
62
|
+
#
|
|
63
|
+
# @see Courier::Models::Channel#routing_method
|
|
64
|
+
module RoutingMethod
|
|
65
|
+
extend Courier::Internal::Type::Enum
|
|
66
|
+
|
|
67
|
+
ALL = :all
|
|
68
|
+
SINGLE = :single
|
|
69
|
+
|
|
70
|
+
# @!method self.values
|
|
71
|
+
# @return [Array<Symbol>]
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class ChannelMetadata < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute utm
|
|
7
|
+
#
|
|
8
|
+
# @return [Courier::Models::Utm, nil]
|
|
9
|
+
optional :utm, -> { Courier::Utm }, nil?: true
|
|
10
|
+
|
|
11
|
+
# @!method initialize(utm: nil)
|
|
12
|
+
# @param utm [Courier::Models::Utm, nil]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -5,7 +5,7 @@ module Courier
|
|
|
5
5
|
class ElementalContent < Courier::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute elements
|
|
7
7
|
#
|
|
8
|
-
# @return [Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType>]
|
|
8
|
+
# @return [Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType, Courier::Models::ElementalHTMLNodeWithType>]
|
|
9
9
|
required :elements, -> { Courier::Internal::Type::ArrayOf[union: Courier::ElementalNode] }
|
|
10
10
|
|
|
11
11
|
# @!attribute version
|
|
@@ -14,17 +14,10 @@ module Courier
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :version, String
|
|
16
16
|
|
|
17
|
-
# @!
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :brand, String, nil?: true
|
|
21
|
-
|
|
22
|
-
# @!method initialize(elements:, version:, brand: nil)
|
|
23
|
-
# @param elements [Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType>]
|
|
17
|
+
# @!method initialize(elements:, version:)
|
|
18
|
+
# @param elements [Array<Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType, Courier::Models::ElementalHTMLNodeWithType>]
|
|
24
19
|
#
|
|
25
20
|
# @param version [String] For example, "2022-01-01"
|
|
26
|
-
#
|
|
27
|
-
# @param brand [String, nil]
|
|
28
21
|
end
|
|
29
22
|
end
|
|
30
23
|
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class ElementalHTMLNodeWithType < Courier::Models::ElementalBaseNode
|
|
6
|
+
# @!attribute type
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Courier::Models::ElementalHTMLNodeWithType::Type, nil]
|
|
9
|
+
optional :type, enum: -> { Courier::ElementalHTMLNodeWithType::Type }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(type: nil)
|
|
12
|
+
# @param type [Symbol, Courier::Models::ElementalHTMLNodeWithType::Type]
|
|
13
|
+
|
|
14
|
+
module Type
|
|
15
|
+
extend Courier::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
HTML = :html
|
|
18
|
+
|
|
19
|
+
# @!method self.values
|
|
20
|
+
# @return [Array<Symbol>]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -37,8 +37,10 @@ module Courier
|
|
|
37
37
|
|
|
38
38
|
variant -> { Courier::ElementalQuoteNodeWithType }
|
|
39
39
|
|
|
40
|
+
variant -> { Courier::ElementalHTMLNodeWithType }
|
|
41
|
+
|
|
40
42
|
# @!method self.variants
|
|
41
|
-
# @return [Array(Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType)]
|
|
43
|
+
# @return [Array(Courier::Models::ElementalTextNodeWithType, Courier::Models::ElementalMetaNodeWithType, Courier::Models::ElementalChannelNodeWithType, Courier::Models::ElementalImageNodeWithType, Courier::Models::ElementalActionNodeWithType, Courier::Models::ElementalDividerNodeWithType, Courier::Models::ElementalQuoteNodeWithType, Courier::Models::ElementalHTMLNodeWithType)]
|
|
42
44
|
end
|
|
43
45
|
end
|
|
44
46
|
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class Journey < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The unique identifier of the journey.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute name
|
|
13
|
+
# The name of the journey.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :name, String
|
|
17
|
+
|
|
18
|
+
# @!attribute version
|
|
19
|
+
# The version of the journey (published or draft).
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Courier::Models::Journey::Version]
|
|
22
|
+
required :version, enum: -> { Courier::Journey::Version }
|
|
23
|
+
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# ISO 8601 timestamp when the journey was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [Time, nil]
|
|
28
|
+
optional :created_at, Time, api_name: :createdAt
|
|
29
|
+
|
|
30
|
+
# @!attribute updated_at
|
|
31
|
+
# ISO 8601 timestamp when the journey was last updated.
|
|
32
|
+
#
|
|
33
|
+
# @return [Time, nil]
|
|
34
|
+
optional :updated_at, Time, api_name: :updatedAt
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, name:, version:, created_at: nil, updated_at: nil)
|
|
37
|
+
# A journey template representing an automation workflow.
|
|
38
|
+
#
|
|
39
|
+
# @param id [String] The unique identifier of the journey.
|
|
40
|
+
#
|
|
41
|
+
# @param name [String] The name of the journey.
|
|
42
|
+
#
|
|
43
|
+
# @param version [Symbol, Courier::Models::Journey::Version] The version of the journey (published or draft).
|
|
44
|
+
#
|
|
45
|
+
# @param created_at [Time] ISO 8601 timestamp when the journey was created.
|
|
46
|
+
#
|
|
47
|
+
# @param updated_at [Time] ISO 8601 timestamp when the journey was last updated.
|
|
48
|
+
|
|
49
|
+
# The version of the journey (published or draft).
|
|
50
|
+
#
|
|
51
|
+
# @see Courier::Models::Journey#version
|
|
52
|
+
module Version
|
|
53
|
+
extend Courier::Internal::Type::Enum
|
|
54
|
+
|
|
55
|
+
PUBLISHED = :published
|
|
56
|
+
DRAFT = :draft
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Journeys#invoke
|
|
6
|
+
class JourneyInvokeParams < Courier::Models::JourneysInvokeRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute template_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :template_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(template_id:, request_options: {})
|
|
16
|
+
# @param template_id [String]
|
|
17
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Journeys#list
|
|
6
|
+
class JourneyListParams < Courier::Internal::Type::BaseModel
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute cursor
|
|
11
|
+
# A cursor token for pagination. Use the cursor from the previous response to
|
|
12
|
+
# fetch the next page of results.
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :cursor, String
|
|
16
|
+
|
|
17
|
+
# @!attribute version
|
|
18
|
+
# The version of journeys to retrieve. Accepted values are published (for
|
|
19
|
+
# published journeys) or draft (for draft journeys). Defaults to published.
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Courier::Models::JourneyListParams::Version, nil]
|
|
22
|
+
optional :version, enum: -> { Courier::JourneyListParams::Version }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(cursor: nil, version: nil, request_options: {})
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Courier::Models::JourneyListParams} for more details.
|
|
27
|
+
#
|
|
28
|
+
# @param cursor [String] A cursor token for pagination. Use the cursor from the previous response to fetc
|
|
29
|
+
#
|
|
30
|
+
# @param version [Symbol, Courier::Models::JourneyListParams::Version] The version of journeys to retrieve. Accepted values are published (for publishe
|
|
31
|
+
#
|
|
32
|
+
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
33
|
+
|
|
34
|
+
# The version of journeys to retrieve. Accepted values are published (for
|
|
35
|
+
# published journeys) or draft (for draft journeys). Defaults to published.
|
|
36
|
+
module Version
|
|
37
|
+
extend Courier::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
PUBLISHED = :published
|
|
40
|
+
DRAFT = :draft
|
|
41
|
+
|
|
42
|
+
# @!method self.values
|
|
43
|
+
# @return [Array<Symbol>]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class JourneysInvokeRequest < Courier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute data
|
|
7
|
+
# Data payload passed to the journey. The expected shape can be predefined using
|
|
8
|
+
# the schema builder in the journey editor. This data is available in journey
|
|
9
|
+
# steps for condition evaluation and template variable interpolation. Can also
|
|
10
|
+
# contain user identifiers (user_id, userId, anonymousId) if not provided
|
|
11
|
+
# elsewhere.
|
|
12
|
+
#
|
|
13
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
14
|
+
optional :data, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown]
|
|
15
|
+
|
|
16
|
+
# @!attribute profile
|
|
17
|
+
# Profile data for the user. Can contain contact information (email,
|
|
18
|
+
# phone_number), user identifiers (user_id, userId, anonymousId), or any custom
|
|
19
|
+
# profile fields. Profile fields are merged with any existing stored profile for
|
|
20
|
+
# the user. Include context.tenant_id to load a tenant-scoped profile for
|
|
21
|
+
# multi-tenant scenarios.
|
|
22
|
+
#
|
|
23
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
24
|
+
optional :profile, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown]
|
|
25
|
+
|
|
26
|
+
# @!attribute user_id
|
|
27
|
+
# A unique identifier for the user. If not provided, the system will attempt to
|
|
28
|
+
# resolve the user identifier from profile or data objects.
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :user_id, String
|
|
32
|
+
|
|
33
|
+
# @!method initialize(data: nil, profile: nil, user_id: nil)
|
|
34
|
+
# Some parameter documentations has been truncated, see
|
|
35
|
+
# {Courier::Models::JourneysInvokeRequest} for more details.
|
|
36
|
+
#
|
|
37
|
+
# Request body for invoking a journey. Requires either a user identifier or a
|
|
38
|
+
# profile with contact information. User identifiers can be provided via user_id
|
|
39
|
+
# field, or resolved from profile/data objects (user_id, userId, or anonymousId
|
|
40
|
+
# fields).
|
|
41
|
+
#
|
|
42
|
+
# @param data [Hash{Symbol=>Object}] Data payload passed to the journey. The expected shape can be predefined using t
|
|
43
|
+
#
|
|
44
|
+
# @param profile [Hash{Symbol=>Object}] Profile data for the user. Can contain contact information (email, phone_number)
|
|
45
|
+
#
|
|
46
|
+
# @param user_id [String] A unique identifier for the user. If not provided, the system will attempt to re
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Journeys#invoke
|
|
6
|
+
class JourneysInvokeResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute run_id
|
|
8
|
+
# A unique identifier for the journey run that was created.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :run_id, String, api_name: :runId
|
|
12
|
+
|
|
13
|
+
# @!method initialize(run_id:)
|
|
14
|
+
# @param run_id [String] A unique identifier for the journey run that was created.
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
# @see Courier::Resources::Journeys#list
|
|
6
|
+
class JourneysListResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute cursor
|
|
8
|
+
# A cursor token for pagination. Present when there are more results available.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :cursor, String
|
|
12
|
+
|
|
13
|
+
# @!attribute templates
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Courier::Models::Journey>, nil]
|
|
16
|
+
optional :templates, -> { Courier::Internal::Type::ArrayOf[Courier::Journey] }
|
|
17
|
+
|
|
18
|
+
# @!method initialize(cursor: nil, templates: nil)
|
|
19
|
+
# @param cursor [String] A cursor token for pagination. Present when there are more results available.
|
|
20
|
+
#
|
|
21
|
+
# @param templates [Array<Courier::Models::Journey>]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute list_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :list_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(list_id:, request_options: {})
|
|
16
|
+
# @param list_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute list_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :list_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(list_id:, request_options: {})
|
|
16
|
+
# @param list_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,7 +7,13 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute list_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :list_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(list_id:, request_options: {})
|
|
16
|
+
# @param list_id [String]
|
|
11
17
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -7,6 +7,11 @@ module Courier
|
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute list_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :list_id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute name
|
|
11
16
|
#
|
|
12
17
|
# @return [String]
|
|
@@ -17,7 +22,8 @@ module Courier
|
|
|
17
22
|
# @return [Courier::Models::RecipientPreferences, nil]
|
|
18
23
|
optional :preferences, -> { Courier::RecipientPreferences }, nil?: true
|
|
19
24
|
|
|
20
|
-
# @!method initialize(name:, preferences: nil, request_options: {})
|
|
25
|
+
# @!method initialize(list_id:, name:, preferences: nil, request_options: {})
|
|
26
|
+
# @param list_id [String]
|
|
21
27
|
# @param name [String]
|
|
22
28
|
# @param preferences [Courier::Models::RecipientPreferences, nil]
|
|
23
29
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -8,12 +8,18 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute list_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :list_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute recipients
|
|
12
17
|
#
|
|
13
18
|
# @return [Array<Courier::Models::PutSubscriptionsRecipient>]
|
|
14
19
|
required :recipients, -> { Courier::Internal::Type::ArrayOf[Courier::PutSubscriptionsRecipient] }
|
|
15
20
|
|
|
16
|
-
# @!method initialize(recipients:, request_options: {})
|
|
21
|
+
# @!method initialize(list_id:, recipients:, request_options: {})
|
|
22
|
+
# @param list_id [String]
|
|
17
23
|
# @param recipients [Array<Courier::Models::PutSubscriptionsRecipient>]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
@@ -8,13 +8,20 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute list_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :list_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute cursor
|
|
12
17
|
# A unique identifier that allows for fetching the next set of list subscriptions
|
|
13
18
|
#
|
|
14
19
|
# @return [String, nil]
|
|
15
20
|
optional :cursor, String, nil?: true
|
|
16
21
|
|
|
17
|
-
# @!method initialize(cursor: nil, request_options: {})
|
|
22
|
+
# @!method initialize(list_id:, cursor: nil, request_options: {})
|
|
23
|
+
# @param list_id [String]
|
|
24
|
+
#
|
|
18
25
|
# @param cursor [String, nil] A unique identifier that allows for fetching the next set of list subscriptions
|
|
19
26
|
#
|
|
20
27
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -8,12 +8,18 @@ module Courier
|
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute list_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :list_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute recipients
|
|
12
17
|
#
|
|
13
18
|
# @return [Array<Courier::Models::PutSubscriptionsRecipient>]
|
|
14
19
|
required :recipients, -> { Courier::Internal::Type::ArrayOf[Courier::PutSubscriptionsRecipient] }
|
|
15
20
|
|
|
16
|
-
# @!method initialize(recipients:, request_options: {})
|
|
21
|
+
# @!method initialize(list_id:, recipients:, request_options: {})
|
|
22
|
+
# @param list_id [String]
|
|
17
23
|
# @param recipients [Array<Courier::Models::PutSubscriptionsRecipient>]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
@@ -13,13 +13,19 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :list_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute user_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :user_id, String
|
|
20
|
+
|
|
16
21
|
# @!attribute preferences
|
|
17
22
|
#
|
|
18
23
|
# @return [Courier::Models::RecipientPreferences, nil]
|
|
19
24
|
optional :preferences, -> { Courier::RecipientPreferences }, nil?: true
|
|
20
25
|
|
|
21
|
-
# @!method initialize(list_id:, preferences: nil, request_options: {})
|
|
26
|
+
# @!method initialize(list_id:, user_id:, preferences: nil, request_options: {})
|
|
22
27
|
# @param list_id [String]
|
|
28
|
+
# @param user_id [String]
|
|
23
29
|
# @param preferences [Courier::Models::RecipientPreferences, nil]
|
|
24
30
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
25
31
|
end
|
|
@@ -13,8 +13,14 @@ module Courier
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :list_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
16
|
+
# @!attribute user_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :user_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(list_id:, user_id:, request_options: {})
|
|
17
22
|
# @param list_id [String]
|
|
23
|
+
# @param user_id [String]
|
|
18
24
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
25
|
end
|
|
20
26
|
end
|