@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.
Files changed (33) hide show
  1. package/dist/client.d.ts +36 -125
  2. package/dist/client.js +93 -193
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/VerifyCaptchaRequest.d.ts +21 -0
  5. package/dist/models/VerifyCaptchaRequest.js +58 -0
  6. package/dist/models/VerifyCaptchaRequest.js.map +1 -0
  7. package/dist/models/VerifyCaptchaResponse.d.ts +19 -0
  8. package/dist/models/VerifyCaptchaResponse.js +69 -0
  9. package/dist/models/VerifyCaptchaResponse.js.map +1 -0
  10. package/dist/models/VerifyCaptchaResponseBody.d.ts +76 -0
  11. package/dist/models/VerifyCaptchaResponseBody.js +90 -0
  12. package/dist/models/VerifyCaptchaResponseBody.js.map +1 -0
  13. package/dist/models/VerifyIntelligentCaptchaRequest.d.ts +29 -0
  14. package/dist/models/VerifyIntelligentCaptchaRequest.js +60 -0
  15. package/dist/models/VerifyIntelligentCaptchaRequest.js.map +1 -0
  16. package/dist/models/VerifyIntelligentCaptchaResponse.d.ts +19 -0
  17. package/dist/models/VerifyIntelligentCaptchaResponse.js +69 -0
  18. package/dist/models/VerifyIntelligentCaptchaResponse.js.map +1 -0
  19. package/dist/models/VerifyIntelligentCaptchaResponseBody.d.ts +90 -0
  20. package/dist/models/VerifyIntelligentCaptchaResponseBody.js +92 -0
  21. package/dist/models/VerifyIntelligentCaptchaResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +8 -0
  23. package/dist/models/model.js +20 -0
  24. package/dist/models/model.js.map +1 -0
  25. package/package.json +8 -10
  26. package/src/client.ts +57 -223
  27. package/src/models/VerifyCaptchaRequest.ts +34 -0
  28. package/src/models/VerifyCaptchaResponse.ts +40 -0
  29. package/src/models/VerifyCaptchaResponseBody.ts +110 -0
  30. package/src/models/VerifyIntelligentCaptchaRequest.ts +44 -0
  31. package/src/models/VerifyIntelligentCaptchaResponse.ts +40 -0
  32. package/src/models/VerifyIntelligentCaptchaResponseBody.ts +128 -0
  33. package/src/models/model.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/captcha20230305",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,21 +12,19 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
- "@alicloud/tea-typescript": "^1.7.1",
23
- "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.7",
25
- "@alicloud/openapi-util": "^0.3.2",
26
- "@alicloud/endpoint-util": "^0.0.1"
22
+ "@darabonba/typescript": "^1.0.0",
23
+ "@alicloud/gateway-pop": "^0.0.8",
24
+ "@alicloud/openapi-core": "^1.0.10"
27
25
  },
28
26
  "files": [
29
27
  "dist",
30
28
  "src"
31
29
  ]
32
- }
30
+ }
package/src/client.ts CHANGED
@@ -1,241 +1,56 @@
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 GatewayClient from '@alicloud/gateway-pop';
4
+ import OpenApi from '@alicloud/openapi-core';
5
+ import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
10
6
 
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
7
 
8
+ import * as $_model from './models/model';
9
+ export * from './models/model';
205
10
 
