@cirrobio/api-client 0.1.27 → 0.1.28

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.
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
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.AgentRegistrationToJSON = exports.AgentRegistrationFromJSONTyped = exports.AgentRegistrationFromJSON = exports.instanceOfAgentRegistration = void 0;
17
+ /**
18
+ * Check if a given object implements the AgentRegistration interface.
19
+ */
20
+ function instanceOfAgentRegistration(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "localIp" in value;
23
+ isInstance = isInstance && "remoteIp" in value;
24
+ isInstance = isInstance && "agentVersion" in value;
25
+ isInstance = isInstance && "hostname" in value;
26
+ isInstance = isInstance && "os" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfAgentRegistration = instanceOfAgentRegistration;
30
+ function AgentRegistrationFromJSON(json) {
31
+ return AgentRegistrationFromJSONTyped(json, false);
32
+ }
33
+ exports.AgentRegistrationFromJSON = AgentRegistrationFromJSON;
34
+ function AgentRegistrationFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'localIp': json['localIp'],
40
+ 'remoteIp': json['remoteIp'],
41
+ 'agentVersion': json['agentVersion'],
42
+ 'hostname': json['hostname'],
43
+ 'os': json['os'],
44
+ };
45
+ }
46
+ exports.AgentRegistrationFromJSONTyped = AgentRegistrationFromJSONTyped;
47
+ function AgentRegistrationToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'localIp': value.localIp,
56
+ 'remoteIp': value.remoteIp,
57
+ 'agentVersion': value.agentVersion,
58
+ 'hostname': value.hostname,
59
+ 'os': value.os,
60
+ };
61
+ }
62
+ exports.AgentRegistrationToJSON = AgentRegistrationToJSON;
@@ -1,6 +1,9 @@
1
1
  export * from './AWSCredentials';
2
2
  export * from './AccessType';
3
3
  export * from './Agent';
4
+ export * from './AgentDetail';
5
+ export * from './AgentInput';
6
+ export * from './AgentRegistration';
4
7
  export * from './AgentStatus';
5
8
  export * from './AllowedDataType';
6
9
  export * from './ApproveProjectAccessRequest';
@@ -19,6 +19,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AWSCredentials"), exports);
20
20
  __exportStar(require("./AccessType"), exports);
21
21
  __exportStar(require("./Agent"), exports);
22
+ __exportStar(require("./AgentDetail"), exports);
23
+ __exportStar(require("./AgentInput"), exports);
24
+ __exportStar(require("./AgentRegistration"), exports);
22
25
  __exportStar(require("./AgentStatus"), exports);
23
26
  __exportStar(require("./AllowedDataType"), exports);
