label-studio-sdk 1.0.20__py3-none-any.whl → 2.0.1__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 label-studio-sdk might be problematic. Click here for more details.

Files changed (421) hide show
  1. label_studio_sdk/__init__.py +345 -180
  2. label_studio_sdk/actions/__init__.py +4 -0
  3. label_studio_sdk/actions/client.py +46 -10
  4. label_studio_sdk/actions/types/__init__.py +4 -0
  5. label_studio_sdk/actions/types/actions_create_request_filters.py +2 -2
  6. label_studio_sdk/actions/types/actions_create_request_filters_items_item.py +2 -2
  7. label_studio_sdk/actions/types/actions_create_request_id.py +7 -7
  8. label_studio_sdk/actions/types/actions_create_request_selected_items_excluded.py +2 -2
  9. label_studio_sdk/actions/types/actions_create_request_selected_items_included.py +2 -2
  10. label_studio_sdk/actions/types/actions_list_response_item.py +25 -0
  11. label_studio_sdk/actions/types/actions_list_response_item_dialog.py +22 -0
  12. label_studio_sdk/annotations/__init__.py +2 -2
  13. label_studio_sdk/annotations/client.py +379 -243
  14. label_studio_sdk/annotations/types/__init__.py +4 -2
  15. label_studio_sdk/annotations/types/annotation_bulk_serializer_with_selected_items_request_last_action.py +7 -0
  16. label_studio_sdk/annotations/types/annotations_create_bulk_response_item.py +8 -5
  17. label_studio_sdk/base_client.py +32 -24
  18. label_studio_sdk/billing/__init__.py +2 -0
  19. label_studio_sdk/billing/client.py +112 -0
  20. label_studio_sdk/comments/client.py +378 -140
  21. label_studio_sdk/converter/README.md +207 -0
  22. label_studio_sdk/converter/imports/coco.py +132 -23
  23. label_studio_sdk/core/__init__.py +4 -0
  24. label_studio_sdk/core/unchecked_base_model.py +305 -0
  25. label_studio_sdk/environment.py +1 -1
  26. label_studio_sdk/errors/__init__.py +10 -1
  27. label_studio_sdk/errors/forbidden_error.py +9 -0
  28. label_studio_sdk/errors/method_not_allowed_error.py +9 -0
  29. label_studio_sdk/export_storage/__init__.py +1 -24
  30. label_studio_sdk/export_storage/azure/__init__.py +0 -3
  31. label_studio_sdk/export_storage/azure/client.py +231 -273
  32. label_studio_sdk/export_storage/client.py +5 -5
  33. label_studio_sdk/export_storage/gcs/__init__.py +0 -3
  34. label_studio_sdk/export_storage/gcs/client.py +231 -273
  35. label_studio_sdk/export_storage/local/__init__.py +0 -3
  36. label_studio_sdk/export_storage/local/client.py +211 -253
  37. label_studio_sdk/export_storage/redis/__init__.py +0 -3
  38. label_studio_sdk/export_storage/redis/client.py +239 -281
  39. label_studio_sdk/export_storage/s3/__init__.py +0 -3
  40. label_studio_sdk/export_storage/s3/client.py +254 -296
  41. label_studio_sdk/export_storage/s3s/client.py +694 -210
  42. label_studio_sdk/export_storage/types/export_storage_list_types_response_item.py +2 -2
  43. label_studio_sdk/files/client.py +52 -71
  44. label_studio_sdk/import_storage/__init__.py +1 -24
  45. label_studio_sdk/import_storage/azure/__init__.py +0 -3
  46. label_studio_sdk/import_storage/azure/client.py +249 -299
  47. label_studio_sdk/import_storage/client.py +5 -5
  48. label_studio_sdk/import_storage/gcs/__init__.py +0 -3
  49. label_studio_sdk/import_storage/gcs/client.py +249 -299
  50. label_studio_sdk/import_storage/local/__init__.py +0 -3
  51. label_studio_sdk/import_storage/local/client.py +211 -257
  52. label_studio_sdk/import_storage/redis/__init__.py +0 -3
  53. label_studio_sdk/import_storage/redis/client.py +239 -285
  54. label_studio_sdk/import_storage/s3/__init__.py +0 -3
  55. label_studio_sdk/import_storage/s3/client.py +274 -324
  56. label_studio_sdk/import_storage/s3s/client.py +728 -434
  57. label_studio_sdk/import_storage/types/import_storage_list_types_response_item.py +2 -2
  58. label_studio_sdk/jwt_settings/client.py +56 -58
  59. label_studio_sdk/label_interface/control_tags.py +48 -8
  60. label_studio_sdk/label_interface/interface.py +261 -56
  61. label_studio_sdk/ml/__init__.py +2 -16
  62. label_studio_sdk/ml/client.py +196 -179
  63. label_studio_sdk/ml/types/__init__.py +2 -12
  64. label_studio_sdk/ml/types/ml_list_model_versions_response.py +20 -0
  65. label_studio_sdk/model_providers/__init__.py +3 -0
  66. label_studio_sdk/model_providers/client.py +280 -228
  67. label_studio_sdk/model_providers/types/__init__.py +5 -0
  68. label_studio_sdk/{prompts/types/prompts_batch_predictions_response.py → model_providers/types/model_providers_list_model_provider_choices_response.py} +3 -3
  69. label_studio_sdk/organizations/__init__.py +5 -0
  70. label_studio_sdk/organizations/client.py +331 -0
  71. label_studio_sdk/organizations/members/__init__.py +2 -0
  72. label_studio_sdk/organizations/members/client.py +636 -0
  73. label_studio_sdk/predictions/client.py +29 -77
  74. label_studio_sdk/projects/__init__.py +18 -9
  75. label_studio_sdk/projects/client.py +905 -414
  76. label_studio_sdk/projects/exports/__init__.py +2 -2
  77. label_studio_sdk/projects/exports/client.py +336 -396
  78. label_studio_sdk/projects/exports/client_ext.py +30 -30
  79. label_studio_sdk/projects/exports/types/__init__.py +1 -2
  80. label_studio_sdk/projects/exports/types/exports_convert_response.py +5 -9
  81. label_studio_sdk/projects/pauses/client.py +114 -105
  82. label_studio_sdk/projects/stats/__init__.py +5 -0
  83. label_studio_sdk/projects/stats/client.py +175 -0
  84. label_studio_sdk/projects/stats/types/__init__.py +8 -0
  85. label_studio_sdk/projects/stats/types/stats_iaa_response.py +44 -0
  86. label_studio_sdk/projects/stats/types/stats_iaa_response_common_tasks.py +7 -0
  87. label_studio_sdk/projects/stats/types/stats_iaa_response_iaa.py +5 -0
  88. label_studio_sdk/{types/base_task_file_upload.py → projects/stats/types/stats_iaa_response_std.py} +1 -1
  89. label_studio_sdk/projects/types/__init__.py +10 -6
  90. label_studio_sdk/projects/types/lse_project_create_request_sampling.py +7 -0
  91. label_studio_sdk/projects/types/lse_project_create_request_skip_queue.py +7 -0
  92. label_studio_sdk/projects/types/patched_lse_project_update_request_sampling.py +7 -0
  93. label_studio_sdk/projects/types/patched_lse_project_update_request_skip_queue.py +7 -0
  94. label_studio_sdk/{prompts/types/prompts_batch_failed_predictions_response.py → projects/types/projects_duplicate_response.py} +8 -5
  95. label_studio_sdk/projects/types/projects_import_tasks_response.py +2 -2
  96. label_studio_sdk/projects/types/projects_list_request_filter.py +1 -1
  97. label_studio_sdk/prompts/__init__.py +4 -10
  98. label_studio_sdk/prompts/client.py +511 -442
  99. label_studio_sdk/prompts/indicators/__init__.py +3 -0
  100. label_studio_sdk/prompts/indicators/client.py +47 -49
  101. label_studio_sdk/prompts/indicators/types/__init__.py +5 -0
  102. label_studio_sdk/{types/key_indicator_value.py → prompts/indicators/types/indicators_list_response_item.py} +3 -3
  103. label_studio_sdk/prompts/runs/client.py +113 -135
  104. label_studio_sdk/prompts/types/__init__.py +2 -12
  105. label_studio_sdk/prompts/types/prompts_compatible_projects_request_project_type.py +7 -0
  106. label_studio_sdk/prompts/versions/client.py +372 -312
  107. label_studio_sdk/tasks/__init__.py +2 -2
  108. label_studio_sdk/tasks/client.py +514 -213
  109. label_studio_sdk/tasks/types/__init__.py +1 -2
  110. label_studio_sdk/tokens/client.py +160 -152
  111. label_studio_sdk/tokens/client_ext.py +3 -3
  112. label_studio_sdk/types/__init__.py +276 -142
  113. label_studio_sdk/{webhooks/types/webhooks_update_request_actions_item.py → types/actions_enum.py} +4 -1
  114. label_studio_sdk/types/all_roles_project_list.py +197 -0
  115. label_studio_sdk/types/all_roles_project_list_sampling.py +7 -0
  116. label_studio_sdk/types/all_roles_project_list_skip_queue.py +7 -0
  117. label_studio_sdk/types/annotated_enum.py +5 -0
  118. label_studio_sdk/types/annotation.py +24 -10
  119. label_studio_sdk/types/annotation_last_action.py +3 -15
  120. label_studio_sdk/types/{annotations_dm_field.py → annotation_request.py} +21 -30
  121. label_studio_sdk/types/annotation_request_last_action.py +7 -0
  122. label_studio_sdk/types/assignment_settings.py +31 -0
  123. label_studio_sdk/types/assignment_settings_label_stream_task_distribution.py +7 -0
  124. label_studio_sdk/types/assignment_settings_request.py +32 -0
  125. label_studio_sdk/types/assignment_settings_request_label_stream_task_distribution.py +7 -0
  126. label_studio_sdk/types/associated_project.py +30 -0
  127. label_studio_sdk/types/auth_method_enum.py +5 -0
  128. label_studio_sdk/types/azure_blob_export_storage.py +8 -12
  129. label_studio_sdk/types/azure_blob_import_storage.py +8 -12
  130. label_studio_sdk/types/{prompt_associated_projects_item_id.py → batch_failed_predictions.py} +4 -4
  131. label_studio_sdk/types/{access_token_response.py → batch_predictions.py} +6 -8
  132. label_studio_sdk/types/billing_checks.py +39 -0
  133. label_studio_sdk/types/billing_flags.py +44 -0
  134. label_studio_sdk/types/billing_info_response.py +22 -0
  135. label_studio_sdk/types/blank_enum.py +5 -0
  136. label_studio_sdk/types/{key_indicators_item_extra_kpis_item.py → blueprint_list.py} +12 -6
  137. label_studio_sdk/types/budget_reset_period_enum.py +5 -0
  138. label_studio_sdk/types/child_filter.py +44 -0
  139. label_studio_sdk/types/comment.py +39 -14
  140. label_studio_sdk/types/comment_request.py +32 -0
  141. label_studio_sdk/types/comment_serializer_with_expanded_user.py +53 -0
  142. label_studio_sdk/types/converted_format.py +5 -5
  143. label_studio_sdk/types/{api_token_response.py → converted_format_request.py} +8 -15
  144. label_studio_sdk/types/count_limit.py +22 -0
  145. label_studio_sdk/types/custom_scripts_editable_by_enum.py +5 -0
  146. label_studio_sdk/types/default_role_enum.py +5 -0
  147. label_studio_sdk/types/edition_enum.py +5 -0
  148. label_studio_sdk/types/export.py +7 -7
  149. label_studio_sdk/types/file_upload.py +5 -5
  150. label_studio_sdk/types/filter.py +9 -6
  151. label_studio_sdk/types/filter_group.py +3 -3
  152. label_studio_sdk/types/finished_enum.py +5 -0
  153. label_studio_sdk/types/gcs_export_storage.py +8 -12
  154. label_studio_sdk/types/gcs_import_storage.py +8 -12
  155. label_studio_sdk/types/{rotate_token_response.py → hotkeys.py} +5 -8
  156. label_studio_sdk/types/{base_task.py → import_api_request.py} +11 -34
  157. label_studio_sdk/types/inference_run_cost_estimate.py +2 -2
  158. label_studio_sdk/types/label_stream_task_distribution_enum.py +5 -0
  159. label_studio_sdk/types/{annotations_dm_field_last_action.py → last_action_enum.py} +1 -1
  160. label_studio_sdk/types/local_files_export_storage.py +8 -12
  161. label_studio_sdk/types/local_files_import_storage.py +8 -12
  162. label_studio_sdk/types/{annotation_filter_options.py → lse_annotation_filter_options.py} +12 -2
  163. label_studio_sdk/types/lse_annotation_filter_options_request.py +42 -0
  164. label_studio_sdk/types/lse_annotation_filter_options_request_reviewed.py +7 -0
  165. label_studio_sdk/types/lse_annotation_filter_options_reviewed.py +7 -0
  166. label_studio_sdk/types/{export_snapshot.py → lse_export_create.py} +11 -11
  167. label_studio_sdk/types/lse_fields.py +49 -0
  168. label_studio_sdk/types/lse_fields_onboarding_state.py +8 -0
  169. label_studio_sdk/types/lse_fields_trial_role.py +8 -0
  170. label_studio_sdk/types/lse_key_indicator_value.py +35 -0
  171. label_studio_sdk/types/lse_organization.py +57 -0
  172. label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +7 -0
  173. label_studio_sdk/types/{key_indicators_item_additional_kpis_item.py → lse_organization_member_list.py} +12 -7
  174. label_studio_sdk/types/lse_project_create.py +196 -0
  175. label_studio_sdk/types/lse_project_create_sampling.py +7 -0
  176. label_studio_sdk/types/lse_project_create_skip_queue.py +7 -0
  177. label_studio_sdk/types/lse_project_update.py +215 -0
  178. label_studio_sdk/types/lse_project_update_sampling.py +7 -0
  179. label_studio_sdk/types/lse_project_update_skip_queue.py +7 -0
  180. label_studio_sdk/types/lse_s3export_storage.py +134 -0
  181. label_studio_sdk/{import_storage/s3/types/s3create_response.py → types/lse_s3export_storage_request.py} +47 -21
  182. label_studio_sdk/{import_storage/s3/types/s3update_response.py → types/lse_s3import_storage.py} +60 -21
  183. label_studio_sdk/types/{s3s_import_storage.py → lse_s3import_storage_request.py} +32 -21
  184. label_studio_sdk/types/lse_task.py +117 -0
  185. label_studio_sdk/types/{data_manager_task_serializer_drafts_item.py → lse_task_drafts_item.py} +2 -2
  186. label_studio_sdk/types/lse_task_filter_options.py +63 -0
  187. label_studio_sdk/types/lse_task_filter_options_annotated.py +7 -0
  188. label_studio_sdk/types/lse_task_filter_options_finished.py +7 -0
  189. label_studio_sdk/types/lse_task_filter_options_request.py +63 -0
  190. label_studio_sdk/types/lse_task_filter_options_request_annotated.py +7 -0
  191. label_studio_sdk/types/lse_task_filter_options_request_finished.py +7 -0
  192. label_studio_sdk/types/lse_task_filter_options_request_reviewed.py +7 -0
  193. label_studio_sdk/types/lse_task_filter_options_request_skipped.py +7 -0
  194. label_studio_sdk/types/lse_task_filter_options_reviewed.py +7 -0
  195. label_studio_sdk/types/lse_task_filter_options_skipped.py +7 -0
  196. label_studio_sdk/types/{data_manager_task_serializer_predictions_item.py → lse_task_predictions_item.py} +4 -5
  197. label_studio_sdk/types/lse_task_serializer_for_annotators.py +54 -0
  198. label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +22 -0
  199. label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +28 -0
  200. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +117 -0
  201. label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +22 -0
  202. label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +28 -0
  203. label_studio_sdk/types/lse_user.py +49 -0
  204. label_studio_sdk/types/{base_user.py → lse_user_api.py} +17 -6
  205. label_studio_sdk/types/lse_user_organization_member_list.py +48 -0
  206. label_studio_sdk/types/lseapi_token_create.py +21 -0
  207. label_studio_sdk/types/lseapi_token_list.py +21 -0
  208. label_studio_sdk/types/lsejwt_settings.py +32 -0
  209. label_studio_sdk/types/maybe_expanded_comment.py +7 -0
  210. label_studio_sdk/types/ml_backend.py +16 -17
  211. label_studio_sdk/types/mode_enum.py +5 -0
  212. label_studio_sdk/types/model_interface.py +44 -0
  213. label_studio_sdk/types/model_interface_request.py +40 -0
  214. label_studio_sdk/types/model_interface_serializer_get.py +45 -0
  215. label_studio_sdk/types/model_provider_connection.py +48 -17
  216. label_studio_sdk/types/model_provider_connection_budget_reset_period.py +3 -1
  217. label_studio_sdk/types/model_provider_connection_request.py +71 -0
  218. label_studio_sdk/types/model_run.py +40 -0
  219. label_studio_sdk/types/{inference_run_status.py → model_run_status_enum.py} +1 -1
  220. label_studio_sdk/types/null_enum.py +3 -0
  221. label_studio_sdk/types/onboarding_state_enum.py +7 -0
  222. label_studio_sdk/types/organization_billing.py +20 -0
  223. label_studio_sdk/types/organization_id.py +28 -0
  224. label_studio_sdk/types/organization_invite.py +20 -0
  225. label_studio_sdk/types/organization_member.py +37 -0
  226. label_studio_sdk/types/organization_membership.py +24 -0
  227. label_studio_sdk/{projects/types/projects_list_response.py → types/paginated_all_roles_project_list_list.py} +5 -5
  228. label_studio_sdk/types/paginated_lse_organization_member_list_list.py +23 -0
  229. label_studio_sdk/types/{jwt_settings_response.py → paginated_role_based_task_list.py} +11 -9
  230. label_studio_sdk/types/pause.py +55 -14
  231. label_studio_sdk/types/pause_request.py +41 -0
  232. label_studio_sdk/types/prediction.py +7 -11
  233. label_studio_sdk/types/prediction_request.py +56 -0
  234. label_studio_sdk/types/project.py +32 -39
  235. label_studio_sdk/types/project_import.py +12 -13
  236. label_studio_sdk/types/project_label_config.py +2 -2
  237. label_studio_sdk/types/project_label_config_request.py +22 -0
  238. label_studio_sdk/types/project_sampling.py +3 -3
  239. label_studio_sdk/types/project_skip_queue.py +3 -1
  240. label_studio_sdk/types/project_subset_enum.py +5 -0
  241. label_studio_sdk/types/prompts_status_enum.py +16 -0
  242. label_studio_sdk/types/{prompt_version_provider.py → provider_enum.py} +1 -1
  243. label_studio_sdk/types/reason_enum.py +7 -0
  244. label_studio_sdk/types/redis_export_storage.py +8 -12
  245. label_studio_sdk/types/redis_import_storage.py +8 -12
  246. label_studio_sdk/types/refined_prompt_response.py +5 -6
  247. label_studio_sdk/types/requeue_rejected_tasks_mode_enum.py +5 -0
  248. label_studio_sdk/types/review_criteria_enum.py +5 -0
  249. label_studio_sdk/types/review_settings.py +80 -0
  250. label_studio_sdk/types/review_settings_request.py +80 -0
  251. label_studio_sdk/types/review_settings_request_requeue_rejected_tasks_mode.py +8 -0
  252. label_studio_sdk/types/review_settings_request_review_criteria.py +7 -0
  253. label_studio_sdk/types/review_settings_requeue_rejected_tasks_mode.py +8 -0
  254. label_studio_sdk/types/review_settings_review_criteria.py +7 -0
  255. label_studio_sdk/types/reviewed_enum.py +5 -0
  256. label_studio_sdk/types/role9e7enum.py +5 -0
  257. label_studio_sdk/types/role_based_task.py +8 -0
  258. label_studio_sdk/types/s3export_storage.py +8 -12
  259. label_studio_sdk/types/s3import_storage.py +8 -12
  260. label_studio_sdk/types/sampling_enum.py +7 -0
  261. label_studio_sdk/types/scope_enum.py +5 -0
  262. label_studio_sdk/types/selected_items_request.py +23 -0
  263. label_studio_sdk/types/serialization_option.py +2 -6
  264. label_studio_sdk/types/serialization_option_request.py +22 -0
  265. label_studio_sdk/types/serialization_options.py +17 -5
  266. label_studio_sdk/types/serialization_options_request.py +47 -0
  267. label_studio_sdk/types/skill_name_enum.py +5 -0
  268. label_studio_sdk/types/skip_queue_enum.py +5 -0
  269. label_studio_sdk/types/skipped_enum.py +5 -0
  270. label_studio_sdk/types/state_enum.py +5 -0
  271. label_studio_sdk/types/status7bf_enum.py +5 -0
  272. label_studio_sdk/types/{azure_blob_import_storage_status.py → status_c5a_enum.py} +2 -2
  273. label_studio_sdk/types/third_party_model_version.py +65 -0
  274. label_studio_sdk/types/third_party_model_version_request.py +54 -0
  275. label_studio_sdk/types/token_refresh_response.py +19 -0
  276. label_studio_sdk/types/token_rotate_response.py +19 -0
  277. label_studio_sdk/types/trial_role_enum.py +16 -0
  278. label_studio_sdk/types/user_simple.py +8 -5
  279. label_studio_sdk/types/user_simple_request.py +28 -0
  280. label_studio_sdk/types/version_response.py +49 -0
  281. label_studio_sdk/types/view.py +8 -15
  282. label_studio_sdk/types/webhook.py +9 -13
  283. label_studio_sdk/types/webhook_serializer_for_update.py +15 -13
  284. label_studio_sdk/types/workspace.py +14 -34
  285. label_studio_sdk/types/workspace_member_create.py +27 -0
  286. label_studio_sdk/types/workspace_member_list.py +24 -0
  287. label_studio_sdk/users/client.py +604 -87
  288. label_studio_sdk/users/types/users_get_token_response.py +4 -11
  289. label_studio_sdk/users/types/users_reset_token_response.py +4 -11
  290. label_studio_sdk/versions/__init__.py +0 -3
  291. label_studio_sdk/versions/client.py +14 -14
  292. label_studio_sdk/views/client.py +227 -141
  293. label_studio_sdk/views/types/views_create_request_data.py +2 -2
  294. label_studio_sdk/views/types/views_create_request_data_filters.py +2 -2
  295. label_studio_sdk/views/types/views_create_request_data_filters_items_item.py +2 -2
  296. label_studio_sdk/views/types/views_update_request_data.py +2 -2
  297. label_studio_sdk/views/types/views_update_request_data_filters.py +2 -2
  298. label_studio_sdk/views/types/views_update_request_data_filters_items_item.py +2 -2
  299. label_studio_sdk/webhooks/__init__.py +36 -2
  300. label_studio_sdk/webhooks/client.py +173 -367
  301. label_studio_sdk/webhooks/types/__init__.py +34 -2
  302. label_studio_sdk/webhooks/types/webhooks_info_response.py +80 -0
  303. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +24 -0
  304. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +24 -0
  305. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +24 -0
  306. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +24 -0
  307. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +24 -0
  308. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +24 -0
  309. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +24 -0
  310. label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +24 -0
  311. label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +24 -0
  312. label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +24 -0
  313. label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +24 -0
  314. label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +24 -0
  315. label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +24 -0
  316. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +24 -0
  317. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +24 -0
  318. label_studio_sdk/workspaces/__init__.py +1 -2
  319. label_studio_sdk/workspaces/client.py +97 -117
  320. label_studio_sdk/workspaces/members/__init__.py +0 -3
  321. label_studio_sdk/workspaces/members/client.py +65 -81
  322. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.1.dist-info}/METADATA +73 -25
  323. label_studio_sdk-2.0.1.dist-info/RECORD +435 -0
  324. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.1.dist-info}/WHEEL +1 -1
  325. label_studio_sdk/annotations/types/annotations_create_bulk_request_selected_items.py +0 -34
  326. label_studio_sdk/export_storage/azure/types/__init__.py +0 -6
  327. label_studio_sdk/export_storage/azure/types/azure_create_response.py +0 -57
  328. label_studio_sdk/export_storage/azure/types/azure_update_response.py +0 -57
  329. label_studio_sdk/export_storage/gcs/types/__init__.py +0 -6
  330. label_studio_sdk/export_storage/gcs/types/gcs_create_response.py +0 -57
  331. label_studio_sdk/export_storage/gcs/types/gcs_update_response.py +0 -57
  332. label_studio_sdk/export_storage/local/types/__init__.py +0 -6
  333. label_studio_sdk/export_storage/local/types/local_create_response.py +0 -47
  334. label_studio_sdk/export_storage/local/types/local_update_response.py +0 -47
  335. label_studio_sdk/export_storage/redis/types/__init__.py +0 -6
  336. label_studio_sdk/export_storage/redis/types/redis_create_response.py +0 -62
  337. label_studio_sdk/export_storage/redis/types/redis_update_response.py +0 -62
  338. label_studio_sdk/export_storage/s3/types/__init__.py +0 -6
  339. label_studio_sdk/export_storage/s3/types/s3create_response.py +0 -81
  340. label_studio_sdk/export_storage/s3/types/s3update_response.py +0 -81
  341. label_studio_sdk/import_storage/azure/types/__init__.py +0 -6
  342. label_studio_sdk/import_storage/azure/types/azure_create_response.py +0 -72
  343. label_studio_sdk/import_storage/azure/types/azure_update_response.py +0 -72
  344. label_studio_sdk/import_storage/gcs/types/__init__.py +0 -6
  345. label_studio_sdk/import_storage/gcs/types/gcs_create_response.py +0 -72
  346. label_studio_sdk/import_storage/gcs/types/gcs_update_response.py +0 -72
  347. label_studio_sdk/import_storage/local/types/__init__.py +0 -6
  348. label_studio_sdk/import_storage/local/types/local_create_response.py +0 -47
  349. label_studio_sdk/import_storage/local/types/local_update_response.py +0 -47
  350. label_studio_sdk/import_storage/redis/types/__init__.py +0 -6
  351. label_studio_sdk/import_storage/redis/types/redis_create_response.py +0 -62
  352. label_studio_sdk/import_storage/redis/types/redis_update_response.py +0 -62
  353. label_studio_sdk/import_storage/s3/types/__init__.py +0 -6
  354. label_studio_sdk/ml/types/ml_create_response.py +0 -68
  355. label_studio_sdk/ml/types/ml_create_response_auth_method.py +0 -5
  356. label_studio_sdk/ml/types/ml_update_response.py +0 -68
  357. label_studio_sdk/ml/types/ml_update_response_auth_method.py +0 -5
  358. label_studio_sdk/projects/exports/types/exports_list_formats_response_item.py +0 -44
  359. label_studio_sdk/projects/types/projects_create_response.py +0 -91
  360. label_studio_sdk/projects/types/projects_update_response.py +0 -96
  361. label_studio_sdk/prompts/types/prompts_batch_failed_predictions_request_failed_predictions_item.py +0 -32
  362. label_studio_sdk/prompts/types/prompts_batch_predictions_request_results_item.py +0 -59
  363. label_studio_sdk/tasks/types/tasks_list_response.py +0 -38
  364. label_studio_sdk/types/annotation_completed_by.py +0 -6
  365. label_studio_sdk/types/azure_blob_export_storage_status.py +0 -7
  366. label_studio_sdk/types/base_task_updated_by.py +0 -7
  367. label_studio_sdk/types/comment_created_by.py +0 -5
  368. label_studio_sdk/types/converted_format_status.py +0 -5
  369. label_studio_sdk/types/data_manager_task_serializer.py +0 -118
  370. label_studio_sdk/types/data_manager_task_serializer_annotators_item.py +0 -5
  371. label_studio_sdk/types/data_manager_task_serializer_comment_authors_item.py +0 -5
  372. label_studio_sdk/types/data_manager_task_serializer_predictions_item_model_run.py +0 -5
  373. label_studio_sdk/types/export_format.py +0 -25
  374. label_studio_sdk/types/export_snapshot_status.py +0 -5
  375. label_studio_sdk/types/export_status.py +0 -5
  376. label_studio_sdk/types/gcs_export_storage_status.py +0 -7
  377. label_studio_sdk/types/gcs_import_storage_status.py +0 -7
  378. label_studio_sdk/types/inference_run.py +0 -34
  379. label_studio_sdk/types/inference_run_created_by.py +0 -5
  380. label_studio_sdk/types/inference_run_organization.py +0 -5
  381. label_studio_sdk/types/inference_run_project_subset.py +0 -5
  382. label_studio_sdk/types/key_indicators.py +0 -6
  383. label_studio_sdk/types/key_indicators_item.py +0 -41
  384. label_studio_sdk/types/local_files_export_storage_status.py +0 -7
  385. label_studio_sdk/types/local_files_import_storage_status.py +0 -7
  386. label_studio_sdk/types/ml_backend_auth_method.py +0 -5
  387. label_studio_sdk/types/ml_backend_state.py +0 -5
  388. label_studio_sdk/types/model_provider_connection_created_by.py +0 -5
  389. label_studio_sdk/types/model_provider_connection_organization.py +0 -5
  390. label_studio_sdk/types/model_provider_connection_provider.py +0 -7
  391. label_studio_sdk/types/model_provider_connection_scope.py +0 -5
  392. label_studio_sdk/types/pause_paused_by.py +0 -5
  393. label_studio_sdk/types/project_import_status.py +0 -5
  394. label_studio_sdk/types/prompt.py +0 -71
  395. label_studio_sdk/types/prompt_associated_projects_item.py +0 -6
  396. label_studio_sdk/types/prompt_created_by.py +0 -5
  397. label_studio_sdk/types/prompt_organization.py +0 -5
  398. label_studio_sdk/types/prompt_version.py +0 -32
  399. label_studio_sdk/types/prompt_version_created_by.py +0 -5
  400. label_studio_sdk/types/prompt_version_organization.py +0 -5
  401. label_studio_sdk/types/redis_export_storage_status.py +0 -7
  402. label_studio_sdk/types/redis_import_storage_status.py +0 -7
  403. label_studio_sdk/types/refined_prompt_response_refinement_status.py +0 -7
  404. label_studio_sdk/types/s3export_storage_status.py +0 -7
  405. label_studio_sdk/types/s3import_storage_status.py +0 -7
  406. label_studio_sdk/types/s3s_export_storage.py +0 -73
  407. label_studio_sdk/types/s3s_import_storage_status.py +0 -7
  408. label_studio_sdk/types/task.py +0 -156
  409. label_studio_sdk/types/task_annotators_item.py +0 -5
  410. label_studio_sdk/types/task_comment_authors_item.py +0 -5
  411. label_studio_sdk/types/task_filter_options.py +0 -39
  412. label_studio_sdk/types/webhook_actions_item.py +0 -21
  413. label_studio_sdk/types/webhook_serializer_for_update_actions_item.py +0 -21
  414. label_studio_sdk/versions/types/__init__.py +0 -6
  415. label_studio_sdk/versions/types/versions_get_response.py +0 -73
  416. label_studio_sdk/versions/types/versions_get_response_edition.py +0 -5
  417. label_studio_sdk/workspaces/members/types/__init__.py +0 -6
  418. label_studio_sdk/workspaces/members/types/members_create_response.py +0 -22
  419. label_studio_sdk/workspaces/members/types/members_list_response_item.py +0 -22
  420. label_studio_sdk-1.0.20.dist-info/RECORD +0 -374
  421. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.1.dist-info}/LICENSE +0 -0
