@cherryin/api-client 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/.openapi-generator/FILES +165 -0
  2. package/README.md +245 -2
  3. package/api.ts +10050 -2478
  4. package/dist/api.d.ts +5919 -1623
  5. package/dist/api.js +5433 -168
  6. package/dist/esm/api.d.ts +5919 -1623
  7. package/dist/esm/api.js +5415 -166
  8. package/docs/AIModelAdminServiceApi.md +6 -6
  9. package/docs/AdminEnterpriseMaterials.md +24 -0
  10. package/docs/AdminEnterpriseUser.md +24 -0
  11. package/docs/AdminEnterpriseUserMaterials.md +22 -0
  12. package/docs/AdminPassportItem.md +24 -0
  13. package/docs/AdminUserItem.md +26 -0
  14. package/docs/AuthAdminSession.md +39 -0
  15. package/docs/AuthAdminUser.md +33 -0
  16. package/docs/AuthEnterpriseMaterials.md +33 -0
  17. package/docs/AuthEnterpriseSession.md +37 -0
  18. package/docs/AuthEnterpriseUser.md +37 -0
  19. package/docs/AuthIdToken.md +29 -0
  20. package/docs/AuthPassport.md +35 -0
  21. package/docs/AuthUser.md +39 -0
  22. package/docs/AuthUserMethod.md +39 -0
  23. package/docs/AuthUserSession.md +41 -0
  24. package/docs/ConfigItem.md +4 -0
  25. package/docs/PassportAdminSendVerificationEmailRequest.md +26 -0
  26. package/docs/PassportAdminSendVerificationEmailResponse.md +22 -0
  27. package/docs/PassportAdminSignInEmailRequest.md +28 -0
  28. package/docs/PassportAdminSignInEmailResponse.md +26 -0
  29. package/docs/PassportAuthAdminChangePasswordRequest.md +24 -0
  30. package/docs/PassportAuthAdminChangePasswordResponse.md +26 -0
  31. package/docs/PassportAuthAdminEnterpriseMaterialListResponse.md +28 -0
  32. package/docs/PassportAuthAdminEnterpriseMaterialReviewRequest.md +22 -0
  33. package/docs/PassportAuthAdminEnterpriseMaterialReviewResponse.md +22 -0
  34. package/docs/PassportAuthAdminGetInfoResponse.md +24 -0
  35. package/docs/PassportAuthAdminGetSessionResponse.md +26 -0
  36. package/docs/PassportAuthAdminListSessionsResponse.md +24 -0
  37. package/docs/PassportAuthAdminPassportDisableRequest.md +22 -0
  38. package/docs/PassportAuthAdminPassportDisableResponse.md +22 -0
  39. package/docs/PassportAuthAdminPassportListRequest.md +28 -0
  40. package/docs/PassportAuthAdminPassportListResponse.md +28 -0
  41. package/docs/PassportAuthAdminPassportModifyInfoRequest.md +28 -0
  42. package/docs/PassportAuthAdminPassportModifyInfoResponse.md +24 -0
  43. package/docs/PassportAuthAdminRevokeOtherSessionsResponse.md +22 -0
  44. package/docs/PassportAuthAdminRevokeSessionRequest.md +20 -0
  45. package/docs/PassportAuthAdminRevokeSessionResponse.md +22 -0
  46. package/docs/PassportAuthAdminRevokeSessionsResponse.md +22 -0
  47. package/docs/PassportAuthAdminServiceApi.md +1069 -0
  48. package/docs/PassportAuthAdminSignOutResponse.md +22 -0
  49. package/docs/PassportAuthAdminUpdateInfoRequest.md +22 -0
  50. package/docs/PassportAuthAdminUpdateInfoResponse.md +24 -0
  51. package/docs/PassportAuthAdminUserDisableRequest.md +26 -0
  52. package/docs/PassportAuthAdminUserDisableResponse.md +22 -0
  53. package/docs/PassportAuthAdminUserListRequest.md +28 -0
  54. package/docs/PassportAuthAdminUserListResponse.md +28 -0
  55. package/docs/PassportAuthAdminUserModifyInfoRequest.md +32 -0
  56. package/docs/PassportAuthAdminUserModifyInfoResponse.md +24 -0
  57. package/docs/PassportAuthAdminUserModifyPermissionRequest.md +22 -0
  58. package/docs/PassportAuthAdminUserModifyPermissionResponse.md +24 -0
  59. package/docs/PassportAuthChangePasswordRequest.md +26 -0
  60. package/docs/PassportAuthChangePasswordResponse.md +26 -0
  61. package/docs/PassportAuthDeleteAllRequest.md +28 -0
  62. package/docs/PassportAuthDeleteAllResponse.md +22 -0
  63. package/docs/PassportAuthEnterpriseChangePasswordRequest.md +24 -0
  64. package/docs/PassportAuthEnterpriseChangePasswordResponse.md +26 -0
  65. package/docs/PassportAuthEnterpriseChangePhoneRequest.md +24 -0
  66. package/docs/PassportAuthEnterpriseChangePhoneResponse.md +22 -0
  67. package/docs/PassportAuthEnterpriseDeleteRequest.md +28 -0
  68. package/docs/PassportAuthEnterpriseDeleteResponse.md +22 -0
  69. package/docs/PassportAuthEnterpriseGetSessionResponse.md +24 -0
  70. package/docs/PassportAuthEnterpriseInfoGetResponse.md +24 -0
  71. package/docs/PassportAuthEnterpriseListSessionsResponse.md +24 -0
  72. package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +26 -0
  73. package/docs/PassportAuthEnterpriseMaterialUploadResponse.md +22 -0
  74. package/docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md +24 -0
  75. package/docs/PassportAuthEnterpriseRefreshTokenRequest.md +20 -0
  76. package/docs/PassportAuthEnterpriseRefreshTokenResponse.md +24 -0
  77. package/docs/PassportAuthEnterpriseResetPasswordRequest.md +22 -0
  78. package/docs/PassportAuthEnterpriseResetPasswordResponse.md +22 -0
  79. package/docs/PassportAuthEnterpriseRevokeOtherSessionsResponse.md +24 -0
  80. package/docs/PassportAuthEnterpriseRevokeSessionRequest.md +20 -0
  81. package/docs/PassportAuthEnterpriseRevokeSessionResponse.md +22 -0
  82. package/docs/PassportAuthEnterpriseRevokeSessionsResponse.md +22 -0
  83. package/docs/PassportAuthEnterpriseServiceApi.md +1170 -0
  84. package/docs/PassportAuthEnterpriseSignOutRequest.md +20 -0
  85. package/docs/PassportAuthEnterpriseSignOutResponse.md +22 -0
  86. package/docs/PassportAuthEnterpriseUpdateInfoRequest.md +22 -0
  87. package/docs/PassportAuthEnterpriseUpdateInfoResponse.md +24 -0
  88. package/docs/PassportAuthEnterpriseVerifyEmailRequest.md +24 -0
  89. package/docs/PassportAuthEnterpriseVerifyEmailResponse.md +22 -0
  90. package/docs/PassportAuthEnterpriseVerifyPhoneResponse.md +22 -0
  91. package/docs/PassportAuthInfoGetResponse.md +26 -0
  92. package/docs/PassportAuthLinkSocialRequest.md +32 -0
  93. package/docs/PassportAuthLinkSocialResponse.md +26 -0
  94. package/docs/PassportAuthListMethodsResponse.md +24 -0
  95. package/docs/PassportAuthListSessionsResponse.md +24 -0
  96. package/docs/PassportAuthListSocialsResponse.md +24 -0
  97. package/docs/PassportAuthRefreshSessionTokenRequest.md +20 -0
  98. package/docs/PassportAuthRefreshSessionTokenResponse.md +24 -0
  99. package/docs/PassportAuthResetPasswordRequest.md +24 -0
  100. package/docs/PassportAuthResetPasswordResponse.md +22 -0
  101. package/docs/PassportAuthRevokeOtherSessionsRequest.md +20 -0
  102. package/docs/PassportAuthRevokeOtherSessionsResponse.md +24 -0
  103. package/docs/PassportAuthRevokeSessionRequest.md +20 -0
  104. package/docs/PassportAuthRevokeSessionResponse.md +22 -0
  105. package/docs/PassportAuthRevokeSessionsRequest.md +20 -0
  106. package/docs/PassportAuthRevokeSessionsResponse.md +22 -0
  107. package/docs/PassportAuthSendVerificationEmailRequest.md +26 -0
  108. package/docs/PassportAuthSendVerificationEmailResponse.md +22 -0
  109. package/docs/PassportAuthSendVerificationPhoneRequest.md +26 -0
  110. package/docs/PassportAuthSendVerificationPhoneResponse.md +22 -0
  111. package/docs/PassportAuthSocialGetAccessTokenRequest.md +24 -0
  112. package/docs/PassportAuthSocialGetAccessTokenResponse.md +34 -0
  113. package/docs/PassportAuthSocialRefreshTokenRequest.md +24 -0
  114. package/docs/PassportAuthSocialRefreshTokenResponse.md +34 -0
  115. package/docs/PassportAuthUnlinkSocialRequest.md +24 -0
  116. package/docs/PassportAuthUnlinkSocialResponse.md +22 -0
  117. package/docs/PassportAuthUserChangeEmailRequest.md +24 -0
  118. package/docs/PassportAuthUserChangeEmailResponse.md +24 -0
  119. package/docs/PassportAuthUserChangePhoneRequest.md +26 -0
  120. package/docs/PassportAuthUserChangePhoneResponse.md +24 -0
  121. package/docs/PassportAuthUserDeleteRequest.md +30 -0
  122. package/docs/PassportAuthUserDeleteResponse.md +22 -0
  123. package/docs/PassportAuthUserGetSessionResponse.md +24 -0
  124. package/docs/PassportAuthUserInfoGetResponse.md +24 -0
  125. package/docs/PassportAuthUserServiceApi.md +1892 -0
  126. package/docs/PassportAuthUserSignOutRequest.md +22 -0
  127. package/docs/PassportAuthUserSignOutResponse.md +22 -0
  128. package/docs/PassportAuthUserUpdateInfoRequest.md +24 -0
  129. package/docs/PassportAuthUserUpdateInfoResponse.md +24 -0
  130. package/docs/PassportAuthUserUpdatePassportRequest.md +22 -0
  131. package/docs/PassportAuthUserUpdatePassportResponse.md +24 -0
  132. package/docs/PassportAuthUserVerifyEmailRequest.md +26 -0
  133. package/docs/PassportAuthUserVerifyEmailResponse.md +22 -0
  134. package/docs/PassportAuthUserVerifyPhoneRequest.md +24 -0
  135. package/docs/PassportAuthUserVerifyPhoneResponse.md +22 -0
  136. package/docs/PassportEnterprisePasswordResetRequest.md +24 -0
  137. package/docs/PassportEnterprisePasswordResetResponse.md +26 -0
  138. package/docs/PassportEnterpriseSendVerificationEmailRequest.md +24 -0
  139. package/docs/PassportEnterpriseSendVerificationEmailResponse.md +22 -0
  140. package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +24 -0
  141. package/docs/PassportEnterpriseSendVerificationPhoneResponse.md +22 -0
  142. package/docs/PassportEnterpriseSignInEmailRequest.md +30 -0
  143. package/docs/PassportEnterpriseSignInEmailResponse.md +30 -0
  144. package/docs/PassportEnterpriseSignInPhoneRequest.md +24 -0
  145. package/docs/PassportEnterpriseSignInPhoneResponse.md +26 -0
  146. package/docs/PassportEnterpriseSignUpEmailRequest.md +34 -0
  147. package/docs/PassportEnterpriseSignUpEmailResponse.md +26 -0
  148. package/docs/PassportSendVerificationEmailRequest.md +26 -0
  149. package/docs/PassportSendVerificationEmailResponse.md +22 -0
  150. package/docs/PassportSendVerificationPhoneRequest.md +26 -0
  151. package/docs/PassportSendVerificationPhoneResponse.md +22 -0
  152. package/docs/PassportUserOAuthCallbackResponse.md +36 -0
  153. package/docs/PassportUserPasswordResetRequest.md +28 -0
  154. package/docs/PassportUserPasswordResetResponse.md +26 -0
  155. package/docs/PassportUserSignInEmailRequest.md +32 -0
  156. package/docs/PassportUserSignInEmailResponse.md +32 -0
  157. package/docs/PassportUserSignInPhoneRequest.md +26 -0
  158. package/docs/PassportUserSignInPhoneResponse.md +28 -0
  159. package/docs/PassportUserSignInSocialRequest.md +32 -0
  160. package/docs/PassportUserSignInSocialResponse.md +32 -0
  161. package/docs/PassportUserSignUpEmailRequest.md +36 -0
  162. package/docs/PassportUserSignUpEmailResponse.md +32 -0
  163. package/docs/QRCodeAdminServiceApi.md +286 -0
  164. package/docs/QRCodeCreateRequest.md +37 -0
  165. package/docs/QRCodeCreateResponse.md +25 -0
  166. package/docs/QRCodeDeleteResponse.md +23 -0
  167. package/docs/QRCodeGetResponse.md +25 -0
  168. package/docs/QRCodeHistoryItem.md +29 -0
  169. package/docs/QRCodeInfo.md +59 -0
  170. package/docs/QRCodeListResponse.md +27 -0
  171. package/docs/QRCodeSnapshot.md +37 -0
  172. package/docs/QRCodeUpdateRequest.md +39 -0
  173. package/docs/QRCodeUpdateResponse.md +25 -0
  174. package/docs/QRCodeWithHistory.md +23 -0
  175. package/docs/RemoteConfigAdminServiceApi.md +18 -3
  176. package/docs/RemoteConfigItemGetResponse.md +2 -2
  177. package/docs/RemoteConfigItemUpdateRequest.md +6 -0
  178. package/docs/RemoteConfigItemUpdateResponse.md +2 -2
  179. package/docs/Status.md +1 -1
  180. package/package.json +1 -1
