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
|
@@ -38,7 +38,7 @@ class AccountPermissionsClient:
|
|
|
38
38
|
request_options: typing.Optional[RequestOptions] = None,
|
|
39
39
|
) -> AccountUserRolesResponse:
|
|
40
40
|
"""
|
|
41
|
-
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
41
|
+
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
42
42
|
|
|
43
43
|
Parameters
|
|
44
44
|
----------
|
|
@@ -119,7 +119,7 @@ class AsyncAccountPermissionsClient:
|
|
|
119
119
|
request_options: typing.Optional[RequestOptions] = None,
|
|
120
120
|
) -> AccountUserRolesResponse:
|
|
121
121
|
"""
|
|
122
|
-
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
122
|
+
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
123
123
|
|
|
124
124
|
Parameters
|
|
125
125
|
----------
|
|
@@ -7,8 +7,8 @@ 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
|
|
11
|
+
from ..core.unchecked_base_model import construct_type
|
|
12
12
|
from ..errors.bad_request_error import BadRequestError
|
|
13
13
|
from ..errors.forbidden_error import ForbiddenError
|
|
14
14
|
from ..errors.not_found_error import NotFoundError
|
|
@@ -42,7 +42,7 @@ class RawAccountPermissionsClient:
|
|
|
42
42
|
request_options: typing.Optional[RequestOptions] = None,
|
|
43
43
|
) -> HttpResponse[AccountUserRolesResponse]:
|
|
44
44
|
"""
|
|
45
|
-
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
45
|
+
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
46
46
|
|
|
47
47
|
Parameters
|
|
48
48
|
----------
|
|
@@ -86,7 +86,7 @@ class RawAccountPermissionsClient:
|
|
|
86
86
|
if 200 <= _response.status_code < 300:
|
|
87
87
|
_data = typing.cast(
|
|
88
88
|
AccountUserRolesResponse,
|
|
89
|
-
|
|
89
|
+
construct_type(
|
|
90
90
|
type_=AccountUserRolesResponse, # type: ignore
|
|
91
91
|
object_=_response.json(),
|
|
92
92
|
),
|
|
@@ -97,7 +97,7 @@ class RawAccountPermissionsClient:
|
|
|
97
97
|
headers=dict(_response.headers),
|
|
98
98
|
body=typing.cast(
|
|
99
99
|
BadRequest,
|
|
100
|
-
|
|
100
|
+
construct_type(
|
|
101
101
|
type_=BadRequest, # type: ignore
|
|
102
102
|
object_=_response.json(),
|
|
103
103
|
),
|
|
@@ -108,7 +108,7 @@ class RawAccountPermissionsClient:
|
|
|
108
108
|
headers=dict(_response.headers),
|
|
109
109
|
body=typing.cast(
|
|
110
110
|
Unauthorized,
|
|
111
|
-
|
|
111
|
+
construct_type(
|
|
112
112
|
type_=Unauthorized, # type: ignore
|
|
113
113
|
object_=_response.json(),
|
|
114
114
|
),
|
|
@@ -119,7 +119,7 @@ class RawAccountPermissionsClient:
|
|
|
119
119
|
headers=dict(_response.headers),
|
|
120
120
|
body=typing.cast(
|
|
121
121
|
Forbidden,
|
|
122
|
-
|
|
122
|
+
construct_type(
|
|
123
123
|
type_=Forbidden, # type: ignore
|
|
124
124
|
object_=_response.json(),
|
|
125
125
|
),
|
|
@@ -130,7 +130,7 @@ class RawAccountPermissionsClient:
|
|
|
130
130
|
headers=dict(_response.headers),
|
|
131
131
|
body=typing.cast(
|
|
132
132
|
NotFound,
|
|
133
|
-
|
|
133
|
+
construct_type(
|
|
134
134
|
type_=NotFound, # type: ignore
|
|
135
135
|
object_=_response.json(),
|
|
136
136
|
),
|
|
@@ -141,7 +141,7 @@ class RawAccountPermissionsClient:
|
|
|
141
141
|
headers=dict(_response.headers),
|
|
142
142
|
body=typing.cast(
|
|
143
143
|
typing.Optional[typing.Any],
|
|
144
|
-
|
|
144
|
+
construct_type(
|
|
145
145
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
146
146
|
object_=_response.json(),
|
|
147
147
|
),
|
|
@@ -152,7 +152,7 @@ class RawAccountPermissionsClient:
|
|
|
152
152
|
headers=dict(_response.headers),
|
|
153
153
|
body=typing.cast(
|
|
154
154
|
TooManyRequests,
|
|
155
|
-
|
|
155
|
+
construct_type(
|
|
156
156
|
type_=TooManyRequests, # type: ignore
|
|
157
157
|
object_=_response.json(),
|
|
158
158
|
),
|
|
@@ -179,7 +179,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
179
179
|
request_options: typing.Optional[RequestOptions] = None,
|
|
180
180
|
) -> AsyncHttpResponse[AccountUserRolesResponse]:
|
|
181
181
|
"""
|
|
182
|
-
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
182
|
+
List user roles for a given account. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
183
183
|
|
|
184
184
|
Parameters
|
|
185
185
|
----------
|
|
@@ -223,7 +223,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
223
223
|
if 200 <= _response.status_code < 300:
|
|
224
224
|
_data = typing.cast(
|
|
225
225
|
AccountUserRolesResponse,
|
|
226
|
-
|
|
226
|
+
construct_type(
|
|
227
227
|
type_=AccountUserRolesResponse, # type: ignore
|
|
228
228
|
object_=_response.json(),
|
|
229
229
|
),
|
|
@@ -234,7 +234,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
234
234
|
headers=dict(_response.headers),
|
|
235
235
|
body=typing.cast(
|
|
236
236
|
BadRequest,
|
|
237
|
-
|
|
237
|
+
construct_type(
|
|
238
238
|
type_=BadRequest, # type: ignore
|
|
239
239
|
object_=_response.json(),
|
|
240
240
|
),
|
|
@@ -245,7 +245,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
245
245
|
headers=dict(_response.headers),
|
|
246
246
|
body=typing.cast(
|
|
247
247
|
Unauthorized,
|
|
248
|
-
|
|
248
|
+
construct_type(
|
|
249
249
|
type_=Unauthorized, # type: ignore
|
|
250
250
|
object_=_response.json(),
|
|
251
251
|
),
|
|
@@ -256,7 +256,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
256
256
|
headers=dict(_response.headers),
|
|
257
257
|
body=typing.cast(
|
|
258
258
|
Forbidden,
|
|
259
|
-
|
|
259
|
+
construct_type(
|
|
260
260
|
type_=Forbidden, # type: ignore
|
|
261
261
|
object_=_response.json(),
|
|
262
262
|
),
|
|
@@ -267,7 +267,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
267
267
|
headers=dict(_response.headers),
|
|
268
268
|
body=typing.cast(
|
|
269
269
|
NotFound,
|
|
270
|
-
|
|
270
|
+
construct_type(
|
|
271
271
|
type_=NotFound, # type: ignore
|
|
272
272
|
object_=_response.json(),
|
|
273
273
|
),
|
|
@@ -278,7 +278,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
278
278
|
headers=dict(_response.headers),
|
|
279
279
|
body=typing.cast(
|
|
280
280
|
typing.Optional[typing.Any],
|
|
281
|
-
|
|
281
|
+
construct_type(
|
|
282
282
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
283
283
|
object_=_response.json(),
|
|
284
284
|
),
|
|
@@ -289,7 +289,7 @@ class AsyncRawAccountPermissionsClient:
|
|
|
289
289
|
headers=dict(_response.headers),
|
|
290
290
|
body=typing.cast(
|
|
291
291
|
TooManyRequests,
|
|
292
|
-
|
|
292
|
+
construct_type(
|
|
293
293
|
type_=TooManyRequests, # type: ignore
|
|
294
294
|
object_=_response.json(),
|
|
295
295
|
),
|
frameio/accounts/client.py
CHANGED
|
@@ -35,7 +35,7 @@ class AccountsClient:
|
|
|
35
35
|
request_options: typing.Optional[RequestOptions] = None,
|
|
36
36
|
) -> AccountsResponse:
|
|
37
37
|
"""
|
|
38
|
-
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
38
|
+
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
39
39
|
|
|
40
40
|
Parameters
|
|
41
41
|
----------
|
|
@@ -101,7 +101,7 @@ class AsyncAccountsClient:
|
|
|
101
101
|
request_options: typing.Optional[RequestOptions] = None,
|
|
102
102
|
) -> AccountsResponse:
|
|
103
103
|
"""
|
|
104
|
-
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
104
|
+
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
105
105
|
|
|
106
106
|
Parameters
|
|
107
107
|
----------
|
frameio/accounts/raw_client.py
CHANGED
|
@@ -6,8 +6,8 @@ from json.decoder import JSONDecodeError
|
|
|
6
6
|
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
|
-
from ..core.pydantic_utilities import parse_obj_as
|
|
10
9
|
from ..core.request_options import RequestOptions
|
|
10
|
+
from ..core.unchecked_base_model import construct_type
|
|
11
11
|
from ..errors.bad_request_error import BadRequestError
|
|
12
12
|
from ..errors.forbidden_error import ForbiddenError
|
|
13
13
|
from ..errors.not_found_error import NotFoundError
|
|
@@ -38,7 +38,7 @@ class RawAccountsClient:
|
|
|
38
38
|
request_options: typing.Optional[RequestOptions] = None,
|
|
39
39
|
) -> HttpResponse[AccountsResponse]:
|
|
40
40
|
"""
|
|
41
|
-
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
41
|
+
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
42
42
|
|
|
43
43
|
Parameters
|
|
44
44
|
----------
|
|
@@ -75,7 +75,7 @@ class RawAccountsClient:
|
|
|
75
75
|
if 200 <= _response.status_code < 300:
|
|
76
76
|
_data = typing.cast(
|
|
77
77
|
AccountsResponse,
|
|
78
|
-
|
|
78
|
+
construct_type(
|
|
79
79
|
type_=AccountsResponse, # type: ignore
|
|
80
80
|
object_=_response.json(),
|
|
81
81
|
),
|
|
@@ -86,7 +86,7 @@ class RawAccountsClient:
|
|
|
86
86
|
headers=dict(_response.headers),
|
|
87
87
|
body=typing.cast(
|
|
88
88
|
BadRequest,
|
|
89
|
-
|
|
89
|
+
construct_type(
|
|
90
90
|
type_=BadRequest, # type: ignore
|
|
91
91
|
object_=_response.json(),
|
|
92
92
|
),
|
|
@@ -97,7 +97,7 @@ class RawAccountsClient:
|
|
|
97
97
|
headers=dict(_response.headers),
|
|
98
98
|
body=typing.cast(
|
|
99
99
|
Unauthorized,
|
|
100
|
-
|
|
100
|
+
construct_type(
|
|
101
101
|
type_=Unauthorized, # type: ignore
|
|
102
102
|
object_=_response.json(),
|
|
103
103
|
),
|
|
@@ -108,7 +108,7 @@ class RawAccountsClient:
|
|
|
108
108
|
headers=dict(_response.headers),
|
|
109
109
|
body=typing.cast(
|
|
110
110
|
Forbidden,
|
|
111
|
-
|
|
111
|
+
construct_type(
|
|
112
112
|
type_=Forbidden, # type: ignore
|
|
113
113
|
object_=_response.json(),
|
|
114
114
|
),
|
|
@@ -119,7 +119,7 @@ class RawAccountsClient:
|
|
|
119
119
|
headers=dict(_response.headers),
|
|
120
120
|
body=typing.cast(
|
|
121
121
|
NotFound,
|
|
122
|
-
|
|
122
|
+
construct_type(
|
|
123
123
|
type_=NotFound, # type: ignore
|
|
124
124
|
object_=_response.json(),
|
|
125
125
|
),
|
|
@@ -130,7 +130,7 @@ class RawAccountsClient:
|
|
|
130
130
|
headers=dict(_response.headers),
|
|
131
131
|
body=typing.cast(
|
|
132
132
|
typing.Optional[typing.Any],
|
|
133
|
-
|
|
133
|
+
construct_type(
|
|
134
134
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
135
135
|
object_=_response.json(),
|
|
136
136
|
),
|
|
@@ -141,7 +141,7 @@ class RawAccountsClient:
|
|
|
141
141
|
headers=dict(_response.headers),
|
|
142
142
|
body=typing.cast(
|
|
143
143
|
TooManyRequests,
|
|
144
|
-
|
|
144
|
+
construct_type(
|
|
145
145
|
type_=TooManyRequests, # type: ignore
|
|
146
146
|
object_=_response.json(),
|
|
147
147
|
),
|
|
@@ -166,7 +166,7 @@ class AsyncRawAccountsClient:
|
|
|
166
166
|
request_options: typing.Optional[RequestOptions] = None,
|
|
167
167
|
) -> AsyncHttpResponse[AccountsResponse]:
|
|
168
168
|
"""
|
|
169
|
-
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
169
|
+
List accounts for the current user. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
170
170
|
|
|
171
171
|
Parameters
|
|
172
172
|
----------
|
|
@@ -203,7 +203,7 @@ class AsyncRawAccountsClient:
|
|
|
203
203
|
if 200 <= _response.status_code < 300:
|
|
204
204
|
_data = typing.cast(
|
|
205
205
|
AccountsResponse,
|
|
206
|
-
|
|
206
|
+
construct_type(
|
|
207
207
|
type_=AccountsResponse, # type: ignore
|
|
208
208
|
object_=_response.json(),
|
|
209
209
|
),
|
|
@@ -214,7 +214,7 @@ class AsyncRawAccountsClient:
|
|
|
214
214
|
headers=dict(_response.headers),
|
|
215
215
|
body=typing.cast(
|
|
216
216
|
BadRequest,
|
|
217
|
-
|
|
217
|
+
construct_type(
|
|
218
218
|
type_=BadRequest, # type: ignore
|
|
219
219
|
object_=_response.json(),
|
|
220
220
|
),
|
|
@@ -225,7 +225,7 @@ class AsyncRawAccountsClient:
|
|
|
225
225
|
headers=dict(_response.headers),
|
|
226
226
|
body=typing.cast(
|
|
227
227
|
Unauthorized,
|
|
228
|
-
|
|
228
|
+
construct_type(
|
|
229
229
|
type_=Unauthorized, # type: ignore
|
|
230
230
|
object_=_response.json(),
|
|
231
231
|
),
|
|
@@ -236,7 +236,7 @@ class AsyncRawAccountsClient:
|
|
|
236
236
|
headers=dict(_response.headers),
|
|
237
237
|
body=typing.cast(
|
|
238
238
|
Forbidden,
|
|
239
|
-
|
|
239
|
+
construct_type(
|
|
240
240
|
type_=Forbidden, # type: ignore
|
|
241
241
|
object_=_response.json(),
|
|
242
242
|
),
|
|
@@ -247,7 +247,7 @@ class AsyncRawAccountsClient:
|
|
|
247
247
|
headers=dict(_response.headers),
|
|
248
248
|
body=typing.cast(
|
|
249
249
|
NotFound,
|
|
250
|
-
|
|
250
|
+
construct_type(
|
|
251
251
|
type_=NotFound, # type: ignore
|
|
252
252
|
object_=_response.json(),
|
|
253
253
|
),
|
|
@@ -258,7 +258,7 @@ class AsyncRawAccountsClient:
|
|
|
258
258
|
headers=dict(_response.headers),
|
|
259
259
|
body=typing.cast(
|
|
260
260
|
typing.Optional[typing.Any],
|
|
261
|
-
|
|
261
|
+
construct_type(
|
|
262
262
|
type_=typing.Optional[typing.Any], # type: ignore
|
|
263
263
|
object_=_response.json(),
|
|
264
264
|
),
|
|
@@ -269,7 +269,7 @@ class AsyncRawAccountsClient:
|
|
|
269
269
|
headers=dict(_response.headers),
|
|
270
270
|
body=typing.cast(
|
|
271
271
|
TooManyRequests,
|
|
272
|
-
|
|
272
|
+
construct_type(
|
|
273
273
|
type_=TooManyRequests, # type: ignore
|
|
274
274
|
object_=_response.json(),
|
|
275
275
|
),
|
frameio/comments/client.py
CHANGED
|
@@ -44,7 +44,7 @@ class CommentsClient:
|
|
|
44
44
|
request_options: typing.Optional[RequestOptions] = None,
|
|
45
45
|
) -> CommentWithIncludesResponse:
|
|
46
46
|
"""
|
|
47
|
-
Show a single comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
47
|
+
Show a single comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
48
48
|
|
|
49
49
|
Parameters
|
|
50
50
|
----------
|
|
@@ -85,7 +85,7 @@ class CommentsClient:
|
|
|
85
85
|
self, account_id: Uuid, comment_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
86
86
|
) -> None:
|
|
87
87
|
"""
|
|
88
|
-
Delete comment from an asset. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
88
|
+
Delete comment from an asset. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
89
89
|
|
|
90
90
|
Parameters
|
|
91
91
|
----------
|
|
@@ -126,7 +126,7 @@ class CommentsClient:
|
|
|
126
126
|
request_options: typing.Optional[RequestOptions] = None,
|
|
127
127
|
) -> CommentResponse:
|
|
128
128
|
"""
|
|
129
|
-
Update comment on given asset. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
129
|
+
Update comment on given asset. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
130
130
|
|
|
131
131
|
Parameters
|
|
132
132
|
----------
|
|
@@ -178,7 +178,7 @@ class CommentsClient:
|
|
|
178
178
|
request_options: typing.Optional[RequestOptions] = None,
|
|
179
179
|
) -> CommentsWithIncludesResponse:
|
|
180
180
|
"""
|
|
181
|
-
List comments on a given asset. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
181
|
+
List comments on a given asset. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
182
182
|
|
|
183
183
|
Parameters
|
|
184
184
|
----------
|
|
@@ -246,7 +246,7 @@ class CommentsClient:
|
|
|
246
246
|
request_options: typing.Optional[RequestOptions] = None,
|
|
247
247
|
) -> CommentResponse:
|
|
248
248
|
"""
|
|
249
|
-
Create a comment on a file. <br><br>Rate Limits:
|
|
249
|
+
Create a comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
250
250
|
|
|
251
251
|
Parameters
|
|
252
252
|
----------
|
|
@@ -311,7 +311,7 @@ class AsyncCommentsClient:
|
|
|
311
311
|
request_options: typing.Optional[RequestOptions] = None,
|
|
312
312
|
) -> CommentWithIncludesResponse:
|
|
313
313
|
"""
|
|
314
|
-
Show a single comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
314
|
+
Show a single comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
315
315
|
|
|
316
316
|
Parameters
|
|
317
317
|
----------
|
|
@@ -362,7 +362,7 @@ class AsyncCommentsClient:
|
|
|
362
362
|
self, account_id: Uuid, comment_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
363
363
|
) -> None:
|
|
364
364
|
"""
|
|
365
|
-
Delete comment from an asset. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per
|
|
365
|
+
Delete comment from an asset. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
366
366
|
|
|
367
367
|
Parameters
|
|
368
368
|
----------
|
|
@@ -411,7 +411,7 @@ class AsyncCommentsClient:
|
|
|
411
411
|
request_options: typing.Optional[RequestOptions] = None,
|
|
412
412
|
) -> CommentResponse:
|
|
413
413
|
"""
|
|
414
|
-
Update comment on given asset. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per
|
|
414
|
+
Update comment on given asset. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
415
415
|
|
|
416
416
|
Parameters
|
|
417
417
|
----------
|
|
@@ -471,7 +471,7 @@ class AsyncCommentsClient:
|
|
|
471
471
|
request_options: typing.Optional[RequestOptions] = None,
|
|
472
472
|
) -> CommentsWithIncludesResponse:
|
|
473
473
|
"""
|
|
474
|
-
List comments on a given asset. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per
|
|
474
|
+
List comments on a given asset. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
475
475
|
|
|
476
476
|
Parameters
|
|
477
477
|
----------
|
|
@@ -547,7 +547,7 @@ class AsyncCommentsClient:
|
|
|
547
547
|
request_options: typing.Optional[RequestOptions] = None,
|
|
548
548
|
) -> CommentResponse:
|
|
549
549
|
"""
|
|
550
|
-
Create a comment on a file. <br><br>Rate Limits:
|
|
550
|
+
Create a comment on a file. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
551
551
|
|
|
552
552
|
Parameters
|
|
553
553
|
----------
|