@@ -1,52 +1,55 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ....core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
+ import datetime as dt
5
6
  import pydantic
7
+ from .status_c5a_enum import StatusC5AEnum
6
8
  import typing_extensions
7
- from ....core.serialization import FieldMetadata
8
- from ....core.pydantic_utilities import IS_PYDANTIC_V2
9
+ from ..core.serialization import FieldMetadata
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
11
 
10
12
 
11
- class S3UpdateResponse(UniversalBaseModel):
12
- regex_filter: typing.Optional[str] = pydantic.Field(default=None)
13
- """
14
- Cloud storage regex for filtering objects. You must specify it otherwise no objects will be imported.
15
- """
16
-
17
- use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
13
+ class LseS3ImportStorage(UncheckedBaseModel):
14
+ id: int
15
+ type: str
16
+ synchronizable: typing.Optional[bool] = None
17
+ presign: typing.Optional[bool] = None
18
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
18
19
  """
19
- Interpret objects as BLOBs and generate URLs. For example, if your bucket contains images, you can use this option to generate URLs for these images. If set to False, it will read the content of the file and load it into Label Studio.
20
+ Last sync finished time
20
21
  """
21
22
 
22
- presign: typing.Optional[bool] = pydantic.Field(default=None)
23
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
23
24
  """
24
- Presign URLs for download
25
+ Count of tasks synced last time
25
26
  """
