@goauthentik/api 2022.4.1-1652560930 → 2022.4.1-1652656244

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.
@@ -157,6 +157,7 @@ src/models/LDAPProvider.ts
157
157
  src/models/LDAPProviderRequest.ts
158
158
  src/models/LDAPSource.ts
159
159
  src/models/LDAPSourceRequest.ts
160
+ src/models/LayoutEnum.ts
160
161
  src/models/Link.ts
161
162
  src/models/LoginChallengeTypes.ts
162
163
  src/models/LoginMetrics.ts
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { LayoutEnum } from './LayoutEnum';
12
13
  /**
13
14
  * Contextual flow information for a challenge
14
15
  * @export
@@ -33,6 +34,12 @@ export interface ContextualFlowInfo {
33
34
  * @memberof ContextualFlowInfo
34
35
  */
35
36
  cancelUrl: string;
37
+ /**
38
+ *
39
+ * @type {LayoutEnum}
40
+ * @memberof ContextualFlowInfo
41
+ */
42
+ layout: LayoutEnum;
36
43
  }
37
44
  export declare function ContextualFlowInfoFromJSON(json: any): ContextualFlowInfo;
38
45
  export declare function ContextualFlowInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextualFlowInfo;
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
15
16
  export function ContextualFlowInfoFromJSON(json) {
16
17
  return ContextualFlowInfoFromJSONTyped(json, false);
17
18
  }
@@ -23,6 +24,7 @@ export function ContextualFlowInfoFromJSONTyped(json, ignoreDiscriminator) {
23
24
  'title': !exists(json, 'title') ? undefined : json['title'],
24
25
  'background': !exists(json, 'background') ? undefined : json['background'],
25
26
  'cancelUrl': json['cancel_url'],
27
+ 'layout': LayoutEnumFromJSON(json['layout']),
26
28
  };
27
29
  }
