@cirrobio/api-client 0.1.26 → 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 +4 -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 +16 -14
- package/dist/apis/UsersApi.js +32 -28
- 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/PaginatedResponseUserDto.d.ts +38 -0
- package/dist/models/PaginatedResponseUserDto.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/ComputeEnvironmentApi.ts +186 -0
- package/src/apis/UsersApi.ts +43 -34
- package/src/models/AgentDetail.ts +157 -0
- package/src/models/AgentInput.ts +107 -0
- package/src/models/AgentRegistration.ts +102 -0
- package/src/models/PaginatedResponseUserDto.ts +82 -0
- package/src/models/index.ts +4 -0
|
@@ -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;
|
|
@@ -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;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { User } from './User';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseUserDto
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseUserDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<User>}
|
|
22
|
+
* @memberof PaginatedResponseUserDto
|
|
23
|
+
*/
|
|
24
|
+
data: Array<User>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaginatedResponseUserDto
|
|
29
|
+
*/
|
|
30
|
+
nextToken: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PaginatedResponseUserDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPaginatedResponseUserDto(value: object): boolean;
|
|
36
|
+
export declare function PaginatedResponseUserDtoFromJSON(json: any): PaginatedResponseUserDto;
|
|
37
|
+
export declare function PaginatedResponseUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseUserDto;
|
|
38
|
+
export declare function PaginatedResponseUserDtoToJSON(value?: PaginatedResponseUserDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.PaginatedResponseUserDtoToJSON = exports.PaginatedResponseUserDtoFromJSONTyped = exports.PaginatedResponseUserDtoFromJSON = exports.instanceOfPaginatedResponseUserDto = void 0;
|
|
17
|
+
var User_1 = require("./User");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaginatedResponseUserDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPaginatedResponseUserDto(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "data" in value;
|
|
24
|
+
isInstance = isInstance && "nextToken" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPaginatedResponseUserDto = instanceOfPaginatedResponseUserDto;
|
|
28
|
+
function PaginatedResponseUserDtoFromJSON(json) {
|
|
29
|
+
return PaginatedResponseUserDtoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PaginatedResponseUserDtoFromJSON = PaginatedResponseUserDtoFromJSON;
|
|
32
|
+
function PaginatedResponseUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'data': (json['data'].map(User_1.UserFromJSON)),
|
|
38
|
+
'nextToken': json['nextToken'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.PaginatedResponseUserDtoFromJSONTyped = PaginatedResponseUserDtoFromJSONTyped;
|
|
42
|
+
function PaginatedResponseUserDtoToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'data': (value.data.map(User_1.UserToJSON)),
|
|
51
|
+
'nextToken': value.nextToken,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PaginatedResponseUserDtoToJSON = PaginatedResponseUserDtoToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -52,6 +55,7 @@ export * from './NotebookInstanceStatusResponse';
|
|
|
52
55
|
export * from './OpenNotebookInstanceResponse';
|
|
53
56
|
export * from './PaginatedResponseDatasetListDto';
|
|
54
57
|
export * from './PaginatedResponseSampleDto';
|
|
58
|
+
export * from './PaginatedResponseUserDto';
|
|
55
59
|
export * from './PipelineCode';
|
|
56
60
|
export * from './PipelineCost';
|
|
57
61
|
export * from './PortalErrorResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -70,6 +73,7 @@ __exportStar(require("./NotebookInstanceStatusResponse"), exports);
|
|
|
70
73
|
__exportStar(require("./OpenNotebookInstanceResponse"), exports);
|
|
71
74
|
__exportStar(require("./PaginatedResponseDatasetListDto"), exports);
|
|
72
75
|
__exportStar(require("./PaginatedResponseSampleDto"), exports);
|
|
76
|
+
__exportStar(require("./PaginatedResponseUserDto"), exports);
|
|
73
77
|
__exportStar(require("./PipelineCode"), exports);
|
|
74
78
|
__exportStar(require("./PipelineCost"), exports);
|
|
75
79
|
__exportStar(require("./PortalErrorResponse"), exports);
|
package/package.json
CHANGED
|
@@ -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
|
}
|