26
27
 
27
- presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
28
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
28
29
  """
29
- Presign TTL in minutes
30
+ Last sync job ID
30
31
  """
31
32
 
32
- recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
33
+ status: typing.Optional[StatusC5AEnum] = None
34
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
33
35
  """
34
- Scan recursively
36
+ Traceback report for the last failed sync
35
37
  """
36
38
 
39
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
37
40
  title: typing.Optional[str] = pydantic.Field(default=None)
38
41
  """
39
- Storage title
42
+ Cloud storage title
40
43
  """
41
44
 
42
45
  description: typing.Optional[str] = pydantic.Field(default=None)
43
46
  """
44
- Storage description
47
+ Cloud storage description
45
48
  """
46
49
 
47
- project: typing.Optional[int] = pydantic.Field(default=None)
50
+ created_at: dt.datetime = pydantic.Field()
48
51
  """
49
- Project ID
52
+ Creation time
50
53
  """
51
54
 
52
55
  bucket: typing.Optional[str] = pydantic.Field(default=None)
@@ -59,6 +62,16 @@ class S3UpdateResponse(UniversalBaseModel):
59
62
  S3 bucket prefix
60
63
  """
61
64
 
65
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
66
+ """
67
+ Cloud storage regex for filtering objects
68
+ """
69
+
70
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
71
+ """
72
+ Interpret objects as BLOBs and generate URLs
73
+ """
74
+
62
75
  aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
63
76
  """