28
30
  export function ContextualFlowInfoToJSON(value) {
@@ -36,5 +38,6 @@ export function ContextualFlowInfoToJSON(value) {
36
38
  'title': value.title,
37
39
  'background': value.background,
38
40
  'cancel_url': value.cancelUrl,
41
+ 'layout': LayoutEnumToJSON(value.layout),
39
42
  };
40
43
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -95,6 +96,12 @@ export interface Flow {
95
96
  * @memberof Flow
96
97
  */
97
98
  readonly exportUrl: string;
99
+ /**
100
+ *
101
+ * @type {LayoutEnum}
102
+ * @memberof Flow
103
+ */
104
+ layout?: LayoutEnum;
98
105
  }
99
106
  export declare function FlowFromJSON(json: any): Flow;
100
107
  export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
+ import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
16
17
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
17
18
  export function FlowFromJSON(json) {
18
19
  return FlowFromJSONTyped(json, false);
@@ -35,6 +36,7 @@ export function FlowFromJSONTyped(json, ignoreDiscriminator) {
35
36
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
37
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
37
38
  'exportUrl': json['export_url'],
39
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
38
40
  };
39
41
  }
40
42
  export function FlowToJSON(value) {
@@ -51,5 +53,6 @@ export function FlowToJSON(value) {
51
53
  'designation': FlowDesignationEnumToJSON(value.designation),
52
54
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
53
55
  'compatibility_mode': value.compatibilityMode,
56
+ 'layout': LayoutEnumToJSON(value.layout),
54
57
  };
55
58
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -53,6 +54,12 @@ export interface FlowRequest {
53
54
  * @memberof FlowRequest
54
55
  */
55
56
  compatibilityMode?: boolean;
57
+ /**
58
+ *
59
+ * @type {LayoutEnum}
60
+ * @memberof FlowRequest
61
+ */
62
+ layout?: LayoutEnum;
56
63
  }
57
64
  export declare function FlowRequestFromJSON(json: any): FlowRequest;
58
65
  export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
+ import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
16
17
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
17
18
  export function FlowRequestFromJSON(json) {
18
19
  return FlowRequestFromJSONTyped(json, false);
@@ -28,6 +29,7 @@ export function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'designation': FlowDesignationEnumFromJSON(json['designation']),
29
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
30
31
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
32
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
31
33
  };
32
34
  }
33
35
  export function FlowRequestToJSON(value) {
@@ -44,5 +46,6 @@ export function FlowRequestToJSON(value) {
44
46
  'designation': FlowDesignationEnumToJSON(value.designation),
45
47
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
46
48
  'compatibility_mode': value.compatibilityMode,
49
+ 'layout': LayoutEnumToJSON(value.layout),
47
50
  };
48
51
  }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.4.1
6
+ * Contact: hello@beryju.org
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 LayoutEnum: {
17
+ readonly Stacked: "stacked";
18
+ readonly ContentLeft: "content_left";
19
+ readonly ContentRight: "content_right";
20
+ readonly SidebarLeft: "sidebar_left";
21
+ readonly SidebarRight: "sidebar_right";
22
+ };
23
+ export declare type LayoutEnum = typeof LayoutEnum[keyof typeof LayoutEnum];
24
+ export declare function LayoutEnumFromJSON(json: any): LayoutEnum;
25
+ export declare function LayoutEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayoutEnum;
26
+ export declare function LayoutEnumToJSON(value?: LayoutEnum | null): any;
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.4.1
8
+ * Contact: hello@beryju.org
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 LayoutEnum = {
19
+ Stacked: 'stacked',
20
+ ContentLeft: 'content_left',
21
+ ContentRight: 'content_right',
22
+ SidebarLeft: 'sidebar_left',
23
+ SidebarRight: 'sidebar_right'
24
+ };
25
+ export function LayoutEnumFromJSON(json) {
26
+ return LayoutEnumFromJSONTyped(json, false);
27
+ }
28
+ export function LayoutEnumFromJSONTyped(json, ignoreDiscriminator) {
29
+ return json;
30
+ }
31
+ export function LayoutEnumToJSON(value) {
32
+ return value;
33
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -53,6 +54,12 @@ export interface PatchedFlowRequest {
53
54
  * @memberof PatchedFlowRequest
54
55
  */
55
56
  compatibilityMode?: boolean;
57
+ /**
58
+ *
59
+ * @type {LayoutEnum}
60
+ * @memberof PatchedFlowRequest
61
+ */
62
+ layout?: LayoutEnum;
56
63
  }
57
64
  export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
58
65
  export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
16
+ import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
16
17
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
17
18
  export function PatchedFlowRequestFromJSON(json) {
18
19
  return PatchedFlowRequestFromJSONTyped(json, false);
@@ -28,6 +29,7 @@ export function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'designation': !exists(json, 'designation') ? undefined : FlowDesignationEnumFromJSON(json['designation']),
29
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
30
31
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
32
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
31
33
  };
32
34
  }
33
35
  export function PatchedFlowRequestToJSON(value) {
@@ -44,5 +46,6 @@ export function PatchedFlowRequestToJSON(value) {
44
46
  'designation': FlowDesignationEnumToJSON(value.designation),
45
47
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
46
48
  'compatibility_mode': value.compatibilityMode,
49
+ 'layout': LayoutEnumToJSON(value.layout),
47
50
  };
48
51
  }
@@ -135,6 +135,7 @@ export * from './LDAPProvider';
135
135
  export * from './LDAPProviderRequest';
136
136
  export * from './LDAPSource';
137
137
  export * from './LDAPSourceRequest';
138
+ export * from './LayoutEnum';
138
139
  export * from './Link';
139
140
  export * from './LoginChallengeTypes';
140
141
  export * from './LoginMetrics';
@@ -137,6 +137,7 @@ export * from './LDAPProvider';
137
137
  export * from './LDAPProviderRequest';
138
138
  export * from './LDAPSource';
139
139
  export * from './LDAPSourceRequest';
140
+ export * from './LayoutEnum';
140
141
  export * from './Link';
141
142
  export * from './LoginChallengeTypes';
142
143
  export * from './LoginMetrics';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { LayoutEnum } from './LayoutEnum';
12
13
  /**
13
14
  * Contextual flow information for a challenge
14
15
  * @export
@@ -33,6 +34,12 @@ export interface ContextualFlowInfo {
33
34
  * @memberof ContextualFlowInfo
34
35
  */
35
36
  cancelUrl: string;
37
+ /**
38
+ *
39
+ * @type {LayoutEnum}
40
+ * @memberof ContextualFlowInfo
41
+ */
42
+ layout: LayoutEnum;
36
43
  }
37
44
  export declare function ContextualFlowInfoFromJSON(json: any): ContextualFlowInfo;
