Skip to content

Commit af46064

Browse files
Commit via running: make Sources/orgs
1 parent 6742faf commit af46064

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Sources/orgs/Client.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,6 +4377,9 @@ public struct Client: APIProtocol {
43774377
///
43784378
/// 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.
43794379
///
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.
4382+
///
43804383
/// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`.
43814384
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`.
43824385
public func orgsRemoveMember(_ input: Operations.OrgsRemoveMember.Input) async throws -> Operations.OrgsRemoveMember.Output {
@@ -4683,6 +4686,9 @@ public struct Client: APIProtocol {
46834686
///
46844687
/// 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.
46854688
///
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.
4691+
///
46864692
/// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`.
46874693
/// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`.
46884694
public func orgsRemoveMembershipForUser(_ input: Operations.OrgsRemoveMembershipForUser.Input) async throws -> Operations.OrgsRemoveMembershipForUser.Output {

Sources/orgs/Types.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ public protocol APIProtocol: Sendable {
454454
///
455455
/// 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.
456456
///
457+
/// > [!NOTE]
458+
/// > 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.
459+
///
457460
/// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`.
458461
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`.
459462
func orgsRemoveMember(_ input: Operations.OrgsRemoveMember.Input) async throws -> Operations.OrgsRemoveMember.Output
@@ -485,6 +488,9 @@ public protocol APIProtocol: Sendable {
485488
///
486489
/// 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.
487490
///
491+
/// > [!NOTE]
492+
/// > 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.
493+
///
488494
/// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`.
489495
/// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`.
490496
func orgsRemoveMembershipForUser(_ input: Operations.OrgsRemoveMembershipForUser.Input) async throws -> Operations.OrgsRemoveMembershipForUser.Output
@@ -1753,6 +1759,9 @@ extension APIProtocol {
17531759
///
17541760
/// 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.
17551761
///
1762+
/// > [!NOTE]
1763+
/// > 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.
1764+
///
17561765
/// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`.
17571766
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`.
17581767
public func orgsRemoveMember(
@@ -1810,6 +1819,9 @@ extension APIProtocol {
18101819
///
18111820
/// 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.
18121821
///
1822+
/// > [!NOTE]
1823+
/// > 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.
1824+
///
18131825
/// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`.
18141826
/// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`.
18151827
public func orgsRemoveMembershipForUser(
@@ -4442,6 +4454,8 @@ public enum Components {
44424454
public var htmlUrl: Swift.String
44434455
/// - Remark: Generated from `#/components/schemas/installation/app_id`.
44444456
public var appId: Swift.Int
4457+
/// - Remark: Generated from `#/components/schemas/installation/client_id`.
4458+
public var clientId: Swift.String?
44454459
/// The ID of the user or organization this token is being scoped to.
44464460
///
44474461
/// - Remark: Generated from `#/components/schemas/installation/target_id`.
@@ -4480,6 +4494,7 @@ public enum Components {
44804494
/// - repositoriesUrl:
44814495
/// - htmlUrl:
44824496
/// - appId:
4497+
/// - clientId:
44834498
/// - targetId: The ID of the user or organization this token is being scoped to.
44844499
/// - targetType:
44854500
/// - permissions:
@@ -4501,6 +4516,7 @@ public enum Components {
45014516
repositoriesUrl: Swift.String,
45024517
htmlUrl: Swift.String,
45034518
appId: Swift.Int,
4519+
clientId: Swift.String? = nil,
45044520
targetId: Swift.Int,
45054521
targetType: Swift.String,
45064522
permissions: Components.Schemas.AppPermissions,
@@ -4522,6 +4538,7 @@ public enum Components {
45224538
self.repositoriesUrl = repositoriesUrl
45234539
self.htmlUrl = htmlUrl
45244540
self.appId = appId
4541+
self.clientId = clientId
45254542
self.targetId = targetId
45264543
self.targetType = targetType
45274544
self.permissions = permissions
@@ -4544,6 +4561,7 @@ public enum Components {
45444561
case repositoriesUrl = "repositories_url"
45454562
case htmlUrl = "html_url"
45464563
case appId = "app_id"
4564+
case clientId = "client_id"
45474565
case targetId = "target_id"
45484566
case targetType = "target_type"
45494567
case permissions
@@ -18171,6 +18189,9 @@ public enum Operations {
1817118189
///
1817218190
/// 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.
1817318191
///
18192+
/// > [!NOTE]
18193+
/// > 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.
18194+
///
1817418195
/// - Remark: HTTP `DELETE /orgs/{org}/members/{username}`.
1817518196
/// - Remark: Generated from `#/paths//orgs/{org}/members/{username}/delete(orgs/remove-member)`.
1817618197
public enum OrgsRemoveMember {
@@ -18740,6 +18761,9 @@ public enum Operations {
1874018761
///
1874118762
/// 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.
1874218763
///
18764+
/// > [!NOTE]
18765+
/// > 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.
18766+
///
1874318767
/// - Remark: HTTP `DELETE /orgs/{org}/memberships/{username}`.
1874418768
/// - Remark: Generated from `#/paths//orgs/{org}/memberships/{username}/delete(orgs/remove-membership-for-user)`.
1874518769
public enum OrgsRemoveMembershipForUser {

0 commit comments

Comments
 (0)