Skip to content

Bump Submodule/github/rest-api-description from 2124d78 to e3b351a #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ec6dbfb
Bump Submodule/github/rest-api-description from `2124d78` to `e3b351a`
dependabot[bot] Feb 15, 2024
821b46a
Commit via running ake Sources/actions
dependabot[bot] Feb 15, 2024
00142b2
Commit via running ake Sources/apps
dependabot[bot] Feb 15, 2024
56e1f44
Commit via running ake Sources/billing
dependabot[bot] Feb 15, 2024
ed0cef5
Commit via running ake Sources/checks
dependabot[bot] Feb 15, 2024
0b8fe4d
Commit via running ake Sources/code-scanning
dependabot[bot] Feb 15, 2024
cd63449
Commit via running ake Sources/dependabot
dependabot[bot] Feb 15, 2024
ed034c1
Commit via running ake Sources/dependency-graph
dependabot[bot] Feb 15, 2024
98f3c54
Commit via running ake Sources/oidc
dependabot[bot] Feb 15, 2024
0ac4986
Commit via running ake Sources/orgs
dependabot[bot] Feb 15, 2024
1a8706a
Commit via running ake Sources/packages
dependabot[bot] Feb 15, 2024
dd2cd25
Commit via running ake Sources/rate-limit
dependabot[bot] Feb 15, 2024
f215410
Commit via running ake Sources/reactions
dependabot[bot] Feb 15, 2024
55d9423
Commit via running ake Sources/repos
dependabot[bot] Feb 15, 2024
1f70a85
Commit via running ake Sources/secret-scanning
dependabot[bot] Feb 15, 2024
ee788eb
Commit via running ake Sources/teams
dependabot[bot] Feb 15, 2024
6c5ccf9
Commit via running ake Sources/users
dependabot[bot] Feb 15, 2024
8bed6fa
Commit via running ake Sources/codespaces
dependabot[bot] Feb 15, 2024
1c22e1e
Commit via running ake Sources/copilot
dependabot[bot] Feb 15, 2024
80ef87e
Commit via running ake Sources/security-advisories
dependabot[bot] Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
629 changes: 329 additions & 300 deletions Sources/actions/Client.swift

Large diffs are not rendered by default.

2,670 changes: 987 additions & 1,683 deletions Sources/actions/Types.swift

Large diffs are not rendered by default.