38
45
  export declare function ContextualFlowInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextualFlowInfo;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ContextualFlowInfoToJSON = exports.ContextualFlowInfoFromJSONTyped = exports.ContextualFlowInfoFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const LayoutEnum_1 = require("./LayoutEnum");
18
19
  function ContextualFlowInfoFromJSON(json) {
19
20
  return ContextualFlowInfoFromJSONTyped(json, false);
20
21
  }
@@ -27,6 +28,7 @@ function ContextualFlowInfoFromJSONTyped(json, ignoreDiscriminator) {
27
28
  'title': !runtime_1.exists(json, 'title') ? undefined : json['title'],
28
29
  'background': !runtime_1.exists(json, 'background') ? undefined : json['background'],
29
30
  'cancelUrl': json['cancel_url'],
31
+ 'layout': LayoutEnum_1.LayoutEnumFromJSON(json['layout']),
30
32
  };
31
33
  }
32
34
  exports.ContextualFlowInfoFromJSONTyped = ContextualFlowInfoFromJSONTyped;
@@ -41,6 +43,7 @@ function ContextualFlowInfoToJSON(value) {
41
43
  'title': value.title,
42
44
  'background': value.background,
43
45
  'cancel_url': value.cancelUrl,
46
+ 'layout': LayoutEnum_1.LayoutEnumToJSON(value.layout),
44
47
  };
45
48
  }
46
49
  exports.ContextualFlowInfoToJSON = ContextualFlowInfoToJSON;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -95,6 +96,12 @@ export interface Flow {
95
96
  * @memberof Flow
96
97
  */
97
98
  readonly exportUrl: string;
99
+ /**
100
+ *
101
+ * @type {LayoutEnum}
102
+ * @memberof Flow
103
+ */
104
+ layout?: LayoutEnum;
98
105
  }
99
106
  export declare function FlowFromJSON(json: any): Flow;
100
107
  export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FlowToJSON = exports.FlowFromJSONTyped = exports.FlowFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
+ const LayoutEnum_1 = require("./LayoutEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  function FlowFromJSON(json) {
21
22
  return FlowFromJSONTyped(json, false);
@@ -39,6 +40,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
40
41
  'compatibilityMode': !runtime_1.exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
41
42
  'exportUrl': json['export_url'],
43
+ 'layout': !runtime_1.exists(json, 'layout') ? undefined : LayoutEnum_1.LayoutEnumFromJSON(json['layout']),
42
44
  };
43
45
  }
44
46
  exports.FlowFromJSONTyped = FlowFromJSONTyped;
@@ -56,6 +58,7 @@ function FlowToJSON(value) {
56
58
  'designation': FlowDesignationEnum_1.FlowDesignationEnumToJSON(value.designation),
57
59
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
58
60
  'compatibility_mode': value.compatibilityMode,
61
+ 'layout': LayoutEnum_1.LayoutEnumToJSON(value.layout),
59
62
  };
60
63
  }
61
64
  exports.FlowToJSON = FlowToJSON;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -53,6 +54,12 @@ export interface FlowRequest {
53
54
  * @memberof FlowRequest
54
55
  */
55
56
  compatibilityMode?: boolean;
57
+ /**
58
+ *
59
+ * @type {LayoutEnum}
60
+ * @memberof FlowRequest
61
+ */
62
+ layout?: LayoutEnum;
56
63
  }
57
64
  export declare function FlowRequestFromJSON(json: any): FlowRequest;
58
65
  export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FlowRequestToJSON = exports.FlowRequestFromJSONTyped = exports.FlowRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
+ const LayoutEnum_1 = require("./LayoutEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  function FlowRequestFromJSON(json) {
21
22
  return FlowRequestFromJSONTyped(json, false);
@@ -32,6 +33,7 @@ function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'designation': FlowDesignationEnum_1.FlowDesignationEnumFromJSON(json['designation']),
33
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
34
35
  'compatibilityMode': !runtime_1.exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
36
+ 'layout': !runtime_1.exists(json, 'layout') ? undefined : LayoutEnum_1.LayoutEnumFromJSON(json['layout']),
35
37
  };
36
38
  }
37
39
  exports.FlowRequestFromJSONTyped = FlowRequestFromJSONTyped;
