@@ -180,6 +180,9 @@ def create(
180
180
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
181
181
session_duration : int | NotGiven = NOT_GIVEN ,
182
182
suspended : bool | NotGiven = NOT_GIVEN ,
183
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
184
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
185
+ | NotGiven = NOT_GIVEN ,
183
186
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
184
187
# The extra values given here take precedence over values defined on the client or passed to this method.
185
188
extra_headers : Headers | None = None ,
@@ -451,6 +454,18 @@ def create(
451
454
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
452
455
traffic will not go to the waiting room.
453
456
457
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
458
+ impact on queueing behavior, simply keeping track of how many bots are detected
459
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
460
+ state, where they will never reach your origin. `infinite_queue` requires
461
+ Advanced Waiting Room.
462
+
463
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
464
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
465
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
466
+ integration entirely. Setting this to anything other than `off` or `invisible`
467
+ requires Advanced Waiting Room.
468
+
454
469
extra_headers: Send extra headers
455
470
456
471
extra_query: Add additional query parameters to the request
@@ -484,6 +499,8 @@ def create(
484
499
"queueing_status_code" : queueing_status_code ,
485
500
"session_duration" : session_duration ,
486
501
"suspended" : suspended ,
502
+ "turnstile_action" : turnstile_action ,
503
+ "turnstile_mode" : turnstile_mode ,
487
504
},
488
505
waiting_room_create_params .WaitingRoomCreateParams ,
489
506
),
@@ -561,6 +578,9 @@ def update(
561
578
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
562
579
session_duration : int | NotGiven = NOT_GIVEN ,
563
580
suspended : bool | NotGiven = NOT_GIVEN ,
581
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
582
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
583
+ | NotGiven = NOT_GIVEN ,
564
584
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
565
585
# The extra values given here take precedence over values defined on the client or passed to this method.
566
586
extra_headers : Headers | None = None ,
@@ -832,6 +852,18 @@ def update(
832
852
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
833
853
traffic will not go to the waiting room.
834
854
855
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
856
+ impact on queueing behavior, simply keeping track of how many bots are detected
857
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
858
+ state, where they will never reach your origin. `infinite_queue` requires
859
+ Advanced Waiting Room.
860
+
861
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
862
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
863
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
864
+ integration entirely. Setting this to anything other than `off` or `invisible`
865
+ requires Advanced Waiting Room.
866
+
835
867
extra_headers: Send extra headers
836
868
837
869
extra_query: Add additional query parameters to the request
@@ -867,6 +899,8 @@ def update(
867
899
"queueing_status_code" : queueing_status_code ,
868
900
"session_duration" : session_duration ,
869
901
"suspended" : suspended ,
902
+ "turnstile_action" : turnstile_action ,
903
+ "turnstile_mode" : turnstile_mode ,
870
904
},
871
905
waiting_room_update_params .WaitingRoomUpdateParams ,
872
906
),
@@ -1038,6 +1072,9 @@ def edit(
1038
1072
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
1039
1073
session_duration : int | NotGiven = NOT_GIVEN ,
1040
1074
suspended : bool | NotGiven = NOT_GIVEN ,
1075
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
1076
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
1077
+ | NotGiven = NOT_GIVEN ,
1041
1078
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1042
1079
# The extra values given here take precedence over values defined on the client or passed to this method.
1043
1080
extra_headers : Headers | None = None ,
@@ -1309,6 +1346,18 @@ def edit(
1309
1346
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
1310
1347
traffic will not go to the waiting room.
1311
1348
1349
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
1350
+ impact on queueing behavior, simply keeping track of how many bots are detected
1351
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
1352
+ state, where they will never reach your origin. `infinite_queue` requires
1353
+ Advanced Waiting Room.
1354
+
1355
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
1356
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
1357
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
1358
+ integration entirely. Setting this to anything other than `off` or `invisible`
1359
+ requires Advanced Waiting Room.
1360
+
1312
1361
extra_headers: Send extra headers
1313
1362
1314
1363
extra_query: Add additional query parameters to the request
@@ -1344,6 +1393,8 @@ def edit(
1344
1393
"queueing_status_code" : queueing_status_code ,
1345
1394
"session_duration" : session_duration ,
1346
1395
"suspended" : suspended ,
1396
+ "turnstile_action" : turnstile_action ,
1397
+ "turnstile_mode" : turnstile_mode ,
1347
1398
},
1348
1399
waiting_room_edit_params .WaitingRoomEditParams ,
1349
1400
),
@@ -1503,6 +1554,9 @@ async def create(
1503
1554
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
1504
1555
session_duration : int | NotGiven = NOT_GIVEN ,
1505
1556
suspended : bool | NotGiven = NOT_GIVEN ,
1557
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
1558
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
1559
+ | NotGiven = NOT_GIVEN ,
1506
1560
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1507
1561
# The extra values given here take precedence over values defined on the client or passed to this method.
1508
1562
extra_headers : Headers | None = None ,
@@ -1774,6 +1828,18 @@ async def create(
1774
1828
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
1775
1829
traffic will not go to the waiting room.
1776
1830
1831
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
1832
+ impact on queueing behavior, simply keeping track of how many bots are detected
1833
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
1834
+ state, where they will never reach your origin. `infinite_queue` requires
1835
+ Advanced Waiting Room.
1836
+
1837
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
1838
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
1839
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
1840
+ integration entirely. Setting this to anything other than `off` or `invisible`
1841
+ requires Advanced Waiting Room.
1842
+
1777
1843
extra_headers: Send extra headers
1778
1844
1779
1845
extra_query: Add additional query parameters to the request
@@ -1807,6 +1873,8 @@ async def create(
1807
1873
"queueing_status_code" : queueing_status_code ,
1808
1874
"session_duration" : session_duration ,
1809
1875
"suspended" : suspended ,
1876
+ "turnstile_action" : turnstile_action ,
1877
+ "turnstile_mode" : turnstile_mode ,
1810
1878
},
1811
1879
waiting_room_create_params .WaitingRoomCreateParams ,
1812
1880
),
@@ -1884,6 +1952,9 @@ async def update(
1884
1952
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
1885
1953
session_duration : int | NotGiven = NOT_GIVEN ,
1886
1954
suspended : bool | NotGiven = NOT_GIVEN ,
1955
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
1956
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
1957
+ | NotGiven = NOT_GIVEN ,
1887
1958
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1888
1959
# The extra values given here take precedence over values defined on the client or passed to this method.
1889
1960
extra_headers : Headers | None = None ,
@@ -2155,6 +2226,18 @@ async def update(
2155
2226
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
2156
2227
traffic will not go to the waiting room.
2157
2228
2229
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
2230
+ impact on queueing behavior, simply keeping track of how many bots are detected
2231
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
2232
+ state, where they will never reach your origin. `infinite_queue` requires
2233
+ Advanced Waiting Room.
2234
+
2235
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
2236
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
2237
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
2238
+ integration entirely. Setting this to anything other than `off` or `invisible`
2239
+ requires Advanced Waiting Room.
2240
+
2158
2241
extra_headers: Send extra headers
2159
2242
2160
2243
extra_query: Add additional query parameters to the request
@@ -2190,6 +2273,8 @@ async def update(
2190
2273
"queueing_status_code" : queueing_status_code ,
2191
2274
"session_duration" : session_duration ,
2192
2275
"suspended" : suspended ,
2276
+ "turnstile_action" : turnstile_action ,
2277
+ "turnstile_mode" : turnstile_mode ,
2193
2278
},
2194
2279
waiting_room_update_params .WaitingRoomUpdateParams ,
2195
2280
),
@@ -2361,6 +2446,9 @@ async def edit(
2361
2446
queueing_status_code : Literal [200 , 202 , 429 ] | NotGiven = NOT_GIVEN ,
2362
2447
session_duration : int | NotGiven = NOT_GIVEN ,
2363
2448
suspended : bool | NotGiven = NOT_GIVEN ,
2449
+ turnstile_action : Literal ["log" , "infinite_queue" ] | NotGiven = NOT_GIVEN ,
2450
+ turnstile_mode : Literal ["off" , "invisible" , "visible_non_interactive" , "visible_managed" ]
2451
+ | NotGiven = NOT_GIVEN ,
2364
2452
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2365
2453
# The extra values given here take precedence over values defined on the client or passed to this method.
2366
2454
extra_headers : Headers | None = None ,
@@ -2632,6 +2720,18 @@ async def edit(
2632
2720
suspended: Suspends or allows traffic going to the waiting room. If set to `true`, the
2633
2721
traffic will not go to the waiting room.
2634
2722
2723
+ turnstile_action: Which action to take when a bot is detected using Turnstile. `log` will have no
2724
+ impact on queueing behavior, simply keeping track of how many bots are detected
2725
+ in Waiting Room Analytics. `infinite_queue` will send bots to a false queueing
2726
+ state, where they will never reach your origin. `infinite_queue` requires
2727
+ Advanced Waiting Room.
2728
+
2729
+ turnstile_mode: Which Turnstile widget type to use for detecting bot traffic. See
2730
+ [the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)
2731
+ for the definitions of these widget types. Set to `off` to disable the Turnstile
2732
+ integration entirely. Setting this to anything other than `off` or `invisible`
2733
+ requires Advanced Waiting Room.
2734
+
2635
2735
extra_headers: Send extra headers
2636
2736
2637
2737
extra_query: Add additional query parameters to the request
@@ -2667,6 +2767,8 @@ async def edit(
2667
2767
"queueing_status_code" : queueing_status_code ,
2668
2768
"session_duration" : session_duration ,
2669
2769
"suspended" : suspended ,
2770
+ "turnstile_action" : turnstile_action ,
2771
+ "turnstile_mode" : turnstile_mode ,
2670
2772
},
2671
2773
waiting_room_edit_params .WaitingRoomEditParams ,
2672
2774
),
0 commit comments