@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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +1 -1
- package/dist/apis/ComputeEnvironmentApi.d.ts +51 -1
- package/dist/apis/ComputeEnvironmentApi.js +220 -0
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/models/AgentDetail.d.ts +91 -0
- package/dist/models/AgentDetail.js +77 -0
- package/dist/models/AgentInput.d.ts +67 -0
- package/dist/models/AgentInput.js +62 -0
- package/dist/models/AgentRegistration.d.ts +55 -0
- package/dist/models/AgentRegistration.js +62 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ComputeEnvironmentApi.ts +186 -0
- package/src/apis/UsersApi.ts +1 -1
- package/src/models/AgentDetail.ts +157 -0
- package/src/models/AgentInput.ts +107 -0
- package/src/models/AgentRegistration.ts +102 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,9 @@ src/index.ts
|
|
|
24
24
|
src/models/AWSCredentials.ts
|
|
25
25
|
src/models/AccessType.ts
|
|
26
26
|
src/models/Agent.ts
|
|
27
|
+
src/models/AgentDetail.ts
|
|
28
|
+
src/models/AgentInput.ts
|
|
29
|
+
src/models/AgentRegistration.ts
|
|
27
30
|
src/models/AgentStatus.ts
|
|
28
31
|
src/models/AllowedDataType.ts
|
|
29
32
|
src/models/ApproveProjectAccessRequest.ts
|
package/README.md
CHANGED
|
@@ -10,14 +10,54 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ComputeEnvironmentConfiguration } from '../models/index';
|
|
13
|
+
import type { AgentDetail, AgentInput, ComputeEnvironmentConfiguration, CreateResponse } from '../models/index';
|
|
14
|
+
export interface CreateAgentRequest {
|
|
15
|
+
agentInput: AgentInput;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteAgentRequest {
|
|
18
|
+
agentId: string;
|
|
19
|
+
}
|
|
14
20
|
export interface GetComputeEnvironmentsRequest {
|
|
15
21
|
projectId: string;
|
|
16
22
|
}
|
|
23
|
+
export interface UpdateAgentRequest {
|
|
24
|
+
agentId: string;
|
|
25
|
+
agentInput: AgentInput;
|
|
26
|
+
}
|
|
17
27
|
/**
|
|
18
28
|
*
|
|
19
29
|
*/
|
|
20
30
|
export declare class ComputeEnvironmentApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Create a new agent
|
|
33
|
+
* Create agent
|
|
34
|
+
*/
|
|
35
|
+
createAgentRaw(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new agent
|
|
38
|
+
* Create agent
|
|
39
|
+
*/
|
|
40
|
+
createAgent(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete an agent
|
|
43
|
+
* Delete agent
|
|
44
|
+
*/
|
|
45
|
+
deleteAgentRaw(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete an agent
|
|
48
|
+
* Delete agent
|
|
49
|
+
*/
|
|
50
|
+
deleteAgent(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Get a list of agents
|
|
53
|
+
* Get agents
|
|
54
|
+
*/
|
|
55
|
+
getAgentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentDetail>>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get a list of agents
|
|
58
|
+
* Get agents
|
|
59
|
+
*/
|
|
60
|
+
getAgents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentDetail>>;
|
|
21
61
|
/**
|
|
22
62
|
* Get a list of compute environments for a project
|
|
23
63
|
* Get compute environments
|
|
@@ -28,4 +68,14 @@ export declare class ComputeEnvironmentApi extends runtime.BaseAPI {
|
|
|
28
68
|
* Get compute environments
|
|
29
69
|
*/
|
|
30
70
|
getComputeEnvironments(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ComputeEnvironmentConfiguration>>;
|
|
71
|
+
/**
|
|
72
|
+
* Update an agent
|
|
73
|
+
* Update agent
|
|
74
|
+
*/
|
|
75
|
+
updateAgentRaw(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
76
|
+
/**
|
|
77
|
+
* Update an agent
|
|
78
|
+
* Update agent
|
|
79
|
+
*/
|
|
80
|
+
updateAgent(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
81
|
}
|
|
@@ -75,6 +75,168 @@ var ComputeEnvironmentApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ComputeEnvironmentApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Create a new agent
|
|
80
|
+
* Create agent
|
|
81
|
+
*/
|
|
82
|
+
ComputeEnvironmentApi.prototype.createAgentRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.agentInput === null || requestParameters.agentInput === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('agentInput', 'Required parameter requestParameters.agentInput was null or undefined when calling createAgent.');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
|
+
token = this.configuration.accessToken;
|
|
96
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
97
|
+
case 1:
|
|
98
|
+
tokenString = _a.sent();
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
+
}
|
|
102
|
+
_a.label = 2;
|
|
103
|
+
case 2: return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/agents",
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: (0, index_1.AgentInputToJSON)(requestParameters.agentInput),
|
|
109
|
+
}, initOverrides)];
|
|
110
|
+
case 3:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Create a new agent
|
|
119
|
+
* Create agent
|
|
120
|
+
*/
|
|
121
|
+
ComputeEnvironmentApi.prototype.createAgent = function (requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
var response;
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4 /*yield*/, this.createAgentRaw(requestParameters, initOverrides)];
|
|
127
|
+
case 1:
|
|
128
|
+
response = _a.sent();
|
|
129
|
+
return [4 /*yield*/, response.value()];
|
|
130
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Delete an agent
|
|
137
|
+
* Delete agent
|
|
138
|
+
*/
|
|
139
|
+
ComputeEnvironmentApi.prototype.deleteAgentRaw = function (requestParameters, initOverrides) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
142
|
+
return __generator(this, function (_a) {
|
|
143
|
+
switch (_a.label) {
|
|
144
|
+
case 0:
|
|
145
|
+
if (requestParameters.agentId === null || requestParameters.agentId === undefined) {
|
|
146
|
+
throw new runtime.RequiredError('agentId', 'Required parameter requestParameters.agentId was null or undefined when calling deleteAgent.');
|
|
147
|
+
}
|
|
148
|
+
queryParameters = {};
|
|
149
|
+
headerParameters = {};
|
|
150
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
151
|
+
token = this.configuration.accessToken;
|
|
152
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
153
|
+
case 1:
|
|
154
|
+
tokenString = _a.sent();
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
157
|
+
}
|
|
158
|
+
_a.label = 2;
|
|
159
|
+
case 2: return [4 /*yield*/, this.request({
|
|
160
|
+
path: "/agents/{agentId}".replace("{".concat("agentId", "}"), encodeURIComponent(String(requestParameters.agentId))),
|
|
161
|
+
method: 'DELETE',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
}, initOverrides)];
|
|
165
|
+
case 3:
|
|
166
|
+
response = _a.sent();
|
|
167
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Delete an agent
|
|
174
|
+
* Delete agent
|
|
175
|
+
*/
|
|
176
|
+
ComputeEnvironmentApi.prototype.deleteAgent = function (requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
switch (_a.label) {
|
|
180
|
+
case 0: return [4 /*yield*/, this.deleteAgentRaw(requestParameters, initOverrides)];
|
|
181
|
+
case 1:
|
|
182
|
+
_a.sent();
|
|
183
|
+
return [2 /*return*/];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Get a list of agents
|
|
190
|
+
* Get agents
|
|
191
|
+
*/
|
|
192
|
+
ComputeEnvironmentApi.prototype.getAgentsRaw = function (initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
queryParameters = {};
|
|
199
|
+
headerParameters = {};
|
|
200
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
201
|
+
token = this.configuration.accessToken;
|
|
202
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
203
|
+
case 1:
|
|
204
|
+
tokenString = _a.sent();
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
207
|
+
}
|
|
208
|
+
_a.label = 2;
|
|
209
|
+
case 2: return [4 /*yield*/, this.request({
|
|
210
|
+
path: "/agents",
|
|
211
|
+
method: 'GET',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}, initOverrides)];
|
|
215
|
+
case 3:
|
|
216
|
+
response = _a.sent();
|
|
217
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AgentDetailFromJSON); })];
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Get a list of agents
|
|
224
|
+
* Get agents
|
|
225
|
+
*/
|
|
226
|
+
ComputeEnvironmentApi.prototype.getAgents = function (initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.getAgentsRaw(initOverrides)];
|
|
232
|
+
case 1:
|
|
233
|
+
response = _a.sent();
|
|
234
|
+
return [4 /*yield*/, response.value()];
|
|
235
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
};
|
|
78
240
|
/**
|
|
79
241
|
* Get a list of compute environments for a project
|
|
80
242
|
* Get compute environments
|
|
@@ -130,6 +292,64 @@ var ComputeEnvironmentApi = /** @class */ (function (_super) {
|
|
|
130
292
|
});
|
|
131
293
|
});
|
|
132
294
|
};
|
|
295
|
+
/**
|
|
296
|
+
* Update an agent
|
|
297
|
+
* Update agent
|
|
298
|
+
*/
|
|
299
|
+
ComputeEnvironmentApi.prototype.updateAgentRaw = function (requestParameters, initOverrides) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
301
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
302
|
+
return __generator(this, function (_a) {
|
|
303
|
+
switch (_a.label) {
|
|
304
|
+
case 0:
|
|
305
|
+
if (requestParameters.agentId === null || requestParameters.agentId === undefined) {
|
|
306
|
+
throw new runtime.RequiredError('agentId', 'Required parameter requestParameters.agentId was null or undefined when calling updateAgent.');
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters.agentInput === null || requestParameters.agentInput === undefined) {
|
|
309
|
+
throw new runtime.RequiredError('agentInput', 'Required parameter requestParameters.agentInput was null or undefined when calling updateAgent.');
|
|
310
|
+
}
|
|
311
|
+
queryParameters = {};
|
|
312
|
+
headerParameters = {};
|
|
313
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
314
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
315
|
+
token = this.configuration.accessToken;
|
|
316
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
317
|
+
case 1:
|
|
318
|
+
tokenString = _a.sent();
|
|
319
|
+
if (tokenString) {
|
|
320
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
321
|
+
}
|
|
322
|
+
_a.label = 2;
|
|
323
|
+
case 2: return [4 /*yield*/, this.request({
|
|
324
|
+
path: "/agents/{agentId}".replace("{".concat("agentId", "}"), encodeURIComponent(String(requestParameters.agentId))),
|
|
325
|
+
method: 'PUT',
|
|
326
|
+
headers: headerParameters,
|
|
327
|
+
query: queryParameters,
|
|
328
|
+
body: (0, index_1.AgentInputToJSON)(requestParameters.agentInput),
|
|
329
|
+
}, initOverrides)];
|
|
330
|
+
case 3:
|
|
331
|
+
response = _a.sent();
|
|
332
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Update an agent
|
|
339
|
+
* Update agent
|
|
340
|
+
*/
|
|
341
|
+
ComputeEnvironmentApi.prototype.updateAgent = function (requestParameters, initOverrides) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
343
|
+
return __generator(this, function (_a) {
|
|
344
|
+
switch (_a.label) {
|
|
345
|
+
case 0: return [4 /*yield*/, this.updateAgentRaw(requestParameters, initOverrides)];
|
|
346
|
+
case 1:
|
|
347
|
+
_a.sent();
|
|
348
|
+
return [2 /*return*/];
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
};
|
|
133
353
|
return ComputeEnvironmentApi;
|
|
134
354
|
}(runtime.BaseAPI));
|
|
135
355
|
exports.ComputeEnvironmentApi = ComputeEnvironmentApi;
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 type { AgentRegistration } from './AgentRegistration';
|
|
13
|
+
import type { AgentStatus } from './AgentStatus';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AgentDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface AgentDetail {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AgentDetail
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AgentDetail
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AgentDetail
|
|
36
|
+
*/
|
|
37
|
+
agentRoleArn: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {AgentStatus}
|
|
41
|
+
* @memberof AgentDetail
|
|
42
|
+
*/
|
|
43
|
+
status: AgentStatus;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AgentRegistration}
|
|
47
|
+
* @memberof AgentDetail
|
|
48
|
+
*/
|
|
49
|
+
registration?: AgentRegistration | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {{ [key: string]: string; }}
|
|
53
|
+
* @memberof AgentDetail
|
|
54
|
+
*/
|
|
55
|
+
tags?: {
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
} | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {{ [key: string]: string; }}
|
|
61
|
+
* @memberof AgentDetail
|
|
62
|
+
*/
|
|
63
|
+
environmentConfiguration?: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
} | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AgentDetail
|
|
70
|
+
*/
|
|
71
|
+
createdBy: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof AgentDetail
|
|
76
|
+
*/
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof AgentDetail
|
|
82
|
+
*/
|
|
83
|
+
updatedAt: Date;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the AgentDetail interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfAgentDetail(value: object): boolean;
|
|
89
|
+
export declare function AgentDetailFromJSON(json: any): AgentDetail;
|
|
90
|
+
export declare function AgentDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDetail;
|
|
91
|
+
export declare function AgentDetailToJSON(value?: AgentDetail | null): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.AgentDetailToJSON = exports.AgentDetailFromJSONTyped = exports.AgentDetailFromJSON = exports.instanceOfAgentDetail = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var AgentRegistration_1 = require("./AgentRegistration");
|
|
19
|
+
var AgentStatus_1 = require("./AgentStatus");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the AgentDetail interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfAgentDetail(value) {
|
|
24
|
+
var isInstance = true;
|
|
25
|
+
isInstance = isInstance && "id" in value;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "agentRoleArn" in value;
|
|
28
|
+
isInstance = isInstance && "status" in value;
|
|
29
|
+
isInstance = isInstance && "createdBy" in value;
|
|
30
|
+
isInstance = isInstance && "createdAt" in value;
|
|
31
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfAgentDetail = instanceOfAgentDetail;
|
|
35
|
+
function AgentDetailFromJSON(json) {
|
|
36
|
+
return AgentDetailFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.AgentDetailFromJSON = AgentDetailFromJSON;
|
|
39
|
+
function AgentDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'agentRoleArn': json['agentRoleArn'],
|
|
47
|
+
'status': (0, AgentStatus_1.AgentStatusFromJSON)(json['status']),
|
|
48
|
+
'registration': !(0, runtime_1.exists)(json, 'registration') ? undefined : (0, AgentRegistration_1.AgentRegistrationFromJSON)(json['registration']),
|
|
49
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
50
|
+
'environmentConfiguration': !(0, runtime_1.exists)(json, 'environmentConfiguration') ? undefined : json['environmentConfiguration'],
|
|
51
|
+
'createdBy': json['createdBy'],
|
|
52
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
53
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.AgentDetailFromJSONTyped = AgentDetailFromJSONTyped;
|
|
57
|
+
function AgentDetailToJSON(value) {
|
|
58
|
+
if (value === undefined) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (value === null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value.id,
|
|
66
|
+
'name': value.name,
|
|
67
|
+
'agentRoleArn': value.agentRoleArn,
|
|
68
|
+
'status': (0, AgentStatus_1.AgentStatusToJSON)(value.status),
|
|
69
|
+
'registration': (0, AgentRegistration_1.AgentRegistrationToJSON)(value.registration),
|
|
70
|
+
'tags': value.tags,
|
|
71
|
+
'environmentConfiguration': value.environmentConfiguration,
|
|
72
|
+
'createdBy': value.createdBy,
|
|
73
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
74
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.AgentDetailToJSON = AgentDetailToJSON;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 AgentInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentInput {
|
|
18
|
+
/**
|
|
19
|
+
* The unique ID of the agent (required on create)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentInput
|
|
22
|
+
*/
|
|
23
|
+
id?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The display name of the agent
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentInput
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Arn of the AWS IAM role or user that the agent will use (JSONSchema format)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AgentInput
|
|
34
|
+
*/
|
|
35
|
+
agentRoleArn: string;
|
|
36
|
+
/**
|
|
37
|
+
* The configuration options available for the agent
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof AgentInput
|
|
40
|
+
*/
|
|
41
|
+
configurationOptionsSchema?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
* The environment configuration for the agent
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof AgentInput
|
|
48
|
+
*/
|
|
49
|
+
environmentConfiguration?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
} | null;
|
|
52
|
+
/**
|
|
53
|
+
* The tags associated with the agent displayed to the user
|
|
54
|
+
* @type {{ [key: string]: string; }}
|
|
55
|
+
* @memberof AgentInput
|
|
56
|
+
*/
|
|
57
|
+
tags?: {
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
} | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AgentInput interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAgentInput(value: object): boolean;
|
|
65
|
+
export declare function AgentInputFromJSON(json: any): AgentInput;
|
|
66
|
+
export declare function AgentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentInput;
|
|
67
|
+
export declare function AgentInputToJSON(value?: AgentInput | null): any;
|
|
@@ -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.AgentInputToJSON = exports.AgentInputFromJSONTyped = exports.AgentInputFromJSON = exports.instanceOfAgentInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AgentInput interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAgentInput(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "agentRoleArn" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfAgentInput = instanceOfAgentInput;
|
|
28
|
+
function AgentInputFromJSON(json) {
|
|
29
|
+
return AgentInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.AgentInputFromJSON = AgentInputFromJSON;
|
|
32
|
+
function AgentInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'agentRoleArn': json['agentRoleArn'],
|
|
40
|
+
'configurationOptionsSchema': !(0, runtime_1.exists)(json, 'configurationOptionsSchema') ? undefined : json['configurationOptionsSchema'],
|
|
41
|
+
'environmentConfiguration': !(0, runtime_1.exists)(json, 'environmentConfiguration') ? undefined : json['environmentConfiguration'],
|
|
42
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.AgentInputFromJSONTyped = AgentInputFromJSONTyped;
|
|
46
|
+
function AgentInputToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value.id,
|
|
55
|
+
'name': value.name,
|
|
56
|
+
'agentRoleArn': value.agentRoleArn,
|
|
57
|
+
'configurationOptionsSchema': value.configurationOptionsSchema,
|
|
58
|
+
'environmentConfiguration': value.environmentConfiguration,
|
|
59
|
+
'tags': value.tags,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.AgentInputToJSON = AgentInputToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
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 AgentRegistration
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentRegistration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentRegistration
|
|
22
|
+
*/
|
|
23
|
+
localIp: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentRegistration
|
|
28
|
+
*/
|
|
29
|
+
remoteIp: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AgentRegistration
|
|
34
|
+
*/
|
|
35
|
+
agentVersion: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AgentRegistration
|
|
40
|
+
*/
|
|
41
|
+
hostname: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AgentRegistration
|
|
46
|
+
*/
|
|
47
|
+
os: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AgentRegistration interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAgentRegistration(value: object): boolean;
|
|
53
|
+
export declare function AgentRegistrationFromJSON(json: any): AgentRegistration;
|
|
54
|
+
export declare function AgentRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRegistration;
|
|
55
|
+
export declare function AgentRegistrationToJSON(value?: AgentRegistration | null): any;
|