Skip to content

Commit 9e37784

Browse files
Update API Client
#### What's Changed --- ##### `GET` /stages/authenticator/totp/{stage_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ##### `PUT` /stages/authenticator/totp/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ##### `PATCH` /stages/authenticator/totp/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ##### `POST` /stages/authenticator/totp/ ###### Request: Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ##### `GET` /stages/authenticator/totp/ ###### Parameters: Changed: `digits` in `query` > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > AuthenticatorTOTPStage Serializer * Changed property `digits` (integer -> string) > * `6` - 6 digits, widely compatible > * `8` - 8 digits, not compatible with apps like Google Authenticator
1 parent 8ddd126 commit 9e37784

File tree

12 files changed

+158
-51
lines changed

12 files changed

+158
-51
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ authentikClient/Classes/OpenAPIs/Models/StaticDeviceRequest.swift
474474
authentikClient/Classes/OpenAPIs/Models/StaticDeviceToken.swift
475475
authentikClient/Classes/OpenAPIs/Models/StaticDeviceTokenRequest.swift
476476
authentikClient/Classes/OpenAPIs/Models/SubModeEnum.swift
477-
authentikClient/Classes/OpenAPIs/Models/System.swift
478-
authentikClient/Classes/OpenAPIs/Models/SystemRuntime.swift
477+
authentikClient/Classes/OpenAPIs/Models/SystemInfo.swift
478+
authentikClient/Classes/OpenAPIs/Models/SystemInfoRuntime.swift
479479
authentikClient/Classes/OpenAPIs/Models/TOTPDevice.swift
480480
authentikClient/Classes/OpenAPIs/Models/TOTPDeviceRequest.swift
481481
authentikClient/Classes/OpenAPIs/Models/Task.swift
@@ -999,8 +999,8 @@ docs/StaticDeviceRequest.md
999999
docs/StaticDeviceToken.md
10001000
docs/StaticDeviceTokenRequest.md
10011001
docs/SubModeEnum.md
1002-
docs/System.md
1003-
docs/SystemRuntime.md
1002+
docs/SystemInfo.md
1003+
docs/SystemInfoRuntime.md
10041004
docs/TOTPDevice.md
10051005
docs/TOTPDeviceRequest.md
10061006
docs/Task.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,8 +1138,8 @@ Class | Method | HTTP request | Description
11381138
- [StaticDeviceToken](docs/StaticDeviceToken.md)
11391139
- [StaticDeviceTokenRequest](docs/StaticDeviceTokenRequest.md)
11401140
- [SubModeEnum](docs/SubModeEnum.md)
1141-
- [System](docs/System.md)
1142-
- [SystemRuntime](docs/SystemRuntime.md)
1141+
- [SystemInfo](docs/SystemInfo.md)
1142+
- [SystemInfoRuntime](docs/SystemInfoRuntime.md)
11431143
- [TOTPDevice](docs/TOTPDevice.md)
11441144
- [TOTPDeviceRequest](docs/TOTPDeviceRequest.md)
11451145
- [Task](docs/Task.md)

