frameio 0.0.28__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.
- frameio/__init__.py +1158 -0
- frameio/account_permissions/__init__.py +4 -0
- frameio/account_permissions/client.py +193 -0
- frameio/account_permissions/raw_client.py +333 -0
- frameio/accounts/__init__.py +4 -0
- frameio/accounts/client.py +162 -0
- frameio/accounts/raw_client.py +309 -0
- frameio/client.py +439 -0
- frameio/comments/__init__.py +38 -0
- frameio/comments/client.py +654 -0
- frameio/comments/raw_client.py +1316 -0
- frameio/comments/types/__init__.py +40 -0
- frameio/comments/types/comments_show_request_include.py +5 -0
- frameio/comments/types/create_comment_params_data.py +33 -0
- frameio/comments/types/update_comment_params_data.py +33 -0
- frameio/core/__init__.py +122 -0
- frameio/core/api_error.py +23 -0
- frameio/core/client_wrapper.py +95 -0
- frameio/core/custom_pagination.py +152 -0
- frameio/core/datetime_utils.py +28 -0
- frameio/core/file.py +67 -0
- frameio/core/force_multipart.py +18 -0
- frameio/core/http_client.py +663 -0
- frameio/core/http_response.py +55 -0
- frameio/core/http_sse/__init__.py +42 -0
- frameio/core/http_sse/_api.py +112 -0
- frameio/core/http_sse/_decoders.py +61 -0
- frameio/core/http_sse/_exceptions.py +7 -0
- frameio/core/http_sse/_models.py +17 -0
- frameio/core/jsonable_encoder.py +100 -0
- frameio/core/pagination.py +82 -0
- frameio/core/pydantic_utilities.py +361 -0
- frameio/core/query_encoder.py +58 -0
- frameio/core/remove_none_from_dict.py +11 -0
- frameio/core/request_options.py +35 -0
- frameio/core/serialization.py +276 -0
- frameio/core/unchecked_base_model.py +376 -0
- frameio/environment.py +7 -0
- frameio/errors/__init__.py +53 -0
- frameio/errors/bad_request_error.py +11 -0
- frameio/errors/forbidden_error.py +11 -0
- frameio/errors/not_found_error.py +11 -0
- frameio/errors/too_many_requests_error.py +11 -0
- frameio/errors/unauthorized_error.py +11 -0
- frameio/errors/unprocessable_entity_error.py +10 -0
- frameio/files/__init__.py +58 -0
- frameio/files/client.py +1171 -0
- frameio/files/raw_client.py +2517 -0
- frameio/files/types/__init__.py +56 -0
- frameio/files/types/file_copy_params_data.py +15 -0
- frameio/files/types/file_create_local_upload_params_data.py +20 -0
- frameio/files/types/file_create_params_data.py +31 -0
- frameio/files/types/file_create_remote_upload_params_data.py +20 -0
- frameio/files/types/file_move_params_data.py +15 -0
- frameio/files/types/file_update_params_data.py +15 -0
- frameio/files/types/files_copy_request_copy_comments.py +5 -0
- frameio/folders/__init__.py +39 -0
- frameio/folders/client.py +1004 -0
- frameio/folders/raw_client.py +2074 -0
- frameio/folders/types/__init__.py +42 -0
- frameio/folders/types/folder_copy_params_data.py +15 -0
- frameio/folders/types/folder_create_params_data.py +15 -0
- frameio/folders/types/folder_move_params_data.py +15 -0
- frameio/folders/types/folder_update_params_data.py +15 -0
- frameio/metadata/__init__.py +37 -0
- frameio/metadata/client.py +293 -0
- frameio/metadata/raw_client.py +509 -0
- frameio/metadata/types/__init__.py +38 -0
- frameio/metadata/types/bulk_update_metadata_params_data.py +23 -0
- frameio/metadata/types/bulk_update_metadata_params_data_values_item.py +13 -0
- frameio/metadata_fields/__init__.py +103 -0
- frameio/metadata_fields/client.py +536 -0
- frameio/metadata_fields/raw_client.py +996 -0
- frameio/metadata_fields/types/__init__.py +105 -0
- frameio/metadata_fields/types/create_field_definition_params_data.py +112 -0
- frameio/metadata_fields/types/update_field_definition_params_data.py +118 -0
- frameio/project_permissions/__init__.py +4 -0
- frameio/project_permissions/client.py +426 -0
- frameio/project_permissions/raw_client.py +824 -0
- frameio/projects/__init__.py +38 -0
- frameio/projects/client.py +604 -0
- frameio/projects/raw_client.py +1286 -0
- frameio/projects/types/__init__.py +40 -0
- frameio/projects/types/project_params_data.py +20 -0
- frameio/projects/types/project_update_params_data.py +26 -0
- frameio/projects/types/project_update_params_data_status.py +5 -0
- frameio/py.typed +0 -0
- frameio/shares/__init__.py +64 -0
- frameio/shares/client.py +1217 -0
- frameio/shares/raw_client.py +2511 -0
- frameio/shares/types/__init__.py +61 -0
- frameio/shares/types/add_asset_params_data.py +15 -0
- frameio/shares/types/add_reviewers_to_share_params_data.py +18 -0
- frameio/shares/types/add_reviewers_to_share_params_data_reviewers.py +27 -0
- frameio/shares/types/create_share_params_data.py +26 -0
- frameio/shares/types/remove_reviewer_params_data.py +13 -0
- frameio/shares/types/remove_reviewer_params_data_reviewers.py +27 -0
- frameio/shares/types/update_share_params_data.py +34 -0
- frameio/shares/types/update_share_params_data_access.py +5 -0
- frameio/types/__init__.py +983 -0
- frameio/types/account.py +70 -0
- frameio/types/account_roles_item.py +5 -0
- frameio/types/account_user_role.py +23 -0
- frameio/types/account_user_role_role.py +5 -0
- frameio/types/account_user_roles_response.py +27 -0
- frameio/types/accounts_response.py +23 -0
- frameio/types/add_asset_response.py +13 -0
- frameio/types/add_asset_response_data.py +15 -0
- frameio/types/asset_common.py +48 -0
- frameio/types/asset_common_type.py +5 -0
- frameio/types/asset_common_with_includes.py +58 -0
- frameio/types/asset_common_with_includes_type.py +5 -0
- frameio/types/asset_include.py +5 -0
- frameio/types/asset_share_params.py +39 -0
- frameio/types/asset_share_params_access.py +5 -0
- frameio/types/asset_with_includes.py +76 -0
- frameio/types/assets_with_includes_response.py +23 -0
- frameio/types/bad_request.py +13 -0
- frameio/types/bad_request_errors_item.py +15 -0
- frameio/types/bad_request_errors_item_source.py +12 -0
- frameio/types/boolean_value.py +12 -0
- frameio/types/children_type.py +3 -0
- frameio/types/comment.py +59 -0
- frameio/types/comment_include.py +5 -0
- frameio/types/comment_response.py +13 -0
- frameio/types/comment_with_includes.py +17 -0
- frameio/types/comment_with_includes_response.py +13 -0
- frameio/types/comments_with_includes_response.py +23 -0
- frameio/types/date_definition.py +49 -0
- frameio/types/date_definition_field_configuration.py +21 -0
- frameio/types/date_definition_field_configuration_display_format.py +7 -0
- frameio/types/date_definition_field_configuration_time_format.py +5 -0
- frameio/types/date_definition_field_type.py +10 -0
- frameio/types/date_definition_params.py +17 -0
- frameio/types/date_definition_params_field_configuration.py +23 -0
- frameio/types/date_definition_params_field_configuration_display_format.py +7 -0
- frameio/types/date_definition_params_field_configuration_time_format.py +7 -0
- frameio/types/date_definition_with_includes.py +13 -0
- frameio/types/date_value.py +12 -0
- frameio/types/email.py +3 -0
- frameio/types/empty_json.py +5 -0
- frameio/types/field_definition.py +167 -0
- frameio/types/field_definition_include.py +5 -0
- frameio/types/field_definition_response.py +13 -0
- frameio/types/field_definition_with_includes.py +178 -0
- frameio/types/field_definitions_with_includes_response.py +27 -0
- frameio/types/field_value_common.py +29 -0
- frameio/types/file.py +60 -0
- frameio/types/file_copy_response.py +13 -0
- frameio/types/file_remote_upload_response.py +17 -0
- frameio/types/file_response.py +13 -0
- frameio/types/file_status.py +5 -0
- frameio/types/file_upload_status.py +41 -0
- frameio/types/file_upload_status_response.py +13 -0
- frameio/types/file_with_includes.py +25 -0
- frameio/types/file_with_includes_response.py +13 -0
- frameio/types/file_with_includes_status.py +5 -0
- frameio/types/file_with_media_links_include.py +19 -0
- frameio/types/file_with_upload_urls.py +16 -0
- frameio/types/file_with_upload_urls_response.py +13 -0
- frameio/types/folder.py +15 -0
- frameio/types/folder_copy_response.py +13 -0
- frameio/types/folder_response.py +13 -0
- frameio/types/folder_with_includes.py +63 -0
- frameio/types/folder_with_includes_response.py +13 -0
- frameio/types/folders_with_includes_response.py +23 -0
- frameio/types/forbidden.py +13 -0
- frameio/types/forbidden_errors_item.py +15 -0
- frameio/types/forbidden_errors_item_source.py +12 -0
- frameio/types/include.py +5 -0
- frameio/types/include_total_count.py +3 -0
- frameio/types/integer_value.py +12 -0
- frameio/types/json_error_response.py +13 -0
- frameio/types/json_error_response_errors_item.py +15 -0
- frameio/types/json_error_response_errors_item_source.py +12 -0
- frameio/types/links.py +22 -0
- frameio/types/long_text_definition.py +49 -0
- frameio/types/long_text_definition_field_configuration.py +10 -0
- frameio/types/long_text_definition_field_type.py +10 -0
- frameio/types/long_text_definition_params.py +15 -0
- frameio/types/long_text_definition_with_includes.py +13 -0
- frameio/types/media_link_common.py +17 -0
- frameio/types/media_links_collection.py +24 -0
- frameio/types/metadata_field.py +149 -0
- frameio/types/metadata_response.py +13 -0
- frameio/types/metadata_with_definition.py +21 -0
- frameio/types/multi_select_value.py +14 -0
- frameio/types/multi_user_value.py +20 -0
- frameio/types/multi_user_value_member_options_type.py +5 -0
- frameio/types/no_content.py +3 -0
- frameio/types/not_found.py +13 -0
- frameio/types/not_found_errors_item.py +15 -0
- frameio/types/not_found_errors_item_source.py +12 -0
- frameio/types/number_definition.py +43 -0
- frameio/types/number_definition_field_configuration.py +21 -0
- frameio/types/number_definition_field_configuration_number_format.py +7 -0
- frameio/types/number_definition_params.py +17 -0
- frameio/types/number_definition_params_field_configuration.py +23 -0
- frameio/types/number_definition_params_field_configuration_number_format.py +7 -0
- frameio/types/number_definition_with_includes.py +13 -0
- frameio/types/number_value.py +12 -0
- frameio/types/original_media_link.py +16 -0
- frameio/types/profile.py +34 -0
- frameio/types/profile_response.py +17 -0
- frameio/types/project.py +66 -0
- frameio/types/project_include.py +5 -0
- frameio/types/project_response.py +17 -0
- frameio/types/project_status.py +5 -0
- frameio/types/project_with_includes.py +18 -0
- frameio/types/project_with_includes_response.py +17 -0
- frameio/types/projects_with_includes_response.py +27 -0
- frameio/types/rating_definition.py +43 -0
- frameio/types/rating_definition_field_configuration.py +22 -0
- frameio/types/rating_definition_field_configuration_style.py +5 -0
- frameio/types/rating_definition_params.py +17 -0
- frameio/types/rating_definition_params_field_configuration.py +22 -0
- frameio/types/rating_definition_params_field_configuration_style.py +5 -0
- frameio/types/rating_definition_with_includes.py +13 -0
- frameio/types/remove_asset_response.py +13 -0
- frameio/types/remove_asset_response_data.py +15 -0
- frameio/types/rendition_media_link.py +19 -0
- frameio/types/request_after_opaque_cursor.py +5 -0
- frameio/types/request_page_size.py +3 -0
- frameio/types/select_definition.py +43 -0
- frameio/types/select_definition_field_configuration.py +18 -0
- frameio/types/select_definition_field_configuration_options_item.py +22 -0
- frameio/types/select_definition_params.py +17 -0
- frameio/types/select_definition_params_field_configuration.py +20 -0
- frameio/types/select_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/select_definition_with_includes.py +13 -0
- frameio/types/select_multi_definition.py +49 -0
- frameio/types/select_multi_definition_field_configuration.py +18 -0
- frameio/types/select_multi_definition_field_configuration_options_item.py +22 -0
- frameio/types/select_multi_definition_field_type.py +10 -0
- frameio/types/select_multi_definition_params.py +17 -0
- frameio/types/select_multi_definition_params_field_configuration.py +20 -0
- frameio/types/select_multi_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/select_multi_definition_with_includes.py +13 -0
- frameio/types/select_option.py +20 -0
- frameio/types/select_value.py +14 -0
- frameio/types/share.py +66 -0
- frameio/types/share_access.py +5 -0
- frameio/types/share_response.py +13 -0
- frameio/types/share_reviewers_response.py +27 -0
- frameio/types/shares_response.py +27 -0
- frameio/types/single_user_value.py +20 -0
- frameio/types/single_user_value_member_options_type.py +5 -0
- frameio/types/text_definition.py +49 -0
- frameio/types/text_definition_field_configuration.py +10 -0
- frameio/types/text_definition_field_type.py +10 -0
- frameio/types/text_definition_params.py +15 -0
- frameio/types/text_definition_with_includes.py +13 -0
- frameio/types/text_value.py +12 -0
- frameio/types/time_stamp.py +5 -0
- frameio/types/toggle_definition.py +43 -0
- frameio/types/toggle_definition_field_configuration.py +15 -0
- frameio/types/toggle_definition_params.py +17 -0
- frameio/types/toggle_definition_params_field_configuration.py +15 -0
- frameio/types/toggle_definition_with_includes.py +13 -0
- frameio/types/too_many_requests.py +13 -0
- frameio/types/too_many_requests_errors_item.py +15 -0
- frameio/types/too_many_requests_errors_item_source.py +12 -0
- frameio/types/unauthorized.py +13 -0
- frameio/types/unauthorized_errors_item.py +15 -0
- frameio/types/unauthorized_errors_item_source.py +12 -0
- frameio/types/unprocessable_entity.py +13 -0
- frameio/types/unprocessable_entity_errors_item.py +15 -0
- frameio/types/unprocessable_entity_errors_item_source.py +12 -0
- frameio/types/update_date_definition_params.py +17 -0
- frameio/types/update_date_definition_params_field_configuration.py +25 -0
- frameio/types/update_date_definition_params_field_configuration_display_format.py +7 -0
- frameio/types/update_date_definition_params_field_configuration_time_format.py +7 -0
- frameio/types/update_long_text_definition_params.py +15 -0
- frameio/types/update_number_definition_params.py +17 -0
- frameio/types/update_number_definition_params_field_configuration.py +25 -0
- frameio/types/update_number_definition_params_field_configuration_number_format.py +7 -0
- frameio/types/update_rating_definition_params.py +17 -0
- frameio/types/update_rating_definition_params_field_configuration.py +24 -0
- frameio/types/update_rating_definition_params_field_configuration_style.py +7 -0
- frameio/types/update_select_definition_params.py +17 -0
- frameio/types/update_select_definition_params_field_configuration.py +20 -0
- frameio/types/update_select_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/update_select_multi_definition_params.py +19 -0
- frameio/types/update_select_multi_definition_params_field_configuration.py +20 -0
- frameio/types/update_select_multi_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/update_text_definition_params.py +15 -0
- frameio/types/update_toggle_definition_params.py +17 -0
- frameio/types/update_toggle_definition_params_field_configuration.py +15 -0
- frameio/types/update_user_multi_definition_params.py +17 -0
- frameio/types/update_user_multi_definition_params_field_configuration.py +25 -0
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/update_user_multi_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/update_user_roles_params.py +17 -0
- frameio/types/update_user_roles_params_data.py +13 -0
- frameio/types/update_user_roles_params_data_role.py +7 -0
- frameio/types/update_user_roles_response.py +13 -0
- frameio/types/update_user_roles_response_data.py +13 -0
- frameio/types/update_user_roles_response_data_role.py +7 -0
- frameio/types/update_user_single_definition_params.py +17 -0
- frameio/types/update_user_single_definition_params_field_configuration.py +25 -0
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/update_user_single_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/upload_url.py +20 -0
- frameio/types/user.py +44 -0
- frameio/types/user_multi_definition.py +49 -0
- frameio/types/user_multi_definition_field_configuration.py +23 -0
- frameio/types/user_multi_definition_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_multi_definition_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_multi_definition_field_configuration_member_options_type.py +7 -0
- frameio/types/user_multi_definition_field_type.py +10 -0
- frameio/types/user_multi_definition_params.py +17 -0
- frameio/types/user_multi_definition_params_field_configuration.py +23 -0
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_multi_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/user_multi_definition_with_includes.py +13 -0
- frameio/types/user_role.py +19 -0
- frameio/types/user_role_role.py +7 -0
- frameio/types/user_roles_response.py +27 -0
- frameio/types/user_single_definition.py +49 -0
- frameio/types/user_single_definition_field_configuration.py +23 -0
- frameio/types/user_single_definition_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_single_definition_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_single_definition_field_configuration_member_options_type.py +7 -0
- frameio/types/user_single_definition_field_type.py +10 -0
- frameio/types/user_single_definition_params.py +17 -0
- frameio/types/user_single_definition_params_field_configuration.py +23 -0
- frameio/types/user_single_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_single_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_single_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/user_single_definition_with_includes.py +13 -0
- frameio/types/user_value.py +18 -0
- frameio/types/user_value_type.py +5 -0
- frameio/types/uuid_.py +3 -0
- frameio/types/version_stack.py +50 -0
- frameio/types/version_stack_copy_response.py +13 -0
- frameio/types/version_stack_response.py +13 -0
- frameio/types/version_stack_with_includes.py +60 -0
- frameio/types/version_stack_with_includes_response.py +13 -0
- frameio/types/version_stacks_with_includes_response.py +19 -0
- frameio/types/webhook.py +36 -0
- frameio/types/webhook_create_response.py +17 -0
- frameio/types/webhook_create_response_data.py +15 -0
- frameio/types/webhook_events.py +5 -0
- frameio/types/webhook_response.py +13 -0
- frameio/types/webhook_with_includes.py +13 -0
- frameio/types/webhook_with_includes_response.py +13 -0
- frameio/types/webhooks_with_includes_response.py +23 -0
- frameio/types/workspace.py +40 -0
- frameio/types/workspace_include.py +5 -0
- frameio/types/workspace_params.py +17 -0
- frameio/types/workspace_params_data.py +15 -0
- frameio/types/workspace_response.py +17 -0
- frameio/types/workspace_with_includes.py +13 -0
- frameio/types/workspace_with_includes_response.py +17 -0
- frameio/types/workspaces_with_includes_response.py +27 -0
- frameio/users/__init__.py +4 -0
- frameio/users/client.py +100 -0
- frameio/users/raw_client.py +234 -0
- frameio/version.py +3 -0
- frameio/version_stacks/__init__.py +49 -0
- frameio/version_stacks/client.py +818 -0
- frameio/version_stacks/raw_client.py +1614 -0
- frameio/version_stacks/types/__init__.py +47 -0
- frameio/version_stacks/types/version_stack_copy_params_data.py +15 -0
- frameio/version_stacks/types/version_stack_create_params_data.py +19 -0
- frameio/version_stacks/types/version_stack_move_params_data.py +15 -0
- frameio/version_stacks/types/version_stacks_show_request_include.py +19 -0
- frameio/webhooks/__init__.py +34 -0
- frameio/webhooks/client.py +793 -0
- frameio/webhooks/raw_client.py +1347 -0
- frameio/webhooks/types/__init__.py +38 -0
- frameio/webhooks/types/webhook_create_params_data.py +18 -0
- frameio/webhooks/types/webhook_update_params_data.py +23 -0
- frameio/workspace_permissions/__init__.py +4 -0
- frameio/workspace_permissions/client.py +430 -0
- frameio/workspace_permissions/raw_client.py +824 -0
- frameio/workspaces/__init__.py +4 -0
- frameio/workspaces/client.py +563 -0
- frameio/workspaces/raw_client.py +1259 -0
- frameio-0.0.28.dist-info/METADATA +259 -0
- frameio-0.0.28.dist-info/RECORD +385 -0
- frameio-0.0.28.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ..core.request_options import RequestOptions
|
|
7
|
+
from ..types.field_definition_response import FieldDefinitionResponse
|
|
8
|
+
from ..types.field_definitions_with_includes_response import FieldDefinitionsWithIncludesResponse
|
|
9
|
+
from ..types.include_total_count import IncludeTotalCount
|
|
10
|
+
from ..types.request_after_opaque_cursor import RequestAfterOpaqueCursor
|
|
11
|
+
from ..types.request_page_size import RequestPageSize
|
|
12
|
+
from ..types.uuid_ import Uuid
|
|
13
|
+
from .raw_client import AsyncRawMetadataFieldsClient, RawMetadataFieldsClient
|
|
14
|
+
from .types.create_field_definition_params_data import CreateFieldDefinitionParamsData
|
|
15
|
+
from .types.update_field_definition_params_data import UpdateFieldDefinitionParamsData
|
|
16
|
+
|
|
17
|
+
# this is used as the default value for optional parameters
|
|
18
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class MetadataFieldsClient:
|
|
22
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
23
|
+
self._raw_client = RawMetadataFieldsClient(client_wrapper=client_wrapper)
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def with_raw_response(self) -> RawMetadataFieldsClient:
|
|
27
|
+
"""
|
|
28
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
29
|
+
|
|
30
|
+
Returns
|
|
31
|
+
-------
|
|
32
|
+
RawMetadataFieldsClient
|
|
33
|
+
"""
|
|
34
|
+
return self._raw_client
|
|
35
|
+
|
|
36
|
+
def metadata_field_definitions_delete(
|
|
37
|
+
self, account_id: Uuid, field_definition_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
38
|
+
) -> None:
|
|
39
|
+
"""
|
|
40
|
+
Delete account level custom field definitions. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
41
|
+
|
|
42
|
+
Parameters
|
|
43
|
+
----------
|
|
44
|
+
account_id : Uuid
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
field_definition_id : Uuid
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
request_options : typing.Optional[RequestOptions]
|
|
51
|
+
Request-specific configuration.
|
|
52
|
+
|
|
53
|
+
Returns
|
|
54
|
+
-------
|
|
55
|
+
None
|
|
56
|
+
|
|
57
|
+
Examples
|
|
58
|
+
--------
|
|
59
|
+
from frameio import Frameio
|
|
60
|
+
|
|
61
|
+
client = Frameio(
|
|
62
|
+
token="YOUR_TOKEN",
|
|
63
|
+
)
|
|
64
|
+
client.metadata_fields.metadata_field_definitions_delete(
|
|
65
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
66
|
+
field_definition_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
67
|
+
)
|
|
68
|
+
"""
|
|
69
|
+
_response = self._raw_client.metadata_field_definitions_delete(
|
|
70
|
+
account_id, field_definition_id, request_options=request_options
|
|
71
|
+
)
|
|
72
|
+
return _response.data
|
|
73
|
+
|
|
74
|
+
def metadata_field_definitions_update(
|
|
75
|
+
self,
|
|
76
|
+
account_id: Uuid,
|
|
77
|
+
field_definition_id: Uuid,
|
|
78
|
+
*,
|
|
79
|
+
data: typing.Optional[UpdateFieldDefinitionParamsData] = OMIT,
|
|
80
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
81
|
+
) -> FieldDefinitionResponse:
|
|
82
|
+
"""
|
|
83
|
+
Update account level custom field definitions. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
84
|
+
|
|
85
|
+
Parameters
|
|
86
|
+
----------
|
|
87
|
+
account_id : Uuid
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
field_definition_id : Uuid
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
data : typing.Optional[UpdateFieldDefinitionParamsData]
|
|
94
|
+
|
|
95
|
+
request_options : typing.Optional[RequestOptions]
|
|
96
|
+
Request-specific configuration.
|
|
97
|
+
|
|
98
|
+
Returns
|
|
99
|
+
-------
|
|
100
|
+
FieldDefinitionResponse
|
|
101
|
+
OK
|
|
102
|
+
|
|
103
|
+
Examples
|
|
104
|
+
--------
|
|
105
|
+
from frameio import (
|
|
106
|
+
Frameio,
|
|
107
|
+
UpdateSelectDefinitionParamsFieldConfiguration,
|
|
108
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem,
|
|
109
|
+
)
|
|
110
|
+
from frameio.metadata_fields import UpdateFieldDefinitionParamsData_Select
|
|
111
|
+
|
|
112
|
+
client = Frameio(
|
|
113
|
+
token="YOUR_TOKEN",
|
|
114
|
+
)
|
|
115
|
+
client.metadata_fields.metadata_field_definitions_update(
|
|
116
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
117
|
+
field_definition_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
118
|
+
data=UpdateFieldDefinitionParamsData_Select(
|
|
119
|
+
field_configuration=UpdateSelectDefinitionParamsFieldConfiguration(
|
|
120
|
+
enable_add_new=False,
|
|
121
|
+
options=[
|
|
122
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
123
|
+
display_name="Option 1",
|
|
124
|
+
),
|
|
125
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
126
|
+
display_name="Option 2",
|
|
127
|
+
),
|
|
128
|
+
],
|
|
129
|
+
),
|
|
130
|
+
name="Updated-Field-Name",
|
|
131
|
+
),
|
|
132
|
+
)
|
|
133
|
+
"""
|
|
134
|
+
_response = self._raw_client.metadata_field_definitions_update(
|
|
135
|
+
account_id, field_definition_id, data=data, request_options=request_options
|
|
136
|
+
)
|
|
137
|
+
return _response.data
|
|
138
|
+
|
|
139
|
+
def metadata_field_definitions_index(
|
|
140
|
+
self,
|
|
141
|
+
account_id: Uuid,
|
|
142
|
+
*,
|
|
143
|
+
include: typing.Optional[typing.Literal["creator"]] = None,
|
|
144
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
145
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
146
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
147
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
148
|
+
) -> FieldDefinitionsWithIncludesResponse:
|
|
149
|
+
"""
|
|
150
|
+
List account level field definitions. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
151
|
+
|
|
152
|
+
Parameters
|
|
153
|
+
----------
|
|
154
|
+
account_id : Uuid
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
include : typing.Optional[typing.Literal["creator"]]
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
161
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
162
|
+
<br/>
|
|
163
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
164
|
+
|
|
165
|
+
page_size : typing.Optional[RequestPageSize]
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
request_options : typing.Optional[RequestOptions]
|
|
172
|
+
Request-specific configuration.
|
|
173
|
+
|
|
174
|
+
Returns
|
|
175
|
+
-------
|
|
176
|
+
FieldDefinitionsWithIncludesResponse
|
|
177
|
+
OK
|
|
178
|
+
|
|
179
|
+
Examples
|
|
180
|
+
--------
|
|
181
|
+
from frameio import Frameio
|
|
182
|
+
|
|
183
|
+
client = Frameio(
|
|
184
|
+
token="YOUR_TOKEN",
|
|
185
|
+
)
|
|
186
|
+
client.metadata_fields.metadata_field_definitions_index(
|
|
187
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
188
|
+
after="<opaque_cursor>",
|
|
189
|
+
page_size=10,
|
|
190
|
+
include_total_count=False,
|
|
191
|
+
)
|
|
192
|
+
"""
|
|
193
|
+
_response = self._raw_client.metadata_field_definitions_index(
|
|
194
|
+
account_id,
|
|
195
|
+
include=include,
|
|
196
|
+
after=after,
|
|
197
|
+
page_size=page_size,
|
|
198
|
+
include_total_count=include_total_count,
|
|
199
|
+
request_options=request_options,
|
|
200
|
+
)
|
|
201
|
+
return _response.data
|
|
202
|
+
|
|
203
|
+
def metadata_field_definitions_create(
|
|
204
|
+
self,
|
|
205
|
+
account_id: Uuid,
|
|
206
|
+
*,
|
|
207
|
+
data: typing.Optional[CreateFieldDefinitionParamsData] = OMIT,
|
|
208
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
209
|
+
) -> FieldDefinitionResponse:
|
|
210
|
+
"""
|
|
211
|
+
Create account level field definitions. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
212
|
+
|
|
213
|
+
Parameters
|
|
214
|
+
----------
|
|
215
|
+
account_id : Uuid
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
data : typing.Optional[CreateFieldDefinitionParamsData]
|
|
219
|
+
|
|
220
|
+
request_options : typing.Optional[RequestOptions]
|
|
221
|
+
Request-specific configuration.
|
|
222
|
+
|
|
223
|
+
Returns
|
|
224
|
+
-------
|
|
225
|
+
FieldDefinitionResponse
|
|
226
|
+
Created
|
|
227
|
+
|
|
228
|
+
Examples
|
|
229
|
+
--------
|
|
230
|
+
from frameio import (
|
|
231
|
+
Frameio,
|
|
232
|
+
SelectDefinitionParamsFieldConfiguration,
|
|
233
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem,
|
|
234
|
+
)
|
|
235
|
+
from frameio.metadata_fields import CreateFieldDefinitionParamsData_Select
|
|
236
|
+
|
|
237
|
+
client = Frameio(
|
|
238
|
+
token="YOUR_TOKEN",
|
|
239
|
+
)
|
|
240
|
+
client.metadata_fields.metadata_field_definitions_create(
|
|
241
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
242
|
+
data=CreateFieldDefinitionParamsData_Select(
|
|
243
|
+
field_configuration=SelectDefinitionParamsFieldConfiguration(
|
|
244
|
+
enable_add_new=False,
|
|
245
|
+
options=[
|
|
246
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
247
|
+
display_name="Option 1",
|
|
248
|
+
),
|
|
249
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
250
|
+
display_name="Option 2",
|
|
251
|
+
),
|
|
252
|
+
],
|
|
253
|
+
),
|
|
254
|
+
name="Fields definition name",
|
|
255
|
+
),
|
|
256
|
+
)
|
|
257
|
+
"""
|
|
258
|
+
_response = self._raw_client.metadata_field_definitions_create(
|
|
259
|
+
account_id, data=data, request_options=request_options
|
|
260
|
+
)
|
|
261
|
+
return _response.data
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
class AsyncMetadataFieldsClient:
|
|
265
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
266
|
+
self._raw_client = AsyncRawMetadataFieldsClient(client_wrapper=client_wrapper)
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def with_raw_response(self) -> AsyncRawMetadataFieldsClient:
|
|
270
|
+
"""
|
|
271
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
272
|
+
|
|
273
|
+
Returns
|
|
274
|
+
-------
|
|
275
|
+
AsyncRawMetadataFieldsClient
|
|
276
|
+
"""
|
|
277
|
+
return self._raw_client
|
|
278
|
+
|
|
279
|
+
async def metadata_field_definitions_delete(
|
|
280
|
+
self, account_id: Uuid, field_definition_id: Uuid, *, request_options: typing.Optional[RequestOptions] = None
|
|
281
|
+
) -> None:
|
|
282
|
+
"""
|
|
283
|
+
Delete account level custom field definitions. <br>Rate Limits: 60 calls per 1.00 minute(s) per account_user
|
|
284
|
+
|
|
285
|
+
Parameters
|
|
286
|
+
----------
|
|
287
|
+
account_id : Uuid
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
field_definition_id : Uuid
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
request_options : typing.Optional[RequestOptions]
|
|
294
|
+
Request-specific configuration.
|
|
295
|
+
|
|
296
|
+
Returns
|
|
297
|
+
-------
|
|
298
|
+
None
|
|
299
|
+
|
|
300
|
+
Examples
|
|
301
|
+
--------
|
|
302
|
+
import asyncio
|
|
303
|
+
|
|
304
|
+
from frameio import AsyncFrameio
|
|
305
|
+
|
|
306
|
+
client = AsyncFrameio(
|
|
307
|
+
token="YOUR_TOKEN",
|
|
308
|
+
)
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
async def main() -> None:
|
|
312
|
+
await client.metadata_fields.metadata_field_definitions_delete(
|
|
313
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
314
|
+
field_definition_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
asyncio.run(main())
|
|
319
|
+
"""
|
|
320
|
+
_response = await self._raw_client.metadata_field_definitions_delete(
|
|
321
|
+
account_id, field_definition_id, request_options=request_options
|
|
322
|
+
)
|
|
323
|
+
return _response.data
|
|
324
|
+
|
|
325
|
+
async def metadata_field_definitions_update(
|
|
326
|
+
self,
|
|
327
|
+
account_id: Uuid,
|
|
328
|
+
field_definition_id: Uuid,
|
|
329
|
+
*,
|
|
330
|
+
data: typing.Optional[UpdateFieldDefinitionParamsData] = OMIT,
|
|
331
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
332
|
+
) -> FieldDefinitionResponse:
|
|
333
|
+
"""
|
|
334
|
+
Update account level custom field definitions. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
335
|
+
|
|
336
|
+
Parameters
|
|
337
|
+
----------
|
|
338
|
+
account_id : Uuid
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
field_definition_id : Uuid
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
data : typing.Optional[UpdateFieldDefinitionParamsData]
|
|
345
|
+
|
|
346
|
+
request_options : typing.Optional[RequestOptions]
|
|
347
|
+
Request-specific configuration.
|
|
348
|
+
|
|
349
|
+
Returns
|
|
350
|
+
-------
|
|
351
|
+
FieldDefinitionResponse
|
|
352
|
+
OK
|
|
353
|
+
|
|
354
|
+
Examples
|
|
355
|
+
--------
|
|
356
|
+
import asyncio
|
|
357
|
+
|
|
358
|
+
from frameio import (
|
|
359
|
+
AsyncFrameio,
|
|
360
|
+
UpdateSelectDefinitionParamsFieldConfiguration,
|
|
361
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem,
|
|
362
|
+
)
|
|
363
|
+
from frameio.metadata_fields import UpdateFieldDefinitionParamsData_Select
|
|
364
|
+
|
|
365
|
+
client = AsyncFrameio(
|
|
366
|
+
token="YOUR_TOKEN",
|
|
367
|
+
)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
async def main() -> None:
|
|
371
|
+
await client.metadata_fields.metadata_field_definitions_update(
|
|
372
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
373
|
+
field_definition_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
374
|
+
data=UpdateFieldDefinitionParamsData_Select(
|
|
375
|
+
field_configuration=UpdateSelectDefinitionParamsFieldConfiguration(
|
|
376
|
+
enable_add_new=False,
|
|
377
|
+
options=[
|
|
378
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
379
|
+
display_name="Option 1",
|
|
380
|
+
),
|
|
381
|
+
UpdateSelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
382
|
+
display_name="Option 2",
|
|
383
|
+
),
|
|
384
|
+
],
|
|
385
|
+
),
|
|
386
|
+
name="Updated-Field-Name",
|
|
387
|
+
),
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
asyncio.run(main())
|
|
392
|
+
"""
|
|
393
|
+
_response = await self._raw_client.metadata_field_definitions_update(
|
|
394
|
+
account_id, field_definition_id, data=data, request_options=request_options
|
|
395
|
+
)
|
|
396
|
+
return _response.data
|
|
397
|
+
|
|
398
|
+
async def metadata_field_definitions_index(
|
|
399
|
+
self,
|
|
400
|
+
account_id: Uuid,
|
|
401
|
+
*,
|
|
402
|
+
include: typing.Optional[typing.Literal["creator"]] = None,
|
|
403
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
404
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
405
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
406
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
407
|
+
) -> FieldDefinitionsWithIncludesResponse:
|
|
408
|
+
"""
|
|
409
|
+
List account level field definitions. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
410
|
+
|
|
411
|
+
Parameters
|
|
412
|
+
----------
|
|
413
|
+
account_id : Uuid
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
include : typing.Optional[typing.Literal["creator"]]
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
420
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
421
|
+
<br/>
|
|
422
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
423
|
+
|
|
424
|
+
page_size : typing.Optional[RequestPageSize]
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
request_options : typing.Optional[RequestOptions]
|
|
431
|
+
Request-specific configuration.
|
|
432
|
+
|
|
433
|
+
Returns
|
|
434
|
+
-------
|
|
435
|
+
FieldDefinitionsWithIncludesResponse
|
|
436
|
+
OK
|
|
437
|
+
|
|
438
|
+
Examples
|
|
439
|
+
--------
|
|
440
|
+
import asyncio
|
|
441
|
+
|
|
442
|
+
from frameio import AsyncFrameio
|
|
443
|
+
|
|
444
|
+
client = AsyncFrameio(
|
|
445
|
+
token="YOUR_TOKEN",
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
async def main() -> None:
|
|
450
|
+
await client.metadata_fields.metadata_field_definitions_index(
|
|
451
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
452
|
+
after="<opaque_cursor>",
|
|
453
|
+
page_size=10,
|
|
454
|
+
include_total_count=False,
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
asyncio.run(main())
|
|
459
|
+
"""
|
|
460
|
+
_response = await self._raw_client.metadata_field_definitions_index(
|
|
461
|
+
account_id,
|
|
462
|
+
include=include,
|
|
463
|
+
after=after,
|
|
464
|
+
page_size=page_size,
|
|
465
|
+
include_total_count=include_total_count,
|
|
466
|
+
request_options=request_options,
|
|
467
|
+
)
|
|
468
|
+
return _response.data
|
|
469
|
+
|
|
470
|
+
async def metadata_field_definitions_create(
|
|
471
|
+
self,
|
|
472
|
+
account_id: Uuid,
|
|
473
|
+
*,
|
|
474
|
+
data: typing.Optional[CreateFieldDefinitionParamsData] = OMIT,
|
|
475
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
476
|
+
) -> FieldDefinitionResponse:
|
|
477
|
+
"""
|
|
478
|
+
Create account level field definitions. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
479
|
+
|
|
480
|
+
Parameters
|
|
481
|
+
----------
|
|
482
|
+
account_id : Uuid
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
data : typing.Optional[CreateFieldDefinitionParamsData]
|
|
486
|
+
|
|
487
|
+
request_options : typing.Optional[RequestOptions]
|
|
488
|
+
Request-specific configuration.
|
|
489
|
+
|
|
490
|
+
Returns
|
|
491
|
+
-------
|
|
492
|
+
FieldDefinitionResponse
|
|
493
|
+
Created
|
|
494
|
+
|
|
495
|
+
Examples
|
|
496
|
+
--------
|
|
497
|
+
import asyncio
|
|
498
|
+
|
|
499
|
+
from frameio import (
|
|
500
|
+
AsyncFrameio,
|
|
501
|
+
SelectDefinitionParamsFieldConfiguration,
|
|
502
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem,
|
|
503
|
+
)
|
|
504
|
+
from frameio.metadata_fields import CreateFieldDefinitionParamsData_Select
|
|
505
|
+
|
|
506
|
+
client = AsyncFrameio(
|
|
507
|
+
token="YOUR_TOKEN",
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
async def main() -> None:
|
|
512
|
+
await client.metadata_fields.metadata_field_definitions_create(
|
|
513
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
514
|
+
data=CreateFieldDefinitionParamsData_Select(
|
|
515
|
+
field_configuration=SelectDefinitionParamsFieldConfiguration(
|
|
516
|
+
enable_add_new=False,
|
|
517
|
+
options=[
|
|
518
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
519
|
+
display_name="Option 1",
|
|
520
|
+
),
|
|
521
|
+
SelectDefinitionParamsFieldConfigurationOptionsItem(
|
|
522
|
+
display_name="Option 2",
|
|
523
|
+
),
|
|
524
|
+
],
|
|
525
|
+
),
|
|
526
|
+
name="Fields definition name",
|
|
527
|
+
),
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
asyncio.run(main())
|
|
532
|
+
"""
|
|
533
|
+
_response = await self._raw_client.metadata_field_definitions_create(
|
|
534
|
+
account_id, data=data, request_options=request_options
|
|
535
|
+
)
|
|
536
|
+
return _response.data
|