From 306a6555fd062e51491915a2ade3cbe205a06d15 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Fri, 23 Sep 2022 21:15:45 +0000 Subject: [PATCH 1/9] build: cache --- .../update-endpoints/generated/endpoints.json | 3669 ++--------------- 1 file changed, 250 insertions(+), 3419 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 2960e53..3aa800f 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -1,59 +1,4 @@ [ - { - "scope": "actions", - "id": "addRepoAccessToSelfHostedRunnerGroupInOrg", - "method": "PUT", - "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "repository_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, { "scope": "actions", "id": "addSelfHostedRunnerToGroupForOrg", @@ -275,65 +220,6 @@ ], "renamed": null }, - { - "scope": "actions", - "id": "getCustomOidcSubClaimForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/actions/oidc/customization/sub", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "owner", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "repo", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"use_default\":true}" - } - ] - }, - { - "code": 400, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, { "scope": "actions", "id": "getSelfHostedRunnerGroupForOrg", @@ -704,120 +590,6 @@ ], "renamed": null }, - { - "scope": "actions", - "id": "setActionsOidcCustomIssuerPolicyForEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/oidc/customization/issuer", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "include_enterprise_slug", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "actions", - "id": "setCustomOidcSubClaimForRepo", - "method": "PUT", - "url": "/repos/{owner}/{repo}/actions/oidc/customization/sub", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "owner", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "repo", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "use_default", - "in": "BODY", - "type": "boolean", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 201, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 422, - "examples": null - } - ], - "renamed": null - }, { "scope": "actions", "id": "setRepoAccessToSelfHostedRunnerGroupInOrg", @@ -1040,12 +812,12 @@ "renamed": null }, { - "scope": "billing", - "id": "getGithubActionsBillingGhe", - "method": "GET", - "url": "/enterprises/{enterprise}/settings/billing/actions", + "scope": "enterpriseAdmin", + "id": "addOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1060,34 +832,23 @@ "validation": null, "alias": null, "deprecated": null - } - ], - "responses": [ + }, { - "code": 200, - "examples": [ - { - "data": "{\"total_minutes_used\":305,\"total_paid_minutes_used\":0,\"included_minutes\":3000,\"minutes_used_breakdown\":{\"UBUNTU\":205,\"MACOS\":10,\"WINDOWS\":90}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "billing", - "id": "getGithubPackagesBillingGhe", - "method": "GET", - "url": "/enterprises/{enterprise}/settings/billing/packages", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { - "name": "enterprise", + "name": "org_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -1099,113 +860,19 @@ ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"total_gigabytes_bandwidth_used\":50,\"total_paid_gigabytes_bandwidth_used\":40,\"included_gigabytes_bandwidth\":10}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { - "scope": "billing", - "id": "getSharedStorageBillingGhe", - "method": "GET", - "url": "/enterprises/{enterprise}/settings/billing/shared-storage", + "scope": "enterpriseAdmin", + "id": "addSelfHostedRunnerToGroupForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"days_left_in_billing_cycle\":20,\"estimated_paid_storage_for_month\":15,\"estimated_storage_for_month\":40}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "addOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "org_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "addSelfHostedRunnerToGroupForEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1448,11 +1115,11 @@ }, { "scope": "enterpriseAdmin", - "id": "deleteScimGroupFromEnterprise", + "id": "deleteSelfHostedRunnerFromEnterprise", "method": "DELETE", - "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", + "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1469,9 +1136,9 @@ "deprecated": null }, { - "name": "scim_group_id", + "name": "runner_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -1491,11 +1158,11 @@ }, { "scope": "enterpriseAdmin", - "id": "deleteSelfHostedRunnerFromEnterprise", + "id": "deleteSelfHostedRunnerGroupFromEnterprise", "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1512,7 +1179,7 @@ "deprecated": null }, { - "name": "runner_id", + "name": "runner_group_id", "in": "PATH", "type": "integer", "required": true, @@ -1534,11 +1201,11 @@ }, { "scope": "enterpriseAdmin", - "id": "deleteSelfHostedRunnerGroupFromEnterprise", - "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", + "id": "getSelfHostedRunnerForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1555,7 +1222,7 @@ "deprecated": null }, { - "name": "runner_group_id", + "name": "runner_id", "in": "PATH", "type": "integer", "required": true, @@ -1569,19 +1236,23 @@ ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"id\":23,\"name\":\"MBP\",\"os\":\"macos\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "deleteUserFromEnterprise", - "method": "DELETE", - "url": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", + "id": "getSelfHostedRunnerGroupForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1598,9 +1269,9 @@ "deprecated": null }, { - "name": "scim_user_id", + "name": "runner_group_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -1612,19 +1283,23 @@ ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "getAuditLog", + "id": "listOrgAccessToSelfHostedRunnerGroupInEnterprise", "method": "GET", - "url": "/enterprises/{enterprise}/audit-log", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1641,10 +1316,10 @@ "deprecated": null }, { - "name": "phrase", - "in": "QUERY", - "type": "string", - "required": false, + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -1653,15 +1328,11 @@ "deprecated": null }, { - "name": "include", + "name": "per_page", "in": "QUERY", - "type": "string", + "type": "integer", "required": false, - "enum": [ - "web", - "git", - "all" - ], + "enum": null, "allowNull": false, "mapToData": null, "validation": null, @@ -1669,9 +1340,9 @@ "deprecated": null }, { - "name": "after", + "name": "page", "in": "QUERY", - "type": "string", + "type": "integer", "required": false, "enum": null, "allowNull": false, @@ -1679,12 +1350,70 @@ "validation": null, "alias": null, "deprecated": null - }, + } + ], + "responses": [ { - "name": "before", - "in": "QUERY", + "code": 200, + "examples": [ + { + "data": "{\"total_count\":1,\"organizations\":[{\"login\":\"octocat\",\"id\":161335,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjk2MjY5\",\"url\":\"https://api.github.com/orgs/octo-org\",\"repos_url\":\"https://api.github.com/orgs/octo-org/repos\",\"events_url\":\"https://api.github.com/orgs/octo-org/events\",\"hooks_url\":\"https://api.github.com/orgs/octo-org/hooks\",\"issues_url\":\"https://api.github.com/orgs/octo-org/issues\",\"members_url\":\"https://api.github.com/orgs/octo-org/members{/member}\",\"public_members_url\":\"https://api.github.com/orgs/octo-org/public_members{/member}\",\"avatar_url\":\"https://github.com/images/error/octocat_happy.gif\",\"description\":\"A great organization\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "listRunnerApplicationsForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners/downloads", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", "type": "string", - "required": false, + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" + } + ] + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "listSelfHostedRunnerGroupsForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -1693,14 +1422,11 @@ "deprecated": null }, { - "name": "order", + "name": "per_page", "in": "QUERY", - "type": "string", + "type": "integer", "required": false, - "enum": [ - "desc", - "asc" - ], + "enum": null, "allowNull": false, "mapToData": null, "validation": null, @@ -1720,9 +1446,9 @@ "deprecated": null }, { - "name": "per_page", + "name": "visible_to_organization", "in": "QUERY", - "type": "integer", + "type": "string", "required": false, "enum": null, "allowNull": false, @@ -1737,7 +1463,7 @@ "code": 200, "examples": [ { - "data": "[{\"@timestamp\":1606929874512,\"action\":\"team.add_member\",\"actor\":\"octocat\",\"created_at\":1606929874512,\"_document_id\":\"xJJFlFOhQ6b-5vaAFy9Rjw\",\"org\":\"octo-corp\",\"team\":\"octo-corp/example-team\",\"user\":\"monalisa\"},{\"@timestamp\":1606507117008,\"action\":\"org.create\",\"actor\":\"octocat\",\"created_at\":1606507117008,\"_document_id\":\"Vqvg6kZ4MYqwWRKFDzlMoQ\",\"org\":\"octocat-test-org\"},{\"@timestamp\":1605719148837,\"action\":\"repo.destroy\",\"actor\":\"monalisa\",\"created_at\":1605719148837,\"_document_id\":\"LwW2vpJZCDS-WUmo9Z-ifw\",\"org\":\"mona-org\",\"repo\":\"mona-org/mona-test-repo\",\"visibility\":\"private\"}]" + "data": "{\"total_count\":3,\"runner_groups\":[{\"id\":1,\"name\":\"Default\",\"visibility\":\"all\",\"default\":true,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/1/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":false,\"selected_workflows\":[],\"workflow_restrictions_read_only\":false},{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false},{\"id\":3,\"name\":\"expensive-hardware\",\"visibility\":\"private\",\"default\":false,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/3/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}]}" } ] } @@ -1746,11 +1472,11 @@ }, { "scope": "enterpriseAdmin", - "id": "getProvisioningInformationForEnterpriseGroup", + "id": "listSelfHostedRunnersForEnterprise", "method": "GET", - "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", + "url": "/enterprises/{enterprise}/actions/runners", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-group", + "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1767,10 +1493,10 @@ "deprecated": null }, { - "name": "scim_group_id", - "in": "PATH", - "type": "string", - "required": true, + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -1779,9 +1505,9 @@ "deprecated": null }, { - "name": "excludedAttributes", + "name": "page", "in": "QUERY", - "type": "string", + "type": "integer", "required": false, "enum": null, "allowNull": false, @@ -1796,7 +1522,7 @@ "code": 200, "examples": [ { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"abcd27f8-a9aa-11ea-8221-f59b2be9cccc\",\"externalId\":null,\"displayName\":\"octo-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"},{\"value\":\"aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"display\":\"hubot@example.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T03:10:17.000+10:0\",\"lastModified\":\"2020-06-09T03:10:17.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc\"}}" + "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" } ] } @@ -1805,11 +1531,11 @@ }, { "scope": "enterpriseAdmin", - "id": "getProvisioningInformationForEnterpriseUser", + "id": "listSelfHostedRunnersInGroupForEnterprise", "method": "GET", - "url": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user", + "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1826,9 +1552,9 @@ "deprecated": null }, { - "name": "scim_user_id", + "name": "runner_group_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -1836,35 +1562,12 @@ "validation": null, "alias": null, "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"externalId\":\"00dowz5dr9oSfDFRA0h7\",\"userName\":\"mona.octocat@okta.example.com\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"type\":\"work\",\"primary\":true}],\"groups\":[{\"value\":\"468dd3fa-a1d6-11ea-9031-15a1f0d7811d\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "getSelfHostedRunnerForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ + }, { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -1873,10 +1576,10 @@ "deprecated": null }, { - "name": "runner_id", - "in": "PATH", + "name": "page", + "in": "QUERY", "type": "integer", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -1890,7 +1593,7 @@ "code": 200, "examples": [ { - "data": "{\"id\":23,\"name\":\"MBP\",\"os\":\"macos\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}" + "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" } ] } @@ -1899,11 +1602,11 @@ }, { "scope": "enterpriseAdmin", - "id": "getSelfHostedRunnerGroupForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", + "id": "removeOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "DELETE", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1930,27 +1633,35 @@ "validation": null, "alias": null, "deprecated": null + }, + { + "name": "org_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null } ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "listOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", + "id": "removeSelfHostedRunnerFromGroupForEnterprise", + "method": "DELETE", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1979,22 +1690,10 @@ "deprecated": null }, { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", + "name": "runner_id", + "in": "PATH", "type": "integer", - "required": false, + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -2005,23 +1704,19 @@ ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"total_count\":1,\"organizations\":[{\"login\":\"octocat\",\"id\":161335,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjk2MjY5\",\"url\":\"https://api.github.com/orgs/octo-org\",\"repos_url\":\"https://api.github.com/orgs/octo-org/repos\",\"events_url\":\"https://api.github.com/orgs/octo-org/events\",\"hooks_url\":\"https://api.github.com/orgs/octo-org/hooks\",\"issues_url\":\"https://api.github.com/orgs/octo-org/issues\",\"members_url\":\"https://api.github.com/orgs/octo-org/members{/member}\",\"public_members_url\":\"https://api.github.com/orgs/octo-org/public_members{/member}\",\"avatar_url\":\"https://github.com/images/error/octocat_happy.gif\",\"description\":\"A great organization\"}]}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "listProvisionedGroupsEnterprise", - "method": "GET", - "url": "/scim/v2/enterprises/{enterprise}/Groups", + "id": "setOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim-groups-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -2038,34 +1733,10 @@ "deprecated": null }, { - "name": "startIndex", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "count", - "in": "QUERY", + "name": "runner_group_id", + "in": "PATH", "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "filter", - "in": "QUERY", - "type": "string", - "required": false, + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -2074,10 +1745,10 @@ "deprecated": null }, { - "name": "excludedAttributes", - "in": "QUERY", - "type": "string", - "required": false, + "name": "selected_organization_ids", + "in": "BODY", + "type": "integer[]", + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -2088,23 +1759,19 @@ ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":2,\"itemsPerPage\":2,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"abcd27f8-a9aa-11ea-8221-f59b2be9cccc\",\"externalId\":null,\"displayName\":\"octo-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"},{\"value\":\"aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"display\":\"hubot@example.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T03:10:17.000+10:00\",\"lastModified\":\"2020-06-09T03:10:17.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc\"}},{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"5e75bbbb-aa1a-11ea-8644-75ff655cdddd\",\"externalId\":null,\"displayName\":\"octo-docs-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T16:28:01.000+10:00\",\"lastModified\":\"2020-06-09T16:28:01.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/5e75bbbb-aa1a-11ea-8644-75ff655cdddd\"}}]}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "listProvisionedIdentitiesEnterprise", - "method": "GET", - "url": "/scim/v2/enterprises/{enterprise}/Users", + "id": "setSelfHostedRunnersInGroupForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -2121,22 +1788,10 @@ "deprecated": null }, { - "name": "startIndex", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "count", - "in": "QUERY", + "name": "runner_group_id", + "in": "PATH", "type": "integer", - "required": false, + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -2145,10 +1800,10 @@ "deprecated": null }, { - "name": "filter", - "in": "QUERY", - "type": "string", - "required": false, + "name": "runners", + "in": "BODY", + "type": "integer[]", + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -2159,23 +1814,19 @@ ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":2,\"itemsPerPage\":2,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"externalId\":\"00dowz5dr9oSfDFRA0h7\",\"userName\":\"octocat@github.com\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\"},\"emails\":[{\"value\":\"octocat@github.com\",\"primary\":true,\"type\":\"work\"}],\"groups\":[{\"value\":\"468dd3fa-a1d6-11ea-9031-15a1f0d7811d\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2020-05-30T04:02:34.000+10:00\",\"lastModified\":\"2020-05-30T04:05:04.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\"}},{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"e18b8c34-a6b2-11ea-9d70-54abbd1c8fd5\",\"externalId\":\"sdfoiausdofiua\",\"userName\":\"hubot@example.com\",\"name\":{\"givenName\":\"hu\",\"familyName\":\"bot\"},\"emails\":[{\"value\":\"hubot@example.com\",\"type\":\"work\",\"primary\":true}],\"groups\":[],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2020-06-05T08:29:40.000+10:00\",\"lastModified\":\"2020-06-05T08:30:19.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/e18b8c34-a6b2-11ea-9d70-54abbd1c8fd5\"}}]}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "listRunnerApplicationsForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners/downloads", + "id": "updateSelfHostedRunnerGroupForEnterprise", + "method": "PATCH", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-enterprise", + "documentationUrl": "https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -2190,34 +1841,11 @@ "validation": null, "alias": null, "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnerGroupsForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ + }, { - "name": "enterprise", + "name": "runner_group_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -2227,9 +1855,9 @@ "deprecated": null }, { - "name": "per_page", - "in": "QUERY", - "type": "integer", + "name": "name", + "in": "BODY", + "type": "string", "required": false, "enum": null, "allowNull": false, @@ -2239,9 +1867,24 @@ "deprecated": null }, { - "name": "page", - "in": "QUERY", - "type": "integer", + "name": "visibility", + "in": "BODY", + "type": "string", + "required": false, + "enum": [ + "selected", + "all" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "allows_public_repositories", + "in": "BODY", + "type": "boolean", "required": false, "enum": null, "allowNull": false, @@ -2251,9 +1894,9 @@ "deprecated": null }, { - "name": "visible_to_organization", - "in": "QUERY", - "type": "string", + "name": "restricted_to_workflows", + "in": "BODY", + "type": "boolean", "required": false, "enum": null, "allowNull": false, @@ -2261,2686 +1904,11 @@ "validation": null, "alias": null, "deprecated": null - } - ], - "responses": [ + }, { - "code": 200, - "examples": [ - { - "data": "{\"total_count\":3,\"runner_groups\":[{\"id\":1,\"name\":\"Default\",\"visibility\":\"all\",\"default\":true,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/1/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":false,\"selected_workflows\":[],\"workflow_restrictions_read_only\":false},{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false},{\"id\":3,\"name\":\"expensive-hardware\",\"visibility\":\"private\",\"default\":false,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/3/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnersForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnersInGroupForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "provisionAndInviteEnterpriseGroup", - "method": "POST", - "url": "/scim/v2/enterprises/{enterprise}/Groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "displayName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "members", - "in": "BODY", - "type": "object[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "members[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 201, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"abcd27f8-a9aa-11ea-8221-f59b2be9cccc\",\"externalId\":null,\"displayName\":\"octo-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"},{\"value\":\"aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"display\":\"hubot@example.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T03:10:17.000+10:0\",\"lastModified\":\"2020-06-09T03:10:17.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "provisionAndInviteEnterpriseUser", - "method": "POST", - "url": "/scim/v2/enterprises/{enterprise}/Users", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "userName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name", - "in": "BODY", - "type": "object", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.givenName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.familyName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].type", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].primary", - "in": "BODY", - "type": "boolean", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups", - "in": "BODY", - "type": "object[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups[].value", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 201, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"externalId\":\"00dowz5dr9oSfDFRA0h7\",\"userName\":\"mona.octocat@okta.example.com\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"type\":\"work\",\"primary\":true}],\"groups\":[{\"value\":\"468dd3fa-a1d6-11ea-9031-15a1f0d7811d\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "removeOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "org_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "removeSelfHostedRunnerFromGroupForEnterprise", - "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "setInformationForProvisionedEnterpriseGroup", - "method": "PUT", - "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_group_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "displayName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "members", - "in": "BODY", - "type": "object[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "members[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"abcd27f8-a9aa-11ea-8221-f59b2be9cccc\",\"externalId\":null,\"displayName\":\"octo-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"},{\"value\":\"aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5\",\"display\":\"hubot@example.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T03:10:17.000+10:0\",\"lastModified\":\"2020-06-09T03:10:17.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "setInformationForProvisionedEnterpriseUser", - "method": "PUT", - "url": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "userName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name", - "in": "BODY", - "type": "object", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.givenName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.familyName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].type", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].primary", - "in": "BODY", - "type": "boolean", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups", - "in": "BODY", - "type": "object[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups[].value", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"externalId\":\"00dowz5dr9oSfDFRA0h7\",\"userName\":\"mona.octocat@okta.example.com\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"type\":\"work\",\"primary\":true}],\"groups\":[{\"value\":\"468dd3fa-a1d6-11ea-9031-15a1f0d7811d\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "setOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "selected_organization_ids", - "in": "BODY", - "type": "integer[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "setSelfHostedRunnersInGroupForEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runners", - "in": "BODY", - "type": "integer[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "updateAttributeForEnterpriseGroup", - "method": "PATCH", - "url": "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_group_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].op", - "in": "BODY", - "type": "string", - "required": true, - "enum": [ - "add", - "Add", - "remove", - "Remove", - "replace", - "Replace" - ], - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].path", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].value", - "in": "BODY", - "type": null, - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:Group\"],\"id\":\"abcd27f8-a9aa-11ea-8221-f59b2be9cccc\",\"externalId\":null,\"displayName\":\"octo-org\",\"members\":[{\"value\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"$ref\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"display\":\"octocat@github.com\"}],\"meta\":{\"resourceType\":\"Group\",\"created\":\"2020-06-09T03:10:17.000+10:00\",\"lastModified\":\"2020-06-09T03:10:17.000+10:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "updateAttributeForEnterpriseUser", - "method": "PATCH", - "url": "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\",\"externalId\":\"00dowz5dr9oSfDFRA0h7\",\"userName\":\"mona.octocat@okta.example.com\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"type\":\"work\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\",\"type\":\"home\"}],\"groups\":[{\"value\":\"468dd3fa-a1d6-11ea-9031-15a1f0d7811d\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc\"}}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "updateSelfHostedRunnerGroupForEnterprise", - "method": "PATCH", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "visibility", - "in": "BODY", - "type": "string", - "required": false, - "enum": [ - "selected", - "all" - ], - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "allows_public_repositories", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "restricted_to_workflows", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "selected_workflows", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"id\":2,\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "oidc", - "id": "getOidcCustomSubTemplateForOrg", - "method": "GET", - "url": "/orgs/{org}/actions/oidc/customization/sub", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"include_claim_keys\":[\"repo\",\"context\"]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "oidc", - "id": "updateOidcCustomSubTemplateForOrg", - "method": "PUT", - "url": "/orgs/{org}/actions/oidc/customization/sub", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "include_claim_keys", - "in": "BODY", - "type": "string[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 201, - "examples": [ - { - "data": "null" - } - ] - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "orgs", - "id": "getAuditLog", - "method": "GET", - "url": "/orgs/{org}/audit-log", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/orgs#get-audit-log", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "phrase", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "include", - "in": "QUERY", - "type": "string", - "required": false, - "enum": [ - "web", - "git", - "all" - ], - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "after", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "before", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "order", - "in": "QUERY", - "type": "string", - "required": false, - "enum": [ - "desc", - "asc" - ], - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "[{\"@timestamp\":1606929874512,\"action\":\"team.add_member\",\"actor\":\"octocat\",\"created_at\":1606929874512,\"_document_id\":\"xJJFlFOhQ6b-5vaAFy9Rjw\",\"org\":\"octo-corp\",\"team\":\"octo-corp/example-team\",\"user\":\"monalisa\"},{\"@timestamp\":1606507117008,\"action\":\"org.create\",\"actor\":\"octocat\",\"created_at\":1606507117008,\"_document_id\":\"Vqvg6kZ4MYqwWRKFDzlMoQ\",\"org\":\"octocat-test-org\"},{\"@timestamp\":1605719148837,\"action\":\"repo.destroy\",\"actor\":\"monalisa\",\"created_at\":1605719148837,\"_document_id\":\"LwW2vpJZCDS-WUmo9Z-ifw\",\"org\":\"mona-org\",\"repo\":\"mona-org/mona-test-repo\",\"visibility\":\"private\"}]" - } - ] - } - ], - "renamed": null - }, - { - "scope": "orgs", - "id": "listSamlSsoAuthorizations", - "method": "GET", - "url": "/orgs/{org}/credential-authorizations", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/orgs#list-saml-sso-authorizations-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "login", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "[{\"login\":\"octocat\",\"credential_id\":161195,\"credential_type\":\"personal access token\",\"token_last_eight\":\"71c3fc11\",\"credential_authorized_at\":\"2011-01-26T19:06:43Z\",\"authorized_credential_expires_at\":\"2011-02-25T19:06:43Z\",\"scopes\":[\"user\",\"repo\"]},{\"login\":\"hubot\",\"credential_id\":161196,\"credential_type\":\"personal access token\",\"token_last_eight\":\"Ae178B4a\",\"credential_authorized_at\":\"2019-03-29T19:06:43Z\",\"authorized_credential_expires_at\":\"2019-04-28T19:06:43Z\",\"scopes\":[\"repo\"]}]" - } - ] - } - ], - "renamed": null - }, - { - "scope": "orgs", - "id": "removeSamlSsoAuthorization", - "method": "DELETE", - "url": "/orgs/{org}/credential-authorizations/{credential_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/orgs#remove-a-saml-sso-authorization-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "credential_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "deleteUserFromOrg", - "method": "DELETE", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#delete-a-scim-user-from-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - }, - { - "code": 304, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "getProvisioningInformationForUser", - "method": "GET", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#get-scim-provisioning-information-for-a-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" - } - ] - }, - { - "code": 304, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "listProvisionedIdentities", - "method": "GET", - "url": "/scim/v2/organizations/{org}/Users", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#list-scim-provisioned-identities", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "startIndex", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "count", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "filter", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":1,\"itemsPerPage\":1,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"5fc0c238-1112-11e8-8e45-920c87bdbd75\",\"externalId\":\"00u1dhhb1fkIGP7RL1d8\",\"userName\":\"octocat@github.com\",\"displayName\":\"Mona Octocat\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\",\"formatted\":\"Mona Octocat\"},\"emails\":[{\"value\":\"octocat@github.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2018-02-13T15:05:24.000-08:00\",\"lastModified\":\"2018-02-13T15:05:55.000-08:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/5fc0c238-1112-11e8-8e45-920c87bdbd75\"}}]}" - }, - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":2,\"itemsPerPage\":2,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Mona Octocat\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\",\"formatted\":\"Mona Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}},{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"77563764-eb6-24-0598234-958243\",\"externalId\":\"sdfoiausdofiua\",\"userName\":\"hubot@example.com\",\"displayName\":\"hu bot\",\"name\":{\"givenName\":\"hu\",\"familyName\":\"bot\",\"formatted\":\"hu bot\"},\"emails\":[{\"value\":\"hubot@example.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243\"}}]}" - } - ] - }, - { - "code": 304, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 429, - "examples": null - }, - { - "code": 429, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "provisionAndInviteUser", - "method": "POST", - "url": "/scim/v2/organizations/{org}/Users", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#provision-and-invite-a-scim-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "userName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "displayName", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name", - "in": "BODY", - "type": "object", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.givenName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.familyName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.formatted", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].primary", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].type", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "externalId", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "active", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 201, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" - } - ] - }, - { - "code": 304, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 409, - "examples": null - }, - { - "code": 409, - "examples": null - }, - { - "code": 500, - "examples": null - }, - { - "code": 500, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "setInformationForProvisionedUser", - "method": "PUT", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#set-scim-information-for-a-provisioned-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "displayName", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "externalId", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "active", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "userName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name", - "in": "BODY", - "type": "object", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.givenName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.familyName", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "name.formatted", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].type", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].value", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "emails[].primary", - "in": "BODY", - "type": "boolean", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" - } - ] - }, - { - "code": 304, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "scim", - "id": "updateAttributeForUser", - "method": "PATCH", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/scim#update-an-attribute-for-a-scim-user", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "scim_user_id", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "schemas", - "in": "BODY", - "type": "string[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations", - "in": "BODY", - "type": "object[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].op", - "in": "BODY", - "type": "string", - "required": true, - "enum": [ - "add", - "remove", - "replace" - ], - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].path", - "in": "BODY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "Operations[].value", - "in": "BODY", - "type": null, - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" - } - ] - }, - { - "code": 304, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 400, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 403, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 404, - "examples": null - }, - { - "code": 429, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "createOrUpdateIdpGroupConnectionsInOrg", - "method": "PATCH", - "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "team_slug", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups", - "in": "BODY", - "type": "object[]", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups[].group_id", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups[].group_name", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "groups[].group_description", - "in": "BODY", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "externalIdpGroupInfoForOrg", - "method": "GET", - "url": "/orgs/{org}/external-group/{group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#external-idp-group-info-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\",\"teams\":[{\"team_id\":1,\"team_name\":\"team-test\"},{\"team_id\":2,\"team_name\":\"team-test2\"}],\"members\":[{\"member_id\":1,\"member_login\":\"mona-lisa_eocsaxrs\",\"member_name\":\"Mona Lisa\",\"member_email\":\"mona_lisa@github.com\"},{\"member_id\":2,\"member_login\":\"octo-lisa_eocsaxrs\",\"member_name\":\"Octo Lisa\",\"member_email\":\"octo_lisa@github.com\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "linkExternalIdpGroupToTeamForOrg", - "method": "PATCH", - "url": "/orgs/{org}/teams/{team_slug}/external-groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#link-external-idp-group-team-connection", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "team_slug", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "group_id", + "name": "selected_workflows", "in": "BODY", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\",\"teams\":[{\"team_id\":1,\"team_name\":\"team-test\"},{\"team_id\":2,\"team_name\":\"team-test2\"}],\"members\":[{\"member_id\":1,\"member_login\":\"mona-lisa_eocsaxrs\",\"member_name\":\"Mona Lisa\",\"member_email\":\"mona_lisa@github.com\"},{\"member_id\":2,\"member_login\":\"octo-lisa_eocsaxrs\",\"member_name\":\"Octo Lisa\",\"member_email\":\"octo_lisa@github.com\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "listExternalIdpGroupsForOrg", - "method": "GET", - "url": "/orgs/{org}/external-groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#list-external-idp-groups-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "display_name", - "in": "QUERY", - "type": "string", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"updated_at\":\"2021-03-24T11:31:04-06:00\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "listIdpGroupsForOrg", - "method": "GET", - "url": "/orgs/{org}/team-sync/groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "string", + "type": "string[]", "required": false, "enum": null, "allowNull": false, @@ -4955,148 +1923,11 @@ "code": 200, "examples": [ { - "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "listIdpGroupsInOrg", - "method": "GET", - "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "team_slug", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "teams", - "id": "listLinkedExternalIdpGroupsToTeamForOrg", - "method": "GET", - "url": "/orgs/{org}/teams/{team_slug}/external-groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#list-external-idp-group-team-connection", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "team_slug", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"updated_at\":\"2021-03-24T11:31:04-06:00\"}]}" + "data": "{\"id\":2,\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" } ] } ], "renamed": null - }, - { - "scope": "teams", - "id": "unlinkExternalIdpGroupFromTeamForOrg", - "method": "DELETE", - "url": "/orgs/{org}/teams/{team_slug}/external-groups", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/teams#unlink-external-idp-group-team-connection", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "org", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "team_slug", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null } ] From 288b54ce66d56fc4e5c0b4f3418b18031a2ced6d Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Fri, 23 Sep 2022 21:15:49 +0000 Subject: [PATCH 2/9] WIP octokit/routes updated --- src/generated/endpoints.ts | 111 ------------------------------------- 1 file changed, 111 deletions(-) diff --git a/src/generated/endpoints.ts b/src/generated/endpoints.ts index 357b57e..0a569f2 100644 --- a/src/generated/endpoints.ts +++ b/src/generated/endpoints.ts @@ -1,9 +1,6 @@ import { EndpointsDefaultsAndDecorations } from "../types"; const Endpoints: EndpointsDefaultsAndDecorations = { actions: { - addRepoAccessToSelfHostedRunnerGroupInOrg: [ - "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id", - ], addSelfHostedRunnerToGroupForOrg: [ "PUT /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", ], @@ -13,9 +10,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { deleteSelfHostedRunnerGroupFromOrg: [ "DELETE /orgs/:org/actions/runner-groups/:runner_group_id", ], - getCustomOidcSubClaimForRepo: [ - "GET /repos/:owner/:repo/actions/oidc/customization/sub", - ], getSelfHostedRunnerGroupForOrg: [ "GET /orgs/:org/actions/runner-groups/:runner_group_id", ], @@ -32,12 +26,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { removeSelfHostedRunnerFromGroupForOrg: [ "DELETE /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", ], - setActionsOidcCustomIssuerPolicyForEnterprise: [ - "PUT /enterprises/:enterprise/actions/oidc/customization/issuer", - ], - setCustomOidcSubClaimForRepo: [ - "PUT /repos/:owner/:repo/actions/oidc/customization/sub", - ], setRepoAccessToSelfHostedRunnerGroupInOrg: [ "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories", ], @@ -48,17 +36,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { "PATCH /orgs/:org/actions/runner-groups/:runner_group_id", ], }, - billing: { - getGithubActionsBillingGhe: [ - "GET /enterprises/:enterprise/settings/billing/actions", - ], - getGithubPackagesBillingGhe: [ - "GET /enterprises/:enterprise/settings/billing/packages", - ], - getSharedStorageBillingGhe: [ - "GET /enterprises/:enterprise/settings/billing/shared-storage", - ], - }, enterpriseAdmin: { addOrgAccessToSelfHostedRunnerGroupInEnterprise: [ "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id", @@ -75,25 +52,12 @@ const Endpoints: EndpointsDefaultsAndDecorations = { createSelfHostedRunnerGroupForEnterprise: [ "POST /enterprises/:enterprise/actions/runner-groups", ], - deleteScimGroupFromEnterprise: [ - "DELETE /scim/v2/enterprises/:enterprise/Groups/:scim_group_id", - ], deleteSelfHostedRunnerFromEnterprise: [ "DELETE /enterprises/:enterprise/actions/runners/:runner_id", ], deleteSelfHostedRunnerGroupFromEnterprise: [ "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id", ], - deleteUserFromEnterprise: [ - "DELETE /scim/v2/enterprises/:enterprise/Users/:scim_user_id", - ], - getAuditLog: ["GET /enterprises/:enterprise/audit-log"], - getProvisioningInformationForEnterpriseGroup: [ - "GET /scim/v2/enterprises/:enterprise/Groups/:scim_group_id", - ], - getProvisioningInformationForEnterpriseUser: [ - "GET /scim/v2/enterprises/:enterprise/Users/:scim_user_id", - ], getSelfHostedRunnerForEnterprise: [ "GET /enterprises/:enterprise/actions/runners/:runner_id", ], @@ -103,12 +67,6 @@ const Endpoints: EndpointsDefaultsAndDecorations = { listOrgAccessToSelfHostedRunnerGroupInEnterprise: [ "GET /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations", ], - listProvisionedGroupsEnterprise: [ - "GET /scim/v2/enterprises/:enterprise/Groups", - ], - listProvisionedIdentitiesEnterprise: [ - "GET /scim/v2/enterprises/:enterprise/Users", - ], listRunnerApplicationsForEnterprise: [ "GET /enterprises/:enterprise/actions/runners/downloads", ], @@ -121,91 +79,22 @@ const Endpoints: EndpointsDefaultsAndDecorations = { listSelfHostedRunnersInGroupForEnterprise: [ "GET /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners", ], - provisionAndInviteEnterpriseGroup: [ - "POST /scim/v2/enterprises/:enterprise/Groups", - ], - provisionAndInviteEnterpriseUser: [ - "POST /scim/v2/enterprises/:enterprise/Users", - ], removeOrgAccessToSelfHostedRunnerGroupInEnterprise: [ "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id", ], removeSelfHostedRunnerFromGroupForEnterprise: [ "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners/:runner_id", ], - setInformationForProvisionedEnterpriseGroup: [ - "PUT /scim/v2/enterprises/:enterprise/Groups/:scim_group_id", - ], - setInformationForProvisionedEnterpriseUser: [ - "PUT /scim/v2/enterprises/:enterprise/Users/:scim_user_id", - ], setOrgAccessToSelfHostedRunnerGroupInEnterprise: [ "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations", ], setSelfHostedRunnersInGroupForEnterprise: [ "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners", ], - updateAttributeForEnterpriseGroup: [ - "PATCH /scim/v2/enterprises/:enterprise/Groups/:scim_group_id", - ], - updateAttributeForEnterpriseUser: [ - "PATCH /scim/v2/enterprises/:enterprise/Users/:scim_user_id", - ], updateSelfHostedRunnerGroupForEnterprise: [ "PATCH /enterprises/:enterprise/actions/runner-groups/:runner_group_id", ], }, - oidc: { - getOidcCustomSubTemplateForOrg: [ - "GET /orgs/:org/actions/oidc/customization/sub", - ], - updateOidcCustomSubTemplateForOrg: [ - "PUT /orgs/:org/actions/oidc/customization/sub", - ], - }, - orgs: { - getAuditLog: ["GET /orgs/:org/audit-log"], - listSamlSsoAuthorizations: ["GET /orgs/:org/credential-authorizations"], - removeSamlSsoAuthorization: [ - "DELETE /orgs/:org/credential-authorizations/:credential_id", - ], - }, - scim: { - deleteUserFromOrg: [ - "DELETE /scim/v2/organizations/:org/Users/:scim_user_id", - ], - getProvisioningInformationForUser: [ - "GET /scim/v2/organizations/:org/Users/:scim_user_id", - ], - listProvisionedIdentities: ["GET /scim/v2/organizations/:org/Users"], - provisionAndInviteUser: ["POST /scim/v2/organizations/:org/Users"], - setInformationForProvisionedUser: [ - "PUT /scim/v2/organizations/:org/Users/:scim_user_id", - ], - updateAttributeForUser: [ - "PATCH /scim/v2/organizations/:org/Users/:scim_user_id", - ], - }, - teams: { - createOrUpdateIdpGroupConnectionsInOrg: [ - "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings", - ], - externalIdpGroupInfoForOrg: ["GET /orgs/:org/external-group/:group_id"], - linkExternalIdpGroupToTeamForOrg: [ - "PATCH /orgs/:org/teams/:team_slug/external-groups", - ], - listExternalIdpGroupsForOrg: ["GET /orgs/:org/external-groups"], - listIdpGroupsForOrg: ["GET /orgs/:org/team-sync/groups"], - listIdpGroupsInOrg: [ - "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings", - ], - listLinkedExternalIdpGroupsToTeamForOrg: [ - "GET /orgs/:org/teams/:team_slug/external-groups", - ], - unlinkExternalIdpGroupFromTeamForOrg: [ - "DELETE /orgs/:org/teams/:team_slug/external-groups", - ], - }, }; export default Endpoints; From 0a88fd46ac8109f0b02b011c5a17eec1b457d9d0 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Wed, 12 Oct 2022 21:54:43 +0000 Subject: [PATCH 3/9] build: cache --- .../update-endpoints/generated/endpoints.json | 2659 +++++++++++++++-- 1 file changed, 2453 insertions(+), 206 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 3aa800f..8f956ad 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -1,11 +1,66 @@ [ + { + "scope": "actions", + "id": "addRepoAccessToSelfHostedRunnerGroupInOrg", + "method": "PUT", + "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "repository_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, { "scope": "actions", "id": "addSelfHostedRunnerToGroupForOrg", "method": "PUT", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -60,7 +115,7 @@ "method": "POST", "url": "/orgs/{org}/actions/runner-groups", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -183,7 +238,7 @@ "method": "DELETE", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization", "previews": [], "headers": [], "parameters": [ @@ -220,13 +275,72 @@ ], "renamed": null }, + { + "scope": "actions", + "id": "getCustomOidcSubClaimForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/actions/oidc/customization/sub", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "owner", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "repo", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"use_default\":false}" + } + ] + }, + { + "code": 400, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, { "scope": "actions", "id": "getSelfHostedRunnerGroupForOrg", "method": "GET", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -273,7 +387,7 @@ "method": "GET", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization", "previews": [], "headers": [], "parameters": [ @@ -344,7 +458,7 @@ "method": "GET", "url": "/orgs/{org}/actions/runner-groups", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-self-hosted-runner-groups-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -415,7 +529,7 @@ "method": "GET", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -486,7 +600,7 @@ "method": "DELETE", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization", "previews": [], "headers": [], "parameters": [ @@ -541,7 +655,7 @@ "method": "DELETE", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -590,13 +704,127 @@ ], "renamed": null }, + { + "scope": "actions", + "id": "setActionsOidcCustomIssuerPolicyForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/oidc/customization/issuer", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "include_enterprise_slug", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "actions", + "id": "setCustomOidcSubClaimForRepo", + "method": "PUT", + "url": "/repos/{owner}/{repo}/actions/oidc/customization/sub", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "owner", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "repo", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "use_default", + "in": "BODY", + "type": "boolean", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 201, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 422, + "examples": null + } + ], + "renamed": null + }, { "scope": "actions", "id": "setRepoAccessToSelfHostedRunnerGroupInOrg", "method": "PUT", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization", "previews": [], "headers": [], "parameters": [ @@ -651,7 +879,7 @@ "method": "PUT", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -706,7 +934,7 @@ "method": "PATCH", "url": "/orgs/{org}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization", "previews": [], "headers": [], "parameters": [ @@ -817,7 +1045,7 @@ "method": "PUT", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/billing#get-github-actions-billing-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -834,7 +1062,28 @@ "deprecated": null }, { - "name": "runner_group_id", + "code": 200, + "examples": [ + { + "data": "{\"total_minutes_used\":305,\"total_paid_minutes_used\":0,\"included_minutes\":3000,\"minutes_used_breakdown\":{\"UBUNTU\":205,\"MACOS\":10,\"WINDOWS\":90}}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "billing", + "id": "getGithubPackagesBillingGhe", + "method": "GET", + "url": "/enterprises/{enterprise}/settings/billing/packages", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/billing#get-github-packages-billing-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org_id", "in": "PATH", "type": "integer", "required": true, @@ -844,11 +1093,30 @@ "validation": null, "alias": null, "deprecated": null - }, + } + ], + "responses": [ { - "name": "org_id", + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "addSelfHostedRunnerToGroupForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/billing#get-shared-storage-billing-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", "in": "PATH", - "type": "integer", + "type": "string", "required": true, "enum": null, "allowNull": false, @@ -860,19 +1128,78 @@ ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"days_left_in_billing_cycle\":20,\"estimated_paid_storage_for_month\":15,\"estimated_storage_for_month\":40}" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "addSelfHostedRunnerToGroupForEnterprise", + "id": "addOrgAccessToSelfHostedRunnerGroupInEnterprise", "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "org_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "addSelfHostedRunnerToGroupForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -927,7 +1254,7 @@ "method": "POST", "url": "/enterprises/{enterprise}/actions/runners/registration-token", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#create-a-registration-token-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -962,7 +1289,7 @@ "method": "POST", "url": "/enterprises/{enterprise}/actions/runners/remove-token", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#create-a-remove-token-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -997,7 +1324,7 @@ "method": "POST", "url": "/enterprises/{enterprise}/actions/runner-groups", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#create-self-hosted-runner-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#create-self-hosted-runner-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1117,52 +1444,9 @@ "scope": "enterpriseAdmin", "id": "deleteSelfHostedRunnerFromEnterprise", "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "deleteSelfHostedRunnerGroupFromEnterprise", - "method": "DELETE", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1205,7 +1489,7 @@ "method": "GET", "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1248,58 +1532,11 @@ }, { "scope": "enterpriseAdmin", - "id": "getSelfHostedRunnerGroupForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listOrgAccessToSelfHostedRunnerGroupInEnterprise", + "id": "getAuditLog", "method": "GET", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1472,11 +1709,11 @@ }, { "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnersForEnterprise", + "id": "getConsumedLicenses", "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners", + "url": "/enterprises/{enterprise}/consumed-licenses", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#list-enterprise-consumed-licenses", "previews": [], "headers": [], "parameters": [ @@ -1522,7 +1759,7 @@ "code": 200, "examples": [ { - "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" + "data": "{\"total_seats_consumed\":5000,\"total_seats_purchased\":4500,\"users\":[{\"enterprise_server_emails\":[\"monalisa@github.com\"],\"github_com_login\":\"monalisa\",\"github_com_name\":\"Mona Lisa\",\"github_com_profile\":\"https://github.com/monalisa\",\"license_type\":\"enterprise\",\"github_com_member_roles\":[\"org1:Owner\",\"org2:Owner\"],\"github_com_enterprise_role\":\"owner\",\"github_com_enterprise_roles\":[\"owner\"],\"visual_studio_subscription_user\":false,\"github_com_verified_domain_emails\":[\"monalisa@github.com\"],\"github_com_saml_name_id\":\"monalisa\",\"enterprise_server_user\":true,\"github_com_user\":true,\"total_user_accounts\":3,\"enterprise_server_user_ids\":[\"example_host_name.com:123\",\"example_host_name_2:222\"],\"github_com_orgs_with_pending_invites\":[\"org1\",\"org2\"],\"visual_studio_subscription_email\":\"\"},{\"enterprise_server_emails\":[\"deleonjavier@example.com\"],\"github_com_login\":\"\",\"github_com_name\":\"\",\"github_com_profile\":\"\",\"license_type\":\"enterprise\",\"github_com_member_roles\":[],\"github_com_enterprise_role\":\"\",\"github_com_enterprise_roles\":[],\"visual_studio_subscription_user\":false,\"github_com_verified_domain_emails\":[],\"github_com_saml_name_id\":\"\",\"enterprise_server_user\":true,\"github_com_user\":false,\"total_user_accounts\":1,\"enterprise_server_user_ids\":[\"example_host_name:123\"],\"github_com_orgs_with_pending_invites\":[],\"visual_studio_subscription_email\":\"\"}]}" } ] } @@ -1531,11 +1768,11 @@ }, { "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnersInGroupForEnterprise", + "id": "getLicenseSyncStatus", "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", + "url": "/enterprises/{enterprise}/license-sync-status", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#get-a-license-sync-status", "previews": [], "headers": [], "parameters": [ @@ -1550,19 +1787,30 @@ "validation": null, "alias": null, "deprecated": null - }, + } + ], + "responses": [ { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, + "code": 200, + "examples": [ + { + "data": "{\"server_instances\":[{\"server_id\":\"deadbeef1\",\"hostname\":\"github.example.com\",\"last_sync\":{\"date\":\"2020-01-01T00:00:00Z\",\"status\":\"success\",\"error\":\"\"}},{\"server_id\":\"filetoffish1\",\"hostname\":\"github2.example.com\",\"last_sync\":{\"date\":\"2020-01-01T00:00:00Z\",\"status\":\"success\",\"error\":\"\"}}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "getSelfHostedRunnerForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#get-a-self-hosted-runner-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ { "name": "per_page", "in": "QUERY", @@ -1606,7 +1854,7 @@ "method": "DELETE", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#get-a-self-hosted-runner-group-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1661,7 +1909,7 @@ "method": "DELETE", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1712,11 +1960,11 @@ }, { "scope": "enterpriseAdmin", - "id": "setOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", + "id": "listRunnerApplicationsForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners/downloads", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-runner-applications-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1731,47 +1979,27 @@ "validation": null, "alias": null, "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "selected_organization_ids", - "in": "BODY", - "type": "integer[]", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null } ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "setSelfHostedRunnersInGroupForEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", + "id": "listSelfHostedRunnerGroupsForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-self-hosted-runner-groups-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1788,10 +2016,10 @@ "deprecated": null }, { - "name": "runner_group_id", - "in": "PATH", + "name": "per_page", + "in": "QUERY", "type": "integer", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -1800,9 +2028,9 @@ "deprecated": null }, { - "name": "runners", - "in": "BODY", - "type": "integer[]", + "name": "page", + "in": "QUERY", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -1810,28 +2038,1831 @@ "validation": null, "alias": null, "deprecated": null + }, + { + "name": "visible_to_organization", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null } ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"total_count\":3,\"runner_groups\":[{\"id\":1,\"name\":\"Default\",\"visibility\":\"all\",\"default\":true,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/1/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":false,\"selected_workflows\":[],\"workflow_restrictions_read_only\":false},{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false},{\"id\":3,\"name\":\"expensive-hardware\",\"visibility\":\"private\",\"default\":false,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/3/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}]}" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "updateSelfHostedRunnerGroupForEnterprise", - "method": "PATCH", + "id": "listSelfHostedRunnersForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-self-hosted-runners-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "listSelfHostedRunnersInGroupForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "code": 200, + "examples": [ + { + "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "removeOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "DELETE", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "org_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "removeSelfHostedRunnerFromGroupForEnterprise", + "method": "DELETE", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "setOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "selected_organization_ids", + "in": "BODY", + "type": "integer[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "setSelfHostedRunnersInGroupForEnterprise", + "method": "PUT", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runners", + "in": "BODY", + "type": "integer[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "enterpriseAdmin", + "id": "updateSelfHostedRunnerGroupForEnterprise", + "method": "PATCH", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#update-a-self-hosted-runner-group-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "runner_group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "visibility", + "in": "BODY", + "type": "string", + "required": false, + "enum": [ + "selected", + "all" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "allows_public_repositories", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "restricted_to_workflows", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "selected_workflows", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"id\":2,\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "oidc", + "id": "getOidcCustomSubTemplateForOrg", + "method": "GET", + "url": "/orgs/{org}/actions/oidc/customization/sub", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"include_claim_keys\":[\"repo\",\"context\"]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "oidc", + "id": "updateOidcCustomSubTemplateForOrg", + "method": "PUT", + "url": "/orgs/{org}/actions/oidc/customization/sub", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "include_claim_keys", + "in": "BODY", + "type": "string[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 201, + "examples": [ + { + "data": "null" + } + ] + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "orgs", + "id": "getAuditLog", + "method": "GET", + "url": "/orgs/{org}/audit-log", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/orgs#get-audit-log", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "phrase", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "include", + "in": "QUERY", + "type": "string", + "required": false, + "enum": [ + "web", + "git", + "all" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "after", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "before", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "order", + "in": "QUERY", + "type": "string", + "required": false, + "enum": [ + "desc", + "asc" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "[{\"@timestamp\":1606929874512,\"action\":\"team.add_member\",\"actor\":\"octocat\",\"created_at\":1606929874512,\"_document_id\":\"xJJFlFOhQ6b-5vaAFy9Rjw\",\"org\":\"octo-corp\",\"team\":\"octo-corp/example-team\",\"user\":\"monalisa\"},{\"@timestamp\":1606507117008,\"action\":\"org.create\",\"actor\":\"octocat\",\"created_at\":1606507117008,\"_document_id\":\"Vqvg6kZ4MYqwWRKFDzlMoQ\",\"org\":\"octocat-test-org\"},{\"@timestamp\":1605719148837,\"action\":\"repo.destroy\",\"actor\":\"monalisa\",\"created_at\":1605719148837,\"_document_id\":\"LwW2vpJZCDS-WUmo9Z-ifw\",\"org\":\"mona-org\",\"repo\":\"mona-org/mona-test-repo\",\"visibility\":\"private\"}]" + } + ] + } + ], + "renamed": null + }, + { + "scope": "orgs", + "id": "listSamlSsoAuthorizations", + "method": "GET", + "url": "/orgs/{org}/credential-authorizations", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/orgs#list-saml-sso-authorizations-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "per_page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "page", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "login", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "[{\"login\":\"octocat\",\"credential_id\":161195,\"credential_type\":\"personal access token\",\"token_last_eight\":\"71c3fc11\",\"credential_authorized_at\":\"2011-01-26T19:06:43Z\",\"authorized_credential_expires_at\":\"2011-02-25T19:06:43Z\",\"scopes\":[\"user\",\"repo\"]},{\"login\":\"hubot\",\"credential_id\":161196,\"credential_type\":\"personal access token\",\"token_last_eight\":\"Ae178B4a\",\"credential_authorized_at\":\"2019-03-29T19:06:43Z\",\"authorized_credential_expires_at\":\"2019-04-28T19:06:43Z\",\"scopes\":[\"repo\"]}]" + } + ] + } + ], + "renamed": null + }, + { + "scope": "orgs", + "id": "removeSamlSsoAuthorization", + "method": "DELETE", + "url": "/orgs/{org}/credential-authorizations/{credential_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/orgs#remove-a-saml-sso-authorization-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "credential_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "deleteUserFromOrg", + "method": "DELETE", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#delete-a-scim-user-from-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "scim_user_id", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + }, + { + "code": 304, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "getProvisioningInformationForUser", + "method": "GET", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#get-scim-provisioning-information-for-a-user", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "scim_user_id", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" + } + ] + }, + { + "code": 304, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "listProvisionedIdentities", + "method": "GET", + "url": "/scim/v2/organizations/{org}/Users", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#list-scim-provisioned-identities", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "startIndex", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "count", + "in": "QUERY", + "type": "integer", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "filter", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":1,\"itemsPerPage\":1,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"5fc0c238-1112-11e8-8e45-920c87bdbd75\",\"externalId\":\"00u1dhhb1fkIGP7RL1d8\",\"userName\":\"octocat@github.com\",\"displayName\":\"Mona Octocat\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\",\"formatted\":\"Mona Octocat\"},\"emails\":[{\"value\":\"octocat@github.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2018-02-13T15:05:24.000-08:00\",\"lastModified\":\"2018-02-13T15:05:55.000-08:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/5fc0c238-1112-11e8-8e45-920c87bdbd75\"}}]}" + }, + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:ListResponse\"],\"totalResults\":2,\"itemsPerPage\":2,\"startIndex\":1,\"Resources\":[{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Mona Octocat\",\"name\":{\"givenName\":\"Mona\",\"familyName\":\"Octocat\",\"formatted\":\"Mona Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}},{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"77563764-eb6-24-0598234-958243\",\"externalId\":\"sdfoiausdofiua\",\"userName\":\"hubot@example.com\",\"displayName\":\"hu bot\",\"name\":{\"givenName\":\"hu\",\"familyName\":\"bot\",\"formatted\":\"hu bot\"},\"emails\":[{\"value\":\"hubot@example.com\",\"primary\":true}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243\"}}]}" + } + ] + }, + { + "code": 304, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 429, + "examples": null + }, + { + "code": 429, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "provisionAndInviteUser", + "method": "POST", + "url": "/scim/v2/organizations/{org}/Users", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#provision-and-invite-a-scim-user", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "userName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "displayName", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name", + "in": "BODY", + "type": "object", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.givenName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.familyName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.formatted", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails", + "in": "BODY", + "type": "object[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].value", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].primary", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].type", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "schemas", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "externalId", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "active", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 201, + "examples": [ + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" + } + ] + }, + { + "code": 304, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 409, + "examples": null + }, + { + "code": 409, + "examples": null + }, + { + "code": 500, + "examples": null + }, + { + "code": 500, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "setInformationForProvisionedUser", + "method": "PUT", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#set-scim-information-for-a-provisioned-user", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "scim_user_id", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "schemas", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "displayName", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "externalId", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "active", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "userName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name", + "in": "BODY", + "type": "object", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.givenName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.familyName", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "name.formatted", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails", + "in": "BODY", + "type": "object[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].type", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].value", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "emails[].primary", + "in": "BODY", + "type": "boolean", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" + } + ] + }, + { + "code": 304, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "scim", + "id": "updateAttributeForUser", + "method": "PATCH", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/scim#update-an-attribute-for-a-scim-user", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "scim_user_id", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "schemas", + "in": "BODY", + "type": "string[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "Operations", + "in": "BODY", + "type": "object[]", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "Operations[].op", + "in": "BODY", + "type": "string", + "required": true, + "enum": [ + "add", + "remove", + "replace" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "Operations[].path", + "in": "BODY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "Operations[].value", + "in": "BODY", + "type": null, + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"schemas\":[\"urn:ietf:params:scim:schemas:core:2.0:User\"],\"id\":\"edefdfedf-050c-11e7-8d32\",\"externalId\":\"a7d0f98382\",\"userName\":\"mona.octocat@okta.example.com\",\"displayName\":\"Monalisa Octocat\",\"name\":{\"givenName\":\"Monalisa\",\"familyName\":\"Octocat\",\"formatted\":\"Monalisa Octocat\"},\"emails\":[{\"value\":\"mona.octocat@okta.example.com\",\"primary\":true},{\"value\":\"monalisa@octocat.github.com\"}],\"active\":true,\"meta\":{\"resourceType\":\"User\",\"created\":\"2017-03-09T16:11:13-05:00\",\"lastModified\":\"2017-03-09T16:11:13-05:00\",\"location\":\"https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32\"}}" + } + ] + }, + { + "code": 304, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 400, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 403, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 404, + "examples": null + }, + { + "code": 429, + "examples": null + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "createOrUpdateIdpGroupConnectionsInOrg", + "method": "PATCH", + "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#create-or-update-idp-group-connections", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "team_slug", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups", + "in": "BODY", + "type": "object[]", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups[].group_id", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups[].group_name", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "groups[].group_description", + "in": "BODY", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "externalIdpGroupInfoForOrg", + "method": "GET", + "url": "/orgs/{org}/external-group/{group_id}", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#external-idp-group-info-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "group_id", + "in": "PATH", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\",\"teams\":[{\"team_id\":1,\"team_name\":\"team-test\"},{\"team_id\":2,\"team_name\":\"team-test2\"}],\"members\":[{\"member_id\":1,\"member_login\":\"mona-lisa_eocsaxrs\",\"member_name\":\"Mona Lisa\",\"member_email\":\"mona_lisa@github.com\"},{\"member_id\":2,\"member_login\":\"octo-lisa_eocsaxrs\",\"member_name\":\"Octo Lisa\",\"member_email\":\"octo_lisa@github.com\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "linkExternalIdpGroupToTeamForOrg", + "method": "PATCH", + "url": "/orgs/{org}/teams/{team_slug}/external-groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#link-external-idp-group-team-connection", "previews": [], "headers": [], "parameters": [ { - "name": "enterprise", + "name": "org", "in": "PATH", "type": "string", "required": true, @@ -1843,9 +3874,9 @@ "deprecated": null }, { - "name": "runner_group_id", + "name": "team_slug", "in": "PATH", - "type": "integer", + "type": "string", "required": true, "enum": null, "allowNull": false, @@ -1855,9 +3886,56 @@ "deprecated": null }, { - "name": "name", + "name": "group_id", "in": "BODY", + "type": "integer", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\",\"teams\":[{\"team_id\":1,\"team_name\":\"team-test\"},{\"team_id\":2,\"team_name\":\"team-test2\"}],\"members\":[{\"member_id\":1,\"member_login\":\"mona-lisa_eocsaxrs\",\"member_name\":\"Mona Lisa\",\"member_email\":\"mona_lisa@github.com\"},{\"member_id\":2,\"member_login\":\"octo-lisa_eocsaxrs\",\"member_name\":\"Octo Lisa\",\"member_email\":\"octo_lisa@github.com\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "listExternalIdpGroupsForOrg", + "method": "GET", + "url": "/orgs/{org}/external-groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#list-external-idp-groups-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "per_page", + "in": "QUERY", + "type": "integer", "required": false, "enum": null, "allowNull": false, @@ -1867,14 +3945,11 @@ "deprecated": null }, { - "name": "visibility", - "in": "BODY", - "type": "string", + "name": "page", + "in": "QUERY", + "type": "integer", "required": false, - "enum": [ - "selected", - "all" - ], + "enum": null, "allowNull": false, "mapToData": null, "validation": null, @@ -1882,9 +3957,9 @@ "deprecated": null }, { - "name": "allows_public_repositories", - "in": "BODY", - "type": "boolean", + "name": "display_name", + "in": "QUERY", + "type": "string", "required": false, "enum": null, "allowNull": false, @@ -1892,11 +3967,46 @@ "validation": null, "alias": null, "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"updated_at\":\"2021-03-24T11:31:04-06:00\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "listIdpGroupsForOrg", + "method": "GET", + "url": "/orgs/{org}/team-sync/groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#list-idp-groups-for-an-organization", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null }, { - "name": "restricted_to_workflows", - "in": "BODY", - "type": "boolean", + "name": "per_page", + "in": "QUERY", + "type": "integer", "required": false, "enum": null, "allowNull": false, @@ -1906,9 +4016,9 @@ "deprecated": null }, { - "name": "selected_workflows", - "in": "BODY", - "type": "string[]", + "name": "page", + "in": "QUERY", + "type": "string", "required": false, "enum": null, "allowNull": false, @@ -1923,11 +4033,148 @@ "code": 200, "examples": [ { - "data": "{\"id\":2,\"name\":\"Expensive hardware runners\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" + "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "listIdpGroupsInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#list-idp-groups-for-a-team", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "team_slug", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"group_description\":\"The people who configure your octoworld.\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"group_description\":\"The people who make your octoworld come to life.\"}]}" + } + ] + } + ], + "renamed": null + }, + { + "scope": "teams", + "id": "listLinkedExternalIdpGroupsToTeamForOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/external-groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#list-external-idp-group-team-connection", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "team_slug", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "{\"groups\":[{\"group_id\":\"123\",\"group_name\":\"Octocat admins\",\"updated_at\":\"2021-01-24T11:31:04-06:00\"},{\"group_id\":\"456\",\"group_name\":\"Octocat docs members\",\"updated_at\":\"2021-03-24T11:31:04-06:00\"}]}" } ] } ], "renamed": null + }, + { + "scope": "teams", + "id": "unlinkExternalIdpGroupFromTeamForOrg", + "method": "DELETE", + "url": "/orgs/{org}/teams/{team_slug}/external-groups", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/teams#unlink-external-idp-group-team-connection", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "org", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "team_slug", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 204, + "examples": null + } + ], + "renamed": null } ] From 29ad95dffa7d98c9f50b90747335ddfb60696ea4 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Thu, 13 Oct 2022 00:01:37 +0000 Subject: [PATCH 4/9] build: cache --- .../update-endpoints/generated/endpoints.json | 131 ++++++------------ 1 file changed, 45 insertions(+), 86 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 8f956ad..64a767b 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -1444,52 +1444,9 @@ "scope": "enterpriseAdmin", "id": "deleteSelfHostedRunnerFromEnterprise", "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "runner_group_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "getSelfHostedRunnerForEnterprise", - "method": "GET", "url": "/enterprises/{enterprise}/actions/runners/{runner_id}", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-self-hosted-runner-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1536,7 +1493,7 @@ "method": "GET", "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1603,46 +1560,11 @@ }, { "scope": "enterpriseAdmin", - "id": "listRunnerApplicationsForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners/downloads", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ - { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - } - ], - "responses": [ - { - "code": 200, - "examples": [ - { - "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" - } - ] - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listSelfHostedRunnerGroupsForEnterprise", + "id": "getAuditLog", "method": "GET", "url": "/enterprises/{enterprise}/actions/runner-groups", "isDeprecated": false, - "documentationUrl": "https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-enterprise", + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise", "previews": [], "headers": [], "parameters": [ @@ -1993,6 +1915,41 @@ ], "renamed": null }, + { + "scope": "enterpriseAdmin", + "id": "listRunnerApplicationsForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runners/downloads", + "isDeprecated": false, + "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-runner-applications-for-an-enterprise", + "previews": [], + "headers": [], + "parameters": [ + { + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + } + ], + "responses": [ + { + "code": 200, + "examples": [ + { + "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" + } + ] + } + ], + "renamed": null + }, { "scope": "enterpriseAdmin", "id": "listSelfHostedRunnerGroupsForEnterprise", @@ -2031,7 +1988,7 @@ "name": "page", "in": "QUERY", "type": "integer", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -2075,9 +2032,9 @@ "headers": [], "parameters": [ { - "name": "enterprise", + "name": "runner_group_id", "in": "PATH", - "type": "string", + "type": "integer", "required": true, "enum": null, "allowNull": false, @@ -2180,7 +2137,9 @@ "validation": null, "alias": null, "deprecated": null - }, + } + ], + "responses": [ { "code": 200, "examples": [ From c2feeb05bc3d42cd23245a24f1533deb78d625c5 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:07:18 -0700 Subject: [PATCH 5/9] fix(deps): bump `@octokit/types` to v8 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea70c9f..8de29fc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "author": "Gregor Martynus (https://github.com/gr2m)", "license": "MIT", "dependencies": { - "@octokit/types": "^7.0.0" + "@octokit/types": "^8.0.0" }, "peerDependencies": { "@octokit/core": ">=3" @@ -43,7 +43,7 @@ "@types/node": "^16.0.0", "camelcase": "^6.3.0", "fetch-mock": "^9.0.0", - "github-openapi-graphql-query": "^2.0.0", + "github-openapi-graphql-query": "^3.0.0", "jest": "^29.0.0", "npm-run-all": "^4.1.5", "prettier": "2.7.1", From fb6885d7aaf10d78d357ab005bab83c70a5d8ba6 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:07:20 -0700 Subject: [PATCH 6/9] build(package): lock file --- package-lock.json | 298 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 277 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index 048add5..5c5d7bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/types": "^7.0.0" + "@octokit/types": "^8.0.0" }, "devDependencies": { "@octokit/core": "^4.0.0", @@ -22,7 +22,7 @@ "@types/node": "^16.0.0", "camelcase": "^6.3.0", "fetch-mock": "^9.0.0", - "github-openapi-graphql-query": "^2.0.0", + "github-openapi-graphql-query": "^3.0.0", "jest": "^29.0.0", "npm-run-all": "^4.1.5", "prettier": "2.7.1", @@ -2659,6 +2659,21 @@ "node": ">= 14" } }, + "node_modules/@octokit/auth-token/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/auth-token/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/core": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.0.5.tgz", @@ -2677,6 +2692,21 @@ "node": ">= 14" } }, + "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/core/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/endpoint": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-7.0.2.tgz", @@ -2691,6 +2721,21 @@ "node": ">= 14" } }, + "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/endpoint/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/graphql": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-5.0.1.tgz", @@ -2705,10 +2750,25 @@ "node": ">= 14" } }, - "node_modules/@octokit/openapi-types": { + "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { "version": "13.13.1", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", - "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==" + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/graphql/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-14.0.0.tgz", + "integrity": "sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "4.3.1", @@ -2725,6 +2785,21 @@ "@octokit/core": ">=4" } }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/plugin-request-log": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", @@ -2750,6 +2825,21 @@ "@octokit/core": ">=3" } }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/request": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-6.2.1.tgz", @@ -2781,6 +2871,36 @@ "node": ">= 14" } }, + "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/request-error/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, + "node_modules/@octokit/request/node_modules/@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "node_modules/@octokit/request/node_modules/@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^13.11.0" + } + }, "node_modules/@octokit/rest": { "version": "19.0.4", "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.4.tgz", @@ -2797,11 +2917,11 @@ } }, "node_modules/@octokit/types": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", - "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-8.0.0.tgz", + "integrity": "sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg==", "dependencies": { - "@octokit/openapi-types": "^13.11.0" + "@octokit/openapi-types": "^14.0.0" } }, "node_modules/@pika/babel-plugin-esm-import-rewrite": { @@ -5640,9 +5760,9 @@ } }, "node_modules/github-openapi-graphql-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/github-openapi-graphql-query/-/github-openapi-graphql-query-2.2.0.tgz", - "integrity": "sha512-RNPdehCYnobW9F6lF+zXXsKesTVDvRzM6GYHZw2B3UIoby3jusSYjEeVsPffqWjqWCVdTrfKSzAa5wY5EU97XQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/github-openapi-graphql-query/-/github-openapi-graphql-query-3.0.0.tgz", + "integrity": "sha512-Y+gesAmvjUJua2rI7cED+T2httWyaI6jUH9K81XmuaeK4HIblzoRCMnz6Y8vQEnIzAW7sh0HFiVMCYgAFIkHJw==", "dev": true, "dependencies": { "@graphql-tools/schema": "^9.0.2", @@ -16284,6 +16404,23 @@ "dev": true, "requires": { "@octokit/types": "^7.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/core": { @@ -16299,6 +16436,23 @@ "@octokit/types": "^7.0.0", "before-after-hook": "^2.2.0", "universal-user-agent": "^6.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/endpoint": { @@ -16310,6 +16464,23 @@ "@octokit/types": "^7.0.0", "is-plain-object": "^5.0.0", "universal-user-agent": "^6.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/graphql": { @@ -16321,12 +16492,29 @@ "@octokit/request": "^6.0.0", "@octokit/types": "^7.0.0", "universal-user-agent": "^6.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/openapi-types": { - "version": "13.13.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", - "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==" + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-14.0.0.tgz", + "integrity": "sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==" }, "@octokit/plugin-paginate-rest": { "version": "4.3.1", @@ -16335,6 +16523,23 @@ "dev": true, "requires": { "@octokit/types": "^7.5.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/plugin-request-log": { @@ -16352,6 +16557,23 @@ "requires": { "@octokit/types": "^7.5.0", "deprecation": "^2.3.1" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/request": { @@ -16366,6 +16588,23 @@ "is-plain-object": "^5.0.0", "node-fetch": "^2.6.7", "universal-user-agent": "^6.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/request-error": { @@ -16377,6 +16616,23 @@ "@octokit/types": "^7.0.0", "deprecation": "^2.0.0", "once": "^1.4.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "13.13.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.13.1.tgz", + "integrity": "sha512-4EuKSk3N95UBWFau3Bz9b3pheQ8jQYbKmBL5+GSuY8YDPDwu03J4BjI+66yNi8aaX/3h1qDpb0mbBkLdr+cfGQ==", + "dev": true + }, + "@octokit/types": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", + "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "dev": true, + "requires": { + "@octokit/openapi-types": "^13.11.0" + } + } } }, "@octokit/rest": { @@ -16392,11 +16648,11 @@ } }, "@octokit/types": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.5.1.tgz", - "integrity": "sha512-Zk4OUMLCSpXNI8KZZn47lVLJSsgMyCimsWWQI5hyjZg7hdYm0kjotaIkbG0Pp8SfU2CofMBzonboTqvzn3FrJA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-8.0.0.tgz", + "integrity": "sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg==", "requires": { - "@octokit/openapi-types": "^13.11.0" + "@octokit/openapi-types": "^14.0.0" } }, "@pika/babel-plugin-esm-import-rewrite": { @@ -18575,9 +18831,9 @@ } }, "github-openapi-graphql-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/github-openapi-graphql-query/-/github-openapi-graphql-query-2.2.0.tgz", - "integrity": "sha512-RNPdehCYnobW9F6lF+zXXsKesTVDvRzM6GYHZw2B3UIoby3jusSYjEeVsPffqWjqWCVdTrfKSzAa5wY5EU97XQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/github-openapi-graphql-query/-/github-openapi-graphql-query-3.0.0.tgz", + "integrity": "sha512-Y+gesAmvjUJua2rI7cED+T2httWyaI6jUH9K81XmuaeK4HIblzoRCMnz6Y8vQEnIzAW7sh0HFiVMCYgAFIkHJw==", "dev": true, "requires": { "@graphql-tools/schema": "^9.0.2", From d8af8b1d7c722033a3fac975968625f204ba51f9 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:07:41 -0700 Subject: [PATCH 7/9] build: fetch endpoints from new GHEC OpenAPI spec --- scripts/update-endpoints/fetch-json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-endpoints/fetch-json.js b/scripts/update-endpoints/fetch-json.js index ab062d9..70332ab 100644 --- a/scripts/update-endpoints/fetch-json.js +++ b/scripts/update-endpoints/fetch-json.js @@ -9,7 +9,7 @@ if (!process.env.VERSION) { const QUERY = ` query ($version: String!, $ignoreChangesBefore: String!) { - endpoints(version: $version, ignoreChangesBefore: $ignoreChangesBefore, filter: { isGithubCloudOnly: true }) { + endpoints(version: $version, ignoreChangesBefore: $ignoreChangesBefore, filter: { isGithubCloudOnly: true }, ghe: GHEC) { scope(format: CAMELCASE) id(format: CAMELCASE) method From 1d07031cb67a7df6e52e351f901646acc17d0d1d Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:07:47 -0700 Subject: [PATCH 8/9] build: cache update --- .../update-endpoints/generated/endpoints.json | 238 +++++++++--------- 1 file changed, 120 insertions(+), 118 deletions(-) diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 64a767b..65f6e1e 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -1040,10 +1040,10 @@ "renamed": null }, { - "scope": "enterpriseAdmin", - "id": "addOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", + "scope": "billing", + "id": "getGithubActionsBillingGhe", + "method": "GET", + "url": "/enterprises/{enterprise}/settings/billing/actions", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/billing#get-github-actions-billing-for-an-enterprise", "previews": [], @@ -1060,7 +1060,9 @@ "validation": null, "alias": null, "deprecated": null - }, + } + ], + "responses": [ { "code": 200, "examples": [ @@ -1083,9 +1085,9 @@ "headers": [], "parameters": [ { - "name": "org_id", + "name": "enterprise", "in": "PATH", - "type": "integer", + "type": "string", "required": true, "enum": null, "allowNull": false, @@ -1097,17 +1099,21 @@ ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"total_gigabytes_bandwidth_used\":50,\"total_paid_gigabytes_bandwidth_used\":40,\"included_gigabytes_bandwidth\":10}" + } + ] } ], "renamed": null }, { - "scope": "enterpriseAdmin", - "id": "addSelfHostedRunnerToGroupForEnterprise", - "method": "PUT", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "scope": "billing", + "id": "getSharedStorageBillingGhe", + "method": "GET", + "url": "/enterprises/{enterprise}/settings/billing/shared-storage", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/billing#get-shared-storage-billing-for-an-enterprise", "previews": [], @@ -1477,21 +1483,17 @@ ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"id\":23,\"name\":\"MBP\",\"os\":\"macos\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}" - } - ] + "code": 204, + "examples": null } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "getAuditLog", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", + "id": "deleteSelfHostedRunnerGroupFromEnterprise", + "method": "DELETE", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#delete-a-self-hosted-runner-group-from-an-enterprise", "previews": [], @@ -1520,40 +1522,12 @@ "validation": null, "alias": null, "deprecated": null - }, - { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null - }, - { - "name": "page", - "in": "QUERY", - "type": "integer", - "required": false, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null } ], "responses": [ { - "code": 200, - "examples": [ - { - "data": "{\"total_count\":1,\"organizations\":[{\"login\":\"octocat\",\"id\":161335,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjk2MjY5\",\"url\":\"https://api.github.com/orgs/octo-org\",\"repos_url\":\"https://api.github.com/orgs/octo-org/repos\",\"events_url\":\"https://api.github.com/orgs/octo-org/events\",\"hooks_url\":\"https://api.github.com/orgs/octo-org/hooks\",\"issues_url\":\"https://api.github.com/orgs/octo-org/issues\",\"members_url\":\"https://api.github.com/orgs/octo-org/members{/member}\",\"public_members_url\":\"https://api.github.com/orgs/octo-org/public_members{/member}\",\"avatar_url\":\"https://github.com/images/error/octocat_happy.gif\",\"description\":\"A great organization\"}]}" - } - ] + "code": 204, + "examples": null } ], "renamed": null @@ -1562,7 +1536,7 @@ "scope": "enterpriseAdmin", "id": "getAuditLog", "method": "GET", - "url": "/enterprises/{enterprise}/actions/runner-groups", + "url": "/enterprises/{enterprise}/audit-log", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise", "previews": [], @@ -1581,9 +1555,9 @@ "deprecated": null }, { - "name": "per_page", + "name": "phrase", "in": "QUERY", - "type": "integer", + "type": "string", "required": false, "enum": null, "allowNull": false, @@ -1592,6 +1566,61 @@ "alias": null, "deprecated": null }, + { + "name": "include", + "in": "QUERY", + "type": "string", + "required": false, + "enum": [ + "web", + "git", + "all" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "after", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "before", + "in": "QUERY", + "type": "string", + "required": false, + "enum": null, + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, + { + "name": "order", + "in": "QUERY", + "type": "string", + "required": false, + "enum": [ + "desc", + "asc" + ], + "allowNull": false, + "mapToData": null, + "validation": null, + "alias": null, + "deprecated": null + }, { "name": "page", "in": "QUERY", @@ -1605,9 +1634,9 @@ "deprecated": null }, { - "name": "visible_to_organization", + "name": "per_page", "in": "QUERY", - "type": "string", + "type": "integer", "required": false, "enum": null, "allowNull": false, @@ -1622,7 +1651,7 @@ "code": 200, "examples": [ { - "data": "{\"total_count\":3,\"runner_groups\":[{\"id\":1,\"name\":\"Default\",\"visibility\":\"all\",\"default\":true,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/1/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":false,\"selected_workflows\":[],\"workflow_restrictions_read_only\":false},{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false},{\"id\":3,\"name\":\"expensive-hardware\",\"visibility\":\"private\",\"default\":false,\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner_groups/3/runners\",\"allows_public_repositories\":true,\"restricted_to_workflows\":false,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}]}" + "data": "[{\"@timestamp\":1606929874512,\"action\":\"team.add_member\",\"actor\":\"octocat\",\"created_at\":1606929874512,\"_document_id\":\"xJJFlFOhQ6b-5vaAFy9Rjw\",\"org\":\"octo-corp\",\"team\":\"octo-corp/example-team\",\"user\":\"monalisa\"},{\"@timestamp\":1606507117008,\"action\":\"org.create\",\"actor\":\"octocat\",\"created_at\":1606507117008,\"_document_id\":\"Vqvg6kZ4MYqwWRKFDzlMoQ\",\"org\":\"octocat-test-org\"},{\"@timestamp\":1605719148837,\"action\":\"repo.destroy\",\"actor\":\"monalisa\",\"created_at\":1605719148837,\"_document_id\":\"LwW2vpJZCDS-WUmo9Z-ifw\",\"org\":\"mona-org\",\"repo\":\"mona-org/mona-test-repo\",\"visibility\":\"private\"}]" } ] } @@ -1734,10 +1763,10 @@ "headers": [], "parameters": [ { - "name": "per_page", - "in": "QUERY", - "type": "integer", - "required": false, + "name": "enterprise", + "in": "PATH", + "type": "string", + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -1746,10 +1775,10 @@ "deprecated": null }, { - "name": "page", - "in": "QUERY", + "name": "runner_id", + "in": "PATH", "type": "integer", - "required": false, + "required": true, "enum": null, "allowNull": false, "mapToData": null, @@ -1763,7 +1792,7 @@ "code": 200, "examples": [ { - "data": "{\"total_count\":2,\"runners\":[{\"id\":23,\"name\":\"linux_runner\",\"os\":\"linux\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":11,\"name\":\"Linux\",\"type\":\"read-only\"}]},{\"id\":24,\"name\":\"mac_runner\",\"os\":\"macos\",\"status\":\"offline\",\"busy\":false,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}]}" + "data": "{\"id\":23,\"name\":\"MBP\",\"os\":\"macos\",\"status\":\"online\",\"busy\":true,\"labels\":[{\"id\":5,\"name\":\"self-hosted\",\"type\":\"read-only\"},{\"id\":7,\"name\":\"X64\",\"type\":\"read-only\"},{\"id\":20,\"name\":\"macOS\",\"type\":\"read-only\"},{\"id\":21,\"name\":\"no-gpu\",\"type\":\"custom\"}]}" } ] } @@ -1772,9 +1801,9 @@ }, { "scope": "enterpriseAdmin", - "id": "removeOrgAccessToSelfHostedRunnerGroupInEnterprise", - "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", + "id": "getSelfHostedRunnerGroupForEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#get-a-self-hosted-runner-group-for-an-enterprise", "previews": [], @@ -1803,33 +1832,25 @@ "validation": null, "alias": null, "deprecated": null - }, - { - "name": "org_id", - "in": "PATH", - "type": "integer", - "required": true, - "enum": null, - "allowNull": false, - "mapToData": null, - "validation": null, - "alias": null, - "deprecated": null } ], "responses": [ { - "code": 204, - "examples": null + "code": 200, + "examples": [ + { + "data": "{\"id\":2,\"name\":\"octo-runner-group\",\"visibility\":\"selected\",\"default\":false,\"selected_organizations_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations\",\"runners_url\":\"https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners\",\"allows_public_repositories\":false,\"restricted_to_workflows\":true,\"selected_workflows\":[\"octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main\"],\"workflow_restrictions_read_only\":false}" + } + ] } ], "renamed": null }, { "scope": "enterpriseAdmin", - "id": "removeSelfHostedRunnerFromGroupForEnterprise", - "method": "DELETE", - "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", + "id": "listOrgAccessToSelfHostedRunnerGroupInEnterprise", + "method": "GET", + "url": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "isDeprecated": false, "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise", "previews": [], @@ -1860,41 +1881,22 @@ "deprecated": null }, { - "name": "runner_id", - "in": "PATH", + "name": "per_page", + "in": "QUERY", "type": "integer", - "required": true, + "required": false, "enum": null, "allowNull": false, "mapToData": null, "validation": null, "alias": null, "deprecated": null - } - ], - "responses": [ - { - "code": 204, - "examples": null - } - ], - "renamed": null - }, - { - "scope": "enterpriseAdmin", - "id": "listRunnerApplicationsForEnterprise", - "method": "GET", - "url": "/enterprises/{enterprise}/actions/runners/downloads", - "isDeprecated": false, - "documentationUrl": "https://docs.github.com/enterprise-cloud@latest//rest/reference/actions#list-runner-applications-for-an-enterprise", - "previews": [], - "headers": [], - "parameters": [ + }, { - "name": "enterprise", - "in": "PATH", - "type": "string", - "required": true, + "name": "page", + "in": "QUERY", + "type": "integer", + "required": false, "enum": null, "allowNull": false, "mapToData": null, @@ -1908,7 +1910,7 @@ "code": 200, "examples": [ { - "data": "[{\"os\":\"osx\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-osx-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-x64-2.164.0.tar.gz\"},{\"os\":\"linux\",\"architecture\":\"arm\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm-2.164.0.tar.gz\"},{\"os\":\"win\",\"architecture\":\"x64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip\",\"filename\":\"actions-runner-win-x64-2.164.0.zip\"},{\"os\":\"linux\",\"architecture\":\"arm64\",\"download_url\":\"https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz\",\"filename\":\"actions-runner-linux-arm64-2.164.0.tar.gz\"}]" + "data": "{\"total_count\":1,\"organizations\":[{\"login\":\"octocat\",\"id\":161335,\"node_id\":\"MDEwOlJlcG9zaXRvcnkxMjk2MjY5\",\"url\":\"https://api.github.com/orgs/octo-org\",\"repos_url\":\"https://api.github.com/orgs/octo-org/repos\",\"events_url\":\"https://api.github.com/orgs/octo-org/events\",\"hooks_url\":\"https://api.github.com/orgs/octo-org/hooks\",\"issues_url\":\"https://api.github.com/orgs/octo-org/issues\",\"members_url\":\"https://api.github.com/orgs/octo-org/members{/member}\",\"public_members_url\":\"https://api.github.com/orgs/octo-org/public_members{/member}\",\"avatar_url\":\"https://github.com/images/error/octocat_happy.gif\",\"description\":\"A great organization\"}]}" } ] } @@ -2032,9 +2034,9 @@ "headers": [], "parameters": [ { - "name": "runner_group_id", + "name": "enterprise", "in": "PATH", - "type": "integer", + "type": "string", "required": true, "enum": null, "allowNull": false, @@ -2091,9 +2093,9 @@ "headers": [], "parameters": [ { - "name": "runner_group_id", + "name": "enterprise", "in": "PATH", - "type": "integer", + "type": "string", "required": true, "enum": null, "allowNull": false, From 219d69ce4add7fa911af7355286077134ab97517 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:08:03 -0700 Subject: [PATCH 9/9] feat: new actions, billing, oidc, scim, and teams endpoints --- src/generated/endpoints.ts | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/src/generated/endpoints.ts b/src/generated/endpoints.ts index 0a569f2..577851d 100644 --- a/src/generated/endpoints.ts +++ b/src/generated/endpoints.ts @@ -1,6 +1,9 @@ import { EndpointsDefaultsAndDecorations } from "../types"; const Endpoints: EndpointsDefaultsAndDecorations = { actions: { + addRepoAccessToSelfHostedRunnerGroupInOrg: [ + "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id", + ], addSelfHostedRunnerToGroupForOrg: [ "PUT /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", ], @@ -10,6 +13,9 @@ const Endpoints: EndpointsDefaultsAndDecorations = { deleteSelfHostedRunnerGroupFromOrg: [ "DELETE /orgs/:org/actions/runner-groups/:runner_group_id", ], + getCustomOidcSubClaimForRepo: [ + "GET /repos/:owner/:repo/actions/oidc/customization/sub", + ], getSelfHostedRunnerGroupForOrg: [ "GET /orgs/:org/actions/runner-groups/:runner_group_id", ], @@ -26,6 +32,12 @@ const Endpoints: EndpointsDefaultsAndDecorations = { removeSelfHostedRunnerFromGroupForOrg: [ "DELETE /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id", ], + setActionsOidcCustomIssuerPolicyForEnterprise: [ + "PUT /enterprises/:enterprise/actions/oidc/customization/issuer", + ], + setCustomOidcSubClaimForRepo: [ + "PUT /repos/:owner/:repo/actions/oidc/customization/sub", + ], setRepoAccessToSelfHostedRunnerGroupInOrg: [ "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories", ], @@ -36,6 +48,17 @@ const Endpoints: EndpointsDefaultsAndDecorations = { "PATCH /orgs/:org/actions/runner-groups/:runner_group_id", ], }, + billing: { + getGithubActionsBillingGhe: [ + "GET /enterprises/:enterprise/settings/billing/actions", + ], + getGithubPackagesBillingGhe: [ + "GET /enterprises/:enterprise/settings/billing/packages", + ], + getSharedStorageBillingGhe: [ + "GET /enterprises/:enterprise/settings/billing/shared-storage", + ], + }, enterpriseAdmin: { addOrgAccessToSelfHostedRunnerGroupInEnterprise: [ "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id", @@ -58,6 +81,9 @@ const Endpoints: EndpointsDefaultsAndDecorations = { deleteSelfHostedRunnerGroupFromEnterprise: [ "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id", ], + getAuditLog: ["GET /enterprises/:enterprise/audit-log"], + getConsumedLicenses: ["GET /enterprises/:enterprise/consumed-licenses"], + getLicenseSyncStatus: ["GET /enterprises/:enterprise/license-sync-status"], getSelfHostedRunnerForEnterprise: [ "GET /enterprises/:enterprise/actions/runners/:runner_id", ], @@ -95,6 +121,57 @@ const Endpoints: EndpointsDefaultsAndDecorations = { "PATCH /enterprises/:enterprise/actions/runner-groups/:runner_group_id", ], }, + oidc: { + getOidcCustomSubTemplateForOrg: [ + "GET /orgs/:org/actions/oidc/customization/sub", + ], + updateOidcCustomSubTemplateForOrg: [ + "PUT /orgs/:org/actions/oidc/customization/sub", + ], + }, + orgs: { + getAuditLog: ["GET /orgs/:org/audit-log"], + listSamlSsoAuthorizations: ["GET /orgs/:org/credential-authorizations"], + removeSamlSsoAuthorization: [ + "DELETE /orgs/:org/credential-authorizations/:credential_id", + ], + }, + scim: { + deleteUserFromOrg: [ + "DELETE /scim/v2/organizations/:org/Users/:scim_user_id", + ], + getProvisioningInformationForUser: [ + "GET /scim/v2/organizations/:org/Users/:scim_user_id", + ], + listProvisionedIdentities: ["GET /scim/v2/organizations/:org/Users"], + provisionAndInviteUser: ["POST /scim/v2/organizations/:org/Users"], + setInformationForProvisionedUser: [ + "PUT /scim/v2/organizations/:org/Users/:scim_user_id", + ], + updateAttributeForUser: [ + "PATCH /scim/v2/organizations/:org/Users/:scim_user_id", + ], + }, + teams: { + createOrUpdateIdpGroupConnectionsInOrg: [ + "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings", + ], + externalIdpGroupInfoForOrg: ["GET /orgs/:org/external-group/:group_id"], + linkExternalIdpGroupToTeamForOrg: [ + "PATCH /orgs/:org/teams/:team_slug/external-groups", + ], + listExternalIdpGroupsForOrg: ["GET /orgs/:org/external-groups"], + listIdpGroupsForOrg: ["GET /orgs/:org/team-sync/groups"], + listIdpGroupsInOrg: [ + "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings", + ], + listLinkedExternalIdpGroupsToTeamForOrg: [ + "GET /orgs/:org/teams/:team_slug/external-groups", + ], + unlinkExternalIdpGroupFromTeamForOrg: [ + "DELETE /orgs/:org/teams/:team_slug/external-groups", + ], + }, }; export default Endpoints;