Skip to content

Commit 3abf939

Browse files
Merge pull request #82 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-cf0948f
Bump Submodule/github/rest-api-description from `5b32856` to `cf0948f`
2 parents 9680a13 + 7f5bf48 commit 3abf939

File tree

39 files changed

+4343
-544
lines changed

39 files changed

+4343
-544
lines changed

.spi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ builder:
3131
- GitHubRestAPIOidc
3232
- GitHubRestAPIOrgs
3333
- GitHubRestAPIPackages
34+
- GitHubRestAPIPrivate_Registries
3435
- GitHubRestAPIProjects
3536
- GitHubRestAPIPulls
3637
- GitHubRestAPIRate_Limit

Package.swift

+9
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ let package = Package(
4040
.library(name: "GitHubRestAPIOidc", targets: ["GitHubRestAPIOidc"]),
4141
.library(name: "GitHubRestAPIOrgs", targets: ["GitHubRestAPIOrgs"]),
4242
.library(name: "GitHubRestAPIPackages", targets: ["GitHubRestAPIPackages"]),
43+
.library(name: "GitHubRestAPIPrivate_Registries", targets: ["GitHubRestAPIPrivate_Registries"]),
4344
.library(name: "GitHubRestAPIProjects", targets: ["GitHubRestAPIProjects"]),
4445
.library(name: "GitHubRestAPIPulls", targets: ["GitHubRestAPIPulls"]),
4546
.library(name: "GitHubRestAPIRate_Limit", targets: ["GitHubRestAPIRate_Limit"]),
@@ -288,6 +289,14 @@ let package = Package(
288289
],
289290
path: "Sources/packages"
290291
),
292+
.target(
293+
name: "GitHubRestAPIPrivate_Registries",
294+
dependencies: [
295+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
296+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
297+
],
298+
path: "Sources/private-registries"
299+
),
291300
.target(
292301
name: "GitHubRestAPIProjects",
293302
dependencies: [

Sources/actions/Client.swift

+798
Large diffs are not rendered by default.

Sources/actions/Types.swift

+2,257-5
Large diffs are not rendered by default.

Sources/activity/Types.swift

+43-5
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,8 @@ public enum Components {
889889
public var site_admin: Swift.Bool
890890
/// - Remark: Generated from `#/components/schemas/simple-user/starred_at`.
891891
public var starred_at: Swift.String?
892+
/// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`.
893+
public var user_view_type: Swift.String?
892894
/// Creates a new `simple_hyphen_user`.
893895
///
894896
/// - Parameters:
@@ -913,6 +915,7 @@ public enum Components {
913915
/// - _type:
914916
/// - site_admin:
915917
/// - starred_at:
918+
/// - user_view_type:
916919
public init(
917920
name: Swift.String? = nil,
918921
email: Swift.String? = nil,
@@ -934,7 +937,8 @@ public enum Components {
934937
received_events_url: Swift.String,
935938
_type: Swift.String,
936939
site_admin: Swift.Bool,
937-
starred_at: Swift.String? = nil
940+
starred_at: Swift.String? = nil,
941+
user_view_type: Swift.String? = nil
938942
) {
939943
self.name = name
940944
self.email = email
@@ -957,6 +961,7 @@ public enum Components {
957961
self._type = _type
958962
self.site_admin = site_admin
959963
self.starred_at = starred_at
964+
self.user_view_type = user_view_type
960965
}
961966
public enum CodingKeys: String, CodingKey {
962967
case name
@@ -980,6 +985,7 @@ public enum Components {
980985
case _type = "type"
981986
case site_admin
982987
case starred_at
988+
case user_view_type
983989
}
984990
}
985991
/// Basic Error
@@ -1065,6 +1071,8 @@ public enum Components {
10651071
public var site_admin: Swift.Bool
10661072
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`.
10671073
public var starred_at: Swift.String?
1074+
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`.
1075+
public var user_view_type: Swift.String?
10681076
/// Creates a new `nullable_hyphen_simple_hyphen_user`.
10691077
///
10701078
/// - Parameters:
@@ -1089,6 +1097,7 @@ public enum Components {
10891097
/// - _type:
10901098
/// - site_admin:
10911099
/// - starred_at:
1100+
/// - user_view_type:
10921101
public init(
10931102
name: Swift.String? = nil,
10941103
email: Swift.String? = nil,
@@ -1110,7 +1119,8 @@ public enum Components {
11101119
received_events_url: Swift.String,
11111120
_type: Swift.String,
11121121
site_admin: Swift.Bool,
1113-
starred_at: Swift.String? = nil
1122+
starred_at: Swift.String? = nil,
1123+
user_view_type: Swift.String? = nil
11141124
) {
11151125
self.name = name
11161126
self.email = email
@@ -1133,6 +1143,7 @@ public enum Components {
11331143
self._type = _type
11341144
self.site_admin = site_admin
11351145
self.starred_at = starred_at
1146+
self.user_view_type = user_view_type
11361147
}
11371148
public enum CodingKeys: String, CodingKey {
11381149
case name
@@ -1156,6 +1167,7 @@ public enum Components {
11561167
case _type = "type"
11571168
case site_admin
11581169
case starred_at
1170+
case user_view_type
11591171
}
11601172
}
11611173
/// Validation Error
@@ -1580,7 +1592,7 @@ public enum Components {
15801592
///
15811593
/// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`.
15821594
public var allow_update_branch: Swift.Bool?
1583-
/// 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.
1595+
/// 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.
15841596
///
15851597
/// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`.
15861598
@available(*, deprecated)
@@ -1768,7 +1780,7 @@ public enum Components {
17681780
/// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests.
17691781
/// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged
17701782
/// - 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.
1771-
/// - 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.
1783+
/// - 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.
17721784
/// - squash_merge_commit_title: The default value for a squash merge commit title:
17731785
/// - squash_merge_commit_message: The default value for a squash merge commit message:
17741786
/// - merge_commit_title: The default value for a merge commit title.
@@ -3547,6 +3559,28 @@ public enum Components {
35473559
}
35483560
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`.
35493561
public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload?
3562+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`.
3563+
public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable {
3564+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`.
3565+
@frozen public enum statusPayload: String, Codable, Hashable, Sendable {
3566+
case enabled = "enabled"
3567+
case disabled = "disabled"
3568+
}
3569+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`.
3570+
public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload?
3571+
/// Creates a new `secret_scanning_ai_detectionPayload`.
3572+
///
3573+
/// - Parameters:
3574+
/// - status:
3575+
public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) {
3576+
self.status = status
3577+
}
3578+
public enum CodingKeys: String, CodingKey {
3579+
case status
3580+
}
3581+
}
3582+
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`.
3583+
public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload?
35503584
/// Creates a new `security_hyphen_and_hyphen_analysis`.
35513585
///
35523586
/// - Parameters:
@@ -3555,25 +3589,29 @@ public enum Components {
35553589
/// - secret_scanning:
35563590
/// - secret_scanning_push_protection:
35573591
/// - secret_scanning_non_provider_patterns:
3592+
/// - secret_scanning_ai_detection:
35583593
public init(
35593594
advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil,
35603595
dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil,
35613596
secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil,
35623597
secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil,
3563-
secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil
3598+
secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil,
3599+
secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil
35643600
) {
35653601
self.advanced_security = advanced_security
35663602
self.dependabot_security_updates = dependabot_security_updates
35673603
self.secret_scanning = secret_scanning
35683604
self.secret_scanning_push_protection = secret_scanning_push_protection
35693605
self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns
3606+
self.secret_scanning_ai_detection = secret_scanning_ai_detection
35703607
}
35713608
public enum CodingKeys: String, CodingKey {
35723609
case advanced_security
35733610
case dependabot_security_updates
35743611
case secret_scanning
35753612
case secret_scanning_push_protection
35763613
case secret_scanning_non_provider_patterns
3614+
case secret_scanning_ai_detection
35773615
}
35783616
}
35793617
/// Minimal Repository

0 commit comments

Comments
 (0)