@cirrobio/api-client 0.12.16 → 0.12.18

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 (38) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/AppRegistrationsApi.d.ts +16 -3
  3. package/dist/apis/AppRegistrationsApi.js +37 -7
  4. package/dist/esm/apis/AppRegistrationsApi.d.ts +16 -3
  5. package/dist/esm/apis/AppRegistrationsApi.js +37 -7
  6. package/dist/esm/models/AppClientType.d.ts +23 -0
  7. package/dist/esm/models/AppClientType.js +32 -0
  8. package/dist/esm/models/AppRegistration.d.ts +6 -0
  9. package/dist/esm/models/AppRegistration.js +3 -0
  10. package/dist/esm/models/AppRegistrationDetail.d.ts +16 -3
  11. package/dist/esm/models/AppRegistrationDetail.js +11 -7
  12. package/dist/esm/models/AppRegistrationInput.d.ts +9 -3
  13. package/dist/esm/models/AppRegistrationInput.js +7 -4
  14. package/dist/esm/models/AppType.d.ts +4 -1
  15. package/dist/esm/models/AppType.js +4 -1
  16. package/dist/esm/models/PrincipalType.d.ts +1 -0
  17. package/dist/esm/models/PrincipalType.js +1 -0
  18. package/dist/esm/models/UserDetail.d.ts +1 -1
  19. package/dist/esm/models/index.d.ts +1 -0
  20. package/dist/esm/models/index.js +1 -0
  21. package/dist/esm/runtime.js +1 -1
  22. package/dist/models/AppClientType.d.ts +23 -0
  23. package/dist/models/AppClientType.js +38 -0
  24. package/dist/models/AppRegistration.d.ts +6 -0
  25. package/dist/models/AppRegistration.js +3 -0
  26. package/dist/models/AppRegistrationDetail.d.ts +16 -3
  27. package/dist/models/AppRegistrationDetail.js +11 -7
  28. package/dist/models/AppRegistrationInput.d.ts +9 -3
  29. package/dist/models/AppRegistrationInput.js +7 -4
  30. package/dist/models/AppType.d.ts +4 -1
  31. package/dist/models/AppType.js +4 -1
  32. package/dist/models/PrincipalType.d.ts +1 -0
  33. package/dist/models/PrincipalType.js +1 -0
  34. package/dist/models/UserDetail.d.ts +1 -1
  35. package/dist/models/index.d.ts +1 -0
  36. package/dist/models/index.js +1 -0
  37. package/dist/runtime.js +1 -1
  38. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.12.15 --save
39
+ npm install @cirrobio/api-client@0.12.18 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { AppRegistration, AppRegistrationDetail, AppRegistrationInput, AppRegistrationSecretResponse, PaginatedResponseAppRegistrationDto } from '../models/index';
14
+ export interface ApproveAppRequest {
15
+ id: string;
16
+ }
14
17
  export interface ArchiveAppRegistrationRequest {
15
18
  id: string;
16
19
  }
@@ -21,8 +24,8 @@ export interface GetAppRegistrationRequest {
21
24
  id: string;
22
25
  }
23
26
  export interface ListAppRegistrationsRequest {
24
- limit: number;
25
- nextToken: string;
27
+ limit?: number;
28
+ nextToken?: string;
26
29
  }