@@ -0,0 +1,1892 @@
1
+ # PassportAuthUserServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**passportAuthUserServicePassportAuthChangePassword**](#passportauthuserservicepassportauthchangepassword) | **POST** /passport/authed/v1/password/change | |
8
+ |[**passportAuthUserServicePassportAuthDeleteAll**](#passportauthuserservicepassportauthdeleteall) | **POST** /passport/authed/v1/passport/request-delete | |
9
+ |[**passportAuthUserServicePassportAuthInfoGet**](#passportauthuserservicepassportauthinfoget) | **GET** /passport/authed/v1/passport/info | |
10
+ |[**passportAuthUserServicePassportAuthLinkSocial**](#passportauthuserservicepassportauthlinksocial) | **POST** /passport/authed/v1/social/link | |
11
+ |[**passportAuthUserServicePassportAuthListMethods**](#passportauthuserservicepassportauthlistmethods) | **GET** /passport/authed/v1/passport/list-auth-methods | |
12
+ |[**passportAuthUserServicePassportAuthListSessions**](#passportauthuserservicepassportauthlistsessions) | **GET** /passport/authed/v1/sessions/list | |
13
+ |[**passportAuthUserServicePassportAuthListSocials**](#passportauthuserservicepassportauthlistsocials) | **GET** /passport/authed/v1/social/list-accounts | |
14
+ |[**passportAuthUserServicePassportAuthRefreshSessionToken**](#passportauthuserservicepassportauthrefreshsessiontoken) | **POST** /passport/authed/v1/session/refresh-token | |
15
+ |[**passportAuthUserServicePassportAuthResetPassword**](#passportauthuserservicepassportauthresetpassword) | **POST** /passport/authed/v1/password/reset | |
16
+ |[**passportAuthUserServicePassportAuthRevokeOtherSessions**](#passportauthuserservicepassportauthrevokeothersessions) | **POST** /passport/authed/v1/sessions/revoke-other | |
17
+ |[**passportAuthUserServicePassportAuthRevokeSession**](#passportauthuserservicepassportauthrevokesession) | **POST** /passport/authed/v1/session/revoke | |
18
+ |[**passportAuthUserServicePassportAuthRevokeSessions**](#passportauthuserservicepassportauthrevokesessions) | **POST** /passport/authed/v1/sessions/revoke | |
19
+ |[**passportAuthUserServicePassportAuthSendVerificationEmail**](#passportauthuserservicepassportauthsendverificationemail) | **POST** /passport/authed/v1/verification/send-email | |
20
+ |[**passportAuthUserServicePassportAuthSendVerificationPhone**](#passportauthuserservicepassportauthsendverificationphone) | **POST** /passport/authed/v1/verification/send-phone | |
21
+ |[**passportAuthUserServicePassportAuthSocialGetAccessToken**](#passportauthuserservicepassportauthsocialgetaccesstoken) | **POST** /passport/authed/v1/social/get-access-token | |
22
+ |[**passportAuthUserServicePassportAuthSocialRefreshToken**](#passportauthuserservicepassportauthsocialrefreshtoken) | **POST** /passport/authed/v1/social/refresh-token | |
23
+ |[**passportAuthUserServicePassportAuthUnlinkSocial**](#passportauthuserservicepassportauthunlinksocial) | **POST** /passport/authed/v1/social/unlink | |
24
+ |[**passportAuthUserServicePassportAuthUserChangeEmail**](#passportauthuserservicepassportauthuserchangeemail) | **POST** /passport/authed/v1/email/change | |
25
+ |[**passportAuthUserServicePassportAuthUserChangePhone**](#passportauthuserservicepassportauthuserchangephone) | **POST** /passport/authed/v1/phone/change | |
26
+ |[**passportAuthUserServicePassportAuthUserDelete**](#passportauthuserservicepassportauthuserdelete) | **POST** /passport/authed/v1/user/request-delete | |
27
+ |[**passportAuthUserServicePassportAuthUserGetSession**](#passportauthuserservicepassportauthusergetsession) | **GET** /passport/authed/v1/session/get | |
28
+ |[**passportAuthUserServicePassportAuthUserInfoGet**](#passportauthuserservicepassportauthuserinfoget) | **GET** /passport/authed/v1/user/info | |
29
+ |[**passportAuthUserServicePassportAuthUserSignOut**](#passportauthuserservicepassportauthusersignout) | **POST** /passport/authed/v1/sign-out | |
30
+ |[**passportAuthUserServicePassportAuthUserUpdateInfo**](#passportauthuserservicepassportauthuserupdateinfo) | **POST** /passport/authed/v1/user/update-info | |
31
+ |[**passportAuthUserServicePassportAuthUserUpdatePassport**](#passportauthuserservicepassportauthuserupdatepassport) | **POST** /passport/authed/v1/passport/update | |
32
+ |[**passportAuthUserServicePassportAuthUserVerifyEmail**](#passportauthuserservicepassportauthuserverifyemail) | **POST** /passport/authed/v1/email/verify | |
33
+ |[**passportAuthUserServicePassportAuthUserVerifyPhone**](#passportauthuserservicepassportauthuserverifyphone) | **POST** /passport/authed/v1/phone/verify | |
34
+ |[**passportAuthUserServicePassportSendVerificationEmail**](#passportauthuserservicepassportsendverificationemail) | **POST** /passport/auth/v1/verification/send-email | |
35
+ |[**passportAuthUserServicePassportSendVerificationPhone**](#passportauthuserservicepassportsendverificationphone) | **POST** /passport/auth/v1/verification/send-phone | |
36
+ |[**passportAuthUserServicePassportUserOAuthCallback**](#passportauthuserservicepassportuseroauthcallback) | **GET** /passport/oauth2/{platform}/callback | |
37
+ |[**passportAuthUserServicePassportUserPasswordReset**](#passportauthuserservicepassportuserpasswordreset) | **POST** /passport/auth/v1/password/request-reset | |
38
+ |[**passportAuthUserServicePassportUserSignInEmail**](#passportauthuserservicepassportusersigninemail) | **POST** /passport/auth/v1/sign-in/email | |
39
+ |[**passportAuthUserServicePassportUserSignInPhone**](#passportauthuserservicepassportusersigninphone) | **POST** /passport/auth/v1/sign-in/phone | |
40
+ |[**passportAuthUserServicePassportUserSignInSocial**](#passportauthuserservicepassportusersigninsocial) | **POST** /passport/auth/v1/sign-in/social | |
41
+ |[**passportAuthUserServicePassportUserSignUpEmail**](#passportauthuserservicepassportusersignupemail) | **POST** /passport/auth/v1/sign-up/email | |
42
+
43
+ # **passportAuthUserServicePassportAuthChangePassword**
44
+ > PassportAuthChangePasswordResponse passportAuthUserServicePassportAuthChangePassword(passportAuthChangePasswordRequest)
45
+
46
+ 已登录用户修改密码
47
+
48
+ ### Example
49
+
50
+ ```typescript
51
+ import {
52
+ PassportAuthUserServiceApi,
53
+ Configuration,
54
+ PassportAuthChangePasswordRequest
55
+ } from '@cherryin/api-client';
56
+
57
+ const configuration = new Configuration();
58
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
59
+
60
+ let passportAuthChangePasswordRequest: PassportAuthChangePasswordRequest; //
61
+
62
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthChangePassword(
63
+ passportAuthChangePasswordRequest
64
+ );
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ |Name | Type | Description | Notes|
70
+ |------------- | ------------- | ------------- | -------------|
71
+ | **passportAuthChangePasswordRequest** | **PassportAuthChangePasswordRequest**| | |
72
+
73
+
74
+ ### Return type
75
+
76
+ **PassportAuthChangePasswordResponse**
77
+
78
+ ### Authorization
79
+
80
+ No authorization required
81
+
82
+ ### HTTP request headers
83
+
84
+ - **Content-Type**: application/json
85
+ - **Accept**: application/json
86
+
87
+
88
+ ### HTTP response details
89
+ | Status code | Description | Response headers |
90
+ |-------------|-------------|------------------|
91
+ |**200** | OK | - |
92
+ |**0** | Default error response | - |
93
+
94
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
95
+
96
+ # **passportAuthUserServicePassportAuthDeleteAll**
97
+ > PassportAuthDeleteAllResponse passportAuthUserServicePassportAuthDeleteAll(passportAuthDeleteAllRequest)
98
+
99
+ 删除通行证及所有关联用户
100
+
101
+ ### Example
102
+
103
+ ```typescript
104
+ import {
105
+ PassportAuthUserServiceApi,
106
+ Configuration,
107
+ PassportAuthDeleteAllRequest
108
+ } from '@cherryin/api-client';
109
+
110
+ const configuration = new Configuration();
111
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
112
+
113
+ let passportAuthDeleteAllRequest: PassportAuthDeleteAllRequest; //
114
+
115
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthDeleteAll(
116
+ passportAuthDeleteAllRequest
117
+ );
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+ |Name | Type | Description | Notes|
123
+ |------------- | ------------- | ------------- | -------------|
124
+ | **passportAuthDeleteAllRequest** | **PassportAuthDeleteAllRequest**| | |
125
+
126
+
127
+ ### Return type
128
+
129
+ **PassportAuthDeleteAllResponse**
130
+
131
+ ### Authorization
132
+
133
+ No authorization required
134
+
135
+ ### HTTP request headers
136
+
137
+ - **Content-Type**: application/json
138
+ - **Accept**: application/json
139
+
140
+
141
+ ### HTTP response details
142
+ | Status code | Description | Response headers |
143
+ |-------------|-------------|------------------|
144
+ |**200** | OK | - |
145
+ |**0** | Default error response | - |
146
+
147
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
148
+
149
+ # **passportAuthUserServicePassportAuthInfoGet**
150
+ > PassportAuthInfoGetResponse passportAuthUserServicePassportAuthInfoGet()
151
+
152
+ 获取通行证及用户信息
153
+
154
+ ### Example
155
+
156
+ ```typescript
157
+ import {
158
+ PassportAuthUserServiceApi,
159
+ Configuration
160
+ } from '@cherryin/api-client';
161
+
162
+ const configuration = new Configuration();
163
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
164
+
165
+ let appIds: string; //NOTE: app_ids 是 \':\' 分隔的字符串列表, 如果不指定则获取所有应用的用户信息 (optional) (default to undefined)
166
+
167
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthInfoGet(
168
+ appIds
169
+ );
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ |Name | Type | Description | Notes|
175
+ |------------- | ------------- | ------------- | -------------|
176
+ | **appIds** | [**string**] | NOTE: app_ids 是 \':\' 分隔的字符串列表, 如果不指定则获取所有应用的用户信息 | (optional) defaults to undefined|
177
+
178
+
179
+ ### Return type
180
+
181
+ **PassportAuthInfoGetResponse**
182
+
183
+ ### Authorization
184
+
185
+ No authorization required
186
+
187
+ ### HTTP request headers
188
+
189
+ - **Content-Type**: Not defined
190
+ - **Accept**: application/json
191
+
192
+
193
+ ### HTTP response details
194
+ | Status code | Description | Response headers |
195
+ |-------------|-------------|------------------|
196
+ |**200** | OK | - |
197
+ |**0** | Default error response | - |
198
+
199
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
200
+
201
+ # **passportAuthUserServicePassportAuthLinkSocial**
202
+ > PassportAuthLinkSocialResponse passportAuthUserServicePassportAuthLinkSocial(passportAuthLinkSocialRequest)
203
+
204
+ 已登录用户关联社交账号
205
+
206
+ ### Example
207
+
208
+ ```typescript
209
+ import {
210
+ PassportAuthUserServiceApi,
211
+ Configuration,
212
+ PassportAuthLinkSocialRequest
213
+ } from '@cherryin/api-client';
214
+
215
+ const configuration = new Configuration();
216
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
217
+
218
+ let passportAuthLinkSocialRequest: PassportAuthLinkSocialRequest; //
219
+
220
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthLinkSocial(
221
+ passportAuthLinkSocialRequest
222
+ );
223
+ ```
224
+
225
+ ### Parameters
226
+
227
+ |Name | Type | Description | Notes|
228
+ |------------- | ------------- | ------------- | -------------|
229
+ | **passportAuthLinkSocialRequest** | **PassportAuthLinkSocialRequest**| | |
230
+
231
+
232
+ ### Return type
233
+
234
+ **PassportAuthLinkSocialResponse**
235
+
236
+ ### Authorization
237
+
238
+ No authorization required
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: application/json
243
+ - **Accept**: application/json
244
+
245
+
246
+ ### HTTP response details
247
+ | Status code | Description | Response headers |
248
+ |-------------|-------------|------------------|
249
+ |**200** | OK | - |
250
+ |**0** | Default error response | - |
251
+
252
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
253
+
254
+ # **passportAuthUserServicePassportAuthListMethods**
255
+ > PassportAuthListMethodsResponse passportAuthUserServicePassportAuthListMethods()
256
+
257
+ 列出已关联的认证方法(包含 邮箱/社交账号等)
258
+
259
+ ### Example
260
+
261
+ ```typescript
262
+ import {
263
+ PassportAuthUserServiceApi,
264
+ Configuration
265
+ } from '@cherryin/api-client';
266
+
267
+ const configuration = new Configuration();
268
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
269
+
270
+ let appIds: string; //NOTE: app_ids 是 \':\' 分隔的字符串列表 (optional) (default to undefined)
271
+
272
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthListMethods(
273
+ appIds
274
+ );
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+ |Name | Type | Description | Notes|
280
+ |------------- | ------------- | ------------- | -------------|
281
+ | **appIds** | [**string**] | NOTE: app_ids 是 \':\' 分隔的字符串列表 | (optional) defaults to undefined|
282
+
283
+
284
+ ### Return type
285
+
286
+ **PassportAuthListMethodsResponse**
287
+
288
+ ### Authorization
289
+
290
+ No authorization required
291
+
292
+ ### HTTP request headers
293
+
294
+ - **Content-Type**: Not defined
295
+ - **Accept**: application/json
296
+
297
+
298
+ ### HTTP response details
299
+ | Status code | Description | Response headers |
300
+ |-------------|-------------|------------------|
301
+ |**200** | OK | - |
302
+ |**0** | Default error response | - |
303
+
304
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
305
+
306
+ # **passportAuthUserServicePassportAuthListSessions**
307
+ > PassportAuthListSessionsResponse passportAuthUserServicePassportAuthListSessions()
308
+
309
+ 获取当前用户的所有会话列表
310
+
311
+ ### Example
312
+
313
+ ```typescript
314
+ import {
315
+ PassportAuthUserServiceApi,
316
+ Configuration
317
+ } from '@cherryin/api-client';
318
+
319
+ const configuration = new Configuration();
320
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
321
+
322
+ let appIds: string; //NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" (optional) (default to undefined)
323
+
324
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthListSessions(
325
+ appIds
326
+ );
327
+ ```
328
+
329
+ ### Parameters
330
+
331
+ |Name | Type | Description | Notes|
332
+ |------------- | ------------- | ------------- | -------------|
333
+ | **appIds** | [**string**] | NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" | (optional) defaults to undefined|
334
+
335
+
336
+ ### Return type
337
+
338
+ **PassportAuthListSessionsResponse**
339
+
340
+ ### Authorization
341
+
342
+ No authorization required
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
349
+
350
+ ### HTTP response details
351
+ | Status code | Description | Response headers |
352
+ |-------------|-------------|------------------|
353
+ |**200** | OK | - |
354
+ |**0** | Default error response | - |
355
+
356
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
357
+
358
+ # **passportAuthUserServicePassportAuthListSocials**
359
+ > PassportAuthListSocialsResponse passportAuthUserServicePassportAuthListSocials()
360
+
361
+ 列出已关联的认证方法(列出社交账号)
362
+
363
+ ### Example
364
+
365
+ ```typescript
366
+ import {
367
+ PassportAuthUserServiceApi,
368
+ Configuration
369
+ } from '@cherryin/api-client';
370
+
371
+ const configuration = new Configuration();
372
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
373
+
374
+ let appIds: string; //NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" (optional) (default to undefined)
375
+
376
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthListSocials(
377
+ appIds
378
+ );
379
+ ```
380
+
381
+ ### Parameters
382
+
383
+ |Name | Type | Description | Notes|
384
+ |------------- | ------------- | ------------- | -------------|
385
+ | **appIds** | [**string**] | NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" | (optional) defaults to undefined|
386
+
387
+
388
+ ### Return type
389
+
390
+ **PassportAuthListSocialsResponse**
391
+
392
+ ### Authorization
393
+
394
+ No authorization required
395
+
396
+ ### HTTP request headers
397
+
398
+ - **Content-Type**: Not defined
399
+ - **Accept**: application/json
400
+
401
+
402
+ ### HTTP response details
403
+ | Status code | Description | Response headers |
404
+ |-------------|-------------|------------------|
405
+ |**200** | OK | - |
406
+ |**0** | Default error response | - |
407
+
408
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
409
+
410
+ # **passportAuthUserServicePassportAuthRefreshSessionToken**
411
+ > PassportAuthRefreshSessionTokenResponse passportAuthUserServicePassportAuthRefreshSessionToken(passportAuthRefreshSessionTokenRequest)
412
+
413
+ 会话 token 刷新
414
+
415
+ ### Example
416
+
417
+ ```typescript
418
+ import {
419
+ PassportAuthUserServiceApi,
420
+ Configuration,
421
+ PassportAuthRefreshSessionTokenRequest
422
+ } from '@cherryin/api-client';
423
+
424
+ const configuration = new Configuration();
425
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
426
+
427
+ let passportAuthRefreshSessionTokenRequest: PassportAuthRefreshSessionTokenRequest; //
428
+
429
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthRefreshSessionToken(
430
+ passportAuthRefreshSessionTokenRequest
431
+ );
432
+ ```
433
+
434
+ ### Parameters
435
+
436
+ |Name | Type | Description | Notes|
437
+ |------------- | ------------- | ------------- | -------------|
438
+ | **passportAuthRefreshSessionTokenRequest** | **PassportAuthRefreshSessionTokenRequest**| | |
439
+
440
+
441
+ ### Return type
442
+
443
+ **PassportAuthRefreshSessionTokenResponse**
444
+
445
+ ### Authorization
446
+
447
+ No authorization required
448
+
449
+ ### HTTP request headers
450
+
451
+ - **Content-Type**: application/json
452
+ - **Accept**: application/json
453
+
454
+
455
+ ### HTTP response details
456
+ | Status code | Description | Response headers |
457
+ |-------------|-------------|------------------|
458
+ |**200** | OK | - |
459
+ |**0** | Default error response | - |
460
+
461
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
462
+
463
+ # **passportAuthUserServicePassportAuthResetPassword**
464
+ > PassportAuthResetPasswordResponse passportAuthUserServicePassportAuthResetPassword(passportAuthResetPasswordRequest)
465
+
466
+ 已登录用户重置密码
467
+
468
+ ### Example
469
+
470
+ ```typescript
471
+ import {
472
+ PassportAuthUserServiceApi,
473
+ Configuration,
474
+ PassportAuthResetPasswordRequest
475
+ } from '@cherryin/api-client';
476
+
477
+ const configuration = new Configuration();
478
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
479
+
480
+ let passportAuthResetPasswordRequest: PassportAuthResetPasswordRequest; //
481
+
482
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthResetPassword(
483
+ passportAuthResetPasswordRequest
484
+ );
485
+ ```
486
+
487
+ ### Parameters
488
+
489
+ |Name | Type | Description | Notes|
490
+ |------------- | ------------- | ------------- | -------------|
491
+ | **passportAuthResetPasswordRequest** | **PassportAuthResetPasswordRequest**| | |
492
+
493
+
494
+ ### Return type
495
+
496
+ **PassportAuthResetPasswordResponse**
497
+
498
+ ### Authorization
499
+
500
+ No authorization required
501
+
502
+ ### HTTP request headers
503
+
504
+ - **Content-Type**: application/json
505
+ - **Accept**: application/json
506
+
507
+
508
+ ### HTTP response details
509
+ | Status code | Description | Response headers |
510
+ |-------------|-------------|------------------|
511
+ |**200** | OK | - |
512
+ |**0** | Default error response | - |
513
+
514
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
515
+
516
+ # **passportAuthUserServicePassportAuthRevokeOtherSessions**
517
+ > PassportAuthRevokeOtherSessionsResponse passportAuthUserServicePassportAuthRevokeOtherSessions(passportAuthRevokeOtherSessionsRequest)
518
+
519
+ 注销其他会话
520
+
521
+ ### Example
522
+
523
+ ```typescript
524
+ import {
525
+ PassportAuthUserServiceApi,
526
+ Configuration,
527
+ PassportAuthRevokeOtherSessionsRequest
528
+ } from '@cherryin/api-client';
529
+
530
+ const configuration = new Configuration();
531
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
532
+
533
+ let passportAuthRevokeOtherSessionsRequest: PassportAuthRevokeOtherSessionsRequest; //
534
+
535
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthRevokeOtherSessions(
536
+ passportAuthRevokeOtherSessionsRequest
537
+ );
538
+ ```
539
+
540
+ ### Parameters
541
+
542
+ |Name | Type | Description | Notes|
543
+ |------------- | ------------- | ------------- | -------------|
544
+ | **passportAuthRevokeOtherSessionsRequest** | **PassportAuthRevokeOtherSessionsRequest**| | |
545
+
546
+
547
+ ### Return type
548
+
549
+ **PassportAuthRevokeOtherSessionsResponse**
550
+
551
+ ### Authorization
552
+
553
+ No authorization required
554
+
555
+ ### HTTP request headers
556
+
557
+ - **Content-Type**: application/json
558
+ - **Accept**: application/json
559
+
560
+
561
+ ### HTTP response details
562
+ | Status code | Description | Response headers |
563
+ |-------------|-------------|------------------|
564
+ |**200** | OK | - |
565
+ |**0** | Default error response | - |
566
+
567
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
568
+
569
+ # **passportAuthUserServicePassportAuthRevokeSession**
570
+ > PassportAuthRevokeSessionResponse passportAuthUserServicePassportAuthRevokeSession(passportAuthRevokeSessionRequest)
571
+
572
+ 注销指定会话
573
+
574
+ ### Example
575
+
576
+ ```typescript
577
+ import {
578
+ PassportAuthUserServiceApi,
579
+ Configuration,
580
+ PassportAuthRevokeSessionRequest
581
+ } from '@cherryin/api-client';
582
+
583
+ const configuration = new Configuration();
584
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
585
+
586
+ let passportAuthRevokeSessionRequest: PassportAuthRevokeSessionRequest; //
587
+
588
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthRevokeSession(
589
+ passportAuthRevokeSessionRequest
590
+ );
591
+ ```
592
+
593
+ ### Parameters
594
+
595
+ |Name | Type | Description | Notes|
596
+ |------------- | ------------- | ------------- | -------------|
597
+ | **passportAuthRevokeSessionRequest** | **PassportAuthRevokeSessionRequest**| | |
598
+
599
+
600
+ ### Return type
601
+
602
+ **PassportAuthRevokeSessionResponse**
603
+
604
+ ### Authorization
605
+
606
+ No authorization required
607
+
608
+ ### HTTP request headers
609
+
610
+ - **Content-Type**: application/json
611
+ - **Accept**: application/json
612
+
613
+
614
+ ### HTTP response details
615
+ | Status code | Description | Response headers |
616
+ |-------------|-------------|------------------|
617
+ |**200** | OK | - |
618
+ |**0** | Default error response | - |
619
+
620
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
621
+
622
+ # **passportAuthUserServicePassportAuthRevokeSessions**
623
+ > PassportAuthRevokeSessionsResponse passportAuthUserServicePassportAuthRevokeSessions(passportAuthRevokeSessionsRequest)
624
+
625
+ 注销所有会话
626
+
627
+ ### Example
628
+
629
+ ```typescript
630
+ import {
631
+ PassportAuthUserServiceApi,
632
+ Configuration,
633
+ PassportAuthRevokeSessionsRequest
634
+ } from '@cherryin/api-client';
635
+
636
+ const configuration = new Configuration();
637
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
638
+
639
+ let passportAuthRevokeSessionsRequest: PassportAuthRevokeSessionsRequest; //
640
+
641
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthRevokeSessions(
642
+ passportAuthRevokeSessionsRequest
643
+ );
644
+ ```
645
+
646
+ ### Parameters
647
+
648
+ |Name | Type | Description | Notes|
649
+ |------------- | ------------- | ------------- | -------------|
650
+ | **passportAuthRevokeSessionsRequest** | **PassportAuthRevokeSessionsRequest**| | |
651
+
652
+
653
+ ### Return type
654
+
655
+ **PassportAuthRevokeSessionsResponse**
656
+
657
+ ### Authorization
658
+
659
+ No authorization required
660
+
661
+ ### HTTP request headers
662
+
663
+ - **Content-Type**: application/json
664
+ - **Accept**: application/json
665
+
666
+
667
+ ### HTTP response details
668
+ | Status code | Description | Response headers |
669
+ |-------------|-------------|------------------|
670
+ |**200** | OK | - |
671
+ |**0** | Default error response | - |
672
+
673
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
674
+
675
+ # **passportAuthUserServicePassportAuthSendVerificationEmail**
676
+ > PassportAuthSendVerificationEmailResponse passportAuthUserServicePassportAuthSendVerificationEmail(passportAuthSendVerificationEmailRequest)
677
+
678
+ 用户认证后发送验证码
679
+
680
+ ### Example
681
+
682
+ ```typescript
683
+ import {
684
+ PassportAuthUserServiceApi,
685
+ Configuration,
686
+ PassportAuthSendVerificationEmailRequest
687
+ } from '@cherryin/api-client';
688
+
689
+ const configuration = new Configuration();
690
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
691
+
692
+ let passportAuthSendVerificationEmailRequest: PassportAuthSendVerificationEmailRequest; //
693
+
694
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthSendVerificationEmail(
695
+ passportAuthSendVerificationEmailRequest
696
+ );
697
+ ```
698
+
699
+ ### Parameters
700
+
701
+ |Name | Type | Description | Notes|
702
+ |------------- | ------------- | ------------- | -------------|
703
+ | **passportAuthSendVerificationEmailRequest** | **PassportAuthSendVerificationEmailRequest**| | |
704
+
705
+
706
+ ### Return type
707
+
708
+ **PassportAuthSendVerificationEmailResponse**
709
+
710
+ ### Authorization
711
+
712
+ No authorization required
713
+
714
+ ### HTTP request headers
715
+
716
+ - **Content-Type**: application/json
717
+ - **Accept**: application/json
718
+
719
+
720
+ ### HTTP response details
721
+ | Status code | Description | Response headers |
722
+ |-------------|-------------|------------------|
723
+ |**200** | OK | - |
724
+ |**0** | Default error response | - |
725
+
726
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
727
+
728
+ # **passportAuthUserServicePassportAuthSendVerificationPhone**
729
+ > PassportAuthSendVerificationPhoneResponse passportAuthUserServicePassportAuthSendVerificationPhone(passportAuthSendVerificationPhoneRequest)
730
+
731
+ 用户认证后发送验证码
732
+
733
+ ### Example
734
+
735
+ ```typescript
736
+ import {
737
+ PassportAuthUserServiceApi,
738
+ Configuration,
739
+ PassportAuthSendVerificationPhoneRequest
740
+ } from '@cherryin/api-client';
741
+
742
+ const configuration = new Configuration();
743
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
744
+
745
+ let passportAuthSendVerificationPhoneRequest: PassportAuthSendVerificationPhoneRequest; //
746
+
747
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthSendVerificationPhone(
748
+ passportAuthSendVerificationPhoneRequest
749
+ );
750
+ ```
751
+
752
+ ### Parameters
753
+
754
+ |Name | Type | Description | Notes|
755
+ |------------- | ------------- | ------------- | -------------|
756
+ | **passportAuthSendVerificationPhoneRequest** | **PassportAuthSendVerificationPhoneRequest**| | |
757
+
758
+
759
+ ### Return type
760
+
761
+ **PassportAuthSendVerificationPhoneResponse**
762
+
763
+ ### Authorization
764
+
765
+ No authorization required
766
+
767
+ ### HTTP request headers
768
+
769
+ - **Content-Type**: application/json
770
+ - **Accept**: application/json
771
+
772
+
773
+ ### HTTP response details
774
+ | Status code | Description | Response headers |
775
+ |-------------|-------------|------------------|
776
+ |**200** | OK | - |
777
+ |**0** | Default error response | - |
778
+
779
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
780
+
781
+ # **passportAuthUserServicePassportAuthSocialGetAccessToken**
782
+ > PassportAuthSocialGetAccessTokenResponse passportAuthUserServicePassportAuthSocialGetAccessToken(passportAuthSocialGetAccessTokenRequest)
783
+
784
+ 获取社交账号访问令牌
785
+
786
+ ### Example
787
+
788
+ ```typescript
789
+ import {
790
+ PassportAuthUserServiceApi,
791
+ Configuration,
792
+ PassportAuthSocialGetAccessTokenRequest
793
+ } from '@cherryin/api-client';
794
+
795
+ const configuration = new Configuration();
796
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
797
+
798
+ let passportAuthSocialGetAccessTokenRequest: PassportAuthSocialGetAccessTokenRequest; //
799
+
800
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthSocialGetAccessToken(
801
+ passportAuthSocialGetAccessTokenRequest
802
+ );
803
+ ```
804
+
805
+ ### Parameters
806
+
807
+ |Name | Type | Description | Notes|
808
+ |------------- | ------------- | ------------- | -------------|
809
+ | **passportAuthSocialGetAccessTokenRequest** | **PassportAuthSocialGetAccessTokenRequest**| | |
810
+
811
+
812
+ ### Return type
813
+
814
+ **PassportAuthSocialGetAccessTokenResponse**
815
+
816
+ ### Authorization
817
+
818
+ No authorization required
819
+
820
+ ### HTTP request headers
821
+
822
+ - **Content-Type**: application/json
823
+ - **Accept**: application/json
824
+
825
+
826
+ ### HTTP response details
827
+ | Status code | Description | Response headers |
828
+ |-------------|-------------|------------------|
829
+ |**200** | OK | - |
830
+ |**0** | Default error response | - |
831
+
832
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
833
+
834
+ # **passportAuthUserServicePassportAuthSocialRefreshToken**
835
+ > PassportAuthSocialRefreshTokenResponse passportAuthUserServicePassportAuthSocialRefreshToken(passportAuthSocialRefreshTokenRequest)
836
+
837
+ 社交账号刷新 Token
838
+
839
+ ### Example
840
+
841
+ ```typescript
842
+ import {
843
+ PassportAuthUserServiceApi,
844
+ Configuration,
845
+ PassportAuthSocialRefreshTokenRequest
846
+ } from '@cherryin/api-client';
847
+
848
+ const configuration = new Configuration();
849
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
850
+
851
+ let passportAuthSocialRefreshTokenRequest: PassportAuthSocialRefreshTokenRequest; //
852
+
853
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthSocialRefreshToken(
854
+ passportAuthSocialRefreshTokenRequest
855
+ );
856
+ ```
857
+
858
+ ### Parameters
859
+
860
+ |Name | Type | Description | Notes|
861
+ |------------- | ------------- | ------------- | -------------|
862
+ | **passportAuthSocialRefreshTokenRequest** | **PassportAuthSocialRefreshTokenRequest**| | |
863
+
864
+
865
+ ### Return type
866
+
867
+ **PassportAuthSocialRefreshTokenResponse**
868
+
869
+ ### Authorization
870
+
871
+ No authorization required
872
+
873
+ ### HTTP request headers
874
+
875
+ - **Content-Type**: application/json
876
+ - **Accept**: application/json
877
+
878
+
879
+ ### HTTP response details
880
+ | Status code | Description | Response headers |
881
+ |-------------|-------------|------------------|
882
+ |**200** | OK | - |
883
+ |**0** | Default error response | - |
884
+
885
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
886
+
887
+ # **passportAuthUserServicePassportAuthUnlinkSocial**
888
+ > PassportAuthUnlinkSocialResponse passportAuthUserServicePassportAuthUnlinkSocial(passportAuthUnlinkSocialRequest)
889
+
890
+ 已登录用户取消关联社交账号
891
+
892
+ ### Example
893
+
894
+ ```typescript
895
+ import {
896
+ PassportAuthUserServiceApi,
897
+ Configuration,
898
+ PassportAuthUnlinkSocialRequest
899
+ } from '@cherryin/api-client';
900
+
901
+ const configuration = new Configuration();
902
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
903
+
904
+ let passportAuthUnlinkSocialRequest: PassportAuthUnlinkSocialRequest; //
905
+
906
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUnlinkSocial(
907
+ passportAuthUnlinkSocialRequest
908
+ );
909
+ ```
910
+
911
+ ### Parameters
912
+
913
+ |Name | Type | Description | Notes|
914
+ |------------- | ------------- | ------------- | -------------|
915
+ | **passportAuthUnlinkSocialRequest** | **PassportAuthUnlinkSocialRequest**| | |
916
+
917
+
918
+ ### Return type
919
+
920
+ **PassportAuthUnlinkSocialResponse**
921
+
922
+ ### Authorization
923
+
924
+ No authorization required
925
+
926
+ ### HTTP request headers
927
+
928
+ - **Content-Type**: application/json
929
+ - **Accept**: application/json
930
+
931
+
932
+ ### HTTP response details
933
+ | Status code | Description | Response headers |
934
+ |-------------|-------------|------------------|
935
+ |**200** | OK | - |
936
+ |**0** | Default error response | - |
937
+
938
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
939
+
940
+ # **passportAuthUserServicePassportAuthUserChangeEmail**
941
+ > PassportAuthUserChangeEmailResponse passportAuthUserServicePassportAuthUserChangeEmail(passportAuthUserChangeEmailRequest)
942
+
943
+ 已登录用户更换邮箱
944
+
945
+ ### Example
946
+
947
+ ```typescript
948
+ import {
949
+ PassportAuthUserServiceApi,
950
+ Configuration,
951
+ PassportAuthUserChangeEmailRequest
952
+ } from '@cherryin/api-client';
953
+
954
+ const configuration = new Configuration();
955
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
956
+
957
+ let passportAuthUserChangeEmailRequest: PassportAuthUserChangeEmailRequest; //
958
+
959
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserChangeEmail(
960
+ passportAuthUserChangeEmailRequest
961
+ );
962
+ ```
963
+
964
+ ### Parameters
965
+
966
+ |Name | Type | Description | Notes|
967
+ |------------- | ------------- | ------------- | -------------|
968
+ | **passportAuthUserChangeEmailRequest** | **PassportAuthUserChangeEmailRequest**| | |
969
+
970
+
971
+ ### Return type
972
+
973
+ **PassportAuthUserChangeEmailResponse**
974
+
975
+ ### Authorization
976
+
977
+ No authorization required
978
+
979
+ ### HTTP request headers
980
+
981
+ - **Content-Type**: application/json
982
+ - **Accept**: application/json
983
+
984
+
985
+ ### HTTP response details
986
+ | Status code | Description | Response headers |
987
+ |-------------|-------------|------------------|
988
+ |**200** | OK | - |
989
+ |**0** | Default error response | - |
990
+
991
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
992
+
993
+ # **passportAuthUserServicePassportAuthUserChangePhone**
994
+ > PassportAuthUserChangePhoneResponse passportAuthUserServicePassportAuthUserChangePhone(passportAuthUserChangePhoneRequest)
995
+
996
+ 已登录用户更换手机号
997
+
998
+ ### Example
999
+
1000
+ ```typescript
1001
+ import {
1002
+ PassportAuthUserServiceApi,
1003
+ Configuration,
1004
+ PassportAuthUserChangePhoneRequest
1005
+ } from '@cherryin/api-client';
1006
+
1007
+ const configuration = new Configuration();
1008
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1009
+
1010
+ let passportAuthUserChangePhoneRequest: PassportAuthUserChangePhoneRequest; //
1011
+
1012
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserChangePhone(
1013
+ passportAuthUserChangePhoneRequest
1014
+ );
1015
+ ```
1016
+
1017
+ ### Parameters
1018
+
1019
+ |Name | Type | Description | Notes|
1020
+ |------------- | ------------- | ------------- | -------------|
1021
+ | **passportAuthUserChangePhoneRequest** | **PassportAuthUserChangePhoneRequest**| | |
1022
+
1023
+
1024
+ ### Return type
1025
+
1026
+ **PassportAuthUserChangePhoneResponse**
1027
+
1028
+ ### Authorization
1029
+
1030
+ No authorization required
1031
+
1032
+ ### HTTP request headers
1033
+
1034
+ - **Content-Type**: application/json
1035
+ - **Accept**: application/json
1036
+
1037
+
1038
+ ### HTTP response details
1039
+ | Status code | Description | Response headers |
1040
+ |-------------|-------------|------------------|
1041
+ |**200** | OK | - |
1042
+ |**0** | Default error response | - |
1043
+
1044
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1045
+
1046
+ # **passportAuthUserServicePassportAuthUserDelete**
1047
+ > PassportAuthUserDeleteResponse passportAuthUserServicePassportAuthUserDelete(passportAuthUserDeleteRequest)
1048
+
1049
+ 请求删除用户
1050
+
1051
+ ### Example
1052
+
1053
+ ```typescript
1054
+ import {
1055
+ PassportAuthUserServiceApi,
1056
+ Configuration,
1057
+ PassportAuthUserDeleteRequest
1058
+ } from '@cherryin/api-client';
1059
+
1060
+ const configuration = new Configuration();
1061
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1062
+
1063
+ let passportAuthUserDeleteRequest: PassportAuthUserDeleteRequest; //
1064
+
1065
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserDelete(
1066
+ passportAuthUserDeleteRequest
1067
+ );
1068
+ ```
1069
+
1070
+ ### Parameters
1071
+
1072
+ |Name | Type | Description | Notes|
1073
+ |------------- | ------------- | ------------- | -------------|
1074
+ | **passportAuthUserDeleteRequest** | **PassportAuthUserDeleteRequest**| | |
1075
+
1076
+
1077
+ ### Return type
1078
+
1079
+ **PassportAuthUserDeleteResponse**
1080
+
1081
+ ### Authorization
1082
+
1083
+ No authorization required
1084
+
1085
+ ### HTTP request headers
1086
+
1087
+ - **Content-Type**: application/json
1088
+ - **Accept**: application/json
1089
+
1090
+
1091
+ ### HTTP response details
1092
+ | Status code | Description | Response headers |
1093
+ |-------------|-------------|------------------|
1094
+ |**200** | OK | - |
1095
+ |**0** | Default error response | - |
1096
+
1097
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1098
+
1099
+ # **passportAuthUserServicePassportAuthUserGetSession**
1100
+ > PassportAuthUserGetSessionResponse passportAuthUserServicePassportAuthUserGetSession()
1101
+
1102
+ 获取当前会话信息
1103
+
1104
+ ### Example
1105
+
1106
+ ```typescript
1107
+ import {
1108
+ PassportAuthUserServiceApi,
1109
+ Configuration
1110
+ } from '@cherryin/api-client';
1111
+
1112
+ const configuration = new Configuration();
1113
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1114
+
1115
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserGetSession();
1116
+ ```
1117
+
1118
+ ### Parameters
1119
+ This endpoint does not have any parameters.
1120
+
1121
+
1122
+ ### Return type
1123
+
1124
+ **PassportAuthUserGetSessionResponse**
1125
+
1126
+ ### Authorization
1127
+
1128
+ No authorization required
1129
+
1130
+ ### HTTP request headers
1131
+
1132
+ - **Content-Type**: Not defined
1133
+ - **Accept**: application/json
1134
+
1135
+
1136
+ ### HTTP response details
1137
+ | Status code | Description | Response headers |
1138
+ |-------------|-------------|------------------|
1139
+ |**200** | OK | - |
1140
+ |**0** | Default error response | - |
1141
+
1142
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1143
+
1144
+ # **passportAuthUserServicePassportAuthUserInfoGet**
1145
+ > PassportAuthUserInfoGetResponse passportAuthUserServicePassportAuthUserInfoGet()
1146
+
1147
+ 获取用户信息
1148
+
1149
+ ### Example
1150
+
1151
+ ```typescript
1152
+ import {
1153
+ PassportAuthUserServiceApi,
1154
+ Configuration
1155
+ } from '@cherryin/api-client';
1156
+
1157
+ const configuration = new Configuration();
1158
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1159
+
1160
+ let appIds: string; //NOTE: app_ids 是 \':\' 分隔的字符串列表 (optional) (default to undefined)
1161
+
1162
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserInfoGet(
1163
+ appIds
1164
+ );
1165
+ ```
1166
+
1167
+ ### Parameters
1168
+
1169
+ |Name | Type | Description | Notes|
1170
+ |------------- | ------------- | ------------- | -------------|
1171
+ | **appIds** | [**string**] | NOTE: app_ids 是 \':\' 分隔的字符串列表 | (optional) defaults to undefined|
1172
+
1173
+
1174
+ ### Return type
1175
+
1176
+ **PassportAuthUserInfoGetResponse**
1177
+
1178
+ ### Authorization
1179
+
1180
+ No authorization required
1181
+
1182
+ ### HTTP request headers
1183
+
1184
+ - **Content-Type**: Not defined
1185
+ - **Accept**: application/json
1186
+
1187
+
1188
+ ### HTTP response details
1189
+ | Status code | Description | Response headers |
1190
+ |-------------|-------------|------------------|
1191
+ |**200** | OK | - |
1192
+ |**0** | Default error response | - |
1193
+
1194
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1195
+
1196
+ # **passportAuthUserServicePassportAuthUserSignOut**
1197
+ > PassportAuthUserSignOutResponse passportAuthUserServicePassportAuthUserSignOut(passportAuthUserSignOutRequest)
1198
+
1199
+ 用户登出
1200
+
1201
+ ### Example
1202
+
1203
+ ```typescript
1204
+ import {
1205
+ PassportAuthUserServiceApi,
1206
+ Configuration,
1207
+ PassportAuthUserSignOutRequest
1208
+ } from '@cherryin/api-client';
1209
+
1210
+ const configuration = new Configuration();
1211
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1212
+
1213
+ let passportAuthUserSignOutRequest: PassportAuthUserSignOutRequest; //
1214
+
1215
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserSignOut(
1216
+ passportAuthUserSignOutRequest
1217
+ );
1218
+ ```
1219
+
1220
+ ### Parameters
1221
+
1222
+ |Name | Type | Description | Notes|
1223
+ |------------- | ------------- | ------------- | -------------|
1224
+ | **passportAuthUserSignOutRequest** | **PassportAuthUserSignOutRequest**| | |
1225
+
1226
+
1227
+ ### Return type
1228
+
1229
+ **PassportAuthUserSignOutResponse**
1230
+
1231
+ ### Authorization
1232
+
1233
+ No authorization required
1234
+
1235
+ ### HTTP request headers
1236
+
1237
+ - **Content-Type**: application/json
1238
+ - **Accept**: application/json
1239
+
1240
+
1241
+ ### HTTP response details
1242
+ | Status code | Description | Response headers |
1243
+ |-------------|-------------|------------------|
1244
+ |**200** | OK | - |
1245
+ |**0** | Default error response | - |
1246
+
1247
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1248
+
1249
+ # **passportAuthUserServicePassportAuthUserUpdateInfo**
1250
+ > PassportAuthUserUpdateInfoResponse passportAuthUserServicePassportAuthUserUpdateInfo(passportAuthUserUpdateInfoRequest)
1251
+
1252
+ 更新用户信息
1253
+
1254
+ ### Example
1255
+
1256
+ ```typescript
1257
+ import {
1258
+ PassportAuthUserServiceApi,
1259
+ Configuration,
1260
+ PassportAuthUserUpdateInfoRequest
1261
+ } from '@cherryin/api-client';
1262
+
1263
+ const configuration = new Configuration();
1264
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1265
+
1266
+ let passportAuthUserUpdateInfoRequest: PassportAuthUserUpdateInfoRequest; //
1267
+
1268
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserUpdateInfo(
1269
+ passportAuthUserUpdateInfoRequest
1270
+ );
1271
+ ```
1272
+
1273
+ ### Parameters
1274
+
1275
+ |Name | Type | Description | Notes|
1276
+ |------------- | ------------- | ------------- | -------------|
1277
+ | **passportAuthUserUpdateInfoRequest** | **PassportAuthUserUpdateInfoRequest**| | |
1278
+
1279
+
1280
+ ### Return type
1281
+
1282
+ **PassportAuthUserUpdateInfoResponse**
1283
+
1284
+ ### Authorization
1285
+
1286
+ No authorization required
1287
+
1288
+ ### HTTP request headers
1289
+
1290
+ - **Content-Type**: application/json
1291
+ - **Accept**: application/json
1292
+
1293
+
1294
+ ### HTTP response details
1295
+ | Status code | Description | Response headers |
1296
+ |-------------|-------------|------------------|
1297
+ |**200** | OK | - |
1298
+ |**0** | Default error response | - |
1299
+
1300
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1301
+
1302
+ # **passportAuthUserServicePassportAuthUserUpdatePassport**
1303
+ > PassportAuthUserUpdatePassportResponse passportAuthUserServicePassportAuthUserUpdatePassport(passportAuthUserUpdatePassportRequest)
1304
+
1305
+ 更新通行证信息
1306
+
1307
+ ### Example
1308
+
1309
+ ```typescript
1310
+ import {
1311
+ PassportAuthUserServiceApi,
1312
+ Configuration,
1313
+ PassportAuthUserUpdatePassportRequest
1314
+ } from '@cherryin/api-client';
1315
+
1316
+ const configuration = new Configuration();
1317
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1318
+
1319
+ let passportAuthUserUpdatePassportRequest: PassportAuthUserUpdatePassportRequest; //
1320
+
1321
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserUpdatePassport(
1322
+ passportAuthUserUpdatePassportRequest
1323
+ );
1324
+ ```
1325
+
1326
+ ### Parameters
1327
+
1328
+ |Name | Type | Description | Notes|
1329
+ |------------- | ------------- | ------------- | -------------|
1330
+ | **passportAuthUserUpdatePassportRequest** | **PassportAuthUserUpdatePassportRequest**| | |
1331
+
1332
+
1333
+ ### Return type
1334
+
1335
+ **PassportAuthUserUpdatePassportResponse**
1336
+
1337
+ ### Authorization
1338
+
1339
+ No authorization required
1340
+
1341
+ ### HTTP request headers
1342
+
1343
+ - **Content-Type**: application/json
1344
+ - **Accept**: application/json
1345
+
1346
+
1347
+ ### HTTP response details
1348
+ | Status code | Description | Response headers |
1349
+ |-------------|-------------|------------------|
1350
+ |**200** | OK | - |
1351
+ |**0** | Default error response | - |
1352
+
1353
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1354
+
1355
+ # **passportAuthUserServicePassportAuthUserVerifyEmail**
1356
+ > PassportAuthUserVerifyEmailResponse passportAuthUserServicePassportAuthUserVerifyEmail(passportAuthUserVerifyEmailRequest)
1357
+
1358
+ 已登录用户验证邮箱
1359
+
1360
+ ### Example
1361
+
1362
+ ```typescript
1363
+ import {
1364
+ PassportAuthUserServiceApi,
1365
+ Configuration,
1366
+ PassportAuthUserVerifyEmailRequest
1367
+ } from '@cherryin/api-client';
1368
+
1369
+ const configuration = new Configuration();
1370
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1371
+
1372
+ let passportAuthUserVerifyEmailRequest: PassportAuthUserVerifyEmailRequest; //
1373
+
1374
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserVerifyEmail(
1375
+ passportAuthUserVerifyEmailRequest
1376
+ );
1377
+ ```
1378
+
1379
+ ### Parameters
1380
+
1381
+ |Name | Type | Description | Notes|
1382
+ |------------- | ------------- | ------------- | -------------|
1383
+ | **passportAuthUserVerifyEmailRequest** | **PassportAuthUserVerifyEmailRequest**| | |
1384
+
1385
+
1386
+ ### Return type
1387
+
1388
+ **PassportAuthUserVerifyEmailResponse**
1389
+
1390
+ ### Authorization
1391
+
1392
+ No authorization required
1393
+
1394
+ ### HTTP request headers
1395
+
1396
+ - **Content-Type**: application/json
1397
+ - **Accept**: application/json
1398
+
1399
+
1400
+ ### HTTP response details
1401
+ | Status code | Description | Response headers |
1402
+ |-------------|-------------|------------------|
1403
+ |**200** | OK | - |
1404
+ |**0** | Default error response | - |
1405
+
1406
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1407
+
1408
+ # **passportAuthUserServicePassportAuthUserVerifyPhone**
1409
+ > PassportAuthUserVerifyPhoneResponse passportAuthUserServicePassportAuthUserVerifyPhone(passportAuthUserVerifyPhoneRequest)
1410
+
1411
+ 已登录用户验证手机号
1412
+
1413
+ ### Example
1414
+
1415
+ ```typescript
1416
+ import {
1417
+ PassportAuthUserServiceApi,
1418
+ Configuration,
1419
+ PassportAuthUserVerifyPhoneRequest
1420
+ } from '@cherryin/api-client';
1421
+
1422
+ const configuration = new Configuration();
1423
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1424
+
1425
+ let passportAuthUserVerifyPhoneRequest: PassportAuthUserVerifyPhoneRequest; //
1426
+
1427
+ const { status, data } = await apiInstance.passportAuthUserServicePassportAuthUserVerifyPhone(
1428
+ passportAuthUserVerifyPhoneRequest
1429
+ );
1430
+ ```
1431
+
1432
+ ### Parameters
1433
+
1434
+ |Name | Type | Description | Notes|
1435
+ |------------- | ------------- | ------------- | -------------|
1436
+ | **passportAuthUserVerifyPhoneRequest** | **PassportAuthUserVerifyPhoneRequest**| | |
1437
+
1438
+
1439
+ ### Return type
1440
+
1441
+ **PassportAuthUserVerifyPhoneResponse**
1442
+
1443
+ ### Authorization
1444
+
1445
+ No authorization required
1446
+
1447
+ ### HTTP request headers
1448
+
1449
+ - **Content-Type**: application/json
1450
+ - **Accept**: application/json
1451
+
1452
+
1453
+ ### HTTP response details
1454
+ | Status code | Description | Response headers |
1455
+ |-------------|-------------|------------------|
1456
+ |**200** | OK | - |
1457
+ |**0** | Default error response | - |
1458
+
1459
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1460
+
1461
+ # **passportAuthUserServicePassportSendVerificationEmail**
1462
+ > PassportSendVerificationEmailResponse passportAuthUserServicePassportSendVerificationEmail(passportSendVerificationEmailRequest)
1463
+
1464
+ 登录/注册流程中发送验证码
1465
+
1466
+ ### Example
1467
+
1468
+ ```typescript
1469
+ import {
1470
+ PassportAuthUserServiceApi,
1471
+ Configuration,
1472
+ PassportSendVerificationEmailRequest
1473
+ } from '@cherryin/api-client';
1474
+
1475
+ const configuration = new Configuration();
1476
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1477
+
1478
+ let passportSendVerificationEmailRequest: PassportSendVerificationEmailRequest; //
1479
+
1480
+ const { status, data } = await apiInstance.passportAuthUserServicePassportSendVerificationEmail(
1481
+ passportSendVerificationEmailRequest
1482
+ );
1483
+ ```
1484
+
1485
+ ### Parameters
1486
+
1487
+ |Name | Type | Description | Notes|
1488
+ |------------- | ------------- | ------------- | -------------|
1489
+ | **passportSendVerificationEmailRequest** | **PassportSendVerificationEmailRequest**| | |
1490
+
1491
+
1492
+ ### Return type
1493
+
1494
+ **PassportSendVerificationEmailResponse**
1495
+
1496
+ ### Authorization
1497
+
1498
+ No authorization required
1499
+
1500
+ ### HTTP request headers
1501
+
1502
+ - **Content-Type**: application/json
1503
+ - **Accept**: application/json
1504
+
1505
+
1506
+ ### HTTP response details
1507
+ | Status code | Description | Response headers |
1508
+ |-------------|-------------|------------------|
1509
+ |**200** | OK | - |
1510
+ |**0** | Default error response | - |
1511
+
1512
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1513
+
1514
+ # **passportAuthUserServicePassportSendVerificationPhone**
1515
+ > PassportSendVerificationPhoneResponse passportAuthUserServicePassportSendVerificationPhone(passportSendVerificationPhoneRequest)
1516
+
1517
+ 登录/注册流程中发送验证码
1518
+
1519
+ ### Example
1520
+
1521
+ ```typescript
1522
+ import {
1523
+ PassportAuthUserServiceApi,
1524
+ Configuration,
1525
+ PassportSendVerificationPhoneRequest
1526
+ } from '@cherryin/api-client';
1527
+
1528
+ const configuration = new Configuration();
1529
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1530
+
1531
+ let passportSendVerificationPhoneRequest: PassportSendVerificationPhoneRequest; //
1532
+
1533
+ const { status, data } = await apiInstance.passportAuthUserServicePassportSendVerificationPhone(
1534
+ passportSendVerificationPhoneRequest
1535
+ );
1536
+ ```
1537
+
1538
+ ### Parameters
1539
+
1540
+ |Name | Type | Description | Notes|
1541
+ |------------- | ------------- | ------------- | -------------|
1542
+ | **passportSendVerificationPhoneRequest** | **PassportSendVerificationPhoneRequest**| | |
1543
+
1544
+
1545
+ ### Return type
1546
+
1547
+ **PassportSendVerificationPhoneResponse**
1548
+
1549
+ ### Authorization
1550
+
1551
+ No authorization required
1552
+
1553
+ ### HTTP request headers
1554
+
1555
+ - **Content-Type**: application/json
1556
+ - **Accept**: application/json
1557
+
1558
+
1559
+ ### HTTP response details
1560
+ | Status code | Description | Response headers |
1561
+ |-------------|-------------|------------------|
1562
+ |**200** | OK | - |
1563
+ |**0** | Default error response | - |
1564
+
1565
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1566
+
1567
+ # **passportAuthUserServicePassportUserOAuthCallback**
1568
+ > PassportUserOAuthCallbackResponse passportAuthUserServicePassportUserOAuthCallback()
1569
+
1570
+ OAuth 回调处理
1571
+
1572
+ ### Example
1573
+
1574
+ ```typescript
1575
+ import {
1576
+ PassportAuthUserServiceApi,
1577
+ Configuration
1578
+ } from '@cherryin/api-client';
1579
+
1580
+ const configuration = new Configuration();
1581
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1582
+
1583
+ let platform: string; //@gotags: form:\"platform\" google/github (default to undefined)
1584
+ let appIds: string; //User.AppID, 支持多个应用同时登录,如果对应 App 的账号,无法完成登录 NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" (optional) (default to undefined)
1585
+ let code: string; //@gotags: form:\"code\" OAuth 授权码 (optional) (default to undefined)
1586
+ let state: string; //@gotags: form:\"state\" CSRF state (optional) (default to undefined)
1587
+
1588
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserOAuthCallback(
1589
+ platform,
1590
+ appIds,
1591
+ code,
1592
+ state
1593
+ );
1594
+ ```
1595
+
1596
+ ### Parameters
1597
+
1598
+ |Name | Type | Description | Notes|
1599
+ |------------- | ------------- | ------------- | -------------|
1600
+ | **platform** | [**string**] | @gotags: form:\"platform\" google/github | defaults to undefined|
1601
+ | **appIds** | [**string**] | User.AppID, 支持多个应用同时登录,如果对应 App 的账号,无法完成登录 NOTE: app_ids 是 \':\' 分隔的字符串列表 @gotags: form:\"app_ids\" | (optional) defaults to undefined|
1602
+ | **code** | [**string**] | @gotags: form:\"code\" OAuth 授权码 | (optional) defaults to undefined|
1603
+ | **state** | [**string**] | @gotags: form:\"state\" CSRF state | (optional) defaults to undefined|
1604
+
1605
+
1606
+ ### Return type
1607
+
1608
+ **PassportUserOAuthCallbackResponse**
1609
+
1610
+ ### Authorization
1611
+
1612
+ No authorization required
1613
+
1614
+ ### HTTP request headers
1615
+
1616
+ - **Content-Type**: Not defined
1617
+ - **Accept**: application/json
1618
+
1619
+
1620
+ ### HTTP response details
1621
+ | Status code | Description | Response headers |
1622
+ |-------------|-------------|------------------|
1623
+ |**200** | OK | - |
1624
+ |**0** | Default error response | - |
1625
+
1626
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1627
+
1628
+ # **passportAuthUserServicePassportUserPasswordReset**
1629
+ > PassportUserPasswordResetResponse passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest)
1630
+
1631
+ 请求重置密码
1632
+
1633
+ ### Example
1634
+
1635
+ ```typescript
1636
+ import {
1637
+ PassportAuthUserServiceApi,
1638
+ Configuration,
1639
+ PassportUserPasswordResetRequest
1640
+ } from '@cherryin/api-client';
1641
+
1642
+ const configuration = new Configuration();
1643
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1644
+
1645
+ let passportUserPasswordResetRequest: PassportUserPasswordResetRequest; //
1646
+
1647
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserPasswordReset(
1648
+ passportUserPasswordResetRequest
1649
+ );
1650
+ ```
1651
+
1652
+ ### Parameters
1653
+
1654
+ |Name | Type | Description | Notes|
1655
+ |------------- | ------------- | ------------- | -------------|
1656
+ | **passportUserPasswordResetRequest** | **PassportUserPasswordResetRequest**| | |
1657
+
1658
+
1659
+ ### Return type
1660
+
1661
+ **PassportUserPasswordResetResponse**
1662
+
1663
+ ### Authorization
1664
+
1665
+ No authorization required
1666
+
1667
+ ### HTTP request headers
1668
+
1669
+ - **Content-Type**: application/json
1670
+ - **Accept**: application/json
1671
+
1672
+
1673
+ ### HTTP response details
1674
+ | Status code | Description | Response headers |
1675
+ |-------------|-------------|------------------|
1676
+ |**200** | OK | - |
1677
+ |**0** | Default error response | - |
1678
+
1679
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1680
+
1681
+ # **passportAuthUserServicePassportUserSignInEmail**
1682
+ > PassportUserSignInEmailResponse passportAuthUserServicePassportUserSignInEmail(passportUserSignInEmailRequest)
1683
+
1684
+ 邮箱登录
1685
+
1686
+ ### Example
1687
+
1688
+ ```typescript
1689
+ import {
1690
+ PassportAuthUserServiceApi,
1691
+ Configuration,
1692
+ PassportUserSignInEmailRequest
1693
+ } from '@cherryin/api-client';
1694
+
1695
+ const configuration = new Configuration();
1696
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1697
+
1698
+ let passportUserSignInEmailRequest: PassportUserSignInEmailRequest; //
1699
+
1700
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserSignInEmail(
1701
+ passportUserSignInEmailRequest
1702
+ );
1703
+ ```
1704
+
1705
+ ### Parameters
1706
+
1707
+ |Name | Type | Description | Notes|
1708
+ |------------- | ------------- | ------------- | -------------|
1709
+ | **passportUserSignInEmailRequest** | **PassportUserSignInEmailRequest**| | |
1710
+
1711
+
1712
+ ### Return type
1713
+
1714
+ **PassportUserSignInEmailResponse**
1715
+
1716
+ ### Authorization
1717
+
1718
+ No authorization required
1719
+
1720
+ ### HTTP request headers
1721
+
1722
+ - **Content-Type**: application/json
1723
+ - **Accept**: application/json
1724
+
1725
+
1726
+ ### HTTP response details
1727
+ | Status code | Description | Response headers |
1728
+ |-------------|-------------|------------------|
1729
+ |**200** | OK | - |
1730
+ |**0** | Default error response | - |
1731
+
1732
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1733
+
1734
+ # **passportAuthUserServicePassportUserSignInPhone**
1735
+ > PassportUserSignInPhoneResponse passportAuthUserServicePassportUserSignInPhone(passportUserSignInPhoneRequest)
1736
+
1737
+ 手机登录
1738
+
1739
+ ### Example
1740
+
1741
+ ```typescript
1742
+ import {
1743
+ PassportAuthUserServiceApi,
1744
+ Configuration,
1745
+ PassportUserSignInPhoneRequest
1746
+ } from '@cherryin/api-client';
1747
+
1748
+ const configuration = new Configuration();
1749
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1750
+
1751
+ let passportUserSignInPhoneRequest: PassportUserSignInPhoneRequest; //
1752
+
1753
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserSignInPhone(
1754
+ passportUserSignInPhoneRequest
1755
+ );
1756
+ ```
1757
+
1758
+ ### Parameters
1759
+
1760
+ |Name | Type | Description | Notes|
1761
+ |------------- | ------------- | ------------- | -------------|
1762
+ | **passportUserSignInPhoneRequest** | **PassportUserSignInPhoneRequest**| | |
1763
+
1764
+
1765
+ ### Return type
1766
+
1767
+ **PassportUserSignInPhoneResponse**
1768
+
1769
+ ### Authorization
1770
+
1771
+ No authorization required
1772
+
1773
+ ### HTTP request headers
1774
+
1775
+ - **Content-Type**: application/json
1776
+ - **Accept**: application/json
1777
+
1778
+
1779
+ ### HTTP response details
1780
+ | Status code | Description | Response headers |
1781
+ |-------------|-------------|------------------|
1782
+ |**200** | OK | - |
1783
+ |**0** | Default error response | - |
1784
+
1785
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1786
+
1787
+ # **passportAuthUserServicePassportUserSignInSocial**
1788
+ > PassportUserSignInSocialResponse passportAuthUserServicePassportUserSignInSocial(passportUserSignInSocialRequest)
1789
+
1790
+ 社交登录
1791
+
1792
+ ### Example
1793
+
1794
+ ```typescript
1795
+ import {
1796
+ PassportAuthUserServiceApi,
1797
+ Configuration,
1798
+ PassportUserSignInSocialRequest
1799
+ } from '@cherryin/api-client';
1800
+
1801
+ const configuration = new Configuration();
1802
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1803
+
1804
+ let passportUserSignInSocialRequest: PassportUserSignInSocialRequest; //
1805
+
1806
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserSignInSocial(
1807
+ passportUserSignInSocialRequest
1808
+ );
1809
+ ```
1810
+
1811
+ ### Parameters
1812
+
1813
+ |Name | Type | Description | Notes|
1814
+ |------------- | ------------- | ------------- | -------------|
1815
+ | **passportUserSignInSocialRequest** | **PassportUserSignInSocialRequest**| | |
1816
+
1817
+
1818
+ ### Return type
1819
+
1820
+ **PassportUserSignInSocialResponse**
1821
+
1822
+ ### Authorization
1823
+
1824
+ No authorization required
1825
+
1826
+ ### HTTP request headers
1827
+
1828
+ - **Content-Type**: application/json
1829
+ - **Accept**: application/json
1830
+
1831
+
1832
+ ### HTTP response details
1833
+ | Status code | Description | Response headers |
1834
+ |-------------|-------------|------------------|
1835
+ |**200** | OK | - |
1836
+ |**0** | Default error response | - |
1837
+
1838
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1839
+
1840
+ # **passportAuthUserServicePassportUserSignUpEmail**
1841
+ > PassportUserSignUpEmailResponse passportAuthUserServicePassportUserSignUpEmail(passportUserSignUpEmailRequest)
1842
+
1843
+ 邮箱注册
1844
+
1845
+ ### Example
1846
+
1847
+ ```typescript
1848
+ import {
1849
+ PassportAuthUserServiceApi,
1850
+ Configuration,
1851
+ PassportUserSignUpEmailRequest
1852
+ } from '@cherryin/api-client';
1853
+
1854
+ const configuration = new Configuration();
1855
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1856
+
1857
+ let passportUserSignUpEmailRequest: PassportUserSignUpEmailRequest; //
1858
+
1859
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserSignUpEmail(
1860
+ passportUserSignUpEmailRequest
1861
+ );
1862
+ ```
1863
+
1864
+ ### Parameters
1865
+
1866
+ |Name | Type | Description | Notes|
1867
+ |------------- | ------------- | ------------- | -------------|
1868
+ | **passportUserSignUpEmailRequest** | **PassportUserSignUpEmailRequest**| | |
1869
+
1870
+
1871
+ ### Return type
1872
+
1873
+ **PassportUserSignUpEmailResponse**
1874
+
1875
+ ### Authorization
1876
+
1877
+ No authorization required
1878
+
1879
+ ### HTTP request headers
1880
+
1881
+ - **Content-Type**: application/json
1882
+ - **Accept**: application/json
1883
+
1884
+
1885
+ ### HTTP response details
1886
+ | Status code | Description | Response headers |
1887
+ |-------------|-------------|------------------|
1888
+ |**200** | OK | - |
1889
+ |**0** | Default error response | - |
1890
+
1891
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1892
+