@goauthentik/api 2022.11.3-1671621213 → 2022.11.3-1671801250

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/StagesApi.d.ts +2 -0
  3. package/dist/apis/StagesApi.js +6 -0
  4. package/dist/esm/apis/StagesApi.d.ts +2 -0
  5. package/dist/esm/apis/StagesApi.js +6 -0
  6. package/dist/esm/models/Invitation.d.ts +13 -0
  7. package/dist/esm/models/Invitation.js +5 -0
  8. package/dist/esm/models/InvitationFlowObj.d.ts +122 -0
  9. package/dist/esm/models/InvitationFlowObj.js +64 -0
  10. package/dist/esm/models/InvitationRequest.d.ts +6 -0
  11. package/dist/esm/models/InvitationRequest.js +2 -0
  12. package/dist/esm/models/PatchedInvitationRequest.d.ts +6 -0
  13. package/dist/esm/models/PatchedInvitationRequest.js +2 -0
  14. package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +6 -0
  15. package/dist/esm/models/PatchedUserWriteStageRequest.js +2 -0
  16. package/dist/esm/models/UserWriteStage.d.ts +6 -0
  17. package/dist/esm/models/UserWriteStage.js +2 -0
  18. package/dist/esm/models/UserWriteStageRequest.d.ts +6 -0
  19. package/dist/esm/models/UserWriteStageRequest.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/Invitation.d.ts +13 -0
  23. package/dist/models/Invitation.js +5 -0
  24. package/dist/models/InvitationFlowObj.d.ts +122 -0
  25. package/dist/models/InvitationFlowObj.js +70 -0
  26. package/dist/models/InvitationRequest.d.ts +6 -0
  27. package/dist/models/InvitationRequest.js +2 -0
  28. package/dist/models/PatchedInvitationRequest.d.ts +6 -0
  29. package/dist/models/PatchedInvitationRequest.js +2 -0
  30. package/dist/models/PatchedUserWriteStageRequest.d.ts +6 -0
  31. package/dist/models/PatchedUserWriteStageRequest.js +2 -0
  32. package/dist/models/UserWriteStage.d.ts +6 -0
  33. package/dist/models/UserWriteStage.js +2 -0
  34. package/dist/models/UserWriteStageRequest.d.ts +6 -0
  35. package/dist/models/UserWriteStageRequest.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/StagesApi.ts +10 -0
  40. package/src/models/Invitation.ts +22 -0
  41. package/src/models/InvitationFlowObj.ts +206 -0
  42. package/src/models/InvitationRequest.ts +8 -0
  43. package/src/models/PatchedInvitationRequest.ts +8 -0
  44. package/src/models/PatchedUserWriteStageRequest.ts +8 -0
  45. package/src/models/UserWriteStage.ts +8 -0
  46. package/src/models/UserWriteStageRequest.ts +8 -0
  47. package/src/models/index.ts +1 -0
@@ -163,6 +163,7 @@ src/models/IntentEnum.ts
163
163
  src/models/InvalidResponseActionEnum.ts
164
164
  src/models/Invitation.ts
165
165
  src/models/InvitationCreatedBy.ts
166
+ src/models/InvitationFlowObj.ts
166
167
  src/models/InvitationRequest.ts
167
168
  src/models/InvitationStage.ts
168
169
  src/models/InvitationStageRequest.ts
