Skip to content

Commit 3f60ca4

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#440)
1 parent 32602b7 commit 3f60ca4

File tree

9 files changed

+109
-91
lines changed

9 files changed

+109
-91
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1267
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5c41a7aa9877639ecb82e8e278d9d8d77a58f9d308ed8e8f570cd3243f130e05.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6229bf7c4bed6b9026088be8817d3c8111576b2d12ff5220d193f479f230e449.yml

api.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3650,11 +3650,11 @@ from cloudflare.types.intel import (
36503650

36513651
Methods:
36523652

3653-
- <code title="post /accounts/{account_id}/intel/indicator-feeds">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feed_create_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feed_create_response.py">IndicatorFeedCreateResponse</a></code>
3654-
- <code title="put /accounts/{account_id}/intel/indicator-feeds/{feed_id}/snapshot">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">update</a>(feed_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feed_update_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feed_update_response.py">IndicatorFeedUpdateResponse</a></code>
3653+
- <code title="post /accounts/{account_id}/intel/indicator-feeds">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feed_create_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feed_create_response.py">Optional</a></code>
3654+
- <code title="put /accounts/{account_id}/intel/indicator-feeds/{feed_id}/snapshot">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">update</a>(feed_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feed_update_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feed_update_response.py">Optional</a></code>
36553655
- <code title="get /accounts/{account_id}/intel/indicator-feeds">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/intel/indicator_feed_list_response.py">SyncSinglePage[IndicatorFeedListResponse]</a></code>
36563656
- <code title="get /accounts/{account_id}/intel/indicator-feeds/{feed_id}/data">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">data</a>(feed_id, \*, account_id) -> str</code>
3657-
- <code title="get /accounts/{account_id}/intel/indicator-feeds/{feed_id}">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">get</a>(feed_id, \*, account_id) -> <a href="./src/cloudflare/types/intel/indicator_feed_get_response.py">IndicatorFeedGetResponse</a></code>
3657+
- <code title="get /accounts/{account_id}/intel/indicator-feeds/{feed_id}">client.intel.indicator_feeds.<a href="./src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py">get</a>(feed_id, \*, account_id) -> <a href="./src/cloudflare/types/intel/indicator_feed_get_response.py">Optional</a></code>
36583658

36593659
### Permissions
36603660

@@ -3670,9 +3670,9 @@ from cloudflare.types.intel.indicator_feeds import (
36703670

36713671
Methods:
36723672

3673-
- <code title="put /accounts/{account_id}/intel/indicator-feeds/permissions/add">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feeds/permission_create_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_create_response.py">PermissionCreateResponse</a></code>
3674-
- <code title="get /accounts/{account_id}/intel/indicator-feeds/permissions/view">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_list_response.py">PermissionListResponse</a></code>
3675-
- <code title="put /accounts/{account_id}/intel/indicator-feeds/permissions/remove">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">delete</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py">PermissionDeleteResponse</a></code>
3673+
- <code title="put /accounts/{account_id}/intel/indicator-feeds/permissions/add">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feeds/permission_create_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_create_response.py">Optional</a></code>
3674+
- <code title="get /accounts/{account_id}/intel/indicator-feeds/permissions/view">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_list_response.py">Optional</a></code>
3675+
- <code title="put /accounts/{account_id}/intel/indicator-feeds/permissions/remove">client.intel.indicator_feeds.permissions.<a href="./src/cloudflare/resources/intel/indicator_feeds/permissions.py">delete</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py">Optional</a></code>
36763676

36773677
## Sinkholes
36783678

src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, cast
5+
from typing import Type, Optional, cast
66

77
import httpx
88

@@ -67,7 +67,7 @@ def create(
6767
extra_query: Query | None = None,
6868
extra_body: Body | None = None,
6969
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
70-
) -> IndicatorFeedCreateResponse:
70+
) -> Optional[IndicatorFeedCreateResponse]:
7171
"""
7272
Create new indicator feed
7373
@@ -102,9 +102,9 @@ def create(
102102
extra_query=extra_query,
103103
extra_body=extra_body,
104104
timeout=timeout,
105-
post_parser=ResultWrapper[IndicatorFeedCreateResponse]._unwrapper,
105+
post_parser=ResultWrapper[Optional[IndicatorFeedCreateResponse]]._unwrapper,
106106
),
107-
cast_to=cast(Type[IndicatorFeedCreateResponse], ResultWrapper[IndicatorFeedCreateResponse]),
107+
cast_to=cast(Type[Optional[IndicatorFeedCreateResponse]], ResultWrapper[IndicatorFeedCreateResponse]),
108108
)
109109

110110
def update(
@@ -119,7 +119,7 @@ def update(
119119
extra_query: Query | None = None,
120120
extra_body: Body | None = None,
121121
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
122-
) -> IndicatorFeedUpdateResponse:
122+
) -> Optional[IndicatorFeedUpdateResponse]:
123123
"""
124124
Update indicator feed data
125125
@@ -148,9 +148,9 @@ def update(
148148
extra_query=extra_query,
149149
extra_body=extra_body,
150150
timeout=timeout,
151-
post_parser=ResultWrapper[IndicatorFeedUpdateResponse]._unwrapper,
151+
post_parser=ResultWrapper[Optional[IndicatorFeedUpdateResponse]]._unwrapper,
152152
),
153-
cast_to=cast(Type[IndicatorFeedUpdateResponse], ResultWrapper[IndicatorFeedUpdateResponse]),
153+
cast_to=cast(Type[Optional[IndicatorFeedUpdateResponse]], ResultWrapper[IndicatorFeedUpdateResponse]),
154154
)
155155