@@ -49,6 +51,7 @@ function FlowRequestToJSON(value) {
49
51
  'designation': FlowDesignationEnum_1.FlowDesignationEnumToJSON(value.designation),
50
52
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
51
53
  'compatibility_mode': value.compatibilityMode,
54
+ 'layout': LayoutEnum_1.LayoutEnumToJSON(value.layout),
52
55
  };
53
56
  }
54
57
  exports.FlowRequestToJSON = FlowRequestToJSON;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.4.1
6
+ * Contact: hello@beryju.org
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 LayoutEnum: {
17
+ readonly Stacked: "stacked";
18
+ readonly ContentLeft: "content_left";
19
+ readonly ContentRight: "content_right";
20
+ readonly SidebarLeft: "sidebar_left";
21
+ readonly SidebarRight: "sidebar_right";
22
+ };
23
+ export declare type LayoutEnum = typeof LayoutEnum[keyof typeof LayoutEnum];
24
+ export declare function LayoutEnumFromJSON(json: any): LayoutEnum;
25
+ export declare function LayoutEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayoutEnum;
26
+ export declare function LayoutEnumToJSON(value?: LayoutEnum | null): any;
@@ -0,0 +1,39 @@
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.4.1
9
+ * Contact: hello@beryju.org
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.LayoutEnumToJSON = exports.LayoutEnumFromJSONTyped = exports.LayoutEnumFromJSON = exports.LayoutEnum = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.LayoutEnum = {
22
+ Stacked: 'stacked',
23
+ ContentLeft: 'content_left',
24
+ ContentRight: 'content_right',
25
+ SidebarLeft: 'sidebar_left',
26
+ SidebarRight: 'sidebar_right'
27
+ };
28
+ function LayoutEnumFromJSON(json) {
29
+ return LayoutEnumFromJSONTyped(json, false);
30
+ }
31
+ exports.LayoutEnumFromJSON = LayoutEnumFromJSON;
32
+ function LayoutEnumFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ exports.LayoutEnumFromJSONTyped = LayoutEnumFromJSONTyped;
36
+ function LayoutEnumToJSON(value) {
37
+ return value;
38
+ }
39
+ exports.LayoutEnumToJSON = LayoutEnumToJSON;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowDesignationEnum } from './FlowDesignationEnum';
13
+ import { LayoutEnum } from './LayoutEnum';
13
14
  import { PolicyEngineMode } from './PolicyEngineMode';
14
15
  /**
15
16
  * Flow Serializer
@@ -53,6 +54,12 @@ export interface PatchedFlowRequest {
53
54
  * @memberof PatchedFlowRequest
54
55
  */
55
56
  compatibilityMode?: boolean;
57
+ /**
58
+ *
59
+ * @type {LayoutEnum}
60
+ * @memberof PatchedFlowRequest
61
+ */
62
+ layout?: LayoutEnum;
56
63
  }
57
64
  export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
58
65
  export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedFlowRequestToJSON = exports.PatchedFlowRequestFromJSONTyped = exports.PatchedFlowRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
19
+ const LayoutEnum_1 = require("./LayoutEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  function PatchedFlowRequestFromJSON(json) {
21
22
  return PatchedFlowRequestFromJSONTyped(json, false);
@@ -32,6 +33,7 @@ function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'designation': !runtime_1.exists(json, 'designation') ? undefined : FlowDesignationEnum_1.FlowDesignationEnumFromJSON(json['designation']),
33
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
34
35
  'compatibilityMode': !runtime_1.exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
36
+ 'layout': !runtime_1.exists(json, 'layout') ? undefined : LayoutEnum_1.LayoutEnumFromJSON(json['layout']),
35
37
  };
36
38
  }
37
39
  exports.PatchedFlowRequestFromJSONTyped = PatchedFlowRequestFromJSONTyped;
@@ -49,6 +51,7 @@ function PatchedFlowRequestToJSON(value) {
49
51
  'designation': FlowDesignationEnum_1.FlowDesignationEnumToJSON(value.designation),
50
52
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
51
53
  'compatibility_mode': value.compatibilityMode,
54
+ 'layout': LayoutEnum_1.LayoutEnumToJSON(value.layout),
52
55
  };
53
56
  }
54
57
  exports.PatchedFlowRequestToJSON = PatchedFlowRequestToJSON;
@@ -135,6 +135,7 @@ export * from './LDAPProvider';
135
135
  export * from './LDAPProviderRequest';
