diff --git a/.stats.yml b/.stats.yml index e6c6af12af3..13b71361d00 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1707 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3e03f71406670e2384aa5c3bf2bea707a896e4957b4ec5f9427182fbaa0f85b4.yml -openapi_spec_hash: 40d67d20dcbb7925f96d686d41ad2916 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-93f98a3beb10acb3b428aaf13ab29fd80c31373cad60635fab5c0d4bc13b1a62.yml +openapi_spec_hash: 45a8bb16d460539bc265dc9d89dd9914 config_hash: e30b863eac83985d5919f958f3cd8993 diff --git a/src/cloudflare/resources/abuse_reports.py b/src/cloudflare/resources/abuse_reports.py index 76ee29e3266..36df04172b5 100644 --- a/src/cloudflare/resources/abuse_reports.py +++ b/src/cloudflare/resources/abuse_reports.py @@ -64,16 +64,6 @@ def create( ], *, account_id: str, - address1: str, - agent_name: str, - agree: Literal[0, 1], - city: str, - country: str, - host_notification: Literal["send", "send-anon", "none"], - original_work: str, - owner_notification: Literal["send", "send-anon", "none"], - signature: str, - state: str, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -83,27 +73,36 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, + address1: str | NotGiven = NOT_GIVEN, + agent_name: str | NotGiven = NOT_GIVEN, + agree: Literal[0, 1] | NotGiven = NOT_GIVEN, + city: str | NotGiven = NOT_GIVEN, comments: str | NotGiven = NOT_GIVEN, company: str | NotGiven = NOT_GIVEN, + country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, + original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, + signature: str | NotGiven = NOT_GIVEN, source_ips: str | NotGiven = NOT_GIVEN, + state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -117,65 +116,63 @@ def create( Args: report_type: The abuse report type - address1: Text not exceeding 100 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - agent_name: The name of the copyright holder. Text not exceeding 60 characters. This field - may be released by Cloudflare to third parties such as the Lumen Database - (https://lumendatabase.org/). - - agree: Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports + act: The abuse report type - city: Text not exceeding 255 characters. This field may be released by Cloudflare to + email: A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - country: Text not exceeding 255 characters. This field may be released by Cloudflare to + email2: Should match the value provided in `email` + + name: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). - original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to + address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + agent_name: The name of the copyright holder. Text not exceeding 60 characters. This field + may be released by Cloudflare to third parties such as the Lumen Database + (https://lumendatabase.org/). - signature: Required for DMCA reports, should be same as Name. An affirmation that all - information in the report is true and accurate while agreeing to the policies of - Cloudflare's abuse reports + agree: Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports - state: Text not exceeding 255 characters. This field may be released by Cloudflare to + city: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type - comments: Any additional comments about the infringement not exceeding 2000 characters company: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + country: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + destination_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. justification: A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -185,10 +182,17 @@ def create( reported_user_agent: Text not exceeding 255 characters + signature: Required for DMCA reports, should be same as Name. An affirmation that all + information in the report is true and accurate while agreeing to the policies of + Cloudflare's abuse reports + source_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of source IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique + state: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + tele: Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -200,11 +204,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -230,12 +229,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], - trademark_number: str, - trademark_office: str, - trademark_symbol: str, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -245,8 +238,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -255,12 +251,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -269,7 +265,9 @@ def create( state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, + trademark_number: str | NotGiven = NOT_GIVEN, + trademark_office: str | NotGiven = NOT_GIVEN, + trademark_symbol: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -283,23 +281,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. - - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters - - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - trademark_number: Text not exceeding 1000 characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - trademark_office: Text not exceeding 1000 characters + email2: Should match the value provided in `email` - trademark_symbol: Text not exceeding 1000 characters + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -325,13 +320,12 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -341,6 +335,9 @@ def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -366,10 +363,11 @@ def create( title: Text not exceeding 255 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). + trademark_number: Text not exceeding 1000 characters + + trademark_office: Text not exceeding 1000 characters + + trademark_symbol: Text not exceeding 1000 characters extra_headers: Send extra headers @@ -396,9 +394,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -408,8 +403,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -418,12 +416,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -435,7 +433,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -449,17 +446,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -485,13 +485,12 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -501,6 +500,9 @@ def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -532,11 +534,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -562,9 +559,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -574,8 +568,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -584,12 +581,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -601,7 +598,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -615,17 +611,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -651,13 +650,12 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -667,6 +665,9 @@ def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -698,11 +699,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -728,10 +724,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - ncmec_notification: Literal["send", "send-anon", "none"], - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -741,8 +733,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -751,11 +746,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, + ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -767,7 +763,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -781,20 +776,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -820,19 +815,24 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - email2: Should match the value provided in `email` + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -864,11 +864,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -894,9 +889,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -906,8 +898,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -916,12 +911,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, + ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -933,7 +928,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -947,17 +941,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -983,13 +980,12 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -999,6 +995,9 @@ def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -1030,11 +1029,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1060,7 +1054,6 @@ def create( ], *, account_id: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1070,8 +1063,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -1080,14 +1076,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -1099,7 +1093,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1113,11 +1106,21 @@ def create( Args: report_type: The abuse report type - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. - act: The abuse report type + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + email2: Should match the value provided in `email` + + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). + address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -1142,11 +1145,6 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -1154,9 +1152,6 @@ def create( details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -1165,6 +1160,9 @@ def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -1196,11 +1194,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1226,9 +1219,6 @@ def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - ncsei_subject_representation: bool, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1238,8 +1228,11 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -1248,12 +1241,12 @@ def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -1265,7 +1258,6 @@ def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1279,15 +1271,20 @@ def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -1313,24 +1310,24 @@ def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. justification: A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -1362,11 +1359,6 @@ def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1377,34 +1369,7 @@ def create( """ ... - @required_args( - [ - "account_id", - "address1", - "agent_name", - "agree", - "city", - "country", - "host_notification", - "original_work", - "owner_notification", - "signature", - "state", - ], - [ - "account_id", - "host_notification", - "justification", - "owner_notification", - "trademark_number", - "trademark_office", - "trademark_symbol", - ], - ["account_id", "host_notification", "justification", "owner_notification"], - ["account_id", "host_notification", "justification", "ncmec_notification", "owner_notification"], - ["account_id", "owner_notification"], - ["account_id", "host_notification", "ncsei_subject_representation", "owner_notification"], - ) + @required_args(["account_id", "act", "email", "email2", "name", "urls"]) def create( self, report_type: Literal[ @@ -1419,16 +1384,6 @@ def create( ], *, account_id: str, - address1: str | NotGiven = NOT_GIVEN, - agent_name: str | NotGiven = NOT_GIVEN, - agree: Literal[0, 1] | NotGiven = NOT_GIVEN, - city: str | NotGiven = NOT_GIVEN, - country: str | NotGiven = NOT_GIVEN, - host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, - original_work: str | NotGiven = NOT_GIVEN, - owner_notification: Literal["send", "send-anon", "none"], - signature: str | NotGiven = NOT_GIVEN, - state: str | NotGiven = NOT_GIVEN, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1438,27 +1393,36 @@ def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, + address1: str | NotGiven = NOT_GIVEN, + agent_name: str | NotGiven = NOT_GIVEN, + agree: Literal[0, 1] | NotGiven = NOT_GIVEN, + city: str | NotGiven = NOT_GIVEN, comments: str | NotGiven = NOT_GIVEN, company: str | NotGiven = NOT_GIVEN, + country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, + original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, + signature: str | NotGiven = NOT_GIVEN, source_ips: str | NotGiven = NOT_GIVEN, + state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1474,36 +1438,36 @@ def create( f"/accounts/{account_id}/abuse-reports/{report_type}", body=maybe_transform( { + "act": act, + "email": email, + "email2": email2, + "name": name, + "urls": urls, "address1": address1, "agent_name": agent_name, "agree": agree, "city": city, - "country": country, - "host_notification": host_notification, - "original_work": original_work, - "owner_notification": owner_notification, - "signature": signature, - "state": state, - "act": act, "comments": comments, "company": company, + "country": country, "destination_ips": destination_ips, - "email": email, - "email2": email2, + "host_notification": host_notification, "justification": justification, - "name": name, "ncmec_notification": ncmec_notification, "ncsei_subject_representation": ncsei_subject_representation, + "original_work": original_work, + "owner_notification": owner_notification, "ports_protocols": ports_protocols, "reported_country": reported_country, "reported_user_agent": reported_user_agent, + "signature": signature, "source_ips": source_ips, + "state": state, "tele": tele, "title": title, "trademark_number": trademark_number, "trademark_office": trademark_office, "trademark_symbol": trademark_symbol, - "urls": urls, }, abuse_report_create_params.AbuseReportCreateParams, ), @@ -1553,16 +1517,6 @@ async def create( ], *, account_id: str, - address1: str, - agent_name: str, - agree: Literal[0, 1], - city: str, - country: str, - host_notification: Literal["send", "send-anon", "none"], - original_work: str, - owner_notification: Literal["send", "send-anon", "none"], - signature: str, - state: str, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1572,27 +1526,36 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, + address1: str | NotGiven = NOT_GIVEN, + agent_name: str | NotGiven = NOT_GIVEN, + agree: Literal[0, 1] | NotGiven = NOT_GIVEN, + city: str | NotGiven = NOT_GIVEN, comments: str | NotGiven = NOT_GIVEN, company: str | NotGiven = NOT_GIVEN, + country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, + original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, + signature: str | NotGiven = NOT_GIVEN, source_ips: str | NotGiven = NOT_GIVEN, + state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1606,65 +1569,63 @@ async def create( Args: report_type: The abuse report type - address1: Text not exceeding 100 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - agent_name: The name of the copyright holder. Text not exceeding 60 characters. This field - may be released by Cloudflare to third parties such as the Lumen Database - (https://lumendatabase.org/). - - agree: Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports + act: The abuse report type - city: Text not exceeding 255 characters. This field may be released by Cloudflare to + email: A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - country: Text not exceeding 255 characters. This field may be released by Cloudflare to + email2: Should match the value provided in `email` + + name: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). - original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to + address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + agent_name: The name of the copyright holder. Text not exceeding 60 characters. This field + may be released by Cloudflare to third parties such as the Lumen Database + (https://lumendatabase.org/). - signature: Required for DMCA reports, should be same as Name. An affirmation that all - information in the report is true and accurate while agreeing to the policies of - Cloudflare's abuse reports + agree: Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports - state: Text not exceeding 255 characters. This field may be released by Cloudflare to + city: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type - comments: Any additional comments about the infringement not exceeding 2000 characters company: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + country: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + destination_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. justification: A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -1674,10 +1635,17 @@ async def create( reported_user_agent: Text not exceeding 255 characters + signature: Required for DMCA reports, should be same as Name. An affirmation that all + information in the report is true and accurate while agreeing to the policies of + Cloudflare's abuse reports + source_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of source IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique + state: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + tele: Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -1689,11 +1657,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1719,12 +1682,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], - trademark_number: str, - trademark_office: str, - trademark_symbol: str, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1734,8 +1691,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -1744,12 +1704,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -1758,7 +1718,9 @@ async def create( state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, + trademark_number: str | NotGiven = NOT_GIVEN, + trademark_office: str | NotGiven = NOT_GIVEN, + trademark_symbol: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1772,23 +1734,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. - - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters - - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - trademark_number: Text not exceeding 1000 characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - trademark_office: Text not exceeding 1000 characters + email2: Should match the value provided in `email` - trademark_symbol: Text not exceeding 1000 characters + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -1814,13 +1773,12 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -1830,6 +1788,9 @@ async def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -1855,10 +1816,11 @@ async def create( title: Text not exceeding 255 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). + trademark_number: Text not exceeding 1000 characters + + trademark_office: Text not exceeding 1000 characters + + trademark_symbol: Text not exceeding 1000 characters extra_headers: Send extra headers @@ -1885,9 +1847,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -1897,8 +1856,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -1907,12 +1869,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -1924,7 +1886,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1938,17 +1899,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -1974,13 +1938,12 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -1990,6 +1953,9 @@ async def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2021,11 +1987,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2051,9 +2012,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2063,8 +2021,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -2073,12 +2034,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -2090,7 +2051,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2104,17 +2064,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -2140,13 +2103,12 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -2156,6 +2118,9 @@ async def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2187,11 +2152,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2217,10 +2177,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - ncmec_notification: Literal["send", "send-anon", "none"], - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2230,8 +2186,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -2240,11 +2199,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, + ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -2256,7 +2216,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2270,20 +2229,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - act: The abuse report type + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -2309,19 +2268,24 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - email2: Should match the value provided in `email` + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2353,11 +2317,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2383,9 +2342,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - justification: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2395,8 +2351,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -2405,12 +2364,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + justification: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -2422,7 +2381,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2436,17 +2394,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - justification: A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -2472,13 +2433,12 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). + justification: A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -2488,6 +2448,9 @@ async def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2519,11 +2482,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2549,7 +2507,6 @@ async def create( ], *, account_id: str, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2559,8 +2516,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -2569,14 +2529,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -2588,7 +2546,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2602,11 +2559,21 @@ async def create( Args: report_type: The abuse report type - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. - act: The abuse report type + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + email2: Should match the value provided in `email` + + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). + address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -2631,11 +2598,6 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -2643,9 +2605,6 @@ async def create( details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. @@ -2654,6 +2613,9 @@ async def create( original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2685,11 +2647,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2715,9 +2672,6 @@ async def create( ], *, account_id: str, - host_notification: Literal["send", "send-anon", "none"], - ncsei_subject_representation: bool, - owner_notification: Literal["send", "send-anon", "none"], act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2727,8 +2681,11 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, address1: str | NotGiven = NOT_GIVEN, agent_name: str | NotGiven = NOT_GIVEN, agree: Literal[0, 1] | NotGiven = NOT_GIVEN, @@ -2737,12 +2694,12 @@ async def create( company: str | NotGiven = NOT_GIVEN, country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, + ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, @@ -2754,7 +2711,6 @@ async def create( trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2768,15 +2724,20 @@ async def create( Args: report_type: The abuse report type - host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + act: The abuse report type - ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + email: A valid email of the abuse reporter. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). - owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark - reports cannot be anonymous. + email2: Should match the value provided in `email` - act: The abuse report type + name: Text not exceeding 255 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + + urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs + should not exceed 250 URLs. All URLs should have the same hostname. Each URL + should be unique. This field may be released by Cloudflare to third parties such + as the Lumen Database (https://lumendatabase.org/). address1: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). @@ -2802,24 +2763,24 @@ async def create( destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique - email: A valid email of the abuse reporter. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - - email2: Should match the value provided in `email` + host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. justification: A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters - name: Text not exceeding 255 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report. + original_work: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). + owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark + reports cannot be anonymous. + ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more @@ -2851,11 +2812,6 @@ async def create( trademark_symbol: Text not exceeding 1000 characters - urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs - should not exceed 250 URLs. All URLs should have the same hostname. Each URL - should be unique. This field may be released by Cloudflare to third parties such - as the Lumen Database (https://lumendatabase.org/). - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -2866,34 +2822,7 @@ async def create( """ ... - @required_args( - [ - "account_id", - "address1", - "agent_name", - "agree", - "city", - "country", - "host_notification", - "original_work", - "owner_notification", - "signature", - "state", - ], - [ - "account_id", - "host_notification", - "justification", - "owner_notification", - "trademark_number", - "trademark_office", - "trademark_symbol", - ], - ["account_id", "host_notification", "justification", "owner_notification"], - ["account_id", "host_notification", "justification", "ncmec_notification", "owner_notification"], - ["account_id", "owner_notification"], - ["account_id", "host_notification", "ncsei_subject_representation", "owner_notification"], - ) + @required_args(["account_id", "act", "email", "email2", "name", "urls"]) async def create( self, report_type: Literal[ @@ -2908,16 +2837,6 @@ async def create( ], *, account_id: str, - address1: str | NotGiven = NOT_GIVEN, - agent_name: str | NotGiven = NOT_GIVEN, - agree: Literal[0, 1] | NotGiven = NOT_GIVEN, - city: str | NotGiven = NOT_GIVEN, - country: str | NotGiven = NOT_GIVEN, - host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, - original_work: str | NotGiven = NOT_GIVEN, - owner_notification: Literal["send", "send-anon", "none"], - signature: str | NotGiven = NOT_GIVEN, - state: str | NotGiven = NOT_GIVEN, act: Literal[ "abuse_dmca", "abuse_trademark", @@ -2927,27 +2846,36 @@ async def create( "abuse_threat", "abuse_registrar_whois", "abuse_ncsei", - ] - | NotGiven = NOT_GIVEN, + ], + email: str, + email2: str, + name: str, + urls: str, + address1: str | NotGiven = NOT_GIVEN, + agent_name: str | NotGiven = NOT_GIVEN, + agree: Literal[0, 1] | NotGiven = NOT_GIVEN, + city: str | NotGiven = NOT_GIVEN, comments: str | NotGiven = NOT_GIVEN, company: str | NotGiven = NOT_GIVEN, + country: str | NotGiven = NOT_GIVEN, destination_ips: str | NotGiven = NOT_GIVEN, - email: str | NotGiven = NOT_GIVEN, - email2: str | NotGiven = NOT_GIVEN, + host_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, justification: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, ncmec_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ncsei_subject_representation: bool | NotGiven = NOT_GIVEN, + original_work: str | NotGiven = NOT_GIVEN, + owner_notification: Literal["send", "send-anon", "none"] | NotGiven = NOT_GIVEN, ports_protocols: str | NotGiven = NOT_GIVEN, reported_country: str | NotGiven = NOT_GIVEN, reported_user_agent: str | NotGiven = NOT_GIVEN, + signature: str | NotGiven = NOT_GIVEN, source_ips: str | NotGiven = NOT_GIVEN, + state: str | NotGiven = NOT_GIVEN, tele: str | NotGiven = NOT_GIVEN, title: str | NotGiven = NOT_GIVEN, trademark_number: str | NotGiven = NOT_GIVEN, trademark_office: str | NotGiven = NOT_GIVEN, trademark_symbol: str | NotGiven = NOT_GIVEN, - urls: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2963,36 +2891,36 @@ async def create( f"/accounts/{account_id}/abuse-reports/{report_type}", body=await async_maybe_transform( { + "act": act, + "email": email, + "email2": email2, + "name": name, + "urls": urls, "address1": address1, "agent_name": agent_name, "agree": agree, "city": city, - "country": country, - "host_notification": host_notification, - "original_work": original_work, - "owner_notification": owner_notification, - "signature": signature, - "state": state, - "act": act, "comments": comments, "company": company, + "country": country, "destination_ips": destination_ips, - "email": email, - "email2": email2, + "host_notification": host_notification, "justification": justification, - "name": name, "ncmec_notification": ncmec_notification, "ncsei_subject_representation": ncsei_subject_representation, + "original_work": original_work, + "owner_notification": owner_notification, "ports_protocols": ports_protocols, "reported_country": reported_country, "reported_user_agent": reported_user_agent, + "signature": signature, "source_ips": source_ips, + "state": state, "tele": tele, "title": title, "trademark_number": trademark_number, "trademark_office": trademark_office, "trademark_symbol": trademark_symbol, - "urls": urls, }, abuse_report_create_params.AbuseReportCreateParams, ), diff --git a/src/cloudflare/types/abuse_reports/abuse_report_create_params.py b/src/cloudflare/types/abuse_reports/abuse_report_create_params.py index beaae90c673..f80f35d4b9e 100644 --- a/src/cloudflare/types/abuse_reports/abuse_report_create_params.py +++ b/src/cloudflare/types/abuse_reports/abuse_report_create_params.py @@ -21,82 +21,69 @@ class AbuseReportsDmcaReport(TypedDict, total=False): account_id: Required[str] - address1: Required[str] - """Text not exceeding 100 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). - """ - - agent_name: Required[str] - """The name of the copyright holder. - - Text not exceeding 60 characters. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - - agree: Required[Literal[0, 1]] - """Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports""" + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - city: Required[str] - """Text not exceeding 255 characters. + email: Required[str] + """A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). """ - country: Required[str] + email2: Required[str] + """Should match the value provided in `email`""" + + name: Required[str] """Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). """ - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). """ - original_work: Required[str] - """Text not exceeding 255 characters. + address1: str + """Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + agent_name: str + """The name of the copyright holder. - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + Text not exceeding 60 characters. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). """ - signature: Required[str] - """Required for DMCA reports, should be same as Name. - - An affirmation that all information in the report is true and accurate while - agreeing to the policies of Cloudflare's abuse reports - """ + agree: Literal[0, 1] + """Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports""" - state: Required[str] + city: str """Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" - comments: str """Any additional comments about the infringement not exceeding 2000 characters""" @@ -107,6 +94,13 @@ class AbuseReportsDmcaReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + country: str + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). + """ + destination_ips: str """A list of IP addresses separated by ‘ ’ (new line character). @@ -114,16 +108,12 @@ class AbuseReportsDmcaReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - justification: str """ A detailed description of the infringement, including any necessary access @@ -131,22 +121,28 @@ class AbuseReportsDmcaReport(TypedDict, total=False): characters """ - name: str + ncmec_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + + ncsei_subject_representation: bool + """If the submitter is the target of NCSEI in the URLs of the abuse report.""" + + original_work: str """Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). """ - ncmec_notification: Literal["send", "send-anon", "none"] + owner_notification: Literal["send", "send-anon", "none"] """Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - ncsei_subject_representation: bool - """If the submitter is the target of NCSEI in the URLs of the abuse report.""" - ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -161,6 +157,13 @@ class AbuseReportsDmcaReport(TypedDict, total=False): reported_user_agent: str """Text not exceeding 255 characters""" + signature: str + """Required for DMCA reports, should be same as Name. + + An affirmation that all information in the report is true and accurate while + agreeing to the policies of Cloudflare's abuse reports + """ + source_ips: str """A list of IP addresses separated by ‘ ’ (new line character). @@ -168,6 +171,13 @@ class AbuseReportsDmcaReport(TypedDict, total=False): addresses ought to be unique """ + state: str + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). + """ + tele: str """Text not exceeding 20 characters. @@ -187,57 +197,48 @@ class AbuseReportsDmcaReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsTrademarkReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email: Required[str] + """A valid email of the abuse reporter. - justification: Required[str] - """ - A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. - - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email2: Required[str] + """Should match the value provided in `email`""" - trademark_number: Required[str] - """Text not exceeding 1000 characters""" + name: Required[str] + """Text not exceeding 255 characters. - trademark_office: Required[str] - """Text not exceeding 1000 characters""" + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). + """ - trademark_symbol: Required[str] - """Text not exceeding 1000 characters""" + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -287,21 +288,17 @@ class AbuseReportsTrademarkReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + justification: str + """ + A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters """ ncmec_notification: Literal["send", "send-anon", "none"] @@ -320,6 +317,12 @@ class AbuseReportsTrademarkReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -365,48 +368,57 @@ class AbuseReportsTrademarkReport(TypedDict, total=False): title: str """Text not exceeding 255 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). + trademark_number: str + """Text not exceeding 1000 characters""" - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ + trademark_office: str + """Text not exceeding 1000 characters""" + + trademark_symbol: str + """Text not exceeding 1000 characters""" class AbuseReportsGeneralReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email: Required[str] + """A valid email of the abuse reporter. - justification: Required[str] - """ - A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + email2: Required[str] + """Should match the value provided in `email`""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + name: Required[str] + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). + + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -456,21 +468,17 @@ class AbuseReportsGeneralReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + justification: str + """ + A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters """ ncmec_notification: Literal["send", "send-anon", "none"] @@ -489,6 +497,12 @@ class AbuseReportsGeneralReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -543,48 +557,48 @@ class AbuseReportsGeneralReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsPhishingReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email: Required[str] + """A valid email of the abuse reporter. - justification: Required[str] - """ - A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + email2: Required[str] + """Should match the value provided in `email`""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + name: Required[str] + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). + + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -634,21 +648,17 @@ class AbuseReportsPhishingReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + justification: str + """ + A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters """ ncmec_notification: Literal["send", "send-anon", "none"] @@ -667,6 +677,12 @@ class AbuseReportsPhishingReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -721,55 +737,49 @@ class AbuseReportsPhishingReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsChildrenAbuseReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email: Required[str] + """A valid email of the abuse reporter. - justification: Required[str] - """ - A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - ncmec_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + email2: Required[str] + """Should match the value provided in `email`""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + name: Required[str] + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" - address1: str """Text not exceeding 100 characters. @@ -818,21 +828,23 @@ class AbuseReportsChildrenAbuseReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" + justification: str + """ + A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters + """ - name: str - """Text not exceeding 255 characters. + ncmec_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ ncsei_subject_representation: bool @@ -845,6 +857,12 @@ class AbuseReportsChildrenAbuseReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -899,48 +917,48 @@ class AbuseReportsChildrenAbuseReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsThreatReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. - """ + email: Required[str] + """A valid email of the abuse reporter. - justification: Required[str] - """ - A detailed description of the infringement, including any necessary access - details and the exact steps needed to view the content, not exceeding 5000 - characters + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + email2: Required[str] + """Should match the value provided in `email`""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + name: Required[str] + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). + + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -990,21 +1008,17 @@ class AbuseReportsThreatReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + justification: str + """ + A detailed description of the infringement, including any necessary access + details and the exact steps needed to view the content, not exceeding 5000 + characters """ ncmec_notification: Literal["send", "send-anon", "none"] @@ -1023,6 +1037,12 @@ class AbuseReportsThreatReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -1077,35 +1097,48 @@ class AbuseReportsThreatReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsRegistrarWhoisReport(TypedDict, total=False): account_id: Required[str] - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + email: Required[str] + """A valid email of the abuse reporter. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + email2: Required[str] + """Should match the value provided in `email`""" + + name: Required[str] + """Text not exceeding 255 characters. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). + """ + + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). + + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -1155,16 +1188,6 @@ class AbuseReportsRegistrarWhoisReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). - """ - - email2: str - """Should match the value provided in `email`""" - host_notification: Literal["send", "send-anon", "none"] """Notification type based on the abuse type. @@ -1178,13 +1201,6 @@ class AbuseReportsRegistrarWhoisReport(TypedDict, total=False): characters """ - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). - """ - ncmec_notification: Literal["send", "send-anon", "none"] """Notification type based on the abuse type. @@ -1201,6 +1217,12 @@ class AbuseReportsRegistrarWhoisReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -1255,44 +1277,48 @@ class AbuseReportsRegistrarWhoisReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - class AbuseReportsNcseiReport(TypedDict, total=False): account_id: Required[str] - host_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + act: Required[ + Literal[ + "abuse_dmca", + "abuse_trademark", + "abuse_general", + "abuse_phishing", + "abuse_children", + "abuse_threat", + "abuse_registrar_whois", + "abuse_ncsei", + ] + ] + """The abuse report type""" - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + email: Required[str] + """A valid email of the abuse reporter. + + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - ncsei_subject_representation: Required[bool] - """If the submitter is the target of NCSEI in the URLs of the abuse report.""" + email2: Required[str] + """Should match the value provided in `email`""" - owner_notification: Required[Literal["send", "send-anon", "none"]] - """Notification type based on the abuse type. + name: Required[str] + """Text not exceeding 255 characters. - NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + This field may be released by Cloudflare to third parties such as the Lumen + Database (https://lumendatabase.org/). """ - act: Literal[ - "abuse_dmca", - "abuse_trademark", - "abuse_general", - "abuse_phishing", - "abuse_children", - "abuse_threat", - "abuse_registrar_whois", - "abuse_ncsei", - ] - """The abuse report type""" + urls: Required[str] + """A list of valid URLs separated by ‘ ’ (new line character). + + The list of the URLs should not exceed 250 URLs. All URLs should have the same + hostname. Each URL should be unique. This field may be released by Cloudflare to + third parties such as the Lumen Database (https://lumendatabase.org/). + """ address1: str """Text not exceeding 100 characters. @@ -1342,16 +1368,12 @@ class AbuseReportsNcseiReport(TypedDict, total=False): IP addresses ought to be unique """ - email: str - """A valid email of the abuse reporter. + host_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ - email2: str - """Should match the value provided in `email`""" - justification: str """ A detailed description of the infringement, including any necessary access @@ -1359,19 +1381,15 @@ class AbuseReportsNcseiReport(TypedDict, total=False): characters """ - name: str - """Text not exceeding 255 characters. - - This field may be released by Cloudflare to third parties such as the Lumen - Database (https://lumendatabase.org/). - """ - ncmec_notification: Literal["send", "send-anon", "none"] """Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. """ + ncsei_subject_representation: bool + """If the submitter is the target of NCSEI in the URLs of the abuse report.""" + original_work: str """Text not exceeding 255 characters. @@ -1379,6 +1397,12 @@ class AbuseReportsNcseiReport(TypedDict, total=False): Database (https://lumendatabase.org/). """ + owner_notification: Literal["send", "send-anon", "none"] + """Notification type based on the abuse type. + + NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. + """ + ports_protocols: str """A comma separated list of ports and protocols e.g. @@ -1433,14 +1457,6 @@ class AbuseReportsNcseiReport(TypedDict, total=False): trademark_symbol: str """Text not exceeding 1000 characters""" - urls: str - """A list of valid URLs separated by ‘ ’ (new line character). - - The list of the URLs should not exceed 250 URLs. All URLs should have the same - hostname. Each URL should be unique. This field may be released by Cloudflare to - third parties such as the Lumen Database (https://lumendatabase.org/). - """ - AbuseReportCreateParams: TypeAlias = Union[ AbuseReportsDmcaReport, diff --git a/tests/api_resources/test_abuse_reports.py b/tests/api_resources/test_abuse_reports.py index 1f66875c36c..a2309a11c6f 100644 --- a/tests/api_resources/test_abuse_reports.py +++ b/tests/api_resources/test_abuse_reports.py @@ -22,16 +22,11 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -41,36 +36,36 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", - act="abuse_general", comments="x", company="x", + country="x", destination_ips="destination_ips", - email="email", - email2="email2", + host_notification="send", justification="x", - name="x", ncmec_notification="send", ncsei_subject_representation=True, + original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", + signature="signature", source_ips="source_ips", + state="x", tele="x", title="x", trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -80,16 +75,11 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -103,16 +93,11 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -129,16 +114,11 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -147,12 +127,11 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -162,13 +141,11 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -177,12 +154,12 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -191,7 +168,9 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N state="x", tele="x", title="x", - urls="urls", + trademark_number="x", + trademark_office="x", + trademark_symbol="x", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -201,12 +180,11 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -220,12 +198,11 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -242,12 +219,11 @@ def test_path_params_create_overload_2(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -256,9 +232,11 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -268,10 +246,11 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -280,12 +259,12 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -297,7 +276,6 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -307,9 +285,11 @@ def test_raw_response_create_overload_3(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -323,9 +303,11 @@ def test_streaming_response_create_overload_3(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,9 +324,11 @@ def test_path_params_create_overload_3(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -353,9 +337,11 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -365,10 +351,11 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -377,12 +364,12 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -394,7 +381,6 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -404,9 +390,11 @@ def test_raw_response_create_overload_4(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -420,9 +408,11 @@ def test_streaming_response_create_overload_4(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -439,9 +429,11 @@ def test_path_params_create_overload_4(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -450,10 +442,11 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -463,11 +456,11 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -476,11 +469,12 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", + ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -492,7 +486,6 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -502,10 +495,11 @@ def test_raw_response_create_overload_5(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -519,10 +513,11 @@ def test_streaming_response_create_overload_5(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -539,10 +534,11 @@ def test_path_params_create_overload_5(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -551,9 +547,11 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -563,10 +561,11 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -575,12 +574,12 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -592,7 +591,6 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -602,9 +600,11 @@ def test_raw_response_create_overload_6(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -618,9 +618,11 @@ def test_streaming_response_create_overload_6(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -637,9 +639,11 @@ def test_path_params_create_overload_6(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -648,7 +652,11 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -658,8 +666,11 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -668,14 +679,12 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", host_notification="send", justification="x", - name="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -687,7 +696,6 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -697,7 +705,11 @@ def test_raw_response_create_overload_7(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -711,7 +723,11 @@ def test_streaming_response_create_overload_7(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -728,7 +744,11 @@ def test_path_params_create_overload_7(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -737,9 +757,11 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None: abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -749,10 +771,11 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N abuse_report = client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -761,12 +784,12 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", + host_notification="send", justification="x", - name="x", ncmec_notification="send", + ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -778,7 +801,6 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -788,9 +810,11 @@ def test_raw_response_create_overload_8(self, client: Cloudflare) -> None: response = client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -804,9 +828,11 @@ def test_streaming_response_create_overload_8(self, client: Cloudflare) -> None: with client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -823,9 +849,11 @@ def test_path_params_create_overload_8(self, client: Cloudflare) -> None: client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @@ -838,16 +866,11 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -857,36 +880,36 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", - act="abuse_general", comments="x", company="x", + country="x", destination_ips="destination_ips", - email="email", - email2="email2", + host_notification="send", justification="x", - name="x", ncmec_notification="send", ncsei_subject_representation=True, + original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", + signature="signature", source_ips="source_ips", + state="x", tele="x", title="x", trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -896,16 +919,11 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -919,16 +937,11 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -945,16 +958,11 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - address1="x", - agent_name="x", - agree=0, - city="x", - country="x", - host_notification="send", - original_work="x", - owner_notification="send", - signature="signature", - state="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -963,12 +971,11 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -978,13 +985,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -993,12 +998,12 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1007,7 +1012,9 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn state="x", tele="x", title="x", - urls="urls", + trademark_number="x", + trademark_office="x", + trademark_symbol="x", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1017,12 +1024,11 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1036,12 +1042,11 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1058,12 +1063,11 @@ async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", - trademark_number="x", - trademark_office="x", - trademark_symbol="x", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1072,9 +1076,11 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1084,10 +1090,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1096,12 +1103,12 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1113,7 +1120,6 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1123,9 +1129,11 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1139,9 +1147,11 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1158,9 +1168,11 @@ async def test_path_params_create_overload_3(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1169,9 +1181,11 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1181,10 +1195,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1193,12 +1208,12 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1210,7 +1225,6 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1220,9 +1234,11 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1236,9 +1252,11 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1255,9 +1273,11 @@ async def test_path_params_create_overload_4(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1266,10 +1286,11 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1279,11 +1300,11 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1292,11 +1313,12 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", + ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1308,7 +1330,6 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1318,10 +1339,11 @@ async def test_raw_response_create_overload_5(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1335,10 +1357,11 @@ async def test_streaming_response_create_overload_5(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1355,10 +1378,11 @@ async def test_path_params_create_overload_5(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - ncmec_notification="send", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1367,9 +1391,11 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1379,10 +1405,11 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1391,12 +1418,12 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", - name="x", + host_notification="send", + justification="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1408,7 +1435,6 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1418,9 +1444,11 @@ async def test_raw_response_create_overload_6(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1434,9 +1462,11 @@ async def test_streaming_response_create_overload_6(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1453,9 +1483,11 @@ async def test_path_params_create_overload_6(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - justification="x", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1464,7 +1496,11 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1474,8 +1510,11 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1484,14 +1523,12 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", host_notification="send", justification="x", - name="x", ncmec_notification="send", ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1503,7 +1540,6 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1513,7 +1549,11 @@ async def test_raw_response_create_overload_7(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1527,7 +1567,11 @@ async def test_streaming_response_create_overload_7(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1544,7 +1588,11 @@ async def test_path_params_create_overload_7(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response") @@ -1553,9 +1601,11 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) -> abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1565,10 +1615,11 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn abuse_report = await async_client.abuse_reports.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", address1="x", agent_name="x", agree=0, @@ -1577,12 +1628,12 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn company="x", country="x", destination_ips="destination_ips", - email="email", - email2="email2", + host_notification="send", justification="x", - name="x", ncmec_notification="send", + ncsei_subject_representation=True, original_work="x", + owner_notification="send", ports_protocols="ports_protocols", reported_country="xx", reported_user_agent="x", @@ -1594,7 +1645,6 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn trademark_number="x", trademark_office="x", trademark_symbol="x", - urls="urls", ) assert_matches_type(str, abuse_report, path=["response"]) @@ -1604,9 +1654,11 @@ async def test_raw_response_create_overload_8(self, async_client: AsyncCloudflar response = await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) assert response.is_closed is True @@ -1620,9 +1672,11 @@ async def test_streaming_response_create_overload_8(self, async_client: AsyncClo async with async_client.abuse_reports.with_streaming_response.create( report_type="abuse_general", account_id="023e105f4ecef8ad9ca31a8372d0c353", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -1639,7 +1693,9 @@ async def test_path_params_create_overload_8(self, async_client: AsyncCloudflare await async_client.abuse_reports.with_raw_response.create( report_type="abuse_general", account_id="", - host_notification="send", - ncsei_subject_representation=True, - owner_notification="send", + act="abuse_general", + email="email", + email2="email2", + name="x", + urls="urls", )