156156
def list(
@@ -239,7 +239,7 @@ def get(
239239
extra_query: Query | None = None,
240240
extra_body: Body | None = None,
241241
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
242-
) -> IndicatorFeedGetResponse:
242+
) -> Optional[IndicatorFeedGetResponse]:
243243
"""
244244
Get indicator feed metadata
245245
@@ -265,9 +265,9 @@ def get(
265265
extra_query=extra_query,
266266
extra_body=extra_body,
267267
timeout=timeout,
268-
post_parser=ResultWrapper[IndicatorFeedGetResponse]._unwrapper,
268+
post_parser=ResultWrapper[Optional[IndicatorFeedGetResponse]]._unwrapper,
269269
),
270-
cast_to=cast(Type[IndicatorFeedGetResponse], ResultWrapper[IndicatorFeedGetResponse]),
270+
cast_to=cast(Type[Optional[IndicatorFeedGetResponse]], ResultWrapper[IndicatorFeedGetResponse]),
271271
)
272272

273273

@@ -296,7 +296,7 @@ async def create(
296296
extra_query: Query | None = None,
297297
extra_body: Body | None = None,
298298
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
299-
) -> IndicatorFeedCreateResponse:
299+
) -> Optional[IndicatorFeedCreateResponse]:
300300
"""
301301
Create new indicator feed
302302
@@ -331,9 +331,9 @@ async def create(
331331
extra_query=extra_query,
332332
extra_body=extra_body,
333333
timeout=timeout,
334-
post_parser=ResultWrapper[IndicatorFeedCreateResponse]._unwrapper,
334+
post_parser=ResultWrapper[Optional[IndicatorFeedCreateResponse]]._unwrapper,
335335
),
336-
cast_to=cast(Type[IndicatorFeedCreateResponse], ResultWrapper[IndicatorFeedCreateResponse]),
336+
cast_to=cast(Type[Optional[IndicatorFeedCreateResponse]], ResultWrapper[IndicatorFeedCreateResponse]),
337337
)
338338

