@goauthentik/api 2022.6.3-1656197218 → 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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/FlowsApi.d.ts +10 -0
  3. package/dist/apis/FlowsApi.js +12 -1
  4. package/dist/esm/apis/FlowsApi.d.ts +10 -0
  5. package/dist/esm/apis/FlowsApi.js +11 -0
  6. package/dist/esm/models/ConsentChallenge.d.ts +7 -1
  7. package/dist/esm/models/ConsentChallenge.js +3 -1
  8. package/dist/esm/models/DeniedActionEnum.d.ts +24 -0
  9. package/dist/esm/models/DeniedActionEnum.js +31 -0
  10. package/dist/esm/models/Flow.d.ts +7 -0
  11. package/dist/esm/models/Flow.js +3 -0
  12. package/dist/esm/models/FlowRequest.d.ts +7 -0
  13. package/dist/esm/models/FlowRequest.js +3 -0
  14. package/dist/esm/models/PatchedFlowRequest.d.ts +7 -0
  15. package/dist/esm/models/PatchedFlowRequest.js +3 -0
  16. package/dist/esm/models/SAMLProvider.d.ts +19 -1
  17. package/dist/esm/models/SAMLProvider.js +4 -1
  18. package/dist/esm/models/UserConsent.d.ts +6 -0
  19. package/dist/esm/models/UserConsent.js +2 -0
  20. package/dist/esm/models/index.d.ts +1 -0
  21. package/dist/esm/models/index.js +1 -0
  22. package/dist/models/ConsentChallenge.d.ts +7 -1
  23. package/dist/models/ConsentChallenge.js +3 -1
  24. package/dist/models/DeniedActionEnum.d.ts +24 -0
  25. package/dist/models/DeniedActionEnum.js +37 -0
  26. package/dist/models/Flow.d.ts +7 -0
  27. package/dist/models/Flow.js +3 -0
  28. package/dist/models/FlowRequest.d.ts +7 -0
  29. package/dist/models/FlowRequest.js +3 -0
  30. package/dist/models/PatchedFlowRequest.d.ts +7 -0
  31. package/dist/models/PatchedFlowRequest.js +3 -0
  32. package/dist/models/SAMLProvider.d.ts +19 -1
  33. package/dist/models/SAMLProvider.js +4 -1
  34. package/dist/models/UserConsent.d.ts +6 -0
  35. package/dist/models/UserConsent.js +2 -0
  36. package/dist/models/index.d.ts +1 -0
  37. package/dist/models/index.js +1 -0
  38. package/package.json +1 -1
  39. package/src/apis/FlowsApi.ts +14 -0
  40. package/src/models/ConsentChallenge.ts +10 -2
  41. package/src/models/DeniedActionEnum.ts +39 -0
  42. package/src/models/Flow.ts +14 -0
  43. package/src/models/FlowRequest.ts +14 -0
  44. package/src/models/PatchedFlowRequest.ts +14 -0
  45. package/src/models/SAMLProvider.ts +23 -2
  46. package/src/models/UserConsent.ts +8 -0
  47. package/src/models/index.ts +1 -0
@@ -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
  */
@@ -62,13 +62,19 @@ export interface ConsentChallenge {
62
62
  * @type {string}
63
63
  * @memberof ConsentChallenge
64
64
  */
65
- headerText: string;
65
+ headerText?: string;
66
66
  /**
67
67
  *
68
68
  * @type {Array<Permission>}
69
69
  * @memberof ConsentChallenge
70
70
  */
71
71
  permissions: Array<Permission>;
72
+ /**
73
+ *
74
+ * @type {Array<Permission>}
75
+ * @memberof ConsentChallenge
76
+ */
77
+ additionalPermissions: Array<Permission>;
72
78
  }
73
79
  export declare function ConsentChallengeFromJSON(json: any): ConsentChallenge;
74
80
  export declare function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallenge;
@@ -29,8 +29,9 @@ export function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
30
30
  'pendingUser': json['pending_user'],
31
31
  'pendingUserAvatar': json['pending_user_avatar'],
32
- 'headerText': json['header_text'],
32
+ 'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
33
33
  'permissions': (json['permissions'].map(PermissionFromJSON)),
