@cherryin/passport-api-client 0.1.0
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 +202 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +336 -0
- package/api.ts +8354 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +4798 -0
- package/dist/api.js +6070 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +4798 -0
- package/dist/esm/api.js +6043 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AdminEnterpriseMaterials.md +24 -0
- package/docs/AdminEnterpriseUser.md +24 -0
- package/docs/AdminEnterpriseUserMaterials.md +22 -0
- package/docs/AdminPassportItem.md +24 -0
- package/docs/AdminUserItem.md +26 -0
- package/docs/Any.md +20 -0
- package/docs/AuthAdminSession.md +38 -0
- package/docs/AuthAdminUser.md +32 -0
- package/docs/AuthEnterpriseMaterials.md +32 -0
- package/docs/AuthEnterpriseSession.md +36 -0
- package/docs/AuthEnterpriseUser.md +36 -0
- package/docs/AuthIdToken.md +28 -0
- package/docs/AuthPassport.md +34 -0
- package/docs/AuthUser.md +38 -0
- package/docs/AuthUserMethod.md +38 -0
- package/docs/AuthUserSession.md +40 -0
- package/docs/PassportAdminPasswordForgetRequest.md +22 -0
- package/docs/PassportAdminPasswordForgetResponse.md +22 -0
- package/docs/PassportAdminPasswordResetRequest.md +28 -0
- package/docs/PassportAdminPasswordResetResponse.md +26 -0
- package/docs/PassportAdminPasswordResetTokenVerifyRequest.md +20 -0
- package/docs/PassportAdminPasswordResetTokenVerifyResponse.md +26 -0
- package/docs/PassportAdminSendVerificationEmailRequest.md +26 -0
- package/docs/PassportAdminSendVerificationEmailResponse.md +22 -0
- package/docs/PassportAdminSignInEmailRequest.md +28 -0
- package/docs/PassportAdminSignInEmailResponse.md +26 -0
- package/docs/PassportAdminTokenAuthRequest.md +20 -0
- package/docs/PassportAdminTokenAuthResponse.md +28 -0
- package/docs/PassportAuthAdminChangePasswordRequest.md +24 -0
- package/docs/PassportAuthAdminChangePasswordResponse.md +26 -0
- package/docs/PassportAuthAdminEnterpriseMaterialListResponse.md +28 -0
- package/docs/PassportAuthAdminEnterpriseMaterialReviewRequest.md +22 -0
- package/docs/PassportAuthAdminEnterpriseMaterialReviewResponse.md +22 -0
- package/docs/PassportAuthAdminGetInfoResponse.md +24 -0
- package/docs/PassportAuthAdminGetSessionResponse.md +26 -0
- package/docs/PassportAuthAdminListSessionsResponse.md +24 -0
- package/docs/PassportAuthAdminPassportDisableRequest.md +22 -0
- package/docs/PassportAuthAdminPassportDisableResponse.md +22 -0
- package/docs/PassportAuthAdminPassportListRequest.md +28 -0
- package/docs/PassportAuthAdminPassportListResponse.md +28 -0
- package/docs/PassportAuthAdminPassportModifyInfoRequest.md +28 -0
- package/docs/PassportAuthAdminPassportModifyInfoResponse.md +24 -0
- package/docs/PassportAuthAdminRPCServiceApi.md +60 -0
- package/docs/PassportAuthAdminResetPasswordRequest.md +20 -0
- package/docs/PassportAuthAdminResetPasswordResponse.md +22 -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 +1267 -0
- package/docs/PassportAuthAdminSignOutResponse.md +22 -0
- package/docs/PassportAuthAdminUpdateInfoRequest.md +22 -0
- package/docs/PassportAuthAdminUpdateInfoResponse.md +24 -0
- package/docs/PassportAuthAdminUserDisableRequest.md +26 -0
- package/docs/PassportAuthAdminUserDisableResponse.md +22 -0
- package/docs/PassportAuthAdminUserListRequest.md +28 -0
- package/docs/PassportAuthAdminUserListResponse.md +28 -0
- package/docs/PassportAuthAdminUserModifyInfoRequest.md +32 -0
- package/docs/PassportAuthAdminUserModifyInfoResponse.md +24 -0
- package/docs/PassportAuthAdminUserModifyPermissionRequest.md +22 -0
- package/docs/PassportAuthAdminUserModifyPermissionResponse.md +24 -0
- package/docs/PassportAuthChangePasswordRequest.md +26 -0
- package/docs/PassportAuthChangePasswordResponse.md +26 -0
- package/docs/PassportAuthDeleteAllRequest.md +28 -0
- package/docs/PassportAuthDeleteAllResponse.md +22 -0
- package/docs/PassportAuthEnterpriseChangePasswordRequest.md +24 -0
- package/docs/PassportAuthEnterpriseChangePasswordResponse.md +26 -0
- package/docs/PassportAuthEnterpriseChangePhoneRequest.md +24 -0
- package/docs/PassportAuthEnterpriseChangePhoneResponse.md +22 -0
- package/docs/PassportAuthEnterpriseDeleteRequest.md +28 -0
- package/docs/PassportAuthEnterpriseDeleteResponse.md +22 -0
- package/docs/PassportAuthEnterpriseGetSessionResponse.md +24 -0
- package/docs/PassportAuthEnterpriseInfoGetResponse.md +24 -0
- package/docs/PassportAuthEnterpriseListSessionsResponse.md +24 -0
- package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +26 -0
- package/docs/PassportAuthEnterpriseMaterialUploadResponse.md +22 -0
- package/docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md +24 -0
- package/docs/PassportAuthEnterpriseRPCServiceApi.md +60 -0
- package/docs/PassportAuthEnterpriseRefreshTokenRequest.md +20 -0
- package/docs/PassportAuthEnterpriseRefreshTokenResponse.md +24 -0
- package/docs/PassportAuthEnterpriseResetPasswordRequest.md +22 -0
- package/docs/PassportAuthEnterpriseResetPasswordResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeOtherSessionsResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthEnterpriseRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthEnterpriseRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthEnterpriseServiceApi.md +1148 -0
- package/docs/PassportAuthEnterpriseSignOutRequest.md +20 -0
- package/docs/PassportAuthEnterpriseSignOutResponse.md +22 -0
- package/docs/PassportAuthEnterpriseUpdateInfoRequest.md +22 -0
- package/docs/PassportAuthEnterpriseUpdateInfoResponse.md +24 -0
- package/docs/PassportAuthEnterpriseVerifyEmailRequest.md +24 -0
- package/docs/PassportAuthEnterpriseVerifyEmailResponse.md +22 -0
- package/docs/PassportAuthEnterpriseVerifyPhoneResponse.md +22 -0
- package/docs/PassportAuthInfoGetResponse.md +26 -0
- package/docs/PassportAuthLinkSocialRequest.md +32 -0
- package/docs/PassportAuthLinkSocialResponse.md +26 -0
- package/docs/PassportAuthListMethodsResponse.md +24 -0
- package/docs/PassportAuthListSessionsResponse.md +24 -0
- package/docs/PassportAuthListSocialsResponse.md +24 -0
- package/docs/PassportAuthRefreshSessionTokenRequest.md +20 -0
- package/docs/PassportAuthRefreshSessionTokenResponse.md +24 -0
- package/docs/PassportAuthResetPasswordRequest.md +24 -0
- package/docs/PassportAuthResetPasswordResponse.md +22 -0
- package/docs/PassportAuthRevokeOtherSessionsRequest.md +20 -0
- package/docs/PassportAuthRevokeOtherSessionsResponse.md +24 -0
- package/docs/PassportAuthRevokeSessionRequest.md +20 -0
- package/docs/PassportAuthRevokeSessionResponse.md +22 -0
- package/docs/PassportAuthRevokeSessionsRequest.md +20 -0
- package/docs/PassportAuthRevokeSessionsResponse.md +22 -0
- package/docs/PassportAuthSendVerificationEmailRequest.md +26 -0
- package/docs/PassportAuthSendVerificationEmailResponse.md +22 -0
- package/docs/PassportAuthSendVerificationPhoneRequest.md +26 -0
- package/docs/PassportAuthSendVerificationPhoneResponse.md +22 -0
- package/docs/PassportAuthSocialGetAccessTokenRequest.md +24 -0
- package/docs/PassportAuthSocialGetAccessTokenResponse.md +34 -0
- package/docs/PassportAuthSocialRefreshTokenRequest.md +24 -0
- package/docs/PassportAuthSocialRefreshTokenResponse.md +34 -0
- package/docs/PassportAuthUnlinkSocialRequest.md +24 -0
- package/docs/PassportAuthUnlinkSocialResponse.md +22 -0
- package/docs/PassportAuthUserChangeEmailRequest.md +24 -0
- package/docs/PassportAuthUserChangeEmailResponse.md +24 -0
- package/docs/PassportAuthUserChangePhoneRequest.md +26 -0
- package/docs/PassportAuthUserChangePhoneResponse.md +24 -0
- package/docs/PassportAuthUserDeleteRequest.md +30 -0
- package/docs/PassportAuthUserDeleteResponse.md +22 -0
- package/docs/PassportAuthUserGetSessionResponse.md +24 -0
- package/docs/PassportAuthUserInfoGetResponse.md +24 -0
- package/docs/PassportAuthUserRPCServiceApi.md +219 -0
- package/docs/PassportAuthUserServiceApi.md +1963 -0
- package/docs/PassportAuthUserSignOutRequest.md +22 -0
- package/docs/PassportAuthUserSignOutResponse.md +22 -0
- package/docs/PassportAuthUserUpdateInfoRequest.md +28 -0
- package/docs/PassportAuthUserUpdateInfoResponse.md +24 -0
- package/docs/PassportAuthUserUpdatePassportRequest.md +22 -0
- package/docs/PassportAuthUserUpdatePassportResponse.md +24 -0
- package/docs/PassportAuthUserVerifyEmailRequest.md +26 -0
- package/docs/PassportAuthUserVerifyEmailResponse.md +22 -0
- package/docs/PassportAuthUserVerifyPhoneRequest.md +24 -0
- package/docs/PassportAuthUserVerifyPhoneResponse.md +22 -0
- package/docs/PassportEnterprisePasswordResetRequest.md +24 -0
- package/docs/PassportEnterprisePasswordResetResponse.md +26 -0
- package/docs/PassportEnterpriseSendVerificationEmailRequest.md +24 -0
- package/docs/PassportEnterpriseSendVerificationEmailResponse.md +22 -0
- package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +24 -0
- package/docs/PassportEnterpriseSendVerificationPhoneResponse.md +22 -0
- package/docs/PassportEnterpriseSignInEmailRequest.md +30 -0
- package/docs/PassportEnterpriseSignInEmailResponse.md +30 -0
- package/docs/PassportEnterpriseSignInPhoneRequest.md +24 -0
- package/docs/PassportEnterpriseSignInPhoneResponse.md +26 -0
- package/docs/PassportEnterpriseSignUpEmailRequest.md +34 -0
- package/docs/PassportEnterpriseSignUpEmailResponse.md +30 -0
- package/docs/PassportEnterpriseTokenAuthRequest.md +20 -0
- package/docs/PassportEnterpriseTokenAuthResponse.md +28 -0
- package/docs/PassportSendVerificationEmailRequest.md +26 -0
- package/docs/PassportSendVerificationEmailResponse.md +22 -0
- package/docs/PassportSendVerificationPhoneRequest.md +26 -0
- package/docs/PassportSendVerificationPhoneResponse.md +22 -0
- package/docs/PassportUserInfoBatchGetRequest.md +24 -0
- package/docs/PassportUserInfoBatchGetResponse.md +24 -0
- package/docs/PassportUserInfoGetRequest.md +24 -0
- package/docs/PassportUserInfoGetResponse.md +24 -0
- package/docs/PassportUserOAuthCallbackResponse.md +36 -0
- package/docs/PassportUserPasswordForgetRequest.md +24 -0
- package/docs/PassportUserPasswordForgetResponse.md +22 -0
- package/docs/PassportUserPasswordResetRequest.md +30 -0
- package/docs/PassportUserPasswordResetResponse.md +26 -0
- package/docs/PassportUserPasswordResetTokenVerifyRequest.md +22 -0
- package/docs/PassportUserPasswordResetTokenVerifyResponse.md +26 -0
- package/docs/PassportUserSignInEmailRequest.md +32 -0
- package/docs/PassportUserSignInEmailResponse.md +32 -0
- package/docs/PassportUserSignInPhoneRequest.md +26 -0
- package/docs/PassportUserSignInPhoneResponse.md +28 -0
- package/docs/PassportUserSignInSocialRequest.md +32 -0
- package/docs/PassportUserSignInSocialResponse.md +32 -0
- package/docs/PassportUserSignUpEmailRequest.md +36 -0
- package/docs/PassportUserSignUpEmailResponse.md +32 -0
- package/docs/PassportUserTokenAuthRequest.md +20 -0
- package/docs/PassportUserTokenAuthResponse.md +28 -0
- package/docs/PassportUserUpdateInfoRequest.md +30 -0
- package/docs/PassportUserUpdateInfoResponse.md +22 -0
- package/docs/Status.md +24 -0
- package/docs/UserBasic.md +42 -0
- package/docs/UserExtendInfo.md +20 -0
- package/docs/UserInfo.md +28 -0
- package/docs/UserInfoQueryOptions.md +28 -0
- package/docs/UserPaymentInfo.md +20 -0
- package/docs/UserPreferences.md +22 -0
- package/docs/UserSettings.md +20 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +36 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PassportAuthSocialGetAccessTokenRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**provider_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**account_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**user_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthSocialGetAccessTokenRequest } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthSocialGetAccessTokenRequest = {
|
|
18
|
+
provider_id,
|
|
19
|
+
account_id,
|
|
20
|
+
user_id,
|
|
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,34 @@
|
|
|
1
|
+
# PassportAuthSocialGetAccessTokenResponse
|
|
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_type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**id_token** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**access_token** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**refresh_token** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**access_token_expires_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**refresh_token_expires_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PassportAuthSocialGetAccessTokenResponse } from '@cherryin/passport-api-client';
|
|
21
|
+
|
|
22
|
+
const instance: PassportAuthSocialGetAccessTokenResponse = {
|
|
23
|
+
code,
|
|
24
|
+
message,
|
|
25
|
+
token_type,
|
|
26
|
+
id_token,
|
|
27
|
+
access_token,
|
|
28
|
+
refresh_token,
|
|
29
|
+
access_token_expires_at,
|
|
30
|
+
refresh_token_expires_at,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# PassportAuthSocialRefreshTokenRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**provider_id** | **string** | required: oauth2_google, oauth2_github... | [optional] [default to undefined]
|
|
9
|
+
**account_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**user_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthSocialRefreshTokenRequest } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthSocialRefreshTokenRequest = {
|
|
18
|
+
provider_id,
|
|
19
|
+
account_id,
|
|
20
|
+
user_id,
|
|
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,34 @@
|
|
|
1
|
+
# PassportAuthSocialRefreshTokenResponse
|
|
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_type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**id_token** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**access_token** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**refresh_token** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**access_token_expires_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**refresh_token_expires_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PassportAuthSocialRefreshTokenResponse } from '@cherryin/passport-api-client';
|
|
21
|
+
|
|
22
|
+
const instance: PassportAuthSocialRefreshTokenResponse = {
|
|
23
|
+
code,
|
|
24
|
+
message,
|
|
25
|
+
token_type,
|
|
26
|
+
id_token,
|
|
27
|
+
access_token,
|
|
28
|
+
refresh_token,
|
|
29
|
+
access_token_expires_at,
|
|
30
|
+
refresh_token_expires_at,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# PassportAuthUnlinkSocialRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**provider_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**account_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthUnlinkSocialRequest } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUnlinkSocialRequest = {
|
|
18
|
+
app_ids,
|
|
19
|
+
provider_id,
|
|
20
|
+
account_id,
|
|
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,22 @@
|
|
|
1
|
+
# PassportAuthUnlinkSocialResponse
|
|
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 { PassportAuthUnlinkSocialResponse } from '@cherryin/passport-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: PassportAuthUnlinkSocialResponse = {
|
|
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,24 @@
|
|
|
1
|
+
# PassportAuthUserChangeEmailRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | | [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/passport-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/passport-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
|
+
# PassportAuthUserChangePhoneRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**new_phone** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**verify_code** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**callback_url** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportAuthUserChangePhoneRequest } from '@cherryin/passport-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportAuthUserChangePhoneRequest = {
|
|
19
|
+
app_ids,
|
|
20
|
+
new_phone,
|
|
21
|
+
verify_code,
|
|
22
|
+
callback_url,
|
|
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,24 @@
|
|
|
1
|
+
# PassportAuthUserChangePhoneResponse
|
|
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 { PassportAuthUserChangePhoneResponse } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUserChangePhoneResponse = {
|
|
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,30 @@
|
|
|
1
|
+
# PassportAuthUserDeleteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**app_ids** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**callback_url** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**password** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PassportAuthUserDeleteRequest } from '@cherryin/passport-api-client';
|
|
19
|
+
|
|
20
|
+
const instance: PassportAuthUserDeleteRequest = {
|
|
21
|
+
app_ids,
|
|
22
|
+
callback_url,
|
|
23
|
+
email,
|
|
24
|
+
password,
|
|
25
|
+
phone,
|
|
26
|
+
code,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
+
# PassportAuthUserDeleteResponse
|
|
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 { PassportAuthUserDeleteResponse } from '@cherryin/passport-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: PassportAuthUserDeleteResponse = {
|
|
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,24 @@
|
|
|
1
|
+
# PassportAuthUserGetSessionResponse
|
|
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
|
+
**session** | [**AuthUserSession**](AuthUserSession.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PassportAuthUserGetSessionResponse } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUserGetSessionResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
session,
|
|
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
|
+
# PassportAuthUserInfoGetResponse
|
|
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 { PassportAuthUserInfoGetResponse } from '@cherryin/passport-api-client';
|
|
16
|
+
|
|
17
|
+
const instance: PassportAuthUserInfoGetResponse = {
|
|
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,219 @@
|
|
|
1
|
+
# PassportAuthUserRPCServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**passportAuthUserRPCServicePassportUserInfoBatchGet**](#passportauthuserrpcservicepassportuserinfobatchget) | **POST** /passport/authed/v1/users/batch_get | 批量获取用户信息|
|
|
8
|
+
|[**passportAuthUserRPCServicePassportUserInfoGet**](#passportauthuserrpcservicepassportuserinfoget) | **POST** /passport/authed/v1/user/get | 获取用户信息|
|
|
9
|
+
|[**passportAuthUserRPCServicePassportUserTokenAuth**](#passportauthuserrpcservicepassportusertokenauth) | **POST** /passport/authed/v1/passports | Token 鉴权 - User|
|
|
10
|
+
|[**passportAuthUserRPCServicePassportUserUpdateInfo**](#passportauthuserrpcservicepassportuserupdateinfo) | **POST** /passport/authed/v1/user/update | 更新用户信息|
|
|
11
|
+
|
|
12
|
+
# **passportAuthUserRPCServicePassportUserInfoBatchGet**
|
|
13
|
+
> PassportUserInfoBatchGetResponse passportAuthUserRPCServicePassportUserInfoBatchGet(body)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
PassportAuthUserRPCServiceApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
PassportUserInfoBatchGetRequest
|
|
23
|
+
} from '@cherryin/passport-api-client';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
|
|
27
|
+
|
|
28
|
+
let body: PassportUserInfoBatchGetRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserInfoBatchGet(
|
|
31
|
+
body
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **body** | **PassportUserInfoBatchGetRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**PassportUserInfoBatchGetResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | A successful response. | - |
|
|
60
|
+
|**0** | An unexpected error response. | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **passportAuthUserRPCServicePassportUserInfoGet**
|
|
65
|
+
> PassportUserInfoGetResponse passportAuthUserRPCServicePassportUserInfoGet(body)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
PassportAuthUserRPCServiceApi,
|
|
73
|
+
Configuration,
|
|
74
|
+
PassportUserInfoGetRequest
|
|
75
|
+
} from '@cherryin/passport-api-client';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
|
|
79
|
+
|
|
80
|
+
let body: PassportUserInfoGetRequest; //
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserInfoGet(
|
|
83
|
+
body
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **body** | **PassportUserInfoGetRequest**| | |
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
**PassportUserInfoGetResponse**
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
No authorization required
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: application/json
|
|
105
|
+
- **Accept**: application/json
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | A successful response. | - |
|
|
112
|
+
|**0** | An unexpected error response. | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
116
|
+
# **passportAuthUserRPCServicePassportUserTokenAuth**
|
|
117
|
+
> PassportUserTokenAuthResponse passportAuthUserRPCServicePassportUserTokenAuth(body)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
PassportAuthUserRPCServiceApi,
|
|
125
|
+
Configuration,
|
|
126
|
+
PassportUserTokenAuthRequest
|
|
127
|
+
} from '@cherryin/passport-api-client';
|
|
128
|
+
|
|
129
|
+
const configuration = new Configuration();
|
|
130
|
+
const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
|
|
131
|
+
|
|
132
|
+
let body: PassportUserTokenAuthRequest; //
|
|
133
|
+
|
|
134
|
+
const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserTokenAuth(
|
|
135
|
+
body
|
|
136
|
+
);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
|Name | Type | Description | Notes|
|
|
142
|
+
|------------- | ------------- | ------------- | -------------|
|
|
143
|
+
| **body** | **PassportUserTokenAuthRequest**| | |
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**PassportUserTokenAuthResponse**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
No authorization required
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: application/json
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### HTTP response details
|
|
161
|
+
| Status code | Description | Response headers |
|
|
162
|
+
|-------------|-------------|------------------|
|
|
163
|
+
|**200** | A successful response. | - |
|
|
164
|
+
|**0** | An unexpected error response. | - |
|
|
165
|
+
|
|
166
|
+
[[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)
|
|
167
|
+
|
|
168
|
+
# **passportAuthUserRPCServicePassportUserUpdateInfo**
|
|
169
|
+
> PassportUserUpdateInfoResponse passportAuthUserRPCServicePassportUserUpdateInfo(body)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Example
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import {
|
|
176
|
+
PassportAuthUserRPCServiceApi,
|
|
177
|
+
Configuration,
|
|
178
|
+
PassportUserUpdateInfoRequest
|
|
179
|
+
} from '@cherryin/passport-api-client';
|
|
180
|
+
|
|
181
|
+
const configuration = new Configuration();
|
|
182
|
+
const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
|
|
183
|
+
|
|
184
|
+
let body: PassportUserUpdateInfoRequest; //
|
|
185
|
+
|
|
186
|
+
const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserUpdateInfo(
|
|
187
|
+
body
|
|
188
|
+
);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Parameters
|
|
192
|
+
|
|
193
|
+
|Name | Type | Description | Notes|
|
|
194
|
+
|------------- | ------------- | ------------- | -------------|
|
|
195
|
+
| **body** | **PassportUserUpdateInfoRequest**| | |
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Return type
|
|
199
|
+
|
|
200
|
+
**PassportUserUpdateInfoResponse**
|
|
201
|
+
|
|
202
|
+
### Authorization
|
|
203
|
+
|
|
204
|
+
No authorization required
|
|
205
|
+
|
|
206
|
+
### HTTP request headers
|
|
207
|
+
|
|
208
|
+
- **Content-Type**: application/json
|
|
209
|
+
- **Accept**: application/json
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### HTTP response details
|
|
213
|
+
| Status code | Description | Response headers |
|
|
214
|
+
|-------------|-------------|------------------|
|
|
215
|
+
|**200** | A successful response. | - |
|
|
216
|
+
|**0** | An unexpected error response. | - |
|
|
217
|
+
|
|
218
|
+
[[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)
|
|
219
|
+
|