206
11
  export default class Client extends OpenApi {
207
12
 
208
- constructor(config: $OpenApi.Config) {
13
+ constructor(config: $OpenApiUtil.Config) {
209
14
  super(config);
210
- this._endpointRule = "";
15
+ this._productId = "captcha";
16
+ let gatewayClient = new GatewayClient();
17
+ this._spi = gatewayClient;
18
+ this._endpointRule = "regional";
211
19
  this.checkConfig(config);
212
20
  this._endpoint = this.getEndpoint("captcha", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
213
21
  }
214
22
 
215
23
 
216
24
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
217
- if (!Util.empty(endpoint)) {
25
+ if (!$dara.isNull(endpoint)) {
218
26
  return endpoint;
219
27
  }
220
28
 
221
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
29
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
222
30
  return endpointMap[regionId];
223
31
  }
224
32
 
225
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
33
+ return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
226
34
  }
227
35
 
228
- async verifyCaptchaWithOptions(request: VerifyCaptchaRequest, runtime: $Util.RuntimeOptions): Promise<VerifyCaptchaResponse> {
229
- Util.validateModel(request);
36
+ /**
37
+ * Verifies a CAPTCHA. This operation is deprecated. Use VerifyIntelligentCaptcha instead.
38
+ *
39
+ * @param request - VerifyCaptchaRequest
40
+ * @param runtime - runtime options for this request RuntimeOptions
41
+ * @returns VerifyCaptchaResponse
42
+ */
43
+ async verifyCaptchaWithOptions(request: $_model.VerifyCaptchaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyCaptchaResponse> {
44
+ request.validate();
230
45
  let query = { };
231
- if (!Util.isUnset(request.captchaVerifyParam)) {
46
+ if (!$dara.isNull(request.captchaVerifyParam)) {
232
47
  query["CaptchaVerifyParam"] = request.captchaVerifyParam;
233
48
  }
234
49
 
235
- let req = new $OpenApi.OpenApiRequest({
50
+ let req = new $OpenApiUtil.OpenApiRequest({
236
51
  query: OpenApiUtil.query(query),
237
52
  });
238
- let params = new $OpenApi.Params({
53
+ let params = new $OpenApiUtil.Params({
239
54
  action: "VerifyCaptcha",
240
55
  version: "2023-03-05",
241
56
  protocol: "HTTPS",
@@ -246,29 +61,42 @@ export default class Client extends OpenApi {
246
61
  reqBodyType: "formData",
247
62
  bodyType: "json",
248
63
  });
249
- return $tea.cast<VerifyCaptchaResponse>(await this.callApi(params, req, runtime), new VerifyCaptchaResponse({}));
64
+ return $dara.cast<$_model.VerifyCaptchaResponse>(await this.callApi(params, req, runtime), new $_model.VerifyCaptchaResponse({}));
250
65
  }
251
66
 
252
- async verifyCaptcha(request: VerifyCaptchaRequest): Promise<VerifyCaptchaResponse> {
253
- let runtime = new $Util.RuntimeOptions({ });
67
+ /**
68
+ * Verifies a CAPTCHA. This operation is deprecated. Use VerifyIntelligentCaptcha instead.
69
+ *
70
+ * @param request - VerifyCaptchaRequest
71
+ * @returns VerifyCaptchaResponse
72
+ */
73
+ async verifyCaptcha(request: $_model.VerifyCaptchaRequest): Promise<$_model.VerifyCaptchaResponse> {
74
+ let runtime = new $dara.RuntimeOptions({ });
254
75
  return await this.verifyCaptchaWithOptions(request, runtime);
255
76
  }
256
77
 
257
- async verifyIntelligentCaptchaWithOptions(request: VerifyIntelligentCaptchaRequest, runtime: $Util.RuntimeOptions): Promise<VerifyIntelligentCaptchaResponse> {
258
- Util.validateModel(request);
78
+ /**
79
+ * Intelligently verifies a CAPTCHA.
80
+ *
81
+ * @param request - VerifyIntelligentCaptchaRequest
82
+ * @param runtime - runtime options for this request RuntimeOptions
83
+ * @returns VerifyIntelligentCaptchaResponse
84
+ */
85
+ async verifyIntelligentCaptchaWithOptions(request: $_model.VerifyIntelligentCaptchaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyIntelligentCaptchaResponse> {
86
+ request.validate();
259
87
  let body : {[key: string ]: any} = { };
260
- if (!Util.isUnset(request.captchaVerifyParam)) {
88
+ if (!$dara.isNull(request.captchaVerifyParam)) {
261
89
  body["CaptchaVerifyParam"] = request.captchaVerifyParam;
262
90
  }
263
91
 
264
- if (!Util.isUnset(request.sceneId)) {
92
+ if (!$dara.isNull(request.sceneId)) {
265
93
  body["SceneId"] = request.sceneId;
266
94
  }
267
95
 
268
- let req = new $OpenApi.OpenApiRequest({
96
+ let req = new $OpenApiUtil.OpenApiRequest({
269
97
  body: OpenApiUtil.parseToMap(body),
270
98
  });
271
- let params = new $OpenApi.Params({
99
+ let params = new $OpenApiUtil.Params({
272
100
  action: "VerifyIntelligentCaptcha",
273
101
  version: "2023-03-05",
274
102
  protocol: "HTTPS",
@@ -279,11 +107,17 @@ export default class Client extends OpenApi {
279
107
  reqBodyType: "formData",
280
108
  bodyType: "json",
281
109
  });
282
- return $tea.cast<VerifyIntelligentCaptchaResponse>(await this.callApi(params, req, runtime), new VerifyIntelligentCaptchaResponse({}));
110
+ return $dara.cast<$_model.VerifyIntelligentCaptchaResponse>(await this.callApi(params, req, runtime), new $_model.VerifyIntelligentCaptchaResponse({}));
283
111
  }
284
112
 
285
- async verifyIntelligentCaptcha(request: VerifyIntelligentCaptchaRequest): Promise<VerifyIntelligentCaptchaResponse> {
286
- let runtime = new $Util.RuntimeOptions({ });
113
+ /**
114
+ * Intelligently verifies a CAPTCHA.
115
+ *
116
+ * @param request - VerifyIntelligentCaptchaRequest
117
+ * @returns VerifyIntelligentCaptchaResponse
118
+ */
119
+ async verifyIntelligentCaptcha(request: $_model.VerifyIntelligentCaptchaRequest): Promise<$_model.VerifyIntelligentCaptchaResponse> {
120
+ let runtime = new $dara.RuntimeOptions({ });
287
121
  return await this.verifyIntelligentCaptchaWithOptions(request, runtime);
288
122
  }
289
123
 
@@ -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 VerifyCaptchaRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The verification parameter passed from the client.
9
+ *
10
+ * @example
11
+ * dsjidsjidsjkds*djsjdiskds
12
+ */
13
+ captchaVerifyParam?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ captchaVerifyParam: 'CaptchaVerifyParam',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ captchaVerifyParam: '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 { 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,110 @@
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
+ * @remarks
10
+ * The verification result. Valid values:
11
+ *
12
+ * - true: The verification is successful.
13
+ *
14
+ * - false: The verification failed.
15
+ *
16
+ * @example
17
+ * true
18
+ */
19
+ verifyResult?: boolean;
20
+ static names(): { [key: string]: string } {
21
+ return {
22
+ verifyResult: 'VerifyResult',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ verifyResult: 'boolean',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
41
+ export class VerifyCaptchaResponseBody extends $dara.Model {
42
+ /**
43
+ * @remarks
44
+ * The response code.
45
+ *
46
+ * @example
47
+ * Success
48
+ */
49
+ code?: string;
50
+ /**
51
+ * @remarks
52
+ * The response message. The value is success for a successful request.
53
+ *
54
+ * @example
55
+ * success
56
+ */
57
+ message?: string;
58
+ /**
59
+ * @remarks
60
+ * Id of the request
61
+ *
62
+ * @example
63
+ * 95784F***D39FDC5
64
+ */
65
+ requestId?: string;
66
+ /**
67
+ * @remarks
68
+ * The returned result.
69
+ */
70
+ result?: VerifyCaptchaResponseBodyResult;
71
+ /**
72
+ * @remarks
73
+ * Indicates whether the request is successful.
74
+ *
75
+ * @example
76
+ * true
77
+ */
78
+ success?: boolean;
79
+ static names(): { [key: string]: string } {
80
+ return {
81
+ code: 'Code',
82
+ message: 'Message',
83
+ requestId: 'RequestId',
84
+ result: 'Result',
85
+ success: 'Success',
86
+ };
87
+ }
88
+
89
+ static types(): { [key: string]: any } {
90
+ return {
91
+ code: 'string',
92
+ message: 'string',
93
+ requestId: 'string',
94
+ result: VerifyCaptchaResponseBodyResult,
95
+ success: 'boolean',
96
+ };
97
+ }
98
+
99
+ validate() {
100
+ if(this.result && typeof (this.result as any).validate === 'function') {
101
+ (this.result as any).validate();
102
+ }
103
+ super.validate();
104
+ }
105
+
106
+ constructor(map?: { [key: string]: any }) {
107
+ super(map);
108
+ }
109
+ }
110
+
@@ -0,0 +1,44 @@
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
+ * @remarks
8
+ * The verification parameter passed from the client.
9
+ *
10
+ * @example
11
+ * dsjidsjidsjkds*djsjdiskds
12
+ */
13
+ captchaVerifyParam?: string;
14
+ /**
15
+ * @remarks
16
+ * The scene ID.
17
+ *
18
+ * @example
19
+ * abcdefgh
20
+ */
21
+ sceneId?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ captchaVerifyParam: 'CaptchaVerifyParam',
25
+ sceneId: 'SceneId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ captchaVerifyParam: 'string',
32
+ sceneId: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
@@ -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
+