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
|
@@ -2,24 +2,28 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Tenants
|
|
4
4
|
type template_list_params =
|
|
5
|
-
{ cursor: String?, limit: Integer? }
|
|
5
|
+
{ tenant_id: String, cursor: String?, limit: Integer? }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TemplateListParams < Courier::Internal::Type::BaseModel
|
|
9
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Courier::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor tenant_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor cursor: String?
|
|
13
15
|
|
|
14
16
|
attr_accessor limit: Integer?
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
19
|
+
tenant_id: String,
|
|
17
20
|
?cursor: String?,
|
|
18
21
|
?limit: Integer?,
|
|
19
22
|
?request_options: Courier::request_opts
|
|
20
23
|
) -> void
|
|
21
24
|
|
|
22
25
|
def to_hash: -> {
|
|
26
|
+
tenant_id: String,
|
|
23
27
|
cursor: String?,
|
|
24
28
|
limit: Integer?,
|
|
25
29
|
request_options: Courier::RequestOptions
|
|
@@ -2,7 +2,8 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Tenants
|
|
4
4
|
type template_publish_params =
|
|
5
|
-
{ tenant_id: String
|
|
5
|
+
{ tenant_id: String, template_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class TemplatePublishParams < Courier::Models::PostTenantTemplatePublishRequest
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -12,13 +13,19 @@ module Courier
|
|
|
12
13
|
|
|
13
14
|
def tenant_id=: (String _) -> String
|
|
14
15
|
|
|
16
|
+
def template_id: -> String
|
|
17
|
+
|
|
18
|
+
def template_id=: (String _) -> String
|
|
19
|
+
|
|
15
20
|
def initialize: (
|
|
16
21
|
tenant_id: String,
|
|
22
|
+
template_id: String,
|
|
17
23
|
?request_options: Courier::request_opts
|
|
18
24
|
) -> void
|
|
19
25
|
|
|
20
26
|
def to_hash: -> {
|
|
21
27
|
tenant_id: String,
|
|
28
|
+
template_id: String,
|
|
22
29
|
request_options: Courier::RequestOptions
|
|
23
30
|
}
|
|
24
31
|
end
|
|
@@ -2,7 +2,8 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Tenants
|
|
4
4
|
type template_replace_params =
|
|
5
|
-
{ tenant_id: String
|
|
5
|
+
{ tenant_id: String, template_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class TemplateReplaceParams < Courier::Models::PutTenantTemplateRequest
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -12,13 +13,19 @@ module Courier
|
|
|
12
13
|
|
|
13
14
|
def tenant_id=: (String _) -> String
|
|
14
15
|
|
|
16
|
+
def template_id: -> String
|
|
17
|
+
|
|
18
|
+
def template_id=: (String _) -> String
|
|
19
|
+
|
|
15
20
|
def initialize: (
|
|
16
21
|
tenant_id: String,
|
|
22
|
+
template_id: String,
|
|
17
23
|
?request_options: Courier::request_opts
|
|
18
24
|
) -> void
|
|
19
25
|
|
|
20
26
|
def to_hash: -> {
|
|
21
27
|
tenant_id: String,
|
|
28
|
+
template_id: String,
|
|
22
29
|
request_options: Courier::RequestOptions
|
|
23
30
|
}
|
|
24
31
|
end
|
|
@@ -2,7 +2,8 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Tenants
|
|
4
4
|
type template_retrieve_params =
|
|
5
|
-
{ tenant_id: String
|
|
5
|
+
{ tenant_id: String, template_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class TemplateRetrieveParams < Courier::Internal::Type::BaseModel
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -10,13 +11,17 @@ module Courier
|
|
|
10
11
|
|
|
11
12
|
attr_accessor tenant_id: String
|
|
12
13
|
|
|
14
|
+
attr_accessor template_id: String
|
|
15
|
+
|
|
13
16
|
def initialize: (
|
|
14
17
|
tenant_id: String,
|
|
18
|
+
template_id: String,
|
|
15
19
|
?request_options: Courier::request_opts
|
|
16
20
|
) -> void
|
|
17
21
|
|
|
18
22
|
def to_hash: -> {
|
|
19
23
|
tenant_id: String,
|
|
24
|
+
template_id: String,
|
|
20
25
|
request_options: Courier::RequestOptions
|
|
21
26
|
}
|
|
22
27
|
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
module Tenants
|
|
4
4
|
module Templates
|
|
5
5
|
type version_retrieve_params =
|
|
6
|
-
{ tenant_id: String, template_id: String }
|
|
6
|
+
{ tenant_id: String, template_id: String, version: String }
|
|
7
7
|
& Courier::Internal::Type::request_parameters
|
|
8
8
|
|
|
9
9
|
class VersionRetrieveParams < Courier::Internal::Type::BaseModel
|
|
@@ -14,15 +14,19 @@ module Courier
|
|
|
14
14
|
|
|
15
15
|
attr_accessor template_id: String
|
|
16
16
|
|
|
17
|
+
attr_accessor version: String
|
|
18
|
+
|
|
17
19
|
def initialize: (
|
|
18
20
|
tenant_id: String,
|
|
19
21
|
template_id: String,
|
|
22
|
+
version: String,
|
|
20
23
|
?request_options: Courier::request_opts
|
|
21
24
|
) -> void
|
|
22
25
|
|
|
23
26
|
def to_hash: -> {
|
|
24
27
|
tenant_id: String,
|
|
25
28
|
template_id: String,
|
|
29
|
+
version: String,
|
|
26
30
|
request_options: Courier::RequestOptions
|
|
27
31
|
}
|
|
28
32
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type timeouts = { channel: Integer?, provider: Integer? }
|
|
4
|
+
|
|
5
|
+
class Timeouts < Courier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor channel: Integer?
|
|
7
|
+
|
|
8
|
+
attr_accessor provider: Integer?
|
|
9
|
+
|
|
10
|
+
def initialize: (?channel: Integer?, ?provider: Integer?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { channel: Integer?, provider: Integer? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type translation_retrieve_params =
|
|
4
|
-
{ domain: String
|
|
4
|
+
{ domain: String, locale: String }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class TranslationRetrieveParams < Courier::Internal::Type::BaseModel
|
|
7
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -9,13 +10,17 @@ module Courier
|
|
|
9
10
|
|
|
10
11
|
attr_accessor domain: String
|
|
11
12
|
|
|
13
|
+
attr_accessor locale: String
|
|
14
|
+
|
|
12
15
|
def initialize: (
|
|
13
16
|
domain: String,
|
|
17
|
+
locale: String,
|
|
14
18
|
?request_options: Courier::request_opts
|
|
15
19
|
) -> void
|
|
16
20
|
|
|
17
21
|
def to_hash: -> {
|
|
18
22
|
domain: String,
|
|
23
|
+
locale: String,
|
|
19
24
|
request_options: Courier::RequestOptions
|
|
20
25
|
}
|
|
21
26
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type translation_update_params =
|
|
4
|
-
{ domain: String, body: String }
|
|
4
|
+
{ domain: String, locale: String, body: String }
|
|
5
5
|
& Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class TranslationUpdateParams < Courier::Internal::Type::BaseModel
|
|
@@ -10,16 +10,20 @@ module Courier
|
|
|
10
10
|
|
|
11
11
|
attr_accessor domain: String
|
|
12
12
|
|
|
13
|
+
attr_accessor locale: String
|
|
14
|
+
|
|
13
15
|
attr_accessor body: String
|
|
14
16
|
|
|
15
17
|
def initialize: (
|
|
16
18
|
domain: String,
|
|
19
|
+
locale: String,
|
|
17
20
|
body: String,
|
|
18
21
|
?request_options: Courier::request_opts
|
|
19
22
|
) -> void
|
|
20
23
|
|
|
21
24
|
def to_hash: -> {
|
|
22
25
|
domain: String,
|
|
26
|
+
locale: String,
|
|
23
27
|
body: String,
|
|
24
28
|
request_options: Courier::RequestOptions
|
|
25
29
|
}
|
|
@@ -2,20 +2,25 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type preference_retrieve_params =
|
|
5
|
-
{ tenant_id: String? }
|
|
5
|
+
{ user_id: String, tenant_id: String? }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class PreferenceRetrieveParams < Courier::Internal::Type::BaseModel
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include Courier::Internal::Type::RequestParameters
|
|
10
11
|
|
|
12
|
+
attr_accessor user_id: String
|
|
13
|
+
|
|
11
14
|
attr_accessor tenant_id: String?
|
|
12
15
|
|
|
13
16
|
def initialize: (
|
|
17
|
+
user_id: String,
|
|
14
18
|
?tenant_id: String?,
|
|
15
19
|
?request_options: Courier::request_opts
|
|
16
20
|
) -> void
|
|
17
21
|
|
|
18
22
|
def to_hash: -> {
|
|
23
|
+
user_id: String,
|
|
19
24
|
tenant_id: String?,
|
|
20
25
|
request_options: Courier::RequestOptions
|
|
21
26
|
}
|
|
@@ -2,7 +2,7 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type preference_retrieve_topic_params =
|
|
5
|
-
{ user_id: String, tenant_id: String? }
|
|
5
|
+
{ user_id: String, topic_id: String, tenant_id: String? }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class PreferenceRetrieveTopicParams < Courier::Internal::Type::BaseModel
|
|
@@ -11,16 +11,20 @@ module Courier
|
|
|
11
11
|
|
|
12
12
|
attr_accessor user_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor topic_id: String
|
|
15
|
+
|
|
14
16
|
attr_accessor tenant_id: String?
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
17
19
|
user_id: String,
|
|
20
|
+
topic_id: String,
|
|
18
21
|
?tenant_id: String?,
|
|
19
22
|
?request_options: Courier::request_opts
|
|
20
23
|
) -> void
|
|
21
24
|
|
|
22
25
|
def to_hash: -> {
|
|
23
26
|
user_id: String,
|
|
27
|
+
topic_id: String,
|
|
24
28
|
tenant_id: String?,
|
|
25
29
|
request_options: Courier::RequestOptions
|
|
26
30
|
}
|
|
@@ -4,6 +4,7 @@ module Courier
|
|
|
4
4
|
type preference_update_or_create_topic_params =
|
|
5
5
|
{
|
|
6
6
|
user_id: String,
|
|
7
|
+
topic_id: String,
|
|
7
8
|
topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic,
|
|
8
9
|
tenant_id: String?
|
|
9
10
|
}
|
|
@@ -15,12 +16,15 @@ module Courier
|
|
|
15
16
|
|
|
16
17
|
attr_accessor user_id: String
|
|
17
18
|
|
|
19
|
+
attr_accessor topic_id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic
|
|
19
22
|
|
|
20
23
|
attr_accessor tenant_id: String?
|
|
21
24
|
|
|
22
25
|
def initialize: (
|
|
23
26
|
user_id: String,
|
|
27
|
+
topic_id: String,
|
|
24
28
|
topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic,
|
|
25
29
|
?tenant_id: String?,
|
|
26
30
|
?request_options: Courier::request_opts
|
|
@@ -28,6 +32,7 @@ module Courier
|
|
|
28
32
|
|
|
29
33
|
def to_hash: -> {
|
|
30
34
|
user_id: String,
|
|
35
|
+
topic_id: String,
|
|
31
36
|
topic: Courier::Users::PreferenceUpdateOrCreateTopicParams::Topic,
|
|
32
37
|
tenant_id: String?,
|
|
33
38
|
request_options: Courier::RequestOptions
|
|
@@ -2,21 +2,25 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type tenant_add_multiple_params =
|
|
5
|
-
{ tenants: ::Array[Courier::TenantAssociation] }
|
|
5
|
+
{ user_id: String, tenants: ::Array[Courier::TenantAssociation] }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TenantAddMultipleParams < Courier::Internal::Type::BaseModel
|
|
9
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Courier::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor user_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor tenants: ::Array[Courier::TenantAssociation]
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
user_id: String,
|
|
15
18
|
tenants: ::Array[Courier::TenantAssociation],
|
|
16
19
|
?request_options: Courier::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
user_id: String,
|
|
20
24
|
tenants: ::Array[Courier::TenantAssociation],
|
|
21
25
|
request_options: Courier::RequestOptions
|
|
22
26
|
}
|
|
@@ -2,7 +2,7 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type tenant_add_single_params =
|
|
5
|
-
{ user_id: String, profile: ::Hash[Symbol, top]? }
|
|
5
|
+
{ user_id: String, tenant_id: String, profile: ::Hash[Symbol, top]? }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TenantAddSingleParams < Courier::Internal::Type::BaseModel
|
|
@@ -11,16 +11,20 @@ module Courier
|
|
|
11
11
|
|
|
12
12
|
attr_accessor user_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor tenant_id: String
|
|
15
|
+
|
|
14
16
|
attr_accessor profile: ::Hash[Symbol, top]?
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
17
19
|
user_id: String,
|
|
20
|
+
tenant_id: String,
|
|
18
21
|
?profile: ::Hash[Symbol, top]?,
|
|
19
22
|
?request_options: Courier::request_opts
|
|
20
23
|
) -> void
|
|
21
24
|
|
|
22
25
|
def to_hash: -> {
|
|
23
26
|
user_id: String,
|
|
27
|
+
tenant_id: String,
|
|
24
28
|
profile: ::Hash[Symbol, top]?,
|
|
25
29
|
request_options: Courier::RequestOptions
|
|
26
30
|
}
|
|
@@ -2,24 +2,28 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type tenant_list_params =
|
|
5
|
-
{ cursor: String?, limit: Integer? }
|
|
5
|
+
{ user_id: String, cursor: String?, limit: Integer? }
|
|
6
6
|
& Courier::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class TenantListParams < Courier::Internal::Type::BaseModel
|
|
9
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Courier::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor user_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor cursor: String?
|
|
13
15
|
|
|
14
16
|
attr_accessor limit: Integer?
|
|
15
17
|
|
|
16
18
|
def initialize: (
|
|
19
|
+
user_id: String,
|
|
17
20
|
?cursor: String?,
|
|
18
21
|
?limit: Integer?,
|
|
19
22
|
?request_options: Courier::request_opts
|
|
20
23
|
) -> void
|
|
21
24
|
|
|
22
25
|
def to_hash: -> {
|
|
26
|
+
user_id: String,
|
|
23
27
|
cursor: String?,
|
|
24
28
|
limit: Integer?,
|
|
25
29
|
request_options: Courier::RequestOptions
|
|
@@ -2,15 +2,23 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type tenant_remove_all_params =
|
|
5
|
-
{
|
|
5
|
+
{ user_id: String } & Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class TenantRemoveAllParams < Courier::Internal::Type::BaseModel
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
attr_accessor user_id: String
|
|
12
12
|
|
|
13
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
user_id: String,
|
|
15
|
+
?request_options: Courier::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
user_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions
|
|
21
|
+
}
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
|
@@ -2,7 +2,8 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type tenant_remove_single_params =
|
|
5
|
-
{ user_id: String
|
|
5
|
+
{ user_id: String, tenant_id: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class TenantRemoveSingleParams < Courier::Internal::Type::BaseModel
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -10,13 +11,17 @@ module Courier
|
|
|
10
11
|
|
|
11
12
|
attr_accessor user_id: String
|
|
12
13
|
|
|
14
|
+
attr_accessor tenant_id: String
|
|
15
|
+
|
|
13
16
|
def initialize: (
|
|
14
17
|
user_id: String,
|
|
18
|
+
tenant_id: String,
|
|
15
19
|
?request_options: Courier::request_opts
|
|
16
20
|
) -> void
|
|
17
21
|
|
|
18
22
|
def to_hash: -> {
|
|
19
23
|
user_id: String,
|
|
24
|
+
tenant_id: String,
|
|
20
25
|
request_options: Courier::RequestOptions
|
|
21
26
|
}
|
|
22
27
|
end
|
|
@@ -2,15 +2,23 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type token_add_multiple_params =
|
|
5
|
-
{
|
|
5
|
+
{ user_id: String } & Courier::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class TokenAddMultipleParams < Courier::Internal::Type::BaseModel
|
|
8
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Courier::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
attr_accessor user_id: String
|
|
12
12
|
|
|
13
|
-
def
|
|
13
|
+
def initialize: (
|
|
14
|
+
user_id: String,
|
|
15
|
+
?request_options: Courier::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
user_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions
|
|
21
|
+
}
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
|
@@ -2,25 +2,148 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type token_add_single_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
user_id: String,
|
|
7
|
+
token: String,
|
|
8
|
+
provider_key: Courier::Models::Users::TokenAddSingleParams::provider_key,
|
|
9
|
+
device: Courier::Users::TokenAddSingleParams::Device?,
|
|
10
|
+
expiry_date: Courier::Models::Users::TokenAddSingleParams::expiry_date?,
|
|
11
|
+
properties: top,
|
|
12
|
+
tracking: Courier::Users::TokenAddSingleParams::Tracking?
|
|
13
|
+
}
|
|
14
|
+
& Courier::Internal::Type::request_parameters
|
|
6
15
|
|
|
7
|
-
class TokenAddSingleParams < Courier::
|
|
16
|
+
class TokenAddSingleParams < Courier::Internal::Type::BaseModel
|
|
8
17
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
18
|
include Courier::Internal::Type::RequestParameters
|
|
10
19
|
|
|
11
|
-
|
|
20
|
+
attr_accessor user_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor token: String
|
|
23
|
+
|
|
24
|
+
attr_accessor provider_key: Courier::Models::Users::TokenAddSingleParams::provider_key
|
|
25
|
+
|
|
26
|
+
attr_accessor device: Courier::Users::TokenAddSingleParams::Device?
|
|
27
|
+
|
|
28
|
+
attr_accessor expiry_date: Courier::Models::Users::TokenAddSingleParams::expiry_date?
|
|
29
|
+
|
|
30
|
+
attr_reader properties: top?
|
|
31
|
+
|
|
32
|
+
def properties=: (top) -> top
|
|
12
33
|
|
|
13
|
-
|
|
34
|
+
attr_accessor tracking: Courier::Users::TokenAddSingleParams::Tracking?
|
|
14
35
|
|
|
15
36
|
def initialize: (
|
|
16
37
|
user_id: String,
|
|
38
|
+
token: String,
|
|
39
|
+
provider_key: Courier::Models::Users::TokenAddSingleParams::provider_key,
|
|
40
|
+
?device: Courier::Users::TokenAddSingleParams::Device?,
|
|
41
|
+
?expiry_date: Courier::Models::Users::TokenAddSingleParams::expiry_date?,
|
|
42
|
+
?properties: top,
|
|
43
|
+
?tracking: Courier::Users::TokenAddSingleParams::Tracking?,
|
|
17
44
|
?request_options: Courier::request_opts
|
|
18
45
|
) -> void
|
|
19
46
|
|
|
20
47
|
def to_hash: -> {
|
|
21
48
|
user_id: String,
|
|
49
|
+
token: String,
|
|
50
|
+
provider_key: Courier::Models::Users::TokenAddSingleParams::provider_key,
|
|
51
|
+
device: Courier::Users::TokenAddSingleParams::Device?,
|
|
52
|
+
expiry_date: Courier::Models::Users::TokenAddSingleParams::expiry_date?,
|
|
53
|
+
properties: top,
|
|
54
|
+
tracking: Courier::Users::TokenAddSingleParams::Tracking?,
|
|
22
55
|
request_options: Courier::RequestOptions
|
|
23
56
|
}
|
|
57
|
+
|
|
58
|
+
type provider_key = :"firebase-fcm" | :apn | :expo | :onesignal
|
|
59
|
+
|
|
60
|
+
module ProviderKey
|
|
61
|
+
extend Courier::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
FIREBASE_FCM: :"firebase-fcm"
|
|
64
|
+
APN: :apn
|
|
65
|
+
EXPO: :expo
|
|
66
|
+
ONESIGNAL: :onesignal
|
|
67
|
+
|
|
68
|
+
def self?.values: -> ::Array[Courier::Models::Users::TokenAddSingleParams::provider_key]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
type device =
|
|
72
|
+
{
|
|
73
|
+
ad_id: String?,
|
|
74
|
+
app_id: String?,
|
|
75
|
+
device_id: String?,
|
|
76
|
+
manufacturer: String?,
|
|
77
|
+
model: String?,
|
|
78
|
+
platform: String?
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
class Device < Courier::Internal::Type::BaseModel
|
|
82
|
+
attr_accessor ad_id: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor app_id: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor device_id: String?
|
|
87
|
+
|
|
88
|
+
attr_accessor manufacturer: String?
|
|
89
|
+
|
|
90
|
+
attr_accessor model: String?
|
|
91
|
+
|
|
92
|
+
attr_accessor platform: String?
|
|
93
|
+
|
|
94
|
+
def initialize: (
|
|
95
|
+
?ad_id: String?,
|
|
96
|
+
?app_id: String?,
|
|
97
|
+
?device_id: String?,
|
|
98
|
+
?manufacturer: String?,
|
|
99
|
+
?model: String?,
|
|
100
|
+
?platform: String?
|
|
101
|
+
) -> void
|
|
102
|
+
|
|
103
|
+
def to_hash: -> {
|
|
104
|
+
ad_id: String?,
|
|
105
|
+
app_id: String?,
|
|
106
|
+
device_id: String?,
|
|
107
|
+
manufacturer: String?,
|
|
108
|
+
model: String?,
|
|
109
|
+
platform: String?
|
|
110
|
+
}
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
type expiry_date = String | bool
|
|
114
|
+
|
|
115
|
+
module ExpiryDate
|
|
116
|
+
extend Courier::Internal::Type::Union
|
|
117
|
+
|
|
118
|
+
def self?.variants: -> ::Array[Courier::Models::Users::TokenAddSingleParams::expiry_date]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
type tracking =
|
|
122
|
+
{ ip: String?, lat: String?, long: String?, os_version: String? }
|
|
123
|
+
|
|
124
|
+
class Tracking < Courier::Internal::Type::BaseModel
|
|
125
|
+
attr_accessor ip: String?
|
|
126
|
+
|
|
127
|
+
attr_accessor lat: String?
|
|
128
|
+
|
|
129
|
+
attr_accessor long: String?
|
|
130
|
+
|
|
131
|
+
attr_accessor os_version: String?
|
|
132
|
+
|
|
133
|
+
def initialize: (
|
|
134
|
+
?ip: String?,
|
|
135
|
+
?lat: String?,
|
|
136
|
+
?long: String?,
|
|
137
|
+
?os_version: String?
|
|
138
|
+
) -> void
|
|
139
|
+
|
|
140
|
+
def to_hash: -> {
|
|
141
|
+
ip: String?,
|
|
142
|
+
lat: String?,
|
|
143
|
+
long: String?,
|
|
144
|
+
os_version: String?
|
|
145
|
+
}
|
|
146
|
+
end
|
|
24
147
|
end
|
|
25
148
|
end
|
|
26
149
|
end
|
|
@@ -2,7 +2,8 @@ module Courier
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type token_delete_params =
|
|
5
|
-
{ user_id: String
|
|
5
|
+
{ user_id: String, token: String }
|
|
6
|
+
& Courier::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class TokenDeleteParams < Courier::Internal::Type::BaseModel
|
|
8
9
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -10,13 +11,17 @@ module Courier
|
|
|
10
11
|
|
|
11
12
|
attr_accessor user_id: String
|
|
12
13
|
|
|
14
|
+
attr_accessor token: String
|
|
15
|
+
|
|
13
16
|
def initialize: (
|
|
14
17
|
user_id: String,
|
|
18
|
+
token: String,
|
|
15
19
|
?request_options: Courier::request_opts
|
|
16
20
|
) -> void
|
|
17
21
|
|
|
18
22
|
def to_hash: -> {
|
|
19
23
|
user_id: String,
|
|
24
|
+
token: String,
|
|
20
25
|
request_options: Courier::RequestOptions
|
|
21
26
|
}
|
|
22
27
|
end
|