Skip to content

Commit 392e54f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#908)
1 parent 1716baf commit 392e54f

File tree

10 files changed

+77
-8
lines changed

10 files changed

+77
-8
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1343
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bdfe21693106fc05b48376c8081959ea29b7484eb76fb778b3a87cfdd4849dd2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f33a7e8050bdba5caa80d678c9b3de6fe87b6af4bf29184f3f1b07b2793c817b.yml

src/cloudflare/types/zero_trust/access/application_create_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(TypedDict, tota
629629

630630

631631
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(TypedDict, total=False):
632+
access_token_lifetime: str
633+
"""The lifetime of the OIDC Access Token after creation.
634+
635+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
636+
to 24h.
637+
"""
638+
632639
allow_pkce_without_client_secret: bool
633640
"""
634641
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/access/application_create_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(BaseModel):
522522

523523

524524
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(BaseModel):
525+
access_token_lifetime: Optional[str] = None
526+
"""The lifetime of the OIDC Access Token after creation.
527+
528+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
529+
to 24h.
530+
"""
531+
525532
allow_pkce_without_client_secret: Optional[bool] = None
526533
"""
527534
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/access/application_get_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(BaseModel):
522522

523523

524524
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(BaseModel):
525+
access_token_lifetime: Optional[str] = None
526+
"""The lifetime of the OIDC Access Token after creation.
527+
528+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
529+
to 24h.
530+
"""
531+
525532
allow_pkce_without_client_secret: Optional[bool] = None
526533
"""
527534
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/access/application_list_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(BaseModel):
522522

523523

524524
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(BaseModel):
525+
access_token_lifetime: Optional[str] = None
526+
"""The lifetime of the OIDC Access Token after creation.
527+
528+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
529+
to 24h.
530+
"""
531+
525532
allow_pkce_without_client_secret: Optional[bool] = None
526533
"""
527534
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/access/application_update_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(TypedDict, tota
629629

630630

631631
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(TypedDict, total=False):
632+
access_token_lifetime: str
633+
"""The lifetime of the OIDC Access Token after creation.
634+
635+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
636+
to 24h.
637+
"""
638+
632639
allow_pkce_without_client_secret: bool
633640
"""
634641
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/access/application_update_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,13 @@ class SaaSApplicationSaaSAppAccessOIDCSaaSAppRefreshTokenOptions(BaseModel):
522522

523523

524524
class SaaSApplicationSaaSAppAccessOIDCSaaSApp(BaseModel):
525+
access_token_lifetime: Optional[str] = None
526+
"""The lifetime of the OIDC Access Token after creation.
527+
528+
Valid units are m,h. Must be greater than or equal to 1m and less than or equal
529+
to 24h.
530+
"""
531+
525532
allow_pkce_without_client_secret: Optional[bool] = None
526533
"""
527534
If client secret should be required on the token endpoint when

src/cloudflare/types/zero_trust/seat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ class Seat(BaseModel):
1818
"""True if the seat is part of Gateway."""
1919

2020
seat_uid: Optional[str] = None
21-
"""Identifier"""
21+
"""The unique API identifier for the Zero Trust seat."""
2222

2323
updated_at: Optional[datetime] = None

src/cloudflare/types/zero_trust/seat_edit_params.py

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

2222
gateway_seat: Required[bool]
2323
"""True if the seat is part of Gateway."""
24+
25+
seat_uid: Required[str]
26+
"""The unique API identifier for the Zero Trust seat."""

tests/api_resources/zero_trust/test_seats.py

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,22 @@ class TestSeats:
2121
@parametrize
2222
def test_method_edit(self, client: Cloudflare) -> None:
2323
seat = client.zero_trust.seats.edit(
24-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
24+
account_id="699d98642c564d2e855e9661899b7252",
2525
body=[
2626
{
2727
"access_seat": False,
2828
"gateway_seat": False,
29+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
2930
},
3031
{
3132
"access_seat": False,
3233
"gateway_seat": False,
34+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
3335
},
3436
{
3537
"access_seat": False,
3638
"gateway_seat": False,
39+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
3740
},
3841
],
3942
)
@@ -43,19 +46,22 @@ def test_method_edit(self, client: Cloudflare) -> None:
4346
@parametrize
4447
def test_raw_response_edit(self, client: Cloudflare) -> None:
4548
response = client.zero_trust.seats.with_raw_response.edit(
46-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
49+
account_id="699d98642c564d2e855e9661899b7252",
4750
body=[
4851
{
4952
"access_seat": False,
5053
"gateway_seat": False,
54+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
5155
},
5256
{
5357
"access_seat": False,
5458
"gateway_seat": False,
59+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
5560
},
5661
{
5762
"access_seat": False,
5863
"gateway_seat": False,
64+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
5965
},
6066
],
6167
)
@@ -69,19 +75,22 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
6975
@parametrize
7076
def test_streaming_response_edit(self, client: Cloudflare) -> None:
7177
with client.zero_trust.seats.with_streaming_response.edit(
72-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
78+
account_id="699d98642c564d2e855e9661899b7252",
7379
body=[
7480
{
7581
"access_seat": False,
7682
"gateway_seat": False,
83+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
7784
},
7885
{
7986
"access_seat": False,
8087
"gateway_seat": False,
88+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
8189
},
8290
{
8391
"access_seat": False,
8492
"gateway_seat": False,
93+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
8594
},
8695
],
8796
) as response:
@@ -103,14 +112,17 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
103112
{
104113
"access_seat": False,
105114
"gateway_seat": False,
115+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
106116
},
107117
{
108118
"access_seat": False,
109119
"gateway_seat": False,
120+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
110121
},
111122
{
112123
"access_seat": False,
113124
"gateway_seat": False,
125+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
114126
},
115127
],
116128
)
@@ -123,19 +135,22 @@ class TestAsyncSeats:
123135
@parametrize
124136
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
125137
seat = await async_client.zero_trust.seats.edit(
126-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
138+
account_id="699d98642c564d2e855e9661899b7252",
127139
body=[
128140
{
129141
"access_seat": False,
130142
"gateway_seat": False,
143+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
131144
},
132145
{
133146
"access_seat": False,
134147
"gateway_seat": False,
148+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
135149
},
136150
{
137151
"access_seat": False,
138152
"gateway_seat": False,
153+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
139154
},
140155
],
141156
)
@@ -145,19 +160,22 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
145160
@parametrize
146161
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
147162
response = await async_client.zero_trust.seats.with_raw_response.edit(
148-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
163+
account_id="699d98642c564d2e855e9661899b7252",
149164
body=[
150165
{
151166
"access_seat": False,
152167
"gateway_seat": False,
168+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
153169
},
154170
{
155171
"access_seat": False,
156172
"gateway_seat": False,
173+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
157174
},
158175
{
159176
"access_seat": False,
160177
"gateway_seat": False,
178+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
161179
},
162180
],
163181
)
@@ -171,19 +189,22 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
171189
@parametrize
172190
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
173191
async with async_client.zero_trust.seats.with_streaming_response.edit(
174-
account_id="023e105f4ecef8ad9ca31a8372d0c353",
192+
account_id="699d98642c564d2e855e9661899b7252",
175193
body=[
176194
{
177195
"access_seat": False,
178196
"gateway_seat": False,
197+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
179198
},
180199
{
181200
"access_seat": False,
182201
"gateway_seat": False,
202+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
183203
},
184204
{
185205
"access_seat": False,
186206
"gateway_seat": False,
207+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
187208
},
188209
],
189210
) as response:
@@ -205,14 +226,17 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
205226
{
206227
"access_seat": False,
207228
"gateway_seat": False,
229+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
208230
},
209231
{
210232
"access_seat": False,
211233
"gateway_seat": False,
234+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
212235
},
213236
{
214237
"access_seat": False,
215238
"gateway_seat": False,
239+
"seat_uid": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
216240
},
217241
],
218242
)

0 commit comments

Comments
 (0)