@@ -600,6 +600,7 @@ def leaderboard(
600600 key : str ,
601601 * ,
602602 run : typing .Optional [str ] = None ,
603+ num_events : typing .Optional [int ] = None ,
603604 request_options : typing .Optional [RequestOptions ] = None ,
604605 ) -> UserLeaderboardResponseWithHistory :
605606 """
@@ -616,6 +617,9 @@ def leaderboard(
616617 run : typing.Optional[str]
617618 Specific run date in YYYY-MM-DD format. If not provided, returns the current run.
618619
620+ num_events : typing.Optional[int]
621+ The number of events to return in the history array.
622+
619623 request_options : typing.Optional[RequestOptions]
620624 Request-specific configuration.
621625
@@ -635,9 +639,12 @@ def leaderboard(
635639 id="user-123",
636640 key="weekly-words",
637641 run="2025-01-15",
642+ num_events=1,
638643 )
639644 """
640- _response = self ._raw_client .leaderboard (id , key , run = run , request_options = request_options )
645+ _response = self ._raw_client .leaderboard (
646+ id , key , run = run , num_events = num_events , request_options = request_options
647+ )
641648 return _response .data
642649
643650
@@ -1309,6 +1316,7 @@ async def leaderboard(
13091316 key : str ,
13101317 * ,
13111318 run : typing .Optional [str ] = None ,
1319+ num_events : typing .Optional [int ] = None ,
13121320 request_options : typing .Optional [RequestOptions ] = None ,
13131321 ) -> UserLeaderboardResponseWithHistory :
13141322 """
@@ -1325,6 +1333,9 @@ async def leaderboard(
13251333 run : typing.Optional[str]
13261334 Specific run date in YYYY-MM-DD format. If not provided, returns the current run.
13271335
1336+ num_events : typing.Optional[int]
1337+ The number of events to return in the history array.
1338+
13281339 request_options : typing.Optional[RequestOptions]
13291340 Request-specific configuration.
13301341
@@ -1349,10 +1360,13 @@ async def main() -> None:
13491360 id="user-123",
13501361 key="weekly-words",
13511362 run="2025-01-15",
1363+ num_events=1,
13521364 )
13531365
13541366
13551367 asyncio.run(main())
13561368 """
1357- _response = await self ._raw_client .leaderboard (id , key , run = run , request_options = request_options )
1369+ _response = await self ._raw_client .leaderboard (
1370+ id , key , run = run , num_events = num_events , request_options = request_options
1371+ )
13581372 return _response .data
0 commit comments