@alicloud/captcha20230305 1.1.3 → 1.1.5
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/dist/client.d.ts +36 -125
- package/dist/client.js +93 -193
- package/dist/client.js.map +1 -1
- package/dist/models/VerifyCaptchaRequest.d.ts +21 -0
- package/dist/models/VerifyCaptchaRequest.js +58 -0
- package/dist/models/VerifyCaptchaRequest.js.map +1 -0
- package/dist/models/VerifyCaptchaResponse.d.ts +19 -0
- package/dist/models/VerifyCaptchaResponse.js +69 -0
- package/dist/models/VerifyCaptchaResponse.js.map +1 -0
- package/dist/models/VerifyCaptchaResponseBody.d.ts +76 -0
- package/dist/models/VerifyCaptchaResponseBody.js +90 -0
- package/dist/models/VerifyCaptchaResponseBody.js.map +1 -0
- package/dist/models/VerifyIntelligentCaptchaRequest.d.ts +29 -0
- package/dist/models/VerifyIntelligentCaptchaRequest.js +60 -0
- package/dist/models/VerifyIntelligentCaptchaRequest.js.map +1 -0
- package/dist/models/VerifyIntelligentCaptchaResponse.d.ts +19 -0
- package/dist/models/VerifyIntelligentCaptchaResponse.js +69 -0
- package/dist/models/VerifyIntelligentCaptchaResponse.js.map +1 -0
- package/dist/models/VerifyIntelligentCaptchaResponseBody.d.ts +90 -0
- package/dist/models/VerifyIntelligentCaptchaResponseBody.js +92 -0
- package/dist/models/VerifyIntelligentCaptchaResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +20 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +8 -10
- package/src/client.ts +57 -223
- package/src/models/VerifyCaptchaRequest.ts +34 -0
- package/src/models/VerifyCaptchaResponse.ts +40 -0
- package/src/models/VerifyCaptchaResponseBody.ts +110 -0
- package/src/models/VerifyIntelligentCaptchaRequest.ts +44 -0
- package/src/models/VerifyIntelligentCaptchaResponse.ts +40 -0
- package/src/models/VerifyIntelligentCaptchaResponseBody.ts +128 -0
- package/src/models/model.ts +8 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VerifyIntelligentCaptchaResponseBodyResult extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The certification ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* AAAaaaAaAa
|
|
12
|
+
*/
|
|
13
|
+
certifyId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The result code of the CAPTCHA verification.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* F019
|
|
20
|
+
*/
|
|
21
|
+
verifyCode?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The verification result. Valid values:
|
|
25
|
+
*
|
|
26
|
+
* - true: The verification is successful.
|
|
27
|
+
*
|
|
28
|
+
* - false: The verification fails.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* true
|
|
32
|
+
*/
|
|
33
|
+
verifyResult?: boolean;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
certifyId: 'CertifyId',
|
|
37
|
+
verifyCode: 'VerifyCode',
|
|
38
|
+
verifyResult: 'VerifyResult',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
certifyId: 'string',
|
|
45
|
+
verifyCode: 'string',
|
|
46
|
+
verifyResult: 'boolean',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class VerifyIntelligentCaptchaResponseBody extends $dara.Model {
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The response code.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* Success
|
|
66
|
+
*/
|
|
67
|
+
code?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The response message. The value is success if the request is successful.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* success
|
|
74
|
+
*/
|
|
75
|
+
message?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* Id of the request
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* 95784F***D39FDC5
|
|
82
|
+
*/
|
|
83
|
+
requestId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The returned result.
|
|
87
|
+
*/
|
|
88
|
+
result?: VerifyIntelligentCaptchaResponseBodyResult;
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* Indicates whether the request is successful.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* true
|
|
95
|
+
*/
|
|
96
|
+
success?: boolean;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
code: 'Code',
|
|
100
|
+
message: 'Message',
|
|
101
|
+
requestId: 'RequestId',
|
|
102
|
+
result: 'Result',
|
|
103
|
+
success: 'Success',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
code: 'string',
|
|
110
|
+
message: 'string',
|
|
111
|
+
requestId: 'string',
|
|
112
|
+
result: VerifyIntelligentCaptchaResponseBodyResult,
|
|
113
|
+
success: 'boolean',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
119
|
+
(this.result as any).validate();
|
|
120
|
+
}
|
|
121
|
+
super.validate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
constructor(map?: { [key: string]: any }) {
|
|
125
|
+
super(map);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { VerifyCaptchaResponseBodyResult } from './VerifyCaptchaResponseBody';
|
|
2
|
+
export { VerifyIntelligentCaptchaResponseBodyResult } from './VerifyIntelligentCaptchaResponseBody';
|
|
3
|
+
export { VerifyCaptchaRequest } from './VerifyCaptchaRequest';
|
|
4
|
+
export { VerifyCaptchaResponseBody } from './VerifyCaptchaResponseBody';
|
|
5
|
+
export { VerifyCaptchaResponse } from './VerifyCaptchaResponse';
|
|
6
|
+
export { VerifyIntelligentCaptchaRequest } from './VerifyIntelligentCaptchaRequest';
|
|
7
|
+
export { VerifyIntelligentCaptchaResponseBody } from './VerifyIntelligentCaptchaResponseBody';
|
|
8
|
+
export { VerifyIntelligentCaptchaResponse } from './VerifyIntelligentCaptchaResponse';
|