339339
async def update(
@@ -348,7 +348,7 @@ async def update(
348348
extra_query: Query | None = None,
349349
extra_body: Body | None = None,
350350
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
351-
) -> IndicatorFeedUpdateResponse:
351+
) -> Optional[IndicatorFeedUpdateResponse]:
352352
"""
353353
Update indicator feed data
354354
@@ -379,9 +379,9 @@ async def update(
379379
extra_query=extra_query,
380380
extra_body=extra_body,
381381
timeout=timeout,
382-
post_parser=ResultWrapper[IndicatorFeedUpdateResponse]._unwrapper,
382+
post_parser=ResultWrapper[Optional[IndicatorFeedUpdateResponse]]._unwrapper,
383383
),
384-
cast_to=cast(Type[IndicatorFeedUpdateResponse], ResultWrapper[IndicatorFeedUpdateResponse]),
384+
cast_to=cast(Type[Optional[IndicatorFeedUpdateResponse]], ResultWrapper[IndicatorFeedUpdateResponse]),
385385
)
386386

387387
def list(
@@ -470,7 +470,7 @@ async def get(
470470
extra_query: Query | None = None,
471471
extra_body: Body | None = None,
472472
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
473-
) -> IndicatorFeedGetResponse:
473+
) -> Optional[IndicatorFeedGetResponse]:
474474
"""
475475
Get indicator feed metadata
476476
@@ -496,9 +496,9 @@ async def get(
496496
extra_query=extra_query,
497497
extra_body=extra_body,
498498
timeout=timeout,
499-
post_parser=ResultWrapper[IndicatorFeedGetResponse]._unwrapper,
499+
post_parser=ResultWrapper[Optional[IndicatorFeedGetResponse]]._unwrapper,
500500
),
501-
cast_to=cast(Type[IndicatorFeedGetResponse], ResultWrapper[IndicatorFeedGetResponse]),
501+
cast_to=cast(Type[Optional[IndicatorFeedGetResponse]], ResultWrapper[IndicatorFeedGetResponse]),
502502
)
503503

504504

src/cloudflare/resources/intel/indicator_feeds/permissions.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, cast
5+
from typing import Type, Optional, cast
66

77
import httpx
88

@@ -52,7 +52,7 @@ def create(
5252
extra_query: Query | None = None,
5353
extra_body: Body | None = None,
5454
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55-
) -> PermissionCreateResponse:
55+
) -> Optional[PermissionCreateResponse]:
5656
"""
5757
Grant permission to indicator feed
5858
@@ -87,9 +87,9 @@ def create(
8787
extra_query=extra_query,
8888
extra_body=extra_body,
8989
timeout=timeout,
90-
post_parser=ResultWrapper[PermissionCreateResponse]._unwrapper,
90+
post_parser=ResultWrapper[Optional[PermissionCreateResponse]]._unwrapper,
9191
),
92-
cast_to=cast(Type[PermissionCreateResponse], ResultWrapper[PermissionCreateResponse]),
92+
cast_to=cast(Type[Optional[PermissionCreateResponse]], ResultWrapper[PermissionCreateResponse]),
9393
)
9494

9595
def list(
@@ -102,7 +102,7 @@ def list(
102102
extra_query: Query | None = None,
103103
extra_body: Body | None = None,
104104
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105-
) -> PermissionListResponse:
105+
) -> Optional[PermissionListResponse]:
106106
"""
107107
List indicator feed permissions
108108
@@ -126,9 +126,9 @@ def list(
126126
extra_query=extra_query,
127127
extra_body=extra_body,
128128
timeout=timeout,
129-
post_parser=ResultWrapper[PermissionListResponse]._unwrapper,
129+
post_parser=ResultWrapper[Optional[PermissionListResponse]]._unwrapper,
130130
),
131-
cast_to=cast(Type[PermissionListResponse], ResultWrapper[PermissionListResponse]),
131+
cast_to=cast(Type[Optional[PermissionListResponse]], ResultWrapper[PermissionListResponse]),
132132
)
133133

134134
def delete(
@@ -143,7 +143,7 @@ def delete(
143143
extra_query: Query | None = None,
144144
extra_body: Body | None = None,
145145
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
146-
) -> PermissionDeleteResponse:
146+
) -> Optional[PermissionDeleteResponse]:
147147
"""
148148
Revoke permission to indicator feed
149149
@@ -178,9 +178,9 @@ def delete(
178178
extra_query=extra_query,
179179
extra_body=extra_body,
180180
timeout=timeout,
181-
post_parser=ResultWrapper[PermissionDeleteResponse]._unwrapper,
181+
post_parser=ResultWrapper[Optional[PermissionDeleteResponse]]._unwrapper,
182182
),
183-
cast_to=cast(Type[PermissionDeleteResponse], ResultWrapper[PermissionDeleteResponse]),
183+
cast_to=cast(Type[Optional[PermissionDeleteResponse]], ResultWrapper[PermissionDeleteResponse]),
184184
)
185185

186186

@@ -205,7 +205,7 @@ async def create(
205205
extra_query: Query | None = None,
206206
extra_body: Body | None = None,
207207
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
208-
) -> PermissionCreateResponse:
208+
) -> Optional[PermissionCreateResponse]:
209209
"""
210210
Grant permission to indicator feed
211211
@@ -240,9 +240,9 @@ async def create(
240240
extra_query=extra_query,
241241
extra_body=extra_body,
242242
timeout=timeout,
243-
post_parser=ResultWrapper[PermissionCreateResponse]._unwrapper,
243+
post_parser=ResultWrapper[Optional[PermissionCreateResponse]]._unwrapper,
244244
),
245-
cast_to=cast(Type[PermissionCreateResponse], ResultWrapper[PermissionCreateResponse]),
245+
cast_to=cast(Type[Optional[PermissionCreateResponse]], ResultWrapper[PermissionCreateResponse]),
246246
)
247247