136
136
  export * from './LDAPSource';
137
137
  export * from './LDAPSourceRequest';
138
+ export * from './LayoutEnum';
138
139
  export * from './Link';
139
140
  export * from './LoginChallengeTypes';
140
141
  export * from './LoginMetrics';
@@ -149,6 +149,7 @@ __exportStar(require("./LDAPProvider"), exports);
149
149
  __exportStar(require("./LDAPProviderRequest"), exports);
150
150
  __exportStar(require("./LDAPSource"), exports);
151
151
  __exportStar(require("./LDAPSourceRequest"), exports);
152
+ __exportStar(require("./LayoutEnum"), exports);
152
153
  __exportStar(require("./Link"), exports);
153
154
  __exportStar(require("./LoginChallengeTypes"), exports);
154
155
  __exportStar(require("./LoginMetrics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.4.1-1652560930",
3
+ "version": "2022.4.1-1652656244",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ LayoutEnum,
18
+ LayoutEnumFromJSON,
19
+ LayoutEnumFromJSONTyped,
20
+ LayoutEnumToJSON,
21
+ } from './LayoutEnum';
22
+
16
23
  /**
17
24
  * Contextual flow information for a challenge
18
25
  * @export
@@ -37,6 +44,12 @@ export interface ContextualFlowInfo {
37
44
  * @memberof ContextualFlowInfo
38
45
  */
39
46
  cancelUrl: string;
47
+ /**
48
+ *
49
+ * @type {LayoutEnum}
50
+ * @memberof ContextualFlowInfo
51
+ */
52
+ layout: LayoutEnum;
40
53
  }
41
54
 
42
55
  export function ContextualFlowInfoFromJSON(json: any): ContextualFlowInfo {
@@ -52,6 +65,7 @@ export function ContextualFlowInfoFromJSONTyped(json: any, ignoreDiscriminator:
52
65
  'title': !exists(json, 'title') ? undefined : json['title'],
53
66
  'background': !exists(json, 'background') ? undefined : json['background'],
54
67
  'cancelUrl': json['cancel_url'],
68
+ 'layout': LayoutEnumFromJSON(json['layout']),
55
69
  };
56
70
  }
57
71
 
@@ -67,6 +81,7 @@ export function ContextualFlowInfoToJSON(value?: ContextualFlowInfo | null): any
67
81
  'title': value.title,
68
82
  'background': value.background,
69
83
  'cancel_url': value.cancelUrl,
84
+ 'layout': LayoutEnumToJSON(value.layout),
70
85
  };
71
86
  }
72
87
 
@@ -19,6 +19,12 @@ import {
19
19
  FlowDesignationEnumFromJSONTyped,
20
20
  FlowDesignationEnumToJSON,
21
21
  } from './FlowDesignationEnum';
22
+ import {
23
+ LayoutEnum,
24
+ LayoutEnumFromJSON,
25
+ LayoutEnumFromJSONTyped,
26
+ LayoutEnumToJSON,
27
+ } from './LayoutEnum';
22
28
  import {
23
29
  PolicyEngineMode,
24
30
  PolicyEngineModeFromJSON,
@@ -110,6 +116,12 @@ export interface Flow {
110
116
  * @memberof Flow
111
117
  */
112
118
  readonly exportUrl: string;
119
+ /**
120
+ *
121
+ * @type {LayoutEnum}
122
+ * @memberof Flow
123
+ */
124
+ layout?: LayoutEnum;
113
125
  }
114
126
 
115
127
  export function FlowFromJSON(json: any): Flow {
@@ -135,6 +147,7 @@ export function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow
135
147
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
136
148
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
137
149
  'exportUrl': json['export_url'],
150
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
138
151
  };
139
152
  }
140
153
 
@@ -153,6 +166,7 @@ export function FlowToJSON(value?: Flow | null): any {
153
166
  'designation': FlowDesignationEnumToJSON(value.designation),
154
167
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
155
168
  'compatibility_mode': value.compatibilityMode,
169
+ 'layout': LayoutEnumToJSON(value.layout),
156
170
  };
157
171
  }
158
172
 
@@ -19,6 +19,12 @@ import {
19
19
  FlowDesignationEnumFromJSONTyped,
20
20
  FlowDesignationEnumToJSON,
21
21
  } from './FlowDesignationEnum';
