@goauthentik/api 2022.6.3-1656258767 → 2022.6.3-1656957989
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +38 -0
- package/dist/apis/FlowsApi.d.ts +10 -0
- package/dist/apis/FlowsApi.js +12 -1
- package/dist/esm/apis/FlowsApi.d.ts +10 -0
- package/dist/esm/apis/FlowsApi.js +11 -0
- package/dist/esm/models/DeniedActionEnum.d.ts +24 -0
- package/dist/esm/models/DeniedActionEnum.js +31 -0
- package/dist/esm/models/Flow.d.ts +7 -0
- package/dist/esm/models/Flow.js +3 -0
- package/dist/esm/models/FlowRequest.d.ts +7 -0
- package/dist/esm/models/FlowRequest.js +3 -0
- package/dist/esm/models/OAuth2Provider.d.ts +1 -2
- package/dist/esm/models/OAuth2ProviderRequest.d.ts +1 -2
- package/dist/esm/models/PatchedFlowRequest.d.ts +7 -0
- package/dist/esm/models/PatchedFlowRequest.js +3 -0
- package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +1 -2
- package/dist/esm/models/SAMLProvider.d.ts +19 -1
- package/dist/esm/models/SAMLProvider.js +4 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DeniedActionEnum.d.ts +24 -0
- package/dist/models/DeniedActionEnum.js +37 -0
- package/dist/models/Flow.d.ts +7 -0
- package/dist/models/Flow.js +3 -0
- package/dist/models/FlowRequest.d.ts +7 -0
- package/dist/models/FlowRequest.js +3 -0
- package/dist/models/OAuth2Provider.d.ts +1 -2
- package/dist/models/OAuth2ProviderRequest.d.ts +1 -2
- package/dist/models/PatchedFlowRequest.d.ts +7 -0
- package/dist/models/PatchedFlowRequest.js +3 -0
- package/dist/models/PatchedOAuth2ProviderRequest.d.ts +1 -2
- package/dist/models/SAMLProvider.d.ts +19 -1
- package/dist/models/SAMLProvider.js +4 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/FlowsApi.ts +14 -0
- package/src/models/DeniedActionEnum.ts +39 -0
- package/src/models/Flow.ts +14 -0
- package/src/models/FlowRequest.ts +14 -0
- package/src/models/OAuth2Provider.ts +1 -2
- package/src/models/OAuth2ProviderRequest.ts +1 -2
- package/src/models/PatchedFlowRequest.ts +14 -0
- package/src/models/PatchedOAuth2ProviderRequest.ts +1 -2
- package/src/models/SAMLProvider.ts +23 -2
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## @goauthentik/api
|
|
2
|
+
|
|
3
|
+
This package provides a generated API Client for [authentik](https://goauthentik.io?utm_source=npm-api-package).
|
|
4
|
+
|
|
5
|
+
### Building
|
|
6
|
+
|
|
7
|
+
See https://goauthentik.io/developer-docs/making-schema-changes
|
|
8
|
+
|
|
9
|
+
### Consuming
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
npm install @goauthentik/api --save
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Create a configuration:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Configuration } from "@goauthentik/api";
|
|
19
|
+
|
|
20
|
+
export const DEFAULT_CONFIG = new Configuration({
|
|
21
|
+
// Configure where the API is located
|
|
22
|
+
// Can be a full host, ensure CORS is configured
|
|
23
|
+
basePath: "",
|
|
24
|
+
// Required for POST/PUT/DELETE requests
|
|
25
|
+
// getCookie function must return the cookie's contents
|
|
26
|
+
headers: {
|
|
27
|
+
"X-authentik-CSRF": getCookie("authentik_csrf"),
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then use the API:
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { CoreApi } from "@goauthentik/api";
|
|
36
|
+
|
|
37
|
+
const user = await new CoreApi(DEFAULT_CONFIG).coreUsersMeRetrieve();
|
|
38
|
+
```
|
package/dist/apis/FlowsApi.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/FlowsApi.js
CHANGED
|
@@ -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;
|
package/dist/esm/models/Flow.js
CHANGED
|
@@ -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
|
}
|
|
@@ -79,8 +79,7 @@ export interface OAuth2Provider {
|
|
|
79
79
|
*/
|
|
80
80
|
readonly metaModelName: string;
|
|
81
81
|
/**
|
|
82
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
83
|
-
* of their credentials. Public clients are incapable.
|
|
82
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
84
83
|
* @type {ClientTypeEnum}
|
|
85
84
|
* @memberof OAuth2Provider
|
|
86
85
|
*/
|
|
@@ -37,8 +37,7 @@ export interface OAuth2ProviderRequest {
|
|
|
37
37
|
*/
|
|
38
38
|
propertyMappings?: Array<string>;
|
|
39
39
|
/**
|
|
40
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
41
|
-
* of their credentials. Public clients are incapable.
|
|
40
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
42
41
|
* @type {ClientTypeEnum}
|
|
43
42
|
* @memberof OAuth2ProviderRequest
|
|
44
43
|
*/
|
|
@@ -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
|
}
|
|
@@ -37,8 +37,7 @@ export interface PatchedOAuth2ProviderRequest {
|
|
|
37
37
|
*/
|
|
38
38
|
propertyMappings?: Array<string>;
|
|
39
39
|
/**
|
|
40
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
41
|
-
* of their credentials. Public clients are incapable.
|
|
40
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
42
41
|
* @type {ClientTypeEnum}
|
|
43
42
|
* @memberof PatchedOAuth2ProviderRequest
|
|
44
43
|
*/
|
|
@@ -155,7 +155,25 @@ export interface SAMLProvider {
|
|
|
155
155
|
* @type {string}
|
|
156
156
|
* @memberof SAMLProvider
|
|
157
157
|
*/
|
|
158
|
-
readonly
|
|
158
|
+
readonly urlDownloadMetadata: string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof SAMLProvider
|
|
163
|
+
*/
|
|
164
|
+
readonly urlSsoPost: string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof SAMLProvider
|
|
169
|
+
*/
|
|
170
|
+
readonly urlSsoRedirect: string;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof SAMLProvider
|
|
175
|
+
*/
|
|
176
|
+
readonly urlSsoInit: string;
|
|
159
177
|
}
|
|
160
178
|
export declare function SAMLProviderFromJSON(json: any): SAMLProvider;
|
|
161
179
|
export declare function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLProvider;
|
|
@@ -45,7 +45,10 @@ export function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'signingKp': !exists(json, 'signing_kp') ? undefined : json['signing_kp'],
|
|
46
46
|
'verificationKp': !exists(json, 'verification_kp') ? undefined : json['verification_kp'],
|
|
47
47
|
'spBinding': !exists(json, 'sp_binding') ? undefined : SpBindingEnumFromJSON(json['sp_binding']),
|
|
48
|
-
'
|
|
48
|
+
'urlDownloadMetadata': json['url_download_metadata'],
|
|
49
|
+
'urlSsoPost': json['url_sso_post'],
|
|
50
|
+
'urlSsoRedirect': json['url_sso_redirect'],
|
|
51
|
+
'urlSsoInit': json['url_sso_init'],
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
export function SAMLProviderToJSON(value) {
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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;
|
package/dist/models/Flow.d.ts
CHANGED
|
@@ -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;
|
package/dist/models/Flow.js
CHANGED
|
@@ -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;
|
|
@@ -79,8 +79,7 @@ export interface OAuth2Provider {
|
|
|
79
79
|
*/
|
|
80
80
|
readonly metaModelName: string;
|
|
81
81
|
/**
|
|
82
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
83
|
-
* of their credentials. Public clients are incapable.
|
|
82
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
84
83
|
* @type {ClientTypeEnum}
|
|
85
84
|
* @memberof OAuth2Provider
|
|
86
85
|
*/
|
|
@@ -37,8 +37,7 @@ export interface OAuth2ProviderRequest {
|
|
|
37
37
|
*/
|
|
38
38
|
propertyMappings?: Array<string>;
|
|
39
39
|
/**
|
|
40
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
41
|
-
* of their credentials. Public clients are incapable.
|
|
40
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
42
41
|
* @type {ClientTypeEnum}
|
|
43
42
|
* @memberof OAuth2ProviderRequest
|
|
44
43
|
*/
|
|
@@ -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;
|
|
@@ -37,8 +37,7 @@ export interface PatchedOAuth2ProviderRequest {
|
|
|
37
37
|
*/
|
|
38
38
|
propertyMappings?: Array<string>;
|
|
39
39
|
/**
|
|
40
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
41
|
-
* of their credentials. Public clients are incapable.
|
|
40
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
42
41
|
* @type {ClientTypeEnum}
|
|
43
42
|
* @memberof PatchedOAuth2ProviderRequest
|
|
44
43
|
*/
|
|
@@ -155,7 +155,25 @@ export interface SAMLProvider {
|
|
|
155
155
|
* @type {string}
|
|
156
156
|
* @memberof SAMLProvider
|
|
157
157
|
*/
|
|
158
|
-
readonly
|
|
158
|
+
readonly urlDownloadMetadata: string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof SAMLProvider
|
|
163
|
+
*/
|
|
164
|
+
readonly urlSsoPost: string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof SAMLProvider
|
|
169
|
+
*/
|
|
170
|
+
readonly urlSsoRedirect: string;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof SAMLProvider
|
|
175
|
+
*/
|
|
176
|
+
readonly urlSsoInit: string;
|
|
159
177
|
}
|
|
160
178
|
export declare function SAMLProviderFromJSON(json: any): SAMLProvider;
|
|
161
179
|
export declare function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLProvider;
|
|
@@ -49,7 +49,10 @@ function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'signingKp': !(0, runtime_1.exists)(json, 'signing_kp') ? undefined : json['signing_kp'],
|
|
50
50
|
'verificationKp': !(0, runtime_1.exists)(json, 'verification_kp') ? undefined : json['verification_kp'],
|
|
51
51
|
'spBinding': !(0, runtime_1.exists)(json, 'sp_binding') ? undefined : (0, SpBindingEnum_1.SpBindingEnumFromJSON)(json['sp_binding']),
|
|
52
|
-
'
|
|
52
|
+
'urlDownloadMetadata': json['url_download_metadata'],
|
|
53
|
+
'urlSsoPost': json['url_sso_post'],
|
|
54
|
+
'urlSsoRedirect': json['url_sso_redirect'],
|
|
55
|
+
'urlSsoInit': json['url_sso_init'],
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
exports.SAMLProviderFromJSONTyped = SAMLProviderFromJSONTyped;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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
package/src/apis/FlowsApi.ts
CHANGED
|
@@ -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
|
+
|
package/src/models/Flow.ts
CHANGED
|
@@ -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
|
|
|
@@ -99,8 +99,7 @@ export interface OAuth2Provider {
|
|
|
99
99
|
*/
|
|
100
100
|
readonly metaModelName: string;
|
|
101
101
|
/**
|
|
102
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
103
|
-
* of their credentials. Public clients are incapable.
|
|
102
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
104
103
|
* @type {ClientTypeEnum}
|
|
105
104
|
* @memberof OAuth2Provider
|
|
106
105
|
*/
|
|
@@ -57,8 +57,7 @@ export interface OAuth2ProviderRequest {
|
|
|
57
57
|
*/
|
|
58
58
|
propertyMappings?: Array<string>;
|
|
59
59
|
/**
|
|
60
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
61
|
-
* of their credentials. Public clients are incapable.
|
|
60
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
62
61
|
* @type {ClientTypeEnum}
|
|
63
62
|
* @memberof OAuth2ProviderRequest
|
|
64
63
|
*/
|
|
@@ -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
|
|
|
@@ -57,8 +57,7 @@ export interface PatchedOAuth2ProviderRequest {
|
|
|
57
57
|
*/
|
|
58
58
|
propertyMappings?: Array<string>;
|
|
59
59
|
/**
|
|
60
|
-
* Confidential clients are capable of maintaining the confidentiality
|
|
61
|
-
* of their credentials. Public clients are incapable.
|
|
60
|
+
* Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
|
|
62
61
|
* @type {ClientTypeEnum}
|
|
63
62
|
* @memberof PatchedOAuth2ProviderRequest
|
|
64
63
|
*/
|
|
@@ -175,7 +175,25 @@ export interface SAMLProvider {
|
|
|
175
175
|
* @type {string}
|
|
176
176
|
* @memberof SAMLProvider
|
|
177
177
|
*/
|
|
178
|
-
readonly
|
|
178
|
+
readonly urlDownloadMetadata: string;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof SAMLProvider
|
|
183
|
+
*/
|
|
184
|
+
readonly urlSsoPost: string;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof SAMLProvider
|
|
189
|
+
*/
|
|
190
|
+
readonly urlSsoRedirect: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof SAMLProvider
|
|
195
|
+
*/
|
|
196
|
+
readonly urlSsoInit: string;
|
|
179
197
|
}
|
|
180
198
|
|
|
181
199
|
export function SAMLProviderFromJSON(json: any): SAMLProvider {
|
|
@@ -210,7 +228,10 @@ export function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
210
228
|
'signingKp': !exists(json, 'signing_kp') ? undefined : json['signing_kp'],
|
|
211
229
|
'verificationKp': !exists(json, 'verification_kp') ? undefined : json['verification_kp'],
|
|
212
230
|
'spBinding': !exists(json, 'sp_binding') ? undefined : SpBindingEnumFromJSON(json['sp_binding']),
|
|
213
|
-
'
|
|
231
|
+
'urlDownloadMetadata': json['url_download_metadata'],
|
|
232
|
+
'urlSsoPost': json['url_sso_post'],
|
|
233
|
+
'urlSsoRedirect': json['url_sso_redirect'],
|
|
234
|
+
'urlSsoInit': json['url_sso_init'],
|
|
214
235
|
};
|
|
215
236
|
}
|
|
216
237
|
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|