@alicloud/rdsai20250507 2.0.4 → 2.1.1

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 (73) hide show
  1. package/dist/client.d.ts +27 -0
  2. package/dist/client.js +92 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatMessagesRequest.d.ts +1 -0
  5. package/dist/models/ChatMessagesRequest.js +2 -0
  6. package/dist/models/ChatMessagesRequest.js.map +1 -1
  7. package/dist/models/ChatMessagesShrinkRequest.d.ts +1 -0
  8. package/dist/models/ChatMessagesShrinkRequest.js +2 -0
  9. package/dist/models/ChatMessagesShrinkRequest.js.map +1 -1
  10. package/dist/models/CreateCustomAgentRequest.d.ts +1 -0
  11. package/dist/models/CreateCustomAgentRequest.js +5 -0
  12. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  13. package/dist/models/CreateCustomAgentResponseBody.d.ts +17 -0
  14. package/dist/models/CreateCustomAgentResponseBody.js +31 -1
  15. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  16. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -0
  17. package/dist/models/CreateCustomAgentShrinkRequest.js +2 -0
  18. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
  19. package/dist/models/GetCustomAgentResponseBody.d.ts +17 -0
  20. package/dist/models/GetCustomAgentResponseBody.js +31 -1
  21. package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
  22. package/dist/models/GetMessagesRequest.d.ts +1 -0
  23. package/dist/models/GetMessagesRequest.js +2 -0
  24. package/dist/models/GetMessagesRequest.js.map +1 -1
  25. package/dist/models/GetMessagesResponseBody.d.ts +15 -0
  26. package/dist/models/GetMessagesResponseBody.js +27 -1
  27. package/dist/models/GetMessagesResponseBody.js.map +1 -1
  28. package/dist/models/ListCustomAgentResponseBody.d.ts +17 -0
  29. package/dist/models/ListCustomAgentResponseBody.js +31 -1
  30. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  31. package/dist/models/ModifyInstancesSslrequest.d.ts +77 -0
  32. package/dist/models/ModifyInstancesSslrequest.js +71 -0
  33. package/dist/models/ModifyInstancesSslrequest.js.map +1 -0
  34. package/dist/models/ModifyInstancesSslresponse.d.ts +19 -0
  35. package/dist/models/ModifyInstancesSslresponse.js +69 -0
  36. package/dist/models/ModifyInstancesSslresponse.js.map +1 -0
  37. package/dist/models/ModifyInstancesSslresponseBody.d.ts +32 -0
  38. package/dist/models/ModifyInstancesSslresponseBody.js +63 -0
  39. package/dist/models/ModifyInstancesSslresponseBody.js.map +1 -0
  40. package/dist/models/ModifyInstancesSslshrinkRequest.d.ts +77 -0
  41. package/dist/models/ModifyInstancesSslshrinkRequest.js +68 -0
  42. package/dist/models/ModifyInstancesSslshrinkRequest.js.map +1 -0
  43. package/dist/models/UpdateCustomAgentRequest.d.ts +1 -0
  44. package/dist/models/UpdateCustomAgentRequest.js +5 -0
  45. package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
  46. package/dist/models/UpdateCustomAgentResponseBody.d.ts +17 -0
  47. package/dist/models/UpdateCustomAgentResponseBody.js +31 -1
  48. package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
  49. package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +1 -0
  50. package/dist/models/UpdateCustomAgentShrinkRequest.js +2 -0
  51. package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -1
  52. package/dist/models/model.d.ts +9 -0
  53. package/dist/models/model.js +32 -14
  54. package/dist/models/model.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/client.ts +108 -0
  57. package/src/models/ChatMessagesRequest.ts +3 -0
  58. package/src/models/ChatMessagesShrinkRequest.ts +3 -0
  59. package/src/models/CreateCustomAgentRequest.ts +6 -0
  60. package/src/models/CreateCustomAgentResponseBody.ts +38 -0
  61. package/src/models/CreateCustomAgentShrinkRequest.ts +3 -0
  62. package/src/models/GetCustomAgentResponseBody.ts +38 -0
  63. package/src/models/GetMessagesRequest.ts +3 -0
  64. package/src/models/GetMessagesResponseBody.ts +32 -0
  65. package/src/models/ListCustomAgentResponseBody.ts +38 -0
  66. package/src/models/ModifyInstancesSslrequest.ts +103 -0
  67. package/src/models/ModifyInstancesSslresponse.ts +40 -0
  68. package/src/models/ModifyInstancesSslresponseBody.ts +50 -0
  69. package/src/models/ModifyInstancesSslshrinkRequest.ts +100 -0
  70. package/src/models/UpdateCustomAgentRequest.ts +6 -0
  71. package/src/models/UpdateCustomAgentResponseBody.ts +38 -0
  72. package/src/models/UpdateCustomAgentShrinkRequest.ts +3 -0
  73. package/src/models/model.ts +9 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifyInstancesSSLResponseBody } from "./ModifyInstancesSslresponseBody";
