rapidata 2.27.4__py3-none-any.whl → 2.27.6__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 (32) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +19 -1
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/client_api.py +319 -46
  5. rapidata/api_client/api/leaderboard_api.py +2506 -0
  6. rapidata/api_client/models/__init__.py +18 -1
  7. rapidata/api_client/models/client_model.py +191 -0
  8. rapidata/api_client/models/create_customer_client_result.py +89 -0
  9. rapidata/api_client/models/create_leaderboard_model.py +91 -0
  10. rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
  11. rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
  12. rapidata/api_client/models/create_leaderboard_result.py +87 -0
  13. rapidata/api_client/models/dynamic_client_registration_request.py +175 -0
  14. rapidata/api_client/models/get_leaderboard_by_id_result.py +91 -0
  15. rapidata/api_client/models/get_participant_by_id_result.py +102 -0
  16. rapidata/api_client/models/json_web_key.py +258 -0
  17. rapidata/api_client/models/json_web_key_set.py +115 -0
  18. rapidata/api_client/models/leaderboard_query_result.py +93 -0
  19. rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
  20. rapidata/api_client/models/participant_by_leaderboard.py +102 -0
  21. rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
  22. rapidata/api_client/models/participant_status.py +39 -0
  23. rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
  24. rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
  25. rapidata/api_client_README.md +29 -2
  26. rapidata/rapidata_client/order/_rapidata_dataset.py +91 -41
  27. rapidata/rapidata_client/order/_rapidata_order_builder.py +2 -44
  28. rapidata/rapidata_client/validation/validation_set_manager.py +14 -0
  29. {rapidata-2.27.4.dist-info → rapidata-2.27.6.dist-info}/METADATA +1 -1
  30. {rapidata-2.27.4.dist-info → rapidata-2.27.6.dist-info}/RECORD +32 -13
  31. {rapidata-2.27.4.dist-info → rapidata-2.27.6.dist-info}/LICENSE +0 -0
  32. {rapidata-2.27.4.dist-info → rapidata-2.27.6.dist-info}/WHEEL +0 -0
rapidata/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.27.4"
1
+ __version__ = "2.27.6"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -27,6 +27,7 @@ from rapidata.api_client.api.dataset_api import DatasetApi
27
27
  from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
28
28
  from rapidata.api_client.api.feedback_api import FeedbackApi
29
29
  from rapidata.api_client.api.identity_api import IdentityApi
30
+ from rapidata.api_client.api.leaderboard_api import LeaderboardApi
30
31
  from rapidata.api_client.api.newsletter_api import NewsletterApi
31
32
  from rapidata.api_client.api.order_api import OrderApi
32
33
  from rapidata.api_client.api.pipeline_api import PipelineApi
@@ -87,6 +88,7 @@ from rapidata.api_client.models.classification_metadata import ClassificationMet
87
88
  from rapidata.api_client.models.classification_metadata_filter_config import ClassificationMetadataFilterConfig
88
89
  from rapidata.api_client.models.classification_metadata_model import ClassificationMetadataModel
89
90
  from rapidata.api_client.models.classify_payload import ClassifyPayload
91
+ from rapidata.api_client.models.client_model import ClientModel
90
92
  from rapidata.api_client.models.clients_query_result import ClientsQueryResult
91
93
  from rapidata.api_client.models.clients_query_result_paged_result import ClientsQueryResultPagedResult
92
94
  from rapidata.api_client.models.clone_dataset_model import CloneDatasetModel
@@ -115,10 +117,10 @@ from rapidata.api_client.models.count_metadata_model import CountMetadataModel
115
117
  from rapidata.api_client.models.country_user_filter_model import CountryUserFilterModel
116
118
  from rapidata.api_client.models.create_bridge_token_result import CreateBridgeTokenResult
117
119
  from rapidata.api_client.models.create_client_model import CreateClientModel
