@cherryin/api-client 0.0.16 → 0.0.18

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 (72) hide show
  1. package/.openapi-generator/FILES +4 -60
  2. package/README.md +8 -93
  3. package/api.ts +325 -3001
  4. package/dist/api.d.ts +348 -1804
  5. package/dist/api.js +130 -2094
  6. package/dist/esm/api.d.ts +348 -1804
  7. package/dist/esm/api.js +128 -2084
  8. package/docs/PassportAuthUserServiceApi.md +109 -1
  9. package/docs/PassportUserPasswordForgetRequest.md +24 -0
  10. package/docs/{AuthSignOutResponse.md → PassportUserPasswordForgetResponse.md} +3 -5
  11. package/docs/PassportUserPasswordResetRequest.md +2 -0
  12. package/docs/PassportUserPasswordResetTokenVerifyRequest.md +22 -0
  13. package/docs/{AuthAdminSignOutResponse.md → PassportUserPasswordResetTokenVerifyResponse.md} +7 -5
  14. package/package.json +1 -1
  15. package/docs/Auth2Account.md +0 -33
  16. package/docs/Auth2Admin.md +0 -33
  17. package/docs/Auth2AdminServiceApi.md +0 -469
  18. package/docs/Auth2AdminSession.md +0 -35
  19. package/docs/Auth2IdToken.md +0 -29
  20. package/docs/Auth2Session.md +0 -35
  21. package/docs/Auth2User.md +0 -33
  22. package/docs/Auth2UserServiceApi.md +0 -1261
  23. package/docs/AuthAdminChangePasswordRequest.md +0 -24
  24. package/docs/AuthAdminChangePasswordResponse.md +0 -26
  25. package/docs/AuthAdminGetSessionResponse.md +0 -26
  26. package/docs/AuthAdminListSessionsResponse.md +0 -24
  27. package/docs/AuthAdminRevokeOtherSessionsResponse.md +0 -24
  28. package/docs/AuthAdminRevokeSessionRequest.md +0 -20
  29. package/docs/AuthAdminRevokeSessionResponse.md +0 -24
  30. package/docs/AuthAdminRevokeSessionsResponse.md +0 -24
  31. package/docs/AuthAdminSignInEmailRequest.md +0 -26
  32. package/docs/AuthAdminSignInEmailResponse.md +0 -26
  33. package/docs/AuthAdminUpdateUserRequest.md +0 -22
  34. package/docs/AuthAdminUpdateUserResponse.md +0 -24
  35. package/docs/AuthChangeEmailRequest.md +0 -22
  36. package/docs/AuthChangeEmailResponse.md +0 -26
  37. package/docs/AuthChangePasswordRequest.md +0 -24
  38. package/docs/AuthChangePasswordResponse.md +0 -26
  39. package/docs/AuthDeleteUserRequest.md +0 -24
  40. package/docs/AuthDeleteUserResponse.md +0 -24
  41. package/docs/AuthGetAccessTokenRequest.md +0 -24
  42. package/docs/AuthGetAccessTokenResponse.md +0 -34
  43. package/docs/AuthGetAccountInfoResponse.md +0 -24
  44. package/docs/AuthGetSessionResponse.md +0 -26
  45. package/docs/AuthLinkSocialRequest.md +0 -30
  46. package/docs/AuthLinkSocialResponse.md +0 -28
  47. package/docs/AuthListAccountsResponse.md +0 -24
  48. package/docs/AuthListSessionsResponse.md +0 -24
  49. package/docs/AuthOAuth2CallbackResponse.md +0 -32
  50. package/docs/AuthRefreshTokenRequest.md +0 -24
  51. package/docs/AuthRefreshTokenResponse.md +0 -34
  52. package/docs/AuthRequestPasswordResetRequest.md +0 -22
  53. package/docs/AuthRequestPasswordResetResponse.md +0 -24
  54. package/docs/AuthResetPasswordRequest.md +0 -22
  55. package/docs/AuthResetPasswordResponse.md +0 -24
  56. package/docs/AuthRevokeOtherSessionsResponse.md +0 -24
  57. package/docs/AuthRevokeSessionRequest.md +0 -20
  58. package/docs/AuthRevokeSessionResponse.md +0 -24
  59. package/docs/AuthRevokeSessionsResponse.md +0 -24
  60. package/docs/AuthSendVerificationEmailRequest.md +0 -22
  61. package/docs/AuthSendVerificationEmailResponse.md +0 -24
  62. package/docs/AuthSignInEmailRequest.md +0 -26
  63. package/docs/AuthSignInEmailResponse.md +0 -30
  64. package/docs/AuthSignInSocialRequest.md +0 -30
  65. package/docs/AuthSignInSocialResponse.md +0 -30
  66. package/docs/AuthSignUpEmailRequest.md +0 -32
  67. package/docs/AuthSignUpEmailResponse.md +0 -28
  68. package/docs/AuthUnlinkAccountRequest.md +0 -22
  69. package/docs/AuthUnlinkAccountResponse.md +0 -24
  70. package/docs/AuthUpdateUserRequest.md +0 -22
  71. package/docs/AuthUpdateUserResponse.md +0 -24
  72. package/docs/AuthVerifyEmailResponse.md +0 -24
