@goauthentik/api 2022.6.3-1656620570 → 2022.6.3-1656776296

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.
@@ -86,6 +86,7 @@ src/models/ConsentStageRequest.ts
86
86
  src/models/ContextualFlowInfo.ts
87
87
  src/models/Coordinate.ts
88
88
  src/models/CurrentTenant.ts
89
+ src/models/DeniedActionEnum.ts
89
90
  src/models/DenyStage.ts
90
91
  src/models/DenyStageRequest.ts
91
92
  src/models/Device.ts
@@ -79,6 +79,7 @@ export interface FlowsInstancesImportFlowCreateRequest {
79
79
  clear?: boolean;
80
80
  }
81
81
  export interface FlowsInstancesListRequest {
82
+ deniedAction?: FlowsInstancesListDeniedActionEnum;
82
83
  designation?: FlowsInstancesListDesignationEnum;
83
84
  flowUuid?: string;
84
85
  name?: string;
@@ -333,6 +334,15 @@ export declare const FlowsBindingsListPolicyEngineModeEnum: {
333
334
  readonly Any: "any";
334
335
  };
335
336
  export declare type FlowsBindingsListPolicyEngineModeEnum = typeof FlowsBindingsListPolicyEngineModeEnum[keyof typeof FlowsBindingsListPolicyEngineModeEnum];
337
+ /**
338
+ * @export
339
+ */
340
+ export declare const FlowsInstancesListDeniedActionEnum: {
341
+ readonly Continue: "continue";
342
+ readonly Message: "message";
343
+ readonly MessageContinue: "message_continue";
344
+ };
345
+ export declare type FlowsInstancesListDeniedActionEnum = typeof FlowsInstancesListDeniedActionEnum[keyof typeof FlowsInstancesListDeniedActionEnum];
336
346
  /**
337
347
  * @export
338
348
  */
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.FlowsInstancesListDesignationEnum = exports.FlowsBindingsListPolicyEngineModeEnum = exports.FlowsBindingsListInvalidResponseActionEnum = exports.FlowsApi = void 0;
25
+ exports.FlowsInstancesListDesignationEnum = exports.FlowsInstancesListDeniedActionEnum = exports.FlowsBindingsListPolicyEngineModeEnum = exports.FlowsBindingsListInvalidResponseActionEnum = exports.FlowsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const models_1 = require("../models");
28
28
  /**
@@ -666,6 +666,9 @@ class FlowsApi extends runtime.BaseAPI {
666
666
  flowsInstancesListRaw(requestParameters, initOverrides) {
667
667
  return __awaiter(this, void 0, void 0, function* () {
668
668
  const queryParameters = {};
669
+ if (requestParameters.deniedAction !== undefined) {
670
+ queryParameters['denied_action'] = requestParameters.deniedAction;
671
+ }
669
672
  if (requestParameters.designation !== undefined) {
670
673
  queryParameters['designation'] = requestParameters.designation;
671
674
  }
@@ -947,6 +950,14 @@ exports.FlowsBindingsListPolicyEngineModeEnum = {
947
950
  All: 'all',
948
951
  Any: 'any'
949
952
  };
953
+ /**
954
+ * @export
955
+ */
956
+ exports.FlowsInstancesListDeniedActionEnum = {
957
+ Continue: 'continue',
958
+ Message: 'message',
959
+ MessageContinue: 'message_continue'
960
+ };
950
961
  /**
951
962
  * @export
952
963
  */
@@ -79,6 +79,7 @@ export interface FlowsInstancesImportFlowCreateRequest {
79
79
  clear?: boolean;
80
80
  }
81
81
  export interface FlowsInstancesListRequest {
82
+ deniedAction?: FlowsInstancesListDeniedActionEnum;
82
83
  designation?: FlowsInstancesListDesignationEnum;
83
84
  flowUuid?: string;
84
85
  name?: string;
@@ -333,6 +334,15 @@ export declare const FlowsBindingsListPolicyEngineModeEnum: {
333
334
  readonly Any: "any";
334
335
  };
335
336
  export declare type FlowsBindingsListPolicyEngineModeEnum = typeof FlowsBindingsListPolicyEngineModeEnum[keyof typeof FlowsBindingsListPolicyEngineModeEnum];
337
+ /**
338
+ * @export
339
+ */
340
+ export declare const FlowsInstancesListDeniedActionEnum: {
341
+ readonly Continue: "continue";
342
+ readonly Message: "message";
343
+ readonly MessageContinue: "message_continue";
344
+ };
345
+ export declare type FlowsInstancesListDeniedActionEnum = typeof FlowsInstancesListDeniedActionEnum[keyof typeof FlowsInstancesListDeniedActionEnum];
336
346
  /**
337
347
  * @export
338
348
  */
@@ -663,6 +663,9 @@ export class FlowsApi extends runtime.BaseAPI {
663
663
  flowsInstancesListRaw(requestParameters, initOverrides) {
664
664
  return __awaiter(this, void 0, void 0, function* () {
665
665
  const queryParameters = {};
666
+ if (requestParameters.deniedAction !== undefined) {
667
+ queryParameters['denied_action'] = requestParameters.deniedAction;
668
+ }
666
669
  if (requestParameters.designation !== undefined) {
667
670
  queryParameters['designation'] = requestParameters.designation;
668
671
  }
@@ -943,6 +946,14 @@ export const FlowsBindingsListPolicyEngineModeEnum = {
943
946
  All: 'all',
944
947
  Any: 'any'
945
948
  };
949
+ /**
950
+ * @export
951
+ */
952
+ export const FlowsInstancesListDeniedActionEnum = {
953
+ Continue: 'continue',
954
+ Message: 'message',
955
+ MessageContinue: 'message_continue'
956
+ };
946
957
  /**
947
958
  * @export
948
959
  */
@@ -0,0 +1,24 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.6.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
+ */
16
+ export declare const DeniedActionEnum: {
17
+ readonly MessageContinue: "message_continue";
18
+ readonly Message: "message";
19
+ readonly Continue: "continue";
20
+ };
21
+ export declare type DeniedActionEnum = typeof DeniedActionEnum[keyof typeof DeniedActionEnum];
22
+ export declare function DeniedActionEnumFromJSON(json: any): DeniedActionEnum;
23
+ export declare function DeniedActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeniedActionEnum;
24
+ export declare function DeniedActionEnumToJSON(value?: DeniedActionEnum | null): any;
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.6.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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const DeniedActionEnum = {
19
+ MessageContinue: 'message_continue',
20
+ Message: 'message',
21
+ Continue: 'continue'
22
+ };
23
+ export function DeniedActionEnumFromJSON(json) {
24
+ return DeniedActionEnumFromJSONTyped(json, false);
25
+ }
26
+ export function DeniedActionEnumFromJSONTyped(json, ignoreDiscriminator) {
27
+ return json;
28
+ }
29
+ export function DeniedActionEnumToJSON(value) {
30
+ return value;
31
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -102,6 +103,12 @@ export interface Flow {
102
103
  * @memberof Flow
103
104
  */
104
105
  layout?: LayoutEnum;
106
+ /**
107
+ * Configure what should happen when a flow denies access to a user.
108
+ * @type {DeniedActionEnum}
109
+ * @memberof Flow
110
+ */
111
+ deniedAction?: DeniedActionEnum | null;
105
112
  }
106
113
  export declare function FlowFromJSON(json: any): Flow;
107
114
  export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
15
16
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
17
  import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
17
18
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
@@ -37,6 +38,7 @@ export function FlowFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
38
39
  'exportUrl': json['export_url'],
39
40
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
41
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
40
42
  };
41
43
  }
42
44
  export function FlowToJSON(value) {
@@ -54,5 +56,6 @@ export function FlowToJSON(value) {
54
56
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
55
57
  'compatibility_mode': value.compatibilityMode,
56
58
  'layout': LayoutEnumToJSON(value.layout),
59
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
57
60
  };
58
61
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -60,6 +61,12 @@ export interface FlowRequest {
60
61
  * @memberof FlowRequest
61
62
  */
62
63
  layout?: LayoutEnum;
64
+ /**
65
+ * Configure what should happen when a flow denies access to a user.
66
+ * @type {DeniedActionEnum}
67
+ * @memberof FlowRequest
68
+ */
69
+ deniedAction?: DeniedActionEnum | null;
63
70
  }
64
71
  export declare function FlowRequestFromJSON(json: any): FlowRequest;
65
72
  export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
15
16
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
17
  import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
17
18
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
@@ -30,6 +31,7 @@ export function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
30
31
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
32
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
32
33
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
34
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
33
35
  };
34
36
  }
35
37
  export function FlowRequestToJSON(value) {
@@ -47,5 +49,6 @@ export function FlowRequestToJSON(value) {
47
49
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
48
50
  'compatibility_mode': value.compatibilityMode,
49
51
  'layout': LayoutEnumToJSON(value.layout),
52
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
50
53
  };
51
54
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -60,6 +61,12 @@ export interface PatchedFlowRequest {
60
61
  * @memberof PatchedFlowRequest
61
62
  */
62
63
  layout?: LayoutEnum;
64
+ /**
65
+ * Configure what should happen when a flow denies access to a user.
66
+ * @type {DeniedActionEnum}
67
+ * @memberof PatchedFlowRequest
68
+ */
69
+ deniedAction?: DeniedActionEnum | null;
63
70
  }
64
71
  export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
65
72
  export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
15
16
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
17
  import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
17
18
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
@@ -30,6 +31,7 @@ export function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
30
31
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
32
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
32
33
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
34
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
33
35
  };
34
36
  }
35
37
  export function PatchedFlowRequestToJSON(value) {
@@ -47,5 +49,6 @@ export function PatchedFlowRequestToJSON(value) {
47
49
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
48
50
  'compatibility_mode': value.compatibilityMode,
49
51
  'layout': LayoutEnumToJSON(value.layout),
52
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
50
53
  };
51
54
  }
@@ -64,6 +64,7 @@ export * from './ConsentStageRequest';
64
64
  export * from './ContextualFlowInfo';
65
65
  export * from './Coordinate';
66
66
  export * from './CurrentTenant';
67
+ export * from './DeniedActionEnum';
67
68
  export * from './DenyStage';
68
69
  export * from './DenyStageRequest';
69
70
  export * from './Device';
@@ -66,6 +66,7 @@ export * from './ConsentStageRequest';
66
66
  export * from './ContextualFlowInfo';
67
67
  export * from './Coordinate';
68
68
  export * from './CurrentTenant';
69
+ export * from './DeniedActionEnum';
69
70
  export * from './DenyStage';
70
71
  export * from './DenyStageRequest';
71
72
  export * from './Device';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.6.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
+ */
16
+ export declare const DeniedActionEnum: {
17
+ readonly MessageContinue: "message_continue";
18
+ readonly Message: "message";
19
+ readonly Continue: "continue";
20
+ };
21
+ export declare type DeniedActionEnum = typeof DeniedActionEnum[keyof typeof DeniedActionEnum];
22
+ export declare function DeniedActionEnumFromJSON(json: any): DeniedActionEnum;
23
+ export declare function DeniedActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeniedActionEnum;
24
+ export declare function DeniedActionEnumToJSON(value?: DeniedActionEnum | null): any;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DeniedActionEnumToJSON = exports.DeniedActionEnumFromJSONTyped = exports.DeniedActionEnumFromJSON = exports.DeniedActionEnum = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.DeniedActionEnum = {
22
+ MessageContinue: 'message_continue',
23
+ Message: 'message',
24
+ Continue: 'continue'
25
+ };
26
+ function DeniedActionEnumFromJSON(json) {
27
+ return DeniedActionEnumFromJSONTyped(json, false);
28
+ }
29
+ exports.DeniedActionEnumFromJSON = DeniedActionEnumFromJSON;
30
+ function DeniedActionEnumFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ exports.DeniedActionEnumFromJSONTyped = DeniedActionEnumFromJSONTyped;
34
+ function DeniedActionEnumToJSON(value) {
35
+ return value;
36
+ }
37
+ exports.DeniedActionEnumToJSON = DeniedActionEnumToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -102,6 +103,12 @@ export interface Flow {
102
103
  * @memberof Flow
103
104
  */
104
105
  layout?: LayoutEnum;
106
+ /**
107
+ * Configure what should happen when a flow denies access to a user.
108
+ * @type {DeniedActionEnum}
109
+ * @memberof Flow
110
+ */
111
+ deniedAction?: DeniedActionEnum | null;
105
112
  }
106
113
  export declare function FlowFromJSON(json: any): Flow;
107
114
  export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FlowToJSON = exports.FlowFromJSONTyped = exports.FlowFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const DeniedActionEnum_1 = require("./DeniedActionEnum");
18
19
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
20
  const LayoutEnum_1 = require("./LayoutEnum");
20
21
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
@@ -41,6 +42,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'compatibilityMode': !(0, runtime_1.exists)(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
42
43
  'exportUrl': json['export_url'],
43
44
  'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
45
+ 'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
44
46
  };
45
47
  }
46
48
  exports.FlowFromJSONTyped = FlowFromJSONTyped;
@@ -59,6 +61,7 @@ function FlowToJSON(value) {
59
61
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
60
62
  'compatibility_mode': value.compatibilityMode,
61
63
  'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
64
+ 'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
62
65
  };
63
66
  }
64
67
  exports.FlowToJSON = FlowToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -60,6 +61,12 @@ export interface FlowRequest {
60
61
  * @memberof FlowRequest
61
62
  */
62
63
  layout?: LayoutEnum;
64
+ /**
65
+ * Configure what should happen when a flow denies access to a user.
66
+ * @type {DeniedActionEnum}
67
+ * @memberof FlowRequest
68
+ */
69
+ deniedAction?: DeniedActionEnum | null;
63
70
  }
64
71
  export declare function FlowRequestFromJSON(json: any): FlowRequest;
65
72
  export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FlowRequestToJSON = exports.FlowRequestFromJSONTyped = exports.FlowRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const DeniedActionEnum_1 = require("./DeniedActionEnum");
18
19
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
20
  const LayoutEnum_1 = require("./LayoutEnum");
20
21
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
@@ -34,6 +35,7 @@ function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
35
36
  'compatibilityMode': !(0, runtime_1.exists)(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
36
37
  'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
38
+ 'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
37
39
  };
38
40
  }