118
- from rapidata.api_client.models.create_client_result import CreateClientResult
119
120
  from rapidata.api_client.models.create_complex_order_model import CreateComplexOrderModel
120
121
  from rapidata.api_client.models.create_complex_order_model_pipeline import CreateComplexOrderModelPipeline
121
122
  from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
123
+ from rapidata.api_client.models.create_customer_client_result import CreateCustomerClientResult
122
124
  from rapidata.api_client.models.create_datapoint_from_files_model import CreateDatapointFromFilesModel
123
125
  from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
124
126
  from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
@@ -128,6 +130,10 @@ from rapidata.api_client.models.create_dataset_artifact_model import CreateDatas
128
130
  from rapidata.api_client.models.create_dataset_artifact_model_dataset import CreateDatasetArtifactModelDataset
129
131
  from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
130
132
  from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
133
+ from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
134
+ from rapidata.api_client.models.create_leaderboard_participant_model import CreateLeaderboardParticipantModel
135
+ from rapidata.api_client.models.create_leaderboard_participant_result import CreateLeaderboardParticipantResult
136
+ from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
131
137
  from rapidata.api_client.models.create_order_model import CreateOrderModel
132
138
  from rapidata.api_client.models.create_order_model_referee import CreateOrderModelReferee
133
139
  from rapidata.api_client.models.create_order_model_user_filters_inner import CreateOrderModelUserFiltersInner
@@ -152,6 +158,7 @@ from rapidata.api_client.models.dataset_evaluation_step_model import DatasetEval
152
158
  from rapidata.api_client.models.demographic import Demographic
153
159
  from rapidata.api_client.models.demographic_metadata_model import DemographicMetadataModel
154
160
  from rapidata.api_client.models.demographic_selection import DemographicSelection
161
+ from rapidata.api_client.models.dynamic_client_registration_request import DynamicClientRegistrationRequest
155
162
  from rapidata.api_client.models.early_stopping_referee_model import EarlyStoppingRefereeModel
156
163
  from rapidata.api_client.models.effort_capped_selection import EffortCappedSelection
157
164
  from rapidata.api_client.models.elo_config import EloConfig
@@ -183,7 +190,9 @@ from rapidata.api_client.models.get_datapoint_by_id_result import GetDatapointBy
183
190
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
184
191
  from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
185
192
  from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
193
+ from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
186
194
  from rapidata.api_client.models.get_order_by_id_result import GetOrderByIdResult
195
+ from rapidata.api_client.models.get_participant_by_id_result import GetParticipantByIdResult
187
196
  from rapidata.api_client.models.get_pipeline_by_id_result import GetPipelineByIdResult
188
197
  from rapidata.api_client.models.get_pipeline_by_id_result_artifacts_value import GetPipelineByIdResultArtifactsValue
189
198
  from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersResult
@@ -207,8 +216,12 @@ from rapidata.api_client.models.image_dimension_metadata_model import ImageDimen
207
216
  from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
208
217
  from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
209
218
  from rapidata.api_client.models.inspect_report_result import InspectReportResult
219
+ from rapidata.api_client.models.json_web_key import JsonWebKey
220
+ from rapidata.api_client.models.json_web_key_set import JsonWebKeySet
210
221
  from rapidata.api_client.models.labeling_selection import LabelingSelection
211
222
  from rapidata.api_client.models.language_user_filter_model import LanguageUserFilterModel
223
+ from rapidata.api_client.models.leaderboard_query_result import LeaderboardQueryResult
224
+ from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
212
225
  from rapidata.api_client.models.line import Line
213
226
  from rapidata.api_client.models.line_payload import LinePayload
214
227
  from rapidata.api_client.models.line_point import LinePoint
@@ -254,6 +267,9 @@ from rapidata.api_client.models.order_state import OrderState
254
267
  from rapidata.api_client.models.original_filename_metadata import OriginalFilenameMetadata
255
268
  from rapidata.api_client.models.original_filename_metadata_model import OriginalFilenameMetadataModel
