@cirrobio/api-client 0.12.14 → 0.12.15
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/README.md +1 -1
- package/dist/apis/AppRegistrationsApi.d.ts +108 -0
- package/dist/apis/AppRegistrationsApi.js +304 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppRegistrationsApi.d.ts +108 -0
- package/dist/esm/apis/AppRegistrationsApi.js +300 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppRegistration.d.ts +93 -0
- package/dist/esm/models/AppRegistration.js +75 -0
- package/dist/esm/models/AppRegistrationDetail.d.ts +125 -0
- package/dist/esm/models/AppRegistrationDetail.js +92 -0
- package/dist/esm/models/AppRegistrationInput.d.ts +77 -0
- package/dist/esm/models/AppRegistrationInput.js +68 -0
- package/dist/esm/models/AppRegistrationSecretResponse.d.ts +49 -0
- package/dist/esm/models/AppRegistrationSecretResponse.js +52 -0
- package/dist/esm/models/AppType.d.ts +22 -0
- package/dist/esm/models/AppType.js +31 -0
- package/dist/esm/models/FeatureFlags.d.ts +6 -0
- package/dist/esm/models/FeatureFlags.js +3 -0
- package/dist/esm/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
- package/dist/esm/models/PaginatedResponseAppRegistrationDto.js +47 -0
- package/dist/esm/models/Permission.d.ts +79 -0
- package/dist/esm/models/Permission.js +88 -0
- package/dist/esm/models/PrincipalType.d.ts +23 -0
- package/dist/esm/models/PrincipalType.js +32 -0
- package/dist/esm/models/ProjectPermissionSet.d.ts +37 -0
- package/dist/esm/models/ProjectPermissionSet.js +46 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AppRegistration.d.ts +93 -0
- package/dist/models/AppRegistration.js +82 -0
- package/dist/models/AppRegistrationDetail.d.ts +125 -0
- package/dist/models/AppRegistrationDetail.js +99 -0
- package/dist/models/AppRegistrationInput.d.ts +77 -0
- package/dist/models/AppRegistrationInput.js +75 -0
- package/dist/models/AppRegistrationSecretResponse.d.ts +49 -0
- package/dist/models/AppRegistrationSecretResponse.js +59 -0
- package/dist/models/AppType.d.ts +22 -0
- package/dist/models/AppType.js +37 -0
- package/dist/models/FeatureFlags.d.ts +6 -0
- package/dist/models/FeatureFlags.js +3 -0
- package/dist/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
- package/dist/models/PaginatedResponseAppRegistrationDto.js +54 -0
- package/dist/models/Permission.d.ts +79 -0
- package/dist/models/Permission.js +94 -0
- package/dist/models/PrincipalType.d.ts +23 -0
- package/dist/models/PrincipalType.js +38 -0
- package/dist/models/ProjectPermissionSet.d.ts +37 -0
- package/dist/models/ProjectPermissionSet.js +53 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,300 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { AppRegistrationFromJSON, AppRegistrationDetailFromJSON, AppRegistrationInputToJSON, AppRegistrationSecretResponseFromJSON, PaginatedResponseAppRegistrationDtoFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class AppRegistrationsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Archives an app registration. Archived registrations cannot authenticate.
|
|
31
|
+
* Archive app registration
|
|
32
|
+
*/
|
|
33
|
+
archiveAppRegistrationRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
36
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling archiveAppRegistration.');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("accessToken", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/app-registrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
49
|
+
method: 'DELETE',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.VoidApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Archives an app registration. Archived registrations cannot authenticate.
|
|
58
|
+
* Archive app registration
|
|
59
|
+
*/
|
|
60
|
+
archiveAppRegistration(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
yield this.archiveAppRegistrationRaw(requestParameters, initOverrides);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new OAuth client app registration. Returns the client secret which is only shown once.
|
|
67
|
+
* Create app registration
|
|
68
|
+
*/
|
|
69
|
+
createAppRegistrationRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters.appRegistrationInput === null || requestParameters.appRegistrationInput === undefined) {
|
|
72
|
+
throw new runtime.RequiredError('appRegistrationInput', 'Required parameter requestParameters.appRegistrationInput was null or undefined when calling createAppRegistration.');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = yield token("accessToken", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: `/app-registrations`,
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
body: AppRegistrationInputToJSON(requestParameters.appRegistrationInput),
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AppRegistrationSecretResponseFromJSON(jsonValue));
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Creates a new OAuth client app registration. Returns the client secret which is only shown once.
|
|
96
|
+
* Create app registration
|
|
97
|
+
*/
|
|
98
|
+
createAppRegistration(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const response = yield this.createAppRegistrationRaw(requestParameters, initOverrides);
|
|
101
|
+
return yield response.value();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Gets detailed information about an app registration.
|
|
106
|
+
* Get app registration
|
|
107
|
+
*/
|
|
108
|
+
getAppRegistrationRaw(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
111
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling getAppRegistration.');
|
|
112
|
+
}
|
|
113
|
+
const queryParameters = {};
|
|
114
|
+
const headerParameters = {};
|
|
115
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
+
const token = this.configuration.accessToken;
|
|
117
|
+
const tokenString = yield token("accessToken", []);
|
|
118
|
+
if (tokenString) {
|
|
119
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const response = yield this.request({
|
|
123
|
+
path: `/app-registrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AppRegistrationDetailFromJSON(jsonValue));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Gets detailed information about an app registration.
|
|
133
|
+
* Get app registration
|
|
134
|
+
*/
|
|
135
|
+
getAppRegistration(requestParameters, initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const response = yield this.getAppRegistrationRaw(requestParameters, initOverrides);
|
|
138
|
+
return yield response.value();
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Lists all app registrations in the system.
|
|
143
|
+
* List app registrations
|
|
144
|
+
*/
|
|
145
|
+
listAppRegistrationsRaw(requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (requestParameters.limit === null || requestParameters.limit === undefined) {
|
|
148
|
+
throw new runtime.RequiredError('limit', 'Required parameter requestParameters.limit was null or undefined when calling listAppRegistrations.');
|
|
149
|
+
}
|
|
150
|
+
if (requestParameters.nextToken === null || requestParameters.nextToken === undefined) {
|
|
151
|
+
throw new runtime.RequiredError('nextToken', 'Required parameter requestParameters.nextToken was null or undefined when calling listAppRegistrations.');
|
|
152
|
+
}
|
|
153
|
+
const queryParameters = {};
|
|
154
|
+
if (requestParameters.limit !== undefined) {
|
|
155
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters.nextToken !== undefined) {
|
|
158
|
+
queryParameters['nextToken'] = requestParameters.nextToken;
|
|
159
|
+
}
|
|
160
|
+
const headerParameters = {};
|
|
161
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
162
|
+
const token = this.configuration.accessToken;
|
|
163
|
+
const tokenString = yield token("accessToken", []);
|
|
164
|
+
if (tokenString) {
|
|
165
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const response = yield this.request({
|
|
169
|
+
path: `/app-registrations`,
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides);
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAppRegistrationDtoFromJSON(jsonValue));
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Lists all app registrations in the system.
|
|
179
|
+
* List app registrations
|
|
180
|
+
*/
|
|
181
|
+
listAppRegistrations(requestParameters, initOverrides) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const response = yield this.listAppRegistrationsRaw(requestParameters, initOverrides);
|
|
184
|
+
return yield response.value();
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Lists app registrations created by the current user.
|
|
189
|
+
* List my app registrations
|
|
190
|
+
*/
|
|
191
|
+
listMyAppRegistrationsRaw(initOverrides) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = yield token("accessToken", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const response = yield this.request({
|
|
203
|
+
path: `/app-registrations/mine`,
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AppRegistrationFromJSON));
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Lists app registrations created by the current user.
|
|
213
|
+
* List my app registrations
|
|
214
|
+
*/
|
|
215
|
+
listMyAppRegistrations(initOverrides) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
const response = yield this.listMyAppRegistrationsRaw(initOverrides);
|
|
218
|
+
return yield response.value();
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Generates a new client secret for the app registration. The old secret is invalidated.
|
|
223
|
+
* Regenerate client secret
|
|
224
|
+
*/
|
|
225
|
+
regenerateSecretRaw(requestParameters, initOverrides) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
228
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling regenerateSecret.');
|
|
229
|
+
}
|
|
230
|
+
const queryParameters = {};
|
|
231
|
+
const headerParameters = {};
|
|
232
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
233
|
+
const token = this.configuration.accessToken;
|
|
234
|
+
const tokenString = yield token("accessToken", []);
|
|
235
|
+
if (tokenString) {
|
|
236
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const response = yield this.request({
|
|
240
|
+
path: `/app-registrations/{id}:regenerate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
241
|
+
method: 'POST',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
}, initOverrides);
|
|
245
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AppRegistrationSecretResponseFromJSON(jsonValue));
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Generates a new client secret for the app registration. The old secret is invalidated.
|
|
250
|
+
* Regenerate client secret
|
|
251
|
+
*/
|
|
252
|
+
regenerateSecret(requestParameters, initOverrides) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const response = yield this.regenerateSecretRaw(requestParameters, initOverrides);
|
|
255
|
+
return yield response.value();
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Updates an existing app registration.
|
|
260
|
+
* Update app registration
|
|
261
|
+
*/
|
|
262
|
+
updateAppRegistrationRaw(requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
265
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling updateAppRegistration.');
|
|
266
|
+
}
|
|
267
|
+
if (requestParameters.appRegistrationInput === null || requestParameters.appRegistrationInput === undefined) {
|
|
268
|
+
throw new runtime.RequiredError('appRegistrationInput', 'Required parameter requestParameters.appRegistrationInput was null or undefined when calling updateAppRegistration.');
|
|
269
|
+
}
|
|
270
|
+
const queryParameters = {};
|
|
271
|
+
const headerParameters = {};
|
|
272
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
274
|
+
const token = this.configuration.accessToken;
|
|
275
|
+
const tokenString = yield token("accessToken", []);
|
|
276
|
+
if (tokenString) {
|
|
277
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const response = yield this.request({
|
|
281
|
+
path: `/app-registrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
282
|
+
method: 'PUT',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
body: AppRegistrationInputToJSON(requestParameters.appRegistrationInput),
|
|
286
|
+
}, initOverrides);
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AppRegistrationDetailFromJSON(jsonValue));
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Updates an existing app registration.
|
|
292
|
+
* Update app registration
|
|
293
|
+
*/
|
|
294
|
+
updateAppRegistration(requestParameters, initOverrides) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const response = yield this.updateAppRegistrationRaw(requestParameters, initOverrides);
|
|
297
|
+
return yield response.value();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
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 { AppType } from './AppType';
|
|
13
|
+
import type { PrincipalType } from './PrincipalType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AppRegistration
|
|
18
|
+
*/
|
|
19
|
+
export interface AppRegistration {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AppRegistration
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AppRegistration
|
|
30
|
+
*/
|
|
31
|
+
clientId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AppRegistration
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AppRegistration
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {PrincipalType}
|
|
47
|
+
* @memberof AppRegistration
|
|
48
|
+
*/
|
|
49
|
+
principalType: PrincipalType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AppType}
|
|
53
|
+
* @memberof AppRegistration
|
|
54
|
+
*/
|
|
55
|
+
type: AppType;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof AppRegistration
|
|
60
|
+
*/
|
|
61
|
+
secretExpiresAt?: Date | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof AppRegistration
|
|
66
|
+
*/
|
|
67
|
+
isArchived: boolean;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof AppRegistration
|
|
72
|
+
*/
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof AppRegistration
|
|
78
|
+
*/
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AppRegistration
|
|
84
|
+
*/
|
|
85
|
+
createdBy: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the AppRegistration interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfAppRegistration(value: object): boolean;
|
|
91
|
+
export declare function AppRegistrationFromJSON(json: any): AppRegistration;
|
|
92
|
+
export declare function AppRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistration;
|
|
93
|
+
export declare function AppRegistrationToJSON(value?: AppRegistration | null): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { AppTypeFromJSON, AppTypeToJSON, } from './AppType';
|
|
16
|
+
import { PrincipalTypeFromJSON, PrincipalTypeToJSON, } from './PrincipalType';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AppRegistration interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfAppRegistration(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "clientId" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "principalType" in value;
|
|
27
|
+
isInstance = isInstance && "type" in value;
|
|
28
|
+
isInstance = isInstance && "isArchived" in value;
|
|
29
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
30
|
+
isInstance = isInstance && "createdAt" in value;
|
|
31
|
+
isInstance = isInstance && "createdBy" in value;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
export function AppRegistrationFromJSON(json) {
|
|
35
|
+
return AppRegistrationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'clientId': json['clientId'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'principalType': PrincipalTypeFromJSON(json['principalType']),
|
|
47
|
+
'type': AppTypeFromJSON(json['type']),
|
|
48
|
+
'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
|
|
49
|
+
'isArchived': json['isArchived'],
|
|
50
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
51
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
52
|
+
'createdBy': json['createdBy'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function AppRegistrationToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value.id,
|
|
64
|
+
'clientId': value.clientId,
|
|
65
|
+
'name': value.name,
|
|
66
|
+
'description': value.description,
|
|
67
|
+
'principalType': PrincipalTypeToJSON(value.principalType),
|
|
68
|
+
'type': AppTypeToJSON(value.type),
|
|
69
|
+
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
70
|
+
'isArchived': value.isArchived,
|
|
71
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
72
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
73
|
+
'createdBy': value.createdBy,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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 { AppType } from './AppType';
|
|
13
|
+
import type { Permission } from './Permission';
|
|
14
|
+
import type { PrincipalType } from './PrincipalType';
|
|
15
|
+
import type { ProjectPermissionSet } from './ProjectPermissionSet';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AppRegistrationDetail
|
|
20
|
+
*/
|
|
21
|
+
export interface AppRegistrationDetail {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AppRegistrationDetail
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AppRegistrationDetail
|
|
32
|
+
*/
|
|
33
|
+
clientId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AppRegistrationDetail
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AppRegistrationDetail
|
|
44
|
+
*/
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {PrincipalType}
|
|
49
|
+
* @memberof AppRegistrationDetail
|
|
50
|
+
*/
|
|
51
|
+
principalType: PrincipalType;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {AppType}
|
|
55
|
+
* @memberof AppRegistrationDetail
|
|
56
|
+
*/
|
|
57
|
+
type: AppType;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof AppRegistrationDetail
|
|
62
|
+
*/
|
|
63
|
+
allowedIps: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof AppRegistrationDetail
|
|
68
|
+
*/
|
|
69
|
+
secretExpiresAt?: Date | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof AppRegistrationDetail
|
|
74
|
+
*/
|
|
75
|
+
secretGeneratedAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AppRegistrationDetail
|
|
80
|
+
*/
|
|
81
|
+
secretGeneratedBy: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<ProjectPermissionSet>}
|
|
85
|
+
* @memberof AppRegistrationDetail
|
|
86
|
+
*/
|
|
87
|
+
projectPermissions: Array<ProjectPermissionSet>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<Permission>}
|
|
91
|
+
* @memberof AppRegistrationDetail
|
|
92
|
+
*/
|
|
93
|
+
globalPermissions: Array<Permission>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof AppRegistrationDetail
|
|
98
|
+
*/
|
|
99
|
+
isArchived: boolean;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Date}
|
|
103
|
+
* @memberof AppRegistrationDetail
|
|
104
|
+
*/
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Date}
|
|
109
|
+
* @memberof AppRegistrationDetail
|
|
110
|
+
*/
|
|
111
|
+
updatedAt: Date;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof AppRegistrationDetail
|
|
116
|
+
*/
|
|
117
|
+
createdBy: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if a given object implements the AppRegistrationDetail interface.
|
|
121
|
+
*/
|
|
122
|
+
export declare function instanceOfAppRegistrationDetail(value: object): boolean;
|
|
123
|
+
export declare function AppRegistrationDetailFromJSON(json: any): AppRegistrationDetail;
|
|
124
|
+
export declare function AppRegistrationDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistrationDetail;
|
|
125
|
+
export declare function AppRegistrationDetailToJSON(value?: AppRegistrationDetail | null): any;
|