Skip to content

Commit 9b71e9c

Browse files
Commit via running ake Sources/orgs
1 parent b0a05d7 commit 9b71e9c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Sources/orgs/Client.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7201,6 +7201,9 @@ public struct Client: APIProtocol {
72017201
///
72027202
/// For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.
72037203
///
7204+
/// > [!NOTE]
7205+
/// > Requests using a fine-grained access token will receive a `200 Success` response with an empty list.
7206+
///
72047207
/// - Remark: HTTP `GET /user/orgs`.
72057208
/// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`.
72067209
public func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output {

Sources/orgs/Types.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,9 @@ public protocol APIProtocol: Sendable {
733733
///
734734
/// For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.
735735
///
736+
/// > [!NOTE]
737+
/// > Requests using a fine-grained access token will receive a `200 Success` response with an empty list.
738+
///
736739
/// - Remark: HTTP `GET /user/orgs`.
737740
/// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`.
738741
func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user.Output
@@ -2033,6 +2036,9 @@ extension APIProtocol {
20332036
///
20342037
/// For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.
20352038
///
2039+
/// > [!NOTE]
2040+
/// > Requests using a fine-grained access token will receive a `200 Success` response with an empty list.
2041+
///
20362042
/// - Remark: HTTP `GET /user/orgs`.
20372043
/// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`.
20382044
public func orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user(
@@ -5287,6 +5293,12 @@ public enum Components {
52875293
public var private_gists: Swift.Int?
52885294
/// - Remark: Generated from `#/components/schemas/organization-full/disk_usage`.
52895295
public var disk_usage: Swift.Int?
5296+
/// The number of collaborators on private repositories.
5297+
///
5298+
/// This field may be null if the number of private repositories is over 50,000.
5299+
///
5300+
/// - Remark: Generated from `#/components/schemas/organization-full/collaborators`.
5301+
public var collaborators: Swift.Int?
52905302
/// - Remark: Generated from `#/components/schemas/organization-full/billing_email`.
52915303
public var billing_email: Swift.String?
52925304
/// - Remark: Generated from `#/components/schemas/organization-full/plan`.
@@ -5458,6 +5470,7 @@ public enum Components {
54585470
/// - owned_private_repos:
54595471
/// - private_gists:
54605472
/// - disk_usage:
5473+
/// - collaborators: The number of collaborators on private repositories.
54615474
/// - billing_email:
54625475
/// - plan:
54635476
/// - default_repository_permission:
@@ -5515,6 +5528,7 @@ public enum Components {
55155528
owned_private_repos: Swift.Int? = nil,
55165529
private_gists: Swift.Int? = nil,
55175530
disk_usage: Swift.Int? = nil,
5531+
collaborators: Swift.Int? = nil,
55185532
billing_email: Swift.String? = nil,
55195533
plan: Components.Schemas.organization_hyphen_full.planPayload? = nil,
55205534
default_repository_permission: Swift.String? = nil,
@@ -5572,6 +5586,7 @@ public enum Components {
55725586
self.owned_private_repos = owned_private_repos
55735587
self.private_gists = private_gists
55745588
self.disk_usage = disk_usage
5589+
self.collaborators = collaborators
55755590
self.billing_email = billing_email
55765591
self.plan = plan
55775592
self.default_repository_permission = default_repository_permission
@@ -5630,6 +5645,7 @@ public enum Components {
56305645
case owned_private_repos
56315646
case private_gists
56325647
case disk_usage
5648+
case collaborators
56335649
case billing_email
56345650
case plan
56355651
case default_repository_permission
@@ -21265,6 +21281,9 @@ public enum Operations {
2126521281
///
2126621282
/// For OAuth app tokens and personal access tokens (classic), this endpoint only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope for OAuth app tokens and personal access tokens (classic). Requests with insufficient scope will receive a `403 Forbidden` response.
2126721283
///
21284+
/// > [!NOTE]
21285+
/// > Requests using a fine-grained access token will receive a `200 Success` response with an empty list.
21286+
///
2126821287
/// - Remark: HTTP `GET /user/orgs`.
2126921288
/// - Remark: Generated from `#/paths//user/orgs/get(orgs/list-for-authenticated-user)`.
2127021289
public enum orgs_sol_list_hyphen_for_hyphen_authenticated_hyphen_user {

0 commit comments

Comments
 (0)