rapidata 2.27.5__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.
- rapidata/__init__.py +1 -1
- rapidata/api_client/__init__.py +19 -1
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/client_api.py +319 -46
- rapidata/api_client/api/leaderboard_api.py +2506 -0
- rapidata/api_client/models/__init__.py +18 -1
- rapidata/api_client/models/client_model.py +191 -0
- rapidata/api_client/models/create_customer_client_result.py +89 -0
- rapidata/api_client/models/create_leaderboard_model.py +91 -0
- rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
- rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
- rapidata/api_client/models/create_leaderboard_result.py +87 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +175 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +91 -0
- rapidata/api_client/models/get_participant_by_id_result.py +102 -0
- rapidata/api_client/models/json_web_key.py +258 -0
- rapidata/api_client/models/json_web_key_set.py +115 -0
- rapidata/api_client/models/leaderboard_query_result.py +93 -0
- rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +102 -0
- rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/participant_status.py +39 -0
- rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
- rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
- rapidata/api_client_README.md +29 -2
- rapidata/rapidata_client/validation/validation_set_manager.py +14 -0
- {rapidata-2.27.5.dist-info → rapidata-2.27.6.dist-info}/METADATA +1 -1
- {rapidata-2.27.5.dist-info → rapidata-2.27.6.dist-info}/RECORD +30 -11
- {rapidata-2.27.5.dist-info → rapidata-2.27.6.dist-info}/LICENSE +0 -0
- {rapidata-2.27.5.dist-info → rapidata-2.27.6.dist-info}/WHEEL +0 -0
|
@@ -52,6 +52,7 @@ from rapidata.api_client.models.classification_metadata import ClassificationMet
|
|
|
52
52
|
from rapidata.api_client.models.classification_metadata_filter_config import ClassificationMetadataFilterConfig
|
|
53
53
|
from rapidata.api_client.models.classification_metadata_model import ClassificationMetadataModel
|
|
54
54
|
from rapidata.api_client.models.classify_payload import ClassifyPayload
|
|
55
|
+
from rapidata.api_client.models.client_model import ClientModel
|
|
55
56
|
from rapidata.api_client.models.clients_query_result import ClientsQueryResult
|
|
56
57
|
from rapidata.api_client.models.clients_query_result_paged_result import ClientsQueryResultPagedResult
|
|
57
58
|
from rapidata.api_client.models.clone_dataset_model import CloneDatasetModel
|
|
@@ -80,10 +81,10 @@ from rapidata.api_client.models.count_metadata_model import CountMetadataModel
|
|
|
80
81
|
from rapidata.api_client.models.country_user_filter_model import CountryUserFilterModel
|
|
81
82
|
from rapidata.api_client.models.create_bridge_token_result import CreateBridgeTokenResult
|
|
82
83
|
from rapidata.api_client.models.create_client_model import CreateClientModel
|
|
83
|
-
from rapidata.api_client.models.create_client_result import CreateClientResult
|
|
84
84
|
from rapidata.api_client.models.create_complex_order_model import CreateComplexOrderModel
|
|
85
85
|
from rapidata.api_client.models.create_complex_order_model_pipeline import CreateComplexOrderModelPipeline
|
|
86
86
|
from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
|
|
87
|
+
from rapidata.api_client.models.create_customer_client_result import CreateCustomerClientResult
|
|
87
88
|
from rapidata.api_client.models.create_datapoint_from_files_model import CreateDatapointFromFilesModel
|
|
88
89
|
from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
|
|
89
90
|
from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
|
|
@@ -93,6 +94,10 @@ from rapidata.api_client.models.create_dataset_artifact_model import CreateDatas
|
|
|
93
94
|
from rapidata.api_client.models.create_dataset_artifact_model_dataset import CreateDatasetArtifactModelDataset
|
|
94
95
|
from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
|
|
95
96
|
from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
|
|
97
|
+
from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
|
|
98
|
+
from rapidata.api_client.models.create_leaderboard_participant_model import CreateLeaderboardParticipantModel
|
|
99
|
+
from rapidata.api_client.models.create_leaderboard_participant_result import CreateLeaderboardParticipantResult
|
|
100
|
+
from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
|
|
96
101
|
from rapidata.api_client.models.create_order_model import CreateOrderModel
|
|
97
102
|
from rapidata.api_client.models.create_order_model_referee import CreateOrderModelReferee
|
|
98
103
|
from rapidata.api_client.models.create_order_model_user_filters_inner import CreateOrderModelUserFiltersInner
|
|
@@ -117,6 +122,7 @@ from rapidata.api_client.models.dataset_evaluation_step_model import DatasetEval
|
|
|
117
122
|
from rapidata.api_client.models.demographic import Demographic
|
|
118
123
|
from rapidata.api_client.models.demographic_metadata_model import DemographicMetadataModel
|
|
119
124
|
from rapidata.api_client.models.demographic_selection import DemographicSelection
|
|
125
|
+
from rapidata.api_client.models.dynamic_client_registration_request import DynamicClientRegistrationRequest
|
|
120
126
|
from rapidata.api_client.models.early_stopping_referee_model import EarlyStoppingRefereeModel
|
|
121
127
|
from rapidata.api_client.models.effort_capped_selection import EffortCappedSelection
|
|
122
128
|
from rapidata.api_client.models.elo_config import EloConfig
|
|
@@ -148,7 +154,9 @@ from rapidata.api_client.models.get_datapoint_by_id_result import GetDatapointBy
|
|
|
148
154
|
from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
|
|
149
155
|
from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
|
|
150
156
|
from rapidata.api_client.models.get_failed_datapoints_result import GetFailedDatapointsResult
|
|
157
|
+
from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
|
|
151
158
|
from rapidata.api_client.models.get_order_by_id_result import GetOrderByIdResult
|
|
159
|
+
from rapidata.api_client.models.get_participant_by_id_result import GetParticipantByIdResult
|
|
152
160
|
from rapidata.api_client.models.get_pipeline_by_id_result import GetPipelineByIdResult
|
|
153
161
|
from rapidata.api_client.models.get_pipeline_by_id_result_artifacts_value import GetPipelineByIdResultArtifactsValue
|
|
154
162
|
from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersResult
|
|
@@ -172,8 +180,12 @@ from rapidata.api_client.models.image_dimension_metadata_model import ImageDimen
|
|
|
172
180
|
from rapidata.api_client.models.import_from_file_result import ImportFromFileResult
|
|
173
181
|
from rapidata.api_client.models.import_validation_set_from_file_result import ImportValidationSetFromFileResult
|
|
174
182
|
from rapidata.api_client.models.inspect_report_result import InspectReportResult
|
|
183
|
+
from rapidata.api_client.models.json_web_key import JsonWebKey
|
|
184
|
+
from rapidata.api_client.models.json_web_key_set import JsonWebKeySet
|
|
175
185
|
from rapidata.api_client.models.labeling_selection import LabelingSelection
|
|
176
186
|
from rapidata.api_client.models.language_user_filter_model import LanguageUserFilterModel
|
|
187
|
+
from rapidata.api_client.models.leaderboard_query_result import LeaderboardQueryResult
|
|
188
|
+
from rapidata.api_client.models.leaderboard_query_result_paged_result import LeaderboardQueryResultPagedResult
|
|
177
189
|
from rapidata.api_client.models.line import Line
|
|
178
190
|
from rapidata.api_client.models.line_payload import LinePayload
|
|
179
191
|
from rapidata.api_client.models.line_point import LinePoint
|
|
@@ -219,6 +231,9 @@ from rapidata.api_client.models.order_state import OrderState
|
|
|
219
231
|
from rapidata.api_client.models.original_filename_metadata import OriginalFilenameMetadata
|
|
220
232
|
from rapidata.api_client.models.original_filename_metadata_model import OriginalFilenameMetadataModel
|
|
221
233
|
from rapidata.api_client.models.page_info import PageInfo
|
|
234
|
+
from rapidata.api_client.models.participant_by_leaderboard import ParticipantByLeaderboard
|
|
235
|
+
from rapidata.api_client.models.participant_by_leaderboard_paged_result import ParticipantByLeaderboardPagedResult
|
|
236
|
+
from rapidata.api_client.models.participant_status import ParticipantStatus
|
|
222
237
|
from rapidata.api_client.models.pipeline_id_workflow_artifact_id_put_request import PipelineIdWorkflowArtifactIdPutRequest
|
|
223
238
|
from rapidata.api_client.models.polygon_payload import PolygonPayload
|
|
224
239
|
from rapidata.api_client.models.polygon_rapid_blueprint import PolygonRapidBlueprint
|
|
@@ -230,6 +245,8 @@ from rapidata.api_client.models.private_text_metadata_input import PrivateTextMe
|
|
|
230
245
|
from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
|
|
231
246
|
from rapidata.api_client.models.probabilistic_attach_category_referee_info import ProbabilisticAttachCategoryRefereeInfo
|
|
232
247
|
from rapidata.api_client.models.prompt_asset_metadata_input import PromptAssetMetadataInput
|
|
248
|
+
from rapidata.api_client.models.prompt_by_leaderboard_result import PromptByLeaderboardResult
|
|
249
|
+
from rapidata.api_client.models.prompt_by_leaderboard_result_paged_result import PromptByLeaderboardResultPagedResult
|
|
233
250
|
from rapidata.api_client.models.prompt_metadata import PromptMetadata
|
|
234
251
|
from rapidata.api_client.models.prompt_metadata_input import PromptMetadataInput
|
|
235
252
|
from rapidata.api_client.models.prompt_metadata_model import PromptMetadataModel
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from rapidata.api_client.models.json_web_key_set import JsonWebKeySet
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ClientModel(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
The response containing the id and secret of a dynamically registered client. Additionally, it contains all registered metadata for the client.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
client_id: StrictStr = Field(description="The unique identifier for the client.")
|
|
31
|
+
client_secret: Optional[StrictStr] = Field(description="The client secret for the client, which is used to authenticate the client")
|
|
32
|
+
client_id_issued_at: Optional[StrictInt] = Field(description="The date and time when the client identifier was issued.")
|
|
33
|
+
client_secret_expires_at: Optional[StrictInt] = Field(description="If the client has a secret, this is the date and time when the client secret expires. If the client secret does not expire, this will be 0.")
|
|
34
|
+
redirect_uris: Optional[List[StrictStr]] = Field(description="Array of redirection URI strings for use in redirect-based flows such as the authorization code and implicit flows.")
|
|
35
|
+
grant_types: Optional[List[StrictStr]] = Field(description="Array of OAuth 2.0 grant type strings that the client can use at the token endpoint.")
|
|
36
|
+
response_types: Optional[List[StrictStr]] = Field(description="Array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint.")
|
|
37
|
+
client_name: Optional[StrictStr] = Field(description="Human-readable string name of the client to be presented to the end-user during authorization.")
|
|
38
|
+
client_uri: Optional[StrictStr] = Field(description="URL string of a web page providing information about the client.")
|
|
39
|
+
logo_uri: Optional[StrictStr] = Field(description="URL string that references a logo for the client.")
|
|
40
|
+
scope: Optional[StrictStr] = Field(default=None, description="String containing a space-separated list of scope values that the client can use when requesting access tokens.")
|
|
41
|
+
contacts: Optional[List[StrictStr]] = Field(default=None, description="Array of strings representing ways to contact people responsible for this client, typically email addresses.")
|
|
42
|
+
tos_uri: Optional[StrictStr] = Field(description="URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.")
|
|
43
|
+
policy_uri: Optional[StrictStr] = Field(description="URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data.")
|
|
44
|
+
jwks_uri: Optional[StrictStr] = Field(description="URL string referencing the client's JSON Web Key document, which contains the client's public keys.")
|
|
45
|
+
jwks: JsonWebKeySet
|
|
46
|
+
__properties: ClassVar[List[str]] = ["client_id", "client_secret", "client_id_issued_at", "client_secret_expires_at", "redirect_uris", "grant_types", "response_types", "client_name", "client_uri", "logo_uri", "scope", "contacts", "tos_uri", "policy_uri", "jwks_uri", "jwks"]
|
|
47
|
+
|
|
48
|
+
model_config = ConfigDict(
|
|
49
|
+
populate_by_name=True,
|
|
50
|
+
validate_assignment=True,
|
|
51
|
+
protected_namespaces=(),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def to_str(self) -> str:
|
|
56
|
+
"""Returns the string representation of the model using alias"""
|
|
57
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
58
|
+
|
|
59
|
+
def to_json(self) -> str:
|
|
60
|
+
"""Returns the JSON representation of the model using alias"""
|
|
61
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
62
|
+
return json.dumps(self.to_dict())
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
66
|
+
"""Create an instance of ClientModel from a JSON string"""
|
|
67
|
+
return cls.from_dict(json.loads(json_str))
|
|
68
|
+
|
|
69
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
70
|
+
"""Return the dictionary representation of the model using alias.
|
|
71
|
+
|
|
72
|
+
This has the following differences from calling pydantic's
|
|
73
|
+
`self.model_dump(by_alias=True)`:
|
|
74
|
+
|
|
75
|
+
* `None` is only added to the output dict for nullable fields that
|
|
76
|
+
were set at model initialization. Other fields with value `None`
|
|
77
|
+
are ignored.
|
|
78
|
+
"""
|
|
79
|
+
excluded_fields: Set[str] = set([
|
|
80
|
+
])
|
|
81
|
+
|
|
82
|
+
_dict = self.model_dump(
|
|
83
|
+
by_alias=True,
|
|
84
|
+
exclude=excluded_fields,
|
|
85
|
+
exclude_none=True,
|
|
86
|
+
)
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of jwks
|
|
88
|
+
if self.jwks:
|
|
89
|
+
_dict['jwks'] = self.jwks.to_dict()
|
|
90
|
+
# set to None if client_secret (nullable) is None
|
|
91
|
+
# and model_fields_set contains the field
|
|
92
|
+
if self.client_secret is None and "client_secret" in self.model_fields_set:
|
|
93
|
+
_dict['client_secret'] = None
|
|
94
|
+
|
|
95
|
+
# set to None if client_id_issued_at (nullable) is None
|
|
96
|
+
# and model_fields_set contains the field
|
|
97
|
+
if self.client_id_issued_at is None and "client_id_issued_at" in self.model_fields_set:
|
|
98
|
+
_dict['client_id_issued_at'] = None
|
|
99
|
+
|
|
100
|
+
# set to None if client_secret_expires_at (nullable) is None
|
|
101
|
+
# and model_fields_set contains the field
|
|
102
|
+
if self.client_secret_expires_at is None and "client_secret_expires_at" in self.model_fields_set:
|
|
103
|
+
_dict['client_secret_expires_at'] = None
|
|
104
|
+
|
|
105
|
+
# set to None if redirect_uris (nullable) is None
|
|
106
|
+
# and model_fields_set contains the field
|
|
107
|
+
if self.redirect_uris is None and "redirect_uris" in self.model_fields_set:
|
|
108
|
+
_dict['redirect_uris'] = None
|
|
109
|
+
|
|
110
|
+
# set to None if grant_types (nullable) is None
|
|
111
|
+
# and model_fields_set contains the field
|
|
112
|
+
if self.grant_types is None and "grant_types" in self.model_fields_set:
|
|
113
|
+
_dict['grant_types'] = None
|
|
114
|
+
|
|
115
|
+
# set to None if response_types (nullable) is None
|
|
116
|
+
# and model_fields_set contains the field
|
|
117
|
+
if self.response_types is None and "response_types" in self.model_fields_set:
|
|
118
|
+
_dict['response_types'] = None
|
|
119
|
+
|
|
120
|
+
# set to None if client_name (nullable) is None
|
|
121
|
+
# and model_fields_set contains the field
|
|
122
|
+
if self.client_name is None and "client_name" in self.model_fields_set:
|
|
123
|
+
_dict['client_name'] = None
|
|
124
|
+
|
|
125
|
+
# set to None if client_uri (nullable) is None
|
|
126
|
+
# and model_fields_set contains the field
|
|
127
|
+
if self.client_uri is None and "client_uri" in self.model_fields_set:
|
|
128
|
+
_dict['client_uri'] = None
|
|
129
|
+
|
|
130
|
+
# set to None if logo_uri (nullable) is None
|
|
131
|
+
# and model_fields_set contains the field
|
|
132
|
+
if self.logo_uri is None and "logo_uri" in self.model_fields_set:
|
|
133
|
+
_dict['logo_uri'] = None
|
|
134
|
+
|
|
135
|
+
# set to None if scope (nullable) is None
|
|
136
|
+
# and model_fields_set contains the field
|
|
137
|
+
if self.scope is None and "scope" in self.model_fields_set:
|
|
138
|
+
_dict['scope'] = None
|
|
139
|
+
|
|
140
|
+
# set to None if contacts (nullable) is None
|
|
141
|
+
# and model_fields_set contains the field
|
|
142
|
+
if self.contacts is None and "contacts" in self.model_fields_set:
|
|
143
|
+
_dict['contacts'] = None
|
|
144
|
+
|
|
145
|
+
# set to None if tos_uri (nullable) is None
|
|
146
|
+
# and model_fields_set contains the field
|
|
147
|
+
if self.tos_uri is None and "tos_uri" in self.model_fields_set:
|
|
148
|
+
_dict['tos_uri'] = None
|
|
149
|
+
|
|
150
|
+
# set to None if policy_uri (nullable) is None
|
|
151
|
+
# and model_fields_set contains the field
|
|
152
|
+
if self.policy_uri is None and "policy_uri" in self.model_fields_set:
|
|
153
|
+
_dict['policy_uri'] = None
|
|
154
|
+
|
|
155
|
+
# set to None if jwks_uri (nullable) is None
|
|
156
|
+
# and model_fields_set contains the field
|
|
157
|
+
if self.jwks_uri is None and "jwks_uri" in self.model_fields_set:
|
|
158
|
+
_dict['jwks_uri'] = None
|
|
159
|
+
|
|
160
|
+
return _dict
|
|
161
|
+
|
|
162
|
+
@classmethod
|
|
163
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
164
|
+
"""Create an instance of ClientModel from a dict"""
|
|
165
|
+
if obj is None:
|
|
166
|
+
return None
|
|
167
|
+
|
|
168
|
+
if not isinstance(obj, dict):
|
|
169
|
+
return cls.model_validate(obj)
|
|
170
|
+
|
|
171
|
+
_obj = cls.model_validate({
|
|
172
|
+
"client_id": obj.get("client_id"),
|
|
173
|
+
"client_secret": obj.get("client_secret"),
|
|
174
|
+
"client_id_issued_at": obj.get("client_id_issued_at"),
|
|
175
|
+
"client_secret_expires_at": obj.get("client_secret_expires_at"),
|
|
176
|
+
"redirect_uris": obj.get("redirect_uris"),
|
|
177
|
+
"grant_types": obj.get("grant_types"),
|
|
178
|
+
"response_types": obj.get("response_types"),
|
|
179
|
+
"client_name": obj.get("client_name"),
|
|
180
|
+
"client_uri": obj.get("client_uri"),
|
|
181
|
+
"logo_uri": obj.get("logo_uri"),
|
|
182
|
+
"scope": obj.get("scope"),
|
|
183
|
+
"contacts": obj.get("contacts"),
|
|
184
|
+
"tos_uri": obj.get("tos_uri"),
|
|
185
|
+
"policy_uri": obj.get("policy_uri"),
|
|
186
|
+
"jwks_uri": obj.get("jwks_uri"),
|
|
187
|
+
"jwks": JsonWebKeySet.from_dict(obj["jwks"]) if obj.get("jwks") is not None else None
|
|
188
|
+
})
|
|
189
|
+
return _obj
|
|
190
|
+
|
|
191
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateCustomerClientResult(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CreateCustomerClientResult
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
client_id: StrictStr = Field(alias="clientId")
|
|
30
|
+
client_secret: StrictStr = Field(alias="clientSecret")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["clientId", "clientSecret"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of CreateCustomerClientResult from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of CreateCustomerClientResult from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"clientId": obj.get("clientId"),
|
|
85
|
+
"clientSecret": obj.get("clientSecret")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateLeaderboardModel(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
The CreateLeaderboardModel class represents the model for creating a leaderboard.
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
name: StrictStr = Field(description="The name of the leaderboard.")
|
|
30
|
+
instruction: StrictStr = Field(description="The instruction datapoints will be matched up against.")
|
|
31
|
+
show_prompt: StrictBool = Field(description="Indicates if the prompt is shown on the rapids.", alias="showPrompt")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["name", "instruction", "showPrompt"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of CreateLeaderboardModel from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of CreateLeaderboardModel from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"name": obj.get("name"),
|
|
86
|
+
"instruction": obj.get("instruction"),
|
|
87
|
+
"showPrompt": obj.get("showPrompt")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateLeaderboardParticipantModel(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
The model to create a participant in a leaderboard
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
name: StrictStr = Field(description="The name of the participant.")
|
|
30
|
+
__properties: ClassVar[List[str]] = ["name"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of CreateLeaderboardParticipantModel from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of CreateLeaderboardParticipantModel from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"name": obj.get("name")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateLeaderboardParticipantResult(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CreateLeaderboardParticipantResult
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
participant_id: StrictStr = Field(alias="participantId")
|
|
30
|
+
dataset_id: StrictStr = Field(alias="datasetId")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["participantId", "datasetId"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of CreateLeaderboardParticipantResult from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of CreateLeaderboardParticipantResult from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"participantId": obj.get("participantId"),
|
|
85
|
+
"datasetId": obj.get("datasetId")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|