rapidata 2.33.2__py3-none-any.whl → 2.34.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +1 -1
- rapidata/api_client/__init__.py +4 -0
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +6 -5
- rapidata/api_client/api/leaderboard_api.py +29 -296
- rapidata/api_client/api/prompt_api.py +320 -0
- rapidata/api_client/api/validation_set_api.py +3 -3
- rapidata/api_client/models/__init__.py +3 -0
- rapidata/api_client/models/conditional_validation_selection.py +4 -2
- rapidata/api_client/models/create_leaderboard_model.py +9 -2
- rapidata/api_client/models/get_standing_by_id_result.py +4 -15
- rapidata/api_client/models/prompt_by_benchmark_result.py +3 -1
- rapidata/api_client/models/standing_by_leaderboard.py +1 -1
- rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
- rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +87 -0
- rapidata/api_client_README.md +5 -2
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +12 -9
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +26 -5
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +16 -8
- {rapidata-2.33.2.dist-info → rapidata-2.34.1.dist-info}/METADATA +1 -1
- {rapidata-2.33.2.dist-info → rapidata-2.34.1.dist-info}/RECORD +24 -20
- {rapidata-2.33.2.dist-info → rapidata-2.34.1.dist-info}/LICENSE +0 -0
- {rapidata-2.33.2.dist-info → rapidata-2.34.1.dist-info}/WHEEL +0 -0
rapidata/__init__.py
CHANGED
rapidata/api_client/__init__.py
CHANGED
|
@@ -33,6 +33,7 @@ from rapidata.api_client.api.newsletter_api import NewsletterApi
|
|
|
33
33
|
from rapidata.api_client.api.order_api import OrderApi
|
|
34
34
|
from rapidata.api_client.api.participant_api import ParticipantApi
|
|
35
35
|
from rapidata.api_client.api.pipeline_api import PipelineApi
|
|
36
|
+
from rapidata.api_client.api.prompt_api import PromptApi
|
|
36
37
|
from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
|
|
37
38
|
from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
|
|
38
39
|
from rapidata.api_client.api.user_info_api import UserInfoApi
|
|
@@ -369,6 +370,7 @@ from rapidata.api_client.models.source_url_metadata_model import SourceUrlMetada
|
|
|
369
370
|
from rapidata.api_client.models.standing_by_leaderboard import StandingByLeaderboard
|
|
370
371
|
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
371
372
|
from rapidata.api_client.models.standing_status import StandingStatus
|
|
373
|
+
from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
|
|
372
374
|
from rapidata.api_client.models.static_selection import StaticSelection
|
|
373
375
|
from rapidata.api_client.models.sticky_state import StickyState
|
|
374
376
|
from rapidata.api_client.models.stream_file_wrapper import StreamFileWrapper
|
|
@@ -380,6 +382,7 @@ from rapidata.api_client.models.submit_order_model import SubmitOrderModel
|
|
|
380
382
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
381
383
|
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
382
384
|
from rapidata.api_client.models.submit_prompt_model_prompt_asset import SubmitPromptModelPromptAsset
|
|
385
|
+
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
383
386
|
from rapidata.api_client.models.text_asset import TextAsset
|
|
384
387
|
from rapidata.api_client.models.text_asset_input import TextAssetInput
|
|
385
388
|
from rapidata.api_client.models.text_asset_model import TextAssetModel
|
|
@@ -403,6 +406,7 @@ from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsM
|
|
|
403
406
|
from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
|
|
404
407
|
from rapidata.api_client.models.update_order_name_model import UpdateOrderNameModel
|
|
405
408
|
from rapidata.api_client.models.update_participant_name_model import UpdateParticipantNameModel
|
|
409
|
+
from rapidata.api_client.models.update_prompt_tags_model import UpdatePromptTagsModel
|
|
406
410
|
from rapidata.api_client.models.update_should_alert_model import UpdateShouldAlertModel
|
|
407
411
|
from rapidata.api_client.models.update_validation_rapid_model import UpdateValidationRapidModel
|
|
408
412
|
from rapidata.api_client.models.update_validation_rapid_model_truth import UpdateValidationRapidModelTruth
|
|
@@ -17,6 +17,7 @@ from rapidata.api_client.api.newsletter_api import NewsletterApi
|
|
|
17
17
|
from rapidata.api_client.api.order_api import OrderApi
|
|
18
18
|
from rapidata.api_client.api.participant_api import ParticipantApi
|
|
19
19
|
from rapidata.api_client.api.pipeline_api import PipelineApi
|
|
20
|
+
from rapidata.api_client.api.prompt_api import PromptApi
|
|
20
21
|
from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
|
|
21
22
|
from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
|
|
22
23
|
from rapidata.api_client.api.user_info_api import UserInfoApi
|
|
@@ -30,6 +30,7 @@ from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import P
|
|
|
30
30
|
from rapidata.api_client.models.query_model import QueryModel
|
|
31
31
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
32
32
|
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
33
|
+
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
33
34
|
from rapidata.api_client.models.update_benchmark_name_model import UpdateBenchmarkNameModel
|
|
34
35
|
|
|
35
36
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
@@ -2522,7 +2523,7 @@ class BenchmarkApi:
|
|
|
2522
2523
|
_content_type: Optional[StrictStr] = None,
|
|
2523
2524
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2524
2525
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2525
|
-
) ->
|
|
2526
|
+
) -> TagsByBenchmarkResult:
|
|
2526
2527
|
"""Query all tags within a benchmark
|
|
2527
2528
|
|
|
2528
2529
|
|
|
@@ -2559,7 +2560,7 @@ class BenchmarkApi:
|
|
|
2559
2560
|
)
|
|
2560
2561
|
|
|
2561
2562
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2562
|
-
'200': "
|
|
2563
|
+
'200': "TagsByBenchmarkResult",
|
|
2563
2564
|
}
|
|
2564
2565
|
response_data = self.api_client.call_api(
|
|
2565
2566
|
*_param,
|
|
@@ -2588,7 +2589,7 @@ class BenchmarkApi:
|
|
|
2588
2589
|
_content_type: Optional[StrictStr] = None,
|
|
2589
2590
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2590
2591
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2591
|
-
) -> ApiResponse[
|
|
2592
|
+
) -> ApiResponse[TagsByBenchmarkResult]:
|
|
2592
2593
|
"""Query all tags within a benchmark
|
|
2593
2594
|
|
|
2594
2595
|
|
|
@@ -2625,7 +2626,7 @@ class BenchmarkApi:
|
|
|
2625
2626
|
)
|
|
2626
2627
|
|
|
2627
2628
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2628
|
-
'200': "
|
|
2629
|
+
'200': "TagsByBenchmarkResult",
|
|
2629
2630
|
}
|
|
2630
2631
|
response_data = self.api_client.call_api(
|
|
2631
2632
|
*_param,
|
|
@@ -2691,7 +2692,7 @@ class BenchmarkApi:
|
|
|
2691
2692
|
)
|
|
2692
2693
|
|
|
2693
2694
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2694
|
-
'200': "
|
|
2695
|
+
'200': "TagsByBenchmarkResult",
|
|
2695
2696
|
}
|
|
2696
2697
|
response_data = self.api_client.call_api(
|
|
2697
2698
|
*_param,
|
|
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
|
-
from typing import Optional
|
|
20
|
+
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
|
|
23
23
|
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
@@ -31,6 +31,7 @@ from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import P
|
|
|
31
31
|
from rapidata.api_client.models.query_model import QueryModel
|
|
32
32
|
from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import RunsByLeaderboardResultPagedResult
|
|
33
33
|
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
34
|
+
from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
|
|
34
35
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
35
36
|
from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
|
|
36
37
|
|
|
@@ -1697,7 +1698,6 @@ class LeaderboardApi:
|
|
|
1697
1698
|
def leaderboard_leaderboard_id_participants_get(
|
|
1698
1699
|
self,
|
|
1699
1700
|
leaderboard_id: StrictStr,
|
|
1700
|
-
request: Optional[QueryModel] = None,
|
|
1701
1701
|
_request_timeout: Union[
|
|
1702
1702
|
None,
|
|
1703
1703
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1716,8 +1716,6 @@ class LeaderboardApi:
|
|
|
1716
1716
|
|
|
1717
1717
|
:param leaderboard_id: (required)
|
|
1718
1718
|
:type leaderboard_id: str
|
|
1719
|
-
:param request:
|
|
1720
|
-
:type request: QueryModel
|
|
1721
1719
|
:param _request_timeout: timeout setting for this request. If one
|
|
1722
1720
|
number provided, it will be total request
|
|
1723
1721
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1743,7 +1741,6 @@ class LeaderboardApi:
|
|
|
1743
1741
|
|
|
1744
1742
|
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1745
1743
|
leaderboard_id=leaderboard_id,
|
|
1746
|
-
request=request,
|
|
1747
1744
|
_request_auth=_request_auth,
|
|
1748
1745
|
_content_type=_content_type,
|
|
1749
1746
|
_headers=_headers,
|
|
@@ -1768,7 +1765,6 @@ class LeaderboardApi:
|
|
|
1768
1765
|
def leaderboard_leaderboard_id_participants_get_with_http_info(
|
|
1769
1766
|
self,
|
|
1770
1767
|
leaderboard_id: StrictStr,
|
|
1771
|
-
request: Optional[QueryModel] = None,
|
|
1772
1768
|
_request_timeout: Union[
|
|
1773
1769
|
None,
|
|
1774
1770
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1787,8 +1783,6 @@ class LeaderboardApi:
|
|
|
1787
1783
|
|
|
1788
1784
|
:param leaderboard_id: (required)
|
|
1789
1785
|
:type leaderboard_id: str
|
|
1790
|
-
:param request:
|
|
1791
|
-
:type request: QueryModel
|
|
1792
1786
|
:param _request_timeout: timeout setting for this request. If one
|
|
1793
1787
|
number provided, it will be total request
|
|
1794
1788
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1814,7 +1808,6 @@ class LeaderboardApi:
|
|
|
1814
1808
|
|
|
1815
1809
|
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1816
1810
|
leaderboard_id=leaderboard_id,
|
|
1817
|
-
request=request,
|
|
1818
1811
|
_request_auth=_request_auth,
|
|
1819
1812
|
_content_type=_content_type,
|
|
1820
1813
|
_headers=_headers,
|
|
@@ -1839,7 +1832,6 @@ class LeaderboardApi:
|
|
|
1839
1832
|
def leaderboard_leaderboard_id_participants_get_without_preload_content(
|
|
1840
1833
|
self,
|
|
1841
1834
|
leaderboard_id: StrictStr,
|
|
1842
|
-
request: Optional[QueryModel] = None,
|
|
1843
1835
|
_request_timeout: Union[
|
|
1844
1836
|
None,
|
|
1845
1837
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1858,8 +1850,6 @@ class LeaderboardApi:
|
|
|
1858
1850
|
|
|
1859
1851
|
:param leaderboard_id: (required)
|
|
1860
1852
|
:type leaderboard_id: str
|
|
1861
|
-
:param request:
|
|
1862
|
-
:type request: QueryModel
|
|
1863
1853
|
:param _request_timeout: timeout setting for this request. If one
|
|
1864
1854
|
number provided, it will be total request
|
|
1865
1855
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1885,7 +1875,6 @@ class LeaderboardApi:
|
|
|
1885
1875
|
|
|
1886
1876
|
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1887
1877
|
leaderboard_id=leaderboard_id,
|
|
1888
|
-
request=request,
|
|
1889
1878
|
_request_auth=_request_auth,
|
|
1890
1879
|
_content_type=_content_type,
|
|
1891
1880
|
_headers=_headers,
|
|
@@ -1905,7 +1894,6 @@ class LeaderboardApi:
|
|
|
1905
1894
|
def _leaderboard_leaderboard_id_participants_get_serialize(
|
|
1906
1895
|
self,
|
|
1907
1896
|
leaderboard_id,
|
|
1908
|
-
request,
|
|
1909
1897
|
_request_auth,
|
|
1910
1898
|
_content_type,
|
|
1911
1899
|
_headers,
|
|
@@ -1930,10 +1918,6 @@ class LeaderboardApi:
|
|
|
1930
1918
|
if leaderboard_id is not None:
|
|
1931
1919
|
_path_params['leaderboardId'] = leaderboard_id
|
|
1932
1920
|
# process the query parameters
|
|
1933
|
-
if request is not None:
|
|
1934
|
-
|
|
1935
|
-
_query_params.append(('request', request))
|
|
1936
|
-
|
|
1937
1921
|
# process the header parameters
|
|
1938
1922
|
# process the form parameters
|
|
1939
1923
|
# process the body parameter
|
|
@@ -3114,258 +3098,6 @@ class LeaderboardApi:
|
|
|
3114
3098
|
|
|
3115
3099
|
|
|
3116
3100
|
|
|
3117
|
-
@validate_call
|
|
3118
|
-
def leaderboard_leaderboard_id_refresh_post(
|
|
3119
|
-
self,
|
|
3120
|
-
leaderboard_id: StrictStr,
|
|
3121
|
-
_request_timeout: Union[
|
|
3122
|
-
None,
|
|
3123
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3124
|
-
Tuple[
|
|
3125
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3126
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3127
|
-
]
|
|
3128
|
-
] = None,
|
|
3129
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3130
|
-
_content_type: Optional[StrictStr] = None,
|
|
3131
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3132
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3133
|
-
) -> None:
|
|
3134
|
-
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
:param leaderboard_id: (required)
|
|
3138
|
-
:type leaderboard_id: str
|
|
3139
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3140
|
-
number provided, it will be total request
|
|
3141
|
-
timeout. It can also be a pair (tuple) of
|
|
3142
|
-
(connection, read) timeouts.
|
|
3143
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3144
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3145
|
-
request; this effectively ignores the
|
|
3146
|
-
authentication in the spec for a single request.
|
|
3147
|
-
:type _request_auth: dict, optional
|
|
3148
|
-
:param _content_type: force content-type for the request.
|
|
3149
|
-
:type _content_type: str, Optional
|
|
3150
|
-
:param _headers: set to override the headers for a single
|
|
3151
|
-
request; this effectively ignores the headers
|
|
3152
|
-
in the spec for a single request.
|
|
3153
|
-
:type _headers: dict, optional
|
|
3154
|
-
:param _host_index: set to override the host_index for a single
|
|
3155
|
-
request; this effectively ignores the host_index
|
|
3156
|
-
in the spec for a single request.
|
|
3157
|
-
:type _host_index: int, optional
|
|
3158
|
-
:return: Returns the result object.
|
|
3159
|
-
""" # noqa: E501
|
|
3160
|
-
|
|
3161
|
-
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3162
|
-
leaderboard_id=leaderboard_id,
|
|
3163
|
-
_request_auth=_request_auth,
|
|
3164
|
-
_content_type=_content_type,
|
|
3165
|
-
_headers=_headers,
|
|
3166
|
-
_host_index=_host_index
|
|
3167
|
-
)
|
|
3168
|
-
|
|
3169
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3170
|
-
'204': None,
|
|
3171
|
-
}
|
|
3172
|
-
response_data = self.api_client.call_api(
|
|
3173
|
-
*_param,
|
|
3174
|
-
_request_timeout=_request_timeout
|
|
3175
|
-
)
|
|
3176
|
-
response_data.read()
|
|
3177
|
-
return self.api_client.response_deserialize(
|
|
3178
|
-
response_data=response_data,
|
|
3179
|
-
response_types_map=_response_types_map,
|
|
3180
|
-
).data
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
@validate_call
|
|
3184
|
-
def leaderboard_leaderboard_id_refresh_post_with_http_info(
|
|
3185
|
-
self,
|
|
3186
|
-
leaderboard_id: StrictStr,
|
|
3187
|
-
_request_timeout: Union[
|
|
3188
|
-
None,
|
|
3189
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3190
|
-
Tuple[
|
|
3191
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3192
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3193
|
-
]
|
|
3194
|
-
] = None,
|
|
3195
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3196
|
-
_content_type: Optional[StrictStr] = None,
|
|
3197
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3198
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3199
|
-
) -> ApiResponse[None]:
|
|
3200
|
-
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
:param leaderboard_id: (required)
|
|
3204
|
-
:type leaderboard_id: str
|
|
3205
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3206
|
-
number provided, it will be total request
|
|
3207
|
-
timeout. It can also be a pair (tuple) of
|
|
3208
|
-
(connection, read) timeouts.
|
|
3209
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3210
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3211
|
-
request; this effectively ignores the
|
|
3212
|
-
authentication in the spec for a single request.
|
|
3213
|
-
:type _request_auth: dict, optional
|
|
3214
|
-
:param _content_type: force content-type for the request.
|
|
3215
|
-
:type _content_type: str, Optional
|
|
3216
|
-
:param _headers: set to override the headers for a single
|
|
3217
|
-
request; this effectively ignores the headers
|
|
3218
|
-
in the spec for a single request.
|
|
3219
|
-
:type _headers: dict, optional
|
|
3220
|
-
:param _host_index: set to override the host_index for a single
|
|
3221
|
-
request; this effectively ignores the host_index
|
|
3222
|
-
in the spec for a single request.
|
|
3223
|
-
:type _host_index: int, optional
|
|
3224
|
-
:return: Returns the result object.
|
|
3225
|
-
""" # noqa: E501
|
|
3226
|
-
|
|
3227
|
-
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3228
|
-
leaderboard_id=leaderboard_id,
|
|
3229
|
-
_request_auth=_request_auth,
|
|
3230
|
-
_content_type=_content_type,
|
|
3231
|
-
_headers=_headers,
|
|
3232
|
-
_host_index=_host_index
|
|
3233
|
-
)
|
|
3234
|
-
|
|
3235
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3236
|
-
'204': None,
|
|
3237
|
-
}
|
|
3238
|
-
response_data = self.api_client.call_api(
|
|
3239
|
-
*_param,
|
|
3240
|
-
_request_timeout=_request_timeout
|
|
3241
|
-
)
|
|
3242
|
-
response_data.read()
|
|
3243
|
-
return self.api_client.response_deserialize(
|
|
3244
|
-
response_data=response_data,
|
|
3245
|
-
response_types_map=_response_types_map,
|
|
3246
|
-
)
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
@validate_call
|
|
3250
|
-
def leaderboard_leaderboard_id_refresh_post_without_preload_content(
|
|
3251
|
-
self,
|
|
3252
|
-
leaderboard_id: StrictStr,
|
|
3253
|
-
_request_timeout: Union[
|
|
3254
|
-
None,
|
|
3255
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3256
|
-
Tuple[
|
|
3257
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3258
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3259
|
-
]
|
|
3260
|
-
] = None,
|
|
3261
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3262
|
-
_content_type: Optional[StrictStr] = None,
|
|
3263
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3264
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3265
|
-
) -> RESTResponseType:
|
|
3266
|
-
"""This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
:param leaderboard_id: (required)
|
|
3270
|
-
:type leaderboard_id: str
|
|
3271
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3272
|
-
number provided, it will be total request
|
|
3273
|
-
timeout. It can also be a pair (tuple) of
|
|
3274
|
-
(connection, read) timeouts.
|
|
3275
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3276
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3277
|
-
request; this effectively ignores the
|
|
3278
|
-
authentication in the spec for a single request.
|
|
3279
|
-
:type _request_auth: dict, optional
|
|
3280
|
-
:param _content_type: force content-type for the request.
|
|
3281
|
-
:type _content_type: str, Optional
|
|
3282
|
-
:param _headers: set to override the headers for a single
|
|
3283
|
-
request; this effectively ignores the headers
|
|
3284
|
-
in the spec for a single request.
|
|
3285
|
-
:type _headers: dict, optional
|
|
3286
|
-
:param _host_index: set to override the host_index for a single
|
|
3287
|
-
request; this effectively ignores the host_index
|
|
3288
|
-
in the spec for a single request.
|
|
3289
|
-
:type _host_index: int, optional
|
|
3290
|
-
:return: Returns the result object.
|
|
3291
|
-
""" # noqa: E501
|
|
3292
|
-
|
|
3293
|
-
_param = self._leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3294
|
-
leaderboard_id=leaderboard_id,
|
|
3295
|
-
_request_auth=_request_auth,
|
|
3296
|
-
_content_type=_content_type,
|
|
3297
|
-
_headers=_headers,
|
|
3298
|
-
_host_index=_host_index
|
|
3299
|
-
)
|
|
3300
|
-
|
|
3301
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3302
|
-
'204': None,
|
|
3303
|
-
}
|
|
3304
|
-
response_data = self.api_client.call_api(
|
|
3305
|
-
*_param,
|
|
3306
|
-
_request_timeout=_request_timeout
|
|
3307
|
-
)
|
|
3308
|
-
return response_data.response
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
def _leaderboard_leaderboard_id_refresh_post_serialize(
|
|
3312
|
-
self,
|
|
3313
|
-
leaderboard_id,
|
|
3314
|
-
_request_auth,
|
|
3315
|
-
_content_type,
|
|
3316
|
-
_headers,
|
|
3317
|
-
_host_index,
|
|
3318
|
-
) -> RequestSerialized:
|
|
3319
|
-
|
|
3320
|
-
_host = None
|
|
3321
|
-
|
|
3322
|
-
_collection_formats: Dict[str, str] = {
|
|
3323
|
-
}
|
|
3324
|
-
|
|
3325
|
-
_path_params: Dict[str, str] = {}
|
|
3326
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3327
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3328
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3329
|
-
_files: Dict[
|
|
3330
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3331
|
-
] = {}
|
|
3332
|
-
_body_params: Optional[bytes] = None
|
|
3333
|
-
|
|
3334
|
-
# process the path parameters
|
|
3335
|
-
if leaderboard_id is not None:
|
|
3336
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
3337
|
-
# process the query parameters
|
|
3338
|
-
# process the header parameters
|
|
3339
|
-
# process the form parameters
|
|
3340
|
-
# process the body parameter
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
# authentication setting
|
|
3346
|
-
_auth_settings: List[str] = [
|
|
3347
|
-
'bearer',
|
|
3348
|
-
'oauth2'
|
|
3349
|
-
]
|
|
3350
|
-
|
|
3351
|
-
return self.api_client.param_serialize(
|
|
3352
|
-
method='POST',
|
|
3353
|
-
resource_path='/leaderboard/{leaderboardId}/refresh',
|
|
3354
|
-
path_params=_path_params,
|
|
3355
|
-
query_params=_query_params,
|
|
3356
|
-
header_params=_header_params,
|
|
3357
|
-
body=_body_params,
|
|
3358
|
-
post_params=_form_params,
|
|
3359
|
-
files=_files,
|
|
3360
|
-
auth_settings=_auth_settings,
|
|
3361
|
-
collection_formats=_collection_formats,
|
|
3362
|
-
_host=_host,
|
|
3363
|
-
_request_auth=_request_auth
|
|
3364
|
-
)
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
3101
|
@validate_call
|
|
3370
3102
|
def leaderboard_leaderboard_id_runs_get(
|
|
3371
3103
|
self,
|
|
@@ -3647,8 +3379,8 @@ class LeaderboardApi:
|
|
|
3647
3379
|
@validate_call
|
|
3648
3380
|
def leaderboard_leaderboard_id_standings_get(
|
|
3649
3381
|
self,
|
|
3650
|
-
leaderboard_id: StrictStr,
|
|
3651
|
-
|
|
3382
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard, which standings should be queried")],
|
|
3383
|
+
tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the leaderboard should filter for.")] = None,
|
|
3652
3384
|
_request_timeout: Union[
|
|
3653
3385
|
None,
|
|
3654
3386
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3661,14 +3393,14 @@ class LeaderboardApi:
|
|
|
3661
3393
|
_content_type: Optional[StrictStr] = None,
|
|
3662
3394
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3663
3395
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3664
|
-
) ->
|
|
3396
|
+
) -> StandingsByLeaderboardResult:
|
|
3665
3397
|
"""queries all the participants connected to leaderboard by its ID.
|
|
3666
3398
|
|
|
3667
3399
|
|
|
3668
|
-
:param leaderboard_id:
|
|
3400
|
+
:param leaderboard_id: The id of the leaderboard, which standings should be queried (required)
|
|
3669
3401
|
:type leaderboard_id: str
|
|
3670
|
-
:param
|
|
3671
|
-
:type
|
|
3402
|
+
:param tags: The tags the leaderboard should filter for.
|
|
3403
|
+
:type tags: List[str]
|
|
3672
3404
|
:param _request_timeout: timeout setting for this request. If one
|
|
3673
3405
|
number provided, it will be total request
|
|
3674
3406
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3693,7 +3425,7 @@ class LeaderboardApi:
|
|
|
3693
3425
|
|
|
3694
3426
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3695
3427
|
leaderboard_id=leaderboard_id,
|
|
3696
|
-
|
|
3428
|
+
tags=tags,
|
|
3697
3429
|
_request_auth=_request_auth,
|
|
3698
3430
|
_content_type=_content_type,
|
|
3699
3431
|
_headers=_headers,
|
|
@@ -3701,7 +3433,7 @@ class LeaderboardApi:
|
|
|
3701
3433
|
)
|
|
3702
3434
|
|
|
3703
3435
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3704
|
-
'200': "
|
|
3436
|
+
'200': "StandingsByLeaderboardResult",
|
|
3705
3437
|
}
|
|
3706
3438
|
response_data = self.api_client.call_api(
|
|
3707
3439
|
*_param,
|
|
@@ -3717,8 +3449,8 @@ class LeaderboardApi:
|
|
|
3717
3449
|
@validate_call
|
|
3718
3450
|
def leaderboard_leaderboard_id_standings_get_with_http_info(
|
|
3719
3451
|
self,
|
|
3720
|
-
leaderboard_id: StrictStr,
|
|
3721
|
-
|
|
3452
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard, which standings should be queried")],
|
|
3453
|
+
tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the leaderboard should filter for.")] = None,
|
|
3722
3454
|
_request_timeout: Union[
|
|
3723
3455
|
None,
|
|
3724
3456
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3731,14 +3463,14 @@ class LeaderboardApi:
|
|
|
3731
3463
|
_content_type: Optional[StrictStr] = None,
|
|
3732
3464
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3733
3465
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3734
|
-
) -> ApiResponse[
|
|
3466
|
+
) -> ApiResponse[StandingsByLeaderboardResult]:
|
|
3735
3467
|
"""queries all the participants connected to leaderboard by its ID.
|
|
3736
3468
|
|
|
3737
3469
|
|
|
3738
|
-
:param leaderboard_id:
|
|
3470
|
+
:param leaderboard_id: The id of the leaderboard, which standings should be queried (required)
|
|
3739
3471
|
:type leaderboard_id: str
|
|
3740
|
-
:param
|
|
3741
|
-
:type
|
|
3472
|
+
:param tags: The tags the leaderboard should filter for.
|
|
3473
|
+
:type tags: List[str]
|
|
3742
3474
|
:param _request_timeout: timeout setting for this request. If one
|
|
3743
3475
|
number provided, it will be total request
|
|
3744
3476
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3763,7 +3495,7 @@ class LeaderboardApi:
|
|
|
3763
3495
|
|
|
3764
3496
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3765
3497
|
leaderboard_id=leaderboard_id,
|
|
3766
|
-
|
|
3498
|
+
tags=tags,
|
|
3767
3499
|
_request_auth=_request_auth,
|
|
3768
3500
|
_content_type=_content_type,
|
|
3769
3501
|
_headers=_headers,
|
|
@@ -3771,7 +3503,7 @@ class LeaderboardApi:
|
|
|
3771
3503
|
)
|
|
3772
3504
|
|
|
3773
3505
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3774
|
-
'200': "
|
|
3506
|
+
'200': "StandingsByLeaderboardResult",
|
|
3775
3507
|
}
|
|
3776
3508
|
response_data = self.api_client.call_api(
|
|
3777
3509
|
*_param,
|
|
@@ -3787,8 +3519,8 @@ class LeaderboardApi:
|
|
|
3787
3519
|
@validate_call
|
|
3788
3520
|
def leaderboard_leaderboard_id_standings_get_without_preload_content(
|
|
3789
3521
|
self,
|
|
3790
|
-
leaderboard_id: StrictStr,
|
|
3791
|
-
|
|
3522
|
+
leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard, which standings should be queried")],
|
|
3523
|
+
tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the leaderboard should filter for.")] = None,
|
|
3792
3524
|
_request_timeout: Union[
|
|
3793
3525
|
None,
|
|
3794
3526
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3805,10 +3537,10 @@ class LeaderboardApi:
|
|
|
3805
3537
|
"""queries all the participants connected to leaderboard by its ID.
|
|
3806
3538
|
|
|
3807
3539
|
|
|
3808
|
-
:param leaderboard_id:
|
|
3540
|
+
:param leaderboard_id: The id of the leaderboard, which standings should be queried (required)
|
|
3809
3541
|
:type leaderboard_id: str
|
|
3810
|
-
:param
|
|
3811
|
-
:type
|
|
3542
|
+
:param tags: The tags the leaderboard should filter for.
|
|
3543
|
+
:type tags: List[str]
|
|
3812
3544
|
:param _request_timeout: timeout setting for this request. If one
|
|
3813
3545
|
number provided, it will be total request
|
|
3814
3546
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3833,7 +3565,7 @@ class LeaderboardApi:
|
|
|
3833
3565
|
|
|
3834
3566
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3835
3567
|
leaderboard_id=leaderboard_id,
|
|
3836
|
-
|
|
3568
|
+
tags=tags,
|
|
3837
3569
|
_request_auth=_request_auth,
|
|
3838
3570
|
_content_type=_content_type,
|
|
3839
3571
|
_headers=_headers,
|
|
@@ -3841,7 +3573,7 @@ class LeaderboardApi:
|
|
|
3841
3573
|
)
|
|
3842
3574
|
|
|
3843
3575
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3844
|
-
'200': "
|
|
3576
|
+
'200': "StandingsByLeaderboardResult",
|
|
3845
3577
|
}
|
|
3846
3578
|
response_data = self.api_client.call_api(
|
|
3847
3579
|
*_param,
|
|
@@ -3853,7 +3585,7 @@ class LeaderboardApi:
|
|
|
3853
3585
|
def _leaderboard_leaderboard_id_standings_get_serialize(
|
|
3854
3586
|
self,
|
|
3855
3587
|
leaderboard_id,
|
|
3856
|
-
|
|
3588
|
+
tags,
|
|
3857
3589
|
_request_auth,
|
|
3858
3590
|
_content_type,
|
|
3859
3591
|
_headers,
|
|
@@ -3863,6 +3595,7 @@ class LeaderboardApi:
|
|
|
3863
3595
|
_host = None
|
|
3864
3596
|
|
|
3865
3597
|
_collection_formats: Dict[str, str] = {
|
|
3598
|
+
'tags': 'multi',
|
|
3866
3599
|
}
|
|
3867
3600
|
|
|
3868
3601
|
_path_params: Dict[str, str] = {}
|
|
@@ -3878,9 +3611,9 @@ class LeaderboardApi:
|
|
|
3878
3611
|
if leaderboard_id is not None:
|
|
3879
3612
|
_path_params['leaderboardId'] = leaderboard_id
|
|
3880
3613
|
# process the query parameters
|
|
3881
|
-
if
|
|
3614
|
+
if tags is not None:
|
|
3882
3615
|
|
|
3883
|
-
_query_params.append(('
|
|
3616
|
+
_query_params.append(('tags', tags))
|
|
3884
3617
|
|
|
3885
3618
|
# process the header parameters
|
|
3886
3619
|
# process the form parameters
|