label-studio-sdk 1.0.20__py3-none-any.whl → 2.0.0__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 (410) hide show
  1. label_studio_sdk/__init__.py +325 -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 +28 -24
  18. label_studio_sdk/comments/client.py +378 -140
  19. label_studio_sdk/converter/README.md +207 -0
  20. label_studio_sdk/converter/imports/coco.py +132 -23
  21. label_studio_sdk/core/__init__.py +4 -0
  22. label_studio_sdk/core/unchecked_base_model.py +305 -0
  23. label_studio_sdk/environment.py +1 -1
  24. label_studio_sdk/errors/__init__.py +10 -1
  25. label_studio_sdk/errors/forbidden_error.py +9 -0
  26. label_studio_sdk/errors/method_not_allowed_error.py +9 -0
  27. label_studio_sdk/export_storage/__init__.py +1 -24
  28. label_studio_sdk/export_storage/azure/__init__.py +0 -3
  29. label_studio_sdk/export_storage/azure/client.py +231 -273
  30. label_studio_sdk/export_storage/client.py +5 -5
  31. label_studio_sdk/export_storage/gcs/__init__.py +0 -3
  32. label_studio_sdk/export_storage/gcs/client.py +231 -273
  33. label_studio_sdk/export_storage/local/__init__.py +0 -3
  34. label_studio_sdk/export_storage/local/client.py +211 -253
  35. label_studio_sdk/export_storage/redis/__init__.py +0 -3
  36. label_studio_sdk/export_storage/redis/client.py +239 -281
  37. label_studio_sdk/export_storage/s3/__init__.py +0 -3
  38. label_studio_sdk/export_storage/s3/client.py +254 -296
  39. label_studio_sdk/export_storage/s3s/client.py +694 -210
  40. label_studio_sdk/export_storage/types/export_storage_list_types_response_item.py +2 -2
  41. label_studio_sdk/files/client.py +52 -71
  42. label_studio_sdk/import_storage/__init__.py +1 -24
  43. label_studio_sdk/import_storage/azure/__init__.py +0 -3
  44. label_studio_sdk/import_storage/azure/client.py +249 -299
  45. label_studio_sdk/import_storage/client.py +5 -5
  46. label_studio_sdk/import_storage/gcs/__init__.py +0 -3
  47. label_studio_sdk/import_storage/gcs/client.py +249 -299
  48. label_studio_sdk/import_storage/local/__init__.py +0 -3
  49. label_studio_sdk/import_storage/local/client.py +211 -257
  50. label_studio_sdk/import_storage/redis/__init__.py +0 -3
  51. label_studio_sdk/import_storage/redis/client.py +239 -285
  52. label_studio_sdk/import_storage/s3/__init__.py +0 -3
  53. label_studio_sdk/import_storage/s3/client.py +274 -324
  54. label_studio_sdk/import_storage/s3s/client.py +728 -434
  55. label_studio_sdk/import_storage/types/import_storage_list_types_response_item.py +2 -2
  56. label_studio_sdk/jwt_settings/client.py +56 -58
  57. label_studio_sdk/label_interface/control_tags.py +48 -8
  58. label_studio_sdk/label_interface/interface.py +261 -56
  59. label_studio_sdk/ml/__init__.py +2 -16
  60. label_studio_sdk/ml/client.py +196 -179
  61. label_studio_sdk/ml/types/__init__.py +2 -12
  62. label_studio_sdk/ml/types/ml_list_model_versions_response.py +20 -0
  63. label_studio_sdk/model_providers/__init__.py +3 -0
  64. label_studio_sdk/model_providers/client.py +280 -228
  65. label_studio_sdk/model_providers/types/__init__.py +5 -0
  66. label_studio_sdk/{prompts/types/prompts_batch_predictions_response.py → model_providers/types/model_providers_list_model_provider_choices_response.py} +3 -3
  67. label_studio_sdk/organizations/__init__.py +5 -0
  68. label_studio_sdk/organizations/client.py +331 -0
  69. label_studio_sdk/organizations/members/__init__.py +2 -0
  70. label_studio_sdk/organizations/members/client.py +290 -0
  71. label_studio_sdk/predictions/client.py +29 -77
  72. label_studio_sdk/projects/__init__.py +18 -9
  73. label_studio_sdk/projects/client.py +905 -414
  74. label_studio_sdk/projects/exports/__init__.py +2 -2
  75. label_studio_sdk/projects/exports/client.py +336 -396
  76. label_studio_sdk/projects/exports/client_ext.py +30 -30
  77. label_studio_sdk/projects/exports/types/__init__.py +1 -2
  78. label_studio_sdk/projects/exports/types/exports_convert_response.py +5 -9
  79. label_studio_sdk/projects/pauses/client.py +114 -105
  80. label_studio_sdk/projects/stats/__init__.py +5 -0
  81. label_studio_sdk/projects/stats/client.py +175 -0
  82. label_studio_sdk/projects/stats/types/__init__.py +8 -0
  83. label_studio_sdk/projects/stats/types/stats_iaa_response.py +44 -0
  84. label_studio_sdk/projects/stats/types/stats_iaa_response_common_tasks.py +7 -0
  85. label_studio_sdk/projects/stats/types/stats_iaa_response_iaa.py +5 -0
  86. label_studio_sdk/{types/base_task_file_upload.py → projects/stats/types/stats_iaa_response_std.py} +1 -1
  87. label_studio_sdk/projects/types/__init__.py +10 -6
  88. label_studio_sdk/projects/types/lse_project_create_request_sampling.py +7 -0
  89. label_studio_sdk/projects/types/lse_project_create_request_skip_queue.py +7 -0
  90. label_studio_sdk/projects/types/patched_lse_project_update_request_sampling.py +7 -0
  91. label_studio_sdk/projects/types/patched_lse_project_update_request_skip_queue.py +7 -0
  92. label_studio_sdk/{prompts/types/prompts_batch_failed_predictions_response.py → projects/types/projects_duplicate_response.py} +8 -5
  93. label_studio_sdk/projects/types/projects_import_tasks_response.py +2 -2
  94. label_studio_sdk/projects/types/projects_list_request_filter.py +1 -1
  95. label_studio_sdk/prompts/__init__.py +4 -10
  96. label_studio_sdk/prompts/client.py +511 -442
  97. label_studio_sdk/prompts/indicators/__init__.py +3 -0
  98. label_studio_sdk/prompts/indicators/client.py +47 -49
  99. label_studio_sdk/prompts/indicators/types/__init__.py +5 -0
  100. label_studio_sdk/{types/key_indicator_value.py → prompts/indicators/types/indicators_list_response_item.py} +3 -3
  101. label_studio_sdk/prompts/runs/client.py +113 -135
  102. label_studio_sdk/prompts/types/__init__.py +2 -12
  103. label_studio_sdk/prompts/types/prompts_compatible_projects_request_project_type.py +7 -0
  104. label_studio_sdk/prompts/versions/client.py +372 -312
  105. label_studio_sdk/tasks/__init__.py +2 -2
  106. label_studio_sdk/tasks/client.py +514 -213
  107. label_studio_sdk/tasks/types/__init__.py +1 -2
  108. label_studio_sdk/tokens/client.py +160 -152
  109. label_studio_sdk/tokens/client_ext.py +3 -3
  110. label_studio_sdk/types/__init__.py +258 -142
  111. label_studio_sdk/{webhooks/types/webhooks_update_request_actions_item.py → types/actions_enum.py} +4 -1
  112. label_studio_sdk/types/all_roles_project_list.py +197 -0
  113. label_studio_sdk/types/all_roles_project_list_sampling.py +7 -0
  114. label_studio_sdk/types/all_roles_project_list_skip_queue.py +7 -0
  115. label_studio_sdk/types/annotated_enum.py +5 -0
  116. label_studio_sdk/types/annotation.py +24 -10
  117. label_studio_sdk/types/annotation_last_action.py +3 -15
  118. label_studio_sdk/types/{annotations_dm_field.py → annotation_request.py} +21 -30
  119. label_studio_sdk/types/annotation_request_last_action.py +7 -0
  120. label_studio_sdk/types/assignment_settings.py +31 -0
  121. label_studio_sdk/types/assignment_settings_label_stream_task_distribution.py +7 -0
  122. label_studio_sdk/types/assignment_settings_request.py +32 -0
  123. label_studio_sdk/types/assignment_settings_request_label_stream_task_distribution.py +7 -0
  124. label_studio_sdk/types/{key_indicators_item_additional_kpis_item.py → associated_project.py} +9 -6
  125. label_studio_sdk/types/auth_method_enum.py +5 -0
  126. label_studio_sdk/types/azure_blob_export_storage.py +8 -12
  127. label_studio_sdk/types/azure_blob_import_storage.py +8 -12
  128. label_studio_sdk/types/{prompt_associated_projects_item_id.py → batch_failed_predictions.py} +4 -4
  129. label_studio_sdk/types/{access_token_response.py → batch_predictions.py} +6 -8
  130. label_studio_sdk/types/blank_enum.py +5 -0
  131. label_studio_sdk/types/{key_indicators_item_extra_kpis_item.py → blueprint_list.py} +12 -6
  132. label_studio_sdk/types/budget_reset_period_enum.py +5 -0
  133. label_studio_sdk/types/child_filter.py +44 -0
  134. label_studio_sdk/types/comment.py +39 -14
  135. label_studio_sdk/types/comment_request.py +32 -0
  136. label_studio_sdk/types/comment_serializer_with_expanded_user.py +53 -0
  137. label_studio_sdk/types/converted_format.py +5 -5
  138. label_studio_sdk/types/{api_token_response.py → converted_format_request.py} +8 -15
  139. label_studio_sdk/types/custom_scripts_editable_by_enum.py +5 -0
  140. label_studio_sdk/types/default_role_enum.py +5 -0
  141. label_studio_sdk/types/edition_enum.py +5 -0
  142. label_studio_sdk/types/export.py +7 -7
  143. label_studio_sdk/types/file_upload.py +5 -5
  144. label_studio_sdk/types/filter.py +9 -6
  145. label_studio_sdk/types/filter_group.py +3 -3
  146. label_studio_sdk/types/finished_enum.py +5 -0
  147. label_studio_sdk/types/gcs_export_storage.py +8 -12
  148. label_studio_sdk/types/gcs_import_storage.py +8 -12
  149. label_studio_sdk/types/{rotate_token_response.py → hotkeys.py} +5 -8
  150. label_studio_sdk/types/{base_task.py → import_api_request.py} +11 -34
  151. label_studio_sdk/types/inference_run_cost_estimate.py +2 -2
  152. label_studio_sdk/types/label_stream_task_distribution_enum.py +5 -0
  153. label_studio_sdk/types/{annotations_dm_field_last_action.py → last_action_enum.py} +1 -1
  154. label_studio_sdk/types/local_files_export_storage.py +8 -12
  155. label_studio_sdk/types/local_files_import_storage.py +8 -12
  156. label_studio_sdk/types/{annotation_filter_options.py → lse_annotation_filter_options.py} +12 -2
  157. label_studio_sdk/types/lse_annotation_filter_options_request.py +42 -0
  158. label_studio_sdk/types/lse_annotation_filter_options_request_reviewed.py +7 -0
  159. label_studio_sdk/types/lse_annotation_filter_options_reviewed.py +7 -0
  160. label_studio_sdk/types/{export_snapshot.py → lse_export_create.py} +11 -11
  161. label_studio_sdk/types/lse_fields.py +49 -0
  162. label_studio_sdk/types/lse_fields_onboarding_state.py +8 -0
  163. label_studio_sdk/types/lse_fields_trial_role.py +8 -0
  164. label_studio_sdk/types/lse_key_indicator_value.py +35 -0
  165. label_studio_sdk/types/lse_organization.py +57 -0
  166. label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +7 -0
  167. label_studio_sdk/types/lse_project_create.py +196 -0
  168. label_studio_sdk/types/lse_project_create_sampling.py +7 -0
  169. label_studio_sdk/types/lse_project_create_skip_queue.py +7 -0
  170. label_studio_sdk/types/lse_project_update.py +215 -0
  171. label_studio_sdk/types/lse_project_update_sampling.py +7 -0
  172. label_studio_sdk/types/lse_project_update_skip_queue.py +7 -0
  173. label_studio_sdk/types/lse_s3export_storage.py +134 -0
  174. label_studio_sdk/{import_storage/s3/types/s3create_response.py → types/lse_s3export_storage_request.py} +47 -21
  175. label_studio_sdk/{import_storage/s3/types/s3update_response.py → types/lse_s3import_storage.py} +60 -21
  176. label_studio_sdk/types/{s3s_import_storage.py → lse_s3import_storage_request.py} +32 -21
  177. label_studio_sdk/types/lse_task.py +117 -0
  178. label_studio_sdk/types/{data_manager_task_serializer_drafts_item.py → lse_task_drafts_item.py} +2 -2
  179. label_studio_sdk/types/lse_task_filter_options.py +63 -0
  180. label_studio_sdk/types/lse_task_filter_options_annotated.py +7 -0
  181. label_studio_sdk/types/lse_task_filter_options_finished.py +7 -0
  182. label_studio_sdk/types/lse_task_filter_options_request.py +63 -0
  183. label_studio_sdk/types/lse_task_filter_options_request_annotated.py +7 -0
  184. label_studio_sdk/types/lse_task_filter_options_request_finished.py +7 -0
  185. label_studio_sdk/types/lse_task_filter_options_request_reviewed.py +7 -0
  186. label_studio_sdk/types/lse_task_filter_options_request_skipped.py +7 -0
  187. label_studio_sdk/types/lse_task_filter_options_reviewed.py +7 -0
  188. label_studio_sdk/types/lse_task_filter_options_skipped.py +7 -0
  189. label_studio_sdk/types/{data_manager_task_serializer_predictions_item.py → lse_task_predictions_item.py} +4 -5
  190. label_studio_sdk/types/lse_task_serializer_for_annotators.py +54 -0
  191. label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +22 -0
  192. label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +28 -0
  193. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +117 -0
  194. label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +22 -0
  195. label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +28 -0
  196. label_studio_sdk/types/lse_user.py +49 -0
  197. label_studio_sdk/types/{base_user.py → lse_user_api.py} +17 -6
  198. label_studio_sdk/types/lseapi_token_create.py +21 -0
  199. label_studio_sdk/types/lseapi_token_list.py +21 -0
  200. label_studio_sdk/types/lsejwt_settings.py +32 -0
  201. label_studio_sdk/types/maybe_expanded_comment.py +7 -0
  202. label_studio_sdk/types/ml_backend.py +16 -17
  203. label_studio_sdk/types/mode_enum.py +5 -0
  204. label_studio_sdk/types/model_interface.py +44 -0
  205. label_studio_sdk/types/model_interface_request.py +40 -0
  206. label_studio_sdk/types/model_interface_serializer_get.py +45 -0
  207. label_studio_sdk/types/model_provider_connection.py +48 -17
  208. label_studio_sdk/types/model_provider_connection_budget_reset_period.py +3 -1
  209. label_studio_sdk/types/model_provider_connection_request.py +71 -0
  210. label_studio_sdk/types/model_run.py +40 -0
  211. label_studio_sdk/types/{inference_run_status.py → model_run_status_enum.py} +1 -1
  212. label_studio_sdk/types/null_enum.py +3 -0
  213. label_studio_sdk/types/onboarding_state_enum.py +7 -0
  214. label_studio_sdk/types/organization_billing.py +20 -0
  215. label_studio_sdk/types/organization_id.py +28 -0
  216. label_studio_sdk/types/organization_invite.py +20 -0
  217. label_studio_sdk/types/organization_member.py +37 -0
  218. label_studio_sdk/types/organization_membership.py +24 -0
  219. label_studio_sdk/{projects/types/projects_list_response.py → types/paginated_all_roles_project_list_list.py} +5 -5
  220. label_studio_sdk/types/{jwt_settings_response.py → paginated_role_based_task_list.py} +11 -9
  221. label_studio_sdk/types/pause.py +55 -14
  222. label_studio_sdk/types/pause_request.py +41 -0
  223. label_studio_sdk/types/prediction.py +7 -11
  224. label_studio_sdk/types/prediction_request.py +56 -0
  225. label_studio_sdk/types/project.py +32 -39
  226. label_studio_sdk/types/project_import.py +12 -13
  227. label_studio_sdk/types/project_label_config.py +2 -2
  228. label_studio_sdk/types/project_label_config_request.py +22 -0
  229. label_studio_sdk/types/project_sampling.py +3 -3
  230. label_studio_sdk/types/project_skip_queue.py +3 -1
  231. label_studio_sdk/types/project_subset_enum.py +5 -0
  232. label_studio_sdk/types/{prompt_version_provider.py → provider_enum.py} +1 -1
  233. label_studio_sdk/types/reason_enum.py +7 -0
  234. label_studio_sdk/types/redis_export_storage.py +8 -12
  235. label_studio_sdk/types/redis_import_storage.py +8 -12
  236. label_studio_sdk/types/refined_prompt_response.py +5 -6
  237. label_studio_sdk/types/requeue_rejected_tasks_mode_enum.py +5 -0
  238. label_studio_sdk/types/review_criteria_enum.py +5 -0
  239. label_studio_sdk/types/review_settings.py +80 -0
  240. label_studio_sdk/types/review_settings_request.py +80 -0
  241. label_studio_sdk/types/review_settings_request_requeue_rejected_tasks_mode.py +8 -0
  242. label_studio_sdk/types/review_settings_request_review_criteria.py +7 -0
  243. label_studio_sdk/types/review_settings_requeue_rejected_tasks_mode.py +8 -0
  244. label_studio_sdk/types/review_settings_review_criteria.py +7 -0
  245. label_studio_sdk/types/reviewed_enum.py +5 -0
  246. label_studio_sdk/types/role_based_task.py +8 -0
  247. label_studio_sdk/types/s3export_storage.py +8 -12
  248. label_studio_sdk/types/s3import_storage.py +8 -12
  249. label_studio_sdk/types/sampling_enum.py +7 -0
  250. label_studio_sdk/types/scope_enum.py +5 -0
  251. label_studio_sdk/types/selected_items_request.py +23 -0
  252. label_studio_sdk/types/serialization_option.py +2 -6
  253. label_studio_sdk/types/serialization_option_request.py +22 -0
  254. label_studio_sdk/types/serialization_options.py +17 -5
  255. label_studio_sdk/types/serialization_options_request.py +47 -0
  256. label_studio_sdk/types/skill_name_enum.py +5 -0
  257. label_studio_sdk/types/skip_queue_enum.py +5 -0
  258. label_studio_sdk/types/skipped_enum.py +5 -0
  259. label_studio_sdk/types/state_enum.py +5 -0
  260. label_studio_sdk/types/status7bf_enum.py +5 -0
  261. label_studio_sdk/types/{azure_blob_import_storage_status.py → status_c5a_enum.py} +2 -2
  262. label_studio_sdk/types/third_party_model_version.py +65 -0
  263. label_studio_sdk/types/third_party_model_version_request.py +54 -0
  264. label_studio_sdk/types/token_refresh_response.py +19 -0
  265. label_studio_sdk/types/token_rotate_response.py +19 -0
  266. label_studio_sdk/types/trial_role_enum.py +16 -0
  267. label_studio_sdk/types/user_simple.py +8 -5
  268. label_studio_sdk/types/user_simple_request.py +28 -0
  269. label_studio_sdk/types/version_response.py +49 -0
  270. label_studio_sdk/types/view.py +8 -15
  271. label_studio_sdk/types/webhook.py +9 -13
  272. label_studio_sdk/types/webhook_serializer_for_update.py +15 -13
  273. label_studio_sdk/types/workspace.py +14 -34
  274. label_studio_sdk/types/workspace_member_create.py +27 -0
  275. label_studio_sdk/types/workspace_member_list.py +24 -0
  276. label_studio_sdk/users/client.py +604 -87
  277. label_studio_sdk/users/types/users_get_token_response.py +4 -11
  278. label_studio_sdk/users/types/users_reset_token_response.py +4 -11
  279. label_studio_sdk/versions/__init__.py +0 -3
  280. label_studio_sdk/versions/client.py +14 -14
  281. label_studio_sdk/views/client.py +227 -141
  282. label_studio_sdk/views/types/views_create_request_data.py +2 -2
  283. label_studio_sdk/views/types/views_create_request_data_filters.py +2 -2
  284. label_studio_sdk/views/types/views_create_request_data_filters_items_item.py +2 -2
  285. label_studio_sdk/views/types/views_update_request_data.py +2 -2
  286. label_studio_sdk/views/types/views_update_request_data_filters.py +2 -2
  287. label_studio_sdk/views/types/views_update_request_data_filters_items_item.py +2 -2
  288. label_studio_sdk/webhooks/__init__.py +36 -2
  289. label_studio_sdk/webhooks/client.py +173 -367
  290. label_studio_sdk/webhooks/types/__init__.py +34 -2
  291. label_studio_sdk/webhooks/types/webhooks_info_response.py +80 -0
  292. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +24 -0
  293. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +24 -0
  294. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +24 -0
  295. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +24 -0
  296. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +24 -0
  297. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +24 -0
  298. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +24 -0
  299. label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +24 -0
  300. label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +24 -0
  301. label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +24 -0
  302. label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +24 -0
  303. label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +24 -0
  304. label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +24 -0
  305. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +24 -0
  306. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +24 -0
  307. label_studio_sdk/workspaces/__init__.py +1 -2
  308. label_studio_sdk/workspaces/client.py +97 -117
  309. label_studio_sdk/workspaces/members/__init__.py +0 -3
  310. label_studio_sdk/workspaces/members/client.py +65 -81
  311. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/METADATA +1 -1
  312. label_studio_sdk-2.0.0.dist-info/RECORD +424 -0
  313. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/WHEEL +1 -1
  314. label_studio_sdk/annotations/types/annotations_create_bulk_request_selected_items.py +0 -34
  315. label_studio_sdk/export_storage/azure/types/__init__.py +0 -6
  316. label_studio_sdk/export_storage/azure/types/azure_create_response.py +0 -57
  317. label_studio_sdk/export_storage/azure/types/azure_update_response.py +0 -57
  318. label_studio_sdk/export_storage/gcs/types/__init__.py +0 -6
  319. label_studio_sdk/export_storage/gcs/types/gcs_create_response.py +0 -57
  320. label_studio_sdk/export_storage/gcs/types/gcs_update_response.py +0 -57
  321. label_studio_sdk/export_storage/local/types/__init__.py +0 -6
  322. label_studio_sdk/export_storage/local/types/local_create_response.py +0 -47
  323. label_studio_sdk/export_storage/local/types/local_update_response.py +0 -47
  324. label_studio_sdk/export_storage/redis/types/__init__.py +0 -6
  325. label_studio_sdk/export_storage/redis/types/redis_create_response.py +0 -62
  326. label_studio_sdk/export_storage/redis/types/redis_update_response.py +0 -62
  327. label_studio_sdk/export_storage/s3/types/__init__.py +0 -6
  328. label_studio_sdk/export_storage/s3/types/s3create_response.py +0 -81
  329. label_studio_sdk/export_storage/s3/types/s3update_response.py +0 -81
  330. label_studio_sdk/import_storage/azure/types/__init__.py +0 -6
  331. label_studio_sdk/import_storage/azure/types/azure_create_response.py +0 -72
  332. label_studio_sdk/import_storage/azure/types/azure_update_response.py +0 -72
  333. label_studio_sdk/import_storage/gcs/types/__init__.py +0 -6
  334. label_studio_sdk/import_storage/gcs/types/gcs_create_response.py +0 -72
  335. label_studio_sdk/import_storage/gcs/types/gcs_update_response.py +0 -72
  336. label_studio_sdk/import_storage/local/types/__init__.py +0 -6
  337. label_studio_sdk/import_storage/local/types/local_create_response.py +0 -47
  338. label_studio_sdk/import_storage/local/types/local_update_response.py +0 -47
  339. label_studio_sdk/import_storage/redis/types/__init__.py +0 -6
  340. label_studio_sdk/import_storage/redis/types/redis_create_response.py +0 -62
  341. label_studio_sdk/import_storage/redis/types/redis_update_response.py +0 -62
  342. label_studio_sdk/import_storage/s3/types/__init__.py +0 -6
  343. label_studio_sdk/ml/types/ml_create_response.py +0 -68
  344. label_studio_sdk/ml/types/ml_create_response_auth_method.py +0 -5
  345. label_studio_sdk/ml/types/ml_update_response.py +0 -68
  346. label_studio_sdk/ml/types/ml_update_response_auth_method.py +0 -5
  347. label_studio_sdk/projects/exports/types/exports_list_formats_response_item.py +0 -44
  348. label_studio_sdk/projects/types/projects_create_response.py +0 -91
  349. label_studio_sdk/projects/types/projects_update_response.py +0 -96
  350. label_studio_sdk/prompts/types/prompts_batch_failed_predictions_request_failed_predictions_item.py +0 -32
  351. label_studio_sdk/prompts/types/prompts_batch_predictions_request_results_item.py +0 -59
  352. label_studio_sdk/tasks/types/tasks_list_response.py +0 -38
  353. label_studio_sdk/types/annotation_completed_by.py +0 -6
  354. label_studio_sdk/types/azure_blob_export_storage_status.py +0 -7
  355. label_studio_sdk/types/base_task_updated_by.py +0 -7
  356. label_studio_sdk/types/comment_created_by.py +0 -5
  357. label_studio_sdk/types/converted_format_status.py +0 -5
  358. label_studio_sdk/types/data_manager_task_serializer.py +0 -118
  359. label_studio_sdk/types/data_manager_task_serializer_annotators_item.py +0 -5
  360. label_studio_sdk/types/data_manager_task_serializer_comment_authors_item.py +0 -5
  361. label_studio_sdk/types/data_manager_task_serializer_predictions_item_model_run.py +0 -5
  362. label_studio_sdk/types/export_format.py +0 -25
  363. label_studio_sdk/types/export_snapshot_status.py +0 -5
  364. label_studio_sdk/types/export_status.py +0 -5
  365. label_studio_sdk/types/gcs_export_storage_status.py +0 -7
  366. label_studio_sdk/types/gcs_import_storage_status.py +0 -7
  367. label_studio_sdk/types/inference_run.py +0 -34
  368. label_studio_sdk/types/inference_run_created_by.py +0 -5
  369. label_studio_sdk/types/inference_run_organization.py +0 -5
  370. label_studio_sdk/types/inference_run_project_subset.py +0 -5
  371. label_studio_sdk/types/key_indicators.py +0 -6
  372. label_studio_sdk/types/key_indicators_item.py +0 -41
  373. label_studio_sdk/types/local_files_export_storage_status.py +0 -7
  374. label_studio_sdk/types/local_files_import_storage_status.py +0 -7
  375. label_studio_sdk/types/ml_backend_auth_method.py +0 -5
  376. label_studio_sdk/types/ml_backend_state.py +0 -5
  377. label_studio_sdk/types/model_provider_connection_created_by.py +0 -5
  378. label_studio_sdk/types/model_provider_connection_organization.py +0 -5
  379. label_studio_sdk/types/model_provider_connection_provider.py +0 -7
  380. label_studio_sdk/types/model_provider_connection_scope.py +0 -5
  381. label_studio_sdk/types/pause_paused_by.py +0 -5
  382. label_studio_sdk/types/project_import_status.py +0 -5
  383. label_studio_sdk/types/prompt.py +0 -71
  384. label_studio_sdk/types/prompt_associated_projects_item.py +0 -6
  385. label_studio_sdk/types/prompt_created_by.py +0 -5
  386. label_studio_sdk/types/prompt_organization.py +0 -5
  387. label_studio_sdk/types/prompt_version.py +0 -32
  388. label_studio_sdk/types/prompt_version_created_by.py +0 -5
  389. label_studio_sdk/types/prompt_version_organization.py +0 -5
  390. label_studio_sdk/types/redis_export_storage_status.py +0 -7
  391. label_studio_sdk/types/redis_import_storage_status.py +0 -7
  392. label_studio_sdk/types/refined_prompt_response_refinement_status.py +0 -7
  393. label_studio_sdk/types/s3export_storage_status.py +0 -7
  394. label_studio_sdk/types/s3import_storage_status.py +0 -7
  395. label_studio_sdk/types/s3s_export_storage.py +0 -73
  396. label_studio_sdk/types/s3s_import_storage_status.py +0 -7
  397. label_studio_sdk/types/task.py +0 -156
  398. label_studio_sdk/types/task_annotators_item.py +0 -5
  399. label_studio_sdk/types/task_comment_authors_item.py +0 -5
  400. label_studio_sdk/types/task_filter_options.py +0 -39
  401. label_studio_sdk/types/webhook_actions_item.py +0 -21
  402. label_studio_sdk/types/webhook_serializer_for_update_actions_item.py +0 -21
  403. label_studio_sdk/versions/types/__init__.py +0 -6
  404. label_studio_sdk/versions/types/versions_get_response.py +0 -73
  405. label_studio_sdk/versions/types/versions_get_response_edition.py +0 -5
  406. label_studio_sdk/workspaces/members/types/__init__.py +0 -6
  407. label_studio_sdk/workspaces/members/types/members_create_response.py +0 -22
  408. label_studio_sdk/workspaces/members/types/members_list_response_item.py +0 -22
  409. label_studio_sdk-1.0.20.dist-info/RECORD +0 -374
  410. {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/LICENSE +0 -0
@@ -0,0 +1,197 @@
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 .all_roles_project_list_sampling import AllRolesProjectListSampling
7
+ from .user_simple import UserSimple
8
+ import datetime as dt
9
+ from .blueprint_list import BlueprintList
10
+ from .assignment_settings import AssignmentSettings
11
+ from .all_roles_project_list_skip_queue import AllRolesProjectListSkipQueue
12
+ from .review_settings import ReviewSettings
13
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
14
+
15
+
16
+ class AllRolesProjectList(UncheckedBaseModel):
17
+ """
18
+ Serializer get numbers from project queryset annotation,
19
+ make sure, that you use correct one(Project.objects.with_counts())
20
+ """
21
+
22
+ workspace_title: str
23
+ ready: str
24
+ overlap_cohort_percentage: typing.Optional[int] = None
25
+ queue_left: str
26
+ config_suitable_for_bulk_annotation: bool = pydantic.Field()
27
+ """
28
+ Flag to detect is project ready for bulk annotation
29
+ """
30
+
31
+ has_blueprints: str
32
+ show_overlap_first: typing.Optional[bool] = None
33
+ queue_total: str
34
+ enable_empty_annotation: typing.Optional[bool] = pydantic.Field(default=None)
35
+ """
36
+ Allow annotators to submit empty annotations
37
+ """
38
+
39
+ custom_task_lock_ttl: typing.Optional[int] = pydantic.Field(default=None)
40
+ """
41
+ TTL in seconds for task reservations, on new and existing tasks
42
+ """
43
+
44
+ prompts: str
45
+ start_training_on_annotation_update: bool = pydantic.Field()
46
+ """
47
+ Start model training after any annotations are submitted or updated
48
+ """
49
+
50
+ evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
51
+ """
52
+ Retrieve and display predictions when loading a task
53
+ """
54
+
55
+ show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
56
+ """
57
+ Show instructions to the annotator before they start
58
+ """
59
+
60
+ color: typing.Optional[str] = None
61
+ sampling: typing.Optional[AllRolesProjectListSampling] = None
62
+ created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
63
+ """
64
+ Project owner
65
+ """
66
+
67
+ reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
68
+ """
69
+ Reveal pre-annotations interactively
70
+ """
71
+
72
+ pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
73
+ """
74
+ Pinned date and time
75
+ """
76
+
77
+ finished_task_number: int
78
+ parsed_label_config: typing.Optional[typing.Any] = None
79
+ duplication_done: typing.Optional[bool] = None
80
+ reviewer_queue_total: str
81
+ show_ground_truth_first: typing.Optional[bool] = None
82
+ task_number: int = pydantic.Field()
83
+ """
84
+ Total task number in project
85
+ """
86
+
87
+ num_tasks_with_annotations: str
88
+ description_short: str
89
+ id: int
90
+ allow_stream: str
91
+ annotation_limit_percent: typing.Optional[str] = None
92
+ created_at: dt.datetime
93
+ annotation_limit_count: typing.Optional[int] = None
94
+ queue_done: str
95
+ control_weights: typing.Optional[typing.Optional[typing.Any]] = None
96
+ data_types: typing.Optional[typing.Any] = None
97
+ reviewed_number: str
98
+ total_annotations_number: str
99
+ total_predictions_number: int
100
+ config_has_control_tags: bool = pydantic.Field()
101
+ """
102
+ Flag to detect is project ready for labeling
103
+ """
104
+
105
+ blueprints: typing.List[BlueprintList]
106
+ is_published: typing.Optional[bool] = pydantic.Field(default=None)
107
+ """
108
+ Whether or not the project is published to annotators
109
+ """
110
+
111
+ duplication_status: typing.Optional[str] = None
112
+ review_total_tasks: str
113
+ show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
114
+ """
115
+ Show a skip button in interface and allow annotators to skip the task
116
+ """
117
+
118
+ is_draft: typing.Optional[bool] = pydantic.Field(default=None)
119
+ """
120
+ Whether or not the project is in the middle of being created
121
+ """
122
+
123
+ title: typing.Optional[str] = pydantic.Field(default=None)
124
+ """
125
+ Project name. Must be between 3 and 50 characters long.
126
+ """
127
+
128
+ show_collab_predictions: typing.Optional[bool] = pydantic.Field(default=None)
129
+ """
130
+ If set, the annotator can view model predictions
131
+ """
132
+
133
+ members: str
134
+ min_annotations_to_start_training: typing.Optional[int] = pydantic.Field(default=None)
135
+ """
136
+ Minimum number of completed tasks after which model training is started
137
+ """
138
+
139
+ workspace: str
140
+ organization: typing.Optional[int] = None
141
+ assignment_settings: AssignmentSettings
142
+ annotator_evaluation_minimum_tasks: typing.Optional[int] = None
143
+ skipped_annotations_number: str
144
+ annotator_evaluation_minimum_score: typing.Optional[str] = None
145
+ comment_classification_config: typing.Optional[str] = None
146
+ description: typing.Optional[str] = pydantic.Field(default=None)
147
+ """
148
+ Project description
149
+ """
150
+
151
+ expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
152
+ """
153
+ Labeling instructions in HTML format
154
+ """
155
+
156
+ show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
157
+ """
158
+ Show annotation history to annotator
159
+ """
160
+
161
+ skip_queue: typing.Optional[AllRolesProjectListSkipQueue] = None
162
+ review_settings: ReviewSettings
163
+ members_count: str
164
+ model_version: typing.Optional[str] = pydantic.Field(default=None)
165
+ """
166
+ Machine learning model version
167
+ """
168
+
169
+ useful_annotation_number: str
170
+ custom_script: typing.Optional[str] = None
171
+ require_comment_on_skip: typing.Optional[bool] = None
172
+ ground_truth_number: int = pydantic.Field()
173
+ """
174
+ Honeypot annotation number in project
175
+ """
176
+
177
+ pause_on_failed_annotator_evaluation: typing.Optional[bool] = None
178
+ label_config: typing.Optional[str] = pydantic.Field(default=None)
179
+ """
180
+ Label config in XML format. See more about it in documentation
181
+ """
182
+
183
+ maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
184
+ """
185
+ Maximum number of annotations for one task. If the number of annotations per task is equal or greater to this value, the task is completed (is_labeled=True)
186
+ """
187
+
188
+ rejected: str
189
+
190
+ if IS_PYDANTIC_V2:
191
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
192
+ else:
193
+
194
+ class Config:
195
+ frozen = True
196
+ smart_union = True
197
+ 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 .sampling_enum import SamplingEnum
5
+ from .null_enum import NullEnum
6
+
7
+ AllRolesProjectListSampling = typing.Union[SamplingEnum, NullEnum]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .skip_queue_enum import SkipQueueEnum
5
+ from .null_enum import NullEnum
6
+
7
+ AllRolesProjectListSkipQueue = typing.Union[SkipQueueEnum, NullEnum]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ AnnotatedEnum = typing.Union[typing.Literal["only", "exclude"], typing.Any]
@@ -1,33 +1,31 @@
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 pydantic
6
- from .annotation_completed_by import AnnotationCompletedBy
7
6
  import datetime as dt
8
7
  from .annotation_last_action import AnnotationLastAction
9
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
9
 
11
10
 
12
- class Annotation(UniversalBaseModel):
13
- id: typing.Optional[int] = None
11
+ class Annotation(UncheckedBaseModel):
12
+ id: int
14
13
  result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
15
14
  """
16
15
  List of annotation results for the task
17
16
  """
18
17
 
19
- created_username: typing.Optional[str] = pydantic.Field(default=None)
18
+ created_username: str = pydantic.Field()
20
19
  """
21
20
  Username string
22
21
  """
23
22
 
24
- created_ago: typing.Optional[str] = pydantic.Field(default=None)
23
+ created_ago: str = pydantic.Field()
25
24
  """
26
25
  Time delta from creation time
27
26
  """
28
27
 
29
- completed_by: typing.Optional[AnnotationCompletedBy] = None
30
- unique_id: typing.Optional[str] = None
28
+ completed_by: typing.Optional[int] = None
31
29
  was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
32
30
  """
33
31
  User skipped the task
@@ -38,12 +36,12 @@ class Annotation(UniversalBaseModel):
38
36
  This annotation is a Ground Truth (ground_truth)
39
37
  """
40
38
 
41
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
39
+ created_at: dt.datetime = pydantic.Field()
42
40
  """
43
41
  Creation time
44
42
  """
45
43
 
46
- updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
44
+ updated_at: dt.datetime = pydantic.Field()
47
45
  """
48
46
  Last updated time
49
47
  """
@@ -66,6 +64,22 @@ class Annotation(UniversalBaseModel):
66
64
  last_action: typing.Optional[AnnotationLastAction] = pydantic.Field(default=None)
67
65
  """
68
66
  Action which was performed in the last annotation history item
67
+
68
+ * `prediction` - Created from prediction
69
+ * `propagated_annotation` - Created from another annotation
70
+ * `imported` - Imported
71
+ * `submitted` - Submitted
72
+ * `updated` - Updated
73
+ * `skipped` - Skipped
74
+ * `accepted` - Accepted
75
+ * `rejected` - Rejected
76
+ * `fixed_and_accepted` - Fixed and accepted
77
+ * `deleted_review` - Deleted review
78
+ """
79
+
80
+ bulk_created: typing.Optional[bool] = pydantic.Field(default=None)
81
+ """
82
+ Annotation was created in bulk mode
69
83
  """
70
84
 
71
85
  task: typing.Optional[int] = pydantic.Field(default=None)
@@ -1,19 +1,7 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  import typing
4
+ from .last_action_enum import LastActionEnum
5
+ from .null_enum import NullEnum
4
6
 
5
- AnnotationLastAction = typing.Union[
6
- typing.Literal[
7
- "prediction",
8
- "propagated_annotation",
9
- "imported",
10
- "submitted",
11
- "updated",
12
- "skipped",
13
- "accepted",
14
- "rejected",
15
- "fixed_and_accepted",
16
- "deleted_review",
17
- ],
18
- typing.Any,
19
- ]
7
+ AnnotationLastAction = typing.Union[LastActionEnum, NullEnum]
@@ -1,35 +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
5
  import pydantic
6
6
  import datetime as dt
7
- from .annotations_dm_field_last_action import AnnotationsDmFieldLastAction
7
+ from .annotation_request_last_action import AnnotationRequestLastAction
8
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
- class AnnotationsDmField(UniversalBaseModel):
12
- id: typing.Optional[int] = None
11
+ class AnnotationRequest(UncheckedBaseModel):
13
12
  result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
14
13
  """
15
14
  List of annotation results for the task
16
15
  """
17
16
 
18
- created_username: typing.Optional[str] = pydantic.Field(default=None)
19
- """
20
- Username string
21
- """
22
-
23
- created_ago: typing.Optional[str] = pydantic.Field(default=None)
24
- """
25
- Time delta from creation time
26
- """
27
-
28
- completed_by: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
29
- """
30
- User details who completed this annotation.
31
- """
32
-
17
+ completed_by: typing.Optional[int] = None
33
18
  unique_id: typing.Optional[str] = None
34
19
  was_cancelled: typing.Optional[bool] = pydantic.Field(default=None)
35
20
  """
@@ -41,16 +26,6 @@ class AnnotationsDmField(UniversalBaseModel):
41
26
  This annotation is a Ground Truth (ground_truth)
42
27
  """
43
28
 
44
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
45
- """
46
- Creation time
47
- """
48
-
49
- updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
50
- """
51
- Last updated time
52
- """
53
-
54
29
  draft_created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
55
30
  """
56
31
  Draft creation time
@@ -66,9 +41,25 @@ class AnnotationsDmField(UniversalBaseModel):
66
41
  Original annotation ID that was at the import step or NULL if this annotation wasn't imported
67
42
  """
68
43
 
69
- last_action: typing.Optional[AnnotationsDmFieldLastAction] = pydantic.Field(default=None)
44
+ last_action: typing.Optional[AnnotationRequestLastAction] = pydantic.Field(default=None)
70
45
  """
71
46
  Action which was performed in the last annotation history item
47
+
48
+ * `prediction` - Created from prediction
49
+ * `propagated_annotation` - Created from another annotation
50
+ * `imported` - Imported
51
+ * `submitted` - Submitted
52
+ * `updated` - Updated
53
+ * `skipped` - Skipped
54
+ * `accepted` - Accepted
55
+ * `rejected` - Rejected
56
+ * `fixed_and_accepted` - Fixed and accepted
57
+ * `deleted_review` - Deleted review
58
+ """
59
+
60
+ bulk_created: typing.Optional[bool] = pydantic.Field(default=None)
61
+ """
62
+ Annotation was created in bulk mode
72
63
  """
73
64
 
74
65
  task: typing.Optional[int] = pydantic.Field(default=None)
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .last_action_enum import LastActionEnum
5
+ from .null_enum import NullEnum
6
+
7
+ AnnotationRequestLastAction = typing.Union[LastActionEnum, NullEnum]
@@ -0,0 +1,31 @@
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 .assignment_settings_label_stream_task_distribution import AssignmentSettingsLabelStreamTaskDistribution
6
+ import pydantic
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+
9
+
10
+ class AssignmentSettings(UncheckedBaseModel):
11
+ id: int
12
+ label_stream_task_distribution: typing.Optional[AssignmentSettingsLabelStreamTaskDistribution] = pydantic.Field(
13
+ default=None
14
+ )
15
+ """
16
+ Modes for distributing tasks to annotators
17
+
18
+ * `auto_distribution` - Label Stream distributes tasks automatically to annotators
19
+ * `assigned_only` - Label Stream shows tasks only to assigned users
20
+ """
21
+
22
+ project: typing.Optional[int] = None
23
+
24
+ if IS_PYDANTIC_V2:
25
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
26
+ else:
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ 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 .label_stream_task_distribution_enum import LabelStreamTaskDistributionEnum
5
+ from .null_enum import NullEnum
6
+
7
+ AssignmentSettingsLabelStreamTaskDistribution = typing.Union[LabelStreamTaskDistributionEnum, NullEnum]
@@ -0,0 +1,32 @@
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 .assignment_settings_request_label_stream_task_distribution import (
6
+ AssignmentSettingsRequestLabelStreamTaskDistribution,
7
+ )
8
+ import pydantic
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+
11
+
12
+ class AssignmentSettingsRequest(UncheckedBaseModel):
13
+ label_stream_task_distribution: typing.Optional[AssignmentSettingsRequestLabelStreamTaskDistribution] = (
14
+ pydantic.Field(default=None)
15
+ )
16
+ """
17
+ Modes for distributing tasks to annotators
18
+
19
+ * `auto_distribution` - Label Stream distributes tasks automatically to annotators
20
+ * `assigned_only` - Label Stream shows tasks only to assigned users
21
+ """
22
+
23
+ project: typing.Optional[int] = None
24
+
25
+ if IS_PYDANTIC_V2:
26
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
+ else:
28
+
29
+ class Config:
30
+ frozen = True
31
+ smart_union = True
32
+ 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 .label_stream_task_distribution_enum import LabelStreamTaskDistributionEnum
5
+ from .null_enum import NullEnum
6
+
7
+ AssignmentSettingsRequestLabelStreamTaskDistribution = typing.Union[LabelStreamTaskDistributionEnum, NullEnum]
@@ -1,20 +1,23 @@
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 pydantic
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
 
8
8
 
9
- class KeyIndicatorsItemAdditionalKpisItem(UniversalBaseModel):
10
- key: typing.Optional[str] = pydantic.Field(default=None)
9
+ class AssociatedProject(UncheckedBaseModel):
11
10
  """
12
- The key for this KPI, where you can find the value from inside main_kpi
11
+ A ModelSerializer that takes additional arguments for
12
+ "fields", "omit" and "expand" in order to
13
+ control which fields are displayed, and whether to replace simple
14
+ values with complex, nested serializations
13
15
  """
14
16
 
15
- label: typing.Optional[str] = pydantic.Field(default=None)
17
+ id: int
18
+ title: typing.Optional[str] = pydantic.Field(default=None)
16
19
  """
17
- The label for this KPI, to be displayed to the user
20
+ Project name. Must be between 3 and 50 characters long.
18
21
  """
19
22
 
20
23
  if IS_PYDANTIC_V2:
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ AuthMethodEnum = typing.Union[typing.Literal["NONE", "BASIC_AUTH"], typing.Any]
@@ -1,16 +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 pydantic
6
6
  import datetime as dt
7
- from .azure_blob_export_storage_status import AzureBlobExportStorageStatus
7
+ from .status_c5a_enum import StatusC5AEnum
8
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
- class AzureBlobExportStorage(UniversalBaseModel):
12
- id: typing.Optional[int] = None
13
- type: typing.Optional[str] = None
11
+ class AzureBlobExportStorage(UncheckedBaseModel):
12
+ id: int
13
+ type: str
14
14
  synchronizable: typing.Optional[bool] = None
15
15
  container: typing.Optional[str] = pydantic.Field(default=None)
16
16
  """
@@ -57,17 +57,13 @@ class AzureBlobExportStorage(UniversalBaseModel):
57
57
  Last sync job ID
58
58
  """
59
59
 
60
- status: typing.Optional[AzureBlobExportStorageStatus] = None
60
+ status: typing.Optional[StatusC5AEnum] = None
61
61
  traceback: typing.Optional[str] = pydantic.Field(default=None)
62
62
  """
63
63
  Traceback report for the last failed sync
64
64
  """
65
65
 
66
- meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
67
- """
68
- Meta and debug information about storage processes
69
- """
70
-
66
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
71
67
  title: typing.Optional[str] = pydantic.Field(default=None)
72
68
  """
73
69
  Cloud storage title
@@ -78,7 +74,7 @@ class AzureBlobExportStorage(UniversalBaseModel):
78
74
  Cloud storage description
79
75
  """
80
76
 
81
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
77
+ created_at: dt.datetime = pydantic.Field()
82
78
  """
83
79
  Creation time
84
80
  """
@@ -1,16 +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 pydantic
6
6
  import datetime as dt
7
- from .azure_blob_import_storage_status import AzureBlobImportStorageStatus
7
+ from .status_c5a_enum import StatusC5AEnum
8
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
- class AzureBlobImportStorage(UniversalBaseModel):
12
- id: typing.Optional[int] = None
13
- type: typing.Optional[str] = None
11
+ class AzureBlobImportStorage(UncheckedBaseModel):
12
+ id: int
13
+ type: str
14
14
  synchronizable: typing.Optional[bool] = None
15
15
  presign: typing.Optional[bool] = None
16
16
  container: typing.Optional[str] = pydantic.Field(default=None)
@@ -58,17 +58,13 @@ class AzureBlobImportStorage(UniversalBaseModel):
58
58
  Last sync job ID
59
59
  """
60
60
 
61
- status: typing.Optional[AzureBlobImportStorageStatus] = None
61
+ status: typing.Optional[StatusC5AEnum] = None
62
62
  traceback: typing.Optional[str] = pydantic.Field(default=None)
63
63
  """
64
64
  Traceback report for the last failed sync
65
65
  """
66
66
 
67
- meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
68
- """
69
- Meta and debug information about storage processes
70
- """
71
-
67
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
72
68
  title: typing.Optional[str] = pydantic.Field(default=None)
73
69
  """
74
70
  Cloud storage title
@@ -79,7 +75,7 @@ class AzureBlobImportStorage(UniversalBaseModel):
79
75
  Cloud storage description
80
76
  """
81
77
 
82
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
78
+ created_at: dt.datetime = pydantic.Field()
83
79
  """
84
80
  Creation time
85
81
  """
@@ -1,14 +1,14 @@
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
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
6
  import pydantic
7
7
 
8
8
 
9
- class PromptAssociatedProjectsItemId(UniversalBaseModel):
10
- id: typing.Optional[int] = None
11
- title: typing.Optional[str] = None
9
+ class BatchFailedPredictions(UncheckedBaseModel):
10
+ job_id: str
11
+ failed_predictions: typing.List[typing.Optional[typing.Any]]
12
12
 
13
13
  if IS_PYDANTIC_V2:
14
14
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2