Skip to content

Commit 2ed931e

Browse files
stainless-app[bot]meorphis
authored andcommitted
chore(internal): skip broken tests (#2310)
1 parent 87ce3eb commit 2ed931e

40 files changed

+649
-307
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1488
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec93436d15bbd89482ee65b633607110b8dda7c4955138041022dbf71a0c0cfb.yml
1+
configured_endpoints: 1490
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml

api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6741,10 +6741,12 @@ Methods:
67416741

67426742
Types:
67436743

6744+
- <code><a href="./src/resources/origin-post-quantum-encryption.ts">OriginPostQuantumEncryptionEditResponse</a></code>
67446745
- <code><a href="./src/resources/origin-post-quantum-encryption.ts">OriginPostQuantumEncryptionGetResponse</a></code>
67456746

67466747
Methods:
67476748

6749+
- <code title="patch /zones/{zone_id}/cache/origin_post_quantum_encryption">client.originPostQuantumEncryption.<a href="./src/resources/origin-post-quantum-encryption.ts">edit</a>({ ...params }) -> OriginPostQuantumEncryptionEditResponse</code>
67486750
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.originPostQuantumEncryption.<a href="./src/resources/origin-post-quantum-encryption.ts">get</a>({ ...params }) -> OriginPostQuantumEncryptionGetResponse</code>
67496751

67506752
# Speed
@@ -7315,6 +7317,14 @@ Methods:
73157317

73167318
# AbuseReports
73177319

7320+
Types:
7321+
7322+
- <code><a href="./src/resources/abuse-reports.ts">AbuseReportCreateResponse</a></code>
7323+
7324+
Methods:
7325+
7326+
- <code title="post /accounts/{account_id}/v1/abuse-reports/{report_type}">client.abuseReports.<a href="./src/resources/abuse-reports.ts">create</a>(reportType, { ...params }) -> AbuseReportCreateResponse</code>
7327+
73187328
# AI
73197329

73207330
Types:

src/resources/abuse-reports.ts

Lines changed: 205 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,209 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../resource';
4+
import * as Core from '../core';
45

5-
export class AbuseReports extends APIResource {}
6+
export class AbuseReports extends APIResource {
7+
/**
8+
* Submit the Abuse Report of a particular type
9+
*/
10+
create(
11+
reportType:
12+
| 'abuse_dmca'
13+
| 'abuse_trademark'
14+
| 'abuse_general'
15+
| 'abuse_phishing'
16+
| 'abuse_children'
17+
| 'abuse_threat'
18+
| 'abuse_registrar_whois'
19+
| 'abuse_ncsei',
20+
params: AbuseReportCreateParams,
21+
options?: Core.RequestOptions,
22+
): Core.APIPromise<AbuseReportCreateResponse> {
23+
const { account_id, ...body } = params;
24+
return (
25+
this._client.post(`/accounts/${account_id}/v1/abuse-reports/${reportType}`, {
26+
body,
27+
...options,
28+
}) as Core.APIPromise<{ result: AbuseReportCreateResponse }>
29+
)._thenUnwrap((obj) => obj.result);
30+
}
31+
}
32+
33+
/**
34+
* The result should be 'success' for successful response
35+
*/
36+
export type AbuseReportCreateResponse = string;
37+
38+
export interface AbuseReportCreateParams {
39+
/**
40+
* Path param: The account ID of the submitter.
41+
*/
42+
account_id: string;
43+
44+
/**
45+
* Body param: The abuse report type
46+
*/
47+
act:
48+
| 'abuse_dmca'
49+
| 'abuse_trademark'
50+
| 'abuse_general'
51+
| 'abuse_phishing'
52+
| 'abuse_children'
53+
| 'abuse_threat'
54+
| 'abuse_registrar_whois'
55+
| 'abuse_ncsei';
56+
57+
/**
58+
* Body param: A valid email of the abuse reporter
59+
*/
60+
email: string;
61+
62+
/**
63+
* Body param: Should match the value provided in `email`
64+
*/
65+
email2: string;
66+
67+
/**
68+
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
69+
* and Trademark reports cannot be anonymous.
70+
*/
71+
host_notification: 'send' | 'send-anon' | 'none';
72+
73+
/**
74+
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
75+
* and Trademark reports cannot be anonymous.
76+
*/
77+
ncmec_notification: 'send' | 'send-anon' | 'none';
78+
79+
/**
80+
* Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA)
81+
* and Trademark reports cannot be anonymous.
82+
*/
83+
owner_notification: 'send' | 'send-anon' | 'none';
84+
85+
/**
86+
* Body param: A list of valid URLs separated by ‘ ’ (new line character). The list
87+
* of the URLs should not exceed 250 URLs. All URLs should have the same hostname.
88+
* Each URL should be unique
89+
*/
90+
urls: string;
91+
92+
/**
93+
* Body param: Text not exceeding 100 characters
94+
*/
95+
address1?: string;
96+
97+
/**
98+
* Body param: The name of the copyright holder. Text not exceeding 60 characters.
99+
*/
100+
agent_name?: string;
101+
102+
/**
103+
* Body param: Can be 0 or 1
104+
*/
105+
agree?: 0 | 1;
106+
107+
/**
108+
* Body param: Text not exceeding 255 characters
109+
*/
110+
city?: string;
111+
112+
/**
113+
* Body param: Any additional comments about the infringement not exceeding 2000
114+
* characters
115+
*/
116+
comments?: string;
117+
118+
/**
119+
* Body param: Text not exceeding 100 characters
120+
*/
121+
company?: string;
122+
123+
/**
124+
* Body param: Text not exceeding 255 characters
125+
*/
126+
country?: string;
127+
128+
/**
129+
* Body param: A list of IP addresses separated by ‘ ’ (new line character). The
130+
* list of destination IPs should not exceed 30 IP addresses. Each one of the IP
131+
* addresses ought to be unique
132+
*/
133+
destination_ips?: string;
134+
135+
/**
136+
* Body param: A detailed description of the infringement, including any necessary
137+
* access details and the exact steps needed to view the content, not exceeding
138+
* 5000 characters
139+
*/
140+
justification?: string;
141+
142+
/**
143+
* Body param: Text not exceeding 255 characters
144+
*/
145+
name?: string;
146+
147+
/**
148+
* Body param: If the submitter is the target of NCSEI in the URLs of the abuse
149+
* report
150+
*/
151+
ncsei_subject_representation?: boolean;
152+
153+
/**
154+
* Body param: Text not exceeding 255 characters
155+
*/
156+
original_work?: string;
157+
158+
/**
159+
* Body param: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP.
160+
* The total size of the field should not exceed 2000 characters. Each individual
161+
* port/protocol should not exceed 100 characters. The list should not have more
162+
* than 30 unique ports and protocols.
163+
*/
164+
ports_protocols?: string;
165+
166+
/**
167+
* Body param: Required for DMCA reports, should be same as Name. An affirmation
168+
* that all information in the report is true and accurate while agreeing to the
169+
* policies of Cloudflare's abuse reports
170+
*/
171+
signature?: string;
172+
173+
/**
174+
* Body param: A list of IP addresses separated by ‘ ’ (new line character). The
175+
* list of source IPs should not exceed 30 IP addresses. Each one of the IP
176+
* addresses ought to be unique
177+
*/
178+
source_ips?: string;
179+
180+
/**
181+
* Body param: Text not exceeding 255 characters
182+
*/
183+
state?: string;
184+
185+
/**
186+
* Body param: Text not exceeding 20 characters
187+
*/
188+
tele?: string;
189+
190+
/**
191+
* Body param: Text not exceeding 255 characters
192+
*/
193+
title?: string;
194+
195+
/**
196+
* Body param: Text not exceeding 1000 characters
197+
*/
198+
trademark_number?: string;
199+
200+
/**
201+
* Body param: Text not exceeding 1000 characters
202+
*/
203+
trademark_office?: string;
204+
205+
/**
206+
* Body param: Text not exceeding 1000 characters
207+
*/
208+
trademark_symbol?: string;
209+
}

src/resources/addressing/address-maps/accounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export namespace AccountDeleteResponse {
112112

113113
export interface AccountUpdateParams {
114114
/**
115-
* Path param: Identifier of a Cloudflare account.
115+
* Path param: Identifier
116116
*/
117117
account_id: string;
118118

@@ -124,7 +124,7 @@ export interface AccountUpdateParams {
124124

125125
export interface AccountDeleteParams {
126126
/**
127-
* Identifier of a Cloudflare account.
127+
* Identifier
128128
*/
129129
account_id: string;
130130
}

src/resources/addressing/address-maps/address-maps.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class AddressMapsSinglePage extends SinglePage<AddressMap> {}
106106

107107
export interface AddressMap {
108108
/**
109-
* Identifier of an Address Map.
109+
* Identifier
110110
*/
111111
id?: string;
112112

@@ -160,7 +160,7 @@ export type KindParam = 'zone' | 'account';
160160

161161
export interface AddressMapCreateResponse {
162162
/**
163-
* Identifier of an Address Map.
163+
* Identifier
164164
*/
165165
id?: string;
166166

@@ -282,7 +282,7 @@ export namespace AddressMapDeleteResponse {
282282

283283
export interface AddressMapGetResponse {
284284
/**
285-
* Identifier of an Address Map.
285+
* Identifier
286286
*/
287287
id?: string;
288288

@@ -367,7 +367,7 @@ export namespace AddressMapGetResponse {
367367

368368
export interface AddressMapCreateParams {
369369
/**
370-
* Path param: Identifier of a Cloudflare account.
370+
* Path param: Identifier
371371
*/
372372
account_id: string;
373373

@@ -411,21 +411,21 @@ export namespace AddressMapCreateParams {
411411

412412
export interface AddressMapListParams {
413413
/**
414-
* Identifier of a Cloudflare account.
414+
* Identifier
415415
*/
416416
account_id: string;
417417
}
418418

419419
export interface AddressMapDeleteParams {
420420
/**
421-
* Identifier of a Cloudflare account.
421+
* Identifier
422422
*/
423423
account_id: string;
424424
}
425425

426426
export interface AddressMapEditParams {
427427
/**
428-
* Path param: Identifier of a Cloudflare account.
428+
* Path param: Identifier
429429
*/
430430
account_id: string;
431431

@@ -453,7 +453,7 @@ export interface AddressMapEditParams {
453453

454454
export interface AddressMapGetParams {
455455
/**
456-
* Identifier of a Cloudflare account.
456+
* Identifier
457457
*/
458458
account_id: string;
459459
}

src/resources/addressing/address-maps/ips.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export namespace IPDeleteResponse {
114114

115115
export interface IPUpdateParams {
116116
/**
117-
* Path param: Identifier of a Cloudflare account.
117+
* Path param: Identifier
118118
*/
119119
account_id: string;
120120

@@ -126,7 +126,7 @@ export interface IPUpdateParams {
126126

127127
export interface IPDeleteParams {
128128
/**
129-
* Identifier of a Cloudflare account.
129+
* Identifier
130130
*/
131131
account_id: string;
132132
}

src/resources/addressing/address-maps/zones.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ export namespace ZoneDeleteResponse {
112112

113113
export interface ZoneUpdateParams {
114114
/**
115-
* Path param: Identifier of a zone.
115+
* Path param: Identifier
116116
*/
117117
zone_id: string;
118118

119119
/**
120-
* Path param: Identifier of a Cloudflare account.
120+
* Path param: Identifier
121121
*/
122122
account_id: string;
123123

@@ -129,12 +129,12 @@ export interface ZoneUpdateParams {
129129

130130
export interface ZoneDeleteParams {
131131
/**
132-
* Identifier of a zone.
132+
* Identifier
133133
*/
134134
zone_id: string;
135135

136136
/**
137-
* Identifier of a Cloudflare account.
137+
* Identifier
138138
*/
139139
account_id: string;
140140
}

0 commit comments

Comments
 (0)