@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
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.VerifyCaptchaResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const VerifyCaptchaResponseBody_1 = require("./VerifyCaptchaResponseBody");
40
+ class VerifyCaptchaResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: VerifyCaptchaResponseBody_1.VerifyCaptchaResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.VerifyCaptchaResponse = VerifyCaptchaResponse;
69
+ //# sourceMappingURL=VerifyCaptchaResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyCaptchaResponse.js","sourceRoot":"","sources":["../../src/models/VerifyCaptchaResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2EAAwE;AAGxE,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAIpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,qDAAyB;SAChC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,sDAiCC"}
@@ -0,0 +1,76 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ /**
3
+ */
4
+ export declare class VerifyCaptchaResponseBodyResult extends $dara.Model {
5
+ /**
6
+ * @remarks
7
+ * The verification result. Valid values:
8
+ *
9
+ * - true: The verification is successful.
10
+ *
11
+ * - false: The verification failed.
12
+ *
13
+ * @example
14
+ * true
15
+ */
16
+ verifyResult?: boolean;
17
+ static names(): {
18
+ [key: string]: string;
19
+ };
20
+ static types(): {
21
+ [key: string]: any;
22
+ };
23
+ validate(): void;
24
+ constructor(map?: {
25
+ [key: string]: any;
26
+ });
27
+ }
28
+ export declare class VerifyCaptchaResponseBody extends $dara.Model {
29
+ /**
30
+ * @remarks
31
+ * The response code.
32
+ *
33
+ * @example
34
+ * Success
35
+ */
36
+ code?: string;
37
+ /**
38
+ * @remarks
39
+ * The response message. The value is success for a successful request.
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
+ /**
54
+ * @remarks
55
+ * The returned result.
56
+ */
57
+ result?: VerifyCaptchaResponseBodyResult;
58
+ /**
59
+ * @remarks
60
+ * Indicates whether the request is successful.
61
+ *
62
+ * @example
63
+ * true
64
+ */
65
+ success?: boolean;
66
+ static names(): {
67
+ [key: string]: string;
68
+ };
69
+ static types(): {
70
+ [key: string]: any;
71
+ };
72
+ validate(): void;
73
+ constructor(map?: {
74
+ [key: string]: any;
75
+ });
76
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.VerifyCaptchaResponseBody = exports.VerifyCaptchaResponseBodyResult = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ /**
40
+ */
41
+ class VerifyCaptchaResponseBodyResult extends $dara.Model {
42
+ static names() {
43
+ return {
44
+ verifyResult: 'VerifyResult',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ verifyResult: 'boolean',
50
+ };
51
+ }
52
+ validate() {
53
+ super.validate();
54
+ }
55
+ constructor(map) {
56
+ super(map);
57
+ }
58
+ }
59
+ exports.VerifyCaptchaResponseBodyResult = VerifyCaptchaResponseBodyResult;
60
+ class VerifyCaptchaResponseBody extends $dara.Model {
61
+ static names() {
62
+ return {
63
+ code: 'Code',
64
+ message: 'Message',
65
+ requestId: 'RequestId',
66
+ result: 'Result',
67
+ success: 'Success',
68
+ };
69
+ }
70
+ static types() {
71
+ return {
72
+ code: 'string',
73
+ message: 'string',
74
+ requestId: 'string',
75
+ result: VerifyCaptchaResponseBodyResult,
76
+ success: 'boolean',
77
+ };
78
+ }
79
+ validate() {
80
+ if (this.result && typeof this.result.validate === 'function') {
81
+ this.result.validate();
82
+ }
83
+ super.validate();
84
+ }
85
+ constructor(map) {
86
+ super(map);
87
+ }
88
+ }
89
+ exports.VerifyCaptchaResponseBody = VerifyCaptchaResponseBody;
90
+ //# sourceMappingURL=VerifyCaptchaResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyCaptchaResponseBody.js","sourceRoot":"","sources":["../../src/models/VerifyCaptchaResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAa9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,SAAS;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhCD,0EAgCC;AAED,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAsCxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,+BAA+B;YACvC,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,8DAoEC"}
@@ -0,0 +1,29 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class VerifyIntelligentCaptchaRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The verification parameter passed from the client.
6
+ *
7
+ * @example
8
+ * dsjidsjidsjkds*djsjdiskds
9
+ */
10
+ captchaVerifyParam?: string;
11
+ /**
12
+ * @remarks
13
+ * The scene ID.
14
+ *
15
+ * @example
16
+ * abcdefgh
17
+ */
18
+ sceneId?: string;
19
+ static names(): {
20
+ [key: string]: string;
21
+ };
22
+ static types(): {
23
+ [key: string]: any;
24
+ };
25
+ validate(): void;
26
+ constructor(map?: {
27
+ [key: string]: any;
28
+ });
29
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.VerifyIntelligentCaptchaRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class VerifyIntelligentCaptchaRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ captchaVerifyParam: 'CaptchaVerifyParam',
43
+ sceneId: 'SceneId',
44
+ };
45
+ }
46
+ static types() {
47
+ return {
48
+ captchaVerifyParam: 'string',
49
+ sceneId: 'string',
50
+ };
51
+ }
52
+ validate() {
53
+ super.validate();
54
+ }
55
+ constructor(map) {
56
+ super(map);
57
+ }
58
+ }
59
+ exports.VerifyIntelligentCaptchaRequest = VerifyIntelligentCaptchaRequest;
60
+ //# sourceMappingURL=VerifyIntelligentCaptchaRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyIntelligentCaptchaRequest.js","sourceRoot":"","sources":["../../src/models/VerifyIntelligentCaptchaRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAiB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,QAAQ;YAC5B,OAAO,EAAE,QAAQ;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,0EAsCC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { VerifyIntelligentCaptchaResponseBody } from "./VerifyIntelligentCaptchaResponseBody";
3
+ export declare class VerifyIntelligentCaptchaResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: VerifyIntelligentCaptchaResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.VerifyIntelligentCaptchaResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const VerifyIntelligentCaptchaResponseBody_1 = require("./VerifyIntelligentCaptchaResponseBody");
40
+ class VerifyIntelligentCaptchaResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: VerifyIntelligentCaptchaResponseBody_1.VerifyIntelligentCaptchaResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.VerifyIntelligentCaptchaResponse = VerifyIntelligentCaptchaResponse;
69
+ //# sourceMappingURL=VerifyIntelligentCaptchaResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyIntelligentCaptchaResponse.js","sourceRoot":"","sources":["../../src/models/VerifyIntelligentCaptchaResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iGAA8F;AAG9F,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAI/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2EAAoC;SAC3C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4EAiCC"}
@@ -0,0 +1,90 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class VerifyIntelligentCaptchaResponseBodyResult extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The certification ID.
6
+ *
7
+ * @example
8
+ * AAAaaaAaAa
9
+ */
10
+ certifyId?: string;
11
+ /**
12
+ * @remarks
13
+ * The result code of the CAPTCHA verification.
14
+ *
15
+ * @example
16
+ * F019
17
+ */
18
+ verifyCode?: string;
19
+ /**
20
+ * @remarks
21
+ * The verification result. Valid values:
22
+ *
23
+ * - true: The verification is successful.
24
+ *
25
+ * - false: The verification fails.
26
+ *
27
+ * @example
28
+ * true
29
+ */
30
+ verifyResult?: boolean;
31
+ static names(): {
32
+ [key: string]: string;
33
+ };
34
+ static types(): {
35
+ [key: string]: any;
36
+ };
37
+ validate(): void;
38
+ constructor(map?: {
39
+ [key: string]: any;
40
+ });
41
+ }
42
+ export declare class VerifyIntelligentCaptchaResponseBody extends $dara.Model {
43
+ /**
44
+ * @remarks
45
+ * The response code.
46
+ *
47
+ * @example
48
+ * Success
49
+ */
50
+ code?: string;
51
+ /**
52
+ * @remarks
53
+ * The response message. The value is success if the request is successful.
54
+ *
55
+ * @example
56
+ * success
57
+ */
58
+ message?: string;
59
+ /**
60
+ * @remarks
61
+ * Id of the request
62
+ *
63
+ * @example
64
+ * 95784F***D39FDC5
65
+ */
66
+ requestId?: string;
67
+ /**
68
+ * @remarks
69
+ * The returned result.
70
+ */
71
+ result?: VerifyIntelligentCaptchaResponseBodyResult;
72
+ /**
73
+ * @remarks
74
+ * Indicates whether the request is successful.
75
+ *
76
+ * @example
77
+ * true
78
+ */
79
+ success?: boolean;
80
+ static names(): {
81
+ [key: string]: string;
82
+ };
83
+ static types(): {
84
+ [key: string]: any;
85
+ };
86
+ validate(): void;
87
+ constructor(map?: {
88
+ [key: string]: any;
89
+ });
90
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.VerifyIntelligentCaptchaResponseBody = exports.VerifyIntelligentCaptchaResponseBodyResult = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class VerifyIntelligentCaptchaResponseBodyResult extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ certifyId: 'CertifyId',
43
+ verifyCode: 'VerifyCode',
44
+ verifyResult: 'VerifyResult',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ certifyId: 'string',
50
+ verifyCode: 'string',
51
+ verifyResult: 'boolean',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.VerifyIntelligentCaptchaResponseBodyResult = VerifyIntelligentCaptchaResponseBodyResult;
62
+ class VerifyIntelligentCaptchaResponseBody extends $dara.Model {
63
+ static names() {
64
+ return {
65
+ code: 'Code',
66
+ message: 'Message',
67
+ requestId: 'RequestId',
68
+ result: 'Result',
69
+ success: 'Success',
70
+ };
71
+ }
72
+ static types() {
73
+ return {
74
+ code: 'string',
75
+ message: 'string',
76
+ requestId: 'string',
77
+ result: VerifyIntelligentCaptchaResponseBodyResult,
78
+ success: 'boolean',
79
+ };
80
+ }
81
+ validate() {
82
+ if (this.result && typeof this.result.validate === 'function') {
83
+ this.result.validate();
84
+ }
85
+ super.validate();
86
+ }
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ }
91
+ exports.VerifyIntelligentCaptchaResponseBody = VerifyIntelligentCaptchaResponseBody;
92
+ //# sourceMappingURL=VerifyIntelligentCaptchaResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyIntelligentCaptchaResponseBody.js","sourceRoot":"","sources":["../../src/models/VerifyIntelligentCaptchaResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0CAA2C,SAAQ,KAAK,CAAC,KAAK;IA6BzE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,SAAS;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,gGAoDC;AAED,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAsCnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,0CAA0C;YAClD,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,oFAoEC"}
@@ -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';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerifyIntelligentCaptchaResponse = exports.VerifyIntelligentCaptchaResponseBody = exports.VerifyIntelligentCaptchaRequest = exports.VerifyCaptchaResponse = exports.VerifyCaptchaResponseBody = exports.VerifyCaptchaRequest = exports.VerifyIntelligentCaptchaResponseBodyResult = exports.VerifyCaptchaResponseBodyResult = void 0;
4
+ var VerifyCaptchaResponseBody_1 = require("./VerifyCaptchaResponseBody");
5
+ Object.defineProperty(exports, "VerifyCaptchaResponseBodyResult", { enumerable: true, get: function () { return VerifyCaptchaResponseBody_1.VerifyCaptchaResponseBodyResult; } });
6
+ var VerifyIntelligentCaptchaResponseBody_1 = require("./VerifyIntelligentCaptchaResponseBody");
7
+ Object.defineProperty(exports, "VerifyIntelligentCaptchaResponseBodyResult", { enumerable: true, get: function () { return VerifyIntelligentCaptchaResponseBody_1.VerifyIntelligentCaptchaResponseBodyResult; } });
8
+ var VerifyCaptchaRequest_1 = require("./VerifyCaptchaRequest");
9
+ Object.defineProperty(exports, "VerifyCaptchaRequest", { enumerable: true, get: function () { return VerifyCaptchaRequest_1.VerifyCaptchaRequest; } });
10
+ var VerifyCaptchaResponseBody_2 = require("./VerifyCaptchaResponseBody");
11
+ Object.defineProperty(exports, "VerifyCaptchaResponseBody", { enumerable: true, get: function () { return VerifyCaptchaResponseBody_2.VerifyCaptchaResponseBody; } });
12
+ var VerifyCaptchaResponse_1 = require("./VerifyCaptchaResponse");
13
+ Object.defineProperty(exports, "VerifyCaptchaResponse", { enumerable: true, get: function () { return VerifyCaptchaResponse_1.VerifyCaptchaResponse; } });
14
+ var VerifyIntelligentCaptchaRequest_1 = require("./VerifyIntelligentCaptchaRequest");
15
+ Object.defineProperty(exports, "VerifyIntelligentCaptchaRequest", { enumerable: true, get: function () { return VerifyIntelligentCaptchaRequest_1.VerifyIntelligentCaptchaRequest; } });
16
+ var VerifyIntelligentCaptchaResponseBody_2 = require("./VerifyIntelligentCaptchaResponseBody");
17
+ Object.defineProperty(exports, "VerifyIntelligentCaptchaResponseBody", { enumerable: true, get: function () { return VerifyIntelligentCaptchaResponseBody_2.VerifyIntelligentCaptchaResponseBody; } });
18
+ var VerifyIntelligentCaptchaResponse_1 = require("./VerifyIntelligentCaptchaResponse");
19
+ Object.defineProperty(exports, "VerifyIntelligentCaptchaResponse", { enumerable: true, get: function () { return VerifyIntelligentCaptchaResponse_1.VerifyIntelligentCaptchaResponse; } });
20
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/models/model.ts"],"names":[],"mappings":";;;AAAA,yEAA8E;AAArE,4IAAA,+BAA+B,OAAA;AACxC,+FAAoG;AAA3F,kKAAA,0CAA0C,OAAA;AACnD,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,qFAAoF;AAA3E,kJAAA,+BAA+B,OAAA;AACxC,+FAA8F;AAArF,4JAAA,oCAAoC,OAAA;AAC7C,uFAAsF;AAA7E,oJAAA,gCAAgC,OAAA"}