@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
package/src/apis/UsersApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
InviteUserRequest,
|
|
19
19
|
InviteUserResponse,
|
|
20
|
+
PaginatedResponseUserDto,
|
|
20
21
|
UpdateUserRequest,
|
|
21
22
|
User,
|
|
22
23
|
UserDetail,
|
|
@@ -26,6 +27,8 @@ import {
|
|
|
26
27
|
InviteUserRequestToJSON,
|
|
27
28
|
InviteUserResponseFromJSON,
|
|
28
29
|
InviteUserResponseToJSON,
|
|
30
|
+
PaginatedResponseUserDtoFromJSON,
|
|
31
|
+
PaginatedResponseUserDtoToJSON,
|
|
29
32
|
UpdateUserRequestFromJSON,
|
|
30
33
|
UpdateUserRequestToJSON,
|
|
31
34
|
UserFromJSON,
|
|
@@ -38,14 +41,16 @@ export interface GetUserRequest {
|
|
|
38
41
|
username: string;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
export interface GetUsersRequest {
|
|
42
|
-
username: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
44
|
export interface InviteUserOperationRequest {
|
|
46
45
|
inviteUserRequest: InviteUserRequest;
|
|
47
46
|
}
|
|
48
47
|
|
|
48
|
+
export interface ListUsersRequest {
|
|
49
|
+
username?: string | null;
|
|
50
|
+
limit?: number;
|
|
51
|
+
nextToken?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export interface SignOutUserRequest {
|
|
50
55
|
username: string;
|
|
51
56
|
}
|
|
@@ -101,22 +106,20 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
109
|
+
* Invites a user to the system
|
|
110
|
+
* Invite user
|
|
106
111
|
*/
|
|
107
|
-
async
|
|
108
|
-
if (requestParameters.
|
|
109
|
-
throw new runtime.RequiredError('
|
|
112
|
+
async inviteUserRaw(requestParameters: InviteUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InviteUserResponse>> {
|
|
113
|
+
if (requestParameters.inviteUserRequest === null || requestParameters.inviteUserRequest === undefined) {
|
|
114
|
+
throw new runtime.RequiredError('inviteUserRequest','Required parameter requestParameters.inviteUserRequest was null or undefined when calling inviteUser.');
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
const queryParameters: any = {};
|
|
113
118
|
|
|
114
|
-
if (requestParameters.username !== undefined) {
|
|
115
|
-
queryParameters['username'] = requestParameters.username;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
119
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
119
120
|
|
|
121
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
122
|
+
|
|
120
123
|
if (this.configuration && this.configuration.accessToken) {
|
|
121
124
|
const token = this.configuration.accessToken;
|
|
122
125
|
const tokenString = await token("accessToken", []);
|
|
@@ -127,37 +130,44 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
127
130
|
}
|
|
128
131
|
const response = await this.request({
|
|
129
132
|
path: `/users`,
|
|
130
|
-
method: '
|
|
133
|
+
method: 'POST',
|
|
131
134
|
headers: headerParameters,
|
|
132
135
|
query: queryParameters,
|
|
136
|
+
body: InviteUserRequestToJSON(requestParameters.inviteUserRequest),
|
|
133
137
|
}, initOverrides);
|
|
134
138
|
|
|
135
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InviteUserResponseFromJSON(jsonValue));
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
/**
|
|
139
|
-
*
|
|
140
|
-
*
|
|
143
|
+
* Invites a user to the system
|
|
144
|
+
* Invite user
|
|
141
145
|
*/
|
|
142
|
-
async
|
|
143
|
-
const response = await this.
|
|
146
|
+
async inviteUser(requestParameters: InviteUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InviteUserResponse> {
|
|
147
|
+
const response = await this.inviteUserRaw(requestParameters, initOverrides);
|
|
144
148
|
return await response.value();
|
|
145
149
|
}
|
|
146
150
|
|
|
147
151
|
/**
|
|
148
|
-
*
|
|
149
|
-
*
|
|
152
|
+
* Gets a list of users, matching an optional username pattern
|
|
153
|
+
* List users
|
|
150
154
|
*/
|
|
151
|
-
async
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
async listUsersRaw(requestParameters: ListUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseUserDto>> {
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
if (requestParameters.username !== undefined) {
|
|
159
|
+
queryParameters['username'] = requestParameters.username;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
|
|
162
|
+
if (requestParameters.limit !== undefined) {
|
|
163
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
164
|
+
}
|
|
157
165
|
|
|
158
|
-
|
|
166
|
+
if (requestParameters.nextToken !== undefined) {
|
|
167
|
+
queryParameters['nextToken'] = requestParameters.nextToken;
|
|
168
|
+
}
|
|
159
169
|
|
|
160
|
-
headerParameters
|
|
170
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
161
171
|
|
|
162
172
|
if (this.configuration && this.configuration.accessToken) {
|
|
163
173
|
const token = this.configuration.accessToken;
|
|
@@ -169,21 +179,20 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
169
179
|
}
|
|
170
180
|
const response = await this.request({
|
|
171
181
|
path: `/users`,
|
|
172
|
-
method: '
|
|
182
|
+
method: 'GET',
|
|
173
183
|
headers: headerParameters,
|
|
174
184
|
query: queryParameters,
|
|
175
|
-
body: InviteUserRequestToJSON(requestParameters.inviteUserRequest),
|
|
176
185
|
}, initOverrides);
|
|
177
186
|
|
|
178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
187
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseUserDtoFromJSON(jsonValue));
|
|
179
188
|
}
|
|
180
189
|
|
|
181
190
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
191
|
+
* Gets a list of users, matching an optional username pattern
|
|
192
|
+
* List users
|
|
184
193
|
*/
|
|
185
|
-
async
|
|
186
|
-
const response = await this.
|
|
194
|
+
async listUsers(requestParameters: ListUsersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseUserDto> {
|
|
195
|
+
const response = await this.listUsersRaw(requestParameters, initOverrides);
|
|
187
196
|
return await response.value();
|
|
188
197
|
}
|
|
189
198
|
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { User } from './User';
|
|
17
|
+
import {
|
|
18
|
+
UserFromJSON,
|
|
19
|
+
UserFromJSONTyped,
|
|
20
|
+
UserToJSON,
|
|
21
|
+
} from './User';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PaginatedResponseUserDto
|
|
27
|
+
*/
|
|
28
|
+
export interface PaginatedResponseUserDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<User>}
|
|
32
|
+
* @memberof PaginatedResponseUserDto
|
|
33
|
+
*/
|
|
34
|
+
data: Array<User>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PaginatedResponseUserDto
|
|
39
|
+
*/
|
|
40
|
+
nextToken: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PaginatedResponseUserDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfPaginatedResponseUserDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "data" in value;
|
|
49
|
+
isInstance = isInstance && "nextToken" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PaginatedResponseUserDtoFromJSON(json: any): PaginatedResponseUserDto {
|
|
55
|
+
return PaginatedResponseUserDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PaginatedResponseUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseUserDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'data': ((json['data'] as Array<any>).map(UserFromJSON)),
|
|
65
|
+
'nextToken': json['nextToken'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PaginatedResponseUserDtoToJSON(value?: PaginatedResponseUserDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'data': ((value.data as Array<any>).map(UserToJSON)),
|
|
79
|
+
'nextToken': value.nextToken,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
|
@@ -54,6 +57,7 @@ export * from './NotebookInstanceStatusResponse';
|
|
|
54
57
|
export * from './OpenNotebookInstanceResponse';
|
|
55
58
|
export * from './PaginatedResponseDatasetListDto';
|
|
56
59
|
export * from './PaginatedResponseSampleDto';
|
|
60
|
+
export * from './PaginatedResponseUserDto';
|
|
57
61
|
export * from './PipelineCode';
|
|
58
62
|
export * from './PipelineCost';
|
|
59
63
|
export * from './PortalErrorResponse';
|