label-studio-sdk 2.0.1__py3-none-any.whl → 2.0.2__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.
- label_studio_sdk/__init__.py +4 -0
- label_studio_sdk/actions/client.py +13 -13
- label_studio_sdk/actions/types/actions_list_response_item.py +3 -3
- label_studio_sdk/actions/types/actions_list_response_item_dialog.py +2 -2
- label_studio_sdk/annotations/client.py +441 -441
- label_studio_sdk/comments/client.py +176 -176
- label_studio_sdk/export_storage/azure/client.py +274 -274
- label_studio_sdk/export_storage/gcs/client.py +263 -263
- label_studio_sdk/export_storage/local/client.py +206 -206
- label_studio_sdk/export_storage/redis/client.py +287 -287
- label_studio_sdk/export_storage/s3/client.py +347 -347
- label_studio_sdk/export_storage/s3s/client.py +678 -678
- label_studio_sdk/import_storage/azure/client.py +357 -357
- label_studio_sdk/import_storage/gcs/client.py +357 -357
- label_studio_sdk/import_storage/local/client.py +206 -206
- label_studio_sdk/import_storage/redis/client.py +309 -309
- label_studio_sdk/import_storage/s3/client.py +452 -452
- label_studio_sdk/import_storage/s3s/client.py +735 -735
- label_studio_sdk/jwt_settings/client.py +10 -10
- label_studio_sdk/ml/client.py +118 -118
- label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
- label_studio_sdk/model_providers/client.py +181 -181
- label_studio_sdk/organizations/members/client.py +8 -8
- label_studio_sdk/predictions/client.py +60 -60
- label_studio_sdk/projects/__init__.py +30 -1
- label_studio_sdk/projects/assignments/__init__.py +33 -0
- label_studio_sdk/projects/assignments/client.py +764 -0
- label_studio_sdk/projects/assignments/types/__init__.py +35 -0
- label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
- label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
- label_studio_sdk/projects/client.py +441 -425
- label_studio_sdk/projects/exports/client.py +55 -55
- label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
- label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
- label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
- label_studio_sdk/prompts/client.py +211 -211
- label_studio_sdk/prompts/runs/client.py +33 -33
- label_studio_sdk/prompts/versions/client.py +72 -72
- label_studio_sdk/tasks/client.py +174 -174
- label_studio_sdk/types/__init__.py +4 -0
- label_studio_sdk/types/all_roles_project_list.py +94 -94
- label_studio_sdk/types/annotation.py +35 -35
- label_studio_sdk/types/annotation_request.py +27 -27
- label_studio_sdk/types/azure_blob_export_storage.py +29 -29
- label_studio_sdk/types/azure_blob_import_storage.py +33 -33
- label_studio_sdk/types/batch_failed_predictions.py +1 -1
- label_studio_sdk/types/billing_checks.py +14 -14
- label_studio_sdk/types/billing_flags.py +16 -16
- label_studio_sdk/types/blueprint_list.py +7 -8
- label_studio_sdk/types/child_filter.py +11 -10
- label_studio_sdk/types/comment.py +15 -15
- label_studio_sdk/types/comment_request.py +7 -8
- label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
- label_studio_sdk/types/converted_format.py +1 -1
- label_studio_sdk/types/converted_format_request.py +1 -1
- label_studio_sdk/types/export.py +8 -8
- label_studio_sdk/types/file_upload.py +3 -2
- label_studio_sdk/types/filter.py +10 -9
- label_studio_sdk/types/filter_group.py +4 -3
- label_studio_sdk/types/gcs_export_storage.py +23 -23
- label_studio_sdk/types/gcs_import_storage.py +27 -27
- label_studio_sdk/types/import_api_request.py +26 -26
- label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
- label_studio_sdk/types/local_files_export_storage.py +23 -23
- label_studio_sdk/types/local_files_import_storage.py +26 -26
- label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
- label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
- label_studio_sdk/types/lse_export_create.py +12 -12
- label_studio_sdk/types/lse_fields.py +14 -14
- label_studio_sdk/types/lse_organization.py +17 -17
- label_studio_sdk/types/lse_organization_member_list.py +1 -1
- label_studio_sdk/types/lse_project_create.py +72 -72
- label_studio_sdk/types/lse_project_update.py +89 -89
- label_studio_sdk/types/lse_s3export_storage.py +46 -46
- label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
- label_studio_sdk/types/lse_s3import_storage.py +53 -53
- label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
- label_studio_sdk/types/lse_task.py +49 -49
- label_studio_sdk/types/lse_task_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_filter_options.py +14 -14
- label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
- label_studio_sdk/types/lse_task_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
- label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
- label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
- label_studio_sdk/types/lse_user.py +13 -13
- label_studio_sdk/types/lse_user_api.py +11 -11
- label_studio_sdk/types/lse_user_organization_member_list.py +13 -13
- label_studio_sdk/types/lseapi_token_create.py +1 -1
- label_studio_sdk/types/lseapi_token_list.py +1 -1
- label_studio_sdk/types/lsejwt_settings.py +5 -5
- label_studio_sdk/types/ml_backend.py +27 -28
- label_studio_sdk/types/model_interface.py +12 -12
- label_studio_sdk/types/model_interface_request.py +7 -8
- label_studio_sdk/types/model_interface_serializer_get.py +13 -13
- label_studio_sdk/types/model_provider_connection.py +34 -34
- label_studio_sdk/types/model_provider_connection_request.py +15 -14
- label_studio_sdk/types/model_run.py +12 -12
- label_studio_sdk/types/organization_billing.py +1 -1
- label_studio_sdk/types/organization_id.py +2 -2
- label_studio_sdk/types/organization_invite.py +1 -1
- label_studio_sdk/types/organization_member.py +8 -9
- label_studio_sdk/types/organization_membership.py +2 -1
- label_studio_sdk/types/pause.py +23 -23
- label_studio_sdk/types/prediction.py +21 -21
- label_studio_sdk/types/prediction_request.py +16 -16
- label_studio_sdk/types/project.py +72 -72
- label_studio_sdk/types/project_import.py +21 -21
- label_studio_sdk/types/redis_export_storage.py +34 -34
- label_studio_sdk/types/redis_import_storage.py +37 -37
- label_studio_sdk/types/refined_prompt_response.py +11 -11
- label_studio_sdk/types/review_settings.py +29 -30
- label_studio_sdk/types/review_settings_request.py +29 -30
- label_studio_sdk/types/s3export_storage.py +45 -45
- label_studio_sdk/types/s3import_storage.py +44 -44
- label_studio_sdk/types/selected_items_request.py +1 -1
- label_studio_sdk/types/serialization_options.py +10 -10
- label_studio_sdk/types/serialization_options_request.py +10 -10
- label_studio_sdk/types/task_assignment.py +43 -0
- label_studio_sdk/types/third_party_model_version.py +11 -11
- label_studio_sdk/types/third_party_model_version_request.py +6 -7
- label_studio_sdk/types/type_enum.py +5 -0
- label_studio_sdk/types/user_simple.py +3 -3
- label_studio_sdk/types/user_simple_request.py +1 -1
- label_studio_sdk/types/version_response.py +19 -20
- label_studio_sdk/types/view.py +8 -8
- label_studio_sdk/types/webhook.py +16 -16
- label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
- label_studio_sdk/types/workspace.py +10 -11
- label_studio_sdk/users/client.py +160 -160
- label_studio_sdk/views/client.py +164 -164
- label_studio_sdk/webhooks/client.py +183 -183
- label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
- label_studio_sdk/workspaces/client.py +40 -40
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +167 -149
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
label_studio_sdk/users/client.py
CHANGED
|
@@ -68,18 +68,18 @@ class UsersClient:
|
|
|
68
68
|
def update_current_user(
|
|
69
69
|
self,
|
|
70
70
|
*,
|
|
71
|
-
first_name: typing.Optional[str] = OMIT,
|
|
72
|
-
last_name: typing.Optional[str] = OMIT,
|
|
73
|
-
username: typing.Optional[str] = OMIT,
|
|
74
|
-
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
75
|
-
phone: typing.Optional[str] = OMIT,
|
|
76
71
|
active_organization: typing.Optional[int] = OMIT,
|
|
77
72
|
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
73
|
+
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
78
74
|
date_joined: typing.Optional[dt.datetime] = OMIT,
|
|
79
|
-
password: typing.Optional[str] = OMIT,
|
|
80
|
-
onboarding_state: typing.Optional[str] = OMIT,
|
|
81
|
-
is_email_verified: typing.Optional[bool] = OMIT,
|
|
82
75
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
76
|
+
first_name: typing.Optional[str] = OMIT,
|
|
77
|
+
is_email_verified: typing.Optional[bool] = OMIT,
|
|
78
|
+
last_name: typing.Optional[str] = OMIT,
|
|
79
|
+
onboarding_state: typing.Optional[str] = OMIT,
|
|
80
|
+
password: typing.Optional[str] = OMIT,
|
|
81
|
+
phone: typing.Optional[str] = OMIT,
|
|
82
|
+
username: typing.Optional[str] = OMIT,
|
|
83
83
|
request_options: typing.Optional[RequestOptions] = None,
|
|
84
84
|
) -> LseUserApi:
|
|
85
85
|
"""
|
|
@@ -87,30 +87,30 @@ class UsersClient:
|
|
|
87
87
|
|
|
88
88
|
Parameters
|
|
89
89
|
----------
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
last_name : typing.Optional[str]
|
|
90
|
+
active_organization : typing.Optional[int]
|
|
93
91
|
|
|
94
|
-
|
|
92
|
+
allow_newsletters : typing.Optional[bool]
|
|
93
|
+
Allow sending newsletters to user
|
|
95
94
|
|
|
96
95
|
custom_hotkeys : typing.Optional[typing.Optional[typing.Any]]
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
date_joined : typing.Optional[dt.datetime]
|
|
99
98
|
|
|
100
|
-
|
|
99
|
+
email_notification_settings : typing.Optional[typing.Optional[typing.Any]]
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
Allow sending newsletters to user
|
|
101
|
+
first_name : typing.Optional[str]
|
|
104
102
|
|
|
105
|
-
|
|
103
|
+
is_email_verified : typing.Optional[bool]
|
|
106
104
|
|
|
107
|
-
|
|
105
|
+
last_name : typing.Optional[str]
|
|
108
106
|
|
|
109
107
|
onboarding_state : typing.Optional[str]
|
|
110
108
|
|
|
111
|
-
|
|
109
|
+
password : typing.Optional[str]
|
|
112
110
|
|
|
113
|
-
|
|
111
|
+
phone : typing.Optional[str]
|
|
112
|
+
|
|
113
|
+
username : typing.Optional[str]
|
|
114
114
|
|
|
115
115
|
request_options : typing.Optional[RequestOptions]
|
|
116
116
|
Request-specific configuration.
|
|
@@ -133,18 +133,18 @@ class UsersClient:
|
|
|
133
133
|
"api/current-user",
|
|
134
134
|
method="PATCH",
|
|
135
135
|
json={
|
|
136
|
-
"first_name": first_name,
|
|
137
|
-
"last_name": last_name,
|
|
138
|
-
"username": username,
|
|
139
|
-
"custom_hotkeys": custom_hotkeys,
|
|
140
|
-
"phone": phone,
|
|
141
136
|
"active_organization": active_organization,
|
|
142
137
|
"allow_newsletters": allow_newsletters,
|
|
138
|
+
"custom_hotkeys": custom_hotkeys,
|
|
143
139
|
"date_joined": date_joined,
|
|
144
|
-
"password": password,
|
|
145
|
-
"onboarding_state": onboarding_state,
|
|
146
|
-
"is_email_verified": is_email_verified,
|
|
147
140
|
"email_notification_settings": email_notification_settings,
|
|
141
|
+
"first_name": first_name,
|
|
142
|
+
"is_email_verified": is_email_verified,
|
|
143
|
+
"last_name": last_name,
|
|
144
|
+
"onboarding_state": onboarding_state,
|
|
145
|
+
"password": password,
|
|
146
|
+
"phone": phone,
|
|
147
|
+
"username": username,
|
|
148
148
|
},
|
|
149
149
|
headers={
|
|
150
150
|
"content-type": "application/json",
|
|
@@ -443,15 +443,15 @@ class UsersClient:
|
|
|
443
443
|
def create(
|
|
444
444
|
self,
|
|
445
445
|
*,
|
|
446
|
-
|
|
447
|
-
first_name: typing.Optional[str] = OMIT,
|
|
448
|
-
last_name: typing.Optional[str] = OMIT,
|
|
449
|
-
username: typing.Optional[str] = OMIT,
|
|
450
|
-
email: typing.Optional[str] = OMIT,
|
|
446
|
+
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
451
447
|
avatar: typing.Optional[str] = OMIT,
|
|
448
|
+
email: typing.Optional[str] = OMIT,
|
|
449
|
+
first_name: typing.Optional[str] = OMIT,
|
|
450
|
+
id: typing.Optional[int] = OMIT,
|
|
452
451
|
initials: typing.Optional[str] = OMIT,
|
|
452
|
+
last_name: typing.Optional[str] = OMIT,
|
|
453
453
|
phone: typing.Optional[str] = OMIT,
|
|
454
|
-
|
|
454
|
+
username: typing.Optional[str] = OMIT,
|
|
455
455
|
request_options: typing.Optional[RequestOptions] = None,
|
|
456
456
|
) -> LseUser:
|
|
457
457
|
"""
|
|
@@ -459,32 +459,32 @@ class UsersClient:
|
|
|
459
459
|
|
|
460
460
|
Parameters
|
|
461
461
|
----------
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
first_name : typing.Optional[str]
|
|
466
|
-
First name of the user
|
|
467
|
-
|
|
468
|
-
last_name : typing.Optional[str]
|
|
469
|
-
Last name of the user
|
|
462
|
+
allow_newsletters : typing.Optional[bool]
|
|
463
|
+
Whether the user allows newsletters
|
|
470
464
|
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
avatar : typing.Optional[str]
|
|
466
|
+
Avatar URL of the user
|
|
473
467
|
|
|
474
468
|
email : typing.Optional[str]
|
|
475
469
|
Email of the user
|
|
476
470
|
|
|
477
|
-
|
|
478
|
-
|
|
471
|
+
first_name : typing.Optional[str]
|
|
472
|
+
First name of the user
|
|
473
|
+
|
|
474
|
+
id : typing.Optional[int]
|
|
475
|
+
User ID
|
|
479
476
|
|
|
480
477
|
initials : typing.Optional[str]
|
|
481
478
|
Initials of the user
|
|
482
479
|
|
|
480
|
+
last_name : typing.Optional[str]
|
|
481
|
+
Last name of the user
|
|
482
|
+
|
|
483
483
|
phone : typing.Optional[str]
|
|
484
484
|
Phone number of the user
|
|
485
485
|
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
username : typing.Optional[str]
|
|
487
|
+
Username of the user
|
|
488
488
|
|
|
489
489
|
request_options : typing.Optional[RequestOptions]
|
|
490
490
|
Request-specific configuration.
|
|
@@ -507,15 +507,15 @@ class UsersClient:
|
|
|
507
507
|
"api/users/",
|
|
508
508
|
method="POST",
|
|
509
509
|
json={
|
|
510
|
-
"
|
|
511
|
-
"first_name": first_name,
|
|
512
|
-
"last_name": last_name,
|
|
513
|
-
"username": username,
|
|
514
|
-
"email": email,
|
|
510
|
+
"allow_newsletters": allow_newsletters,
|
|
515
511
|
"avatar": avatar,
|
|
512
|
+
"email": email,
|
|
513
|
+
"first_name": first_name,
|
|
514
|
+
"id": id,
|
|
516
515
|
"initials": initials,
|
|
516
|
+
"last_name": last_name,
|
|
517
517
|
"phone": phone,
|
|
518
|
-
"
|
|
518
|
+
"username": username,
|
|
519
519
|
},
|
|
520
520
|
headers={
|
|
521
521
|
"content-type": "application/json",
|
|
@@ -630,15 +630,15 @@ class UsersClient:
|
|
|
630
630
|
self,
|
|
631
631
|
id: int,
|
|
632
632
|
*,
|
|
633
|
-
|
|
634
|
-
first_name: typing.Optional[str] = OMIT,
|
|
635
|
-
last_name: typing.Optional[str] = OMIT,
|
|
636
|
-
username: typing.Optional[str] = OMIT,
|
|
637
|
-
email: typing.Optional[str] = OMIT,
|
|
633
|
+
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
638
634
|
avatar: typing.Optional[str] = OMIT,
|
|
635
|
+
email: typing.Optional[str] = OMIT,
|
|
636
|
+
first_name: typing.Optional[str] = OMIT,
|
|
637
|
+
users_update_request_id: typing.Optional[int] = OMIT,
|
|
639
638
|
initials: typing.Optional[str] = OMIT,
|
|
639
|
+
last_name: typing.Optional[str] = OMIT,
|
|
640
640
|
phone: typing.Optional[str] = OMIT,
|
|
641
|
-
|
|
641
|
+
username: typing.Optional[str] = OMIT,
|
|
642
642
|
request_options: typing.Optional[RequestOptions] = None,
|
|
643
643
|
) -> LseUser:
|
|
644
644
|
"""
|
|
@@ -651,32 +651,32 @@ class UsersClient:
|
|
|
651
651
|
id : int
|
|
652
652
|
User ID
|
|
653
653
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
first_name : typing.Optional[str]
|
|
658
|
-
First name of the user
|
|
659
|
-
|
|
660
|
-
last_name : typing.Optional[str]
|
|
661
|
-
Last name of the user
|
|
654
|
+
allow_newsletters : typing.Optional[bool]
|
|
655
|
+
Whether the user allows newsletters
|
|
662
656
|
|
|
663
|
-
|
|
664
|
-
|
|
657
|
+
avatar : typing.Optional[str]
|
|
658
|
+
Avatar URL of the user
|
|
665
659
|
|
|
666
660
|
email : typing.Optional[str]
|
|
667
661
|
Email of the user
|
|
668
662
|
|
|
669
|
-
|
|
670
|
-
|
|
663
|
+
first_name : typing.Optional[str]
|
|
664
|
+
First name of the user
|
|
665
|
+
|
|
666
|
+
users_update_request_id : typing.Optional[int]
|
|
667
|
+
User ID
|
|
671
668
|
|
|
672
669
|
initials : typing.Optional[str]
|
|
673
670
|
Initials of the user
|
|
674
671
|
|
|
672
|
+
last_name : typing.Optional[str]
|
|
673
|
+
Last name of the user
|
|
674
|
+
|
|
675
675
|
phone : typing.Optional[str]
|
|
676
676
|
Phone number of the user
|
|
677
677
|
|
|
678
|
-
|
|
679
|
-
|
|
678
|
+
username : typing.Optional[str]
|
|
679
|
+
Username of the user
|
|
680
680
|
|
|
681
681
|
request_options : typing.Optional[RequestOptions]
|
|
682
682
|
Request-specific configuration.
|
|
@@ -701,15 +701,15 @@ class UsersClient:
|
|
|
701
701
|
f"api/users/{jsonable_encoder(id)}/",
|
|
702
702
|
method="PATCH",
|
|
703
703
|
json={
|
|
704
|
-
"
|
|
705
|
-
"first_name": first_name,
|
|
706
|
-
"last_name": last_name,
|
|
707
|
-
"username": username,
|
|
708
|
-
"email": email,
|
|
704
|
+
"allow_newsletters": allow_newsletters,
|
|
709
705
|
"avatar": avatar,
|
|
706
|
+
"email": email,
|
|
707
|
+
"first_name": first_name,
|
|
708
|
+
"id": users_update_request_id,
|
|
710
709
|
"initials": initials,
|
|
710
|
+
"last_name": last_name,
|
|
711
711
|
"phone": phone,
|
|
712
|
-
"
|
|
712
|
+
"username": username,
|
|
713
713
|
},
|
|
714
714
|
headers={
|
|
715
715
|
"content-type": "application/json",
|
|
@@ -789,18 +789,18 @@ class AsyncUsersClient:
|
|
|
789
789
|
async def update_current_user(
|
|
790
790
|
self,
|
|
791
791
|
*,
|
|
792
|
-
first_name: typing.Optional[str] = OMIT,
|
|
793
|
-
last_name: typing.Optional[str] = OMIT,
|
|
794
|
-
username: typing.Optional[str] = OMIT,
|
|
795
|
-
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
796
|
-
phone: typing.Optional[str] = OMIT,
|
|
797
792
|
active_organization: typing.Optional[int] = OMIT,
|
|
798
793
|
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
794
|
+
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
799
795
|
date_joined: typing.Optional[dt.datetime] = OMIT,
|
|
800
|
-
password: typing.Optional[str] = OMIT,
|
|
801
|
-
onboarding_state: typing.Optional[str] = OMIT,
|
|
802
|
-
is_email_verified: typing.Optional[bool] = OMIT,
|
|
803
796
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
797
|
+
first_name: typing.Optional[str] = OMIT,
|
|
798
|
+
is_email_verified: typing.Optional[bool] = OMIT,
|
|
799
|
+
last_name: typing.Optional[str] = OMIT,
|
|
800
|
+
onboarding_state: typing.Optional[str] = OMIT,
|
|
801
|
+
password: typing.Optional[str] = OMIT,
|
|
802
|
+
phone: typing.Optional[str] = OMIT,
|
|
803
|
+
username: typing.Optional[str] = OMIT,
|
|
804
804
|
request_options: typing.Optional[RequestOptions] = None,
|
|
805
805
|
) -> LseUserApi:
|
|
806
806
|
"""
|
|
@@ -808,30 +808,30 @@ class AsyncUsersClient:
|
|
|
808
808
|
|
|
809
809
|
Parameters
|
|
810
810
|
----------
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
last_name : typing.Optional[str]
|
|
811
|
+
active_organization : typing.Optional[int]
|
|
814
812
|
|
|
815
|
-
|
|
813
|
+
allow_newsletters : typing.Optional[bool]
|
|
814
|
+
Allow sending newsletters to user
|
|
816
815
|
|
|
817
816
|
custom_hotkeys : typing.Optional[typing.Optional[typing.Any]]
|
|
818
817
|
|
|
819
|
-
|
|
818
|
+
date_joined : typing.Optional[dt.datetime]
|
|
820
819
|
|
|
821
|
-
|
|
820
|
+
email_notification_settings : typing.Optional[typing.Optional[typing.Any]]
|
|
822
821
|
|
|
823
|
-
|
|
824
|
-
Allow sending newsletters to user
|
|
822
|
+
first_name : typing.Optional[str]
|
|
825
823
|
|
|
826
|
-
|
|
824
|
+
is_email_verified : typing.Optional[bool]
|
|
827
825
|
|
|
828
|
-
|
|
826
|
+
last_name : typing.Optional[str]
|
|
829
827
|
|
|
830
828
|
onboarding_state : typing.Optional[str]
|
|
831
829
|
|
|
832
|
-
|
|
830
|
+
password : typing.Optional[str]
|
|
833
831
|
|
|
834
|
-
|
|
832
|
+
phone : typing.Optional[str]
|
|
833
|
+
|
|
834
|
+
username : typing.Optional[str]
|
|
835
835
|
|
|
836
836
|
request_options : typing.Optional[RequestOptions]
|
|
837
837
|
Request-specific configuration.
|
|
@@ -862,18 +862,18 @@ class AsyncUsersClient:
|
|
|
862
862
|
"api/current-user",
|
|
863
863
|
method="PATCH",
|
|
864
864
|
json={
|
|
865
|
-
"first_name": first_name,
|
|
866
|
-
"last_name": last_name,
|
|
867
|
-
"username": username,
|
|
868
|
-
"custom_hotkeys": custom_hotkeys,
|
|
869
|
-
"phone": phone,
|
|
870
865
|
"active_organization": active_organization,
|
|
871
866
|
"allow_newsletters": allow_newsletters,
|
|
867
|
+
"custom_hotkeys": custom_hotkeys,
|
|
872
868
|
"date_joined": date_joined,
|
|
873
|
-
"password": password,
|
|
874
|
-
"onboarding_state": onboarding_state,
|
|
875
|
-
"is_email_verified": is_email_verified,
|
|
876
869
|
"email_notification_settings": email_notification_settings,
|
|
870
|
+
"first_name": first_name,
|
|
871
|
+
"is_email_verified": is_email_verified,
|
|
872
|
+
"last_name": last_name,
|
|
873
|
+
"onboarding_state": onboarding_state,
|
|
874
|
+
"password": password,
|
|
875
|
+
"phone": phone,
|
|
876
|
+
"username": username,
|
|
877
877
|
},
|
|
878
878
|
headers={
|
|
879
879
|
"content-type": "application/json",
|
|
@@ -1220,15 +1220,15 @@ class AsyncUsersClient:
|
|
|
1220
1220
|
async def create(
|
|
1221
1221
|
self,
|
|
1222
1222
|
*,
|
|
1223
|
-
|
|
1224
|
-
first_name: typing.Optional[str] = OMIT,
|
|
1225
|
-
last_name: typing.Optional[str] = OMIT,
|
|
1226
|
-
username: typing.Optional[str] = OMIT,
|
|
1227
|
-
email: typing.Optional[str] = OMIT,
|
|
1223
|
+
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
1228
1224
|
avatar: typing.Optional[str] = OMIT,
|
|
1225
|
+
email: typing.Optional[str] = OMIT,
|
|
1226
|
+
first_name: typing.Optional[str] = OMIT,
|
|
1227
|
+
id: typing.Optional[int] = OMIT,
|
|
1229
1228
|
initials: typing.Optional[str] = OMIT,
|
|
1229
|
+
last_name: typing.Optional[str] = OMIT,
|
|
1230
1230
|
phone: typing.Optional[str] = OMIT,
|
|
1231
|
-
|
|
1231
|
+
username: typing.Optional[str] = OMIT,
|
|
1232
1232
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1233
1233
|
) -> LseUser:
|
|
1234
1234
|
"""
|
|
@@ -1236,32 +1236,32 @@ class AsyncUsersClient:
|
|
|
1236
1236
|
|
|
1237
1237
|
Parameters
|
|
1238
1238
|
----------
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
first_name : typing.Optional[str]
|
|
1243
|
-
First name of the user
|
|
1244
|
-
|
|
1245
|
-
last_name : typing.Optional[str]
|
|
1246
|
-
Last name of the user
|
|
1239
|
+
allow_newsletters : typing.Optional[bool]
|
|
1240
|
+
Whether the user allows newsletters
|
|
1247
1241
|
|
|
1248
|
-
|
|
1249
|
-
|
|
1242
|
+
avatar : typing.Optional[str]
|
|
1243
|
+
Avatar URL of the user
|
|
1250
1244
|
|
|
1251
1245
|
email : typing.Optional[str]
|
|
1252
1246
|
Email of the user
|
|
1253
1247
|
|
|
1254
|
-
|
|
1255
|
-
|
|
1248
|
+
first_name : typing.Optional[str]
|
|
1249
|
+
First name of the user
|
|
1250
|
+
|
|
1251
|
+
id : typing.Optional[int]
|
|
1252
|
+
User ID
|
|
1256
1253
|
|
|
1257
1254
|
initials : typing.Optional[str]
|
|
1258
1255
|
Initials of the user
|
|
1259
1256
|
|
|
1257
|
+
last_name : typing.Optional[str]
|
|
1258
|
+
Last name of the user
|
|
1259
|
+
|
|
1260
1260
|
phone : typing.Optional[str]
|
|
1261
1261
|
Phone number of the user
|
|
1262
1262
|
|
|
1263
|
-
|
|
1264
|
-
|
|
1263
|
+
username : typing.Optional[str]
|
|
1264
|
+
Username of the user
|
|
1265
1265
|
|
|
1266
1266
|
request_options : typing.Optional[RequestOptions]
|
|
1267
1267
|
Request-specific configuration.
|
|
@@ -1292,15 +1292,15 @@ class AsyncUsersClient:
|
|
|
1292
1292
|
"api/users/",
|
|
1293
1293
|
method="POST",
|
|
1294
1294
|
json={
|
|
1295
|
-
"
|
|
1296
|
-
"first_name": first_name,
|
|
1297
|
-
"last_name": last_name,
|
|
1298
|
-
"username": username,
|
|
1299
|
-
"email": email,
|
|
1295
|
+
"allow_newsletters": allow_newsletters,
|
|
1300
1296
|
"avatar": avatar,
|
|
1297
|
+
"email": email,
|
|
1298
|
+
"first_name": first_name,
|
|
1299
|
+
"id": id,
|
|
1301
1300
|
"initials": initials,
|
|
1301
|
+
"last_name": last_name,
|
|
1302
1302
|
"phone": phone,
|
|
1303
|
-
"
|
|
1303
|
+
"username": username,
|
|
1304
1304
|
},
|
|
1305
1305
|
headers={
|
|
1306
1306
|
"content-type": "application/json",
|
|
@@ -1431,15 +1431,15 @@ class AsyncUsersClient:
|
|
|
1431
1431
|
self,
|
|
1432
1432
|
id: int,
|
|
1433
1433
|
*,
|
|
1434
|
-
|
|
1435
|
-
first_name: typing.Optional[str] = OMIT,
|
|
1436
|
-
last_name: typing.Optional[str] = OMIT,
|
|
1437
|
-
username: typing.Optional[str] = OMIT,
|
|
1438
|
-
email: typing.Optional[str] = OMIT,
|
|
1434
|
+
allow_newsletters: typing.Optional[bool] = OMIT,
|
|
1439
1435
|
avatar: typing.Optional[str] = OMIT,
|
|
1436
|
+
email: typing.Optional[str] = OMIT,
|
|
1437
|
+
first_name: typing.Optional[str] = OMIT,
|
|
1438
|
+
users_update_request_id: typing.Optional[int] = OMIT,
|
|
1440
1439
|
initials: typing.Optional[str] = OMIT,
|
|
1440
|
+
last_name: typing.Optional[str] = OMIT,
|
|
1441
1441
|
phone: typing.Optional[str] = OMIT,
|
|
1442
|
-
|
|
1442
|
+
username: typing.Optional[str] = OMIT,
|
|
1443
1443
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1444
1444
|
) -> LseUser:
|
|
1445
1445
|
"""
|
|
@@ -1452,32 +1452,32 @@ class AsyncUsersClient:
|
|
|
1452
1452
|
id : int
|
|
1453
1453
|
User ID
|
|
1454
1454
|
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
first_name : typing.Optional[str]
|
|
1459
|
-
First name of the user
|
|
1460
|
-
|
|
1461
|
-
last_name : typing.Optional[str]
|
|
1462
|
-
Last name of the user
|
|
1455
|
+
allow_newsletters : typing.Optional[bool]
|
|
1456
|
+
Whether the user allows newsletters
|
|
1463
1457
|
|
|
1464
|
-
|
|
1465
|
-
|
|
1458
|
+
avatar : typing.Optional[str]
|
|
1459
|
+
Avatar URL of the user
|
|
1466
1460
|
|
|
1467
1461
|
email : typing.Optional[str]
|
|
1468
1462
|
Email of the user
|
|
1469
1463
|
|
|
1470
|
-
|
|
1471
|
-
|
|
1464
|
+
first_name : typing.Optional[str]
|
|
1465
|
+
First name of the user
|
|
1466
|
+
|
|
1467
|
+
users_update_request_id : typing.Optional[int]
|
|
1468
|
+
User ID
|
|
1472
1469
|
|
|
1473
1470
|
initials : typing.Optional[str]
|
|
1474
1471
|
Initials of the user
|
|
1475
1472
|
|
|
1473
|
+
last_name : typing.Optional[str]
|
|
1474
|
+
Last name of the user
|
|
1475
|
+
|
|
1476
1476
|
phone : typing.Optional[str]
|
|
1477
1477
|
Phone number of the user
|
|
1478
1478
|
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
username : typing.Optional[str]
|
|
1480
|
+
Username of the user
|
|
1481
1481
|
|
|
1482
1482
|
request_options : typing.Optional[RequestOptions]
|
|
1483
1483
|
Request-specific configuration.
|
|
@@ -1510,15 +1510,15 @@ class AsyncUsersClient:
|
|
|
1510
1510
|
f"api/users/{jsonable_encoder(id)}/",
|
|
1511
1511
|
method="PATCH",
|
|
1512
1512
|
json={
|
|
1513
|
-
"
|
|
1514
|
-
"first_name": first_name,
|
|
1515
|
-
"last_name": last_name,
|
|
1516
|
-
"username": username,
|
|
1517
|
-
"email": email,
|
|
1513
|
+
"allow_newsletters": allow_newsletters,
|
|
1518
1514
|
"avatar": avatar,
|
|
1515
|
+
"email": email,
|
|
1516
|
+
"first_name": first_name,
|
|
1517
|
+
"id": users_update_request_id,
|
|
1519
1518
|
"initials": initials,
|
|
1519
|
+
"last_name": last_name,
|
|
1520
1520
|
"phone": phone,
|
|
1521
|
-
"
|
|
1521
|
+
"username": username,
|
|
1522
1522
|
},
|
|
1523
1523
|
headers={
|
|
1524
1524
|
"content-type": "application/json",
|