Skip to content

Commit 6e0900b

Browse files
Merge pull request #151 from wei18/dependabot/submodules/Submodule/github/rest-api-description-b8a14b7
Bump Submodule/github/rest-api-description from `45124e4` to `b8a14b7`
2 parents caf8190 + 58382e5 commit 6e0900b

File tree

34 files changed

+7077
-2234
lines changed

34 files changed

+7077
-2234
lines changed

.spi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ builder:
2020
- GitHubRestAPIDesktop
2121
- GitHubRestAPIEmojis
2222
- GitHubRestAPIEnterprise_Team_Memberships
23+
- GitHubRestAPIEnterprise_Team_Organizations
2324
- GitHubRestAPIEnterprise_Teams
2425
- GitHubRestAPIGists
2526
- GitHubRestAPIGit

Package.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ let package = Package(
2929
.library(name: "GitHubRestAPIDesktop", targets: ["GitHubRestAPIDesktop"]),
3030
.library(name: "GitHubRestAPIEmojis", targets: ["GitHubRestAPIEmojis"]),
3131
.library(name: "GitHubRestAPIEnterprise_Team_Memberships", targets: ["GitHubRestAPIEnterprise_Team_Memberships"]),
32+
.library(name: "GitHubRestAPIEnterprise_Team_Organizations", targets: ["GitHubRestAPIEnterprise_Team_Organizations"]),
3233
.library(name: "GitHubRestAPIEnterprise_Teams", targets: ["GitHubRestAPIEnterprise_Teams"]),
3334
.library(name: "GitHubRestAPIGists", targets: ["GitHubRestAPIGists"]),
3435
.library(name: "GitHubRestAPIGit", targets: ["GitHubRestAPIGit"]),
@@ -206,6 +207,14 @@ let package = Package(
206207
],
207208
path: "Sources/enterprise-team-memberships"
208209
),
210+
.target(
211+
name: "GitHubRestAPIEnterprise_Team_Organizations",
212+
dependencies: [
213+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
214+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
215+
],
216+
path: "Sources/enterprise-team-organizations"
217+
),
209218
.target(
210219
name: "GitHubRestAPIEnterprise_Teams",
211220
dependencies: [

Sources/actions/Client.swift

Lines changed: 355 additions & 0 deletions
Large diffs are not rendered by default.

Sources/actions/Types.swift

Lines changed: 1312 additions & 197 deletions
Large diffs are not rendered by default.

Sources/activity/Types.swift

Lines changed: 1484 additions & 220 deletions
Large diffs are not rendered by default.

Sources/apps/Types.swift

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,6 +2487,17 @@ public enum Components {
24872487
///
24882488
/// - Remark: Generated from `#/components/schemas/app-permissions/workflows`.
24892489
public var workflows: Components.Schemas.AppPermissions.WorkflowsPayload?
2490+
/// The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.
2491+
///
2492+
/// - Remark: Generated from `#/components/schemas/app-permissions/custom_properties_for_organizations`.
2493+
@frozen public enum CustomPropertiesForOrganizationsPayload: String, Codable, Hashable, Sendable, CaseIterable {
2494+
case read = "read"
2495+
case write = "write"
2496+
}
2497+
/// The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.
2498+
///
2499+
/// - Remark: Generated from `#/components/schemas/app-permissions/custom_properties_for_organizations`.
2500+
public var customPropertiesForOrganizations: Components.Schemas.AppPermissions.CustomPropertiesForOrganizationsPayload?
24902501
/// The level of permission to grant the access token for organization teams and members.
24912502
///
24922503
/// - Remark: Generated from `#/components/schemas/app-permissions/members`.
@@ -2760,6 +2771,18 @@ public enum Components {
27602771
///
27612772
/// - Remark: Generated from `#/components/schemas/app-permissions/starring`.
27622773
public var starring: Components.Schemas.AppPermissions.StarringPayload?
2774+
/// The level of permission to grant the access token for organization custom properties management at the enterprise level.
2775+
///
2776+
/// - Remark: Generated from `#/components/schemas/app-permissions/enterprise_custom_properties_for_organizations`.
2777+
@frozen public enum EnterpriseCustomPropertiesForOrganizationsPayload: String, Codable, Hashable, Sendable, CaseIterable {
2778+
case read = "read"
2779+
case write = "write"
2780+
case admin = "admin"
2781+
}
2782+
/// The level of permission to grant the access token for organization custom properties management at the enterprise level.
2783+
///
2784+
/// - Remark: Generated from `#/components/schemas/app-permissions/enterprise_custom_properties_for_organizations`.
2785+
public var enterpriseCustomPropertiesForOrganizations: Components.Schemas.AppPermissions.EnterpriseCustomPropertiesForOrganizationsPayload?
27632786
/// Creates a new `AppPermissions`.
27642787
///
27652788
/// - Parameters:
@@ -2786,6 +2809,7 @@ public enum Components {
27862809
/// - statuses: The level of permission to grant the access token for commit statuses.
27872810
/// - vulnerabilityAlerts: The level of permission to grant the access token to manage Dependabot alerts.
27882811
/// - workflows: The level of permission to grant the access token to update GitHub Actions workflow files.
2812+
/// - customPropertiesForOrganizations: The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.
27892813
/// - members: The level of permission to grant the access token for organization teams and members.
27902814
/// - organizationAdministration: The level of permission to grant the access token to manage access to an organization.
27912815
/// - organizationCustomRoles: The level of permission to grant the access token for custom repository roles management.
@@ -2811,6 +2835,7 @@ public enum Components {
28112835
/// - interactionLimits: The level of permission to grant the access token to view and manage interaction limits on a repository.
28122836
/// - profile: The level of permission to grant the access token to manage the profile settings belonging to a user.
28132837
/// - starring: The level of permission to grant the access token to list and manage repositories a user is starring.
2838+
/// - enterpriseCustomPropertiesForOrganizations: The level of permission to grant the access token for organization custom properties management at the enterprise level.
28142839
public init(
28152840
actions: Components.Schemas.AppPermissions.ActionsPayload? = nil,
28162841
administration: Components.Schemas.AppPermissions.AdministrationPayload? = nil,
@@ -2835,6 +2860,7 @@ public enum Components {
28352860
statuses: Components.Schemas.AppPermissions.StatusesPayload? = nil,
28362861
vulnerabilityAlerts: Components.Schemas.AppPermissions.VulnerabilityAlertsPayload? = nil,
28372862
workflows: Components.Schemas.AppPermissions.WorkflowsPayload? = nil,
2863+
customPropertiesForOrganizations: Components.Schemas.AppPermissions.CustomPropertiesForOrganizationsPayload? = nil,
28382864
members: Components.Schemas.AppPermissions.MembersPayload? = nil,
28392865
organizationAdministration: Components.Schemas.AppPermissions.OrganizationAdministrationPayload? = nil,
28402866
organizationCustomRoles: Components.Schemas.AppPermissions.OrganizationCustomRolesPayload? = nil,
@@ -2859,7 +2885,8 @@ public enum Components {
28592885
gpgKeys: Components.Schemas.AppPermissions.GpgKeysPayload? = nil,
28602886
interactionLimits: Components.Schemas.AppPermissions.InteractionLimitsPayload? = nil,
28612887
profile: Components.Schemas.AppPermissions.ProfilePayload? = nil,
2862-
starring: Components.Schemas.AppPermissions.StarringPayload? = nil
2888+
starring: Components.Schemas.AppPermissions.StarringPayload? = nil,
2889+
enterpriseCustomPropertiesForOrganizations: Components.Schemas.AppPermissions.EnterpriseCustomPropertiesForOrganizationsPayload? = nil
28632890
) {
28642891
self.actions = actions
28652892
self.administration = administration
@@ -2884,6 +2911,7 @@ public enum Components {
28842911
self.statuses = statuses
28852912
self.vulnerabilityAlerts = vulnerabilityAlerts
28862913
self.workflows = workflows
2914+
self.customPropertiesForOrganizations = customPropertiesForOrganizations
28872915
self.members = members
28882916
self.organizationAdministration = organizationAdministration
28892917
self.organizationCustomRoles = organizationCustomRoles
@@ -2909,6 +2937,7 @@ public enum Components {
29092937
self.interactionLimits = interactionLimits
29102938
self.profile = profile
29112939
self.starring = starring
2940+
self.enterpriseCustomPropertiesForOrganizations = enterpriseCustomPropertiesForOrganizations
29122941
}
29132942
public enum CodingKeys: String, CodingKey {
29142943
case actions
@@ -2934,6 +2963,7 @@ public enum Components {
29342963
case statuses
29352964
case vulnerabilityAlerts = "vulnerability_alerts"
29362965
case workflows
2966+
case customPropertiesForOrganizations = "custom_properties_for_organizations"
29372967
case members
29382968
case organizationAdministration = "organization_administration"
29392969
case organizationCustomRoles = "organization_custom_roles"
@@ -2959,6 +2989,7 @@ public enum Components {
29592989
case interactionLimits = "interaction_limits"
29602990
case profile
29612991
case starring
2992+
case enterpriseCustomPropertiesForOrganizations = "enterprise_custom_properties_for_organizations"
29622993
}
29632994
}
29642995
/// A GitHub user.
@@ -4794,6 +4825,10 @@ public enum Components {
47944825
///
47954826
/// - Remark: Generated from `#/components/parameters/username`.
47964827
public typealias Username = Swift.String
4828+
/// The organization name. The name is not case sensitive.
4829+
///
4830+
/// - Remark: Generated from `#/components/parameters/org`.
4831+
public typealias Org = Swift.String
47974832
/// account_id parameter
47984833
///
47994834
/// - Remark: Generated from `#/components/parameters/account-id`.
@@ -4817,10 +4852,6 @@ public enum Components {
48174852
///
48184853
/// - Remark: Generated from `#/components/parameters/repo`.
48194854
public typealias Repo = Swift.String
4820-
/// The organization name. The name is not case sensitive.
4821-
///
4822-
/// - Remark: Generated from `#/components/parameters/org`.
4823-
public typealias Org = Swift.String
48244855
/// The unique identifier of the repository.
48254856
///
48264857
/// - Remark: Generated from `#/components/parameters/repository-id`.

Sources/billing/Client.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public struct Client: APIProtocol {
4242
///
4343
/// Gets a report of premium request usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.
4444
///
45+
/// **Note:** Only data from the past 24 months is accessible via this endpoint.
46+
///
4547
/// - Remark: HTTP `GET /organizations/{org}/settings/billing/premium_request/usage`.
4648
/// - Remark: Generated from `#/paths//organizations/{org}/settings/billing/premium_request/usage/get(billing/get-github-billing-premium-request-usage-report-org)`.
4749
public func billingGetGithubBillingPremiumRequestUsageReportOrg(_ input: Operations.BillingGetGithubBillingPremiumRequestUsageReportOrg.Input) async throws -> Operations.BillingGetGithubBillingPremiumRequestUsageReportOrg.Output {
@@ -798,6 +800,8 @@ public struct Client: APIProtocol {
798800
///
799801
/// Gets a report of premium request usage for a user.
800802
///
803+
/// **Note:** Only data from the past 24 months is accessible via this endpoint.
804+
///
801805
/// - Remark: HTTP `GET /users/{username}/settings/billing/premium_request/usage`.
802806
/// - Remark: Generated from `#/paths//users/{username}/settings/billing/premium_request/usage/get(billing/get-github-billing-premium-request-usage-report-user)`.
803807
public func billingGetGithubBillingPremiumRequestUsageReportUser(_ input: Operations.BillingGetGithubBillingPremiumRequestUsageReportUser.Input) async throws -> Operations.BillingGetGithubBillingPremiumRequestUsageReportUser.Output {

0 commit comments

Comments
 (0)