Skip to content

Commit 88a4049

Browse files
Commit via running ake Sources/search
1 parent 1408ae7 commit 88a4049

File tree

1 file changed

+54
-10
lines changed

1 file changed

+54
-10
lines changed

Sources/search/Types.swift

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ public enum Components {
375375
public var site_admin: Swift.Bool
376376
/// - Remark: Generated from `#/components/schemas/simple-user/starred_at`.
377377
public var starred_at: Swift.String?
378+
/// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`.
379+
public var user_view_type: Swift.String?
378380
/// Creates a new `simple_hyphen_user`.
379381
///
380382
/// - Parameters:
@@ -399,6 +401,7 @@ public enum Components {
399401
/// - _type:
400402
/// - site_admin:
401403
/// - starred_at:
404+
/// - user_view_type:
402405
public init(
403406
name: Swift.String? = nil,
404407
email: Swift.String? = nil,
@@ -420,7 +423,8 @@ public enum Components {
420423
received_events_url: Swift.String,
421424
_type: Swift.String,
422425
site_admin: Swift.Bool,
423-
starred_at: Swift.String? = nil
426+
starred_at: Swift.String? = nil,
427+
user_view_type: Swift.String? = nil
424428
) {
425429
self.name = name
426430
self.email = email
@@ -443,6 +447,7 @@ public enum Components {
443447
self._type = _type
444448
self.site_admin = site_admin
445449
self.starred_at = starred_at
450+
self.user_view_type = user_view_type
446451
}
447452
public enum CodingKeys: String, CodingKey {
448453
case name
@@ -466,6 +471,7 @@ public enum Components {
466471
case _type = "type"
467472
case site_admin
468473
case starred_at
474+
case user_view_type
469475
}
470476
}
471477
/// Basic Error
@@ -551,6 +557,8 @@ public enum Components {
551557
public var site_admin: Swift.Bool
552558
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`.
553559
public var starred_at: Swift.String?
560+
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`.
561+
public var user_view_type: Swift.String?
554562
/// Creates a new `nullable_hyphen_simple_hyphen_user`.
555563
///
556564
/// - Parameters:
@@ -575,6 +583,7 @@ public enum Components {
575583
/// - _type:
576584
/// - site_admin:
577585
/// - starred_at:
586+
/// - user_view_type:
578587
public init(
579588
name: Swift.String? = nil,
580589
email: Swift.String? = nil,
@@ -596,7 +605,8 @@ public enum Components {
596605
received_events_url: Swift.String,
597606
_type: Swift.String,
598607
site_admin: Swift.Bool,
599-
starred_at: Swift.String? = nil
608+
starred_at: Swift.String? = nil,
609+
user_view_type: Swift.String? = nil
600610
) {
601611
self.name = name
602612
self.email = email
@@ -619,6 +629,7 @@ public enum Components {
619629
self._type = _type
620630
self.site_admin = site_admin
621631
self.starred_at = starred_at
632+
self.user_view_type = user_view_type
622633
}
623634
public enum CodingKeys: String, CodingKey {
624635
case name
@@ -642,6 +653,7 @@ public enum Components {
642653
case _type = "type"
643654
case site_admin
644655
case starred_at
656+
case user_view_type
645657
}
646658
}
647659
/// Validation Error
@@ -1066,7 +1078,7 @@ public enum Components {
10661078
///
10671079
/// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`.
10681080
public var allow_update_branch: Swift.Bool?
1069-
/// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
1081+
/// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.
10701082
///
10711083
/// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`.
10721084
@available(*, deprecated)
@@ -1254,7 +1266,7 @@ public enum Components {
12541266
/// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests.
12551267
/// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged
12561268
/// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.
1257-
/// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
1269+
/// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.
12581270
/// - squash_merge_commit_title: The default value for a squash merge commit title:
12591271
/// - squash_merge_commit_message: The default value for a squash merge commit message:
12601272
/// - merge_commit_title: The default value for a merge commit title.
@@ -2156,6 +2168,28 @@ public enum Components {
21562168
}
21572169
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`.
21582170
public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload?
2171+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`.
2172+
public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable {
2173+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`.
2174+
@frozen public enum statusPayload: String, Codable, Hashable, Sendable {
2175+
case enabled = "enabled"
2176+
case disabled = "disabled"
2177+
}
2178+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`.
2179+
public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload?
2180+
/// Creates a new `secret_scanning_ai_detectionPayload`.
2181+
///
2182+
/// - Parameters:
2183+
/// - status:
2184+
public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) {
2185+
self.status = status
2186+
}
2187+
public enum CodingKeys: String, CodingKey {
2188+
case status
2189+
}
2190+
}
2191+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`.
2192+
public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload?
21592193
/// Creates a new `security_hyphen_and_hyphen_analysis`.
21602194
///
21612195
/// - Parameters:
@@ -2164,25 +2198,29 @@ public enum Components {
21642198
/// - secret_scanning:
21652199
/// - secret_scanning_push_protection:
21662200
/// - secret_scanning_non_provider_patterns:
2201+
/// - secret_scanning_ai_detection:
21672202
public init(
21682203
advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil,
21692204
dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil,
21702205
secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil,
21712206
secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil,
2172-
secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil
2207+
secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil,
2208+
secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil
21732209
) {
21742210
self.advanced_security = advanced_security
21752211
self.dependabot_security_updates = dependabot_security_updates
21762212
self.secret_scanning = secret_scanning
21772213
self.secret_scanning_push_protection = secret_scanning_push_protection
21782214
self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns
2215+
self.secret_scanning_ai_detection = secret_scanning_ai_detection
21792216
}
21802217
public enum CodingKeys: String, CodingKey {
21812218
case advanced_security
21822219
case dependabot_security_updates
21832220
case secret_scanning
21842221
case secret_scanning_push_protection
21852222
case secret_scanning_non_provider_patterns
2223+
case secret_scanning_ai_detection
21862224
}
21872225
}
21882226
/// Minimal Repository
@@ -4513,6 +4551,8 @@ public enum Components {
45134551
public var company: Swift.String?
45144552
/// - Remark: Generated from `#/components/schemas/user-search-result-item/suspended_at`.
45154553
public var suspended_at: Foundation.Date?
4554+
/// - Remark: Generated from `#/components/schemas/user-search-result-item/user_view_type`.
4555+
public var user_view_type: Swift.String?
45164556
/// Creates a new `user_hyphen_search_hyphen_result_hyphen_item`.
45174557
///
45184558
/// - Parameters:
@@ -4550,6 +4590,7 @@ public enum Components {
45504590
/// - blog:
45514591
/// - company:
45524592
/// - suspended_at:
4593+
/// - user_view_type:
45534594
public init(
45544595
login: Swift.String,
45554596
id: Swift.Int64,
@@ -4584,7 +4625,8 @@ public enum Components {
45844625
text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil,
45854626
blog: Swift.String? = nil,
45864627
company: Swift.String? = nil,
4587-
suspended_at: Foundation.Date? = nil
4628+
suspended_at: Foundation.Date? = nil,
4629+
user_view_type: Swift.String? = nil
45884630
) {
45894631
self.login = login
45904632
self.id = id
@@ -4620,6 +4662,7 @@ public enum Components {
46204662
self.blog = blog
46214663
self.company = company
46224664
self.suspended_at = suspended_at
4665+
self.user_view_type = user_view_type
46234666
}
46244667
public enum CodingKeys: String, CodingKey {
46254668
case login
@@ -4656,6 +4699,7 @@ public enum Components {
46564699
case blog
46574700
case company
46584701
case suspended_at
4702+
case user_view_type
46594703
}
46604704
}
46614705
}
@@ -4871,7 +4915,7 @@ public enum Operations {
48714915
@frozen public enum sortPayload: String, Codable, Hashable, Sendable {
48724916
case indexed = "indexed"
48734917
}
4874-
/// **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4918+
/// **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
48754919
///
48764920
/// - Remark: Generated from `#/paths/search/code/GET/query/sort`.
48774921
@available(*, deprecated)
@@ -4881,7 +4925,7 @@ public enum Operations {
48814925
case desc = "desc"
48824926
case asc = "asc"
48834927
}
4884-
/// **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4928+
/// **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
48854929
///
48864930
/// - Remark: Generated from `#/paths/search/code/GET/query/order`.
48874931
@available(*, deprecated)
@@ -4898,8 +4942,8 @@ public enum Operations {
48984942
///
48994943
/// - Parameters:
49004944
/// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching code](https://docs.github.com/search-github/searching-on-github/searching-code)" for a detailed list of qualifiers.
4901-
/// - sort: **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4902-
/// - order: **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4945+
/// - sort: **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4946+
/// - order: **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
49034947
/// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
49044948
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
49054949
public init(

0 commit comments

Comments
 (0)