{"openapi":"3.1.0","info":{"title":"AISVision Platform API - v1","version":"v1"},"paths":{"/api/":{"get":{"tags":["Default"],"summary":"Main","description":"Used to redirect to the api documents page in case user visits the root url.","operationId":"main_api__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/accounts/edm-subscription":{"get":{"tags":["Accounts"],"summary":"Get Edm Subscription","operationId":"get_edm_subscription_api_accounts_edm_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdmSubscriptionResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Accounts"],"summary":"Update Edm Subscription","operationId":"update_edm_subscription_api_accounts_edm_subscription_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdmSubscriptionUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdmSubscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/preferences/notifications":{"get":{"tags":["Accounts"],"summary":"Get Notifications Settings","operationId":"get_notifications_settings_api_accounts_preferences_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Get Notifications Settings Api Accounts Preferences Notifications Get"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Accounts"],"summary":"Update Notifications Settings","operationId":"update_notifications_settings_api_accounts_preferences_notifications_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationChannelSetting"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Update Notifications Settings Api Accounts Preferences Notifications Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/profile":{"get":{"tags":["Accounts"],"summary":"Get Account Profile","description":"Fetch the current authenticated user's profile for client display.\n\nThis endpoint returns basic profile information for the logged-in user.\n\nReturns\n-------\nUserResponse\n The authenticated user's profile information.","operationId":"get_account_profile_api_accounts_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Accounts"],"summary":"Update Account Profile","description":"Update fields in the current user's profile.\n\nAccepts partial updates and returns the latest version of the profile.\n\nReturns\n-------\nUserResponse\n The updated user profile.","operationId":"update_account_profile_api_accounts_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/self":{"delete":{"tags":["Accounts"],"summary":"Delete Account","description":"Perform a hard delete on the currently logged-in user's account.\n\nReturns\n-------\nNone\n Returns HTTP 204 No Content on success.","operationId":"delete_account_api_accounts_self_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/auth/activation":{"post":{"tags":["Auth"],"summary":"Verify Activation Token","description":"Validate email activation link (signup token) after user clicks the verification email.\n\nThis endpoint is triggered by the frontend when a user clicks the activation link from their email.\nIt verifies the token's integrity, expiration, and the user's activation status.\nIf valid, it allows the frontend to proceed to the profile completion form.","operationId":"verify_activation_token_api_auth_activation_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/email":{"post":{"tags":["Auth"],"summary":"Verify Email Existence","description":"Check if the given email already exists in the system.","operationId":"verify_email_existence_api_auth_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailFields"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["Auth"],"summary":"Forgot Password","description":"Sends a password reset link to the provided email address.\n\nIf the email exists, a reset link will be sent asynchronously.\nAlways returns 204 to prevent exposing user existence.\n\nReturns\n-------\n204 No Content","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/signin":{"get":{"tags":["Google OAuth"],"summary":"Google Signin","description":"Redirects the user to the Google OAuth login page for sign-in.\n\nThis endpoint generates a URL that directs the user to Google's OAuth 2.0\nauthorization page, initiating the sign-in flow.\n\nReturns\n-------\ndict\n A dictionary containing the redirect URL under the key \"redirect_url\".","operationId":"google_signin_api_auth_google_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/signin/callback":{"get":{"tags":["Google OAuth"],"summary":"Google Signin Callback","description":"This endpoint receives the authorization code from Google, exchanges it for\nan access token, fetches the user's Google profile, and generates an internal\naccess token (JWT) if the user exists in the system.\n\nParameters\n----------\ncode : str\n The authorization code returned by Google OAuth.\ndb : AsyncSession\n SQLAlchemy async database session (injected by FastAPI).\n\nReturns\n-------\nRedirectResponse\n Redirects the user to the frontend login page with a JWT token in the query string,\n or with \"token=null\" if the user does not exist.","operationId":"google_signin_callback_api_auth_google_signin_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/signup":{"get":{"tags":["Google OAuth"],"summary":"Google Signup","description":"Redirects the user to the Google OAuth login page for sign-up.\n\nThis endpoint generates a URL that directs the user to Google's OAuth 2.0\nauthorization page, initiating the sign-up flow.\n\nReturns\n-------\ndict\n A dictionary containing the redirect URL under the key \"redirect_url\".","operationId":"google_signup_api_auth_google_signup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/signup/callback":{"get":{"tags":["Google OAuth"],"summary":"Google Signup Callback","description":"This endpoint redirects the user\nto the frontend account creation page.\n\nReturns\n-------\nRedirectResponse\n Redirects the user to the frontend account creation page.","operationId":"google_signup_callback_api_auth_google_signup_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/signup/google-user-info":{"get":{"tags":["Google OAuth"],"summary":"Get Google User Info","description":"Retrieve Google user profile using authorization code.\n\nThis endpoint exchanges the provided authorization code for an access token,\nretrieves the user's profile information from Google, and returns it in JSON format.\n\nParameters\n----------\ncode : str\n The authorization code obtained from Google OAuth.\n\nReturns\n-------\nJSONResponse\n User information containing email, first name, and last name.","operationId":"get_google_user_info_api_auth_google_signup_google_user_info_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleUserInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["Auth"],"summary":"Login","description":"Authenticate a user and return a JWT access token if credentials are valid.","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/mfa/":{"delete":{"tags":["MFA"],"summary":"Disable Mfa","operationId":"disable_mfa_api_auth_mfa__delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/mfa/activate":{"post":{"tags":["MFA"],"summary":"Activate Mfa","operationId":"activate_mfa_api_auth_mfa_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseMFARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/mfa/recovery-codes":{"post":{"tags":["MFA"],"summary":"Generate Recovery Codes","operationId":"generate_recovery_codes_api_auth_mfa_recovery_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/mfa/setup":{"post":{"tags":["MFA"],"summary":"Setup Mfa","operationId":"setup_mfa_api_auth_mfa_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFASetupResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/mfa/status":{"get":{"tags":["MFA"],"summary":"Get Mfa Status","operationId":"get_mfa_status_api_auth_mfa_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/mfa/verify-login":{"post":{"tags":["MFA"],"summary":"Verify Mfa","operationId":"verify_mfa_api_auth_mfa_verify_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyMFARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"tags":["Auth"],"summary":"Register","description":"Register a new user and return a JWT signup token.","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset Password","description":"Reset user password using a valid token.","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/token-login":{"post":{"tags":["Auth"],"summary":"Token Login","description":"Validates and logs in a user using a previously issued JWT access token.\n\nThis endpoint decodes and validates a JWT access token (e.g., from Google or internal issuance),\nretrieves the corresponding user from the database, and returns a new bearer token if the user exists.\n\nParameters\n----------\ntoken : HTTPAuthorizationCredentials\n The bearer token extracted from the Authorization header (e.g., \"Bearer \").\ndb : AsyncSession\n The database session dependency.\n\nRaises\n------\nHTTPException\n 400 - If the request body contains unexpected fields.\n 401 - If the token is invalid, expired, or improperly signed.\n 404 - If no user is found for the decoded user ID.","operationId":"token_login_api_auth_token_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/update-password":{"patch":{"tags":["Auth"],"summary":"Update Password","description":"Update password for the currently authenticated user.","operationId":"update_password_api_auth_update_password_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/autolabel/download_model":{"get":{"tags":["Autolabel"],"summary":"Get Model Presigned Url","operationId":"get_model_presigned_url_api_autolabel_download_model_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutolabelGetModelResponse"}}}}}}},"/api/autolabel/workspaces/{workspace_id}/datasets/{dataset_id}/calculate_feature":{"post":{"tags":["Autolabel"],"summary":"Calculate Image Features","operationId":"calculate_image_features_api_autolabel_workspaces__workspace_id__datasets__dataset_id__calculate_feature_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateFeaturesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/autolabel/workspaces/{workspace_id}/datasets/{dataset_id}/images/{image_id}/feature":{"get":{"tags":["Autolabel"],"summary":"Get Image Feature Presigned Url","operationId":"get_image_feature_presigned_url_api_autolabel_workspaces__workspace_id__datasets__dataset_id__images__image_id__feature_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutolabelGetFeaturesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/":{"post":{"tags":["Events"],"summary":"Dispatch Event","operationId":"dispatch_event_api_events__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPayload"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/healthz":{"get":{"tags":["Default"],"summary":"Health Check","description":"Health check endpoint for the API.","operationId":"health_check_api_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/login":{"post":{"summary":"Login","operationId":"login_api_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/logout":{"post":{"summary":"Logout","operationId":"logout_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/notifications":{"get":{"tags":["notifications"],"summary":"Get Notifications","operationId":"get_notifications_api_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"},{"name":"notification_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NotificationType"},{"type":"null"}],"description":"Filter notifications by type","title":"Notification Type"},"description":"Filter notifications by type"},{"name":"read_at","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ReadStateQuery"},{"type":"null"}],"description":"Query parameter to include/exclude read notifications","default":"include","title":"Read At"},"description":"Query parameter to include/exclude read notifications"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Create Admin Notifications","description":"Send an admin notification.\n \n### `event_id` Mapping:\n- `1` → **TASK_COMPLETED**\n- `2` → **TASK_FAILED**\n- `3` → **TASK_STARTED**\n- `4` → **PAYMENT_FAILED**\n- `5` → **SYSTEM_MAINTENANCE**\n- `6` → **VERSION_UPDATE**\n- `7` → **PASSWORD_CHANGED**\n- `8` → **PASSWORD_CHANGED_WARNING**\n- `9` → **OTP_ENABLED**\n- `10` → **OTP_DISABLED**\n- `11` → **ADDED_AS_MEMBER**\n- `12` → **ADDED_AS_MANAGER**\n- `13` → **ADDED_AS_VIEWER**\n- `14` → **VIEWER_TO_MEMBER**\n- `15` → **UPGRADED_TO_MANAGER**\n- `16` → **ROLE_DOWNGRADED**\n- `17` → **REMOVED_FROM_WORKSPACE**\n- `18` → **LOGIN_FAILED**\n- `19` → **SUBSCRIPTION_EXPIRY_WARNING**\n- `20` → **SUBSCRIPTION_EXPIRED**\n- `21` → **PLAN_UPGRADED**\n- `22` → **PLAN_DOWNGRADED**\n- `23` → **USAGE_ALMOST_EXCEEDED**\n- `24` → **FEATURE_DEPRECATION_NOTICE**\n- `25` → **SUBSCRIPTION_PRICE_UPDATED**","operationId":"create_admin_notifications_api_notifications_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSendNotificationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/mark-all-read":{"patch":{"tags":["notifications"],"summary":"Mark All As Read","operationId":"mark_all_as_read_api_notifications_mark_all_read_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","title":"Response Mark All As Read Api Notifications Mark All Read Patch"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Unread Count","operationId":"get_unread_count_api_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"integer","title":"Response Get Unread Count Api Notifications Unread Count Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/webhooks/training-status":{"post":{"tags":["notifications"],"summary":"Training Status Webhook","description":"Send an admin notification.\n\n### `event_id` Mapping:\n- `1` → **TASK_COMPLETED**\n- `2` → **TASK_FAILED**\n- `3` → **TASK_STARTED**\n- `4` → **PAYMENT_FAILED**\n- `5` → **SYSTEM_MAINTENANCE**\n- `6` → **VERSION_UPDATE**\n- `7` → **PASSWORD_CHANGED**\n- `8` → **PASSWORD_CHANGED_WARNING**\n- `9` → **OTP_ENABLED**\n- `10` → **OTP_DISABLED**\n- `11` → **ADDED_AS_MEMBER**\n- `12` → **ADDED_AS_MANAGER**\n- `13` → **ADDED_AS_VIEWER**\n- `14` → **VIEWER_TO_MEMBER**\n- `15` → **UPGRADED_TO_MANAGER**\n- `16` → **ROLE_DOWNGRADED**\n- `17` → **REMOVED_FROM_WORKSPACE**\n- `18` → **LOGIN_FAILED**\n- `19` → **SUBSCRIPTION_EXPIRY_WARNING**\n- `20` → **SUBSCRIPTION_EXPIRED**\n- `21` → **PLAN_UPGRADED**\n- `22` → **PLAN_DOWNGRADED**\n- `23` → **USAGE_ALMOST_EXCEEDED**\n- `24` → **FEATURE_DEPRECATION_NOTICE**\n- `25` → **SUBSCRIPTION_PRICE_UPDATED**","operationId":"training_status_webhook_api_notifications_webhooks_training_status_post","parameters":[{"name":"event_id","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NotificationEventMap"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStatusRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}":{"patch":{"tags":["notifications"],"summary":"Mark One As Read","operationId":"mark_one_as_read_api_notifications__notification_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile":{"get":{"summary":"Profile","operationId":"profile_api_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/quotas/workspace/{workspace_id}/images":{"get":{"tags":["Quotas"],"summary":"Get Image Quotas","operationId":"get_image_quotas_api_quotas_workspace__workspace_id__images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/quotas/workspace/{workspace_id}/members":{"get":{"tags":["Quotas"],"summary":"Get Workspace Member Quotas","operationId":"get_workspace_member_quotas_api_quotas_workspace__workspace_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/quotas/workspace/{workspace_id}/training_jobs":{"get":{"tags":["Quotas"],"summary":"Get Training Job Quotas","operationId":"get_training_job_quotas_api_quotas_workspace__workspace_id__training_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date for the quota period","title":"Start Date"},"description":"Start date for the quota period"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date for the quota period","title":"End Date"},"description":"End date for the quota period"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription_plans":{"get":{"tags":["Subscription Plans"],"summary":"Get Subscription Plans","description":"Retrieve all available subscription plans.\n\nThis endpoint returns a list of all subscription plans that can be used by workspaces.","operationId":"get_subscription_plans_api_subscription_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubscriptionPlansResponse"},"type":"array","title":"Response Get Subscription Plans Api Subscription Plans Get"}}}}}}},"/api/users/":{"delete":{"tags":["Users"],"summary":"Delete User","operationId":"delete_user_api_users__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Users"],"summary":"Get Users","operationId":"get_users_api_users__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace_subscriptions/{workspace_id}":{"post":{"tags":["Workspace Subscriptions"],"summary":"Create Workspace Subscription","operationId":"create_workspace_subscription_api_workspace_subscriptions__workspace_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"subscription_name","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SubscriptionPlanName","description":"Name of the subscription"},"description":"Name of the subscription"},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Expected start date of the subscription","title":"Start Date"},"description":"Expected start date of the subscription"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Expected end date of the subscription","title":"End Date"},"description":"Expected end date of the subscription"},{"name":"auto_renew","in":"query","required":false,"schema":{"type":"boolean","description":"Whether the subscription should auto-renew","default":false,"title":"Auto Renew"},"description":"Whether the subscription should auto-renew"},{"name":"ignore_overlap","in":"query","required":false,"schema":{"type":"boolean","description":"Whether to ignore overlap with existing subscriptions","default":false,"title":"Ignore Overlap"},"description":"Whether to ignore overlap with existing subscriptions"}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces":{"get":{"tags":["workspaces"],"summary":"Get Workspaces","operationId":"get_workspaces_api_workspaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_workspaces_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_workspaces__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_workspaces__workspace_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/current_usage":{"get":{"tags":["workspaces"],"summary":"Get Workspace Current Usage","operationId":"get_workspace_current_usage_api_workspaces__workspace_id__current_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDataUsage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/":{"get":{"tags":["Datasets"],"summary":"Get Datasets","operationId":"get_datasets_api_workspaces__workspace_id__datasets__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Datasets"],"summary":"Create Dataset","operationId":"create_dataset_api_workspaces__workspace_id__datasets__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetBaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/{dataset_id}":{"delete":{"tags":["Datasets"],"summary":"Delete Dataset","operationId":"delete_dataset_api_workspaces__workspace_id__datasets__dataset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Datasets"],"summary":"Get Dataset","operationId":"get_dataset_api_workspaces__workspace_id__datasets__dataset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Datasets"],"summary":"Update Dataset","operationId":"update_dataset_api_workspaces__workspace_id__datasets__dataset_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetBaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/{dataset_id}/duplicate":{"post":{"tags":["Datasets"],"summary":"Duplicate Dataset","description":"Duplicate an existing dataset","operationId":"duplicate_dataset_api_workspaces__workspace_id__datasets__dataset_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetBaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/{dataset_id}/images":{"get":{"tags":["images","images"],"summary":"Read Images By Dataset","operationId":"read_images_by_dataset_api_workspaces__workspace_id__datasets__dataset_id__images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageWithProjectInfoListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["images"],"summary":"Create Image","description":"Upload an image to a specific dataset and store its metadata.\n\n### This endpoint performs the following:\n\n**Image File Validation**\n - Ensures that the uploaded file:\n - Has a supported content type (`image/jpeg`, `image/png`, `image/bmp`)\n - Does not exceed the max file size (e.g., 40MB)","operationId":"create_image_api_workspaces__workspace_id__datasets__dataset_id__images_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_image_api_workspaces__workspace_id__datasets__dataset_id__images_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/{dataset_id}/images/{image_id}":{"delete":{"tags":["images"],"summary":"Delete Image","operationId":"delete_image_api_workspaces__workspace_id__datasets__dataset_id__images__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["images"],"summary":"Read Image","operationId":"read_image_api_workspaces__workspace_id__datasets__dataset_id__images__image_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageWithProjectInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["images"],"summary":"Update Image","operationId":"update_image_api_workspaces__workspace_id__datasets__dataset_id__images__image_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/datasets/{dataset_id}/images/{image_id}/content":{"get":{"tags":["images"],"summary":"Get Image Presigned Url","operationId":"get_image_presigned_url_api_workspaces__workspace_id__datasets__dataset_id__images__image_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Dataset Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagePresignedUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/invitation":{"delete":{"tags":["workspaces"],"summary":"Delete Workspace Invitation","operationId":"delete_workspace_invitation_api_workspaces__workspace_id__invitation_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailFields"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/invite-link":{"get":{"tags":["workspaces"],"summary":"Get Invite Link","operationId":"get_invite_link_api_workspaces__workspace_id__invite_link_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/member":{"delete":{"tags":["workspaces"],"summary":"Delete Workspace Member","operationId":"delete_workspace_member_api_workspaces__workspace_id__member_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailFields"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members":{"get":{"tags":["workspaces"],"summary":"Get Workspace Members","operationId":"get_workspace_members_api_workspaces__workspace_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"order_by","in":"query","required":false,"schema":{"enum":["name","email","role","pending","created_at"],"type":"string","default":"name","title":"Order By"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Desc"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update User Role By Email","operationId":"update_user_role_by_email_api_workspaces__workspace_id__members_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWorkspaceRoleRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Invite User To Workspace","operationId":"invite_user_to_workspace_api_workspaces__workspace_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberListRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/my-role":{"get":{"tags":["workspaces"],"summary":"Get Workspace Member Role","operationId":"get_workspace_member_role_api_workspaces__workspace_id__my_role_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberRoleFields"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects":{"get":{"tags":["Projects"],"summary":"Get Projects","operationId":"get_projects_api_workspaces__workspace_id__projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"},{"name":"project_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ProjectType"}},{"type":"null"}],"description":"Filter projects by multiple project types","title":"Project Types"},"description":"Filter projects by multiple project types"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Projects"],"summary":"Create Project","operationId":"create_project_api_workspaces__workspace_id__projects_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/-/training_jobs":{"get":{"tags":["training_jobs"],"summary":"Get Jobs Of Workspaces","operationId":"get_jobs_of_workspaces_api_workspaces__workspace_id__projects___training_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"},{"name":"job_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/JobStatus"}},{"type":"null"}],"description":"Filter training jobs by job status","title":"Job Status"},"description":"Filter training jobs by job status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}":{"delete":{"tags":["Projects"],"summary":"Delete Project","operationId":"delete_project_api_workspaces__workspace_id__projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Projects"],"summary":"Get Project","operationId":"get_project_api_workspaces__workspace_id__projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Projects"],"summary":"Update Project","operationId":"update_project_api_workspaces__workspace_id__projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/categories":{"get":{"tags":["Categories"],"summary":"Read Categories","operationId":"read_categories_api_workspaces__workspace_id__projects__project_id__categories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryResponse"},"title":"Response Read Categories Api Workspaces Workspace Id Projects Project Id Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Categories"],"summary":"Create Category","operationId":"create_category_api_workspaces__workspace_id__projects__project_id__categories_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/categories/{category_id}":{"delete":{"tags":["Categories"],"summary":"Delete Category","operationId":"delete_category_api_workspaces__workspace_id__projects__project_id__categories__category_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Category Id"}},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Permanent"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Categories"],"summary":"Read Category","operationId":"read_category_api_workspaces__workspace_id__projects__project_id__categories__category_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Categories"],"summary":"Update Category","operationId":"update_category_api_workspaces__workspace_id__projects__project_id__categories__category_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"category_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/duplicate":{"post":{"tags":["Projects"],"summary":"Duplicate Project","operationId":"duplicate_project_api_workspaces__workspace_id__projects__project_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/images":{"get":{"tags":["Projects"],"summary":"Get Project Images","operationId":"get_project_images_api_workspaces__workspace_id__projects__project_id__images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","default":"exclude"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Desc"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ProjectType"}},{"type":"null"}],"title":"Project Types"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Projects"],"summary":"Update Project Images","operationId":"update_project_images_api_workspaces__workspace_id__projects__project_id__images_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectImagePatchRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/images/-/annotations":{"get":{"tags":["annotations"],"summary":"Read All Annotations By Project","operationId":"read_all_annotations_by_project_api_workspaces__workspace_id__projects__project_id__images___annotations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiAnnotationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/images/{image_id}/annotations":{"get":{"tags":["annotations"],"summary":"Read Annotations By Project Image","operationId":"read_annotations_by_project_image_api_workspaces__workspace_id__projects__project_id__images__image_id__annotations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":0,"title":"Annotation image id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["annotations"],"summary":"Create Annotation","operationId":"create_annotation_api_workspaces__workspace_id__projects__project_id__images__image_id__annotations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":0,"title":"Annotation image id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/images/{image_id}/annotations/{annotation_id}":{"delete":{"tags":["annotations"],"summary":"Delete Annotation","operationId":"delete_annotation_api_workspaces__workspace_id__projects__project_id__images__image_id__annotations__annotation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Annotation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["annotations"],"summary":"Update Annotation","operationId":"update_annotation_api_workspaces__workspace_id__projects__project_id__images__image_id__annotations__annotation_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Image Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Annotation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/restore":{"post":{"tags":["Projects"],"summary":"Restore Project","description":"The only exception is the API, which cannot use unified verification\nlike Depends(validate_resource_in_parent(\"workspace_id\", Workspace, \"project_id\", Project, \"workspace_id\"))\nand needs to be maintained by itself","operationId":"restore_project_api_workspaces__workspace_id__projects__project_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":0,"title":"Project ID"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs":{"get":{"tags":["training_jobs"],"summary":"Get Jobs","operationId":"get_jobs_api_workspaces__workspace_id__projects__project_id__training_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string","description":"Keyword for fuzzy search."},{"type":"null"}],"title":"Keyword"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"Pagination starting point, max is 2⁶³ - 1 ","default":0,"title":"Offset"},"description":"Pagination starting point, max is 2⁶³ - 1 "},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records per page, maximum 100","default":10,"title":"Limit"},"description":"Number of records per page, maximum 100"},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderByEnum","default":"id"}},{"name":"desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort order, default is `False` (ascending)","default":false,"title":"Desc"},"description":"Sort order, default is `False` (ascending)"},{"name":"job_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/JobStatus"}},{"type":"null"}],"description":"Filter training jobs by job status","title":"Job Status"},"description":"Filter training jobs by job status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training_jobs"],"summary":"Create Job","description":"Create a new training job under a specific project. \nThis endpoint performs the following validations before creating the job:\n\n1. **Duplicate Name Check** \n - Ensures no other training job with the same name exists in the project.\n\n2. **Project Type Validation** \n - Confirms that the `task` field in `aasconfig.globals.task` matches the type of the specified project.\n - Allowed types include: anomaly, classification, segmentation, object_detection, and oriented_object_detection.\n\n3. **Augmentation Pipeline Validation** \n - Validates both `train_dataset` and `val_dataset` augmentation pipelines.\n - Each pipeline must:\n - End with `Normalize` and `ToTensorV2`\n - Include `Resize` or `LongestMaxSize`, with width/height or size >= 64\n - Only contains augmentations from whitelist: Affine,RandomGamma,LongestMaxSize,PadSquare,ToTensorV2,Normalize,ColorJitter,Resize,HorizontalFlip\n\n4. **Image Split Validation** \n - Ensures `train` and `val` splits meet minimum image counts:\n - For anomaly tasks: project must have at least one annotation labeled as \"OK\"\n - For all other tasks: train ≥ 2 image, val ≥ 1 image\n\n5. **Batch Size Adjustment**\n - If there are fewer images in training set than batch size, set batch size to the number of training images.\n\n6. **Job Creation**\n - The validated job is inserted into the database with status `standby`.\n - Finally, the job is dispatched to a worker queue for asynchronous processing.","operationId":"create_job_api_workspaces__workspace_id__projects__project_id__training_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJobPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/configs":{"get":{"tags":["training_jobs"],"summary":"Get Model Configs","operationId":"get_model_configs_api_workspaces__workspace_id__projects__project_id__training_jobs_configs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"deletion_state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DeletionStateQuery","description":"Query parameter to include/exclude/only deleted datasets","default":"exclude"},"description":"Query parameter to include/exclude/only deleted datasets"},{"name":"model_task","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelTask"},{"type":"null"}],"description":"Filter projects by multiple model task","title":"Model Task"},"description":"Filter projects by multiple model task"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AASConfiguration"},"title":"Response Get Model Configs Api Workspaces Workspace Id Projects Project Id Training Jobs Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{job_id}":{"delete":{"tags":["training_jobs"],"summary":"Delete Job","operationId":"delete_job_api_workspaces__workspace_id__projects__project_id__training_jobs__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["training_jobs"],"summary":"Get Job","operationId":"get_job_api_workspaces__workspace_id__projects__project_id__training_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{job_id}/cancel":{"post":{"tags":["training_jobs"],"summary":"Cancel Job","operationId":"cancel_job_api_workspaces__workspace_id__projects__project_id__training_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{job_id}/custom_threshold":{"patch":{"tags":["training_jobs"],"summary":"Update Custom Threshold","operationId":"update_custom_threshold_api_workspaces__workspace_id__projects__project_id__training_jobs__job_id__custom_threshold_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomThresholdUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{job_id}/model_weights":{"get":{"tags":["Model Weights"],"summary":"Get Model Presigned Url","operationId":"get_model_presigned_url_api_workspaces__workspace_id__projects__project_id__training_jobs__job_id__model_weights_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job ID"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"framework","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Framework","title":"Framework","description":"tensorrt & torchweight is not support now"},"description":"tensorrt & torchweight is not support now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelWeightsPresignedUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{training_job_id}/metrics":{"get":{"tags":["Metrics"],"summary":"Read Training Metrics","operationId":"read_training_metrics_api_workspaces__workspace_id__projects__project_id__training_jobs__training_job_id__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"training_job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Training Job ID"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}},{"name":"metrics","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Metrics"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Metric"},"title":"Response Read Training Metrics Api Workspaces Workspace Id Projects Project Id Training Jobs Training Job Id Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/projects/{project_id}/training_jobs/{training_job_id}/predictions":{"get":{"tags":["Predictions"],"summary":"Read Predictions By Training Job","operationId":"read_predictions_by_training_job_api_workspaces__workspace_id__projects__project_id__training_jobs__training_job_id__predictions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"training_job_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Job ID"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionReadList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/resource_limits":{"get":{"tags":["workspaces"],"summary":"Get Workspace Resource Limits","operationId":"get_workspace_resource_limits_api_workspaces__workspace_id__resource_limits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Workspace Resource Limits Api Workspaces Workspace Id Resource Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AASConfig-Input":{"properties":{"globals":{"$ref":"#/components/schemas/GlobalCfg"},"train":{"$ref":"#/components/schemas/TrainCfg"},"model":{"$ref":"#/components/schemas/PipelineCfg"},"train_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Train Dataset"},"val_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Val Dataset"},"test_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Test Dataset"}},"type":"object","required":["globals","train","model"],"title":"AASConfig"},"AASConfig-Output":{"properties":{"globals":{"$ref":"#/components/schemas/GlobalCfg"},"train":{"$ref":"#/components/schemas/TrainCfg"},"model":{"$ref":"#/components/schemas/PipelineCfg"},"train_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Train Dataset"},"val_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Val Dataset"},"test_dataset":{"anyOf":[{"items":{"$ref":"#/components/schemas/DataCfg"},"type":"array"},{"$ref":"#/components/schemas/DataCfg"},{"type":"null"}],"title":"Test Dataset"}},"type":"object","required":["globals","train","model"],"title":"AASConfig"},"AASConfiguration":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"configuration":{"$ref":"#/components/schemas/AASConfig-Output"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","name","description","configuration","created_at","updated_at","deleted_at"],"title":"AASConfiguration"},"AdminSendNotificationRequest":{"properties":{"event_id":{"$ref":"#/components/schemas/NotificationEventMap","description":"The ID of the event associated with this notification."},"payload":{"type":"object","title":"Payload","description":"The dynamic payload values for the notification template."},"page_info":{"anyOf":[{"$ref":"#/components/schemas/NotificationPageInfo"},{"type":"null"}],"description":"Navigation metadata."}},"type":"object","required":["event_id","payload"],"title":"AdminSendNotificationRequest","example":{"event_id":25,"page_info":{"dataset_id":4,"job_id":3,"project_id":2,"workspace_id":1},"payload":{"date":"2025-06-20T00:00:00Z","plan_name":"Pro","price":"$99"}}},"AnnotationPatchRequest":{"properties":{"data":{"items":{"oneOf":[{"$ref":"#/components/schemas/Tag"},{"$ref":"#/components/schemas/Box"},{"$ref":"#/components/schemas/Polygon"},{"$ref":"#/components/schemas/Mask"}],"discriminator":{"propertyName":"type_","mapping":{"box":"#/components/schemas/Box","mask":"#/components/schemas/Mask","polygon":"#/components/schemas/Polygon","tag":"#/components/schemas/Tag"}}},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AnnotationPatchRequest"},"AnnotationPostRequest":{"properties":{"predicted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Predicted By","description":"predict_by value definitions: none = label, 0 = SAM, other = job_id"},"data":{"items":{"oneOf":[{"$ref":"#/components/schemas/Tag"},{"$ref":"#/components/schemas/Box"},{"$ref":"#/components/schemas/Polygon"},{"$ref":"#/components/schemas/Mask"}],"discriminator":{"propertyName":"type_","mapping":{"box":"#/components/schemas/Box","mask":"#/components/schemas/Mask","polygon":"#/components/schemas/Polygon","tag":"#/components/schemas/Tag"}}},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"AnnotationPostRequest"},"AnnotationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"project_id":{"type":"integer","title":"Project Id"},"image_id":{"type":"integer","title":"Image Id"},"predicted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Predicted By"},"data":{"items":{"oneOf":[{"$ref":"#/components/schemas/Tag"},{"$ref":"#/components/schemas/Box"},{"$ref":"#/components/schemas/Polygon"},{"$ref":"#/components/schemas/Mask"}],"discriminator":{"propertyName":"type_","mapping":{"box":"#/components/schemas/Box","mask":"#/components/schemas/Mask","polygon":"#/components/schemas/Polygon","tag":"#/components/schemas/Tag"}}},"type":"array","title":"Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_by":{"type":"integer","title":"Created By"},"deleted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted By"}},"type":"object","required":["id","project_id","image_id","predicted_by","data","created_at","deleted_at","created_by","deleted_by"],"title":"AnnotationResponse"},"AutolabelGetFeaturesResponse":{"properties":{"feature_paths":{"anyOf":[{"$ref":"#/components/schemas/FeaturePath"},{"type":"null"}],"description":"A dictionary containing feature path about the image, valid for a limited time."}},"type":"object","title":"AutolabelGetFeaturesResponse"},"AutolabelGetModelResponse":{"properties":{"model_presigned_url":{"type":"string","title":"Model Presigned Url","description":"The pre-signed URL for download decoder of sam onnx, valid for a limited time."}},"type":"object","required":["model_presigned_url"],"title":"AutolabelGetModelResponse"},"BackendCfg":{"properties":{"backend":{"type":"string","title":"Backend"},"backend_kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Backend Kwargs"}},"type":"object","required":["backend"],"title":"BackendCfg","description":"Examples\n--------\n\n1. Python\n\n>>> BackendCfg(\n... backend=\"AASDataHubBackend\",\n... backend_kwargs={\"dataset_name\": \"dataset-name-on-datacenter\", \"task\": \"classification\"},\n... )\nbackend='AASDataHubBackend' backend_kwargs={'dataset_name': 'dataset-name-on-datacenter', 'task': 'classification'}\n>>> BackendCfg(\n... backend=\"AASDataHubBackend\",\n... backend_kwargs={\"dataset_name\": \"path/to/local/dataset\", \"task\": \"segmentation\"},\n... )\nbackend='AASDataHubBackend' backend_kwargs={'dataset_name': 'path/to/local/dataset', 'task': 'segmentation'}\n>>> BackendCfg(\n... backend=\"AASCSVBackend\",\n... backend_kwargs={\n... \"root_dir\": \"path/to/dataset_root\",\n... \"csv_path\": \"path/to/csv_file.csv\",\n... \"bbox_type\": BboxType.XY_CENTER_WH,\n... },\n...)\nbackend='AASCSVBackend' backend_kwargs={'root_dir': 'path/to/dataset_root', 'csv_path': 'path/to/csv_file.csv',\n'bbox_type': }\n\n\n2. YAML\n\n.. code-block:: yaml\n :caption: train_dataset uses AASDataHubBackend\n\n train_dataset:\n backends:\n backend: AASDataHubBackend\n backend_kwargs:\n dataset_name: dataset-name-on-datacenter\n task: classification\n\n.. code-block:: yaml\n :caption: train_dataset uses AASDataHubBackend in local path\n\n train_dataset:\n backend: AASDataHubBackend\n backend_kwargs:\n dataset_name: path/to/local/dataset\n task: segmentation\n\n.. code-block:: yaml\n :caption: val_dataset uses AASCSVBackend\n\n val_dataset:\n backends:\n backend: AASCSVBackend\n backend_kwargs:\n csv_path: path/to/csv_file.csv\n root_dir: path/to/dataset_root\n\nSee Also\n--------\naascore.data.dataset.AASDataset: AASCore dataset\naascore.data.storage.AASDataHubBackend: AASDataHub backend\naascore.data.storage.AASCSVBackend: AAS CSV backend"},"BaseMFARequest":{"properties":{"password":{"type":"string","format":"password","title":"Password","description":"Password for user account","writeOnly":true},"mfa_code":{"type":"string","title":"Mfa Code","description":"6-digit code or recovery code"}},"type":"object","required":["password","mfa_code"],"title":"BaseMFARequest"},"Body_create_image_api_workspaces__workspace_id__datasets__dataset_id__images_post":{"properties":{"name":{"type":"string","title":"Name"},"image_metadata":{"type":"string","title":"Image Metadata"},"image_file":{"type":"string","format":"binary","title":"Image File"}},"type":"object","required":["name","image_metadata","image_file"],"title":"Body_create_image_api_workspaces__workspace_id__datasets__dataset_id__images_post"},"Box":{"properties":{"type_":{"type":"string","const":"box","title":"Type","default":"box"},"category_id":{"type":"integer","title":"Category Id"},"xtl":{"type":"number","minimum":0.0,"title":"Xtl"},"ytl":{"type":"number","minimum":0.0,"title":"Ytl"},"xbr":{"type":"number","minimum":0.0,"title":"Xbr"},"ybr":{"type":"number","minimum":0.0,"title":"Ybr"},"occluded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Occluded","default":false},"z_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Z Order","default":0}},"type":"object","required":["category_id","xtl","ytl","xbr","ybr"],"title":"Box"},"CalculateFeaturesRequest":{"properties":{"image_id_list":{"items":{"type":"integer"},"type":"array","title":"Image Id List","description":"which image you want to calculate feature by sam model"}},"additionalProperties":false,"type":"object","required":["image_id_list"],"title":"CalculateFeaturesRequest"},"CallbackCfg":{"properties":{"callback":{"type":"string","title":"Callback"},"kwargs":{"type":"object","title":"Kwargs"}},"type":"object","required":["callback"],"title":"CallbackCfg"},"CategoryMetadata":{"properties":{"color":{"type":"string","pattern":"^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$","title":"Color","description":"The color associated with the category."}},"type":"object","required":["color"],"title":"CategoryMetadata"},"CategoryPatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"description":"The name of the category."},{"type":"null"}],"title":"Name"},"category_metadata":{"anyOf":[{"$ref":"#/components/schemas/CategoryMetadata"},{"type":"null"}]}},"type":"object","title":"CategoryPatchRequest"},"CategoryPostRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"The name of the category."},"category_metadata":{"$ref":"#/components/schemas/CategoryMetadata"}},"type":"object","required":["name","category_metadata"],"title":"CategoryPostRequest"},"CategoryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"category_metadata":{"$ref":"#/components/schemas/CategoryMetadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","category_metadata","created_at"],"title":"CategoryResponse"},"CustomThresholdUpdateRequest":{"properties":{"custom_threshold":{"$ref":"#/components/schemas/Threshold","description":"The custom threshold settings for the training job."}},"type":"object","required":["custom_threshold"],"title":"CustomThresholdUpdateRequest"},"DataCfg":{"properties":{"dataset":{"type":"string","title":"Dataset"},"backends":{"anyOf":[{"$ref":"#/components/schemas/BackendCfg"},{"items":{"$ref":"#/components/schemas/BackendCfg"},"type":"array"}],"title":"Backends"},"augmentations":{"anyOf":[{"type":"object"},{"type":"string"},{"type":"null"}],"title":"Augmentations","description":"The dictionary for deserializing `AASCompose` instance. If `None` is provided, then only `ToTensor` will be applied."},"annotation":{"type":"string","enum":["cls","bbox","mask"],"title":"Annotation","description":"This has not yet be supported."},"dataset_kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Dataset Kwargs"},"shuffle":{"type":"boolean","title":"Shuffle","default":false},"sampler":{"anyOf":[{"$ref":"#/components/schemas/SamplerCfg"},{"type":"null"}]},"batch_sampler":{"anyOf":[{"$ref":"#/components/schemas/SamplerCfg"},{"type":"null"}]},"pin_memory":{"type":"boolean","title":"Pin Memory","default":true},"drop_last":{"type":"boolean","title":"Drop Last","default":false},"persistent_workers":{"type":"boolean","title":"Persistent Workers","default":false},"num_workers":{"type":"integer","title":"Num Workers","description":"Number of workers for data loader.","default":0}},"type":"object","required":["dataset","backends"],"title":"DataCfg"},"DatasetBaseResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the dataset."},"workspace_id":{"type":"integer","title":"Workspace Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_by":{"type":"integer","title":"Created By"}},"type":"object","required":["id","name","workspace_id","created_at","updated_at","created_by"],"title":"DatasetBaseResponse"},"DatasetListResponse":{"properties":{"datasets":{"items":{"$ref":"#/components/schemas/DatasetResponse"},"type":"array","title":"Datasets"},"total_count":{"type":"integer","title":"Total Count","description":"The total number of datasets."}},"type":"object","required":["datasets","total_count"],"title":"DatasetListResponse"},"DatasetPatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"description":"The name of the dataset."},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","description":"The description of the dataset."},{"type":"null"}],"title":"Description"}},"type":"object","title":"DatasetPatchRequest"},"DatasetPostRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"The name of the dataset."},"description":{"anyOf":[{"type":"string","description":"The description of the dataset."},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"DatasetPostRequest"},"DatasetResponse":{"properties":{"project_count":{"type":"integer","title":"Project Count","description":"The number of projects linked to this resource.","default":0},"project_names":{"items":{"type":"string"},"type":"array","title":"Project Names","description":"List of names of the projects linked to this resource."},"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the dataset."},"workspace_id":{"type":"integer","title":"Workspace Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_by":{"type":"integer","title":"Created By"}},"type":"object","required":["id","name","workspace_id","created_at","updated_at","created_by"],"title":"DatasetResponse"},"DeletionStateQuery":{"type":"string","enum":["include","exclude","only"],"title":"DeletionStateQuery"},"DepartmentType":{"type":"string","enum":["R&D","Manufacturing","Quality Control","IT Department","Marketing / Sales","Procurement / Supply Chain","General Management","Finance / Accounting","Human Resources","Legal Department","Other"],"title":"DepartmentType"},"EdmSubscriptionResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the user."},"subscription":{"type":"boolean","title":"Subscription","description":"Current EDM subscription status."}},"type":"object","required":["id","subscription"],"title":"EdmSubscriptionResponse","example":{"id":123,"subscription":true}},"EdmSubscriptionUpdateRequest":{"properties":{"subscription":{"type":"boolean","title":"Subscription","description":"Whether the user subscribes to EDM."}},"type":"object","required":["subscription"],"title":"EdmSubscriptionUpdateRequest"},"EmailFields":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"User's email address"}},"type":"object","required":["email"],"title":"EmailFields"},"EventPayload":{"properties":{"event_type":{"$ref":"#/components/schemas/EventType","description":"Event type (e.g. send_confirmation_email)"},"metadata":{"type":"object","title":"Metadata","description":"Metadata for the specified event_type"}},"type":"object","required":["event_type"],"title":"EventPayload","example":{"event_type":"send_reset_password_email","metadata":{"email":"user@example.com"}}},"EventType":{"type":"string","enum":["send_confirmation_email","send_reset_password_email"],"title":"EventType"},"FeaturePath":{"properties":{"image_embeddings":{"type":"string","title":"Image Embeddings","description":"The pre-signed URL for image embeddings, valid for a limited time."},"high_res_features1":{"type":"string","title":"High Res Features1","description":"The pre-signed URL for image high_res_features1, valid for a limited time."},"high_res_features2":{"type":"string","title":"High Res Features2","description":"The pre-signed URL for image high_res_features2, valid for a limited time."}},"type":"object","required":["image_embeddings","high_res_features1","high_res_features2"],"title":"FeaturePath"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"User's email address"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest","example":{"email":"user@example.com"}},"Framework":{"type":"string","enum":["torchscript","openvino","tensorrt","onnx","torchweight"],"title":"Framework"},"GlobalCfg":{"properties":{"input_shape":{"items":{"type":"integer"},"type":"array","title":"Input Shape"},"task":{"type":"string","title":"Task"},"num_classes":{"type":"integer","title":"Num Classes"},"batch_size":{"type":"integer","title":"Batch Size"}},"type":"object","required":["input_shape","task","num_classes","batch_size"],"title":"GlobalCfg"},"GoogleUserInfoResponse":{"properties":{"email":{"type":"string","title":"Email","description":"User's email address retrieved from Google"},"first_name":{"type":"string","title":"First Name","description":"User's first name (given name) from Google profile"},"last_name":{"type":"string","title":"Last Name","description":"User's last name (family name) from Google profile"}},"type":"object","required":["email","first_name","last_name"],"title":"GoogleUserInfoResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of images."},"Images":{"items":{"$ref":"#/components/schemas/ImageResponse"},"type":"array","title":"Images","description":"A list of image response objects."}},"type":"object","required":["total_count","Images"],"title":"ImageListResponse"},"ImagePatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"description":"The name of the image."},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","description":"The description of the image."},{"type":"null"}],"title":"Description"}},"type":"object","title":"ImagePatchRequest"},"ImagePresignedUrlResponse":{"properties":{"presigned_url":{"type":"string","title":"Presigned Url","description":"The pre-signed URL for accessing the image, valid for a limited time."}},"type":"object","required":["presigned_url"],"title":"ImagePresignedUrlResponse"},"ImageResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the image."},"dataset_id":{"type":"integer","title":"Dataset Id","description":"The unique identifier of the dataset this image belongs to."},"path":{"type":"string","title":"Path","description":"The file path or URL of the image."},"name":{"type":"string","title":"Name","description":"The name of the image."},"image_metadata":{"type":"object","title":"Image Metadata","description":"A dictionary containing metadata about the image."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the image."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the image was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the image was last updated."},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At","description":"The timestamp when the image was deleted, if applicable."},"created_by":{"type":"integer","title":"Created By","description":"The unique identifier of the user who created the image."},"deleted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted By","description":"The unique identifier of the user who deleted the image, if applicable."}},"type":"object","required":["id","dataset_id","path","name","image_metadata","created_at","updated_at","created_by"],"title":"ImageResponse"},"ImageSplits":{"properties":{"train":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Train"},"val":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Val"},"test":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Test"}},"type":"object","title":"ImageSplits"},"ImageWithProjectInfoListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of images."},"Images":{"items":{"$ref":"#/components/schemas/ImageWithProjectInfoResponse"},"type":"array","title":"Images","description":"A list of image response objects with project info."}},"type":"object","required":["total_count","Images"],"title":"ImageWithProjectInfoListResponse"},"ImageWithProjectInfoResponse":{"properties":{"project_count":{"type":"integer","title":"Project Count","description":"The number of projects linked to this resource.","default":0},"project_names":{"items":{"type":"string"},"type":"array","title":"Project Names","description":"List of names of the projects linked to this resource."},"id":{"type":"integer","title":"Id","description":"The unique identifier of the image."},"dataset_id":{"type":"integer","title":"Dataset Id","description":"The unique identifier of the dataset this image belongs to."},"path":{"type":"string","title":"Path","description":"The file path or URL of the image."},"name":{"type":"string","title":"Name","description":"The name of the image."},"image_metadata":{"type":"object","title":"Image Metadata","description":"A dictionary containing metadata about the image."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the image."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the image was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the image was last updated."},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At","description":"The timestamp when the image was deleted, if applicable."},"created_by":{"type":"integer","title":"Created By","description":"The unique identifier of the user who created the image."},"deleted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted By","description":"The unique identifier of the user who deleted the image, if applicable."}},"type":"object","required":["id","dataset_id","path","name","image_metadata","created_at","updated_at","created_by"],"title":"ImageWithProjectInfoResponse"},"IndustryType":{"type":"string","enum":["Mechatronics","Robot Integrator","Machine Builder","System Integrator","Metal Processing","Plastics Processing","Electronics","Semiconductor","Food Processing","Healthcare","Aerospace","Defense","Automotive","Academic / Research","Government / Public Sector","Retail","Other"],"title":"IndustryType"},"InviteLinkResponse":{"properties":{"invite_link":{"type":"string","title":"Invite Link","description":"Workspace invitation link for the user"}},"type":"object","required":["invite_link"],"title":"InviteLinkResponse"},"InviteMemberListRequest":{"properties":{"email_list":{"items":{"type":"string","format":"email"},"type":"array","title":"Email List","description":"List of user email addresses to invite"},"role":{"$ref":"#/components/schemas/WorkspaceRoleEnum","description":"Workspace role to assign to the users"}},"type":"object","required":["email_list","role"],"title":"InviteMemberListRequest"},"InviteSummaryResponse":{"properties":{"success":{"items":{"type":"string","format":"email"},"type":"array","title":"Success"},"failed":{"items":{"type":"string","format":"email"},"type":"array","title":"Failed"}},"type":"object","required":["success","failed"],"title":"InviteSummaryResponse"},"JobStatus":{"type":"string","enum":["standby","running","finished","canceled","failed"],"title":"JobStatus"},"LoggerCfg":{"properties":{"logger":{"type":"string","title":"Logger"},"kwargs":{"type":"object","title":"Kwargs"}},"type":"object","required":["logger"],"title":"LoggerCfg"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"User's email address"},"password":{"type":"string","format":"password","title":"Password","description":"User's password","writeOnly":true}},"additionalProperties":false,"type":"object","required":["email","password"],"title":"LoginRequest","example":{"email":"user@example.com","password":"@Password123"}},"LoginResponse":{"properties":{"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token","description":"JWT access token"},"token_type":{"anyOf":[{"$ref":"#/components/schemas/TokenTypeEnum"},{"type":"null"}],"description":"Token type (e.g. bearer)","default":"bearer"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At","description":"Timestamp when the user completed activation. Null if not activated yet."}},"type":"object","title":"LoginResponse"},"MFASetupResponse":{"properties":{"otp_uri":{"type":"string","title":"Otp Uri","description":"OTP provisioning URI used to generate a QR code for TOTP apps like Microsoft Authenticator"},"secret":{"type":"string","title":"Secret","description":"Plaintext TOTP secret key. Use this for manual entry in authenticator apps if QR code scanning is not possible."}},"type":"object","required":["otp_uri","secret"],"title":"MFASetupResponse"},"MFAStatusResponse":{"properties":{"mfa_enabled":{"type":"boolean","title":"Mfa Enabled","description":"True if MFA is enabled"}},"type":"object","required":["mfa_enabled"],"title":"MFAStatusResponse"},"Mask":{"properties":{"type_":{"type":"string","const":"mask","title":"Type","default":"mask"},"category_id":{"type":"integer","title":"Category Id"},"rle":{"type":"string","title":"Rle","description":"The pycocotools-style compressed RLE string."},"left":{"type":"integer","minimum":0.0,"title":"Left"},"top":{"type":"integer","minimum":0.0,"title":"Top"},"width":{"type":"integer","exclusiveMinimum":0.0,"title":"Width"},"height":{"type":"integer","exclusiveMinimum":0.0,"title":"Height"},"occluded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Occluded","default":false},"z_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Z Order","default":0}},"type":"object","required":["category_id","rle","left","top","width","height"],"title":"Mask"},"Metric":{"properties":{"y_label":{"type":"string","title":"Y Label"},"y":{"items":{"type":"number"},"type":"array","title":"Y"},"x_label":{"type":"string","title":"X Label"},"x":{"items":{"type":"number"},"type":"array","title":"X"},"class_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Class Id"}},"type":"object","required":["y_label","y","x_label","x"],"title":"Metric"},"ModelTask":{"type":"string","enum":["anomaly","detection","classification","segmentation"],"title":"ModelTask"},"ModelWeightsPresignedUrlResponse":{"properties":{"presigned_url":{"type":"string","title":"Presigned Url","description":"The pre-signed URL for accessing the model, valid for a limited time."}},"type":"object","required":["presigned_url"],"title":"ModelWeightsPresignedUrlResponse"},"MultiAnnotationResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count"},"annotations":{"items":{"$ref":"#/components/schemas/AnnotationResponse"},"type":"array","title":"Annotations"}},"type":"object","required":["total_count","annotations"],"title":"MultiAnnotationResponse"},"Notification":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"user_id":{"type":"integer","title":"User Id"},"message":{"type":"object","title":"Message"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"page_info":{"$ref":"#/components/schemas/NotificationPageInfo","description":"Target routing information: workspace/project/job"},"event_id":{"type":"integer","title":"Event Id"}},"type":"object","required":["id","user_id","message","read_at","created_at","event_id"],"title":"Notification","description":"Represents a notification sent to a user.\n\nThis table stores system and user-generated notifications. Each notification\nis associated with a specific user (`user_id`) and contains a message (`message`)."},"NotificationEventMap":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],"title":"NotificationEventMap"},"NotificationListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of notifications."},"notifications":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Notifications","description":"A list of notification responses."}},"type":"object","required":["total_count","notifications"],"title":"NotificationListResponse"},"NotificationPageInfo":{"properties":{"workspace_id":{"type":"integer","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Id"},"dataset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset Id"}},"type":"object","required":["workspace_id"],"title":"NotificationPageInfo"},"NotificationResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the notification."},"type":{"$ref":"#/components/schemas/NotificationType","description":"The type of the notification (e.g., INFO, WARNING, ERROR)."},"event_name":{"type":"string","title":"Event Name","description":"The name of the event that triggered the notification."},"message":{"type":"object","title":"Message","description":"The message content of the notification."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the notification was created."},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At","description":"The timestamp when the notification was read, if applicable."},"page_info":{"anyOf":[{"$ref":"#/components/schemas/NotificationPageInfo"},{"type":"null"}],"description":"The routing information used to navigate to the relevant page."}},"type":"object","required":["id","type","event_name","message","created_at"],"title":"NotificationResponse"},"NotificationType":{"type":"string","enum":["warning","info","error"],"title":"NotificationType"},"OccupationType":{"type":"string","enum":["Equipment Engineer","System Integration Engineer","AI Engineer","Data Scientist","Researcher","Product Manager","Project Manager","Technical Manager","Factory Operator","Management","Other"],"title":"OccupationType"},"OptimizerCfg":{"properties":{"optimizer":{"type":"string","title":"Optimizer"},"kwargs":{"type":"object","title":"Kwargs"}},"type":"object","required":["optimizer"],"title":"OptimizerCfg"},"OrderByEnum":{"type":"string","enum":["id","name","created_at","updated_at"],"title":"OrderByEnum"},"PasswordRequest":{"properties":{"password":{"type":"string","format":"password","title":"Password","description":"Password for user account","writeOnly":true}},"type":"object","required":["password"],"title":"PasswordRequest"},"PipelineCfg":{"properties":{"name":{"type":"string","title":"Name"},"weight":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}],"title":"Weight","default":true},"torch_compile":{"type":"boolean","title":"Torch Compile","description":"Flag to enable `torch.compile`.","default":false},"kwargs":{"type":"object","title":"Kwargs"},"scheduler":{"anyOf":[{"items":{"$ref":"#/components/schemas/SchedulerCfg"},"type":"array"},{"type":"null"}],"title":"Scheduler"},"optimizer":{"anyOf":[{"items":{"$ref":"#/components/schemas/OptimizerCfg"},"type":"array"},{"type":"null"}],"title":"Optimizer"}},"type":"object","required":["name"],"title":"PipelineCfg"},"Polygon":{"properties":{"type_":{"type":"string","const":"polygon","title":"Type","default":"polygon"},"category_id":{"type":"integer","title":"Category Id"},"points":{"items":{"items":{"type":"number","minimum":0.0},"type":"array"},"type":"array","title":"Points"},"occluded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Occluded","default":false},"z_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Z Order","default":0}},"type":"object","required":["category_id","points"],"title":"Polygon"},"PredictionRead":{"properties":{"id":{"type":"integer","title":"Id"},"training_job_id":{"type":"integer","title":"Training Job Id"},"image_id":{"type":"integer","title":"Image Id"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","training_job_id","image_id","data","created_at","updated_at","deleted_at"],"title":"PredictionRead"},"PredictionReadList":{"properties":{"Predictions":{"items":{"$ref":"#/components/schemas/PredictionRead"},"type":"array","title":"Predictions"}},"type":"object","required":["Predictions"],"title":"PredictionReadList"},"ProjectImagePatchRequest":{"properties":{"image_ids":{"items":{"type":"integer","exclusiveMaximum":9.223372036854776e+18,"exclusiveMinimum":0.0},"type":"array","title":"Image Ids","description":"List of image IDs to associate with the project."}},"type":"object","required":["image_ids"],"title":"ProjectImagePatchRequest"},"ProjectListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of projects."},"projects":{"items":{"$ref":"#/components/schemas/ProjectResponse"},"type":"array","title":"Projects","description":"A list of project details."}},"type":"object","required":["total_count","projects"],"title":"ProjectListResponse"},"ProjectPatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"description":"The name of the project."},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","description":"The description of the project."},{"type":"null"}],"title":"Description"},"dataset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset Id","description":"The updated dataset associated with the project, if provided."}},"type":"object","title":"ProjectPatchRequest","example":{"dataset_id":1,"description":"","name":"update_project"}},"ProjectPostRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"The name of the project."},"description":{"anyOf":[{"type":"string","description":"The description of the project."},{"type":"null"}],"title":"Description"},"type":{"$ref":"#/components/schemas/ProjectType"}},"type":"object","required":["name","type"],"title":"ProjectPostRequest","example":{"description":"","name":"test_project","type":"classification"}},"ProjectResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the project."},"type":{"$ref":"#/components/schemas/ProjectType","description":"The type of the project."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"A short description of the project."},"name":{"type":"string","title":"Name","description":"The name of the project."},"workspace_id":{"type":"integer","title":"Workspace Id","description":"The ID of the workspace associated with the project."},"image_count":{"type":"integer","title":"Image Count","description":"The number of images associated with the project."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp when the project was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp when the project was last updated."},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At","description":"The timestamp when the project was deleted, if applicable."},"dataset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset Id","description":"The dataset associated with the project."},"task_count":{"type":"integer","title":"Task Count","description":"The number of tasks related to the project."},"owned_by":{"type":"integer","title":"Owned By","description":"The user ID of the project owner."}},"type":"object","required":["id","type","name","workspace_id","image_count","created_at","updated_at","task_count","owned_by"],"title":"ProjectResponse"},"ProjectType":{"type":"string","enum":["anomaly_detection","classification","object_detection","segmentation","oriented_object_detection"],"title":"ProjectType"},"QuotaResponse":{"properties":{"current":{"type":"integer","title":"Current","description":"The current usage amount of the specified resource."},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit","description":"The maximum allowed quota for the specified resource."}},"type":"object","required":["current","limit"],"title":"QuotaResponse"},"ReadStateQuery":{"type":"string","enum":["include","exclude"],"title":"ReadStateQuery"},"RecoveryCodesResponse":{"properties":{"recovery_codes":{"items":{"type":"string"},"type":"array","title":"Recovery Codes","description":"One-time recovery codes. Save them securely"}},"type":"object","required":["recovery_codes"],"title":"RecoveryCodesResponse"},"RegionType":{"type":"string","enum":["North America","Europe","Taiwan","China","Japan","Korea","Southeast Asia","South Asia","Oceania","Middle East & Africa","Latin America","Others"],"title":"RegionType"},"RegisterRequest":{"properties":{"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"department":{"anyOf":[{"$ref":"#/components/schemas/DepartmentType"},{"type":"null"}],"description":"User's department or organizational unit"},"industry":{"anyOf":[{"$ref":"#/components/schemas/IndustryType"},{"type":"null"}],"description":"Industry the user is associated with"},"occupation":{"anyOf":[{"$ref":"#/components/schemas/OccupationType"},{"type":"null"}],"description":"User's job title or position"},"region":{"anyOf":[{"$ref":"#/components/schemas/RegionType"},{"type":"null"}],"description":"User's current region of residence"},"referral_person":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Person","description":"Name of the person who referred the user"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":6},{"type":"null"}],"title":"Phone Country Code","description":"International country code"},"phone_number":{"anyOf":[{"type":"string","maxLength":32,"minLength":6},{"type":"null"}],"title":"Phone Number","description":"Phone number without country code"},"phone_extension":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone Extension","description":"Optional phone extension"},"email":{"type":"string","format":"email","title":"Email","description":"User's email address"},"first_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"First Name","description":"First name of the user"},"last_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Last Name","description":"Last name of the user"},"birthday":{"type":"string","format":"date","title":"Birthday","description":"User's date of birth (YYYY-MM-DD)"},"password":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Password","description":"Password for user account"},"usage_type":{"$ref":"#/components/schemas/UserUsageType","description":"Whether the user is using the platform for personal or business purposes"},"agree_privacy":{"type":"boolean","title":"Agree Privacy","description":"Indicates whether the user agrees to the privacy policy and authorizes the use of provided information for account registration and service delivery."},"agree_license":{"type":"boolean","title":"Agree License","description":"Indicates whether the user agrees to the End User License Agreement (EULA)."},"agree_edm":{"type":"boolean","title":"Agree Edm","description":"Indicates whether the user agrees to receive news, promotions, product updates, and service information via email or other communication channels."}},"type":"object","required":["email","birthday","usage_type","agree_privacy","agree_license","agree_edm"],"title":"RegisterRequest","example":{"agree_edm":true,"agree_license":true,"agree_privacy":true,"birthday":"1999-01-01","company":"ASUS","department":"RD","email":"user@example.com","first_name":"user_first_name","industry":"ELECTRONICS","last_name":"user_last_name","occupation":"AI_ENGINEER","password":"@Password123","phone_country_code":"+886","phone_extension":"9","phone_number":"12345678","referral_person":"user","region":"TAIWAN","usage_type":"PERSONAL"}},"ResetPasswordRequest":{"properties":{"new_password":{"type":"string","format":"password","title":"New Password","description":"New password to set","writeOnly":true}},"type":"object","required":["new_password"],"title":"ResetPasswordRequest"},"SamplerCfg":{"properties":{"sampler":{"type":"string","title":"Sampler"},"sampler_kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Sampler Kwargs"}},"type":"object","required":["sampler"],"title":"SamplerCfg"},"SchedulerCfg":{"properties":{"scheduler":{"type":"string","title":"Scheduler"},"kwargs":{"type":"object","title":"Kwargs"},"interval":{"type":"string","enum":["epoch","step"],"title":"Interval","default":"epoch"},"frequency":{"type":"integer","title":"Frequency","default":1},"monitor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monitor"},"strict":{"type":"boolean","title":"Strict","default":true}},"type":"object","required":["scheduler"],"title":"SchedulerCfg"},"SubscriptionPlanName":{"type":"string","enum":["Free","Standard","Pro","Enterprise"],"title":"SubscriptionPlanName"},"SubscriptionPlansResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"resource_limits":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object","title":"Resource Limits"},"price_per_month":{"type":"integer","title":"Price Per Month"},"status":{"type":"string","title":"Status"}},"type":"object","required":["name","description","resource_limits","price_per_month","status"],"title":"SubscriptionPlansResponse"},"Tag":{"properties":{"type_":{"type":"string","const":"tag","title":"Type","default":"tag"},"category_id":{"type":"integer","title":"Category Id"}},"type":"object","required":["category_id"],"title":"Tag"},"TaskInfoRequest":{"properties":{"created_by":{"type":"integer","title":"Created By","description":"The user who creates this notification."},"workspace_name":{"type":"string","title":"Workspace Name","description":"Optional workspace name, auto-filled if not provided","default":""},"project_name":{"type":"string","title":"Project Name","description":"Name of the project under which the task is executed."},"task_name":{"type":"string","title":"Task Name","description":"Descriptive name or identifier of the task."},"failed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed Reason","description":"Detailed reason for task failure, if applicable. Leave blank if the task did not fail."}},"type":"object","required":["created_by","project_name","task_name"],"title":"TaskInfoRequest"},"Threshold":{"properties":{"overall_confidence_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Overall Confidence Threshold"},"confidence_thresholds":{"items":{"type":"number","maximum":1.0,"minimum":0.0},"type":"array","title":"Confidence Thresholds"}},"type":"object","required":["overall_confidence_threshold","confidence_thresholds"],"title":"Threshold"},"TokenTypeEnum":{"type":"string","enum":["bearer"],"title":"TokenTypeEnum"},"TrainCfg":{"properties":{"max_epochs":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Epochs"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Random seed for reproducibility"},"accelerator":{"type":"string","title":"Accelerator","default":"auto"},"strategy":{"type":"string","title":"Strategy","default":"auto"},"devices":{"title":"Devices","default":"auto"},"num_nodes":{"type":"integer","exclusiveMinimum":0.0,"title":"Num Nodes","description":"Number of GPU nodes for distributed training.","default":1},"precision":{"type":"string","title":"Precision","default":"32"},"logger":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoggerCfg"},"type":"array"},{"type":"boolean"},{"type":"null"}],"title":"Logger"},"callbacks":{"anyOf":[{"items":{"$ref":"#/components/schemas/CallbackCfg"},"type":"array"},{"type":"null"}],"title":"Callbacks"},"fast_dev_run":{"type":"boolean","title":"Fast Dev Run","description":"Runs n if set to ``n`` (int) else 1 if set to ``True`` batch(es) of train, val and test to find any bugs (ie: a sort of unit test). Default: ``False``.","default":false},"min_epochs":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Epochs"},"max_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Steps","default":-1},"min_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Steps"},"max_time":{"anyOf":[{"type":"string"},{"type":"string","format":"duration"},{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Max Time","description":"Stop the training after this amount of time has passed. Defaults to `None`.The time duration can be specified in the format DD:HH:MM:SS (days, hours, minutes seconds), or a dictionary with keys `days`, `hours`, `minutes` and `seconds`."},"limit_train_batches":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Limit Train Batches","description":"How much of training dataset to check. (float = fraction, int = num_batches). "},"limit_val_batches":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Limit Val Batches","description":"How much of validation dataset to check. (float = fraction, int = num_batches). "},"limit_test_batches":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Limit Test Batches","description":"How much of test dataset to check. (float = fraction, int = num_batches). "},"limit_predict_batches":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Limit Predict Batches","description":"How much of predict dataset to check. (float = fraction, int = num_batches). "},"overfit_batches":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Overfit Batches","description":"Overfit a fraction of training/validation data (float) or a set number of batches (int). ","default":0.0},"val_check_interval":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Val Check Interval","description":"How often to check the validation set. "},"check_val_every_n_epoch":{"type":"integer","title":"Check Val Every N Epoch","default":1},"num_sanity_val_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Sanity Val Steps","description":"Sanity check runs n validation batches before starting the training routine. Set it to -1 to run all batches in all validation dataloaders. Default: 2."},"log_every_n_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Every N Steps","description":"How often to log within steps."},"enable_checkpointing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Checkpointing","description":"Enable checkpointing. Default: None."},"enable_progress_bar":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Progress Bar","description":"Enable progress bar. Default: None."},"enable_model_summary":{"type":"boolean","title":"Enable Model Summary","description":"Whether to enable model summarization by default. Default: True.","default":true},"accumulate_grad_batches":{"type":"integer","title":"Accumulate Grad Batches","description":"Accumulates grads every k batches or as set up in the dict. Default: 1.","default":1},"gradient_clip_val":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Gradient Clip Val","description":"The value at which to clip the gradients. Passing `None` disables gradient clipping. Default: None."},"gradient_clip_algorithm":{"anyOf":[{"type":"string","enum":["norm","value"]},{"type":"null"}],"title":"Gradient Clip Algorithm","description":"The algorithm to use for gradient clipping. Either pass `value` apply `clip by value`, or pass `norm` to apply `clip by norm`. Default: None."},"deterministic":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}],"title":"Deterministic","description":"Sets whether PyTorch operations must use deterministic algorithms."},"benchmark":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Benchmark","description":"If true enables cudnn.benchmark. Default: None."},"inference_mode":{"type":"boolean","title":"Inference Mode","description":"Whether to use `torch.inference_mode` or `torch.no_grad` during evaluation.","default":true},"use_distributed_sampler":{"type":"boolean","title":"Use Distributed Sampler","description":"Whether to wrap the DataLoader's sampler with `torch.utils.data.DistributedSampler` if needed.","default":true},"profiler":{"anyOf":[{"type":"string","enum":["simple","advanced","pytorch","xla"]},{"type":"null"}],"title":"Profiler","description":"To profile individual steps during training and assist in identifying bottlenecks."},"detect_anomaly":{"type":"boolean","title":"Detect Anomaly","description":"Enable anomaly detection for the autograd engine.","default":false},"barebones":{"type":"boolean","title":"Barebones","default":false},"plugins":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Plugins"},"sync_batchnorm":{"type":"boolean","title":"Sync Batchnorm","description":"Enable synchronized batch normalization between process groups / whole world.","default":false},"reload_dataloaders_every_n_epochs":{"type":"integer","minimum":0.0,"title":"Reload Dataloaders Every N Epochs","description":"Set to a positive integer to reload dataloaders every n epochs.","default":0},"default_root_dir":{"anyOf":[{"type":"string"},{"type":"string","format":"path"},{"type":"null"}],"title":"Default Root Dir","description":"Default path for logs and weights when no logger/ckpt_callback passed. Default: ``os.getcwd()``."},"model_registry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Registry"}},"type":"object","required":["max_epochs"],"title":"TrainCfg","description":"The configuration for training the model.\n\nNote\n----\n1. The order of fields in this class should align with the order of argument in the `Lightning.Trainer`.\n2. All the fields could be found in the `Lightning.Trainer` class, except for the `seed` field, which is\n used to set the random seed for reproducibility."},"TrainingJob":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"project_id":{"type":"integer","title":"Project Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/JobStatus"},"parameter_configs":{"$ref":"#/components/schemas/AASConfig-Output"},"image_splits":{"$ref":"#/components/schemas/ImageSplits"},"fail_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Reason"},"threshold":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Threshold"},"threshold_metrics_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threshold Metrics Path"},"custom_threshold":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Custom Threshold"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_by":{"type":"integer","title":"Created By"},"deleted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted By"}},"type":"object","required":["project_id","name","status","parameter_configs","image_splits","created_at","updated_at","created_by"],"title":"TrainingJob","description":"Represents a training job in the system.\n\nA training job is associated with a project."},"TrainingJobListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of training jobs."},"jobs":{"items":{"$ref":"#/components/schemas/TrainingJobResponse"},"type":"array","title":"Jobs","description":"A list of training job responses."}},"type":"object","required":["total_count","jobs"],"title":"TrainingJobListResponse"},"TrainingJobPostRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"The name of the training job."},"project_id":{"type":"integer","exclusiveMaximum":9.223372036854776e+18,"exclusiveMinimum":0.0,"title":"Project Id","description":"The unique identifier of the associated project."},"aasconfig":{"$ref":"#/components/schemas/AASConfig-Input","description":"The configuration settings for the AAS process."},"image_splits":{"$ref":"#/components/schemas/ImageSplits","description":"The distribution of images."}},"type":"object","required":["name","project_id","aasconfig","image_splits"],"title":"TrainingJobPostRequest"},"TrainingJobResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the training job."},"name":{"type":"string","title":"Name","description":"The name of the training job."},"status":{"$ref":"#/components/schemas/JobStatus","description":"The current status of the training job."},"project_name":{"type":"string","title":"Project Name","description":"The name of the project associated with the training job."},"project_type":{"$ref":"#/components/schemas/ProjectType","description":"The type of the project associated with the training job."},"project_id":{"type":"integer","title":"Project Id","description":"The unique identifier of the associated project."},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"The start time of the training job, if available."},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At","description":"The finish time of the training job, if available."},"current_progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Progress","description":"The current progress of the training job."}},"type":"object","required":["id","name","status","project_name","project_type","project_id"],"title":"TrainingJobResponse"},"TrainingStatusRequest":{"properties":{"task_info":{"$ref":"#/components/schemas/TaskInfoRequest"},"page_info":{"$ref":"#/components/schemas/NotificationPageInfo"}},"type":"object","required":["task_info","page_info"],"title":"TrainingStatusRequest"},"UpdatePasswordRequest":{"properties":{"old_password":{"type":"string","format":"password","title":"Old Password","description":"Current password","writeOnly":true},"new_password":{"type":"string","format":"password","title":"New Password","description":"New password to update","writeOnly":true}},"type":"object","required":["old_password","new_password"],"title":"UpdatePasswordRequest"},"UserListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of the user."},"users":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Users"}},"type":"object","required":["total_count","users"],"title":"UserListResponse"},"UserNotificationChannelSetting":{"properties":{"onsite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onsite","description":"Enable or disable on-site notifications. Default is True."},"email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email","description":"Enable or disable email notifications. Default is False."},"browser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Browser","description":"Enable or disable browser push notifications. Default is False."}},"type":"object","title":"UserNotificationChannelSetting","example":{"browser":false,"email":true,"onsite":false}},"UserPatchRequest":{"properties":{"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"department":{"anyOf":[{"$ref":"#/components/schemas/DepartmentType"},{"type":"null"}],"description":"User's department or organizational unit"},"industry":{"anyOf":[{"$ref":"#/components/schemas/IndustryType"},{"type":"null"}],"description":"Industry the user is associated with"},"occupation":{"anyOf":[{"$ref":"#/components/schemas/OccupationType"},{"type":"null"}],"description":"User's job title or position"},"region":{"anyOf":[{"$ref":"#/components/schemas/RegionType"},{"type":"null"}],"description":"User's current region of residence"},"referral_person":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Person","description":"Name of the person who referred the user"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":6},{"type":"null"}],"title":"Phone Country Code","description":"International country code"},"phone_number":{"anyOf":[{"type":"string","maxLength":32,"minLength":6},{"type":"null"}],"title":"Phone Number","description":"Phone number without country code"},"phone_extension":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone Extension","description":"Optional phone extension"},"first_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"First Name","description":"First name of the user"},"last_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Last Name","description":"Last name of the user"}},"type":"object","title":"UserPatchRequest","example":{"company":"ASUS","department":"RD","first_name":"user_first_name","industry":"ELECTRONICS","last_name":"user_last_name","occupation":"AI_ENGINEER","phone_country_code":"+886","phone_extension":"9","phone_number":"12345678","referral_person":"user","region":"TAIWAN"}},"UserResponse":{"properties":{"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"User's department or organizational unit"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry the user is associated with"},"occupation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occupation","description":"User's job title or position"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"User's current region of residence"},"referral_person":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Person","description":"Name of the person who referred the user"},"usage_type":{"type":"string","title":"Usage Type","description":"Whether the user is using the platform for personal or business purposes"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":6},{"type":"null"}],"title":"Phone Country Code","description":"International country code"},"phone_number":{"anyOf":[{"type":"string","maxLength":32,"minLength":6},{"type":"null"}],"title":"Phone Number","description":"Phone number without country code"},"phone_extension":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone Extension","description":"Optional phone extension"},"email":{"type":"string","format":"email","title":"Email","description":"User's email address"},"first_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"First Name","description":"First name of the user"},"last_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Last Name","description":"Last name of the user"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At","description":"Timestamp when the user completed activation. Null if not activated yet."},"mfa_enabled":{"type":"boolean","title":"Mfa Enabled","description":"Whether MFA is enabled for the user"}},"type":"object","required":["usage_type","email","mfa_enabled"],"title":"UserResponse"},"UserUsageType":{"type":"string","enum":["Personal","Enterprise"],"title":"UserUsageType"},"UserWorkspaceRoleRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"User's email address"},"role":{"$ref":"#/components/schemas/WorkspaceRoleEnum","description":"Workspace role to assign to the users"}},"type":"object","required":["email","role"],"title":"UserWorkspaceRoleRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyMFARequest":{"properties":{"password":{"type":"string","format":"password","title":"Password","description":"Password for user account","writeOnly":true},"mfa_code":{"type":"string","title":"Mfa Code","description":"6-digit code or recovery code"},"email":{"type":"string","format":"email","title":"Email","description":"User's email address"}},"type":"object","required":["password","mfa_code","email"],"title":"VerifyMFARequest"},"Workspace":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"owned_by":{"type":"integer","title":"Owned By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"deleted_by":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deleted By"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"current_usage":{"type":"number","title":"Current Usage","description":"The current storage usage in GB."},"subscription_id":{"type":"integer","title":"Subscription Id"}},"type":"object","required":["id","name","owned_by","created_at","updated_at","deleted_at","description","current_usage","subscription_id"],"title":"Workspace","description":"Represents a workspace in the system.\n\nA workspace is a container for collaborative projects, owned by a specific user.\nIt maintains metadata such as ownership, creation time, update time, and soft deletion."},"WorkspaceDataUsage":{"properties":{"total_available":{"type":"number","title":"Total Available","description":"The total available storage in GB for the workspace."},"current_usage":{"type":"number","title":"Current Usage","description":"The current storage usage in GB for the workspace."}},"type":"object","required":["total_available","current_usage"],"title":"WorkspaceDataUsage"},"WorkspaceListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of projects."},"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceResponse"},"type":"array","title":"Workspaces","description":"A list of workspace responses."}},"type":"object","required":["total_count","workspaces"],"title":"WorkspaceListResponse"},"WorkspaceMemberListResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The total number of the workspace member."},"members":{"items":{"$ref":"#/components/schemas/WorkspaceMemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["total_count","members"],"title":"WorkspaceMemberListResponse"},"WorkspaceMemberResponse":{"properties":{"role":{"$ref":"#/components/schemas/WorkspaceRoleEnum","description":"Workspace role of the user."},"email":{"type":"string","format":"email","title":"Email","description":"User's email address"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The user name."},"pending":{"type":"boolean","title":"Pending","description":"True if the user has not joined the workspace yet (invited)."},"is_owner":{"type":"boolean","title":"Is Owner","description":"True if the user is the owner of the workspace.","default":false}},"type":"object","required":["role","email","pending"],"title":"WorkspaceMemberResponse"},"WorkspaceMemberRoleFields":{"properties":{"role":{"$ref":"#/components/schemas/WorkspaceRoleEnum","description":"Workspace role of the user."}},"type":"object","required":["role"],"title":"WorkspaceMemberRoleFields"},"WorkspacePatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1,"description":"The name of the dataset."},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","description":"The description of the dataset."},{"type":"null"}],"title":"Description"}},"type":"object","title":"WorkspacePatchRequest"},"WorkspacePostRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"The name of the dataset."},"description":{"anyOf":[{"type":"string","description":"The description of the dataset."},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"WorkspacePostRequest"},"WorkspaceResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the workspace."},"name":{"type":"string","title":"Name","description":"The name of the workspace."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"A short description of the workspace."},"subscription_name":{"type":"string","title":"Subscription Name","description":"The subscription plan name associated with the workspace."}},"type":"object","required":["id","name","description","subscription_name"],"title":"WorkspaceResponse"},"WorkspaceRoleEnum":{"type":"string","enum":["manager","member","viewer"],"title":"WorkspaceRoleEnum"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}