4
+
5
+
6
+ export class ModifyInstancesSSLResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifyInstancesSSLResponseBody;
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: ModifyInstancesSSLResponseBody,
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,50 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyInstancesSSLResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The RDS Supabase instances whose SSL settings are modified.
9
+ *
10
+ * @example
11
+ * [
12
+ * "ra-supabase-xxx",
13
+ * "ra-supabase-xxx"
14
+ * ]
15
+ */
16
+ instanceNames?: string[];
17
+ /**
18
+ * @remarks
19
+ * The request ID.
20
+ *
21
+ * @example
22
+ * 32DEFB4A-xxxx-ADD5-918E4FD7AB8C
23
+ */
24
+ requestId?: string;
25
+ static names(): { [key: string]: string } {
26
+ return {
27
+ instanceNames: 'InstanceNames',
28
+ requestId: 'RequestId',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ instanceNames: { 'type': 'array', 'itemType': 'string' },
35
+ requestId: 'string',
36
+ };
37
+ }
38
+
39
+ validate() {
40
+ if(Array.isArray(this.instanceNames)) {
41
+ $dara.Model.validateArray(this.instanceNames);
42
+ }
43
+ super.validate();
44
+ }
45
+
46
+ constructor(map?: { [key: string]: any }) {
47
+ super(map);
48
+ }
49
+ }
50
+
@@ -0,0 +1,100 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyInstancesSSLShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The certificate type. Only **custom** is supported.
9
+ *
10
+ * > This parameter is required if **SSLEnabled** is set to **1**.
11
+ *
12
+ * @example
13
+ * custom
14
+ */
15
+ CAType?: string;
16
+ /**
17
+ * @remarks
18
+ * The information about the RDS Supabase instances that you want to configure. You can specify up to 10 instances.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * [
24
+ * "ra-supabase-xxx",
25
+ * "ra-supabase-xxx"
26
+ * ]
27
+ */
28
+ instanceNamesShrink?: string;
29
+ /**
30
+ * @remarks
31
+ * The region ID.
32
+ *
33
+ * @example
34
+ * cn-beijing
35
+ */
36
+ regionId?: string;
37
+ /**
38
+ * @remarks
39
+ * Enables or disables SSL. Valid values:
40
+ *
41
+ * * **1**: enable
42
+ * * **0**: disable
43
+ *
44
+ * This parameter is required.
45
+ *
46
+ * @example
47
+ * 1
48
+ */
49
+ SSLEnabled?: number;
50
+ /**
51
+ * @remarks
52
+ * The content of the custom certificate.
53
+ *
54
+ * > This parameter is required if **CAType** is set to **custom**.
55
+ *
56
+ * @example
57
+ * -----BEGIN CERTIFICATE-----MIID*****QqEP-----END CERTIFICATE-----
58
+ */
59
+ serverCert?: string;
60
+ /**
61
+ * @remarks
62
+ * The private key of the certificate.
63
+ *
64
+ * > This parameter is required if **CAType** is set to **custom**.
65
+ *
66
+ * @example
67
+ * -----BEGIN PRIVATE KEY-----MIIE****ihfg==-----END PRIVATE KEY-----
68
+ */
69
+ serverKey?: string;
70
+ static names(): { [key: string]: string } {
71
+ return {
72
+ CAType: 'CAType',
73
+ instanceNamesShrink: 'InstanceNames',
74
+ regionId: 'RegionId',
75
+ SSLEnabled: 'SSLEnabled',
76
+ serverCert: 'ServerCert',
77
+ serverKey: 'ServerKey',
78
+ };
79
+ }
80
+
81
+ static types(): { [key: string]: any } {
82
+ return {
83
+ CAType: 'string',
84
+ instanceNamesShrink: 'string',
85
+ regionId: 'string',
86
+ SSLEnabled: 'number',
87
+ serverCert: 'string',
88
+ serverKey: 'string',
89
+ };
90
+ }
91
+
92
+ validate() {
93
+ super.validate();
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
@@ -26,6 +26,7 @@ export class UpdateCustomAgentRequest extends $dara.Model {
26
26
  * The ID of the agent.
27
27
  */
28
28
  name?: string;
29
+ skillIds?: string[];
29
30
  /**
30
31
  * @remarks
31
32
  * The name of the agent.
@@ -41,6 +42,7 @@ export class UpdateCustomAgentRequest extends $dara.Model {
41
42
  customAgentId: 'CustomAgentId',
42
43
  enableTools: 'EnableTools',
43
44
  name: 'Name',
45
+ skillIds: 'SkillIds',
44
46
  systemPrompt: 'SystemPrompt',
45
47
  tools: 'Tools',
46
48
  };
@@ -51,12 +53,16 @@ export class UpdateCustomAgentRequest extends $dara.Model {
51
53
  customAgentId: 'string',
52
54
  enableTools: 'boolean',
53
55
  name: 'string',
56
+ skillIds: { 'type': 'array', 'itemType': 'string' },
54
57
  systemPrompt: 'string',
55
58
  tools: { 'type': 'array', 'itemType': 'string' },
56
59
  };
57
60
  }
58
61
 
59
62
  validate() {
63
+ if(Array.isArray(this.skillIds)) {
64
+ $dara.Model.validateArray(this.skillIds);
65
+ }
60
66
  if(Array.isArray(this.tools)) {
61
67
  $dara.Model.validateArray(this.tools);
62
68
  }
@@ -2,6 +2,38 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class UpdateCustomAgentResponseBodySkills extends $dara.Model {
6
+ description?: string;
7
+ id?: string;
8
+ name?: string;
9
+ skillType?: string;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ description: 'Description',
13
+ id: 'Id',
14
+ name: 'Name',
15
+ skillType: 'SkillType',
16
+ };
17
+ }
18
+
19
+ static types(): { [key: string]: any } {
20
+ return {
21
+ description: 'string',
22
+ id: 'string',
23
+ name: 'string',
24
+ skillType: 'string',
25
+ };
26
+ }
27
+
28
+ validate() {
29
+ super.validate();
30
+ }
31
+
32
+ constructor(map?: { [key: string]: any }) {
33
+ super(map);
34
+ }
35
+ }
36
+
5
37
  export class UpdateCustomAgentResponseBody extends $dara.Model {
6
38
  /**
7
39
  * @remarks
@@ -32,6 +64,7 @@ export class UpdateCustomAgentResponseBody extends $dara.Model {
32
64
  * FE9C65D7-930F-57A5-A207-8C396329****
33
65
  */
34
66
  requestId?: string;
67
+ skills?: UpdateCustomAgentResponseBodySkills[];
35
68
  /**
36
69
  * @remarks
37
70
  * The system prompts.
@@ -48,6 +81,7 @@ export class UpdateCustomAgentResponseBody extends $dara.Model {
48
81
  id: 'Id',
49
82
  name: 'Name',
50
83
  requestId: 'RequestId',
84
+ skills: 'Skills',
51
85
  systemPrompt: 'SystemPrompt',
52
86
  tools: 'Tools',
53
87
  };
@@ -59,12 +93,16 @@ export class UpdateCustomAgentResponseBody extends $dara.Model {
59
93
  id: 'string',
60
94
  name: 'string',
61
95
  requestId: 'string',
96
+ skills: { 'type': 'array', 'itemType': UpdateCustomAgentResponseBodySkills },
62
97
  systemPrompt: 'string',
63
98
  tools: { 'type': 'array', 'itemType': 'string' },
64
99
  };
65
100
  }
66
101
 
67
102
  validate() {
103
+ if(Array.isArray(this.skills)) {
104
+ $dara.Model.validateArray(this.skills);
105
+ }
68
106
  if(Array.isArray(this.tools)) {
69
107
  $dara.Model.validateArray(this.tools);
70
108
  }
@@ -26,6 +26,7 @@ export class UpdateCustomAgentShrinkRequest extends $dara.Model {
26
26
  * The ID of the agent.
27
27
  */
28
28
  name?: string;
29
+ skillIdsShrink?: string;
29
30
  /**
30
31
  * @remarks
31
32
  * The name of the agent.
@@ -41,6 +42,7 @@ export class UpdateCustomAgentShrinkRequest extends $dara.Model {
41
42
  customAgentId: 'CustomAgentId',
42
43
  enableTools: 'EnableTools',
43
44
  name: 'Name',
45
+ skillIdsShrink: 'SkillIds',
44
46
  systemPrompt: 'SystemPrompt',
45
47
  toolsShrink: 'Tools',
46
48
  };
@@ -51,6 +53,7 @@ export class UpdateCustomAgentShrinkRequest extends $dara.Model {
51
53
  customAgentId: 'string',
52
54
  enableTools: 'boolean',
53
55
  name: 'string',
56
+ skillIdsShrink: 'string',
54
57
  systemPrompt: 'string',
55
58
  toolsShrink: 'string',
56
59
  };
@@ -1,5 +1,6 @@
1
1
  export { ChatMessagesRequestInputs } from './ChatMessagesRequest';
2
2
  export { CreateAppInstanceRequestDBInstanceConfig } from './CreateAppInstanceRequest';
3
+ export { CreateCustomAgentResponseBodySkills } from './CreateCustomAgentResponseBody';
3
4
  export { DescribeAppInstancesResponseBodyInstances } from './DescribeAppInstancesResponseBody';
4
5
  export { DescribeEventsListResponseBodyEvents } from './DescribeEventsListResponseBody';
5
6
  export { DescribeInstanceAuthInfoResponseBodyApiKeys } from './DescribeInstanceAuthInfoResponseBody';
@@ -10,12 +11,16 @@ export { DescribeInstanceIpWhitelistResponseBodyIpWhiteListGroups } from './Desc
10
11
  export { DescribeInstanceRAGConfigResponseBodyConfigList } from './DescribeInstanceRagconfigResponseBody';
11
12
  export { DescribeInstanceStorageConfigResponseBodyConfigList } from './DescribeInstanceStorageConfigResponseBody';
12
13
  export { GetConversationsResponseBodyData } from './GetConversationsResponseBody';
14
+ export { GetCustomAgentResponseBodySkills } from './GetCustomAgentResponseBody';
15
+ export { GetMessagesResponseBodyDataEvents } from './GetMessagesResponseBody';
13
16
  export { GetMessagesResponseBodyData } from './GetMessagesResponseBody';
14
17
  export { ListCustomAgentResponseBodyData } from './ListCustomAgentResponseBody';
18
+ export { ListCustomAgentResponseBodySkills } from './ListCustomAgentResponseBody';
15
19
  export { ListCustomAgentToolsResponseBodyData } from './ListCustomAgentToolsResponseBody';
16
20
  export { ModifyInstanceAuthConfigRequestConfigList } from './ModifyInstanceAuthConfigRequest';
17
21
  export { ModifyInstanceRAGConfigRequestConfigList } from './ModifyInstanceRagconfigRequest';
18
22
  export { ModifyInstanceStorageConfigRequestConfigList } from './ModifyInstanceStorageConfigRequest';
23
+ export { UpdateCustomAgentResponseBodySkills } from './UpdateCustomAgentResponseBody';
19
24
  export { ChatMessagesRequest } from './ChatMessagesRequest';
20
25
  export { ChatMessagesShrinkRequest } from './ChatMessagesShrinkRequest';
21
26
  export { ChatMessagesResponseBody } from './ChatMessagesResponseBody';
@@ -99,6 +104,10 @@ export { ModifyInstanceStorageConfigRequest } from './ModifyInstanceStorageConfi
99
104
  export { ModifyInstanceStorageConfigShrinkRequest } from './ModifyInstanceStorageConfigShrinkRequest';
100
105
  export { ModifyInstanceStorageConfigResponseBody } from './ModifyInstanceStorageConfigResponseBody';
101
106
  export { ModifyInstanceStorageConfigResponse } from './ModifyInstanceStorageConfigResponse';
107
+ export { ModifyInstancesSSLRequest } from './ModifyInstancesSslrequest';
108
+ export { ModifyInstancesSSLShrinkRequest } from './ModifyInstancesSslshrinkRequest';
109
+ export { ModifyInstancesSSLResponseBody } from './ModifyInstancesSslresponseBody';
110
+ export { ModifyInstancesSSLResponse } from './ModifyInstancesSslresponse';
102
111
  export { ModifyMessagesFeedbacksRequest } from './ModifyMessagesFeedbacksRequest';
103
112
  export { ModifyMessagesFeedbacksResponseBody } from './ModifyMessagesFeedbacksResponseBody';
104
113
  export { ModifyMessagesFeedbacksResponse } from './ModifyMessagesFeedbacksResponse';