Skip to content

Commit f4d81c6

Browse files
Commit via running ake Sources/orgs
1 parent 017a800 commit f4d81c6

File tree

2 files changed

+77
-23
lines changed

2 files changed

+77
-23
lines changed

Sources/orgs/Client.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,6 +2127,13 @@ public struct Client: APIProtocol {
21272127
name: "sort",
21282128
value: input.query.sort
21292129
)
2130+
try converter.setQueryItemAsURI(
2131+
in: &request,
2132+
style: .form,
2133+
explode: true,
2134+
name: "api_route_substring",
2135+
value: input.query.api_route_substring
2136+
)
21302137
converter.setAcceptHeader(
21312138
in: &request.headerFields,
21322139
contentTypes: input.headers.accept
@@ -2233,6 +2240,13 @@ public struct Client: APIProtocol {
22332240
name: "sort",
22342241
value: input.query.sort
22352242
)
2243+
try converter.setQueryItemAsURI(
2244+
in: &request,
2245+
style: .form,
2246+
explode: true,
2247+
name: "subject_name_substring",
2248+
value: input.query.subject_name_substring
2249+
)
22362250
converter.setAcceptHeader(
22372251
in: &request.headerFields,
22382252
contentTypes: input.headers.accept
@@ -2835,6 +2849,13 @@ public struct Client: APIProtocol {
28352849
name: "sort",
28362850
value: input.query.sort
28372851
)
2852+
try converter.setQueryItemAsURI(
2853+
in: &request,
2854+
style: .form,
2855+
explode: true,
2856+
name: "actor_name_substring",
2857+
value: input.query.actor_name_substring
2858+
)
28382859
converter.setAcceptHeader(
28392860
in: &request.headerFields,
28402861
contentTypes: input.headers.accept

Sources/orgs/Types.swift

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7670,11 +7670,11 @@ public enum Components {
76707670
///
76717671
/// - Remark: Generated from `#/components/parameters/api-insights-actor-type`.
76727672
@frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable {
7673-
case installations = "installations"
7674-
case classic_pats = "classic_pats"
7675-
case fine_grained_pats = "fine_grained_pats"
7676-
case oauth_apps = "oauth_apps"
7677-
case github_apps_user_to_server = "github_apps_user_to_server"
7673+
case installation = "installation"
7674+
case classic_pat = "classic_pat"
7675+
case fine_grained_pat = "fine_grained_pat"
7676+
case oauth_app = "oauth_app"
7677+
case github_app_user_to_server = "github_app_user_to_server"
76787678
}
76797679
/// The ID of the actor
76807680
///
@@ -7701,6 +7701,10 @@ public enum Components {
77017701
///
77027702
/// - Remark: Generated from `#/components/parameters/api-insights-route-stats-sort`.
77037703
public typealias api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sortPayload]
7704+
/// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.
7705+
///
7706+
/// - Remark: Generated from `#/components/parameters/api-insights-api-route-substring`.
7707+
public typealias api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring = Swift.String
77047708
/// - Remark: Generated from `#/components/parameters/api_hyphen_insights_hyphen_sort`.
77057709
@frozen public enum api_hyphen_insights_hyphen_sortPayload: String, Codable, Hashable, Sendable {
77067710
case last_rate_limited_timestamp = "last_rate_limited_timestamp"
@@ -7713,6 +7717,10 @@ public enum Components {
77137717
///
77147718
/// - Remark: Generated from `#/components/parameters/api-insights-sort`.
77157719
public typealias api_hyphen_insights_hyphen_sort = [Components.Parameters.api_hyphen_insights_hyphen_sortPayload]
7720+
/// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.
7721+
///
7722+
/// - Remark: Generated from `#/components/parameters/api-insights-subject-name-substring`.
7723+
public typealias api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring = Swift.String
77167724
/// The ID of the user to query for stats
77177725
///
77187726
/// - Remark: Generated from `#/components/parameters/api-insights-user-id`.
@@ -7721,6 +7729,10 @@ public enum Components {
77217729
///
77227730
/// - Remark: Generated from `#/components/parameters/api-insights-timestamp-increment`.
77237731
public typealias api_hyphen_insights_hyphen_timestamp_hyphen_increment = Swift.String
7732+
/// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.
7733+
///
7734+
/// - Remark: Generated from `#/components/parameters/api-insights-actor-name-substring`.
7735+
public typealias api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring = Swift.String
77247736
/// The unique identifier of the invitation.
77257737
///
77267738
/// - Remark: Generated from `#/components/parameters/invitation-id`.
@@ -12373,11 +12385,11 @@ public enum Operations {
1237312385
public var org: Components.Parameters.org
1237412386
/// - Remark: Generated from `#/components/parameters/api-insights-actor-type`.
1237512387
@frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable {
12376-
case installations = "installations"
12377-
case classic_pats = "classic_pats"
12378-
case fine_grained_pats = "fine_grained_pats"
12379-
case oauth_apps = "oauth_apps"
12380-
case github_apps_user_to_server = "github_apps_user_to_server"
12388+
case installation = "installation"
12389+
case classic_pat = "classic_pat"
12390+
case fine_grained_pat = "fine_grained_pat"
12391+
case oauth_app = "oauth_app"
12392+
case github_app_user_to_server = "github_app_user_to_server"
1238112393
}
1238212394
/// The type of the actor
1238312395
///
@@ -12446,6 +12458,10 @@ public enum Operations {
1244612458
///
1244712459
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/sort`.
1244812460
public var sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort?
12461+
/// Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.
12462+
///
12463+
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}/GET/query/api_route_substring`.
12464+
public var api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring?
1244912465
/// Creates a new `Query`.
1245012466
///
1245112467
/// - Parameters:
@@ -12455,20 +12471,23 @@ public enum Operations {
1245512471
/// - 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)."
1245612472
/// - direction: The direction to sort the results by.
1245712473
/// - sort: The property to sort the results by.
12474+
/// - api_route_substring: Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.
1245812475
public init(
1245912476
min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp,
1246012477
max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil,
1246112478
page: Components.Parameters.page? = nil,
1246212479
per_page: Components.Parameters.per_hyphen_page? = nil,
1246312480
direction: Components.Parameters.direction? = nil,
12464-
sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? = nil
12481+
sort: Components.Parameters.api_hyphen_insights_hyphen_route_hyphen_stats_hyphen_sort? = nil,
12482+
api_route_substring: Components.Parameters.api_hyphen_insights_hyphen_api_hyphen_route_hyphen_substring? = nil
1246512483
) {
1246612484
self.min_timestamp = min_timestamp
1246712485
self.max_timestamp = max_timestamp
1246812486
self.page = page
1246912487
self.per_page = per_page
1247012488
self.direction = direction
1247112489
self.sort = sort
12490+
self.api_route_substring = api_route_substring
1247212491
}
1247312492
}
1247412493
public var query: Operations.api_hyphen_insights_sol_get_hyphen_route_hyphen_stats_hyphen_by_hyphen_actor.Input.Query
@@ -12648,6 +12667,10 @@ public enum Operations {
1264812667
///
1264912668
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/sort`.
1265012669
public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort?
12670+
/// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.
12671+
///
12672+
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/subject-stats/GET/query/subject_name_substring`.
12673+
public var subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring?
1265112674
/// Creates a new `Query`.
1265212675
///
1265312676
/// - Parameters:
@@ -12657,20 +12680,23 @@ public enum Operations {
1265712680
/// - 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)."
1265812681
/// - direction: The direction to sort the results by.
1265912682
/// - sort: The property to sort the results by.
12683+
/// - subject_name_substring: Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.
1266012684
public init(
1266112685
min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp,
1266212686
max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil,
1266312687
page: Components.Parameters.page? = nil,
1266412688
per_page: Components.Parameters.per_hyphen_page? = nil,
1266512689
direction: Components.Parameters.direction? = nil,
12666-
sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil
12690+
sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil,
12691+
subject_name_substring: Components.Parameters.api_hyphen_insights_hyphen_subject_hyphen_name_hyphen_substring? = nil
1266712692
) {
1266812693
self.min_timestamp = min_timestamp
1266912694
self.max_timestamp = max_timestamp
1267012695
self.page = page
1267112696
self.per_page = per_page
1267212697
self.direction = direction
1267312698
self.sort = sort
12699+
self.subject_name_substring = subject_name_substring
1267412700
}
1267512701
}
1267612702
public var query: Operations.api_hyphen_insights_sol_get_hyphen_subject_hyphen_stats.Input.Query
@@ -13129,11 +13155,11 @@ public enum Operations {
1312913155
public var org: Components.Parameters.org
1313013156
/// - Remark: Generated from `#/components/parameters/api-insights-actor-type`.
1313113157
@frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable {
13132-
case installations = "installations"
13133-
case classic_pats = "classic_pats"
13134-
case fine_grained_pats = "fine_grained_pats"
13135-
case oauth_apps = "oauth_apps"
13136-
case github_apps_user_to_server = "github_apps_user_to_server"
13158+
case installation = "installation"
13159+
case classic_pat = "classic_pat"
13160+
case fine_grained_pat = "fine_grained_pat"
13161+
case oauth_app = "oauth_app"
13162+
case github_app_user_to_server = "github_app_user_to_server"
1313713163
}
1313813164
/// The type of the actor
1313913165
///
@@ -13653,11 +13679,11 @@ public enum Operations {
1365313679
public var org: Components.Parameters.org
1365413680
/// - Remark: Generated from `#/components/parameters/api-insights-actor-type`.
1365513681
@frozen public enum api_hyphen_insights_hyphen_actor_hyphen_type: String, Codable, Hashable, Sendable {
13656-
case installations = "installations"
13657-
case classic_pats = "classic_pats"
13658-
case fine_grained_pats = "fine_grained_pats"
13659-
case oauth_apps = "oauth_apps"
13660-
case github_apps_user_to_server = "github_apps_user_to_server"
13682+
case installation = "installation"
13683+
case classic_pat = "classic_pat"
13684+
case fine_grained_pat = "fine_grained_pat"
13685+
case oauth_app = "oauth_app"
13686+
case github_app_user_to_server = "github_app_user_to_server"
1366113687
}
1366213688
/// The type of the actor
1366313689
///
@@ -13900,6 +13926,10 @@ public enum Operations {
1390013926
///
1390113927
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/sort`.
1390213928
public var sort: Components.Parameters.api_hyphen_insights_hyphen_sort?
13929+
/// Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.
13930+
///
13931+
/// - Remark: Generated from `#/paths/orgs/{org}/insights/api/user-stats/{user_id}/GET/query/actor_name_substring`.
13932+
public var actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring?
1390313933
/// Creates a new `Query`.
1390413934
///
1390513935
/// - Parameters:
@@ -13909,20 +13939,23 @@ public enum Operations {
1390913939
/// - 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)."
1391013940
/// - direction: The direction to sort the results by.
1391113941
/// - sort: The property to sort the results by.
13942+
/// - actor_name_substring: Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.
1391213943
public init(
1391313944
min_timestamp: Components.Parameters.api_hyphen_insights_hyphen_min_hyphen_timestamp,
1391413945
max_timestamp: Components.Parameters.api_hyphen_insights_hyphen_max_hyphen_timestamp? = nil,
1391513946
page: Components.Parameters.page? = nil,
1391613947
per_page: Components.Parameters.per_hyphen_page? = nil,
1391713948
direction: Components.Parameters.direction? = nil,
13918-
sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil
13949+
sort: Components.Parameters.api_hyphen_insights_hyphen_sort? = nil,
13950+
actor_name_substring: Components.Parameters.api_hyphen_insights_hyphen_actor_hyphen_name_hyphen_substring? = nil
1391913951
) {
1392013952
self.min_timestamp = min_timestamp
1392113953
self.max_timestamp = max_timestamp
1392213954
self.page = page
1392313955
self.per_page = per_page
1392413956
self.direction = direction
1392513957
self.sort = sort
13958+
self.actor_name_substring = actor_name_substring
1392613959
}
1392713960
}
1392813961
public var query: Operations.api_hyphen_insights_sol_get_hyphen_user_hyphen_stats.Input.Query

0 commit comments

Comments
 (0)