39
41
  exports.FlowRequestFromJSONTyped = FlowRequestFromJSONTyped;
@@ -52,6 +54,7 @@ function FlowRequestToJSON(value) {
52
54
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
53
55
  'compatibility_mode': value.compatibilityMode,
54
56
  'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
57
+ 'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
55
58
  };
56
59
  }
57
60
  exports.FlowRequestToJSON = FlowRequestToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { DeniedActionEnum } from './DeniedActionEnum';
12
13
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
14
  import { LayoutEnum } from './LayoutEnum';
14
15
  import { PolicyEngineMode } from './PolicyEngineMode';
@@ -60,6 +61,12 @@ export interface PatchedFlowRequest {
60
61
  * @memberof PatchedFlowRequest
61
62
  */
62
63
  layout?: LayoutEnum;
64
+ /**
65
+ * Configure what should happen when a flow denies access to a user.
66
+ * @type {DeniedActionEnum}
67
+ * @memberof PatchedFlowRequest
68
+ */
69
+ deniedAction?: DeniedActionEnum | null;
63
70
  }
64
71
  export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
65
72
  export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedFlowRequestToJSON = exports.PatchedFlowRequestFromJSONTyped = exports.PatchedFlowRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const DeniedActionEnum_1 = require("./DeniedActionEnum");