64
77
  AWS_ACCESS_KEY_ID
@@ -91,6 +104,32 @@ class S3UpdateResponse(UniversalBaseModel):
91
104
  S3 Endpoint
92
105
  """
93
106
 
107
+ external_id: typing.Optional[str] = pydantic.Field(default=None)
108
+ """
109
+ AWS ExternalId
110
+ """
111
+
112
+ role_arn: str = pydantic.Field()
113
+ """
114
+ AWS RoleArn
115
+ """
116
+
117
+ legacy_auth: typing.Optional[bool] = None
118
+ presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
119
+ """
120
+ Presigned URLs TTL (in minutes)
121
+ """
122
+
123
+ recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
124
+ """
125
+ Perform recursive scan over the bucket content
126
+ """
127
+
128
+ project: int = pydantic.Field()
129
+ """
130
+ A unique integer value identifying this project.
131
+ """
132
+
94
133
  if IS_PYDANTIC_V2:
95
134
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
96
135
  else:
@@ -1,17 +1,16 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  import datetime as dt
6
6
  import pydantic
7
- from .s3s_import_storage_status import S3SImportStorageStatus
7
+ from .status_c5a_enum import StatusC5AEnum
8
8
  import typing_extensions
9
9
  from ..core.serialization import FieldMetadata
10
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
11
 
12
12
 
13
- class S3SImportStorage(UniversalBaseModel):
14
- id: typing.Optional[int] = None
13
+ class LseS3ImportStorageRequest(UncheckedBaseModel):
15
14
  synchronizable: typing.Optional[bool] = None
16
15
  presign: typing.Optional[bool] = None
17
16
  last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
@@ -29,17 +28,13 @@ class S3SImportStorage(UniversalBaseModel):
29
28
  Last sync job ID
30
29
  """