authentikClient/Classes/OpenAPIs/APIs/AdminAPI.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ open class AdminAPI {
147147
- parameter completion: completion handler to receive the data and the error objects
148148
*/
149149
@discardableResult
150-
open class func adminSystemCreate(apiResponseQueue: DispatchQueue = authentikClientAPI.apiResponseQueue, completion: @escaping ((_ data: System?, _ error: Error?) -> Void)) -> RequestTask {
150+
open class func adminSystemCreate(apiResponseQueue: DispatchQueue = authentikClientAPI.apiResponseQueue, completion: @escaping ((_ data: SystemInfo?, _ error: Error?) -> Void)) -> RequestTask {
151151
return adminSystemCreateWithRequestBuilder().execute(apiResponseQueue) { result in
152152
switch result {
153153
case let .success(response):
@@ -164,9 +164,9 @@ open class AdminAPI {
164164
- API Key:
165165
- type: apiKey Authorization
166166
- name: authentik
167-
- returns: RequestBuilder<System>
167+
- returns: RequestBuilder<SystemInfo>
168168
*/
169-
open class func adminSystemCreateWithRequestBuilder() -> RequestBuilder<System> {
169+
open class func adminSystemCreateWithRequestBuilder() -> RequestBuilder<SystemInfo> {
170170
let localVariablePath = "/admin/system/"
171171
let localVariableURLString = authentikClientAPI.basePath + localVariablePath
172172
let localVariableParameters: [String: Any]? = nil
@@ -179,7 +179,7 @@ open class AdminAPI {
179179

180180
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
181181

182-
let localVariableRequestBuilder: RequestBuilder<System>.Type = authentikClientAPI.requestBuilderFactory.getBuilder()
182+
let localVariableRequestBuilder: RequestBuilder<SystemInfo>.Type = authentikClientAPI.requestBuilderFactory.getBuilder()
183183

184184
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true)
185185
}
@@ -190,7 +190,7 @@ open class AdminAPI {
190190
- parameter completion: completion handler to receive the data and the error objects
191191
*/
192192
@discardableResult
193-
open class func adminSystemRetrieve(apiResponseQueue: DispatchQueue = authentikClientAPI.apiResponseQueue, completion: @escaping ((_ data: System?, _ error: Error?) -> Void)) -> RequestTask {
193+
open class func adminSystemRetrieve(apiResponseQueue: DispatchQueue = authentikClientAPI.apiResponseQueue, completion: @escaping ((_ data: SystemInfo?, _ error: Error?) -> Void)) -> RequestTask {
194194
return adminSystemRetrieveWithRequestBuilder().execute(apiResponseQueue) { result in
195195
switch result {
196196
case let .success(response):
@@ -207,9 +207,9 @@ open class AdminAPI {
207207
- API Key:
208208
- type: apiKey Authorization
209209
- name: authentik
210-
- returns: RequestBuilder<System>
210+
- returns: RequestBuilder<SystemInfo>
211211
*/
212-
open class func adminSystemRetrieveWithRequestBuilder() -> RequestBuilder<System> {
212+
open class func adminSystemRetrieveWithRequestBuilder() -> RequestBuilder<SystemInfo> {
213213
let localVariablePath = "/admin/system/"
214214
let localVariableURLString = authentikClientAPI.basePath + localVariablePath
215215
let localVariableParameters: [String: Any]? = nil
@@ -222,7 +222,7 @@ open class AdminAPI {
222222

223223
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
224224

225-
let localVariableRequestBuilder: RequestBuilder<System>.Type = authentikClientAPI.requestBuilderFactory.getBuilder()
225+
let localVariableRequestBuilder: RequestBuilder<SystemInfo>.Type = authentikClientAPI.requestBuilderFactory.getBuilder()
226226

227227
return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true)
228228
}

authentikClient/Classes/OpenAPIs/APIs/StagesAPI.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,9 +1664,9 @@ open class StagesAPI {
16641664
/**
16651665
* enum for parameter digits
16661666
*/
1667-
public enum Digits_stagesAuthenticatorTotpList: Int, CaseIterable {
1668-
case _6 = 6
1669-
case _8 = 8
1667+
public enum Digits_stagesAuthenticatorTotpList: String, CaseIterable {
1668+
case _6 = "6"
1669+
case _8 = "8"
16701670
}
16711671

16721672
/**

authentikClient/Classes/OpenAPIs/Models/DigitsEnum.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import AnyCodable
1111
#endif
1212

1313
/** * &#x60;6&#x60; - 6 digits, widely compatible * &#x60;8&#x60; - 8 digits, not compatible with apps like Google Authenticator */
14-
public enum DigitsEnum: Int, Codable, CaseIterable, CaseIterableDefaultsLast {
15-
case _6 = 6
16-
case _8 = 8
17-
case unknownDefaultOpenApi = 11184809
14+
public enum DigitsEnum: String, Codable, CaseIterable, CaseIterableDefaultsLast {
15+
case _6 = "6"
16+
case _8 = "8"
17+
case unknownDefaultOpenApi = "unknown_default_open_api"
1818
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
//
2+
// SystemInfo.swift
3+
//
4+
// Generated by openapi-generator
5+
// https://openapi-generator.tech
6+
//
7+
8+
import Foundation
9+
#if canImport(AnyCodable)
10+
import AnyCodable
11+
#endif
12+
13+
/** Get system information. */
14+
public struct SystemInfo: Codable, JSONEncodable, Hashable {
15+
16+
/** Get HTTP Request headers */
17+
public var httpHeaders: [String: String]
18+
/** Get HTTP host */
19+
public var httpHost: String
20+
/** Get HTTP Secure flag */
21+
public var httpIsSecure: Bool
22+
public var runtime: SystemInfoRuntime
23+
/** Currently active tenant */
24+
public var tenant: String
25+
/** Current server time */
26+
public var serverTime: Date
27+
/** Get the FQDN configured on the embedded outpost */
28+
public var embeddedOutpostHost: String
29+
30+
public init(httpHeaders: [String: String], httpHost: String, httpIsSecure: Bool, runtime: SystemInfoRuntime, tenant: String, serverTime: Date, embeddedOutpostHost: String) {
31+
self.httpHeaders = httpHeaders
32+
self.httpHost = httpHost
33+
self.httpIsSecure = httpIsSecure
34+
self.runtime = runtime
35+
self.tenant = tenant
36+
self.serverTime = serverTime
37+
self.embeddedOutpostHost = embeddedOutpostHost
38+
}
39+
40+
public enum CodingKeys: String, CodingKey, CaseIterable {
41+
case httpHeaders = "http_headers"
42+
case httpHost = "http_host"
43+
case httpIsSecure = "http_is_secure"
44+
case runtime
45+
case tenant
46+
case serverTime = "server_time"
47+
case embeddedOutpostHost = "embedded_outpost_host"
48+
}
49+
50+
// Encodable protocol methods
51+
52+
public func encode(to encoder: Encoder) throws {
53+
var container = encoder.container(keyedBy: CodingKeys.self)
54+
try container.encode(httpHeaders, forKey: .httpHeaders)
55+
try container.encode(httpHost, forKey: .httpHost)
56+
try container.encode(httpIsSecure, forKey: .httpIsSecure)
57+
try container.encode(runtime, forKey: .runtime)
58+
try container.encode(tenant, forKey: .tenant)
59+
try container.encode(serverTime, forKey: .serverTime)
60+
try container.encode(embeddedOutpostHost, forKey: .embeddedOutpostHost)
61+
}
62+
}
63+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//
2+
// SystemInfoRuntime.swift
3+
//
4+
// Generated by openapi-generator
5+
// https://openapi-generator.tech
6+
//
7+
8+
import Foundation
9+
#if canImport(AnyCodable)
10+
import AnyCodable
11+
#endif
12+
13+
/** Get versions */
14+
public struct SystemInfoRuntime: Codable, JSONEncodable, Hashable {
15+
16+
public var pythonVersion: String
17+
public var gunicornVersion: String
18+
public var environment: String
19+
public var architecture: String
20+
public var platform: String
21+
public var uname: String
22+
23+
public init(pythonVersion: String, gunicornVersion: String, environment: String, architecture: String, platform: String, uname: String) {
24+
self.pythonVersion = pythonVersion
25+
self.gunicornVersion = gunicornVersion
26+
self.environment = environment
27+
self.architecture = architecture
28+
self.platform = platform
29+
self.uname = uname
30+
}
31+
32+
public enum CodingKeys: String, CodingKey, CaseIterable {
33+
case pythonVersion = "python_version"
34+
case gunicornVersion = "gunicorn_version"
35+
case environment
36+
case architecture
37+
case platform
38+
case uname
39+
}
40+
41+
// Encodable protocol methods
42+
43+
public func encode(to encoder: Encoder) throws {
44+
var container = encoder.container(keyedBy: CodingKeys.self)
45+
try container.encode(pythonVersion, forKey: .pythonVersion)
46+
try container.encode(gunicornVersion, forKey: .gunicornVersion)
47+
try container.encode(environment, forKey: .environment)
48+
try container.encode(architecture, forKey: .architecture)
49+
try container.encode(platform, forKey: .platform)
50+
try container.encode(uname, forKey: .uname)
51+
}
52+
}
53+

docs/AdminAPI.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ This endpoint does not need any parameter.
153153

154154
# **adminSystemCreate**
155155
```swift
156-
open class func adminSystemCreate(completion: @escaping (_ data: System?, _ error: Error?) -> Void)
156+
open class func adminSystemCreate(completion: @escaping (_ data: SystemInfo?, _ error: Error?) -> Void)
157157
```
158158

159159

@@ -183,7 +183,7 @@ This endpoint does not need any parameter.
183183

184184
### Return type
185185

186-
[**System**](System.md)
186+
[**SystemInfo**](SystemInfo.md)
187187

188188
### Authorization
189189

@@ -198,7 +198,7 @@ This endpoint does not need any parameter.
198198

199199
# **adminSystemRetrieve**
200200
```swift
201-
open class func adminSystemRetrieve(completion: @escaping (_ data: System?, _ error: Error?) -> Void)
201+
open class func adminSystemRetrieve(completion: @escaping (_ data: SystemInfo?, _ error: Error?) -> Void)
202202
```
203203

204204

@@ -228,7 +228,7 @@ This endpoint does not need any parameter.
228228

229229
### Return type
230230

231-
[**System**](System.md)
231+
[**SystemInfo**](SystemInfo.md)
232232

233233
### Authorization
234234

docs/StagesAPI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ AuthenticatorTOTPStage Viewset
18231823
import authentikClient
18241824

18251825
let configureFlow = 987 // UUID | (optional)
1826-
let digits = 987 // Int | * `6` - 6 digits, widely compatible * `8` - 8 digits, not compatible with apps like Google Authenticator (optional)
1826+
let digits = "digits_example" // String | * `6` - 6 digits, widely compatible * `8` - 8 digits, not compatible with apps like Google Authenticator (optional)
18271827
let friendlyName = "friendlyName_example" // String | (optional)
18281828
let name = "name_example" // String | (optional)
18291829
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
@@ -1849,7 +1849,7 @@ StagesAPI.stagesAuthenticatorTotpList(configureFlow: configureFlow, digits: digi
18491849
Name | Type | Description | Notes
18501850
------------- | ------------- | ------------- | -------------
18511851
**configureFlow** | **UUID** | | [optional]
1852-
**digits** | **Int** | * &#x60;6&#x60; - 6 digits, widely compatible * &#x60;8&#x60; - 8 digits, not compatible with apps like Google Authenticator | [optional]
1852+
**digits** | **String** | * &#x60;6&#x60; - 6 digits, widely compatible * &#x60;8&#x60; - 8 digits, not compatible with apps like Google Authenticator | [optional]
18531853
**friendlyName** | **String** | | [optional]
18541854
**name** | **String** | | [optional]
18551855
**ordering** | **String** | Which field to use when ordering the results. | [optional]

docs/System.md renamed to docs/SystemInfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# System
1+
# SystemInfo
22

33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**httpHeaders** | **[String: String]** | Get HTTP Request headers | [readonly]
77
**httpHost** | **String** | Get HTTP host | [readonly]
88
**httpIsSecure** | **Bool** | Get HTTP Secure flag | [readonly]
9-
**runtime** | [**SystemRuntime**](SystemRuntime.md) | |
9+
**runtime** | [**SystemInfoRuntime**](SystemInfoRuntime.md) | |
1010
**tenant** | **String** | Currently active tenant | [readonly]
1111
**serverTime** | **Date** | Current server time | [readonly]
1212
**embeddedOutpostHost** | **String** | Get the FQDN configured on the embedded outpost | [readonly]

0 commit comments

Comments
 (0)