@cirrobio/api-client 0.12.17 → 0.12.19
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 +13 -0
- package/dist/apis/AppRegistrationsApi.js +36 -0
- package/dist/esm/apis/AppRegistrationsApi.d.ts +13 -0
- package/dist/esm/apis/AppRegistrationsApi.js +36 -0
- package/dist/esm/models/AppClientType.d.ts +23 -0
- package/dist/esm/models/AppClientType.js +32 -0
- package/dist/esm/models/AppRegistration.d.ts +13 -0
- package/dist/esm/models/AppRegistration.js +7 -0
- package/dist/esm/models/AppRegistrationDetail.d.ts +34 -3
- package/dist/esm/models/AppRegistrationDetail.js +17 -7
- package/dist/esm/models/AppRegistrationInput.d.ts +9 -3
- package/dist/esm/models/AppRegistrationInput.js +7 -4
- package/dist/esm/models/AppType.d.ts +4 -1
- package/dist/esm/models/AppType.js +4 -1
- package/dist/esm/models/PrincipalType.d.ts +1 -0
- package/dist/esm/models/PrincipalType.js +1 -0
- package/dist/esm/models/UserDetail.d.ts +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AppClientType.d.ts +23 -0
- package/dist/models/AppClientType.js +38 -0
- package/dist/models/AppRegistration.d.ts +13 -0
- package/dist/models/AppRegistration.js +7 -0
- package/dist/models/AppRegistrationDetail.d.ts +34 -3
- package/dist/models/AppRegistrationDetail.js +17 -7
- package/dist/models/AppRegistrationInput.d.ts +9 -3
- package/dist/models/AppRegistrationInput.js +7 -4
- package/dist/models/AppType.d.ts +4 -1
- package/dist/models/AppType.js +4 -1
- package/dist/models/PrincipalType.d.ts +1 -0
- package/dist/models/PrincipalType.js +1 -0
- package/dist/models/UserDetail.d.ts +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
+
}
|
|
@@ -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 { PrincipalType } from './PrincipalType';
|
|
14
15
|
/**
|
|
@@ -53,6 +54,12 @@ export interface AppRegistration {
|
|
|
53
54
|
* @memberof AppRegistration
|
|
54
55
|
*/
|
|
55
56
|
type: AppType;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {AppClientType}
|
|
60
|
+
* @memberof AppRegistration
|
|
61
|
+
*/
|
|
62
|
+
clientType: AppClientType;
|
|
56
63
|
/**
|
|
57
64
|
*
|
|
58
65
|
* @type {Date}
|
|
@@ -65,6 +72,12 @@ export interface AppRegistration {
|
|
|
65
72
|
* @memberof AppRegistration
|
|
66
73
|
*/
|
|
67
74
|
isArchived: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof AppRegistration
|
|
79
|
+
*/
|
|
80
|
+
requiresAdminConsent: boolean;
|
|
68
81
|
/**
|
|
69
82
|
*
|
|
70
83
|
* @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 { PrincipalTypeFromJSON, PrincipalTypeToJSON, } from './PrincipalType';
|
|
17
18
|
/**
|
|
@@ -25,7 +26,9 @@ export function instanceOfAppRegistration(value) {
|
|
|
25
26
|
isInstance = isInstance && "description" in value;
|
|
26
27
|
isInstance = isInstance && "principalType" in value;
|
|
27
28
|
isInstance = isInstance && "type" in value;
|
|
29
|
+
isInstance = isInstance && "clientType" in value;
|
|
28
30
|
isInstance = isInstance && "isArchived" in value;
|
|
31
|
+
isInstance = isInstance && "requiresAdminConsent" in value;
|
|
29
32
|
isInstance = isInstance && "updatedAt" in value;
|
|
30
33
|
isInstance = isInstance && "createdAt" in value;
|
|
31
34
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -45,8 +48,10 @@ export function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
48
|
'description': json['description'],
|
|
46
49
|
'principalType': PrincipalTypeFromJSON(json['principalType']),
|
|
47
50
|
'type': AppTypeFromJSON(json['type']),
|
|
51
|
+
'clientType': AppClientTypeFromJSON(json['clientType']),
|
|
48
52
|
'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
|
|
49
53
|
'isArchived': json['isArchived'],
|
|
54
|
+
'requiresAdminConsent': json['requiresAdminConsent'],
|
|
50
55
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
51
56
|
'createdAt': (new Date(json['createdAt'])),
|
|
52
57
|
'createdBy': json['createdBy'],
|
|
@@ -66,8 +71,10 @@ export function AppRegistrationToJSON(value) {
|
|
|
66
71
|
'description': value.description,
|
|
67
72
|
'principalType': PrincipalTypeToJSON(value.principalType),
|
|
68
73
|
'type': AppTypeToJSON(value.type),
|
|
74
|
+
'clientType': AppClientTypeToJSON(value.clientType),
|
|
69
75
|
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
70
76
|
'isArchived': value.isArchived,
|
|
77
|
+
'requiresAdminConsent': value.requiresAdminConsent,
|
|
71
78
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
72
79
|
'createdAt': (value.createdAt.toISOString()),
|
|
73
80
|
'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,24 @@ 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;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof AppRegistrationDetail
|
|
69
|
+
*/
|
|
70
|
+
allowedIps?: Array<string> | null;
|
|
58
71
|
/**
|
|
59
72
|
*
|
|
60
73
|
* @type {Array<string>}
|
|
61
74
|
* @memberof AppRegistrationDetail
|
|
62
75
|
*/
|
|
63
|
-
|
|
76
|
+
redirectUris?: Array<string> | null;
|
|
64
77
|
/**
|
|
65
78
|
*
|
|
66
79
|
* @type {Date}
|
|
@@ -72,13 +85,13 @@ export interface AppRegistrationDetail {
|
|
|
72
85
|
* @type {Date}
|
|
73
86
|
* @memberof AppRegistrationDetail
|
|
74
87
|
*/
|
|
75
|
-
secretGeneratedAt
|
|
88
|
+
secretGeneratedAt?: Date | null;
|
|
76
89
|
/**
|
|
77
90
|
*
|
|
78
91
|
* @type {string}
|
|
79
92
|
* @memberof AppRegistrationDetail
|
|
80
93
|
*/
|
|
81
|
-
secretGeneratedBy
|
|
94
|
+
secretGeneratedBy?: string | null;
|
|
82
95
|
/**
|
|
83
96
|
*
|
|
84
97
|
* @type {Array<ProjectPermissionSet>}
|
|
@@ -97,6 +110,24 @@ export interface AppRegistrationDetail {
|
|
|
97
110
|
* @memberof AppRegistrationDetail
|
|
98
111
|
*/
|
|
99
112
|
isArchived: boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof AppRegistrationDetail
|
|
117
|
+
*/
|
|
118
|
+
requiresAdminConsent: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Date}
|
|
122
|
+
* @memberof AppRegistrationDetail
|
|
123
|
+
*/
|
|
124
|
+
approvedAt?: Date | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof AppRegistrationDetail
|
|
129
|
+
*/
|
|
130
|
+
approvedBy?: string | null;
|
|
100
131
|
/**
|
|
101
132
|
*
|
|
102
133
|
* @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 && "
|
|
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,18 @@ export function AppRegistrationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'description': json['description'],
|
|
53
53
|
'principalType': PrincipalTypeFromJSON(json['principalType']),
|
|
54
54
|
'type': AppTypeFromJSON(json['type']),
|
|
55
|
-
'
|
|
55
|
+
'clientType': AppClientTypeFromJSON(json['clientType']),
|
|
56
|
+
'allowedIps': !exists(json, 'allowedIps') ? undefined : json['allowedIps'],
|
|
57
|
+
'redirectUris': !exists(json, 'redirectUris') ? undefined : json['redirectUris'],
|
|
56
58
|
'secretExpiresAt': !exists(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
|
|
57
|
-
'secretGeneratedAt': (new Date(json['secretGeneratedAt'])),
|
|
58
|
-
'secretGeneratedBy': json['secretGeneratedBy'],
|
|
59
|
+
'secretGeneratedAt': !exists(json, 'secretGeneratedAt') ? undefined : (json['secretGeneratedAt'] === null ? null : new Date(json['secretGeneratedAt'])),
|
|
60
|
+
'secretGeneratedBy': !exists(json, 'secretGeneratedBy') ? undefined : json['secretGeneratedBy'],
|
|
59
61
|
'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSetFromJSON)),
|
|
60
62
|
'globalPermissions': (json['globalPermissions'].map(PermissionFromJSON)),
|
|
61
63
|
'isArchived': json['isArchived'],
|
|
64
|
+
'requiresAdminConsent': json['requiresAdminConsent'],
|
|
65
|
+
'approvedAt': !exists(json, 'approvedAt') ? undefined : (json['approvedAt'] === null ? null : new Date(json['approvedAt'])),
|
|
66
|
+
'approvedBy': !exists(json, 'approvedBy') ? undefined : json['approvedBy'],
|
|
62
67
|
'createdAt': (new Date(json['createdAt'])),
|
|
63
68
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
64
69
|
'createdBy': json['createdBy'],
|
|
@@ -78,13 +83,18 @@ export function AppRegistrationDetailToJSON(value) {
|
|
|
78
83
|
'description': value.description,
|
|
79
84
|
'principalType': PrincipalTypeToJSON(value.principalType),
|
|
80
85
|
'type': AppTypeToJSON(value.type),
|
|
86
|
+
'clientType': AppClientTypeToJSON(value.clientType),
|
|
81
87
|
'allowedIps': value.allowedIps,
|
|
88
|
+
'redirectUris': value.redirectUris,
|
|
82
89
|
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
83
|
-
'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
|
|
90
|
+
'secretGeneratedAt': value.secretGeneratedAt === undefined ? undefined : (value.secretGeneratedAt === null ? null : value.secretGeneratedAt.toISOString()),
|
|
84
91
|
'secretGeneratedBy': value.secretGeneratedBy,
|
|
85
92
|
'projectPermissions': (value.projectPermissions.map(ProjectPermissionSetToJSON)),
|
|
86
93
|
'globalPermissions': (value.globalPermissions.map(PermissionToJSON)),
|
|
87
94
|
'isArchived': value.isArchived,
|
|
95
|
+
'requiresAdminConsent': value.requiresAdminConsent,
|
|
96
|
+
'approvedAt': value.approvedAt === undefined ? undefined : (value.approvedAt === null ? null : value.approvedAt.toISOString()),
|
|
97
|
+
'approvedBy': value.approvedBy,
|
|
88
98
|
'createdAt': (value.createdAt.toISOString()),
|
|
89
99
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
90
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 {
|
|
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 {
|
|
42
|
+
* @type {AppClientType}
|
|
43
43
|
* @memberof AppRegistrationInput
|
|
44
44
|
*/
|
|
45
|
-
|
|
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 {
|
|
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 && "
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
|
|
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["
|
|
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);
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -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;
|
|
@@ -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 { PrincipalType } from './PrincipalType';
|
|
14
15
|
/**
|
|
@@ -53,6 +54,12 @@ export interface AppRegistration {
|
|
|
53
54
|
* @memberof AppRegistration
|
|
54
55
|
*/
|
|
55
56
|
type: AppType;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {AppClientType}
|
|
60
|
+
* @memberof AppRegistration
|
|
61
|
+
*/
|
|
62
|
+
clientType: AppClientType;
|
|
56
63
|
/**
|
|
57
64
|
*
|
|
58
65
|
* @type {Date}
|
|
@@ -65,6 +72,12 @@ export interface AppRegistration {
|
|
|
65
72
|
* @memberof AppRegistration
|
|
66
73
|
*/
|
|
67
74
|
isArchived: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof AppRegistration
|
|
79
|
+
*/
|
|
80
|
+
requiresAdminConsent: boolean;
|
|
68
81
|
/**
|
|
69
82
|
*
|
|
70
83
|
* @type {Date}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AppRegistrationToJSON = exports.AppRegistrationFromJSONTyped = exports.AppRegistrationFromJSON = exports.instanceOfAppRegistration = 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 PrincipalType_1 = require("./PrincipalType");
|
|
20
21
|
/**
|
|
@@ -28,7 +29,9 @@ function instanceOfAppRegistration(value) {
|
|
|
28
29
|
isInstance = isInstance && "description" in value;
|
|
29
30
|
isInstance = isInstance && "principalType" in value;
|
|
30
31
|
isInstance = isInstance && "type" in value;
|
|
32
|
+
isInstance = isInstance && "clientType" in value;
|
|
31
33
|
isInstance = isInstance && "isArchived" in value;
|
|
34
|
+
isInstance = isInstance && "requiresAdminConsent" in value;
|
|
32
35
|
isInstance = isInstance && "updatedAt" in value;
|
|
33
36
|
isInstance = isInstance && "createdAt" in value;
|
|
34
37
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -50,8 +53,10 @@ function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
53
|
'description': json['description'],
|
|
51
54
|
'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
|
|
52
55
|
'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
|
|
56
|
+
'clientType': (0, AppClientType_1.AppClientTypeFromJSON)(json['clientType']),
|
|
53
57
|
'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
|
|
54
58
|
'isArchived': json['isArchived'],
|
|
59
|
+
'requiresAdminConsent': json['requiresAdminConsent'],
|
|
55
60
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
56
61
|
'createdAt': (new Date(json['createdAt'])),
|
|
57
62
|
'createdBy': json['createdBy'],
|
|
@@ -72,8 +77,10 @@ function AppRegistrationToJSON(value) {
|
|
|
72
77
|
'description': value.description,
|
|
73
78
|
'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
|
|
74
79
|
'type': (0, AppType_1.AppTypeToJSON)(value.type),
|
|
80
|
+
'clientType': (0, AppClientType_1.AppClientTypeToJSON)(value.clientType),
|
|
75
81
|
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
76
82
|
'isArchived': value.isArchived,
|
|
83
|
+
'requiresAdminConsent': value.requiresAdminConsent,
|
|
77
84
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
78
85
|
'createdAt': (value.createdAt.toISOString()),
|
|
79
86
|
'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,24 @@ 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;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof AppRegistrationDetail
|
|
69
|
+
*/
|
|
70
|
+
allowedIps?: Array<string> | null;
|
|
58
71
|
/**
|
|
59
72
|
*
|
|
60
73
|
* @type {Array<string>}
|
|
61
74
|
* @memberof AppRegistrationDetail
|
|
62
75
|
*/
|
|
63
|
-
|
|
76
|
+
redirectUris?: Array<string> | null;
|
|
64
77
|
/**
|
|
65
78
|
*
|
|
66
79
|
* @type {Date}
|
|
@@ -72,13 +85,13 @@ export interface AppRegistrationDetail {
|
|
|
72
85
|
* @type {Date}
|
|
73
86
|
* @memberof AppRegistrationDetail
|
|
74
87
|
*/
|
|
75
|
-
secretGeneratedAt
|
|
88
|
+
secretGeneratedAt?: Date | null;
|
|
76
89
|
/**
|
|
77
90
|
*
|
|
78
91
|
* @type {string}
|
|
79
92
|
* @memberof AppRegistrationDetail
|
|
80
93
|
*/
|
|
81
|
-
secretGeneratedBy
|
|
94
|
+
secretGeneratedBy?: string | null;
|
|
82
95
|
/**
|
|
83
96
|
*
|
|
84
97
|
* @type {Array<ProjectPermissionSet>}
|
|
@@ -97,6 +110,24 @@ export interface AppRegistrationDetail {
|
|
|
97
110
|
* @memberof AppRegistrationDetail
|
|
98
111
|
*/
|
|
99
112
|
isArchived: boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof AppRegistrationDetail
|
|
117
|
+
*/
|
|
118
|
+
requiresAdminConsent: boolean;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Date}
|
|
122
|
+
* @memberof AppRegistrationDetail
|
|
123
|
+
*/
|
|
124
|
+
approvedAt?: Date | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof AppRegistrationDetail
|
|
129
|
+
*/
|
|
130
|
+
approvedBy?: string | null;
|
|
100
131
|
/**
|
|
101
132
|
*
|
|
102
133
|
* @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 && "
|
|
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,18 @@ 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
|
-
'
|
|
60
|
+
'clientType': (0, AppClientType_1.AppClientTypeFromJSON)(json['clientType']),
|
|
61
|
+
'allowedIps': !(0, runtime_1.exists)(json, 'allowedIps') ? undefined : json['allowedIps'],
|
|
62
|
+
'redirectUris': !(0, runtime_1.exists)(json, 'redirectUris') ? undefined : json['redirectUris'],
|
|
61
63
|
'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
|
+
'secretGeneratedAt': !(0, runtime_1.exists)(json, 'secretGeneratedAt') ? undefined : (json['secretGeneratedAt'] === null ? null : new Date(json['secretGeneratedAt'])),
|
|
65
|
+
'secretGeneratedBy': !(0, runtime_1.exists)(json, 'secretGeneratedBy') ? undefined : json['secretGeneratedBy'],
|
|
64
66
|
'projectPermissions': (json['projectPermissions'].map(ProjectPermissionSet_1.ProjectPermissionSetFromJSON)),
|
|
65
67
|
'globalPermissions': (json['globalPermissions'].map(Permission_1.PermissionFromJSON)),
|
|
66
68
|
'isArchived': json['isArchived'],
|
|
69
|
+
'requiresAdminConsent': json['requiresAdminConsent'],
|
|
70
|
+
'approvedAt': !(0, runtime_1.exists)(json, 'approvedAt') ? undefined : (json['approvedAt'] === null ? null : new Date(json['approvedAt'])),
|
|
71
|
+
'approvedBy': !(0, runtime_1.exists)(json, 'approvedBy') ? undefined : json['approvedBy'],
|
|
67
72
|
'createdAt': (new Date(json['createdAt'])),
|
|
68
73
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
69
74
|
'createdBy': json['createdBy'],
|
|
@@ -84,13 +89,18 @@ function AppRegistrationDetailToJSON(value) {
|
|
|
84
89
|
'description': value.description,
|
|
85
90
|
'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
|
|
86
91
|
'type': (0, AppType_1.AppTypeToJSON)(value.type),
|
|
92
|
+
'clientType': (0, AppClientType_1.AppClientTypeToJSON)(value.clientType),
|
|
87
93
|
'allowedIps': value.allowedIps,
|
|
94
|
+
'redirectUris': value.redirectUris,
|
|
88
95
|
'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
|
|
89
|
-
'secretGeneratedAt': (value.secretGeneratedAt.toISOString()),
|
|
96
|
+
'secretGeneratedAt': value.secretGeneratedAt === undefined ? undefined : (value.secretGeneratedAt === null ? null : value.secretGeneratedAt.toISOString()),
|
|
90
97
|
'secretGeneratedBy': value.secretGeneratedBy,
|
|
91
98
|
'projectPermissions': (value.projectPermissions.map(ProjectPermissionSet_1.ProjectPermissionSetToJSON)),
|
|
92
99
|
'globalPermissions': (value.globalPermissions.map(Permission_1.PermissionToJSON)),
|
|
93
100
|
'isArchived': value.isArchived,
|
|
101
|
+
'requiresAdminConsent': value.requiresAdminConsent,
|
|
102
|
+
'approvedAt': value.approvedAt === undefined ? undefined : (value.approvedAt === null ? null : value.approvedAt.toISOString()),
|
|
103
|
+
'approvedBy': value.approvedBy,
|
|
94
104
|
'createdAt': (value.createdAt.toISOString()),
|
|
95
105
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
96
106
|
'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 {
|
|
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 {
|
|
42
|
+
* @type {AppClientType}
|
|
43
43
|
* @memberof AppRegistrationInput
|
|
44
44
|
*/
|
|
45
|
-
|
|
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
|
|
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 && "
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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)),
|
package/dist/models/AppType.d.ts
CHANGED
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum AppType {
|
|
18
|
-
|
|
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;
|
package/dist/models/AppType.js
CHANGED
|
@@ -21,7 +21,10 @@ exports.AppTypeToJSON = exports.AppTypeFromJSONTyped = exports.AppTypeFromJSON =
|
|
|
21
21
|
*/
|
|
22
22
|
var AppType;
|
|
23
23
|
(function (AppType) {
|
|
24
|
-
AppType["
|
|
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);
|
|
@@ -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 = {}));
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|