@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,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';