18
19
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
20
  const LayoutEnum_1 = require("./LayoutEnum");
20
21
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
@@ -34,6 +35,7 @@ function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
35
36
  'compatibilityMode': !(0, runtime_1.exists)(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
36
37
  'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
38
+ 'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
37
39
  };
38
40
  }
39
41
  exports.PatchedFlowRequestFromJSONTyped = PatchedFlowRequestFromJSONTyped;
@@ -52,6 +54,7 @@ function PatchedFlowRequestToJSON(value) {
52
54
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
53
55
  'compatibility_mode': value.compatibilityMode,
54
56
  'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
57
+ 'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
55
58
  };
56
59
  }
57
60
  exports.PatchedFlowRequestToJSON = PatchedFlowRequestToJSON;
@@ -64,6 +64,7 @@ export * from './ConsentStageRequest';
64
64
  export * from './ContextualFlowInfo';
65
65
  export * from './Coordinate';
66
66
  export * from './CurrentTenant';
67
+ export * from './DeniedActionEnum';
67
68
  export * from './DenyStage';
68
69
  export * from './DenyStageRequest';
69
70
  export * from './Device';
@@ -82,6 +82,7 @@ __exportStar(require("./ConsentStageRequest"), exports);
82
82
  __exportStar(require("./ContextualFlowInfo"), exports);
