@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.
Files changed (99) hide show
  1. package/.openapi-generator/FILES +37 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/AgentsApi.d.ts +79 -0
  6. package/dist/apis/AgentsApi.js +281 -0
  7. package/dist/apis/HealthApi.d.ts +25 -0
  8. package/dist/apis/HealthApi.js +118 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +20 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +21 -0
  13. package/dist/models/Agent.d.ts +130 -0
  14. package/dist/models/Agent.js +76 -0
  15. package/dist/models/AgentArtifactType.d.ts +27 -0
  16. package/dist/models/AgentArtifactType.js +42 -0
  17. package/dist/models/AgentDeploymentModality.d.ts +23 -0
  18. package/dist/models/AgentDeploymentModality.js +38 -0
  19. package/dist/models/AgentLiveness.d.ts +23 -0
  20. package/dist/models/AgentLiveness.js +38 -0
  21. package/dist/models/AgentProvider.d.ts +33 -0
  22. package/dist/models/AgentProvider.js +42 -0
  23. package/dist/models/AgentRecord.d.ts +124 -0
  24. package/dist/models/AgentRecord.js +74 -0
  25. package/dist/models/AgentSkill.d.ts +51 -0
  26. package/dist/models/AgentSkill.js +48 -0
  27. package/dist/models/ArtifactLocator.d.ts +34 -0
  28. package/dist/models/ArtifactLocator.js +43 -0
  29. package/dist/models/Capabilities.d.ts +33 -0
  30. package/dist/models/Capabilities.js +42 -0
  31. package/dist/models/CreateAgentBody.d.ts +76 -0
  32. package/dist/models/CreateAgentBody.js +58 -0
  33. package/dist/models/CreateAgentRecordBody.d.ts +106 -0
  34. package/dist/models/CreateAgentRecordBody.js +68 -0
  35. package/dist/models/CreateAgentRecordResponse.d.ts +52 -0
  36. package/dist/models/CreateAgentRecordResponse.js +49 -0
  37. package/dist/models/CreateAgentResponse.d.ts +52 -0
  38. package/dist/models/CreateAgentResponse.js +49 -0
  39. package/dist/models/Endpoint.d.ts +57 -0
  40. package/dist/models/Endpoint.js +50 -0
  41. package/dist/models/ListAgentRecordsResponse.d.ts +52 -0
  42. package/dist/models/ListAgentRecordsResponse.js +49 -0
  43. package/dist/models/ListAgentsResponse.d.ts +52 -0
  44. package/dist/models/ListAgentsResponse.js +49 -0
  45. package/dist/models/MessageBinding.d.ts +24 -0
  46. package/dist/models/MessageBinding.js +39 -0
  47. package/dist/models/RestHttpAgentEndpoint.d.ts +46 -0
  48. package/dist/models/RestHttpAgentEndpoint.js +48 -0
  49. package/dist/models/RestHttpAgentInterface.d.ts +46 -0
  50. package/dist/models/RestHttpAgentInterface.js +48 -0
  51. package/dist/models/RestHttpLivenessProbe.d.ts +51 -0
  52. package/dist/models/RestHttpLivenessProbe.js +48 -0
  53. package/dist/models/RpcAgentEndpoint.d.ts +40 -0
  54. package/dist/models/RpcAgentEndpoint.js +46 -0
  55. package/dist/models/RpcAgentInterface.d.ts +40 -0
  56. package/dist/models/RpcAgentInterface.js +46 -0
  57. package/dist/models/StdioAgentEndpoint.d.ts +40 -0
  58. package/dist/models/StdioAgentEndpoint.js +46 -0
  59. package/dist/models/StdioAgentInterface.d.ts +40 -0
  60. package/dist/models/StdioAgentInterface.js +46 -0
  61. package/dist/models/Visibility.d.ts +23 -0
  62. package/dist/models/Visibility.js +38 -0
  63. package/dist/models/index.d.ts +25 -0
  64. package/dist/models/index.js +43 -0
  65. package/dist/runtime.d.ts +140 -0
  66. package/dist/runtime.js +430 -0
  67. package/package.json +15 -0
  68. package/src/apis/AgentsApi.ts +207 -0
  69. package/src/apis/HealthApi.ts +48 -0
  70. package/src/apis/index.ts +4 -0
  71. package/src/index.ts +5 -0
  72. package/src/models/Agent.ts +223 -0
  73. package/src/models/AgentArtifactType.ts +40 -0
  74. package/src/models/AgentDeploymentModality.ts +36 -0
  75. package/src/models/AgentLiveness.ts +36 -0
  76. package/src/models/AgentProvider.ts +64 -0
  77. package/src/models/AgentRecord.ts +219 -0
  78. package/src/models/AgentSkill.ts +88 -0
  79. package/src/models/ArtifactLocator.ts +71 -0
  80. package/src/models/Capabilities.ts +64 -0
  81. package/src/models/CreateAgentBody.ts +143 -0
  82. package/src/models/CreateAgentRecordBody.ts +195 -0
  83. package/src/models/CreateAgentRecordResponse.ts +95 -0
  84. package/src/models/CreateAgentResponse.ts +95 -0
  85. package/src/models/Endpoint.ts +96 -0
  86. package/src/models/ListAgentRecordsResponse.ts +95 -0
  87. package/src/models/ListAgentsResponse.ts +95 -0
  88. package/src/models/MessageBinding.ts +37 -0
  89. package/src/models/RestHttpAgentEndpoint.ts +91 -0
  90. package/src/models/RestHttpAgentInterface.ts +91 -0
  91. package/src/models/RestHttpLivenessProbe.ts +88 -0
  92. package/src/models/RpcAgentEndpoint.ts +79 -0
  93. package/src/models/RpcAgentInterface.ts +79 -0
  94. package/src/models/StdioAgentEndpoint.ts +79 -0
  95. package/src/models/StdioAgentInterface.ts +79 -0
  96. package/src/models/Visibility.ts +36 -0
  97. package/src/models/index.ts +27 -0
  98. package/src/runtime.ts +320 -0
  99. package/tsconfig.json +20 -0
