@goauthentik/api 2022.7.3-1659387977 → 2022.7.3-1659983945

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 (72) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/ManagedApi.d.ts +25 -3
  3. package/dist/apis/ManagedApi.js +63 -1
  4. package/dist/apis/StagesApi.d.ts +3 -3
  5. package/dist/apis/StagesApi.js +3 -2
  6. package/dist/esm/apis/ManagedApi.d.ts +25 -3
  7. package/dist/esm/apis/ManagedApi.js +64 -2
  8. package/dist/esm/apis/StagesApi.d.ts +3 -3
  9. package/dist/esm/apis/StagesApi.js +4 -3
  10. package/dist/esm/models/BlueprintFile.d.ts +46 -0
  11. package/dist/esm/models/BlueprintFile.js +42 -0
  12. package/dist/esm/models/BlueprintFileMeta.d.ts +35 -0
  13. package/dist/esm/models/BlueprintFileMeta.js +37 -0
  14. package/dist/esm/models/BlueprintInstance.d.ts +10 -2
  15. package/dist/esm/models/BlueprintInstance.js +3 -3
  16. package/dist/esm/models/BlueprintInstanceRequest.d.ts +1 -8
  17. package/dist/esm/models/BlueprintInstanceRequest.js +1 -4
  18. package/dist/esm/models/DuoDeviceEnrollmentStatus.d.ts +28 -0
  19. package/dist/esm/models/DuoDeviceEnrollmentStatus.js +36 -0
  20. package/dist/esm/models/DuoResponseEnum.d.ts +24 -0
  21. package/dist/esm/models/DuoResponseEnum.js +31 -0
  22. package/dist/esm/models/Group.d.ts +2 -2
  23. package/dist/esm/models/Group.js +2 -2
  24. package/dist/esm/models/GroupRequest.d.ts +2 -2
  25. package/dist/esm/models/GroupRequest.js +2 -2
  26. package/dist/esm/models/Metadata.d.ts +35 -0
  27. package/dist/esm/models/Metadata.js +37 -0
  28. package/dist/esm/models/NotificationRuleGroupObj.d.ts +2 -2
  29. package/dist/esm/models/NotificationRuleGroupObj.js +2 -2
  30. package/dist/esm/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
  31. package/dist/esm/models/PatchedBlueprintInstanceRequest.js +0 -3
  32. package/dist/esm/models/index.d.ts +5 -0
  33. package/dist/esm/models/index.js +5 -0
  34. package/dist/models/BlueprintFile.d.ts +46 -0
  35. package/dist/models/BlueprintFile.js +48 -0
  36. package/dist/models/BlueprintFileMeta.d.ts +35 -0
  37. package/dist/models/BlueprintFileMeta.js +43 -0
  38. package/dist/models/BlueprintInstance.d.ts +10 -2
  39. package/dist/models/BlueprintInstance.js +2 -2
  40. package/dist/models/BlueprintInstanceRequest.d.ts +1 -8
  41. package/dist/models/BlueprintInstanceRequest.js +1 -4
  42. package/dist/models/DuoDeviceEnrollmentStatus.d.ts +28 -0
  43. package/dist/models/DuoDeviceEnrollmentStatus.js +42 -0
  44. package/dist/models/DuoResponseEnum.d.ts +24 -0
  45. package/dist/models/DuoResponseEnum.js +37 -0
  46. package/dist/models/Group.d.ts +2 -2
  47. package/dist/models/Group.js +2 -2
  48. package/dist/models/GroupRequest.d.ts +2 -2
  49. package/dist/models/GroupRequest.js +2 -2
  50. package/dist/models/Metadata.d.ts +35 -0
  51. package/dist/models/Metadata.js +43 -0
  52. package/dist/models/NotificationRuleGroupObj.d.ts +2 -2
  53. package/dist/models/NotificationRuleGroupObj.js +2 -2
  54. package/dist/models/PatchedBlueprintInstanceRequest.d.ts +0 -7
  55. package/dist/models/PatchedBlueprintInstanceRequest.js +0 -3
  56. package/dist/models/index.d.ts +5 -0
  57. package/dist/models/index.js +5 -0
  58. package/package.json +1 -1
  59. package/src/apis/ManagedApi.ts +85 -3
  60. package/src/apis/StagesApi.ts +8 -4
  61. package/src/models/BlueprintFile.ts +87 -0
  62. package/src/models/BlueprintFileMeta.ts +71 -0
  63. package/src/models/BlueprintInstance.ts +10 -4
  64. package/src/models/BlueprintInstanceRequest.ts +2 -17
  65. package/src/models/DuoDeviceEnrollmentStatus.ts +63 -0
  66. package/src/models/DuoResponseEnum.ts +39 -0
  67. package/src/models/Group.ts +4 -4
  68. package/src/models/GroupRequest.ts +4 -4
  69. package/src/models/Metadata.ts +64 -0
  70. package/src/models/NotificationRuleGroupObj.ts +4 -4
  71. package/src/models/PatchedBlueprintInstanceRequest.ts +0 -15
  72. package/src/models/index.ts +5 -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
