From 106bd5ee5c16f90694f0b2893310d356f98acaf0 Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 12:39:45 +0000 Subject: [PATCH] Update API Client #### What's Changed --- ##### `GET` /stages/user_write/{stage_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account Enum values: * `internal` * `external` * `service_account` * `internal_service_account` ##### `PUT` /stages/user_write/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ##### `PATCH` /stages/user_write/{stage_uuid}/ ###### Request: Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ##### `POST` /stages/user_write/ ###### Request: Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ##### `GET` /stages/user_write/ ###### Parameters: Added: `user_type` in `query` > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > UserWriteStage Serializer * Added property `user_type` (string) > * `internal` - Internal > * `external` - External > * `service_account` - Service Account > * `internal_service_account` - Internal Service Account --- docs/PatchedUserWriteStageRequest.md | 1 + docs/StagesApi.md | 6 +++-- docs/UserWriteStage.md | 1 + docs/UserWriteStageRequest.md | 1 + schema.yml | 20 ++++++++++++++ .../io/goauthentik/api/apis/StagesApi.kt | 26 +++++++++++++++---- .../models/PatchedUserWriteStageRequest.kt | 5 ++++ .../goauthentik/api/models/UserWriteStage.kt | 5 ++++ .../api/models/UserWriteStageRequest.kt | 5 ++++ 9 files changed, 63 insertions(+), 7 deletions(-) diff --git a/docs/PatchedUserWriteStageRequest.md b/docs/PatchedUserWriteStageRequest.md index 38c6ee7..30cea82 100644 --- a/docs/PatchedUserWriteStageRequest.md +++ b/docs/PatchedUserWriteStageRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **userCreationMode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **createUsersAsInactive** | **kotlin.Boolean** | When set, newly created users are inactive and cannot login. | [optional] **createUsersGroup** | [**java.util.UUID**](java.util.UUID.md) | Optionally add newly created users to this group. | [optional] +**userType** | [**UserTypeEnum**](UserTypeEnum.md) | | [optional] **userPathTemplate** | **kotlin.String** | | [optional] diff --git a/docs/StagesApi.md b/docs/StagesApi.md index cd7031b..3f9d29a 100644 --- a/docs/StagesApi.md +++ b/docs/StagesApi.md @@ -8189,7 +8189,7 @@ Configure authentik: # **stagesUserWriteList** -> PaginatedUserWriteStageList stagesUserWriteList(createUsersAsInactive, createUsersGroup, name, ordering, page, pageSize, search, stageUuid, userCreationMode, userPathTemplate) +> PaginatedUserWriteStageList stagesUserWriteList(createUsersAsInactive, createUsersGroup, name, ordering, page, pageSize, search, stageUuid, userCreationMode, userPathTemplate, userType) @@ -8212,8 +8212,9 @@ val search : kotlin.String = search_example // kotlin.String | A search term. val stageUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | val userCreationMode : kotlin.String = userCreationMode_example // kotlin.String | * `never_create` - Never Create * `create_when_required` - Create When Required * `always_create` - Always Create val userPathTemplate : kotlin.String = userPathTemplate_example // kotlin.String | +val userType : kotlin.String = userType_example // kotlin.String | * `internal` - Internal * `external` - External * `service_account` - Service Account * `internal_service_account` - Internal Service Account try { - val result : PaginatedUserWriteStageList = apiInstance.stagesUserWriteList(createUsersAsInactive, createUsersGroup, name, ordering, page, pageSize, search, stageUuid, userCreationMode, userPathTemplate) + val result : PaginatedUserWriteStageList = apiInstance.stagesUserWriteList(createUsersAsInactive, createUsersGroup, name, ordering, page, pageSize, search, stageUuid, userCreationMode, userPathTemplate, userType) println(result) } catch (e: ClientException) { println("4xx response calling StagesApi#stagesUserWriteList") @@ -8238,6 +8239,7 @@ Name | Type | Description | Notes **stageUuid** | **java.util.UUID**| | [optional] **userCreationMode** | **kotlin.String**| * `never_create` - Never Create * `create_when_required` - Create When Required * `always_create` - Always Create | [optional] [enum: always_create, create_when_required, never_create] **userPathTemplate** | **kotlin.String**| | [optional] + **userType** | **kotlin.String**| * `internal` - Internal * `external` - External * `service_account` - Service Account * `internal_service_account` - Internal Service Account | [optional] [enum: external, internal, internal_service_account, service_account] ### Return type diff --git a/docs/UserWriteStage.md b/docs/UserWriteStage.md index 90e5a98..8a56b76 100644 --- a/docs/UserWriteStage.md +++ b/docs/UserWriteStage.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **userCreationMode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **createUsersAsInactive** | **kotlin.Boolean** | When set, newly created users are inactive and cannot login. | [optional] **createUsersGroup** | [**java.util.UUID**](java.util.UUID.md) | Optionally add newly created users to this group. | [optional] +**userType** | [**UserTypeEnum**](UserTypeEnum.md) | | [optional] **userPathTemplate** | **kotlin.String** | | [optional] diff --git a/docs/UserWriteStageRequest.md b/docs/UserWriteStageRequest.md index 6b586e1..c737ddb 100644 --- a/docs/UserWriteStageRequest.md +++ b/docs/UserWriteStageRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **userCreationMode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **createUsersAsInactive** | **kotlin.Boolean** | When set, newly created users are inactive and cannot login. | [optional] **createUsersGroup** | [**java.util.UUID**](java.util.UUID.md) | Optionally add newly created users to this group. | [optional] +**userType** | [**UserTypeEnum**](UserTypeEnum.md) | | [optional] **userPathTemplate** | **kotlin.String** | | [optional] diff --git a/schema.yml b/schema.yml index 5a6a347..f956fca 100644 --- a/schema.yml +++ b/schema.yml @@ -27494,6 +27494,20 @@ paths: name: user_path_template schema: type: string + - in: query + name: user_type + schema: + type: string + enum: + - external + - internal + - internal_service_account + - service_account + description: |- + * `internal` - Internal + * `external` - External + * `service_account` - Service Account + * `internal_service_account` - Internal Service Account tags: - stages security: @@ -38052,6 +38066,8 @@ components: format: uuid nullable: true description: Optionally add newly created users to this group. + user_type: + $ref: '#/components/schemas/UserTypeEnum' user_path_template: type: string PatchedWebAuthnDeviceRequest: @@ -42422,6 +42438,8 @@ components: format: uuid nullable: true description: Optionally add newly created users to this group. + user_type: + $ref: '#/components/schemas/UserTypeEnum' user_path_template: type: string required: @@ -42452,6 +42470,8 @@ components: format: uuid nullable: true description: Optionally add newly created users to this group. + user_type: + $ref: '#/components/schemas/UserTypeEnum' user_path_template: type: string required: diff --git a/src/main/kotlin/io/goauthentik/api/apis/StagesApi.kt b/src/main/kotlin/io/goauthentik/api/apis/StagesApi.kt index e28e449..f89dd01 100644 --- a/src/main/kotlin/io/goauthentik/api/apis/StagesApi.kt +++ b/src/main/kotlin/io/goauthentik/api/apis/StagesApi.kt @@ -12169,6 +12169,16 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient @Json(name = "never_create") neverCreate("never_create"), } + /** + * enum for parameter userType + */ + enum class UserType_stagesUserWriteList(val value: kotlin.String) { + @Json(name = "external") `external`("external"), + @Json(name = "internal") `internal`("internal"), + @Json(name = "internal_service_account") internalServiceAccount("internal_service_account"), + @Json(name = "service_account") serviceAccount("service_account"), + } + /** * * UserWriteStage Viewset @@ -12182,6 +12192,7 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient * @param stageUuid (optional) * @param userCreationMode * `never_create` - Never Create * `create_when_required` - Create When Required * `always_create` - Always Create (optional) * @param userPathTemplate (optional) + * @param userType * `internal` - Internal * `external` - External * `service_account` - Service Account * `internal_service_account` - Internal Service Account (optional) * @return PaginatedUserWriteStageList * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception @@ -12191,8 +12202,8 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun stagesUserWriteList(createUsersAsInactive: kotlin.Boolean? = null, createUsersGroup: java.util.UUID? = null, name: kotlin.String? = null, ordering: kotlin.String? = null, page: kotlin.Int? = null, pageSize: kotlin.Int? = null, search: kotlin.String? = null, stageUuid: java.util.UUID? = null, userCreationMode: UserCreationMode_stagesUserWriteList? = null, userPathTemplate: kotlin.String? = null) : PaginatedUserWriteStageList { - val localVarResponse = stagesUserWriteListWithHttpInfo(createUsersAsInactive = createUsersAsInactive, createUsersGroup = createUsersGroup, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid, userCreationMode = userCreationMode, userPathTemplate = userPathTemplate) + fun stagesUserWriteList(createUsersAsInactive: kotlin.Boolean? = null, createUsersGroup: java.util.UUID? = null, name: kotlin.String? = null, ordering: kotlin.String? = null, page: kotlin.Int? = null, pageSize: kotlin.Int? = null, search: kotlin.String? = null, stageUuid: java.util.UUID? = null, userCreationMode: UserCreationMode_stagesUserWriteList? = null, userPathTemplate: kotlin.String? = null, userType: UserType_stagesUserWriteList? = null) : PaginatedUserWriteStageList { + val localVarResponse = stagesUserWriteListWithHttpInfo(createUsersAsInactive = createUsersAsInactive, createUsersGroup = createUsersGroup, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid, userCreationMode = userCreationMode, userPathTemplate = userPathTemplate, userType = userType) return when (localVarResponse.responseType) { ResponseType.Success -> (localVarResponse as Success<*>).data as PaginatedUserWriteStageList @@ -12222,14 +12233,15 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient * @param stageUuid (optional) * @param userCreationMode * `never_create` - Never Create * `create_when_required` - Create When Required * `always_create` - Always Create (optional) * @param userPathTemplate (optional) + * @param userType * `internal` - Internal * `external` - External * `service_account` - Service Account * `internal_service_account` - Internal Service Account (optional) * @return ApiResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun stagesUserWriteListWithHttpInfo(createUsersAsInactive: kotlin.Boolean?, createUsersGroup: java.util.UUID?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?, userCreationMode: UserCreationMode_stagesUserWriteList?, userPathTemplate: kotlin.String?) : ApiResponse { - val localVariableConfig = stagesUserWriteListRequestConfig(createUsersAsInactive = createUsersAsInactive, createUsersGroup = createUsersGroup, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid, userCreationMode = userCreationMode, userPathTemplate = userPathTemplate) + fun stagesUserWriteListWithHttpInfo(createUsersAsInactive: kotlin.Boolean?, createUsersGroup: java.util.UUID?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?, userCreationMode: UserCreationMode_stagesUserWriteList?, userPathTemplate: kotlin.String?, userType: UserType_stagesUserWriteList?) : ApiResponse { + val localVariableConfig = stagesUserWriteListRequestConfig(createUsersAsInactive = createUsersAsInactive, createUsersGroup = createUsersGroup, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid, userCreationMode = userCreationMode, userPathTemplate = userPathTemplate, userType = userType) return request( localVariableConfig @@ -12249,9 +12261,10 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient * @param stageUuid (optional) * @param userCreationMode * `never_create` - Never Create * `create_when_required` - Create When Required * `always_create` - Always Create (optional) * @param userPathTemplate (optional) + * @param userType * `internal` - Internal * `external` - External * `service_account` - Service Account * `internal_service_account` - Internal Service Account (optional) * @return RequestConfig */ - fun stagesUserWriteListRequestConfig(createUsersAsInactive: kotlin.Boolean?, createUsersGroup: java.util.UUID?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?, userCreationMode: UserCreationMode_stagesUserWriteList?, userPathTemplate: kotlin.String?) : RequestConfig { + fun stagesUserWriteListRequestConfig(createUsersAsInactive: kotlin.Boolean?, createUsersGroup: java.util.UUID?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?, userCreationMode: UserCreationMode_stagesUserWriteList?, userPathTemplate: kotlin.String?, userType: UserType_stagesUserWriteList?) : RequestConfig { val localVariableBody = null val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { @@ -12285,6 +12298,9 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient if (userPathTemplate != null) { put("user_path_template", listOf(userPathTemplate.toString())) } + if (userType != null) { + put("user_type", listOf(userType.toString())) + } } val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Accept"] = "application/json" diff --git a/src/main/kotlin/io/goauthentik/api/models/PatchedUserWriteStageRequest.kt b/src/main/kotlin/io/goauthentik/api/models/PatchedUserWriteStageRequest.kt index 839311a..8598a17 100644 --- a/src/main/kotlin/io/goauthentik/api/models/PatchedUserWriteStageRequest.kt +++ b/src/main/kotlin/io/goauthentik/api/models/PatchedUserWriteStageRequest.kt @@ -22,6 +22,7 @@ package io.goauthentik.api.models import io.goauthentik.api.models.FlowSetRequest import io.goauthentik.api.models.UserCreationModeEnum +import io.goauthentik.api.models.UserTypeEnum import com.squareup.moshi.Json @@ -33,6 +34,7 @@ import com.squareup.moshi.Json * @param userCreationMode * @param createUsersAsInactive When set, newly created users are inactive and cannot login. * @param createUsersGroup Optionally add newly created users to this group. + * @param userType * @param userPathTemplate */ @@ -55,6 +57,9 @@ data class PatchedUserWriteStageRequest ( @Json(name = "create_users_group") val createUsersGroup: java.util.UUID? = null, + @Json(name = "user_type") + val userType: UserTypeEnum? = null, + @Json(name = "user_path_template") val userPathTemplate: kotlin.String? = null diff --git a/src/main/kotlin/io/goauthentik/api/models/UserWriteStage.kt b/src/main/kotlin/io/goauthentik/api/models/UserWriteStage.kt index 370fe32..1ad5111 100644 --- a/src/main/kotlin/io/goauthentik/api/models/UserWriteStage.kt +++ b/src/main/kotlin/io/goauthentik/api/models/UserWriteStage.kt @@ -22,6 +22,7 @@ package io.goauthentik.api.models import io.goauthentik.api.models.FlowSet import io.goauthentik.api.models.UserCreationModeEnum +import io.goauthentik.api.models.UserTypeEnum import com.squareup.moshi.Json @@ -38,6 +39,7 @@ import com.squareup.moshi.Json * @param userCreationMode * @param createUsersAsInactive When set, newly created users are inactive and cannot login. * @param createUsersGroup Optionally add newly created users to this group. + * @param userType * @param userPathTemplate */ @@ -79,6 +81,9 @@ data class UserWriteStage ( @Json(name = "create_users_group") val createUsersGroup: java.util.UUID? = null, + @Json(name = "user_type") + val userType: UserTypeEnum? = null, + @Json(name = "user_path_template") val userPathTemplate: kotlin.String? = null diff --git a/src/main/kotlin/io/goauthentik/api/models/UserWriteStageRequest.kt b/src/main/kotlin/io/goauthentik/api/models/UserWriteStageRequest.kt index e5a504c..44b38e1 100644 --- a/src/main/kotlin/io/goauthentik/api/models/UserWriteStageRequest.kt +++ b/src/main/kotlin/io/goauthentik/api/models/UserWriteStageRequest.kt @@ -22,6 +22,7 @@ package io.goauthentik.api.models import io.goauthentik.api.models.FlowSetRequest import io.goauthentik.api.models.UserCreationModeEnum +import io.goauthentik.api.models.UserTypeEnum import com.squareup.moshi.Json @@ -33,6 +34,7 @@ import com.squareup.moshi.Json * @param userCreationMode * @param createUsersAsInactive When set, newly created users are inactive and cannot login. * @param createUsersGroup Optionally add newly created users to this group. + * @param userType * @param userPathTemplate */ @@ -55,6 +57,9 @@ data class UserWriteStageRequest ( @Json(name = "create_users_group") val createUsersGroup: java.util.UUID? = null, + @Json(name = "user_type") + val userType: UserTypeEnum? = null, + @Json(name = "user_path_template") val userPathTemplate: kotlin.String? = null