@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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +86 -0
  2. package/README.md +130 -2
  3. package/api.ts +4491 -318
  4. package/dist/api.d.ts +2406 -68
  5. package/dist/api.js +2966 -2
  6. package/dist/esm/api.d.ts +2406 -68
  7. package/dist/esm/api.js +2952 -0
  8. package/docs/AuthAdminUser.md +33 -0
  9. package/docs/AuthIdToken.md +29 -0
  10. package/docs/AuthPassport.md +35 -0
  11. package/docs/AuthUser.md +39 -0
  12. package/docs/AuthUserMethod.md +39 -0
  13. package/docs/AuthUserSession.md +37 -0
  14. package/docs/PassportAuthAdminChangePasswordRequest.md +24 -0
  15. package/docs/PassportAuthAdminChangePasswordResponse.md +26 -0
  16. package/docs/PassportAuthAdminGetSessionResponse.md +26 -0
  17. package/docs/PassportAuthAdminListSessionsResponse.md +24 -0
  18. package/docs/PassportAuthAdminRevokeOtherSessionsResponse.md +22 -0
  19. package/docs/PassportAuthAdminRevokeSessionRequest.md +20 -0
  20. package/docs/PassportAuthAdminRevokeSessionResponse.md +22 -0
  21. package/docs/PassportAuthAdminRevokeSessionsResponse.md +22 -0
  22. package/docs/PassportAuthAdminServiceApi.md +469 -0
  23. package/docs/PassportAuthAdminSignInEmailRequest.md +26 -0
  24. package/docs/PassportAuthAdminSignInEmailResponse.md +26 -0
  25. package/docs/PassportAuthAdminSignOutResponse.md +22 -0
  26. package/docs/PassportAuthAdminUpdateUserRequest.md +22 -0
  27. package/docs/PassportAuthAdminUpdateUserResponse.md +24 -0
  28. package/docs/PassportAuthUserChangeEmailRequest.md +24 -0
  29. package/docs/PassportAuthUserChangeEmailResponse.md +24 -0
  30. package/docs/PassportAuthUserChangePasswordRequest.md +26 -0
  31. package/docs/PassportAuthUserChangePasswordResponse.md +26 -0
  32. package/docs/PassportAuthUserChangePhoneRequest.md +26 -0
  33. package/docs/PassportAuthUserChangePhoneResponse.md +24 -0
  34. package/docs/PassportAuthUserDeletePassportRequest.md +22 -0
  35. package/docs/PassportAuthUserDeletePassportResponse.md +24 -0
  36. package/docs/PassportAuthUserDeleteUserRequest.md +24 -0
  37. package/docs/PassportAuthUserDeleteUserResponse.md +24 -0
  38. package/docs/PassportAuthUserGetAccessTokenRequest.md +24 -0
  39. package/docs/PassportAuthUserGetAccessTokenResponse.md +34 -0
  40. package/docs/PassportAuthUserGetAccountInfoResponse.md +24 -0
  41. package/docs/PassportAuthUserGetPassportInfoResponse.md +26 -0
  42. package/docs/PassportAuthUserGetSessionResponse.md +24 -0
  43. package/docs/PassportAuthUserLinkSocialRequest.md +32 -0
  44. package/docs/PassportAuthUserLinkSocialResponse.md +26 -0
  45. package/docs/PassportAuthUserListAccountsResponse.md +24 -0
  46. package/docs/PassportAuthUserListMethodsResponse.md +24 -0
  47. package/docs/PassportAuthUserListSessionsResponse.md +24 -0
  48. package/docs/PassportAuthUserOAuthCallbackResponse.md +36 -0
  49. package/docs/PassportAuthUserRefreshTokenRequest.md +24 -0
  50. package/docs/PassportAuthUserRefreshTokenResponse.md +34 -0
  51. package/docs/PassportAuthUserRequestPasswordResetRequest.md +24 -0
  52. package/docs/PassportAuthUserRequestPasswordResetResponse.md +22 -0
  53. package/docs/PassportAuthUserResetPasswordRequest.md +24 -0
  54. package/docs/PassportAuthUserResetPasswordResponse.md +22 -0
  55. package/docs/PassportAuthUserRevokeOtherSessionsRequest.md +20 -0
  56. package/docs/PassportAuthUserRevokeOtherSessionsResponse.md +24 -0
  57. package/docs/PassportAuthUserRevokeSessionRequest.md +20 -0
  58. package/docs/PassportAuthUserRevokeSessionResponse.md +22 -0
  59. package/docs/PassportAuthUserRevokeSessionsRequest.md +20 -0
  60. package/docs/PassportAuthUserRevokeSessionsResponse.md +22 -0
  61. package/docs/PassportAuthUserSendVerificationEmailRequest.md +26 -0
  62. package/docs/PassportAuthUserSendVerificationEmailResponse.md +22 -0
  63. package/docs/PassportAuthUserServiceApi.md +1675 -0
  64. package/docs/PassportAuthUserSignInEmailRequest.md +28 -0
  65. package/docs/PassportAuthUserSignInEmailResponse.md +32 -0
  66. package/docs/PassportAuthUserSignInPhoneRequest.md +24 -0
  67. package/docs/PassportAuthUserSignInPhoneResponse.md +28 -0
  68. package/docs/PassportAuthUserSignInSocialRequest.md +32 -0
  69. package/docs/PassportAuthUserSignInSocialResponse.md +32 -0
  70. package/docs/PassportAuthUserSignOutRequest.md +22 -0
  71. package/docs/PassportAuthUserSignOutResponse.md +24 -0
  72. package/docs/PassportAuthUserSignUpEmailRequest.md +34 -0
  73. package/docs/PassportAuthUserSignUpEmailResponse.md +30 -0
  74. package/docs/PassportAuthUserUnlinkAccountRequest.md +24 -0
  75. package/docs/PassportAuthUserUnlinkAccountResponse.md +22 -0
  76. package/docs/PassportAuthUserUpdatePassportRequest.md +22 -0
  77. package/docs/PassportAuthUserUpdatePassportResponse.md +24 -0
  78. package/docs/PassportAuthUserUpdateUserRequest.md +24 -0
  79. package/docs/PassportAuthUserUpdateUserResponse.md +24 -0
  80. package/docs/PassportAuthUserVerifyEmailResponse.md +24 -0
  81. package/docs/PassportAuthUserVerifyPhoneResponse.md +24 -0
  82. package/docs/QRCodeAdminServiceApi.md +286 -0
  83. package/docs/QRCodeCreateRequest.md +37 -0
  84. package/docs/QRCodeCreateResponse.md +25 -0
  85. package/docs/QRCodeDeleteResponse.md +23 -0
  86. package/docs/QRCodeGetResponse.md +25 -0
  87. package/docs/QRCodeHistoryItem.md +29 -0
  88. package/docs/QRCodeInfo.md +59 -0
  89. package/docs/QRCodeListResponse.md +27 -0
  90. package/docs/QRCodeSnapshot.md +37 -0
  91. package/docs/QRCodeUpdateRequest.md +39 -0
  92. package/docs/QRCodeUpdateResponse.md +25 -0
  93. package/docs/QRCodeWithHistory.md +23 -0
  94. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ # AuthAdminUser
