@alicloud/mse20190531 6.18.1 → 6.19.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.
- package/dist/client.d.ts +60 -0
- package/dist/client.js +218 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateNacosMcpServerRequest.d.ts +64 -0
- package/dist/models/CreateNacosMcpServerRequest.js +72 -0
- package/dist/models/CreateNacosMcpServerRequest.js.map +1 -0
- package/dist/models/CreateNacosMcpServerResponse.d.ts +19 -0
- package/dist/models/CreateNacosMcpServerResponse.js +69 -0
- package/dist/models/CreateNacosMcpServerResponse.js.map +1 -0
- package/dist/models/CreateNacosMcpServerResponseBody.d.ts +23 -0
- package/dist/models/CreateNacosMcpServerResponseBody.js +60 -0
- package/dist/models/CreateNacosMcpServerResponseBody.js.map +1 -0
- package/dist/models/DataToolSpecToolsMetaValue.d.ts +21 -0
- package/dist/models/DataToolSpecToolsMetaValue.js +63 -0
- package/dist/models/DataToolSpecToolsMetaValue.js.map +1 -0
- package/dist/models/DeleteNacosMcpServerRequest.d.ts +33 -0
- package/dist/models/DeleteNacosMcpServerRequest.js +64 -0
- package/dist/models/DeleteNacosMcpServerRequest.js.map +1 -0
- package/dist/models/DeleteNacosMcpServerResponse.d.ts +19 -0
- package/dist/models/DeleteNacosMcpServerResponse.js +69 -0
- package/dist/models/DeleteNacosMcpServerResponse.js.map +1 -0
- package/dist/models/DeleteNacosMcpServerResponseBody.d.ts +23 -0
- package/dist/models/DeleteNacosMcpServerResponseBody.js +60 -0
- package/dist/models/DeleteNacosMcpServerResponseBody.js.map +1 -0
- package/dist/models/GetNacosMcpServerRequest.d.ts +38 -0
- package/dist/models/GetNacosMcpServerRequest.js +66 -0
- package/dist/models/GetNacosMcpServerRequest.js.map +1 -0
- package/dist/models/GetNacosMcpServerResponse.d.ts +19 -0
- package/dist/models/GetNacosMcpServerResponse.js +69 -0
- package/dist/models/GetNacosMcpServerResponse.js.map +1 -0
- package/dist/models/GetNacosMcpServerResponseBody.d.ts +253 -0
- package/dist/models/GetNacosMcpServerResponseBody.js +299 -0
- package/dist/models/GetNacosMcpServerResponseBody.js.map +1 -0
- package/dist/models/ListNacosMcpServersRequest.d.ts +48 -0
- package/dist/models/ListNacosMcpServersRequest.js +70 -0
- package/dist/models/ListNacosMcpServersRequest.js.map +1 -0
- package/dist/models/ListNacosMcpServersResponse.d.ts +19 -0
- package/dist/models/ListNacosMcpServersResponse.js +69 -0
- package/dist/models/ListNacosMcpServersResponse.js.map +1 -0
- package/dist/models/ListNacosMcpServersResponseBody.d.ts +127 -0
- package/dist/models/ListNacosMcpServersResponseBody.js +153 -0
- package/dist/models/ListNacosMcpServersResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +24 -0
- package/dist/models/model.js +69 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +250 -0
- package/src/models/CreateNacosMcpServerRequest.ts +91 -0
- package/src/models/CreateNacosMcpServerResponse.ts +40 -0
- package/src/models/CreateNacosMcpServerResponseBody.ts +38 -0
- package/src/models/DataToolSpecToolsMetaValue.ts +37 -0
- package/src/models/DeleteNacosMcpServerRequest.ts +52 -0
- package/src/models/DeleteNacosMcpServerResponse.ts +40 -0
- package/src/models/DeleteNacosMcpServerResponseBody.ts +38 -0
- package/src/models/GetNacosMcpServerRequest.ts +59 -0
- package/src/models/GetNacosMcpServerResponse.ts +40 -0
- package/src/models/GetNacosMcpServerResponseBody.ts +428 -0
- package/src/models/ListNacosMcpServersRequest.ts +73 -0
- package/src/models/ListNacosMcpServersResponse.ts +40 -0
- package/src/models/ListNacosMcpServersResponseBody.ts +208 -0
- package/src/models/model.ts +24 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DataToolSpecToolsMetaValue extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
9
|
+
*/
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
templates?: { [key: string]: any };
|
|
12
|
+
static names(): { [key: string]: string } {
|
|
13
|
+
return {
|
|
14
|
+
enabled: 'Enabled',
|
|
15
|
+
templates: 'Templates',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static types(): { [key: string]: any } {
|
|
20
|
+
return {
|
|
21
|
+
enabled: 'boolean',
|
|
22
|
+
templates: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.templates) {
|
|
28
|
+
$dara.Model.validateMap(this.templates);
|
|
29
|
+
}
|
|
30
|
+
super.validate();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
constructor(map?: { [key: string]: any }) {
|
|
34
|
+
super(map);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteNacosMcpServerRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* zh
|
|
9
|
+
*/
|
|
10
|
+
acceptLanguage?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* mse_prepaid_public_cn-u0t2xzvxa06
|
|
14
|
+
*/
|
|
15
|
+
instanceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 5e3c5211-d365-4013-8540-c4106ec2a5dc
|
|
19
|
+
*/
|
|
20
|
+
mcpServerId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* fc0f6e40-****-946b-45e3af313707
|
|
24
|
+
*/
|
|
25
|
+
namespaceId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
acceptLanguage: 'AcceptLanguage',
|
|
29
|
+
instanceId: 'InstanceId',
|
|
30
|
+
mcpServerId: 'McpServerId',
|
|
31
|
+
namespaceId: 'NamespaceId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
acceptLanguage: 'string',
|
|
38
|
+
instanceId: 'string',
|
|
39
|
+
mcpServerId: 'string',
|
|
40
|
+
namespaceId: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteNacosMcpServerResponseBody } from "./DeleteNacosMcpServerResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteNacosMcpServerResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteNacosMcpServerResponseBody;
|
|
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: DeleteNacosMcpServerResponseBody,
|
|
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,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteNacosMcpServerResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
9
|
+
*/
|
|
10
|
+
data?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* D0DB055C-51F2-5BB2-82A6-CD8A3C6EE6BA
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
data: 'Data',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
data: 'boolean',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetNacosMcpServerRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* zh
|
|
9
|
+
*/
|
|
10
|
+
acceptLanguage?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* mse_prepaid_public_cn-tl327w****
|
|
14
|
+
*/
|
|
15
|
+
instanceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 5e3c5211-d365-4013-8540-c4106ec2a5dc
|
|
19
|
+
*/
|
|
20
|
+
mcpServerId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 1.0.0
|
|
24
|
+
*/
|
|
25
|
+
mcpServerVersion?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 5e3ee449-b5c0-4aee-b857-32c0acbebf26
|
|
29
|
+
*/
|
|
30
|
+
namespaceId?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
acceptLanguage: 'AcceptLanguage',
|
|
34
|
+
instanceId: 'InstanceId',
|
|
35
|
+
mcpServerId: 'McpServerId',
|
|
36
|
+
mcpServerVersion: 'McpServerVersion',
|
|
37
|
+
namespaceId: 'NamespaceId',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
acceptLanguage: 'string',
|
|
44
|
+
instanceId: 'string',
|
|
45
|
+
mcpServerId: 'string',
|
|
46
|
+
mcpServerVersion: 'string',
|
|
47
|
+
namespaceId: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetNacosMcpServerResponseBody } from "./GetNacosMcpServerResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetNacosMcpServerResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetNacosMcpServerResponseBody;
|
|
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: GetNacosMcpServerResponseBody,
|
|
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,428 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DataToolSpecToolsMetaValue } from "./DataToolSpecToolsMetaValue";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetNacosMcpServerResponseBodyDataAllVersions extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* true
|
|
10
|
+
*/
|
|
11
|
+
isLatest?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* 2025-07-16
|
|
15
|
+
*/
|
|
16
|
+
releaseDate?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* 1.0.9
|
|
20
|
+
*/
|
|
21
|
+
version?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
isLatest: 'Is_latest',
|
|
25
|
+
releaseDate: 'Release_date',
|
|
26
|
+
version: 'Version',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static types(): { [key: string]: any } {
|
|
31
|
+
return {
|
|
32
|
+
isLatest: 'boolean',
|
|
33
|
+
releaseDate: 'string',
|
|
34
|
+
version: 'string',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
validate() {
|
|
39
|
+
super.validate();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
constructor(map?: { [key: string]: any }) {
|
|
43
|
+
super(map);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class GetNacosMcpServerResponseBodyDataBackendEndpoints extends $dara.Model {
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* 127.0.0.1
|
|
51
|
+
*/
|
|
52
|
+
address?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* /sse
|
|
56
|
+
*/
|
|
57
|
+
path?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @example
|
|
60
|
+
* 80
|
|
61
|
+
*/
|
|
62
|
+
port?: number;
|
|
63
|
+
static names(): { [key: string]: string } {
|
|
64
|
+
return {
|
|
65
|
+
address: 'Address',
|
|
66
|
+
path: 'Path',
|
|
67
|
+
port: 'Port',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static types(): { [key: string]: any } {
|
|
72
|
+
return {
|
|
73
|
+
address: 'string',
|
|
74
|
+
path: 'string',
|
|
75
|
+
port: 'number',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class GetNacosMcpServerResponseBodyDataRemoteServerConfigServiceRef extends $dara.Model {
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* DEFAULT
|
|
92
|
+
*/
|
|
93
|
+
groupName?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @example
|
|
96
|
+
* public
|
|
97
|
+
*/
|
|
98
|
+
namespaceId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @example
|
|
101
|
+
* mcp-service
|
|
102
|
+
*/
|
|
103
|
+
serviceName?: string;
|
|
104
|
+
static names(): { [key: string]: string } {
|
|
105
|
+
return {
|
|
106
|
+
groupName: 'GroupName',
|
|
107
|
+
namespaceId: 'NamespaceId',
|
|
108
|
+
serviceName: 'ServiceName',
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
static types(): { [key: string]: any } {
|
|
113
|
+
return {
|
|
114
|
+
groupName: 'string',
|
|
115
|
+
namespaceId: 'string',
|
|
116
|
+
serviceName: 'string',
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
validate() {
|
|
121
|
+
super.validate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
constructor(map?: { [key: string]: any }) {
|
|
125
|
+
super(map);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class GetNacosMcpServerResponseBodyDataRemoteServerConfig extends $dara.Model {
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* /sse
|
|
133
|
+
*/
|
|
134
|
+
exportPath?: string;
|
|
135
|
+
serviceRef?: GetNacosMcpServerResponseBodyDataRemoteServerConfigServiceRef;
|
|
136
|
+
static names(): { [key: string]: string } {
|
|
137
|
+
return {
|
|
138
|
+
exportPath: 'ExportPath',
|
|
139
|
+
serviceRef: 'ServiceRef',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static types(): { [key: string]: any } {
|
|
144
|
+
return {
|
|
145
|
+
exportPath: 'string',
|
|
146
|
+
serviceRef: GetNacosMcpServerResponseBodyDataRemoteServerConfigServiceRef,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
validate() {
|
|
151
|
+
if(this.serviceRef && typeof (this.serviceRef as any).validate === 'function') {
|
|
152
|
+
(this.serviceRef as any).validate();
|
|
153
|
+
}
|
|
154
|
+
super.validate();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
constructor(map?: { [key: string]: any }) {
|
|
158
|
+
super(map);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export class GetNacosMcpServerResponseBodyDataToolSpecTools extends $dara.Model {
|
|
163
|
+
/**
|
|
164
|
+
* @example
|
|
165
|
+
* a weather query tool
|
|
166
|
+
*/
|
|
167
|
+
description?: string;
|
|
168
|
+
inputSchema?: { [key: string]: any };
|
|
169
|
+
/**
|
|
170
|
+
* @example
|
|
171
|
+
* get_weather
|
|
172
|
+
*/
|
|
173
|
+
name?: string;
|
|
174
|
+
static names(): { [key: string]: string } {
|
|
175
|
+
return {
|
|
176
|
+
description: 'Description',
|
|
177
|
+
inputSchema: 'InputSchema',
|
|
178
|
+
name: 'Name',
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
static types(): { [key: string]: any } {
|
|
183
|
+
return {
|
|
184
|
+
description: 'string',
|
|
185
|
+
inputSchema: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
186
|
+
name: 'string',
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
validate() {
|
|
191
|
+
if(this.inputSchema) {
|
|
192
|
+
$dara.Model.validateMap(this.inputSchema);
|
|
193
|
+
}
|
|
194
|
+
super.validate();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
constructor(map?: { [key: string]: any }) {
|
|
198
|
+
super(map);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export class GetNacosMcpServerResponseBodyDataToolSpec extends $dara.Model {
|
|
203
|
+
tools?: GetNacosMcpServerResponseBodyDataToolSpecTools[];
|
|
204
|
+
toolsMeta?: { [key: string]: DataToolSpecToolsMetaValue };
|
|
205
|
+
static names(): { [key: string]: string } {
|
|
206
|
+
return {
|
|
207
|
+
tools: 'Tools',
|
|
208
|
+
toolsMeta: 'ToolsMeta',
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
static types(): { [key: string]: any } {
|
|
213
|
+
return {
|
|
214
|
+
tools: { 'type': 'array', 'itemType': GetNacosMcpServerResponseBodyDataToolSpecTools },
|
|
215
|
+
toolsMeta: { 'type': 'map', 'keyType': 'string', 'valueType': DataToolSpecToolsMetaValue },
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
validate() {
|
|
220
|
+
if(Array.isArray(this.tools)) {
|
|
221
|
+
$dara.Model.validateArray(this.tools);
|
|
222
|
+
}
|
|
223
|
+
if(this.toolsMeta) {
|
|
224
|
+
$dara.Model.validateMap(this.toolsMeta);
|
|
225
|
+
}
|
|
226
|
+
super.validate();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
constructor(map?: { [key: string]: any }) {
|
|
230
|
+
super(map);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export class GetNacosMcpServerResponseBodyDataVersionDetail extends $dara.Model {
|
|
235
|
+
/**
|
|
236
|
+
* @example
|
|
237
|
+
* true
|
|
238
|
+
*/
|
|
239
|
+
isLatest?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* @example
|
|
242
|
+
* 2025-07-16
|
|
243
|
+
*/
|
|
244
|
+
releaseDate?: string;
|
|
245
|
+
/**
|
|
246
|
+
* @example
|
|
247
|
+
* 1.11.0
|
|
248
|
+
*/
|
|
249
|
+
version?: string;
|
|
250
|
+
static names(): { [key: string]: string } {
|
|
251
|
+
return {
|
|
252
|
+
isLatest: 'IsLatest',
|
|
253
|
+
releaseDate: 'ReleaseDate',
|
|
254
|
+
version: 'Version',
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static types(): { [key: string]: any } {
|
|
259
|
+
return {
|
|
260
|
+
isLatest: 'boolean',
|
|
261
|
+
releaseDate: 'string',
|
|
262
|
+
version: 'string',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
validate() {
|
|
267
|
+
super.validate();
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
constructor(map?: { [key: string]: any }) {
|
|
271
|
+
super(map);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export class GetNacosMcpServerResponseBodyData extends $dara.Model {
|
|
276
|
+
allVersions?: GetNacosMcpServerResponseBodyDataAllVersions[];
|
|
277
|
+
backendEndpoints?: GetNacosMcpServerResponseBodyDataBackendEndpoints[];
|
|
278
|
+
capabilities?: string[];
|
|
279
|
+
description?: string;
|
|
280
|
+
/**
|
|
281
|
+
* @example
|
|
282
|
+
* true
|
|
283
|
+
*/
|
|
284
|
+
enabled?: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* @example
|
|
287
|
+
* mcp-sse
|
|
288
|
+
*/
|
|
289
|
+
frontProtocol?: string;
|
|
290
|
+
/**
|
|
291
|
+
* @remarks
|
|
292
|
+
* ID。
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* 5e3c5211-d365-4013-8540-c4106ec2a5dc
|
|
296
|
+
*/
|
|
297
|
+
id?: string;
|
|
298
|
+
localServerConfig?: { [key: string]: any };
|
|
299
|
+
/**
|
|
300
|
+
* @example
|
|
301
|
+
* mcp-demo
|
|
302
|
+
*/
|
|
303
|
+
name?: string;
|
|
304
|
+
/**
|
|
305
|
+
* @example
|
|
306
|
+
* mcp-sse
|
|
307
|
+
*/
|
|
308
|
+
protocol?: string;
|
|
309
|
+
remoteServerConfig?: GetNacosMcpServerResponseBodyDataRemoteServerConfig;
|
|
310
|
+
toolSpec?: GetNacosMcpServerResponseBodyDataToolSpec;
|
|
311
|
+
versionDetail?: GetNacosMcpServerResponseBodyDataVersionDetail;
|
|
312
|
+
/**
|
|
313
|
+
* @example
|
|
314
|
+
* allowTools:
|
|
315
|
+
* - demo-tool
|
|
316
|
+
* securityScheme: {}
|
|
317
|
+
* server:
|
|
318
|
+
* name: mcp-demo
|
|
319
|
+
* tools:
|
|
320
|
+
* - args:
|
|
321
|
+
* - name: name
|
|
322
|
+
* description: name
|
|
323
|
+
* type: string
|
|
324
|
+
* description: a demo tool
|
|
325
|
+
* name: demo-tool
|
|
326
|
+
*/
|
|
327
|
+
yamlConfig?: string;
|
|
328
|
+
static names(): { [key: string]: string } {
|
|
329
|
+
return {
|
|
330
|
+
allVersions: 'AllVersions',
|
|
331
|
+
backendEndpoints: 'BackendEndpoints',
|
|
332
|
+
capabilities: 'Capabilities',
|
|
333
|
+
description: 'Description',
|
|
334
|
+
enabled: 'Enabled',
|
|
335
|
+
frontProtocol: 'FrontProtocol',
|
|
336
|
+
id: 'Id',
|
|
337
|
+
localServerConfig: 'LocalServerConfig',
|
|
338
|
+
name: 'Name',
|
|
339
|
+
protocol: 'Protocol',
|
|
340
|
+
remoteServerConfig: 'RemoteServerConfig',
|
|
341
|
+
toolSpec: 'ToolSpec',
|
|
342
|
+
versionDetail: 'VersionDetail',
|
|
343
|
+
yamlConfig: 'YamlConfig',
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
static types(): { [key: string]: any } {
|
|
348
|
+
return {
|
|
349
|
+
allVersions: { 'type': 'array', 'itemType': GetNacosMcpServerResponseBodyDataAllVersions },
|
|
350
|
+
backendEndpoints: { 'type': 'array', 'itemType': GetNacosMcpServerResponseBodyDataBackendEndpoints },
|
|
351
|
+
capabilities: { 'type': 'array', 'itemType': 'string' },
|
|
352
|
+
description: 'string',
|
|
353
|
+
enabled: 'boolean',
|
|
354
|
+
frontProtocol: 'string',
|
|
355
|
+
id: 'string',
|
|
356
|
+
localServerConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
357
|
+
name: 'string',
|
|
358
|
+
protocol: 'string',
|
|
359
|
+
remoteServerConfig: GetNacosMcpServerResponseBodyDataRemoteServerConfig,
|
|
360
|
+
toolSpec: GetNacosMcpServerResponseBodyDataToolSpec,
|
|
361
|
+
versionDetail: GetNacosMcpServerResponseBodyDataVersionDetail,
|
|
362
|
+
yamlConfig: 'string',
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
validate() {
|
|
367
|
+
if(Array.isArray(this.allVersions)) {
|
|
368
|
+
$dara.Model.validateArray(this.allVersions);
|
|
369
|
+
}
|
|
370
|
+
if(Array.isArray(this.backendEndpoints)) {
|
|
371
|
+
$dara.Model.validateArray(this.backendEndpoints);
|
|
372
|
+
}
|
|
373
|
+
if(Array.isArray(this.capabilities)) {
|
|
374
|
+
$dara.Model.validateArray(this.capabilities);
|
|
375
|
+
}
|
|
376
|
+
if(this.localServerConfig) {
|
|
377
|
+
$dara.Model.validateMap(this.localServerConfig);
|
|
378
|
+
}
|
|
379
|
+
if(this.remoteServerConfig && typeof (this.remoteServerConfig as any).validate === 'function') {
|
|
380
|
+
(this.remoteServerConfig as any).validate();
|
|
381
|
+
}
|
|
382
|
+
if(this.toolSpec && typeof (this.toolSpec as any).validate === 'function') {
|
|
383
|
+
(this.toolSpec as any).validate();
|
|
384
|
+
}
|
|
385
|
+
if(this.versionDetail && typeof (this.versionDetail as any).validate === 'function') {
|
|
386
|
+
(this.versionDetail as any).validate();
|
|
387
|
+
}
|
|
388
|
+
super.validate();
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
constructor(map?: { [key: string]: any }) {
|
|
392
|
+
super(map);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export class GetNacosMcpServerResponseBody extends $dara.Model {
|
|
397
|
+
data?: GetNacosMcpServerResponseBodyData;
|
|
398
|
+
/**
|
|
399
|
+
* @example
|
|
400
|
+
* 72FC625E-9629-591B-9C01-3F0BFDAB****
|
|
401
|
+
*/
|
|
402
|
+
requestId?: string;
|
|
403
|
+
static names(): { [key: string]: string } {
|
|
404
|
+
return {
|
|
405
|
+
data: 'Data',
|
|
406
|
+
requestId: 'RequestId',
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
static types(): { [key: string]: any } {
|
|
411
|
+
return {
|
|
412
|
+
data: GetNacosMcpServerResponseBodyData,
|
|
413
|
+
requestId: 'string',
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
validate() {
|
|
418
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
419
|
+
(this.data as any).validate();
|
|
420
|
+
}
|
|
421
|
+
super.validate();
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
constructor(map?: { [key: string]: any }) {
|
|
425
|
+
super(map);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|