rapidata 2.41.3__py3-none-any.whl → 2.42.0__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 (74) hide show
  1. rapidata/__init__.py +1 -5
  2. rapidata/api_client/__init__.py +14 -14
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/asset_api.py +851 -0
  5. rapidata/api_client/api/benchmark_api.py +298 -0
  6. rapidata/api_client/api/customer_rapid_api.py +29 -43
  7. rapidata/api_client/api/dataset_api.py +163 -1143
  8. rapidata/api_client/api/participant_api.py +28 -74
  9. rapidata/api_client/api/validation_set_api.py +283 -0
  10. rapidata/api_client/models/__init__.py +13 -14
  11. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  12. rapidata/api_client/models/add_validation_rapid_new_model.py +152 -0
  13. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  14. rapidata/api_client/models/compare_workflow_model.py +3 -3
  15. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  16. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  17. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  18. rapidata/api_client/models/create_datapoint_model.py +108 -0
  19. rapidata/api_client/models/create_datapoint_model_asset.py +182 -0
  20. rapidata/api_client/models/create_demographic_rapid_model.py +13 -2
  21. rapidata/api_client/models/create_demographic_rapid_model_asset.py +188 -0
  22. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  23. rapidata/api_client/models/create_sample_model.py +8 -2
  24. rapidata/api_client/models/create_sample_model_asset.py +182 -0
  25. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  26. rapidata/api_client/models/file_asset_input_file.py +8 -22
  27. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  28. rapidata/api_client/models/form_file_wrapper.py +17 -2
  29. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  30. rapidata/api_client/models/multi_asset_input_assets_inner.py +10 -24
  31. rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
  32. rapidata/api_client/models/proxy_file_wrapper.py +17 -2
  33. rapidata/api_client/models/stream_file_wrapper.py +25 -3
  34. rapidata/api_client/models/submit_prompt_model.py +3 -3
  35. rapidata/api_client/models/text_metadata.py +6 -1
  36. rapidata/api_client/models/text_metadata_model.py +7 -2
  37. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  38. rapidata/api_client/models/upload_file_result.py +87 -0
  39. rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
  40. rapidata/api_client_README.md +28 -25
  41. rapidata/rapidata_client/__init__.py +0 -1
  42. rapidata/rapidata_client/benchmark/participant/_participant.py +24 -22
  43. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +89 -102
  44. rapidata/rapidata_client/datapoints/__init__.py +0 -1
  45. rapidata/rapidata_client/datapoints/_asset_uploader.py +71 -0
  46. rapidata/rapidata_client/datapoints/_datapoint.py +58 -171
  47. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +95 -0
  48. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -11
  49. rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +10 -7
  50. rapidata/rapidata_client/demographic/demographic_manager.py +21 -8
  51. rapidata/rapidata_client/exceptions/failed_upload_exception.py +0 -62
  52. rapidata/rapidata_client/order/_rapidata_order_builder.py +0 -10
  53. rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +67 -187
  54. rapidata/rapidata_client/order/rapidata_order_manager.py +58 -124
  55. rapidata/rapidata_client/validation/rapidata_validation_set.py +9 -5
  56. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +101 -0
  57. rapidata/rapidata_client/validation/rapids/box.py +35 -11
  58. rapidata/rapidata_client/validation/rapids/rapids.py +26 -128
  59. rapidata/rapidata_client/validation/rapids/rapids_manager.py +123 -104
  60. rapidata/rapidata_client/validation/validation_set_manager.py +25 -34
  61. rapidata/rapidata_client/workflow/_ranking_workflow.py +14 -17
  62. rapidata/rapidata_client/workflow/_select_words_workflow.py +3 -16
  63. rapidata/service/openapi_service.py +8 -3
  64. {rapidata-2.41.3.dist-info → rapidata-2.42.0.dist-info}/METADATA +1 -1
  65. {rapidata-2.41.3.dist-info → rapidata-2.42.0.dist-info}/RECORD +67 -58
  66. {rapidata-2.41.3.dist-info → rapidata-2.42.0.dist-info}/WHEEL +1 -1
  67. rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -13
  68. rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -318
  69. rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
  70. rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -40
  71. rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
  72. rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
  73. rapidata/rapidata_client/order/dataset/_progress_tracker.py +0 -100
  74. {rapidata-2.41.3.dist-info → rapidata-2.42.0.dist-info}/licenses/LICENSE +0 -0
