@cherryin/api-client 0.0.8 → 0.0.9
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.
- package/.openapi-generator/FILES +86 -0
- package/README.md +130 -2
- package/api.ts +4491 -318
- package/dist/api.d.ts +2406 -68
- package/dist/api.js +2966 -2
- package/dist/esm/api.d.ts +2406 -68
- package/dist/esm/api.js +2952 -0
- package/docs/AuthAdminUser.md +33 -0
- package/docs/AuthIdToken.md +29 -0
- package/docs/AuthPassport.md +35 -0
- package/docs/AuthUser.md +39 -0
- package/docs/AuthUserMethod.md +39 -0
- package/docs/AuthUserSession.md +37 -0
- package/docs/PassportAuthAdminChangePasswordRequest.md +24 -0
- package/docs/PassportAuthAdminChangePasswordResponse.md +26 -0
- package/docs/PassportAuthAdminGetSessionResponse.md +26 -0
- package/docs/PassportAuthAdminListSessionsResponse.md +24 -0
- package/docs/PassportAuthAdminRevokeOtherSessionsResponse.md +22 -0
- package/docs/PassportAuthAdminRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthAdminRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthAdminRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthAdminServiceApi.md +469 -0
- package/docs/PassportAuthAdminSignInEmailRequest.md +26 -0
- package/docs/PassportAuthAdminSignInEmailResponse.md +26 -0
- package/docs/PassportAuthAdminSignOutResponse.md +22 -0
- package/docs/PassportAuthAdminUpdateUserRequest.md +22 -0
- package/docs/PassportAuthAdminUpdateUserResponse.md +24 -0
- package/docs/PassportAuthUserChangeEmailRequest.md +24 -0
- package/docs/PassportAuthUserChangeEmailResponse.md +24 -0
- package/docs/PassportAuthUserChangePasswordRequest.md +26 -0
- package/docs/PassportAuthUserChangePasswordResponse.md +26 -0
- package/docs/PassportAuthUserChangePhoneRequest.md +26 -0
- package/docs/PassportAuthUserChangePhoneResponse.md +24 -0
- package/docs/PassportAuthUserDeletePassportRequest.md +22 -0
- package/docs/PassportAuthUserDeletePassportResponse.md +24 -0
- package/docs/PassportAuthUserDeleteUserRequest.md +24 -0
- package/docs/PassportAuthUserDeleteUserResponse.md +24 -0
- package/docs/PassportAuthUserGetAccessTokenRequest.md +24 -0
- package/docs/PassportAuthUserGetAccessTokenResponse.md +34 -0
- package/docs/PassportAuthUserGetAccountInfoResponse.md +24 -0
- package/docs/PassportAuthUserGetPassportInfoResponse.md +26 -0
- package/docs/PassportAuthUserGetSessionResponse.md +24 -0
- package/docs/PassportAuthUserLinkSocialRequest.md +32 -0
- package/docs/PassportAuthUserLinkSocialResponse.md +26 -0
- package/docs/PassportAuthUserListAccountsResponse.md +24 -0
- package/docs/PassportAuthUserListMethodsResponse.md +24 -0
- package/docs/PassportAuthUserListSessionsResponse.md +24 -0
- package/docs/PassportAuthUserOAuthCallbackResponse.md +36 -0
- package/docs/PassportAuthUserRefreshTokenRequest.md +24 -0
- package/docs/PassportAuthUserRefreshTokenResponse.md +34 -0
- package/docs/PassportAuthUserRequestPasswordResetRequest.md +24 -0
- package/docs/PassportAuthUserRequestPasswordResetResponse.md +22 -0
- package/docs/PassportAuthUserResetPasswordRequest.md +24 -0
- package/docs/PassportAuthUserResetPasswordResponse.md +22 -0
- package/docs/PassportAuthUserRevokeOtherSessionsRequest.md +20 -0
- package/docs/PassportAuthUserRevokeOtherSessionsResponse.md +24 -0
- package/docs/PassportAuthUserRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthUserRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthUserRevokeSessionsRequest.md +20 -0
- package/docs/PassportAuthUserRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthUserSendVerificationEmailRequest.md +26 -0
- package/docs/PassportAuthUserSendVerificationEmailResponse.md +22 -0
- package/docs/PassportAuthUserServiceApi.md +1675 -0
- package/docs/PassportAuthUserSignInEmailRequest.md +28 -0
- package/docs/PassportAuthUserSignInEmailResponse.md +32 -0
- package/docs/PassportAuthUserSignInPhoneRequest.md +24 -0
- package/docs/PassportAuthUserSignInPhoneResponse.md +28 -0
- package/docs/PassportAuthUserSignInSocialRequest.md +32 -0
- package/docs/PassportAuthUserSignInSocialResponse.md +32 -0
- package/docs/PassportAuthUserSignOutRequest.md +22 -0
- package/docs/PassportAuthUserSignOutResponse.md +24 -0
- package/docs/PassportAuthUserSignUpEmailRequest.md +34 -0
- package/docs/PassportAuthUserSignUpEmailResponse.md +30 -0
- package/docs/PassportAuthUserUnlinkAccountRequest.md +24 -0
- package/docs/PassportAuthUserUnlinkAccountResponse.md +22 -0
- package/docs/PassportAuthUserUpdatePassportRequest.md +22 -0
- package/docs/PassportAuthUserUpdatePassportResponse.md +24 -0
- package/docs/PassportAuthUserUpdateUserRequest.md +24 -0
- package/docs/PassportAuthUserUpdateUserResponse.md +24 -0
- package/docs/PassportAuthUserVerifyEmailResponse.md +24 -0
- package/docs/PassportAuthUserVerifyPhoneResponse.md +24 -0
- package/docs/QRCodeAdminServiceApi.md +286 -0
- package/docs/QRCodeCreateRequest.md +37 -0
- package/docs/QRCodeCreateResponse.md +25 -0
- package/docs/QRCodeDeleteResponse.md +23 -0
- package/docs/QRCodeGetResponse.md +25 -0
- package/docs/QRCodeHistoryItem.md +29 -0
- package/docs/QRCodeInfo.md +59 -0
- package/docs/QRCodeListResponse.md +27 -0
- package/docs/QRCodeSnapshot.md +37 -0
- package/docs/QRCodeUpdateRequest.md +39 -0
- package/docs/QRCodeUpdateResponse.md +25 -0
- package/docs/QRCodeWithHistory.md +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
# PassportAuthAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**passportAuthAdminServicePassportAuthAdminChangePassword**](#passportauthadminservicepassportauthadminchangepassword) | **POST** /passport/admin/authed/change-password | |
|
|
8
|
+
|[**passportAuthAdminServicePassportAuthAdminGetSession**](#passportauthadminservicepassportauthadmingetsession) | **GET** /passport/admin/authed/get-session | |
|
|
9
|
+
|[**passportAuthAdminServicePassportAuthAdminListSessions**](#passportauthadminservicepassportauthadminlistsessions) | **GET** /passport/admin/authed/list-sessions | |
|
|
10
|
+
|[**passportAuthAdminServicePassportAuthAdminRevokeOtherSessions**](#passportauthadminservicepassportauthadminrevokeothersessions) | **POST** /passport/admin/authed/revoke-other-sessions | |
|
|
11
|
+
|[**passportAuthAdminServicePassportAuthAdminRevokeSession**](#passportauthadminservicepassportauthadminrevokesession) | **POST** /passport/admin/authed/revoke-session | |
|
|
12
|
+
|[**passportAuthAdminServicePassportAuthAdminRevokeSessions**](#passportauthadminservicepassportauthadminrevokesessions) | **POST** /passport/admin/authed/revoke-sessions | |
|
|
13
|
+
|[**passportAuthAdminServicePassportAuthAdminSignInEmail**](#passportauthadminservicepassportauthadminsigninemail) | **POST** /passport/admin/auth/sign-in/email | |
|
|
14
|
+
|[**passportAuthAdminServicePassportAuthAdminSignOut**](#passportauthadminservicepassportauthadminsignout) | **POST** /passport/admin/authed/sign-out | |
|
|
15
|
+
|[**passportAuthAdminServicePassportAuthAdminUpdateUser**](#passportauthadminservicepassportauthadminupdateuser) | **POST** /passport/admin/authed/update-user | |
|
|
16
|
+
|
|
17
|
+
# **passportAuthAdminServicePassportAuthAdminChangePassword**
|
|
18
|
+
> PassportAuthAdminChangePasswordResponse passportAuthAdminServicePassportAuthAdminChangePassword(passportAuthAdminChangePasswordRequest)
|
|
19
|
+
|
|
20
|
+
============ 密码管理 ============
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
PassportAuthAdminServiceApi,
|
|
27
|
+
Configuration,
|
|
28
|
+
PassportAuthAdminChangePasswordRequest
|
|
29
|
+
} from '@cherryin/api-client';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
33
|
+
|
|
34
|
+
let passportAuthAdminChangePasswordRequest: PassportAuthAdminChangePasswordRequest; //
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminChangePassword(
|
|
37
|
+
passportAuthAdminChangePasswordRequest
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **passportAuthAdminChangePasswordRequest** | **PassportAuthAdminChangePasswordRequest**| | |
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**PassportAuthAdminChangePasswordResponse**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
No authorization required
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: application/json
|
|
59
|
+
- **Accept**: application/json
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**200** | OK | - |
|
|
66
|
+
|**0** | Default error response | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
70
|
+
# **passportAuthAdminServicePassportAuthAdminGetSession**
|
|
71
|
+
> PassportAuthAdminGetSessionResponse passportAuthAdminServicePassportAuthAdminGetSession()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
PassportAuthAdminServiceApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@cherryin/api-client';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminGetSession();
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
This endpoint does not have any parameters.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**PassportAuthAdminGetSessionResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: Not defined
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | OK | - |
|
|
110
|
+
|**0** | Default error response | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
|
114
|
+
# **passportAuthAdminServicePassportAuthAdminListSessions**
|
|
115
|
+
> PassportAuthAdminListSessionsResponse passportAuthAdminServicePassportAuthAdminListSessions()
|
|
116
|
+
|
|
117
|
+
============ 会话管理 ============
|
|
118
|
+
|
|
119
|
+
### Example
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
import {
|
|
123
|
+
PassportAuthAdminServiceApi,
|
|
124
|
+
Configuration
|
|
125
|
+
} from '@cherryin/api-client';
|
|
126
|
+
|
|
127
|
+
const configuration = new Configuration();
|
|
128
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
129
|
+
|
|
130
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminListSessions();
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
This endpoint does not have any parameters.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
**PassportAuthAdminListSessionsResponse**
|
|
140
|
+
|
|
141
|
+
### Authorization
|
|
142
|
+
|
|
143
|
+
No authorization required
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: Not defined
|
|
148
|
+
- **Accept**: application/json
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### HTTP response details
|
|
152
|
+
| Status code | Description | Response headers |
|
|
153
|
+
|-------------|-------------|------------------|
|
|
154
|
+
|**200** | OK | - |
|
|
155
|
+
|**0** | Default error response | - |
|
|
156
|
+
|
|
157
|
+
[[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)
|
|
158
|
+
|
|
159
|
+
# **passportAuthAdminServicePassportAuthAdminRevokeOtherSessions**
|
|
160
|
+
> PassportAuthAdminRevokeOtherSessionsResponse passportAuthAdminServicePassportAuthAdminRevokeOtherSessions(body)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Example
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
import {
|
|
167
|
+
PassportAuthAdminServiceApi,
|
|
168
|
+
Configuration
|
|
169
|
+
} from '@cherryin/api-client';
|
|
170
|
+
|
|
171
|
+
const configuration = new Configuration();
|
|
172
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
173
|
+
|
|
174
|
+
let body: object; //
|
|
175
|
+
|
|
176
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminRevokeOtherSessions(
|
|
177
|
+
body
|
|
178
|
+
);
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Parameters
|
|
182
|
+
|
|
183
|
+
|Name | Type | Description | Notes|
|
|
184
|
+
|------------- | ------------- | ------------- | -------------|
|
|
185
|
+
| **body** | **object**| | |
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
**PassportAuthAdminRevokeOtherSessionsResponse**
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
No authorization required
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: application/json
|
|
199
|
+
- **Accept**: application/json
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### HTTP response details
|
|
203
|
+
| Status code | Description | Response headers |
|
|
204
|
+
|-------------|-------------|------------------|
|
|
205
|
+
|**200** | OK | - |
|
|
206
|
+
|**0** | Default error response | - |
|
|
207
|
+
|
|
208
|
+
[[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)
|
|
209
|
+
|
|
210
|
+
# **passportAuthAdminServicePassportAuthAdminRevokeSession**
|
|
211
|
+
> PassportAuthAdminRevokeSessionResponse passportAuthAdminServicePassportAuthAdminRevokeSession(passportAuthAdminRevokeSessionRequest)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Example
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
import {
|
|
218
|
+
PassportAuthAdminServiceApi,
|
|
219
|
+
Configuration,
|
|
220
|
+
PassportAuthAdminRevokeSessionRequest
|
|
221
|
+
} from '@cherryin/api-client';
|
|
222
|
+
|
|
223
|
+
const configuration = new Configuration();
|
|
224
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
225
|
+
|
|
226
|
+
let passportAuthAdminRevokeSessionRequest: PassportAuthAdminRevokeSessionRequest; //
|
|
227
|
+
|
|
228
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminRevokeSession(
|
|
229
|
+
passportAuthAdminRevokeSessionRequest
|
|
230
|
+
);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Parameters
|
|
234
|
+
|
|
235
|
+
|Name | Type | Description | Notes|
|
|
236
|
+
|------------- | ------------- | ------------- | -------------|
|
|
237
|
+
| **passportAuthAdminRevokeSessionRequest** | **PassportAuthAdminRevokeSessionRequest**| | |
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### Return type
|
|
241
|
+
|
|
242
|
+
**PassportAuthAdminRevokeSessionResponse**
|
|
243
|
+
|
|
244
|
+
### Authorization
|
|
245
|
+
|
|
246
|
+
No authorization required
|
|
247
|
+
|
|
248
|
+
### HTTP request headers
|
|
249
|
+
|
|
250
|
+
- **Content-Type**: application/json
|
|
251
|
+
- **Accept**: application/json
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### HTTP response details
|
|
255
|
+
| Status code | Description | Response headers |
|
|
256
|
+
|-------------|-------------|------------------|
|
|
257
|
+
|**200** | OK | - |
|
|
258
|
+
|**0** | Default error response | - |
|
|
259
|
+
|
|
260
|
+
[[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)
|
|
261
|
+
|
|
262
|
+
# **passportAuthAdminServicePassportAuthAdminRevokeSessions**
|
|
263
|
+
> PassportAuthAdminRevokeSessionsResponse passportAuthAdminServicePassportAuthAdminRevokeSessions(body)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Example
|
|
267
|
+
|
|
268
|
+
```typescript
|
|
269
|
+
import {
|
|
270
|
+
PassportAuthAdminServiceApi,
|
|
271
|
+
Configuration
|
|
272
|
+
} from '@cherryin/api-client';
|
|
273
|
+
|
|
274
|
+
const configuration = new Configuration();
|
|
275
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
276
|
+
|
|
277
|
+
let body: object; //
|
|
278
|
+
|
|
279
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminRevokeSessions(
|
|
280
|
+
body
|
|
281
|
+
);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|Name | Type | Description | Notes|
|
|
287
|
+
|------------- | ------------- | ------------- | -------------|
|
|
288
|
+
| **body** | **object**| | |
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
**PassportAuthAdminRevokeSessionsResponse**
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
No authorization required
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: application/json
|
|
302
|
+
- **Accept**: application/json
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
|**200** | OK | - |
|
|
309
|
+
|**0** | Default error response | - |
|
|
310
|
+
|
|
311
|
+
[[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)
|
|
312
|
+
|
|
313
|
+
# **passportAuthAdminServicePassportAuthAdminSignInEmail**
|
|
314
|
+
> PassportAuthAdminSignInEmailResponse passportAuthAdminServicePassportAuthAdminSignInEmail(passportAuthAdminSignInEmailRequest)
|
|
315
|
+
|
|
316
|
+
============ 认证 ============
|
|
317
|
+
|
|
318
|
+
### Example
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
import {
|
|
322
|
+
PassportAuthAdminServiceApi,
|
|
323
|
+
Configuration,
|
|
324
|
+
PassportAuthAdminSignInEmailRequest
|
|
325
|
+
} from '@cherryin/api-client';
|
|
326
|
+
|
|
327
|
+
const configuration = new Configuration();
|
|
328
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
329
|
+
|
|
330
|
+
let passportAuthAdminSignInEmailRequest: PassportAuthAdminSignInEmailRequest; //
|
|
331
|
+
|
|
332
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminSignInEmail(
|
|
333
|
+
passportAuthAdminSignInEmailRequest
|
|
334
|
+
);
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Parameters
|
|
338
|
+
|
|
339
|
+
|Name | Type | Description | Notes|
|
|
340
|
+
|------------- | ------------- | ------------- | -------------|
|
|
341
|
+
| **passportAuthAdminSignInEmailRequest** | **PassportAuthAdminSignInEmailRequest**| | |
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### Return type
|
|
345
|
+
|
|
346
|
+
**PassportAuthAdminSignInEmailResponse**
|
|
347
|
+
|
|
348
|
+
### Authorization
|
|
349
|
+
|
|
350
|
+
No authorization required
|
|
351
|
+
|
|
352
|
+
### HTTP request headers
|
|
353
|
+
|
|
354
|
+
- **Content-Type**: application/json
|
|
355
|
+
- **Accept**: application/json
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### HTTP response details
|
|
359
|
+
| Status code | Description | Response headers |
|
|
360
|
+
|-------------|-------------|------------------|
|
|
361
|
+
|**200** | OK | - |
|
|
362
|
+
|**0** | Default error response | - |
|
|
363
|
+
|
|
364
|
+
[[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)
|
|
365
|
+
|
|
366
|
+
# **passportAuthAdminServicePassportAuthAdminSignOut**
|
|
367
|
+
> PassportAuthAdminSignOutResponse passportAuthAdminServicePassportAuthAdminSignOut(body)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Example
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
import {
|
|
374
|
+
PassportAuthAdminServiceApi,
|
|
375
|
+
Configuration
|
|
376
|
+
} from '@cherryin/api-client';
|
|
377
|
+
|
|
378
|
+
const configuration = new Configuration();
|
|
379
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
380
|
+
|
|
381
|
+
let body: object; //
|
|
382
|
+
|
|
383
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminSignOut(
|
|
384
|
+
body
|
|
385
|
+
);
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Parameters
|
|
389
|
+
|
|
390
|
+
|Name | Type | Description | Notes|
|
|
391
|
+
|------------- | ------------- | ------------- | -------------|
|
|
392
|
+
| **body** | **object**| | |
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
### Return type
|
|
396
|
+
|
|
397
|
+
**PassportAuthAdminSignOutResponse**
|
|
398
|
+
|
|
399
|
+
### Authorization
|
|
400
|
+
|
|
401
|
+
No authorization required
|
|
402
|
+
|
|
403
|
+
### HTTP request headers
|
|
404
|
+
|
|
405
|
+
- **Content-Type**: application/json
|
|
406
|
+
- **Accept**: application/json
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### HTTP response details
|
|
410
|
+
| Status code | Description | Response headers |
|
|
411
|
+
|-------------|-------------|------------------|
|
|
412
|
+
|**200** | OK | - |
|
|
413
|
+
|**0** | Default error response | - |
|
|
414
|
+
|
|
415
|
+
[[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)
|
|
416
|
+
|
|
417
|
+
# **passportAuthAdminServicePassportAuthAdminUpdateUser**
|
|
418
|
+
> PassportAuthAdminUpdateUserResponse passportAuthAdminServicePassportAuthAdminUpdateUser(passportAuthAdminUpdateUserRequest)
|
|
419
|
+
|
|
420
|
+
============ 管理员信息管理 ============
|
|
421
|
+
|
|
422
|
+
### Example
|
|
423
|
+
|
|
424
|
+
```typescript
|
|
425
|
+
import {
|
|
426
|
+
PassportAuthAdminServiceApi,
|
|
427
|
+
Configuration,
|
|
428
|
+
PassportAuthAdminUpdateUserRequest
|
|
429
|
+
} from '@cherryin/api-client';
|
|
430
|
+
|
|
431
|
+
const configuration = new Configuration();
|
|
432
|
+
const apiInstance = new PassportAuthAdminServiceApi(configuration);
|
|
433
|
+
|
|
434
|
+
let passportAuthAdminUpdateUserRequest: PassportAuthAdminUpdateUserRequest; //
|
|
435
|
+
|
|
436
|
+
const { status, data } = await apiInstance.passportAuthAdminServicePassportAuthAdminUpdateUser(
|
|
437
|
+
passportAuthAdminUpdateUserRequest
|
|
438
|
+
);
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
### Parameters
|
|
442
|
+
|
|
443
|
+
|Name | Type | Description | Notes|
|
|
444
|
+
|------------- | ------------- | ------------- | -------------|
|
|
445
|
+
| **passportAuthAdminUpdateUserRequest** | **PassportAuthAdminUpdateUserRequest**| | |
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### Return type
|
|
449
|
+
|
|
450
|
+
**PassportAuthAdminUpdateUserResponse**
|
|
451
|
+
|
|
452
|
+
### Authorization
|
|
453
|
+
|
|
454
|
+
No authorization required
|
|
455
|
+
|
|
456
|
+
### HTTP request headers
|
|
457
|
+
|
|
458
|
+
- **Content-Type**: application/json
|
|
459
|
+
- **Accept**: application/json
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### HTTP response details
|
|
463
|
+
| Status code | Description | Response headers |
|
|
464
|
+
|-------------|-------------|------------------|
|
|
465
|
+
|**200** | OK | - |
|
|
466
|
+
|**0** | Default error response | - |
|
|
467
|
+
|
|
468
|
+
[[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)
|
|
469
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PassportAuthAdminSignInEmailRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**password** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**session_type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**remember_me** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportAuthAdminSignInEmailRequest } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportAuthAdminSignInEmailRequest = {
|
|
19
|
+
email,
|
|
20
|
+
password,
|
|
21
|
+
session_type,
|
|
22
|
+
remember_me,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PassportAuthAdminSignInEmailResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**user** | [**AuthAdminUser**](AuthAdminUser.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportAuthAdminSignInEmailResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportAuthAdminSignInEmailResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
token,
|
|
22
|
+
user,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PassportAuthAdminSignOutResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PassportAuthAdminSignOutResponse } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: PassportAuthAdminSignOutResponse = {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PassportAuthAdminUpdateUserRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**image** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PassportAuthAdminUpdateUserRequest } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: PassportAuthAdminUpdateUserRequest = {
|
|
17
|
+
name,
|
|
18
|
+
image,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PassportAuthAdminUpdateUserResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**user** | [**AuthAdminUser**](AuthAdminUser.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthAdminUpdateUserResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthAdminUpdateUserResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
user,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PassportAuthUserChangeEmailRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | NOTE: app_ids 是 \':\' 分隔的字符串列表 | [optional] [default to undefined]
|
|
9
|
+
**new_email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**callback_url** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthUserChangeEmailRequest } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUserChangeEmailRequest = {
|
|
18
|
+
app_ids,
|
|
19
|
+
new_email,
|
|
20
|
+
callback_url,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PassportAuthUserChangeEmailResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**users** | [**Array<AuthUser>**](AuthUser.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthUserChangeEmailResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUserChangeEmailResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
users,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PassportAuthUserChangePasswordRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | NOTE: app_ids 是 \':\' 分隔的字符串列表 | [optional] [default to undefined]
|
|
9
|
+
**new_password** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**current_password** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**revoke_other_sessions** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportAuthUserChangePasswordRequest } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportAuthUserChangePasswordRequest = {
|
|
19
|
+
app_ids,
|
|
20
|
+
new_password,
|
|
21
|
+
current_password,
|
|
22
|
+
revoke_other_sessions,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PassportAuthUserChangePasswordResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**users** | [**Array<AuthUser>**](AuthUser.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportAuthUserChangePasswordResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportAuthUserChangePasswordResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
token,
|
|
22
|
+
users,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|