Skip to content

Commit 39eb096

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#292)
1 parent 39eabf7 commit 39eb096

21 files changed

+280
-88
lines changed

api.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2996,7 +2996,7 @@ Types:
29962996
```python
29972997
from cloudflare.types import (
29982998
RequestRule,
2999-
ResponeRule,
2999+
ResponseRule,
30003000
Ruleset,
30013001
RulesetCreateResponse,
30023002
RulesetUpdateResponse,
@@ -3689,7 +3689,6 @@ Types:
36893689
```python
36903690
from cloudflare.types.intel.attack_surface_report import (
36913691
IssueClass,
3692-
IssueType,
36933692
Product,
36943693
SeverityQueryParam,
36953694
Subject,

src/cloudflare/resources/intel/attack_surface_report/issues.py

+161-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Any, List, Type, cast
6+
from typing_extensions import Literal
67

78
import httpx
89

@@ -28,7 +29,6 @@
2829
from ....types.intel.attack_surface_report import (
2930
ProductParam,
3031
SubjectParam,
31-
IssueTypeParam,
3232
IssueClassParam,
3333
IssueListResponse,
3434
IssueTypeResponse,
@@ -62,8 +62,26 @@ def list(
6262
dismissed: bool | NotGiven = NOT_GIVEN,
6363
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
6464
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
65-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
66-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
65+
issue_type: List[
66+
Literal[
67+
"compliance_violation",
68+
"email_security",
69+
"exposed_infrastructure",
70+
"insecure_configuration",
71+
"weak_authentication",
72+
]
73+
]
74+
| NotGiven = NOT_GIVEN,
75+
issue_type_neq: List[
76+
Literal[
77+
"compliance_violation",
78+
"email_security",
79+
"exposed_infrastructure",
80+
"insecure_configuration",
81+
"weak_authentication",
82+
]
83+
]
84+
| NotGiven = NOT_GIVEN,
6785
page: int | NotGiven = NOT_GIVEN,
6886
per_page: int | NotGiven = NOT_GIVEN,
6987
product: ProductParam | NotGiven = NOT_GIVEN,
@@ -136,8 +154,26 @@ def class_(
136154
dismissed: bool | NotGiven = NOT_GIVEN,
137155
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
138156
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
139-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
140-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
157+
issue_type: List[
158+
Literal[
159+
"compliance_violation",
160+
"email_security",
161+
"exposed_infrastructure",
162+
"insecure_configuration",
163+
"weak_authentication",
164+
]
165+
]
166+
| NotGiven = NOT_GIVEN,
167+
issue_type_neq: List[
168+
Literal[
169+
"compliance_violation",
170+
"email_security",
171+
"exposed_infrastructure",
172+
"insecure_configuration",
173+
"weak_authentication",
174+
]
175+
]
176+
| NotGiven = NOT_GIVEN,
141177
product: ProductParam | NotGiven = NOT_GIVEN,
142178
product_neq: ProductParam | NotGiven = NOT_GIVEN,
143179
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -251,8 +287,26 @@ def severity(
251287
dismissed: bool | NotGiven = NOT_GIVEN,
252288
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
253289
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
254-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
255-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
290+
issue_type: List[
291+
Literal[
292+
"compliance_violation",
293+
"email_security",
294+
"exposed_infrastructure",
295+
"insecure_configuration",
296+
"weak_authentication",
297+
]
298+
]
299+
| NotGiven = NOT_GIVEN,
300+
issue_type_neq: List[
301+
Literal[
302+
"compliance_violation",
303+
"email_security",
304+
"exposed_infrastructure",
305+
"insecure_configuration",
306+
"weak_authentication",
307+
]
308+
]
309+
| NotGiven = NOT_GIVEN,
256310
product: ProductParam | NotGiven = NOT_GIVEN,
257311
product_neq: ProductParam | NotGiven = NOT_GIVEN,
258312
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -317,8 +371,26 @@ def type(
317371
dismissed: bool | NotGiven = NOT_GIVEN,
318372
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
319373
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
320-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
321-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
374+
issue_type: List[
375+
Literal[
376+
"compliance_violation",
377+
"email_security",
378+
"exposed_infrastructure",
379+
"insecure_configuration",
380+
"weak_authentication",
381+
]
382+
]
383+
| NotGiven = NOT_GIVEN,
384+
issue_type_neq: List[
385+
Literal[
386+
"compliance_violation",
387+
"email_security",
388+
"exposed_infrastructure",
389+
"insecure_configuration",
390+
"weak_authentication",
391+
]
392+
]
393+
| NotGiven = NOT_GIVEN,
322394
product: ProductParam | NotGiven = NOT_GIVEN,
323395
product_neq: ProductParam | NotGiven = NOT_GIVEN,
324396
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -393,8 +465,26 @@ def list(
393465
dismissed: bool | NotGiven = NOT_GIVEN,
394466
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
395467
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
396-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
397-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
468+
issue_type: List[
469+
Literal[
470+
"compliance_violation",
471+
"email_security",
472+
"exposed_infrastructure",
473+
"insecure_configuration",
474+
"weak_authentication",
475+
]
476+
]
477+
| NotGiven = NOT_GIVEN,
478+
issue_type_neq: List[
479+
Literal[
480+
"compliance_violation",
481+
"email_security",
482+
"exposed_infrastructure",
483+
"insecure_configuration",
484+
"weak_authentication",
485+
]
486+
]
487+
| NotGiven = NOT_GIVEN,
398488
page: int | NotGiven = NOT_GIVEN,
399489
per_page: int | NotGiven = NOT_GIVEN,
400490
product: ProductParam | NotGiven = NOT_GIVEN,
@@ -467,8 +557,26 @@ async def class_(
467557
dismissed: bool | NotGiven = NOT_GIVEN,
468558
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
469559
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
470-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
471-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
560+
issue_type: List[
561+
Literal[
562+
"compliance_violation",
563+
"email_security",
564+
"exposed_infrastructure",
565+
"insecure_configuration",
566+
"weak_authentication",
567+
]
568+
]
569+
| NotGiven = NOT_GIVEN,
570+
issue_type_neq: List[
571+
Literal[
572+
"compliance_violation",
573+
"email_security",
574+
"exposed_infrastructure",
575+
"insecure_configuration",
576+
"weak_authentication",
577+
]
578+
]
579+
| NotGiven = NOT_GIVEN,
472580
product: ProductParam | NotGiven = NOT_GIVEN,
473581
product_neq: ProductParam | NotGiven = NOT_GIVEN,
474582
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -582,8 +690,26 @@ async def severity(
582690
dismissed: bool | NotGiven = NOT_GIVEN,
583691
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
584692
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
585-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
586-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
693+
issue_type: List[
694+
Literal[
695+
"compliance_violation",
696+
"email_security",
697+
"exposed_infrastructure",
698+
"insecure_configuration",
699+
"weak_authentication",
700+
]
701+
]
702+
| NotGiven = NOT_GIVEN,
703+
issue_type_neq: List[
704+
Literal[
705+
"compliance_violation",
706+
"email_security",
707+
"exposed_infrastructure",
708+
"insecure_configuration",
709+
"weak_authentication",
710+
]
711+
]
712+
| NotGiven = NOT_GIVEN,
587713
product: ProductParam | NotGiven = NOT_GIVEN,
588714
product_neq: ProductParam | NotGiven = NOT_GIVEN,
589715
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
@@ -648,8 +774,26 @@ async def type(
648774
dismissed: bool | NotGiven = NOT_GIVEN,
649775
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
650776
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
651-
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
652-
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
777+
issue_type: List[
778+
Literal[
779+
"compliance_violation",
780+
"email_security",
781+
"exposed_infrastructure",
782+
"insecure_configuration",
783+
"weak_authentication",
784+
]
785+
]
786+
| NotGiven = NOT_GIVEN,
787+
issue_type_neq: List[
788+
Literal[
789+
"compliance_violation",
790+
"email_security",
791+
"exposed_infrastructure",
792+
"insecure_configuration",
793+
"weak_authentication",
794+
]
795+
]
796+
| NotGiven = NOT_GIVEN,
653797
product: ProductParam | NotGiven = NOT_GIVEN,
654798
product_neq: ProductParam | NotGiven = NOT_GIVEN,
655799
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,

src/cloudflare/types/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
from .header_param import HeaderParam as HeaderParam
6363
from .health_check import HealthCheck as HealthCheck
6464
from .origin_param import OriginParam as OriginParam
65-
from .respone_rule import ResponeRule as ResponeRule
6665
from .target_param import TargetParam as TargetParam
6766
from .tunnel_param import TunnelParam as TunnelParam
6867
from .waiting_room import WaitingRoom as WaitingRoom
@@ -74,6 +73,7 @@
7473
from .queue_created import QueueCreated as QueueCreated
7574
from .queue_updated import QueueUpdated as QueueUpdated
7675
from .request_model import RequestModel as RequestModel
76+
from .response_rule import ResponseRule as ResponseRule
7777
from .edge_ips_param import EdgeIPsParam as EdgeIPsParam
7878
from .filter_options import FilterOptions as FilterOptions
7979
from .hostname_param import HostnameParam as HostnameParam

src/cloudflare/types/intel/attack_surface_report/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from .product_param import ProductParam as ProductParam
66
from .subject_param import SubjectParam as SubjectParam
7-
from .issue_type_param import IssueTypeParam as IssueTypeParam
87
from .issue_class_param import IssueClassParam as IssueClassParam
98
from .issue_list_params import IssueListParams as IssueListParams
109
from .issue_type_params import IssueTypeParams as IssueTypeParams

src/cloudflare/types/intel/attack_surface_report/issue_class_params.py

+23-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
from __future__ import annotations
44

55
from typing import List
6-
from typing_extensions import Required, Annotated, TypedDict
6+
from typing_extensions import Literal, Required, Annotated, TypedDict
77

88
from ...._utils import PropertyInfo
99
from .product_param import ProductParam
1010
from .subject_param import SubjectParam
11-
from .issue_type_param import IssueTypeParam
1211
from .issue_class_param import IssueClassParam
1312
from .severity_query_param import SeverityQueryParam
1413

@@ -25,9 +24,28 @@ class IssueClassParams(TypedDict, total=False):
2524

2625
issue_class_neq: Annotated[IssueClassParam, PropertyInfo(alias="issue_class~neq")]
2726

28-
issue_type: IssueTypeParam
29-
30-
issue_type_neq: Annotated[IssueTypeParam, PropertyInfo(alias="issue_type~neq")]
27+
issue_type: List[
28+
Literal[
29+
"compliance_violation",
30+
"email_security",
31+
"exposed_infrastructure",
32+
"insecure_configuration",
33+
"weak_authentication",
34+
]
35+
]
36+
37+
issue_type_neq: Annotated[
38+
List[
39+
Literal[
40+
"compliance_violation",
41+
"email_security",
42+
"exposed_infrastructure",
43+
"insecure_configuration",
44+
"weak_authentication",
45+
]
46+
],
47+
PropertyInfo(alias="issue_type~neq"),
48+
]
3149

3250
product: ProductParam
3351

src/cloudflare/types/intel/attack_surface_report/issue_list_params.py

+23-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
from __future__ import annotations
44

55
from typing import List
6-
from typing_extensions import Required, Annotated, TypedDict
6+
from typing_extensions import Literal, Required, Annotated, TypedDict
77

88
from ...._utils import PropertyInfo
99
from .product_param import ProductParam
1010
from .subject_param import SubjectParam
11-
from .issue_type_param import IssueTypeParam
1211
from .issue_class_param import IssueClassParam
1312
from .severity_query_param import SeverityQueryParam
1413

@@ -25,9 +24,28 @@ class IssueListParams(TypedDict, total=False):
2524

2625
issue_class_neq: Annotated[IssueClassParam, PropertyInfo(alias="issue_class~neq")]
2726

28-
issue_type: IssueTypeParam
29-
30-
issue_type_neq: Annotated[IssueTypeParam, PropertyInfo(alias="issue_type~neq")]
27+
issue_type: List[
28+
Literal[
29+
"compliance_violation",
30+
"email_security",
31+
"exposed_infrastructure",
32+
"insecure_configuration",
33+
"weak_authentication",
34+
]
35+
]
36+
37+
issue_type_neq: Annotated[
38+
List[
39+
Literal[
40+
"compliance_violation",
41+
"email_security",
42+
"exposed_infrastructure",
43+
"insecure_configuration",
44+
"weak_authentication",
45+
]
46+
],
47+
PropertyInfo(alias="issue_type~neq"),
48+
]
3149

3250
page: int
3351
"""Current page within paginated list of results"""

0 commit comments

Comments
 (0)