@cherryin/passport-api-client 0.1.2 → 0.1.4
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 +2 -0
- package/README.md +4 -2
- package/api.ts +13 -0
- package/dist/api.d.ts +13 -0
- package/dist/esm/api.d.ts +13 -0
- package/docs/AuthCaptcha.md +20 -0
- package/docs/GeeTestAuthCaptcha.md +28 -0
- package/docs/PassportEnterpriseSendVerificationEmailRequest.md +2 -0
- package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +2 -0
- package/docs/PassportSendVerificationEmailRequest.md +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,7 @@ docs/AdminUserItem.md
|
|
|
14
14
|
docs/Any.md
|
|
15
15
|
docs/AuthAdminSession.md
|
|
16
16
|
docs/AuthAdminUser.md
|
|
17
|
+
docs/AuthCaptcha.md
|
|
17
18
|
docs/AuthEnterpriseMaterials.md
|
|
18
19
|
docs/AuthEnterpriseSession.md
|
|
19
20
|
docs/AuthEnterpriseUser.md
|
|
@@ -22,6 +23,7 @@ docs/AuthPassport.md
|
|
|
22
23
|
docs/AuthUser.md
|
|
23
24
|
docs/AuthUserMethod.md
|
|
24
25
|
docs/AuthUserSession.md
|
|
26
|
+
docs/GeeTestAuthCaptcha.md
|
|
25
27
|
docs/PassportAdminPasswordForgetRequest.md
|
|
26
28
|
docs/PassportAdminPasswordForgetResponse.md
|
|
27
29
|
docs/PassportAdminPasswordResetRequest.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/passport-api-client@0.1.
|
|
1
|
+
## @cherryin/passport-api-client@0.1.4
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cherryin/passport-api-client@0.1.
|
|
39
|
+
npm install @cherryin/passport-api-client@0.1.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -152,6 +152,7 @@ Class | Method | HTTP request | Description
|
|
|
152
152
|
- [Any](docs/Any.md)
|
|
153
153
|
- [AuthAdminSession](docs/AuthAdminSession.md)
|
|
154
154
|
- [AuthAdminUser](docs/AuthAdminUser.md)
|
|
155
|
+
- [AuthCaptcha](docs/AuthCaptcha.md)
|
|
155
156
|
- [AuthEnterpriseMaterials](docs/AuthEnterpriseMaterials.md)
|
|
156
157
|
- [AuthEnterpriseSession](docs/AuthEnterpriseSession.md)
|
|
157
158
|
- [AuthEnterpriseUser](docs/AuthEnterpriseUser.md)
|
|
@@ -160,6 +161,7 @@ Class | Method | HTTP request | Description
|
|
|
160
161
|
- [AuthUser](docs/AuthUser.md)
|
|
161
162
|
- [AuthUserMethod](docs/AuthUserMethod.md)
|
|
162
163
|
- [AuthUserSession](docs/AuthUserSession.md)
|
|
164
|
+
- [GeeTestAuthCaptcha](docs/GeeTestAuthCaptcha.md)
|
|
163
165
|
- [PassportAdminPasswordForgetRequest](docs/PassportAdminPasswordForgetRequest.md)
|
|
164
166
|
- [PassportAdminPasswordForgetResponse](docs/PassportAdminPasswordForgetResponse.md)
|
|
165
167
|
- [PassportAdminPasswordResetRequest](docs/PassportAdminPasswordResetRequest.md)
|
package/api.ts
CHANGED
|
@@ -74,6 +74,9 @@ export interface AuthAdminUser {
|
|
|
74
74
|
'created_at'?: string;
|
|
75
75
|
'updated_at'?: string;
|
|
76
76
|
}
|
|
77
|
+
export interface AuthCaptcha {
|
|
78
|
+
'geetest'?: GeeTestAuthCaptcha;
|
|
79
|
+
}
|
|
77
80
|
export interface AuthEnterpriseMaterials {
|
|
78
81
|
/**
|
|
79
82
|
* EnterpriseMaterials.RequestedAt
|
|
@@ -180,6 +183,13 @@ export interface AuthUserSession {
|
|
|
180
183
|
'ip'?: string;
|
|
181
184
|
'user_agent'?: string;
|
|
182
185
|
}
|
|
186
|
+
export interface GeeTestAuthCaptcha {
|
|
187
|
+
'captcha_id'?: string;
|
|
188
|
+
'lot_number'?: string;
|
|
189
|
+
'captcha_output'?: string;
|
|
190
|
+
'pass_token'?: string;
|
|
191
|
+
'gen_time'?: string;
|
|
192
|
+
}
|
|
183
193
|
export interface PassportAdminPasswordForgetRequest {
|
|
184
194
|
'email'?: string;
|
|
185
195
|
'callback_url'?: string;
|
|
@@ -803,6 +813,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
|
|
|
803
813
|
'email'?: string;
|
|
804
814
|
'callback_url'?: string;
|
|
805
815
|
'purpose'?: string;
|
|
816
|
+
'captcha'?: AuthCaptcha;
|
|
806
817
|
}
|
|
807
818
|
export interface PassportEnterpriseSendVerificationEmailResponse {
|
|
808
819
|
'code'?: string;
|
|
@@ -812,6 +823,7 @@ export interface PassportEnterpriseSendVerificationPhoneRequest {
|
|
|
812
823
|
'phone'?: string;
|
|
813
824
|
'callback_url'?: string;
|
|
814
825
|
'purpose'?: string;
|
|
826
|
+
'captcha'?: AuthCaptcha;
|
|
815
827
|
}
|
|
816
828
|
export interface PassportEnterpriseSendVerificationPhoneResponse {
|
|
817
829
|
'code'?: string;
|
|
@@ -883,6 +895,7 @@ export interface PassportSendVerificationEmailRequest {
|
|
|
883
895
|
'email'?: string;
|
|
884
896
|
'callback_url'?: string;
|
|
885
897
|
'purpose'?: string;
|
|
898
|
+
'captcha'?: AuthCaptcha;
|
|
886
899
|
}
|
|
887
900
|
export interface PassportSendVerificationEmailResponse {
|
|
888
901
|
'code'?: string;
|
package/dist/api.d.ts
CHANGED
|
@@ -63,6 +63,9 @@ export interface AuthAdminUser {
|
|
|
63
63
|
'created_at'?: string;
|
|
64
64
|
'updated_at'?: string;
|
|
65
65
|
}
|
|
66
|
+
export interface AuthCaptcha {
|
|
67
|
+
'geetest'?: GeeTestAuthCaptcha;
|
|
68
|
+
}
|
|
66
69
|
export interface AuthEnterpriseMaterials {
|
|
67
70
|
/**
|
|
68
71
|
* EnterpriseMaterials.RequestedAt
|
|
@@ -169,6 +172,13 @@ export interface AuthUserSession {
|
|
|
169
172
|
'ip'?: string;
|
|
170
173
|
'user_agent'?: string;
|
|
171
174
|
}
|
|
175
|
+
export interface GeeTestAuthCaptcha {
|
|
176
|
+
'captcha_id'?: string;
|
|
177
|
+
'lot_number'?: string;
|
|
178
|
+
'captcha_output'?: string;
|
|
179
|
+
'pass_token'?: string;
|
|
180
|
+
'gen_time'?: string;
|
|
181
|
+
}
|
|
172
182
|
export interface PassportAdminPasswordForgetRequest {
|
|
173
183
|
'email'?: string;
|
|
174
184
|
'callback_url'?: string;
|
|
@@ -792,6 +802,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
|
|
|
792
802
|
'email'?: string;
|
|
793
803
|
'callback_url'?: string;
|
|
794
804
|
'purpose'?: string;
|
|
805
|
+
'captcha'?: AuthCaptcha;
|
|
795
806
|
}
|
|
796
807
|
export interface PassportEnterpriseSendVerificationEmailResponse {
|
|
797
808
|
'code'?: string;
|
|
@@ -801,6 +812,7 @@ export interface PassportEnterpriseSendVerificationPhoneRequest {
|
|
|
801
812
|
'phone'?: string;
|
|
802
813
|
'callback_url'?: string;
|
|
803
814
|
'purpose'?: string;
|
|
815
|
+
'captcha'?: AuthCaptcha;
|
|
804
816
|
}
|
|
805
817
|
export interface PassportEnterpriseSendVerificationPhoneResponse {
|
|
806
818
|
'code'?: string;
|
|
@@ -872,6 +884,7 @@ export interface PassportSendVerificationEmailRequest {
|
|
|
872
884
|
'email'?: string;
|
|
873
885
|
'callback_url'?: string;
|
|
874
886
|
'purpose'?: string;
|
|
887
|
+
'captcha'?: AuthCaptcha;
|
|
875
888
|
}
|
|
876
889
|
export interface PassportSendVerificationEmailResponse {
|
|
877
890
|
'code'?: string;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -63,6 +63,9 @@ export interface AuthAdminUser {
|
|
|
63
63
|
'created_at'?: string;
|
|
64
64
|
'updated_at'?: string;
|
|
65
65
|
}
|
|
66
|
+
export interface AuthCaptcha {
|
|
67
|
+
'geetest'?: GeeTestAuthCaptcha;
|
|
68
|
+
}
|
|
66
69
|
export interface AuthEnterpriseMaterials {
|
|
67
70
|
/**
|
|
68
71
|
* EnterpriseMaterials.RequestedAt
|
|
@@ -169,6 +172,13 @@ export interface AuthUserSession {
|
|
|
169
172
|
'ip'?: string;
|
|
170
173
|
'user_agent'?: string;
|
|
171
174
|
}
|
|
175
|
+
export interface GeeTestAuthCaptcha {
|
|
176
|
+
'captcha_id'?: string;
|
|
177
|
+
'lot_number'?: string;
|
|
178
|
+
'captcha_output'?: string;
|
|
179
|
+
'pass_token'?: string;
|
|
180
|
+
'gen_time'?: string;
|
|
181
|
+
}
|
|
172
182
|
export interface PassportAdminPasswordForgetRequest {
|
|
173
183
|
'email'?: string;
|
|
174
184
|
'callback_url'?: string;
|
|
@@ -792,6 +802,7 @@ export interface PassportEnterpriseSendVerificationEmailRequest {
|
|
|
792
802
|
'email'?: string;
|
|
793
803
|
'callback_url'?: string;
|
|
794
804
|
'purpose'?: string;
|
|
805
|
+
'captcha'?: AuthCaptcha;
|
|
795
806
|
}
|
|
796
807
|
export interface PassportEnterpriseSendVerificationEmailResponse {
|
|
797
808
|
'code'?: string;
|
|
@@ -801,6 +812,7 @@ export interface PassportEnterpriseSendVerificationPhoneRequest {
|
|
|
801
812
|
'phone'?: string;
|
|
802
813
|
'callback_url'?: string;
|
|
803
814
|
'purpose'?: string;
|
|
815
|
+
'captcha'?: AuthCaptcha;
|
|
804
816
|
}
|
|
805
817
|
export interface PassportEnterpriseSendVerificationPhoneResponse {
|
|
806
818
|
'code'?: string;
|
|
@@ -872,6 +884,7 @@ export interface PassportSendVerificationEmailRequest {
|
|
|
872
884
|
'email'?: string;
|
|
873
885
|
'callback_url'?: string;
|
|
874
886
|
'purpose'?: string;
|
|
887
|
+
'captcha'?: AuthCaptcha;
|
|
875
888
|
}
|
|
876
889
|
export interface PassportSendVerificationEmailResponse {
|
|
877
890
|
'code'?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AuthCaptcha
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**geetest** | [**GeeTestAuthCaptcha**](GeeTestAuthCaptcha.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AuthCaptcha } from '@cherryin/passport-api-client';
|
|
14
|
+
|
|
15
|
+
const instance: AuthCaptcha = {
|
|
16
|
+
geetest,
|
|
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,28 @@
|
|
|
1
|
+
# GeeTestAuthCaptcha
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**captcha_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**lot_number** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**captcha_output** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**pass_token** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**gen_time** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { GeeTestAuthCaptcha } from '@cherryin/passport-api-client';
|
|
18
|
+
|
|
19
|
+
const instance: GeeTestAuthCaptcha = {
|
|
20
|
+
captcha_id,
|
|
21
|
+
lot_number,
|
|
22
|
+
captcha_output,
|
|
23
|
+
pass_token,
|
|
24
|
+
gen_time,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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
|
**email** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**callback_url** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**captcha** | [**AuthCaptcha**](AuthCaptcha.md) | | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ const instance: PassportEnterpriseSendVerificationEmailRequest = {
|
|
|
18
19
|
email,
|
|
19
20
|
callback_url,
|
|
20
21
|
purpose,
|
|
22
|
+
captcha,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
23
25
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**phone** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**callback_url** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**captcha** | [**AuthCaptcha**](AuthCaptcha.md) | | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ const instance: PassportEnterpriseSendVerificationPhoneRequest = {
|
|
|
18
19
|
phone,
|
|
19
20
|
callback_url,
|
|
20
21
|
purpose,
|
|
22
|
+
captcha,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
23
25
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**email** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**callback_url** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**captcha** | [**AuthCaptcha**](AuthCaptcha.md) | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: PassportSendVerificationEmailRequest = {
|
|
|
20
21
|
email,
|
|
21
22
|
callback_url,
|
|
22
23
|
purpose,
|
|
24
|
+
captcha,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|