2
+
3
+ 管理员用户信息 (映射 db.User,包含角色信息)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **avatar_url** | **string** | | [optional] [default to undefined]
13
+ **role** | **number** | | [optional] [default to undefined]
14
+ **created_at** | **string** | | [optional] [default to undefined]
15
+ **updated_at** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { AuthAdminUser } from '@cherryin/api-client';
21
+
22
+ const instance: AuthAdminUser = {
23
+ id,
24
+ name,
25
+ email,
26
+ avatar_url,
27
+ role,
28
+ created_at,
29
+ updated_at,
30
+ };
31
+ ```
32
+
33
+ [[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,29 @@
1
+ # AuthIdToken
2
+
3
+ 社交登录 ID Token
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **token** | **string** | | [optional] [default to undefined]
10
+ **nonce** | **string** | | [optional] [default to undefined]
11
+ **access_token** | **string** | | [optional] [default to undefined]
12
+ **refresh_token** | **string** | | [optional] [default to undefined]
13
+ **expires_at** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { AuthIdToken } from '@cherryin/api-client';
19
+
20
+ const instance: AuthIdToken = {
21
+ token,
22
+ nonce,
23
+ access_token,
24
+ refresh_token,
25
+ expires_at,
26
+ };
27
+ ```
28
+
29
+ [[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,35 @@
1
+ # AuthPassport
2
+
3
+ 通行证信息 (映射 db.Passport)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **aid** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **phone_number_e164** | **string** | | [optional] [default to undefined]
13
+ **email_verified** | **boolean** | | [optional] [default to undefined]
14
+ **avatar_url** | **string** | | [optional] [default to undefined]
15
+ **created_at** | **string** | | [optional] [default to undefined]
16
+ **updated_at** | **string** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { AuthPassport } from '@cherryin/api-client';
22
+
23
+ const instance: AuthPassport = {
24
+ aid,
25
+ name,
26
+ email,
27
+ phone_number_e164,
28
+ email_verified,
29
+ avatar_url,
30
+ created_at,
31
+ updated_at,
32
+ };
33
+ ```
34
+
35
+ [[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,39 @@
1
+ # AuthUser
2
+
3
+ 用户信息
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **app_id** | **string** | | [optional] [default to undefined]
10
+ **aid** | **string** | | [optional] [default to undefined]
11
+ **uid** | **string** | | [optional] [default to undefined]
12
+ **name** | **string** | | [optional] [default to undefined]
13
+ **email** | **string** | | [optional] [default to undefined]
14
+ **email_verified** | **boolean** | | [optional] [default to undefined]
15
+ **phone_number_e164** | **string** | | [optional] [default to undefined]
16
+ **avatar_url** | **string** | | [optional] [default to undefined]
17
+ **created_at** | **string** | | [optional] [default to undefined]
18
+ **updated_at** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { AuthUser } from '@cherryin/api-client';
24
+
25
+ const instance: AuthUser = {
26
+ app_id,
27
+ aid,
28
+ uid,
29
+ name,
30
+ email,
31
+ email_verified,
32
+ phone_number_e164,
33
+ avatar_url,
34
+ created_at,
35
+ updated_at,
36
+ };
37
+ ```
38
+
39
+ [[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,39 @@
1
+ # AuthUserMethod
2
+
3
+ 关联账号信息 (映射 db.UserAuthMethod)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **app_id** | **string** | | [optional] [default to undefined]
10
+ **aid** | **string** | | [optional] [default to undefined]
11
+ **uid** | **string** | | [optional] [default to undefined]
12
+ **id** | **string** | | [optional] [default to undefined]
13
+ **account_id** | **string** | | [optional] [default to undefined]
14
+ **provider_id** | **string** | | [optional] [default to undefined]
15
+ **user_id** | **string** | | [optional] [default to undefined]
16
+ **created_at** | **string** | | [optional] [default to undefined]
17
+ **updated_at** | **string** | | [optional] [default to undefined]
18
+ **scopes** | **Array<string>** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { AuthUserMethod } from '@cherryin/api-client';
24
+
25
+ const instance: AuthUserMethod = {
26
+ app_id,
27
+ aid,
28
+ uid,
29
+ id,
30
+ account_id,
31
+ provider_id,
32
+ user_id,
33
+ created_at,
34
+ updated_at,
35
+ scopes,
36
+ };
37
+ ```
38
+
39
+ [[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,37 @@
1
+ # AuthUserSession
2
+
3
+ 会话信息 (映射 db.UserSession)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **app_id** | **string** | | [optional] [default to undefined]
10
+ **aid** | **string** | | [optional] [default to undefined]
11
+ **uid** | **string** | | [optional] [default to undefined]
12
+ **token** | **string** | | [optional] [default to undefined]
13
+ **expires_at** | **string** | | [optional] [default to undefined]
14
+ **created_at** | **string** | | [optional] [default to undefined]
15
+ **updated_at** | **string** | | [optional] [default to undefined]
16
+ **ip_address** | **string** | | [optional] [default to undefined]
17
+ **user_agent** | **string** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { AuthUserSession } from '@cherryin/api-client';
23
+
24
+ const instance: AuthUserSession = {
25
+ app_id,
26
+ aid,
27
+ uid,
28
+ token,
29
+ expires_at,
30
+ created_at,
31
+ updated_at,
32
+ ip_address,
33
+ user_agent,
34
+ };
35
+ ```
36
+
37
+ [[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
+ # PassportAuthAdminChangePasswordRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **new_password** | **string** | | [optional] [default to undefined]
9
+ **current_password** | **string** | | [optional] [default to undefined]
10
+ **revoke_other_sessions** | **boolean** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportAuthAdminChangePasswordRequest } from '@cherryin/api-client';
16
+
17
+ const instance: PassportAuthAdminChangePasswordRequest = {
18
+ new_password,
19
+ current_password,
20
+ revoke_other_sessions,
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
+ # PassportAuthAdminChangePasswordResponse
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 { PassportAuthAdminChangePasswordResponse } from '@cherryin/api-client';
17
+
18
+ const instance: PassportAuthAdminChangePasswordResponse = {
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,26 @@
1
+ # PassportAuthAdminGetSessionResponse
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** | [**Auth2AdminSession**](Auth2AdminSession.md) | | [optional] [default to undefined]
11
+ **user** | [**AuthAdminUser**](AuthAdminUser.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassportAuthAdminGetSessionResponse } from '@cherryin/api-client';
17
+
18
+ const instance: PassportAuthAdminGetSessionResponse = {
19
+ code,
20
+ message,
21
+ session,
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,24 @@
1
+ # PassportAuthAdminListSessionsResponse
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
+ **sessions** | [**Array<Auth2AdminSession>**](Auth2AdminSession.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportAuthAdminListSessionsResponse } from '@cherryin/api-client';
16
+
17
+ const instance: PassportAuthAdminListSessionsResponse = {
18
+ code,
19
+ message,
20
+ sessions,
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
+ # PassportAuthAdminRevokeOtherSessionsResponse
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 { PassportAuthAdminRevokeOtherSessionsResponse } from '@cherryin/api-client';
15
+
16
+ const instance: PassportAuthAdminRevokeOtherSessionsResponse = {
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,20 @@
1
+ # PassportAuthAdminRevokeSessionRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **token** | **string** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { PassportAuthAdminRevokeSessionRequest } from '@cherryin/api-client';
14
+
15
+ const instance: PassportAuthAdminRevokeSessionRequest = {
16
+ token,
17
+ };
18
+ ```
19
+
20
+ [[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
+ # PassportAuthAdminRevokeSessionResponse
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 { PassportAuthAdminRevokeSessionResponse } from '@cherryin/api-client';
15
+
16
+ const instance: PassportAuthAdminRevokeSessionResponse = {
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
+ # PassportAuthAdminRevokeSessionsResponse
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 { PassportAuthAdminRevokeSessionsResponse } from '@cherryin/api-client';
15
+
16
+ const instance: PassportAuthAdminRevokeSessionsResponse = {
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)