34
+ 'additionalPermissions': (json['additional_permissions'].map(PermissionFromJSON)),
34
35
  };
35
36
  }
36
37
  export function ConsentChallengeToJSON(value) {
@@ -49,5 +50,6 @@ export function ConsentChallengeToJSON(value) {
49
50
  'pending_user_avatar': value.pendingUserAvatar,
50
51
  'header_text': value.headerText,
51
52
  'permissions': (value.permissions.map(PermissionToJSON)),
53
+ 'additional_permissions': (value.additionalPermissions.map(PermissionToJSON)),
52
54
  };
53
55
  }
@@ -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
  }
@@ -155,7 +155,25 @@ export interface SAMLProvider {
155
155
  * @type {string}
156
156
  * @memberof SAMLProvider
157
157
  */
158
- readonly metadataDownloadUrl: string;
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
- 'metadataDownloadUrl': json['metadata_download_url'],
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) {
@@ -41,6 +41,12 @@ export interface UserConsent {
41
41
  * @memberof UserConsent
42
42
  */
43
43
  application: Application;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof UserConsent
48
+ */
49
+ permissions?: string;
44
50
  }
45
51
  export declare function UserConsentFromJSON(json: any): UserConsent;
46
52
  export declare function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsent;
@@ -26,6 +26,7 @@ export function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
27
27
  'user': UserFromJSON(json['user']),
28
28
  'application': ApplicationFromJSON(json['application']),
29
+ 'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
29
30
  };
30
31
  }
31
32
  export function UserConsentToJSON(value) {
@@ -39,5 +40,6 @@ export function UserConsentToJSON(value) {
39
40
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
40
41
  'user': UserToJSON(value.user),
41
42
  'application': ApplicationToJSON(value.application),
43
+ 'permissions': value.permissions,
42
44
  };
43
45
  }
@@ -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';
@@ -62,13 +62,19 @@ export interface ConsentChallenge {
62
62
  * @type {string}
63
63
  * @memberof ConsentChallenge
64
64
  */
65
- headerText: string;
65
+ headerText?: string;
66
66
  /**
67
67
  *
68
68
  * @type {Array<Permission>}
69
69
  * @memberof ConsentChallenge
70
70
  */
71
71
  permissions: Array<Permission>;
72
+ /**
73
+ *
74
+ * @type {Array<Permission>}
75
+ * @memberof ConsentChallenge
76
+ */
77
+ additionalPermissions: Array<Permission>;
72
78
  }
73
79
  export declare function ConsentChallengeFromJSON(json: any): ConsentChallenge;
74
80
  export declare function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallenge;
@@ -33,8 +33,9 @@ function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
34
34
  'pendingUser': json['pending_user'],
35
35
  'pendingUserAvatar': json['pending_user_avatar'],
36
- 'headerText': json['header_text'],
36
+ 'headerText': !(0, runtime_1.exists)(json, 'header_text') ? undefined : json['header_text'],
37
37
  'permissions': (json['permissions'].map(Permission_1.PermissionFromJSON)),
38
+ 'additionalPermissions': (json['additional_permissions'].map(Permission_1.PermissionFromJSON)),
38
39
  };
39
40
  }
40
41
  exports.ConsentChallengeFromJSONTyped = ConsentChallengeFromJSONTyped;
@@ -54,6 +55,7 @@ function ConsentChallengeToJSON(value) {
54
55
  'pending_user_avatar': value.pendingUserAvatar,
55
56
  'header_text': value.headerText,
56
57
  'permissions': (value.permissions.map(Permission_1.PermissionToJSON)),
58
+ 'additional_permissions': (value.additionalPermissions.map(Permission_1.PermissionToJSON)),
57
59
  };
58
60
  }
59
61
  exports.ConsentChallengeToJSON = ConsentChallengeToJSON;