256
269
  from rapidata.api_client.models.page_info import PageInfo
270
+ from rapidata.api_client.models.participant_by_leaderboard import ParticipantByLeaderboard
271
+ from rapidata.api_client.models.participant_by_leaderboard_paged_result import ParticipantByLeaderboardPagedResult
272
+ from rapidata.api_client.models.participant_status import ParticipantStatus
257
273
  from rapidata.api_client.models.pipeline_id_workflow_artifact_id_put_request import PipelineIdWorkflowArtifactIdPutRequest
258
274
  from rapidata.api_client.models.polygon_payload import PolygonPayload
259
275
  from rapidata.api_client.models.polygon_rapid_blueprint import PolygonRapidBlueprint
@@ -265,6 +281,8 @@ from rapidata.api_client.models.private_text_metadata_input import PrivateTextMe
265
281
  from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
266
282
  from rapidata.api_client.models.probabilistic_attach_category_referee_info import ProbabilisticAttachCategoryRefereeInfo
267
283
  from rapidata.api_client.models.prompt_asset_metadata_input import PromptAssetMetadataInput
284
+ from rapidata.api_client.models.prompt_by_leaderboard_result import PromptByLeaderboardResult
285
+ from rapidata.api_client.models.prompt_by_leaderboard_result_paged_result import PromptByLeaderboardResultPagedResult
268
286
  from rapidata.api_client.models.prompt_metadata import PromptMetadata
269
287
  from rapidata.api_client.models.prompt_metadata_input import PromptMetadataInput
270
288
  from rapidata.api_client.models.prompt_metadata_model import PromptMetadataModel
@@ -11,6 +11,7 @@ from rapidata.api_client.api.dataset_api import DatasetApi
11
11
  from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
12
12
  from rapidata.api_client.api.feedback_api import FeedbackApi
13
13
  from rapidata.api_client.api.identity_api import IdentityApi
14
+ from rapidata.api_client.api.leaderboard_api import LeaderboardApi
14
15
  from rapidata.api_client.api.newsletter_api import NewsletterApi
15
16
  from rapidata.api_client.api.order_api import OrderApi
16
17
  from rapidata.api_client.api.pipeline_api import PipelineApi
@@ -19,9 +19,11 @@ 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.client_model import ClientModel
22
23
  from rapidata.api_client.models.clients_query_result_paged_result import ClientsQueryResultPagedResult
23
24
  from rapidata.api_client.models.create_client_model import CreateClientModel
24
- from rapidata.api_client.models.create_client_result import CreateClientResult
25
+ from rapidata.api_client.models.create_customer_client_result import CreateCustomerClientResult
26
+ from rapidata.api_client.models.dynamic_client_registration_request import DynamicClientRegistrationRequest
25
27
  from rapidata.api_client.models.query_model import QueryModel
26
28
 
27
29
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
@@ -294,6 +296,267 @@ class ClientApi:
294
296
 
295
297
 
296
298
 