24
27
  __exportStar(require("./ApproveProjectAccessRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -15,22 +15,162 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AgentDetail,
19
+ AgentInput,
18
20
  ComputeEnvironmentConfiguration,
21
+ CreateResponse,
19
22
  } from '../models/index';
20
23
  import {
24
+ AgentDetailFromJSON,
25
+ AgentDetailToJSON,
26
+ AgentInputFromJSON,
27
+ AgentInputToJSON,
21
28
  ComputeEnvironmentConfigurationFromJSON,
22
29
  ComputeEnvironmentConfigurationToJSON,
30
+ CreateResponseFromJSON,
31
+ CreateResponseToJSON,
23
32
  } from '../models/index';
24
33
 
34
+ export interface CreateAgentRequest {
35
+ agentInput: AgentInput;
36
+ }
37
+
38
+ export interface DeleteAgentRequest {
39
+ agentId: string;
40
+ }
41
+
25
42
  export interface GetComputeEnvironmentsRequest {
26
43
  projectId: string;
27
44
  }
28
45
 
46
+ export interface UpdateAgentRequest {
47
+ agentId: string;
48
+ agentInput: AgentInput;
49
+ }
50
+
29
51
  /**
30
52
  *
31
53
  */
32
54
  export class ComputeEnvironmentApi extends runtime.BaseAPI {
33
55
 
56
+ /**
57
+ * Create a new agent
58
+ * Create agent
59
+ */
60
+ async createAgentRaw(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
61
+ if (requestParameters.agentInput === null || requestParameters.agentInput === undefined) {
62
+ throw new runtime.RequiredError('agentInput','Required parameter requestParameters.agentInput was null or undefined when calling createAgent.');
63
+ }
64
+
65
+ const queryParameters: any = {};
66
+
67
+ const headerParameters: runtime.HTTPHeaders = {};
68
+
69
+ headerParameters['Content-Type'] = 'application/json';
70
+
71
+ if (this.configuration && this.configuration.accessToken) {
72
+ const token = this.configuration.accessToken;
73
+ const tokenString = await token("accessToken", []);
74
+
75
+ if (tokenString) {
76
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
77
+ }
78
+ }
79
+ const response = await this.request({
80
+ path: `/agents`,
81
+ method: 'POST',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ body: AgentInputToJSON(requestParameters.agentInput),
85
+ }, initOverrides);
86
+
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
88
+ }
89
+
90
+ /**
91
+ * Create a new agent
92
+ * Create agent
93
+ */
94
+ async createAgent(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse> {
95
+ const response = await this.createAgentRaw(requestParameters, initOverrides);
96
+ return await response.value();
97
+ }
98
+
99
+ /**
100
+ * Delete an agent
101
+ * Delete agent
102
+ */
103
+ async deleteAgentRaw(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
104
+ if (requestParameters.agentId === null || requestParameters.agentId === undefined) {
105
+ throw new runtime.RequiredError('agentId','Required parameter requestParameters.agentId was null or undefined when calling deleteAgent.');
106
+ }
107
+
108
+ const queryParameters: any = {};
109
+
110
+ const headerParameters: runtime.HTTPHeaders = {};
111
+
112
+ if (this.configuration && this.configuration.accessToken) {
113
+ const token = this.configuration.accessToken;
114
+ const tokenString = await token("accessToken", []);
115
+
116
+ if (tokenString) {
117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
118
+ }
119
+ }
120
+ const response = await this.request({
121
+ path: `/agents/{agentId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters.agentId))),
122
+ method: 'DELETE',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ }, initOverrides);
126
+
127
+ return new runtime.VoidApiResponse(response);
128
+ }
129
+
130
+ /**
131
+ * Delete an agent
132
+ * Delete agent
133
+ */
134
+ async deleteAgent(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
135
+ await this.deleteAgentRaw(requestParameters, initOverrides);
136
+ }
137
+
138
+ /**
139
+ * Get a list of agents
140
+ * Get agents
141
+ */
142
+ async getAgentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentDetail>>> {
143
+ const queryParameters: any = {};
144
+
145
+ const headerParameters: runtime.HTTPHeaders = {};
146
+
147
+ if (this.configuration && this.configuration.accessToken) {
148
+ const token = this.configuration.accessToken;
149
+ const tokenString = await token("accessToken", []);
150
+
151
+ if (tokenString) {
152
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
153
+ }
154
+ }
155
+ const response = await this.request({
156
+ path: `/agents`,
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ }, initOverrides);
161
+
162
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AgentDetailFromJSON));
163
+ }
164
+
165
+ /**
166
+ * Get a list of agents
167
+ * Get agents
168
+ */
169
+ async getAgents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentDetail>> {
170
+ const response = await this.getAgentsRaw(initOverrides);
171
+ return await response.value();
172
+ }
173
+
34
174
  /**
35
175
  * Get a list of compute environments for a project
36
176
  * Get compute environments
@@ -71,4 +211,50 @@ export class ComputeEnvironmentApi extends runtime.BaseAPI {
71
211
  return await response.value();
72
212
  }
73
213
 
214
+ /**
215
+ * Update an agent
216
+ * Update agent
217
+ */
218
+ async updateAgentRaw(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
219
+ if (requestParameters.agentId === null || requestParameters.agentId === undefined) {
220
+ throw new runtime.RequiredError('agentId','Required parameter requestParameters.agentId was null or undefined when calling updateAgent.');
221
+ }
222
+
223
+ if (requestParameters.agentInput === null || requestParameters.agentInput === undefined) {
224
+ throw new runtime.RequiredError('agentInput','Required parameter requestParameters.agentInput was null or undefined when calling updateAgent.');
225
+ }
226
+
227
+ const queryParameters: any = {};
228
+
229
+ const headerParameters: runtime.HTTPHeaders = {};
230
+
231
+ headerParameters['Content-Type'] = 'application/json';
232
+
233
+ if (this.configuration && this.configuration.accessToken) {
234
+ const token = this.configuration.accessToken;
235
+ const tokenString = await token("accessToken", []);
236
+
237
+ if (tokenString) {
238
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
239
+ }
240
+ }
241
+ const response = await this.request({
242
+ path: `/agents/{agentId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters.agentId))),
243
+ method: 'PUT',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ body: AgentInputToJSON(requestParameters.agentInput),
247
+ }, initOverrides);
248
+
249
+ return new runtime.VoidApiResponse(response);
250
+ }
251
+
252
+ /**
253
+ * Update an agent
254
+ * Update agent
255
+ */
256
+ async updateAgent(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
257
+ await this.updateAgentRaw(requestParameters, initOverrides);
258
+ }
259
+
74
260
  }