@@ -25,6 +25,7 @@ from rapidata.api_client.models.create_benchmark_participant_model import Create
25
25
  from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
26
26
  from rapidata.api_client.models.create_benchmark_prompt_result import CreateBenchmarkPromptResult
27
27
  from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
28
+ from rapidata.api_client.models.fork_benchmark_result import ForkBenchmarkResult
28
29
  from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
29
30
  from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
30
31
  from rapidata.api_client.models.participant_by_benchmark_paged_result import ParticipantByBenchmarkPagedResult
@@ -306,6 +307,267 @@ class BenchmarkApi:
306
307
 
307
308
 
308
309
 
310
+ @validate_call
311
+ def benchmark_benchmark_id_fork_post(
312
+ self,
313
+ benchmark_id: StrictStr,
314
+ _request_timeout: Union[
315
+ None,
316
+ Annotated[StrictFloat, Field(gt=0)],
317
+ Tuple[
318
+ Annotated[StrictFloat, Field(gt=0)],
319
+ Annotated[StrictFloat, Field(gt=0)]
320
+ ]
321
+ ] = None,
322
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
323
+ _content_type: Optional[StrictStr] = None,
324
+ _headers: Optional[Dict[StrictStr, Any]] = None,
325
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
326
+ ) -> ForkBenchmarkResult:
327
+ """Creates a copy of a public benchmark and all of its related entities
328
+
329
+
330
+ :param benchmark_id: (required)
331
+ :type benchmark_id: str
332
+ :param _request_timeout: timeout setting for this request. If one
333
+ number provided, it will be total request
334
+ timeout. It can also be a pair (tuple) of
335
+ (connection, read) timeouts.
336
+ :type _request_timeout: int, tuple(int, int), optional
337
+ :param _request_auth: set to override the auth_settings for an a single
338
+ request; this effectively ignores the
339
+ authentication in the spec for a single request.
340
+ :type _request_auth: dict, optional
341
+ :param _content_type: force content-type for the request.
342
+ :type _content_type: str, Optional
343
+ :param _headers: set to override the headers for a single
344
+ request; this effectively ignores the headers
345
+ in the spec for a single request.
346
+ :type _headers: dict, optional
347
+ :param _host_index: set to override the host_index for a single
348
+ request; this effectively ignores the host_index
349
+ in the spec for a single request.
350
+ :type _host_index: int, optional
351
+ :return: Returns the result object.
352
+ """ # noqa: E501
353
+
354
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
355
+ benchmark_id=benchmark_id,
356
+ _request_auth=_request_auth,
357
+ _content_type=_content_type,
358
+ _headers=_headers,
359
+ _host_index=_host_index
360
+ )
361
+
362
+ _response_types_map: Dict[str, Optional[str]] = {
363
+ '200': "ForkBenchmarkResult",
364
+ }
365
+ response_data = self.api_client.call_api(
366
+ *_param,
367
+ _request_timeout=_request_timeout
368
+ )
369
+ response_data.read()
370
+ return self.api_client.response_deserialize(
371
+ response_data=response_data,
372
+ response_types_map=_response_types_map,
373
+ ).data
374
+
375
+
376
+ @validate_call
377
+ def benchmark_benchmark_id_fork_post_with_http_info(
378
+ self,
379
+ benchmark_id: StrictStr,
380
+ _request_timeout: Union[
381
+ None,
382
+ Annotated[StrictFloat, Field(gt=0)],
383
+ Tuple[
384
+ Annotated[StrictFloat, Field(gt=0)],
385
+ Annotated[StrictFloat, Field(gt=0)]
386
+ ]
387
+ ] = None,
388
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
389
+ _content_type: Optional[StrictStr] = None,
390
+ _headers: Optional[Dict[StrictStr, Any]] = None,
391
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
392
+ ) -> ApiResponse[ForkBenchmarkResult]:
393
+ """Creates a copy of a public benchmark and all of its related entities
394
+
395
+
396
+ :param benchmark_id: (required)
397
+ :type benchmark_id: str
398
+ :param _request_timeout: timeout setting for this request. If one
399
+ number provided, it will be total request
400
+ timeout. It can also be a pair (tuple) of
401
+ (connection, read) timeouts.
402
+ :type _request_timeout: int, tuple(int, int), optional
403
+ :param _request_auth: set to override the auth_settings for an a single
404
+ request; this effectively ignores the
405
+ authentication in the spec for a single request.
406
+ :type _request_auth: dict, optional
407
+ :param _content_type: force content-type for the request.
408
+ :type _content_type: str, Optional
409
+ :param _headers: set to override the headers for a single
410
+ request; this effectively ignores the headers
411
+ in the spec for a single request.
412
+ :type _headers: dict, optional
413
+ :param _host_index: set to override the host_index for a single
414
+ request; this effectively ignores the host_index
415
+ in the spec for a single request.
416
+ :type _host_index: int, optional
417
+ :return: Returns the result object.
418
+ """ # noqa: E501
419
+
420
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
421
+ benchmark_id=benchmark_id,
422
+ _request_auth=_request_auth,
423
+ _content_type=_content_type,
424
+ _headers=_headers,
425
+ _host_index=_host_index
426
+ )
427
+
428
+ _response_types_map: Dict[str, Optional[str]] = {
429
+ '200': "ForkBenchmarkResult",
430
+ }
431
+ response_data = self.api_client.call_api(
432
+ *_param,
433
+ _request_timeout=_request_timeout
434
+ )
435
+ response_data.read()
436
+ return self.api_client.response_deserialize(
437
+ response_data=response_data,
438
+ response_types_map=_response_types_map,
439
+ )
440
+
441
+
442
+ @validate_call
443
+ def benchmark_benchmark_id_fork_post_without_preload_content(
444
+ self,
445
+ benchmark_id: StrictStr,
446
+ _request_timeout: Union[
447
+ None,
448
+ Annotated[StrictFloat, Field(gt=0)],
449
+ Tuple[
450
+ Annotated[StrictFloat, Field(gt=0)],
451
+ Annotated[StrictFloat, Field(gt=0)]
452
+ ]
453
+ ] = None,
454
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
455
+ _content_type: Optional[StrictStr] = None,
456
+ _headers: Optional[Dict[StrictStr, Any]] = None,
457
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
458
+ ) -> RESTResponseType:
459
+ """Creates a copy of a public benchmark and all of its related entities
460
+
461
+
462
+ :param benchmark_id: (required)
463
+ :type benchmark_id: str
464
+ :param _request_timeout: timeout setting for this request. If one
465
+ number provided, it will be total request
466
+ timeout. It can also be a pair (tuple) of
467
+ (connection, read) timeouts.
468
+ :type _request_timeout: int, tuple(int, int), optional
469
+ :param _request_auth: set to override the auth_settings for an a single
470
+ request; this effectively ignores the
471
+ authentication in the spec for a single request.
472
+ :type _request_auth: dict, optional
473
+ :param _content_type: force content-type for the request.
474
+ :type _content_type: str, Optional
475
+ :param _headers: set to override the headers for a single
476
+ request; this effectively ignores the headers
477
+ in the spec for a single request.
478
+ :type _headers: dict, optional
479
+ :param _host_index: set to override the host_index for a single
480
+ request; this effectively ignores the host_index
481
+ in the spec for a single request.
482
+ :type _host_index: int, optional
483
+ :return: Returns the result object.
484
+ """ # noqa: E501
485
+
486
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
487
+ benchmark_id=benchmark_id,
488
+ _request_auth=_request_auth,
489
+ _content_type=_content_type,
490
+ _headers=_headers,
491
+ _host_index=_host_index
492
+ )
493
+
494
+ _response_types_map: Dict[str, Optional[str]] = {
495
+ '200': "ForkBenchmarkResult",
496
+ }
497
+ response_data = self.api_client.call_api(
498
+ *_param,
499
+ _request_timeout=_request_timeout
500
+ )
501
+ return response_data.response
502
+
503
+
504
+ def _benchmark_benchmark_id_fork_post_serialize(
505
+ self,
506
+ benchmark_id,
507
+ _request_auth,
508
+ _content_type,
509
+ _headers,
510
+ _host_index,
511
+ ) -> RequestSerialized:
512
+
513
+ _host = None
514
+
515
+ _collection_formats: Dict[str, str] = {
516
+ }
517
+
518
+ _path_params: Dict[str, str] = {}
519
+ _query_params: List[Tuple[str, str]] = []
520
+ _header_params: Dict[str, Optional[str]] = _headers or {}
521
+ _form_params: List[Tuple[str, str]] = []
522
+ _files: Dict[
523
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
524
+ ] = {}
525
+ _body_params: Optional[bytes] = None
526
+
527
+ # process the path parameters
528
+ if benchmark_id is not None:
529
+ _path_params['benchmarkId'] = benchmark_id
530
+ # process the query parameters
531
+ # process the header parameters
532
+ # process the form parameters
533
+ # process the body parameter
534
+
535
+
536
+ # set the HTTP header `Accept`
537
+ if 'Accept' not in _header_params:
538
+ _header_params['Accept'] = self.api_client.select_header_accept(
539
+ [
540
+ 'text/plain',
541
+ 'application/json',
542
+ 'text/json'
543
+ ]
544
+ )
545
+
546
+
547
+ # authentication setting
548
+ _auth_settings: List[str] = [
549
+ 'bearer',
550
+ 'oauth2'
551
+ ]
552
+
553
+ return self.api_client.param_serialize(
554
+ method='POST',
555
+ resource_path='/benchmark/{benchmarkId}/fork',
556
+ path_params=_path_params,
557
+ query_params=_query_params,
558
+ header_params=_header_params,
559
+ body=_body_params,
560
+ post_params=_form_params,
561
+ files=_files,
562
+ auth_settings=_auth_settings,
563
+ collection_formats=_collection_formats,
564
+ _host=_host,
565
+ _request_auth=_request_auth
566
+ )
567
+
568
+
569
+
570
+
309
571
  @validate_call
