Skip to content

Commit 9178bf8

Browse files
Update API Client
#### What's Changed --- ##### `GET` /stages/identification/{stage_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ##### `PUT` /stages/identification/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ##### `PATCH` /stages/identification/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ##### `POST` /stages/identification/ ###### Request: Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered. ##### `GET` /stages/identification/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > IdentificationStage Serializer * Added property `pretend_user_exists` (boolean) > When enabled, the stage will succeed and continue even when incorrect user info is entered.
1 parent 9e37784 commit 9178bf8

8 files changed

+36
-6
lines changed

authentikClient/Classes/OpenAPIs/Models/IdentificationStage.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ public struct IdentificationStage: Codable, JSONEncodable, Hashable {
4141
/** Specify which sources should be shown. */
4242
public var sources: [UUID]?
4343
public var showSourceLabels: Bool?
44+
/** When enabled, the stage will succeed and continue even when incorrect user info is entered. */
45+
public var pretendUserExists: Bool?
4446

45-
public init(pk: UUID, name: String, component: String, verboseName: String, verboseNamePlural: String, metaModelName: String, flowSet: [FlowSet]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil) {
47+
public init(pk: UUID, name: String, component: String, verboseName: String, verboseNamePlural: String, metaModelName: String, flowSet: [FlowSet]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil, pretendUserExists: Bool? = nil) {
4648
self.pk = pk
4749
self.name = name
4850
self.component = component
@@ -59,6 +61,7 @@ public struct IdentificationStage: Codable, JSONEncodable, Hashable {
5961
self.passwordlessFlow = passwordlessFlow
6062
self.sources = sources
6163
self.showSourceLabels = showSourceLabels
64+
self.pretendUserExists = pretendUserExists
6265
}
6366

6467
public enum CodingKeys: String, CodingKey, CaseIterable {
@@ -78,6 +81,7 @@ public struct IdentificationStage: Codable, JSONEncodable, Hashable {
7881
case passwordlessFlow = "passwordless_flow"
7982
case sources
8083
case showSourceLabels = "show_source_labels"
84+
case pretendUserExists = "pretend_user_exists"
8185
}
8286

8387
// Encodable protocol methods
@@ -100,6 +104,7 @@ public struct IdentificationStage: Codable, JSONEncodable, Hashable {
100104
try container.encodeIfPresent(passwordlessFlow, forKey: .passwordlessFlow)
101105
try container.encodeIfPresent(sources, forKey: .sources)
102106
try container.encodeIfPresent(showSourceLabels, forKey: .showSourceLabels)
107+
try container.encodeIfPresent(pretendUserExists, forKey: .pretendUserExists)
103108
}
104109
}
105110

authentikClient/Classes/OpenAPIs/Models/IdentificationStageRequest.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public struct IdentificationStageRequest: Codable, JSONEncodable, Hashable {
3232
/** Specify which sources should be shown. */
3333
public var sources: [UUID]?
3434
public var showSourceLabels: Bool?
35+
/** When enabled, the stage will succeed and continue even when incorrect user info is entered. */
36+
public var pretendUserExists: Bool?
3537

36-
public init(name: String, flowSet: [FlowSetRequest]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil) {
38+
public init(name: String, flowSet: [FlowSetRequest]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil, pretendUserExists: Bool? = nil) {
3739
self.name = name
3840
self.flowSet = flowSet
3941
self.userFields = userFields
@@ -45,6 +47,7 @@ public struct IdentificationStageRequest: Codable, JSONEncodable, Hashable {
4547
self.passwordlessFlow = passwordlessFlow
4648
self.sources = sources
4749
self.showSourceLabels = showSourceLabels
50+
self.pretendUserExists = pretendUserExists
4851
}
4952

5053
public enum CodingKeys: String, CodingKey, CaseIterable {
@@ -59,6 +62,7 @@ public struct IdentificationStageRequest: Codable, JSONEncodable, Hashable {
5962
case passwordlessFlow = "passwordless_flow"
6063
case sources
6164
case showSourceLabels = "show_source_labels"
65+
case pretendUserExists = "pretend_user_exists"
6266
}
6367

6468
// Encodable protocol methods
@@ -76,6 +80,7 @@ public struct IdentificationStageRequest: Codable, JSONEncodable, Hashable {
7680
try container.encodeIfPresent(passwordlessFlow, forKey: .passwordlessFlow)
7781
try container.encodeIfPresent(sources, forKey: .sources)
7882
try container.encodeIfPresent(showSourceLabels, forKey: .showSourceLabels)
83+
try container.encodeIfPresent(pretendUserExists, forKey: .pretendUserExists)
7984
}
8085
}
8186

authentikClient/Classes/OpenAPIs/Models/PatchedIdentificationStageRequest.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public struct PatchedIdentificationStageRequest: Codable, JSONEncodable, Hashabl
3232
/** Specify which sources should be shown. */
3333
public var sources: [UUID]?
3434
public var showSourceLabels: Bool?
35+
/** When enabled, the stage will succeed and continue even when incorrect user info is entered. */
36+
public var pretendUserExists: Bool?
3537

36-
public init(name: String? = nil, flowSet: [FlowSetRequest]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil) {
38+
public init(name: String? = nil, flowSet: [FlowSetRequest]? = nil, userFields: [UserFieldsEnum]? = nil, passwordStage: UUID? = nil, caseInsensitiveMatching: Bool? = nil, showMatchedUser: Bool? = nil, enrollmentFlow: UUID? = nil, recoveryFlow: UUID? = nil, passwordlessFlow: UUID? = nil, sources: [UUID]? = nil, showSourceLabels: Bool? = nil, pretendUserExists: Bool? = nil) {
3739
self.name = name
3840
self.flowSet = flowSet
3941
self.userFields = userFields
@@ -45,6 +47,7 @@ public struct PatchedIdentificationStageRequest: Codable, JSONEncodable, Hashabl
4547
self.passwordlessFlow = passwordlessFlow
4648
self.sources = sources
4749
self.showSourceLabels = showSourceLabels
50+
self.pretendUserExists = pretendUserExists
4851
}
4952

5053
public enum CodingKeys: String, CodingKey, CaseIterable {
@@ -59,6 +62,7 @@ public struct PatchedIdentificationStageRequest: Codable, JSONEncodable, Hashabl
5962
case passwordlessFlow = "passwordless_flow"
6063
case sources
6164
case showSourceLabels = "show_source_labels"
65+
case pretendUserExists = "pretend_user_exists"
6266
}
6367

6468
// Encodable protocol methods
@@ -76,6 +80,7 @@ public struct PatchedIdentificationStageRequest: Codable, JSONEncodable, Hashabl
7680
try container.encodeIfPresent(passwordlessFlow, forKey: .passwordlessFlow)
7781
try container.encodeIfPresent(sources, forKey: .sources)
7882
try container.encodeIfPresent(showSourceLabels, forKey: .showSourceLabels)
83+
try container.encodeIfPresent(pretendUserExists, forKey: .pretendUserExists)
7984
}
8085
}
8186

docs/IdentificationStage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**passwordlessFlow** | **UUID** | Optional passwordless flow, which is linked at the bottom of the page. | [optional]
2020
**sources** | **[UUID]** | Specify which sources should be shown. | [optional]
2121
**showSourceLabels** | **Bool** | | [optional]
22+
**pretendUserExists** | **Bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional]
2223

2324
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2425

docs/IdentificationStageRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**passwordlessFlow** | **UUID** | Optional passwordless flow, which is linked at the bottom of the page. | [optional]
1515
**sources** | **[UUID]** | Specify which sources should be shown. | [optional]
1616
**showSourceLabels** | **Bool** | | [optional]
17+
**pretendUserExists** | **Bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional]
1718

1819
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1920

docs/PatchedIdentificationStageRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**passwordlessFlow** | **UUID** | Optional passwordless flow, which is linked at the bottom of the page. | [optional]
1515
**sources** | **[UUID]** | Specify which sources should be shown. | [optional]
1616
**showSourceLabels** | **Bool** | | [optional]
17+
**pretendUserExists** | **Bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional]
1718

1819
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1920

docs/StagesAPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4673,7 +4673,7 @@ IdentificationStage Viewset
46734673
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
46744674
import authentikClient
46754675

4676-
let identificationStageRequest = IdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false) // IdentificationStageRequest |
4676+
let identificationStageRequest = IdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false, pretendUserExists: false) // IdentificationStageRequest |
46774677

