rapidata 2.28.5__py3-none-any.whl → 2.29.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.

Files changed (90) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +45 -8
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/benchmark_api.py +3033 -0
  5. rapidata/api_client/api/customer_rapid_api.py +332 -1
  6. rapidata/api_client/api/dataset_api.py +16 -0
  7. rapidata/api_client/api/leaderboard_api.py +1392 -270
  8. rapidata/api_client/models/__init__.py +44 -8
  9. rapidata/api_client/models/add_campaign_model.py +3 -3
  10. rapidata/api_client/models/and_user_filter_model.py +106 -0
  11. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  12. rapidata/api_client/models/benchmark_query_result.py +94 -0
  13. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  14. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  15. rapidata/api_client/models/create_benchmark_model.py +87 -0
  16. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  17. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  18. rapidata/api_client/models/create_benchmark_result.py +87 -0
  19. rapidata/api_client/models/create_datapoint_result.py +4 -16
  20. rapidata/api_client/models/create_leaderboard_model.py +20 -2
  21. rapidata/api_client/models/create_leaderboard_result.py +15 -3
  22. rapidata/api_client/models/create_order_model.py +3 -3
  23. rapidata/api_client/models/file_asset_input.py +104 -0
  24. rapidata/api_client/models/file_asset_input1.py +104 -0
  25. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  26. rapidata/api_client/models/file_asset_input2.py +104 -0
  27. rapidata/api_client/models/file_asset_input3.py +104 -0
  28. rapidata/api_client/models/file_asset_input_file.py +182 -0
  29. rapidata/api_client/models/form_file_wrapper.py +120 -0
  30. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  31. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  32. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  33. rapidata/api_client/models/get_benchmark_by_id_result.py +94 -0
  34. rapidata/api_client/models/get_leaderboard_by_id_result.py +11 -3
  35. rapidata/api_client/models/get_participant_by_id_result.py +6 -26
  36. rapidata/api_client/models/get_standing_by_id_result.py +113 -0
  37. rapidata/api_client/models/leaderboard_query_result.py +11 -3
  38. rapidata/api_client/models/local_file_wrapper.py +120 -0
  39. rapidata/api_client/models/multi_asset_input.py +110 -0
  40. rapidata/api_client/models/multi_asset_input1.py +110 -0
  41. rapidata/api_client/models/multi_asset_input1_assets_inner.py +170 -0
  42. rapidata/api_client/models/multi_asset_input2.py +110 -0
  43. rapidata/api_client/models/multi_asset_input3.py +110 -0
  44. rapidata/api_client/models/multi_asset_input3_assets_inner.py +170 -0
  45. rapidata/api_client/models/multi_asset_input_assets_inner.py +170 -0
  46. rapidata/api_client/models/not_user_filter_model.py +3 -3
  47. rapidata/api_client/models/or_user_filter_model.py +3 -3
  48. rapidata/api_client/models/participant_by_benchmark.py +102 -0
  49. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  50. rapidata/api_client/models/participant_status.py +1 -4
  51. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  52. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  53. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  54. rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
  55. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +170 -0
  56. rapidata/api_client/models/prompt_by_benchmark_result.py +92 -0
  57. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  58. rapidata/api_client/models/prompt_metadata_input.py +5 -3
  59. rapidata/api_client/models/proxy_file_wrapper.py +114 -0
  60. rapidata/api_client/models/query_validation_model.py +97 -0
  61. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  62. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  63. rapidata/api_client/models/standing_status.py +38 -0
  64. rapidata/api_client/models/stream_file_wrapper.py +116 -0
  65. rapidata/api_client/models/submit_prompt_model.py +105 -0
  66. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +174 -0
  67. rapidata/api_client/models/text_asset_input.py +100 -0
  68. rapidata/api_client/models/transcription_metadata_input.py +5 -3
  69. rapidata/api_client/models/zip_entry_file_wrapper.py +120 -0
  70. rapidata/api_client_README.md +67 -16
  71. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  72. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +115 -0
  73. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +256 -0
  74. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +83 -0
  75. rapidata/rapidata_client/filter/not_filter.py +2 -2
  76. rapidata/rapidata_client/filter/or_filter.py +2 -2
  77. rapidata/rapidata_client/metadata/__init__.py +1 -0
  78. rapidata/rapidata_client/metadata/_media_asset_metadata.py +8 -1
  79. rapidata/rapidata_client/metadata/_prompt_identifier_metadata.py +15 -0
  80. rapidata/rapidata_client/order/_rapidata_dataset.py +6 -6
  81. rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -4
  82. rapidata/rapidata_client/rapidata_client.py +3 -3
  83. rapidata/service/openapi_service.py +5 -0
  84. {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/METADATA +1 -1
  85. {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/RECORD +88 -37
  86. rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
  87. rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
  88. /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
  89. {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/LICENSE +0 -0
  90. {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/WHEEL +0 -0
@@ -19,16 +19,17 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
+ from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
23
+ from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
24
+ from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
22
25
  from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
23
- from rapidata.api_client.models.create_leaderboard_participant_model import CreateLeaderboardParticipantModel
24
- from rapidata.api_client.models.create_leaderboard_participant_result import CreateLeaderboardParticipantResult
25
26
  from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
26
27
  from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
27
- from rapidata.api_client.models.get_participant_by_id_result import GetParticipantByIdResult
28
+ from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
28
29
  from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
29
- from rapidata.api_client.models.participant_by_leaderboard_paged_result import ParticipantByLeaderboardPagedResult
30
- from rapidata.api_client.models.prompt_by_leaderboard_result_paged_result import PromptByLeaderboardResultPagedResult
30
+ from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import PromptByBenchmarkResultPagedResult
31
31
  from rapidata.api_client.models.query_model import QueryModel
32
+ from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
32
33
  from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
33
34
 
34
35
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
@@ -50,9 +51,10 @@ class LeaderboardApi:
50
51
 
51
52
 
52
53
  @validate_call
53
- def leaderboard_leaderboard_id_delete(
54
+ def benchmark_standing_leaderboard_id_participant_id_get(
54
55
  self,
55
- leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
56
+ leaderboard_id: StrictStr,
57
+ participant_id: StrictStr,
56
58
  _request_timeout: Union[
57
59
  None,
58
60
  Annotated[StrictFloat, Field(gt=0)],
@@ -65,12 +67,14 @@ class LeaderboardApi:
65
67
  _content_type: Optional[StrictStr] = None,
66
68
  _headers: Optional[Dict[StrictStr, Any]] = None,
67
69
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
- ) -> GetLeaderboardByIdResult:
69
- """Deletes a leaderboard by its ID.
70
+ ) -> GetStandingByIdResult:
71
+ """Gets a standing by leaderboardId and participantId.
70
72
 
71
73
 
72
- :param leaderboard_id: The id of the leaderboard that gets deleted (required)
74
+ :param leaderboard_id: (required)
73
75
  :type leaderboard_id: str
76
+ :param participant_id: (required)
77
+ :type participant_id: str
74
78
  :param _request_timeout: timeout setting for this request. If one
75
79
  number provided, it will be total request
76
80
  timeout. It can also be a pair (tuple) of
@@ -93,8 +97,9 @@ class LeaderboardApi:
93
97
  :return: Returns the result object.
94
98
  """ # noqa: E501
95
99
 
96
- _param = self._leaderboard_leaderboard_id_delete_serialize(
100
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
97
101
  leaderboard_id=leaderboard_id,
102
+ participant_id=participant_id,
98
103
  _request_auth=_request_auth,
99
104
  _content_type=_content_type,
100
105
  _headers=_headers,
@@ -102,7 +107,7 @@ class LeaderboardApi:
102
107
  )
103
108
 
104
109
  _response_types_map: Dict[str, Optional[str]] = {
105
- '204': "GetLeaderboardByIdResult",
110
+ '200': "GetStandingByIdResult",
106
111
  }
107
112
  response_data = self.api_client.call_api(
108
113
  *_param,
@@ -116,9 +121,10 @@ class LeaderboardApi:
116
121
 
117
122
 
118
123
  @validate_call
119
- def leaderboard_leaderboard_id_delete_with_http_info(
124
+ def benchmark_standing_leaderboard_id_participant_id_get_with_http_info(
120
125
  self,
121
- leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
126
+ leaderboard_id: StrictStr,
127
+ participant_id: StrictStr,
122
128
  _request_timeout: Union[
123
129
  None,
124
130
  Annotated[StrictFloat, Field(gt=0)],
@@ -131,12 +137,14 @@ class LeaderboardApi:
131
137
  _content_type: Optional[StrictStr] = None,
132
138
  _headers: Optional[Dict[StrictStr, Any]] = None,
133
139
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
- ) -> ApiResponse[GetLeaderboardByIdResult]:
135
- """Deletes a leaderboard by its ID.
140
+ ) -> ApiResponse[GetStandingByIdResult]:
141
+ """Gets a standing by leaderboardId and participantId.
136
142
 
137
143
 
138
- :param leaderboard_id: The id of the leaderboard that gets deleted (required)
144
+ :param leaderboard_id: (required)
139
145
  :type leaderboard_id: str
146
+ :param participant_id: (required)
147
+ :type participant_id: str
140
148
  :param _request_timeout: timeout setting for this request. If one
141
149
  number provided, it will be total request
142
150
  timeout. It can also be a pair (tuple) of
@@ -159,8 +167,9 @@ class LeaderboardApi:
159
167
  :return: Returns the result object.
160
168
  """ # noqa: E501
161
169
 
162
- _param = self._leaderboard_leaderboard_id_delete_serialize(
170
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
163
171
  leaderboard_id=leaderboard_id,
172
+ participant_id=participant_id,
164
173
  _request_auth=_request_auth,
165
174
  _content_type=_content_type,
166
175
  _headers=_headers,
@@ -168,7 +177,7 @@ class LeaderboardApi:
168
177
  )
169
178
 
170
179
  _response_types_map: Dict[str, Optional[str]] = {
171
- '204': "GetLeaderboardByIdResult",
180
+ '200': "GetStandingByIdResult",
172
181
  }
173
182
  response_data = self.api_client.call_api(
174
183
  *_param,
@@ -182,9 +191,10 @@ class LeaderboardApi:
182
191
 
183
192
 
184
193
  @validate_call
185
- def leaderboard_leaderboard_id_delete_without_preload_content(
194
+ def benchmark_standing_leaderboard_id_participant_id_get_without_preload_content(
186
195
  self,
187
- leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
196
+ leaderboard_id: StrictStr,
197
+ participant_id: StrictStr,
188
198
  _request_timeout: Union[
189
199
  None,
190
200
  Annotated[StrictFloat, Field(gt=0)],
@@ -198,11 +208,13 @@ class LeaderboardApi:
198
208
  _headers: Optional[Dict[StrictStr, Any]] = None,
199
209
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
210
  ) -> RESTResponseType:
201
- """Deletes a leaderboard by its ID.
211
+ """Gets a standing by leaderboardId and participantId.
202
212
 
203
213
 
204
- :param leaderboard_id: The id of the leaderboard that gets deleted (required)
214
+ :param leaderboard_id: (required)
205
215
  :type leaderboard_id: str
216
+ :param participant_id: (required)
217
+ :type participant_id: str
206
218
  :param _request_timeout: timeout setting for this request. If one
207
219
  number provided, it will be total request
208
220
  timeout. It can also be a pair (tuple) of
@@ -225,8 +237,9 @@ class LeaderboardApi:
225
237
  :return: Returns the result object.
226
238
  """ # noqa: E501
227
239
 
228
- _param = self._leaderboard_leaderboard_id_delete_serialize(
240
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
229
241
  leaderboard_id=leaderboard_id,
242
+ participant_id=participant_id,
230
243
  _request_auth=_request_auth,
231
244
  _content_type=_content_type,
232
245
  _headers=_headers,
@@ -234,7 +247,7 @@ class LeaderboardApi:
234
247
  )
235
248
 
236
249
  _response_types_map: Dict[str, Optional[str]] = {
237
- '204': "GetLeaderboardByIdResult",
250
+ '200': "GetStandingByIdResult",
238
251
  }
239
252
  response_data = self.api_client.call_api(
240
253
  *_param,
@@ -243,9 +256,10 @@ class LeaderboardApi:
243
256
  return response_data.response
244
257
 
245
258
 
246
- def _leaderboard_leaderboard_id_delete_serialize(
259
+ def _benchmark_standing_leaderboard_id_participant_id_get_serialize(
247
260
  self,
248
261
  leaderboard_id,
262
+ participant_id,
249
263
  _request_auth,
250
264
  _content_type,
251
265
  _headers,
@@ -269,6 +283,8 @@ class LeaderboardApi:
269
283
  # process the path parameters
270
284
  if leaderboard_id is not None:
271
285
  _path_params['leaderboardId'] = leaderboard_id
286
+ if participant_id is not None:
287
+ _path_params['participantId'] = participant_id
272
288
  # process the query parameters
273
289
  # process the header parameters
274
290
  # process the form parameters
@@ -293,8 +309,8 @@ class LeaderboardApi:
293
309
  ]
294
310
 
295
311
  return self.api_client.param_serialize(
296
- method='DELETE',
297
- resource_path='/leaderboard/{leaderboardId}',
312
+ method='GET',
313
+ resource_path='/benchmark/standing/{leaderboardId}/{participantId}',
298
314
  path_params=_path_params,
299
315
  query_params=_query_params,
300
316
  header_params=_header_params,
@@ -311,9 +327,10 @@ class LeaderboardApi:
311
327
 
312
328
 
313
329
  @validate_call
314
- def leaderboard_leaderboard_id_get(
330
+ def leaderboard_leaderboard_id_boost_post(
315
331
  self,
316
- leaderboard_id: StrictStr,
332
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
333
+ boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
317
334
  _request_timeout: Union[
318
335
  None,
319
336
  Annotated[StrictFloat, Field(gt=0)],
@@ -326,12 +343,14 @@ class LeaderboardApi:
326
343
  _content_type: Optional[StrictStr] = None,
327
344
  _headers: Optional[Dict[StrictStr, Any]] = None,
328
345
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
329
- ) -> GetLeaderboardByIdResult:
330
- """Gets a leaderboard by its ID.
346
+ ) -> SubmitParticipantResult:
347
+ """Boosts a subset of participants within a leaderboard.
331
348
 
332
349
 
333
- :param leaderboard_id: (required)
350
+ :param leaderboard_id: the leaderboard that should be boosted (required)
334
351
  :type leaderboard_id: str
352
+ :param boost_leaderboard_model:
353
+ :type boost_leaderboard_model: BoostLeaderboardModel
335
354
  :param _request_timeout: timeout setting for this request. If one
336
355
  number provided, it will be total request
337
356
  timeout. It can also be a pair (tuple) of
@@ -354,8 +373,9 @@ class LeaderboardApi:
354
373
  :return: Returns the result object.
355
374
  """ # noqa: E501
356
375
 
357
- _param = self._leaderboard_leaderboard_id_get_serialize(
376
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
358
377
  leaderboard_id=leaderboard_id,
378
+ boost_leaderboard_model=boost_leaderboard_model,
359
379
  _request_auth=_request_auth,
360
380
  _content_type=_content_type,
361
381
  _headers=_headers,
@@ -363,7 +383,7 @@ class LeaderboardApi:
363
383
  )
364
384
 
365
385
  _response_types_map: Dict[str, Optional[str]] = {
366
- '200': "GetLeaderboardByIdResult",
386
+ '200': "SubmitParticipantResult",
367
387
  }
368
388
  response_data = self.api_client.call_api(
369
389
  *_param,
@@ -377,9 +397,10 @@ class LeaderboardApi:
377
397
 
378
398
 
379
399
  @validate_call
380
- def leaderboard_leaderboard_id_get_with_http_info(
400
+ def leaderboard_leaderboard_id_boost_post_with_http_info(
381
401
  self,
382
- leaderboard_id: StrictStr,
402
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
403
+ boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
383
404
  _request_timeout: Union[
384
405
  None,
385
406
  Annotated[StrictFloat, Field(gt=0)],
@@ -392,12 +413,14 @@ class LeaderboardApi:
392
413
  _content_type: Optional[StrictStr] = None,
393
414
  _headers: Optional[Dict[StrictStr, Any]] = None,
394
415
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
395
- ) -> ApiResponse[GetLeaderboardByIdResult]:
396
- """Gets a leaderboard by its ID.
416
+ ) -> ApiResponse[SubmitParticipantResult]:
417
+ """Boosts a subset of participants within a leaderboard.
397
418
 
398
419
 
399
- :param leaderboard_id: (required)
420
+ :param leaderboard_id: the leaderboard that should be boosted (required)
400
421
  :type leaderboard_id: str
422
+ :param boost_leaderboard_model:
423
+ :type boost_leaderboard_model: BoostLeaderboardModel
401
424
  :param _request_timeout: timeout setting for this request. If one
402
425
  number provided, it will be total request
403
426
  timeout. It can also be a pair (tuple) of
@@ -420,8 +443,9 @@ class LeaderboardApi:
420
443
  :return: Returns the result object.
421
444
  """ # noqa: E501
422
445
 
423
- _param = self._leaderboard_leaderboard_id_get_serialize(
446
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
424
447
  leaderboard_id=leaderboard_id,
448
+ boost_leaderboard_model=boost_leaderboard_model,
425
449
  _request_auth=_request_auth,
426
450
  _content_type=_content_type,
427
451
  _headers=_headers,
@@ -429,7 +453,7 @@ class LeaderboardApi:
429
453
  )
430
454
 
431
455
  _response_types_map: Dict[str, Optional[str]] = {
432
- '200': "GetLeaderboardByIdResult",
456
+ '200': "SubmitParticipantResult",
433
457
  }
434
458
  response_data = self.api_client.call_api(
435
459
  *_param,
@@ -443,9 +467,10 @@ class LeaderboardApi:
443
467
 
444
468
 
445
469
  @validate_call
446
- def leaderboard_leaderboard_id_get_without_preload_content(
470
+ def leaderboard_leaderboard_id_boost_post_without_preload_content(
447
471
  self,
448
- leaderboard_id: StrictStr,
472
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
473
+ boost_leaderboard_model: Optional[BoostLeaderboardModel] = None,
449
474
  _request_timeout: Union[
450
475
  None,
451
476
  Annotated[StrictFloat, Field(gt=0)],
@@ -459,11 +484,13 @@ class LeaderboardApi:
459
484
  _headers: Optional[Dict[StrictStr, Any]] = None,
460
485
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
461
486
  ) -> RESTResponseType:
462
- """Gets a leaderboard by its ID.
487
+ """Boosts a subset of participants within a leaderboard.
463
488
 
464
489
 
465
- :param leaderboard_id: (required)
490
+ :param leaderboard_id: the leaderboard that should be boosted (required)
466
491
  :type leaderboard_id: str
492
+ :param boost_leaderboard_model:
493
+ :type boost_leaderboard_model: BoostLeaderboardModel
467
494
  :param _request_timeout: timeout setting for this request. If one
468
495
  number provided, it will be total request
469
496
  timeout. It can also be a pair (tuple) of
@@ -486,8 +513,9 @@ class LeaderboardApi:
486
513
  :return: Returns the result object.
487
514
  """ # noqa: E501
488
515
 
489
- _param = self._leaderboard_leaderboard_id_get_serialize(
516
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
490
517
  leaderboard_id=leaderboard_id,
518
+ boost_leaderboard_model=boost_leaderboard_model,
491
519
  _request_auth=_request_auth,
492
520
  _content_type=_content_type,
493
521
  _headers=_headers,
@@ -495,7 +523,7 @@ class LeaderboardApi:
495
523
  )
496
524
 
497
525
  _response_types_map: Dict[str, Optional[str]] = {
498
- '200': "GetLeaderboardByIdResult",
526
+ '200': "SubmitParticipantResult",
499
527
  }
500
528
  response_data = self.api_client.call_api(
501
529
  *_param,
@@ -504,9 +532,10 @@ class LeaderboardApi:
504
532
  return response_data.response
505
533
 
506
534
 
507
- def _leaderboard_leaderboard_id_get_serialize(
535
+ def _leaderboard_leaderboard_id_boost_post_serialize(
508
536
  self,
509
537
  leaderboard_id,
538
+ boost_leaderboard_model,
510
539
  _request_auth,
511
540
  _content_type,
512
541
  _headers,
@@ -534,6 +563,8 @@ class LeaderboardApi:
534
563
  # process the header parameters
535
564
  # process the form parameters
536
565
  # process the body parameter
566
+ if boost_leaderboard_model is not None:
567
+ _body_params = boost_leaderboard_model
537
568
 
538
569
 
539
570
  # set the HTTP header `Accept`
@@ -546,6 +577,21 @@ class LeaderboardApi:
546
577
  ]
547
578
  )
548
579
 
580
+ # set the HTTP header `Content-Type`
581
+ if _content_type:
582
+ _header_params['Content-Type'] = _content_type
583
+ else:
584
+ _default_content_type = (
585
+ self.api_client.select_header_content_type(
586
+ [
587
+ 'application/json',
588
+ 'text/json',
589
+ 'application/*+json'
590
+ ]
591
+ )
592
+ )
593
+ if _default_content_type is not None:
594
+ _header_params['Content-Type'] = _default_content_type
549
595
 
550
596
  # authentication setting
551
597
  _auth_settings: List[str] = [
@@ -554,8 +600,8 @@ class LeaderboardApi:
554
600
  ]
555
601
 
556
602
  return self.api_client.param_serialize(
557
- method='GET',
558
- resource_path='/leaderboard/{leaderboardId}',
603
+ method='POST',
604
+ resource_path='/leaderboard/{leaderboardId}/boost',
559
605
  path_params=_path_params,
560
606
  query_params=_query_params,
561
607
  header_params=_header_params,
@@ -572,10 +618,9 @@ class LeaderboardApi:
572
618
 
573
619
 
574
620
  @validate_call
575
- def leaderboard_leaderboard_id_participants_get(
621
+ def leaderboard_leaderboard_id_delete(
576
622
  self,
577
- leaderboard_id: StrictStr,
578
- request: Optional[QueryModel] = None,
623
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
579
624
  _request_timeout: Union[
580
625
  None,
581
626
  Annotated[StrictFloat, Field(gt=0)],
@@ -588,14 +633,12 @@ class LeaderboardApi:
588
633
  _content_type: Optional[StrictStr] = None,
589
634
  _headers: Optional[Dict[StrictStr, Any]] = None,
590
635
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
591
- ) -> ParticipantByLeaderboardPagedResult:
592
- """queries all the participants of a leaderboard by its ID.
636
+ ) -> None:
637
+ """Deletes a leaderboard by its ID.
593
638
 
594
639
 
595
- :param leaderboard_id: (required)
640
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
596
641
  :type leaderboard_id: str
597
- :param request:
598
- :type request: QueryModel
599
642
  :param _request_timeout: timeout setting for this request. If one
600
643
  number provided, it will be total request
601
644
  timeout. It can also be a pair (tuple) of
@@ -618,9 +661,8 @@ class LeaderboardApi:
618
661
  :return: Returns the result object.
619
662
  """ # noqa: E501
620
663
 
621
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
664
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
622
665
  leaderboard_id=leaderboard_id,
623
- request=request,
624
666
  _request_auth=_request_auth,
625
667
  _content_type=_content_type,
626
668
  _headers=_headers,
@@ -628,7 +670,7 @@ class LeaderboardApi:
628
670
  )
629
671
 
630
672
  _response_types_map: Dict[str, Optional[str]] = {
631
- '200': "ParticipantByLeaderboardPagedResult",
673
+ '204': None,
632
674
  }
633
675
  response_data = self.api_client.call_api(
634
676
  *_param,
@@ -642,10 +684,9 @@ class LeaderboardApi:
642
684
 
643
685
 
644
686
  @validate_call
645
- def leaderboard_leaderboard_id_participants_get_with_http_info(
687
+ def leaderboard_leaderboard_id_delete_with_http_info(
646
688
  self,
647
- leaderboard_id: StrictStr,
648
- request: Optional[QueryModel] = None,
689
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
649
690
  _request_timeout: Union[
650
691
  None,
651
692
  Annotated[StrictFloat, Field(gt=0)],
@@ -658,14 +699,12 @@ class LeaderboardApi:
658
699
  _content_type: Optional[StrictStr] = None,
659
700
  _headers: Optional[Dict[StrictStr, Any]] = None,
660
701
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
661
- ) -> ApiResponse[ParticipantByLeaderboardPagedResult]:
662
- """queries all the participants of a leaderboard by its ID.
702
+ ) -> ApiResponse[None]:
703
+ """Deletes a leaderboard by its ID.
663
704
 
664
705
 
665
- :param leaderboard_id: (required)
706
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
666
707
  :type leaderboard_id: str
667
- :param request:
668
- :type request: QueryModel
669
708
  :param _request_timeout: timeout setting for this request. If one
670
709
  number provided, it will be total request
671
710
  timeout. It can also be a pair (tuple) of
@@ -688,9 +727,8 @@ class LeaderboardApi:
688
727
  :return: Returns the result object.
689
728
  """ # noqa: E501
690
729
 
691
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
730
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
692
731
  leaderboard_id=leaderboard_id,
693
- request=request,
694
732
  _request_auth=_request_auth,
695
733
  _content_type=_content_type,
696
734
  _headers=_headers,
@@ -698,7 +736,7 @@ class LeaderboardApi:
698
736
  )
699
737
 
700
738
  _response_types_map: Dict[str, Optional[str]] = {
701
- '200': "ParticipantByLeaderboardPagedResult",
739
+ '204': None,
702
740
  }
703
741
  response_data = self.api_client.call_api(
704
742
  *_param,
@@ -712,10 +750,9 @@ class LeaderboardApi:
712
750
 
713
751
 
714
752
  @validate_call
715
- def leaderboard_leaderboard_id_participants_get_without_preload_content(
753
+ def leaderboard_leaderboard_id_delete_without_preload_content(
716
754
  self,
717
- leaderboard_id: StrictStr,
718
- request: Optional[QueryModel] = None,
755
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
719
756
  _request_timeout: Union[
720
757
  None,
721
758
  Annotated[StrictFloat, Field(gt=0)],
@@ -729,13 +766,11 @@ class LeaderboardApi:
729
766
  _headers: Optional[Dict[StrictStr, Any]] = None,
730
767
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
731
768
  ) -> RESTResponseType:
732
- """queries all the participants of a leaderboard by its ID.
769
+ """Deletes a leaderboard by its ID.
733
770
 
734
771
 
735
- :param leaderboard_id: (required)
772
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
736
773
  :type leaderboard_id: str
737
- :param request:
738
- :type request: QueryModel
739
774
  :param _request_timeout: timeout setting for this request. If one
740
775
  number provided, it will be total request
741
776
  timeout. It can also be a pair (tuple) of
@@ -758,9 +793,8 @@ class LeaderboardApi:
758
793
  :return: Returns the result object.
759
794
  """ # noqa: E501
760
795
 
761
- _param = self._leaderboard_leaderboard_id_participants_get_serialize(
796
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
762
797
  leaderboard_id=leaderboard_id,
763
- request=request,
764
798
  _request_auth=_request_auth,
765
799
  _content_type=_content_type,
766
800
  _headers=_headers,
@@ -768,7 +802,7 @@ class LeaderboardApi:
768
802
  )
769
803
 
770
804
  _response_types_map: Dict[str, Optional[str]] = {
771
- '200': "ParticipantByLeaderboardPagedResult",
805
+ '204': None,
772
806
  }
773
807
  response_data = self.api_client.call_api(
774
808
  *_param,
@@ -777,10 +811,9 @@ class LeaderboardApi:
777
811
  return response_data.response
778
812
 
779
813
 
780
- def _leaderboard_leaderboard_id_participants_get_serialize(
814
+ def _leaderboard_leaderboard_id_delete_serialize(
781
815
  self,
782
816
  leaderboard_id,
783
- request,
784
817
  _request_auth,
785
818
  _content_type,
786
819
  _headers,
@@ -805,24 +838,11 @@ class LeaderboardApi:
805
838
  if leaderboard_id is not None:
806
839
  _path_params['leaderboardId'] = leaderboard_id
807
840
  # process the query parameters
808
- if request is not None:
809
-
810
- _query_params.append(('request', request))
811
-
812
841
  # process the header parameters
813
842
  # process the form parameters
814
843
  # process the body parameter
815
844
 
816
845
 
817
- # set the HTTP header `Accept`
818
- if 'Accept' not in _header_params:
819
- _header_params['Accept'] = self.api_client.select_header_accept(
820
- [
821
- 'text/plain',
822
- 'application/json',
823
- 'text/json'
824
- ]
825
- )
826
846
 
827
847
 
828
848
  # authentication setting
@@ -832,8 +852,8 @@ class LeaderboardApi:
832
852
  ]
833
853
 
834
854
  return self.api_client.param_serialize(
835
- method='GET',
836
- resource_path='/leaderboard/{leaderboardId}/participants',
855
+ method='DELETE',
856
+ resource_path='/leaderboard/{leaderboardId}',
837
857
  path_params=_path_params,
838
858
  query_params=_query_params,
839
859
  header_params=_header_params,
@@ -850,10 +870,9 @@ class LeaderboardApi:
850
870
 
851
871
 
852
872
  @validate_call
853
- def leaderboard_leaderboard_id_participants_participant_id_submit_post(
873
+ def leaderboard_leaderboard_id_get(
854
874
  self,
855
875
  leaderboard_id: StrictStr,
856
- participant_id: StrictStr,
857
876
  _request_timeout: Union[
858
877
  None,
859
878
  Annotated[StrictFloat, Field(gt=0)],
@@ -866,14 +885,12 @@ class LeaderboardApi:
866
885
  _content_type: Optional[StrictStr] = None,
867
886
  _headers: Optional[Dict[StrictStr, Any]] = None,
868
887
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
869
- ) -> SubmitParticipantResult:
870
- """Submits a participant to a leaderboard.
888
+ ) -> GetLeaderboardByIdResult:
889
+ """Gets a leaderboard by its ID.
871
890
 
872
891
 
873
892
  :param leaderboard_id: (required)
874
893
  :type leaderboard_id: str
875
- :param participant_id: (required)
876
- :type participant_id: str
877
894
  :param _request_timeout: timeout setting for this request. If one
878
895
  number provided, it will be total request
879
896
  timeout. It can also be a pair (tuple) of
@@ -896,9 +913,8 @@ class LeaderboardApi:
896
913
  :return: Returns the result object.
897
914
  """ # noqa: E501
898
915
 
899
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
916
+ _param = self._leaderboard_leaderboard_id_get_serialize(
900
917
  leaderboard_id=leaderboard_id,
901
- participant_id=participant_id,
902
918
  _request_auth=_request_auth,
903
919
  _content_type=_content_type,
904
920
  _headers=_headers,
@@ -906,7 +922,7 @@ class LeaderboardApi:
906
922
  )
907
923
 
908
924
  _response_types_map: Dict[str, Optional[str]] = {
909
- '200': "SubmitParticipantResult",
925
+ '200': "GetLeaderboardByIdResult",
910
926
  }
911
927
  response_data = self.api_client.call_api(
912
928
  *_param,
@@ -920,10 +936,9 @@ class LeaderboardApi:
920
936
 
921
937
 
922
938
  @validate_call
923
- def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
939
+ def leaderboard_leaderboard_id_get_with_http_info(
924
940
  self,
925
941
  leaderboard_id: StrictStr,
926
- participant_id: StrictStr,
927
942
  _request_timeout: Union[
928
943
  None,
929
944
  Annotated[StrictFloat, Field(gt=0)],
@@ -936,14 +951,12 @@ class LeaderboardApi:
936
951
  _content_type: Optional[StrictStr] = None,
937
952
  _headers: Optional[Dict[StrictStr, Any]] = None,
938
953
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
939
- ) -> ApiResponse[SubmitParticipantResult]:
940
- """Submits a participant to a leaderboard.
954
+ ) -> ApiResponse[GetLeaderboardByIdResult]:
955
+ """Gets a leaderboard by its ID.
941
956
 
942
957
 
943
958
  :param leaderboard_id: (required)
944
959
  :type leaderboard_id: str
945
- :param participant_id: (required)
946
- :type participant_id: str
947
960
  :param _request_timeout: timeout setting for this request. If one
948
961
  number provided, it will be total request
949
962
  timeout. It can also be a pair (tuple) of
@@ -966,9 +979,8 @@ class LeaderboardApi:
966
979
  :return: Returns the result object.
967
980
  """ # noqa: E501
968
981
 
969
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
982
+ _param = self._leaderboard_leaderboard_id_get_serialize(
970
983
  leaderboard_id=leaderboard_id,
971
- participant_id=participant_id,
972
984
  _request_auth=_request_auth,
973
985
  _content_type=_content_type,
974
986
  _headers=_headers,
@@ -976,7 +988,7 @@ class LeaderboardApi:
976
988
  )
977
989
 
978
990
  _response_types_map: Dict[str, Optional[str]] = {
979
- '200': "SubmitParticipantResult",
991
+ '200': "GetLeaderboardByIdResult",
980
992
  }
981
993
  response_data = self.api_client.call_api(
982
994
  *_param,
@@ -990,10 +1002,9 @@ class LeaderboardApi:
990
1002
 
991
1003
 
992
1004
  @validate_call
993
- def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
1005
+ def leaderboard_leaderboard_id_get_without_preload_content(
994
1006
  self,
995
1007
  leaderboard_id: StrictStr,
996
- participant_id: StrictStr,
997
1008
  _request_timeout: Union[
998
1009
  None,
999
1010
  Annotated[StrictFloat, Field(gt=0)],
@@ -1007,13 +1018,11 @@ class LeaderboardApi:
1007
1018
  _headers: Optional[Dict[StrictStr, Any]] = None,
1008
1019
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1009
1020
  ) -> RESTResponseType:
1010
- """Submits a participant to a leaderboard.
1021
+ """Gets a leaderboard by its ID.
1011
1022
 
1012
1023
 
1013
1024
  :param leaderboard_id: (required)
1014
1025
  :type leaderboard_id: str
1015
- :param participant_id: (required)
1016
- :type participant_id: str
1017
1026
  :param _request_timeout: timeout setting for this request. If one
1018
1027
  number provided, it will be total request
1019
1028
  timeout. It can also be a pair (tuple) of
@@ -1036,9 +1045,8 @@ class LeaderboardApi:
1036
1045
  :return: Returns the result object.
1037
1046
  """ # noqa: E501
1038
1047
 
1039
- _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1048
+ _param = self._leaderboard_leaderboard_id_get_serialize(
1040
1049
  leaderboard_id=leaderboard_id,
1041
- participant_id=participant_id,
1042
1050
  _request_auth=_request_auth,
1043
1051
  _content_type=_content_type,
1044
1052
  _headers=_headers,
@@ -1046,7 +1054,7 @@ class LeaderboardApi:
1046
1054
  )
1047
1055
 
1048
1056
  _response_types_map: Dict[str, Optional[str]] = {
1049
- '200': "SubmitParticipantResult",
1057
+ '200': "GetLeaderboardByIdResult",
1050
1058
  }
1051
1059
  response_data = self.api_client.call_api(
1052
1060
  *_param,
@@ -1055,10 +1063,9 @@ class LeaderboardApi:
1055
1063
  return response_data.response
1056
1064
 
1057
1065
 
1058
- def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1066
+ def _leaderboard_leaderboard_id_get_serialize(
1059
1067
  self,
1060
1068
  leaderboard_id,
1061
- participant_id,
1062
1069
  _request_auth,
1063
1070
  _content_type,
1064
1071
  _headers,
@@ -1082,8 +1089,6 @@ class LeaderboardApi:
1082
1089
  # process the path parameters
1083
1090
  if leaderboard_id is not None:
1084
1091
  _path_params['leaderboardId'] = leaderboard_id
1085
- if participant_id is not None:
1086
- _path_params['participantId'] = participant_id
1087
1092
  # process the query parameters
1088
1093
  # process the header parameters
1089
1094
  # process the form parameters
@@ -1108,8 +1113,8 @@ class LeaderboardApi:
1108
1113
  ]
1109
1114
 
1110
1115
  return self.api_client.param_serialize(
1111
- method='POST',
1112
- resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
1116
+ method='GET',
1117
+ resource_path='/leaderboard/{leaderboardId}',
1113
1118
  path_params=_path_params,
1114
1119
  query_params=_query_params,
1115
1120
  header_params=_header_params,
@@ -1126,10 +1131,10 @@ class LeaderboardApi:
1126
1131
 
1127
1132
 
1128
1133
  @validate_call
1129
- def leaderboard_leaderboard_id_participants_post(
1134
+ def leaderboard_leaderboard_id_participant_participant_id_get(
1130
1135
  self,
1131
1136
  leaderboard_id: StrictStr,
1132
- create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
1137
+ participant_id: StrictStr,
1133
1138
  _request_timeout: Union[
1134
1139
  None,
1135
1140
  Annotated[StrictFloat, Field(gt=0)],
@@ -1142,14 +1147,14 @@ class LeaderboardApi:
1142
1147
  _content_type: Optional[StrictStr] = None,
1143
1148
  _headers: Optional[Dict[StrictStr, Any]] = None,
1144
1149
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1145
- ) -> CreateLeaderboardParticipantResult:
1146
- """Creates a participant in a leaderboard.
1150
+ ) -> GetStandingByIdResult:
1151
+ """(Deprecated) Gets a participant by its ID.
1147
1152
 
1148
1153
 
1149
1154
  :param leaderboard_id: (required)
1150
1155
  :type leaderboard_id: str
1151
- :param create_leaderboard_participant_model:
1152
- :type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
1156
+ :param participant_id: (required)
1157
+ :type participant_id: str
1153
1158
  :param _request_timeout: timeout setting for this request. If one
1154
1159
  number provided, it will be total request
1155
1160
  timeout. It can also be a pair (tuple) of
@@ -1171,10 +1176,11 @@ class LeaderboardApi:
1171
1176
  :type _host_index: int, optional
1172
1177
  :return: Returns the result object.
1173
1178
  """ # noqa: E501
1179
+ warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1174
1180
 
1175
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
1181
+ _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1176
1182
  leaderboard_id=leaderboard_id,
1177
- create_leaderboard_participant_model=create_leaderboard_participant_model,
1183
+ participant_id=participant_id,
1178
1184
  _request_auth=_request_auth,
1179
1185
  _content_type=_content_type,
1180
1186
  _headers=_headers,
@@ -1182,7 +1188,7 @@ class LeaderboardApi:
1182
1188
  )
1183
1189
 
1184
1190
  _response_types_map: Dict[str, Optional[str]] = {
1185
- '200': "CreateLeaderboardParticipantResult",
1191
+ '200': "GetStandingByIdResult",
1186
1192
  }
1187
1193
  response_data = self.api_client.call_api(
1188
1194
  *_param,
@@ -1196,10 +1202,10 @@ class LeaderboardApi:
1196
1202
 
1197
1203
 
1198
1204
  @validate_call
1199
- def leaderboard_leaderboard_id_participants_post_with_http_info(
1205
+ def leaderboard_leaderboard_id_participant_participant_id_get_with_http_info(
1200
1206
  self,
1201
1207
  leaderboard_id: StrictStr,
1202
- create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
1208
+ participant_id: StrictStr,
1203
1209
  _request_timeout: Union[
1204
1210
  None,
1205
1211
  Annotated[StrictFloat, Field(gt=0)],
@@ -1212,14 +1218,14 @@ class LeaderboardApi:
1212
1218
  _content_type: Optional[StrictStr] = None,
1213
1219
  _headers: Optional[Dict[StrictStr, Any]] = None,
1214
1220
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1215
- ) -> ApiResponse[CreateLeaderboardParticipantResult]:
1216
- """Creates a participant in a leaderboard.
1221
+ ) -> ApiResponse[GetStandingByIdResult]:
1222
+ """(Deprecated) Gets a participant by its ID.
1217
1223
 
1218
1224
 
1219
1225
  :param leaderboard_id: (required)
1220
1226
  :type leaderboard_id: str
1221
- :param create_leaderboard_participant_model:
1222
- :type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
1227
+ :param participant_id: (required)
1228
+ :type participant_id: str
1223
1229
  :param _request_timeout: timeout setting for this request. If one
1224
1230
  number provided, it will be total request
1225
1231
  timeout. It can also be a pair (tuple) of
@@ -1241,10 +1247,11 @@ class LeaderboardApi:
1241
1247
  :type _host_index: int, optional
1242
1248
  :return: Returns the result object.
1243
1249
  """ # noqa: E501
1250
+ warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1244
1251
 
1245
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
1252
+ _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1246
1253
  leaderboard_id=leaderboard_id,
1247
- create_leaderboard_participant_model=create_leaderboard_participant_model,
1254
+ participant_id=participant_id,
1248
1255
  _request_auth=_request_auth,
1249
1256
  _content_type=_content_type,
1250
1257
  _headers=_headers,
@@ -1252,7 +1259,7 @@ class LeaderboardApi:
1252
1259
  )
1253
1260
 
1254
1261
  _response_types_map: Dict[str, Optional[str]] = {
1255
- '200': "CreateLeaderboardParticipantResult",
1262
+ '200': "GetStandingByIdResult",
1256
1263
  }
1257
1264
  response_data = self.api_client.call_api(
1258
1265
  *_param,
@@ -1266,10 +1273,10 @@ class LeaderboardApi:
1266
1273
 
1267
1274
 
1268
1275
  @validate_call
1269
- def leaderboard_leaderboard_id_participants_post_without_preload_content(
1276
+ def leaderboard_leaderboard_id_participant_participant_id_get_without_preload_content(
1270
1277
  self,
1271
1278
  leaderboard_id: StrictStr,
1272
- create_leaderboard_participant_model: Optional[CreateLeaderboardParticipantModel] = None,
1279
+ participant_id: StrictStr,
1273
1280
  _request_timeout: Union[
1274
1281
  None,
1275
1282
  Annotated[StrictFloat, Field(gt=0)],
@@ -1283,13 +1290,13 @@ class LeaderboardApi:
1283
1290
  _headers: Optional[Dict[StrictStr, Any]] = None,
1284
1291
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
1292
  ) -> RESTResponseType:
1286
- """Creates a participant in a leaderboard.
1293
+ """(Deprecated) Gets a participant by its ID.
1287
1294
 
1288
1295
 
1289
1296
  :param leaderboard_id: (required)
1290
1297
  :type leaderboard_id: str
1291
- :param create_leaderboard_participant_model:
1292
- :type create_leaderboard_participant_model: CreateLeaderboardParticipantModel
1298
+ :param participant_id: (required)
1299
+ :type participant_id: str
1293
1300
  :param _request_timeout: timeout setting for this request. If one
1294
1301
  number provided, it will be total request
1295
1302
  timeout. It can also be a pair (tuple) of
@@ -1311,10 +1318,11 @@ class LeaderboardApi:
1311
1318
  :type _host_index: int, optional
1312
1319
  :return: Returns the result object.
1313
1320
  """ # noqa: E501
1321
+ warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
1314
1322
 
1315
- _param = self._leaderboard_leaderboard_id_participants_post_serialize(
1323
+ _param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1316
1324
  leaderboard_id=leaderboard_id,
1317
- create_leaderboard_participant_model=create_leaderboard_participant_model,
1325
+ participant_id=participant_id,
1318
1326
  _request_auth=_request_auth,
1319
1327
  _content_type=_content_type,
1320
1328
  _headers=_headers,
@@ -1322,7 +1330,7 @@ class LeaderboardApi:
1322
1330
  )
1323
1331
 
1324
1332
  _response_types_map: Dict[str, Optional[str]] = {
1325
- '200': "CreateLeaderboardParticipantResult",
1333
+ '200': "GetStandingByIdResult",
1326
1334
  }
1327
1335
  response_data = self.api_client.call_api(
1328
1336
  *_param,
@@ -1331,10 +1339,10 @@ class LeaderboardApi:
1331
1339
  return response_data.response
1332
1340
 
1333
1341
 
1334
- def _leaderboard_leaderboard_id_participants_post_serialize(
1342
+ def _leaderboard_leaderboard_id_participant_participant_id_get_serialize(
1335
1343
  self,
1336
1344
  leaderboard_id,
1337
- create_leaderboard_participant_model,
1345
+ participant_id,
1338
1346
  _request_auth,
1339
1347
  _content_type,
1340
1348
  _headers,
@@ -1358,12 +1366,12 @@ class LeaderboardApi:
1358
1366
  # process the path parameters
1359
1367
  if leaderboard_id is not None:
1360
1368
  _path_params['leaderboardId'] = leaderboard_id
1369
+ if participant_id is not None:
1370
+ _path_params['participantId'] = participant_id
1361
1371
  # process the query parameters
1362
1372
  # process the header parameters
1363
1373
  # process the form parameters
1364
1374
  # process the body parameter
1365
- if create_leaderboard_participant_model is not None:
1366
- _body_params = create_leaderboard_participant_model
1367
1375
 
1368
1376
 
1369
1377
  # set the HTTP header `Accept`
@@ -1376,21 +1384,6 @@ class LeaderboardApi:
1376
1384
  ]
1377
1385
  )
1378
1386
 
1379
- # set the HTTP header `Content-Type`
1380
- if _content_type:
1381
- _header_params['Content-Type'] = _content_type
1382
- else:
1383
- _default_content_type = (
1384
- self.api_client.select_header_content_type(
1385
- [
1386
- 'application/json',
1387
- 'text/json',
1388
- 'application/*+json'
1389
- ]
1390
- )
1391
- )
1392
- if _default_content_type is not None:
1393
- _header_params['Content-Type'] = _default_content_type
1394
1387
 
1395
1388
  # authentication setting
1396
1389
  _auth_settings: List[str] = [
@@ -1399,8 +1392,8 @@ class LeaderboardApi:
1399
1392
  ]
1400
1393
 
1401
1394
  return self.api_client.param_serialize(
1402
- method='POST',
1403
- resource_path='/leaderboard/{leaderboardId}/participants',
1395
+ method='GET',
1396
+ resource_path='/leaderboard/{leaderboardId}/participant/{participantId}',
1404
1397
  path_params=_path_params,
1405
1398
  query_params=_query_params,
1406
1399
  header_params=_header_params,
@@ -1417,7 +1410,7 @@ class LeaderboardApi:
1417
1410
 
1418
1411
 
1419
1412
  @validate_call
1420
- def leaderboard_leaderboard_id_prompts_get(
1413
+ def leaderboard_leaderboard_id_participants_get(
1421
1414
  self,
1422
1415
  leaderboard_id: StrictStr,
1423
1416
  request: Optional[QueryModel] = None,
@@ -1433,8 +1426,8 @@ class LeaderboardApi:
1433
1426
  _content_type: Optional[StrictStr] = None,
1434
1427
  _headers: Optional[Dict[StrictStr, Any]] = None,
1435
1428
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1436
- ) -> PromptByLeaderboardResultPagedResult:
1437
- """returns the paged prompts of a leaderboard by its ID.
1429
+ ) -> StandingByLeaderboardPagedResult:
1430
+ """(Deprecated) queries all the participants connected to leaderboard by its ID.
1438
1431
 
1439
1432
 
1440
1433
  :param leaderboard_id: (required)
@@ -1462,8 +1455,9 @@ class LeaderboardApi:
1462
1455
  :type _host_index: int, optional
1463
1456
  :return: Returns the result object.
1464
1457
  """ # noqa: E501
1458
+ warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1465
1459
 
1466
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
1460
+ _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1467
1461
  leaderboard_id=leaderboard_id,
1468
1462
  request=request,
1469
1463
  _request_auth=_request_auth,
@@ -1473,7 +1467,7 @@ class LeaderboardApi:
1473
1467
  )
1474
1468
 
1475
1469
  _response_types_map: Dict[str, Optional[str]] = {
1476
- '200': "PromptByLeaderboardResultPagedResult",
1470
+ '200': "StandingByLeaderboardPagedResult",
1477
1471
  }
1478
1472
  response_data = self.api_client.call_api(
1479
1473
  *_param,
@@ -1487,7 +1481,7 @@ class LeaderboardApi:
1487
1481
 
1488
1482
 
1489
1483
  @validate_call
1490
- def leaderboard_leaderboard_id_prompts_get_with_http_info(
1484
+ def leaderboard_leaderboard_id_participants_get_with_http_info(
1491
1485
  self,
1492
1486
  leaderboard_id: StrictStr,
1493
1487
  request: Optional[QueryModel] = None,
@@ -1503,8 +1497,8 @@ class LeaderboardApi:
1503
1497
  _content_type: Optional[StrictStr] = None,
1504
1498
  _headers: Optional[Dict[StrictStr, Any]] = None,
1505
1499
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1506
- ) -> ApiResponse[PromptByLeaderboardResultPagedResult]:
1507
- """returns the paged prompts of a leaderboard by its ID.
1500
+ ) -> ApiResponse[StandingByLeaderboardPagedResult]:
1501
+ """(Deprecated) queries all the participants connected to leaderboard by its ID.
1508
1502
 
1509
1503
 
1510
1504
  :param leaderboard_id: (required)
@@ -1532,8 +1526,9 @@ class LeaderboardApi:
1532
1526
  :type _host_index: int, optional
1533
1527
  :return: Returns the result object.
1534
1528
  """ # noqa: E501
1529
+ warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1535
1530
 
1536
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
1531
+ _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1537
1532
  leaderboard_id=leaderboard_id,
1538
1533
  request=request,
1539
1534
  _request_auth=_request_auth,
@@ -1543,7 +1538,7 @@ class LeaderboardApi:
1543
1538
  )
1544
1539
 
1545
1540
  _response_types_map: Dict[str, Optional[str]] = {
1546
- '200': "PromptByLeaderboardResultPagedResult",
1541
+ '200': "StandingByLeaderboardPagedResult",
1547
1542
  }
1548
1543
  response_data = self.api_client.call_api(
1549
1544
  *_param,
@@ -1557,7 +1552,7 @@ class LeaderboardApi:
1557
1552
 
1558
1553
 
1559
1554
  @validate_call
1560
- def leaderboard_leaderboard_id_prompts_get_without_preload_content(
1555
+ def leaderboard_leaderboard_id_participants_get_without_preload_content(
1561
1556
  self,
1562
1557
  leaderboard_id: StrictStr,
1563
1558
  request: Optional[QueryModel] = None,
@@ -1574,7 +1569,7 @@ class LeaderboardApi:
1574
1569
  _headers: Optional[Dict[StrictStr, Any]] = None,
1575
1570
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1576
1571
  ) -> RESTResponseType:
1577
- """returns the paged prompts of a leaderboard by its ID.
1572
+ """(Deprecated) queries all the participants connected to leaderboard by its ID.
1578
1573
 
1579
1574
 
1580
1575
  :param leaderboard_id: (required)
@@ -1602,8 +1597,9 @@ class LeaderboardApi:
1602
1597
  :type _host_index: int, optional
1603
1598
  :return: Returns the result object.
1604
1599
  """ # noqa: E501
1600
+ warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
1605
1601
 
1606
- _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
1602
+ _param = self._leaderboard_leaderboard_id_participants_get_serialize(
1607
1603
  leaderboard_id=leaderboard_id,
1608
1604
  request=request,
1609
1605
  _request_auth=_request_auth,
@@ -1613,7 +1609,7 @@ class LeaderboardApi:
1613
1609
  )
1614
1610
 
1615
1611
  _response_types_map: Dict[str, Optional[str]] = {
1616
- '200': "PromptByLeaderboardResultPagedResult",
1612
+ '200': "StandingByLeaderboardPagedResult",
1617
1613
  }
1618
1614
  response_data = self.api_client.call_api(
1619
1615
  *_param,
@@ -1622,7 +1618,7 @@ class LeaderboardApi:
1622
1618
  return response_data.response
1623
1619
 
1624
1620
 
1625
- def _leaderboard_leaderboard_id_prompts_get_serialize(
1621
+ def _leaderboard_leaderboard_id_participants_get_serialize(
1626
1622
  self,
1627
1623
  leaderboard_id,
1628
1624
  request,
@@ -1678,7 +1674,7 @@ class LeaderboardApi:
1678
1674
 
1679
1675
  return self.api_client.param_serialize(
1680
1676
  method='GET',
1681
- resource_path='/leaderboard/{leaderboardId}/prompts',
1677
+ resource_path='/leaderboard/{leaderboardId}/participants',
1682
1678
  path_params=_path_params,
1683
1679
  query_params=_query_params,
1684
1680
  header_params=_header_params,
@@ -1695,10 +1691,1006 @@ class LeaderboardApi:
1695
1691
 
1696
1692
 
1697
1693
  @validate_call
1698
- def leaderboard_leaderboard_id_prompts_post(
1694
+ def leaderboard_leaderboard_id_participants_participant_id_submit_post(
1699
1695
  self,
1700
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
1701
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
1696
+ leaderboard_id: StrictStr,
1697
+ participant_id: StrictStr,
1698
+ _request_timeout: Union[
1699
+ None,
1700
+ Annotated[StrictFloat, Field(gt=0)],
1701
+ Tuple[
1702
+ Annotated[StrictFloat, Field(gt=0)],
1703
+ Annotated[StrictFloat, Field(gt=0)]
1704
+ ]
1705
+ ] = None,
1706
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1707
+ _content_type: Optional[StrictStr] = None,
1708
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1709
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1710
+ ) -> SubmitParticipantResult:
1711
+ """(Deprecated) Submits a participant to a leaderboard.
1712
+
1713
+
1714
+ :param leaderboard_id: (required)
1715
+ :type leaderboard_id: str
1716
+ :param participant_id: (required)
1717
+ :type participant_id: str
1718
+ :param _request_timeout: timeout setting for this request. If one
1719
+ number provided, it will be total request
1720
+ timeout. It can also be a pair (tuple) of
1721
+ (connection, read) timeouts.
1722
+ :type _request_timeout: int, tuple(int, int), optional
1723
+ :param _request_auth: set to override the auth_settings for an a single
1724
+ request; this effectively ignores the
1725
+ authentication in the spec for a single request.
1726
+ :type _request_auth: dict, optional
1727
+ :param _content_type: force content-type for the request.
1728
+ :type _content_type: str, Optional
1729
+ :param _headers: set to override the headers for a single
1730
+ request; this effectively ignores the headers
1731
+ in the spec for a single request.
1732
+ :type _headers: dict, optional
1733
+ :param _host_index: set to override the host_index for a single
1734
+ request; this effectively ignores the host_index
1735
+ in the spec for a single request.
1736
+ :type _host_index: int, optional
1737
+ :return: Returns the result object.
1738
+ """ # noqa: E501
1739
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1740
+
1741
+ _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1742
+ leaderboard_id=leaderboard_id,
1743
+ participant_id=participant_id,
1744
+ _request_auth=_request_auth,
1745
+ _content_type=_content_type,
1746
+ _headers=_headers,
1747
+ _host_index=_host_index
1748
+ )
1749
+
1750
+ _response_types_map: Dict[str, Optional[str]] = {
1751
+ '200': "SubmitParticipantResult",
1752
+ }
1753
+ response_data = self.api_client.call_api(
1754
+ *_param,
1755
+ _request_timeout=_request_timeout
1756
+ )
1757
+ response_data.read()
1758
+ return self.api_client.response_deserialize(
1759
+ response_data=response_data,
1760
+ response_types_map=_response_types_map,
1761
+ ).data
1762
+
1763
+
1764
+ @validate_call
1765
+ def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
1766
+ self,
1767
+ leaderboard_id: StrictStr,
1768
+ participant_id: StrictStr,
1769
+ _request_timeout: Union[
1770
+ None,
1771
+ Annotated[StrictFloat, Field(gt=0)],
1772
+ Tuple[
1773
+ Annotated[StrictFloat, Field(gt=0)],
1774
+ Annotated[StrictFloat, Field(gt=0)]
1775
+ ]
1776
+ ] = None,
1777
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1778
+ _content_type: Optional[StrictStr] = None,
1779
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1780
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1781
+ ) -> ApiResponse[SubmitParticipantResult]:
1782
+ """(Deprecated) Submits a participant to a leaderboard.
1783
+
1784
+
1785
+ :param leaderboard_id: (required)
1786
+ :type leaderboard_id: str
1787
+ :param participant_id: (required)
1788
+ :type participant_id: str
1789
+ :param _request_timeout: timeout setting for this request. If one
1790
+ number provided, it will be total request
1791
+ timeout. It can also be a pair (tuple) of
1792
+ (connection, read) timeouts.
1793
+ :type _request_timeout: int, tuple(int, int), optional
1794
+ :param _request_auth: set to override the auth_settings for an a single
1795
+ request; this effectively ignores the
1796
+ authentication in the spec for a single request.
1797
+ :type _request_auth: dict, optional
1798
+ :param _content_type: force content-type for the request.
1799
+ :type _content_type: str, Optional
1800
+ :param _headers: set to override the headers for a single
1801
+ request; this effectively ignores the headers
1802
+ in the spec for a single request.
1803
+ :type _headers: dict, optional
1804
+ :param _host_index: set to override the host_index for a single
1805
+ request; this effectively ignores the host_index
1806
+ in the spec for a single request.
1807
+ :type _host_index: int, optional
1808
+ :return: Returns the result object.
1809
+ """ # noqa: E501
1810
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1811
+
1812
+ _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1813
+ leaderboard_id=leaderboard_id,
1814
+ participant_id=participant_id,
1815
+ _request_auth=_request_auth,
1816
+ _content_type=_content_type,
1817
+ _headers=_headers,
1818
+ _host_index=_host_index
1819
+ )
1820
+
1821
+ _response_types_map: Dict[str, Optional[str]] = {
1822
+ '200': "SubmitParticipantResult",
1823
+ }
1824
+ response_data = self.api_client.call_api(
1825
+ *_param,
1826
+ _request_timeout=_request_timeout
1827
+ )
1828
+ response_data.read()
1829
+ return self.api_client.response_deserialize(
1830
+ response_data=response_data,
1831
+ response_types_map=_response_types_map,
1832
+ )
1833
+
1834
+
1835
+ @validate_call
1836
+ def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
1837
+ self,
1838
+ leaderboard_id: StrictStr,
1839
+ participant_id: StrictStr,
1840
+ _request_timeout: Union[
1841
+ None,
1842
+ Annotated[StrictFloat, Field(gt=0)],
1843
+ Tuple[
1844
+ Annotated[StrictFloat, Field(gt=0)],
1845
+ Annotated[StrictFloat, Field(gt=0)]
1846
+ ]
1847
+ ] = None,
1848
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1849
+ _content_type: Optional[StrictStr] = None,
1850
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1851
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1852
+ ) -> RESTResponseType:
1853
+ """(Deprecated) Submits a participant to a leaderboard.
1854
+
1855
+
1856
+ :param leaderboard_id: (required)
1857
+ :type leaderboard_id: str
1858
+ :param participant_id: (required)
1859
+ :type participant_id: str
1860
+ :param _request_timeout: timeout setting for this request. If one
1861
+ number provided, it will be total request
1862
+ timeout. It can also be a pair (tuple) of
1863
+ (connection, read) timeouts.
1864
+ :type _request_timeout: int, tuple(int, int), optional
1865
+ :param _request_auth: set to override the auth_settings for an a single
1866
+ request; this effectively ignores the
1867
+ authentication in the spec for a single request.
1868
+ :type _request_auth: dict, optional
1869
+ :param _content_type: force content-type for the request.
1870
+ :type _content_type: str, Optional
1871
+ :param _headers: set to override the headers for a single
1872
+ request; this effectively ignores the headers
1873
+ in the spec for a single request.
1874
+ :type _headers: dict, optional
1875
+ :param _host_index: set to override the host_index for a single
1876
+ request; this effectively ignores the host_index
1877
+ in the spec for a single request.
1878
+ :type _host_index: int, optional
1879
+ :return: Returns the result object.
1880
+ """ # noqa: E501
1881
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1882
+
1883
+ _param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1884
+ leaderboard_id=leaderboard_id,
1885
+ participant_id=participant_id,
1886
+ _request_auth=_request_auth,
1887
+ _content_type=_content_type,
1888
+ _headers=_headers,
1889
+ _host_index=_host_index
1890
+ )
1891
+
1892
+ _response_types_map: Dict[str, Optional[str]] = {
1893
+ '200': "SubmitParticipantResult",
1894
+ }
1895
+ response_data = self.api_client.call_api(
1896
+ *_param,
1897
+ _request_timeout=_request_timeout
1898
+ )
1899
+ return response_data.response
1900
+
1901
+
1902
+ def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
1903
+ self,
1904
+ leaderboard_id,
1905
+ participant_id,
1906
+ _request_auth,
1907
+ _content_type,
1908
+ _headers,
1909
+ _host_index,
1910
+ ) -> RequestSerialized:
1911
+
1912
+ _host = None
1913
+
1914
+ _collection_formats: Dict[str, str] = {
1915
+ }
1916
+
1917
+ _path_params: Dict[str, str] = {}
1918
+ _query_params: List[Tuple[str, str]] = []
1919
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1920
+ _form_params: List[Tuple[str, str]] = []
1921
+ _files: Dict[
1922
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1923
+ ] = {}
1924
+ _body_params: Optional[bytes] = None
1925
+
1926
+ # process the path parameters
1927
+ if leaderboard_id is not None:
1928
+ _path_params['leaderboardId'] = leaderboard_id
1929
+ if participant_id is not None:
1930
+ _path_params['participantId'] = participant_id
1931
+ # process the query parameters
1932
+ # process the header parameters
1933
+ # process the form parameters
1934
+ # process the body parameter
1935
+
1936
+
1937
+ # set the HTTP header `Accept`
1938
+ if 'Accept' not in _header_params:
1939
+ _header_params['Accept'] = self.api_client.select_header_accept(
1940
+ [
1941
+ 'text/plain',
1942
+ 'application/json',
1943
+ 'text/json'
1944
+ ]
1945
+ )
1946
+
1947
+
1948
+ # authentication setting
1949
+ _auth_settings: List[str] = [
1950
+ 'bearer',
1951
+ 'oauth2'
1952
+ ]
1953
+
1954
+ return self.api_client.param_serialize(
1955
+ method='POST',
1956
+ resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
1957
+ path_params=_path_params,
1958
+ query_params=_query_params,
1959
+ header_params=_header_params,
1960
+ body=_body_params,
1961
+ post_params=_form_params,
1962
+ files=_files,
1963
+ auth_settings=_auth_settings,
1964
+ collection_formats=_collection_formats,
1965
+ _host=_host,
1966
+ _request_auth=_request_auth
1967
+ )
1968
+
1969
+
1970
+
1971
+
1972
+ @validate_call
1973
+ def leaderboard_leaderboard_id_participants_post(
1974
+ self,
1975
+ leaderboard_id: StrictStr,
1976
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
1977
+ _request_timeout: Union[
1978
+ None,
1979
+ Annotated[StrictFloat, Field(gt=0)],
1980
+ Tuple[
1981
+ Annotated[StrictFloat, Field(gt=0)],
1982
+ Annotated[StrictFloat, Field(gt=0)]
1983
+ ]
1984
+ ] = None,
1985
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1986
+ _content_type: Optional[StrictStr] = None,
1987
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1988
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1989
+ ) -> CreateBenchmarkParticipantResult:
1990
+ """(Deprecated) Creates a participant in a leaderboard.
1991
+
1992
+
1993
+ :param leaderboard_id: (required)
1994
+ :type leaderboard_id: str
1995
+ :param create_benchmark_participant_model:
1996
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1997
+ :param _request_timeout: timeout setting for this request. If one
1998
+ number provided, it will be total request
1999
+ timeout. It can also be a pair (tuple) of
2000
+ (connection, read) timeouts.
2001
+ :type _request_timeout: int, tuple(int, int), optional
2002
+ :param _request_auth: set to override the auth_settings for an a single
2003
+ request; this effectively ignores the
2004
+ authentication in the spec for a single request.
2005
+ :type _request_auth: dict, optional
2006
+ :param _content_type: force content-type for the request.
2007
+ :type _content_type: str, Optional
2008
+ :param _headers: set to override the headers for a single
2009
+ request; this effectively ignores the headers
2010
+ in the spec for a single request.
2011
+ :type _headers: dict, optional
2012
+ :param _host_index: set to override the host_index for a single
2013
+ request; this effectively ignores the host_index
2014
+ in the spec for a single request.
2015
+ :type _host_index: int, optional
2016
+ :return: Returns the result object.
2017
+ """ # noqa: E501
2018
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2019
+
2020
+ _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2021
+ leaderboard_id=leaderboard_id,
2022
+ create_benchmark_participant_model=create_benchmark_participant_model,
2023
+ _request_auth=_request_auth,
2024
+ _content_type=_content_type,
2025
+ _headers=_headers,
2026
+ _host_index=_host_index
2027
+ )
2028
+
2029
+ _response_types_map: Dict[str, Optional[str]] = {
2030
+ '200': "CreateBenchmarkParticipantResult",
2031
+ }
2032
+ response_data = self.api_client.call_api(
2033
+ *_param,
2034
+ _request_timeout=_request_timeout
2035
+ )
2036
+ response_data.read()
2037
+ return self.api_client.response_deserialize(
2038
+ response_data=response_data,
2039
+ response_types_map=_response_types_map,
2040
+ ).data
2041
+
2042
+
2043
+ @validate_call
2044
+ def leaderboard_leaderboard_id_participants_post_with_http_info(
2045
+ self,
2046
+ leaderboard_id: StrictStr,
2047
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2048
+ _request_timeout: Union[
2049
+ None,
2050
+ Annotated[StrictFloat, Field(gt=0)],
2051
+ Tuple[
2052
+ Annotated[StrictFloat, Field(gt=0)],
2053
+ Annotated[StrictFloat, Field(gt=0)]
2054
+ ]
2055
+ ] = None,
2056
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2057
+ _content_type: Optional[StrictStr] = None,
2058
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2059
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2060
+ ) -> ApiResponse[CreateBenchmarkParticipantResult]:
2061
+ """(Deprecated) Creates a participant in a leaderboard.
2062
+
2063
+
2064
+ :param leaderboard_id: (required)
2065
+ :type leaderboard_id: str
2066
+ :param create_benchmark_participant_model:
2067
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2068
+ :param _request_timeout: timeout setting for this request. If one
2069
+ number provided, it will be total request
2070
+ timeout. It can also be a pair (tuple) of
2071
+ (connection, read) timeouts.
2072
+ :type _request_timeout: int, tuple(int, int), optional
2073
+ :param _request_auth: set to override the auth_settings for an a single
2074
+ request; this effectively ignores the
2075
+ authentication in the spec for a single request.
2076
+ :type _request_auth: dict, optional
2077
+ :param _content_type: force content-type for the request.
2078
+ :type _content_type: str, Optional
2079
+ :param _headers: set to override the headers for a single
2080
+ request; this effectively ignores the headers
2081
+ in the spec for a single request.
2082
+ :type _headers: dict, optional
2083
+ :param _host_index: set to override the host_index for a single
2084
+ request; this effectively ignores the host_index
2085
+ in the spec for a single request.
2086
+ :type _host_index: int, optional
2087
+ :return: Returns the result object.
2088
+ """ # noqa: E501
2089
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2090
+
2091
+ _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2092
+ leaderboard_id=leaderboard_id,
2093
+ create_benchmark_participant_model=create_benchmark_participant_model,
2094
+ _request_auth=_request_auth,
2095
+ _content_type=_content_type,
2096
+ _headers=_headers,
2097
+ _host_index=_host_index
2098
+ )
2099
+
2100
+ _response_types_map: Dict[str, Optional[str]] = {
2101
+ '200': "CreateBenchmarkParticipantResult",
2102
+ }
2103
+ response_data = self.api_client.call_api(
2104
+ *_param,
2105
+ _request_timeout=_request_timeout
2106
+ )
2107
+ response_data.read()
2108
+ return self.api_client.response_deserialize(
2109
+ response_data=response_data,
2110
+ response_types_map=_response_types_map,
2111
+ )
2112
+
2113
+
2114
+ @validate_call
2115
+ def leaderboard_leaderboard_id_participants_post_without_preload_content(
2116
+ self,
2117
+ leaderboard_id: StrictStr,
2118
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2119
+ _request_timeout: Union[
2120
+ None,
2121
+ Annotated[StrictFloat, Field(gt=0)],
2122
+ Tuple[
2123
+ Annotated[StrictFloat, Field(gt=0)],
2124
+ Annotated[StrictFloat, Field(gt=0)]
2125
+ ]
2126
+ ] = None,
2127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2128
+ _content_type: Optional[StrictStr] = None,
2129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2131
+ ) -> RESTResponseType:
2132
+ """(Deprecated) Creates a participant in a leaderboard.
2133
+
2134
+
2135
+ :param leaderboard_id: (required)
2136
+ :type leaderboard_id: str
2137
+ :param create_benchmark_participant_model:
2138
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2139
+ :param _request_timeout: timeout setting for this request. If one
2140
+ number provided, it will be total request
2141
+ timeout. It can also be a pair (tuple) of
2142
+ (connection, read) timeouts.
2143
+ :type _request_timeout: int, tuple(int, int), optional
2144
+ :param _request_auth: set to override the auth_settings for an a single
2145
+ request; this effectively ignores the
2146
+ authentication in the spec for a single request.
2147
+ :type _request_auth: dict, optional
2148
+ :param _content_type: force content-type for the request.
2149
+ :type _content_type: str, Optional
2150
+ :param _headers: set to override the headers for a single
2151
+ request; this effectively ignores the headers
2152
+ in the spec for a single request.
2153
+ :type _headers: dict, optional
2154
+ :param _host_index: set to override the host_index for a single
2155
+ request; this effectively ignores the host_index
2156
+ in the spec for a single request.
2157
+ :type _host_index: int, optional
2158
+ :return: Returns the result object.
2159
+ """ # noqa: E501
2160
+ warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
2161
+
2162
+ _param = self._leaderboard_leaderboard_id_participants_post_serialize(
2163
+ leaderboard_id=leaderboard_id,
2164
+ create_benchmark_participant_model=create_benchmark_participant_model,
2165
+ _request_auth=_request_auth,
2166
+ _content_type=_content_type,
2167
+ _headers=_headers,
2168
+ _host_index=_host_index
2169
+ )
2170
+
2171
+ _response_types_map: Dict[str, Optional[str]] = {
2172
+ '200': "CreateBenchmarkParticipantResult",
2173
+ }
2174
+ response_data = self.api_client.call_api(
2175
+ *_param,
2176
+ _request_timeout=_request_timeout
2177
+ )
2178
+ return response_data.response
2179
+
2180
+
2181
+ def _leaderboard_leaderboard_id_participants_post_serialize(
2182
+ self,
2183
+ leaderboard_id,
2184
+ create_benchmark_participant_model,
2185
+ _request_auth,
2186
+ _content_type,
2187
+ _headers,
2188
+ _host_index,
2189
+ ) -> RequestSerialized:
2190
+
2191
+ _host = None
2192
+
2193
+ _collection_formats: Dict[str, str] = {
2194
+ }
2195
+
2196
+ _path_params: Dict[str, str] = {}
2197
+ _query_params: List[Tuple[str, str]] = []
2198
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2199
+ _form_params: List[Tuple[str, str]] = []
2200
+ _files: Dict[
2201
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2202
+ ] = {}
2203
+ _body_params: Optional[bytes] = None
2204
+
2205
+ # process the path parameters
2206
+ if leaderboard_id is not None:
2207
+ _path_params['leaderboardId'] = leaderboard_id
2208
+ # process the query parameters
2209
+ # process the header parameters
2210
+ # process the form parameters
2211
+ # process the body parameter
2212
+ if create_benchmark_participant_model is not None:
2213
+ _body_params = create_benchmark_participant_model
2214
+
2215
+
2216
+ # set the HTTP header `Accept`
2217
+ if 'Accept' not in _header_params:
2218
+ _header_params['Accept'] = self.api_client.select_header_accept(
2219
+ [
2220
+ 'text/plain',
2221
+ 'application/json',
2222
+ 'text/json'
2223
+ ]
2224
+ )
2225
+
2226
+ # set the HTTP header `Content-Type`
2227
+ if _content_type:
2228
+ _header_params['Content-Type'] = _content_type
2229
+ else:
2230
+ _default_content_type = (
2231
+ self.api_client.select_header_content_type(
2232
+ [
2233
+ 'application/json',
2234
+ 'text/json',
2235
+ 'application/*+json'
2236
+ ]
2237
+ )
2238
+ )
2239
+ if _default_content_type is not None:
2240
+ _header_params['Content-Type'] = _default_content_type
2241
+
2242
+ # authentication setting
2243
+ _auth_settings: List[str] = [
2244
+ 'bearer',
2245
+ 'oauth2'
2246
+ ]
2247
+
2248
+ return self.api_client.param_serialize(
2249
+ method='POST',
2250
+ resource_path='/leaderboard/{leaderboardId}/participants',
2251
+ path_params=_path_params,
2252
+ query_params=_query_params,
2253
+ header_params=_header_params,
2254
+ body=_body_params,
2255
+ post_params=_form_params,
2256
+ files=_files,
2257
+ auth_settings=_auth_settings,
2258
+ collection_formats=_collection_formats,
2259
+ _host=_host,
2260
+ _request_auth=_request_auth
2261
+ )
2262
+
2263
+
2264
+
2265
+
2266
+ @validate_call
2267
+ def leaderboard_leaderboard_id_prompts_get(
2268
+ self,
2269
+ leaderboard_id: StrictStr,
2270
+ request: Optional[QueryModel] = None,
2271
+ _request_timeout: Union[
2272
+ None,
2273
+ Annotated[StrictFloat, Field(gt=0)],
2274
+ Tuple[
2275
+ Annotated[StrictFloat, Field(gt=0)],
2276
+ Annotated[StrictFloat, Field(gt=0)]
2277
+ ]
2278
+ ] = None,
2279
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2280
+ _content_type: Optional[StrictStr] = None,
2281
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2282
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2283
+ ) -> PromptByBenchmarkResultPagedResult:
2284
+ """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2285
+
2286
+
2287
+ :param leaderboard_id: (required)
2288
+ :type leaderboard_id: str
2289
+ :param request:
2290
+ :type request: QueryModel
2291
+ :param _request_timeout: timeout setting for this request. If one
2292
+ number provided, it will be total request
2293
+ timeout. It can also be a pair (tuple) of
2294
+ (connection, read) timeouts.
2295
+ :type _request_timeout: int, tuple(int, int), optional
2296
+ :param _request_auth: set to override the auth_settings for an a single
2297
+ request; this effectively ignores the
2298
+ authentication in the spec for a single request.
2299
+ :type _request_auth: dict, optional
2300
+ :param _content_type: force content-type for the request.
2301
+ :type _content_type: str, Optional
2302
+ :param _headers: set to override the headers for a single
2303
+ request; this effectively ignores the headers
2304
+ in the spec for a single request.
2305
+ :type _headers: dict, optional
2306
+ :param _host_index: set to override the host_index for a single
2307
+ request; this effectively ignores the host_index
2308
+ in the spec for a single request.
2309
+ :type _host_index: int, optional
2310
+ :return: Returns the result object.
2311
+ """ # noqa: E501
2312
+ warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2313
+
2314
+ _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
2315
+ leaderboard_id=leaderboard_id,
2316
+ request=request,
2317
+ _request_auth=_request_auth,
2318
+ _content_type=_content_type,
2319
+ _headers=_headers,
2320
+ _host_index=_host_index
2321
+ )
2322
+
2323
+ _response_types_map: Dict[str, Optional[str]] = {
2324
+ '200': "PromptByBenchmarkResultPagedResult",
2325
+ }
2326
+ response_data = self.api_client.call_api(
2327
+ *_param,
2328
+ _request_timeout=_request_timeout
2329
+ )
2330
+ response_data.read()
2331
+ return self.api_client.response_deserialize(
2332
+ response_data=response_data,
2333
+ response_types_map=_response_types_map,
2334
+ ).data
2335
+
2336
+
2337
+ @validate_call
2338
+ def leaderboard_leaderboard_id_prompts_get_with_http_info(
2339
+ self,
2340
+ leaderboard_id: StrictStr,
2341
+ request: Optional[QueryModel] = None,
2342
+ _request_timeout: Union[
2343
+ None,
2344
+ Annotated[StrictFloat, Field(gt=0)],
2345
+ Tuple[
2346
+ Annotated[StrictFloat, Field(gt=0)],
2347
+ Annotated[StrictFloat, Field(gt=0)]
2348
+ ]
2349
+ ] = None,
2350
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2351
+ _content_type: Optional[StrictStr] = None,
2352
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2353
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2354
+ ) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
2355
+ """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2356
+
2357
+
2358
+ :param leaderboard_id: (required)
2359
+ :type leaderboard_id: str
2360
+ :param request:
2361
+ :type request: QueryModel
2362
+ :param _request_timeout: timeout setting for this request. If one
2363
+ number provided, it will be total request
2364
+ timeout. It can also be a pair (tuple) of
2365
+ (connection, read) timeouts.
2366
+ :type _request_timeout: int, tuple(int, int), optional
2367
+ :param _request_auth: set to override the auth_settings for an a single
2368
+ request; this effectively ignores the
2369
+ authentication in the spec for a single request.
2370
+ :type _request_auth: dict, optional
2371
+ :param _content_type: force content-type for the request.
2372
+ :type _content_type: str, Optional
2373
+ :param _headers: set to override the headers for a single
2374
+ request; this effectively ignores the headers
2375
+ in the spec for a single request.
2376
+ :type _headers: dict, optional
2377
+ :param _host_index: set to override the host_index for a single
2378
+ request; this effectively ignores the host_index
2379
+ in the spec for a single request.
2380
+ :type _host_index: int, optional
2381
+ :return: Returns the result object.
2382
+ """ # noqa: E501
2383
+ warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2384
+
2385
+ _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
2386
+ leaderboard_id=leaderboard_id,
2387
+ request=request,
2388
+ _request_auth=_request_auth,
2389
+ _content_type=_content_type,
2390
+ _headers=_headers,
2391
+ _host_index=_host_index
2392
+ )
2393
+
2394
+ _response_types_map: Dict[str, Optional[str]] = {
2395
+ '200': "PromptByBenchmarkResultPagedResult",
2396
+ }
2397
+ response_data = self.api_client.call_api(
2398
+ *_param,
2399
+ _request_timeout=_request_timeout
2400
+ )
2401
+ response_data.read()
2402
+ return self.api_client.response_deserialize(
2403
+ response_data=response_data,
2404
+ response_types_map=_response_types_map,
2405
+ )
2406
+
2407
+
2408
+ @validate_call
2409
+ def leaderboard_leaderboard_id_prompts_get_without_preload_content(
2410
+ self,
2411
+ leaderboard_id: StrictStr,
2412
+ request: Optional[QueryModel] = None,
2413
+ _request_timeout: Union[
2414
+ None,
2415
+ Annotated[StrictFloat, Field(gt=0)],
2416
+ Tuple[
2417
+ Annotated[StrictFloat, Field(gt=0)],
2418
+ Annotated[StrictFloat, Field(gt=0)]
2419
+ ]
2420
+ ] = None,
2421
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2422
+ _content_type: Optional[StrictStr] = None,
2423
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2424
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2425
+ ) -> RESTResponseType:
2426
+ """(Deprecated) returns the paged prompts of a leaderboard by its ID.
2427
+
2428
+
2429
+ :param leaderboard_id: (required)
2430
+ :type leaderboard_id: str
2431
+ :param request:
2432
+ :type request: QueryModel
2433
+ :param _request_timeout: timeout setting for this request. If one
2434
+ number provided, it will be total request
2435
+ timeout. It can also be a pair (tuple) of
2436
+ (connection, read) timeouts.
2437
+ :type _request_timeout: int, tuple(int, int), optional
2438
+ :param _request_auth: set to override the auth_settings for an a single
2439
+ request; this effectively ignores the
2440
+ authentication in the spec for a single request.
2441
+ :type _request_auth: dict, optional
2442
+ :param _content_type: force content-type for the request.
2443
+ :type _content_type: str, Optional
2444
+ :param _headers: set to override the headers for a single
2445
+ request; this effectively ignores the headers
2446
+ in the spec for a single request.
2447
+ :type _headers: dict, optional
2448
+ :param _host_index: set to override the host_index for a single
2449
+ request; this effectively ignores the host_index
2450
+ in the spec for a single request.
2451
+ :type _host_index: int, optional
2452
+ :return: Returns the result object.
2453
+ """ # noqa: E501
2454
+ warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2455
+
2456
+ _param = self._leaderboard_leaderboard_id_prompts_get_serialize(
2457
+ leaderboard_id=leaderboard_id,
2458
+ request=request,
2459
+ _request_auth=_request_auth,
2460
+ _content_type=_content_type,
2461
+ _headers=_headers,
2462
+ _host_index=_host_index
2463
+ )
2464
+
2465
+ _response_types_map: Dict[str, Optional[str]] = {
2466
+ '200': "PromptByBenchmarkResultPagedResult",
2467
+ }
2468
+ response_data = self.api_client.call_api(
2469
+ *_param,
2470
+ _request_timeout=_request_timeout
2471
+ )
2472
+ return response_data.response
2473
+
2474
+
2475
+ def _leaderboard_leaderboard_id_prompts_get_serialize(
2476
+ self,
2477
+ leaderboard_id,
2478
+ request,
2479
+ _request_auth,
2480
+ _content_type,
2481
+ _headers,
2482
+ _host_index,
2483
+ ) -> RequestSerialized:
2484
+
2485
+ _host = None
2486
+
2487
+ _collection_formats: Dict[str, str] = {
2488
+ }
2489
+
2490
+ _path_params: Dict[str, str] = {}
2491
+ _query_params: List[Tuple[str, str]] = []
2492
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2493
+ _form_params: List[Tuple[str, str]] = []
2494
+ _files: Dict[
2495
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2496
+ ] = {}
2497
+ _body_params: Optional[bytes] = None
2498
+
2499
+ # process the path parameters
2500
+ if leaderboard_id is not None:
2501
+ _path_params['leaderboardId'] = leaderboard_id
2502
+ # process the query parameters
2503
+ if request is not None:
2504
+
2505
+ _query_params.append(('request', request))
2506
+
2507
+ # process the header parameters
2508
+ # process the form parameters
2509
+ # process the body parameter
2510
+
2511
+
2512
+ # set the HTTP header `Accept`
2513
+ if 'Accept' not in _header_params:
2514
+ _header_params['Accept'] = self.api_client.select_header_accept(
2515
+ [
2516
+ 'text/plain',
2517
+ 'application/json',
2518
+ 'text/json'
2519
+ ]
2520
+ )
2521
+
2522
+
2523
+ # authentication setting
2524
+ _auth_settings: List[str] = [
2525
+ 'bearer',
2526
+ 'oauth2'
2527
+ ]
2528
+
2529
+ return self.api_client.param_serialize(
2530
+ method='GET',
2531
+ resource_path='/leaderboard/{leaderboardId}/prompts',
2532
+ path_params=_path_params,
2533
+ query_params=_query_params,
2534
+ header_params=_header_params,
2535
+ body=_body_params,
2536
+ post_params=_form_params,
2537
+ files=_files,
2538
+ auth_settings=_auth_settings,
2539
+ collection_formats=_collection_formats,
2540
+ _host=_host,
2541
+ _request_auth=_request_auth
2542
+ )
2543
+
2544
+
2545
+
2546
+
2547
+ @validate_call
2548
+ def leaderboard_leaderboard_id_prompts_post(
2549
+ self,
2550
+ leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
2551
+ body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
2552
+ _request_timeout: Union[
2553
+ None,
2554
+ Annotated[StrictFloat, Field(gt=0)],
2555
+ Tuple[
2556
+ Annotated[StrictFloat, Field(gt=0)],
2557
+ Annotated[StrictFloat, Field(gt=0)]
2558
+ ]
2559
+ ] = None,
2560
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2561
+ _content_type: Optional[StrictStr] = None,
2562
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2563
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2564
+ ) -> None:
2565
+ """(Deprecated) adds a new prompt to a leaderboard.
2566
+
2567
+
2568
+ :param leaderboard_id: The leaderboard id. (required)
2569
+ :type leaderboard_id: str
2570
+ :param body: The prompt
2571
+ :type body: str
2572
+ :param _request_timeout: timeout setting for this request. If one
2573
+ number provided, it will be total request
2574
+ timeout. It can also be a pair (tuple) of
2575
+ (connection, read) timeouts.
2576
+ :type _request_timeout: int, tuple(int, int), optional
2577
+ :param _request_auth: set to override the auth_settings for an a single
2578
+ request; this effectively ignores the
2579
+ authentication in the spec for a single request.
2580
+ :type _request_auth: dict, optional
2581
+ :param _content_type: force content-type for the request.
2582
+ :type _content_type: str, Optional
2583
+ :param _headers: set to override the headers for a single
2584
+ request; this effectively ignores the headers
2585
+ in the spec for a single request.
2586
+ :type _headers: dict, optional
2587
+ :param _host_index: set to override the host_index for a single
2588
+ request; this effectively ignores the host_index
2589
+ in the spec for a single request.
2590
+ :type _host_index: int, optional
2591
+ :return: Returns the result object.
2592
+ """ # noqa: E501
2593
+ warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2594
+
2595
+ _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
2596
+ leaderboard_id=leaderboard_id,
2597
+ body=body,
2598
+ _request_auth=_request_auth,
2599
+ _content_type=_content_type,
2600
+ _headers=_headers,
2601
+ _host_index=_host_index
2602
+ )
2603
+
2604
+ _response_types_map: Dict[str, Optional[str]] = {
2605
+ '204': None,
2606
+ }
2607
+ response_data = self.api_client.call_api(
2608
+ *_param,
2609
+ _request_timeout=_request_timeout
2610
+ )
2611
+ response_data.read()
2612
+ return self.api_client.response_deserialize(
2613
+ response_data=response_data,
2614
+ response_types_map=_response_types_map,
2615
+ ).data
2616
+
2617
+
2618
+ @validate_call
2619
+ def leaderboard_leaderboard_id_prompts_post_with_http_info(
2620
+ self,
2621
+ leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
2622
+ body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
2623
+ _request_timeout: Union[
2624
+ None,
2625
+ Annotated[StrictFloat, Field(gt=0)],
2626
+ Tuple[
2627
+ Annotated[StrictFloat, Field(gt=0)],
2628
+ Annotated[StrictFloat, Field(gt=0)]
2629
+ ]
2630
+ ] = None,
2631
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2632
+ _content_type: Optional[StrictStr] = None,
2633
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2634
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2635
+ ) -> ApiResponse[None]:
2636
+ """(Deprecated) adds a new prompt to a leaderboard.
2637
+
2638
+
2639
+ :param leaderboard_id: The leaderboard id. (required)
2640
+ :type leaderboard_id: str
2641
+ :param body: The prompt
2642
+ :type body: str
2643
+ :param _request_timeout: timeout setting for this request. If one
2644
+ number provided, it will be total request
2645
+ timeout. It can also be a pair (tuple) of
2646
+ (connection, read) timeouts.
2647
+ :type _request_timeout: int, tuple(int, int), optional
2648
+ :param _request_auth: set to override the auth_settings for an a single
2649
+ request; this effectively ignores the
2650
+ authentication in the spec for a single request.
2651
+ :type _request_auth: dict, optional
2652
+ :param _content_type: force content-type for the request.
2653
+ :type _content_type: str, Optional
2654
+ :param _headers: set to override the headers for a single
2655
+ request; this effectively ignores the headers
2656
+ in the spec for a single request.
2657
+ :type _headers: dict, optional
2658
+ :param _host_index: set to override the host_index for a single
2659
+ request; this effectively ignores the host_index
2660
+ in the spec for a single request.
2661
+ :type _host_index: int, optional
2662
+ :return: Returns the result object.
2663
+ """ # noqa: E501
2664
+ warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
2665
+
2666
+ _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
2667
+ leaderboard_id=leaderboard_id,
2668
+ body=body,
2669
+ _request_auth=_request_auth,
2670
+ _content_type=_content_type,
2671
+ _headers=_headers,
2672
+ _host_index=_host_index
2673
+ )
2674
+
2675
+ _response_types_map: Dict[str, Optional[str]] = {
2676
+ '204': None,
2677
+ }
2678
+ response_data = self.api_client.call_api(
2679
+ *_param,
2680
+ _request_timeout=_request_timeout
2681
+ )
2682
+ response_data.read()
2683
+ return self.api_client.response_deserialize(
2684
+ response_data=response_data,
2685
+ response_types_map=_response_types_map,
2686
+ )
2687
+
2688
+
2689
+ @validate_call
2690
+ def leaderboard_leaderboard_id_prompts_post_without_preload_content(
2691
+ self,
2692
+ leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
2693
+ body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
1702
2694
  _request_timeout: Union[
1703
2695
  None,
1704
2696
  Annotated[StrictFloat, Field(gt=0)],
@@ -1711,8 +2703,8 @@ class LeaderboardApi:
1711
2703
  _content_type: Optional[StrictStr] = None,
1712
2704
  _headers: Optional[Dict[StrictStr, Any]] = None,
1713
2705
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1714
- ) -> None:
1715
- """adds a new prompt to a leaderboard.
2706
+ ) -> RESTResponseType:
2707
+ """(Deprecated) adds a new prompt to a leaderboard.
1716
2708
 
1717
2709
 
1718
2710
  :param leaderboard_id: The leaderboard id. (required)
@@ -1740,6 +2732,7 @@ class LeaderboardApi:
1740
2732
  :type _host_index: int, optional
1741
2733
  :return: Returns the result object.
1742
2734
  """ # noqa: E501
2735
+ warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
1743
2736
 
1744
2737
  _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
1745
2738
  leaderboard_id=leaderboard_id,
@@ -1750,6 +2743,145 @@ class LeaderboardApi:
1750
2743
  _host_index=_host_index
1751
2744
  )
1752
2745
 
2746
+ _response_types_map: Dict[str, Optional[str]] = {
2747
+ '204': None,
2748
+ }
2749
+ response_data = self.api_client.call_api(
2750
+ *_param,
2751
+ _request_timeout=_request_timeout
2752
+ )
2753
+ return response_data.response
2754
+
2755
+
2756
+ def _leaderboard_leaderboard_id_prompts_post_serialize(
2757
+ self,
2758
+ leaderboard_id,
2759
+ body,
2760
+ _request_auth,
2761
+ _content_type,
2762
+ _headers,
2763
+ _host_index,
2764
+ ) -> RequestSerialized:
2765
+
2766
+ _host = None
2767
+
2768
+ _collection_formats: Dict[str, str] = {
2769
+ }
2770
+
2771
+ _path_params: Dict[str, str] = {}
2772
+ _query_params: List[Tuple[str, str]] = []
2773
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2774
+ _form_params: List[Tuple[str, str]] = []
2775
+ _files: Dict[
2776
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2777
+ ] = {}
2778
+ _body_params: Optional[bytes] = None
2779
+
2780
+ # process the path parameters
2781
+ if leaderboard_id is not None:
2782
+ _path_params['leaderboardId'] = leaderboard_id
2783
+ # process the query parameters
2784
+ # process the header parameters
2785
+ # process the form parameters
2786
+ # process the body parameter
2787
+ if body is not None:
2788
+ _body_params = body
2789
+
2790
+
2791
+
2792
+ # set the HTTP header `Content-Type`
2793
+ if _content_type:
2794
+ _header_params['Content-Type'] = _content_type
2795
+ else:
2796
+ _default_content_type = (
2797
+ self.api_client.select_header_content_type(
2798
+ [
2799
+ 'application/json',
2800
+ 'text/json',
2801
+ 'application/*+json',
2802
+ 'text/plain'
2803
+ ]
2804
+ )
2805
+ )
2806
+ if _default_content_type is not None:
2807
+ _header_params['Content-Type'] = _default_content_type
2808
+
2809
+ # authentication setting
2810
+ _auth_settings: List[str] = [
2811
+ 'bearer',
2812
+ 'oauth2'
2813
+ ]
2814
+
2815
+ return self.api_client.param_serialize(
2816
+ method='POST',
2817
+ resource_path='/leaderboard/{leaderboardId}/prompts',
2818
+ path_params=_path_params,
2819
+ query_params=_query_params,
2820
+ header_params=_header_params,
2821
+ body=_body_params,
2822
+ post_params=_form_params,
2823
+ files=_files,
2824
+ auth_settings=_auth_settings,
2825
+ collection_formats=_collection_formats,
2826
+ _host=_host,
2827
+ _request_auth=_request_auth
2828
+ )
2829
+
2830
+
2831
+
2832
+
2833
+ @validate_call
2834
+ def leaderboard_leaderboard_id_refresh_post(
2835
+ self,
2836
+ leaderboard_id: StrictStr,
2837
+ _request_timeout: Union[
2838
+ None,
2839
+ Annotated[StrictFloat, Field(gt=0)],
2840
+ Tuple[
2841
+ Annotated[StrictFloat, Field(gt=0)],
2842
+ Annotated[StrictFloat, Field(gt=0)]
2843
+ ]
2844
+ ] = None,
2845
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2846
+ _content_type: Optional[StrictStr] = None,
2847
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2848
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2849
+ ) -> None:
2850
+ """This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
2851
+
2852
+
2853
+ :param leaderboard_id: (required)
2854
+ :type leaderboard_id: str
2855
+ :param _request_timeout: timeout setting for this request. If one
2856
+ number provided, it will be total request
2857
+ timeout. It can also be a pair (tuple) of
2858
+ (connection, read) timeouts.
2859
+ :type _request_timeout: int, tuple(int, int), optional
2860
+ :param _request_auth: set to override the auth_settings for an a single
2861
+ request; this effectively ignores the
2862
+ authentication in the spec for a single request.
2863
+ :type _request_auth: dict, optional
2864
+ :param _content_type: force content-type for the request.
2865
+ :type _content_type: str, Optional
2866
+ :param _headers: set to override the headers for a single
2867
+ request; this effectively ignores the headers
2868
+ in the spec for a single request.
2869
+ :type _headers: dict, optional
2870
+ :param _host_index: set to override the host_index for a single
2871
+ request; this effectively ignores the host_index
2872
+ in the spec for a single request.
2873
+ :type _host_index: int, optional
2874
+ :return: Returns the result object.
2875
+ """ # noqa: E501
2876
+
2877
+ _param = self._leaderboard_leaderboard_id_refresh_post_serialize(
2878
+ leaderboard_id=leaderboard_id,
2879
+ _request_auth=_request_auth,
2880
+ _content_type=_content_type,
2881
+ _headers=_headers,
2882
+ _host_index=_host_index
2883
+ )
2884
+
1753
2885
  _response_types_map: Dict[str, Optional[str]] = {
1754
2886
  '204': None,
1755
2887
  }
@@ -1765,10 +2897,9 @@ class LeaderboardApi:
1765
2897
 
1766
2898
 
1767
2899
  @validate_call
1768
- def leaderboard_leaderboard_id_prompts_post_with_http_info(
2900
+ def leaderboard_leaderboard_id_refresh_post_with_http_info(
1769
2901
  self,
1770
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
1771
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
2902
+ leaderboard_id: StrictStr,
1772
2903
  _request_timeout: Union[
1773
2904
  None,
1774
2905
  Annotated[StrictFloat, Field(gt=0)],
@@ -1782,13 +2913,11 @@ class LeaderboardApi:
1782
2913
  _headers: Optional[Dict[StrictStr, Any]] = None,
1783
2914
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1784
2915
  ) -> ApiResponse[None]:
1785
- """adds a new prompt to a leaderboard.
2916
+ """This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
1786
2917
 
1787
2918
 
1788
- :param leaderboard_id: The leaderboard id. (required)
2919
+ :param leaderboard_id: (required)
1789
2920
  :type leaderboard_id: str
1790
- :param body: The prompt
1791
- :type body: str
1792
2921
  :param _request_timeout: timeout setting for this request. If one
1793
2922
  number provided, it will be total request
1794
2923
  timeout. It can also be a pair (tuple) of
@@ -1811,9 +2940,8 @@ class LeaderboardApi:
1811
2940
  :return: Returns the result object.
1812
2941
  """ # noqa: E501
1813
2942
 
1814
- _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
2943
+ _param = self._leaderboard_leaderboard_id_refresh_post_serialize(
1815
2944
  leaderboard_id=leaderboard_id,
1816
- body=body,
1817
2945
  _request_auth=_request_auth,
1818
2946
  _content_type=_content_type,
1819
2947
  _headers=_headers,
@@ -1835,10 +2963,9 @@ class LeaderboardApi:
1835
2963
 
1836
2964
 
1837
2965
  @validate_call
1838
- def leaderboard_leaderboard_id_prompts_post_without_preload_content(
2966
+ def leaderboard_leaderboard_id_refresh_post_without_preload_content(
1839
2967
  self,
1840
- leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
1841
- body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
2968
+ leaderboard_id: StrictStr,
1842
2969
  _request_timeout: Union[
1843
2970
  None,
1844
2971
  Annotated[StrictFloat, Field(gt=0)],
@@ -1852,13 +2979,11 @@ class LeaderboardApi:
1852
2979
  _headers: Optional[Dict[StrictStr, Any]] = None,
1853
2980
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1854
2981
  ) -> RESTResponseType:
1855
- """adds a new prompt to a leaderboard.
2982
+ """This will force an update to all standings of a leaderboard. this could happen if the recorded matches and scores are out of sync
1856
2983
 
1857
2984
 
1858
- :param leaderboard_id: The leaderboard id. (required)
2985
+ :param leaderboard_id: (required)
1859
2986
  :type leaderboard_id: str
1860
- :param body: The prompt
1861
- :type body: str
1862
2987
  :param _request_timeout: timeout setting for this request. If one
1863
2988
  number provided, it will be total request
1864
2989
  timeout. It can also be a pair (tuple) of
@@ -1881,9 +3006,8 @@ class LeaderboardApi:
1881
3006
  :return: Returns the result object.
1882
3007
  """ # noqa: E501
1883
3008
 
1884
- _param = self._leaderboard_leaderboard_id_prompts_post_serialize(
3009
+ _param = self._leaderboard_leaderboard_id_refresh_post_serialize(
1885
3010
  leaderboard_id=leaderboard_id,
1886
- body=body,
1887
3011
  _request_auth=_request_auth,
1888
3012
  _content_type=_content_type,
1889
3013
  _headers=_headers,
@@ -1900,10 +3024,9 @@ class LeaderboardApi:
1900
3024
  return response_data.response
1901
3025
 
1902
3026
 
1903
- def _leaderboard_leaderboard_id_prompts_post_serialize(
3027
+ def _leaderboard_leaderboard_id_refresh_post_serialize(
1904
3028
  self,
1905
3029
  leaderboard_id,
1906
- body,
1907
3030
  _request_auth,
1908
3031
  _content_type,
1909
3032
  _headers,
@@ -1931,27 +3054,9 @@ class LeaderboardApi:
1931
3054
  # process the header parameters
1932
3055
  # process the form parameters
1933
3056
  # process the body parameter
1934
- if body is not None:
1935
- _body_params = body
1936
3057
 
1937
3058
 
1938
3059
 
1939
- # set the HTTP header `Content-Type`
1940
- if _content_type:
1941
- _header_params['Content-Type'] = _content_type
1942
- else:
1943
- _default_content_type = (
1944
- self.api_client.select_header_content_type(
1945
- [
1946
- 'application/json',
1947
- 'text/json',
1948
- 'application/*+json',
1949
- 'text/plain'
1950
- ]
1951
- )
1952
- )
1953
- if _default_content_type is not None:
1954
- _header_params['Content-Type'] = _default_content_type
1955
3060
 
1956
3061
  # authentication setting
1957
3062
  _auth_settings: List[str] = [
@@ -1961,7 +3066,7 @@ class LeaderboardApi:
1961
3066
 
1962
3067
  return self.api_client.param_serialize(
1963
3068
  method='POST',
1964
- resource_path='/leaderboard/{leaderboardId}/prompts',
3069
+ resource_path='/leaderboard/{leaderboardId}/refresh',
1965
3070
  path_params=_path_params,
1966
3071
  query_params=_query_params,
1967
3072
  header_params=_header_params,
@@ -1978,9 +3083,10 @@ class LeaderboardApi:
1978
3083
 
1979
3084
 
1980
3085
  @validate_call
1981
- def leaderboard_participant_participant_id_get(
3086
+ def leaderboard_leaderboard_id_standings_get(
1982
3087
  self,
1983
- participant_id: StrictStr,
3088
+ leaderboard_id: StrictStr,
3089
+ request: Optional[QueryModel] = None,
1984
3090
  _request_timeout: Union[
1985
3091
  None,
1986
3092
  Annotated[StrictFloat, Field(gt=0)],
@@ -1993,12 +3099,14 @@ class LeaderboardApi:
1993
3099
  _content_type: Optional[StrictStr] = None,
1994
3100
  _headers: Optional[Dict[StrictStr, Any]] = None,
1995
3101
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1996
- ) -> GetParticipantByIdResult:
1997
- """Gets a participant by its ID.
3102
+ ) -> StandingByLeaderboardPagedResult:
3103
+ """queries all the participants connected to leaderboard by its ID.
1998
3104
 
1999
3105
 
2000
- :param participant_id: (required)
2001
- :type participant_id: str
3106
+ :param leaderboard_id: (required)
3107
+ :type leaderboard_id: str
3108
+ :param request:
3109
+ :type request: QueryModel
2002
3110
  :param _request_timeout: timeout setting for this request. If one
2003
3111
  number provided, it will be total request
2004
3112
  timeout. It can also be a pair (tuple) of
@@ -2021,8 +3129,9 @@ class LeaderboardApi:
2021
3129
  :return: Returns the result object.
2022
3130
  """ # noqa: E501
2023
3131
 
2024
- _param = self._leaderboard_participant_participant_id_get_serialize(
2025
- participant_id=participant_id,
3132
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
3133
+ leaderboard_id=leaderboard_id,
3134
+ request=request,
2026
3135
  _request_auth=_request_auth,
2027
3136
  _content_type=_content_type,
2028
3137
  _headers=_headers,
@@ -2030,7 +3139,7 @@ class LeaderboardApi:
2030
3139
  )
2031
3140
 
2032
3141
  _response_types_map: Dict[str, Optional[str]] = {
2033
- '200': "GetParticipantByIdResult",
3142
+ '200': "StandingByLeaderboardPagedResult",
2034
3143
  }
2035
3144
  response_data = self.api_client.call_api(
2036
3145
  *_param,
@@ -2044,9 +3153,10 @@ class LeaderboardApi:
2044
3153
 
2045
3154
 
2046
3155
  @validate_call
2047
- def leaderboard_participant_participant_id_get_with_http_info(
3156
+ def leaderboard_leaderboard_id_standings_get_with_http_info(
2048
3157
  self,
2049
- participant_id: StrictStr,
3158
+ leaderboard_id: StrictStr,
3159
+ request: Optional[QueryModel] = None,
2050
3160
  _request_timeout: Union[
2051
3161
  None,
2052
3162
  Annotated[StrictFloat, Field(gt=0)],
@@ -2059,12 +3169,14 @@ class LeaderboardApi:
2059
3169
  _content_type: Optional[StrictStr] = None,
2060
3170
  _headers: Optional[Dict[StrictStr, Any]] = None,
2061
3171
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2062
- ) -> ApiResponse[GetParticipantByIdResult]:
2063
- """Gets a participant by its ID.
3172
+ ) -> ApiResponse[StandingByLeaderboardPagedResult]:
3173
+ """queries all the participants connected to leaderboard by its ID.
2064
3174
 
2065
3175
 
2066
- :param participant_id: (required)
2067
- :type participant_id: str
3176
+ :param leaderboard_id: (required)
3177
+ :type leaderboard_id: str
3178
+ :param request:
3179
+ :type request: QueryModel
2068
3180
  :param _request_timeout: timeout setting for this request. If one
2069
3181
  number provided, it will be total request
2070
3182
  timeout. It can also be a pair (tuple) of
@@ -2087,8 +3199,9 @@ class LeaderboardApi:
2087
3199
  :return: Returns the result object.
2088
3200
  """ # noqa: E501
2089
3201
 
2090
- _param = self._leaderboard_participant_participant_id_get_serialize(
2091
- participant_id=participant_id,
3202
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
3203
+ leaderboard_id=leaderboard_id,
3204
+ request=request,
2092
3205
  _request_auth=_request_auth,
2093
3206
  _content_type=_content_type,
2094
3207
  _headers=_headers,
@@ -2096,7 +3209,7 @@ class LeaderboardApi:
2096
3209
  )
2097
3210
 
2098
3211
  _response_types_map: Dict[str, Optional[str]] = {
2099
- '200': "GetParticipantByIdResult",
3212
+ '200': "StandingByLeaderboardPagedResult",
2100
3213
  }
2101
3214
  response_data = self.api_client.call_api(
2102
3215
  *_param,
@@ -2110,9 +3223,10 @@ class LeaderboardApi:
2110
3223
 
2111
3224
 
2112
3225
  @validate_call
2113
- def leaderboard_participant_participant_id_get_without_preload_content(
3226
+ def leaderboard_leaderboard_id_standings_get_without_preload_content(
2114
3227
  self,
2115
- participant_id: StrictStr,
3228
+ leaderboard_id: StrictStr,
3229
+ request: Optional[QueryModel] = None,
2116
3230
  _request_timeout: Union[
2117
3231
  None,
2118
3232
  Annotated[StrictFloat, Field(gt=0)],
@@ -2126,11 +3240,13 @@ class LeaderboardApi:
2126
3240
  _headers: Optional[Dict[StrictStr, Any]] = None,
2127
3241
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2128
3242
  ) -> RESTResponseType:
2129
- """Gets a participant by its ID.
3243
+ """queries all the participants connected to leaderboard by its ID.
2130
3244
 
2131
3245
 
2132
- :param participant_id: (required)
2133
- :type participant_id: str
3246
+ :param leaderboard_id: (required)
3247
+ :type leaderboard_id: str
3248
+ :param request:
3249
+ :type request: QueryModel
2134
3250
  :param _request_timeout: timeout setting for this request. If one
2135
3251
  number provided, it will be total request
2136
3252
  timeout. It can also be a pair (tuple) of
@@ -2153,8 +3269,9 @@ class LeaderboardApi:
2153
3269
  :return: Returns the result object.
2154
3270
  """ # noqa: E501
2155
3271
 
2156
- _param = self._leaderboard_participant_participant_id_get_serialize(
2157
- participant_id=participant_id,
3272
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
3273
+ leaderboard_id=leaderboard_id,
3274
+ request=request,
2158
3275
  _request_auth=_request_auth,
2159
3276
  _content_type=_content_type,
2160
3277
  _headers=_headers,
@@ -2162,7 +3279,7 @@ class LeaderboardApi:
2162
3279
  )
2163
3280
 
2164
3281
  _response_types_map: Dict[str, Optional[str]] = {
2165
- '200': "GetParticipantByIdResult",
3282
+ '200': "StandingByLeaderboardPagedResult",
2166
3283
  }
2167
3284
  response_data = self.api_client.call_api(
2168
3285
  *_param,
@@ -2171,9 +3288,10 @@ class LeaderboardApi:
2171
3288
  return response_data.response
2172
3289
 
2173
3290
 
2174
- def _leaderboard_participant_participant_id_get_serialize(
3291
+ def _leaderboard_leaderboard_id_standings_get_serialize(
2175
3292
  self,
2176
- participant_id,
3293
+ leaderboard_id,
3294
+ request,
2177
3295
  _request_auth,
2178
3296
  _content_type,
2179
3297
  _headers,
@@ -2195,9 +3313,13 @@ class LeaderboardApi:
2195
3313
  _body_params: Optional[bytes] = None
2196
3314
 
2197
3315
  # process the path parameters
2198
- if participant_id is not None:
2199
- _path_params['participantId'] = participant_id
3316
+ if leaderboard_id is not None:
3317
+ _path_params['leaderboardId'] = leaderboard_id
2200
3318
  # process the query parameters
3319
+ if request is not None:
3320
+
3321
+ _query_params.append(('request', request))
3322
+
2201
3323
  # process the header parameters
2202
3324
  # process the form parameters
2203
3325
  # process the body parameter
@@ -2222,7 +3344,7 @@ class LeaderboardApi:
2222
3344
 
2223
3345
  return self.api_client.param_serialize(
2224
3346
  method='GET',
2225
- resource_path='/leaderboard/participant/{participantId}',
3347
+ resource_path='/leaderboard/{leaderboardId}/standings',
2226
3348
  path_params=_path_params,
2227
3349
  query_params=_query_params,
2228
3350
  header_params=_header_params,