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

Commit f069cc5

Browse files
Update API Client
#### 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)
1 parent 143842a commit f069cc5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

authentikClient/Classes/OpenAPIs/Models/SourceType.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import AnyCodable
1414
public struct SourceType: Codable, JSONEncodable, Hashable {
1515

1616
public var name: String
17-
public var slug: String
17+
public var verboseName: String
1818
public var urlsCustomizable: Bool
1919
public var requestTokenUrl: String?
2020
public var authorizationUrl: String?
@@ -23,9 +23,9 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
2323
public var oidcWellKnownUrl: String?
2424
public var oidcJwksUrl: String?
2525

26-
public init(name: String, slug: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?, oidcWellKnownUrl: String?, oidcJwksUrl: String?) {
26+
public init(name: String, verboseName: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?, oidcWellKnownUrl: String?, oidcJwksUrl: String?) {
2727
self.name = name
28-
self.slug = slug
28+
self.verboseName = verboseName
2929
self.urlsCustomizable = urlsCustomizable
3030
self.requestTokenUrl = requestTokenUrl
3131
self.authorizationUrl = authorizationUrl
@@ -37,7 +37,7 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
3737

3838
public enum CodingKeys: String, CodingKey, CaseIterable {
3939
case name
40-
case slug
40+
case verboseName = "verbose_name"
4141
case urlsCustomizable = "urls_customizable"
4242
case requestTokenUrl = "request_token_url"
4343
case authorizationUrl = "authorization_url"
@@ -52,7 +52,7 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
5252
public func encode(to encoder: Encoder) throws {
5353
var container = encoder.container(keyedBy: CodingKeys.self)
5454
try container.encode(name, forKey: .name)
55-
try container.encode(slug, forKey: .slug)
55+
try container.encode(verboseName, forKey: .verboseName)
5656
try container.encode(urlsCustomizable, forKey: .urlsCustomizable)
5757
try container.encode(requestTokenUrl, forKey: .requestTokenUrl)
5858
try container.encode(authorizationUrl, forKey: .authorizationUrl)

docs/SourceType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **String** | |
7-
**slug** | **String** | |
7+
**verboseName** | **String** | |
88
**urlsCustomizable** | **Bool** | |
99
**requestTokenUrl** | **String** | | [readonly]
1010
**authorizationUrl** | **String** | | [readonly]

schema.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42368,7 +42368,7 @@ components:
4236842368
properties:
4236942369
name:
4237042370
type: string
42371-
slug:
42371+
verbose_name:
4237242372
type: string
4237342373
urls_customizable:
4237442374
type: boolean
@@ -42404,8 +42404,8 @@ components:
4240442404
- oidc_well_known_url
4240542405
- profile_url
4240642406
- request_token_url
42407-
- slug
4240842407
- urls_customizable
42408+
- verbose_name
4240942409
SpBindingEnum:
4241042410
enum:
4241142411
- redirect

0 commit comments

Comments
 (0)