46784678
StagesAPI.stagesIdentificationCreate(identificationStageRequest: identificationStageRequest) { (response, error) in
46794679
guard error == nil else {
@@ -4843,7 +4843,7 @@ IdentificationStage Viewset
48434843
import authentikClient
48444844

48454845
let stageUuid = 987 // UUID | A UUID string identifying this Identification Stage.
4846-
let patchedIdentificationStageRequest = PatchedIdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false) // PatchedIdentificationStageRequest | (optional)
4846+
let patchedIdentificationStageRequest = PatchedIdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false, pretendUserExists: false) // PatchedIdentificationStageRequest | (optional)
48474847

48484848
StagesAPI.stagesIdentificationPartialUpdate(stageUuid: stageUuid, patchedIdentificationStageRequest: patchedIdentificationStageRequest) { (response, error) in
48494849
guard error == nil else {
@@ -4943,7 +4943,7 @@ IdentificationStage Viewset
49434943
import authentikClient
49444944

49454945
let stageUuid = 987 // UUID | A UUID string identifying this Identification Stage.
4946-
let identificationStageRequest = IdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false) // IdentificationStageRequest |
4946+
let identificationStageRequest = IdentificationStageRequest(name: "name_example", flowSet: [FlowSetRequest(name: "name_example", slug: "slug_example", title: "title_example", designation: FlowDesignationEnum(), policyEngineMode: PolicyEngineMode(), compatibilityMode: false, layout: LayoutEnum(), deniedAction: DeniedActionEnum())], userFields: [UserFieldsEnum()], passwordStage: 123, caseInsensitiveMatching: false, showMatchedUser: false, enrollmentFlow: 123, recoveryFlow: 123, passwordlessFlow: 123, sources: [123], showSourceLabels: false, pretendUserExists: false) // IdentificationStageRequest |
49474947

49484948
StagesAPI.stagesIdentificationUpdate(stageUuid: stageUuid, identificationStageRequest: identificationStageRequest) { (response, error) in
49494949
guard error == nil else {

schema.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32013,6 +32013,10 @@ components:
3201332013
description: Specify which sources should be shown.
3201432014
show_source_labels:
3201532015
type: boolean
32016+
pretend_user_exists:
32017+
type: boolean
32018+
description: When enabled, the stage will succeed and continue even when
32019+
incorrect user info is entered.
3201632020
required:
3201732021
- component
3201832022
- meta_model_name
@@ -32077,6 +32081,10 @@ components:
3207732081
description: Specify which sources should be shown.
3207832082
show_source_labels:
3207932083
type: boolean
32084+
pretend_user_exists:
32085+
type: boolean
32086+
description: When enabled, the stage will succeed and continue even when
32087+
incorrect user info is entered.
3208032088
required:
3208132089
- name
3208232090
InstallID:
@@ -36560,6 +36568,10 @@ components:
3656036568
description: Specify which sources should be shown.
3656136569
show_source_labels:
3656236570
type: boolean
36571+
pretend_user_exists:
36572+
type: boolean
36573+
description: When enabled, the stage will succeed and continue even when
36574+
incorrect user info is entered.
3656336575
PatchedInvitationRequest:
3656436576
type: object
3656536577
description: Invitation Serializer

0 commit comments

Comments
 (0)