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,818 @@
|
|
|
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.assets_with_includes_response import AssetsWithIncludesResponse
|
|
8
|
+
from ..types.file_with_media_links_include import FileWithMediaLinksInclude
|
|
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 ..types.version_stack_copy_response import VersionStackCopyResponse
|
|
14
|
+
from ..types.version_stack_response import VersionStackResponse
|
|
15
|
+
from ..types.version_stack_with_includes_response import VersionStackWithIncludesResponse
|
|
16
|
+
from ..types.version_stacks_with_includes_response import VersionStacksWithIncludesResponse
|
|
17
|
+
from .raw_client import AsyncRawVersionStacksClient, RawVersionStacksClient
|
|
18
|
+
from .types.version_stack_copy_params_data import VersionStackCopyParamsData
|
|
19
|
+
from .types.version_stack_create_params_data import VersionStackCreateParamsData
|
|
20
|
+
from .types.version_stack_move_params_data import VersionStackMoveParamsData
|
|
21
|
+
from .types.version_stacks_show_request_include import VersionStacksShowRequestInclude
|
|
22
|
+
|
|
23
|
+
# this is used as the default value for optional parameters
|
|
24
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class VersionStacksClient:
|
|
28
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
29
|
+
self._raw_client = RawVersionStacksClient(client_wrapper=client_wrapper)
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def with_raw_response(self) -> RawVersionStacksClient:
|
|
33
|
+
"""
|
|
34
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
35
|
+
|
|
36
|
+
Returns
|
|
37
|
+
-------
|
|
38
|
+
RawVersionStacksClient
|
|
39
|
+
"""
|
|
40
|
+
return self._raw_client
|
|
41
|
+
|
|
42
|
+
def index(
|
|
43
|
+
self,
|
|
44
|
+
account_id: Uuid,
|
|
45
|
+
version_stack_id: Uuid,
|
|
46
|
+
*,
|
|
47
|
+
include: typing.Optional[FileWithMediaLinksInclude] = None,
|
|
48
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
49
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
50
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
51
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
52
|
+
) -> AssetsWithIncludesResponse:
|
|
53
|
+
"""
|
|
54
|
+
List the children (files) in a given version stack.
|
|
55
|
+
<br>
|
|
56
|
+
Use the `include` query parameter to selectively include additional properties in the response.
|
|
57
|
+
<br>
|
|
58
|
+
Note: if you include `media_links.original` and the user does not have permission to download files
|
|
59
|
+
in the corresponding project, then this endpoint will respond with a `403 Forbidden` error.
|
|
60
|
+
If the content is inaccessible because watermarking is required for this user and isn't supported by
|
|
61
|
+
the requested media_links, then the request will succeed but the unsupported media links will be set to null.
|
|
62
|
+
Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
63
|
+
`media_links.video_h264_180` on a static image file) or transoding process hasn't finished
|
|
64
|
+
(i.e. the file's `status` is "uploaded" rather than "transcoded"), then the a media link will also be set to
|
|
65
|
+
null in the response payload. In short, the client must handle null media links gracefully.
|
|
66
|
+
<br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
67
|
+
|
|
68
|
+
Parameters
|
|
69
|
+
----------
|
|
70
|
+
account_id : Uuid
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
version_stack_id : Uuid
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
include : typing.Optional[FileWithMediaLinksInclude]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
80
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
81
|
+
<br/>
|
|
82
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
83
|
+
|
|
84
|
+
page_size : typing.Optional[RequestPageSize]
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
request_options : typing.Optional[RequestOptions]
|
|
91
|
+
Request-specific configuration.
|
|
92
|
+
|
|
93
|
+
Returns
|
|
94
|
+
-------
|
|
95
|
+
AssetsWithIncludesResponse
|
|
96
|
+
OK
|
|
97
|
+
|
|
98
|
+
Examples
|
|
99
|
+
--------
|
|
100
|
+
from frameio import Frameio
|
|
101
|
+
|
|
102
|
+
client = Frameio(
|
|
103
|
+
token="YOUR_TOKEN",
|
|
104
|
+
)
|
|
105
|
+
client.version_stacks.index(
|
|
106
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
107
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
108
|
+
include="media_links",
|
|
109
|
+
after="<opaque_cursor>",
|
|
110
|
+
page_size=10,
|
|
111
|
+
include_total_count=False,
|
|
112
|
+
)
|
|
113
|
+
"""
|
|
114
|
+
_response = self._raw_client.index(
|
|
115
|
+
account_id,
|
|
116
|
+
version_stack_id,
|
|
117
|
+
include=include,
|
|
118
|
+
after=after,
|
|
119
|
+
page_size=page_size,
|
|
120
|
+
include_total_count=include_total_count,
|
|
121
|
+
request_options=request_options,
|
|
122
|
+
)
|
|
123
|
+
return _response.data
|
|
124
|
+
|
|
125
|
+
def show(
|
|
126
|
+
self,
|
|
127
|
+
account_id: Uuid,
|
|
128
|
+
version_stack_id: Uuid,
|
|
129
|
+
*,
|
|
130
|
+
include: typing.Optional[VersionStacksShowRequestInclude] = None,
|
|
131
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
132
|
+
) -> VersionStackWithIncludesResponse:
|
|
133
|
+
"""
|
|
134
|
+
Show version stack details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
135
|
+
|
|
136
|
+
Parameters
|
|
137
|
+
----------
|
|
138
|
+
account_id : Uuid
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
version_stack_id : Uuid
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
include : typing.Optional[VersionStacksShowRequestInclude]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
request_options : typing.Optional[RequestOptions]
|
|
148
|
+
Request-specific configuration.
|
|
149
|
+
|
|
150
|
+
Returns
|
|
151
|
+
-------
|
|
152
|
+
VersionStackWithIncludesResponse
|
|
153
|
+
OK
|
|
154
|
+
|
|
155
|
+
Examples
|
|
156
|
+
--------
|
|
157
|
+
from frameio import Frameio
|
|
158
|
+
|
|
159
|
+
client = Frameio(
|
|
160
|
+
token="YOUR_TOKEN",
|
|
161
|
+
)
|
|
162
|
+
client.version_stacks.show(
|
|
163
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
164
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
165
|
+
include="media_links",
|
|
166
|
+
)
|
|
167
|
+
"""
|
|
168
|
+
_response = self._raw_client.show(
|
|
169
|
+
account_id, version_stack_id, include=include, request_options=request_options
|
|
170
|
+
)
|
|
171
|
+
return _response.data
|
|
172
|
+
|
|
173
|
+
def copy(
|
|
174
|
+
self,
|
|
175
|
+
account_id: Uuid,
|
|
176
|
+
version_stack_id: Uuid,
|
|
177
|
+
*,
|
|
178
|
+
copy_metadata: typing.Optional[bool] = None,
|
|
179
|
+
data: typing.Optional[VersionStackCopyParamsData] = OMIT,
|
|
180
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
181
|
+
) -> VersionStackCopyResponse:
|
|
182
|
+
"""
|
|
183
|
+
Copy version stack. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
184
|
+
|
|
185
|
+
Parameters
|
|
186
|
+
----------
|
|
187
|
+
account_id : Uuid
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
version_stack_id : Uuid
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
copy_metadata : typing.Optional[bool]
|
|
194
|
+
Whether to copy metadata values along with the version stack
|
|
195
|
+
|
|
196
|
+
data : typing.Optional[VersionStackCopyParamsData]
|
|
197
|
+
|
|
198
|
+
request_options : typing.Optional[RequestOptions]
|
|
199
|
+
Request-specific configuration.
|
|
200
|
+
|
|
201
|
+
Returns
|
|
202
|
+
-------
|
|
203
|
+
VersionStackCopyResponse
|
|
204
|
+
OK
|
|
205
|
+
|
|
206
|
+
Examples
|
|
207
|
+
--------
|
|
208
|
+
from frameio import Frameio
|
|
209
|
+
from frameio.version_stacks import VersionStackCopyParamsData
|
|
210
|
+
|
|
211
|
+
client = Frameio(
|
|
212
|
+
token="YOUR_TOKEN",
|
|
213
|
+
)
|
|
214
|
+
client.version_stacks.copy(
|
|
215
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
216
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
217
|
+
copy_metadata=True,
|
|
218
|
+
data=VersionStackCopyParamsData(
|
|
219
|
+
parent_id="2e426fe0-f965-4594-8b2b-b4dff1dc00ec",
|
|
220
|
+
),
|
|
221
|
+
)
|
|
222
|
+
"""
|
|
223
|
+
_response = self._raw_client.copy(
|
|
224
|
+
account_id, version_stack_id, copy_metadata=copy_metadata, data=data, request_options=request_options
|
|
225
|
+
)
|
|
226
|
+
return _response.data
|
|
227
|
+
|
|
228
|
+
def list(
|
|
229
|
+
self,
|
|
230
|
+
account_id: Uuid,
|
|
231
|
+
folder_id: Uuid,
|
|
232
|
+
*,
|
|
233
|
+
include: typing.Optional[FileWithMediaLinksInclude] = None,
|
|
234
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
235
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
236
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
237
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
238
|
+
) -> VersionStacksWithIncludesResponse:
|
|
239
|
+
"""
|
|
240
|
+
List version stacks in a given folder. <br>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
241
|
+
|
|
242
|
+
Parameters
|
|
243
|
+
----------
|
|
244
|
+
account_id : Uuid
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
folder_id : Uuid
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
include : typing.Optional[FileWithMediaLinksInclude]
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
254
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
255
|
+
<br/>
|
|
256
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
257
|
+
|
|
258
|
+
page_size : typing.Optional[RequestPageSize]
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
request_options : typing.Optional[RequestOptions]
|
|
265
|
+
Request-specific configuration.
|
|
266
|
+
|
|
267
|
+
Returns
|
|
268
|
+
-------
|
|
269
|
+
VersionStacksWithIncludesResponse
|
|
270
|
+
OK
|
|
271
|
+
|
|
272
|
+
Examples
|
|
273
|
+
--------
|
|
274
|
+
from frameio import Frameio
|
|
275
|
+
|
|
276
|
+
client = Frameio(
|
|
277
|
+
token="YOUR_TOKEN",
|
|
278
|
+
)
|
|
279
|
+
client.version_stacks.list(
|
|
280
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
281
|
+
folder_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
282
|
+
include="media_links",
|
|
283
|
+
after="<opaque_cursor>",
|
|
284
|
+
page_size=10,
|
|
285
|
+
include_total_count=False,
|
|
286
|
+
)
|
|
287
|
+
"""
|
|
288
|
+
_response = self._raw_client.list(
|
|
289
|
+
account_id,
|
|
290
|
+
folder_id,
|
|
291
|
+
include=include,
|
|
292
|
+
after=after,
|
|
293
|
+
page_size=page_size,
|
|
294
|
+
include_total_count=include_total_count,
|
|
295
|
+
request_options=request_options,
|
|
296
|
+
)
|
|
297
|
+
return _response.data
|
|
298
|
+
|
|
299
|
+
def create(
|
|
300
|
+
self,
|
|
301
|
+
account_id: Uuid,
|
|
302
|
+
folder_id: Uuid,
|
|
303
|
+
*,
|
|
304
|
+
data: VersionStackCreateParamsData,
|
|
305
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
306
|
+
) -> VersionStackWithIncludesResponse:
|
|
307
|
+
"""
|
|
308
|
+
Create a new Version Stack under the parent folder. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
309
|
+
|
|
310
|
+
Parameters
|
|
311
|
+
----------
|
|
312
|
+
account_id : Uuid
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
folder_id : Uuid
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
data : VersionStackCreateParamsData
|
|
319
|
+
|
|
320
|
+
request_options : typing.Optional[RequestOptions]
|
|
321
|
+
Request-specific configuration.
|
|
322
|
+
|
|
323
|
+
Returns
|
|
324
|
+
-------
|
|
325
|
+
VersionStackWithIncludesResponse
|
|
326
|
+
Created
|
|
327
|
+
|
|
328
|
+
Examples
|
|
329
|
+
--------
|
|
330
|
+
from frameio import Frameio
|
|
331
|
+
from frameio.version_stacks import VersionStackCreateParamsData
|
|
332
|
+
|
|
333
|
+
client = Frameio(
|
|
334
|
+
token="YOUR_TOKEN",
|
|
335
|
+
)
|
|
336
|
+
client.version_stacks.create(
|
|
337
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
338
|
+
folder_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
339
|
+
data=VersionStackCreateParamsData(
|
|
340
|
+
file_ids=[
|
|
341
|
+
"c98452b0-e895-49d2-bdbc-499440f1dacb",
|
|
342
|
+
"ad05b4a6-788b-4ec0-b5ac-877f82172060",
|
|
343
|
+
],
|
|
344
|
+
),
|
|
345
|
+
)
|
|
346
|
+
"""
|
|
347
|
+
_response = self._raw_client.create(account_id, folder_id, data=data, request_options=request_options)
|
|
348
|
+
return _response.data
|
|
349
|
+
|
|
350
|
+
def move(
|
|
351
|
+
self,
|
|
352
|
+
account_id: Uuid,
|
|
353
|
+
version_stack_id: Uuid,
|
|
354
|
+
*,
|
|
355
|
+
data: VersionStackMoveParamsData,
|
|
356
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
357
|
+
) -> VersionStackResponse:
|
|
358
|
+
"""
|
|
359
|
+
Move version stack to a folder. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
360
|
+
|
|
361
|
+
Parameters
|
|
362
|
+
----------
|
|
363
|
+
account_id : Uuid
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
version_stack_id : Uuid
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
data : VersionStackMoveParamsData
|
|
370
|
+
|
|
371
|
+
request_options : typing.Optional[RequestOptions]
|
|
372
|
+
Request-specific configuration.
|
|
373
|
+
|
|
374
|
+
Returns
|
|
375
|
+
-------
|
|
376
|
+
VersionStackResponse
|
|
377
|
+
OK
|
|
378
|
+
|
|
379
|
+
Examples
|
|
380
|
+
--------
|
|
381
|
+
from frameio import Frameio
|
|
382
|
+
from frameio.version_stacks import VersionStackMoveParamsData
|
|
383
|
+
|
|
384
|
+
client = Frameio(
|
|
385
|
+
token="YOUR_TOKEN",
|
|
386
|
+
)
|
|
387
|
+
client.version_stacks.move(
|
|
388
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
389
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
390
|
+
data=VersionStackMoveParamsData(
|
|
391
|
+
parent_id="2e426fe0-f965-4594-8b2b-b4dff1dc00ec",
|
|
392
|
+
),
|
|
393
|
+
)
|
|
394
|
+
"""
|
|
395
|
+
_response = self._raw_client.move(account_id, version_stack_id, data=data, request_options=request_options)
|
|
396
|
+
return _response.data
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
class AsyncVersionStacksClient:
|
|
400
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
401
|
+
self._raw_client = AsyncRawVersionStacksClient(client_wrapper=client_wrapper)
|
|
402
|
+
|
|
403
|
+
@property
|
|
404
|
+
def with_raw_response(self) -> AsyncRawVersionStacksClient:
|
|
405
|
+
"""
|
|
406
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
407
|
+
|
|
408
|
+
Returns
|
|
409
|
+
-------
|
|
410
|
+
AsyncRawVersionStacksClient
|
|
411
|
+
"""
|
|
412
|
+
return self._raw_client
|
|
413
|
+
|
|
414
|
+
async def index(
|
|
415
|
+
self,
|
|
416
|
+
account_id: Uuid,
|
|
417
|
+
version_stack_id: Uuid,
|
|
418
|
+
*,
|
|
419
|
+
include: typing.Optional[FileWithMediaLinksInclude] = None,
|
|
420
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
421
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
422
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
423
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
424
|
+
) -> AssetsWithIncludesResponse:
|
|
425
|
+
"""
|
|
426
|
+
List the children (files) in a given version stack.
|
|
427
|
+
<br>
|
|
428
|
+
Use the `include` query parameter to selectively include additional properties in the response.
|
|
429
|
+
<br>
|
|
430
|
+
Note: if you include `media_links.original` and the user does not have permission to download files
|
|
431
|
+
in the corresponding project, then this endpoint will respond with a `403 Forbidden` error.
|
|
432
|
+
If the content is inaccessible because watermarking is required for this user and isn't supported by
|
|
433
|
+
the requested media_links, then the request will succeed but the unsupported media links will be set to null.
|
|
434
|
+
Similarly, if a requested transcode link does not exist for a particular file (e.g. including
|
|
435
|
+
`media_links.video_h264_180` on a static image file) or transoding process hasn't finished
|
|
436
|
+
(i.e. the file's `status` is "uploaded" rather than "transcoded"), then the a media link will also be set to
|
|
437
|
+
null in the response payload. In short, the client must handle null media links gracefully.
|
|
438
|
+
<br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
439
|
+
|
|
440
|
+
Parameters
|
|
441
|
+
----------
|
|
442
|
+
account_id : Uuid
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
version_stack_id : Uuid
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
include : typing.Optional[FileWithMediaLinksInclude]
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
452
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
453
|
+
<br/>
|
|
454
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
455
|
+
|
|
456
|
+
page_size : typing.Optional[RequestPageSize]
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
request_options : typing.Optional[RequestOptions]
|
|
463
|
+
Request-specific configuration.
|
|
464
|
+
|
|
465
|
+
Returns
|
|
466
|
+
-------
|
|
467
|
+
AssetsWithIncludesResponse
|
|
468
|
+
OK
|
|
469
|
+
|
|
470
|
+
Examples
|
|
471
|
+
--------
|
|
472
|
+
import asyncio
|
|
473
|
+
|
|
474
|
+
from frameio import AsyncFrameio
|
|
475
|
+
|
|
476
|
+
client = AsyncFrameio(
|
|
477
|
+
token="YOUR_TOKEN",
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
async def main() -> None:
|
|
482
|
+
await client.version_stacks.index(
|
|
483
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
484
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
485
|
+
include="media_links",
|
|
486
|
+
after="<opaque_cursor>",
|
|
487
|
+
page_size=10,
|
|
488
|
+
include_total_count=False,
|
|
489
|
+
)
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
asyncio.run(main())
|
|
493
|
+
"""
|
|
494
|
+
_response = await self._raw_client.index(
|
|
495
|
+
account_id,
|
|
496
|
+
version_stack_id,
|
|
497
|
+
include=include,
|
|
498
|
+
after=after,
|
|
499
|
+
page_size=page_size,
|
|
500
|
+
include_total_count=include_total_count,
|
|
501
|
+
request_options=request_options,
|
|
502
|
+
)
|
|
503
|
+
return _response.data
|
|
504
|
+
|
|
505
|
+
async def show(
|
|
506
|
+
self,
|
|
507
|
+
account_id: Uuid,
|
|
508
|
+
version_stack_id: Uuid,
|
|
509
|
+
*,
|
|
510
|
+
include: typing.Optional[VersionStacksShowRequestInclude] = None,
|
|
511
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
512
|
+
) -> VersionStackWithIncludesResponse:
|
|
513
|
+
"""
|
|
514
|
+
Show version stack details. <br>Rate Limits: 100 calls per 1.00 minute(s) per account_user
|
|
515
|
+
|
|
516
|
+
Parameters
|
|
517
|
+
----------
|
|
518
|
+
account_id : Uuid
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
version_stack_id : Uuid
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
include : typing.Optional[VersionStacksShowRequestInclude]
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
request_options : typing.Optional[RequestOptions]
|
|
528
|
+
Request-specific configuration.
|
|
529
|
+
|
|
530
|
+
Returns
|
|
531
|
+
-------
|
|
532
|
+
VersionStackWithIncludesResponse
|
|
533
|
+
OK
|
|
534
|
+
|
|
535
|
+
Examples
|
|
536
|
+
--------
|
|
537
|
+
import asyncio
|
|
538
|
+
|
|
539
|
+
from frameio import AsyncFrameio
|
|
540
|
+
|
|
541
|
+
client = AsyncFrameio(
|
|
542
|
+
token="YOUR_TOKEN",
|
|
543
|
+
)
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
async def main() -> None:
|
|
547
|
+
await client.version_stacks.show(
|
|
548
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
549
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
550
|
+
include="media_links",
|
|
551
|
+
)
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
asyncio.run(main())
|
|
555
|
+
"""
|
|
556
|
+
_response = await self._raw_client.show(
|
|
557
|
+
account_id, version_stack_id, include=include, request_options=request_options
|
|
558
|
+
)
|
|
559
|
+
return _response.data
|
|
560
|
+
|
|
561
|
+
async def copy(
|
|
562
|
+
self,
|
|
563
|
+
account_id: Uuid,
|
|
564
|
+
version_stack_id: Uuid,
|
|
565
|
+
*,
|
|
566
|
+
copy_metadata: typing.Optional[bool] = None,
|
|
567
|
+
data: typing.Optional[VersionStackCopyParamsData] = OMIT,
|
|
568
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
569
|
+
) -> VersionStackCopyResponse:
|
|
570
|
+
"""
|
|
571
|
+
Copy version stack. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
572
|
+
|
|
573
|
+
Parameters
|
|
574
|
+
----------
|
|
575
|
+
account_id : Uuid
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
version_stack_id : Uuid
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
copy_metadata : typing.Optional[bool]
|
|
582
|
+
Whether to copy metadata values along with the version stack
|
|
583
|
+
|
|
584
|
+
data : typing.Optional[VersionStackCopyParamsData]
|
|
585
|
+
|
|
586
|
+
request_options : typing.Optional[RequestOptions]
|
|
587
|
+
Request-specific configuration.
|
|
588
|
+
|
|
589
|
+
Returns
|
|
590
|
+
-------
|
|
591
|
+
VersionStackCopyResponse
|
|
592
|
+
OK
|
|
593
|
+
|
|
594
|
+
Examples
|
|
595
|
+
--------
|
|
596
|
+
import asyncio
|
|
597
|
+
|
|
598
|
+
from frameio import AsyncFrameio
|
|
599
|
+
from frameio.version_stacks import VersionStackCopyParamsData
|
|
600
|
+
|
|
601
|
+
client = AsyncFrameio(
|
|
602
|
+
token="YOUR_TOKEN",
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
async def main() -> None:
|
|
607
|
+
await client.version_stacks.copy(
|
|
608
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
609
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
610
|
+
copy_metadata=True,
|
|
611
|
+
data=VersionStackCopyParamsData(
|
|
612
|
+
parent_id="2e426fe0-f965-4594-8b2b-b4dff1dc00ec",
|
|
613
|
+
),
|
|
614
|
+
)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
asyncio.run(main())
|
|
618
|
+
"""
|
|
619
|
+
_response = await self._raw_client.copy(
|
|
620
|
+
account_id, version_stack_id, copy_metadata=copy_metadata, data=data, request_options=request_options
|
|
621
|
+
)
|
|
622
|
+
return _response.data
|
|
623
|
+
|
|
624
|
+
async def list(
|
|
625
|
+
self,
|
|
626
|
+
account_id: Uuid,
|
|
627
|
+
folder_id: Uuid,
|
|
628
|
+
*,
|
|
629
|
+
include: typing.Optional[FileWithMediaLinksInclude] = None,
|
|
630
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
631
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
632
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
633
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
634
|
+
) -> VersionStacksWithIncludesResponse:
|
|
635
|
+
"""
|
|
636
|
+
List version stacks in a given folder. <br>Rate Limits: 5 calls per 1 second(s) per account_user
|
|
637
|
+
|
|
638
|
+
Parameters
|
|
639
|
+
----------
|
|
640
|
+
account_id : Uuid
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
folder_id : Uuid
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
include : typing.Optional[FileWithMediaLinksInclude]
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
650
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
651
|
+
<br/>
|
|
652
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
653
|
+
|
|
654
|
+
page_size : typing.Optional[RequestPageSize]
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
request_options : typing.Optional[RequestOptions]
|
|
661
|
+
Request-specific configuration.
|
|
662
|
+
|
|
663
|
+
Returns
|
|
664
|
+
-------
|
|
665
|
+
VersionStacksWithIncludesResponse
|
|
666
|
+
OK
|
|
667
|
+
|
|
668
|
+
Examples
|
|
669
|
+
--------
|
|
670
|
+
import asyncio
|
|
671
|
+
|
|
672
|
+
from frameio import AsyncFrameio
|
|
673
|
+
|
|
674
|
+
client = AsyncFrameio(
|
|
675
|
+
token="YOUR_TOKEN",
|
|
676
|
+
)
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
async def main() -> None:
|
|
680
|
+
await client.version_stacks.list(
|
|
681
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
682
|
+
folder_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
683
|
+
include="media_links",
|
|
684
|
+
after="<opaque_cursor>",
|
|
685
|
+
page_size=10,
|
|
686
|
+
include_total_count=False,
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
asyncio.run(main())
|
|
691
|
+
"""
|
|
692
|
+
_response = await self._raw_client.list(
|
|
693
|
+
account_id,
|
|
694
|
+
folder_id,
|
|
695
|
+
include=include,
|
|
696
|
+
after=after,
|
|
697
|
+
page_size=page_size,
|
|
698
|
+
include_total_count=include_total_count,
|
|
699
|
+
request_options=request_options,
|
|
700
|
+
)
|
|
701
|
+
return _response.data
|
|
702
|
+
|
|
703
|
+
async def create(
|
|
704
|
+
self,
|
|
705
|
+
account_id: Uuid,
|
|
706
|
+
folder_id: Uuid,
|
|
707
|
+
*,
|
|
708
|
+
data: VersionStackCreateParamsData,
|
|
709
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
710
|
+
) -> VersionStackWithIncludesResponse:
|
|
711
|
+
"""
|
|
712
|
+
Create a new Version Stack under the parent folder. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
713
|
+
|
|
714
|
+
Parameters
|
|
715
|
+
----------
|
|
716
|
+
account_id : Uuid
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
folder_id : Uuid
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
data : VersionStackCreateParamsData
|
|
723
|
+
|
|
724
|
+
request_options : typing.Optional[RequestOptions]
|
|
725
|
+
Request-specific configuration.
|
|
726
|
+
|
|
727
|
+
Returns
|
|
728
|
+
-------
|
|
729
|
+
VersionStackWithIncludesResponse
|
|
730
|
+
Created
|
|
731
|
+
|
|
732
|
+
Examples
|
|
733
|
+
--------
|
|
734
|
+
import asyncio
|
|
735
|
+
|
|
736
|
+
from frameio import AsyncFrameio
|
|
737
|
+
from frameio.version_stacks import VersionStackCreateParamsData
|
|
738
|
+
|
|
739
|
+
client = AsyncFrameio(
|
|
740
|
+
token="YOUR_TOKEN",
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
async def main() -> None:
|
|
745
|
+
await client.version_stacks.create(
|
|
746
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
747
|
+
folder_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
748
|
+
data=VersionStackCreateParamsData(
|
|
749
|
+
file_ids=[
|
|
750
|
+
"c98452b0-e895-49d2-bdbc-499440f1dacb",
|
|
751
|
+
"ad05b4a6-788b-4ec0-b5ac-877f82172060",
|
|
752
|
+
],
|
|
753
|
+
),
|
|
754
|
+
)
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
asyncio.run(main())
|
|
758
|
+
"""
|
|
759
|
+
_response = await self._raw_client.create(account_id, folder_id, data=data, request_options=request_options)
|
|
760
|
+
return _response.data
|
|
761
|
+
|
|
762
|
+
async def move(
|
|
763
|
+
self,
|
|
764
|
+
account_id: Uuid,
|
|
765
|
+
version_stack_id: Uuid,
|
|
766
|
+
*,
|
|
767
|
+
data: VersionStackMoveParamsData,
|
|
768
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
769
|
+
) -> VersionStackResponse:
|
|
770
|
+
"""
|
|
771
|
+
Move version stack to a folder. <br>Rate Limits: 10 calls per 1.00 minute(s) per account_user
|
|
772
|
+
|
|
773
|
+
Parameters
|
|
774
|
+
----------
|
|
775
|
+
account_id : Uuid
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
version_stack_id : Uuid
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
data : VersionStackMoveParamsData
|
|
782
|
+
|
|
783
|
+
request_options : typing.Optional[RequestOptions]
|
|
784
|
+
Request-specific configuration.
|
|
785
|
+
|
|
786
|
+
Returns
|
|
787
|
+
-------
|
|
788
|
+
VersionStackResponse
|
|
789
|
+
OK
|
|
790
|
+
|
|
791
|
+
Examples
|
|
792
|
+
--------
|
|
793
|
+
import asyncio
|
|
794
|
+
|
|
795
|
+
from frameio import AsyncFrameio
|
|
796
|
+
from frameio.version_stacks import VersionStackMoveParamsData
|
|
797
|
+
|
|
798
|
+
client = AsyncFrameio(
|
|
799
|
+
token="YOUR_TOKEN",
|
|
800
|
+
)
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
async def main() -> None:
|
|
804
|
+
await client.version_stacks.move(
|
|
805
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
806
|
+
version_stack_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
807
|
+
data=VersionStackMoveParamsData(
|
|
808
|
+
parent_id="2e426fe0-f965-4594-8b2b-b4dff1dc00ec",
|
|
809
|
+
),
|
|
810
|
+
)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
asyncio.run(main())
|
|
814
|
+
"""
|
|
815
|
+
_response = await self._raw_client.move(
|
|
816
|
+
account_id, version_stack_id, data=data, request_options=request_options
|
|
817
|
+
)
|
|
818
|
+
return _response.data
|