{"openapi":"3.1.0","info":{"title":"Lion Backup Python API","version":"2.11.0"},"paths":{"/api/login":{"post":{"tags":["auth"],"summary":"Login For Access Token","operationId":"login_for_access_token_api_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_api_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/me":{"get":{"tags":["auth"],"summary":"Read User Me","operationId":"read_user_me_api_user_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"delete":{"tags":["auth"],"summary":"Delete User Me","operationId":"delete_user_me_api_user_me_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/admin/me":{"get":{"tags":["auth"],"summary":"Read Admin Me","operationId":"read_admin_me_api_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/refresh":{"get":{"tags":["auth"],"summary":"Refresh Token","operationId":"refresh_token_api_refresh_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_api_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordReset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reset-password/confirm":{"post":{"tags":["auth"],"summary":"Reset Password Confirm","operationId":"reset_password_confirm_api_reset_password_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/send-otp":{"get":{"tags":["verify"],"summary":"Send Otp","operationId":"send_otp_api_send_otp_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"verify_field","in":"query","required":true,"schema":{"type":"string","title":"Verify Field"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify-otp":{"post":{"tags":["verify"],"summary":"Verify Otp","operationId":"verify_otp_api_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOTPModel"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/my-email-verification":{"get":{"tags":["verify"],"summary":"Get Current User Email Verification","operationId":"get_current_user_email_verification_api_my_email_verification_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/my-phone-number-verification":{"get":{"tags":["verify"],"summary":"Get Current User Phone Verification","operationId":"get_current_user_phone_verification_api_my_phone_number_verification_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/check_uploadable":{"post":{"tags":["backup"],"summary":"Check Uploadable","operationId":"check_uploadable_api_check_uploadable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/get-backup-link":{"post":{"tags":["backup"],"summary":"Backup Link","operationId":"backup_link_api_get_backup_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/check_file_uploaded":{"get":{"tags":["backup"],"summary":"Check File Uploaded","operationId":"check_file_uploaded_api_check_file_uploaded_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ori-file-link":{"get":{"tags":["backup"],"summary":"Ori File Link","operationId":"ori_file_link_api_ori_file_link_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"bucket","in":"query","required":true,"schema":{"type":"integer","title":"Bucket"}},{"name":"target_device_id","in":"query","required":true,"schema":{"type":"string","title":"Target Device Id"}},{"name":"target_local_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Local Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/download-usage":{"get":{"tags":["backup"],"summary":"Get Download Usage","operationId":"get_download_usage_api_download_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/thumbnail-file-link":{"get":{"tags":["backup"],"summary":"Thumbnail File Link","operationId":"thumbnail_file_link_api_thumbnail_file_link_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file-paginate":{"get":{"tags":["backup"],"summary":"File Paginate","operationId":"file_paginate_api_file_paginate_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offset","in":"query","required":true,"schema":{"type":"integer","title":"Offset"}},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","title":"Limit"}},{"name":"parent_path","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Parent Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/process-staging":{"post":{"tags":["backup_v2"],"summary":"Process Staging","operationId":"process_staging_api_process_staging_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStagingRequestV2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/get-backup-link-v2":{"post":{"tags":["backup_v2"],"summary":"Backup Link V2","operationId":"backup_link_v2_api_get_backup_link_v2_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupLinkBulkRequestV2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/check_file_uploaded-v2":{"get":{"tags":["backup_v2"],"summary":"Check File Uploaded V2","operationId":"check_file_uploaded_v2_api_check_file_uploaded_v2_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/update-test-user":{"post":{"tags":["test"],"summary":"Update Test User","operationId":"update_test_user_api_update_test_user_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"401":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pre-test":{"get":{"tags":["test"],"summary":"Pre Test","operationId":"pre_test_api_pre_test_get","responses":{"401":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/post-test":{"get":{"tags":["test"],"summary":"Post Test","operationId":"post_test_api_post_test_get","responses":{"401":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/select-test-user/":{"get":{"tags":["test"],"summary":"Select Test User","operationId":"select_test_user_api_select_test_user__get","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"401":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/select-test-user":{"get":{"tags":["test"],"summary":"Select Test User","operationId":"select_test_user_api_select_test_user_get","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"401":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file/{file_id}":{"get":{"tags":["file"],"summary":"Get File","operationId":"get_file_api_file__file_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["file"],"summary":"Delete File","operationId":"delete_file_api_file__file_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file":{"post":{"tags":["file"],"summary":"Create File","operationId":"create_file_api_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/find-file":{"get":{"tags":["file"],"summary":"Find File","operationId":"find_file_api_find_file_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_path","in":"query","required":true,"schema":{"type":"string","title":"File Path"}},{"name":"device_id","in":"query","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"local_md5","in":"query","required":true,"schema":{"type":"string","title":"Local Md5"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cleanup_file/{file_id}":{"delete":{"tags":["file"],"summary":"Delete File From Bucket And Db","operationId":"delete_file_from_bucket_and_db_api_cleanup_file__file_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/total_usage_gb":{"get":{"tags":["file"],"summary":"Get Usage Gb","operationId":"get_usage_gb_api_total_usage_gb_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/pricing":{"get":{"tags":["payment"],"summary":"Get Pricing","operationId":"get_pricing_api_pricing_get","parameters":[{"name":"currency","in":"query","required":false,"schema":{"default":"MYR","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment-url":{"get":{"tags":["payment"],"summary":"Get Payment Url","operationId":"get_payment_url_api_payment_url_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"plan","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Plan"}},{"name":"billing_cycle","in":"query","required":true,"schema":{"$ref":"#/components/schemas/BillingCycle"}},{"name":"currency","in":"query","required":true,"schema":{"type":"string","title":"Currency"}},{"name":"redirect_url","in":"query","required":true,"schema":{"title":"Redirect Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/create-portal-session":{"post":{"tags":["payment"],"summary":"Stripe Create Portal Session","operationId":"stripe_create_portal_session_api_create_portal_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/stripe-callback":{"post":{"tags":["payment"],"summary":"Stripe Webhook Received","operationId":"stripe_webhook_received_api_stripe_callback_post","parameters":[{"name":"stripe-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment-status":{"get":{"tags":["payment"],"summary":"Get Payment Status","operationId":"get_payment_status_api_payment_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/billplz-payment-callback":{"post":{"tags":["payment"],"summary":"Billplz Webhook","operationId":"billplz_webhook_api_billplz_payment_callback_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billplz_webhook_api_billplz_payment_callback_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/active_subscription":{"get":{"tags":["subscribe"],"summary":"Get User Active Subscription","operationId":"get_user_active_subscription_api_active_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/future_subscription":{"get":{"tags":["subscribe"],"summary":"Get User Future Subscription","operationId":"get_user_future_subscription_api_future_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/iap/verify":{"post":{"tags":["iap"],"summary":"Verify Iap Transaction","description":"Verify a StoreKit 2 transaction and create/update the user's subscription.\n\nCalled by the mobile app after a successful StoreKit purchase via expo-iap.\n1. Confirms the transaction exists via Apple's Get Transaction History API\n2. Cross-checks productId and transactionId against Apple's response\n3. Creates a new subscription (cancelling any previous active one)","operationId":"verify_iap_transaction_api_iap_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IapVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IapVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/iap/sync":{"post":{"tags":["iap"],"summary":"Sync Iap Subscriptions","description":"Sync the user's active StoreKit subscriptions with the backend.\n\nCalled during \"Restore Purchases\" flow. The device reports what subscriptions\nStoreKit says are active. The backend ensures matching Subscription rows exist.\n\nThis handles the case where a purchase was finished in StoreKit but the\nbackend verification call was never made (e.g., app killed, network error).","operationId":"sync_iap_subscriptions_api_iap_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IapSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/iap/credits/verify":{"post":{"tags":["iap"],"summary":"Verify Credit Transaction","description":"Verify a StoreKit 2 consumable credit purchase and grant bytes.\n\nCalled by the mobile app after a credit pack purchase. Idempotent:\nreplaying the same transaction_id returns already_granted.","operationId":"verify_credit_transaction_api_iap_credits_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IapVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/apple-webhook":{"post":{"tags":["apple-webhook"],"summary":"Apple Webhook","description":"Receive and process Apple App Store Server Notifications v2.\n\nVerifies the JWS signature against Apple's cert chain before trusting\nany payload data. Always returns 200 (except 401 on verification failure\nor 400 on malformed input) to prevent Apple retries of already-processed\nnotifications. Deduplication via notificationUUID.","operationId":"apple_webhook_api_apple_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/get_visual_pagination":{"get":{"tags":["visual"],"summary":"Get Visual","operationId":"get_visual_api_get_visual_pagination_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"type":"integer","title":"Limit"}},{"name":"sort","in":"query","required":true,"schema":{"type":"string","title":"Sort"}},{"name":"after_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Id"}},{"name":"after_timestamp","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Read Root","operationId":"read_root__head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Read Root","operationId":"read_root__head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"BackupLinkBulkRequestV2":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileCreate"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"BackupLinkBulkRequestV2"},"BillingCycle":{"type":"string","enum":["ANNUALLY","FREE"],"title":"BillingCycle"},"Body_billplz_webhook_api_billplz_payment_callback_post":{"properties":{"id":{"type":"string","title":"Id"},"collection_id":{"type":"string","title":"Collection Id"},"paid":{"type":"boolean","title":"Paid"},"state":{"type":"string","title":"State"},"amount":{"type":"integer","title":"Amount"},"paid_amount":{"type":"integer","title":"Paid Amount"},"due_at":{"type":"string","title":"Due At"},"email":{"type":"string","title":"Email"},"mobile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"paid_at":{"type":"string","title":"Paid At"},"transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Id"},"transaction_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Status"},"x_signature":{"type":"string","title":"X Signature"}},"type":"object","required":["id","collection_id","paid","state","amount","paid_amount","due_at","email","name","url","paid_at","x_signature"],"title":"Body_billplz_webhook_api_billplz_payment_callback_post"},"Body_login_for_access_token_api_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_for_access_token_api_login_post"},"CreditVerifyResponse":{"properties":{"status":{"type":"string","title":"Status"},"bytes_purchased":{"type":"integer","title":"Bytes Purchased"},"credits_remaining_this_pack":{"type":"integer","title":"Credits Remaining This Pack"},"total_bytes_remaining_across_all_credits":{"type":"integer","title":"Total Bytes Remaining Across All Credits"}},"type":"object","required":["status","bytes_purchased","credits_remaining_this_pack","total_bytes_remaining_across_all_credits"],"title":"CreditVerifyResponse","description":"Response for credit pack purchase verification."},"FileCreate":{"properties":{"device_id":{"type":"string","title":"Device Id"},"local_path":{"type":"string","title":"Local Path"},"local_md5":{"type":"string","title":"Local Md5"},"local_preview_md5":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Preview Md5"},"local_thumbnail_md5":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Thumbnail Md5"},"exif_datetime_original":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exif Datetime Original"},"exif_geo_lat":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Exif Geo Lat"},"exif_geo_lng":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Exif Geo Lng"},"marked_for_skip_backup":{"type":"boolean","title":"Marked For Skip Backup","default":false},"ffmpeg_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ffmpeg Metadata"},"is_folder":{"type":"boolean","title":"Is Folder","default":false},"parent_path":{"type":"string","title":"Parent Path","default":"/"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},"type":"object","required":["device_id","local_path","local_md5"],"title":"FileCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IapSyncRequest":{"properties":{"active_subscriptions":{"items":{"$ref":"#/components/schemas/IapSyncSubscription"},"type":"array","title":"Active Subscriptions"}},"type":"object","required":["active_subscriptions"],"title":"IapSyncRequest","description":"Request body for syncing active subscriptions with backend."},"IapSyncSubscription":{"properties":{"product_id":{"type":"string","title":"Product Id"},"original_transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Transaction Id"},"transaction_id":{"type":"string","title":"Transaction Id"},"expires_date_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Date Ms"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}},"type":"object","required":["product_id","transaction_id"],"title":"IapSyncSubscription","description":"A single active subscription reported by the device."},"IapVerifyRequest":{"properties":{"jws":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jws"},"product_id":{"type":"string","title":"Product Id"},"transaction_id":{"type":"string","title":"Transaction Id"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}},"type":"object","required":["product_id","transaction_id"],"title":"IapVerifyRequest","description":"Request body from the app after a successful StoreKit purchase."},"IapVerifyResponse":{"properties":{"status":{"type":"string","title":"Status"},"plan_name":{"type":"string","title":"Plan Name"},"storage_limit_gb":{"type":"number","title":"Storage Limit Gb"},"expired_at":{"type":"string","title":"Expired At"},"auto_renew":{"type":"boolean","title":"Auto Renew"}},"type":"object","required":["status","plan_name","storage_limit_gb","expired_at","auto_renew"],"title":"IapVerifyResponse","description":"Response returned to the app after verification."},"PasswordReset":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"PasswordReset"},"PasswordResetConfirm":{"properties":{"password":{"type":"string","title":"Password"},"token":{"type":"string","title":"Token"}},"type":"object","required":["password","token"],"title":"PasswordResetConfirm"},"Plan":{"type":"string","enum":["BASIC","STANDARD","PRO"],"title":"Plan"},"ProcessStagingRequestV2":{"properties":{"file_id":{"type":"string","title":"File Id"},"user_id":{"type":"string","title":"User Id"},"staging_bucket":{"type":"string","title":"Staging Bucket"},"staging_object_path":{"type":"string","title":"Staging Object Path"}},"type":"object","required":["file_id","user_id","staging_bucket","staging_object_path"],"title":"ProcessStagingRequestV2"},"User":{"properties":{"fullname":{"type":"string","maxLength":100,"title":"Fullname"},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+\\d+$"},{"type":"null"}],"title":"Phone Number"},"id":{"type":"string","format":"uuid","title":"Id"},"username":{"anyOf":[{"type":"string","maxLength":30,"pattern":"^[a-zA-Z0-9._]+$"},{"type":"null"}],"title":"Username"},"email":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"},{"type":"null"}],"title":"Email"},"password":{"type":"string","title":"Password"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"email_verified":{"type":"boolean","title":"Email Verified","default":false},"phone_number_verified":{"type":"boolean","title":"Phone Number Verified","default":false},"disabled":{"type":"boolean","title":"Disabled","default":false},"is_deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Deleted"},"deleted_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted Username"},"deleted_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted Email"},"deleted_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted Phone Number"},"role":{"type":"string","title":"Role"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"}},"type":"object","required":["password","role"],"title":"User"},"UserCreate":{"properties":{"fullname":{"type":"string","maxLength":100,"title":"Fullname"},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+\\d+$"},{"type":"null"}],"title":"Phone Number"},"username":{"type":"string","maxLength":30,"pattern":"^[a-zA-Z0-9._]+$","title":"Username"},"email":{"type":"string","pattern":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$","title":"Email"},"password":{"type":"string","maxLength":20,"minLength":8,"title":"Password"}},"type":"object","required":["username","email","password"],"title":"UserCreate"},"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"},"VerifyOTPModel":{"properties":{"verify_field":{"type":"string","title":"Verify Field"},"otp":{"type":"string","title":"Otp"}},"type":"object","required":["verify_field","otp"],"title":"VerifyOTPModel"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/login"}}},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}