@alicloud/bailian20231229 2.4.1 → 2.5.0

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 (61) hide show
  1. package/dist/client.d.ts +72 -0
  2. package/dist/client.js +197 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChangeParseSettingRequest.d.ts +56 -0
  5. package/dist/models/ChangeParseSettingRequest.js +88 -0
  6. package/dist/models/ChangeParseSettingRequest.js.map +1 -0
  7. package/dist/models/ChangeParseSettingResponse.d.ts +19 -0
  8. package/dist/models/ChangeParseSettingResponse.js +69 -0
  9. package/dist/models/ChangeParseSettingResponse.js.map +1 -0
  10. package/dist/models/ChangeParseSettingResponseBody.d.ts +56 -0
  11. package/dist/models/ChangeParseSettingResponseBody.js +90 -0
  12. package/dist/models/ChangeParseSettingResponseBody.js.map +1 -0
  13. package/dist/models/ChangeParseSettingShrinkRequest.d.ts +38 -0
  14. package/dist/models/ChangeParseSettingShrinkRequest.js +64 -0
  15. package/dist/models/ChangeParseSettingShrinkRequest.js.map +1 -0
  16. package/dist/models/GetAvailableParserTypesRequest.d.ts +21 -0
  17. package/dist/models/GetAvailableParserTypesRequest.js +58 -0
  18. package/dist/models/GetAvailableParserTypesRequest.js.map +1 -0
  19. package/dist/models/GetAvailableParserTypesResponse.d.ts +19 -0
  20. package/dist/models/GetAvailableParserTypesResponse.js +69 -0
  21. package/dist/models/GetAvailableParserTypesResponse.js.map +1 -0
  22. package/dist/models/GetAvailableParserTypesResponseBody.d.ts +75 -0
  23. package/dist/models/GetAvailableParserTypesResponseBody.js +116 -0
  24. package/dist/models/GetAvailableParserTypesResponseBody.js.map +1 -0
  25. package/dist/models/GetParseSettingsRequest.d.ts +18 -0
  26. package/dist/models/GetParseSettingsRequest.js +58 -0
  27. package/dist/models/GetParseSettingsRequest.js.map +1 -0
  28. package/dist/models/GetParseSettingsResponse.d.ts +19 -0
  29. package/dist/models/GetParseSettingsResponse.js +69 -0
  30. package/dist/models/GetParseSettingsResponse.js.map +1 -0
  31. package/dist/models/GetParseSettingsResponseBody.d.ts +82 -0
  32. package/dist/models/GetParseSettingsResponseBody.js +120 -0
  33. package/dist/models/GetParseSettingsResponseBody.js.map +1 -0
  34. package/dist/models/HighCodeDeployRequest.d.ts +43 -0
  35. package/dist/models/HighCodeDeployRequest.js +68 -0
  36. package/dist/models/HighCodeDeployRequest.js.map +1 -0
  37. package/dist/models/HighCodeDeployResponse.d.ts +19 -0
  38. package/dist/models/HighCodeDeployResponse.js +69 -0
  39. package/dist/models/HighCodeDeployResponse.js.map +1 -0
  40. package/dist/models/HighCodeDeployResponseBody.d.ts +29 -0
  41. package/dist/models/HighCodeDeployResponseBody.js +64 -0
  42. package/dist/models/HighCodeDeployResponseBody.js.map +1 -0
  43. package/dist/models/model.d.ts +19 -0
  44. package/dist/models/model.js +43 -5
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +218 -0
  48. package/src/models/ChangeParseSettingRequest.ts +90 -0
  49. package/src/models/ChangeParseSettingResponse.ts +40 -0
  50. package/src/models/ChangeParseSettingResponseBody.ts +92 -0
  51. package/src/models/ChangeParseSettingShrinkRequest.ts +57 -0
  52. package/src/models/GetAvailableParserTypesRequest.ts +34 -0
  53. package/src/models/GetAvailableParserTypesResponse.ts +40 -0
  54. package/src/models/GetAvailableParserTypesResponseBody.ts +128 -0
  55. package/src/models/GetParseSettingsRequest.ts +31 -0
  56. package/src/models/GetParseSettingsResponse.ts +40 -0
  57. package/src/models/GetParseSettingsResponseBody.ts +139 -0
  58. package/src/models/HighCodeDeployRequest.ts +66 -0
  59. package/src/models/HighCodeDeployResponse.ts +40 -0
  60. package/src/models/HighCodeDeployResponseBody.ts +48 -0
  61. package/src/models/model.ts +19 -0
