Skip to content

Commit 9505003

Browse files
feat(api): api update
1 parent 1936438 commit 9505003

File tree

10 files changed

+2
-84
lines changed

10 files changed

+2
-84
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1794
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ed04be8a99b699333d72c33e336aa5fb5f597ff0d6fe34602ed0c239f4392d9.yml
3-
openapi_spec_hash: 823750a5d4aad01e5abf3286ee68108c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22cf31982061fe2530842cf512531777a794c7163fa2b7859f80e746a63635cf.yml
3+
openapi_spec_hash: 663822c40fac1bb9cb61c588efd9f515
44
config_hash: 8c6400dba3f7d3f5c77b79f2e4a018bf

src/cloudflare/resources/cloudforce_one/threat_events/threat_events.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def create(
194194
category: str,
195195
date: Union[str, datetime],
196196
event: str,
197-
indicator_type: str,
198197
raw: threat_event_create_params.Raw,
199198
tlp: str,
200199
body_account_id: float | NotGiven = NOT_GIVEN,
@@ -238,7 +237,6 @@ def create(
238237
"category": category,
239238
"date": date,
240239
"event": event,
241-
"indicator_type": indicator_type,
242240
"raw": raw,
243241
"tlp": tlp,
244242
"body_account_id": body_account_id,
@@ -422,7 +420,6 @@ def edit(
422420
date: Union[str, datetime] | NotGiven = NOT_GIVEN,
423421
event: str | NotGiven = NOT_GIVEN,
424422
indicator: str | NotGiven = NOT_GIVEN,
425-
indicator_type: str | NotGiven = NOT_GIVEN,
426423
insight: str | NotGiven = NOT_GIVEN,
427424
raw: threat_event_edit_params.Raw | NotGiven = NOT_GIVEN,
428425
target_country: str | NotGiven = NOT_GIVEN,
@@ -465,7 +462,6 @@ def edit(
465462
"date": date,
466463
"event": event,
467464
"indicator": indicator,
468-
"indicator_type": indicator_type,
469465
"insight": insight,
470466
"raw": raw,
471467
"target_country": target_country,
@@ -592,7 +588,6 @@ async def create(
592588
category: str,
593589
date: Union[str, datetime],
594590
event: str,
595-
indicator_type: str,
596591
raw: threat_event_create_params.Raw,
597592
tlp: str,
598593
body_account_id: float | NotGiven = NOT_GIVEN,
@@ -636,7 +631,6 @@ async def create(
636631
"category": category,
637632
"date": date,
638633
"event": event,
639-
"indicator_type": indicator_type,
640634
"raw": raw,
641635
"tlp": tlp,
642636
"body_account_id": body_account_id,
@@ -820,7 +814,6 @@ async def edit(
820814
date: Union[str, datetime] | NotGiven = NOT_GIVEN,
821815
event: str | NotGiven = NOT_GIVEN,
822816
indicator: str | NotGiven = NOT_GIVEN,
823-
indicator_type: str | NotGiven = NOT_GIVEN,
824817
insight: str | NotGiven = NOT_GIVEN,
825818
raw: threat_event_edit_params.Raw | NotGiven = NOT_GIVEN,
826819
target_country: str | NotGiven = NOT_GIVEN,
@@ -863,7 +856,6 @@ async def edit(
863856
"date": date,
864857
"event": event,
865858
"indicator": indicator,
866-
"indicator_type": indicator_type,
867859
"insight": insight,
868860
"raw": raw,
869861
"target_country": target_country,

src/cloudflare/types/cloudforce_one/threat_event_bulk_create_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ class Data(TypedDict, total=False):
3535

3636
event: Required[str]
3737

38-
indicator_type: Required[Annotated[str, PropertyInfo(alias="indicatorType")]]
39-
4038
raw: Required[DataRaw]
4139

4240
tlp: Required[str]

src/cloudflare/types/cloudforce_one/threat_event_create_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class ThreatEventCreateParams(TypedDict, total=False):
2121

2222
event: Required[str]
2323

24-
indicator_type: Required[Annotated[str, PropertyInfo(alias="indicatorType")]]
25-
2624
raw: Required[Raw]
2725

2826
tlp: Required[str]

src/cloudflare/types/cloudforce_one/threat_event_create_response.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111

1212
class ThreatEventCreateResponse(BaseModel):
13-
id: float
14-
15-
account_id: float = FieldInfo(alias="accountId")
16-
1713
attacker: str
1814

1915
attacker_country: str = FieldInfo(alias="attackerCountry")
@@ -26,10 +22,6 @@ class ThreatEventCreateResponse(BaseModel):
2622

2723
indicator: str
2824

29-
indicator_type: str = FieldInfo(alias="indicatorType")
30-
31-
indicator_type_id: float = FieldInfo(alias="indicatorTypeId")
32-
3325
kill_chain: float = FieldInfo(alias="killChain")
3426

3527
mitre_attack: List[str] = FieldInfo(alias="mitreAttack")
@@ -38,8 +30,6 @@ class ThreatEventCreateResponse(BaseModel):
3830

3931
num_references: float = FieldInfo(alias="numReferences")
4032

41-
raw_id: str = FieldInfo(alias="rawId")
42-
4333
referenced: List[str]
4434

4535
referenced_ids: List[float] = FieldInfo(alias="referencedIds")
@@ -59,5 +49,3 @@ class ThreatEventCreateResponse(BaseModel):
5949
uuid: str
6050

6151
insight: Optional[str] = None
62-
63-
releasability_id: Optional[str] = FieldInfo(alias="releasabilityId", default=None)

src/cloudflare/types/cloudforce_one/threat_event_edit_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class ThreatEventEditParams(TypedDict, total=False):
2727

2828
indicator: str
2929

30-
indicator_type: Annotated[str, PropertyInfo(alias="indicatorType")]
31-
3230
insight: str
3331

3432
raw: Raw

src/cloudflare/types/cloudforce_one/threat_event_edit_response.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111

1212
class ThreatEventEditResponse(BaseModel):
13-
id: float
14-
15-
account_id: float = FieldInfo(alias="accountId")
16-
1713
attacker: str
1814

1915
attacker_country: str = FieldInfo(alias="attackerCountry")
@@ -26,10 +22,6 @@ class ThreatEventEditResponse(BaseModel):
2622

2723
indicator: str
2824

29-
indicator_type: str = FieldInfo(alias="indicatorType")
30-
31-
indicator_type_id: float = FieldInfo(alias="indicatorTypeId")
32-
3325
kill_chain: float = FieldInfo(alias="killChain")
3426

3527
mitre_attack: List[str] = FieldInfo(alias="mitreAttack")
@@ -38,8 +30,6 @@ class ThreatEventEditResponse(BaseModel):
3830

3931
num_references: float = FieldInfo(alias="numReferences")
4032

41-
raw_id: str = FieldInfo(alias="rawId")
42-
4333
referenced: List[str]
4434

4535
referenced_ids: List[float] = FieldInfo(alias="referencedIds")
@@ -59,5 +49,3 @@ class ThreatEventEditResponse(BaseModel):
5949
uuid: str
6050

6151
insight: Optional[str] = None
62-
63-
releasability_id: Optional[str] = FieldInfo(alias="releasabilityId", default=None)

src/cloudflare/types/cloudforce_one/threat_event_get_response.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111

1212
class ThreatEventGetResponse(BaseModel):
13-
id: float
14-
15-
account_id: float = FieldInfo(alias="accountId")
16-
1713
attacker: str
1814

1915
attacker_country: str = FieldInfo(alias="attackerCountry")
@@ -26,10 +22,6 @@ class ThreatEventGetResponse(BaseModel):
2622

2723
indicator: str
2824

29-
indicator_type: str = FieldInfo(alias="indicatorType")
30-
31-
indicator_type_id: float = FieldInfo(alias="indicatorTypeId")
32-
3325
kill_chain: float = FieldInfo(alias="killChain")
3426

3527
mitre_attack: List[str] = FieldInfo(alias="mitreAttack")
@@ -38,8 +30,6 @@ class ThreatEventGetResponse(BaseModel):
3830

3931
num_references: float = FieldInfo(alias="numReferences")
4032

41-
raw_id: str = FieldInfo(alias="rawId")
42-
4333
referenced: List[str]
4434

4535
referenced_ids: List[float] = FieldInfo(alias="referencedIds")
@@ -59,5 +49,3 @@ class ThreatEventGetResponse(BaseModel):
5949
uuid: str
6050

6151
insight: Optional[str] = None
62-
63-
releasability_id: Optional[str] = FieldInfo(alias="releasabilityId", default=None)

src/cloudflare/types/cloudforce_one/threat_event_list_response.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212

1313
class ThreatEventListResponseItem(BaseModel):
14-
id: float
15-
16-
account_id: float = FieldInfo(alias="accountId")
17-
1814
attacker: str
1915

2016
attacker_country: str = FieldInfo(alias="attackerCountry")
@@ -27,10 +23,6 @@ class ThreatEventListResponseItem(BaseModel):
2723

2824
indicator: str
2925

30-
indicator_type: str = FieldInfo(alias="indicatorType")
31-
32-
indicator_type_id: float = FieldInfo(alias="indicatorTypeId")
33-
3426
kill_chain: float = FieldInfo(alias="killChain")
3527

3628
mitre_attack: List[str] = FieldInfo(alias="mitreAttack")
@@ -39,8 +31,6 @@ class ThreatEventListResponseItem(BaseModel):
3931

4032
num_references: float = FieldInfo(alias="numReferences")
4133

42-
raw_id: str = FieldInfo(alias="rawId")
43-
4434
referenced: List[str]
4535

4636
referenced_ids: List[float] = FieldInfo(alias="referencedIds")
@@ -61,7 +51,5 @@ class ThreatEventListResponseItem(BaseModel):
6151

6252
insight: Optional[str] = None
6353

64-
releasability_id: Optional[str] = FieldInfo(alias="releasabilityId", default=None)
65-
6654

6755
ThreatEventListResponse: TypeAlias = List[ThreatEventListResponseItem]

0 commit comments

Comments
 (0)