310
572
  def benchmark_benchmark_id_get(
311
573
  self,
@@ -2546,6 +2808,8 @@ class BenchmarkApi:
2546
2808
  self,
2547
2809
  benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark, which standings should be queried")],
2548
2810
  tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the benchmark should filter for.")] = None,
2811
+ participant_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the participants that should be filtered for. leave empty to not filter")] = None,
2812
+ leaderboard_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the leaderboards that should be filtered for. leave empty to not filter")] = None,
2549
2813
  use_weighted_scoring: Annotated[Optional[StrictBool], Field(description="Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)")] = None,
2550
2814
  include_confidence_intervals: Annotated[Optional[StrictBool], Field(description="Whether to include the confidence intervals")] = None,
2551
2815
  _request_timeout: Union[
@@ -2568,6 +2832,10 @@ class BenchmarkApi:
2568
2832
  :type benchmark_id: str
2569
2833
  :param tags: The tags the benchmark should filter for.
2570
2834
  :type tags: List[str]
2835
+ :param participant_ids: The ids of the participants that should be filtered for. leave empty to not filter
2836
+ :type participant_ids: List[str]
2837
+ :param leaderboard_ids: The ids of the leaderboards that should be filtered for. leave empty to not filter
2838
+ :type leaderboard_ids: List[str]
2571
2839
  :param use_weighted_scoring: Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)
2572
2840
  :type use_weighted_scoring: bool
2573
2841
  :param include_confidence_intervals: Whether to include the confidence intervals
@@ -2597,6 +2865,8 @@ class BenchmarkApi:
2597
2865
  _param = self._benchmark_benchmark_id_standings_get_serialize(
2598
2866
  benchmark_id=benchmark_id,
2599
2867
  tags=tags,
2868
+ participant_ids=participant_ids,
2869
+ leaderboard_ids=leaderboard_ids,
2600
2870
  use_weighted_scoring=use_weighted_scoring,
2601
2871
  include_confidence_intervals=include_confidence_intervals,
2602
2872
  _request_auth=_request_auth,
@@ -2624,6 +2894,8 @@ class BenchmarkApi:
2624
2894
  self,
2625
2895
  benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark, which standings should be queried")],
2626
2896
  tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the benchmark should filter for.")] = None,
2897
+ participant_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the participants that should be filtered for. leave empty to not filter")] = None,
2898
+ leaderboard_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the leaderboards that should be filtered for. leave empty to not filter")] = None,
2627
2899
  use_weighted_scoring: Annotated[Optional[StrictBool], Field(description="Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)")] = None,
2628
2900
  include_confidence_intervals: Annotated[Optional[StrictBool], Field(description="Whether to include the confidence intervals")] = None,
2629
2901
  _request_timeout: Union[
@@ -2646,6 +2918,10 @@ class BenchmarkApi:
2646
2918
  :type benchmark_id: str
2647
2919
  :param tags: The tags the benchmark should filter for.
2648
2920
  :type tags: List[str]
2921
+ :param participant_ids: The ids of the participants that should be filtered for. leave empty to not filter
2922
+ :type participant_ids: List[str]
2923
+ :param leaderboard_ids: The ids of the leaderboards that should be filtered for. leave empty to not filter
2924
+ :type leaderboard_ids: List[str]
2649
2925
  :param use_weighted_scoring: Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)
2650
2926
  :type use_weighted_scoring: bool
2651
2927
  :param include_confidence_intervals: Whether to include the confidence intervals
@@ -2675,6 +2951,8 @@ class BenchmarkApi:
2675
2951
  _param = self._benchmark_benchmark_id_standings_get_serialize(
2676
2952
  benchmark_id=benchmark_id,
2677
2953
  tags=tags,
2954
+ participant_ids=participant_ids,
2955
+ leaderboard_ids=leaderboard_ids,
2678
2956
  use_weighted_scoring=use_weighted_scoring,
2679
2957
  include_confidence_intervals=include_confidence_intervals,
2680
2958
  _request_auth=_request_auth,
@@ -2702,6 +2980,8 @@ class BenchmarkApi:
2702
2980
  self,
2703
2981
  benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark, which standings should be queried")],
2704
2982
  tags: Annotated[Optional[List[StrictStr]], Field(description="The tags the benchmark should filter for.")] = None,
2983
+ participant_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the participants that should be filtered for. leave empty to not filter")] = None,
2984
+ leaderboard_ids: Annotated[Optional[List[StrictStr]], Field(description="The ids of the leaderboards that should be filtered for. leave empty to not filter")] = None,
2705
2985
  use_weighted_scoring: Annotated[Optional[StrictBool], Field(description="Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)")] = None,
2706
2986
  include_confidence_intervals: Annotated[Optional[StrictBool], Field(description="Whether to include the confidence intervals")] = None,
2707
2987
  _request_timeout: Union[
@@ -2724,6 +3004,10 @@ class BenchmarkApi:
2724
3004
  :type benchmark_id: str
2725
3005
  :param tags: The tags the benchmark should filter for.
2726
3006
  :type tags: List[str]
3007
+ :param participant_ids: The ids of the participants that should be filtered for. leave empty to not filter
3008
+ :type participant_ids: List[str]
3009
+ :param leaderboard_ids: The ids of the leaderboards that should be filtered for. leave empty to not filter
3010
+ :type leaderboard_ids: List[str]
2727
3011
  :param use_weighted_scoring: Whether to use weighted scoring based on user scores (defaults to false for backwards compatibility)
2728
3012
  :type use_weighted_scoring: bool
2729
3013
  :param include_confidence_intervals: Whether to include the confidence intervals
@@ -2753,6 +3037,8 @@ class BenchmarkApi:
2753
3037
  _param = self._benchmark_benchmark_id_standings_get_serialize(
2754
3038
  benchmark_id=benchmark_id,
2755
3039
  tags=tags,
3040
+ participant_ids=participant_ids,
3041
+ leaderboard_ids=leaderboard_ids,
2756
3042
  use_weighted_scoring=use_weighted_scoring,
2757
3043
  include_confidence_intervals=include_confidence_intervals,
2758
3044
  _request_auth=_request_auth,
@@ -2775,6 +3061,8 @@ class BenchmarkApi:
2775
3061
  self,
2776
3062
  benchmark_id,
2777
3063
  tags,
3064
+ participant_ids,
3065
+ leaderboard_ids,
2778
3066
  use_weighted_scoring,
2779
3067
  include_confidence_intervals,
2780
3068
  _request_auth,
@@ -2787,6 +3075,8 @@ class BenchmarkApi:
2787
3075
 
2788
3076
  _collection_formats: Dict[str, str] = {
2789
3077
  'tags': 'multi',
3078
+ 'participantIds': 'multi',
3079
+ 'leaderboardIds': 'multi',
2790
3080
  }
2791
3081
 
2792
3082
  _path_params: Dict[str, str] = {}
@@ -2806,6 +3096,14 @@ class BenchmarkApi:
2806
3096
 
2807
3097
  _query_params.append(('tags', tags))
2808
3098
 
3099
+ if participant_ids is not None:
3100
+
3101
+ _query_params.append(('participantIds', participant_ids))
3102
+
3103
+ if leaderboard_ids is not None:
3104
+
3105
+ _query_params.append(('leaderboardIds', leaderboard_ids))
3106
+
2809
3107
  if use_weighted_scoring is not None:
2810
3108
 
2811
3109
  _query_params.append(('useWeightedScoring', use_weighted_scoring))
@@ -16,10 +16,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr
20
- from typing import List, Optional, Tuple, Union
19
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr
20
+ from typing import Optional, Union
21
21
  from typing_extensions import Annotated
22
- from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
22
+ from rapidata.api_client.models.create_demographic_rapid_model_new import CreateDemographicRapidModelNew
23
23
  from rapidata.api_client.models.create_rapid_result import CreateRapidResult
24
24
  from rapidata.api_client.models.get_public_responses_result import GetPublicResponsesResult
25
25
  from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
@@ -377,10 +377,9 @@ class CustomerRapidApi:
377
377
 
378
378
 
379
379
  @validate_call
380
- def rapid_demographic_post(
380
+ def rapid_demographic_new_post(
381
381
  self,
382
- model: Optional[CreateDemographicRapidModel] = None,
383
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
382
+ create_demographic_rapid_model_new: Annotated[Optional[CreateDemographicRapidModelNew], Field(description="The model containing the demographic rapid.")] = None,
384
383
  _request_timeout: Union[
385
384
  None,
386
385
  Annotated[StrictFloat, Field(gt=0)],
@@ -397,10 +396,8 @@ class CustomerRapidApi:
397
396
  """Creates a new Demographic Rapid.
398
397
 
399
398
 
400
- :param model:
401
- :type model: CreateDemographicRapidModel
402
- :param file:
403
- :type file: List[bytearray]
399
+ :param create_demographic_rapid_model_new: The model containing the demographic rapid.
400
+ :type create_demographic_rapid_model_new: CreateDemographicRapidModelNew
404
401
  :param _request_timeout: timeout setting for this request. If one
405
402
  number provided, it will be total request
406
403
  timeout. It can also be a pair (tuple) of
@@ -423,9 +420,8 @@ class CustomerRapidApi:
423
420
  :return: Returns the result object.
424
421
  """ # noqa: E501
425
422
 
426
- _param = self._rapid_demographic_post_serialize(
427
- model=model,
428
- file=file,
423
+ _param = self._rapid_demographic_new_post_serialize(
424
+ create_demographic_rapid_model_new=create_demographic_rapid_model_new,
429
425
  _request_auth=_request_auth,
430
426
  _content_type=_content_type,
431
427
  _headers=_headers,
@@ -447,10 +443,9 @@ class CustomerRapidApi:
447
443
 
448
444
 
449
445
  @validate_call
450
- def rapid_demographic_post_with_http_info(
446
+ def rapid_demographic_new_post_with_http_info(
451
447
  self,
452
- model: Optional[CreateDemographicRapidModel] = None,
453
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
448
+ create_demographic_rapid_model_new: Annotated[Optional[CreateDemographicRapidModelNew], Field(description="The model containing the demographic rapid.")] = None,
454
449
  _request_timeout: Union[
455
450
  None,
456
451
  Annotated[StrictFloat, Field(gt=0)],
@@ -467,10 +462,8 @@ class CustomerRapidApi:
467
462
  """Creates a new Demographic Rapid.
468
463
 
469
464
 
470
- :param model:
471
- :type model: CreateDemographicRapidModel
472
- :param file:
473
- :type file: List[bytearray]
465
+ :param create_demographic_rapid_model_new: The model containing the demographic rapid.
466
+ :type create_demographic_rapid_model_new: CreateDemographicRapidModelNew
474
467
  :param _request_timeout: timeout setting for this request. If one
475
468
  number provided, it will be total request
476
469
  timeout. It can also be a pair (tuple) of
@@ -493,9 +486,8 @@ class CustomerRapidApi:
493
486
  :return: Returns the result object.
494
487
  """ # noqa: E501
495
488
 
496
- _param = self._rapid_demographic_post_serialize(
497
- model=model,
498
- file=file,
489
+ _param = self._rapid_demographic_new_post_serialize(
490
+ create_demographic_rapid_model_new=create_demographic_rapid_model_new,
499
491
  _request_auth=_request_auth,
500
492
  _content_type=_content_type,
501
493
  _headers=_headers,
@@ -517,10 +509,9 @@ class CustomerRapidApi:
517
509
 
518
510
 
519
511
  @validate_call
520
- def rapid_demographic_post_without_preload_content(
512
+ def rapid_demographic_new_post_without_preload_content(
521
513
  self,
522
- model: Optional[CreateDemographicRapidModel] = None,
523
- file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None,
514
+ create_demographic_rapid_model_new: Annotated[Optional[CreateDemographicRapidModelNew], Field(description="The model containing the demographic rapid.")] = None,
524
515
  _request_timeout: Union[
525
516
  None,
526
517
  Annotated[StrictFloat, Field(gt=0)],
@@ -537,10 +528,8 @@ class CustomerRapidApi:
537
528
  """Creates a new Demographic Rapid.
538
529
 
539
530
 
540
- :param model:
541
- :type model: CreateDemographicRapidModel
542
- :param file:
543
- :type file: List[bytearray]
531
+ :param create_demographic_rapid_model_new: The model containing the demographic rapid.
532
+ :type create_demographic_rapid_model_new: CreateDemographicRapidModelNew
544
533
  :param _request_timeout: timeout setting for this request. If one
545
534
  number provided, it will be total request
546
535
  timeout. It can also be a pair (tuple) of
@@ -563,9 +552,8 @@ class CustomerRapidApi:
563
552
  :return: Returns the result object.
564
553
  """ # noqa: E501
565
554
 
566
- _param = self._rapid_demographic_post_serialize(
567
- model=model,
568
- file=file,
555
+ _param = self._rapid_demographic_new_post_serialize(
556
+ create_demographic_rapid_model_new=create_demographic_rapid_model_new,
569
557
  _request_auth=_request_auth,
570
558
  _content_type=_content_type,
571
559
  _headers=_headers,
@@ -582,10 +570,9 @@ class CustomerRapidApi:
582
570
  return response_data.response
583
571
 
584
572
 
585
- def _rapid_demographic_post_serialize(
573
+ def _rapid_demographic_new_post_serialize(
586
574
  self,
587
- model,
588
- file,
575
+ create_demographic_rapid_model_new,
589
576
  _request_auth,
590
577
  _content_type,
591
578
  _headers,
@@ -595,7 +582,6 @@ class CustomerRapidApi:
595
582
  _host = None
596
583
 
597
584
  _collection_formats: Dict[str, str] = {
598
- 'file': 'multi',
599
585
  }
600
586
 
601
587
  _path_params: Dict[str, str] = {}
@@ -611,11 +597,9 @@ class CustomerRapidApi:
611
597
  # process the query parameters
612
598
  # process the header parameters
613
599
  # process the form parameters
614
- if model is not None:
615
- _form_params.append(('model', model))
616
- if file is not None:
617
- _files['file'] = file
618
600
  # process the body parameter
601
+ if create_demographic_rapid_model_new is not None:
602
+ _body_params = create_demographic_rapid_model_new
619
603
 
620
604
 
621
605
  # set the HTTP header `Accept`
@@ -635,7 +619,9 @@ class CustomerRapidApi:
635
619
  _default_content_type = (
636
620
  self.api_client.select_header_content_type(
637
621
  [
638
- 'multipart/form-data'
622
+ 'application/json',
623
+ 'text/json',
624
+ 'application/*+json'
639
625
  ]
640
626
  )
641
627
  )
@@ -650,7 +636,7 @@ class CustomerRapidApi:
650
636
 
651
637
  return self.api_client.param_serialize(
652
638
  method='POST',
653
- resource_path='/rapid/demographic',
639
+ resource_path='/rapid/demographic-new',
654
640
  path_params=_path_params,
655
641
  query_params=_query_params,
656
642
  header_params=_header_params,