83
83
  __exportStar(require("./Coordinate"), exports);
84
84
  __exportStar(require("./CurrentTenant"), exports);
85
+ __exportStar(require("./DeniedActionEnum"), exports);
85
86
  __exportStar(require("./DenyStage"), exports);
86
87
  __exportStar(require("./DenyStageRequest"), exports);
87
88
  __exportStar(require("./Device"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.6.3-1656620570",
3
+ "version": "2022.6.3-1656776296",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -149,6 +149,7 @@ export interface FlowsInstancesImportFlowCreateRequest {
149
149
  }
150
150
 
151
151
  export interface FlowsInstancesListRequest {
152
+ deniedAction?: FlowsInstancesListDeniedActionEnum;
152
153
  designation?: FlowsInstancesListDesignationEnum;
153
154
  flowUuid?: string;
154
155
  name?: string;
@@ -907,6 +908,10 @@ export class FlowsApi extends runtime.BaseAPI {
907
908
  async flowsInstancesListRaw(requestParameters: FlowsInstancesListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PaginatedFlowList>> {
908
909
  const queryParameters: any = {};
909
910
 
911
+ if (requestParameters.deniedAction !== undefined) {
912
+ queryParameters['denied_action'] = requestParameters.deniedAction;
913
+ }
914
+
910
915
  if (requestParameters.designation !== undefined) {
911
916
  queryParameters['designation'] = requestParameters.designation;
912
917
  }
@@ -1226,6 +1231,15 @@ export const FlowsBindingsListPolicyEngineModeEnum = {
1226
1231
  Any: 'any'
1227
1232
  } as const;
1228
1233
  export type FlowsBindingsListPolicyEngineModeEnum = typeof FlowsBindingsListPolicyEngineModeEnum[keyof typeof FlowsBindingsListPolicyEngineModeEnum];
1234
+ /**
1235
+ * @export
1236
+ */
1237
+ export const FlowsInstancesListDeniedActionEnum = {
1238
+ Continue: 'continue',
1239
+ Message: 'message',
1240
+ MessageContinue: 'message_continue'
1241
+ } as const;
1242
+ export type FlowsInstancesListDeniedActionEnum = typeof FlowsInstancesListDeniedActionEnum[keyof typeof FlowsInstancesListDeniedActionEnum];
1229
1243
  /**
1230
1244
  * @export
1231
1245
  */
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.6.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
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const DeniedActionEnum = {
21
+ MessageContinue: 'message_continue',
22
+ Message: 'message',
23
+ Continue: 'continue'
24
+ } as const;
25
+ export type DeniedActionEnum = typeof DeniedActionEnum[keyof typeof DeniedActionEnum];
26
+
27
+
28
+ export function DeniedActionEnumFromJSON(json: any): DeniedActionEnum {
29
+ return DeniedActionEnumFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function DeniedActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeniedActionEnum {
33
+ return json as DeniedActionEnum;
34
+ }
35
+
36
+ export function DeniedActionEnumToJSON(value?: DeniedActionEnum | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ DeniedActionEnum,
18
+ DeniedActionEnumFromJSON,
19
+ DeniedActionEnumFromJSONTyped,
20
+ DeniedActionEnumToJSON,
21
+ } from './DeniedActionEnum';
16
22
  import {
17
23
  FlowDesignationEnum,
18
24
  FlowDesignationEnumFromJSON,
@@ -122,6 +128,12 @@ export interface Flow {
122
128
  * @memberof Flow
123
129
  */
124
130
  layout?: LayoutEnum;
131
+ /**
132
+ * Configure what should happen when a flow denies access to a user.
133
+ * @type {DeniedActionEnum}
134
+ * @memberof Flow
135
+ */
136
+ deniedAction?: DeniedActionEnum | null;
125
137
  }
126
138
 
127
139
  export function FlowFromJSON(json: any): Flow {
@@ -148,6 +160,7 @@ export function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow
148
160
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
149
161
  'exportUrl': json['export_url'],
150
162
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
163
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
151
164
  };
152
165
  }
153
166
 
@@ -167,6 +180,7 @@ export function FlowToJSON(value?: Flow | null): any {
167
180
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
168
181
  'compatibility_mode': value.compatibilityMode,
169
182
  'layout': LayoutEnumToJSON(value.layout),
183
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
170
184
  };
171
185
  }
172
186
 
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ DeniedActionEnum,
18
+ DeniedActionEnumFromJSON,
19
+ DeniedActionEnumFromJSONTyped,
20
+ DeniedActionEnumToJSON,
21
+ } from './DeniedActionEnum';
16
22
  import {
17
23
  FlowDesignationEnum,
18
24
  FlowDesignationEnumFromJSON,
@@ -80,6 +86,12 @@ export interface FlowRequest {
80
86
  * @memberof FlowRequest
81
87
  */
82
88
  layout?: LayoutEnum;
89
+ /**
90
+ * Configure what should happen when a flow denies access to a user.
91
+ * @type {DeniedActionEnum}
92
+ * @memberof FlowRequest
93
+ */
94
+ deniedAction?: DeniedActionEnum | null;
83
95
  }
84
96
 
85
97
  export function FlowRequestFromJSON(json: any): FlowRequest {
@@ -99,6 +111,7 @@ export function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean
99
111
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
100
112
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
101
113
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
114
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
102
115
  };
103
116
  }
104
117
 
@@ -118,6 +131,7 @@ export function FlowRequestToJSON(value?: FlowRequest | null): any {
118
131
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
119
132
  'compatibility_mode': value.compatibilityMode,
120
133
  'layout': LayoutEnumToJSON(value.layout),
134
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
121
135
  };
122
136
  }
123
137
 
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ DeniedActionEnum,
18
+ DeniedActionEnumFromJSON,
19
+ DeniedActionEnumFromJSONTyped,
20
+ DeniedActionEnumToJSON,
21
+ } from './DeniedActionEnum';
16
22
  import {
17
23
  FlowDesignationEnum,
18
24
  FlowDesignationEnumFromJSON,
@@ -80,6 +86,12 @@ export interface PatchedFlowRequest {
80
86
  * @memberof PatchedFlowRequest
81
87
  */
82
88
  layout?: LayoutEnum;
89
+ /**
90
+ * Configure what should happen when a flow denies access to a user.
91
+ * @type {DeniedActionEnum}
92
+ * @memberof PatchedFlowRequest
93
+ */
94
+ deniedAction?: DeniedActionEnum | null;
83
95
  }
84
96
 
85
97
  export function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest {
@@ -99,6 +111,7 @@ export function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator:
99
111
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
100
112
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
101
113
  'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
114
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
102
115
  };
103
116
  }
104
117
 
@@ -118,6 +131,7 @@ export function PatchedFlowRequestToJSON(value?: PatchedFlowRequest | null): any
118
131
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
119
132
  'compatibility_mode': value.compatibilityMode,
120
133
  'layout': LayoutEnumToJSON(value.layout),
134
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
121
135
  };
122
136
  }
123
137
 
@@ -66,6 +66,7 @@ export * from './ConsentStageRequest';
66
66
  export * from './ContextualFlowInfo';
67
67
  export * from './Coordinate';
68
68
  export * from './CurrentTenant';
69
+ export * from './DeniedActionEnum';
69
70
  export * from './DenyStage';
70
71
  export * from './DenyStageRequest';
71
72
  export * from './Device';