diff --git a/apps/user/locales/cs-CZ/common.json b/apps/user/locales/cs-CZ/common.json index e06a58c..dd04140 100644 --- a/apps/user/locales/cs-CZ/common.json +++ b/apps/user/locales/cs-CZ/common.json @@ -28,6 +28,7 @@ "20004": "Uživatel byl deaktivován, pokud máte dotazy, kontaktujte zákaznický servis.", "20005": "Nedostatečný zůstatek, dobijte prosím a zkuste to znovu.", "20006": "Funkce registrace není momentálně dostupná, zkuste to prosím později.", + "20008": "Informace o uživateli jsou nesprávné, zkontrolujte je a zkuste to znovu.", "30001": "Tento uzel již existuje, nepřidávejte ho znovu.", "30002": "Příslušný uzel nebyl nalezen, zkontrolujte prosím a zkuste to znovu.", "30003": "Skupina již existuje, zkuste použít jiný název.", diff --git a/apps/user/locales/de-DE/common.json b/apps/user/locales/de-DE/common.json index 8fc4df9..0e04bfc 100644 --- a/apps/user/locales/de-DE/common.json +++ b/apps/user/locales/de-DE/common.json @@ -28,6 +28,7 @@ "20004": "Dieser Benutzer wurde deaktiviert, bei Fragen wenden Sie sich bitte an den Kundenservice.", "20005": "Unzureichendes Guthaben, bitte aufladen und erneut versuchen.", "20006": "Die Registrierungsfunktion ist derzeit nicht verfügbar, bitte versuchen Sie es später erneut.", + "20008": "Die Benutzerinformationen sind nicht korrekt, bitte überprüfen und erneut versuchen.", "30001": "Dieser Knoten existiert bereits, bitte nicht erneut hinzufügen.", "30002": "Kein relevanter Knoten gefunden, bitte überprüfen und erneut versuchen.", "30003": "Die Gruppe existiert bereits, bitte versuchen Sie einen anderen Namen zu verwenden.", diff --git a/apps/user/locales/en-US/common.json b/apps/user/locales/en-US/common.json index d7afaf4..daa7cb3 100644 --- a/apps/user/locales/en-US/common.json +++ b/apps/user/locales/en-US/common.json @@ -28,6 +28,7 @@ "20004": "User is disabled, please contact customer service if you have any questions.", "20005": "Insufficient balance, please recharge and try again.", "20006": "Registration function is temporarily unavailable, please try again later.", + "20008": "User information is incorrect, please check and try again.", "30001": "Node already exists, please do not add it again.", "30002": "Related node not found, please check and try again.", "30003": "Group already exists, please try using a different name.", diff --git a/apps/user/locales/es-ES/common.json b/apps/user/locales/es-ES/common.json index f6a5ff1..9c82d3d 100644 --- a/apps/user/locales/es-ES/common.json +++ b/apps/user/locales/es-ES/common.json @@ -28,6 +28,7 @@ "20004": "El usuario ha sido deshabilitado, si tiene alguna pregunta, por favor contacte al servicio al cliente.", "20005": "Saldo insuficiente, por favor recargue e intente de nuevo.", "20006": "La función de registro no está disponible por el momento, por favor intente de nuevo más tarde.", + "20008": "La información del usuario es incorrecta, por favor verifique e intente de nuevo.", "30001": "El nodo ya existe, por favor no lo agregue de nuevo.", "30002": "No se encontró el nodo relacionado, por favor verifique e intente de nuevo.", "30003": "El grupo ya existe, por favor intente usar otro nombre.", diff --git a/apps/user/locales/es-MX/common.json b/apps/user/locales/es-MX/common.json index 53b719b..3af38ad 100644 --- a/apps/user/locales/es-MX/common.json +++ b/apps/user/locales/es-MX/common.json @@ -28,6 +28,7 @@ "20004": "El usuario ha sido deshabilitado, si tienes dudas por favor contacta al servicio al cliente.", "20005": "Saldo insuficiente, por favor recarga e intenta de nuevo.", "20006": "La función de registro no está disponible por el momento, por favor intenta más tarde.", + "20008": "La información del usuario es incorrecta, por favor verifica e intenta de nuevo.", "30001": "El nodo ya existe, por favor no lo agregues de nuevo.", "30002": "No se encontró el nodo relacionado, por favor verifica e intenta de nuevo.", "30003": "El grupo ya existe, por favor intenta usar otro nombre.", diff --git a/apps/user/locales/fa-IR/common.json b/apps/user/locales/fa-IR/common.json index 704977f..8f2d459 100644 --- a/apps/user/locales/fa-IR/common.json +++ b/apps/user/locales/fa-IR/common.json @@ -28,6 +28,7 @@ "20004": "کاربر غیرفعال است، در صورت داشتن سوال با خدمات مشتری تماس بگیرید.", "20005": "موجودی کافی نیست، لطفاً حساب خود را شارژ کرده و دوباره تلاش کنید.", "20006": "عملکرد ثبت‌نام به‌طور موقت در دسترس نیست، لطفاً بعداً دوباره تلاش کنید.", + "20008": "اطلاعات کاربر نادرست است، لطفاً بررسی کرده و دوباره تلاش کنید.", "30001": "گره قبلاً وجود دارد، لطفاً دوباره آن را اضافه نکنید.", "30002": "گره مرتبط یافت نشد، لطفاً بررسی کرده و دوباره تلاش کنید.", "30003": "گروه قبلاً وجود دارد، لطفاً از نام دیگری استفاده کنید.", diff --git a/apps/user/locales/fi-FI/common.json b/apps/user/locales/fi-FI/common.json index 0ae2972..ca6fc4e 100644 --- a/apps/user/locales/fi-FI/common.json +++ b/apps/user/locales/fi-FI/common.json @@ -28,6 +28,7 @@ "20004": "Käyttäjä on estetty, ota yhteyttä asiakaspalveluun, jos sinulla on kysyttävää.", "20005": "Saldo ei riitä, lataa lisää ja yritä uudelleen.", "20006": "Rekisteröinti ei ole tällä hetkellä käytettävissä, yritä myöhemmin uudelleen.", + "20008": "Käyttäjätiedot ovat virheelliset, tarkista ja yritä uudelleen.", "30001": "Solmu on jo olemassa, älä lisää sitä uudelleen.", "30002": "Solmua ei löytynyt, tarkista ja yritä uudelleen.", "30003": "Ryhmä on jo olemassa, yritä käyttää toista nimeä.", diff --git a/apps/user/locales/fr-FR/common.json b/apps/user/locales/fr-FR/common.json index 5215b45..6b4fde6 100644 --- a/apps/user/locales/fr-FR/common.json +++ b/apps/user/locales/fr-FR/common.json @@ -28,6 +28,7 @@ "20004": "Cet utilisateur a été désactivé, si vous avez des questions, veuillez contacter le service client.", "20005": "Solde insuffisant, veuillez recharger et réessayer.", "20006": "La fonction d'inscription est temporairement indisponible, veuillez réessayer plus tard.", + "20008": "Les informations utilisateur sont incorrectes, veuillez vérifier et réessayer.", "30001": "Ce nœud existe déjà, veuillez ne pas l'ajouter à nouveau.", "30002": "Nœud non trouvé, veuillez vérifier et réessayer.", "30003": "Le groupe existe déjà, veuillez essayer un autre nom.", diff --git a/apps/user/locales/hi-IN/common.json b/apps/user/locales/hi-IN/common.json index fa7c26a..dab86e8 100644 --- a/apps/user/locales/hi-IN/common.json +++ b/apps/user/locales/hi-IN/common.json @@ -28,6 +28,7 @@ "20004": "यह उपयोगकर्ता निष्क्रिय कर दिया गया है, यदि कोई प्रश्न हो तो कृपया ग्राहक सेवा से संपर्क करें।", "20005": "शेष राशि अपर्याप्त है, कृपया पुनः प्रयास करने से पहले रिचार्ज करें।", "20006": "पंजीकरण सुविधा अस्थायी रूप से उपलब्ध नहीं है, कृपया थोड़ी देर बाद पुनः प्रयास करें।", + "20008": "उपयोगकर्ता जानकारी गलत है, कृपया जाँचें और पुनः प्रयास करें।", "30001": "यह नोड पहले से मौजूद है, कृपया पुनः जोड़ने का प्रयास न करें।", "30002": "संबंधित नोड नहीं मिला, कृपया जाँचें और पुनः प्रयास करें।", "30003": "समूह पहले से मौजूद है, कृपया अन्य नाम का उपयोग करने का प्रयास करें।", diff --git a/apps/user/locales/hu-HU/common.json b/apps/user/locales/hu-HU/common.json index 2c293f8..fc4d065 100644 --- a/apps/user/locales/hu-HU/common.json +++ b/apps/user/locales/hu-HU/common.json @@ -28,6 +28,7 @@ "20004": "A felhasználó le van tiltva, kérjük, vegye fel a kapcsolatot az ügyfélszolgálattal, ha kérdése van.", "20005": "Nincs elegendő egyenleg, kérjük, töltse fel, majd próbálja újra.", "20006": "A regisztrációs funkció jelenleg nem elérhető, kérjük, próbálja meg később újra.", + "20008": "A felhasználói információ helytelen, kérjük, ellenőrizze és próbálja újra.", "30001": "Ez a csomópont már létezik, kérjük, ne adja hozzá újra.", "30002": "A kapcsolódó csomópont nem található, kérjük, ellenőrizze, majd próbálja újra.", "30003": "A csoport már létezik, kérjük, próbáljon meg másik nevet használni.", diff --git a/apps/user/locales/ja-JP/common.json b/apps/user/locales/ja-JP/common.json index 804b696..329050c 100644 --- a/apps/user/locales/ja-JP/common.json +++ b/apps/user/locales/ja-JP/common.json @@ -28,6 +28,7 @@ "20004": "このユーザーは無効になっています。疑問がある場合はカスタマーサービスにお問い合わせください。", "20005": "残高が不足しています。チャージしてから再試行してください。", "20006": "登録機能は一時的に利用できません。しばらくしてから再試行してください。", + "20008": "ユーザー情報が正しくありません。確認して再試行してください。", "30001": "このノードは既に存在します。重複して追加しないでください。", "30002": "関連するノードが見つかりません。確認して再試行してください。", "30003": "グループは既に存在します。他の名前を使用してみてください。", diff --git a/apps/user/locales/ko-KR/common.json b/apps/user/locales/ko-KR/common.json index 5612f85..41ece1b 100644 --- a/apps/user/locales/ko-KR/common.json +++ b/apps/user/locales/ko-KR/common.json @@ -28,6 +28,7 @@ "20004": "해당 사용자가 비활성화되었습니다. 문의 사항이 있으면 고객 서비스에 문의해 주세요.", "20005": "잔액이 부족합니다. 충전 후 다시 시도해 주세요.", "20006": "등록 기능을 현재 사용할 수 없습니다. 잠시 후 다시 시도해 주세요.", + "20008": "사용자 정보가 올바르지 않습니다. 확인 후 다시 시도해 주세요.", "30001": "해당 노드가 이미 존재합니다. 중복 추가하지 마세요.", "30002": "관련 노드를 찾을 수 없습니다. 확인 후 다시 시도해 주세요.", "30003": "그룹이 이미 존재합니다. 다른 이름을 사용해 보세요.", diff --git a/apps/user/locales/no-NO/common.json b/apps/user/locales/no-NO/common.json index 5e460be..9b30e63 100644 --- a/apps/user/locales/no-NO/common.json +++ b/apps/user/locales/no-NO/common.json @@ -28,6 +28,7 @@ "20004": "Denne brukeren er deaktivert, vennligst kontakt kundeservice hvis du har spørsmål.", "20005": "Saldoen er utilstrekkelig, vennligst fyll på og prøv igjen.", "20006": "Registreringsfunksjonen er midlertidig utilgjengelig, vennligst prøv igjen senere.", + "20008": "Brukerinformasjonen er feil, vennligst sjekk og prøv igjen.", "30001": "Denne noden eksisterer allerede, vennligst ikke legg den til igjen.", "30002": "Fant ikke den relaterte noden, vennligst sjekk og prøv igjen.", "30003": "Gruppen eksisterer allerede, vennligst prøv et annet navn.", diff --git a/apps/user/locales/pl-PL/common.json b/apps/user/locales/pl-PL/common.json index 99a7ab0..21061bd 100644 --- a/apps/user/locales/pl-PL/common.json +++ b/apps/user/locales/pl-PL/common.json @@ -28,6 +28,7 @@ "20004": "Użytkownik został zablokowany, w razie wątpliwości skontaktuj się z obsługą klienta.", "20005": "Niewystarczające środki, doładuj konto i spróbuj ponownie.", "20006": "Funkcja rejestracji jest tymczasowo niedostępna, spróbuj ponownie później.", + "20008": "Informacje o użytkowniku są nieprawidłowe, sprawdź i spróbuj ponownie.", "30001": "Węzeł już istnieje, nie dodawaj go ponownie.", "30002": "Nie znaleziono odpowiedniego węzła, sprawdź i spróbuj ponownie.", "30003": "Grupa już istnieje, spróbuj użyć innej nazwy.", diff --git a/apps/user/locales/pt-BR/common.json b/apps/user/locales/pt-BR/common.json index 4489742..06da511 100644 --- a/apps/user/locales/pt-BR/common.json +++ b/apps/user/locales/pt-BR/common.json @@ -28,6 +28,7 @@ "20004": "O usuário foi desativado, se tiver dúvidas, entre em contato com o suporte ao cliente.", "20005": "Saldo insuficiente, por favor, recarregue e tente novamente.", "20006": "A função de registro não está disponível no momento, por favor, tente novamente mais tarde.", + "20008": "As informações do usuário estão incorretas, por favor, verifique e tente novamente.", "30001": "O nó já existe, por favor, não adicione novamente.", "30002": "Nenhum nó relacionado encontrado, por favor, verifique e tente novamente.", "30003": "O grupo já existe, por favor, tente usar outro nome.", diff --git a/apps/user/locales/ro-RO/common.json b/apps/user/locales/ro-RO/common.json index 60de6c2..4206f14 100644 --- a/apps/user/locales/ro-RO/common.json +++ b/apps/user/locales/ro-RO/common.json @@ -28,6 +28,7 @@ "20004": "Acest utilizator a fost dezactivat, dacă aveți întrebări, vă rugăm să contactați serviciul clienți.", "20005": "Fonduri insuficiente, vă rugăm să reîncărcați și să încercați din nou.", "20006": "Funcția de înregistrare nu este disponibilă momentan, vă rugăm să încercați din nou mai târziu.", + "20008": "Informațiile utilizatorului sunt incorecte, vă rugăm să verificați și să încercați din nou.", "30001": "Acest nod există deja, vă rugăm să nu adăugați din nou.", "30002": "Nodul relevant nu a fost găsit, vă rugăm să verificați și să încercați din nou.", "30003": "Grupul există deja, vă rugăm să încercați să folosiți un alt nume.", diff --git a/apps/user/locales/ru-RU/common.json b/apps/user/locales/ru-RU/common.json index d924732..f2e77ca 100644 --- a/apps/user/locales/ru-RU/common.json +++ b/apps/user/locales/ru-RU/common.json @@ -28,6 +28,7 @@ "20004": "Пользователь заблокирован, если у вас есть вопросы, пожалуйста, свяжитесь с поддержкой.", "20005": "Недостаточно средств, пожалуйста, пополните баланс и попробуйте снова.", "20006": "Регистрация временно недоступна, пожалуйста, попробуйте позже.", + "20008": "Информация о пользователе неверна, проверьте и попробуйте снова.", "30001": "Узел уже существует, пожалуйста, не добавляйте его повторно.", "30002": "Связанный узел не найден, пожалуйста, проверьте и попробуйте снова.", "30003": "Группа уже существует, пожалуйста, попробуйте использовать другое название.", diff --git a/apps/user/locales/th-TH/common.json b/apps/user/locales/th-TH/common.json index 87d3a8e..8356706 100644 --- a/apps/user/locales/th-TH/common.json +++ b/apps/user/locales/th-TH/common.json @@ -28,6 +28,7 @@ "20004": "ผู้ใช้นี้ถูกระงับ หากมีข้อสงสัยกรุณาติดต่อฝ่ายบริการลูกค้า", "20005": "ยอดเงินคงเหลือไม่เพียงพอ กรุณาเติมเงินและลองใหม่อีกครั้ง", "20006": "ฟังก์ชันการลงทะเบียนไม่สามารถใช้งานได้ในขณะนี้ กรุณาลองใหม่อีกครั้งในภายหลัง", + "20008": "ข้อมูลผู้ใช้ไม่ถูกต้อง กรุณาตรวจสอบและลองใหม่อีกครั้ง", "30001": "โหนดนี้มีอยู่แล้ว กรุณาอย่าเพิ่มซ้ำ", "30002": "ไม่พบโหนดที่เกี่ยวข้อง กรุณาตรวจสอบและลองใหม่อีกครั้ง", "30003": "กลุ่มนี้มีอยู่แล้ว กรุณาลองใช้ชื่ออื่น", diff --git a/apps/user/locales/tr-TR/common.json b/apps/user/locales/tr-TR/common.json index 0603eb7..95034a8 100644 --- a/apps/user/locales/tr-TR/common.json +++ b/apps/user/locales/tr-TR/common.json @@ -28,6 +28,7 @@ "20004": "Bu kullanıcı devre dışı bırakıldı, sorularınız için lütfen müşteri hizmetleri ile iletişime geçin.", "20005": "Bakiye yetersiz, lütfen yükleme yapıp tekrar deneyin.", "20006": "Kayıt özelliği şu anda kullanılamıyor, lütfen daha sonra tekrar deneyin.", + "20008": "Kullanıcı bilgileri hatalı, lütfen kontrol edip tekrar deneyin.", "30001": "Bu düğüm zaten mevcut, lütfen tekrar eklemeyin.", "30002": "İlgili düğüm bulunamadı, lütfen kontrol edip tekrar deneyin.", "30003": "Grup zaten mevcut, lütfen başka bir ad kullanmayı deneyin.", diff --git a/apps/user/locales/uk-UA/common.json b/apps/user/locales/uk-UA/common.json index 1468eb4..51418db 100644 --- a/apps/user/locales/uk-UA/common.json +++ b/apps/user/locales/uk-UA/common.json @@ -28,6 +28,7 @@ "20004": "Цей користувач був заблокований, якщо у вас є питання, будь ласка, зверніться до служби підтримки.", "20005": "Недостатньо коштів, будь ласка, поповніть рахунок і спробуйте знову.", "20006": "Функція реєстрації тимчасово недоступна, будь ласка, спробуйте пізніше.", + "20008": "Інформація користувача некоректна, будь ласка, перевірте та спробуйте знову.", "30001": "Цей вузол вже існує, будь ласка, не додавайте повторно.", "30002": "Відповідний вузол не знайдено, будь ласка, перевірте та спробуйте знову.", "30003": "Група вже існує, будь ласка, спробуйте використати іншу назву.", diff --git a/apps/user/locales/vi-VN/common.json b/apps/user/locales/vi-VN/common.json index fada697..32a736e 100644 --- a/apps/user/locales/vi-VN/common.json +++ b/apps/user/locales/vi-VN/common.json @@ -28,6 +28,7 @@ "20004": "Người dùng này đã bị vô hiệu hóa, nếu có thắc mắc vui lòng liên hệ dịch vụ khách hàng.", "20005": "Số dư không đủ, vui lòng nạp tiền và thử lại.", "20006": "Chức năng đăng ký tạm thời không khả dụng, vui lòng thử lại sau.", + "20008": "Thông tin người dùng không chính xác, vui lòng kiểm tra và thử lại.", "30001": "Nút này đã tồn tại, vui lòng không thêm lại.", "30002": "Không tìm thấy nút liên quan, vui lòng kiểm tra và thử lại.", "30003": "Nhóm đã tồn tại, vui lòng thử sử dụng tên khác.", diff --git a/apps/user/locales/zh-CN/common.json b/apps/user/locales/zh-CN/common.json index 0ccbafd..abc066d 100644 --- a/apps/user/locales/zh-CN/common.json +++ b/apps/user/locales/zh-CN/common.json @@ -28,6 +28,7 @@ "20004": "该用户已被禁用,如有疑问请联系客服。", "20005": "余额不足,请充值后再次尝试。", "20006": "注册功能暂不可用,请稍后再试。", + "20008": "用户信息不正确,请检查后重试。", "30001": "该节点已存在,请勿重复添加。", "30002": "未找到相关节点,请检查后重试。", "30003": "分组已存在,请尝试使用其他名称。", diff --git a/apps/user/locales/zh-HK/common.json b/apps/user/locales/zh-HK/common.json index 0bee4b4..185e561 100644 --- a/apps/user/locales/zh-HK/common.json +++ b/apps/user/locales/zh-HK/common.json @@ -28,6 +28,7 @@ "20004": "該用戶已被禁用,如有疑問請聯繫客服。", "20005": "餘額不足,請充值後再次嘗試。", "20006": "註冊功能暫不可用,請稍後再試。", + "20008": "用戶資訊不正確,請檢查後重試。", "30001": "該節點已存在,請勿重複添加。", "30002": "未找到相關節點,請檢查後重試。", "30003": "分組已存在,請嘗試使用其他名稱。", diff --git a/apps/user/services/common/typings.d.ts b/apps/user/services/common/typings.d.ts index 3fe8eb3..493f3bd 100644 --- a/apps/user/services/common/typings.d.ts +++ b/apps/user/services/common/typings.d.ts @@ -69,6 +69,12 @@ declare namespace API { register: RegisterConfig; }; + type AuthMethod = { + auth_type: string; + auth_identifier: string; + verified: boolean; + }; + type CheckUserParams = { email: string; }; @@ -571,9 +577,6 @@ declare namespace API { type User = { id: number; - email: string; - telephone: string; - telephone_area_code: string; avatar: string; balance: number; commission: number; @@ -590,6 +593,7 @@ declare namespace API { enable_login_notify: boolean; enable_subscribe_notify: boolean; enable_trade_notify: boolean; + auth_methods: AuthMethod[]; created_at: number; updated_at: number; deleted_at?: number; @@ -613,6 +617,17 @@ declare namespace API { created_at: number; }; + type UserDevice = { + id: number; + user_id: number; + device_number: string; + online: boolean; + last_online: number; + enabled: boolean; + created_at: number; + updated_at: number; + }; + type UserLoginRequest = { email: string; password: string; diff --git a/apps/user/services/user/typings.d.ts b/apps/user/services/user/typings.d.ts index 554dbb9..74bacd2 100644 --- a/apps/user/services/user/typings.d.ts +++ b/apps/user/services/user/typings.d.ts @@ -63,6 +63,26 @@ declare namespace API { register: RegisterConfig; }; + type AuthMethod = { + auth_type: string; + auth_identifier: string; + verified: boolean; + }; + + type BindOAuthCallbackRequest = { + method: string; + callback: Record; + }; + + type BindOAuthRequest = { + method: string; + redirect: string; + }; + + type BindOAuthResponse = { + redirect: string; + }; + type BindTelegramResponse = { url: string; expired_at: number; @@ -170,6 +190,10 @@ declare namespace API { list: PaymentConfig[]; }; + type GetOAuthMethodsResponse = { + methods: AuthMethod[]; + }; + type GetUserTicketDetailRequest = { id: number; }; @@ -482,6 +506,10 @@ declare namespace API { order_no: string; }; + type ResetUserSubscribeTokenRequest = { + user_subscribe_id: number; + }; + type Response = { /** 状态码 */ code?: number; @@ -680,6 +708,10 @@ declare namespace API { security_config: SecurityConfig; }; + type UnbindOAuthRequest = { + method: string; + }; + type UnsubscribeRequest = { id: number; }; @@ -708,9 +740,6 @@ declare namespace API { type User = { id: number; - email: string; - telephone: string; - telephone_area_code: string; avatar: string; balance: number; commission: number; @@ -727,6 +756,7 @@ declare namespace API { enable_login_notify: boolean; enable_subscribe_notify: boolean; enable_trade_notify: boolean; + auth_methods: AuthMethod[]; created_at: number; updated_at: number; deleted_at?: number; @@ -750,6 +780,17 @@ declare namespace API { created_at: number; }; + type UserDevice = { + id: number; + user_id: number; + device_number: string; + online: boolean; + last_online: number; + enabled: boolean; + created_at: number; + updated_at: number; + }; + type UserSubscribe = { id: number; user_id: number; diff --git a/apps/user/services/user/user.ts b/apps/user/services/user/user.ts index ad66c54..c794aca 100644 --- a/apps/user/services/user/user.ts +++ b/apps/user/services/user/user.ts @@ -42,6 +42,33 @@ export async function queryUserBalanceLog(options?: { [key: string]: any }) { ); } +/** Bind OAuth POST /v1/public/user/bind_oauth */ +export async function bindOAuth(body: API.BindOAuthRequest, options?: { [key: string]: any }) { + return request('/v1/public/user/bind_oauth', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** Bind OAuth Callback POST /v1/public/user/bind_oauth/callback */ +export async function bindOAuthCallback( + body: API.BindOAuthCallbackRequest, + options?: { [key: string]: any }, +) { + return request('/v1/public/user/bind_oauth/callback', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** Bind Telegram GET /v1/public/user/bind_telegram */ export async function bindTelegram(options?: { [key: string]: any }) { return request( @@ -109,6 +136,17 @@ export async function updateUserNotifySetting( }); } +/** Get OAuth Methods GET /v1/public/user/oauth_methods */ +export async function getOAuthMethods(options?: { [key: string]: any }) { + return request( + '/v1/public/user/oauth_methods', + { + method: 'GET', + ...(options || {}), + }, + ); +} + /** Update User Password PUT /v1/public/user/password */ export async function updateUserPassword( body: API.UpdateUserPasswordRequest, @@ -135,6 +173,33 @@ export async function queryUserSubscribe(options?: { [key: string]: any }) { ); } +/** Reset User Subscribe Token PUT /v1/public/user/subscribe_token */ +export async function resetUserSubscribeToken( + body: API.ResetUserSubscribeTokenRequest, + options?: { [key: string]: any }, +) { + return request('/v1/public/user/subscribe_token', { + method: 'PUT', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** Unbind OAuth POST /v1/public/user/unbind_oauth */ +export async function unbindOAuth(body: API.UnbindOAuthRequest, options?: { [key: string]: any }) { + return request('/v1/public/user/unbind_oauth', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** Unbind Telegram POST /v1/public/user/unbind_telegram */ export async function unbindTelegram(options?: { [key: string]: any }) { return request('/v1/public/user/unbind_telegram', { diff --git a/bun.lockb b/bun.lockb index ee506cc..24f8ce5 100755 Binary files a/bun.lockb and b/bun.lockb differ