299
+ @validate_call
300
+ def client_client_id_get(
301
+ self,
302
+ client_id: Annotated[StrictStr, Field(description="The ID of the client to retrieve.")],
303
+ _request_timeout: Union[
304
+ None,
305
+ Annotated[StrictFloat, Field(gt=0)],
306
+ Tuple[
307
+ Annotated[StrictFloat, Field(gt=0)],
308
+ Annotated[StrictFloat, Field(gt=0)]
309
+ ]
310
+ ] = None,
311
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
312
+ _content_type: Optional[StrictStr] = None,
313
+ _headers: Optional[Dict[StrictStr, Any]] = None,
314
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
315
+ ) -> ClientModel:
316
+ """Gets a specific client by its ID.
317
+
318
+
319
+ :param client_id: The ID of the client to retrieve. (required)
320
+ :type client_id: str
321
+ :param _request_timeout: timeout setting for this request. If one
322
+ number provided, it will be total request
323
+ timeout. It can also be a pair (tuple) of
324
+ (connection, read) timeouts.
325
+ :type _request_timeout: int, tuple(int, int), optional
326
+ :param _request_auth: set to override the auth_settings for an a single
327
+ request; this effectively ignores the
328
+ authentication in the spec for a single request.
329
+ :type _request_auth: dict, optional
330
+ :param _content_type: force content-type for the request.
331
+ :type _content_type: str, Optional
332
+ :param _headers: set to override the headers for a single
333
+ request; this effectively ignores the headers
334
+ in the spec for a single request.
335
+ :type _headers: dict, optional
336
+ :param _host_index: set to override the host_index for a single
337
+ request; this effectively ignores the host_index
338
+ in the spec for a single request.
339
+ :type _host_index: int, optional
340
+ :return: Returns the result object.
341
+ """ # noqa: E501
342
+
343
+ _param = self._client_client_id_get_serialize(
344
+ client_id=client_id,
345
+ _request_auth=_request_auth,
346
+ _content_type=_content_type,
347
+ _headers=_headers,
348
+ _host_index=_host_index
349
+ )
350
+
351
+ _response_types_map: Dict[str, Optional[str]] = {
352
+ '200': "ClientModel",
353
+ }
354
+ response_data = self.api_client.call_api(
355
+ *_param,
356
+ _request_timeout=_request_timeout
357
+ )
358
+ response_data.read()
359
+ return self.api_client.response_deserialize(
360
+ response_data=response_data,
361
+ response_types_map=_response_types_map,
362
+ ).data
363
+
364
+
365
+ @validate_call
366
+ def client_client_id_get_with_http_info(
367
+ self,
368
+ client_id: Annotated[StrictStr, Field(description="The ID of the client to retrieve.")],
369
+ _request_timeout: Union[
370
+ None,
371
+ Annotated[StrictFloat, Field(gt=0)],
372
+ Tuple[
373
+ Annotated[StrictFloat, Field(gt=0)],
374
+ Annotated[StrictFloat, Field(gt=0)]
375
+ ]
376
+ ] = None,
377
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
378
+ _content_type: Optional[StrictStr] = None,
379
+ _headers: Optional[Dict[StrictStr, Any]] = None,
380
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
381
+ ) -> ApiResponse[ClientModel]:
382
+ """Gets a specific client by its ID.
383
+
384
+
385
+ :param client_id: The ID of the client to retrieve. (required)
386
+ :type client_id: str
387
+ :param _request_timeout: timeout setting for this request. If one
388
+ number provided, it will be total request
389
+ timeout. It can also be a pair (tuple) of
390
+ (connection, read) timeouts.
391
+ :type _request_timeout: int, tuple(int, int), optional
392
+ :param _request_auth: set to override the auth_settings for an a single
393
+ request; this effectively ignores the
394
+ authentication in the spec for a single request.
395
+ :type _request_auth: dict, optional
396
+ :param _content_type: force content-type for the request.
397
+ :type _content_type: str, Optional
398
+ :param _headers: set to override the headers for a single
399
+ request; this effectively ignores the headers
400
+ in the spec for a single request.
401
+ :type _headers: dict, optional
402
+ :param _host_index: set to override the host_index for a single
403
+ request; this effectively ignores the host_index
404
+ in the spec for a single request.
405
+ :type _host_index: int, optional
406
+ :return: Returns the result object.
407
+ """ # noqa: E501
408
+
409
+ _param = self._client_client_id_get_serialize(
410
+ client_id=client_id,
411
+ _request_auth=_request_auth,
412
+ _content_type=_content_type,
413
+ _headers=_headers,
414
+ _host_index=_host_index
415
+ )
416
+
417
+ _response_types_map: Dict[str, Optional[str]] = {
418
+ '200': "ClientModel",
419
+ }
420
+ response_data = self.api_client.call_api(
421
+ *_param,
422
+ _request_timeout=_request_timeout
423
+ )
424
+ response_data.read()
425
+ return self.api_client.response_deserialize(
426
+ response_data=response_data,
427
+ response_types_map=_response_types_map,
428
+ )
429
+
430
+
431
+ @validate_call
432
+ def client_client_id_get_without_preload_content(
433
+ self,
434
+ client_id: Annotated[StrictStr, Field(description="The ID of the client to retrieve.")],
435
+ _request_timeout: Union[
436
+ None,
437
+ Annotated[StrictFloat, Field(gt=0)],
438
+ Tuple[
439
+ Annotated[StrictFloat, Field(gt=0)],
440
+ Annotated[StrictFloat, Field(gt=0)]
441
+ ]
442
+ ] = None,
443
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
444
+ _content_type: Optional[StrictStr] = None,
445
+ _headers: Optional[Dict[StrictStr, Any]] = None,
446
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
447
+ ) -> RESTResponseType:
448
+ """Gets a specific client by its ID.
449
+
450
+
451
+ :param client_id: The ID of the client to retrieve. (required)
452
+ :type client_id: str
453
+ :param _request_timeout: timeout setting for this request. If one
454
+ number provided, it will be total request
455
+ timeout. It can also be a pair (tuple) of
456
+ (connection, read) timeouts.
457
+ :type _request_timeout: int, tuple(int, int), optional
458
+ :param _request_auth: set to override the auth_settings for an a single
459
+ request; this effectively ignores the
460
+ authentication in the spec for a single request.
461
+ :type _request_auth: dict, optional
462
+ :param _content_type: force content-type for the request.
463
+ :type _content_type: str, Optional
464
+ :param _headers: set to override the headers for a single
465
+ request; this effectively ignores the headers
466
+ in the spec for a single request.
467
+ :type _headers: dict, optional
468
+ :param _host_index: set to override the host_index for a single
469
+ request; this effectively ignores the host_index
470
+ in the spec for a single request.
471
+ :type _host_index: int, optional
472
+ :return: Returns the result object.
473
+ """ # noqa: E501
474
+
475
+ _param = self._client_client_id_get_serialize(
476
+ client_id=client_id,
477
+ _request_auth=_request_auth,
478
+ _content_type=_content_type,
479
+ _headers=_headers,
480
+ _host_index=_host_index
481
+ )
482
+
483
+ _response_types_map: Dict[str, Optional[str]] = {
484
+ '200': "ClientModel",
485
+ }
486
+ response_data = self.api_client.call_api(
487
+ *_param,
488
+ _request_timeout=_request_timeout
489
+ )
490
+ return response_data.response
491
+
492
+
493
+ def _client_client_id_get_serialize(
494
+ self,
495
+ client_id,
496
+ _request_auth,
497
+ _content_type,
498
+ _headers,
499
+ _host_index,
500
+ ) -> RequestSerialized:
501
+
502
+ _host = None
503
+
504
+ _collection_formats: Dict[str, str] = {
505
+ }
506
+
507
+ _path_params: Dict[str, str] = {}
508
+ _query_params: List[Tuple[str, str]] = []
509
+ _header_params: Dict[str, Optional[str]] = _headers or {}
510
+ _form_params: List[Tuple[str, str]] = []
511
+ _files: Dict[
512
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
513
+ ] = {}
514
+ _body_params: Optional[bytes] = None
515
+
516
+ # process the path parameters
517
+ if client_id is not None:
518
+ _path_params['clientId'] = client_id
519
+ # process the query parameters
520
+ # process the header parameters
521
+ # process the form parameters
522
+ # process the body parameter
523
+
524
+
525
+ # set the HTTP header `Accept`
526
+ if 'Accept' not in _header_params:
527
+ _header_params['Accept'] = self.api_client.select_header_accept(
528
+ [
529
+ 'text/plain',
530
+ 'application/json',
531
+ 'text/json'
532
+ ]
533
+ )
534
+
535
+
536
+ # authentication setting
537
+ _auth_settings: List[str] = [
538
+ 'bearer',
539
+ 'oauth2'
540
+ ]
541
+
542
+ return self.api_client.param_serialize(
543
+ method='GET',
544
+ resource_path='/client/{clientId}',
545
+ path_params=_path_params,
546
+ query_params=_query_params,
547
+ header_params=_header_params,
548
+ body=_body_params,
549
+ post_params=_form_params,
550
+ files=_files,
551
+ auth_settings=_auth_settings,
552
+ collection_formats=_collection_formats,
553
+ _host=_host,
554
+ _request_auth=_request_auth
555
+ )
556
+
557
+
558
+
559
+
297
560
  @validate_call
