@@ -180,10 +180,12 @@ extension APIProtocol {
180
180
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`.
181
181
public func secretScanningGetAlert(
182
182
path: Operations . SecretScanningGetAlert . Input . Path ,
183
+ query: Operations . SecretScanningGetAlert . Input . Query = . init( ) ,
183
184
headers: Operations . SecretScanningGetAlert . Input . Headers = . init( )
184
185
) async throws -> Operations . SecretScanningGetAlert . Output {
185
186
try await secretScanningGetAlert ( Operations . SecretScanningGetAlert. Input (
186
187
path: path,
188
+ query: query,
187
189
headers: headers
188
190
) )
189
191
}
@@ -2256,6 +2258,10 @@ public enum Components {
2256
2258
///
2257
2259
/// - Remark: Generated from `#/components/parameters/secret-scanning-alert-multi-repo`.
2258
2260
public typealias SecretScanningAlertMultiRepo = Swift . Bool
2261
+ /// A boolean value representing whether or not to hide literal secrets in the results.
2262
+ ///
2263
+ /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-hide-secret`.
2264
+ public typealias SecretScanningAlertHideSecret = Swift . Bool
2259
2265
/// The account owner of the repository. The name is not case sensitive.
2260
2266
///
2261
2267
/// - Remark: Generated from `#/components/parameters/owner`.
@@ -2475,6 +2481,10 @@ public enum Operations {
2475
2481
///
2476
2482
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/is_multi_repo`.
2477
2483
public var isMultiRepo : Components . Parameters . SecretScanningAlertMultiRepo ?
2484
+ /// A boolean value representing whether or not to hide literal secrets in the results.
2485
+ ///
2486
+ /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/hide_secret`.
2487
+ public var hideSecret : Components . Parameters . SecretScanningAlertHideSecret ?
2478
2488
/// Creates a new `Query`.
2479
2489
///
2480
2490
/// - Parameters:
@@ -2489,6 +2499,7 @@ public enum Operations {
2489
2499
/// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.
2490
2500
/// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
2491
2501
/// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
2502
+ /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results.
2492
2503
public init (
2493
2504
state: Components . Parameters . SecretScanningAlertState ? = nil ,
2494
2505
secretType: Components . Parameters . SecretScanningAlertSecretType ? = nil ,
@@ -2500,7 +2511,8 @@ public enum Operations {
2500
2511
after: Components . Parameters . PaginationAfter ? = nil ,
2501
2512
validity: Components . Parameters . SecretScanningAlertValidity ? = nil ,
2502
2513
isPubliclyLeaked: Components . Parameters . SecretScanningAlertPubliclyLeaked ? = nil ,
2503
- isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil
2514
+ isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil ,
2515
+ hideSecret: Components . Parameters . SecretScanningAlertHideSecret ? = nil
2504
2516
) {
2505
2517
self . state = state
2506
2518
self . secretType = secretType
@@ -2513,6 +2525,7 @@ public enum Operations {
2513
2525
self . validity = validity
2514
2526
self . isPubliclyLeaked = isPubliclyLeaked
2515
2527
self . isMultiRepo = isMultiRepo
2528
+ self . hideSecret = hideSecret
2516
2529
}
2517
2530
}
2518
2531
public var query : Operations . SecretScanningListAlertsForEnterprise . Input . Query
@@ -2785,6 +2798,10 @@ public enum Operations {
2785
2798
///
2786
2799
/// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/is_multi_repo`.
2787
2800
public var isMultiRepo : Components . Parameters . SecretScanningAlertMultiRepo ?
2801
+ /// A boolean value representing whether or not to hide literal secrets in the results.
2802
+ ///
2803
+ /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/hide_secret`.
2804
+ public var hideSecret : Components . Parameters . SecretScanningAlertHideSecret ?
2788
2805
/// Creates a new `Query`.
2789
2806
///
2790
2807
/// - Parameters:
@@ -2800,6 +2817,7 @@ public enum Operations {
2800
2817
/// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.
2801
2818
/// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
2802
2819
/// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
2820
+ /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results.
2803
2821
public init (
2804
2822
state: Components . Parameters . SecretScanningAlertState ? = nil ,
2805
2823
secretType: Components . Parameters . SecretScanningAlertSecretType ? = nil ,
@@ -2812,7 +2830,8 @@ public enum Operations {
2812
2830
after: Components . Parameters . SecretScanningPaginationAfterOrgRepo ? = nil ,
2813
2831
validity: Components . Parameters . SecretScanningAlertValidity ? = nil ,
2814
2832
isPubliclyLeaked: Components . Parameters . SecretScanningAlertPubliclyLeaked ? = nil ,
2815
- isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil
2833
+ isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil ,
2834
+ hideSecret: Components . Parameters . SecretScanningAlertHideSecret ? = nil
2816
2835
) {
2817
2836
self . state = state
2818
2837
self . secretType = secretType
@@ -2826,6 +2845,7 @@ public enum Operations {
2826
2845
self . validity = validity
2827
2846
self . isPubliclyLeaked = isPubliclyLeaked
2828
2847
self . isMultiRepo = isMultiRepo
2848
+ self . hideSecret = hideSecret
2829
2849
}
2830
2850
}
2831
2851
public var query : Operations . SecretScanningListAlertsForOrg . Input . Query
@@ -3107,6 +3127,10 @@ public enum Operations {
3107
3127
///
3108
3128
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/is_multi_repo`.
3109
3129
public var isMultiRepo : Components . Parameters . SecretScanningAlertMultiRepo ?
3130
+ /// A boolean value representing whether or not to hide literal secrets in the results.
3131
+ ///
3132
+ /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/hide_secret`.
3133
+ public var hideSecret : Components . Parameters . SecretScanningAlertHideSecret ?
3110
3134
/// Creates a new `Query`.
3111
3135
///
3112
3136
/// - Parameters:
@@ -3122,6 +3146,7 @@ public enum Operations {
3122
3146
/// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.
3123
3147
/// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
3124
3148
/// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
3149
+ /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results.
3125
3150
public init (
3126
3151
state: Components . Parameters . SecretScanningAlertState ? = nil ,
3127
3152
secretType: Components . Parameters . SecretScanningAlertSecretType ? = nil ,
@@ -3134,7 +3159,8 @@ public enum Operations {
3134
3159
after: Components . Parameters . SecretScanningPaginationAfterOrgRepo ? = nil ,
3135
3160
validity: Components . Parameters . SecretScanningAlertValidity ? = nil ,
3136
3161
isPubliclyLeaked: Components . Parameters . SecretScanningAlertPubliclyLeaked ? = nil ,
3137
- isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil
3162
+ isMultiRepo: Components . Parameters . SecretScanningAlertMultiRepo ? = nil ,
3163
+ hideSecret: Components . Parameters . SecretScanningAlertHideSecret ? = nil
3138
3164
) {
3139
3165
self . state = state
3140
3166
self . secretType = secretType
@@ -3148,6 +3174,7 @@ public enum Operations {
3148
3174
self . validity = validity
3149
3175
self . isPubliclyLeaked = isPubliclyLeaked
3150
3176
self . isMultiRepo = isMultiRepo
3177
+ self . hideSecret = hideSecret
3151
3178
}
3152
3179
}
3153
3180
public var query : Operations . SecretScanningListAlertsForRepo . Input . Query
@@ -3364,6 +3391,21 @@ public enum Operations {
3364
3391
}
3365
3392
}
3366
3393
public var path : Operations . SecretScanningGetAlert . Input . Path
3394
+ /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/query`.
3395
+ public struct Query : Sendable , Hashable {
3396
+ /// A boolean value representing whether or not to hide literal secrets in the results.
3397
+ ///
3398
+ /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/query/hide_secret`.
3399
+ public var hideSecret : Components . Parameters . SecretScanningAlertHideSecret ?
3400
+ /// Creates a new `Query`.
3401
+ ///
3402
+ /// - Parameters:
3403
+ /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results.
3404
+ public init ( hideSecret: Components . Parameters . SecretScanningAlertHideSecret ? = nil ) {
3405
+ self . hideSecret = hideSecret
3406
+ }
3407
+ }
3408
+ public var query : Operations . SecretScanningGetAlert . Input . Query
3367
3409
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/header`.
3368
3410
public struct Headers : Sendable , Hashable {
3369
3411
public var accept : [ OpenAPIRuntime . AcceptHeaderContentType < Operations . SecretScanningGetAlert . AcceptableContentType > ]
@@ -3380,12 +3422,15 @@ public enum Operations {
3380
3422
///
3381
3423
/// - Parameters:
3382
3424
/// - path:
3425
+ /// - query:
3383
3426
/// - headers:
3384
3427
public init (
3385
3428
path: Operations . SecretScanningGetAlert . Input . Path ,
3429
+ query: Operations . SecretScanningGetAlert . Input . Query = . init( ) ,
3386
3430
headers: Operations . SecretScanningGetAlert . Input . Headers = . init( )
3387
3431
) {
3388
3432
self . path = path
3433
+ self . query = query
3389
3434
self . headers = headers
3390
3435
}
3391
3436
}
0 commit comments