@cirrobio/api-client 0.12.14 → 0.12.16

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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/AppRegistrationsApi.d.ts +108 -0
  3. package/dist/apis/AppRegistrationsApi.js +304 -0
  4. package/dist/apis/ExecutionApi.d.ts +16 -0
  5. package/dist/apis/ExecutionApi.js +46 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/AppRegistrationsApi.d.ts +108 -0
  9. package/dist/esm/apis/AppRegistrationsApi.js +300 -0
  10. package/dist/esm/apis/ExecutionApi.d.ts +16 -0
  11. package/dist/esm/apis/ExecutionApi.js +46 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/AppRegistration.d.ts +93 -0
  15. package/dist/esm/models/AppRegistration.js +75 -0
  16. package/dist/esm/models/AppRegistrationDetail.d.ts +125 -0
  17. package/dist/esm/models/AppRegistrationDetail.js +92 -0
  18. package/dist/esm/models/AppRegistrationInput.d.ts +77 -0
  19. package/dist/esm/models/AppRegistrationInput.js +68 -0
  20. package/dist/esm/models/AppRegistrationSecretResponse.d.ts +49 -0
  21. package/dist/esm/models/AppRegistrationSecretResponse.js +52 -0
  22. package/dist/esm/models/AppType.d.ts +22 -0
  23. package/dist/esm/models/AppType.js +31 -0
  24. package/dist/esm/models/FeatureFlags.d.ts +6 -0
  25. package/dist/esm/models/FeatureFlags.js +3 -0
  26. package/dist/esm/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
  27. package/dist/esm/models/PaginatedResponseAppRegistrationDto.js +47 -0
  28. package/dist/esm/models/Permission.d.ts +79 -0
  29. package/dist/esm/models/Permission.js +88 -0
  30. package/dist/esm/models/PrincipalType.d.ts +23 -0
  31. package/dist/esm/models/PrincipalType.js +32 -0
  32. package/dist/esm/models/ProjectPermissionSet.d.ts +37 -0
  33. package/dist/esm/models/ProjectPermissionSet.js +46 -0
  34. package/dist/esm/models/Task.d.ts +6 -0
  35. package/dist/esm/models/Task.js +2 -0
  36. package/dist/esm/models/index.d.ts +9 -0
  37. package/dist/esm/models/index.js +9 -0
  38. package/dist/esm/runtime.js +1 -1
  39. package/dist/models/AppRegistration.d.ts +93 -0
  40. package/dist/models/AppRegistration.js +82 -0
  41. package/dist/models/AppRegistrationDetail.d.ts +125 -0
  42. package/dist/models/AppRegistrationDetail.js +99 -0
  43. package/dist/models/AppRegistrationInput.d.ts +77 -0
  44. package/dist/models/AppRegistrationInput.js +75 -0
  45. package/dist/models/AppRegistrationSecretResponse.d.ts +49 -0
  46. package/dist/models/AppRegistrationSecretResponse.js +59 -0
  47. package/dist/models/AppType.d.ts +22 -0
  48. package/dist/models/AppType.js +37 -0
  49. package/dist/models/FeatureFlags.d.ts +6 -0
  50. package/dist/models/FeatureFlags.js +3 -0
  51. package/dist/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
  52. package/dist/models/PaginatedResponseAppRegistrationDto.js +54 -0
  53. package/dist/models/Permission.d.ts +79 -0
  54. package/dist/models/Permission.js +94 -0
  55. package/dist/models/PrincipalType.d.ts +23 -0
  56. package/dist/models/PrincipalType.js +38 -0
  57. package/dist/models/ProjectPermissionSet.d.ts +37 -0
  58. package/dist/models/ProjectPermissionSet.js +53 -0
  59. package/dist/models/Task.d.ts +6 -0
  60. package/dist/models/Task.js +2 -0
  61. package/dist/models/index.d.ts +9 -0
  62. package/dist/models/index.js +9 -0
  63. package/dist/runtime.js +1 -1
  64. 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
+ }
@@ -24,6 +24,12 @@ export interface GetProjectSummaryRequest {
24
24
  projectId: string;
25
25
  numberOfDays?: number;
26
26
  }
27
+ export interface GetTaskRequest {
28
+ datasetId: string;
29
+ projectId: string;
30
+ taskId: string;
31
+ forceLive?: boolean;
32
+ }
27
33
  export interface GetTaskLogsRequest {
28
34
  datasetId: string;
29
35
  projectId: string;
@@ -81,6 +87,16 @@ export declare class ExecutionApi extends runtime.BaseAPI {
81
87
  getProjectSummary(requestParameters: GetProjectSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
82
88
  [key: string]: Array<Task>;
83
89
  }>;
90
+ /**
91
+ * Gets detailed information on the individual task
92
+ * Get task
93
+ */
94
+ getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Task>>;
95
+ /**
96
+ * Gets detailed information on the individual task
97
+ * Get task
98
+ */
99
+ getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Task>;
84
100
  /**
85
101
  * Gets the log output from an individual task
86
102
  * Get task logs
@@ -149,6 +149,52 @@ export class ExecutionApi extends runtime.BaseAPI {
149
149
  return yield response.value();
150
150
  });
151
151
  }
152
+ /**
153
+ * Gets detailed information on the individual task
154
+ * Get task
155
+ */
156
+ getTaskRaw(requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ if (requestParameters.datasetId === null || requestParameters.datasetId === undefined) {
159
+ throw new runtime.RequiredError('datasetId', 'Required parameter requestParameters.datasetId was null or undefined when calling getTask.');
160
+ }
161
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
162
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getTask.');
163
+ }
164
+ if (requestParameters.taskId === null || requestParameters.taskId === undefined) {
165
+ throw new runtime.RequiredError('taskId', 'Required parameter requestParameters.taskId was null or undefined when calling getTask.');
166
+ }
167
+ const queryParameters = {};
168
+ if (requestParameters.forceLive !== undefined) {
169
+ queryParameters['forceLive'] = requestParameters.forceLive;
170
+ }
171
+ const headerParameters = {};
172
+ if (this.configuration && this.configuration.accessToken) {
173
+ const token = this.configuration.accessToken;
174
+ const tokenString = yield token("accessToken", []);
175
+ if (tokenString) {
176
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
177
+ }
178
+ }
179
+ const response = yield this.request({
180
+ path: `/projects/{projectId}/execution/{datasetId}/tasks/{taskId}`.replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters.taskId))),
181
+ method: 'GET',
182
+ headers: headerParameters,
183
+ query: queryParameters,
184
+ }, initOverrides);
185
+ return new runtime.JSONApiResponse(response, (jsonValue) => TaskFromJSON(jsonValue));
186
+ });
187
+ }
188
+ /**
189
+ * Gets detailed information on the individual task
190
+ * Get task
191
+ */
192
+ getTask(requestParameters, initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ const response = yield this.getTaskRaw(requestParameters, initOverrides);
195
+ return yield response.value();
196
+ });
197
+ }
152
198
  /**
153
199
  * Gets the log output from an individual task
154
200
  * Get task logs
@@ -1,3 +1,4 @@
1
+ export * from './AppRegistrationsApi';
1
2
  export * from './AuditApi';
2
3
  export * from './BillingApi';
3
4
  export * from './ComputeEnvironmentApi';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AppRegistrationsApi';
3
4
  export * from './AuditApi';
4
5
  export * from './BillingApi';
5
6
  export * from './ComputeEnvironmentApi';
@@ -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;