@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,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentDeploymentModality, AgentLiveness, Endpoint, RestHttpAgentEndpoint, RpcAgentEndpoint, StdioAgentEndpoint, Visibility } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Agent
|
|
17
|
+
*/
|
|
18
|
+
export interface Agent {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Agent
|
|
23
|
+
*/
|
|
24
|
+
agent_record_id?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof Agent
|
|
29
|
+
*/
|
|
30
|
+
consecutive_missed_heartbeats: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Agent
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {AgentDeploymentModality}
|
|
40
|
+
* @memberof Agent
|
|
41
|
+
*/
|
|
42
|
+
deployment_modality: AgentDeploymentModality;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Agent
|
|
47
|
+
*/
|
|
48
|
+
description: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<Endpoint>}
|
|
52
|
+
* @memberof Agent
|
|
53
|
+
*/
|
|
54
|
+
endpoints: Array<Endpoint>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Agent
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Agent
|
|
65
|
+
*/
|
|
66
|
+
last_missed_heartbeat?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Agent
|
|
71
|
+
*/
|
|
72
|
+
last_modified: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {AgentLiveness}
|
|
76
|
+
* @memberof Agent
|
|
77
|
+
*/
|
|
78
|
+
liveness: AgentLiveness;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof Agent
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof Agent
|
|
89
|
+
*/
|
|
90
|
+
owner: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Array<RestHttpAgentEndpoint>}
|
|
94
|
+
* @memberof Agent
|
|
95
|
+
*/
|
|
96
|
+
rest_http_endpoints: Array<RestHttpAgentEndpoint>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<RpcAgentEndpoint>}
|
|
100
|
+
* @memberof Agent
|
|
101
|
+
*/
|
|
102
|
+
rpc_endpoints: Array<RpcAgentEndpoint>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<StdioAgentEndpoint>}
|
|
106
|
+
* @memberof Agent
|
|
107
|
+
*/
|
|
108
|
+
stdio_endpoints: Array<StdioAgentEndpoint>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<string>}
|
|
112
|
+
* @memberof Agent
|
|
113
|
+
*/
|
|
114
|
+
tags: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof Agent
|
|
119
|
+
*/
|
|
120
|
+
tenant_id: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Visibility}
|
|
124
|
+
* @memberof Agent
|
|
125
|
+
*/
|
|
126
|
+
visibility: Visibility;
|
|
127
|
+
}
|
|
128
|
+
export declare function AgentFromJSON(json: any): Agent;
|
|
129
|
+
export declare function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Agent;
|
|
130
|
+
export declare function AgentToJSON(value?: Agent | null): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentFromJSON = AgentFromJSON;
|
|
17
|
+
exports.AgentFromJSONTyped = AgentFromJSONTyped;
|
|
18
|
+
exports.AgentToJSON = AgentToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function AgentFromJSON(json) {
|
|
22
|
+
return AgentFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function AgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'agent_record_id': !(0, runtime_1.exists)(json, 'agent_record_id') ? undefined : json['agent_record_id'],
|
|
30
|
+
'consecutive_missed_heartbeats': json['consecutive_missed_heartbeats'],
|
|
31
|
+
'created_at': json['created_at'],
|
|
32
|
+
'deployment_modality': (0, _1.AgentDeploymentModalityFromJSON)(json['deployment_modality']),
|
|
33
|
+
'description': json['description'],
|
|
34
|
+
'endpoints': (json['endpoints'].map(_1.EndpointFromJSON)),
|
|
35
|
+
'id': json['id'],
|
|
36
|
+
'last_missed_heartbeat': !(0, runtime_1.exists)(json, 'last_missed_heartbeat') ? undefined : json['last_missed_heartbeat'],
|
|
37
|
+
'last_modified': json['last_modified'],
|
|
38
|
+
'liveness': (0, _1.AgentLivenessFromJSON)(json['liveness']),
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'owner': json['owner'],
|
|
41
|
+
'rest_http_endpoints': (json['rest_http_endpoints'].map(_1.RestHttpAgentEndpointFromJSON)),
|
|
42
|
+
'rpc_endpoints': (json['rpc_endpoints'].map(_1.RpcAgentEndpointFromJSON)),
|
|
43
|
+
'stdio_endpoints': (json['stdio_endpoints'].map(_1.StdioAgentEndpointFromJSON)),
|
|
44
|
+
'tags': json['tags'],
|
|
45
|
+
'tenant_id': json['tenant_id'],
|
|
46
|
+
'visibility': (0, _1.VisibilityFromJSON)(json['visibility']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AgentToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'agent_record_id': value.agent_record_id,
|
|
58
|
+
'consecutive_missed_heartbeats': value.consecutive_missed_heartbeats,
|
|
59
|
+
'created_at': value.created_at,
|
|
60
|
+
'deployment_modality': (0, _1.AgentDeploymentModalityToJSON)(value.deployment_modality),
|
|
61
|
+
'description': value.description,
|
|
62
|
+
'endpoints': (value.endpoints.map(_1.EndpointToJSON)),
|
|
63
|
+
'id': value.id,
|
|
64
|
+
'last_missed_heartbeat': value.last_missed_heartbeat,
|
|
65
|
+
'last_modified': value.last_modified,
|
|
66
|
+
'liveness': (0, _1.AgentLivenessToJSON)(value.liveness),
|
|
67
|
+
'name': value.name,
|
|
68
|
+
'owner': value.owner,
|
|
69
|
+
'rest_http_endpoints': (value.rest_http_endpoints.map(_1.RestHttpAgentEndpointToJSON)),
|
|
70
|
+
'rpc_endpoints': (value.rpc_endpoints.map(_1.RpcAgentEndpointToJSON)),
|
|
71
|
+
'stdio_endpoints': (value.stdio_endpoints.map(_1.StdioAgentEndpointToJSON)),
|
|
72
|
+
'tags': value.tags,
|
|
73
|
+
'tenant_id': value.tenant_id,
|
|
74
|
+
'visibility': (0, _1.VisibilityToJSON)(value.visibility),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AgentArtifactType {
|
|
18
|
+
Binary = "Binary",
|
|
19
|
+
DockerImage = "DockerImage",
|
|
20
|
+
HelmChart = "HelmChart",
|
|
21
|
+
PythonPackage = "PythonPackage",
|
|
22
|
+
SourceCode = "SourceCode",
|
|
23
|
+
Unspecified = "Unspecified"
|
|
24
|
+
}
|
|
25
|
+
export declare function AgentArtifactTypeFromJSON(json: any): AgentArtifactType;
|
|
26
|
+
export declare function AgentArtifactTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentArtifactType;
|
|
27
|
+
export declare function AgentArtifactTypeToJSON(value?: AgentArtifactType | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentArtifactType = void 0;
|
|
17
|
+
exports.AgentArtifactTypeFromJSON = AgentArtifactTypeFromJSON;
|
|
18
|
+
exports.AgentArtifactTypeFromJSONTyped = AgentArtifactTypeFromJSONTyped;
|
|
19
|
+
exports.AgentArtifactTypeToJSON = AgentArtifactTypeToJSON;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @enum {string}
|
|
24
|
+
*/
|
|
25
|
+
var AgentArtifactType;
|
|
26
|
+
(function (AgentArtifactType) {
|
|
27
|
+
AgentArtifactType["Binary"] = "Binary";
|
|
28
|
+
AgentArtifactType["DockerImage"] = "DockerImage";
|
|
29
|
+
AgentArtifactType["HelmChart"] = "HelmChart";
|
|
30
|
+
AgentArtifactType["PythonPackage"] = "PythonPackage";
|
|
31
|
+
AgentArtifactType["SourceCode"] = "SourceCode";
|
|
32
|
+
AgentArtifactType["Unspecified"] = "Unspecified";
|
|
33
|
+
})(AgentArtifactType || (exports.AgentArtifactType = AgentArtifactType = {}));
|
|
34
|
+
function AgentArtifactTypeFromJSON(json) {
|
|
35
|
+
return AgentArtifactTypeFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AgentArtifactTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
function AgentArtifactTypeToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AgentDeploymentModality {
|
|
18
|
+
Persistent = "Persistent",
|
|
19
|
+
OnDemand = "OnDemand"
|
|
20
|
+
}
|
|
21
|
+
export declare function AgentDeploymentModalityFromJSON(json: any): AgentDeploymentModality;
|
|
22
|
+
export declare function AgentDeploymentModalityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDeploymentModality;
|
|
23
|
+
export declare function AgentDeploymentModalityToJSON(value?: AgentDeploymentModality | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentDeploymentModality = void 0;
|
|
17
|
+
exports.AgentDeploymentModalityFromJSON = AgentDeploymentModalityFromJSON;
|
|
18
|
+
exports.AgentDeploymentModalityFromJSONTyped = AgentDeploymentModalityFromJSONTyped;
|
|
19
|
+
exports.AgentDeploymentModalityToJSON = AgentDeploymentModalityToJSON;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @enum {string}
|
|
24
|
+
*/
|
|
25
|
+
var AgentDeploymentModality;
|
|
26
|
+
(function (AgentDeploymentModality) {
|
|
27
|
+
AgentDeploymentModality["Persistent"] = "Persistent";
|
|
28
|
+
AgentDeploymentModality["OnDemand"] = "OnDemand";
|
|
29
|
+
})(AgentDeploymentModality || (exports.AgentDeploymentModality = AgentDeploymentModality = {}));
|
|
30
|
+
function AgentDeploymentModalityFromJSON(json) {
|
|
31
|
+
return AgentDeploymentModalityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AgentDeploymentModalityFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
function AgentDeploymentModalityToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AgentLiveness {
|
|
18
|
+
Alive = "Alive",
|
|
19
|
+
Dead = "Dead"
|
|
20
|
+
}
|
|
21
|
+
export declare function AgentLivenessFromJSON(json: any): AgentLiveness;
|
|
22
|
+
export declare function AgentLivenessFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLiveness;
|
|
23
|
+
export declare function AgentLivenessToJSON(value?: AgentLiveness | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentLiveness = void 0;
|
|
17
|
+
exports.AgentLivenessFromJSON = AgentLivenessFromJSON;
|
|
18
|
+
exports.AgentLivenessFromJSONTyped = AgentLivenessFromJSONTyped;
|
|
19
|
+
exports.AgentLivenessToJSON = AgentLivenessToJSON;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @enum {string}
|
|
24
|
+
*/
|
|
25
|
+
var AgentLiveness;
|
|
26
|
+
(function (AgentLiveness) {
|
|
27
|
+
AgentLiveness["Alive"] = "Alive";
|
|
28
|
+
AgentLiveness["Dead"] = "Dead";
|
|
29
|
+
})(AgentLiveness || (exports.AgentLiveness = AgentLiveness = {}));
|
|
30
|
+
function AgentLivenessFromJSON(json) {
|
|
31
|
+
return AgentLivenessFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AgentLivenessFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
function AgentLivenessToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentProvider
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentProvider {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentProvider
|
|
22
|
+
*/
|
|
23
|
+
organization: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentProvider
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AgentProviderFromJSON(json: any): AgentProvider;
|
|
32
|
+
export declare function AgentProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentProvider;
|
|
33
|
+
export declare function AgentProviderToJSON(value?: AgentProvider | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentProviderFromJSON = AgentProviderFromJSON;
|
|
17
|
+
exports.AgentProviderFromJSONTyped = AgentProviderFromJSONTyped;
|
|
18
|
+
exports.AgentProviderToJSON = AgentProviderToJSON;
|
|
19
|
+
function AgentProviderFromJSON(json) {
|
|
20
|
+
return AgentProviderFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function AgentProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'organization': json['organization'],
|
|
28
|
+
'url': json['url'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function AgentProviderToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'organization': value.organization,
|
|
40
|
+
'url': value.url,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentProvider, AgentSkill, ArtifactLocator, Capabilities, RestHttpAgentInterface, RpcAgentInterface, StdioAgentInterface, Visibility } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentRecord
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentRecord {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ArtifactLocator>}
|
|
22
|
+
* @memberof AgentRecord
|
|
23
|
+
*/
|
|
24
|
+
artifact_locators: Array<ArtifactLocator>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Capabilities}
|
|
28
|
+
* @memberof AgentRecord
|
|
29
|
+
*/
|
|
30
|
+
capabilities: Capabilities;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AgentRecord
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AgentRecord
|
|
41
|
+
*/
|
|
42
|
+
documentation_url?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AgentRecord
|
|
47
|
+
*/
|
|
48
|
+
icon_url?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AgentRecord
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AgentRecord
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AgentRecord
|
|
65
|
+
*/
|
|
66
|
+
owner: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AgentProvider}
|
|
70
|
+
* @memberof AgentRecord
|
|
71
|
+
*/
|
|
72
|
+
provider?: AgentProvider;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<RestHttpAgentInterface>}
|
|
76
|
+
* @memberof AgentRecord
|
|
77
|
+
*/
|
|
78
|
+
rest_http_interfaces: Array<RestHttpAgentInterface>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<RpcAgentInterface>}
|
|
82
|
+
* @memberof AgentRecord
|
|
83
|
+
*/
|
|
84
|
+
rpc_interfaces: Array<RpcAgentInterface>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<AgentSkill>}
|
|
88
|
+
* @memberof AgentRecord
|
|
89
|
+
*/
|
|
90
|
+
skills: Array<AgentSkill>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Array<StdioAgentInterface>}
|
|
94
|
+
* @memberof AgentRecord
|
|
95
|
+
*/
|
|
96
|
+
stdio_interfaces: Array<StdioAgentInterface>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<string>}
|
|
100
|
+
* @memberof AgentRecord
|
|
101
|
+
*/
|
|
102
|
+
tags: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AgentRecord
|
|
107
|
+
*/
|
|
108
|
+
tenant_id: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AgentRecord
|
|
113
|
+
*/
|
|
114
|
+
version: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {Visibility}
|
|
118
|
+
* @memberof AgentRecord
|
|
119
|
+
*/
|
|
120
|
+
visibility: Visibility;
|
|
121
|
+
}
|
|
122
|
+
export declare function AgentRecordFromJSON(json: any): AgentRecord;
|
|
123
|
+
export declare function AgentRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRecord;
|
|
124
|
+
export declare function AgentRecordToJSON(value?: AgentRecord | null): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentRecordFromJSON = AgentRecordFromJSON;
|
|
17
|
+
exports.AgentRecordFromJSONTyped = AgentRecordFromJSONTyped;
|
|
18
|
+
exports.AgentRecordToJSON = AgentRecordToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function AgentRecordFromJSON(json) {
|
|
22
|
+
return AgentRecordFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function AgentRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'artifact_locators': (json['artifact_locators'].map(_1.ArtifactLocatorFromJSON)),
|
|
30
|
+
'capabilities': (0, _1.CapabilitiesFromJSON)(json['capabilities']),
|
|
31
|
+
'description': json['description'],
|
|
32
|
+
'documentation_url': !(0, runtime_1.exists)(json, 'documentation_url') ? undefined : json['documentation_url'],
|
|
33
|
+
'icon_url': !(0, runtime_1.exists)(json, 'icon_url') ? undefined : json['icon_url'],
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'owner': json['owner'],
|
|
37
|
+
'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : (0, _1.AgentProviderFromJSON)(json['provider']),
|
|
38
|
+
'rest_http_interfaces': (json['rest_http_interfaces'].map(_1.RestHttpAgentInterfaceFromJSON)),
|
|
39
|
+
'rpc_interfaces': (json['rpc_interfaces'].map(_1.RpcAgentInterfaceFromJSON)),
|
|
40
|
+
'skills': (json['skills'].map(_1.AgentSkillFromJSON)),
|
|
41
|
+
'stdio_interfaces': (json['stdio_interfaces'].map(_1.StdioAgentInterfaceFromJSON)),
|
|
42
|
+
'tags': json['tags'],
|
|
43
|
+
'tenant_id': json['tenant_id'],
|
|
44
|
+
'version': json['version'],
|
|
45
|
+
'visibility': (0, _1.VisibilityFromJSON)(json['visibility']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AgentRecordToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'artifact_locators': (value.artifact_locators.map(_1.ArtifactLocatorToJSON)),
|
|
57
|
+
'capabilities': (0, _1.CapabilitiesToJSON)(value.capabilities),
|
|
58
|
+
'description': value.description,
|
|
59
|
+
'documentation_url': value.documentation_url,
|
|
60
|
+
'icon_url': value.icon_url,
|
|
61
|
+
'id': value.id,
|
|
62
|
+
'name': value.name,
|
|
63
|
+
'owner': value.owner,
|
|
64
|
+
'provider': (0, _1.AgentProviderToJSON)(value.provider),
|
|
65
|
+
'rest_http_interfaces': (value.rest_http_interfaces.map(_1.RestHttpAgentInterfaceToJSON)),
|
|
66
|
+
'rpc_interfaces': (value.rpc_interfaces.map(_1.RpcAgentInterfaceToJSON)),
|
|
67
|
+
'skills': (value.skills.map(_1.AgentSkillToJSON)),
|
|
68
|
+
'stdio_interfaces': (value.stdio_interfaces.map(_1.StdioAgentInterfaceToJSON)),
|
|
69
|
+
'tags': value.tags,
|
|
70
|
+
'tenant_id': value.tenant_id,
|
|
71
|
+
'version': value.version,
|
|
72
|
+
'visibility': (0, _1.VisibilityToJSON)(value.visibility),
|
|
73
|
+
};
|
|
74
|
+
}
|