248248
async def list(
@@ -255,7 +255,7 @@ async def list(
255255
extra_query: Query | None = None,
256256
extra_body: Body | None = None,
257257
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
258-
) -> PermissionListResponse:
258+
) -> Optional[PermissionListResponse]:
259259
"""
260260
List indicator feed permissions
261261
@@ -279,9 +279,9 @@ async def list(
279279
extra_query=extra_query,
280280
extra_body=extra_body,
281281
timeout=timeout,
282-
post_parser=ResultWrapper[PermissionListResponse]._unwrapper,
282+
post_parser=ResultWrapper[Optional[PermissionListResponse]]._unwrapper,
283283
),
284-
cast_to=cast(Type[PermissionListResponse], ResultWrapper[PermissionListResponse]),
284+
cast_to=cast(Type[Optional[PermissionListResponse]], ResultWrapper[PermissionListResponse]),
285285
)
286286

287287
async def delete(
@@ -296,7 +296,7 @@ async def delete(
296296
extra_query: Query | None = None,
297297
extra_body: Body | None = None,
298298
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
299-
) -> PermissionDeleteResponse:
299+
) -> Optional[PermissionDeleteResponse]:
300300
"""
301301
Revoke permission to indicator feed
302302
@@ -331,9 +331,9 @@ async def delete(
331331
extra_query=extra_query,
332332
extra_body=extra_body,
333333
timeout=timeout,
334-
post_parser=ResultWrapper[PermissionDeleteResponse]._unwrapper,
334+
post_parser=ResultWrapper[Optional[PermissionDeleteResponse]]._unwrapper,
335335
),
336-
cast_to=cast(Type[PermissionDeleteResponse], ResultWrapper[PermissionDeleteResponse]),
336+
cast_to=cast(Type[Optional[PermissionDeleteResponse]], ResultWrapper[PermissionDeleteResponse]),
337337
)
338338

339339

src/cloudflare/types/intel/indicator_feed_create_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class IndicatorFeedCreateResponse(BaseModel):
1818
description: Optional[str] = None
1919
"""The description of the example test"""
2020

21+
is_attributable: Optional[bool] = None
22+
"""Whether the indicator feed can be attributed to a provider"""
23+
24+
is_public: Optional[bool] = None
25+
"""Whether the indicator feed is exposed to customers"""
26+
2127
modified_on: Optional[datetime] = None
2228
"""The date and time when the data entry was last modified"""
2329

src/cloudflare/types/intel/indicator_feed_list_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class IndicatorFeedListResponse(BaseModel):
1818
description: Optional[str] = None
1919
"""The description of the example test"""
2020

21+
is_attributable: Optional[bool] = None
22+
"""Whether the indicator feed can be attributed to a provider"""
23+
24+
is_public: Optional[bool] = None
25+
"""Whether the indicator feed is exposed to customers"""
26+
2127
modified_on: Optional[datetime] = None
2228
"""The date and time when the data entry was last modified"""
2329

src/cloudflare/types/intel/indicator_feeds/permission_list_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ class PermissionListResponseItem(BaseModel):
1414
description: Optional[str] = None
1515
"""The description of the example test"""
1616

17+
is_attributable: Optional[bool] = None
18+
"""Whether the indicator feed can be attributed to a provider"""
19+
20+
is_public: Optional[bool] = None
21+
"""Whether the indicator feed is exposed to customers"""
22+
1723
name: Optional[str] = None
1824
"""The name of the indicator feed"""
1925

0 commit comments

Comments
 (0)