Skip to content

Commit 63f509d

Browse files
Commit via running ake Sources/codespaces
1 parent 704be34 commit 63f509d

File tree

2 files changed

+176
-44
lines changed

2 files changed

+176
-44
lines changed

Sources/codespaces/Client.swift

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,10 @@ public struct Client: APIProtocol {
18691869
///
18701870
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
18711871
///
1872-
/// GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
1872+
/// To use this endpoint with GitHub Apps:
1873+
///
1874+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
1875+
/// - The app must have read access to the `codespaces` repository permission.
18731876
///
18741877
/// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces`.
18751878
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/get(codespaces/list-in-repository-for-authenticated-user)`.
@@ -2040,7 +2043,10 @@ public struct Client: APIProtocol {
20402043
///
20412044
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
20422045
///
2043-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
2046+
/// To use this endpoint with GitHub Apps:
2047+
///
2048+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
2049+
/// - The app must have write access to the `codespaces` repository permission.
20442050
///
20452051
/// - Remark: HTTP `POST /repos/{owner}/{repo}/codespaces`.
20462052
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/post(codespaces/create-with-repo-for-authenticated-user)`.
@@ -2642,7 +2648,10 @@ public struct Client: APIProtocol {
26422648
///
26432649
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
26442650
///
2645-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
2651+
/// To use this endpoint with GitHub Apps:
2652+
///
2653+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
2654+
/// - The app must have write access to the `codespaces` repository permission.
26462655
///
26472656
/// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/new`.
26482657
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/new/get(codespaces/pre-flight-with-repo-for-authenticated-user)`.
@@ -2791,7 +2800,10 @@ public struct Client: APIProtocol {
27912800
///
27922801
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
27932802
///
2794-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
2803+
/// To use this endpoint with GitHub Apps:
2804+
///
2805+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
2806+
/// - The app must have write access to the `codespaces` repository permission.
27952807
///
27962808
/// - Remark: HTTP `GET /repos/{owner}/{repo}/codespaces/permissions_check`.
27972809
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/codespaces/permissions_check/get(codespaces/check-permissions-for-devcontainer)`.
@@ -3326,7 +3338,10 @@ public struct Client: APIProtocol {
33263338
///
33273339
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
33283340
///
3329-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
3341+
/// To use this endpoint with GitHub Apps:
3342+
///
3343+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
3344+
/// - The app must have write access to the `codespaces` repository permission.
33303345
///
33313346
/// - Remark: HTTP `POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`.
33323347
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/pulls/{pull_number}/codespaces/post(codespaces/create-with-pr-for-authenticated-user)`.
@@ -3515,7 +3530,10 @@ public struct Client: APIProtocol {
35153530
///
35163531
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
35173532
///
3518-
/// GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
3533+
/// To use this endpoint with GitHub Apps:
3534+
///
3535+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
3536+
/// - The app must have read access to the `codespaces` repository permission.
35193537
///
35203538
/// - Remark: HTTP `GET /user/codespaces`.
35213539
/// - Remark: Generated from `#/paths//user/codespaces/get(codespaces/list-for-authenticated-user)`.
@@ -3694,7 +3712,10 @@ public struct Client: APIProtocol {
36943712
///
36953713
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
36963714
///
3697-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
3715+
/// To use this endpoint with GitHub Apps:
3716+
///
3717+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
3718+
/// - The app must have write access to the `codespaces` repository permission.
36983719
///
36993720
/// - Remark: HTTP `POST /user/codespaces`.
37003721
/// - Remark: Generated from `#/paths//user/codespaces/post(codespaces/create-for-authenticated-user)`.
@@ -4841,7 +4862,10 @@ public struct Client: APIProtocol {
48414862
///
48424863
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
48434864
///
4844-
/// GitHub Apps must have read access to the `codespaces` repository permission to use this endpoint.
4865+
/// To use this endpoint with GitHub Apps:
4866+
///
4867+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
4868+
/// - The app must have read access to the `codespaces` repository permission.
48454869
///
48464870
/// - Remark: HTTP `GET /user/codespaces/{codespace_name}`.
48474871
/// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/get(codespaces/get-for-authenticated-user)`.
@@ -5001,7 +5025,10 @@ public struct Client: APIProtocol {
50015025
///
50025026
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
50035027
///
5004-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
5028+
/// To use this endpoint with GitHub Apps:
5029+
///
5030+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
5031+
/// - The app must have write access to the `codespaces` repository permission.
50055032
///
50065033
/// - Remark: HTTP `PATCH /user/codespaces/{codespace_name}`.
50075034
/// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/patch(codespaces/update-for-authenticated-user)`.
@@ -5146,7 +5173,10 @@ public struct Client: APIProtocol {
51465173
///
51475174
/// You must authenticate using an access token with the `codespace` scope to use this endpoint.
51485175
///
5149-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
5176+
/// To use this endpoint with GitHub Apps:
5177+
///
5178+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
5179+
/// - The app must have write access to the `codespaces` repository permission.
51505180
///
51515181
/// - Remark: HTTP `DELETE /user/codespaces/{codespace_name}`.
51525182
/// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/delete(codespaces/delete-for-authenticated-user)`.
@@ -5737,7 +5767,10 @@ public struct Client: APIProtocol {
57375767
///
57385768
/// You must authenticate using a personal access token with the `codespace` scope to use this endpoint.
57395769
///
5740-
/// GitHub Apps must have write access to the `codespaces` repository permission to use this endpoint.
5770+
/// To use this endpoint with GitHub Apps:
5771+
///
5772+
/// - The app must be authenticated on behalf of the user. For more information, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)."
5773+
/// - The app must have write access to the `codespaces` repository permission.
57415774
///
57425775
/// - Remark: HTTP `POST /user/codespaces/{codespace_name}/publish`.
57435776
/// - Remark: Generated from `#/paths//user/codespaces/{codespace_name}/publish/post(codespaces/publish-for-authenticated-user)`.

0 commit comments

Comments
 (0)