frameio 0.0.23__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.

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