Skip to content

Commit 607a60e

Browse files
Update API Client
#### What's Changed --- ##### `GET` /authenticators/admin/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `PUT` /authenticators/admin/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `PATCH` /authenticators/admin/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `GET` /authenticators/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `PUT` /authenticators/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `PATCH` /authenticators/static/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `GET` /policies/geoip/{policy_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PUT` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PATCH` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `POST` /authenticators/admin/static/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `GET` /authenticators/admin/static/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Serializer for static authenticator devices * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `GET` /authenticators/static/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Serializer for static authenticator devices * Changed property `token_set` (array) Changed items (object): > Serializer for static device's tokens * Changed property `token` (string) ##### `POST` /policies/geoip/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /policies/geoip/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > GeoIP Policy Serializer * Changed property `countries` (array) ##### `GET` /stages/authenticator/static/{stage_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_length` (integer) ##### `PUT` /stages/authenticator/static/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `token_length` (integer) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_length` (integer) ##### `PATCH` /stages/authenticator/static/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `token_length` (integer) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_length` (integer) ##### `POST` /stages/authenticator/static/ ###### Request: Changed content type : `application/json` * Changed property `token_length` (integer) ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `token_length` (integer) ##### `GET` /stages/authenticator/static/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > AuthenticatorStaticStage Serializer * Changed property `token_length` (integer)
1 parent 83cf190 commit 607a60e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Sources/authentikClient/Models/AuthenticatorStaticStage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111
public struct AuthenticatorStaticStage: Sendable, Codable, ParameterConvertible, Hashable {
1212

1313
public static let tokenCountRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
14-
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
14+
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 100, exclusiveMaximum: false, multipleOf: nil)
1515
public var pk: UUID
1616
public var name: String
1717
/** Get object type so that we know how to edit the object */

Sources/authentikClient/Models/AuthenticatorStaticStageRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct AuthenticatorStaticStageRequest: Sendable, Codable, ParameterConve
1212

1313
public static let nameRule = StringRule(minLength: 1, maxLength: nil, pattern: nil)
1414
public static let tokenCountRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
15-
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
15+
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 100, exclusiveMaximum: false, multipleOf: nil)
1616
public var name: String
1717
/** Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. */
1818
public var configureFlow: UUID?

Sources/authentikClient/Models/PatchedAuthenticatorStaticStageRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct PatchedAuthenticatorStaticStageRequest: Sendable, Codable, Paramet
1212

1313
public static let nameRule = StringRule(minLength: 1, maxLength: nil, pattern: nil)
1414
public static let tokenCountRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
15-
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 2147483647, exclusiveMaximum: false, multipleOf: nil)
15+
public static let tokenLengthRule = NumericRule<Int>(minimum: 0, exclusiveMinimum: false, maximum: 100, exclusiveMaximum: false, multipleOf: nil)
1616
public var name: String?
1717
/** Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. */
1818
public var configureFlow: UUID?

Sources/authentikClient/Models/StaticDeviceToken.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
/** Serializer for static device&#39;s tokens */
1111
public struct StaticDeviceToken: Sendable, Codable, ParameterConvertible, Hashable {
1212

13-
public static let tokenRule = StringRule(minLength: nil, maxLength: 16, pattern: nil)
13+
public static let tokenRule = StringRule(minLength: nil, maxLength: 100, pattern: nil)
1414
public var token: String
1515

1616
public init(token: String) {

schema.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34095,7 +34095,7 @@ components:
3409534095
minimum: 0
3409634096
token_length:
3409734097
type: integer
34098-
maximum: 2147483647
34098+
maximum: 100
3409934099
minimum: 0
3410034100
required:
3410134101
- component
@@ -34126,7 +34126,7 @@ components:
3412634126
minimum: 0
3412734127
token_length:
3412834128
type: integer
34129-
maximum: 2147483647
34129+
maximum: 100
3413034130
minimum: 0
3413134131
required:
3413234132
- name
@@ -45848,7 +45848,7 @@ components:
4584845848
minimum: 0
4584945849
token_length:
4585045850
type: integer
45851-
maximum: 2147483647
45851+
maximum: 100
4585245852
minimum: 0
4585345853
PatchedAuthenticatorTOTPStageRequest:
4585445854
type: object
@@ -53840,7 +53840,7 @@ components:
5384053840
properties:
5384153841
token:
5384253842
type: string
53843-
maxLength: 16
53843+
maxLength: 100
5384453844
required:
5384553845
- token
5384653846
SubModeEnum:

0 commit comments

Comments
 (0)