@alicloud/polardb20170801 7.1.0 → 7.2.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 (144) hide show
  1. package/dist/client.d.ts +128 -8
  2. package/dist/client.js +410 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDbnodesRequest.d.ts +34 -54
  5. package/dist/models/CreateDbnodesRequest.js.map +1 -1
  6. package/dist/models/CreateDbnodesResponseBody.d.ts +1 -1
  7. package/dist/models/DescribeApikeyAttributeRequest.d.ts +12 -0
  8. package/dist/models/DescribeApikeyAttributeRequest.js.map +1 -1
  9. package/dist/models/DescribeApikeyAttributeResponseBody.d.ts +81 -0
  10. package/dist/models/DescribeApikeyAttributeResponseBody.js.map +1 -1
  11. package/dist/models/DescribePolarClawAgentFileRequest.d.ts +43 -0
  12. package/dist/models/DescribePolarClawAgentFileRequest.js +62 -0
  13. package/dist/models/DescribePolarClawAgentFileRequest.js.map +1 -0
  14. package/dist/models/DescribePolarClawAgentFileResponse.d.ts +19 -0
  15. package/dist/models/DescribePolarClawAgentFileResponse.js +69 -0
  16. package/dist/models/DescribePolarClawAgentFileResponse.js.map +1 -0
  17. package/dist/models/DescribePolarClawAgentFileResponseBody.d.ts +126 -0
  18. package/dist/models/DescribePolarClawAgentFileResponseBody.js +102 -0
  19. package/dist/models/DescribePolarClawAgentFileResponseBody.js.map +1 -0
  20. package/dist/models/DescribePolarClawAgentToolsRequest.d.ts +41 -0
  21. package/dist/models/DescribePolarClawAgentToolsRequest.js +62 -0
  22. package/dist/models/DescribePolarClawAgentToolsRequest.js.map +1 -0
  23. package/dist/models/DescribePolarClawAgentToolsResponse.d.ts +19 -0
  24. package/dist/models/DescribePolarClawAgentToolsResponse.js +69 -0
  25. package/dist/models/DescribePolarClawAgentToolsResponse.js.map +1 -0
  26. package/dist/models/DescribePolarClawAgentToolsResponseBody.d.ts +221 -0
  27. package/dist/models/DescribePolarClawAgentToolsResponseBody.js +194 -0
  28. package/dist/models/DescribePolarClawAgentToolsResponseBody.js.map +1 -0
  29. package/dist/models/DescribePolarClawAgentsResponseBody.d.ts +42 -2
  30. package/dist/models/DescribePolarClawAgentsResponseBody.js.map +1 -1
  31. package/dist/models/DescribePolarClawSkillDetailRequest.d.ts +33 -0
  32. package/dist/models/DescribePolarClawSkillDetailRequest.js +60 -0
  33. package/dist/models/DescribePolarClawSkillDetailRequest.js.map +1 -0
  34. package/dist/models/DescribePolarClawSkillDetailResponse.d.ts +19 -0
  35. package/dist/models/DescribePolarClawSkillDetailResponse.js +69 -0
  36. package/dist/models/DescribePolarClawSkillDetailResponse.js.map +1 -0
  37. package/dist/models/DescribePolarClawSkillDetailResponseBody.d.ts +269 -0
  38. package/dist/models/DescribePolarClawSkillDetailResponseBody.js +193 -0
  39. package/dist/models/DescribePolarClawSkillDetailResponseBody.js.map +1 -0
  40. package/dist/models/InstallPolarClawSkillRequest.d.ts +63 -0
  41. package/dist/models/InstallPolarClawSkillRequest.js +68 -0
  42. package/dist/models/InstallPolarClawSkillRequest.js.map +1 -0
  43. package/dist/models/InstallPolarClawSkillResponse.d.ts +19 -0
  44. package/dist/models/InstallPolarClawSkillResponse.js +69 -0
  45. package/dist/models/InstallPolarClawSkillResponse.js.map +1 -0
  46. package/dist/models/InstallPolarClawSkillResponseBody.d.ts +77 -0
  47. package/dist/models/InstallPolarClawSkillResponseBody.js +72 -0
  48. package/dist/models/InstallPolarClawSkillResponseBody.js.map +1 -0
  49. package/dist/models/ModifyDbnodeClassRequest.d.ts +23 -32
  50. package/dist/models/ModifyDbnodeClassRequest.js.map +1 -1
  51. package/dist/models/ModifyDbnodeClassResponseBody.d.ts +1 -1
  52. package/dist/models/SearchPolarClawSkillsRequest.d.ts +39 -0
  53. package/dist/models/SearchPolarClawSkillsRequest.js +62 -0
  54. package/dist/models/SearchPolarClawSkillsRequest.js.map +1 -0
  55. package/dist/models/SearchPolarClawSkillsResponse.d.ts +19 -0
  56. package/dist/models/SearchPolarClawSkillsResponse.js +69 -0
  57. package/dist/models/SearchPolarClawSkillsResponse.js.map +1 -0
  58. package/dist/models/SearchPolarClawSkillsResponseBody.d.ts +110 -0
  59. package/dist/models/SearchPolarClawSkillsResponseBody.js +98 -0
  60. package/dist/models/SearchPolarClawSkillsResponseBody.js.map +1 -0
  61. package/dist/models/UpdatePolarClawAgentRequest.d.ts +16 -10
  62. package/dist/models/UpdatePolarClawAgentRequest.js.map +1 -1
  63. package/dist/models/UpdatePolarClawAgentResponseBody.d.ts +12 -12
  64. package/dist/models/UpdatePolarClawAgentShrinkRequest.d.ts +14 -8
  65. package/dist/models/UpdatePolarClawAgentShrinkRequest.js.map +1 -1
  66. package/dist/models/UpdatePolarClawAgentSkillsRequest.d.ts +41 -0
  67. package/dist/models/UpdatePolarClawAgentSkillsRequest.js +65 -0
  68. package/dist/models/UpdatePolarClawAgentSkillsRequest.js.map +1 -0
  69. package/dist/models/UpdatePolarClawAgentSkillsResponse.d.ts +19 -0
  70. package/dist/models/UpdatePolarClawAgentSkillsResponse.js +69 -0
  71. package/dist/models/UpdatePolarClawAgentSkillsResponse.js.map +1 -0
  72. package/dist/models/UpdatePolarClawAgentSkillsResponseBody.d.ts +66 -0
  73. package/dist/models/UpdatePolarClawAgentSkillsResponseBody.js +73 -0
  74. package/dist/models/UpdatePolarClawAgentSkillsResponseBody.js.map +1 -0
  75. package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.d.ts +41 -0
  76. package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.js +62 -0
  77. package/dist/models/UpdatePolarClawAgentSkillsShrinkRequest.js.map +1 -0
  78. package/dist/models/UpdatePolarClawAgentToolsRequest.d.ts +65 -0
  79. package/dist/models/UpdatePolarClawAgentToolsRequest.js +77 -0
  80. package/dist/models/UpdatePolarClawAgentToolsRequest.js.map +1 -0
  81. package/dist/models/UpdatePolarClawAgentToolsResponse.d.ts +19 -0
  82. package/dist/models/UpdatePolarClawAgentToolsResponse.js +69 -0
  83. package/dist/models/UpdatePolarClawAgentToolsResponse.js.map +1 -0
  84. package/dist/models/UpdatePolarClawAgentToolsResponseBody.d.ts +101 -0
  85. package/dist/models/UpdatePolarClawAgentToolsResponseBody.js +107 -0
  86. package/dist/models/UpdatePolarClawAgentToolsResponseBody.js.map +1 -0
  87. package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.d.ts +65 -0
  88. package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.js +68 -0
  89. package/dist/models/UpdatePolarClawAgentToolsShrinkRequest.js.map +1 -0
  90. package/dist/models/UpdatePolarClawSkillRequest.d.ts +59 -0
  91. package/dist/models/UpdatePolarClawSkillRequest.js +69 -0
  92. package/dist/models/UpdatePolarClawSkillRequest.js.map +1 -0
  93. package/dist/models/UpdatePolarClawSkillResponse.d.ts +19 -0
  94. package/dist/models/UpdatePolarClawSkillResponse.js +69 -0
  95. package/dist/models/UpdatePolarClawSkillResponse.js.map +1 -0
  96. package/dist/models/UpdatePolarClawSkillResponseBody.d.ts +93 -0
  97. package/dist/models/UpdatePolarClawSkillResponseBody.js +97 -0
  98. package/dist/models/UpdatePolarClawSkillResponseBody.js.map +1 -0
  99. package/dist/models/UpdatePolarClawSkillShrinkRequest.d.ts +57 -0
  100. package/dist/models/UpdatePolarClawSkillShrinkRequest.js +66 -0
  101. package/dist/models/UpdatePolarClawSkillShrinkRequest.js.map +1 -0
  102. package/dist/models/model.d.ts +39 -0
  103. package/dist/models/model.js +105 -27
  104. package/dist/models/model.js.map +1 -1
  105. package/package.json +1 -1
  106. package/src/client.ts +462 -8
  107. package/src/models/CreateDbnodesRequest.ts +34 -54
  108. package/src/models/CreateDbnodesResponseBody.ts +1 -1
  109. package/src/models/DescribeApikeyAttributeRequest.ts +12 -0
  110. package/src/models/DescribeApikeyAttributeResponseBody.ts +81 -0
  111. package/src/models/DescribePolarClawAgentFileRequest.ts +60 -0
  112. package/src/models/DescribePolarClawAgentFileResponse.ts +40 -0
  113. package/src/models/DescribePolarClawAgentFileResponseBody.ts +174 -0
  114. package/src/models/DescribePolarClawAgentToolsRequest.ts +58 -0
  115. package/src/models/DescribePolarClawAgentToolsResponse.ts +40 -0
  116. package/src/models/DescribePolarClawAgentToolsResponseBody.ts +334 -0
  117. package/src/models/DescribePolarClawAgentsResponseBody.ts +42 -2
  118. package/src/models/DescribePolarClawSkillDetailRequest.ts +48 -0
  119. package/src/models/DescribePolarClawSkillDetailResponse.ts +40 -0
  120. package/src/models/DescribePolarClawSkillDetailResponseBody.ts +379 -0
  121. package/src/models/InstallPolarClawSkillRequest.ts +86 -0
  122. package/src/models/InstallPolarClawSkillResponse.ts +40 -0
  123. package/src/models/InstallPolarClawSkillResponseBody.ts +104 -0
  124. package/src/models/ModifyDbnodeClassRequest.ts +23 -32
  125. package/src/models/ModifyDbnodeClassResponseBody.ts +1 -1
  126. package/src/models/SearchPolarClawSkillsRequest.ts +56 -0
  127. package/src/models/SearchPolarClawSkillsResponse.ts +40 -0
  128. package/src/models/SearchPolarClawSkillsResponseBody.ts +154 -0
  129. package/src/models/UpdatePolarClawAgentRequest.ts +16 -10
  130. package/src/models/UpdatePolarClawAgentResponseBody.ts +12 -12
  131. package/src/models/UpdatePolarClawAgentShrinkRequest.ts +14 -8
  132. package/src/models/UpdatePolarClawAgentSkillsRequest.ts +61 -0
  133. package/src/models/UpdatePolarClawAgentSkillsResponse.ts +40 -0
  134. package/src/models/UpdatePolarClawAgentSkillsResponseBody.ts +94 -0
  135. package/src/models/UpdatePolarClawAgentSkillsShrinkRequest.ts +58 -0
  136. package/src/models/UpdatePolarClawAgentToolsRequest.ts +97 -0
  137. package/src/models/UpdatePolarClawAgentToolsResponse.ts +40 -0
  138. package/src/models/UpdatePolarClawAgentToolsResponseBody.ts +154 -0
  139. package/src/models/UpdatePolarClawAgentToolsShrinkRequest.ts +88 -0
  140. package/src/models/UpdatePolarClawSkillRequest.ts +81 -0
  141. package/src/models/UpdatePolarClawSkillResponse.ts +40 -0
  142. package/src/models/UpdatePolarClawSkillResponseBody.ts +134 -0
  143. package/src/models/UpdatePolarClawSkillShrinkRequest.ts +78 -0
  144. package/src/models/model.ts +39 -0
