pipedream 2.2.0__tar.gz → 2.3.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.
- {pipedream-2.2.0 → pipedream-2.3.0}/PKG-INFO +1 -1
- {pipedream-2.2.0 → pipedream-2.3.0}/pyproject.toml +1 -1
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/client_wrapper.py +2 -2
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/deployed_triggers/client.py +104 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/deployed_triggers/raw_client.py +132 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/errors/__init__.py +3 -1
- pipedream-2.3.0/src/pipedream/errors/unauthorized_error.py +11 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_apps/client.py +16 -20
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_apps/raw_client.py +16 -16
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_tokens/raw_client.py +47 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/__init__.py +18 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app.py +5 -0
- pipedream-2.3.0/src/pipedream/types/bad_request_error_body.py +19 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/oauth_app.py +10 -5
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/trigger_webhook.py +6 -0
- pipedream-2.3.0/src/pipedream/types/trigger_webhook_delivery_backend.py +5 -0
- pipedream-2.3.0/src/pipedream/types/unauthorized_error_body.py +19 -0
- pipedream-2.3.0/src/pipedream/types/webhook_delivery_state.py +32 -0
- pipedream-2.3.0/src/pipedream/types/webhook_delivery_state_state.py +5 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/webhook_with_signing_key.py +5 -0
- pipedream-2.3.0/src/pipedream/types/webhook_with_signing_key_delivery_backend.py +5 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/LICENSE +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/README.md +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/_default_clients.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/accounts/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/accounts/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/accounts/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/actions/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/actions/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/actions/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/actions/types/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/actions/types/actions_list_request_registry.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_categories/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_categories/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_categories/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_overrides/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_overrides/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/app_overrides/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/types/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/types/apps_list_request_sort_direction.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/apps/types/apps_list_request_sort_key.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/components/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/components/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/components/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/components/types/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/components/types/components_list_request_registry.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/api_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/datetime_utils.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/file.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/force_multipart.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_sse/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_sse/_api.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_sse/_decoders.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_sse/_exceptions.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/http_sse/_models.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/jsonable_encoder.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/logging.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/oauth_token_provider.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/pagination.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/parse_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/pydantic_utilities.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/query_encoder.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/remove_none_from_dict.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/request_options.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/core/serialization.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/deployed_triggers/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/environment.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/errors/bad_request_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/errors/not_found_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/errors/too_many_requests_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/file_stash/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/file_stash/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/file_stash/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_apps/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_tokens/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/oauth_tokens/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/pipedream.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/private_key_jwt.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/project_environment/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/project_environment/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/project_environment/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/projects/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/projects/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/projects/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/proxy/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/proxy/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/proxy/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/py.typed +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/tokens/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/tokens/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/tokens/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/triggers/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/triggers/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/triggers/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/triggers/types/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/triggers/types/triggers_list_request_registry.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/account.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/account_credentials.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/account_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app_auth_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app_category.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app_override.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app_scope_profiles_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/app_scope_profiles_item_name.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/backend_client_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/client_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/component.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/component_stash.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/component_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_airtable_base_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_airtable_field_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_airtable_table_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_airtable_view_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_alert.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_alert_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_any.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_any_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_app.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_apphook.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_base.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_base_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_boolean.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_boolean_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_data_store.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_db.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_dir.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_dir_access_mode.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_discord_channel.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_discord_channel_array.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_http.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_http_request.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_integer.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_integer_array.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_integer_array_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_integer_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_object.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_object_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_sql.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_sql_auth.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_sql_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_string.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_string_array.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_string_array_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_string_format.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_string_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_timer.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_timer_default.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_timer_option.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configurable_prop_timer_static.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configure_prop_options.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configure_prop_options_item.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configure_prop_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configure_prop_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_any.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_app.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_boolean.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_integer.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_object.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_sql.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_string.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_prop_value_string_array.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/configured_props.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/connect_token.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/connect_usage.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/connect_usage_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/create_o_auth_token_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/create_token_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/delete_trigger_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/deploy_trigger_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/deployed_component.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/dynamic_props.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/emitted_event.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/emitter.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/emitter_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/error_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/external_user.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_accounts_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_app_category_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_app_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_apps_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_component_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_components_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_trigger_events_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_trigger_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_trigger_webhooks_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_trigger_workflows_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_triggers_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_users_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_webhook_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/get_webhook_with_signing_key_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_interface.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_auth.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_auth_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_body.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_body_mode.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_body_type.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_config.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/http_request_field.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_accounts_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_app_categories_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_app_overrides_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_apps_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_oauth_apps_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/list_projects_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/observation.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/observation_error.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/page_info.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/project.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/project_environment.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/project_info_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/project_info_response_app.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/prop_option.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/prop_option_nested.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/prop_option_value.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/proxy_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/proxy_response_binary.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/reload_props_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/reload_props_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/run_action_opts_stash_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/run_action_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/set_webhook_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/start_connect_opts.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/stash_id.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/timer_cron.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/timer_interface.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/timer_interval.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/too_many_requests_error_body.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/tool_annotations.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/validate_token_response.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/webhook.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/types/webhook_with_optional_signing_key.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/usage/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/usage/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/usage/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/users/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/users/client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/users/raw_client.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/version.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/workflows/__init__.py +0 -0
- {pipedream-2.2.0 → pipedream-2.3.0}/src/pipedream/workflows/client.py +0 -0
|
@@ -34,12 +34,12 @@ class BaseClientWrapper:
|
|
|
34
34
|
import platform
|
|
35
35
|
|
|
36
36
|
headers: typing.Dict[str, str] = {
|
|
37
|
-
"User-Agent": "pipedream/2.
|
|
37
|
+
"User-Agent": "pipedream/2.3.0",
|
|
38
38
|
"X-Fern-Language": "Python",
|
|
39
39
|
"X-Fern-Runtime": f"python/{platform.python_version()}",
|
|
40
40
|
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
|
|
41
41
|
"X-Fern-SDK-Name": "pipedream",
|
|
42
|
-
"X-Fern-SDK-Version": "2.
|
|
42
|
+
"X-Fern-SDK-Version": "2.3.0",
|
|
43
43
|
**(self.get_custom_headers() or {}),
|
|
44
44
|
}
|
|
45
45
|
if self._project_environment is not None:
|
|
@@ -534,6 +534,54 @@ class DeployedTriggersClient:
|
|
|
534
534
|
)
|
|
535
535
|
return _response.data
|
|
536
536
|
|
|
537
|
+
def reset_webhook_delivery_state(
|
|
538
|
+
self,
|
|
539
|
+
trigger_id: str,
|
|
540
|
+
webhook_id: str,
|
|
541
|
+
*,
|
|
542
|
+
external_user_id: str,
|
|
543
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
544
|
+
) -> GetWebhookWithSigningKeyResponse:
|
|
545
|
+
"""
|
|
546
|
+
Reactivate a disabled webhook and clear its delivery failure evidence
|
|
547
|
+
|
|
548
|
+
Parameters
|
|
549
|
+
----------
|
|
550
|
+
trigger_id : str
|
|
551
|
+
|
|
552
|
+
webhook_id : str
|
|
553
|
+
|
|
554
|
+
external_user_id : str
|
|
555
|
+
The external user ID who owns the trigger
|
|
556
|
+
|
|
557
|
+
request_options : typing.Optional[RequestOptions]
|
|
558
|
+
Request-specific configuration.
|
|
559
|
+
|
|
560
|
+
Returns
|
|
561
|
+
-------
|
|
562
|
+
GetWebhookWithSigningKeyResponse
|
|
563
|
+
webhook delivery state reset
|
|
564
|
+
|
|
565
|
+
Examples
|
|
566
|
+
--------
|
|
567
|
+
from pipedream import Pipedream
|
|
568
|
+
|
|
569
|
+
client = Pipedream(
|
|
570
|
+
project_id="YOUR_PROJECT_ID",
|
|
571
|
+
client_id="YOUR_CLIENT_ID",
|
|
572
|
+
client_secret="YOUR_CLIENT_SECRET",
|
|
573
|
+
)
|
|
574
|
+
client.deployed_triggers.reset_webhook_delivery_state(
|
|
575
|
+
trigger_id="trigger_id",
|
|
576
|
+
webhook_id="webhook_id",
|
|
577
|
+
external_user_id="external_user_id",
|
|
578
|
+
)
|
|
579
|
+
"""
|
|
580
|
+
_response = self._raw_client.reset_webhook_delivery_state(
|
|
581
|
+
trigger_id, webhook_id, external_user_id=external_user_id, request_options=request_options
|
|
582
|
+
)
|
|
583
|
+
return _response.data
|
|
584
|
+
|
|
537
585
|
def regenerate_webhook_signing_key(
|
|
538
586
|
self,
|
|
539
587
|
trigger_id: str,
|
|
@@ -1179,6 +1227,62 @@ class AsyncDeployedTriggersClient:
|
|
|
1179
1227
|
)
|
|
1180
1228
|
return _response.data
|
|
1181
1229
|
|
|
1230
|
+
async def reset_webhook_delivery_state(
|
|
1231
|
+
self,
|
|
1232
|
+
trigger_id: str,
|
|
1233
|
+
webhook_id: str,
|
|
1234
|
+
*,
|
|
1235
|
+
external_user_id: str,
|
|
1236
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
1237
|
+
) -> GetWebhookWithSigningKeyResponse:
|
|
1238
|
+
"""
|
|
1239
|
+
Reactivate a disabled webhook and clear its delivery failure evidence
|
|
1240
|
+
|
|
1241
|
+
Parameters
|
|
1242
|
+
----------
|
|
1243
|
+
trigger_id : str
|
|
1244
|
+
|
|
1245
|
+
webhook_id : str
|
|
1246
|
+
|
|
1247
|
+
external_user_id : str
|
|
1248
|
+
The external user ID who owns the trigger
|
|
1249
|
+
|
|
1250
|
+
request_options : typing.Optional[RequestOptions]
|
|
1251
|
+
Request-specific configuration.
|
|
1252
|
+
|
|
1253
|
+
Returns
|
|
1254
|
+
-------
|
|
1255
|
+
GetWebhookWithSigningKeyResponse
|
|
1256
|
+
webhook delivery state reset
|
|
1257
|
+
|
|
1258
|
+
Examples
|
|
1259
|
+
--------
|
|
1260
|
+
import asyncio
|
|
1261
|
+
|
|
1262
|
+
from pipedream import AsyncPipedream
|
|
1263
|
+
|
|
1264
|
+
client = AsyncPipedream(
|
|
1265
|
+
project_id="YOUR_PROJECT_ID",
|
|
1266
|
+
client_id="YOUR_CLIENT_ID",
|
|
1267
|
+
client_secret="YOUR_CLIENT_SECRET",
|
|
1268
|
+
)
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
async def main() -> None:
|
|
1272
|
+
await client.deployed_triggers.reset_webhook_delivery_state(
|
|
1273
|
+
trigger_id="trigger_id",
|
|
1274
|
+
webhook_id="webhook_id",
|
|
1275
|
+
external_user_id="external_user_id",
|
|
1276
|
+
)
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
asyncio.run(main())
|
|
1280
|
+
"""
|
|
1281
|
+
_response = await self._raw_client.reset_webhook_delivery_state(
|
|
1282
|
+
trigger_id, webhook_id, external_user_id=external_user_id, request_options=request_options
|
|
1283
|
+
)
|
|
1284
|
+
return _response.data
|
|
1285
|
+
|
|
1182
1286
|
async def regenerate_webhook_signing_key(
|
|
1183
1287
|
self,
|
|
1184
1288
|
trigger_id: str,
|
|
@@ -739,6 +739,72 @@ class RawDeployedTriggersClient:
|
|
|
739
739
|
)
|
|
740
740
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
741
741
|
|
|
742
|
+
def reset_webhook_delivery_state(
|
|
743
|
+
self,
|
|
744
|
+
trigger_id: str,
|
|
745
|
+
webhook_id: str,
|
|
746
|
+
*,
|
|
747
|
+
external_user_id: str,
|
|
748
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
749
|
+
) -> HttpResponse[GetWebhookWithSigningKeyResponse]:
|
|
750
|
+
"""
|
|
751
|
+
Reactivate a disabled webhook and clear its delivery failure evidence
|
|
752
|
+
|
|
753
|
+
Parameters
|
|
754
|
+
----------
|
|
755
|
+
trigger_id : str
|
|
756
|
+
|
|
757
|
+
webhook_id : str
|
|
758
|
+
|
|
759
|
+
external_user_id : str
|
|
760
|
+
The external user ID who owns the trigger
|
|
761
|
+
|
|
762
|
+
request_options : typing.Optional[RequestOptions]
|
|
763
|
+
Request-specific configuration.
|
|
764
|
+
|
|
765
|
+
Returns
|
|
766
|
+
-------
|
|
767
|
+
HttpResponse[GetWebhookWithSigningKeyResponse]
|
|
768
|
+
webhook delivery state reset
|
|
769
|
+
"""
|
|
770
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
771
|
+
f"v1/connect/{encode_path_param(self._client_wrapper._project_id)}/deployed-triggers/{encode_path_param(trigger_id)}/webhooks/{encode_path_param(webhook_id)}/reset_delivery_state",
|
|
772
|
+
method="POST",
|
|
773
|
+
params={
|
|
774
|
+
"external_user_id": external_user_id,
|
|
775
|
+
},
|
|
776
|
+
request_options=request_options,
|
|
777
|
+
)
|
|
778
|
+
try:
|
|
779
|
+
if 200 <= _response.status_code < 300:
|
|
780
|
+
_data = typing.cast(
|
|
781
|
+
GetWebhookWithSigningKeyResponse,
|
|
782
|
+
parse_obj_as(
|
|
783
|
+
type_=GetWebhookWithSigningKeyResponse, # type: ignore
|
|
784
|
+
object_=_response.json(),
|
|
785
|
+
),
|
|
786
|
+
)
|
|
787
|
+
return HttpResponse(response=_response, data=_data)
|
|
788
|
+
if _response.status_code == 429:
|
|
789
|
+
raise TooManyRequestsError(
|
|
790
|
+
headers=dict(_response.headers),
|
|
791
|
+
body=typing.cast(
|
|
792
|
+
typing.Any,
|
|
793
|
+
parse_obj_as(
|
|
794
|
+
type_=typing.Any, # type: ignore
|
|
795
|
+
object_=_response.json(),
|
|
796
|
+
),
|
|
797
|
+
),
|
|
798
|
+
)
|
|
799
|
+
_response_json = _response.json()
|
|
800
|
+
except JSONDecodeError:
|
|
801
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
802
|
+
except ValidationError as e:
|
|
803
|
+
raise ParsingError(
|
|
804
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e
|
|
805
|
+
)
|
|
806
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
807
|
+
|
|
742
808
|
def regenerate_webhook_signing_key(
|
|
743
809
|
self,
|
|
744
810
|
trigger_id: str,
|
|
@@ -1519,6 +1585,72 @@ class AsyncRawDeployedTriggersClient:
|
|
|
1519
1585
|
)
|
|
1520
1586
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1521
1587
|
|
|
1588
|
+
async def reset_webhook_delivery_state(
|
|
1589
|
+
self,
|
|
1590
|
+
trigger_id: str,
|
|
1591
|
+
webhook_id: str,
|
|
1592
|
+
*,
|
|
1593
|
+
external_user_id: str,
|
|
1594
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
1595
|
+
) -> AsyncHttpResponse[GetWebhookWithSigningKeyResponse]:
|
|
1596
|
+
"""
|
|
1597
|
+
Reactivate a disabled webhook and clear its delivery failure evidence
|
|
1598
|
+
|
|
1599
|
+
Parameters
|
|
1600
|
+
----------
|
|
1601
|
+
trigger_id : str
|
|
1602
|
+
|
|
1603
|
+
webhook_id : str
|
|
1604
|
+
|
|
1605
|
+
external_user_id : str
|
|
1606
|
+
The external user ID who owns the trigger
|
|
1607
|
+
|
|
1608
|
+
request_options : typing.Optional[RequestOptions]
|
|
1609
|
+
Request-specific configuration.
|
|
1610
|
+
|
|
1611
|
+
Returns
|
|
1612
|
+
-------
|
|
1613
|
+
AsyncHttpResponse[GetWebhookWithSigningKeyResponse]
|
|
1614
|
+
webhook delivery state reset
|
|
1615
|
+
"""
|
|
1616
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
1617
|
+
f"v1/connect/{encode_path_param(self._client_wrapper._project_id)}/deployed-triggers/{encode_path_param(trigger_id)}/webhooks/{encode_path_param(webhook_id)}/reset_delivery_state",
|
|
1618
|
+
method="POST",
|
|
1619
|
+
params={
|
|
1620
|
+
"external_user_id": external_user_id,
|
|
1621
|
+
},
|
|
1622
|
+
request_options=request_options,
|
|
1623
|
+
)
|
|
1624
|
+
try:
|
|
1625
|
+
if 200 <= _response.status_code < 300:
|
|
1626
|
+
_data = typing.cast(
|
|
1627
|
+
GetWebhookWithSigningKeyResponse,
|
|
1628
|
+
parse_obj_as(
|
|
1629
|
+
type_=GetWebhookWithSigningKeyResponse, # type: ignore
|
|
1630
|
+
object_=_response.json(),
|
|
1631
|
+
),
|
|
1632
|
+
)
|
|
1633
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
1634
|
+
if _response.status_code == 429:
|
|
1635
|
+
raise TooManyRequestsError(
|
|
1636
|
+
headers=dict(_response.headers),
|
|
1637
|
+
body=typing.cast(
|
|
1638
|
+
typing.Any,
|
|
1639
|
+
parse_obj_as(
|
|
1640
|
+
type_=typing.Any, # type: ignore
|
|
1641
|
+
object_=_response.json(),
|
|
1642
|
+
),
|
|
1643
|
+
),
|
|
1644
|
+
)
|
|
1645
|
+
_response_json = _response.json()
|
|
1646
|
+
except JSONDecodeError:
|
|
1647
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1648
|
+
except ValidationError as e:
|
|
1649
|
+
raise ParsingError(
|
|
1650
|
+
status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e
|
|
1651
|
+
)
|
|
1652
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1653
|
+
|
|
1522
1654
|
async def regenerate_webhook_signing_key(
|
|
1523
1655
|
self,
|
|
1524
1656
|
trigger_id: str,
|
|
@@ -9,10 +9,12 @@ if typing.TYPE_CHECKING:
|
|
|
9
9
|
from .bad_request_error import BadRequestError
|
|
10
10
|
from .not_found_error import NotFoundError
|
|
11
11
|
from .too_many_requests_error import TooManyRequestsError
|
|
12
|
+
from .unauthorized_error import UnauthorizedError
|
|
12
13
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
13
14
|
"BadRequestError": ".bad_request_error",
|
|
14
15
|
"NotFoundError": ".not_found_error",
|
|
15
16
|
"TooManyRequestsError": ".too_many_requests_error",
|
|
17
|
+
"UnauthorizedError": ".unauthorized_error",
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
|
|
@@ -37,4 +39,4 @@ def __dir__():
|
|
|
37
39
|
return sorted(lazy_attrs)
|
|
38
40
|
|
|
39
41
|
|
|
40
|
-
__all__ = ["BadRequestError", "NotFoundError", "TooManyRequestsError"]
|
|
42
|
+
__all__ = ["BadRequestError", "NotFoundError", "TooManyRequestsError", "UnauthorizedError"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.api_error import ApiError
|
|
6
|
+
from ..types.unauthorized_error_body import UnauthorizedErrorBody
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class UnauthorizedError(ApiError):
|
|
10
|
+
def __init__(self, body: UnauthorizedErrorBody, headers: typing.Optional[typing.Dict[str, str]] = None):
|
|
11
|
+
super().__init__(status_code=401, headers=headers, body=body)
|
|
@@ -96,8 +96,8 @@ class OauthAppsClient:
|
|
|
96
96
|
self,
|
|
97
97
|
*,
|
|
98
98
|
app: str,
|
|
99
|
-
client_id: str,
|
|
100
|
-
client_secret: str,
|
|
99
|
+
client_id: typing.Optional[str] = OMIT,
|
|
100
|
+
client_secret: typing.Optional[str] = OMIT,
|
|
101
101
|
name: typing.Optional[str] = OMIT,
|
|
102
102
|
description: typing.Optional[str] = OMIT,
|
|
103
103
|
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -112,11 +112,11 @@ class OauthAppsClient:
|
|
|
112
112
|
app : str
|
|
113
113
|
The app's ID or name slug. The app must have custom OAuth clients enabled.
|
|
114
114
|
|
|
115
|
-
client_id : str
|
|
116
|
-
The OAuth client ID registered with the upstream provider
|
|
115
|
+
client_id : typing.Optional[str]
|
|
116
|
+
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.
|
|
117
117
|
|
|
118
|
-
client_secret : str
|
|
119
|
-
The OAuth client secret. Write-only; never returned in responses.
|
|
118
|
+
client_secret : typing.Optional[str]
|
|
119
|
+
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.
|
|
120
120
|
|
|
121
121
|
name : typing.Optional[str]
|
|
122
122
|
Display name of the OAuth client
|
|
@@ -149,8 +149,6 @@ class OauthAppsClient:
|
|
|
149
149
|
)
|
|
150
150
|
client.oauth_apps.create(
|
|
151
151
|
app="app",
|
|
152
|
-
client_id="client_id",
|
|
153
|
-
client_secret="client_secret",
|
|
154
152
|
)
|
|
155
153
|
"""
|
|
156
154
|
_response = self._raw_client.create(
|
|
@@ -167,7 +165,7 @@ class OauthAppsClient:
|
|
|
167
165
|
|
|
168
166
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> OauthApp:
|
|
169
167
|
"""
|
|
170
|
-
Get the configuration of a specific custom
|
|
168
|
+
Get the configuration of a specific OAuth client: one of your custom clients, or a Pipedream official client (see an app's `oauth_app_id`)
|
|
171
169
|
|
|
172
170
|
Parameters
|
|
173
171
|
----------
|
|
@@ -225,7 +223,7 @@ class OauthAppsClient:
|
|
|
225
223
|
Description of the OAuth client
|
|
226
224
|
|
|
227
225
|
client_id : typing.Optional[str]
|
|
228
|
-
The OAuth client ID registered with the upstream provider
|
|
226
|
+
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.
|
|
229
227
|
|
|
230
228
|
client_secret : typing.Optional[str]
|
|
231
229
|
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
|
|
@@ -394,8 +392,8 @@ class AsyncOauthAppsClient:
|
|
|
394
392
|
self,
|
|
395
393
|
*,
|
|
396
394
|
app: str,
|
|
397
|
-
client_id: str,
|
|
398
|
-
client_secret: str,
|
|
395
|
+
client_id: typing.Optional[str] = OMIT,
|
|
396
|
+
client_secret: typing.Optional[str] = OMIT,
|
|
399
397
|
name: typing.Optional[str] = OMIT,
|
|
400
398
|
description: typing.Optional[str] = OMIT,
|
|
401
399
|
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -410,11 +408,11 @@ class AsyncOauthAppsClient:
|
|
|
410
408
|
app : str
|
|
411
409
|
The app's ID or name slug. The app must have custom OAuth clients enabled.
|
|
412
410
|
|
|
413
|
-
client_id : str
|
|
414
|
-
The OAuth client ID registered with the upstream provider
|
|
411
|
+
client_id : typing.Optional[str]
|
|
412
|
+
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.
|
|
415
413
|
|
|
416
|
-
client_secret : str
|
|
417
|
-
The OAuth client secret. Write-only; never returned in responses.
|
|
414
|
+
client_secret : typing.Optional[str]
|
|
415
|
+
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.
|
|
418
416
|
|
|
419
417
|
name : typing.Optional[str]
|
|
420
418
|
Display name of the OAuth client
|
|
@@ -452,8 +450,6 @@ class AsyncOauthAppsClient:
|
|
|
452
450
|
async def main() -> None:
|
|
453
451
|
await client.oauth_apps.create(
|
|
454
452
|
app="app",
|
|
455
|
-
client_id="client_id",
|
|
456
|
-
client_secret="client_secret",
|
|
457
453
|
)
|
|
458
454
|
|
|
459
455
|
|
|
@@ -473,7 +469,7 @@ class AsyncOauthAppsClient:
|
|
|
473
469
|
|
|
474
470
|
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> OauthApp:
|
|
475
471
|
"""
|
|
476
|
-
Get the configuration of a specific custom
|
|
472
|
+
Get the configuration of a specific OAuth client: one of your custom clients, or a Pipedream official client (see an app's `oauth_app_id`)
|
|
477
473
|
|
|
478
474
|
Parameters
|
|
479
475
|
----------
|
|
@@ -539,7 +535,7 @@ class AsyncOauthAppsClient:
|
|
|
539
535
|
Description of the OAuth client
|
|
540
536
|
|
|
541
537
|
client_id : typing.Optional[str]
|
|
542
|
-
The OAuth client ID registered with the upstream provider
|
|
538
|
+
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.
|
|
543
539
|
|
|
544
540
|
client_secret : typing.Optional[str]
|
|
545
541
|
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
|
|
@@ -135,8 +135,8 @@ class RawOauthAppsClient:
|
|
|
135
135
|
self,
|
|
136
136
|
*,
|
|
137
137
|
app: str,
|
|
138
|
-
client_id: str,
|
|
139
|
-
client_secret: str,
|
|
138
|
+
client_id: typing.Optional[str] = OMIT,
|
|
139
|
+
client_secret: typing.Optional[str] = OMIT,
|
|
140
140
|
name: typing.Optional[str] = OMIT,
|
|
141
141
|
description: typing.Optional[str] = OMIT,
|
|
142
142
|
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -151,11 +151,11 @@ class RawOauthAppsClient:
|
|
|
151
151
|
app : str
|
|
152
152
|
The app's ID or name slug. The app must have custom OAuth clients enabled.
|
|
153
153
|
|
|
154
|
-
client_id : str
|
|
155
|
-
The OAuth client ID registered with the upstream provider
|
|
154
|
+
client_id : typing.Optional[str]
|
|
155
|
+
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.
|
|
156
156
|
|
|
157
|
-
client_secret : str
|
|
158
|
-
The OAuth client secret. Write-only; never returned in responses.
|
|
157
|
+
client_secret : typing.Optional[str]
|
|
158
|
+
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.
|
|
159
159
|
|
|
160
160
|
name : typing.Optional[str]
|
|
161
161
|
Display name of the OAuth client
|
|
@@ -238,7 +238,7 @@ class RawOauthAppsClient:
|
|
|
238
238
|
|
|
239
239
|
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[OauthApp]:
|
|
240
240
|
"""
|
|
241
|
-
Get the configuration of a specific custom
|
|
241
|
+
Get the configuration of a specific OAuth client: one of your custom clients, or a Pipedream official client (see an app's `oauth_app_id`)
|
|
242
242
|
|
|
243
243
|
Parameters
|
|
244
244
|
----------
|
|
@@ -315,7 +315,7 @@ class RawOauthAppsClient:
|
|
|
315
315
|
Description of the OAuth client
|
|
316
316
|
|
|
317
317
|
client_id : typing.Optional[str]
|
|
318
|
-
The OAuth client ID registered with the upstream provider
|
|
318
|
+
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.
|
|
319
319
|
|
|
320
320
|
client_secret : typing.Optional[str]
|
|
321
321
|
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
|
|
@@ -553,8 +553,8 @@ class AsyncRawOauthAppsClient:
|
|
|
553
553
|
self,
|
|
554
554
|
*,
|
|
555
555
|
app: str,
|
|
556
|
-
client_id: str,
|
|
557
|
-
client_secret: str,
|
|
556
|
+
client_id: typing.Optional[str] = OMIT,
|
|
557
|
+
client_secret: typing.Optional[str] = OMIT,
|
|
558
558
|
name: typing.Optional[str] = OMIT,
|
|
559
559
|
description: typing.Optional[str] = OMIT,
|
|
560
560
|
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -569,11 +569,11 @@ class AsyncRawOauthAppsClient:
|
|
|
569
569
|
app : str
|
|
570
570
|
The app's ID or name slug. The app must have custom OAuth clients enabled.
|
|
571
571
|
|
|
572
|
-
client_id : str
|
|
573
|
-
The OAuth client ID registered with the upstream provider
|
|
572
|
+
client_id : typing.Optional[str]
|
|
573
|
+
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.
|
|
574
574
|
|
|
575
|
-
client_secret : str
|
|
576
|
-
The OAuth client secret. Write-only; never returned in responses.
|
|
575
|
+
client_secret : typing.Optional[str]
|
|
576
|
+
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.
|
|
577
577
|
|
|
578
578
|
name : typing.Optional[str]
|
|
579
579
|
Display name of the OAuth client
|
|
@@ -658,7 +658,7 @@ class AsyncRawOauthAppsClient:
|
|
|
658
658
|
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
659
659
|
) -> AsyncHttpResponse[OauthApp]:
|
|
660
660
|
"""
|
|
661
|
-
Get the configuration of a specific custom
|
|
661
|
+
Get the configuration of a specific OAuth client: one of your custom clients, or a Pipedream official client (see an app's `oauth_app_id`)
|
|
662
662
|
|
|
663
663
|
Parameters
|
|
664
664
|
----------
|
|
@@ -735,7 +735,7 @@ class AsyncRawOauthAppsClient:
|
|
|
735
735
|
Description of the OAuth client
|
|
736
736
|
|
|
737
737
|
client_id : typing.Optional[str]
|
|
738
|
-
The OAuth client ID registered with the upstream provider
|
|
738
|
+
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.
|
|
739
739
|
|
|
740
740
|
client_secret : typing.Optional[str]
|
|
741
741
|
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
|
|
@@ -9,8 +9,11 @@ from ..core.http_response import AsyncHttpResponse, HttpResponse
|
|
|
9
9
|
from ..core.parse_error import ParsingError
|
|
10
10
|
from ..core.pydantic_utilities import parse_obj_as
|
|
11
11
|
from ..core.request_options import RequestOptions
|
|
12
|
+
from ..errors.bad_request_error import BadRequestError
|
|
12
13
|
from ..errors.too_many_requests_error import TooManyRequestsError
|
|
14
|
+
from ..errors.unauthorized_error import UnauthorizedError
|
|
13
15
|
from ..types.create_o_auth_token_response import CreateOAuthTokenResponse
|
|
16
|
+
from ..types.unauthorized_error_body import UnauthorizedErrorBody
|
|
14
17
|
from pydantic import ValidationError
|
|
15
18
|
|
|
16
19
|
# this is used as the default value for optional parameters
|
|
@@ -87,6 +90,28 @@ class RawOauthTokensClient:
|
|
|
87
90
|
),
|
|
88
91
|
)
|
|
89
92
|
return HttpResponse(response=_response, data=_data)
|
|
93
|
+
if _response.status_code == 400:
|
|
94
|
+
raise BadRequestError(
|
|
95
|
+
headers=dict(_response.headers),
|
|
96
|
+
body=typing.cast(
|
|
97
|
+
typing.Any,
|
|
98
|
+
parse_obj_as(
|
|
99
|
+
type_=typing.Any, # type: ignore
|
|
100
|
+
object_=_response.json(),
|
|
101
|
+
),
|
|
102
|
+
),
|
|
103
|
+
)
|
|
104
|
+
if _response.status_code == 401:
|
|
105
|
+
raise UnauthorizedError(
|
|
106
|
+
headers=dict(_response.headers),
|
|
107
|
+
body=typing.cast(
|
|
108
|
+
UnauthorizedErrorBody,
|
|
109
|
+
parse_obj_as(
|
|
110
|
+
type_=UnauthorizedErrorBody, # type: ignore
|
|
111
|
+
object_=_response.json(),
|
|
112
|
+
),
|
|
113
|
+
),
|
|
114
|
+
)
|
|
90
115
|
if _response.status_code == 429:
|
|
91
116
|
raise TooManyRequestsError(
|
|
92
117
|
headers=dict(_response.headers),
|
|
@@ -178,6 +203,28 @@ class AsyncRawOauthTokensClient:
|
|
|
178
203
|
),
|
|
179
204
|
)
|
|
180
205
|
return AsyncHttpResponse(response=_response, data=_data)
|
|
206
|
+
if _response.status_code == 400:
|
|
207
|
+
raise BadRequestError(
|
|
208
|
+
headers=dict(_response.headers),
|
|
209
|
+
body=typing.cast(
|
|
210
|
+
typing.Any,
|
|
211
|
+
parse_obj_as(
|
|
212
|
+
type_=typing.Any, # type: ignore
|
|
213
|
+
object_=_response.json(),
|
|
214
|
+
),
|
|
215
|
+
),
|
|
216
|
+
)
|
|
217
|
+
if _response.status_code == 401:
|
|
218
|
+
raise UnauthorizedError(
|
|
219
|
+
headers=dict(_response.headers),
|
|
220
|
+
body=typing.cast(
|
|
221
|
+
UnauthorizedErrorBody,
|
|
222
|
+
parse_obj_as(
|
|
223
|
+
type_=UnauthorizedErrorBody, # type: ignore
|
|
224
|
+
object_=_response.json(),
|
|
225
|
+
),
|
|
226
|
+
),
|
|
227
|
+
)
|
|
181
228
|
if _response.status_code == 429:
|
|
182
229
|
raise TooManyRequestsError(
|
|
183
230
|
headers=dict(_response.headers),
|
|
@@ -16,6 +16,7 @@ if typing.TYPE_CHECKING:
|
|
|
16
16
|
from .app_scope_profiles_item import AppScopeProfilesItem
|
|
17
17
|
from .app_scope_profiles_item_name import AppScopeProfilesItemName
|
|
18
18
|
from .backend_client_opts import BackendClientOpts
|
|
19
|
+
from .bad_request_error_body import BadRequestErrorBody
|
|
19
20
|
from .client_opts import ClientOpts
|
|
20
21
|
from .component import Component
|
|
21
22
|
from .component_stash import ComponentStash
|
|
@@ -143,10 +144,15 @@ if typing.TYPE_CHECKING:
|
|
|
143
144
|
from .too_many_requests_error_body import TooManyRequestsErrorBody
|
|
144
145
|
from .tool_annotations import ToolAnnotations
|
|
145
146
|
from .trigger_webhook import TriggerWebhook
|
|
147
|
+
from .trigger_webhook_delivery_backend import TriggerWebhookDeliveryBackend
|
|
148
|
+
from .unauthorized_error_body import UnauthorizedErrorBody
|
|
146
149
|
from .validate_token_response import ValidateTokenResponse
|
|
147
150
|
from .webhook import Webhook
|
|
151
|
+
from .webhook_delivery_state import WebhookDeliveryState
|
|
152
|
+
from .webhook_delivery_state_state import WebhookDeliveryStateState
|
|
148
153
|
from .webhook_with_optional_signing_key import WebhookWithOptionalSigningKey
|
|
149
154
|
from .webhook_with_signing_key import WebhookWithSigningKey
|
|
155
|
+
from .webhook_with_signing_key_delivery_backend import WebhookWithSigningKeyDeliveryBackend
|
|
150
156
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
151
157
|
"Account": ".account",
|
|
152
158
|
"AccountCredentials": ".account_credentials",
|
|
@@ -158,6 +164,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
158
164
|
"AppScopeProfilesItem": ".app_scope_profiles_item",
|
|
159
165
|
"AppScopeProfilesItemName": ".app_scope_profiles_item_name",
|
|
160
166
|
"BackendClientOpts": ".backend_client_opts",
|
|
167
|
+
"BadRequestErrorBody": ".bad_request_error_body",
|
|
161
168
|
"ClientOpts": ".client_opts",
|
|
162
169
|
"Component": ".component",
|
|
163
170
|
"ComponentStash": ".component_stash",
|
|
@@ -285,10 +292,15 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
285
292
|
"TooManyRequestsErrorBody": ".too_many_requests_error_body",
|
|
286
293
|
"ToolAnnotations": ".tool_annotations",
|
|
287
294
|
"TriggerWebhook": ".trigger_webhook",
|
|
295
|
+
"TriggerWebhookDeliveryBackend": ".trigger_webhook_delivery_backend",
|
|
296
|
+
"UnauthorizedErrorBody": ".unauthorized_error_body",
|
|
288
297
|
"ValidateTokenResponse": ".validate_token_response",
|
|
289
298
|
"Webhook": ".webhook",
|
|
299
|
+
"WebhookDeliveryState": ".webhook_delivery_state",
|
|
300
|
+
"WebhookDeliveryStateState": ".webhook_delivery_state_state",
|
|
290
301
|
"WebhookWithOptionalSigningKey": ".webhook_with_optional_signing_key",
|
|
291
302
|
"WebhookWithSigningKey": ".webhook_with_signing_key",
|
|
303
|
+
"WebhookWithSigningKeyDeliveryBackend": ".webhook_with_signing_key_delivery_backend",
|
|
292
304
|
}
|
|
293
305
|
|
|
294
306
|
|
|
@@ -324,6 +336,7 @@ __all__ = [
|
|
|
324
336
|
"AppScopeProfilesItem",
|
|
325
337
|
"AppScopeProfilesItemName",
|
|
326
338
|
"BackendClientOpts",
|
|
339
|
+
"BadRequestErrorBody",
|
|
327
340
|
"ClientOpts",
|
|
328
341
|
"Component",
|
|
329
342
|
"ComponentStash",
|
|
@@ -451,8 +464,13 @@ __all__ = [
|
|
|
451
464
|
"TooManyRequestsErrorBody",
|
|
452
465
|
"ToolAnnotations",
|
|
453
466
|
"TriggerWebhook",
|
|
467
|
+
"TriggerWebhookDeliveryBackend",
|
|
468
|
+
"UnauthorizedErrorBody",
|
|
454
469
|
"ValidateTokenResponse",
|
|
455
470
|
"Webhook",
|
|
471
|
+
"WebhookDeliveryState",
|
|
472
|
+
"WebhookDeliveryStateState",
|
|
456
473
|
"WebhookWithOptionalSigningKey",
|
|
457
474
|
"WebhookWithSigningKey",
|
|
475
|
+
"WebhookWithSigningKeyDeliveryBackend",
|
|
458
476
|
]
|
|
@@ -59,6 +59,11 @@ class App(UniversalBaseModel):
|
|
|
59
59
|
Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the `oauth_scope_profile` parameter). Empty for apps that don't define any.
|
|
60
60
|
"""
|
|
61
61
|
|
|
62
|
+
oauth_app_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
63
|
+
"""
|
|
64
|
+
ID of the app's Pipedream official OAuth client, or null if the app doesn't use OAuth or has no official client. Retrieve the client, including its scopes, with the Retrieve OAuth client endpoint. Returned by the List apps and Retrieve app endpoints.
|
|
65
|
+
"""
|
|
66
|
+
|
|
62
67
|
if IS_PYDANTIC_V2:
|
|
63
68
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
64
69
|
else:
|