@@ -0,0 +1,52 @@
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 { Agent } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateAgentResponse
17
+ */
18
+ export interface CreateAgentResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreateAgentResponse
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {object}
28
+ * @memberof CreateAgentResponse
29
+ */
30
+ metadata: object;
31
+ /**
32
+ *
33
+ * @type {Agent}
34
+ * @memberof CreateAgentResponse
35
+ */
36
+ result: Agent;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof CreateAgentResponse
41
+ */
42
+ status: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CreateAgentResponse
47
+ */
48
+ version: string;
49
+ }
50
+ export declare function CreateAgentResponseFromJSON(json: any): CreateAgentResponse;
51
+ export declare function CreateAgentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentResponse;
52
+ export declare function CreateAgentResponseToJSON(value?: CreateAgentResponse | null): any;
@@ -0,0 +1,49 @@
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.CreateAgentResponseFromJSON = CreateAgentResponseFromJSON;
17
+ exports.CreateAgentResponseFromJSONTyped = CreateAgentResponseFromJSONTyped;
18
+ exports.CreateAgentResponseToJSON = CreateAgentResponseToJSON;
19
+ var _1 = require("./");
20
+ function CreateAgentResponseFromJSON(json) {
21
+ return CreateAgentResponseFromJSONTyped(json, false);
22
+ }
23
+ function CreateAgentResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'message': json['message'],
29
+ 'metadata': json['metadata'],
30
+ 'result': (0, _1.AgentFromJSON)(json['result']),
31
+ 'status': json['status'],
32
+ 'version': json['version'],
33
+ };
34
+ }
35
+ function CreateAgentResponseToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'message': value.message,
44
+ 'metadata': value.metadata,
45
+ 'result': (0, _1.AgentToJSON)(value.result),
46
+ 'status': value.status,
47
+ 'version': value.version,
48
+ };
49
+ }
@@ -0,0 +1,57 @@
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 Endpoint
16
+ */
17
+ export interface Endpoint {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Endpoint
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Endpoint
28
+ */
29
+ slug: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Endpoint
34
+ */
35
+ target_base_url: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Endpoint
40
+ */
41
+ target_name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof Endpoint
46
+ */
47
+ target_resource_urn: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof Endpoint
52
+ */
53
+ tenant_id: string;
54
+ }
55
+ export declare function EndpointFromJSON(json: any): Endpoint;
56
+ export declare function EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Endpoint;
57
+ export declare function EndpointToJSON(value?: Endpoint | null): any;
@@ -0,0 +1,50 @@
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.EndpointFromJSON = EndpointFromJSON;
17
+ exports.EndpointFromJSONTyped = EndpointFromJSONTyped;
18
+ exports.EndpointToJSON = EndpointToJSON;
19
+ function EndpointFromJSON(json) {
20
+ return EndpointFromJSONTyped(json, false);
21
+ }
22
+ function EndpointFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': json['id'],
28
+ 'slug': json['slug'],
29
+ 'target_base_url': json['target_base_url'],
30
+ 'target_name': json['target_name'],
31
+ 'target_resource_urn': json['target_resource_urn'],
32
+ 'tenant_id': json['tenant_id'],
33
+ };
34
+ }
35
+ function EndpointToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'id': value.id,
44
+ 'slug': value.slug,
45
+ 'target_base_url': value.target_base_url,
46
+ 'target_name': value.target_name,
47
+ 'target_resource_urn': value.target_resource_urn,
48
+ 'tenant_id': value.tenant_id,
49
+ };
50
+ }
@@ -0,0 +1,52 @@
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 { AgentRecord } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAgentRecordsResponse
17
+ */
18
+ export interface ListAgentRecordsResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ListAgentRecordsResponse
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {object}
28
+ * @memberof ListAgentRecordsResponse
29
+ */
30
+ metadata: object;
31
+ /**
32
+ *
33
+ * @type {Array<AgentRecord>}
34
+ * @memberof ListAgentRecordsResponse
35
+ */
36
+ result: Array<AgentRecord>;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ListAgentRecordsResponse
41
+ */
42
+ status: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ListAgentRecordsResponse
47
+ */
48
+ version: string;
49
+ }
50
+ export declare function ListAgentRecordsResponseFromJSON(json: any): ListAgentRecordsResponse;
51
+ export declare function ListAgentRecordsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAgentRecordsResponse;
52
+ export declare function ListAgentRecordsResponseToJSON(value?: ListAgentRecordsResponse | null): any;
@@ -0,0 +1,49 @@
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.ListAgentRecordsResponseFromJSON = ListAgentRecordsResponseFromJSON;
17
+ exports.ListAgentRecordsResponseFromJSONTyped = ListAgentRecordsResponseFromJSONTyped;
18
+ exports.ListAgentRecordsResponseToJSON = ListAgentRecordsResponseToJSON;
19
+ var _1 = require("./");
20
+ function ListAgentRecordsResponseFromJSON(json) {
21
+ return ListAgentRecordsResponseFromJSONTyped(json, false);
22
+ }
23
+ function ListAgentRecordsResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'message': json['message'],
29
+ 'metadata': json['metadata'],
30
+ 'result': (json['result'].map(_1.AgentRecordFromJSON)),
31
+ 'status': json['status'],
32
+ 'version': json['version'],
33
+ };
34
+ }
35
+ function ListAgentRecordsResponseToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'message': value.message,
44
+ 'metadata': value.metadata,
45
+ 'result': (value.result.map(_1.AgentRecordToJSON)),
46
+ 'status': value.status,
47
+ 'version': value.version,
48
+ };
49
+ }
@@ -0,0 +1,52 @@
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 { Agent } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAgentsResponse
17
+ */
18
+ export interface ListAgentsResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ListAgentsResponse
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {object}
28
+ * @memberof ListAgentsResponse
29
+ */
30
+ metadata: object;
31
+ /**
32
+ *
33
+ * @type {Array<Agent>}
34
+ * @memberof ListAgentsResponse
35
+ */
36
+ result: Array<Agent>;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ListAgentsResponse
41
+ */
42
+ status: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ListAgentsResponse
47
+ */
48
+ version: string;
49
+ }
50
+ export declare function ListAgentsResponseFromJSON(json: any): ListAgentsResponse;
51
+ export declare function ListAgentsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAgentsResponse;
52
+ export declare function ListAgentsResponseToJSON(value?: ListAgentsResponse | null): any;
@@ -0,0 +1,49 @@
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.ListAgentsResponseFromJSON = ListAgentsResponseFromJSON;
17
+ exports.ListAgentsResponseFromJSONTyped = ListAgentsResponseFromJSONTyped;
18
+ exports.ListAgentsResponseToJSON = ListAgentsResponseToJSON;
19
+ var _1 = require("./");
20
+ function ListAgentsResponseFromJSON(json) {
21
+ return ListAgentsResponseFromJSONTyped(json, false);
22
+ }
23
+ function ListAgentsResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'message': json['message'],
29
+ 'metadata': json['metadata'],
30
+ 'result': (json['result'].map(_1.AgentFromJSON)),
31
+ 'status': json['status'],
32
+ 'version': json['version'],
33
+ };
34
+ }
35
+ function ListAgentsResponseToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'message': value.message,
44
+ 'metadata': value.metadata,
45
+ 'result': (value.result.map(_1.AgentToJSON)),
46
+ 'status': value.status,
47
+ 'version': value.version,
48
+ };
49
+ }
@@ -0,0 +1,24 @@
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 MessageBinding {
18
+ HttpJson = "HttpJson",
19
+ JsonRpc20 = "JsonRpc2_0",
20
+ Grpc = "Grpc"
21
+ }
22
+ export declare function MessageBindingFromJSON(json: any): MessageBinding;
23
+ export declare function MessageBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageBinding;
24
+ export declare function MessageBindingToJSON(value?: MessageBinding | null): any;
@@ -0,0 +1,39 @@
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.MessageBinding = void 0;
17
+ exports.MessageBindingFromJSON = MessageBindingFromJSON;
18
+ exports.MessageBindingFromJSONTyped = MessageBindingFromJSONTyped;
19
+ exports.MessageBindingToJSON = MessageBindingToJSON;
20
+ /**
21
+ *
22
+ * @export
23
+ * @enum {string}
24
+ */
25
+ var MessageBinding;
26
+ (function (MessageBinding) {
27
+ MessageBinding["HttpJson"] = "HttpJson";
28
+ MessageBinding["JsonRpc20"] = "JsonRpc2_0";
29
+ MessageBinding["Grpc"] = "Grpc";
30
+ })(MessageBinding || (exports.MessageBinding = MessageBinding = {}));
31
+ function MessageBindingFromJSON(json) {
32
+ return MessageBindingFromJSONTyped(json, false);
33
+ }
34
+ function MessageBindingFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ function MessageBindingToJSON(value) {
38
+ return value;
39
+ }
@@ -0,0 +1,46 @@
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, RestHttpLivenessProbe } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RestHttpAgentEndpoint
17
+ */
18
+ export interface RestHttpAgentEndpoint {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof RestHttpAgentEndpoint
23
+ */
24
+ base_url?: string | null;
25
+ /**
26
+ *
27
+ * @type {RestHttpLivenessProbe}
28
+ * @memberof RestHttpAgentEndpoint
29
+ */
30
+ liveness_probe?: RestHttpLivenessProbe;
31
+ /**
32
+ *
33
+ * @type {MessageBinding}
34
+ * @memberof RestHttpAgentEndpoint
35
+ */
36
+ message_binding?: MessageBinding;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof RestHttpAgentEndpoint
41
+ */
42
+ name?: string | null;
43
+ }
44
+ export declare function RestHttpAgentEndpointFromJSON(json: any): RestHttpAgentEndpoint;
45
+ export declare function RestHttpAgentEndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestHttpAgentEndpoint;
46
+ export declare function RestHttpAgentEndpointToJSON(value?: RestHttpAgentEndpoint | 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.RestHttpAgentEndpointFromJSON = RestHttpAgentEndpointFromJSON;
17
+ exports.RestHttpAgentEndpointFromJSONTyped = RestHttpAgentEndpointFromJSONTyped;
18
+ exports.RestHttpAgentEndpointToJSON = RestHttpAgentEndpointToJSON;
19
+ var runtime_1 = require("../runtime");
20
+ var _1 = require("./");
21
+ function RestHttpAgentEndpointFromJSON(json) {
22
+ return RestHttpAgentEndpointFromJSONTyped(json, false);
23
+ }
24
+ function RestHttpAgentEndpointFromJSONTyped(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
+ 'liveness_probe': !(0, runtime_1.exists)(json, 'liveness_probe') ? undefined : (0, _1.RestHttpLivenessProbeFromJSON)(json['liveness_probe']),
31
+ 'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
32
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
33
+ };
34
+ }
35
+ function RestHttpAgentEndpointToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'base_url': value.base_url,
44
+ 'liveness_probe': (0, _1.RestHttpLivenessProbeToJSON)(value.liveness_probe),
45
+ 'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
46
+ 'name': value.name,
47
+ };
48
+ }
@@ -0,0 +1,46 @@
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, RestHttpLivenessProbe } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RestHttpAgentInterface
17
+ */
18
+ export interface RestHttpAgentInterface {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof RestHttpAgentInterface
23
+ */
24
+ description?: string | null;
25
+ /**
26
+ *
27
+ * @type {RestHttpLivenessProbe}
28
+ * @memberof RestHttpAgentInterface
29
+ */
30
+ liveness_probe_config?: RestHttpLivenessProbe;
31
+ /**
32
+ *
33
+ * @type {MessageBinding}
34
+ * @memberof RestHttpAgentInterface
35
+ */
36
+ message_binding?: MessageBinding;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof RestHttpAgentInterface
41
+ */
42
+ name: string;
43
+ }
44
+ export declare function RestHttpAgentInterfaceFromJSON(json: any): RestHttpAgentInterface;
45
+ export declare function RestHttpAgentInterfaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestHttpAgentInterface;
46
+ export declare function RestHttpAgentInterfaceToJSON(value?: RestHttpAgentInterface | 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.RestHttpAgentInterfaceFromJSON = RestHttpAgentInterfaceFromJSON;
17
+ exports.RestHttpAgentInterfaceFromJSONTyped = RestHttpAgentInterfaceFromJSONTyped;
18
+ exports.RestHttpAgentInterfaceToJSON = RestHttpAgentInterfaceToJSON;
19
+ var runtime_1 = require("../runtime");
20
+ var _1 = require("./");
21
+ function RestHttpAgentInterfaceFromJSON(json) {
22
+ return RestHttpAgentInterfaceFromJSONTyped(json, false);
23
+ }
24
+ function RestHttpAgentInterfaceFromJSONTyped(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
+ 'liveness_probe_config': !(0, runtime_1.exists)(json, 'liveness_probe_config') ? undefined : (0, _1.RestHttpLivenessProbeFromJSON)(json['liveness_probe_config']),
31
+ 'message_binding': !(0, runtime_1.exists)(json, 'message_binding') ? undefined : (0, _1.MessageBindingFromJSON)(json['message_binding']),
32
+ 'name': json['name'],
33
+ };
34
+ }
35
+ function RestHttpAgentInterfaceToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'description': value.description,
44
+ 'liveness_probe_config': (0, _1.RestHttpLivenessProbeToJSON)(value.liveness_probe_config),
45
+ 'message_binding': (0, _1.MessageBindingToJSON)(value.message_binding),
46
+ 'name': value.name,
47
+ };
48
+ }