298
561
  def client_post(
299
562
  self,
@@ -310,7 +573,7 @@ class ClientApi:
310
573
  _content_type: Optional[StrictStr] = None,
311
574
  _headers: Optional[Dict[StrictStr, Any]] = None,
312
575
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
313
- ) -> CreateClientResult:
576
+ ) -> CreateCustomerClientResult:
314
577
  """Creates a new client for the current customer.
315
578
 
316
579
 
@@ -347,7 +610,7 @@ class ClientApi:
347
610
  )
348
611
 
349
612
  _response_types_map: Dict[str, Optional[str]] = {
350
- '200': "CreateClientResult",
613
+ '200': "CreateCustomerClientResult",
351
614
  }
352
615
  response_data = self.api_client.call_api(
353
616
  *_param,
@@ -376,7 +639,7 @@ class ClientApi:
376
639
  _content_type: Optional[StrictStr] = None,
377
640
  _headers: Optional[Dict[StrictStr, Any]] = None,
378
641
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
379
- ) -> ApiResponse[CreateClientResult]:
642
+ ) -> ApiResponse[CreateCustomerClientResult]:
380
643
  """Creates a new client for the current customer.
381
644
 
382
645
 
@@ -413,7 +676,7 @@ class ClientApi:
413
676
  )
414
677
 
