@goauthentik/api 2022.7.3-1659280330 → 2022.7.3-1659478057
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/.openapi-generator/FILES +3 -0
- package/dist/apis/ManagedApi.d.ts +25 -3
- package/dist/apis/ManagedApi.js +63 -1
- package/dist/esm/apis/ManagedApi.d.ts +25 -3
- package/dist/esm/apis/ManagedApi.js +64 -2
- package/dist/esm/models/BlueprintFile.d.ts +46 -0
- package/dist/esm/models/BlueprintFile.js +42 -0
- package/dist/esm/models/BlueprintFileMeta.d.ts +35 -0
- package/dist/esm/models/BlueprintFileMeta.js +37 -0
- package/dist/esm/models/BlueprintInstance.d.ts +28 -2
- package/dist/esm/models/BlueprintInstance.js +6 -3
- package/dist/esm/models/BlueprintInstanceRequest.d.ts +1 -8
- package/dist/esm/models/BlueprintInstanceRequest.js +1 -4
- package/dist/esm/models/BlueprintInstanceStatusEnum.d.ts +1 -0
- package/dist/esm/models/BlueprintInstanceStatusEnum.js +1 -0
- package/dist/esm/models/ConsentChallenge.d.ts +6 -0
- package/dist/esm/models/ConsentChallenge.js +2 -0
- package/dist/esm/models/ConsentChallengeResponseRequest.d.ts +6 -0
- package/dist/esm/models/ConsentChallengeResponseRequest.js +2 -0
- package/dist/esm/models/Metadata.d.ts +35 -0
- package/dist/esm/models/Metadata.js +37 -0
- package/dist/esm/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
- package/dist/esm/models/PatchedBlueprintInstanceRequest.js +0 -3
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/BlueprintFile.d.ts +46 -0
- package/dist/models/BlueprintFile.js +48 -0
- package/dist/models/BlueprintFileMeta.d.ts +35 -0
- package/dist/models/BlueprintFileMeta.js +43 -0
- package/dist/models/BlueprintInstance.d.ts +28 -2
- package/dist/models/BlueprintInstance.js +5 -2
- package/dist/models/BlueprintInstanceRequest.d.ts +1 -8
- package/dist/models/BlueprintInstanceRequest.js +1 -4
- package/dist/models/BlueprintInstanceStatusEnum.d.ts +1 -0
- package/dist/models/BlueprintInstanceStatusEnum.js +1 -0
- package/dist/models/ConsentChallenge.d.ts +6 -0
- package/dist/models/ConsentChallenge.js +2 -0
- package/dist/models/ConsentChallengeResponseRequest.d.ts +6 -0
- package/dist/models/ConsentChallengeResponseRequest.js +2 -0
- package/dist/models/Metadata.d.ts +35 -0
- package/dist/models/Metadata.js +43 -0
- package/dist/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
- package/dist/models/PatchedBlueprintInstanceRequest.js +0 -3
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ManagedApi.ts +85 -3
- package/src/models/BlueprintFile.ts +87 -0
- package/src/models/BlueprintFileMeta.ts +71 -0
- package/src/models/BlueprintInstance.ts +31 -4
- package/src/models/BlueprintInstanceRequest.ts +2 -17
- package/src/models/BlueprintInstanceStatusEnum.ts +1 -0
- package/src/models/ConsentChallenge.ts +8 -0
- package/src/models/ConsentChallengeResponseRequest.ts +8 -0
- package/src/models/Metadata.ts +64 -0
- package/src/models/PatchedBlueprintInstanceRequest.ts +0 -15
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -65,6 +65,8 @@ src/models/AutoSubmitChallengeResponseRequest.ts
|
|
|
65
65
|
src/models/AutosubmitChallenge.ts
|
|
66
66
|
src/models/BackendsEnum.ts
|
|
67
67
|
src/models/BindingTypeEnum.ts
|
|
68
|
+
src/models/BlueprintFile.ts
|
|
69
|
+
src/models/BlueprintFileMeta.ts
|
|
68
70
|
src/models/BlueprintInstance.ts
|
|
69
71
|
src/models/BlueprintInstanceRequest.ts
|
|
70
72
|
src/models/BlueprintInstanceStatusEnum.ts
|
|
@@ -171,6 +173,7 @@ src/models/Link.ts
|
|
|
171
173
|
src/models/LoginChallengeTypes.ts
|
|
172
174
|
src/models/LoginMetrics.ts
|
|
173
175
|
src/models/LoginSource.ts
|
|
176
|
+
src/models/Metadata.ts
|
|
174
177
|
src/models/NameIdPolicyEnum.ts
|
|
175
178
|
src/models/NotConfiguredActionEnum.ts
|
|
176
179
|
src/models/Notification.ts
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { BlueprintInstance, BlueprintInstanceRequest, PaginatedBlueprintInstanceList, PatchedBlueprintInstanceRequest } from '../models';
|
|
13
|
+
import { BlueprintFile, BlueprintInstance, BlueprintInstanceRequest, PaginatedBlueprintInstanceList, PatchedBlueprintInstanceRequest, UsedBy } from '../models';
|
|
14
|
+
export interface ManagedBlueprintsApplyCreateRequest {
|
|
15
|
+
instanceUuid: string;
|
|
16
|
+
}
|
|
14
17
|
export interface ManagedBlueprintsCreateRequest {
|
|
15
18
|
blueprintInstanceRequest: BlueprintInstanceRequest;
|
|
16
19
|
}
|
|
@@ -36,18 +39,29 @@ export interface ManagedBlueprintsUpdateRequest {
|
|
|
36
39
|
instanceUuid: string;
|
|
37
40
|
blueprintInstanceRequest: BlueprintInstanceRequest;
|
|
38
41
|
}
|
|
42
|
+
export interface ManagedBlueprintsUsedByListRequest {
|
|
43
|
+
instanceUuid: string;
|
|
44
|
+
}
|
|
39
45
|
/**
|
|
40
46
|
*
|
|
41
47
|
*/
|
|
42
48
|
export declare class ManagedApi extends runtime.BaseAPI {
|
|
49
|
+
/**
|
|
50
|
+
* Apply a blueprint
|
|
51
|
+
*/
|
|
52
|
+
managedBlueprintsApplyCreateRaw(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<BlueprintInstance>>;
|
|
53
|
+
/**
|
|
54
|
+
* Apply a blueprint
|
|
55
|
+
*/
|
|
56
|
+
managedBlueprintsApplyCreate(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<BlueprintInstance>;
|
|
43
57
|
/**
|
|
44
58
|
* Get blueprints
|
|
45
59
|
*/
|
|
46
|
-
managedBlueprintsAvailableListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<
|
|
60
|
+
managedBlueprintsAvailableListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<BlueprintFile>>>;
|
|
47
61
|
/**
|
|
48
62
|
* Get blueprints
|
|
49
63
|
*/
|
|
50
|
-
managedBlueprintsAvailableList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<
|
|
64
|
+
managedBlueprintsAvailableList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<BlueprintFile>>;
|
|
51
65
|
/**
|
|
52
66
|
* Blueprint instances
|
|
53
67
|
*/
|
|
@@ -96,4 +110,12 @@ export declare class ManagedApi extends runtime.BaseAPI {
|
|
|
96
110
|
* Blueprint instances
|
|
97
111
|
*/
|
|
98
112
|
managedBlueprintsUpdate(requestParameters: ManagedBlueprintsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<BlueprintInstance>;
|
|
113
|
+
/**
|
|
114
|
+
* Get a list of all objects that use this object
|
|
115
|
+
*/
|
|
116
|
+
managedBlueprintsUsedByListRaw(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
117
|
+
/**
|
|
118
|
+
* Get a list of all objects that use this object
|
|
119
|
+
*/
|
|
120
|
+
managedBlueprintsUsedByList(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
|
|
99
121
|
}
|
package/dist/apis/ManagedApi.js
CHANGED
|
@@ -29,6 +29,37 @@ const models_1 = require("../models");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class ManagedApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Apply a blueprint
|
|
34
|
+
*/
|
|
35
|
+
managedBlueprintsApplyCreateRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters.instanceUuid === null || requestParameters.instanceUuid === undefined) {
|
|
38
|
+
throw new runtime.RequiredError('instanceUuid', 'Required parameter requestParameters.instanceUuid was null or undefined when calling managedBlueprintsApplyCreate.');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
43
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
44
|
+
}
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: `/managed/blueprints/{instance_uuid}/apply/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlueprintInstanceFromJSON)(jsonValue));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Apply a blueprint
|
|
56
|
+
*/
|
|
57
|
+
managedBlueprintsApplyCreate(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const response = yield this.managedBlueprintsApplyCreateRaw(requestParameters, initOverrides);
|
|
60
|
+
return yield response.value();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
32
63
|
/**
|
|
33
64
|
* Get blueprints
|
|
34
65
|
*/
|
|
@@ -45,7 +76,7 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
45
76
|
headers: headerParameters,
|
|
46
77
|
query: queryParameters,
|
|
47
78
|
}, initOverrides);
|
|
48
|
-
return new runtime.JSONApiResponse(response);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.BlueprintFileFromJSON));
|
|
49
80
|
});
|
|
50
81
|
}
|
|
51
82
|
/**
|
|
@@ -266,5 +297,36 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
266
297
|
return yield response.value();
|
|
267
298
|
});
|
|
268
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Get a list of all objects that use this object
|
|
302
|
+
*/
|
|
303
|
+
managedBlueprintsUsedByListRaw(requestParameters, initOverrides) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
if (requestParameters.instanceUuid === null || requestParameters.instanceUuid === undefined) {
|
|
306
|
+
throw new runtime.RequiredError('instanceUuid', 'Required parameter requestParameters.instanceUuid was null or undefined when calling managedBlueprintsUsedByList.');
|
|
307
|
+
}
|
|
308
|
+
const queryParameters = {};
|
|
309
|
+
const headerParameters = {};
|
|
310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
311
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
312
|
+
}
|
|
313
|
+
const response = yield this.request({
|
|
314
|
+
path: `/managed/blueprints/{instance_uuid}/used_by/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
315
|
+
method: 'GET',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
}, initOverrides);
|
|
319
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Get a list of all objects that use this object
|
|
324
|
+
*/
|
|
325
|
+
managedBlueprintsUsedByList(requestParameters, initOverrides) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
const response = yield this.managedBlueprintsUsedByListRaw(requestParameters, initOverrides);
|
|
328
|
+
return yield response.value();
|
|
329
|
+
});
|
|
330
|
+
}
|
|
269
331
|
}
|
|
270
332
|
exports.ManagedApi = ManagedApi;
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { BlueprintInstance, BlueprintInstanceRequest, PaginatedBlueprintInstanceList, PatchedBlueprintInstanceRequest } from '../models';
|
|
13
|
+
import { BlueprintFile, BlueprintInstance, BlueprintInstanceRequest, PaginatedBlueprintInstanceList, PatchedBlueprintInstanceRequest, UsedBy } from '../models';
|
|
14
|
+
export interface ManagedBlueprintsApplyCreateRequest {
|
|
15
|
+
instanceUuid: string;
|
|
16
|
+
}
|
|
14
17
|
export interface ManagedBlueprintsCreateRequest {
|
|
15
18
|
blueprintInstanceRequest: BlueprintInstanceRequest;
|
|
16
19
|
}
|
|
@@ -36,18 +39,29 @@ export interface ManagedBlueprintsUpdateRequest {
|
|
|
36
39
|
instanceUuid: string;
|
|
37
40
|
blueprintInstanceRequest: BlueprintInstanceRequest;
|
|
38
41
|
}
|
|
42
|
+
export interface ManagedBlueprintsUsedByListRequest {
|
|
43
|
+
instanceUuid: string;
|
|
44
|
+
}
|
|
39
45
|
/**
|
|
40
46
|
*
|
|
41
47
|
*/
|
|
42
48
|
export declare class ManagedApi extends runtime.BaseAPI {
|
|
49
|
+
/**
|
|
50
|
+
* Apply a blueprint
|
|
51
|
+
*/
|
|
52
|
+
managedBlueprintsApplyCreateRaw(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<BlueprintInstance>>;
|
|
53
|
+
/**
|
|
54
|
+
* Apply a blueprint
|
|
55
|
+
*/
|
|
56
|
+
managedBlueprintsApplyCreate(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<BlueprintInstance>;
|
|
43
57
|
/**
|
|
44
58
|
* Get blueprints
|
|
45
59
|
*/
|
|
46
|
-
managedBlueprintsAvailableListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<
|
|
60
|
+
managedBlueprintsAvailableListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<BlueprintFile>>>;
|
|
47
61
|
/**
|
|
48
62
|
* Get blueprints
|
|
49
63
|
*/
|
|
50
|
-
managedBlueprintsAvailableList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<
|
|
64
|
+
managedBlueprintsAvailableList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<BlueprintFile>>;
|
|
51
65
|
/**
|
|
52
66
|
* Blueprint instances
|
|
53
67
|
*/
|
|
@@ -96,4 +110,12 @@ export declare class ManagedApi extends runtime.BaseAPI {
|
|
|
96
110
|
* Blueprint instances
|
|
97
111
|
*/
|
|
98
112
|
managedBlueprintsUpdate(requestParameters: ManagedBlueprintsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<BlueprintInstance>;
|
|
113
|
+
/**
|
|
114
|
+
* Get a list of all objects that use this object
|
|
115
|
+
*/
|
|
116
|
+
managedBlueprintsUsedByListRaw(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
117
|
+
/**
|
|
118
|
+
* Get a list of all objects that use this object
|
|
119
|
+
*/
|
|
120
|
+
managedBlueprintsUsedByList(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
|
|
99
121
|
}
|
|
@@ -21,11 +21,42 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { BlueprintInstanceFromJSON, BlueprintInstanceRequestToJSON, PaginatedBlueprintInstanceListFromJSON, PatchedBlueprintInstanceRequestToJSON, } from '../models';
|
|
24
|
+
import { BlueprintFileFromJSON, BlueprintInstanceFromJSON, BlueprintInstanceRequestToJSON, PaginatedBlueprintInstanceListFromJSON, PatchedBlueprintInstanceRequestToJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class ManagedApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Apply a blueprint
|
|
31
|
+
*/
|
|
32
|
+
managedBlueprintsApplyCreateRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.instanceUuid === null || requestParameters.instanceUuid === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('instanceUuid', 'Required parameter requestParameters.instanceUuid was null or undefined when calling managedBlueprintsApplyCreate.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
40
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
41
|
+
}
|
|
42
|
+
const response = yield this.request({
|
|
43
|
+
path: `/managed/blueprints/{instance_uuid}/apply/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
44
|
+
method: 'POST',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
}, initOverrides);
|
|
48
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Apply a blueprint
|
|
53
|
+
*/
|
|
54
|
+
managedBlueprintsApplyCreate(requestParameters, initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const response = yield this.managedBlueprintsApplyCreateRaw(requestParameters, initOverrides);
|
|
57
|
+
return yield response.value();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
29
60
|
/**
|
|
30
61
|
* Get blueprints
|
|
31
62
|
*/
|
|
@@ -42,7 +73,7 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
42
73
|
headers: headerParameters,
|
|
43
74
|
query: queryParameters,
|
|
44
75
|
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response);
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BlueprintFileFromJSON));
|
|
46
77
|
});
|
|
47
78
|
}
|
|
48
79
|
/**
|
|
@@ -263,4 +294,35 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
263
294
|
return yield response.value();
|
|
264
295
|
});
|
|
265
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Get a list of all objects that use this object
|
|
299
|
+
*/
|
|
300
|
+
managedBlueprintsUsedByListRaw(requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
if (requestParameters.instanceUuid === null || requestParameters.instanceUuid === undefined) {
|
|
303
|
+
throw new runtime.RequiredError('instanceUuid', 'Required parameter requestParameters.instanceUuid was null or undefined when calling managedBlueprintsUsedByList.');
|
|
304
|
+
}
|
|
305
|
+
const queryParameters = {};
|
|
306
|
+
const headerParameters = {};
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
309
|
+
}
|
|
310
|
+
const response = yield this.request({
|
|
311
|
+
path: `/managed/blueprints/{instance_uuid}/used_by/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
312
|
+
method: 'GET',
|
|
313
|
+
headers: headerParameters,
|
|
314
|
+
query: queryParameters,
|
|
315
|
+
}, initOverrides);
|
|
316
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Get a list of all objects that use this object
|
|
321
|
+
*/
|
|
322
|
+
managedBlueprintsUsedByList(requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
const response = yield this.managedBlueprintsUsedByListRaw(requestParameters, initOverrides);
|
|
325
|
+
return yield response.value();
|
|
326
|
+
});
|
|
327
|
+
}
|
|
266
328
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.7.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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 { BlueprintFileMeta } from './BlueprintFileMeta';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BlueprintFile
|
|
17
|
+
*/
|
|
18
|
+
export interface BlueprintFile {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BlueprintFile
|
|
23
|
+
*/
|
|
24
|
+
path: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof BlueprintFile
|
|
29
|
+
*/
|
|
30
|
+
lastM: Date;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BlueprintFile
|
|
35
|
+
*/
|
|
36
|
+
hash: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {BlueprintFileMeta}
|
|
40
|
+
* @memberof BlueprintFile
|
|
41
|
+
*/
|
|
42
|
+
meta: BlueprintFileMeta;
|
|
43
|
+
}
|
|
44
|
+
export declare function BlueprintFileFromJSON(json: any): BlueprintFile;
|
|
45
|
+
export declare function BlueprintFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintFile;
|
|
46
|
+
export declare function BlueprintFileToJSON(value?: BlueprintFile | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.7.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { BlueprintFileMetaFromJSON, BlueprintFileMetaToJSON, } from './BlueprintFileMeta';
|
|
15
|
+
export function BlueprintFileFromJSON(json) {
|
|
16
|
+
return BlueprintFileFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function BlueprintFileFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'path': json['path'],
|
|
24
|
+
'lastM': (new Date(json['last_m'])),
|
|
25
|
+
'hash': json['hash'],
|
|
26
|
+
'meta': BlueprintFileMetaFromJSON(json['meta']),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export function BlueprintFileToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'path': value.path,
|
|
38
|
+
'last_m': (value.lastM.toISOString()),
|
|
39
|
+
'hash': value.hash,
|
|
40
|
+
'meta': BlueprintFileMetaToJSON(value.meta),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.7.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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 BlueprintFileMeta
|
|
16
|
+
*/
|
|
17
|
+
export interface BlueprintFileMeta {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BlueprintFileMeta
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof BlueprintFileMeta
|
|
28
|
+
*/
|
|
29
|
+
labels: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare function BlueprintFileMetaFromJSON(json: any): BlueprintFileMeta;
|
|
34
|
+
export declare function BlueprintFileMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintFileMeta;
|
|
35
|
+
export declare function BlueprintFileMetaToJSON(value?: BlueprintFileMeta | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.7.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
export function BlueprintFileMetaFromJSON(json) {
|
|
15
|
+
return BlueprintFileMetaFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function BlueprintFileMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'name': json['name'],
|
|
23
|
+
'labels': json['labels'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function BlueprintFileMetaToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': value.name,
|
|
35
|
+
'labels': value.labels,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -16,6 +16,12 @@ import { BlueprintInstanceStatusEnum } from './BlueprintInstanceStatusEnum';
|
|
|
16
16
|
* @interface BlueprintInstance
|
|
17
17
|
*/
|
|
18
18
|
export interface BlueprintInstance {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BlueprintInstance
|
|
23
|
+
*/
|
|
24
|
+
readonly pk: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -33,7 +39,7 @@ export interface BlueprintInstance {
|
|
|
33
39
|
* @type {{ [key: string]: any; }}
|
|
34
40
|
* @memberof BlueprintInstance
|
|
35
41
|
*/
|
|
36
|
-
context
|
|
42
|
+
context?: {
|
|
37
43
|
[key: string]: any;
|
|
38
44
|
};
|
|
39
45
|
/**
|
|
@@ -42,18 +48,38 @@ export interface BlueprintInstance {
|
|
|
42
48
|
* @memberof BlueprintInstance
|
|
43
49
|
*/
|
|
44
50
|
readonly lastApplied: Date;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof BlueprintInstance
|
|
55
|
+
*/
|
|
56
|
+
readonly lastAppliedHash: string;
|
|
45
57
|
/**
|
|
46
58
|
*
|
|
47
59
|
* @type {BlueprintInstanceStatusEnum}
|
|
48
60
|
* @memberof BlueprintInstance
|
|
49
61
|
*/
|
|
50
|
-
status: BlueprintInstanceStatusEnum;
|
|
62
|
+
readonly status: BlueprintInstanceStatusEnum | null;
|
|
51
63
|
/**
|
|
52
64
|
*
|
|
53
65
|
* @type {boolean}
|
|
54
66
|
* @memberof BlueprintInstance
|
|
55
67
|
*/
|
|
56
68
|
enabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof BlueprintInstance
|
|
73
|
+
*/
|
|
74
|
+
readonly managedModels: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {{ [key: string]: any; }}
|
|
78
|
+
* @memberof BlueprintInstance
|
|
79
|
+
*/
|
|
80
|
+
readonly metadata: {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
57
83
|
}
|
|
58
84
|
export declare function BlueprintInstanceFromJSON(json: any): BlueprintInstance;
|
|
59
85
|
export declare function BlueprintInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstance;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { BlueprintInstanceStatusEnumFromJSON,
|
|
15
|
+
import { BlueprintInstanceStatusEnumFromJSON, } from './BlueprintInstanceStatusEnum';
|
|
16
16
|
export function BlueprintInstanceFromJSON(json) {
|
|
17
17
|
return BlueprintInstanceFromJSONTyped(json, false);
|
|
18
18
|
}
|
|
@@ -21,12 +21,16 @@ export function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
return json;
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
|
+
'pk': json['pk'],
|
|
24
25
|
'name': json['name'],
|
|
25
26
|
'path': json['path'],
|
|
26
|
-
'context': json['context'],
|
|
27
|
+
'context': !exists(json, 'context') ? undefined : json['context'],
|
|
27
28
|
'lastApplied': (new Date(json['last_applied'])),
|
|
29
|
+
'lastAppliedHash': json['last_applied_hash'],
|
|
28
30
|
'status': BlueprintInstanceStatusEnumFromJSON(json['status']),
|
|
29
31
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
32
|
+
'managedModels': json['managed_models'],
|
|
33
|
+
'metadata': json['metadata'],
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
36
|
export function BlueprintInstanceToJSON(value) {
|
|
@@ -40,7 +44,6 @@ export function BlueprintInstanceToJSON(value) {
|
|
|
40
44
|
'name': value.name,
|
|
41
45
|
'path': value.path,
|
|
42
46
|
'context': value.context,
|
|
43
|
-
'status': BlueprintInstanceStatusEnumToJSON(value.status),
|
|
44
47
|
'enabled': value.enabled,
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BlueprintInstanceStatusEnum } from './BlueprintInstanceStatusEnum';
|
|
13
12
|
/**
|
|
14
13
|
* Info about a single blueprint instance file
|
|
15
14
|
* @export
|
|
@@ -33,15 +32,9 @@ export interface BlueprintInstanceRequest {
|
|
|
33
32
|
* @type {{ [key: string]: any; }}
|
|
34
33
|
* @memberof BlueprintInstanceRequest
|
|
35
34
|
*/
|
|
36
|
-
context
|
|
35
|
+
context?: {
|
|
37
36
|
[key: string]: any;
|
|
38
37
|
};
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {BlueprintInstanceStatusEnum}
|
|
42
|
-
* @memberof BlueprintInstanceRequest
|
|
43
|
-
*/
|
|
44
|
-
status: BlueprintInstanceStatusEnum;
|
|
45
38
|
/**
|
|
46
39
|
*
|
|
47
40
|
* @type {boolean}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { BlueprintInstanceStatusEnumFromJSON, BlueprintInstanceStatusEnumToJSON, } from './BlueprintInstanceStatusEnum';
|
|
16
15
|
export function BlueprintInstanceRequestFromJSON(json) {
|
|
17
16
|
return BlueprintInstanceRequestFromJSONTyped(json, false);
|
|
18
17
|
}
|
|
@@ -23,8 +22,7 @@ export function BlueprintInstanceRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
23
22
|
return {
|
|
24
23
|
'name': json['name'],
|
|
25
24
|
'path': json['path'],
|
|
26
|
-
'context': json['context'],
|
|
27
|
-
'status': BlueprintInstanceStatusEnumFromJSON(json['status']),
|
|
25
|
+
'context': !exists(json, 'context') ? undefined : json['context'],
|
|
28
26
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -39,7 +37,6 @@ export function BlueprintInstanceRequestToJSON(value) {
|
|
|
39
37
|
'name': value.name,
|
|
40
38
|
'path': value.path,
|
|
41
39
|
'context': value.context,
|
|
42
|
-
'status': BlueprintInstanceStatusEnumToJSON(value.status),
|
|
43
40
|
'enabled': value.enabled,
|
|
44
41
|
};
|
|
45
42
|
}
|
|
@@ -17,6 +17,7 @@ export declare const BlueprintInstanceStatusEnum: {
|
|
|
17
17
|
readonly Successful: "successful";
|
|
18
18
|
readonly Warning: "warning";
|
|
19
19
|
readonly Error: "error";
|
|
20
|
+
readonly Orphaned: "orphaned";
|
|
20
21
|
readonly Unknown: "unknown";
|
|
21
22
|
};
|
|
22
23
|
export declare type BlueprintInstanceStatusEnum = typeof BlueprintInstanceStatusEnum[keyof typeof BlueprintInstanceStatusEnum];
|
|
@@ -75,6 +75,12 @@ export interface ConsentChallenge {
|
|
|
75
75
|
* @memberof ConsentChallenge
|
|
76
76
|
*/
|
|
77
77
|
additionalPermissions: Array<Permission>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ConsentChallenge
|
|
82
|
+
*/
|
|
83
|
+
token: string;
|
|
78
84
|
}
|
|
79
85
|
export declare function ConsentChallengeFromJSON(json: any): ConsentChallenge;
|
|
80
86
|
export declare function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallenge;
|
|
@@ -32,6 +32,7 @@ export function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
|
|
33
33
|
'permissions': (json['permissions'].map(PermissionFromJSON)),
|
|
34
34
|
'additionalPermissions': (json['additional_permissions'].map(PermissionFromJSON)),
|
|
35
|
+
'token': json['token'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function ConsentChallengeToJSON(value) {
|
|
@@ -51,5 +52,6 @@ export function ConsentChallengeToJSON(value) {
|
|
|
51
52
|
'header_text': value.headerText,
|
|
52
53
|
'permissions': (value.permissions.map(PermissionToJSON)),
|
|
53
54
|
'additional_permissions': (value.additionalPermissions.map(PermissionToJSON)),
|
|
55
|
+
'token': value.token,
|
|
54
56
|
};
|
|
55
57
|
}
|