@@ -108,7 +110,9 @@ src/models/DummyPolicyRequest.ts
108
110
  src/models/DummyStage.ts
109
111
  src/models/DummyStageRequest.ts
110
112
  src/models/DuoDevice.ts
113
+ src/models/DuoDeviceEnrollmentStatus.ts
111
114
  src/models/DuoDeviceRequest.ts
115
+ src/models/DuoResponseEnum.ts
112
116
  src/models/EmailChallenge.ts
113
117
  src/models/EmailChallengeResponseRequest.ts
114
118
  src/models/EmailStage.ts
@@ -171,6 +175,7 @@ src/models/Link.ts
171
175
  src/models/LoginChallengeTypes.ts
172
176
  src/models/LoginMetrics.ts
173
177
  src/models/LoginSource.ts
178
+ src/models/Metadata.ts
174
179
  src/models/NameIdPolicyEnum.ts
175
180
  src/models/NotConfiguredActionEnum.ts
176
181
  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,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -745,11 +745,11 @@ export declare class StagesApi extends runtime.BaseAPI {
745
745
  /**
746
746
  * Check enrollment status of user details in current session
747
747
  */
748
- stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
748
+ stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DuoDeviceEnrollmentStatus>>;
749
749
  /**
750
750
  * Check enrollment status of user details in current session
751
751
  */
752
- stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
752
+ stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DuoDeviceEnrollmentStatus>;
753
753
  /**
754
754
  * Import duo devices into authentik
755
755
  */
@@ -302,7 +302,7 @@ class StagesApi extends runtime.BaseAPI {
302
302
  headers: headerParameters,
303
303
  query: queryParameters,
304
304
  }, initOverrides);
305
- return new runtime.VoidApiResponse(response);
305
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DuoDeviceEnrollmentStatusFromJSON)(jsonValue));
306
306
  });
307
307
  }
308
308
  /**
@@ -310,7 +310,8 @@ class StagesApi extends runtime.BaseAPI {
310
310
  */
311
311
  stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters, initOverrides) {
312
312
  return __awaiter(this, void 0, void 0, function* () {
313
- yield this.stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters, initOverrides);
313
+ const response = yield this.stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters, initOverrides);
314
+ return yield response.value();
314
315
  });
315
316
  }
316
317
  /**
@@ -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
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -745,11 +745,11 @@ export declare class StagesApi extends runtime.BaseAPI {
745
745
  /**
746
746
  * Check enrollment status of user details in current session
747
747
  */
748
- stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
748
+ stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DuoDeviceEnrollmentStatus>>;
749
749
  /**
750
750
  * Check enrollment status of user details in current session
751
751
  */
752
- stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
752
+ stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters: StagesAuthenticatorDuoEnrollmentStatusCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DuoDeviceEnrollmentStatus>;
753
753
  /**
754
754
  * Import duo devices into authentik
755
755
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
24
+ import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -299,7 +299,7 @@ export class StagesApi extends runtime.BaseAPI {
299
299
  headers: headerParameters,
300
300
  query: queryParameters,
301
301
  }, initOverrides);
302
- return new runtime.VoidApiResponse(response);
302
+ return new runtime.JSONApiResponse(response, (jsonValue) => DuoDeviceEnrollmentStatusFromJSON(jsonValue));
303
303
  });
304
304
  }
305
305
  /**
@@ -307,7 +307,8 @@ export class StagesApi extends runtime.BaseAPI {
307
307
  */
308
308
  stagesAuthenticatorDuoEnrollmentStatusCreate(requestParameters, initOverrides) {
309
309
  return __awaiter(this, void 0, void 0, function* () {
310
- yield this.stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters, initOverrides);
310
+ const response = yield this.stagesAuthenticatorDuoEnrollmentStatusCreateRaw(requestParameters, initOverrides);
311
+ return yield response.value();
311
312
  });
312
313
  }
313
314
  /**
@@ -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;