@goauthentik/api 2022.7.3-1659387977 → 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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/dist/apis/ManagedApi.d.ts +25 -3
  3. package/dist/apis/ManagedApi.js +63 -1
  4. package/dist/esm/apis/ManagedApi.d.ts +25 -3
  5. package/dist/esm/apis/ManagedApi.js +64 -2
  6. package/dist/esm/models/BlueprintFile.d.ts +46 -0
  7. package/dist/esm/models/BlueprintFile.js +42 -0
  8. package/dist/esm/models/BlueprintFileMeta.d.ts +35 -0
  9. package/dist/esm/models/BlueprintFileMeta.js +37 -0
  10. package/dist/esm/models/BlueprintInstance.d.ts +10 -2
  11. package/dist/esm/models/BlueprintInstance.js +3 -3
  12. package/dist/esm/models/BlueprintInstanceRequest.d.ts +1 -8
  13. package/dist/esm/models/BlueprintInstanceRequest.js +1 -4
  14. package/dist/esm/models/Metadata.d.ts +35 -0
  15. package/dist/esm/models/Metadata.js +37 -0
  16. package/dist/esm/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
  17. package/dist/esm/models/PatchedBlueprintInstanceRequest.js +0 -3
  18. package/dist/esm/models/index.d.ts +3 -0
  19. package/dist/esm/models/index.js +3 -0
  20. package/dist/models/BlueprintFile.d.ts +46 -0
  21. package/dist/models/BlueprintFile.js +48 -0
  22. package/dist/models/BlueprintFileMeta.d.ts +35 -0
  23. package/dist/models/BlueprintFileMeta.js +43 -0
  24. package/dist/models/BlueprintInstance.d.ts +10 -2
  25. package/dist/models/BlueprintInstance.js +2 -2
  26. package/dist/models/BlueprintInstanceRequest.d.ts +1 -8
  27. package/dist/models/BlueprintInstanceRequest.js +1 -4
  28. package/dist/models/Metadata.d.ts +35 -0
  29. package/dist/models/Metadata.js +43 -0
  30. package/dist/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
  31. package/dist/models/PatchedBlueprintInstanceRequest.js +0 -3
  32. package/dist/models/index.d.ts +3 -0
  33. package/dist/models/index.js +3 -0
  34. package/package.json +1 -1
  35. package/src/apis/ManagedApi.ts +85 -3
  36. package/src/models/BlueprintFile.ts +87 -0
  37. package/src/models/BlueprintFileMeta.ts +71 -0
  38. package/src/models/BlueprintInstance.ts +10 -4
  39. package/src/models/BlueprintInstanceRequest.ts +2 -17
  40. package/src/models/Metadata.ts +64 -0
  41. package/src/models/PatchedBlueprintInstanceRequest.ts +0 -15
  42. package/src/models/index.ts +3 -0
@@ -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<string>>>;
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<string>>;
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
  }
@@ -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<string>>>;
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<string>>;
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
+ }
@@ -39,7 +39,7 @@ export interface BlueprintInstance {
39
39
  * @type {{ [key: string]: any; }}
40
40
  * @memberof BlueprintInstance
41
41
  */
42
- context: {
42
+ context?: {
43
43
  [key: string]: any;
44
44
  };
45
45
  /**
@@ -59,7 +59,7 @@ export interface BlueprintInstance {
59
59
  * @type {BlueprintInstanceStatusEnum}
60
60
  * @memberof BlueprintInstance
61
61
  */
62
- status: BlueprintInstanceStatusEnum;
62
+ readonly status: BlueprintInstanceStatusEnum | null;
63
63
  /**
64
64
  *
65
65
  * @type {boolean}
@@ -72,6 +72,14 @@ export interface BlueprintInstance {
72
72
  * @memberof BlueprintInstance
73
73
  */
74
74
  readonly managedModels: Array<string>;
75
+ /**
76
+ *
77
+ * @type {{ [key: string]: any; }}
78
+ * @memberof BlueprintInstance
79
+ */
80
+ readonly metadata: {
81
+ [key: string]: any;
82
+ };
75
83
  }
76
84
  export declare function BlueprintInstanceFromJSON(json: any): BlueprintInstance;
77
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, BlueprintInstanceStatusEnumToJSON, } from './BlueprintInstanceStatusEnum';
15
+ import { BlueprintInstanceStatusEnumFromJSON, } from './BlueprintInstanceStatusEnum';
16
16
  export function BlueprintInstanceFromJSON(json) {
17
17
  return BlueprintInstanceFromJSONTyped(json, false);
18
18
  }
@@ -24,12 +24,13 @@ export function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
24
24
  'pk': json['pk'],
25
25
  'name': json['name'],
26
26
  'path': json['path'],
27
- 'context': json['context'],
27
+ 'context': !exists(json, 'context') ? undefined : json['context'],
28
28
  'lastApplied': (new Date(json['last_applied'])),
29
29
  'lastAppliedHash': json['last_applied_hash'],
30
30
  'status': BlueprintInstanceStatusEnumFromJSON(json['status']),
31
31
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
32
32
  'managedModels': json['managed_models'],
33
+ 'metadata': json['metadata'],
33
34
  };
34
35
  }
35
36
  export function BlueprintInstanceToJSON(value) {
@@ -43,7 +44,6 @@ export function BlueprintInstanceToJSON(value) {
43
44
  'name': value.name,
44
45
  'path': value.path,
45
46
  'context': value.context,
46
- 'status': BlueprintInstanceStatusEnumToJSON(value.status),
47
47
  'enabled': value.enabled,
48
48
  };
49
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
  }
@@ -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
+ * Serializer for blueprint metadata
14
+ * @export
15
+ * @interface Metadata
16
+ */
17
+ export interface Metadata {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Metadata
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof Metadata
28
+ */
29
+ labels: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ export declare function MetadataFromJSON(json: any): Metadata;
34
+ export declare function MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): Metadata;
35
+ export declare function MetadataToJSON(value?: Metadata | 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 MetadataFromJSON(json) {
15
+ return MetadataFromJSONTyped(json, false);
16
+ }
17
+ export function MetadataFromJSONTyped(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 MetadataToJSON(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
+ }
@@ -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
@@ -36,12 +35,6 @@ export interface PatchedBlueprintInstanceRequest {
36
35
  context?: {
37
36
  [key: string]: any;
38
37
  };
39
- /**
40
- *
41
- * @type {BlueprintInstanceStatusEnum}
42
- * @memberof PatchedBlueprintInstanceRequest
43
- */
44
- status?: BlueprintInstanceStatusEnum;
45
38
  /**
46
39
  *
47
40
  * @type {boolean}