27
30
  export interface RegenerateSecretRequest {
28
31
  id: string;
@@ -35,6 +38,16 @@ export interface UpdateAppRegistrationRequest {
35
38
  *
36
39
  */
37
40
  export declare class AppRegistrationsApi extends runtime.BaseAPI {
41
+ /**
42
+ * Mark application as approved by an administrator.
43
+ * Approve application
44
+ */
45
+ approveAppRaw(requestParameters: ApproveAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Mark application as approved by an administrator.
48
+ * Approve application
49
+ */
50
+ approveApp(requestParameters: ApproveAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
51
  /**
39
52
  * Archives an app registration. Archived registrations cannot authenticate.
40
53
  * Archive app registration
@@ -74,7 +87,7 @@ export declare class AppRegistrationsApi extends runtime.BaseAPI {
74
87
  * Lists all app registrations in the system.
75
88
  * List app registrations
76
89
  */
77
- listAppRegistrations(requestParameters: ListAppRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAppRegistrationDto>;
90
+ listAppRegistrations(requestParameters?: ListAppRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAppRegistrationDto>;
78
91
  /**
79
92
  * Lists app registrations created by the current user.
80
93
  * List my app registrations
@@ -29,6 +29,42 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class AppRegistrationsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Mark application as approved by an administrator.
34
+ * Approve application
35
+ */
36
+ approveAppRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters.id === null || requestParameters.id === undefined) {
39
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling approveApp.');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("accessToken", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ const response = yield this.request({
51
+ path: `/app-registrations/{id}:approve`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
52
+ method: 'POST',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.VoidApiResponse(response);
57
+ });
58
+ }
59
+ /**
60
+ * Mark application as approved by an administrator.
61
+ * Approve application
62
+ */
63
+ approveApp(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ yield this.approveAppRaw(requestParameters, initOverrides);
66
+ });
67
+ }
32
68
  /**
33
69
  * Archives an app registration. Archived registrations cannot authenticate.
34
70
  * Archive app registration
@@ -147,12 +183,6 @@ class AppRegistrationsApi extends runtime.BaseAPI {
147
183
  */
148
184
  listAppRegistrationsRaw(requestParameters, initOverrides) {
149
185
  return __awaiter(this, void 0, void 0, function* () {
150
- if (requestParameters.limit === null || requestParameters.limit === undefined) {
151
- throw new runtime.RequiredError('limit', 'Required parameter requestParameters.limit was null or undefined when calling listAppRegistrations.');
152
- }
153
- if (requestParameters.nextToken === null || requestParameters.nextToken === undefined) {
154
- throw new runtime.RequiredError('nextToken', 'Required parameter requestParameters.nextToken was null or undefined when calling listAppRegistrations.');
155
- }
156
186
  const queryParameters = {};
157
187
  if (requestParameters.limit !== undefined) {
158
188
  queryParameters['limit'] = requestParameters.limit;
@@ -181,7 +211,7 @@ class AppRegistrationsApi extends runtime.BaseAPI {
181
211
  * Lists all app registrations in the system.
182
212
  * List app registrations
183
213
  */
184
- listAppRegistrations(requestParameters, initOverrides) {
214
+ listAppRegistrations(requestParameters = {}, initOverrides) {
185
215
  return __awaiter(this, void 0, void 0, function* () {
186
216
  const response = yield this.listAppRegistrationsRaw(requestParameters, initOverrides);
187
217
  return yield response.value();
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { AppRegistration, AppRegistrationDetail, AppRegistrationInput, AppRegistrationSecretResponse, PaginatedResponseAppRegistrationDto } from '../models/index';
14
+ export interface ApproveAppRequest {
15
+ id: string;
16
+ }
14
17
  export interface ArchiveAppRegistrationRequest {
15
18
  id: string;
16
19
  }
@@ -21,8 +24,8 @@ export interface GetAppRegistrationRequest {
21
24
  id: string;
22
25
  }
23
26
  export interface ListAppRegistrationsRequest {
24
- limit: number;
25
- nextToken: string;
27
+ limit?: number;
28
+ nextToken?: string;
26
29
  }
27
30
  export interface RegenerateSecretRequest {
28
31
  id: string;
@@ -35,6 +38,16 @@ export interface UpdateAppRegistrationRequest {
35
38
  *
36
39
  */
37
40
  export declare class AppRegistrationsApi extends runtime.BaseAPI {
41
+ /**
42
+ * Mark application as approved by an administrator.
43
+ * Approve application
44
+ */
45
+ approveAppRaw(requestParameters: ApproveAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Mark application as approved by an administrator.
48
+ * Approve application
49
+ */
50
+ approveApp(requestParameters: ApproveAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
51
  /**
39
52
  * Archives an app registration. Archived registrations cannot authenticate.
40
53
  * Archive app registration
@@ -74,7 +87,7 @@ export declare class AppRegistrationsApi extends runtime.BaseAPI {
74
87
  * Lists all app registrations in the system.
75
88
  * List app registrations
76
89
  */
77
- listAppRegistrations(requestParameters: ListAppRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAppRegistrationDto>;
90
+ listAppRegistrations(requestParameters?: ListAppRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAppRegistrationDto>;
78
91
  /**
79
92
  * Lists app registrations created by the current user.
80
93
  * List my app registrations
@@ -26,6 +26,42 @@ import { AppRegistrationFromJSON, AppRegistrationDetailFromJSON, AppRegistration
26
26
  *
27
27
  */
28
28
  export class AppRegistrationsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Mark application as approved by an administrator.
31
+ * Approve application
32
+ */
33
+ approveAppRaw(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 approveApp.');
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}:approve`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
49
+ method: 'POST',
50
+ headers: headerParameters,
51
+ query: queryParameters,
52
+ }, initOverrides);
53
+ return new runtime.VoidApiResponse(response);
54
+ });
55
+ }
56
+ /**
57
+ * Mark application as approved by an administrator.
58
+ * Approve application
59
+ */
60
+ approveApp(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ yield this.approveAppRaw(requestParameters, initOverrides);
63
+ });
64
+ }
29
65
  /**
30
66
  * Archives an app registration. Archived registrations cannot authenticate.
31
67
  * Archive app registration
@@ -144,12 +180,6 @@ export class AppRegistrationsApi extends runtime.BaseAPI {
144
180
  */
145
181
  listAppRegistrationsRaw(requestParameters, initOverrides) {
146
182
  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
183
  const queryParameters = {};
154
184
  if (requestParameters.limit !== undefined) {
155
185
  queryParameters['limit'] = requestParameters.limit;
@@ -178,7 +208,7 @@ export class AppRegistrationsApi extends runtime.BaseAPI {
178
208
  * Lists all app registrations in the system.
179
209
  * List app registrations
180
210
  */
181
- listAppRegistrations(requestParameters, initOverrides) {
211
+ listAppRegistrations(requestParameters = {}, initOverrides) {
182
212
  return __awaiter(this, void 0, void 0, function* () {
183
213
  const response = yield this.listAppRegistrationsRaw(requestParameters, initOverrides);
184
214
  return yield response.value();
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum AppClientType {
18
+ ConfidentialClient = "CONFIDENTIAL_CLIENT",
19
+ PublicClient = "PUBLIC_CLIENT"
20
+ }
21
+ export declare function AppClientTypeFromJSON(json: any): AppClientType;
22
+ export declare function AppClientTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppClientType;
23
+ export declare function AppClientTypeToJSON(value?: AppClientType | null): any;
@@ -0,0 +1,32 @@
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var AppClientType;
20
+ (function (AppClientType) {
21
+ AppClientType["ConfidentialClient"] = "CONFIDENTIAL_CLIENT";
22
+ AppClientType["PublicClient"] = "PUBLIC_CLIENT";
23
+ })(AppClientType || (AppClientType = {}));
24
+ export function AppClientTypeFromJSON(json) {
25
+ return AppClientTypeFromJSONTyped(json, false);
26
+ }
27
+ export function AppClientTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function AppClientTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -65,6 +65,12 @@ export interface AppRegistration {
65
65
  * @memberof AppRegistration
66
66
  */
67
67
  isArchived: boolean;
68
+ /**
69
+ *
70
+ * @type {boolean}
71
+ * @memberof AppRegistration
72
+ */
73
+ requiresAdminConsent: boolean;
68
74
  /**
69
75
  *
70
76
  * @type {Date}
@@ -26,6 +26,7 @@ export function instanceOfAppRegistration(value) {
26
26
  isInstance = isInstance && "principalType" in value;
27
27
  isInstance = isInstance && "type" in value;
28
28
  isInstance = isInstance && "isArchived" in value;
29
+ isInstance = isInstance && "requiresAdminConsent" in value;
29
30
  isInstance = isInstance && "updatedAt" in value;
30
31
  isInstance = isInstance && "createdAt" in value;
31
32
  isInstance = isInstance && "createdBy" in value;
@@ -47,6 +48,7 @@ export function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'type': AppTypeFromJSON(json['type']),
48
49
  'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
49
50
  'isArchived': json['isArchived'],
51
+ 'requiresAdminConsent': json['requiresAdminConsent'],
50
52
  'updatedAt': (new Date(json['updatedAt'])),
51
53
  'createdAt': (new Date(json['createdAt'])),
52
54
  'createdBy': json['createdBy'],
@@ -68,6 +70,7 @@ export function AppRegistrationToJSON(value) {
68
70
  'type': AppTypeToJSON(value.type),
69
71
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
70
72
  'isArchived': value.isArchived,
73
+ 'requiresAdminConsent': value.requiresAdminConsent,
71
74
  'updatedAt': (value.updatedAt.toISOString()),
72
75
  'createdAt': (value.createdAt.toISOString()),
73
76
  'createdBy': value.createdBy,
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AppClientType } from './AppClientType';
12
13
  import type { AppType } from './AppType';
13
14
  import type { Permission } from './Permission';
14
15
  import type { PrincipalType } from './PrincipalType';
@@ -55,12 +56,18 @@ export interface AppRegistrationDetail {
55
56
  * @memberof AppRegistrationDetail
56
57
  */
57
58
  type: AppType;
59
+ /**
60
+ *
61
+ * @type {AppClientType}
62
+ * @memberof AppRegistrationDetail
63
+ */
64
+ clientType: AppClientType;
58
65
  /**
59
66
  *
60
67
  * @type {Array<string>}
61
68
  * @memberof AppRegistrationDetail
62
69
  */
63
- allowedIps: Array<string>;
70
+ allowedIps?: Array<string> | null;
64
71
  /**
65
72
  *
66
73
  * @type {Date}
@@ -72,13 +79,13 @@ export interface AppRegistrationDetail {
72
79
  * @type {Date}
73
80
  * @memberof AppRegistrationDetail
74
81
  */
75
- secretGeneratedAt: Date;
82
+ secretGeneratedAt?: Date | null;
76
83
  /**
77
84
  *
78
85
  * @type {string}
79
86
  * @memberof AppRegistrationDetail
80
87
  */
81
- secretGeneratedBy: string;
88
+ secretGeneratedBy?: string | null;
82
89
  /**
83
90
  *
84
91
  * @type {Array<ProjectPermissionSet>}
@@ -97,6 +104,12 @@ export interface AppRegistrationDetail {
97
104
  * @memberof AppRegistrationDetail
98
105
  */
99
106
  isArchived: boolean;
107
+ /**
108
+ *
109
+ * @type {boolean}
110
+ * @memberof AppRegistrationDetail
111
+ */
112
+ requiresAdminConsent: boolean;
100
113
  /**
101
114
  *
102
115
  * @type {Date}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { AppClientTypeFromJSON, AppClientTypeToJSON, } from './AppClientType';
15
16
  import { AppTypeFromJSON, AppTypeToJSON, } from './AppType';
16
17
  import { PermissionFromJSON, PermissionToJSON, } from './Permission';
17
18
  import { PrincipalTypeFromJSON, PrincipalTypeToJSON, } from './PrincipalType';
@@ -27,12 +28,11 @@ export function instanceOfAppRegistrationDetail(value) {
27
28
  isInstance = isInstance && "description" in value;
28
29
  isInstance = isInstance && "principalType" in value;
29
30
  isInstance = isInstance && "type" in value;
30
- isInstance = isInstance && "allowedIps" in value;
31
- isInstance = isInstance && "secretGeneratedAt" in value;
32
- isInstance = isInstance && "secretGeneratedBy" in value;
31
+ isInstance = isInstance && "clientType" in value;
33
32
  isInstance = isInstance && "projectPermissions" in value;
34
33
  isInstance = isInstance && "globalPermissions" in value;
35
34
  isInstance = isInstance && "isArchived" in value;
35
+ isInstance = isInstance && "requiresAdminConsent" in value;
36
36
  isInstance = isInstance && "createdAt" in value;
37
37
  isInstance = isInstance && "updatedAt" in value;
38
38
  isInstance = isInstance && "createdBy" in value;
@@ -52,13 +52,15 @@ export function AppRegistrationDetailFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'description': json['description'],
53
53
  'principalType': PrincipalTypeFromJSON(json['principalType']),
54
54
  'type': AppTypeFromJSON(json['type']),
55
- 'allowedIps': json['allowedIps'],
55
+ 'clientType': AppClientTypeFromJSON(json['clientType']),
56
+ 'allowedIps': !exists(json, 'allowedIps') ? undefined : json['allowedIps'],
56
57
  'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
57
- 'secretGeneratedAt': (new Date(json['secretGeneratedAt'])),
58
- 'secretGeneratedBy': json['secretGeneratedBy'],
58
+ 'secretGeneratedAt': !exists(json, 'secretGeneratedAt') ? undefined : (json['secretGeneratedAt'] === null ? null : new Date(json['secretGeneratedAt'])),
59
+ 'secretGeneratedBy': !exists(json, 'secretGeneratedBy') ? undefined : json['secretGeneratedBy'],
59
60
  'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSetFromJSON)),
60
61
  'globalPermissions': (json['globalPermissions'].map(PermissionFromJSON)),
61
62
  'isArchived': json['isArchived'],
63
+ 'requiresAdminConsent': json['requiresAdminConsent'],
62
64
  'createdAt': (new Date(json['createdAt'])),
63
65
  'updatedAt': (new Date(json['updatedAt'])),
64
66
  'createdBy': json['createdBy'],
@@ -78,13 +80,15 @@ export function AppRegistrationDetailToJSON(value) {
78
80
  'description': value.description,
79
81
  'principalType': PrincipalTypeToJSON(value.principalType),
80
82
  'type': AppTypeToJSON(value.type),
83
+ 'clientType': AppClientTypeToJSON(value.clientType),
81
84
  'allowedIps': value.allowedIps,
82
85
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
83
- 'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
86
+ 'secretGeneratedAt': value.secretGeneratedAt === undefined ? undefined : (value.secretGeneratedAt === null ? null : value.secretGeneratedAt.toISOString()),
84
87
  'secretGeneratedBy': value.secretGeneratedBy,
85
88
  'projectPermissions': (value.projectPermissions.map(ProjectPermissionSetToJSON)),
86
89
  'globalPermissions': (value.globalPermissions.map(PermissionToJSON)),
87
90
  'isArchived': value.isArchived,
91
+ 'requiresAdminConsent': value.requiresAdminConsent,
88
92
  'createdAt': (value.createdAt.toISOString()),
89
93
  'updatedAt': (value.updatedAt.toISOString()),
90
94
  'createdBy': value.createdBy,
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AppType } from './AppType';
12
+ import type { AppClientType } from './AppClientType';
13
13
  import type { Permission } from './Permission';
14
14
  import type { PrincipalType } from './PrincipalType';
15
15
  import type { ProjectPermissionSet } from './ProjectPermissionSet';
@@ -39,16 +39,22 @@ export interface AppRegistrationInput {
39
39
  principalType: PrincipalType;
40
40
  /**
41
41
  *
42
- * @type {AppType}
42
+ * @type {AppClientType}
43
43
  * @memberof AppRegistrationInput
44
44
  */
45
- type: AppType;
45
+ clientType: AppClientType;
46
46
  /**
47
47
  * These IP address ranges are allowed to use this app (will be used later)
48
48
  * @type {Array<string>}
49
49
  * @memberof AppRegistrationInput
50
50
  */
51
51
  allowedIps: Array<string>;
52
+ /**
53
+ * A list of allowed redirect URIs for authentication. HTTPS is required except for localhost and app callback URLs are supported
54
+ * @type {Array<string>}
55
+ * @memberof AppRegistrationInput
56
+ */
57
+ redirectUris: Array<string>;
52
58
  /**
53
59
  * Optional expiry date of secret
54
60
  * @type {Date}
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { AppTypeFromJSON, AppTypeToJSON, } from './AppType';
15
+ import { AppClientTypeFromJSON, AppClientTypeToJSON, } from './AppClientType';
16
16
  import { PermissionFromJSON, PermissionToJSON, } from './Permission';
17
17
  import { PrincipalTypeFromJSON, PrincipalTypeToJSON, } from './PrincipalType';
18
18
  import { ProjectPermissionSetFromJSON, ProjectPermissionSetToJSON, } from './ProjectPermissionSet';
@@ -24,8 +24,9 @@ export function instanceOfAppRegistrationInput(value) {
24
24
  isInstance = isInstance && "name" in value;
25
25
  isInstance = isInstance && "description" in value;
26
26
  isInstance = isInstance && "principalType" in value;
27
- isInstance = isInstance && "type" in value;
27
+ isInstance = isInstance && "clientType" in value;
28
28
  isInstance = isInstance && "allowedIps" in value;
29
+ isInstance = isInstance && "redirectUris" in value;
29
30
  isInstance = isInstance && "projectPermissions" in value;
30
31
  isInstance = isInstance && "globalPermissions" in value;
31
32
  return isInstance;
@@ -41,8 +42,9 @@ export function AppRegistrationInputFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'name': json['name'],
42
43
  'description': json['description'],
43
44
  'principalType': PrincipalTypeFromJSON(json['principalType']),
44
- 'type': AppTypeFromJSON(json['type']),
45
+ 'clientType': AppClientTypeFromJSON(json['clientType']),
45
46
  'allowedIps': json['allowedIps'],
47
+ 'redirectUris': json['redirectUris'],
46
48
  'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
47
49
  'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSetFromJSON)),
48
50
  'globalPermissions': (json['globalPermissions'].map(PermissionFromJSON)),
@@ -59,8 +61,9 @@ export function AppRegistrationInputToJSON(value) {
59
61
  'name': value.name,
60
62
  'description': value.description,
61
63
  'principalType': PrincipalTypeToJSON(value.principalType),
62
- 'type': AppTypeToJSON(value.type),
64
+ 'clientType': AppClientTypeToJSON(value.clientType),
63
65
  'allowedIps': value.allowedIps,
66
+ 'redirectUris': value.redirectUris,
64
67
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
65
68
  'projectPermissions': (value.projectPermissions.map(ProjectPermissionSetToJSON)),
66
69
  'globalPermissions': (value.globalPermissions.map(PermissionToJSON)),
@@ -15,7 +15,10 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum AppType {
18
- ConfidentialClient = "CONFIDENTIAL_CLIENT"
18
+ Traditional = "TRADITIONAL",
19
+ MachineToMachine = "MACHINE_TO_MACHINE",
20
+ PublicApp = "PUBLIC_APP",
21
+ Unknown = "UNKNOWN"
19
22
  }
20
23
  export declare function AppTypeFromJSON(json: any): AppType;
21
24
  export declare function AppTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppType;
@@ -18,7 +18,10 @@
18
18
  */
19
19
  export var AppType;
20
20
  (function (AppType) {
21
- AppType["ConfidentialClient"] = "CONFIDENTIAL_CLIENT";
21
+ AppType["Traditional"] = "TRADITIONAL";
22
+ AppType["MachineToMachine"] = "MACHINE_TO_MACHINE";
23
+ AppType["PublicApp"] = "PUBLIC_APP";
24
+ AppType["Unknown"] = "UNKNOWN";
22
25
  })(AppType || (AppType = {}));
23
26
  export function AppTypeFromJSON(json) {
24
27
  return AppTypeFromJSONTyped(json, false);
@@ -15,6 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum PrincipalType {
18
+ Delegated = "DELEGATED",
18
19
  User = "USER",
19
20
  System = "SYSTEM"
20
21
  }
@@ -18,6 +18,7 @@
18
18
  */
19
19
  export var PrincipalType;
20
20
  (function (PrincipalType) {
21
+ PrincipalType["Delegated"] = "DELEGATED";
21
22
  PrincipalType["User"] = "USER";
22
23
  PrincipalType["System"] = "SYSTEM";
23
24
  })(PrincipalType || (PrincipalType = {}));
@@ -95,7 +95,7 @@ export interface UserDetail {
95
95
  * @memberof UserDetail
96
96
  * @deprecated
97
97
  */
98
- groups?: Array<string>;
98
+ groups?: Array<string> | null;
99
99
  /**
100
100
  *
101
101
  * @type {UserSettings}
@@ -5,6 +5,7 @@ export * from './AgentInput';
5
5
  export * from './AgentRegistration';
6
6
  export * from './AgentStatus';
7
7
  export * from './AllowedDataType';
8
+ export * from './AppClientType';
8
9
  export * from './AppRegistration';
9
10
  export * from './AppRegistrationDetail';
10
11
  export * from './AppRegistrationInput';
@@ -7,6 +7,7 @@ export * from './AgentInput';
7
7
  export * from './AgentRegistration';
8
8
  export * from './AgentStatus';
9
9
  export * from './AllowedDataType';
10
+ export * from './AppClientType';
10
11
  export * from './AppRegistration';
11
12
  export * from './AppRegistrationDetail';
12
13
  export * from './AppRegistrationInput';
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
21
  });
22
22
  };
23
- export const BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
23
+ export const BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
24
24
  export class Configuration {
25
25
  constructor(configuration = {}) {
26
26
  this.configuration = configuration;
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum AppClientType {
18
+ ConfidentialClient = "CONFIDENTIAL_CLIENT",
19
+ PublicClient = "PUBLIC_CLIENT"
20
+ }
21
+ export declare function AppClientTypeFromJSON(json: any): AppClientType;
22
+ export declare function AppClientTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppClientType;
23
+ export declare function AppClientTypeToJSON(value?: AppClientType | null): any;
@@ -0,0 +1,38 @@
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.AppClientTypeToJSON = exports.AppClientTypeFromJSONTyped = exports.AppClientTypeFromJSON = exports.AppClientType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var AppClientType;
23
+ (function (AppClientType) {
24
+ AppClientType["ConfidentialClient"] = "CONFIDENTIAL_CLIENT";
25
+ AppClientType["PublicClient"] = "PUBLIC_CLIENT";
26
+ })(AppClientType = exports.AppClientType || (exports.AppClientType = {}));
27
+ function AppClientTypeFromJSON(json) {
28
+ return AppClientTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.AppClientTypeFromJSON = AppClientTypeFromJSON;
31
+ function AppClientTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.AppClientTypeFromJSONTyped = AppClientTypeFromJSONTyped;
35
+ function AppClientTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.AppClientTypeToJSON = AppClientTypeToJSON;
@@ -65,6 +65,12 @@ export interface AppRegistration {
65
65
  * @memberof AppRegistration
66
66
  */
67
67
  isArchived: boolean;
68
+ /**
69
+ *
70
+ * @type {boolean}
71
+ * @memberof AppRegistration
72
+ */
73
+ requiresAdminConsent: boolean;
68
74
  /**
69
75
  *
70
76
  * @type {Date}
@@ -29,6 +29,7 @@ function instanceOfAppRegistration(value) {
29
29
  isInstance = isInstance && "principalType" in value;
30
30
  isInstance = isInstance && "type" in value;
31
31
  isInstance = isInstance && "isArchived" in value;
32
+ isInstance = isInstance && "requiresAdminConsent" in value;
32
33
  isInstance = isInstance && "updatedAt" in value;
33
34
  isInstance = isInstance && "createdAt" in value;
34
35
  isInstance = isInstance && "createdBy" in value;
@@ -52,6 +53,7 @@ function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
53
54
  'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
54
55
  'isArchived': json['isArchived'],
56
+ 'requiresAdminConsent': json['requiresAdminConsent'],
55
57
  'updatedAt': (new Date(json['updatedAt'])),
56
58
  'createdAt': (new Date(json['createdAt'])),
57
59
  'createdBy': json['createdBy'],
@@ -74,6 +76,7 @@ function AppRegistrationToJSON(value) {
74
76
  'type': (0, AppType_1.AppTypeToJSON)(value.type),
75
77
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
76
78
  'isArchived': value.isArchived,
79
+ 'requiresAdminConsent': value.requiresAdminConsent,
77
80
  'updatedAt': (value.updatedAt.toISOString()),
78
81
  'createdAt': (value.createdAt.toISOString()),
79
82
  'createdBy': value.createdBy,
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AppClientType } from './AppClientType';
12
13
  import type { AppType } from './AppType';
13
14
  import type { Permission } from './Permission';
14
15
  import type { PrincipalType } from './PrincipalType';
@@ -55,12 +56,18 @@ export interface AppRegistrationDetail {
55
56
  * @memberof AppRegistrationDetail
56
57
  */
57
58
  type: AppType;
59
+ /**
60
+ *
61
+ * @type {AppClientType}
62
+ * @memberof AppRegistrationDetail
63
+ */
64
+ clientType: AppClientType;
58
65
  /**
59
66
  *
60
67
  * @type {Array<string>}
61
68
  * @memberof AppRegistrationDetail
62
69
  */
63
- allowedIps: Array<string>;
70
+ allowedIps?: Array<string> | null;
64
71
  /**
65
72
  *
66
73
  * @type {Date}
@@ -72,13 +79,13 @@ export interface AppRegistrationDetail {
72
79
  * @type {Date}
73
80
  * @memberof AppRegistrationDetail
74
81
  */
75
- secretGeneratedAt: Date;
82
+ secretGeneratedAt?: Date | null;
76
83
  /**
77
84
  *
78
85
  * @type {string}
79
86
  * @memberof AppRegistrationDetail
80
87
  */
81
- secretGeneratedBy: string;
88
+ secretGeneratedBy?: string | null;
82
89
  /**
83
90
  *
84
91
  * @type {Array<ProjectPermissionSet>}
@@ -97,6 +104,12 @@ export interface AppRegistrationDetail {
97
104
  * @memberof AppRegistrationDetail
98
105
  */
99
106
  isArchived: boolean;
107
+ /**
108
+ *
109
+ * @type {boolean}
110
+ * @memberof AppRegistrationDetail
111
+ */
112
+ requiresAdminConsent: boolean;
100
113
  /**
101
114
  *
102
115
  * @type {Date}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AppRegistrationDetailToJSON = exports.AppRegistrationDetailFromJSONTyped = exports.AppRegistrationDetailFromJSON = exports.instanceOfAppRegistrationDetail = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const AppClientType_1 = require("./AppClientType");
18
19
  const AppType_1 = require("./AppType");
19
20
  const Permission_1 = require("./Permission");
20
21
  const PrincipalType_1 = require("./PrincipalType");
@@ -30,12 +31,11 @@ function instanceOfAppRegistrationDetail(value) {
30
31
  isInstance = isInstance && "description" in value;
31
32
  isInstance = isInstance && "principalType" in value;
32
33
  isInstance = isInstance && "type" in value;
33
- isInstance = isInstance && "allowedIps" in value;
34
- isInstance = isInstance && "secretGeneratedAt" in value;
35
- isInstance = isInstance && "secretGeneratedBy" in value;
34
+ isInstance = isInstance && "clientType" in value;
36
35
  isInstance = isInstance && "projectPermissions" in value;
37
36
  isInstance = isInstance && "globalPermissions" in value;
38
37
  isInstance = isInstance && "isArchived" in value;
38
+ isInstance = isInstance && "requiresAdminConsent" in value;
39
39
  isInstance = isInstance && "createdAt" in value;
40
40
  isInstance = isInstance && "updatedAt" in value;
41
41
  isInstance = isInstance && "createdBy" in value;
@@ -57,13 +57,15 @@ function AppRegistrationDetailFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'description': json['description'],
58
58
  'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
59
59
  'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
60
- 'allowedIps': json['allowedIps'],
60
+ 'clientType': (0, AppClientType_1.AppClientTypeFromJSON)(json['clientType']),
61
+ 'allowedIps': !(0, runtime_1.exists)(json, 'allowedIps') ? undefined : json['allowedIps'],
61
62
  'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
62
- 'secretGeneratedAt': (new Date(json['secretGeneratedAt'])),
63
- 'secretGeneratedBy': json['secretGeneratedBy'],
63
+ 'secretGeneratedAt': !(0, runtime_1.exists)(json, 'secretGeneratedAt') ? undefined : (json['secretGeneratedAt'] === null ? null : new Date(json['secretGeneratedAt'])),
64
+ 'secretGeneratedBy': !(0, runtime_1.exists)(json, 'secretGeneratedBy') ? undefined : json['secretGeneratedBy'],
64
65
  'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSet_1.ProjectPermissionSetFromJSON)),
65
66
  'globalPermissions': (json['globalPermissions'].map(Permission_1.PermissionFromJSON)),
66
67
  'isArchived': json['isArchived'],
68
+ 'requiresAdminConsent': json['requiresAdminConsent'],
67
69
  'createdAt': (new Date(json['createdAt'])),
68
70
  'updatedAt': (new Date(json['updatedAt'])),
69
71
  'createdBy': json['createdBy'],
@@ -84,13 +86,15 @@ function AppRegistrationDetailToJSON(value) {
84
86
  'description': value.description,
85
87
  'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
86
88
  'type': (0, AppType_1.AppTypeToJSON)(value.type),
89
+ 'clientType': (0, AppClientType_1.AppClientTypeToJSON)(value.clientType),
87
90
  'allowedIps': value.allowedIps,
88
91
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
89
- 'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
92
+ 'secretGeneratedAt': value.secretGeneratedAt === undefined ? undefined : (value.secretGeneratedAt === null ? null : value.secretGeneratedAt.toISOString()),
90
93
  'secretGeneratedBy': value.secretGeneratedBy,
91
94
  'projectPermissions': (value.projectPermissions.map(ProjectPermissionSet_1.ProjectPermissionSetToJSON)),
92
95
  'globalPermissions': (value.globalPermissions.map(Permission_1.PermissionToJSON)),
93
96
  'isArchived': value.isArchived,
97
+ 'requiresAdminConsent': value.requiresAdminConsent,
94
98
  'createdAt': (value.createdAt.toISOString()),
95
99
  'updatedAt': (value.updatedAt.toISOString()),
96
100
  'createdBy': value.createdBy,
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AppType } from './AppType';
12
+ import type { AppClientType } from './AppClientType';
13
13
  import type { Permission } from './Permission';
14
14
  import type { PrincipalType } from './PrincipalType';
15
15
  import type { ProjectPermissionSet } from './ProjectPermissionSet';
@@ -39,16 +39,22 @@ export interface AppRegistrationInput {
39
39
  principalType: PrincipalType;
40
40
  /**
41
41
  *
42
- * @type {AppType}
42
+ * @type {AppClientType}
43
43
  * @memberof AppRegistrationInput
44
44
  */
45
- type: AppType;
45
+ clientType: AppClientType;
46
46
  /**
47
47
  * These IP address ranges are allowed to use this app (will be used later)
48
48
  * @type {Array<string>}
49
49
  * @memberof AppRegistrationInput
50
50
  */
51
51
  allowedIps: Array<string>;
52
+ /**
53
+ * A list of allowed redirect URIs for authentication. HTTPS is required except for localhost and app callback URLs are supported
54
+ * @type {Array<string>}
55
+ * @memberof AppRegistrationInput
56
+ */
57
+ redirectUris: Array<string>;
52
58
  /**
53
59
  * Optional expiry date of secret
54
60
  * @type {Date}
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AppRegistrationInputToJSON = exports.AppRegistrationInputFromJSONTyped = exports.AppRegistrationInputFromJSON = exports.instanceOfAppRegistrationInput = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const AppType_1 = require("./AppType");
18
+ const AppClientType_1 = require("./AppClientType");
19
19
  const Permission_1 = require("./Permission");
20
20
  const PrincipalType_1 = require("./PrincipalType");
21
21
  const ProjectPermissionSet_1 = require("./ProjectPermissionSet");
@@ -27,8 +27,9 @@ function instanceOfAppRegistrationInput(value) {
27
27
  isInstance = isInstance && "name" in value;
28
28
  isInstance = isInstance && "description" in value;
29
29
  isInstance = isInstance && "principalType" in value;
30
- isInstance = isInstance && "type" in value;
30
+ isInstance = isInstance && "clientType" in value;
31
31
  isInstance = isInstance && "allowedIps" in value;
32
+ isInstance = isInstance && "redirectUris" in value;
32
33
  isInstance = isInstance && "projectPermissions" in value;
33
34
  isInstance = isInstance && "globalPermissions" in value;
34
35
  return isInstance;
@@ -46,8 +47,9 @@ function AppRegistrationInputFromJSONTyped(json, ignoreDiscriminator) {
46
47
  'name': json['name'],
47
48
  'description': json['description'],
48
49
  'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
49
- 'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
50
+ 'clientType': (0, AppClientType_1.AppClientTypeFromJSON)(json['clientType']),
50
51
  'allowedIps': json['allowedIps'],
52
+ 'redirectUris': json['redirectUris'],
51
53
  'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
52
54
  'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSet_1.ProjectPermissionSetFromJSON)),
53
55
  'globalPermissions': (json['globalPermissions'].map(Permission_1.PermissionFromJSON)),
@@ -65,8 +67,9 @@ function AppRegistrationInputToJSON(value) {
65
67
  'name': value.name,
66
68
  'description': value.description,
67
69
  'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
68
- 'type': (0, AppType_1.AppTypeToJSON)(value.type),
70
+ 'clientType': (0, AppClientType_1.AppClientTypeToJSON)(value.clientType),
69
71
  'allowedIps': value.allowedIps,
72
+ 'redirectUris': value.redirectUris,
70
73
  'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
71
74
  'projectPermissions': (value.projectPermissions.map(ProjectPermissionSet_1.ProjectPermissionSetToJSON)),
72
75
  'globalPermissions': (value.globalPermissions.map(Permission_1.PermissionToJSON)),
@@ -15,7 +15,10 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum AppType {
18
- ConfidentialClient = "CONFIDENTIAL_CLIENT"
18
+ Traditional = "TRADITIONAL",
19
+ MachineToMachine = "MACHINE_TO_MACHINE",
20
+ PublicApp = "PUBLIC_APP",
21
+ Unknown = "UNKNOWN"
19
22
  }
20
23
  export declare function AppTypeFromJSON(json: any): AppType;
21
24
  export declare function AppTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppType;
@@ -21,7 +21,10 @@ exports.AppTypeToJSON = exports.AppTypeFromJSONTyped = exports.AppTypeFromJSON =
21
21
  */
22
22
  var AppType;
23
23
  (function (AppType) {
24
- AppType["ConfidentialClient"] = "CONFIDENTIAL_CLIENT";
24
+ AppType["Traditional"] = "TRADITIONAL";
25
+ AppType["MachineToMachine"] = "MACHINE_TO_MACHINE";
26
+ AppType["PublicApp"] = "PUBLIC_APP";
27
+ AppType["Unknown"] = "UNKNOWN";
25
28
  })(AppType = exports.AppType || (exports.AppType = {}));
26
29
  function AppTypeFromJSON(json) {
27
30
  return AppTypeFromJSONTyped(json, false);
@@ -15,6 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum PrincipalType {
18
+ Delegated = "DELEGATED",
18
19
  User = "USER",
19
20
  System = "SYSTEM"
20
21
  }
@@ -21,6 +21,7 @@ exports.PrincipalTypeToJSON = exports.PrincipalTypeFromJSONTyped = exports.Princ
21
21
  */
22
22
  var PrincipalType;
23
23
  (function (PrincipalType) {
24
+ PrincipalType["Delegated"] = "DELEGATED";
24
25
  PrincipalType["User"] = "USER";
25
26
  PrincipalType["System"] = "SYSTEM";
26
27
  })(PrincipalType = exports.PrincipalType || (exports.PrincipalType = {}));
@@ -95,7 +95,7 @@ export interface UserDetail {
95
95
  * @memberof UserDetail
96
96
  * @deprecated
97
97
  */
98
- groups?: Array<string>;
98
+ groups?: Array<string> | null;
99
99
  /**
100
100
  *
101
101
  * @type {UserSettings}
@@ -5,6 +5,7 @@ export * from './AgentInput';
5
5
  export * from './AgentRegistration';
6
6
  export * from './AgentStatus';
7
7
  export * from './AllowedDataType';
8
+ export * from './AppClientType';
8
9
  export * from './AppRegistration';
9
10
  export * from './AppRegistrationDetail';
10
11
  export * from './AppRegistrationInput';
@@ -23,6 +23,7 @@ __exportStar(require("./AgentInput"), exports);
23
23
  __exportStar(require("./AgentRegistration"), exports);
24
24
  __exportStar(require("./AgentStatus"), exports);
25
25
  __exportStar(require("./AllowedDataType"), exports);
26
+ __exportStar(require("./AppClientType"), exports);
26
27
  __exportStar(require("./AppRegistration"), exports);
27
28
  __exportStar(require("./AppRegistrationDetail"), exports);
28
29
  __exportStar(require("./AppRegistrationInput"), exports);
package/dist/runtime.js CHANGED
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
- exports.BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
26
+ exports.BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
27
27
  class Configuration {
28
28
  constructor(configuration = {}) {
29
29
  this.configuration = configuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.16",
3
+ "version": "0.12.18",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {