pingram-python 0.1.5__tar.gz → 1.0.0__tar.gz
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.
- {pingram_python-0.1.5/generated/pingram_python.egg-info → pingram_python-1.0.0}/PKG-INFO +1 -1
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/__init__.py +5 -13
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/templates_api.py +1 -1
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api_client.py +1 -1
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/configuration.py +1 -1
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/__init__.py +2 -6
- pingram_python-1.0.0/generated/pingram/models/template_patch_request.py +129 -0
- pingram_python-0.1.5/generated/pingram/models/template_post_request_batch.py → pingram_python-1.0.0/generated/pingram/models/template_patch_request_batch.py +3 -3
- pingram_python-0.1.5/generated/pingram/models/template_post_request_instant.py → pingram_python-1.0.0/generated/pingram/models/template_patch_request_instant.py +3 -3
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/template_post_request.py +6 -6
- {pingram_python-0.1.5 → pingram_python-1.0.0/generated/pingram_python.egg-info}/PKG-INFO +1 -1
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram_python.egg-info/SOURCES.txt +2 -6
- {pingram_python-0.1.5 → pingram_python-1.0.0}/pyproject.toml +1 -1
- pingram_python-0.1.5/generated/pingram/models/template_patch_request.py +0 -134
- pingram_python-0.1.5/generated/pingram/models/template_patch_request_any_of.py +0 -97
- pingram_python-0.1.5/generated/pingram/models/template_patch_request_any_of1.py +0 -103
- pingram_python-0.1.5/generated/pingram/models/template_patch_request_any_of1_batch.py +0 -91
- pingram_python-0.1.5/generated/pingram/models/template_patch_request_any_of1_instant.py +0 -91
- {pingram_python-0.1.5 → pingram_python-1.0.0}/LICENSE +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/MANIFEST.in +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/README.md +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/__init__.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/account_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/addresses_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/components_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/default_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/domains_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/editor_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/environments_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/health_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/insights_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/keys_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/logs_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/members_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/sender_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/types_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/user_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api/users_api.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/api_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/client_wrapper.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/exceptions.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/account_addresses_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/account_addresses_response_addresses_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/account_get_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/account_get_response_pending_downgrade_usage_limit.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/address_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/auto_join_get_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/auto_join_post_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/auto_join_request_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/bee_token_v2.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/billing_post_request_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/billing_post_response_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/billing_post_response_body_pending_downgrade_usage_limit.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/channels_enum.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/create_account_request_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/create_account_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/create_address_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/create_key_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/create_key_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/delete_key_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/delete_user_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/email_auth_token_post_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/email_component_patch_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/email_component_post_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/email_component_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/email_component_response_referenced_by_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/environment.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/environment_create_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/environment_patch_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_account_metadata_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_account_metadata_response_user_account_metadata.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_email_components_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_environments_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options_instant.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_delivery_options_off.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_replies_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_template.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_inapp_notifications_response_notifications_inner_template_any_of.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_keys_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_keys_response_keys_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_logs_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_logs_response_messages_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_logs_response_messages_inner_attachments_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_members_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_metrics_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_metrics_response_inner_messages_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_deduplication.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_options.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_options_email.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_options_email_daily.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_options_email_monthly.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_options_email_weekly.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_templates_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_notifications_response_inner_throttling.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_senders_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of1.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of1_instant.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of2.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of3.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of4.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of5.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of5_metadata.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_templates_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_email_suppression_status.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_push_tokens_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_push_tokens_inner_device.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_slack_token.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_slack_token_authed_user.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_slack_token_enterprise.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_slack_token_incoming_webhook.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_slack_token_response_metadata.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_web_push_tokens_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_web_push_tokens_inner_sub.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/get_users_response_users_inner_web_push_tokens_inner_sub_keys.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/in_app_notification_patch_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/in_app_notification_unread_clear_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/inapp_unread_count_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/inbound_request_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/inbound_response_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/inbound_response_body_results_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request_label_options.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request_metric_data_queries_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat_metric.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/ingishts_post_request_metric_data_queries_inner_metric_stat_metric_dimensions_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item_any_of.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item_any_of_contacts.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item_any_of_contacts_contacts_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item_any_of_source.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/intercom_webhook_data_item_any_of_source_author.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/invite_post_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/log_query_post_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_bulk_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_get_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_get_response_logs_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_query_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_query_result_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_retention_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/logs_tail_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/member_invite_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/member_update_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/message_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/notification.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/notification_create_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/notification_patch_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/notification_patch_request_deduplication.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/notification_patch_request_throttling.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/post_email_test_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/post_email_test_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/post_senders_request_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/post_user_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_call.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_email.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_inapp.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_mobile_push.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_apn.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_email.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_email_attachments_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_email_attachments_inner_any_of.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_email_attachments_inner_any_of1.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_fcm.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_options_fcm_android.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_slack.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_sms.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_sms_auto_reply.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_to.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_user.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_body_web_push.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/sender_post_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/set_default_template_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/slack_interactivity_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/slack_oauth_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/success_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_configure_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_configure_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_o_auth_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_o_auth_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_projects_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_projects_response_projects_inner.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/supabase_status_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/template.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/update_address_request.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/user.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/user_suppression_delete_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/webhook_response.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/py.typed +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/rest.py +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram_python.egg-info/dependency_links.txt +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram_python.egg-info/requires.txt +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram_python.egg-info/top_level.txt +0 -0
- {pingram_python-0.1.5 → pingram_python-1.0.0}/setup.cfg +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "0.
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
@@ -201,13 +201,9 @@ __all__ = [
|
|
|
201
201
|
"SupabaseStatusResponse",
|
|
202
202
|
"Template",
|
|
203
203
|
"TemplatePatchRequest",
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"TemplatePatchRequestAnyOf1Batch",
|
|
207
|
-
"TemplatePatchRequestAnyOf1Instant",
|
|
204
|
+
"TemplatePatchRequestBatch",
|
|
205
|
+
"TemplatePatchRequestInstant",
|
|
208
206
|
"TemplatePostRequest",
|
|
209
|
-
"TemplatePostRequestBatch",
|
|
210
|
-
"TemplatePostRequestInstant",
|
|
211
207
|
"UpdateAddressRequest",
|
|
212
208
|
"User",
|
|
213
209
|
"UserSuppressionDeleteResponse",
|
|
@@ -402,13 +398,9 @@ from pingram.models.supabase_projects_response_projects_inner import SupabasePro
|
|
|
402
398
|
from pingram.models.supabase_status_response import SupabaseStatusResponse as SupabaseStatusResponse
|
|
403
399
|
from pingram.models.template import Template as Template
|
|
404
400
|
from pingram.models.template_patch_request import TemplatePatchRequest as TemplatePatchRequest
|
|
405
|
-
from pingram.models.
|
|
406
|
-
from pingram.models.
|
|
407
|
-
from pingram.models.template_patch_request_any_of1_batch import TemplatePatchRequestAnyOf1Batch as TemplatePatchRequestAnyOf1Batch
|
|
408
|
-
from pingram.models.template_patch_request_any_of1_instant import TemplatePatchRequestAnyOf1Instant as TemplatePatchRequestAnyOf1Instant
|
|
401
|
+
from pingram.models.template_patch_request_batch import TemplatePatchRequestBatch as TemplatePatchRequestBatch
|
|
402
|
+
from pingram.models.template_patch_request_instant import TemplatePatchRequestInstant as TemplatePatchRequestInstant
|
|
409
403
|
from pingram.models.template_post_request import TemplatePostRequest as TemplatePostRequest
|
|
410
|
-
from pingram.models.template_post_request_batch import TemplatePostRequestBatch as TemplatePostRequestBatch
|
|
411
|
-
from pingram.models.template_post_request_instant import TemplatePostRequestInstant as TemplatePostRequestInstant
|
|
412
404
|
from pingram.models.update_address_request import UpdateAddressRequest as UpdateAddressRequest
|
|
413
405
|
from pingram.models.user import User as User
|
|
414
406
|
from pingram.models.user_suppression_delete_response import UserSuppressionDeleteResponse as UserSuppressionDeleteResponse
|
|
@@ -1832,7 +1832,7 @@ class TemplatesApi:
|
|
|
1832
1832
|
|
|
1833
1833
|
return self.api_client.param_serialize(
|
|
1834
1834
|
method='PATCH',
|
|
1835
|
-
resource_path='/notifications/{notificationId}/{channel}/templates/default',
|
|
1835
|
+
resource_path='/notifications/{notificationId}/{channel}/templates/default-selection',
|
|
1836
1836
|
path_params=_path_params,
|
|
1837
1837
|
query_params=_query_params,
|
|
1838
1838
|
header_params=_header_params,
|
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'pingram-python/0.
|
|
94
|
+
self.user_agent = 'pingram-python/1.0.0'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
async def __aenter__(self):
|
|
@@ -551,7 +551,7 @@ conf = pingram.Configuration(
|
|
|
551
551
|
"OS: {env}\n"\
|
|
552
552
|
"Python Version: {pyversion}\n"\
|
|
553
553
|
"Version of the API: 1.0.0\n"\
|
|
554
|
-
"SDK Package Version: 0.
|
|
554
|
+
"SDK Package Version: 1.0.0".\
|
|
555
555
|
format(env=sys.platform, pyversion=sys.version)
|
|
556
556
|
|
|
557
557
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -170,13 +170,9 @@ from pingram.models.supabase_projects_response_projects_inner import SupabasePro
|
|
|
170
170
|
from pingram.models.supabase_status_response import SupabaseStatusResponse
|
|
171
171
|
from pingram.models.template import Template
|
|
172
172
|
from pingram.models.template_patch_request import TemplatePatchRequest
|
|
173
|
-
from pingram.models.
|
|
174
|
-
from pingram.models.
|
|
175
|
-
from pingram.models.template_patch_request_any_of1_batch import TemplatePatchRequestAnyOf1Batch
|
|
176
|
-
from pingram.models.template_patch_request_any_of1_instant import TemplatePatchRequestAnyOf1Instant
|
|
173
|
+
from pingram.models.template_patch_request_batch import TemplatePatchRequestBatch
|
|
174
|
+
from pingram.models.template_patch_request_instant import TemplatePatchRequestInstant
|
|
177
175
|
from pingram.models.template_post_request import TemplatePostRequest
|
|
178
|
-
from pingram.models.template_post_request_batch import TemplatePostRequestBatch
|
|
179
|
-
from pingram.models.template_post_request_instant import TemplatePostRequestInstant
|
|
180
176
|
from pingram.models.update_address_request import UpdateAddressRequest
|
|
181
177
|
from pingram.models.user import User
|
|
182
178
|
from pingram.models.user_suppression_delete_response import UserSuppressionDeleteResponse
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pingram
|
|
5
|
+
|
|
6
|
+
Internal API for notification delivery and management
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from pingram.models.template_patch_request_batch import TemplatePatchRequestBatch
|
|
23
|
+
from pingram.models.template_patch_request_instant import TemplatePatchRequestInstant
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class TemplatePatchRequest(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Request body for updating a template. Include only properties that apply to the channel in the path. EMAIL: html, subject, senderName, etc. | INAPP_WEB: title, redirectURL, instant, batch | SMS/CALL: text | PUSH/WEB_PUSH: title, message, icon, url | SLACK: text, blocks, username, icon
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
html: Optional[StrictStr] = Field(default=None, description="HTML body of the email.")
|
|
32
|
+
preview_text: Optional[StrictStr] = Field(default=None, description="Preview text (e.g. for inbox).", alias="previewText")
|
|
33
|
+
internal: Optional[StrictStr] = Field(default=None, description="Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.")
|
|
34
|
+
subject: Optional[StrictStr] = Field(default=None, description="Email subject line.")
|
|
35
|
+
sender_name: Optional[StrictStr] = Field(default=None, description="Sender display name.", alias="senderName")
|
|
36
|
+
sender_email: Optional[StrictStr] = Field(default=None, description="Sender email address.", alias="senderEmail")
|
|
37
|
+
migration: Optional[StrictStr] = Field(default=None, description="Migration metadata (e.g. from template migration).")
|
|
38
|
+
title: Optional[StrictStr] = Field(default=None, description="Notification title (in-app).")
|
|
39
|
+
redirect_url: Optional[StrictStr] = Field(default=None, description="URL to open when the user taps the notification.", alias="redirectURL")
|
|
40
|
+
image_url: Optional[StrictStr] = Field(default=None, description="Image URL shown in the in-app notification.", alias="imageURL")
|
|
41
|
+
instant: Optional[TemplatePatchRequestInstant] = None
|
|
42
|
+
batch: Optional[TemplatePatchRequestBatch] = None
|
|
43
|
+
text: Optional[StrictStr] = Field(default=None, description="Message text (SMS or call).")
|
|
44
|
+
message: Optional[StrictStr] = Field(default=None, description="Push notification body text. (title is shared with INAPP_WEB above.)")
|
|
45
|
+
icon: Optional[StrictStr] = Field(default=None, description="Web push: icon URL. Slack: bot icon (emoji or URL).")
|
|
46
|
+
url: Optional[StrictStr] = Field(default=None, description="Web push: URL to open when the notification is clicked.")
|
|
47
|
+
blocks: Optional[List[Dict[str, Any]]] = Field(default=None, description="Slack message blocks (optional).")
|
|
48
|
+
username: Optional[StrictStr] = Field(default=None, description="Slack bot username.")
|
|
49
|
+
__properties: ClassVar[List[str]] = ["html", "previewText", "internal", "subject", "senderName", "senderEmail", "migration", "title", "redirectURL", "imageURL", "instant", "batch", "text", "message", "icon", "url", "blocks", "username"]
|
|
50
|
+
|
|
51
|
+
model_config = ConfigDict(
|
|
52
|
+
populate_by_name=True,
|
|
53
|
+
validate_assignment=True,
|
|
54
|
+
protected_namespaces=(),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def to_str(self) -> str:
|
|
59
|
+
"""Returns the string representation of the model using alias"""
|
|
60
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
61
|
+
|
|
62
|
+
def to_json(self) -> str:
|
|
63
|
+
"""Returns the JSON representation of the model using alias"""
|
|
64
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
65
|
+
return json.dumps(self.to_dict())
|
|
66
|
+
|
|
67
|
+
@classmethod
|
|
68
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
69
|
+
"""Create an instance of TemplatePatchRequest from a JSON string"""
|
|
70
|
+
return cls.from_dict(json.loads(json_str))
|
|
71
|
+
|
|
72
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
73
|
+
"""Return the dictionary representation of the model using alias.
|
|
74
|
+
|
|
75
|
+
This has the following differences from calling pydantic's
|
|
76
|
+
`self.model_dump(by_alias=True)`:
|
|
77
|
+
|
|
78
|
+
* `None` is only added to the output dict for nullable fields that
|
|
79
|
+
were set at model initialization. Other fields with value `None`
|
|
80
|
+
are ignored.
|
|
81
|
+
"""
|
|
82
|
+
excluded_fields: Set[str] = set([
|
|
83
|
+
])
|
|
84
|
+
|
|
85
|
+
_dict = self.model_dump(
|
|
86
|
+
by_alias=True,
|
|
87
|
+
exclude=excluded_fields,
|
|
88
|
+
exclude_none=True,
|
|
89
|
+
)
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of instant
|
|
91
|
+
if self.instant:
|
|
92
|
+
_dict['instant'] = self.instant.to_dict()
|
|
93
|
+
# override the default output from pydantic by calling `to_dict()` of batch
|
|
94
|
+
if self.batch:
|
|
95
|
+
_dict['batch'] = self.batch.to_dict()
|
|
96
|
+
return _dict
|
|
97
|
+
|
|
98
|
+
@classmethod
|
|
99
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
100
|
+
"""Create an instance of TemplatePatchRequest from a dict"""
|
|
101
|
+
if obj is None:
|
|
102
|
+
return None
|
|
103
|
+
|
|
104
|
+
if not isinstance(obj, dict):
|
|
105
|
+
return cls.model_validate(obj)
|
|
106
|
+
|
|
107
|
+
_obj = cls.model_validate({
|
|
108
|
+
"html": obj.get("html"),
|
|
109
|
+
"previewText": obj.get("previewText"),
|
|
110
|
+
"internal": obj.get("internal"),
|
|
111
|
+
"subject": obj.get("subject"),
|
|
112
|
+
"senderName": obj.get("senderName"),
|
|
113
|
+
"senderEmail": obj.get("senderEmail"),
|
|
114
|
+
"migration": obj.get("migration"),
|
|
115
|
+
"title": obj.get("title"),
|
|
116
|
+
"redirectURL": obj.get("redirectURL"),
|
|
117
|
+
"imageURL": obj.get("imageURL"),
|
|
118
|
+
"instant": TemplatePatchRequestInstant.from_dict(obj["instant"]) if obj.get("instant") is not None else None,
|
|
119
|
+
"batch": TemplatePatchRequestBatch.from_dict(obj["batch"]) if obj.get("batch") is not None else None,
|
|
120
|
+
"text": obj.get("text"),
|
|
121
|
+
"message": obj.get("message"),
|
|
122
|
+
"icon": obj.get("icon"),
|
|
123
|
+
"url": obj.get("url"),
|
|
124
|
+
"blocks": obj.get("blocks"),
|
|
125
|
+
"username": obj.get("username")
|
|
126
|
+
})
|
|
127
|
+
return _obj
|
|
128
|
+
|
|
129
|
+
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class TemplatePatchRequestBatch(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
Copy for batch delivery.
|
|
28
28
|
""" # noqa: E501
|
|
@@ -49,7 +49,7 @@ class TemplatePostRequestBatch(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
52
|
+
"""Create an instance of TemplatePatchRequestBatch from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -74,7 +74,7 @@ class TemplatePostRequestBatch(BaseModel):
|
|
|
74
74
|
|
|
75
75
|
@classmethod
|
|
76
76
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of
|
|
77
|
+
"""Create an instance of TemplatePatchRequestBatch from a dict"""
|
|
78
78
|
if obj is None:
|
|
79
79
|
return None
|
|
80
80
|
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class TemplatePatchRequestInstant(BaseModel):
|
|
26
26
|
"""
|
|
27
27
|
Copy for instant (real-time) delivery.
|
|
28
28
|
""" # noqa: E501
|
|
@@ -49,7 +49,7 @@ class TemplatePostRequestInstant(BaseModel):
|
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
52
|
+
"""Create an instance of TemplatePatchRequestInstant from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -74,7 +74,7 @@ class TemplatePostRequestInstant(BaseModel):
|
|
|
74
74
|
|
|
75
75
|
@classmethod
|
|
76
76
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of
|
|
77
|
+
"""Create an instance of TemplatePatchRequestInstant from a dict"""
|
|
78
78
|
if obj is None:
|
|
79
79
|
return None
|
|
80
80
|
|
{pingram_python-0.1.5 → pingram_python-1.0.0}/generated/pingram/models/template_post_request.py
RENAMED
|
@@ -19,8 +19,8 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from pingram.models.
|
|
23
|
-
from pingram.models.
|
|
22
|
+
from pingram.models.template_patch_request_batch import TemplatePatchRequestBatch
|
|
23
|
+
from pingram.models.template_patch_request_instant import TemplatePatchRequestInstant
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
@@ -39,8 +39,8 @@ class TemplatePostRequest(BaseModel):
|
|
|
39
39
|
title: Optional[StrictStr] = Field(default=None, description="Notification title (in-app).")
|
|
40
40
|
redirect_url: Optional[StrictStr] = Field(default=None, description="URL to open when the user taps the notification.", alias="redirectURL")
|
|
41
41
|
image_url: Optional[StrictStr] = Field(default=None, description="Image URL shown in the in-app notification.", alias="imageURL")
|
|
42
|
-
instant: Optional[
|
|
43
|
-
batch: Optional[
|
|
42
|
+
instant: Optional[TemplatePatchRequestInstant] = None
|
|
43
|
+
batch: Optional[TemplatePatchRequestBatch] = None
|
|
44
44
|
text: Optional[StrictStr] = Field(default=None, description="Message text (SMS or call).")
|
|
45
45
|
message: Optional[StrictStr] = Field(default=None, description="Push notification body text. (title is shared with INAPP_WEB above.)")
|
|
46
46
|
icon: Optional[StrictStr] = Field(default=None, description="Web push: icon URL. Slack: bot icon (emoji or URL).")
|
|
@@ -117,8 +117,8 @@ class TemplatePostRequest(BaseModel):
|
|
|
117
117
|
"title": obj.get("title"),
|
|
118
118
|
"redirectURL": obj.get("redirectURL"),
|
|
119
119
|
"imageURL": obj.get("imageURL"),
|
|
120
|
-
"instant":
|
|
121
|
-
"batch":
|
|
120
|
+
"instant": TemplatePatchRequestInstant.from_dict(obj["instant"]) if obj.get("instant") is not None else None,
|
|
121
|
+
"batch": TemplatePatchRequestBatch.from_dict(obj["batch"]) if obj.get("batch") is not None else None,
|
|
122
122
|
"text": obj.get("text"),
|
|
123
123
|
"message": obj.get("message"),
|
|
124
124
|
"icon": obj.get("icon"),
|
|
@@ -186,13 +186,9 @@ generated/pingram/models/supabase_projects_response_projects_inner.py
|
|
|
186
186
|
generated/pingram/models/supabase_status_response.py
|
|
187
187
|
generated/pingram/models/template.py
|
|
188
188
|
generated/pingram/models/template_patch_request.py
|
|
189
|
-
generated/pingram/models/
|
|
190
|
-
generated/pingram/models/
|
|
191
|
-
generated/pingram/models/template_patch_request_any_of1_batch.py
|
|
192
|
-
generated/pingram/models/template_patch_request_any_of1_instant.py
|
|
189
|
+
generated/pingram/models/template_patch_request_batch.py
|
|
190
|
+
generated/pingram/models/template_patch_request_instant.py
|
|
193
191
|
generated/pingram/models/template_post_request.py
|
|
194
|
-
generated/pingram/models/template_post_request_batch.py
|
|
195
|
-
generated/pingram/models/template_post_request_instant.py
|
|
196
192
|
generated/pingram/models/update_address_request.py
|
|
197
193
|
generated/pingram/models/user.py
|
|
198
194
|
generated/pingram/models/user_suppression_delete_response.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pingram-python"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "1.0.0"
|
|
8
8
|
description = "Official Python SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pingram
|
|
5
|
-
|
|
6
|
-
Internal API for notification delivery and management
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
from inspect import getfullargspec
|
|
17
|
-
import json
|
|
18
|
-
import pprint
|
|
19
|
-
import re # noqa: F401
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
|
21
|
-
from typing import Optional
|
|
22
|
-
from pingram.models.template_patch_request_any_of import TemplatePatchRequestAnyOf
|
|
23
|
-
from pingram.models.template_patch_request_any_of1 import TemplatePatchRequestAnyOf1
|
|
24
|
-
from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
|
|
25
|
-
from typing_extensions import Literal, Self
|
|
26
|
-
from pydantic import Field
|
|
27
|
-
|
|
28
|
-
TEMPLATEPATCHREQUEST_ANY_OF_SCHEMAS = ["TemplatePatchRequestAnyOf", "TemplatePatchRequestAnyOf1"]
|
|
29
|
-
|
|
30
|
-
class TemplatePatchRequest(BaseModel):
|
|
31
|
-
"""
|
|
32
|
-
Request body for updating a template. Use EMAIL fields (html, subject, senderName, etc.) when channel is EMAIL. Use INAPP_WEB fields (title, redirectURL, imageURL, instant, batch) when channel is INAPP_WEB. Other channels have their own shapes; only include properties that apply to the channel.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
# data type: TemplatePatchRequestAnyOf
|
|
36
|
-
anyof_schema_1_validator: Optional[TemplatePatchRequestAnyOf] = None
|
|
37
|
-
# data type: TemplatePatchRequestAnyOf1
|
|
38
|
-
anyof_schema_2_validator: Optional[TemplatePatchRequestAnyOf1] = None
|
|
39
|
-
if TYPE_CHECKING:
|
|
40
|
-
actual_instance: Optional[Union[TemplatePatchRequestAnyOf, TemplatePatchRequestAnyOf1]] = None
|
|
41
|
-
else:
|
|
42
|
-
actual_instance: Any = None
|
|
43
|
-
any_of_schemas: Set[str] = { "TemplatePatchRequestAnyOf", "TemplatePatchRequestAnyOf1" }
|
|
44
|
-
|
|
45
|
-
model_config = {
|
|
46
|
-
"validate_assignment": True,
|
|
47
|
-
"protected_namespaces": (),
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
def __init__(self, *args, **kwargs) -> None:
|
|
51
|
-
if args:
|
|
52
|
-
if len(args) > 1:
|
|
53
|
-
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
54
|
-
if kwargs:
|
|
55
|
-
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
56
|
-
super().__init__(actual_instance=args[0])
|
|
57
|
-
else:
|
|
58
|
-
super().__init__(**kwargs)
|
|
59
|
-
|
|
60
|
-
@field_validator('actual_instance')
|
|
61
|
-
def actual_instance_must_validate_anyof(cls, v):
|
|
62
|
-
instance = TemplatePatchRequest.model_construct()
|
|
63
|
-
error_messages = []
|
|
64
|
-
# validate data type: TemplatePatchRequestAnyOf
|
|
65
|
-
if not isinstance(v, TemplatePatchRequestAnyOf):
|
|
66
|
-
error_messages.append(f"Error! Input type `{type(v)}` is not `TemplatePatchRequestAnyOf`")
|
|
67
|
-
else:
|
|
68
|
-
return v
|
|
69
|
-
|
|
70
|
-
# validate data type: TemplatePatchRequestAnyOf1
|
|
71
|
-
if not isinstance(v, TemplatePatchRequestAnyOf1):
|
|
72
|
-
error_messages.append(f"Error! Input type `{type(v)}` is not `TemplatePatchRequestAnyOf1`")
|
|
73
|
-
else:
|
|
74
|
-
return v
|
|
75
|
-
|
|
76
|
-
if error_messages:
|
|
77
|
-
# no match
|
|
78
|
-
raise ValueError("No match found when setting the actual_instance in TemplatePatchRequest with anyOf schemas: TemplatePatchRequestAnyOf, TemplatePatchRequestAnyOf1. Details: " + ", ".join(error_messages))
|
|
79
|
-
else:
|
|
80
|
-
return v
|
|
81
|
-
|
|
82
|
-
@classmethod
|
|
83
|
-
def from_dict(cls, obj: Dict[str, Any]) -> Self:
|
|
84
|
-
return cls.from_json(json.dumps(obj))
|
|
85
|
-
|
|
86
|
-
@classmethod
|
|
87
|
-
def from_json(cls, json_str: str) -> Self:
|
|
88
|
-
"""Returns the object represented by the json string"""
|
|
89
|
-
instance = cls.model_construct()
|
|
90
|
-
error_messages = []
|
|
91
|
-
# anyof_schema_1_validator: Optional[TemplatePatchRequestAnyOf] = None
|
|
92
|
-
try:
|
|
93
|
-
instance.actual_instance = TemplatePatchRequestAnyOf.from_json(json_str)
|
|
94
|
-
return instance
|
|
95
|
-
except (ValidationError, ValueError) as e:
|
|
96
|
-
error_messages.append(str(e))
|
|
97
|
-
# anyof_schema_2_validator: Optional[TemplatePatchRequestAnyOf1] = None
|
|
98
|
-
try:
|
|
99
|
-
instance.actual_instance = TemplatePatchRequestAnyOf1.from_json(json_str)
|
|
100
|
-
return instance
|
|
101
|
-
except (ValidationError, ValueError) as e:
|
|
102
|
-
error_messages.append(str(e))
|
|
103
|
-
|
|
104
|
-
if error_messages:
|
|
105
|
-
# no match
|
|
106
|
-
raise ValueError("No match found when deserializing the JSON string into TemplatePatchRequest with anyOf schemas: TemplatePatchRequestAnyOf, TemplatePatchRequestAnyOf1. Details: " + ", ".join(error_messages))
|
|
107
|
-
else:
|
|
108
|
-
return instance
|
|
109
|
-
|
|
110
|
-
def to_json(self) -> str:
|
|
111
|
-
"""Returns the JSON representation of the actual instance"""
|
|
112
|
-
if self.actual_instance is None:
|
|
113
|
-
return "null"
|
|
114
|
-
|
|
115
|
-
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
116
|
-
return self.actual_instance.to_json()
|
|
117
|
-
else:
|
|
118
|
-
return json.dumps(self.actual_instance)
|
|
119
|
-
|
|
120
|
-
def to_dict(self) -> Optional[Union[Dict[str, Any], TemplatePatchRequestAnyOf, TemplatePatchRequestAnyOf1]]:
|
|
121
|
-
"""Returns the dict representation of the actual instance"""
|
|
122
|
-
if self.actual_instance is None:
|
|
123
|
-
return None
|
|
124
|
-
|
|
125
|
-
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
126
|
-
return self.actual_instance.to_dict()
|
|
127
|
-
else:
|
|
128
|
-
return self.actual_instance
|
|
129
|
-
|
|
130
|
-
def to_str(self) -> str:
|
|
131
|
-
"""Returns the string representation of the actual instance"""
|
|
132
|
-
return pprint.pformat(self.model_dump())
|
|
133
|
-
|
|
134
|
-
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pingram
|
|
5
|
-
|
|
6
|
-
Internal API for notification delivery and management
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class TemplatePatchRequestAnyOf(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
Properties for updating an EMAIL channel template. All fields are optional; only provided fields are updated.
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
html: Optional[StrictStr] = Field(default=None, description="HTML body of the email.")
|
|
30
|
-
internal: Optional[StrictStr] = Field(default=None, description="Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.")
|
|
31
|
-
subject: Optional[StrictStr] = Field(default=None, description="Email subject line.")
|
|
32
|
-
sender_name: Optional[StrictStr] = Field(default=None, description="Sender display name.", alias="senderName")
|
|
33
|
-
sender_email: Optional[StrictStr] = Field(default=None, description="Sender email address.", alias="senderEmail")
|
|
34
|
-
migration: Optional[StrictStr] = Field(default=None, description="Migration metadata (e.g. from template migration).")
|
|
35
|
-
__properties: ClassVar[List[str]] = ["html", "internal", "subject", "senderName", "senderEmail", "migration"]
|
|
36
|
-
|
|
37
|
-
model_config = ConfigDict(
|
|
38
|
-
populate_by_name=True,
|
|
39
|
-
validate_assignment=True,
|
|
40
|
-
protected_namespaces=(),
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
def to_str(self) -> str:
|
|
45
|
-
"""Returns the string representation of the model using alias"""
|
|
46
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
-
|
|
48
|
-
def to_json(self) -> str:
|
|
49
|
-
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
52
|
-
|
|
53
|
-
@classmethod
|
|
54
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of TemplatePatchRequestAnyOf from a JSON string"""
|
|
56
|
-
return cls.from_dict(json.loads(json_str))
|
|
57
|
-
|
|
58
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
-
"""Return the dictionary representation of the model using alias.
|
|
60
|
-
|
|
61
|
-
This has the following differences from calling pydantic's
|
|
62
|
-
`self.model_dump(by_alias=True)`:
|
|
63
|
-
|
|
64
|
-
* `None` is only added to the output dict for nullable fields that
|
|
65
|
-
were set at model initialization. Other fields with value `None`
|
|
66
|
-
are ignored.
|
|
67
|
-
"""
|
|
68
|
-
excluded_fields: Set[str] = set([
|
|
69
|
-
])
|
|
70
|
-
|
|
71
|
-
_dict = self.model_dump(
|
|
72
|
-
by_alias=True,
|
|
73
|
-
exclude=excluded_fields,
|
|
74
|
-
exclude_none=True,
|
|
75
|
-
)
|
|
76
|
-
return _dict
|
|
77
|
-
|
|
78
|
-
@classmethod
|
|
79
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
-
"""Create an instance of TemplatePatchRequestAnyOf from a dict"""
|
|
81
|
-
if obj is None:
|
|
82
|
-
return None
|
|
83
|
-
|
|
84
|
-
if not isinstance(obj, dict):
|
|
85
|
-
return cls.model_validate(obj)
|
|
86
|
-
|
|
87
|
-
_obj = cls.model_validate({
|
|
88
|
-
"html": obj.get("html"),
|
|
89
|
-
"internal": obj.get("internal"),
|
|
90
|
-
"subject": obj.get("subject"),
|
|
91
|
-
"senderName": obj.get("senderName"),
|
|
92
|
-
"senderEmail": obj.get("senderEmail"),
|
|
93
|
-
"migration": obj.get("migration")
|
|
94
|
-
})
|
|
95
|
-
return _obj
|
|
96
|
-
|
|
97
|
-
|