415
678
  _response_types_map: Dict[str, Optional[str]] = {
416
- '200': "CreateClientResult",
679
+ '200': "CreateCustomerClientResult",
417
680
  }
418
681
  response_data = self.api_client.call_api(
419
682
  *_param,
@@ -479,7 +742,7 @@ class ClientApi:
479
742
  )
480
743
 
481
744
  _response_types_map: Dict[str, Optional[str]] = {
482
- '200': "CreateClientResult",
745
+ '200': "CreateCustomerClientResult",
483
746
  }
484
747
  response_data = self.api_client.call_api(
485
748
  *_param,
@@ -571,9 +834,9 @@ class ClientApi:
571
834
 
572
835
 
573
836
  @validate_call
574
- def client_query_get(
837
+ def client_register_post(
575
838
  self,
576
- request: Optional[QueryModel] = None,
839
+ dynamic_client_registration_request: Optional[DynamicClientRegistrationRequest] = None,
577
840
  _request_timeout: Union[
578
841
  None,
579
842
  Annotated[StrictFloat, Field(gt=0)],
@@ -586,13 +849,13 @@ class ClientApi:
586
849
  _content_type: Optional[StrictStr] = None,
587
850
  _headers: Optional[Dict[StrictStr, Any]] = None,
588
851
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
589
- ) -> ClientsQueryResultPagedResult:
590
- """(Deprecated) Gets the clients for the current customer.
852
+ ) -> ClientModel:
853
+ """Registers a new client dynamically.
591
854
 
592
- A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
855
+ The implementation of this method follows the OpenID Connect Dynamic Client Registration.
593
856
 
594
- :param request:
595
- :type request: QueryModel
857
+ :param dynamic_client_registration_request:
858
+ :type dynamic_client_registration_request: DynamicClientRegistrationRequest
596
859
  :param _request_timeout: timeout setting for this request. If one
597
860
  number provided, it will be total request
598
861
  timeout. It can also be a pair (tuple) of
@@ -614,10 +877,9 @@ class ClientApi:
614
877
  :type _host_index: int, optional
615
878
  :return: Returns the result object.
616
879
  """ # noqa: E501
617
- warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
618
880
 
619
- _param = self._client_query_get_serialize(
620
- request=request,
881
+ _param = self._client_register_post_serialize(
882
+ dynamic_client_registration_request=dynamic_client_registration_request,
621
883
  _request_auth=_request_auth,
622
884
  _content_type=_content_type,
623
885
  _headers=_headers,
@@ -625,7 +887,7 @@ class ClientApi:
625
887
  )
626
888
 
627
889
  _response_types_map: Dict[str, Optional[str]] = {
628
- '200': "ClientsQueryResultPagedResult",
890
+ '201': "ClientModel",
629
891
  }
630
892
  response_data = self.api_client.call_api(
631
893
  *_param,
@@ -639,9 +901,9 @@ class ClientApi:
639
901
 
640
902
 
641
903
  @validate_call
642
- def client_query_get_with_http_info(
904
+ def client_register_post_with_http_info(
643
905
  self,
644
- request: Optional[QueryModel] = None,
906
+ dynamic_client_registration_request: Optional[DynamicClientRegistrationRequest] = None,
645
907
  _request_timeout: Union[
646
908
  None,
647
909
  Annotated[StrictFloat, Field(gt=0)],
@@ -654,13 +916,13 @@ class ClientApi:
654
916
  _content_type: Optional[StrictStr] = None,
655
917
  _headers: Optional[Dict[StrictStr, Any]] = None,
656
918
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
657
- ) -> ApiResponse[ClientsQueryResultPagedResult]:
658
- """(Deprecated) Gets the clients for the current customer.
919
+ ) -> ApiResponse[ClientModel]:
920
+ """Registers a new client dynamically.
659
921
 
660
- A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
922
+ The implementation of this method follows the OpenID Connect Dynamic Client Registration.
661
923
 
662
- :param request:
663
- :type request: QueryModel
924
+ :param dynamic_client_registration_request:
925
+ :type dynamic_client_registration_request: DynamicClientRegistrationRequest
664
926
  :param _request_timeout: timeout setting for this request. If one
665
927
  number provided, it will be total request
666
928
  timeout. It can also be a pair (tuple) of
@@ -682,10 +944,9 @@ class ClientApi:
682
944
  :type _host_index: int, optional
683
945
  :return: Returns the result object.
684
946
  """ # noqa: E501
685
- warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
686
947
 
687
- _param = self._client_query_get_serialize(
688
- request=request,
948
+ _param = self._client_register_post_serialize(
949
+ dynamic_client_registration_request=dynamic_client_registration_request,
689
950
  _request_auth=_request_auth,
690
951
  _content_type=_content_type,
691
952
  _headers=_headers,
@@ -693,7 +954,7 @@ class ClientApi:
693
954
  )
694
955
 
695
956
  _response_types_map: Dict[str, Optional[str]] = {
696
- '200': "ClientsQueryResultPagedResult",
957
+ '201': "ClientModel",
697
958
  }
698
959
  response_data = self.api_client.call_api(
699
960
  *_param,
@@ -707,9 +968,9 @@ class ClientApi:
707
968
 
708
969
 
709
970
  @validate_call
710
- def client_query_get_without_preload_content(
971
+ def client_register_post_without_preload_content(
711
972
  self,
712
- request: Optional[QueryModel] = None,
973
+ dynamic_client_registration_request: Optional[DynamicClientRegistrationRequest] = None,
713
974
  _request_timeout: Union[
714
975
  None,
715
976
  Annotated[StrictFloat, Field(gt=0)],
@@ -723,12 +984,12 @@ class ClientApi:
723
984
  _headers: Optional[Dict[StrictStr, Any]] = None,
724
985
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
725
986
  ) -> RESTResponseType:
726
- """(Deprecated) Gets the clients for the current customer.
987
+ """Registers a new client dynamically.
727
988
 
728
- A client allows a customer to authenticate with the APIs without using their own credentials. This is useful for creating service accounts or other automated processes, as when using the Rapidata Python SDK.
989
+ The implementation of this method follows the OpenID Connect Dynamic Client Registration.
729
990
 
730
- :param request:
731
- :type request: QueryModel
991
+ :param dynamic_client_registration_request:
992
+ :type dynamic_client_registration_request: DynamicClientRegistrationRequest
732
993
  :param _request_timeout: timeout setting for this request. If one
733
994
  number provided, it will be total request
734
995
  timeout. It can also be a pair (tuple) of
@@ -750,10 +1011,9 @@ class ClientApi:
750
1011
  :type _host_index: int, optional
751
1012
  :return: Returns the result object.
752
1013
  """ # noqa: E501
753
- warnings.warn("GET /client/query is deprecated.", DeprecationWarning)
754
1014
 
755
- _param = self._client_query_get_serialize(
756
- request=request,
1015
+ _param = self._client_register_post_serialize(
1016
+ dynamic_client_registration_request=dynamic_client_registration_request,
757
1017
  _request_auth=_request_auth,
758
1018
  _content_type=_content_type,
759
1019
  _headers=_headers,
@@ -761,7 +1021,7 @@ class ClientApi:
761
1021
  )
762
1022
 
763
1023
  _response_types_map: Dict[str, Optional[str]] = {
764
- '200': "ClientsQueryResultPagedResult",
1024
+ '201': "ClientModel",
765
1025
  }
766
1026
  response_data = self.api_client.call_api(
767
1027
  *_param,
@@ -770,9 +1030,9 @@ class ClientApi:
770
1030
  return response_data.response
771
1031
 
772
1032
 
773
- def _client_query_get_serialize(
1033
+ def _client_register_post_serialize(
774
1034
  self,
775
- request,
1035
+ dynamic_client_registration_request,
776
1036
  _request_auth,
777
1037
  _content_type,
778
1038
  _headers,
@@ -795,13 +1055,11 @@ class ClientApi:
795
1055
 
796
1056
  # process the path parameters
797
1057
  # process the query parameters
798
- if request is not None:
799
-
800
- _query_params.append(('request', request))
801
-
802
1058
  # process the header parameters
803
1059
  # process the form parameters
804
1060
  # process the body parameter
1061
+ if dynamic_client_registration_request is not None:
1062
+ _body_params = dynamic_client_registration_request
805
1063
 
806
1064
 
807
1065
  # set the HTTP header `Accept`
@@ -814,6 +1072,21 @@ class ClientApi:
814
1072
  ]
815
1073
  )
816
1074
 
1075
+ # set the HTTP header `Content-Type`
1076
+ if _content_type:
1077
+ _header_params['Content-Type'] = _content_type
1078
+ else:
1079
+ _default_content_type = (
1080
+ self.api_client.select_header_content_type(
1081
+ [
1082
+ 'application/json',
1083
+ 'text/json',
1084
+ 'application/*+json'
1085
+ ]
1086
+ )
1087
+ )
1088
+ if _default_content_type is not None:
1089
+ _header_params['Content-Type'] = _default_content_type
817
1090
 
818
1091
  # authentication setting
819
1092
  _auth_settings: List[str] = [
@@ -822,8 +1095,8 @@ class ClientApi:
822
1095
  ]
823
1096
 
824
1097
  return self.api_client.param_serialize(
825
- method='GET',
826
- resource_path='/client/query',
1098
+ method='POST',
1099
+ resource_path='/client/register',
827
1100
  path_params=_path_params,
828
1101
  query_params=_query_params,
829
1102
  header_params=_header_params,