frameio 0.0.23__py3-none-any.whl → 0.0.24__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 frameio might be problematic. Click here for more details.
- frameio/account_permissions/client.py +2 -2
- frameio/account_permissions/raw_client.py +17 -17
- frameio/accounts/client.py +2 -2
- frameio/accounts/raw_client.py +17 -17
- frameio/comments/client.py +10 -10
- frameio/comments/raw_client.py +79 -79
- frameio/comments/types/create_comment_params_data.py +2 -2
- frameio/comments/types/update_comment_params_data.py +2 -2
- frameio/core/__init__.py +7 -0
- frameio/core/client_wrapper.py +2 -2
- frameio/core/unchecked_base_model.py +341 -0
- frameio/files/client.py +20 -20
- frameio/files/raw_client.py +159 -159
- frameio/files/types/file_copy_params_data.py +2 -2
- frameio/files/types/file_create_local_upload_params_data.py +2 -2
- frameio/files/types/file_create_params_data.py +2 -2
- frameio/files/types/file_create_remote_upload_params_data.py +2 -2
- frameio/files/types/file_move_params_data.py +2 -2
- frameio/files/types/file_update_params_data.py +2 -2
- frameio/folders/client.py +10 -10
- frameio/folders/raw_client.py +121 -121
- frameio/folders/types/folder_copy_params_data.py +2 -2
- frameio/folders/types/folder_create_params_data.py +2 -2
- frameio/folders/types/folder_move_params_data.py +2 -2
- frameio/folders/types/folder_update_params_data.py +2 -2
- frameio/metadata/client.py +16 -16
- frameio/metadata/raw_client.py +31 -31
- frameio/metadata/types/bulk_update_metadata_params_data.py +2 -2
- frameio/metadata/types/bulk_update_metadata_params_data_values_item.py +2 -2
- frameio/metadata_fields/client.py +8 -8
- frameio/metadata_fields/raw_client.py +63 -63
- frameio/metadata_fields/types/create_field_definition_params_data.py +26 -22
- frameio/metadata_fields/types/update_field_definition_params_data.py +26 -22
- frameio/project_permissions/client.py +6 -6
- frameio/project_permissions/raw_client.py +47 -47
- frameio/projects/client.py +10 -10
- frameio/projects/raw_client.py +79 -79
- frameio/shares/client.py +30 -30
- frameio/shares/raw_client.py +155 -155
- frameio/shares/types/add_asset_params_data.py +2 -2
- frameio/shares/types/add_reviewers_to_share_params_data.py +2 -2
- frameio/shares/types/add_reviewers_to_share_params_data_reviewers.py +2 -2
- frameio/shares/types/create_share_params_data.py +4 -3
- frameio/shares/types/remove_reviewer_params_data.py +2 -2
- frameio/shares/types/remove_reviewer_params_data_reviewers.py +2 -2
- frameio/shares/types/update_share_params_data.py +2 -2
- frameio/types/account.py +2 -2
- frameio/types/account_user_role.py +2 -2
- frameio/types/account_user_roles_response.py +2 -2
- frameio/types/accounts_response.py +2 -2
- frameio/types/add_asset_response.py +2 -2
- frameio/types/asset_common.py +2 -2
- frameio/types/asset_common_with_includes.py +2 -2
- frameio/types/asset_share_params.py +2 -2
- frameio/types/asset_with_includes.py +9 -5
- frameio/types/assets_with_includes_response.py +2 -2
- frameio/types/bad_request.py +2 -2
- frameio/types/bad_request_errors_item.py +2 -2
- frameio/types/bad_request_errors_item_source.py +2 -2
- frameio/types/comment.py +2 -2
- frameio/types/comment_response.py +2 -2
- frameio/types/comment_with_includes_response.py +2 -2
- frameio/types/comments_with_includes_response.py +2 -2
- frameio/types/date_definition.py +2 -2
- frameio/types/date_definition_field_configuration.py +2 -2
- frameio/types/date_definition_params.py +2 -2
- frameio/types/date_definition_params_field_configuration.py +2 -2
- frameio/types/field_definition.py +26 -22
- frameio/types/field_definition_response.py +2 -2
- frameio/types/field_definition_with_includes.py +26 -22
- frameio/types/field_definitions_with_includes_response.py +2 -2
- frameio/types/field_value_common.py +2 -2
- frameio/types/file.py +2 -2
- frameio/types/file_copy_response.py +2 -2
- frameio/types/file_remote_upload_response.py +2 -2
- frameio/types/file_response.py +2 -2
- frameio/types/file_upload_status.py +2 -2
- frameio/types/file_upload_status_response.py +2 -2
- frameio/types/file_with_includes_response.py +2 -2
- frameio/types/file_with_upload_urls_response.py +2 -2
- frameio/types/folder_copy_response.py +2 -2
- frameio/types/folder_response.py +2 -2
- frameio/types/folder_with_includes.py +2 -2
- frameio/types/folder_with_includes_response.py +2 -2
- frameio/types/folders_with_includes_response.py +2 -2
- frameio/types/forbidden.py +2 -2
- frameio/types/forbidden_errors_item.py +2 -2
- frameio/types/forbidden_errors_item_source.py +2 -2
- frameio/types/json_error_response.py +2 -2
- frameio/types/json_error_response_errors_item.py +2 -2
- frameio/types/json_error_response_errors_item_source.py +2 -2
- frameio/types/links.py +2 -2
- frameio/types/long_text_definition.py +2 -2
- frameio/types/long_text_definition_field_configuration.py +2 -2
- frameio/types/long_text_definition_params.py +2 -2
- frameio/types/media_link_common.py +2 -2
- frameio/types/media_links_collection.py +2 -2
- frameio/types/metadata_field.py +28 -24
- frameio/types/metadata_response.py +2 -2
- frameio/types/metadata_with_definition.py +2 -2
- frameio/types/not_found.py +2 -2
- frameio/types/not_found_errors_item.py +2 -2
- frameio/types/not_found_errors_item_source.py +2 -2
- frameio/types/number_definition.py +2 -2
- frameio/types/number_definition_field_configuration.py +2 -2
- frameio/types/number_definition_params.py +2 -2
- frameio/types/number_definition_params_field_configuration.py +2 -2
- frameio/types/profile.py +2 -2
- frameio/types/profile_response.py +2 -2
- frameio/types/project.py +2 -2
- frameio/types/project_params.py +2 -2
- frameio/types/project_params_data.py +2 -2
- frameio/types/project_response.py +2 -2
- frameio/types/project_with_includes_response.py +2 -2
- frameio/types/projects_with_includes_response.py +2 -2
- frameio/types/rating_definition.py +2 -2
- frameio/types/rating_definition_field_configuration.py +2 -2
- frameio/types/rating_definition_params.py +2 -2
- frameio/types/rating_definition_params_field_configuration.py +2 -2
- frameio/types/remove_asset_response.py +2 -2
- frameio/types/select_definition.py +2 -2
- frameio/types/select_definition_field_configuration.py +2 -2
- frameio/types/select_definition_field_configuration_options_item.py +2 -2
- frameio/types/select_definition_params.py +2 -2
- frameio/types/select_definition_params_field_configuration.py +2 -2
- frameio/types/select_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/select_multi_definition.py +2 -2
- frameio/types/select_multi_definition_field_configuration.py +2 -2
- frameio/types/select_multi_definition_field_configuration_options_item.py +2 -2
- frameio/types/select_multi_definition_params.py +2 -2
- frameio/types/select_multi_definition_params_field_configuration.py +2 -2
- frameio/types/select_multi_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/select_option.py +2 -2
- frameio/types/share.py +2 -2
- frameio/types/share_response.py +2 -2
- frameio/types/share_reviewers_response.py +2 -2
- frameio/types/shares_response.py +2 -2
- frameio/types/text_definition.py +2 -2
- frameio/types/text_definition_field_configuration.py +2 -2
- frameio/types/text_definition_params.py +2 -2
- frameio/types/toggle_definition.py +2 -2
- frameio/types/toggle_definition_field_configuration.py +2 -2
- frameio/types/toggle_definition_params.py +2 -2
- frameio/types/toggle_definition_params_field_configuration.py +2 -2
- frameio/types/too_many_requests.py +2 -2
- frameio/types/too_many_requests_errors_item.py +2 -2
- frameio/types/too_many_requests_errors_item_source.py +2 -2
- frameio/types/unauthorized.py +2 -2
- frameio/types/unauthorized_errors_item.py +2 -2
- frameio/types/unauthorized_errors_item_source.py +2 -2
- frameio/types/unprocessable_entity.py +2 -2
- frameio/types/unprocessable_entity_errors_item.py +2 -2
- frameio/types/unprocessable_entity_errors_item_source.py +2 -2
- frameio/types/update_date_definition_params.py +2 -2
- frameio/types/update_date_definition_params_field_configuration.py +2 -2
- frameio/types/update_long_text_definition_params.py +2 -2
- frameio/types/update_number_definition_params.py +2 -2
- frameio/types/update_number_definition_params_field_configuration.py +2 -2
- frameio/types/update_rating_definition_params.py +2 -2
- frameio/types/update_rating_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_definition_params.py +2 -2
- frameio/types/update_select_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/update_select_multi_definition_params.py +2 -2
- frameio/types/update_select_multi_definition_params_field_configuration.py +2 -2
- frameio/types/update_select_multi_definition_params_field_configuration_options_item.py +2 -2
- frameio/types/update_text_definition_params.py +2 -2
- frameio/types/update_toggle_definition_params.py +2 -2
- frameio/types/update_toggle_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_multi_definition_params.py +2 -2
- frameio/types/update_user_multi_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/update_user_roles_params.py +2 -2
- frameio/types/update_user_roles_params_data.py +2 -2
- frameio/types/update_user_roles_response.py +2 -2
- frameio/types/update_user_roles_response_data.py +2 -2
- frameio/types/update_user_single_definition_params.py +2 -2
- frameio/types/update_user_single_definition_params_field_configuration.py +2 -2
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/upload_url.py +2 -2
- frameio/types/user.py +2 -2
- frameio/types/user_multi_definition.py +2 -2
- frameio/types/user_multi_definition_field_configuration.py +2 -2
- frameio/types/user_multi_definition_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_multi_definition_params.py +2 -2
- frameio/types/user_multi_definition_params_field_configuration.py +2 -2
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_role.py +2 -2
- frameio/types/user_roles_response.py +2 -2
- frameio/types/user_single_definition.py +2 -2
- frameio/types/user_single_definition_field_configuration.py +2 -2
- frameio/types/user_single_definition_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_single_definition_params.py +2 -2
- frameio/types/user_single_definition_params_field_configuration.py +2 -2
- frameio/types/user_single_definition_params_field_configuration_custom_members_item.py +2 -2
- frameio/types/user_value.py +2 -2
- frameio/types/version_stack.py +2 -2
- frameio/types/version_stack_copy_response.py +2 -2
- frameio/types/version_stack_response.py +2 -2
- frameio/types/version_stack_with_includes.py +2 -2
- frameio/types/version_stack_with_includes_response.py +2 -2
- frameio/types/version_stacks_with_includes_response.py +2 -2
- frameio/types/webhook.py +2 -2
- frameio/types/webhook_create_response.py +2 -2
- frameio/types/webhook_response.py +2 -2
- frameio/types/webhook_with_includes_response.py +2 -2
- frameio/types/webhooks_with_includes_response.py +2 -2
- frameio/types/workspace.py +2 -2
- frameio/types/workspace_params.py +2 -2
- frameio/types/workspace_params_data.py +2 -2
- frameio/types/workspace_response.py +2 -2
- frameio/types/workspace_with_includes_response.py +2 -2
- frameio/types/workspaces_with_includes_response.py +2 -2
- frameio/users/client.py +2 -2
- frameio/users/raw_client.py +17 -17
- frameio/version_stacks/client.py +10 -10
- frameio/version_stacks/raw_client.py +77 -77
- frameio/version_stacks/types/version_stack_copy_params_data.py +2 -2
- frameio/version_stacks/types/version_stack_create_params_data.py +3 -3
- frameio/version_stacks/types/version_stack_move_params_data.py +2 -2
- frameio/webhooks/client.py +8 -8
- frameio/webhooks/raw_client.py +77 -77
- frameio/webhooks/types/webhook_create_params_data.py +2 -2
- frameio/webhooks/types/webhook_update_params_data.py +2 -2
- frameio/workspace_permissions/client.py +6 -6
- frameio/workspace_permissions/raw_client.py +47 -47
- frameio/workspaces/client.py +10 -10
- frameio/workspaces/raw_client.py +79 -79
- {frameio-0.0.23.dist-info → frameio-0.0.24.dist-info}/METADATA +1 -1
- frameio-0.0.24.dist-info/RECORD +364 -0
- frameio-0.0.23.dist-info/RECORD +0 -363
- {frameio-0.0.23.dist-info → frameio-0.0.24.dist-info}/WHEEL +0 -0
|
@@ -7,9 +7,9 @@ from ..core.api_error import ApiError
|
|
|
7
7
|
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
8
|
from ..core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
9
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
10
|
-
from ..core.pydantic_utilities import parse_obj_as
|
|
11
10
|
from ..core.request_options import RequestOptions
|
|
12
11
|
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
12
|
+
from ..core.unchecked_base_model import construct_type
|
|
13
13
|
from ..errors.bad_request_error import BadRequestError
|
|
14
14
|
from ..errors.forbidden_error import ForbiddenError
|
|
15
15
|
from ..errors.not_found_error import NotFoundError
|
|
@@ -42,7 +42,7 @@ class RawMetadataFieldsClient:
|
|
|
42
42
|
self, account_id: Uuid, field_definition_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
43
43
|
) -> HttpResponse[None]:
|
|
44
44
|
"""
|
|
45
|
-
Delete account level custom field definitions. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
45
|
+
Delete account level custom field definitions. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
46
46
|
|
|
47
47
|
Parameters
|
|
48
48
|
----------
|
|
@@ -72,7 +72,7 @@ class RawMetadataFieldsClient:
|
|
|
72
72
|
headers=dict(_response.headers),
|
|
73
73
|
body=typing.cast(
|
|
74
74
|
BadRequest,
|
|
75
|
-
|
|
75
|
+
construct_type(
|
|
76
76
|
type_=BadRequest, # type: ignore
|
|
77
77
|
object_=_response.json(),
|
|
78
78
|
),
|
|
@@ -83,7 +83,7 @@ class RawMetadataFieldsClient:
|
|
|
83
83
|
headers=dict(_response.headers),
|
|
84
84
|
body=typing.cast(
|
|
85
85
|
Unauthorized,
|
|
86
|
-
|
|
86
|
+
construct_type(
|
|
87
87
|
type_=Unauthorized, # type: ignore
|
|
88
88
|
object_=_response.json(),
|
|
89
89
|
),
|
|
@@ -94,7 +94,7 @@ class RawMetadataFieldsClient:
|
|
|
94
94
|
headers=dict(_response.headers),
|
|
95
95
|
body=typing.cast(
|
|
96
96
|
Forbidden,
|
|
97
|
-
|
|
97
|
+
construct_type(
|
|
98
98
|
type_=Forbidden, # type: ignore
|
|
99
99
|
object_=_response.json(),
|
|
100
100
|
),
|
|
@@ -105,7 +105,7 @@ class RawMetadataFieldsClient:
|
|
|
105
105
|
headers=dict(_response.headers),
|
|
106
106
|
body=typing.cast(
|
|
107
107
|
NotFound,
|
|
108
|
-
|
|
108
|
+
construct_type(
|
|
109
109
|
type_=NotFound, # type: ignore
|
|
110
110
|
object_=_response.json(),
|
|
111
111
|
),
|
|
@@ -116,7 +116,7 @@ class RawMetadataFieldsClient:
|
|
|
116
116
|
headers=dict(_response.headers),
|
|
117
117
|
body=typing.cast(
|
|
118
118
|
typing.Optional[typing.Any],
|
|
119
|
-
|
|
119
|
+
construct_type(
|
|
120
120
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
121
121
|
object_=_response.json(),
|
|
122
122
|
),
|
|
@@ -127,7 +127,7 @@ class RawMetadataFieldsClient:
|
|
|
127
127
|
headers=dict(_response.headers),
|
|
128
128
|
body=typing.cast(
|
|
129
129
|
TooManyRequests,
|
|
130
|
-
|
|
130
|
+
construct_type(
|
|
131
131
|
type_=TooManyRequests, # type: ignore
|
|
132
132
|
object_=_response.json(),
|
|
133
133
|
),
|
|
@@ -147,7 +147,7 @@ class RawMetadataFieldsClient:
|
|
|
147
147
|
request_options: typing.Optional[RequestOptions] = None,
|
|
148
148
|
) -> HttpResponse[FieldDefinitionResponse]:
|
|
149
149
|
"""
|
|
150
|
-
Update account level custom field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
150
|
+
Update account level custom field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
151
151
|
|
|
152
152
|
Parameters
|
|
153
153
|
----------
|
|
@@ -185,7 +185,7 @@ class RawMetadataFieldsClient:
|
|
|
185
185
|
if 200 <= _response.status_code < 300:
|
|
186
186
|
_data = typing.cast(
|
|
187
187
|
FieldDefinitionResponse,
|
|
188
|
-
|
|
188
|
+
construct_type(
|
|
189
189
|
type_=FieldDefinitionResponse, # type: ignore
|
|
190
190
|
object_=_response.json(),
|
|
191
191
|
),
|
|
@@ -196,7 +196,7 @@ class RawMetadataFieldsClient:
|
|
|
196
196
|
headers=dict(_response.headers),
|
|
197
197
|
body=typing.cast(
|
|
198
198
|
BadRequest,
|
|
199
|
-
|
|
199
|
+
construct_type(
|
|
200
200
|
type_=BadRequest, # type: ignore
|
|
201
201
|
object_=_response.json(),
|
|
202
202
|
),
|
|
@@ -207,7 +207,7 @@ class RawMetadataFieldsClient:
|
|
|
207
207
|
headers=dict(_response.headers),
|
|
208
208
|
body=typing.cast(
|
|
209
209
|
Unauthorized,
|
|
210
|
-
|
|
210
|
+
construct_type(
|
|
211
211
|
type_=Unauthorized, # type: ignore
|
|
212
212
|
object_=_response.json(),
|
|
213
213
|
),
|
|
@@ -218,7 +218,7 @@ class RawMetadataFieldsClient:
|
|
|
218
218
|
headers=dict(_response.headers),
|
|
219
219
|
body=typing.cast(
|
|
220
220
|
Forbidden,
|
|
221
|
-
|
|
221
|
+
construct_type(
|
|
222
222
|
type_=Forbidden, # type: ignore
|
|
223
223
|
object_=_response.json(),
|
|
224
224
|
),
|
|
@@ -229,7 +229,7 @@ class RawMetadataFieldsClient:
|
|
|
229
229
|
headers=dict(_response.headers),
|
|
230
230
|
body=typing.cast(
|
|
231
231
|
NotFound,
|
|
232
|
-
|
|
232
|
+
construct_type(
|
|
233
233
|
type_=NotFound, # type: ignore
|
|
234
234
|
object_=_response.json(),
|
|
235
235
|
),
|
|
@@ -240,7 +240,7 @@ class RawMetadataFieldsClient:
|
|
|
240
240
|
headers=dict(_response.headers),
|
|
241
241
|
body=typing.cast(
|
|
242
242
|
typing.Optional[typing.Any],
|
|
243
|
-
|
|
243
|
+
construct_type(
|
|
244
244
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
245
245
|
object_=_response.json(),
|
|
246
246
|
),
|
|
@@ -251,7 +251,7 @@ class RawMetadataFieldsClient:
|
|
|
251
251
|
headers=dict(_response.headers),
|
|
252
252
|
body=typing.cast(
|
|
253
253
|
TooManyRequests,
|
|
254
|
-
|
|
254
|
+
construct_type(
|
|
255
255
|
type_=TooManyRequests, # type: ignore
|
|
256
256
|
object_=_response.json(),
|
|
257
257
|
),
|
|
@@ -273,7 +273,7 @@ class RawMetadataFieldsClient:
|
|
|
273
273
|
request_options: typing.Optional[RequestOptions] = None,
|
|
274
274
|
) -> HttpResponse[FieldDefinitionsWithIncludesResponse]:
|
|
275
275
|
"""
|
|
276
|
-
List account level field definitions. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
276
|
+
List account level field definitions. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
277
277
|
|
|
278
278
|
Parameters
|
|
279
279
|
----------
|
|
@@ -317,7 +317,7 @@ class RawMetadataFieldsClient:
|
|
|
317
317
|
if 200 <= _response.status_code < 300:
|
|
318
318
|
_data = typing.cast(
|
|
319
319
|
FieldDefinitionsWithIncludesResponse,
|
|
320
|
-
|
|
320
|
+
construct_type(
|
|
321
321
|
type_=FieldDefinitionsWithIncludesResponse, # type: ignore
|
|
322
322
|
object_=_response.json(),
|
|
323
323
|
),
|
|
@@ -328,7 +328,7 @@ class RawMetadataFieldsClient:
|
|
|
328
328
|
headers=dict(_response.headers),
|
|
329
329
|
body=typing.cast(
|
|
330
330
|
BadRequest,
|
|
331
|
-
|
|
331
|
+
construct_type(
|
|
332
332
|
type_=BadRequest, # type: ignore
|
|
333
333
|
object_=_response.json(),
|
|
334
334
|
),
|
|
@@ -339,7 +339,7 @@ class RawMetadataFieldsClient:
|
|
|
339
339
|
headers=dict(_response.headers),
|
|
340
340
|
body=typing.cast(
|
|
341
341
|
Unauthorized,
|
|
342
|
-
|
|
342
|
+
construct_type(
|
|
343
343
|
type_=Unauthorized, # type: ignore
|
|
344
344
|
object_=_response.json(),
|
|
345
345
|
),
|
|
@@ -350,7 +350,7 @@ class RawMetadataFieldsClient:
|
|
|
350
350
|
headers=dict(_response.headers),
|
|
351
351
|
body=typing.cast(
|
|
352
352
|
Forbidden,
|
|
353
|
-
|
|
353
|
+
construct_type(
|
|
354
354
|
type_=Forbidden, # type: ignore
|
|
355
355
|
object_=_response.json(),
|
|
356
356
|
),
|
|
@@ -361,7 +361,7 @@ class RawMetadataFieldsClient:
|
|
|
361
361
|
headers=dict(_response.headers),
|
|
362
362
|
body=typing.cast(
|
|
363
363
|
NotFound,
|
|
364
|
-
|
|
364
|
+
construct_type(
|
|
365
365
|
type_=NotFound, # type: ignore
|
|
366
366
|
object_=_response.json(),
|
|
367
367
|
),
|
|
@@ -372,7 +372,7 @@ class RawMetadataFieldsClient:
|
|
|
372
372
|
headers=dict(_response.headers),
|
|
373
373
|
body=typing.cast(
|
|
374
374
|
typing.Optional[typing.Any],
|
|
375
|
-
|
|
375
|
+
construct_type(
|
|
376
376
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
377
377
|
object_=_response.json(),
|
|
378
378
|
),
|
|
@@ -383,7 +383,7 @@ class RawMetadataFieldsClient:
|
|
|
383
383
|
headers=dict(_response.headers),
|
|
384
384
|
body=typing.cast(
|
|
385
385
|
TooManyRequests,
|
|
386
|
-
|
|
386
|
+
construct_type(
|
|
387
387
|
type_=TooManyRequests, # type: ignore
|
|
388
388
|
object_=_response.json(),
|
|
389
389
|
),
|
|
@@ -402,7 +402,7 @@ class RawMetadataFieldsClient:
|
|
|
402
402
|
request_options: typing.Optional[RequestOptions] = None,
|
|
403
403
|
) -> HttpResponse[FieldDefinitionResponse]:
|
|
404
404
|
"""
|
|
405
|
-
Create account level field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
405
|
+
Create account level field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
406
406
|
|
|
407
407
|
Parameters
|
|
408
408
|
----------
|
|
@@ -437,7 +437,7 @@ class RawMetadataFieldsClient:
|
|
|
437
437
|
if 200 <= _response.status_code < 300:
|
|
438
438
|
_data = typing.cast(
|
|
439
439
|
FieldDefinitionResponse,
|
|
440
|
-
|
|
440
|
+
construct_type(
|
|
441
441
|
type_=FieldDefinitionResponse, # type: ignore
|
|
442
442
|
object_=_response.json(),
|
|
443
443
|
),
|
|
@@ -448,7 +448,7 @@ class RawMetadataFieldsClient:
|
|
|
448
448
|
headers=dict(_response.headers),
|
|
449
449
|
body=typing.cast(
|
|
450
450
|
BadRequest,
|
|
451
|
-
|
|
451
|
+
construct_type(
|
|
452
452
|
type_=BadRequest, # type: ignore
|
|
453
453
|
object_=_response.json(),
|
|
454
454
|
),
|
|
@@ -459,7 +459,7 @@ class RawMetadataFieldsClient:
|
|
|
459
459
|
headers=dict(_response.headers),
|
|
460
460
|
body=typing.cast(
|
|
461
461
|
Unauthorized,
|
|
462
|
-
|
|
462
|
+
construct_type(
|
|
463
463
|
type_=Unauthorized, # type: ignore
|
|
464
464
|
object_=_response.json(),
|
|
465
465
|
),
|
|
@@ -470,7 +470,7 @@ class RawMetadataFieldsClient:
|
|
|
470
470
|
headers=dict(_response.headers),
|
|
471
471
|
body=typing.cast(
|
|
472
472
|
Forbidden,
|
|
473
|
-
|
|
473
|
+
construct_type(
|
|
474
474
|
type_=Forbidden, # type: ignore
|
|
475
475
|
object_=_response.json(),
|
|
476
476
|
),
|
|
@@ -481,7 +481,7 @@ class RawMetadataFieldsClient:
|
|
|
481
481
|
headers=dict(_response.headers),
|
|
482
482
|
body=typing.cast(
|
|
483
483
|
NotFound,
|
|
484
|
-
|
|
484
|
+
construct_type(
|
|
485
485
|
type_=NotFound, # type: ignore
|
|
486
486
|
object_=_response.json(),
|
|
487
487
|
),
|
|
@@ -492,7 +492,7 @@ class RawMetadataFieldsClient:
|
|
|
492
492
|
headers=dict(_response.headers),
|
|
493
493
|
body=typing.cast(
|
|
494
494
|
typing.Optional[typing.Any],
|
|
495
|
-
|
|
495
|
+
construct_type(
|
|
496
496
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
497
497
|
object_=_response.json(),
|
|
498
498
|
),
|
|
@@ -503,7 +503,7 @@ class RawMetadataFieldsClient:
|
|
|
503
503
|
headers=dict(_response.headers),
|
|
504
504
|
body=typing.cast(
|
|
505
505
|
TooManyRequests,
|
|
506
|
-
|
|
506
|
+
construct_type(
|
|
507
507
|
type_=TooManyRequests, # type: ignore
|
|
508
508
|
object_=_response.json(),
|
|
509
509
|
),
|
|
@@ -523,7 +523,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
523
523
|
self, account_id: Uuid, field_definition_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
524
524
|
) -> AsyncHttpResponse[None]:
|
|
525
525
|
"""
|
|
526
|
-
Delete account level custom field definitions. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
526
|
+
Delete account level custom field definitions. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
527
527
|
|
|
528
528
|
Parameters
|
|
529
529
|
----------
|
|
@@ -553,7 +553,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
553
553
|
headers=dict(_response.headers),
|
|
554
554
|
body=typing.cast(
|
|
555
555
|
BadRequest,
|
|
556
|
-
|
|
556
|
+
construct_type(
|
|
557
557
|
type_=BadRequest, # type: ignore
|
|
558
558
|
object_=_response.json(),
|
|
559
559
|
),
|
|
@@ -564,7 +564,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
564
564
|
headers=dict(_response.headers),
|
|
565
565
|
body=typing.cast(
|
|
566
566
|
Unauthorized,
|
|
567
|
-
|
|
567
|
+
construct_type(
|
|
568
568
|
type_=Unauthorized, # type: ignore
|
|
569
569
|
object_=_response.json(),
|
|
570
570
|
),
|
|
@@ -575,7 +575,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
575
575
|
headers=dict(_response.headers),
|
|
576
576
|
body=typing.cast(
|
|
577
577
|
Forbidden,
|
|
578
|
-
|
|
578
|
+
construct_type(
|
|
579
579
|
type_=Forbidden, # type: ignore
|
|
580
580
|
object_=_response.json(),
|
|
581
581
|
),
|
|
@@ -586,7 +586,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
586
586
|
headers=dict(_response.headers),
|
|
587
587
|
body=typing.cast(
|
|
588
588
|
NotFound,
|
|
589
|
-
|
|
589
|
+
construct_type(
|
|
590
590
|
type_=NotFound, # type: ignore
|
|
591
591
|
object_=_response.json(),
|
|
592
592
|
),
|
|
@@ -597,7 +597,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
597
597
|
headers=dict(_response.headers),
|
|
598
598
|
body=typing.cast(
|
|
599
599
|
typing.Optional[typing.Any],
|
|
600
|
-
|
|
600
|
+
construct_type(
|
|
601
601
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
602
602
|
object_=_response.json(),
|
|
603
603
|
),
|
|
@@ -608,7 +608,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
608
608
|
headers=dict(_response.headers),
|
|
609
609
|
body=typing.cast(
|
|
610
610
|
TooManyRequests,
|
|
611
|
-
|
|
611
|
+
construct_type(
|
|
612
612
|
type_=TooManyRequests, # type: ignore
|
|
613
613
|
object_=_response.json(),
|
|
614
614
|
),
|
|
@@ -628,7 +628,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
628
628
|
request_options: typing.Optional[RequestOptions] = None,
|
|
629
629
|
) -> AsyncHttpResponse[FieldDefinitionResponse]:
|
|
630
630
|
"""
|
|
631
|
-
Update account level custom field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
631
|
+
Update account level custom field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
632
632
|
|
|
633
633
|
Parameters
|
|
634
634
|
----------
|
|
@@ -666,7 +666,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
666
666
|
if 200 <= _response.status_code < 300:
|
|
667
667
|
_data = typing.cast(
|
|
668
668
|
FieldDefinitionResponse,
|
|
669
|
-
|
|
669
|
+
construct_type(
|
|
670
670
|
type_=FieldDefinitionResponse, # type: ignore
|
|
671
671
|
object_=_response.json(),
|
|
672
672
|
),
|
|
@@ -677,7 +677,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
677
677
|
headers=dict(_response.headers),
|
|
678
678
|
body=typing.cast(
|
|
679
679
|
BadRequest,
|
|
680
|
-
|
|
680
|
+
construct_type(
|
|
681
681
|
type_=BadRequest, # type: ignore
|
|
682
682
|
object_=_response.json(),
|
|
683
683
|
),
|
|
@@ -688,7 +688,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
688
688
|
headers=dict(_response.headers),
|
|
689
689
|
body=typing.cast(
|
|
690
690
|
Unauthorized,
|
|
691
|
-
|
|
691
|
+
construct_type(
|
|
692
692
|
type_=Unauthorized, # type: ignore
|
|
693
693
|
object_=_response.json(),
|
|
694
694
|
),
|
|
@@ -699,7 +699,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
699
699
|
headers=dict(_response.headers),
|
|
700
700
|
body=typing.cast(
|
|
701
701
|
Forbidden,
|
|
702
|
-
|
|
702
|
+
construct_type(
|
|
703
703
|
type_=Forbidden, # type: ignore
|
|
704
704
|
object_=_response.json(),
|
|
705
705
|
),
|
|
@@ -710,7 +710,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
710
710
|
headers=dict(_response.headers),
|
|
711
711
|
body=typing.cast(
|
|
712
712
|
NotFound,
|
|
713
|
-
|
|
713
|
+
construct_type(
|
|
714
714
|
type_=NotFound, # type: ignore
|
|
715
715
|
object_=_response.json(),
|
|
716
716
|
),
|
|
@@ -721,7 +721,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
721
721
|
headers=dict(_response.headers),
|
|
722
722
|
body=typing.cast(
|
|
723
723
|
typing.Optional[typing.Any],
|
|
724
|
-
|
|
724
|
+
construct_type(
|
|
725
725
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
726
726
|
object_=_response.json(),
|
|
727
727
|
),
|
|
@@ -732,7 +732,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
732
732
|
headers=dict(_response.headers),
|
|
733
733
|
body=typing.cast(
|
|
734
734
|
TooManyRequests,
|
|
735
|
-
|
|
735
|
+
construct_type(
|
|
736
736
|
type_=TooManyRequests, # type: ignore
|
|
737
737
|
object_=_response.json(),
|
|
738
738
|
),
|
|
@@ -754,7 +754,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
754
754
|
request_options: typing.Optional[RequestOptions] = None,
|
|
755
755
|
) -> AsyncHttpResponse[FieldDefinitionsWithIncludesResponse]:
|
|
756
756
|
"""
|
|
757
|
-
List account level field definitions. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
757
|
+
List account level field definitions. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
758
758
|
|
|
759
759
|
Parameters
|
|
760
760
|
----------
|
|
@@ -798,7 +798,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
798
798
|
if 200 <= _response.status_code < 300:
|
|
799
799
|
_data = typing.cast(
|
|
800
800
|
FieldDefinitionsWithIncludesResponse,
|
|
801
|
-
|
|
801
|
+
construct_type(
|
|
802
802
|
type_=FieldDefinitionsWithIncludesResponse, # type: ignore
|
|
803
803
|
object_=_response.json(),
|
|
804
804
|
),
|
|
@@ -809,7 +809,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
809
809
|
headers=dict(_response.headers),
|
|
810
810
|
body=typing.cast(
|
|
811
811
|
BadRequest,
|
|
812
|
-
|
|
812
|
+
construct_type(
|
|
813
813
|
type_=BadRequest, # type: ignore
|
|
814
814
|
object_=_response.json(),
|
|
815
815
|
),
|
|
@@ -820,7 +820,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
820
820
|
headers=dict(_response.headers),
|
|
821
821
|
body=typing.cast(
|
|
822
822
|
Unauthorized,
|
|
823
|
-
|
|
823
|
+
construct_type(
|
|
824
824
|
type_=Unauthorized, # type: ignore
|
|
825
825
|
object_=_response.json(),
|
|
826
826
|
),
|
|
@@ -831,7 +831,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
831
831
|
headers=dict(_response.headers),
|
|
832
832
|
body=typing.cast(
|
|
833
833
|
Forbidden,
|
|
834
|
-
|
|
834
|
+
construct_type(
|
|
835
835
|
type_=Forbidden, # type: ignore
|
|
836
836
|
object_=_response.json(),
|
|
837
837
|
),
|
|
@@ -842,7 +842,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
842
842
|
headers=dict(_response.headers),
|
|
843
843
|
body=typing.cast(
|
|
844
844
|
NotFound,
|
|
845
|
-
|
|
845
|
+
construct_type(
|
|
846
846
|
type_=NotFound, # type: ignore
|
|
847
847
|
object_=_response.json(),
|
|
848
848
|
),
|
|
@@ -853,7 +853,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
853
853
|
headers=dict(_response.headers),
|
|
854
854
|
body=typing.cast(
|
|
855
855
|
typing.Optional[typing.Any],
|
|
856
|
-
|
|
856
|
+
construct_type(
|
|
857
857
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
858
858
|
object_=_response.json(),
|
|
859
859
|
),
|
|
@@ -864,7 +864,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
864
864
|
headers=dict(_response.headers),
|
|
865
865
|
body=typing.cast(
|
|
866
866
|
TooManyRequests,
|
|
867
|
-
|
|
867
|
+
construct_type(
|
|
868
868
|
type_=TooManyRequests, # type: ignore
|
|
869
869
|
object_=_response.json(),
|
|
870
870
|
),
|
|
@@ -883,7 +883,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
883
883
|
request_options: typing.Optional[RequestOptions] = None,
|
|
884
884
|
) -> AsyncHttpResponse[FieldDefinitionResponse]:
|
|
885
885
|
"""
|
|
886
|
-
Create account level field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
886
|
+
Create account level field definitions. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
887
887
|
|
|
888
888
|
Parameters
|
|
889
889
|
----------
|
|
@@ -918,7 +918,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
918
918
|
if 200 <= _response.status_code < 300:
|
|
919
919
|
_data = typing.cast(
|
|
920
920
|
FieldDefinitionResponse,
|
|
921
|
-
|
|
921
|
+
construct_type(
|
|
922
922
|
type_=FieldDefinitionResponse, # type: ignore
|
|
923
923
|
object_=_response.json(),
|
|
924
924
|
),
|
|
@@ -929,7 +929,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
929
929
|
headers=dict(_response.headers),
|
|
930
930
|
body=typing.cast(
|
|
931
931
|
BadRequest,
|
|
932
|
-
|
|
932
|
+
construct_type(
|
|
933
933
|
type_=BadRequest, # type: ignore
|
|
934
934
|
object_=_response.json(),
|
|
935
935
|
),
|
|
@@ -940,7 +940,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
940
940
|
headers=dict(_response.headers),
|
|
941
941
|
body=typing.cast(
|
|
942
942
|
Unauthorized,
|
|
943
|
-
|
|
943
|
+
construct_type(
|
|
944
944
|
type_=Unauthorized, # type: ignore
|
|
945
945
|
object_=_response.json(),
|
|
946
946
|
),
|
|
@@ -951,7 +951,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
951
951
|
headers=dict(_response.headers),
|
|
952
952
|
body=typing.cast(
|
|
953
953
|
Forbidden,
|
|
954
|
-
|
|
954
|
+
construct_type(
|
|
955
955
|
type_=Forbidden, # type: ignore
|
|
956
956
|
object_=_response.json(),
|
|
957
957
|
),
|
|
@@ -962,7 +962,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
962
962
|
headers=dict(_response.headers),
|
|
963
963
|
body=typing.cast(
|
|
964
964
|
NotFound,
|
|
965
|
-
|
|
965
|
+
construct_type(
|
|
966
966
|
type_=NotFound, # type: ignore
|
|
967
967
|
object_=_response.json(),
|
|
968
968
|
),
|
|
@@ -973,7 +973,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
973
973
|
headers=dict(_response.headers),
|
|
974
974
|
body=typing.cast(
|
|
975
975
|
typing.Optional[typing.Any],
|
|
976
|
-
|
|
976
|
+
construct_type(
|
|
977
977
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
978
978
|
object_=_response.json(),
|
|
979
979
|
),
|
|
@@ -984,7 +984,7 @@ class AsyncRawMetadataFieldsClient:
|
|
|
984
984
|
headers=dict(_response.headers),
|
|
985
985
|
body=typing.cast(
|
|
986
986
|
TooManyRequests,
|
|
987
|
-
|
|
987
|
+
construct_type(
|
|
988
988
|
type_=TooManyRequests, # type: ignore
|
|
989
989
|
object_=_response.json(),
|
|
990
990
|
),
|
|
@@ -5,7 +5,8 @@ from __future__ import annotations
|
|
|
5
5
|
import typing
|
|
6
6
|
|
|
7
7
|
import pydantic
|
|
8
|
-
|
|
8
|
+
import typing_extensions
|
|
9
|
+
from ...core.unchecked_base_model import UncheckedBaseModel, UnionMetadata
|
|
9
10
|
from ...types.date_definition_params_field_configuration import DateDefinitionParamsFieldConfiguration
|
|
10
11
|
from ...types.number_definition_params_field_configuration import NumberDefinitionParamsFieldConfiguration
|
|
11
12
|
from ...types.rating_definition_params_field_configuration import RatingDefinitionParamsFieldConfiguration
|
|
@@ -16,7 +17,7 @@ from ...types.user_multi_definition_params_field_configuration import UserMultiD
|
|
|
16
17
|
from ...types.user_single_definition_params_field_configuration import UserSingleDefinitionParamsFieldConfiguration
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
class CreateFieldDefinitionParamsData_Date(
|
|
20
|
+
class CreateFieldDefinitionParamsData_Date(UncheckedBaseModel):
|
|
20
21
|
field_type: typing.Literal["date"] = "date"
|
|
21
22
|
field_configuration: DateDefinitionParamsFieldConfiguration
|
|
22
23
|
name: str
|
|
@@ -24,14 +25,14 @@ class CreateFieldDefinitionParamsData_Date(UniversalBaseModel):
|
|
|
24
25
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
class CreateFieldDefinitionParamsData_LongText(
|
|
28
|
+
class CreateFieldDefinitionParamsData_LongText(UncheckedBaseModel):
|
|
28
29
|
field_type: typing.Literal["long_text"] = "long_text"
|
|
29
30
|
name: str
|
|
30
31
|
|
|
31
32
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
33
|
|
|
33
34
|
|
|
34
|
-
class CreateFieldDefinitionParamsData_Number(
|
|
35
|
+
class CreateFieldDefinitionParamsData_Number(UncheckedBaseModel):
|
|
35
36
|
field_type: typing.Literal["number"] = "number"
|
|
36
37
|
field_configuration: NumberDefinitionParamsFieldConfiguration
|
|
37
38
|
name: str
|
|
@@ -39,7 +40,7 @@ class CreateFieldDefinitionParamsData_Number(UniversalBaseModel):
|
|
|
39
40
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
class CreateFieldDefinitionParamsData_Rating(
|
|
43
|
+
class CreateFieldDefinitionParamsData_Rating(UncheckedBaseModel):
|
|
43
44
|
field_type: typing.Literal["rating"] = "rating"
|
|
44
45
|
field_configuration: RatingDefinitionParamsFieldConfiguration
|
|
45
46
|
name: str
|
|
@@ -47,7 +48,7 @@ class CreateFieldDefinitionParamsData_Rating(UniversalBaseModel):
|
|
|
47
48
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
48
49
|
|
|
49
50
|
|
|
50
|
-
class CreateFieldDefinitionParamsData_Select(
|
|
51
|
+
class CreateFieldDefinitionParamsData_Select(UncheckedBaseModel):
|
|
51
52
|
field_type: typing.Literal["select"] = "select"
|
|
52
53
|
field_configuration: SelectDefinitionParamsFieldConfiguration
|
|
53
54
|
name: str
|
|
@@ -55,7 +56,7 @@ class CreateFieldDefinitionParamsData_Select(UniversalBaseModel):
|
|
|
55
56
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
56
57
|
|
|
57
58
|
|
|
58
|
-
class CreateFieldDefinitionParamsData_SelectMulti(
|
|
59
|
+
class CreateFieldDefinitionParamsData_SelectMulti(UncheckedBaseModel):
|
|
59
60
|
field_type: typing.Literal["select_multi"] = "select_multi"
|
|
60
61
|
field_configuration: SelectMultiDefinitionParamsFieldConfiguration
|
|
61
62
|
name: str
|
|
@@ -63,14 +64,14 @@ class CreateFieldDefinitionParamsData_SelectMulti(UniversalBaseModel):
|
|
|
63
64
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
64
65
|
|
|
65
66
|
|
|
66
|
-
class CreateFieldDefinitionParamsData_Text(
|
|
67
|
+
class CreateFieldDefinitionParamsData_Text(UncheckedBaseModel):
|
|
67
68
|
field_type: typing.Literal["text"] = "text"
|
|
68
69
|
name: str
|
|
69
70
|
|
|
70
71
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
71
72
|
|
|
72
73
|
|
|
73
|
-
class CreateFieldDefinitionParamsData_Toggle(
|
|
74
|
+
class CreateFieldDefinitionParamsData_Toggle(UncheckedBaseModel):
|
|
74
75
|
field_type: typing.Literal["toggle"] = "toggle"
|
|
75
76
|
field_configuration: typing.Optional[ToggleDefinitionParamsFieldConfiguration] = None
|
|
76
77
|
name: str
|
|
@@ -78,7 +79,7 @@ class CreateFieldDefinitionParamsData_Toggle(UniversalBaseModel):
|
|
|
78
79
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
79
80
|
|
|
80
81
|
|
|
81
|
-
class CreateFieldDefinitionParamsData_UserMulti(
|
|
82
|
+
class CreateFieldDefinitionParamsData_UserMulti(UncheckedBaseModel):
|
|
82
83
|
field_type: typing.Literal["user_multi"] = "user_multi"
|
|
83
84
|
field_configuration: UserMultiDefinitionParamsFieldConfiguration
|
|
84
85
|
name: str
|
|
@@ -86,7 +87,7 @@ class CreateFieldDefinitionParamsData_UserMulti(UniversalBaseModel):
|
|
|
86
87
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
87
88
|
|
|
88
89
|
|
|
89
|
-
class CreateFieldDefinitionParamsData_UserSingle(
|
|
90
|
+
class CreateFieldDefinitionParamsData_UserSingle(UncheckedBaseModel):
|
|
90
91
|
field_type: typing.Literal["user_single"] = "user_single"
|
|
91
92
|
field_configuration: UserSingleDefinitionParamsFieldConfiguration
|
|
92
93
|
name: str
|
|
@@ -94,15 +95,18 @@ class CreateFieldDefinitionParamsData_UserSingle(UniversalBaseModel):
|
|
|
94
95
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
95
96
|
|
|
96
97
|
|
|
97
|
-
CreateFieldDefinitionParamsData =
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
CreateFieldDefinitionParamsData = typing_extensions.Annotated[
|
|
99
|
+
typing.Union[
|
|
100
|
+
CreateFieldDefinitionParamsData_Date,
|
|
101
|
+
CreateFieldDefinitionParamsData_LongText,
|
|
102
|
+
CreateFieldDefinitionParamsData_Number,
|
|
103
|
+
CreateFieldDefinitionParamsData_Rating,
|
|
104
|
+
CreateFieldDefinitionParamsData_Select,
|
|
105
|
+
CreateFieldDefinitionParamsData_SelectMulti,
|
|
106
|
+
CreateFieldDefinitionParamsData_Text,
|
|
107
|
+
CreateFieldDefinitionParamsData_Toggle,
|
|
108
|
+
CreateFieldDefinitionParamsData_UserMulti,
|
|
109
|
+
CreateFieldDefinitionParamsData_UserSingle,
|
|
110
|
+
],
|
|
111
|
+
UnionMetadata(discriminant="field_type"),
|
|
108
112
|
]
|