@@ -34,7 +34,9 @@ All URIs are relative to *http://localhost*
34
34
  |[**passportAuthUserServicePassportSendVerificationEmail**](#passportauthuserservicepassportsendverificationemail) | **POST** /passport/auth/v1/verification/send-email | |
35
35
  |[**passportAuthUserServicePassportSendVerificationPhone**](#passportauthuserservicepassportsendverificationphone) | **POST** /passport/auth/v1/verification/send-phone | |
36
36
  |[**passportAuthUserServicePassportUserOAuthCallback**](#passportauthuserservicepassportuseroauthcallback) | **GET** /passport/oauth2/{platform}/callback | |
37
+ |[**passportAuthUserServicePassportUserPasswordForget**](#passportauthuserservicepassportuserpasswordforget) | **POST** /passport/auth/v1/password/forget | |
37
38
  |[**passportAuthUserServicePassportUserPasswordReset**](#passportauthuserservicepassportuserpasswordreset) | **POST** /passport/auth/v1/password/reset | |
39
+ |[**passportAuthUserServicePassportUserPasswordResetTokenVerify**](#passportauthuserservicepassportuserpasswordresettokenverify) | **POST** /passport/auth/v1/password/reset-token | |
38
40
  |[**passportAuthUserServicePassportUserSignInEmail**](#passportauthuserservicepassportusersigninemail) | **POST** /passport/auth/v1/sign-in/email | |
39
41
  |[**passportAuthUserServicePassportUserSignInPhone**](#passportauthuserservicepassportusersigninphone) | **POST** /passport/auth/v1/sign-in/phone | |
40
42
  |[**passportAuthUserServicePassportUserSignInSocial**](#passportauthuserservicepassportusersigninsocial) | **POST** /passport/auth/v1/sign-in/social | |
@@ -1617,6 +1619,59 @@ No authorization required
1617
1619
  - **Accept**: application/json
1618
1620
 
1619
1621
 
1622
+ ### HTTP response details
1623
+ | Status code | Description | Response headers |
1624
+ |-------------|-------------|------------------|
1625
+ |**200** | OK | - |
1626
+ |**0** | Default error response | - |
1627
+
1628
+ [[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)
1629
+
1630
+ # **passportAuthUserServicePassportUserPasswordForget**
1631
+ > PassportUserPasswordForgetResponse passportAuthUserServicePassportUserPasswordForget(passportUserPasswordForgetRequest)
1632
+
1633
+ 未登录 - 用户遗忘密码请求重置
1634
+
1635
+ ### Example
1636
+
1637
+ ```typescript
1638
+ import {
1639
+ PassportAuthUserServiceApi,
1640
+ Configuration,
1641
+ PassportUserPasswordForgetRequest
1642
+ } from '@cherryin/api-client';
1643
+
1644
+ const configuration = new Configuration();
1645
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1646
+
1647
+ let passportUserPasswordForgetRequest: PassportUserPasswordForgetRequest; //
1648
+
1649
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserPasswordForget(
1650
+ passportUserPasswordForgetRequest
1651
+ );
1652
+ ```
1653
+
1654
+ ### Parameters
1655
+
1656
+ |Name | Type | Description | Notes|
1657
+ |------------- | ------------- | ------------- | -------------|
1658
+ | **passportUserPasswordForgetRequest** | **PassportUserPasswordForgetRequest**| | |
1659
+
1660
+
1661
+ ### Return type
1662
+
1663
+ **PassportUserPasswordForgetResponse**
1664
+
1665
+ ### Authorization
1666
+
1667
+ No authorization required
1668
+
1669
+ ### HTTP request headers
1670
+
1671
+ - **Content-Type**: application/json
1672
+ - **Accept**: application/json
1673
+
1674
+
1620
1675
  ### HTTP response details
1621
1676
  | Status code | Description | Response headers |
1622
1677
  |-------------|-------------|------------------|
@@ -1628,7 +1683,7 @@ No authorization required
1628
1683
  # **passportAuthUserServicePassportUserPasswordReset**
1629
1684
  > PassportUserPasswordResetResponse passportAuthUserServicePassportUserPasswordReset(passportUserPasswordResetRequest)
1630
1685
 
1631
- 请求重置密码
1686
+ 未登录 - 用户重置密码
1632
1687
 
1633
1688
  ### Example
1634
1689
 
@@ -1670,6 +1725,59 @@ No authorization required
1670
1725
  - **Accept**: application/json
1671
1726
 
1672
1727
 
1728
+ ### HTTP response details
1729
+ | Status code | Description | Response headers |
1730
+ |-------------|-------------|------------------|
1731
+ |**200** | OK | - |
1732
+ |**0** | Default error response | - |
1733
+
1734
+ [[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)
1735
+
1736
+ # **passportAuthUserServicePassportUserPasswordResetTokenVerify**
1737
+ > PassportUserPasswordResetTokenVerifyResponse passportAuthUserServicePassportUserPasswordResetTokenVerify(passportUserPasswordResetTokenVerifyRequest)
1738
+
1739
+ 未登录 - 验证重置密码请求 token
1740
+
1741
+ ### Example
1742
+
1743
+ ```typescript
1744
+ import {
1745
+ PassportAuthUserServiceApi,
1746
+ Configuration,
1747
+ PassportUserPasswordResetTokenVerifyRequest
1748
+ } from '@cherryin/api-client';
1749
+
1750
+ const configuration = new Configuration();
1751
+ const apiInstance = new PassportAuthUserServiceApi(configuration);
1752
+
1753
+ let passportUserPasswordResetTokenVerifyRequest: PassportUserPasswordResetTokenVerifyRequest; //
1754
+
1755
+ const { status, data } = await apiInstance.passportAuthUserServicePassportUserPasswordResetTokenVerify(
1756
+ passportUserPasswordResetTokenVerifyRequest
1757
+ );
1758
+ ```
1759
+
1760
+ ### Parameters
1761
+
1762
+ |Name | Type | Description | Notes|
1763
+ |------------- | ------------- | ------------- | -------------|
1764
+ | **passportUserPasswordResetTokenVerifyRequest** | **PassportUserPasswordResetTokenVerifyRequest**| | |
1765
+
1766
+
1767
+ ### Return type
1768
+
1769
+ **PassportUserPasswordResetTokenVerifyResponse**
1770
+
1771
+ ### Authorization
1772
+
1773
+ No authorization required
1774
+
1775
+ ### HTTP request headers
1776
+
1777
+ - **Content-Type**: application/json
1778
+ - **Accept**: application/json
1779
+
1780
+
1673
1781
  ### HTTP response details
1674
1782
  | Status code | Description | Response headers |
1675
1783
  |-------------|-------------|------------------|
@@ -0,0 +1,24 @@
1
+ # PassportUserPasswordForgetRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **app_ids** | **string** | NOTE: app_ids 是 \':\' 分隔的字符串列表 | [optional] [default to undefined]
9
+ **email** | **string** | | [optional] [default to undefined]
10
+ **callback_url** | **string** | 注意是前端回调地址,用于用户邮箱点击跳转前端重置密码页 | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PassportUserPasswordForgetRequest } from '@cherryin/api-client';
16
+
17
+ const instance: PassportUserPasswordForgetRequest = {
18
+ app_ids,
19
+ 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)
@@ -1,4 +1,4 @@
1
- # AuthSignOutResponse
1
+ # PassportUserPasswordForgetResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -7,17 +7,15 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **code** | **string** | | [optional] [default to undefined]
9
9
  **message** | **string** | | [optional] [default to undefined]
10
- **success** | **boolean** | | [optional] [default to undefined]
11
10
 
12
11
  ## Example
13
12
 
14
13
  ```typescript
15
- import { AuthSignOutResponse } from '@cherryin/api-client';
14
+ import { PassportUserPasswordForgetResponse } from '@cherryin/api-client';
16
15
 
17
- const instance: AuthSignOutResponse = {
16
+ const instance: PassportUserPasswordForgetResponse = {
18
17
  code,
19
18
  message,
20
- success,
21
19
  };
22
20
  ```
23
21
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **app_ids** | **string** | NOTE: app_ids 是 \':\' 分隔的字符串列表 | [optional] [default to undefined]
9
9
  **email** | **string** | | [optional] [default to undefined]
10
10
  **verify_code** | **string** | | [optional] [default to undefined]
11
+ **new_password** | **string** | | [optional] [default to undefined]
11
12
  **redirect** | **boolean** | 是否禁用服务端重定向, 携带 callback_url 时有效 | [optional] [default to undefined]
12
13
  **callback_url** | **string** | | [optional] [default to undefined]
13
14
 
@@ -20,6 +21,7 @@ const instance: PassportUserPasswordResetRequest = {
20
21
  app_ids,
21
22
  email,
22
23
  verify_code,
24
+ new_password,
23
25
  redirect,
24
26
  callback_url,
25
27
  };
@@ -0,0 +1,22 @@
1
+ # PassportUserPasswordResetTokenVerifyRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **app_ids** | **string** | NOTE: app_ids 是 \':\' 分隔的字符串列表 | [optional] [default to undefined]
9
+ **token** | **string** | 重置密码请求重置的 token | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportUserPasswordResetTokenVerifyRequest } from '@cherryin/api-client';
15
+
16
+ const instance: PassportUserPasswordResetTokenVerifyRequest = {
17
+ app_ids,
18
+ token,
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)
@@ -1,4 +1,4 @@
1
- # AuthAdminSignOutResponse
1
+ # PassportUserPasswordResetTokenVerifyResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -7,17 +7,19 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **code** | **string** | | [optional] [default to undefined]
9
9
  **message** | **string** | | [optional] [default to undefined]
10
- **success** | **boolean** | | [optional] [default to undefined]
10
+ **email** | **string** | | [optional] [default to undefined]
11
+ **verify_code** | **string** | | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
14
15
  ```typescript
15
- import { AuthAdminSignOutResponse } from '@cherryin/api-client';
16
+ import { PassportUserPasswordResetTokenVerifyResponse } from '@cherryin/api-client';
16
17
 
17
- const instance: AuthAdminSignOutResponse = {
18
+ const instance: PassportUserPasswordResetTokenVerifyResponse = {
18
19
  code,
19
20
  message,
20
- success,
21
+ email,
22
+ verify_code,
21
23
  };
22
24
  ```
23
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/api-client",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "OpenAPI client for @cherryin/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,33 +0,0 @@
1
- # Auth2Account
2
-
3
- 关联账号信息 (映射 db.UserAuthMethod)
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | | [optional] [default to undefined]
10
- **account_id** | **string** | | [optional] [default to undefined]
11
- **provider_id** | **string** | | [optional] [default to undefined]
12
- **user_id** | **string** | | [optional] [default to undefined]
13
- **created_at** | **string** | | [optional] [default to undefined]
14
- **updated_at** | **string** | | [optional] [default to undefined]
15
- **scopes** | **Array<string>** | | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { Auth2Account } from '@cherryin/api-client';
21
-
22
- const instance: Auth2Account = {
23
- id,
24
- account_id,
25
- provider_id,
26
- user_id,
27
- created_at,
28
- updated_at,
29
- scopes,
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)
@@ -1,33 +0,0 @@
1
- # Auth2Admin
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
- **image** | **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 { Auth2Admin } from '@cherryin/api-client';
21
-
22
- const instance: Auth2Admin = {
23
- id,
24
- name,
25
- email,
26
- image,
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)