@cirrobio/api-client 0.12.13 → 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/UpdateUserRequest.d.ts +9 -2
- package/dist/esm/models/UpdateUserRequest.js +2 -0
- package/dist/esm/models/User.d.ts +6 -0
- package/dist/esm/models/User.js +3 -0
- package/dist/esm/models/UserDetail.d.ts +8 -1
- package/dist/esm/models/UserDetail.js +4 -2
- 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/UpdateUserRequest.d.ts +9 -2
- package/dist/models/UpdateUserRequest.js +2 -0
- package/dist/models/User.d.ts +6 -0
- package/dist/models/User.js +3 -0
- package/dist/models/UserDetail.d.ts +8 -1
- package/dist/models/UserDetail.js +4 -2
- 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,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;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.AppRegistrationDetailToJSON = exports.AppRegistrationDetailFromJSONTyped = exports.AppRegistrationDetailFromJSON = exports.instanceOfAppRegistrationDetail = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const AppType_1 = require("./AppType");
|
|
19
|
+
const Permission_1 = require("./Permission");
|
|
20
|
+
const PrincipalType_1 = require("./PrincipalType");
|
|
21
|
+
const ProjectPermissionSet_1 = require("./ProjectPermissionSet");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AppRegistrationDetail interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAppRegistrationDetail(value) {
|
|
26
|
+
let isInstance = true;
|
|
27
|
+
isInstance = isInstance && "id" in value;
|
|
28
|
+
isInstance = isInstance && "clientId" in value;
|
|
29
|
+
isInstance = isInstance && "name" in value;
|
|
30
|
+
isInstance = isInstance && "description" in value;
|
|
31
|
+
isInstance = isInstance && "principalType" in value;
|
|
32
|
+
isInstance = isInstance && "type" in value;
|
|
33
|
+
isInstance = isInstance && "allowedIps" in value;
|
|
34
|
+
isInstance = isInstance && "secretGeneratedAt" in value;
|
|
35
|
+
isInstance = isInstance && "secretGeneratedBy" in value;
|
|
36
|
+
isInstance = isInstance && "projectPermissions" in value;
|
|
37
|
+
isInstance = isInstance && "globalPermissions" in value;
|
|
38
|
+
isInstance = isInstance && "isArchived" in value;
|
|
39
|
+
isInstance = isInstance && "createdAt" in value;
|
|
40
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
41
|
+
isInstance = isInstance && "createdBy" in value;
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
exports.instanceOfAppRegistrationDetail = instanceOfAppRegistrationDetail;
|
|
45
|
+
function AppRegistrationDetailFromJSON(json) {
|
|
46
|
+
return AppRegistrationDetailFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
exports.AppRegistrationDetailFromJSON = AppRegistrationDetailFromJSON;
|
|
49
|
+
function AppRegistrationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'clientId': json['clientId'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'description': json['description'],
|
|
58
|
+
'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
|
|
59
|
+
'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
|
|
60
|
+
'allowedIps': json['allowedIps'],
|
|
61
|
+
'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'],
|
|
64
|
+
'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSet_1.ProjectPermissionSetFromJSON)),
|
|
65
|
+
'globalPermissions': (json['globalPermissions'].map(Permission_1.PermissionFromJSON)),
|
|
66
|
+
'isArchived': json['isArchived'],
|
|
67
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
68
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
69
|
+
'createdBy': json['createdBy'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.AppRegistrationDetailFromJSONTyped = AppRegistrationDetailFromJSONTyped;
|
|
73
|
+
function AppRegistrationDetailToJSON(value) {
|
|
74
|
+
if (value === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
if (value === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'id': value.id,
|
|
82
|
+
'clientId': value.clientId,
|
|
83
|
+
'name': value.name,
|
|
84
|
+
'description': value.description,
|
|
85
|
+
'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
|
|
86
|
+
'type': (0, AppType_1.AppTypeToJSON)(value.type),
|
|
87
|
+
'allowedIps': value.allowedIps,
|
|
88
|
+
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
89
|
+
'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
|
|
90
|
+
'secretGeneratedBy': value.secretGeneratedBy,
|
|
91
|
+
'projectPermissions': (value.projectPermissions.map(ProjectPermissionSet_1.ProjectPermissionSetToJSON)),
|
|
92
|
+
'globalPermissions': (value.globalPermissions.map(Permission_1.PermissionToJSON)),
|
|
93
|
+
'isArchived': value.isArchived,
|
|
94
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
95
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
96
|
+
'createdBy': value.createdBy,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
exports.AppRegistrationDetailToJSON = AppRegistrationDetailToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 AppRegistrationInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AppRegistrationInput {
|
|
22
|
+
/**
|
|
23
|
+
* Name of app registration
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AppRegistrationInput
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AppRegistrationInput
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {PrincipalType}
|
|
37
|
+
* @memberof AppRegistrationInput
|
|
38
|
+
*/
|
|
39
|
+
principalType: PrincipalType;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {AppType}
|
|
43
|
+
* @memberof AppRegistrationInput
|
|
44
|
+
*/
|
|
45
|
+
type: AppType;
|
|
46
|
+
/**
|
|
47
|
+
* These IP address ranges are allowed to use this app (will be used later)
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof AppRegistrationInput
|
|
50
|
+
*/
|
|
51
|
+
allowedIps: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Optional expiry date of secret
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof AppRegistrationInput
|
|
56
|
+
*/
|
|
57
|
+
secretExpiresAt?: Date | null;
|
|
58
|
+
/**
|
|
59
|
+
* Permissions that this app has on the project
|
|
60
|
+
* @type {Array<ProjectPermissionSet>}
|
|
61
|
+
* @memberof AppRegistrationInput
|
|
62
|
+
*/
|
|
63
|
+
projectPermissions: Array<ProjectPermissionSet>;
|
|
64
|
+
/**
|
|
65
|
+
* Permissions that this app has globally
|
|
66
|
+
* @type {Array<Permission>}
|
|
67
|
+
* @memberof AppRegistrationInput
|
|
68
|
+
*/
|
|
69
|
+
globalPermissions: Array<Permission>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the AppRegistrationInput interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfAppRegistrationInput(value: object): boolean;
|
|
75
|
+
export declare function AppRegistrationInputFromJSON(json: any): AppRegistrationInput;
|
|
76
|
+
export declare function AppRegistrationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistrationInput;
|
|
77
|
+
export declare function AppRegistrationInputToJSON(value?: AppRegistrationInput | null): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.AppRegistrationInputToJSON = exports.AppRegistrationInputFromJSONTyped = exports.AppRegistrationInputFromJSON = exports.instanceOfAppRegistrationInput = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const AppType_1 = require("./AppType");
|
|
19
|
+
const Permission_1 = require("./Permission");
|
|
20
|
+
const PrincipalType_1 = require("./PrincipalType");
|
|
21
|
+
const ProjectPermissionSet_1 = require("./ProjectPermissionSet");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AppRegistrationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAppRegistrationInput(value) {
|
|
26
|
+
let isInstance = true;
|
|
27
|
+
isInstance = isInstance && "name" in value;
|
|
28
|
+
isInstance = isInstance && "description" in value;
|
|
29
|
+
isInstance = isInstance && "principalType" in value;
|
|
30
|
+
isInstance = isInstance && "type" in value;
|
|
31
|
+
isInstance = isInstance && "allowedIps" in value;
|
|
32
|
+
isInstance = isInstance && "projectPermissions" in value;
|
|
33
|
+
isInstance = isInstance && "globalPermissions" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfAppRegistrationInput = instanceOfAppRegistrationInput;
|
|
37
|
+
function AppRegistrationInputFromJSON(json) {
|
|
38
|
+
return AppRegistrationInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.AppRegistrationInputFromJSON = AppRegistrationInputFromJSON;
|
|
41
|
+
function AppRegistrationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'description': json['description'],
|
|
48
|
+
'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
|
|
49
|
+
'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
|
|
50
|
+
'allowedIps': json['allowedIps'],
|
|
51
|
+
'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
|
|
52
|
+
'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSet_1.ProjectPermissionSetFromJSON)),
|
|
53
|
+
'globalPermissions': (json['globalPermissions'].map(Permission_1.PermissionFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.AppRegistrationInputFromJSONTyped = AppRegistrationInputFromJSONTyped;
|
|
57
|
+
function AppRegistrationInputToJSON(value) {
|
|
58
|
+
if (value === undefined) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (value === null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'name': value.name,
|
|
66
|
+
'description': value.description,
|
|
67
|
+
'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
|
|
68
|
+
'type': (0, AppType_1.AppTypeToJSON)(value.type),
|
|
69
|
+
'allowedIps': value.allowedIps,
|
|
70
|
+
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
71
|
+
'projectPermissions': (value.projectPermissions.map(ProjectPermissionSet_1.ProjectPermissionSetToJSON)),
|
|
72
|
+
'globalPermissions': (value.globalPermissions.map(Permission_1.PermissionToJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
exports.AppRegistrationInputToJSON = AppRegistrationInputToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppRegistrationSecretResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AppRegistrationSecretResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppRegistrationSecretResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The oauth client ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppRegistrationSecretResponse
|
|
28
|
+
*/
|
|
29
|
+
clientId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The oauth client secret. This is only returned once.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppRegistrationSecretResponse
|
|
34
|
+
*/
|
|
35
|
+
clientSecret: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof AppRegistrationSecretResponse
|
|
40
|
+
*/
|
|
41
|
+
secretGeneratedAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AppRegistrationSecretResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAppRegistrationSecretResponse(value: object): boolean;
|
|
47
|
+
export declare function AppRegistrationSecretResponseFromJSON(json: any): AppRegistrationSecretResponse;
|
|
48
|
+
export declare function AppRegistrationSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistrationSecretResponse;
|
|
49
|
+
export declare function AppRegistrationSecretResponseToJSON(value?: AppRegistrationSecretResponse | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.AppRegistrationSecretResponseToJSON = exports.AppRegistrationSecretResponseFromJSONTyped = exports.AppRegistrationSecretResponseFromJSON = exports.instanceOfAppRegistrationSecretResponse = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AppRegistrationSecretResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAppRegistrationSecretResponse(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "clientId" in value;
|
|
24
|
+
isInstance = isInstance && "clientSecret" in value;
|
|
25
|
+
isInstance = isInstance && "secretGeneratedAt" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfAppRegistrationSecretResponse = instanceOfAppRegistrationSecretResponse;
|
|
29
|
+
function AppRegistrationSecretResponseFromJSON(json) {
|
|
30
|
+
return AppRegistrationSecretResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.AppRegistrationSecretResponseFromJSON = AppRegistrationSecretResponseFromJSON;
|
|
33
|
+
function AppRegistrationSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'clientId': json['clientId'],
|
|
40
|
+
'clientSecret': json['clientSecret'],
|
|
41
|
+
'secretGeneratedAt': (new Date(json['secretGeneratedAt'])),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.AppRegistrationSecretResponseFromJSONTyped = AppRegistrationSecretResponseFromJSONTyped;
|
|
45
|
+
function AppRegistrationSecretResponseToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': value.id,
|
|
54
|
+
'clientId': value.clientId,
|
|
55
|
+
'clientSecret': value.clientSecret,
|
|
56
|
+
'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.AppRegistrationSecretResponseToJSON = AppRegistrationSecretResponseToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 AppType {
|
|
18
|
+
ConfidentialClient = "CONFIDENTIAL_CLIENT"
|
|
19
|
+
}
|
|
20
|
+
export declare function AppTypeFromJSON(json: any): AppType;
|
|
21
|
+
export declare function AppTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppType;
|
|
22
|
+
export declare function AppTypeToJSON(value?: AppType | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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.AppTypeToJSON = exports.AppTypeFromJSONTyped = exports.AppTypeFromJSON = exports.AppType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var AppType;
|
|
23
|
+
(function (AppType) {
|
|
24
|
+
AppType["ConfidentialClient"] = "CONFIDENTIAL_CLIENT";
|
|
25
|
+
})(AppType = exports.AppType || (exports.AppType = {}));
|
|
26
|
+
function AppTypeFromJSON(json) {
|
|
27
|
+
return AppTypeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.AppTypeFromJSON = AppTypeFromJSON;
|
|
30
|
+
function AppTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.AppTypeFromJSONTyped = AppTypeFromJSONTyped;
|
|
34
|
+
function AppTypeToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.AppTypeToJSON = AppTypeToJSON;
|
|
@@ -45,6 +45,12 @@ export interface FeatureFlags {
|
|
|
45
45
|
* @memberof FeatureFlags
|
|
46
46
|
*/
|
|
47
47
|
driveEnabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof FeatureFlags
|
|
52
|
+
*/
|
|
53
|
+
appRegistrationsEnabled: boolean;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the FeatureFlags interface.
|
|
@@ -24,6 +24,7 @@ function instanceOfFeatureFlags(value) {
|
|
|
24
24
|
isInstance = isInstance && "projectRequestsEnabled" in value;
|
|
25
25
|
isInstance = isInstance && "workspacesEnabled" in value;
|
|
26
26
|
isInstance = isInstance && "driveEnabled" in value;
|
|
27
|
+
isInstance = isInstance && "appRegistrationsEnabled" in value;
|
|
27
28
|
return isInstance;
|
|
28
29
|
}
|
|
29
30
|
exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
|
|
@@ -41,6 +42,7 @@ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'projectRequestsEnabled': json['projectRequestsEnabled'],
|
|
42
43
|
'workspacesEnabled': json['workspacesEnabled'],
|
|
43
44
|
'driveEnabled': json['driveEnabled'],
|
|
45
|
+
'appRegistrationsEnabled': json['appRegistrationsEnabled'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function FeatureFlagsToJSON(value) {
|
|
|
57
59
|
'projectRequestsEnabled': value.projectRequestsEnabled,
|
|
58
60
|
'workspacesEnabled': value.workspacesEnabled,
|
|
59
61
|
'driveEnabled': value.driveEnabled,
|
|
62
|
+
'appRegistrationsEnabled': value.appRegistrationsEnabled,
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AppRegistration } from './AppRegistration';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseAppRegistrationDto
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseAppRegistrationDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AppRegistration>}
|
|
22
|
+
* @memberof PaginatedResponseAppRegistrationDto
|
|
23
|
+
*/
|
|
24
|
+
data: Array<AppRegistration>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PaginatedResponseAppRegistrationDto
|
|
29
|
+
*/
|
|
30
|
+
nextToken: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PaginatedResponseAppRegistrationDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPaginatedResponseAppRegistrationDto(value: object): boolean;
|
|
36
|
+
export declare function PaginatedResponseAppRegistrationDtoFromJSON(json: any): PaginatedResponseAppRegistrationDto;
|
|
37
|
+
export declare function PaginatedResponseAppRegistrationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseAppRegistrationDto;
|
|
38
|
+
export declare function PaginatedResponseAppRegistrationDtoToJSON(value?: PaginatedResponseAppRegistrationDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseAppRegistrationDtoToJSON = exports.PaginatedResponseAppRegistrationDtoFromJSONTyped = exports.PaginatedResponseAppRegistrationDtoFromJSON = exports.instanceOfPaginatedResponseAppRegistrationDto = void 0;
|
|
17
|
+
const AppRegistration_1 = require("./AppRegistration");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaginatedResponseAppRegistrationDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPaginatedResponseAppRegistrationDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "data" in value;
|
|
24
|
+
isInstance = isInstance && "nextToken" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPaginatedResponseAppRegistrationDto = instanceOfPaginatedResponseAppRegistrationDto;
|
|
28
|
+
function PaginatedResponseAppRegistrationDtoFromJSON(json) {
|
|
29
|
+
return PaginatedResponseAppRegistrationDtoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PaginatedResponseAppRegistrationDtoFromJSON = PaginatedResponseAppRegistrationDtoFromJSON;
|
|
32
|
+
function PaginatedResponseAppRegistrationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'data': (json['data'].map(AppRegistration_1.AppRegistrationFromJSON)),
|
|
38
|
+
'nextToken': json['nextToken'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.PaginatedResponseAppRegistrationDtoFromJSONTyped = PaginatedResponseAppRegistrationDtoFromJSONTyped;
|
|
42
|
+
function PaginatedResponseAppRegistrationDtoToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'data': (value.data.map(AppRegistration_1.AppRegistrationToJSON)),
|
|
51
|
+
'nextToken': value.nextToken,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PaginatedResponseAppRegistrationDtoToJSON = PaginatedResponseAppRegistrationDtoToJSON;
|