31
30
 
32
- status: typing.Optional[S3SImportStorageStatus] = None
31
+ status: typing.Optional[StatusC5AEnum] = None
33
32
  traceback: typing.Optional[str] = pydantic.Field(default=None)
34
33
  """
35
34
  Traceback report for the last failed sync
36
35
  """
37
36
 
38
- meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
39
- """
40
- Meta and debug information about storage processes
41
- """
42
-
37
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
43
38
  title: typing.Optional[str] = pydantic.Field(default=None)
44
39
  """
45
40
  Cloud storage title
@@ -50,11 +45,6 @@ class S3SImportStorage(UniversalBaseModel):
50
45
  Cloud storage description
51
46
  """
52
47
 
53
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
54
- """
55
- Creation time
56
- """
57
-
58
48
  bucket: typing.Optional[str] = pydantic.Field(default=None)
59
49
  """
60
50
  S3 bucket name
@@ -75,19 +65,29 @@ class S3SImportStorage(UniversalBaseModel):
75
65
  Interpret objects as BLOBs and generate URLs
76
66
  """
77
67
 
78
- region_name: typing.Optional[str] = pydantic.Field(default=None)
68
+ aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
79
69
  """
80
- AWS Region
70
+ AWS_ACCESS_KEY_ID
81
71
  """