22
+ import {
23
+ LayoutEnum,
24
+ LayoutEnumFromJSON,
25
+ LayoutEnumFromJSONTyped,
26
+ LayoutEnumToJSON,
27
+ } from './LayoutEnum';
22
28
  import {
23
29
  PolicyEngineMode,
24
30
  PolicyEngineModeFromJSON,
@@ -68,6 +74,12 @@ export interface FlowRequest {
68
74
  * @memberof FlowRequest
69
75
  */
70
76
  compatibilityMode?: boolean;
77
+ /**
78
+ *
79
+ * @type {LayoutEnum}
80
+ * @memberof FlowRequest
81
+ */
82
+ layout?: LayoutEnum;
71
83
  }
72
84
 
73
85
  export function FlowRequestFromJSON(json: any): FlowRequest {
@@ -86,6 +98,7 @@ export function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean
86
98
  'designation': FlowDesignationEnumFromJSON(json['designation']),
87
99
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
88
100
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
101
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
89
102
  };
90
103
  }
91
104
 
@@ -104,6 +117,7 @@ export function FlowRequestToJSON(value?: FlowRequest | null): any {
104
117
  'designation': FlowDesignationEnumToJSON(value.designation),
105
118
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
106
119
  'compatibility_mode': value.compatibilityMode,
120
+ 'layout': LayoutEnumToJSON(value.layout),
107
121
  };
108
122
  }
109
123
 
@@ -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.4.1
8
+ * Contact: hello@beryju.org
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 LayoutEnum = {
21
+ Stacked: 'stacked',
22
+ ContentLeft: 'content_left',
23
+ ContentRight: 'content_right',
24
+ SidebarLeft: 'sidebar_left',
25
+ SidebarRight: 'sidebar_right'
26
+ } as const;
27
+
28
+ export type LayoutEnum = typeof LayoutEnum[keyof typeof LayoutEnum];
29
+
30
+
31
+ export function LayoutEnumFromJSON(json: any): LayoutEnum {
32
+ return LayoutEnumFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function LayoutEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayoutEnum {
36
+ return json as LayoutEnum;
37
+ }
38
+
39
+ export function LayoutEnumToJSON(value?: LayoutEnum | null): any {
40
+ return value as any;
41
+ }
42
+
@@ -19,6 +19,12 @@ import {
19
19
  FlowDesignationEnumFromJSONTyped,
20
20
  FlowDesignationEnumToJSON,
21
21
  } from './FlowDesignationEnum';
22
+ import {
23
+ LayoutEnum,
24
+ LayoutEnumFromJSON,
25
+ LayoutEnumFromJSONTyped,
26
+ LayoutEnumToJSON,
27
+ } from './LayoutEnum';
22
28
  import {
23
29
  PolicyEngineMode,
24
30
  PolicyEngineModeFromJSON,
@@ -68,6 +74,12 @@ export interface PatchedFlowRequest {
68
74
  * @memberof PatchedFlowRequest
69
75
  */
70
76
  compatibilityMode?: boolean;
77
+ /**
78
+ *
79
+ * @type {LayoutEnum}
80
+ * @memberof PatchedFlowRequest
81
+ */
82
+ layout?: LayoutEnum;
71
83
  }
72
84
 
73
85
  export function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest {
@@ -86,6 +98,7 @@ export function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator:
86
98
  'designation': !exists(json, 'designation') ? undefined : FlowDesignationEnumFromJSON(json['designation']),
87
99
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
88
100
  'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
101
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
89
102
  };
90
103
  }
91
104
 
@@ -104,6 +117,7 @@ export function PatchedFlowRequestToJSON(value?: PatchedFlowRequest | null): any
104
117
  'designation': FlowDesignationEnumToJSON(value.designation),
105
118
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
106
119
  'compatibility_mode': value.compatibilityMode,
120
+ 'layout': LayoutEnumToJSON(value.layout),
107
121
  };
108
122
  }
109
123
 
@@ -137,6 +137,7 @@ export * from './LDAPProvider';
137
137
  export * from './LDAPProviderRequest';
138
138
  export * from './LDAPSource';
139
139
  export * from './LDAPSourceRequest';
140
+ export * from './LayoutEnum';
140
141
  export * from './Link';
141
142
  export * from './LoginChallengeTypes';
142
143
  export * from './LoginMetrics';