@@ -1342,6 +1342,91 @@ public enum Components {
13421342 case commit_url
13431343 }
13441344 }
1345+ /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.
1346+ ///
1347+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit`.
1348+ public struct secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit : Codable , Hashable , Sendable {
1349+ /// The file path of the wiki page
1350+ ///
1351+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/path`.
1352+ public var path : Swift . String
1353+ /// Line number at which the secret starts in the file
1354+ ///
1355+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/start_line`.
1356+ public var start_line : Swift . Double
1357+ /// Line number at which the secret ends in the file
1358+ ///
1359+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/end_line`.
1360+ public var end_line : Swift . Double
1361+ /// The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII.
1362+ ///
1363+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/start_column`.
1364+ public var start_column : Swift . Double
1365+ /// The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII.
1366+ ///
1367+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/end_column`.
1368+ public var end_column : Swift . Double
1369+ /// SHA-1 hash ID of the associated blob
1370+ ///
1371+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/blob_sha`.
1372+ public var blob_sha : Swift . String
1373+ /// The GitHub URL to get the associated wiki page
1374+ ///
1375+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/page_url`.
1376+ public var page_url : Swift . String
1377+ /// SHA-1 hash ID of the associated commit
1378+ ///
1379+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/commit_sha`.
1380+ public var commit_sha : Swift . String
1381+ /// The GitHub URL to get the associated wiki commit
1382+ ///
1383+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location-wiki-commit/commit_url`.
1384+ public var commit_url : Swift . String
1385+ /// Creates a new `secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit`.
1386+ ///
1387+ /// - Parameters:
1388+ /// - path: The file path of the wiki page
1389+ /// - start_line: Line number at which the secret starts in the file
1390+ /// - end_line: Line number at which the secret ends in the file
1391+ /// - start_column: The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII.
1392+ /// - end_column: The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII.
1393+ /// - blob_sha: SHA-1 hash ID of the associated blob
1394+ /// - page_url: The GitHub URL to get the associated wiki page
1395+ /// - commit_sha: SHA-1 hash ID of the associated commit
1396+ /// - commit_url: The GitHub URL to get the associated wiki commit
1397+ public init (
1398+ path: Swift . String ,
1399+ start_line: Swift . Double ,
1400+ end_line: Swift . Double ,
1401+ start_column: Swift . Double ,
1402+ end_column: Swift . Double ,
1403+ blob_sha: Swift . String ,
1404+ page_url: Swift . String ,
1405+ commit_sha: Swift . String ,
1406+ commit_url: Swift . String
1407+ ) {
1408+ self . path = path
1409+ self . start_line = start_line
1410+ self . end_line = end_line
1411+ self . start_column = start_column
1412+ self . end_column = end_column
1413+ self . blob_sha = blob_sha
1414+ self . page_url = page_url
1415+ self . commit_sha = commit_sha
1416+ self . commit_url = commit_url
1417+ }
1418+ public enum CodingKeys : String , CodingKey {
1419+ case path
1420+ case start_line
1421+ case end_line
1422+ case start_column
1423+ case end_column
1424+ case blob_sha
1425+ case page_url
1426+ case commit_sha
1427+ case commit_url
1428+ }
1429+ }
13451430 /// Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue.
13461431 ///
13471432 /// - Remark: Generated from `#/components/schemas/secret-scanning-location-issue-title`.
@@ -1558,6 +1643,7 @@ public enum Components {
15581643 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/type`.
15591644 @frozen public enum _typePayload : String , Codable , Hashable , Sendable {
15601645 case commit = " commit "
1646+ case wiki_commit = " wiki_commit "
15611647 case issue_title = " issue_title "
15621648 case issue_body = " issue_body "
15631649 case issue_comment = " issue_comment "
@@ -1573,32 +1659,34 @@ public enum Components {
15731659 /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.
15741660 ///
15751661 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/type`.
1576- public var _type : Components . Schemas . secret_hyphen_scanning_hyphen_location . _typePayload
1662+ public var _type : Components . Schemas . secret_hyphen_scanning_hyphen_location . _typePayload ?
15771663 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details`.
15781664 @frozen public enum detailsPayload : Codable , Hashable , Sendable {
15791665 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case1`.
15801666 case secret_hyphen_scanning_hyphen_location_hyphen_commit( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_commit )
15811667 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case2`.
1582- case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title )
1668+ case secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit )
15831669 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case3`.
1584- case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body )
1670+ case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title )
15851671 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case4`.
1586- case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment )
1672+ case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body )
15871673 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case5`.
1588- case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title )
1674+ case secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_comment )
15891675 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case6`.
1590- case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body )
1676+ case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_title )
15911677 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case7`.
1592- case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment )
1678+ case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_body )
15931679 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case8`.
1594- case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title )
1680+ case secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_discussion_hyphen_comment )
15951681 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case9`.
1596- case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body )
1682+ case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_title )
15971683 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case10`.
1598- case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment )
1684+ case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_body )
15991685 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case11`.
1600- case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review )
1686+ case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment ( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_comment )
16011687 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case12`.
1688+ case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review )
1689+ /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details/case13`.
16021690 case secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment( Components . Schemas . secret_hyphen_scanning_hyphen_location_hyphen_pull_hyphen_request_hyphen_review_hyphen_comment )
16031691 public init ( from decoder: any Decoder ) throws {
16041692 var errors : [ any Error ] = [ ]
@@ -1608,6 +1696,12 @@ public enum Components {
16081696 } catch {
16091697 errors. append ( error)
16101698 }
1699+ do {
1700+ self = . secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit( try . init( from: decoder) )
1701+ return
1702+ } catch {
1703+ errors. append ( error)
1704+ }
16111705 do {
16121706 self = . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title( try . init( from: decoder) )
16131707 return
@@ -1684,6 +1778,8 @@ public enum Components {
16841778 switch self {
16851779 case let . secret_hyphen_scanning_hyphen_location_hyphen_commit( value) :
16861780 try value. encode ( to: encoder)
1781+ case let . secret_hyphen_scanning_hyphen_location_hyphen_wiki_hyphen_commit( value) :
1782+ try value. encode ( to: encoder)
16871783 case let . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_title( value) :
16881784 try value. encode ( to: encoder)
16891785 case let . secret_hyphen_scanning_hyphen_location_hyphen_issue_hyphen_body( value) :
@@ -1710,15 +1806,15 @@ public enum Components {
17101806 }
17111807 }
17121808 /// - Remark: Generated from `#/components/schemas/secret-scanning-location/details`.
1713- public var details : Components . Schemas . secret_hyphen_scanning_hyphen_location . detailsPayload
1809+ public var details : Components . Schemas . secret_hyphen_scanning_hyphen_location . detailsPayload ?
17141810 /// Creates a new `secret_hyphen_scanning_hyphen_location`.
17151811 ///
17161812 /// - Parameters:
17171813 /// - _type: The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.
17181814 /// - details:
17191815 public init (
1720- _type: Components . Schemas . secret_hyphen_scanning_hyphen_location . _typePayload ,
1721- details: Components . Schemas . secret_hyphen_scanning_hyphen_location . detailsPayload
1816+ _type: Components . Schemas . secret_hyphen_scanning_hyphen_location . _typePayload ? = nil ,
1817+ details: Components . Schemas . secret_hyphen_scanning_hyphen_location . detailsPayload ? = nil
17221818 ) {
17231819 self . _type = _type
17241820 self . details = details
0 commit comments