82
72
 
83
- external_id: typing.Optional[str] = pydantic.Field(default=None)
73
+ aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
74
+ """
75
+ AWS_SECRET_ACCESS_KEY
76
+ """
77
+
78
+ aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
84
79
  """
85
- AWS External ID
80
+ AWS_SESSION_TOKEN
86
81
  """
87
82
 
88
- role_arn: typing.Optional[str] = pydantic.Field(default=None)
83
+ aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
89
84
  """
90
- AWS Role ARN
85
+ AWS SSE KMS Key ID
86
+ """
87
+
88
+ region_name: typing.Optional[str] = pydantic.Field(default=None)
89
+ """
90
+ AWS Region
91
91
  """
92
92
 
93
93
  s3endpoint: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="s3_endpoint")] = pydantic.Field(
@@ -97,6 +97,17 @@ class S3SImportStorage(UniversalBaseModel):
97
97
  S3 Endpoint
98
98
  """
99
99
 
100
+ external_id: typing.Optional[str] = pydantic.Field(default=None)
101
+ """
102
+ AWS ExternalId
103
+ """
104
+
105
+ role_arn: str = pydantic.Field()
106
+ """
107
+ AWS RoleArn
108
+ """
109
+
110
+ legacy_auth: typing.Optional[bool] = None
100
111
  presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
101
112
  """
102
113
  Presigned URLs TTL (in minutes)
@@ -0,0 +1,117 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from .lse_task_predictions_item import LseTaskPredictionsItem
6
+ import pydantic
7
+ from .lse_task_drafts_item import LseTaskDraftsItem
8
+ import datetime as dt
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+
11
+
12
+ class LseTask(UncheckedBaseModel):
13
+ """
14
+ Task Serializer with project scheme configs validation
15
+ """
16
+
17
+ id: int
18
+ agreement: str
19
+ predictions: typing.List[LseTaskPredictionsItem] = pydantic.Field()
20
+ """
21
+ Predictions for this task
22
+ """
23
+
24
+ annotations: str
25
+ drafts: typing.List[LseTaskDraftsItem] = pydantic.Field()
26
+ """
27
+ Drafts for this task
28
+ """
29
+
30
+ annotators: typing.List[int] = pydantic.Field()
31
+ """
32
+ Annotators IDs who annotated this task
33
+ """
34
+
35
+ inner_id: typing.Optional[int] = None
36
+ cancelled_annotations: typing.Optional[int] = None
37
+ total_annotations: typing.Optional[int] = None
38
+ total_predictions: typing.Optional[int] = None
39
+ completed_at: typing.Optional[dt.datetime] = None
40
+ annotations_results: str
41
+ predictions_results: str
42
+ predictions_score: typing.Optional[float] = None
43
+ file_upload: str
44
+ storage_filename: str
45
+ annotations_ids: str
46
+ predictions_model_versions: str
47
+ avg_lead_time: typing.Optional[float] = None
48
+ draft_exists: typing.Optional[bool] = None
49
+ updated_by: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
50
+ """
51
+ User IDs who updated this task
52
+ """
53
+
54
+ reviewers: typing.List[typing.Dict[str, typing.Optional[typing.Any]]]
55
+ comments: str
56
+ comment_authors: typing.List[typing.Dict[str, typing.Optional[typing.Any]]]
57
+ reviewed: typing.Optional[bool] = None
58
+ reviews_accepted: typing.Optional[int] = None
59
+ reviews_rejected: typing.Optional[int] = None
60
+ ground_truth: typing.Optional[bool] = None
61
+ annotators_count: int = pydantic.Field()
62
+ """
63
+ The annotators_count is calculated as the number of users with annotations (can be repeated, so same as the number of annotations) + the number of assignees without annotations.
64
+ """
65
+
66
+ reviewers_count: int
67
+ comment_authors_count: int
68
+ data: typing.Optional[typing.Any] = None
69
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
70
+ created_at: dt.datetime = pydantic.Field()
71
+ """
72
+ Time a task was created
73
+ """
74
+
75
+ updated_at: dt.datetime = pydantic.Field()
76
+ """
77
+ Last time a task was updated
78
+ """
79
+
80
+ is_labeled: typing.Optional[bool] = pydantic.Field(default=None)
81
+ """
82
+ True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
83
+ """
84
+
85
+ overlap: typing.Optional[int] = pydantic.Field(default=None)
86
+ """
87
+ Number of distinct annotators that processed the current task
88
+ """
89
+
90
+ comment_count: typing.Optional[int] = pydantic.Field(default=None)
91
+ """
92
+ Number of comments in the task including all annotations
93
+ """
94
+
95
+ unresolved_comment_count: typing.Optional[int] = pydantic.Field(default=None)
96
+ """
97
+ Number of unresolved comments in the task including all annotations
98
+ """
99
+
100
+ last_comment_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
101
+ """
102
+ When the last comment was updated
103
+ """
104
+
105
+ project: typing.Optional[int] = pydantic.Field(default=None)
106
+ """
107
+ Project ID for this task
108
+ """
109
+
110
+ if IS_PYDANTIC_V2:
111
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
112
+ else:
113
+
114
+ class Config:
115
+ frozen = True
116
+ smart_union = True
117
+ extra = pydantic.Extra.allow
@@ -1,13 +1,13 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  import datetime as dt
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  import pydantic
8
8
 
9
9
 
10
- class DataManagerTaskSerializerDraftsItem(UniversalBaseModel):
10
+ class LseTaskDraftsItem(UncheckedBaseModel):
11
11
  result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
12
12
  created_at: typing.Optional[dt.datetime] = None
13
13
  updated_at: typing.Optional[dt.datetime] = None
@@ -0,0 +1,63 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import pydantic
6
+ from .lse_task_filter_options_skipped import LseTaskFilterOptionsSkipped
7
+ from .lse_task_filter_options_finished import LseTaskFilterOptionsFinished
8
+ from .lse_task_filter_options_annotated import LseTaskFilterOptionsAnnotated
9
+ from .lse_task_filter_options_reviewed import LseTaskFilterOptionsReviewed
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
+
12
+
13
+ class LseTaskFilterOptions(UncheckedBaseModel):
14
+ view: typing.Optional[int] = pydantic.Field(default=None)
15
+ """
16
+ Apply filters from the view ID (a tab from the Data Manager)
17
+ """
18
+
19
+ skipped: typing.Optional[LseTaskFilterOptionsSkipped] = pydantic.Field(default=None)
20
+ """
21
+ `only` - include all tasks with skipped annotations<br>`exclude` - exclude all tasks with skipped annotations
22
+
23
+ * `only` - only
24
+ * `exclude` - exclude
25
+ * `None` - None
26
+ """
27
+
28
+ finished: typing.Optional[LseTaskFilterOptionsFinished] = pydantic.Field(default=None)
29
+ """
30
+ `only` - include all finished tasks (is_labeled = true)<br>`exclude` - exclude all finished tasks
31
+
32
+ * `only` - only
33
+ * `exclude` - exclude
34
+ * `None` - None
35
+ """
36
+
37
+ annotated: typing.Optional[LseTaskFilterOptionsAnnotated] = pydantic.Field(default=None)
38
+ """
39
+ `only` - include all tasks with at least one not skipped annotation<br>`exclude` - exclude all tasks with at least one not skipped annotation
40
+
41
+ * `only` - only
42
+ * `exclude` - exclude
43
+ * `None` - None
44
+ """
45
+
46
+ only_with_annotations: typing.Optional[bool] = None
47
+ reviewed: typing.Optional[LseTaskFilterOptionsReviewed] = pydantic.Field(default=None)
48
+ """
49
+ `only` - include all reviewed tasks<br>`exclude` - exclude all reviewed tasks
50
+
51
+ * `only` - only
52
+ * `exclude` - exclude
53
+ * `None` - None
54
+ """
55
+
56
+ if IS_PYDANTIC_V2:
57
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
58
+ else:
59
+
60
+ class Config:
61
+ frozen = True
62
+ smart_union = True
63
+ extra = pydantic.Extra.allow
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .annotated_enum import AnnotatedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsAnnotated = typing.Union[AnnotatedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .finished_enum import FinishedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsFinished = typing.Union[FinishedEnum, NullEnum]
@@ -0,0 +1,63 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import pydantic
6
+ from .lse_task_filter_options_request_skipped import LseTaskFilterOptionsRequestSkipped
7
+ from .lse_task_filter_options_request_finished import LseTaskFilterOptionsRequestFinished
8
+ from .lse_task_filter_options_request_annotated import LseTaskFilterOptionsRequestAnnotated
9
+ from .lse_task_filter_options_request_reviewed import LseTaskFilterOptionsRequestReviewed
10
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
+
12
+
13
+ class LseTaskFilterOptionsRequest(UncheckedBaseModel):
14
+ view: typing.Optional[int] = pydantic.Field(default=None)
15
+ """
16
+ Apply filters from the view ID (a tab from the Data Manager)
17
+ """
18
+
19
+ skipped: typing.Optional[LseTaskFilterOptionsRequestSkipped] = pydantic.Field(default=None)
20
+ """
21
+ `only` - include all tasks with skipped annotations<br>`exclude` - exclude all tasks with skipped annotations
22
+
23
+ * `only` - only
24
+ * `exclude` - exclude
25
+ * `None` - None
26
+ """
27
+
28
+ finished: typing.Optional[LseTaskFilterOptionsRequestFinished] = pydantic.Field(default=None)
29
+ """
30
+ `only` - include all finished tasks (is_labeled = true)<br>`exclude` - exclude all finished tasks
31
+
32
+ * `only` - only
33
+ * `exclude` - exclude
34
+ * `None` - None
35
+ """
36
+
37
+ annotated: typing.Optional[LseTaskFilterOptionsRequestAnnotated] = pydantic.Field(default=None)
38
+ """
39
+ `only` - include all tasks with at least one not skipped annotation<br>`exclude` - exclude all tasks with at least one not skipped annotation
40
+
41
+ * `only` - only
42
+ * `exclude` - exclude
43
+ * `None` - None
44
+ """
45
+
46
+ only_with_annotations: typing.Optional[bool] = None
47
+ reviewed: typing.Optional[LseTaskFilterOptionsRequestReviewed] = pydantic.Field(default=None)
48
+ """
49
+ `only` - include all reviewed tasks<br>`exclude` - exclude all reviewed tasks
50
+
51
+ * `only` - only
52
+ * `exclude` - exclude
53
+ * `None` - None
54
+ """
55
+
56
+ if IS_PYDANTIC_V2:
57
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
58
+ else:
59
+
60
+ class Config:
61
+ frozen = True
62
+ smart_union = True
63
+ extra = pydantic.Extra.allow
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .annotated_enum import AnnotatedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsRequestAnnotated = typing.Union[AnnotatedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .finished_enum import FinishedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsRequestFinished = typing.Union[FinishedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .reviewed_enum import ReviewedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsRequestReviewed = typing.Union[ReviewedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .skipped_enum import SkippedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsRequestSkipped = typing.Union[SkippedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .reviewed_enum import ReviewedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsReviewed = typing.Union[ReviewedEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .skipped_enum import SkippedEnum
5
+ from .null_enum import NullEnum
6
+
7
+ LseTaskFilterOptionsSkipped = typing.Union[SkippedEnum, NullEnum]
@@ -1,21 +1,20 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
- from .data_manager_task_serializer_predictions_item_model_run import DataManagerTaskSerializerPredictionsItemModelRun
6
5
  import datetime as dt
7
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
7
  import pydantic
9
8
 
10
9
 
11
- class DataManagerTaskSerializerPredictionsItem(UniversalBaseModel):
10
+ class LseTaskPredictionsItem(UncheckedBaseModel):
12
11
  result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
13
12
  score: typing.Optional[float] = None
14
13
  model_version: typing.Optional[str] = None
15
14
  model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
16
- model_run: typing.Optional[DataManagerTaskSerializerPredictionsItemModelRun] = None
15
+ model_run: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
17
16
  task: typing.Optional[int] = None
18
- project: typing.Optional[float] = None
17
+ project: typing.Optional[int] = None
19
18
  created_at: typing.Optional[dt.datetime] = None
20
19
  updated_at: typing.Optional[dt.datetime] = None
21
20
 
@@ -0,0 +1,54 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import datetime as dt
6
+ import pydantic
7
+ from .lse_task_serializer_for_annotators_drafts_item import LseTaskSerializerForAnnotatorsDraftsItem
8
+ from .lse_task_serializer_for_annotators_predictions_item import LseTaskSerializerForAnnotatorsPredictionsItem
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+
11
+
12
+ class LseTaskSerializerForAnnotators(UncheckedBaseModel):
13
+ """
14
+ Task Serializer with project scheme configs validation
15
+ """
16
+
17
+ id: int
18
+ data: typing.Optional[typing.Any] = None
19
+ created_at: dt.datetime = pydantic.Field()
20
+ """
21
+ Time a task was created
22
+ """
23
+
24
+ annotations: str
25
+ drafts: typing.List[LseTaskSerializerForAnnotatorsDraftsItem] = pydantic.Field()
26
+ """
27
+ Drafts for this task
28
+ """
29
+
30
+ total_annotations: typing.Optional[int] = None
31
+ cancelled_annotations: typing.Optional[int] = None
32
+ annotations_results: str
33
+ predictions: typing.List[LseTaskSerializerForAnnotatorsPredictionsItem] = pydantic.Field()
34
+ """
35
+ Predictions for this task
36
+ """
37
+
38
+ total_predictions: typing.Optional[int] = None
39
+ predictions_score: typing.Optional[float] = None
40
+ predictions_results: str
41
+ comments: str
42
+ comment_count: str
43
+ unresolved_comment_count: str
44
+ reviews_rejected: typing.Optional[int] = None
45
+ draft_exists: typing.Optional[bool] = None
46
+
47
+ if IS_PYDANTIC_V2:
48
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
49
+ else:
50
+
51
+ class Config:
52
+ frozen = True
53
+ smart_union = True
54
+ extra = pydantic.Extra.allow
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import datetime as dt
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class LseTaskSerializerForAnnotatorsDraftsItem(UncheckedBaseModel):
11
+ result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
12
+ created_at: typing.Optional[dt.datetime] = None
13
+ updated_at: typing.Optional[dt.datetime] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow