@alicloud/captcha20230305 1.1.2 → 1.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/dist/client.d.ts +36 -125
- package/dist/client.js +88 -192
- package/dist/client.js.map +1 -1
- package/dist/models/VerifyCaptchaRequest.d.ts +18 -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 +56 -0
- package/dist/models/VerifyCaptchaResponseBody.js +90 -0
- package/dist/models/VerifyCaptchaResponseBody.js.map +1 -0
- package/dist/models/VerifyIntelligentCaptchaRequest.d.ts +19 -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 +56 -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 +7 -10
- package/src/client.ts +52 -222
- package/src/models/VerifyCaptchaRequest.ts +31 -0
- package/src/models/VerifyCaptchaResponse.ts +40 -0
- package/src/models/VerifyCaptchaResponseBody.ts +90 -0
- package/src/models/VerifyIntelligentCaptchaRequest.ts +34 -0
- package/src/models/VerifyIntelligentCaptchaResponse.ts +40 -0
- package/src/models/VerifyIntelligentCaptchaResponseBody.ts +94 -0
- package/src/models/model.ts +8 -0
package/src/client.ts
CHANGED
|
@@ -1,211 +1,15 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import Util, * as $Util from '@alicloud/tea-util';
|
|
6
|
-
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
7
|
-
import OpenApiUtil from '@alicloud/openapi-util';
|
|
8
|
-
import EndpointUtil from '@alicloud/endpoint-util';
|
|
9
|
-
import * as $tea from '@alicloud/tea-typescript';
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import OpenApi from '@alicloud/openapi-core';
|
|
4
|
+
import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
|
|
10
5
|
|
|
11
|
-
export class VerifyCaptchaRequest extends $tea.Model {
|
|
12
|
-
captchaVerifyParam?: string;
|
|
13
|
-
static names(): { [key: string]: string } {
|
|
14
|
-
return {
|
|
15
|
-
captchaVerifyParam: 'CaptchaVerifyParam',
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static types(): { [key: string]: any } {
|
|
20
|
-
return {
|
|
21
|
-
captchaVerifyParam: 'string',
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
constructor(map?: { [key: string]: any }) {
|
|
26
|
-
super(map);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export class VerifyCaptchaResponseBody extends $tea.Model {
|
|
31
|
-
code?: string;
|
|
32
|
-
message?: string;
|
|
33
|
-
requestId?: string;
|
|
34
|
-
result?: VerifyCaptchaResponseBodyResult;
|
|
35
|
-
success?: boolean;
|
|
36
|
-
static names(): { [key: string]: string } {
|
|
37
|
-
return {
|
|
38
|
-
code: 'Code',
|
|
39
|
-
message: 'Message',
|
|
40
|
-
requestId: 'RequestId',
|
|
41
|
-
result: 'Result',
|
|
42
|
-
success: 'Success',
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static types(): { [key: string]: any } {
|
|
47
|
-
return {
|
|
48
|
-
code: 'string',
|
|
49
|
-
message: 'string',
|
|
50
|
-
requestId: 'string',
|
|
51
|
-
result: VerifyCaptchaResponseBodyResult,
|
|
52
|
-
success: 'boolean',
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
constructor(map?: { [key: string]: any }) {
|
|
57
|
-
super(map);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export class VerifyCaptchaResponse extends $tea.Model {
|
|
62
|
-
headers: { [key: string]: string };
|
|
63
|
-
statusCode: number;
|
|
64
|
-
body: VerifyCaptchaResponseBody;
|
|
65
|
-
static names(): { [key: string]: string } {
|
|
66
|
-
return {
|
|
67
|
-
headers: 'headers',
|
|
68
|
-
statusCode: 'statusCode',
|
|
69
|
-
body: 'body',
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
static types(): { [key: string]: any } {
|
|
74
|
-
return {
|
|
75
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
76
|
-
statusCode: 'number',
|
|
77
|
-
body: VerifyCaptchaResponseBody,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
constructor(map?: { [key: string]: any }) {
|
|
82
|
-
super(map);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export class VerifyIntelligentCaptchaRequest extends $tea.Model {
|
|
87
|
-
captchaVerifyParam?: string;
|
|
88
|
-
sceneId?: string;
|
|
89
|
-
static names(): { [key: string]: string } {
|
|
90
|
-
return {
|
|
91
|
-
captchaVerifyParam: 'CaptchaVerifyParam',
|
|
92
|
-
sceneId: 'SceneId',
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
static types(): { [key: string]: any } {
|
|
97
|
-
return {
|
|
98
|
-
captchaVerifyParam: 'string',
|
|
99
|
-
sceneId: 'string',
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
constructor(map?: { [key: string]: any }) {
|
|
104
|
-
super(map);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export class VerifyIntelligentCaptchaResponseBody extends $tea.Model {
|
|
109
|
-
code?: string;
|
|
110
|
-
message?: string;
|
|
111
|
-
requestId?: string;
|
|
112
|
-
result?: VerifyIntelligentCaptchaResponseBodyResult;
|
|
113
|
-
success?: boolean;
|
|
114
|
-
static names(): { [key: string]: string } {
|
|
115
|
-
return {
|
|
116
|
-
code: 'Code',
|
|
117
|
-
message: 'Message',
|
|
118
|
-
requestId: 'RequestId',
|
|
119
|
-
result: 'Result',
|
|
120
|
-
success: 'Success',
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
static types(): { [key: string]: any } {
|
|
125
|
-
return {
|
|
126
|
-
code: 'string',
|
|
127
|
-
message: 'string',
|
|
128
|
-
requestId: 'string',
|
|
129
|
-
result: VerifyIntelligentCaptchaResponseBodyResult,
|
|
130
|
-
success: 'boolean',
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
constructor(map?: { [key: string]: any }) {
|
|
135
|
-
super(map);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export class VerifyIntelligentCaptchaResponse extends $tea.Model {
|
|
140
|
-
headers: { [key: string]: string };
|
|
141
|
-
statusCode: number;
|
|
142
|
-
body: VerifyIntelligentCaptchaResponseBody;
|
|
143
|
-
static names(): { [key: string]: string } {
|
|
144
|
-
return {
|
|
145
|
-
headers: 'headers',
|
|
146
|
-
statusCode: 'statusCode',
|
|
147
|
-
body: 'body',
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
static types(): { [key: string]: any } {
|
|
152
|
-
return {
|
|
153
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
154
|
-
statusCode: 'number',
|
|
155
|
-
body: VerifyIntelligentCaptchaResponseBody,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
constructor(map?: { [key: string]: any }) {
|
|
160
|
-
super(map);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export class VerifyCaptchaResponseBodyResult extends $tea.Model {
|
|
165
|
-
verifyResult?: boolean;
|
|
166
|
-
static names(): { [key: string]: string } {
|
|
167
|
-
return {
|
|
168
|
-
verifyResult: 'VerifyResult',
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
static types(): { [key: string]: any } {
|
|
173
|
-
return {
|
|
174
|
-
verifyResult: 'boolean',
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
constructor(map?: { [key: string]: any }) {
|
|
179
|
-
super(map);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export class VerifyIntelligentCaptchaResponseBodyResult extends $tea.Model {
|
|
184
|
-
verifyCode?: string;
|
|
185
|
-
verifyResult?: boolean;
|
|
186
|
-
static names(): { [key: string]: string } {
|
|
187
|
-
return {
|
|
188
|
-
verifyCode: 'VerifyCode',
|
|
189
|
-
verifyResult: 'VerifyResult',
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
static types(): { [key: string]: any } {
|
|
194
|
-
return {
|
|
195
|
-
verifyCode: 'string',
|
|
196
|
-
verifyResult: 'boolean',
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
constructor(map?: { [key: string]: any }) {
|
|
201
|
-
super(map);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
6
|
|
|
7
|
+
import * as $_model from './models/model';
|
|
8
|
+
export * from './models/model';
|
|
205
9
|
|
|
206
10
|
export default class Client extends OpenApi {
|
|
207
11
|
|
|
208
|
-
constructor(config: $
|
|
12
|
+
constructor(config: $OpenApiUtil.Config) {
|
|
209
13
|
super(config);
|
|
210
14
|
this._endpointRule = "";
|
|
211
15
|
this.checkConfig(config);
|
|
@@ -214,28 +18,35 @@ export default class Client extends OpenApi {
|
|
|
214
18
|
|
|
215
19
|
|
|
216
20
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
217
|
-
if (
|
|
21
|
+
if (!$dara.isNull(endpoint)) {
|
|
218
22
|
return endpoint;
|
|
219
23
|
}
|
|
220
24
|
|
|
221
|
-
if (
|
|
25
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
222
26
|
return endpointMap[regionId];
|
|
223
27
|
}
|
|
224
28
|
|
|
225
|
-
return
|
|
29
|
+
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
226
30
|
}
|
|
227
31
|
|
|
228
|
-
|
|
229
|
-
|
|
32
|
+
/**
|
|
33
|
+
* 验证码验证
|
|
34
|
+
*
|
|
35
|
+
* @param request - VerifyCaptchaRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns VerifyCaptchaResponse
|
|
38
|
+
*/
|
|
39
|
+
async verifyCaptchaWithOptions(request: $_model.VerifyCaptchaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyCaptchaResponse> {
|
|
40
|
+
request.validate();
|
|
230
41
|
let query = { };
|
|
231
|
-
if (
|
|
42
|
+
if (!$dara.isNull(request.captchaVerifyParam)) {
|
|
232
43
|
query["CaptchaVerifyParam"] = request.captchaVerifyParam;
|
|
233
44
|
}
|
|
234
45
|
|
|
235
|
-
let req = new $
|
|
46
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
236
47
|
query: OpenApiUtil.query(query),
|
|
237
48
|
});
|
|
238
|
-
let params = new $
|
|
49
|
+
let params = new $OpenApiUtil.Params({
|
|
239
50
|
action: "VerifyCaptcha",
|
|
240
51
|
version: "2023-03-05",
|
|
241
52
|
protocol: "HTTPS",
|
|
@@ -246,29 +57,42 @@ export default class Client extends OpenApi {
|
|
|
246
57
|
reqBodyType: "formData",
|
|
247
58
|
bodyType: "json",
|
|
248
59
|
});
|
|
249
|
-
return $
|
|
60
|
+
return $dara.cast<$_model.VerifyCaptchaResponse>(await this.callApi(params, req, runtime), new $_model.VerifyCaptchaResponse({}));
|
|
250
61
|
}
|
|
251
62
|
|
|
252
|
-
|
|
253
|
-
|
|
63
|
+
/**
|
|
64
|
+
* 验证码验证
|
|
65
|
+
*
|
|
66
|
+
* @param request - VerifyCaptchaRequest
|
|
67
|
+
* @returns VerifyCaptchaResponse
|
|
68
|
+
*/
|
|
69
|
+
async verifyCaptcha(request: $_model.VerifyCaptchaRequest): Promise<$_model.VerifyCaptchaResponse> {
|
|
70
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
254
71
|
return await this.verifyCaptchaWithOptions(request, runtime);
|
|
255
72
|
}
|
|
256
73
|
|
|
257
|
-
|
|
258
|
-
|
|
74
|
+
/**
|
|
75
|
+
* 验证码验证
|
|
76
|
+
*
|
|
77
|
+
* @param request - VerifyIntelligentCaptchaRequest
|
|
78
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
79
|
+
* @returns VerifyIntelligentCaptchaResponse
|
|
80
|
+
*/
|
|
81
|
+
async verifyIntelligentCaptchaWithOptions(request: $_model.VerifyIntelligentCaptchaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyIntelligentCaptchaResponse> {
|
|
82
|
+
request.validate();
|
|
259
83
|
let body : {[key: string ]: any} = { };
|
|
260
|
-
if (
|
|
84
|
+
if (!$dara.isNull(request.captchaVerifyParam)) {
|
|
261
85
|
body["CaptchaVerifyParam"] = request.captchaVerifyParam;
|
|
262
86
|
}
|
|
263
87
|
|
|
264
|
-
if (
|
|
88
|
+
if (!$dara.isNull(request.sceneId)) {
|
|
265
89
|
body["SceneId"] = request.sceneId;
|
|
266
90
|
}
|
|
267
91
|
|
|
268
|
-
let req = new $
|
|
92
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
269
93
|
body: OpenApiUtil.parseToMap(body),
|
|
270
94
|
});
|
|
271
|
-
let params = new $
|
|
95
|
+
let params = new $OpenApiUtil.Params({
|
|
272
96
|
action: "VerifyIntelligentCaptcha",
|
|
273
97
|
version: "2023-03-05",
|
|
274
98
|
protocol: "HTTPS",
|
|
@@ -279,11 +103,17 @@ export default class Client extends OpenApi {
|
|
|
279
103
|
reqBodyType: "formData",
|
|
280
104
|
bodyType: "json",
|
|
281
105
|
});
|
|
282
|
-
return $
|
|
106
|
+
return $dara.cast<$_model.VerifyIntelligentCaptchaResponse>(await this.callApi(params, req, runtime), new $_model.VerifyIntelligentCaptchaResponse({}));
|
|
283
107
|
}
|
|
284
108
|
|
|
285
|
-
|
|
286
|
-
|
|
109
|
+
/**
|
|
110
|
+
* 验证码验证
|
|
111
|
+
*
|
|
112
|
+
* @param request - VerifyIntelligentCaptchaRequest
|
|
113
|
+
* @returns VerifyIntelligentCaptchaResponse
|
|
114
|
+
*/
|
|
115
|
+
async verifyIntelligentCaptcha(request: $_model.VerifyIntelligentCaptchaRequest): Promise<$_model.VerifyIntelligentCaptchaResponse> {
|
|
116
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
287
117
|
return await this.verifyIntelligentCaptchaWithOptions(request, runtime);
|
|
288
118
|
}
|
|
289
119
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VerifyCaptchaRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* dsjidsjidsjkds*djsjdiskds
|
|
9
|
+
*/
|
|
10
|
+
captchaVerifyParam?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
captchaVerifyParam: 'CaptchaVerifyParam',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
captchaVerifyParam: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { VerifyCaptchaResponseBody } from "./VerifyCaptchaResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class VerifyCaptchaResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: VerifyCaptchaResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: VerifyCaptchaResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
export class VerifyCaptchaResponseBodyResult extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* true
|
|
11
|
+
*/
|
|
12
|
+
verifyResult?: boolean;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
verifyResult: 'VerifyResult',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
verifyResult: 'boolean',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
super.validate();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
constructor(map?: { [key: string]: any }) {
|
|
30
|
+
super(map);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class VerifyCaptchaResponseBody extends $dara.Model {
|
|
35
|
+
/**
|
|
36
|
+
* @example
|
|
37
|
+
* Success
|
|
38
|
+
*/
|
|
39
|
+
code?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* success
|
|
43
|
+
*/
|
|
44
|
+
message?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* Id of the request
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* 95784F***D39FDC5
|
|
51
|
+
*/
|
|
52
|
+
requestId?: string;
|
|
53
|
+
result?: VerifyCaptchaResponseBodyResult;
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* true
|
|
57
|
+
*/
|
|
58
|
+
success?: boolean;
|
|
59
|
+
static names(): { [key: string]: string } {
|
|
60
|
+
return {
|
|
61
|
+
code: 'Code',
|
|
62
|
+
message: 'Message',
|
|
63
|
+
requestId: 'RequestId',
|
|
64
|
+
result: 'Result',
|
|
65
|
+
success: 'Success',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static types(): { [key: string]: any } {
|
|
70
|
+
return {
|
|
71
|
+
code: 'string',
|
|
72
|
+
message: 'string',
|
|
73
|
+
requestId: 'string',
|
|
74
|
+
result: VerifyCaptchaResponseBodyResult,
|
|
75
|
+
success: 'boolean',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
81
|
+
(this.result as any).validate();
|
|
82
|
+
}
|
|
83
|
+
super.validate();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
constructor(map?: { [key: string]: any }) {
|
|
87
|
+
super(map);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VerifyIntelligentCaptchaRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* dsjidsjidsjkds*djsjdiskds
|
|
9
|
+
*/
|
|
10
|
+
captchaVerifyParam?: string;
|
|
11
|
+
sceneId?: string;
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
captchaVerifyParam: 'CaptchaVerifyParam',
|
|
15
|
+
sceneId: 'SceneId',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
captchaVerifyParam: 'string',
|
|
22
|
+
sceneId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { VerifyIntelligentCaptchaResponseBody } from "./VerifyIntelligentCaptchaResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class VerifyIntelligentCaptchaResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: VerifyIntelligentCaptchaResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: VerifyIntelligentCaptchaResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
certifyId?: string;
|
|
7
|
+
verifyCode?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* true
|
|
11
|
+
*/
|
|
12
|
+
verifyResult?: boolean;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
certifyId: 'CertifyId',
|
|
16
|
+
verifyCode: 'VerifyCode',
|
|
17
|
+
verifyResult: 'VerifyResult',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static types(): { [key: string]: any } {
|
|
22
|
+
return {
|
|
23
|
+
certifyId: 'string',
|
|
24
|
+
verifyCode: 'string',
|
|
25
|
+
verifyResult: 'boolean',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
validate() {
|
|
30
|
+
super.validate();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
constructor(map?: { [key: string]: any }) {
|
|
34
|
+
super(map);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class VerifyIntelligentCaptchaResponseBody extends $dara.Model {
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* Success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* success
|
|
47
|
+
*/
|
|
48
|
+
message?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* Id of the request
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* 95784F***D39FDC5
|
|
55
|
+
*/
|
|
56
|
+
requestId?: string;
|
|
57
|
+
result?: VerifyIntelligentCaptchaResponseBodyResult;
|
|
58
|
+
/**
|
|
59
|
+
* @example
|
|
60
|
+
* true
|
|
61
|
+
*/
|
|
62
|
+
success?: boolean;
|
|
63
|
+
static names(): { [key: string]: string } {
|
|
64
|
+
return {
|
|
65
|
+
code: 'Code',
|
|
66
|
+
message: 'Message',
|
|
67
|
+
requestId: 'RequestId',
|
|
68
|
+
result: 'Result',
|
|
69
|
+
success: 'Success',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
code: 'string',
|
|
76
|
+
message: 'string',
|
|
77
|
+
requestId: 'string',
|
|
78
|
+
result: VerifyIntelligentCaptchaResponseBodyResult,
|
|
79
|
+
success: 'boolean',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
validate() {
|
|
84
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
85
|
+
(this.result as any).validate();
|
|
86
|
+
}
|
|
87
|
+
super.validate();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
constructor(map?: { [key: string]: any }) {
|
|
91
|
+
super(map);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -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';
|