Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's Changed
---

##### `GET` /sources/oauth/source_types/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    Changed items (object):
        > Serializer for SourceType

    New required properties:
    - `verbose_name`

    New optional properties:
    - `slug`

    * Added property `verbose_name` (string)

    * Deleted property `slug` (string)

##### `GET` /sources/oauth/{slug}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `type` (object)
        > Serializer for SourceType

        New required properties:
        - `verbose_name`

        New optional properties:
        - `slug`

        * Added property `verbose_name` (string)

        * Deleted property `slug` (string)

##### `PUT` /sources/oauth/{slug}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `type` (object)
        > Serializer for SourceType

        New required properties:
        - `verbose_name`

        New optional properties:
        - `slug`

        * Added property `verbose_name` (string)

        * Deleted property `slug` (string)

##### `PATCH` /sources/oauth/{slug}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `type` (object)
        > Serializer for SourceType

        New required properties:
        - `verbose_name`

        New optional properties:
        - `slug`

        * Added property `verbose_name` (string)

        * Deleted property `slug` (string)

##### `POST` /sources/oauth/

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    * Changed property `type` (object)
        > Serializer for SourceType

        New required properties:
        - `verbose_name`

        New optional properties:
        - `slug`

        * Added property `verbose_name` (string)

        * Deleted property `slug` (string)

##### `GET` /sources/oauth/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > OAuth Source Serializer

        * Changed property `type` (object)
            > Serializer for SourceType

            New required properties:
            - `verbose_name`

            New optional properties:
            - `slug`

            * Added property `verbose_name` (string)

            * Deleted property `slug` (string)
  • Loading branch information
authentik-automation[bot] committed Jan 12, 2024
1 parent 143842a commit f069cc5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions authentikClient/Classes/OpenAPIs/Models/SourceType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import AnyCodable
public struct SourceType: Codable, JSONEncodable, Hashable {

public var name: String
public var slug: String
public var verboseName: String
public var urlsCustomizable: Bool
public var requestTokenUrl: String?
public var authorizationUrl: String?
Expand All @@ -23,9 +23,9 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
public var oidcWellKnownUrl: String?
public var oidcJwksUrl: String?

public init(name: String, slug: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?, oidcWellKnownUrl: String?, oidcJwksUrl: String?) {
public init(name: String, verboseName: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?, oidcWellKnownUrl: String?, oidcJwksUrl: String?) {
self.name = name
self.slug = slug
self.verboseName = verboseName
self.urlsCustomizable = urlsCustomizable
self.requestTokenUrl = requestTokenUrl
self.authorizationUrl = authorizationUrl
Expand All @@ -37,7 +37,7 @@ public struct SourceType: Codable, JSONEncodable, Hashable {

public enum CodingKeys: String, CodingKey, CaseIterable {
case name
case slug
case verboseName = "verbose_name"
case urlsCustomizable = "urls_customizable"
case requestTokenUrl = "request_token_url"
case authorizationUrl = "authorization_url"
Expand All @@ -52,7 +52,7 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(name, forKey: .name)
try container.encode(slug, forKey: .slug)
try container.encode(verboseName, forKey: .verboseName)
try container.encode(urlsCustomizable, forKey: .urlsCustomizable)
try container.encode(requestTokenUrl, forKey: .requestTokenUrl)
try container.encode(authorizationUrl, forKey: .authorizationUrl)
Expand Down
2 changes: 1 addition & 1 deletion docs/SourceType.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | |
**slug** | **String** | |
**verboseName** | **String** | |
**urlsCustomizable** | **Bool** | |
**requestTokenUrl** | **String** | | [readonly]
**authorizationUrl** | **String** | | [readonly]
Expand Down
4 changes: 2 additions & 2 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42368,7 +42368,7 @@ components:
properties:
name:
type: string
slug:
verbose_name:
type: string
urls_customizable:
type: boolean
Expand Down Expand Up @@ -42404,8 +42404,8 @@ components:
- oidc_well_known_url
- profile_url
- request_token_url
- slug
- urls_customizable
- verbose_name
SpBindingEnum:
enum:
- redirect
Expand Down

0 comments on commit f069cc5

Please sign in to comment.