@@ -421,6 +421,7 @@ export interface StagesInvitationInvitationsDestroyRequest {
421
421
  export interface StagesInvitationInvitationsListRequest {
422
422
  createdByUsername?: string;
423
423
  expires?: Date;
424
+ flowSlug?: string;
424
425
  name?: string;
425
426
  ordering?: string;
426
427
  page?: number;
@@ -652,6 +653,7 @@ export interface StagesUserWriteDestroyRequest {
652
653
  stageUuid: string;
653
654
  }
654
655
  export interface StagesUserWriteListRequest {
656
+ canCreateUsers?: boolean;
655
657
  createUsersAsInactive?: boolean;
656
658
  createUsersGroup?: string;
657
659
  name?: string;
@@ -3417,6 +3417,9 @@ class StagesApi extends runtime.BaseAPI {
3417
3417
  if (requestParameters.expires !== undefined) {
3418
3418
  queryParameters['expires'] = requestParameters.expires.toISOString();
3419
3419
  }
3420
+ if (requestParameters.flowSlug !== undefined) {
3421
+ queryParameters['flow__slug'] = requestParameters.flowSlug;
3422
+ }
3420
3423
  if (requestParameters.name !== undefined) {
3421
3424
  queryParameters['name'] = requestParameters.name;
3422
3425
  }
@@ -5358,6 +5361,9 @@ class StagesApi extends runtime.BaseAPI {
5358
5361
  stagesUserWriteListRaw(requestParameters, initOverrides) {
5359
5362
  return __awaiter(this, void 0, void 0, function* () {
5360
5363
  const queryParameters = {};
5364
+ if (requestParameters.canCreateUsers !== undefined) {
5365
+ queryParameters['can_create_users'] = requestParameters.canCreateUsers;
5366
+ }
5361
5367
  if (requestParameters.createUsersAsInactive !== undefined) {
5362
5368
  queryParameters['create_users_as_inactive'] = requestParameters.createUsersAsInactive;
5363
5369
  }
@@ -421,6 +421,7 @@ export interface StagesInvitationInvitationsDestroyRequest {
421
421
  export interface StagesInvitationInvitationsListRequest {
422
422
  createdByUsername?: string;
423
423
  expires?: Date;
424
+ flowSlug?: string;
424
425
  name?: string;
425
426
  ordering?: string;
426
427
  page?: number;
@@ -652,6 +653,7 @@ export interface StagesUserWriteDestroyRequest {
652
653
  stageUuid: string;
653
654
  }
654
655
  export interface StagesUserWriteListRequest {
656
+ canCreateUsers?: boolean;
655
657
  createUsersAsInactive?: boolean;
656
658
  createUsersGroup?: string;
657
659
  name?: string;
@@ -3414,6 +3414,9 @@ export class StagesApi extends runtime.BaseAPI {
3414
3414
  if (requestParameters.expires !== undefined) {
3415
3415
  queryParameters['expires'] = requestParameters.expires.toISOString();
3416
3416
  }
3417
+ if (requestParameters.flowSlug !== undefined) {
3418
+ queryParameters['flow__slug'] = requestParameters.flowSlug;
3419
+ }
3417
3420
  if (requestParameters.name !== undefined) {
3418
3421
  queryParameters['name'] = requestParameters.name;
3419
3422
  }
@@ -5355,6 +5358,9 @@ export class StagesApi extends runtime.BaseAPI {
5355
5358
  stagesUserWriteListRaw(requestParameters, initOverrides) {
5356
5359
  return __awaiter(this, void 0, void 0, function* () {
5357
5360
  const queryParameters = {};
5361
+ if (requestParameters.canCreateUsers !== undefined) {
5362
+ queryParameters['can_create_users'] = requestParameters.canCreateUsers;
5363
+ }
5358
5364
  if (requestParameters.createUsersAsInactive !== undefined) {
5359
5365
  queryParameters['create_users_as_inactive'] = requestParameters.createUsersAsInactive;
5360
5366
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { InvitationCreatedBy } from './InvitationCreatedBy';
13
+ import { InvitationFlowObj } from './InvitationFlowObj';
13
14
  /**
14
15
  * Invitation Serializer
15
16
  * @export
@@ -54,6 +55,18 @@ export interface Invitation {
54
55
  * @memberof Invitation
55
56
  */
56
57
  singleUse?: boolean;
58
+ /**
59
+ * When set, only the configured flow can use this invitation.
60
+ * @type {string}
61
+ * @memberof Invitation
62
+ */
63
+ flow?: string | null;
64
+ /**
65
+ *
66
+ * @type {InvitationFlowObj}
67
+ * @memberof Invitation
68
+ */
69
+ flowObj: InvitationFlowObj;
57
70
  }
58
71
  export declare function InvitationFromJSON(json: any): Invitation;
59
72
  export declare function InvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invitation;
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { InvitationCreatedByFromJSON, InvitationCreatedByToJSON, } from './InvitationCreatedBy';
16
+ import { InvitationFlowObjFromJSON, InvitationFlowObjToJSON, } from './InvitationFlowObj';
16
17
  export function InvitationFromJSON(json) {
17
18
  return InvitationFromJSONTyped(json, false);
18
19
  }
@@ -27,6 +28,8 @@ export function InvitationFromJSONTyped(json, ignoreDiscriminator) {
27
28
  'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
28
29
  'createdBy': InvitationCreatedByFromJSON(json['created_by']),
29
30
  'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
31
+ 'flow': !exists(json, 'flow') ? undefined : json['flow'],
32
+ 'flowObj': InvitationFlowObjFromJSON(json['flow_obj']),
30
33
  };
31
34
  }
32
35
  export function InvitationToJSON(value) {
@@ -42,5 +45,7 @@ export function InvitationToJSON(value) {
42
45
  'fixed_data': value.fixedData,
43
46
  'created_by': InvitationCreatedByToJSON(value.createdBy),
44
47
  'single_use': value.singleUse,
48
+ 'flow': value.flow,
49
+ 'flow_obj': InvitationFlowObjToJSON(value.flowObj),
45
50
  };
46
51
  }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.11.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AuthenticationEnum } from './AuthenticationEnum';
13
+ import { DeniedActionEnum } from './DeniedActionEnum';
14
+ import { FlowDesignationEnum } from './FlowDesignationEnum';
15
+ import { LayoutEnum } from './LayoutEnum';
16
+ import { PolicyEngineMode } from './PolicyEngineMode';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InvitationFlowObj
21
+ */
22
+ export interface InvitationFlowObj {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InvitationFlowObj
27
+ */
28
+ readonly pk: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof InvitationFlowObj
33
+ */
34
+ readonly policybindingmodelPtrId: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof InvitationFlowObj
39
+ */
40
+ name: string;
41
+ /**
42
+ * Visible in the URL.
43
+ * @type {string}
44
+ * @memberof InvitationFlowObj
45
+ */
46
+ slug: string;
47
+ /**
48
+ * Shown as the Title in Flow pages.
49
+ * @type {string}
50
+ * @memberof InvitationFlowObj
51
+ */
52
+ title: string;
53
+ /**
54
+ * Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.
55
+ * @type {FlowDesignationEnum}
56
+ * @memberof InvitationFlowObj
57
+ */
58
+ designation: FlowDesignationEnum | null;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof InvitationFlowObj
63
+ */
64
+ readonly background: string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof InvitationFlowObj
69
+ */
70
+ readonly stages: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof InvitationFlowObj
75
+ */
76
+ readonly policies: Array<string>;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof InvitationFlowObj
81
+ */
82
+ readonly cacheCount: number;
83
+ /**
84
+ *
85
+ * @type {PolicyEngineMode}
86
+ * @memberof InvitationFlowObj
87
+ */
88
+ policyEngineMode?: PolicyEngineMode;
89
+ /**
90
+ * Enable compatibility mode, increases compatibility with password managers on mobile devices.
91
+ * @type {boolean}
92
+ * @memberof InvitationFlowObj
93
+ */
94
+ compatibilityMode?: boolean;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof InvitationFlowObj
99
+ */
100
+ readonly exportUrl: string;
101
+ /**
102
+ *
103
+ * @type {LayoutEnum}
104
+ * @memberof InvitationFlowObj
105
+ */
106
+ layout?: LayoutEnum;
107
+ /**
108
+ * Configure what should happen when a flow denies access to a user.
109
+ * @type {DeniedActionEnum}
110
+ * @memberof InvitationFlowObj
111
+ */
112
+ deniedAction?: DeniedActionEnum | null;
113
+ /**
114
+ * Required level of authentication and authorization to access a flow.
115
+ * @type {AuthenticationEnum}
116
+ * @memberof InvitationFlowObj
117
+ */
118
+ authentication?: AuthenticationEnum | null;
119
+ }
120
+ export declare function InvitationFlowObjFromJSON(json: any): InvitationFlowObj;
121
+ export declare function InvitationFlowObjFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationFlowObj;
122
+ export declare function InvitationFlowObjToJSON(value?: InvitationFlowObj | null): any;
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.11.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ import { AuthenticationEnumFromJSON, AuthenticationEnumToJSON, } from './AuthenticationEnum';
16
+ import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
17
+ import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
18
+ import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
19
+ import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
20
+ export function InvitationFlowObjFromJSON(json) {
21
+ return InvitationFlowObjFromJSONTyped(json, false);
22
+ }
23
+ export function InvitationFlowObjFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'pk': json['pk'],
29
+ 'policybindingmodelPtrId': json['policybindingmodel_ptr_id'],
30
+ 'name': json['name'],
31
+ 'slug': json['slug'],
32
+ 'title': json['title'],
33
+ 'designation': FlowDesignationEnumFromJSON(json['designation']),
34
+ 'background': json['background'],
35
+ 'stages': json['stages'],
36
+ 'policies': json['policies'],
37
+ 'cacheCount': json['cache_count'],
38
+ 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
39
+ 'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
40
+ 'exportUrl': json['export_url'],
41
+ 'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
42
+ 'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
43
+ 'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
44
+ };
45
+ }
46
+ export function InvitationFlowObjToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'name': value.name,
55
+ 'slug': value.slug,
56
+ 'title': value.title,
57
+ 'designation': FlowDesignationEnumToJSON(value.designation),
58
+ 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
59
+ 'compatibility_mode': value.compatibilityMode,
60
+ 'layout': LayoutEnumToJSON(value.layout),
61
+ 'denied_action': DeniedActionEnumToJSON(value.deniedAction),
62
+ 'authentication': AuthenticationEnumToJSON(value.authentication),
63
+ };
64
+ }
@@ -41,6 +41,12 @@ export interface InvitationRequest {
41
41
  * @memberof InvitationRequest
42
42
  */
43
43
  singleUse?: boolean;
44
+ /**
45
+ * When set, only the configured flow can use this invitation.
46
+ * @type {string}
47
+ * @memberof InvitationRequest
48
+ */
49
+ flow?: string | null;
44
50
  }
45
51
  export declare function InvitationRequestFromJSON(json: any): InvitationRequest;
46
52
  export declare function InvitationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationRequest;
@@ -24,6 +24,7 @@ export function InvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
24
24
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
25
25
  'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
26
26
  'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
27
+ 'flow': !exists(json, 'flow') ? undefined : json['flow'],
27
28
  };
28
29
  }
29
30
  export function InvitationRequestToJSON(value) {
@@ -38,5 +39,6 @@ export function InvitationRequestToJSON(value) {
38
39
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
39
40
  'fixed_data': value.fixedData,
40
41
  'single_use': value.singleUse,
42
+ 'flow': value.flow,
41
43
  };
42
44
  }
@@ -41,6 +41,12 @@ export interface PatchedInvitationRequest {
41
41
  * @memberof PatchedInvitationRequest
42
42
  */
43
43
  singleUse?: boolean;
44
+ /**
45
+ * When set, only the configured flow can use this invitation.
46
+ * @type {string}
47
+ * @memberof PatchedInvitationRequest
48
+ */
49
+ flow?: string | null;
44
50
  }
45
51
  export declare function PatchedInvitationRequestFromJSON(json: any): PatchedInvitationRequest;
46
52
  export declare function PatchedInvitationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedInvitationRequest;
@@ -24,6 +24,7 @@ export function PatchedInvitationRequestFromJSONTyped(json, ignoreDiscriminator)
24
24
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
25
25
  'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
26
26
  'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
27
+ 'flow': !exists(json, 'flow') ? undefined : json['flow'],
27
28
  };
28
29
  }
29
30
  export function PatchedInvitationRequestToJSON(value) {
@@ -38,5 +39,6 @@ export function PatchedInvitationRequestToJSON(value) {
38
39
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
39
40
  'fixed_data': value.fixedData,
40
41
  'single_use': value.singleUse,
42
+ 'flow': value.flow,
41
43
  };
42
44
  }
@@ -40,6 +40,12 @@ export interface PatchedUserWriteStageRequest {
40
40
  * @memberof PatchedUserWriteStageRequest
41
41
  */
42
42
  createUsersGroup?: string | null;
43
+ /**
44
+ * When set, this stage can create users. If not enabled and no user is available, stage will fail.
45
+ * @type {boolean}
46
+ * @memberof PatchedUserWriteStageRequest
47
+ */
48
+ canCreateUsers?: boolean;
43
49
  /**
44
50
  *
45
51
  * @type {string}
@@ -25,6 +25,7 @@ export function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscrimina
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
26
26
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
27
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
+ 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
28
29
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
29
30
  };
30
31
  }
@@ -40,6 +41,7 @@ export function PatchedUserWriteStageRequestToJSON(value) {
40
41
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
41
42
  'create_users_as_inactive': value.createUsersAsInactive,
42
43
  'create_users_group': value.createUsersGroup,
44
+ 'can_create_users': value.canCreateUsers,
43
45
  'user_path_template': value.userPathTemplate,
44
46
  };
45
47
  }
@@ -70,6 +70,12 @@ export interface UserWriteStage {
70
70
  * @memberof UserWriteStage
71
71
  */
72
72
  createUsersGroup?: string | null;
73
+ /**
74
+ * When set, this stage can create users. If not enabled and no user is available, stage will fail.
75
+ * @type {boolean}
76
+ * @memberof UserWriteStage
77
+ */
78
+ canCreateUsers?: boolean;
73
79
  /**
74
80
  *
75
81
  * @type {string}
@@ -30,6 +30,7 @@ export function UserWriteStageFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
31
31
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
32
32
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
33
+ 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
33
34
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
34
35
  };
35
36
  }
@@ -45,6 +46,7 @@ export function UserWriteStageToJSON(value) {
45
46
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
46
47
  'create_users_as_inactive': value.createUsersAsInactive,
47
48
  'create_users_group': value.createUsersGroup,
49
+ 'can_create_users': value.canCreateUsers,
48
50
  'user_path_template': value.userPathTemplate,
49
51
  };
50
52
  }
@@ -40,6 +40,12 @@ export interface UserWriteStageRequest {
40
40
  * @memberof UserWriteStageRequest
41
41
  */
42
42
  createUsersGroup?: string | null;
43
+ /**
44
+ * When set, this stage can create users. If not enabled and no user is available, stage will fail.
45
+ * @type {boolean}
46
+ * @memberof UserWriteStageRequest
47
+ */
48
+ canCreateUsers?: boolean;
43
49
  /**
44
50
  *
45
51
  * @type {string}
@@ -25,6 +25,7 @@ export function UserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
26
26
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
27
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
+ 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
28
29
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
29
30
  };
30
31
  }
@@ -40,6 +41,7 @@ export function UserWriteStageRequestToJSON(value) {
40
41
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
41
42
  'create_users_as_inactive': value.createUsersAsInactive,
42
43
  'create_users_group': value.createUsersGroup,
44
+ 'can_create_users': value.canCreateUsers,
43
45
  'user_path_template': value.userPathTemplate,
44
46
  };
45
47
  }
@@ -140,6 +140,7 @@ export * from './IntentEnum';
140
140
  export * from './InvalidResponseActionEnum';
141
141
  export * from './Invitation';
142
142
  export * from './InvitationCreatedBy';
143
+ export * from './InvitationFlowObj';
143
144
  export * from './InvitationRequest';
144
145
  export * from './InvitationStage';
145
146
  export * from './InvitationStageRequest';
@@ -142,6 +142,7 @@ export * from './IntentEnum';
142
142
  export * from './InvalidResponseActionEnum';
143
143
  export * from './Invitation';
144
144
  export * from './InvitationCreatedBy';
145
+ export * from './InvitationFlowObj';
145
146
  export * from './InvitationRequest';
146
147
  export * from './InvitationStage';
147
148
  export * from './InvitationStageRequest';
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { InvitationCreatedBy } from './InvitationCreatedBy';
13
+ import { InvitationFlowObj } from './InvitationFlowObj';
13
14
  /**
14
15
  * Invitation Serializer
15
16
  * @export
@@ -54,6 +55,18 @@ export interface Invitation {
54
55
  * @memberof Invitation
55
56
  */
56
57
  singleUse?: boolean;
58
+ /**
59
+ * When set, only the configured flow can use this invitation.
60
+ * @type {string}
61
+ * @memberof Invitation
62
+ */
63
+ flow?: string | null;
64
+ /**
65
+ *
66
+ * @type {InvitationFlowObj}
67
+ * @memberof Invitation
68
+ */
69
+ flowObj: InvitationFlowObj;
57
70
  }
58
71
  export declare function InvitationFromJSON(json: any): Invitation;
59
72
  export declare function InvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invitation;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.InvitationToJSON = exports.InvitationFromJSONTyped = exports.InvitationFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const InvitationCreatedBy_1 = require("./InvitationCreatedBy");
19
+ const InvitationFlowObj_1 = require("./InvitationFlowObj");
19
20
  function InvitationFromJSON(json) {
20
21
  return InvitationFromJSONTyped(json, false);
21
22
  }
@@ -31,6 +32,8 @@ function InvitationFromJSONTyped(json, ignoreDiscriminator) {
31
32
  'fixedData': !(0, runtime_1.exists)(json, 'fixed_data') ? undefined : json['fixed_data'],
32
33
  'createdBy': (0, InvitationCreatedBy_1.InvitationCreatedByFromJSON)(json['created_by']),
33
34
  'singleUse': !(0, runtime_1.exists)(json, 'single_use') ? undefined : json['single_use'],
35
+ 'flow': !(0, runtime_1.exists)(json, 'flow') ? undefined : json['flow'],
36
+ 'flowObj': (0, InvitationFlowObj_1.InvitationFlowObjFromJSON)(json['flow_obj']),
34
37
  };
35
38
  }
36
39
  exports.InvitationFromJSONTyped = InvitationFromJSONTyped;
@@ -47,6 +50,8 @@ function InvitationToJSON(value) {
47
50
  'fixed_data': value.fixedData,
48
51
  'created_by': (0, InvitationCreatedBy_1.InvitationCreatedByToJSON)(value.createdBy),
49
52
  'single_use': value.singleUse,
53
+ 'flow': value.flow,
54
+ 'flow_obj': (0, InvitationFlowObj_1.InvitationFlowObjToJSON)(value.flowObj),
50
55
  };
51
56
  }
52
57
  exports.InvitationToJSON = InvitationToJSON;
@@ -0,0 +1,122 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.11.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AuthenticationEnum } from './AuthenticationEnum';
13
+ import { DeniedActionEnum } from './DeniedActionEnum';
14
+ import { FlowDesignationEnum } from './FlowDesignationEnum';
15
+ import { LayoutEnum } from './LayoutEnum';
16
+ import { PolicyEngineMode } from './PolicyEngineMode';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InvitationFlowObj
21
+ */
22
+ export interface InvitationFlowObj {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InvitationFlowObj
27
+ */
28
+ readonly pk: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof InvitationFlowObj
33
+ */
34
+ readonly policybindingmodelPtrId: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof InvitationFlowObj
39
+ */
40
+ name: string;
41
+ /**
42
+ * Visible in the URL.
43
+ * @type {string}
44
+ * @memberof InvitationFlowObj
45
+ */
46
+ slug: string;
47
+ /**
48
+ * Shown as the Title in Flow pages.
49
+ * @type {string}
50
+ * @memberof InvitationFlowObj
51
+ */
52
+ title: string;
53
+ /**
54
+ * Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.
55
+ * @type {FlowDesignationEnum}
56
+ * @memberof InvitationFlowObj
57
+ */
58
+ designation: FlowDesignationEnum | null;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof InvitationFlowObj
63
+ */
64
+ readonly background: string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof InvitationFlowObj
69
+ */
70
+ readonly stages: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof InvitationFlowObj
75
+ */
76
+ readonly policies: Array<string>;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof InvitationFlowObj
81
+ */
82
+ readonly cacheCount: number;
83
+ /**
84
+ *
85
+ * @type {PolicyEngineMode}
86
+ * @memberof InvitationFlowObj
87
+ */
88
+ policyEngineMode?: PolicyEngineMode;
89
+ /**
90
+ * Enable compatibility mode, increases compatibility with password managers on mobile devices.
91
+ * @type {boolean}
92
+ * @memberof InvitationFlowObj
93
+ */
94
+ compatibilityMode?: boolean;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof InvitationFlowObj
99
+ */
100
+ readonly exportUrl: string;
101
+ /**
102
+ *
103
+ * @type {LayoutEnum}
104
+ * @memberof InvitationFlowObj
105
+ */
106
+ layout?: LayoutEnum;
107
+ /**
108
+ * Configure what should happen when a flow denies access to a user.
109
+ * @type {DeniedActionEnum}
110
+ * @memberof InvitationFlowObj
111
+ */
112
+ deniedAction?: DeniedActionEnum | null;
113
+ /**
114
+ * Required level of authentication and authorization to access a flow.
115
+ * @type {AuthenticationEnum}
116
+ * @memberof InvitationFlowObj
117
+ */
118
+ authentication?: AuthenticationEnum | null;
119
+ }
120
+ export declare function InvitationFlowObjFromJSON(json: any): InvitationFlowObj;
121
+ export declare function InvitationFlowObjFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationFlowObj;
122
+ export declare function InvitationFlowObjToJSON(value?: InvitationFlowObj | null): any;