@cherryin/api-client 0.0.17 → 0.0.19

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.
@@ -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)
@@ -0,0 +1,22 @@
1
+ # PassportUserPasswordForgetResponse
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 { PassportUserPasswordForgetResponse } from '@cherryin/api-client';
15
+
16
+ const instance: PassportUserPasswordForgetResponse = {
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)
@@ -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)
@@ -0,0 +1,26 @@
1
+ # PassportUserPasswordResetTokenVerifyResponse
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
+ **email** | **string** | | [optional] [default to undefined]
11
+ **verify_code** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassportUserPasswordResetTokenVerifyResponse } from '@cherryin/api-client';
17
+
18
+ const instance: PassportUserPasswordResetTokenVerifyResponse = {
19
+ code,
20
+ message,
21
+ email,
22
+ verify_code,
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)
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**userAPIKeyServiceUserAPIKeyCreate**](#userapikeyserviceuserapikeycreate) | **POST** /api/v1/user/api-key/create | |
8
- |[**userAPIKeyServiceUserAPIKeyDelete**](#userapikeyserviceuserapikeydelete) | **POST** /api/v1/user/api-key/delete | |
8
+ |[**userAPIKeyServiceUserAPIKeyDelete**](#userapikeyserviceuserapikeydelete) | **DELETE** /api/v1/user/api-key/delete | |
9
9
  |[**userAPIKeyServiceUserAPIKeyGet**](#userapikeyserviceuserapikeyget) | **GET** /api/v1/user/api-key/get | |
10
10
  |[**userAPIKeyServiceUserAPIKeyList**](#userapikeyserviceuserapikeylist) | **GET** /api/v1/user/api-key/list | |
11
11
  |[**userAPIKeyServiceUserAPIKeyUpdate**](#userapikeyserviceuserapikeyupdate) | **POST** /api/v1/user/api-key/update | |
@@ -64,7 +64,7 @@ No authorization required
64
64
  [[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)
65
65
 
66
66
  # **userAPIKeyServiceUserAPIKeyDelete**
67
- > UserAPIKeyDeleteResponse userAPIKeyServiceUserAPIKeyDelete(userAPIKeyDeleteRequest)
67
+ > UserAPIKeyDeleteResponse userAPIKeyServiceUserAPIKeyDelete()
68
68
 
69
69
  UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft delete) 请求路径: POST /api/user/api-key/delete Request path: POST /api/user/api-key/delete 权限要求: 需要用户认证 Permission: Requires user authentication
70
70
 
@@ -73,17 +73,16 @@ UserAPIKeyDelete 删除 UserAPIKey(软删除) Delete a UserAPIKey (soft del
73
73
  ```typescript
74
74
  import {
75
75
  UserAPIKeyServiceApi,
76
- Configuration,
77
- UserAPIKeyDeleteRequest
76
+ Configuration
78
77
  } from '@cherryin/api-client';
79
78
 
80
79
  const configuration = new Configuration();
81
80
  const apiInstance = new UserAPIKeyServiceApi(configuration);
82
81
 
83
- let userAPIKeyDeleteRequest: UserAPIKeyDeleteRequest; //
82
+ let id: string; //id 要删除的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to delete @gotags: form:\"id\" binding:\"required\" (optional) (default to undefined)
84
83
 
85
84
  const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyDelete(
86
- userAPIKeyDeleteRequest
85
+ id
87
86
  );
88
87
  ```
89
88
 
@@ -91,7 +90,7 @@ const { status, data } = await apiInstance.userAPIKeyServiceUserAPIKeyDelete(
91
90
 
92
91
  |Name | Type | Description | Notes|
93
92
  |------------- | ------------- | ------------- | -------------|
94
- | **userAPIKeyDeleteRequest** | **UserAPIKeyDeleteRequest**| | |
93
+ | **id** | [**string**] | id 要删除的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to delete @gotags: form:\"id\" binding:\"required\" | (optional) defaults to undefined|
95
94
 
96
95
 
97
96
  ### Return type
@@ -104,7 +103,7 @@ No authorization required
104
103
 
105
104
  ### HTTP request headers
106
105
 
107
- - **Content-Type**: application/json
106
+ - **Content-Type**: Not defined
108
107
  - **Accept**: application/json
109
108
 
110
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cherryin/api-client",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "OpenAPI client for @cherryin/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,21 +0,0 @@
1
- # UserAPIKeyDeleteRequest
2
-
3
- UserAPIKeyDeleteRequest 删除 UserAPIKey 的请求 Request message for deleting a UserAPIKey
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | id 要删除的 UserAPIKey 的唯一标识符 Unique identifier of the UserAPIKey to delete @gotags: form:\"id\" binding:\"required\" | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { UserAPIKeyDeleteRequest } from '@cherryin/api-client';
15
-
16
- const instance: UserAPIKeyDeleteRequest = {
17
- id,
18
- };
19
- ```
20
-
21
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)