@@ -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;
@@ -155,7 +155,25 @@ export interface SAMLProvider {
155
155
  * @type {string}
156
156
  * @memberof SAMLProvider
157
157
  */
158
- readonly metadataDownloadUrl: string;
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
- 'metadataDownloadUrl': json['metadata_download_url'],
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;
@@ -41,6 +41,12 @@ export interface UserConsent {
41
41
  * @memberof UserConsent
42
42
  */
43
43
  application: Application;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof UserConsent
48
+ */
49
+ permissions?: string;
44
50
  }
45
51
  export declare function UserConsentFromJSON(json: any): UserConsent;
46
52
  export declare function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsent;
@@ -30,6 +30,7 @@ function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
31
31
  'user': (0, User_1.UserFromJSON)(json['user']),
32
32
  'application': (0, Application_1.ApplicationFromJSON)(json['application']),
33
+ 'permissions': !(0, runtime_1.exists)(json, 'permissions') ? undefined : json['permissions'],
33
34
  };
34
35
  }
35
36
  exports.UserConsentFromJSONTyped = UserConsentFromJSONTyped;
@@ -44,6 +45,7 @@ function UserConsentToJSON(value) {
44
45
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
45
46
  'user': (0, User_1.UserToJSON)(value.user),
46
47
  'application': (0, Application_1.ApplicationToJSON)(value.application),
48
+ 'permissions': value.permissions,
47
49
  };
48
50
  }
49
51
  exports.UserConsentToJSON = UserConsentToJSON;
@@ -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-1656197218",
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
  */
@@ -85,13 +85,19 @@ export interface ConsentChallenge {
85
85
  * @type {string}
86
86
  * @memberof ConsentChallenge
87
87
  */
88
- headerText: string;
88
+ headerText?: string;
89
89
  /**
90
90
  *
91
91
  * @type {Array<Permission>}
92
92
  * @memberof ConsentChallenge
93
93
  */
94
94
  permissions: Array<Permission>;
95
+ /**
96
+ *
97
+ * @type {Array<Permission>}
98
+ * @memberof ConsentChallenge
99
+ */
100
+ additionalPermissions: Array<Permission>;
95
101
  }
96
102
 
97
103
  export function ConsentChallengeFromJSON(json: any): ConsentChallenge {
@@ -110,8 +116,9 @@ export function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
110
116
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
111
117
  'pendingUser': json['pending_user'],
112
118
  'pendingUserAvatar': json['pending_user_avatar'],
113
- 'headerText': json['header_text'],
119
+ 'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
114
120
  'permissions': ((json['permissions'] as Array<any>).map(PermissionFromJSON)),
121
+ 'additionalPermissions': ((json['additional_permissions'] as Array<any>).map(PermissionFromJSON)),
115
122
  };
116
123
  }
117
124
 
@@ -132,6 +139,7 @@ export function ConsentChallengeToJSON(value?: ConsentChallenge | null): any {
132
139
  'pending_user_avatar': value.pendingUserAvatar,
133
140
  'header_text': value.headerText,
134
141
  'permissions': ((value.permissions as Array<any>).map(PermissionToJSON)),
142
+ 'additional_permissions': ((value.additionalPermissions as Array<any>).map(PermissionToJSON)),
135
143
  };
136
144
  }
137
145
 
@@ -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
 
@@ -175,7 +175,25 @@ export interface SAMLProvider {
175
175
  * @type {string}
176
176
  * @memberof SAMLProvider
177
177
  */
178
- readonly metadataDownloadUrl: string;
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
- 'metadataDownloadUrl': json['metadata_download_url'],
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
 
@@ -56,6 +56,12 @@ export interface UserConsent {
56
56
  * @memberof UserConsent
57
57
  */
58
58
  application: Application;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof UserConsent
63
+ */
64
+ permissions?: string;
59
65
  }
60
66
 
61
67
  export function UserConsentFromJSON(json: any): UserConsent {
@@ -72,6 +78,7 @@ export function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean
72
78
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
73
79
  'user': UserFromJSON(json['user']),
74
80
  'application': ApplicationFromJSON(json['application']),
81
+ 'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
75
82
  };
76
83
  }
77
84
 
@@ -87,6 +94,7 @@ export function UserConsentToJSON(value?: UserConsent | null): any {
87
94
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
88
95
  'user': UserToJSON(value.user),
89
96
  'application': ApplicationToJSON(value.application),
97
+ 'permissions': value.permissions,
90
98
  };
91
99
  }
92
100
 
@@ -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';