npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cherryin/passport-api-client

v0.1.32

Published

OpenAPI client for @cherryin/passport-api-client

Readme

@cherryin/[email protected]

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @cherryin/[email protected] --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to http://localhost

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- PassportAuthAdminRPCServiceApi | passportAuthAdminRPCServicePassportAdminTokenAuth | POST /passport/admin/authed/v1/passports | Token 鉴权 - Admin PassportAuthAdminServiceApi | passportAuthAdminServicePassportAdminPasswordForget | POST /passport/admin/auth/v1/password/forget | 未登录 - 忘记密码请求 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAdminPasswordReset | POST /passport/admin/auth/v1/password/reset | 未登录 - 重置密码 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAdminPasswordResetTokenVerify | POST /passport/admin/auth/v1/password/reset-token | 未登录 - 验证重置 Token PassportAuthAdminServiceApi | passportAuthAdminServicePassportAdminSendVerificationEmail | POST /passport/admin/auth/v1/verification/send-email | 发送验证邮件 - code PassportAuthAdminServiceApi | passportAuthAdminServicePassportAdminSignInEmail | POST /passport/admin/auth/v1/sign-in/email | 通过邮箱登录 - password / code PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminChangePassword | POST /passport/admin/authed/v1/password/change | 已登录 - 修改密码(需当前密码) PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminEnterpriseMaterialList | GET /passport/admin/authed/v1/enterprise/material/list | 获取企业信息+认证材料列表 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminEnterpriseMaterialReview | POST /passport/admin/authed/v1/enterprise/material/review | 审核企业认证材料 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminGetInfo | POST /passport/admin/authed/v1/personal/info/get | 获取管理员个人信息 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminGetSession | GET /passport/admin/authed/v1/session/get | PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminListSessions | GET /passport/admin/authed/v1/sessions/list | PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminPassportDisable | POST /passport/admin/authed/v1/passport/disable | 禁用通行证 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminPassportList | POST /passport/admin/authed/v1/passport/list | 管理员查看通行证列表 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminPassportModifyInfo | POST /passport/admin/authed/v1/passport/modify/info | 修改通行证信息 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminResetPassword | POST /passport/admin/authed/v1/password/reset | 已登录 - 重置密码(简化版,无需验证码) PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminRevokeOtherSessions | POST /passport/admin/authed/v1/sessions/revoke-other | PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminRevokeSession | POST /passport/admin/authed/v1/session/revoke | PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminRevokeSessions | POST /passport/admin/authed/v1/sessions/revoke-all | PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminSignOut | POST /passport/admin/authed/v1/sign-out | 用户退出登录 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminUpdateInfo | POST /passport/admin/authed/v1/personal/info/update | 修改管理员个人信息 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminUserDisable | POST /passport/admin/authed/v1/user/disable | 禁用用户 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminUserList | POST /passport/admin/authed/v1/user/list | 管理员查看用户列表 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminUserModifyInfo | POST /passport/admin/authed/v1/user/modify/info | 管理员修改用户信息 PassportAuthAdminServiceApi | passportAuthAdminServicePassportAuthAdminUserModifyPermission | POST /passport/admin/authed/v1/user/modify/permission | 管理员修改用户权限 PassportAuthEnterpriseRPCServiceApi | passportAuthEnterpriseRPCServicePassportEnterpriseTokenAuth | POST /passport/enterprise/authed/v1/passports | Token 鉴权 - Enterprise PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseBindEmail | POST /passport/enterprise/authed/v1/email/bind | 已登录用户绑定邮箱(未绑定邮箱的用户使用) PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseBindPhone | POST /passport/enterprise/authed/v1/phone/bind | 已登录用户绑定手机号 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseChangeEmail | POST /passport/enterprise/authed/v1/email/change | 已登录用户修改登录邮箱(已绑定邮箱的用户使用) PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseChangePassword | POST /passport/enterprise/authed/v1/password/change | 已登录用户修改密码 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseChangePhone | POST /passport/enterprise/authed/v1/phone/change | 已登录用户更换手机号 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseDelete | POST /passport/enterprise/authed/v1/user/request-delete | 请求删除用户 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseGetSession | GET /passport/enterprise/authed/v1/session/get | 获取当前会话信息 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseInfoGet | GET /passport/enterprise/authed/v1/user/info | 获取用户信息 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseListSessions | GET /passport/enterprise/authed/v1/sessions/list | 获取当前用户的所有会话列表 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseMaterialBizLicense | POST /passport/enterprise/authed/v1/materials/upload/biz-license | 上传企业营业执照 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseMaterialIDCard | POST /passport/enterprise/authed/v1/materials/upload/id-card | 上传法定代表人身份证 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerify | POST /passport/enterprise/authed/v1/materials/verify | 提交企业认证材料审核 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseMaterialVerifyState | POST /passport/enterprise/authed/v1/materials/verified-state | 获取企业认证材料审核状态 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseRefreshToken | POST /passport/enterprise/authed/v1/session/refresh-token | 会话 token 刷新 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseResetPassword | POST /passport/enterprise/authed/v1/password/request-reset | 已登录用户重置密码 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseRevokeOtherSessions | POST /passport/enterprise/authed/v1/sessions/revoke-other | 注销其他会话 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSession | POST /passport/enterprise/authed/v1/session/revoke | 注销指定会话 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseRevokeSessions | POST /passport/enterprise/authed/v1/sessions/revoke-all | 注销所有会话 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseSignOut | POST /passport/enterprise/authed/v1/sign-out | 用户登出 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseUpdateInfo | POST /passport/enterprise/authed/v1/user/update-info | 更新用户信息 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseVerifyEmail | POST /passport/enterprise/authed/v1/email/verify | 已登录用户验证邮箱(不用于登录,而是作为企业认证材料的一部分) PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportAuthEnterpriseVerifyPhone | GET /passport/enterprise/authed/v1/phone/verify | 已登录用户验证手机号(不用于登录,而是作为企业认证材料的一部分) PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterprisePasswordReset | POST /passport/enterprise/auth/v1/password/request-reset | 请求重置密码 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterpriseSendVerificationEmail | POST /passport/enterprise/auth/v1/verification/send-email | 登录/注册流程中发送验证码 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterpriseSendVerificationPhone | POST /passport/enterprise/auth/v1/verification/send-phone | 登录/注册流程中发送验证码 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterpriseSignInEmail | POST /passport/enterprise/auth/v1/sign-in/email | 邮箱登录 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterpriseSignInPhone | POST /passport/enterprise/auth/v1/sign-in/phone | 手机登录 PassportAuthEnterpriseServiceApi | passportAuthEnterpriseServicePassportEnterpriseSignUpEmail | POST /passport/enterprise/auth/v1/sign-up/email | 邮箱注册 PassportAuthUserRPCServiceApi | passportAuthUserRPCServicePassportUserInfoBatchGet | POST /passport/authed/v1/users/batch_get | 批量获取用户信息 PassportAuthUserRPCServiceApi | passportAuthUserRPCServicePassportUserInfoGet | POST /passport/authed/v1/user/get | 获取用户信息 PassportAuthUserRPCServiceApi | passportAuthUserRPCServicePassportUserInfoPageGet | POST /passport/authed/v1/users/page_get | 批量获取用户信息 PassportAuthUserRPCServiceApi | passportAuthUserRPCServicePassportUserTokenAuth | POST /passport/authed/v1/passports | Token 鉴权 - User PassportAuthUserRPCServiceApi | passportAuthUserRPCServicePassportUserUpdateInfo | POST /passport/authed/v1/user/update | 更新用户信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthChangePassword | POST /passport/authed/v1/password/change | 已登录用户修改密码 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthDeleteAll | POST /passport/authed/v1/passport/request-delete | 删除通行证及所有关联用户 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthInfoGet | GET /passport/authed/v1/passport/info | 获取通行证及用户信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthLinkSocial | POST /passport/authed/v1/social/link | 已登录用户关联社交账号 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthListMethods | GET /passport/authed/v1/passport/list-auth-methods | 列出已关联的认证方法(包含 邮箱/社交账号等) PassportAuthUserServiceApi | passportAuthUserServicePassportAuthListSessions | GET /passport/authed/v1/sessions/list | 获取当前用户的所有会话列表 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthListSocials | GET /passport/authed/v1/social/list-accounts | 列出已关联的认证方法(列出社交账号) PassportAuthUserServiceApi | passportAuthUserServicePassportAuthRefreshSessionToken | POST /passport/authed/v1/session/refresh-token | 会话 token 刷新 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthResetPassword | POST /passport/authed/v1/password/reset | 已登录用户重置密码 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthRevokeOtherSessions | POST /passport/authed/v1/sessions/revoke-other | 注销其他会话 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthRevokeSession | POST /passport/authed/v1/session/revoke | 注销指定会话 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthRevokeSessions | POST /passport/authed/v1/sessions/revoke | 注销所有会话 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthSendVerificationEmail | POST /passport/authed/v1/verification/send-email | 用户认证后发送验证码 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthSendVerificationPhone | POST /passport/authed/v1/verification/send-phone | 用户认证后发送验证码 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthSocialGetAccessToken | POST /passport/authed/v1/social/get-access-token | 获取社交账号访问令牌 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthSocialRefreshToken | POST /passport/authed/v1/social/refresh-token | 社交账号刷新 Token PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUnlinkSocial | POST /passport/authed/v1/social/unlink | 已登录用户取消关联社交账号 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserChangeEmail | POST /passport/authed/v1/email/change | 已登录用户更换邮箱 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserChangePhone | POST /passport/authed/v1/phone/change | 已登录用户更换手机号 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserDelete | POST /passport/authed/v1/user/request-delete | 请求删除用户 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserGetSession | GET /passport/authed/v1/session/get | 获取当前会话信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserInfoGet | GET /passport/authed/v1/user/info | 获取用户信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserSignOut | POST /passport/authed/v1/sign-out | 用户登出 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserUpdateInfo | POST /passport/authed/v1/user/update-info | 更新用户信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserUpdatePassport | POST /passport/authed/v1/passport/update | 更新通行证信息 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserVerifyEmail | POST /passport/authed/v1/email/verify | 已登录用户验证邮箱 PassportAuthUserServiceApi | passportAuthUserServicePassportAuthUserVerifyPhone | POST /passport/authed/v1/phone/verify | 已登录用户验证手机号 PassportAuthUserServiceApi | passportAuthUserServicePassportSendVerificationEmail | POST /passport/auth/v1/verification/send-email | 登录/注册流程中发送验证码 PassportAuthUserServiceApi | passportAuthUserServicePassportSendVerificationPhone | POST /passport/auth/v1/verification/send-phone | 登录/注册流程中发送验证码 PassportAuthUserServiceApi | passportAuthUserServicePassportUserOAuthCallback | GET /passport/oauth2/{platform}/callback | OAuth 回调处理 PassportAuthUserServiceApi | passportAuthUserServicePassportUserPasswordForget | POST /passport/auth/v1/password/forget | 未登录 - 用户遗忘密码请求重置 PassportAuthUserServiceApi | passportAuthUserServicePassportUserPasswordReset | POST /passport/auth/v1/password/reset | 未登录 - 用户重置密码 PassportAuthUserServiceApi | passportAuthUserServicePassportUserPasswordResetTokenVerify | POST /passport/auth/v1/password/reset-token | 未登录 - 验证重置密码请求 token PassportAuthUserServiceApi | passportAuthUserServicePassportUserSignInEmail | POST /passport/auth/v1/sign-in/email | 邮箱登录 PassportAuthUserServiceApi | passportAuthUserServicePassportUserSignInPhone | POST /passport/auth/v1/sign-in/phone | 手机登录 PassportAuthUserServiceApi | passportAuthUserServicePassportUserSignInSocial | POST /passport/auth/v1/sign-in/social | 社交登录 PassportAuthUserServiceApi | passportAuthUserServicePassportUserSignUpEmail | POST /passport/auth/v1/sign-up/email | 邮箱注册

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.