@@ -0,0 +1,92 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ChangeParseSettingResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * true
9
+ */
10
+ changeResult?: boolean;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ changeResult: 'ChangeResult',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ changeResult: 'boolean',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class ChangeParseSettingResponseBody extends $dara.Model {
33
+ /**
34
+ * @example
35
+ * InvalidParameter
36
+ */
37
+ code?: string;
38
+ data?: ChangeParseSettingResponseBodyData;
39
+ /**
40
+ * @example
41
+ * User not authorized to operate on the specified resource.
42
+ */
43
+ message?: string;
44
+ /**
45
+ * @example
46
+ * 7BA8ADD9-53D6-53F0-918F-A1E776AD230E
47
+ */
48
+ requestId?: string;
49
+ /**
50
+ * @example
51
+ * 200
52
+ */
53
+ status?: string;
54
+ /**
55
+ * @example
56
+ * true
57
+ */
58
+ success?: boolean;
59
+ static names(): { [key: string]: string } {
60
+ return {
61
+ code: 'Code',
62
+ data: 'Data',
63
+ message: 'Message',
64
+ requestId: 'RequestId',
65
+ status: 'Status',
66
+ success: 'Success',
67
+ };
68
+ }
69
+
70
+ static types(): { [key: string]: any } {
71
+ return {
72
+ code: 'string',
73
+ data: ChangeParseSettingResponseBodyData,
74
+ message: 'string',
75
+ requestId: 'string',
76
+ status: 'string',
77
+ success: 'boolean',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(this.data && typeof (this.data as any).validate === 'function') {
83
+ (this.data as any).validate();
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+
@@ -0,0 +1,57 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ChangeParseSettingShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx
12
+ */
13
+ categoryId?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * pdf
20
+ */
21
+ fileType?: string;
22
+ /**
23
+ * @remarks
24
+ * This parameter is required.
25
+ *
26
+ * @example
27
+ * DOCMIND
28
+ */
29
+ parser?: string;
30
+ parserConfigShrink?: string;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ categoryId: 'CategoryId',
34
+ fileType: 'FileType',
35
+ parser: 'Parser',
36
+ parserConfigShrink: 'ParserConfig',
37
+ };
38
+ }
39
+
40
+ static types(): { [key: string]: any } {
41
+ return {
42
+ categoryId: 'string',
43
+ fileType: 'string',
44
+ parser: 'string',
45
+ parserConfigShrink: 'string',
46
+ };
47
+ }
48
+
49
+ validate() {
50
+ super.validate();
51
+ }
52
+
53
+ constructor(map?: { [key: string]: any }) {
54
+ super(map);
55
+ }
56
+ }
57
+
@@ -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 GetAvailableParserTypesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * pdf
12
+ */
13
+ fileType?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ fileType: 'FileType',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ fileType: '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 { GetAvailableParserTypesResponseBody } from "./GetAvailableParserTypesResponseBody";
4
+
5
+
6
+ export class GetAvailableParserTypesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetAvailableParserTypesResponseBody;
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: GetAvailableParserTypesResponseBody,
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,128 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetAvailableParserTypesResponseBodyDataParserList extends $dara.Model {
6
+ displayName?: string;
7
+ /**
8
+ * @example
9
+ * DOCMIND
10
+ */
11
+ parser?: string;
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ displayName: 'DisplayName',
15
+ parser: 'Parser',
16
+ };
17
+ }
18
+
19
+ static types(): { [key: string]: any } {
20
+ return {
21
+ displayName: 'string',
22
+ parser: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class GetAvailableParserTypesResponseBodyData extends $dara.Model {
36
+ /**
37
+ * @example
38
+ * pdf
39
+ */
40
+ fileType?: string;
41
+ parserList?: GetAvailableParserTypesResponseBodyDataParserList[];
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ fileType: 'FileType',
45
+ parserList: 'ParserList',
46
+ };
47
+ }
48
+
49
+ static types(): { [key: string]: any } {
50
+ return {
51
+ fileType: 'string',
52
+ parserList: { 'type': 'array', 'itemType': GetAvailableParserTypesResponseBodyDataParserList },
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ if(Array.isArray(this.parserList)) {
58
+ $dara.Model.validateArray(this.parserList);
59
+ }
60
+ super.validate();
61
+ }
62
+
63
+ constructor(map?: { [key: string]: any }) {
64
+ super(map);
65
+ }
66
+ }
67
+
68
+ export class GetAvailableParserTypesResponseBody extends $dara.Model {
69
+ /**
70
+ * @example
71
+ * DataCenter.Throttling
72
+ */
73
+ code?: string;
74
+ data?: GetAvailableParserTypesResponseBodyData;
75
+ /**
76
+ * @example
77
+ * User not authorized to operate on the specified resource
78
+ */
79
+ message?: string;
80
+ /**
81
+ * @example
82
+ * 17204B98-7734-4F9A-8464-2446XXXXXXX
83
+ */
84
+ requestId?: string;
85
+ /**
86
+ * @example
87
+ * 200
88
+ */
89
+ status?: string;
90
+ /**
91
+ * @example
92
+ * true
93
+ */
94
+ success?: boolean;
95
+ static names(): { [key: string]: string } {
96
+ return {
97
+ code: 'Code',
98
+ data: 'Data',
99
+ message: 'Message',
100
+ requestId: 'RequestId',
101
+ status: 'Status',
102
+ success: 'Success',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ code: 'string',
109
+ data: GetAvailableParserTypesResponseBodyData,
110
+ message: 'string',
111
+ requestId: 'string',
112
+ status: 'string',
113
+ success: 'boolean',
114
+ };
115
+ }
116
+
117
+ validate() {
118
+ if(this.data && typeof (this.data as any).validate === 'function') {
119
+ (this.data as any).validate();
120
+ }
121
+ super.validate();
122
+ }
123
+
124
+ constructor(map?: { [key: string]: any }) {
125
+ super(map);
126
+ }
127
+ }
128
+
@@ -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 GetParseSettingsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx
9
+ */
10
+ categoryId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ categoryId: 'CategoryId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ categoryId: '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 { GetParseSettingsResponseBody } from "./GetParseSettingsResponseBody";
4
+
5
+
6
+ export class GetParseSettingsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetParseSettingsResponseBody;
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: GetParseSettingsResponseBody,
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,139 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetParseSettingsResponseBodyDataParserConfig extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * - qwen-vl-max
9
+ * - qwen-vl-plus
10
+ */
11
+ modelName?: string;
12
+ modelPrompt?: string;
13
+ static names(): { [key: string]: string } {
14
+ return {
15
+ modelName: 'ModelName',
16
+ modelPrompt: 'ModelPrompt',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ modelName: 'string',
23
+ modelPrompt: 'string',
24
+ };
25
+ }
26
+
27
+ validate() {
28
+ super.validate();
29
+ }
30
+
31
+ constructor(map?: { [key: string]: any }) {
32
+ super(map);
33
+ }
34
+ }
35
+
36
+ export class GetParseSettingsResponseBodyData extends $dara.Model {
37
+ /**
38
+ * @example
39
+ * pdf
40
+ */
41
+ fileType?: string;
42
+ /**
43
+ * @example
44
+ * DOCMIND
45
+ */
46
+ parser?: string;
47
+ parserConfig?: GetParseSettingsResponseBodyDataParserConfig;
48
+ parserDisplayName?: string;
49
+ static names(): { [key: string]: string } {
50
+ return {
51
+ fileType: 'FileType',
52
+ parser: 'Parser',
53
+ parserConfig: 'ParserConfig',
54
+ parserDisplayName: 'ParserDisplayName',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ fileType: 'string',
61
+ parser: 'string',
62
+ parserConfig: GetParseSettingsResponseBodyDataParserConfig,
63
+ parserDisplayName: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(this.parserConfig && typeof (this.parserConfig as any).validate === 'function') {
69
+ (this.parserConfig as any).validate();
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
79
+ export class GetParseSettingsResponseBody extends $dara.Model {
80
+ /**
81
+ * @example
82
+ * success
83
+ */
84
+ code?: string;
85
+ data?: GetParseSettingsResponseBodyData[];
86
+ /**
87
+ * @example
88
+ * workspace id is null or invalid.
89
+ */
90
+ message?: string;
91
+ /**
92
+ * @example
93
+ * 35A267BF-xxxx-54DB-8394-AA3B0742D833
94
+ */
95
+ requestId?: string;
96
+ /**
97
+ * @example
98
+ * 200
99
+ */
100
+ status?: string;
101
+ /**
102
+ * @example
103
+ * True
104
+ */
105
+ success?: boolean;
106
+ static names(): { [key: string]: string } {
107
+ return {
108
+ code: 'Code',
109
+ data: 'Data',
110
+ message: 'Message',
111
+ requestId: 'RequestId',
112
+ status: 'Status',
113
+ success: 'Success',
114
+ };
115
+ }
116
+
117
+ static types(): { [key: string]: any } {
118
+ return {
119
+ code: 'string',
120
+ data: { 'type': 'array', 'itemType': GetParseSettingsResponseBodyData },
121
+ message: 'string',
122
+ requestId: 'string',
123
+ status: 'string',
124
+ success: 'boolean',
125
+ };
126
+ }
127
+
128
+ validate() {
129
+ if(Array.isArray(this.data)) {
130
+ $dara.Model.validateArray(this.data);
131
+ }
132
+ super.validate();
133
+ }
134
+
135
+ constructor(map?: { [key: string]: any }) {
136
+ super(map);
137
+ }
138
+ }
139
+
@@ -0,0 +1,66 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class HighCodeDeployRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 智能客服agent
9
+ */
10
+ agentDesc?: string;
11
+ /**
12
+ * @example
13
+ * 2000013
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @example
18
+ * mma_test_02
19
+ */
20
+ agentName?: string;
21
+ /**
22
+ * @example
23
+ * xxxxx.whl
24
+ */
25
+ sourceCodeName?: string;
26
+ /**
27
+ * @example
28
+ * https://bailian-application-developer-code.oss-cn-beijing.aliyuncs.com/xxxxx.whl
29
+ */
30
+ sourceCodeOssUrl?: string;
31
+ /**
32
+ * @example
33
+ * 0
34
+ */
35
+ telemetryEnabled?: boolean;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ agentDesc: 'agentDesc',
39
+ agentId: 'agentId',
40
+ agentName: 'agentName',
41
+ sourceCodeName: 'sourceCodeName',
42
+ sourceCodeOssUrl: 'sourceCodeOssUrl',
43
+ telemetryEnabled: 'telemetryEnabled',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ agentDesc: 'string',
50
+ agentId: 'string',
51
+ agentName: 'string',
52
+ sourceCodeName: 'string',
53
+ sourceCodeOssUrl: 'string',
54
+ telemetryEnabled: 'boolean',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { HighCodeDeployResponseBody } from "./HighCodeDeployResponseBody";
4
+
5
+
6
+ export class HighCodeDeployResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: HighCodeDeployResponseBody;
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: HighCodeDeployResponseBody,
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
+