@@ -46,7 +46,7 @@ export interface InviteUserOperationRequest {
46
46
  }
47
47
 
48
48
  export interface ListUsersRequest {
49
- username?: string;
49
+ username?: string | null;
50
50
  limit?: number;
51
51
  nextToken?: string;
52
52
  }
@@ -0,0 +1,157 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 type { AgentRegistration } from './AgentRegistration';
17
+ import {
18
+ AgentRegistrationFromJSON,
19
+ AgentRegistrationFromJSONTyped,
20
+ AgentRegistrationToJSON,
21
+ } from './AgentRegistration';
22
+ import type { AgentStatus } from './AgentStatus';
23
+ import {
24
+ AgentStatusFromJSON,
25
+ AgentStatusFromJSONTyped,
26
+ AgentStatusToJSON,
27
+ } from './AgentStatus';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface AgentDetail
33
+ */
34
+ export interface AgentDetail {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AgentDetail
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof AgentDetail
45
+ */
46
+ name: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof AgentDetail
51
+ */
52
+ agentRoleArn: string;
53
+ /**
54
+ *
55
+ * @type {AgentStatus}
56
+ * @memberof AgentDetail
57
+ */
58
+ status: AgentStatus;
59
+ /**
60
+ *
61
+ * @type {AgentRegistration}
62
+ * @memberof AgentDetail
63
+ */
64
+ registration?: AgentRegistration | null;
65
+ /**
66
+ *
67
+ * @type {{ [key: string]: string; }}
68
+ * @memberof AgentDetail
69
+ */
70
+ tags?: { [key: string]: string; } | null;
71
+ /**
72
+ *
73
+ * @type {{ [key: string]: string; }}
74
+ * @memberof AgentDetail
75
+ */
76
+ environmentConfiguration?: { [key: string]: string; } | null;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof AgentDetail
81
+ */
82
+ createdBy: string;
83
+ /**
84
+ *
85
+ * @type {Date}
86
+ * @memberof AgentDetail
87
+ */
88
+ createdAt: Date;
89
+ /**
90
+ *
91
+ * @type {Date}
92
+ * @memberof AgentDetail
93
+ */
94
+ updatedAt: Date;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the AgentDetail interface.
99
+ */
100
+ export function instanceOfAgentDetail(value: object): boolean {
101
+ let isInstance = true;
102
+ isInstance = isInstance && "id" in value;
103
+ isInstance = isInstance && "name" in value;
104
+ isInstance = isInstance && "agentRoleArn" in value;
105
+ isInstance = isInstance && "status" in value;
106
+ isInstance = isInstance && "createdBy" in value;
107
+ isInstance = isInstance && "createdAt" in value;
108
+ isInstance = isInstance && "updatedAt" in value;
109
+
110
+ return isInstance;
111
+ }
112
+
113
+ export function AgentDetailFromJSON(json: any): AgentDetail {
114
+ return AgentDetailFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function AgentDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDetail {
118
+ if ((json === undefined) || (json === null)) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'id': json['id'],
124
+ 'name': json['name'],
125
+ 'agentRoleArn': json['agentRoleArn'],
126
+ 'status': AgentStatusFromJSON(json['status']),
127
+ 'registration': !exists(json, 'registration') ? undefined : AgentRegistrationFromJSON(json['registration']),
128
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
129
+ 'environmentConfiguration': !exists(json, 'environmentConfiguration') ? undefined : json['environmentConfiguration'],
130
+ 'createdBy': json['createdBy'],
131
+ 'createdAt': (new Date(json['createdAt'])),
132
+ 'updatedAt': (new Date(json['updatedAt'])),
133
+ };
134
+ }
135
+
136
+ export function AgentDetailToJSON(value?: AgentDetail | null): any {
137
+ if (value === undefined) {
138
+ return undefined;
139
+ }
140
+ if (value === null) {
141
+ return null;
142
+ }
143
+ return {
144
+
145
+ 'id': value.id,
146
+ 'name': value.name,
147
+ 'agentRoleArn': value.agentRoleArn,
148
+ 'status': AgentStatusToJSON(value.status),
149
+ 'registration': AgentRegistrationToJSON(value.registration),
150
+ 'tags': value.tags,
151
+ 'environmentConfiguration': value.environmentConfiguration,
152
+ 'createdBy': value.createdBy,
153
+ 'createdAt': (value.createdAt.toISOString()),
154
+ 'updatedAt': (value.updatedAt.toISOString()),
155
+ };
156
+ }
157
+
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 AgentInput
20
+ */
21
+ export interface AgentInput {
22
+ /**
23
+ * The unique ID of the agent (required on create)
24
+ * @type {string}
25
+ * @memberof AgentInput
26
+ */
27
+ id?: string | null;
28
+ /**
29
+ * The display name of the agent
30
+ * @type {string}
31
+ * @memberof AgentInput
32
+ */
33
+ name: string;
34
+ /**
35
+ * Arn of the AWS IAM role or user that the agent will use (JSONSchema format)
36
+ * @type {string}
37
+ * @memberof AgentInput
38
+ */
39
+ agentRoleArn: string;
40
+ /**
41
+ * The configuration options available for the agent
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof AgentInput
44
+ */
45
+ configurationOptionsSchema?: { [key: string]: any; } | null;
46
+ /**
47
+ * The environment configuration for the agent
48
+ * @type {{ [key: string]: string; }}
49
+ * @memberof AgentInput
50
+ */
51
+ environmentConfiguration?: { [key: string]: string; } | null;
52
+ /**
53
+ * The tags associated with the agent displayed to the user
54
+ * @type {{ [key: string]: string; }}
55
+ * @memberof AgentInput
56
+ */
57
+ tags?: { [key: string]: string; } | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the AgentInput interface.
62
+ */
63
+ export function instanceOfAgentInput(value: object): boolean {
64
+ let isInstance = true;
65
+ isInstance = isInstance && "name" in value;
66
+ isInstance = isInstance && "agentRoleArn" in value;
67
+
68
+ return isInstance;
69
+ }
70
+
71
+ export function AgentInputFromJSON(json: any): AgentInput {
72
+ return AgentInputFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function AgentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentInput {
76
+ if ((json === undefined) || (json === null)) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'id': !exists(json, 'id') ? undefined : json['id'],
82
+ 'name': json['name'],
83
+ 'agentRoleArn': json['agentRoleArn'],
84
+ 'configurationOptionsSchema': !exists(json, 'configurationOptionsSchema') ? undefined : json['configurationOptionsSchema'],
85
+ 'environmentConfiguration': !exists(json, 'environmentConfiguration') ? undefined : json['environmentConfiguration'],
86
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
87
+ };
88
+ }
89
+
90
+ export function AgentInputToJSON(value?: AgentInput | null): any {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+
99
+ 'id': value.id,
100
+ 'name': value.name,
101
+ 'agentRoleArn': value.agentRoleArn,
102
+ 'configurationOptionsSchema': value.configurationOptionsSchema,
103
+ 'environmentConfiguration': value.environmentConfiguration,
104
+ 'tags': value.tags,
105
+ };
106
+ }
107
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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 AgentRegistration
20
+ */
21
+ export interface AgentRegistration {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentRegistration
26
+ */
27
+ localIp: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AgentRegistration
32
+ */
33
+ remoteIp: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AgentRegistration
38
+ */
39
+ agentVersion: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AgentRegistration
44
+ */
45
+ hostname: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AgentRegistration
50
+ */
51
+ os: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AgentRegistration interface.
56
+ */
57
+ export function instanceOfAgentRegistration(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "localIp" in value;
60
+ isInstance = isInstance && "remoteIp" in value;
61
+ isInstance = isInstance && "agentVersion" in value;
62
+ isInstance = isInstance && "hostname" in value;
63
+ isInstance = isInstance && "os" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function AgentRegistrationFromJSON(json: any): AgentRegistration {
69
+ return AgentRegistrationFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function AgentRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRegistration {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'localIp': json['localIp'],
79
+ 'remoteIp': json['remoteIp'],
80
+ 'agentVersion': json['agentVersion'],
81
+ 'hostname': json['hostname'],
82
+ 'os': json['os'],
83
+ };
84
+ }
85
+
86
+ export function AgentRegistrationToJSON(value?: AgentRegistration | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'localIp': value.localIp,
96
+ 'remoteIp': value.remoteIp,
97
+ 'agentVersion': value.agentVersion,
98
+ 'hostname': value.hostname,
99
+ 'os': value.os,
100
+ };
101
+ }
102
+
@@ -3,6 +3,9 @@
3
3
  export * from './AWSCredentials';
4
4
  export * from './AccessType';
5
5
  export * from './Agent';
6
+ export * from './AgentDetail';
7
+ export * from './AgentInput';
8
+ export * from './AgentRegistration';
6
9
  export * from './AgentStatus';
7
10
  export * from './AllowedDataType';
8
11
  export * from './ApproveProjectAccessRequest';