@@ -0,0 +1,61 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawAgentSkillsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Agent ID
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * work
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @remarks
18
+ * The application ID.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * pa-xxx
24
+ */
25
+ applicationId?: string;
26
+ /**
27
+ * @remarks
28
+ * The skill allowlist. A value of null indicates that all skills are allowed.
29
+ *
30
+ * @example
31
+ * ["alibacloud-rds-copilot"]
32
+ */
33
+ skills?: string[];
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ agentId: 'AgentId',
37
+ applicationId: 'ApplicationId',
38
+ skills: 'Skills',
39
+ };
40
+ }
41
+
42
+ static types(): { [key: string]: any } {
43
+ return {
44
+ agentId: 'string',
45
+ applicationId: 'string',
46
+ skills: { 'type': 'array', 'itemType': 'string' },
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ if(Array.isArray(this.skills)) {
52
+ $dara.Model.validateArray(this.skills);
53
+ }
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdatePolarClawAgentSkillsResponseBody } from "./UpdatePolarClawAgentSkillsResponseBody";
4
+
5
+
6
+ export class UpdatePolarClawAgentSkillsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdatePolarClawAgentSkillsResponseBody;
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: UpdatePolarClawAgentSkillsResponseBody,
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 UpdatePolarClawAgentSkillsResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Agent ID
9
+ *
10
+ * @example
11
+ * work
12
+ */
13
+ agentId?: string;
14
+ /**
15
+ * @remarks
16
+ * The application ID.
17
+ *
18
+ * @example
19
+ * pa-xxx
20
+ */
21
+ applicationId?: string;
22
+ /**
23
+ * @remarks
24
+ * The return code.
25
+ *
26
+ * @example
27
+ * 200
28
+ */
29
+ code?: number;
30
+ /**
31
+ * @remarks
32
+ * The response message.
33
+ *
34
+ * @example
35
+ * success
36
+ */
37
+ message?: string;
38
+ /**
39
+ * @remarks
40
+ * Indicates whether the operation was successful.
41
+ *
42
+ * @example
43
+ * true
44
+ */
45
+ ok?: boolean;
46
+ /**
47
+ * @remarks
48
+ * Id of the request
49
+ *
50
+ * @example
51
+ * F45FFACC-xxx
52
+ */
53
+ requestId?: string;
54
+ /**
55
+ * @remarks
56
+ * The updated skill list.
57
+ */
58
+ skills?: string[];
59
+ static names(): { [key: string]: string } {
60
+ return {
61
+ agentId: 'AgentId',
62
+ applicationId: 'ApplicationId',
63
+ code: 'Code',
64
+ message: 'Message',
65
+ ok: 'Ok',
66
+ requestId: 'RequestId',
67
+ skills: 'Skills',
68
+ };
69
+ }
70
+
71
+ static types(): { [key: string]: any } {
72
+ return {
73
+ agentId: 'string',
74
+ applicationId: 'string',
75
+ code: 'number',
76
+ message: 'string',
77
+ ok: 'boolean',
78
+ requestId: 'string',
79
+ skills: { 'type': 'array', 'itemType': 'string' },
80
+ };
81
+ }
82
+
83
+ validate() {
84
+ if(Array.isArray(this.skills)) {
85
+ $dara.Model.validateArray(this.skills);
86
+ }
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
@@ -0,0 +1,58 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawAgentSkillsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Agent ID
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * work
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @remarks
18
+ * The application ID.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * pa-xxx
24
+ */
25
+ applicationId?: string;
26
+ /**
27
+ * @remarks
28
+ * The skill allowlist. A value of null indicates that all skills are allowed.
29
+ *
30
+ * @example
31
+ * ["alibacloud-rds-copilot"]
32
+ */
33
+ skillsShrink?: string;
34
+ static names(): { [key: string]: string } {
35
+ return {
36
+ agentId: 'AgentId',
37
+ applicationId: 'ApplicationId',
38
+ skillsShrink: 'Skills',
39
+ };
40
+ }
41
+
42
+ static types(): { [key: string]: any } {
43
+ return {
44
+ agentId: 'string',
45
+ applicationId: 'string',
46
+ skillsShrink: 'string',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
@@ -0,0 +1,97 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawAgentToolsRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Agent ID
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * work
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @remarks
18
+ * The list of explicitly allowed tools.
19
+ *
20
+ * @example
21
+ * ["read","write","exec"]
22
+ */
23
+ allow?: string[];
24
+ /**
25
+ * @remarks
26
+ * The list of additionally allowed tools.
27
+ *
28
+ * @example
29
+ * ["send_message"]
30
+ */
31
+ alsoAllow?: string[];
32
+ /**
33
+ * @remarks
34
+ * The application ID.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * pa-xxx
40
+ */
41
+ applicationId?: string;
42
+ /**
43
+ * @remarks
44
+ * The list of denied tools.
45
+ *
46
+ * @example
47
+ * ["exec"]
48
+ */
49
+ deny?: string[];
50
+ /**
51
+ * @remarks
52
+ * The tool profile.
53
+ *
54
+ * @example
55
+ * coding
56
+ */
57
+ profile?: string;
58
+ static names(): { [key: string]: string } {
59
+ return {
60
+ agentId: 'AgentId',
61
+ allow: 'Allow',
62
+ alsoAllow: 'AlsoAllow',
63
+ applicationId: 'ApplicationId',
64
+ deny: 'Deny',
65
+ profile: 'Profile',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ agentId: 'string',
72
+ allow: { 'type': 'array', 'itemType': 'string' },
73
+ alsoAllow: { 'type': 'array', 'itemType': 'string' },
74
+ applicationId: 'string',
75
+ deny: { 'type': 'array', 'itemType': 'string' },
76
+ profile: 'string',
77
+ };
78
+ }
79
+
80
+ validate() {
81
+ if(Array.isArray(this.allow)) {
82
+ $dara.Model.validateArray(this.allow);
83
+ }
84
+ if(Array.isArray(this.alsoAllow)) {
85
+ $dara.Model.validateArray(this.alsoAllow);
86
+ }
87
+ if(Array.isArray(this.deny)) {
88
+ $dara.Model.validateArray(this.deny);
89
+ }
90
+ super.validate();
91
+ }
92
+
93
+ constructor(map?: { [key: string]: any }) {
94
+ super(map);
95
+ }
96
+ }
97
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdatePolarClawAgentToolsResponseBody } from "./UpdatePolarClawAgentToolsResponseBody";
4
+
5
+
6
+ export class UpdatePolarClawAgentToolsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdatePolarClawAgentToolsResponseBody;
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: UpdatePolarClawAgentToolsResponseBody,
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,154 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawAgentToolsResponseBodyTools extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The list of explicitly allowed tools.
9
+ */
10
+ allow?: string[];
11
+ /**
12
+ * @remarks
13
+ * The list of additionally allowed tools.
14
+ */
15
+ alsoAllow?: string[];
16
+ /**
17
+ * @remarks
18
+ * The list of denied tools.
19
+ */
20
+ deny?: string[];
21
+ /**
22
+ * @remarks
23
+ * The tool profile.
24
+ *
25
+ * @example
26
+ * coding
27
+ */
28
+ profile?: string;
29
+ static names(): { [key: string]: string } {
30
+ return {
31
+ allow: 'Allow',
32
+ alsoAllow: 'AlsoAllow',
33
+ deny: 'Deny',
34
+ profile: 'Profile',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ allow: { 'type': 'array', 'itemType': 'string' },
41
+ alsoAllow: { 'type': 'array', 'itemType': 'string' },
42
+ deny: { 'type': 'array', 'itemType': 'string' },
43
+ profile: 'string',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ if(Array.isArray(this.allow)) {
49
+ $dara.Model.validateArray(this.allow);
50
+ }
51
+ if(Array.isArray(this.alsoAllow)) {
52
+ $dara.Model.validateArray(this.alsoAllow);
53
+ }
54
+ if(Array.isArray(this.deny)) {
55
+ $dara.Model.validateArray(this.deny);
56
+ }
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
65
+ export class UpdatePolarClawAgentToolsResponseBody extends $dara.Model {
66
+ /**
67
+ * @remarks
68
+ * Agent ID
69
+ *
70
+ * @example
71
+ * work
72
+ */
73
+ agentId?: string;
74
+ /**
75
+ * @remarks
76
+ * The application ID.
77
+ *
78
+ * @example
79
+ * pa-xxx
80
+ */
81
+ applicationId?: string;
82
+ /**
83
+ * @remarks
84
+ * The status code.
85
+ *
86
+ * @example
87
+ * 200
88
+ */
89
+ code?: number;
90
+ /**
91
+ * @remarks
92
+ * The response message.
93
+ *
94
+ * @example
95
+ * success
96
+ */
97
+ message?: string;
98
+ /**
99
+ * @remarks
100
+ * Indicates whether the operation was successful.
101
+ *
102
+ * @example
103
+ * true
104
+ */
105
+ ok?: boolean;
106
+ /**
107
+ * @remarks
108
+ * Id of the request
109
+ *
110
+ * @example
111
+ * F45FFACC-xxx
112
+ */
113
+ requestId?: string;
114
+ /**
115
+ * @remarks
116
+ * The updated tool configuration.
117
+ */
118
+ tools?: UpdatePolarClawAgentToolsResponseBodyTools;
119
+ static names(): { [key: string]: string } {
120
+ return {
121
+ agentId: 'AgentId',
122
+ applicationId: 'ApplicationId',
123
+ code: 'Code',
124
+ message: 'Message',
125
+ ok: 'Ok',
126
+ requestId: 'RequestId',
127
+ tools: 'Tools',
128
+ };
129
+ }
130
+
131
+ static types(): { [key: string]: any } {
132
+ return {
133
+ agentId: 'string',
134
+ applicationId: 'string',
135
+ code: 'number',
136
+ message: 'string',
137
+ ok: 'boolean',
138
+ requestId: 'string',
139
+ tools: UpdatePolarClawAgentToolsResponseBodyTools,
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(this.tools && typeof (this.tools as any).validate === 'function') {
145
+ (this.tools as any).validate();
146
+ }
147
+ super.validate();
148
+ }
149
+
150
+ constructor(map?: { [key: string]: any }) {
151
+ super(map);
152
+ }
153
+ }
154
+
@@ -0,0 +1,88 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawAgentToolsShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Agent ID
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * work
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @remarks
18
+ * The list of explicitly allowed tools.
19
+ *
20
+ * @example
21
+ * ["read","write","exec"]
22
+ */
23
+ allowShrink?: string;
24
+ /**
25
+ * @remarks
26
+ * The list of additionally allowed tools.
27
+ *
28
+ * @example
29
+ * ["send_message"]
30
+ */
31
+ alsoAllowShrink?: string;
32
+ /**
33
+ * @remarks
34
+ * The application ID.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * pa-xxx
40
+ */
41
+ applicationId?: string;
42
+ /**
43
+ * @remarks
44
+ * The list of denied tools.
45
+ *
46
+ * @example
47
+ * ["exec"]
48
+ */
49
+ denyShrink?: string;
50
+ /**
51
+ * @remarks
52
+ * The tool profile.
53
+ *
54
+ * @example
55
+ * coding
56
+ */
57
+ profile?: string;
58
+ static names(): { [key: string]: string } {
59
+ return {
60
+ agentId: 'AgentId',
61
+ allowShrink: 'Allow',
62
+ alsoAllowShrink: 'AlsoAllow',
63
+ applicationId: 'ApplicationId',
64
+ denyShrink: 'Deny',
65
+ profile: 'Profile',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ agentId: 'string',
72
+ allowShrink: 'string',
73
+ alsoAllowShrink: 'string',
74
+ applicationId: 'string',
75
+ denyShrink: 'string',
76
+ profile: 'string',
77
+ };
78
+ }
79
+
80
+ validate() {
81
+ super.validate();
82
+ }
83
+
84
+ constructor(map?: { [key: string]: any }) {
85
+ super(map);
86
+ }
87
+ }
88
+
@@ -0,0 +1,81 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdatePolarClawSkillRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The Skill API key. An empty string indicates that the key is deleted.
9
+ *
10
+ * @example
11
+ * my-api
12
+ */
13
+ apiKey?: string;
14
+ /**
15
+ * @remarks
16
+ * The application ID.
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * pa-xxx
22
+ */
23
+ applicationId?: string;
24
+ /**
25
+ * @remarks
26
+ * Specifies whether to enable the Skill.
27
+ *
28
+ * @example
29
+ * true
30
+ */
31
+ enabled?: boolean;
32
+ /**
33
+ * @remarks
34
+ * The environment variables as a key-value map. A null value indicates that the variable is deleted.
35
+ *
36
+ * @example
37
+ * {"NETA_TOKEN":"my-token"}
38
+ */
39
+ env?: { [key: string]: string };
40
+ /**
41
+ * @remarks
42
+ * The Skill identifier key.
43
+ *
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * alibacloud-rds-copilot
48
+ */
49
+ skillKey?: string;
50
+ static names(): { [key: string]: string } {
51
+ return {
52
+ apiKey: 'ApiKey',
53
+ applicationId: 'ApplicationId',
54
+ enabled: 'Enabled',
55
+ env: 'Env',
56
+ skillKey: 'SkillKey',
57
+ };
58
+ }
59
+
60
+ static types(): { [key: string]: any } {
61
+ return {
62
+ apiKey: 'string',
63
+ applicationId: 'string',
64
+ enabled: 'boolean',
65
+ env: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
66
+ skillKey: 'string',
67
+ };
68
+ }
69
+
70
+ validate() {
71
+ if(this.env) {
72
+ $dara.Model.validateMap(this.env);
73
+ }
74
+ super.validate();
75
+ }
76
+
77
+ constructor(map?: { [key: string]: any }) {
78
+ super(map);
79
+ }
80
+ }
81
+