@mlhub/agents-ts-sdk 0.18.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/.openapi-generator/FILES +37 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/AgentsApi.d.ts +79 -0
- package/dist/apis/AgentsApi.js +281 -0
- package/dist/apis/HealthApi.d.ts +25 -0
- package/dist/apis/HealthApi.js +118 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Agent.d.ts +130 -0
- package/dist/models/Agent.js +76 -0
- package/dist/models/AgentArtifactType.d.ts +27 -0
- package/dist/models/AgentArtifactType.js +42 -0
- package/dist/models/AgentDeploymentModality.d.ts +23 -0
- package/dist/models/AgentDeploymentModality.js +38 -0
- package/dist/models/AgentLiveness.d.ts +23 -0
- package/dist/models/AgentLiveness.js +38 -0
- package/dist/models/AgentProvider.d.ts +33 -0
- package/dist/models/AgentProvider.js +42 -0
- package/dist/models/AgentRecord.d.ts +124 -0
- package/dist/models/AgentRecord.js +74 -0
- package/dist/models/AgentSkill.d.ts +51 -0
- package/dist/models/AgentSkill.js +48 -0
- package/dist/models/ArtifactLocator.d.ts +34 -0
- package/dist/models/ArtifactLocator.js +43 -0
- package/dist/models/Capabilities.d.ts +33 -0
- package/dist/models/Capabilities.js +42 -0
- package/dist/models/CreateAgentBody.d.ts +76 -0
- package/dist/models/CreateAgentBody.js +58 -0
- package/dist/models/CreateAgentRecordBody.d.ts +106 -0
- package/dist/models/CreateAgentRecordBody.js +68 -0
- package/dist/models/CreateAgentRecordResponse.d.ts +52 -0
- package/dist/models/CreateAgentRecordResponse.js +49 -0
- package/dist/models/CreateAgentResponse.d.ts +52 -0
- package/dist/models/CreateAgentResponse.js +49 -0
- package/dist/models/Endpoint.d.ts +57 -0
- package/dist/models/Endpoint.js +50 -0
- package/dist/models/ListAgentRecordsResponse.d.ts +52 -0
- package/dist/models/ListAgentRecordsResponse.js +49 -0
- package/dist/models/ListAgentsResponse.d.ts +52 -0
- package/dist/models/ListAgentsResponse.js +49 -0
- package/dist/models/MessageBinding.d.ts +24 -0
- package/dist/models/MessageBinding.js +39 -0
- package/dist/models/RestHttpAgentEndpoint.d.ts +46 -0
- package/dist/models/RestHttpAgentEndpoint.js +48 -0
- package/dist/models/RestHttpAgentInterface.d.ts +46 -0
- package/dist/models/RestHttpAgentInterface.js +48 -0
- package/dist/models/RestHttpLivenessProbe.d.ts +51 -0
- package/dist/models/RestHttpLivenessProbe.js +48 -0
- package/dist/models/RpcAgentEndpoint.d.ts +40 -0
- package/dist/models/RpcAgentEndpoint.js +46 -0
- package/dist/models/RpcAgentInterface.d.ts +40 -0
- package/dist/models/RpcAgentInterface.js +46 -0
- package/dist/models/StdioAgentEndpoint.d.ts +40 -0
- package/dist/models/StdioAgentEndpoint.js +46 -0
- package/dist/models/StdioAgentInterface.d.ts +40 -0
- package/dist/models/StdioAgentInterface.js +46 -0
- package/dist/models/Visibility.d.ts +23 -0
- package/dist/models/Visibility.js +38 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +43 -0
- package/dist/runtime.d.ts +140 -0
- package/dist/runtime.js +430 -0
- package/package.json +15 -0
- package/src/apis/AgentsApi.ts +207 -0
- package/src/apis/HealthApi.ts +48 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/Agent.ts +223 -0
- package/src/models/AgentArtifactType.ts +40 -0
- package/src/models/AgentDeploymentModality.ts +36 -0
- package/src/models/AgentLiveness.ts +36 -0
- package/src/models/AgentProvider.ts +64 -0
- package/src/models/AgentRecord.ts +219 -0
- package/src/models/AgentSkill.ts +88 -0
- package/src/models/ArtifactLocator.ts +71 -0
- package/src/models/Capabilities.ts +64 -0
- package/src/models/CreateAgentBody.ts +143 -0
- package/src/models/CreateAgentRecordBody.ts +195 -0
- package/src/models/CreateAgentRecordResponse.ts +95 -0
- package/src/models/CreateAgentResponse.ts +95 -0
- package/src/models/Endpoint.ts +96 -0
- package/src/models/ListAgentRecordsResponse.ts +95 -0
- package/src/models/ListAgentsResponse.ts +95 -0
- package/src/models/MessageBinding.ts +37 -0
- package/src/models/RestHttpAgentEndpoint.ts +91 -0
- package/src/models/RestHttpAgentInterface.ts +91 -0
- package/src/models/RestHttpLivenessProbe.ts +88 -0
- package/src/models/RpcAgentEndpoint.ts +79 -0
- package/src/models/RpcAgentInterface.ts +79 -0
- package/src/models/StdioAgentEndpoint.ts +79 -0
- package/src/models/StdioAgentInterface.ts +79 -0
- package/src/models/Visibility.ts +36 -0
- package/src/models/index.ts +27 -0
- package/src/runtime.ts +320 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentProvider,
|
|
18
|
+
AgentProviderFromJSON,
|
|
19
|
+
AgentProviderFromJSONTyped,
|
|
20
|
+
AgentProviderToJSON,
|
|
21
|
+
AgentSkill,
|
|
22
|
+
AgentSkillFromJSON,
|
|
23
|
+
AgentSkillFromJSONTyped,
|
|
24
|
+
AgentSkillToJSON,
|
|
25
|
+
ArtifactLocator,
|
|
26
|
+
ArtifactLocatorFromJSON,
|
|
27
|
+
ArtifactLocatorFromJSONTyped,
|
|
28
|
+
ArtifactLocatorToJSON,
|
|
29
|
+
Capabilities,
|
|
30
|
+
CapabilitiesFromJSON,
|
|
31
|
+
CapabilitiesFromJSONTyped,
|
|
32
|
+
CapabilitiesToJSON,
|
|
33
|
+
RestHttpAgentInterface,
|
|
34
|
+
RestHttpAgentInterfaceFromJSON,
|
|
35
|
+
RestHttpAgentInterfaceFromJSONTyped,
|
|
36
|
+
RestHttpAgentInterfaceToJSON,
|
|
37
|
+
RpcAgentInterface,
|
|
38
|
+
RpcAgentInterfaceFromJSON,
|
|
39
|
+
RpcAgentInterfaceFromJSONTyped,
|
|
40
|
+
RpcAgentInterfaceToJSON,
|
|
41
|
+
StdioAgentInterface,
|
|
42
|
+
StdioAgentInterfaceFromJSON,
|
|
43
|
+
StdioAgentInterfaceFromJSONTyped,
|
|
44
|
+
StdioAgentInterfaceToJSON,
|
|
45
|
+
Visibility,
|
|
46
|
+
VisibilityFromJSON,
|
|
47
|
+
VisibilityFromJSONTyped,
|
|
48
|
+
VisibilityToJSON,
|
|
49
|
+
} from './';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface CreateAgentRecordBody
|
|
55
|
+
*/
|
|
56
|
+
export interface CreateAgentRecordBody {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<ArtifactLocator>}
|
|
60
|
+
* @memberof CreateAgentRecordBody
|
|
61
|
+
*/
|
|
62
|
+
artifact_locators?: Array<ArtifactLocator> | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Capabilities}
|
|
66
|
+
* @memberof CreateAgentRecordBody
|
|
67
|
+
*/
|
|
68
|
+
capabilities: Capabilities;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CreateAgentRecordBody
|
|
73
|
+
*/
|
|
74
|
+
description: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateAgentRecordBody
|
|
79
|
+
*/
|
|
80
|
+
documentation_url?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateAgentRecordBody
|
|
85
|
+
*/
|
|
86
|
+
icon_url?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CreateAgentRecordBody
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {AgentProvider}
|
|
96
|
+
* @memberof CreateAgentRecordBody
|
|
97
|
+
*/
|
|
98
|
+
provider?: AgentProvider;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<RestHttpAgentInterface>}
|
|
102
|
+
* @memberof CreateAgentRecordBody
|
|
103
|
+
*/
|
|
104
|
+
rest_http_interfaces?: Array<RestHttpAgentInterface>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {Array<RpcAgentInterface>}
|
|
108
|
+
* @memberof CreateAgentRecordBody
|
|
109
|
+
*/
|
|
110
|
+
rpc_interfaces?: Array<RpcAgentInterface>;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<AgentSkill>}
|
|
114
|
+
* @memberof CreateAgentRecordBody
|
|
115
|
+
*/
|
|
116
|
+
skills?: Array<AgentSkill>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Array<StdioAgentInterface>}
|
|
120
|
+
* @memberof CreateAgentRecordBody
|
|
121
|
+
*/
|
|
122
|
+
stdio_interfaces?: Array<StdioAgentInterface>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Array<string>}
|
|
126
|
+
* @memberof CreateAgentRecordBody
|
|
127
|
+
*/
|
|
128
|
+
tags?: Array<string>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof CreateAgentRecordBody
|
|
133
|
+
*/
|
|
134
|
+
version: string;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {Visibility}
|
|
138
|
+
* @memberof CreateAgentRecordBody
|
|
139
|
+
*/
|
|
140
|
+
visibility?: Visibility;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function CreateAgentRecordBodyFromJSON(json: any): CreateAgentRecordBody {
|
|
144
|
+
return CreateAgentRecordBodyFromJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function CreateAgentRecordBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentRecordBody {
|
|
148
|
+
if ((json === undefined) || (json === null)) {
|
|
149
|
+
return json;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'artifact_locators': !exists(json, 'artifact_locators') ? undefined : (json['artifact_locators'] === null ? null : (json['artifact_locators'] as Array<any>).map(ArtifactLocatorFromJSON)),
|
|
154
|
+
'capabilities': CapabilitiesFromJSON(json['capabilities']),
|
|
155
|
+
'description': json['description'],
|
|
156
|
+
'documentation_url': !exists(json, 'documentation_url') ? undefined : json['documentation_url'],
|
|
157
|
+
'icon_url': !exists(json, 'icon_url') ? undefined : json['icon_url'],
|
|
158
|
+
'name': json['name'],
|
|
159
|
+
'provider': !exists(json, 'provider') ? undefined : AgentProviderFromJSON(json['provider']),
|
|
160
|
+
'rest_http_interfaces': !exists(json, 'rest_http_interfaces') ? undefined : ((json['rest_http_interfaces'] as Array<any>).map(RestHttpAgentInterfaceFromJSON)),
|
|
161
|
+
'rpc_interfaces': !exists(json, 'rpc_interfaces') ? undefined : ((json['rpc_interfaces'] as Array<any>).map(RpcAgentInterfaceFromJSON)),
|
|
162
|
+
'skills': !exists(json, 'skills') ? undefined : ((json['skills'] as Array<any>).map(AgentSkillFromJSON)),
|
|
163
|
+
'stdio_interfaces': !exists(json, 'stdio_interfaces') ? undefined : ((json['stdio_interfaces'] as Array<any>).map(StdioAgentInterfaceFromJSON)),
|
|
164
|
+
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
165
|
+
'version': json['version'],
|
|
166
|
+
'visibility': !exists(json, 'visibility') ? undefined : VisibilityFromJSON(json['visibility']),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function CreateAgentRecordBodyToJSON(value?: CreateAgentRecordBody | null): any {
|
|
171
|
+
if (value === undefined) {
|
|
172
|
+
return undefined;
|
|
173
|
+
}
|
|
174
|
+
if (value === null) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
|
|
179
|
+
'artifact_locators': value.artifact_locators === undefined ? undefined : (value.artifact_locators === null ? null : (value.artifact_locators as Array<any>).map(ArtifactLocatorToJSON)),
|
|
180
|
+
'capabilities': CapabilitiesToJSON(value.capabilities),
|
|
181
|
+
'description': value.description,
|
|
182
|
+
'documentation_url': value.documentation_url,
|
|
183
|
+
'icon_url': value.icon_url,
|
|
184
|
+
'name': value.name,
|
|
185
|
+
'provider': AgentProviderToJSON(value.provider),
|
|
186
|
+
'rest_http_interfaces': value.rest_http_interfaces === undefined ? undefined : ((value.rest_http_interfaces as Array<any>).map(RestHttpAgentInterfaceToJSON)),
|
|
187
|
+
'rpc_interfaces': value.rpc_interfaces === undefined ? undefined : ((value.rpc_interfaces as Array<any>).map(RpcAgentInterfaceToJSON)),
|
|
188
|
+
'skills': value.skills === undefined ? undefined : ((value.skills as Array<any>).map(AgentSkillToJSON)),
|
|
189
|
+
'stdio_interfaces': value.stdio_interfaces === undefined ? undefined : ((value.stdio_interfaces as Array<any>).map(StdioAgentInterfaceToJSON)),
|
|
190
|
+
'tags': value.tags,
|
|
191
|
+
'version': value.version,
|
|
192
|
+
'visibility': VisibilityToJSON(value.visibility),
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentRecord,
|
|
18
|
+
AgentRecordFromJSON,
|
|
19
|
+
AgentRecordFromJSONTyped,
|
|
20
|
+
AgentRecordToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateAgentRecordResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAgentRecordResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateAgentRecordResponse
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof CreateAgentRecordResponse
|
|
39
|
+
*/
|
|
40
|
+
metadata: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {AgentRecord}
|
|
44
|
+
* @memberof CreateAgentRecordResponse
|
|
45
|
+
*/
|
|
46
|
+
result: AgentRecord;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof CreateAgentRecordResponse
|
|
51
|
+
*/
|
|
52
|
+
status: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateAgentRecordResponse
|
|
57
|
+
*/
|
|
58
|
+
version: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateAgentRecordResponseFromJSON(json: any): CreateAgentRecordResponse {
|
|
62
|
+
return CreateAgentRecordResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CreateAgentRecordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentRecordResponse {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'message': json['message'],
|
|
72
|
+
'metadata': json['metadata'],
|
|
73
|
+
'result': AgentRecordFromJSON(json['result']),
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'version': json['version'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CreateAgentRecordResponseToJSON(value?: CreateAgentRecordResponse | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'message': value.message,
|
|
89
|
+
'metadata': value.metadata,
|
|
90
|
+
'result': AgentRecordToJSON(value.result),
|
|
91
|
+
'status': value.status,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Agent,
|
|
18
|
+
AgentFromJSON,
|
|
19
|
+
AgentFromJSONTyped,
|
|
20
|
+
AgentToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateAgentResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAgentResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateAgentResponse
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof CreateAgentResponse
|
|
39
|
+
*/
|
|
40
|
+
metadata: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Agent}
|
|
44
|
+
* @memberof CreateAgentResponse
|
|
45
|
+
*/
|
|
46
|
+
result: Agent;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof CreateAgentResponse
|
|
51
|
+
*/
|
|
52
|
+
status: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateAgentResponse
|
|
57
|
+
*/
|
|
58
|
+
version: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateAgentResponseFromJSON(json: any): CreateAgentResponse {
|
|
62
|
+
return CreateAgentResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CreateAgentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentResponse {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'message': json['message'],
|
|
72
|
+
'metadata': json['metadata'],
|
|
73
|
+
'result': AgentFromJSON(json['result']),
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'version': json['version'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CreateAgentResponseToJSON(value?: CreateAgentResponse | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'message': value.message,
|
|
89
|
+
'metadata': value.metadata,
|
|
90
|
+
'result': AgentToJSON(value.result),
|
|
91
|
+
'status': value.status,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Endpoint
|
|
20
|
+
*/
|
|
21
|
+
export interface Endpoint {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Endpoint
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Endpoint
|
|
32
|
+
*/
|
|
33
|
+
slug: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Endpoint
|
|
38
|
+
*/
|
|
39
|
+
target_base_url: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Endpoint
|
|
44
|
+
*/
|
|
45
|
+
target_name: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Endpoint
|
|
50
|
+
*/
|
|
51
|
+
target_resource_urn: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Endpoint
|
|
56
|
+
*/
|
|
57
|
+
tenant_id: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function EndpointFromJSON(json: any): Endpoint {
|
|
61
|
+
return EndpointFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Endpoint {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': json['id'],
|
|
71
|
+
'slug': json['slug'],
|
|
72
|
+
'target_base_url': json['target_base_url'],
|
|
73
|
+
'target_name': json['target_name'],
|
|
74
|
+
'target_resource_urn': json['target_resource_urn'],
|
|
75
|
+
'tenant_id': json['tenant_id'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function EndpointToJSON(value?: Endpoint | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'id': value.id,
|
|
89
|
+
'slug': value.slug,
|
|
90
|
+
'target_base_url': value.target_base_url,
|
|
91
|
+
'target_name': value.target_name,
|
|
92
|
+
'target_resource_urn': value.target_resource_urn,
|
|
93
|
+
'tenant_id': value.tenant_id,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentRecord,
|
|
18
|
+
AgentRecordFromJSON,
|
|
19
|
+
AgentRecordFromJSONTyped,
|
|
20
|
+
AgentRecordToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ListAgentRecordsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface ListAgentRecordsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ListAgentRecordsResponse
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof ListAgentRecordsResponse
|
|
39
|
+
*/
|
|
40
|
+
metadata: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<AgentRecord>}
|
|
44
|
+
* @memberof ListAgentRecordsResponse
|
|
45
|
+
*/
|
|
46
|
+
result: Array<AgentRecord>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ListAgentRecordsResponse
|
|
51
|
+
*/
|
|
52
|
+
status: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ListAgentRecordsResponse
|
|
57
|
+
*/
|
|
58
|
+
version: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListAgentRecordsResponseFromJSON(json: any): ListAgentRecordsResponse {
|
|
62
|
+
return ListAgentRecordsResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ListAgentRecordsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAgentRecordsResponse {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'message': json['message'],
|
|
72
|
+
'metadata': json['metadata'],
|
|
73
|
+
'result': ((json['result'] as Array<any>).map(AgentRecordFromJSON)),
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'version': json['version'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ListAgentRecordsResponseToJSON(value?: ListAgentRecordsResponse | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'message': value.message,
|
|
89
|
+
'metadata': value.metadata,
|
|
90
|
+
'result': ((value.result as Array<any>).map(AgentRecordToJSON)),
|
|
91
|
+
'status': value.status,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Agent,
|
|
18
|
+
AgentFromJSON,
|
|
19
|
+
AgentFromJSONTyped,
|
|
20
|
+
AgentToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ListAgentsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface ListAgentsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ListAgentsResponse
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof ListAgentsResponse
|
|
39
|
+
*/
|
|
40
|
+
metadata: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Agent>}
|
|
44
|
+
* @memberof ListAgentsResponse
|
|
45
|
+
*/
|
|
46
|
+
result: Array<Agent>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ListAgentsResponse
|
|
51
|
+
*/
|
|
52
|
+
status: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ListAgentsResponse
|
|
57
|
+
*/
|
|
58
|
+
version: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListAgentsResponseFromJSON(json: any): ListAgentsResponse {
|
|
62
|
+
return ListAgentsResponseFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ListAgentsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAgentsResponse {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'message': json['message'],
|
|
72
|
+
'metadata': json['metadata'],
|
|
73
|
+
'result': ((json['result'] as Array<any>).map(AgentFromJSON)),
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
'version': json['version'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ListAgentsResponseToJSON(value?: ListAgentsResponse | null): any {
|
|
80
|
+
if (value === undefined) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
if (value === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'message': value.message,
|
|
89
|
+
'metadata': value.metadata,
|
|
90
|
+
'result': ((value.result as Array<any>).map(AgentToJSON)),
|
|
91
|
+
'status': value.status,
|
|
92
|
+
'version': value.version,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum MessageBinding {
|
|
21
|
+
HttpJson = 'HttpJson',
|
|
22
|
+
JsonRpc20 = 'JsonRpc2_0',
|
|
23
|
+
Grpc = 'Grpc'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function MessageBindingFromJSON(json: any): MessageBinding {
|
|
27
|
+
return MessageBindingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function MessageBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageBinding {
|
|
31
|
+
return json as MessageBinding;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function MessageBindingToJSON(value?: MessageBinding | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|