@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,51 @@
|
|
|
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 RestHttpLivenessProbe
|
|
16
|
+
*/
|
|
17
|
+
export interface RestHttpLivenessProbe {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RestHttpLivenessProbe
|
|
22
|
+
*/
|
|
23
|
+
initial_delay_seconds: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RestHttpLivenessProbe
|
|
28
|
+
*/
|
|
29
|
+
interval_seconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RestHttpLivenessProbe
|
|
34
|
+
*/
|
|
35
|
+
missed_heartbeat_threshold: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RestHttpLivenessProbe
|
|
40
|
+
*/
|
|
41
|
+
route: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RestHttpLivenessProbe
|
|
46
|
+
*/
|
|
47
|
+
timeout_seconds: number;
|
|
48
|
+
}
|
|
49
|
+
export declare function RestHttpLivenessProbeFromJSON(json: any): RestHttpLivenessProbe;
|
|
50
|
+
export declare function RestHttpLivenessProbeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestHttpLivenessProbe;
|
|
51
|
+
export declare function RestHttpLivenessProbeToJSON(value?: RestHttpLivenessProbe | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.RestHttpLivenessProbeFromJSON = RestHttpLivenessProbeFromJSON;
|
|
17
|
+
exports.RestHttpLivenessProbeFromJSONTyped = RestHttpLivenessProbeFromJSONTyped;
|
|
18
|
+
exports.RestHttpLivenessProbeToJSON = RestHttpLivenessProbeToJSON;
|
|
19
|
+
function RestHttpLivenessProbeFromJSON(json) {
|
|
20
|
+
return RestHttpLivenessProbeFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function RestHttpLivenessProbeFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'initial_delay_seconds': json['initial_delay_seconds'],
|
|
28
|
+
'interval_seconds': json['interval_seconds'],
|
|
29
|
+
'missed_heartbeat_threshold': json['missed_heartbeat_threshold'],
|
|
30
|
+
'route': json['route'],
|
|
31
|
+
'timeout_seconds': json['timeout_seconds'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function RestHttpLivenessProbeToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'initial_delay_seconds': value.initial_delay_seconds,
|
|
43
|
+
'interval_seconds': value.interval_seconds,
|
|
44
|
+
'missed_heartbeat_threshold': value.missed_heartbeat_threshold,
|
|
45
|
+
'route': value.route,
|
|
46
|
+
'timeout_seconds': value.timeout_seconds,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { MessageBinding } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RpcAgentEndpoint
|
|
17
|
+
*/
|
|
18
|
+
export interface RpcAgentEndpoint {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RpcAgentEndpoint
|
|
23
|
+
*/
|
|
24
|
+
base_url?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MessageBinding}
|
|
28
|
+
* @memberof RpcAgentEndpoint
|
|
29
|
+
*/
|
|
30
|
+
message_binding?: MessageBinding;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RpcAgentEndpoint
|
|
35
|
+
*/
|
|
36
|
+
name?: string | null;
|
|
37
|
+
}
|
|
38
|
+
export declare function RpcAgentEndpointFromJSON(json: any): RpcAgentEndpoint;
|
|
39
|
+
export declare function RpcAgentEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcAgentEndpoint;
|
|
40
|
+
export declare function RpcAgentEndpointToJSON(value?: RpcAgentEndpoint | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.RpcAgentEndpointFromJSON = RpcAgentEndpointFromJSON;
|
|
17
|
+
exports.RpcAgentEndpointFromJSONTyped = RpcAgentEndpointFromJSONTyped;
|
|
18
|
+
exports.RpcAgentEndpointToJSON = RpcAgentEndpointToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function RpcAgentEndpointFromJSON(json) {
|
|
22
|
+
return RpcAgentEndpointFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function RpcAgentEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'base_url': !(0, runtime_1.exists)(json, 'base_url') ? undefined : json['base_url'],
|
|
30
|
+
'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
|
|
31
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function RpcAgentEndpointToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'base_url': value.base_url,
|
|
43
|
+
'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
|
|
44
|
+
'name': value.name,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { MessageBinding } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RpcAgentInterface
|
|
17
|
+
*/
|
|
18
|
+
export interface RpcAgentInterface {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RpcAgentInterface
|
|
23
|
+
*/
|
|
24
|
+
description?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MessageBinding}
|
|
28
|
+
* @memberof RpcAgentInterface
|
|
29
|
+
*/
|
|
30
|
+
message_binding?: MessageBinding;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RpcAgentInterface
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function RpcAgentInterfaceFromJSON(json: any): RpcAgentInterface;
|
|
39
|
+
export declare function RpcAgentInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RpcAgentInterface;
|
|
40
|
+
export declare function RpcAgentInterfaceToJSON(value?: RpcAgentInterface | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.RpcAgentInterfaceFromJSON = RpcAgentInterfaceFromJSON;
|
|
17
|
+
exports.RpcAgentInterfaceFromJSONTyped = RpcAgentInterfaceFromJSONTyped;
|
|
18
|
+
exports.RpcAgentInterfaceToJSON = RpcAgentInterfaceToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function RpcAgentInterfaceFromJSON(json) {
|
|
22
|
+
return RpcAgentInterfaceFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function RpcAgentInterfaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
30
|
+
'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
|
|
31
|
+
'name': json['name'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function RpcAgentInterfaceToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'description': value.description,
|
|
43
|
+
'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
|
|
44
|
+
'name': value.name,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { MessageBinding } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StdioAgentEndpoint
|
|
17
|
+
*/
|
|
18
|
+
export interface StdioAgentEndpoint {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StdioAgentEndpoint
|
|
23
|
+
*/
|
|
24
|
+
base_url?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MessageBinding}
|
|
28
|
+
* @memberof StdioAgentEndpoint
|
|
29
|
+
*/
|
|
30
|
+
message_binding?: MessageBinding;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StdioAgentEndpoint
|
|
35
|
+
*/
|
|
36
|
+
name?: string | null;
|
|
37
|
+
}
|
|
38
|
+
export declare function StdioAgentEndpointFromJSON(json: any): StdioAgentEndpoint;
|
|
39
|
+
export declare function StdioAgentEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): StdioAgentEndpoint;
|
|
40
|
+
export declare function StdioAgentEndpointToJSON(value?: StdioAgentEndpoint | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.StdioAgentEndpointFromJSON = StdioAgentEndpointFromJSON;
|
|
17
|
+
exports.StdioAgentEndpointFromJSONTyped = StdioAgentEndpointFromJSONTyped;
|
|
18
|
+
exports.StdioAgentEndpointToJSON = StdioAgentEndpointToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function StdioAgentEndpointFromJSON(json) {
|
|
22
|
+
return StdioAgentEndpointFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function StdioAgentEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'base_url': !(0, runtime_1.exists)(json, 'base_url') ? undefined : json['base_url'],
|
|
30
|
+
'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
|
|
31
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function StdioAgentEndpointToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'base_url': value.base_url,
|
|
43
|
+
'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
|
|
44
|
+
'name': value.name,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { MessageBinding } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StdioAgentInterface
|
|
17
|
+
*/
|
|
18
|
+
export interface StdioAgentInterface {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof StdioAgentInterface
|
|
23
|
+
*/
|
|
24
|
+
description?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MessageBinding}
|
|
28
|
+
* @memberof StdioAgentInterface
|
|
29
|
+
*/
|
|
30
|
+
message_binding?: MessageBinding;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof StdioAgentInterface
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function StdioAgentInterfaceFromJSON(json: any): StdioAgentInterface;
|
|
39
|
+
export declare function StdioAgentInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StdioAgentInterface;
|
|
40
|
+
export declare function StdioAgentInterfaceToJSON(value?: StdioAgentInterface | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.StdioAgentInterfaceFromJSON = StdioAgentInterfaceFromJSON;
|
|
17
|
+
exports.StdioAgentInterfaceFromJSONTyped = StdioAgentInterfaceFromJSONTyped;
|
|
18
|
+
exports.StdioAgentInterfaceToJSON = StdioAgentInterfaceToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function StdioAgentInterfaceFromJSON(json) {
|
|
22
|
+
return StdioAgentInterfaceFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function StdioAgentInterfaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
30
|
+
'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
|
|
31
|
+
'name': json['name'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function StdioAgentInterfaceToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'description': value.description,
|
|
43
|
+
'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
|
|
44
|
+
'name': value.name,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -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 Visibility {
|
|
18
|
+
Public = "Public",
|
|
19
|
+
Private = "Private"
|
|
20
|
+
}
|
|
21
|
+
export declare function VisibilityFromJSON(json: any): Visibility;
|
|
22
|
+
export declare function VisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Visibility;
|
|
23
|
+
export declare function VisibilityToJSON(value?: Visibility | 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.Visibility = void 0;
|
|
17
|
+
exports.VisibilityFromJSON = VisibilityFromJSON;
|
|
18
|
+
exports.VisibilityFromJSONTyped = VisibilityFromJSONTyped;
|
|
19
|
+
exports.VisibilityToJSON = VisibilityToJSON;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @enum {string}
|
|
24
|
+
*/
|
|
25
|
+
var Visibility;
|
|
26
|
+
(function (Visibility) {
|
|
27
|
+
Visibility["Public"] = "Public";
|
|
28
|
+
Visibility["Private"] = "Private";
|
|
29
|
+
})(Visibility || (exports.Visibility = Visibility = {}));
|
|
30
|
+
function VisibilityFromJSON(json) {
|
|
31
|
+
return VisibilityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function VisibilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
function VisibilityToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './Agent';
|
|
2
|
+
export * from './AgentArtifactType';
|
|
3
|
+
export * from './AgentDeploymentModality';
|
|
4
|
+
export * from './AgentLiveness';
|
|
5
|
+
export * from './AgentProvider';
|
|
6
|
+
export * from './AgentRecord';
|
|
7
|
+
export * from './AgentSkill';
|
|
8
|
+
export * from './ArtifactLocator';
|
|
9
|
+
export * from './Capabilities';
|
|
10
|
+
export * from './CreateAgentBody';
|
|
11
|
+
export * from './CreateAgentRecordBody';
|
|
12
|
+
export * from './CreateAgentRecordResponse';
|
|
13
|
+
export * from './CreateAgentResponse';
|
|
14
|
+
export * from './Endpoint';
|
|
15
|
+
export * from './ListAgentRecordsResponse';
|
|
16
|
+
export * from './ListAgentsResponse';
|
|
17
|
+
export * from './MessageBinding';
|
|
18
|
+
export * from './RestHttpAgentEndpoint';
|
|
19
|
+
export * from './RestHttpAgentInterface';
|
|
20
|
+
export * from './RestHttpLivenessProbe';
|
|
21
|
+
export * from './RpcAgentEndpoint';
|
|
22
|
+
export * from './RpcAgentInterface';
|
|
23
|
+
export * from './StdioAgentEndpoint';
|
|
24
|
+
export * from './StdioAgentInterface';
|
|
25
|
+
export * from './Visibility';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./Agent"), exports);
|
|
20
|
+
__exportStar(require("./AgentArtifactType"), exports);
|
|
21
|
+
__exportStar(require("./AgentDeploymentModality"), exports);
|
|
22
|
+
__exportStar(require("./AgentLiveness"), exports);
|
|
23
|
+
__exportStar(require("./AgentProvider"), exports);
|
|
24
|
+
__exportStar(require("./AgentRecord"), exports);
|
|
25
|
+
__exportStar(require("./AgentSkill"), exports);
|
|
26
|
+
__exportStar(require("./ArtifactLocator"), exports);
|
|
27
|
+
__exportStar(require("./Capabilities"), exports);
|
|
28
|
+
__exportStar(require("./CreateAgentBody"), exports);
|
|
29
|
+
__exportStar(require("./CreateAgentRecordBody"), exports);
|
|
30
|
+
__exportStar(require("./CreateAgentRecordResponse"), exports);
|
|
31
|
+
__exportStar(require("./CreateAgentResponse"), exports);
|
|
32
|
+
__exportStar(require("./Endpoint"), exports);
|
|
33
|
+
__exportStar(require("./ListAgentRecordsResponse"), exports);
|
|
34
|
+
__exportStar(require("./ListAgentsResponse"), exports);
|
|
35
|
+
__exportStar(require("./MessageBinding"), exports);
|
|
36
|
+
__exportStar(require("./RestHttpAgentEndpoint"), exports);
|
|
37
|
+
__exportStar(require("./RestHttpAgentInterface"), exports);
|
|
38
|
+
__exportStar(require("./RestHttpLivenessProbe"), exports);
|
|
39
|
+
__exportStar(require("./RpcAgentEndpoint"), exports);
|
|
40
|
+
__exportStar(require("./RpcAgentInterface"), exports);
|
|
41
|
+
__exportStar(require("./StdioAgentEndpoint"), exports);
|
|
42
|
+
__exportStar(require("./StdioAgentInterface"), exports);
|
|
43
|
+
__exportStar(require("./Visibility"), exports);
|