@@ -197,6 +197,15 @@ extension APIProtocol {
197197
198198/// Server URLs defined in the OpenAPI document.
199199public enum Servers {
200+ public enum Server1 {
201+ public static func url( ) throws -> Foundation . URL {
202+ try Foundation . URL (
203+ validatingOpenAPIServerURL: " https://api.github.com " ,
204+ variables: [ ]
205+ )
206+ }
207+ }
208+ @available ( * , deprecated, renamed: " Servers.Server1.url " )
200209 public static func server1( ) throws -> Foundation . URL {
201210 try Foundation . URL (
202211 validatingOpenAPIServerURL: " https://api.github.com " ,
@@ -337,7 +346,7 @@ public enum Components {
337346 /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect.
338347 ///
339348 /// - Remark: Generated from `#/components/schemas/interaction-group`.
340- @frozen public enum interaction_hyphen_group : String , Codable , Hashable , Sendable {
349+ @frozen public enum interaction_hyphen_group : String , Codable , Hashable , Sendable , CaseIterable {
341350 case existing_users = " existing_users "
342351 case contributors_only = " contributors_only "
343352 case collaborators_only = " collaborators_only "
@@ -376,7 +385,7 @@ public enum Components {
376385 /// The duration of the interaction restriction. Default: `one_day`.
377386 ///
378387 /// - Remark: Generated from `#/components/schemas/interaction-expiry`.
379- @frozen public enum interaction_hyphen_expiry : String , Codable , Hashable , Sendable {
388+ @frozen public enum interaction_hyphen_expiry : String , Codable , Hashable , Sendable , CaseIterable {
380389 case one_day = " one_day "
381390 case three_days = " three_days "
382391 case one_week = " one_week "
@@ -545,28 +554,28 @@ public enum Operations {
545554 public init ( from decoder: any Decoder ) throws {
546555 var errors : [ any Error ] = [ ]
547556 do {
548- value1 = try . init( from: decoder)
557+ self . value1 = try . init( from: decoder)
549558 } catch {
550559 errors. append ( error)
551560 }
552561 do {
553- value2 = try . init( from: decoder)
562+ self . value2 = try . init( from: decoder)
554563 } catch {
555564 errors. append ( error)
556565 }
557566 try Swift . DecodingError. verifyAtLeastOneSchemaIsNotNil (
558567 [
559- value1,
560- value2
568+ self . value1,
569+ self . value2
561570 ] ,
562571 type: Self . self,
563572 codingPath: decoder. codingPath,
564573 errors: errors
565574 )
566575 }
567576 public func encode( to encoder: any Encoder ) throws {
568- try value1? . encode ( to: encoder)
569- try value2? . encode ( to: encoder)
577+ try self . value1? . encode ( to: encoder)
578+ try self . value2? . encode ( to: encoder)
570579 }
571580 }
572581 /// - Remark: Generated from `#/paths/orgs/{org}/interaction-limits/GET/responses/200/content/application\/json`.
@@ -855,6 +864,14 @@ public enum Operations {
855864 ///
856865 /// HTTP response code: `204 noContent`.
857866 case noContent( Operations . interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_org . Output . NoContent )
867+ /// Response
868+ ///
869+ /// - Remark: Generated from `#/paths//orgs/{org}/interaction-limits/delete(interactions/remove-restrictions-for-org)/responses/204`.
870+ ///
871+ /// HTTP response code: `204 noContent`.
872+ public static var noContent : Self {
873+ . noContent( . init( ) )
874+ }
858875 /// The associated value of the enum case if `self` is `.noContent`.
859876 ///
860877 /// - Throws: An error if `self` is not `.noContent`.
@@ -969,28 +986,28 @@ public enum Operations {
969986 public init ( from decoder: any Decoder ) throws {
970987 var errors : [ any Error ] = [ ]
971988 do {
972- value1 = try . init( from: decoder)
989+ self . value1 = try . init( from: decoder)
973990 } catch {
974991 errors. append ( error)
975992 }
976993 do {
977- value2 = try . init( from: decoder)
994+ self . value2 = try . init( from: decoder)
978995 } catch {
979996 errors. append ( error)
980997 }
981998 try Swift . DecodingError. verifyAtLeastOneSchemaIsNotNil (
982999 [
983- value1,
984- value2
1000+ self . value1,
1001+ self . value2
9851002 ] ,
9861003 type: Self . self,
9871004 codingPath: decoder. codingPath,
9881005 errors: errors
9891006 )
9901007 }
9911008 public func encode( to encoder: any Encoder ) throws {
992- try value1? . encode ( to: encoder)
993- try value2? . encode ( to: encoder)
1009+ try self . value1? . encode ( to: encoder)
1010+ try self . value2? . encode ( to: encoder)
9941011 }
9951012 }
9961013 /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/interaction-limits/GET/responses/200/content/application\/json`.
@@ -1201,6 +1218,14 @@ public enum Operations {
12011218 ///
12021219 /// HTTP response code: `409 conflict`.
12031220 case conflict( Operations . interactions_sol_set_hyphen_restrictions_hyphen_for_hyphen_repo . Output . Conflict )
1221+ /// Response
1222+ ///
1223+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/put(interactions/set-restrictions-for-repo)/responses/409`.
1224+ ///
1225+ /// HTTP response code: `409 conflict`.
1226+ public static var conflict : Self {
1227+ . conflict( . init( ) )
1228+ }
12041229 /// The associated value of the enum case if `self` is `.conflict`.
12051230 ///
12061231 /// - Throws: An error if `self` is not `.conflict`.
@@ -1301,6 +1326,14 @@ public enum Operations {
13011326 ///
13021327 /// HTTP response code: `204 noContent`.
13031328 case noContent( Operations . interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo . Output . NoContent )
1329+ /// Response
1330+ ///
1331+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/204`.
1332+ ///
1333+ /// HTTP response code: `204 noContent`.
1334+ public static var noContent : Self {
1335+ . noContent( . init( ) )
1336+ }
13041337 /// The associated value of the enum case if `self` is `.noContent`.
13051338 ///
13061339 /// - Throws: An error if `self` is not `.noContent`.
@@ -1328,6 +1361,14 @@ public enum Operations {
13281361 ///
13291362 /// HTTP response code: `409 conflict`.
13301363 case conflict( Operations . interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_repo . Output . Conflict )
1364+ /// Response
1365+ ///
1366+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/interaction-limits/delete(interactions/remove-restrictions-for-repo)/responses/409`.
1367+ ///
1368+ /// HTTP response code: `409 conflict`.
1369+ public static var conflict : Self {
1370+ . conflict( . init( ) )
1371+ }
13311372 /// The associated value of the enum case if `self` is `.conflict`.
13321373 ///
13331374 /// - Throws: An error if `self` is not `.conflict`.
@@ -1413,28 +1454,28 @@ public enum Operations {
14131454 public init ( from decoder: any Decoder ) throws {
14141455 var errors : [ any Error ] = [ ]
14151456 do {
1416- value1 = try . init( from: decoder)
1457+ self . value1 = try . init( from: decoder)
14171458 } catch {
14181459 errors. append ( error)
14191460 }
14201461 do {
1421- value2 = try . init( from: decoder)
1462+ self . value2 = try . init( from: decoder)
14221463 } catch {
14231464 errors. append ( error)
14241465 }
14251466 try Swift . DecodingError. verifyAtLeastOneSchemaIsNotNil (
14261467 [
1427- value1,
1428- value2
1468+ self . value1,
1469+ self . value2
14291470 ] ,
14301471 type: Self . self,
14311472 codingPath: decoder. codingPath,
14321473 errors: errors
14331474 )
14341475 }
14351476 public func encode( to encoder: any Encoder ) throws {
1436- try value1? . encode ( to: encoder)
1437- try value2? . encode ( to: encoder)
1477+ try self . value1? . encode ( to: encoder)
1478+ try self . value2? . encode ( to: encoder)
14381479 }
14391480 }
14401481 /// - Remark: Generated from `#/paths/user/interaction-limits/GET/responses/200/content/application\/json`.
@@ -1495,6 +1536,14 @@ public enum Operations {
14951536 ///
14961537 /// HTTP response code: `204 noContent`.
14971538 case noContent( Operations . interactions_sol_get_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user . Output . NoContent )
1539+ /// Response when there are no restrictions
1540+ ///
1541+ /// - Remark: Generated from `#/paths//user/interaction-limits/get(interactions/get-restrictions-for-authenticated-user)/responses/204`.
1542+ ///
1543+ /// HTTP response code: `204 noContent`.
1544+ public static var noContent : Self {
1545+ . noContent( . init( ) )
1546+ }
14981547 /// The associated value of the enum case if `self` is `.noContent`.
14991548 ///
15001549 /// - Throws: An error if `self` is not `.noContent`.
@@ -1712,6 +1761,14 @@ public enum Operations {
17121761 ///
17131762 /// HTTP response code: `204 noContent`.
17141763 case noContent( Operations . interactions_sol_remove_hyphen_restrictions_hyphen_for_hyphen_authenticated_hyphen_user . Output . NoContent )
1764+ /// Response
1765+ ///
1766+ /// - Remark: Generated from `#/paths//user/interaction-limits/delete(interactions/remove-restrictions-for-authenticated-user)/responses/204`.
1767+ ///
1768+ /// HTTP response code: `204 noContent`.
1769+ public static var noContent : Self {
1770+ . noContent( . init( ) )
1771+ }
17151772 /// The associated value of the enum case if `self` is `.noContent`.
17161773 ///
17171774 /// - Throws: An error if `self` is not `.noContent`.
0 commit comments