You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/apps/Client.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1006,7 +1006,7 @@ public struct Client: APIProtocol {
1006
1006
}
1007
1007
/// Delete an installation for the authenticated app
1008
1008
///
1009
-
/// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
1009
+
/// Uninstalls a GitHub App on a user, organization, or enterprise account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
1010
1010
///
1011
1011
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
1012
1012
///
@@ -1243,7 +1243,7 @@ public struct Client: APIProtocol {
1243
1243
}
1244
1244
/// Suspend an app installation
1245
1245
///
1246
-
/// Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
1246
+
/// Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
1247
1247
///
1248
1248
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
/// Delete an installation for the authenticated app
101
101
///
102
-
/// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
102
+
/// Uninstalls a GitHub App on a user, organization, or enterprise account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
103
103
///
104
104
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
105
105
///
@@ -121,7 +121,7 @@ public protocol APIProtocol: Sendable {
/// Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
124
+
/// Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
125
125
///
126
126
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
127
127
///
@@ -496,7 +496,7 @@ extension APIProtocol {
496
496
}
497
497
/// Delete an installation for the authenticated app
498
498
///
499
-
/// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
499
+
/// Uninstalls a GitHub App on a user, organization, or enterprise account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
500
500
///
501
501
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
502
502
///
@@ -536,7 +536,7 @@ extension APIProtocol {
536
536
}
537
537
/// Suspend an app installation
538
538
///
539
-
/// Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
539
+
/// Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
540
540
///
541
541
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
542
542
///
@@ -3180,6 +3180,8 @@ public enum Components {
3180
3180
public var htmlUrl: Swift.String
3181
3181
/// - Remark: Generated from `#/components/schemas/installation/app_id`.
3182
3182
public var appId: Swift.Int
3183
+
/// - Remark: Generated from `#/components/schemas/installation/client_id`.
3184
+
public var clientId: Swift.String?
3183
3185
/// The ID of the user or organization this token is being scoped to.
3184
3186
///
3185
3187
/// - Remark: Generated from `#/components/schemas/installation/target_id`.
@@ -3218,6 +3220,7 @@ public enum Components {
3218
3220
/// - repositoriesUrl:
3219
3221
/// - htmlUrl:
3220
3222
/// - appId:
3223
+
/// - clientId:
3221
3224
/// - targetId: The ID of the user or organization this token is being scoped to.
3222
3225
/// - targetType:
3223
3226
/// - permissions:
@@ -3239,6 +3242,7 @@ public enum Components {
3239
3242
repositoriesUrl: Swift.String,
3240
3243
htmlUrl: Swift.String,
3241
3244
appId: Swift.Int,
3245
+
clientId: Swift.String? = nil,
3242
3246
targetId: Swift.Int,
3243
3247
targetType: Swift.String,
3244
3248
permissions: Components.Schemas.AppPermissions,
@@ -3260,6 +3264,7 @@ public enum Components {
3260
3264
self.repositoriesUrl = repositoriesUrl
3261
3265
self.htmlUrl = htmlUrl
3262
3266
self.appId = appId
3267
+
self.clientId = clientId
3263
3268
self.targetId = targetId
3264
3269
self.targetType = targetType
3265
3270
self.permissions = permissions
@@ -3282,6 +3287,7 @@ public enum Components {
3282
3287
case repositoriesUrl = "repositories_url"
3283
3288
case htmlUrl = "html_url"
3284
3289
case appId = "app_id"
3290
+
case clientId = "client_id"
3285
3291
case targetId = "target_id"
3286
3292
case targetType = "target_type"
3287
3293
case permissions
@@ -6825,7 +6831,7 @@ public enum Operations {
6825
6831
}
6826
6832
/// Delete an installation for the authenticated app
6827
6833
///
6828
-
/// Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
6834
+
/// Uninstalls a GitHub App on a user, organization, or enterprise account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/rest/apps/apps#suspend-an-app-installation)" endpoint.
6829
6835
///
6830
6836
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
6831
6837
///
@@ -7238,7 +7244,7 @@ public enum Operations {
7238
7244
}
7239
7245
/// Suspend an app installation
7240
7246
///
7241
-
/// Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
7247
+
/// Suspends a GitHub App on a user, organization, or enterprise account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.
7242
7248
///
7243
7249
/// You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.
Copy file name to clipboardExpand all lines: Sources/orgs/Client.swift
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4377,6 +4377,9 @@ public struct Client: APIProtocol {
4377
4377
///
4378
4378
/// Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.
4379
4379
///
4380
+
/// > [!NOTE]
4381
+
/// > If a user has both direct membership in the organization as well as indirect membership via an enterprise team, only their direct membership will be removed. Their indirect membership via an enterprise team remains until the user is removed from the enterprise team.
@@ -4683,6 +4686,9 @@ public struct Client: APIProtocol {
4683
4686
///
4684
4687
/// If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.
4685
4688
///
4689
+
/// > [!NOTE]
4690
+
/// > If a user has both direct membership in the organization as well as indirect membership via an enterprise team, only their direct membership will be removed. Their indirect membership via an enterprise team remains until the user is removed from the enterprise team.
0 commit comments