32 changes: 13 additions & 19 deletions Sources/apps/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -825,10 +825,10 @@ public struct Client: APIProtocol {
}
/// List installations for the authenticated app
///
/// 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.
///
/// The permissions the installation has are included under the `permissions` key.
///
/// 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.
///
/// - Remark: HTTP `GET /app/installations`.
/// - Remark: Generated from `#/paths//app/installations/get(apps/list-installations)`.
public func apps_sol_list_hyphen_installations(_ input: Operations.apps_sol_list_hyphen_installations.Input) async throws -> Operations.apps_sol_list_hyphen_installations.Output {
Expand Down Expand Up @@ -1745,7 +1745,15 @@ public struct Client: APIProtocol {
}
/// Create a scoped access token
///
/// Use a non-scoped user access token to create a repository scoped and/or permission scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`.
/// Use a non-scoped user access token to create a repository-scoped and/or permission-scoped user access token. You can specify
/// which repositories the token can access and which permissions are granted to the
/// token.
///
/// Invalid tokens will return `404 NOT FOUND`.
///
/// You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)
/// when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App
/// as the username and password.
///
/// - Remark: HTTP `POST /applications/{client_id}/token/scoped`.
/// - Remark: Generated from `#/paths//applications/{client_id}/token/scoped/post(apps/scope-token)`.
Expand Down Expand Up @@ -1908,8 +1916,6 @@ public struct Client: APIProtocol {
///
/// **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).
///
/// If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) of the target app to access this endpoint.
///
/// - Remark: HTTP `GET /apps/{app_slug}`.
/// - Remark: Generated from `#/paths//apps/{app_slug}/get(apps/get-by-slug)`.
public func apps_sol_get_hyphen_by_hyphen_slug(_ input: Operations.apps_sol_get_hyphen_by_hyphen_slug.Input) async throws -> Operations.apps_sol_get_hyphen_by_hyphen_slug.Output {
Expand Down Expand Up @@ -2018,8 +2024,6 @@ public struct Client: APIProtocol {
///
/// List repositories that an app installation can access.
///
/// You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.
///
/// - Remark: HTTP `GET /installation/repositories`.
/// - Remark: Generated from `#/paths//installation/repositories/get(apps/list-repos-accessible-to-installation)`.
public func apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation(_ input: Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Input) async throws -> Operations.apps_sol_list_hyphen_repos_hyphen_accessible_hyphen_to_hyphen_installation.Output {
Expand Down Expand Up @@ -2152,8 +2156,6 @@ public struct Client: APIProtocol {
///
/// Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create an installation access token for an app](https://docs.github.com/rest/apps/apps#create-an-installation-access-token-for-an-app)" endpoint.
///
/// You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.
///
/// - Remark: HTTP `DELETE /installation/token`.
/// - Remark: Generated from `#/paths//installation/token/delete(apps/revoke-installation-access-token)`.
public func apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token(_ input: Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Input) async throws -> Operations.apps_sol_revoke_hyphen_installation_hyphen_access_hyphen_token.Output {
Expand Down Expand Up @@ -3099,8 +3101,6 @@ public struct Client: APIProtocol {
///
/// Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.
///
/// You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.
///
/// The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
///
/// You can find the permissions for the installation under the `permissions` key.
Expand Down Expand Up @@ -3237,8 +3237,6 @@ public struct Client: APIProtocol {
///
/// The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
///
/// You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.
///
/// The access the user has to each repository is included in the hash under the `permissions` key.
///
/// - Remark: HTTP `GET /user/installations/{installation_id}/repositories`.
Expand Down Expand Up @@ -3373,8 +3371,6 @@ public struct Client: APIProtocol {
///
/// Add a single repository to an installation. The authenticated user must have admin access to the repository.
///
/// You must use a personal access token (which you can create via the [command line](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint.
///
/// - Remark: HTTP `PUT /user/installations/{installation_id}/repositories/{repository_id}`.
/// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/put(apps/add-repo-to-installation-for-authenticated-user)`.
public func apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_add_hyphen_repo_hyphen_to_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output {
Expand Down Expand Up @@ -3466,8 +3462,6 @@ public struct Client: APIProtocol {
///
/// Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`.
///
/// You must use a personal access token (which you can create via the [command line](https://docs.github.com/github/authenticating-to-github/creating-a-personal-access-token) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication)) to access this endpoint.
///
/// - Remark: HTTP `DELETE /user/installations/{installation_id}/repositories/{repository_id}`.
/// - Remark: Generated from `#/paths//user/installations/{installation_id}/repositories/{repository_id}/delete(apps/remove-repo-from-installation-for-authenticated-user)`.
public func apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user(_ input: Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Input) async throws -> Operations.apps_sol_remove_hyphen_repo_hyphen_from_hyphen_installation_hyphen_for_hyphen_authenticated_hyphen_user.Output {
Expand Down Expand Up @@ -3559,7 +3553,7 @@ public struct Client: APIProtocol {
}
/// List subscriptions for the authenticated user
///
/// Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps).
/// Lists the active subscriptions for the authenticated user.
///
/// - Remark: HTTP `GET /user/marketplace_purchases`.
/// - Remark: Generated from `#/paths//user/marketplace_purchases/get(apps/list-subscriptions-for-authenticated-user)`.
Expand Down Expand Up @@ -3689,7 +3683,7 @@ public struct Client: APIProtocol {
}
/// List subscriptions for the authenticated user (stubbed)
///
/// Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps).
/// Lists the active subscriptions for the authenticated user.
///
/// - Remark: HTTP `GET /user/marketplace_purchases/stubbed`.
/// - Remark: Generated from `#/paths//user/marketplace_purchases/stubbed/get(apps/list-subscriptions-for-authenticated-user-stubbed)`.
Expand Down
Loading