Skip to content

heymegabyte/agent-skills / skills/github

GitHub v3 REST API API skill — auto-forged from OpenAPI 1.1.4. GitHub's v3 REST API.

FileKindSize
SKILL.mdskill md108.8 KB
client.tsscript285.5 KB
types.tsscript1.1 MB
// Auto-generated by forge-skill-from-openapi
// API: github
// DO NOT EDIT — re-run forge to regenerate

import type * as T from './types.js';

function appendQuery(url: string, query?: Record<string, string>): string {
  if (!query || Object.keys(query).length === 0) return url;
  const qs = new URLSearchParams(query).toString();
  return url.includes('?') ? `${url}&${qs}` : `${url}?${qs}`;
}

export class GithubClient {
  constructor(
    private readonly apiToken: string,
    private readonly baseUrl: string = 'https://api.github.com',
  ) {}

  private async request<T>(method: string, url: string, body?: string): Promise<T> {
    const res = await fetch(url, {
      method,
      headers: {
        'Authorization': `Bearer ${this.apiToken}`,
        'Content-Type': 'application/json',
        'Accept': 'application/json',
      },
      body,
    });
    if (!res.ok) {
      const text = await res.text().catch(() => '');
      throw new Error(`${method} ${url} → ${res.status}: ${text}`);
    }
    if (res.status === 204) return undefined as T;
    return res.json() as T;
  }

  async meta/root(): Promise<meta/rootResponse> {
    return this.request('GET', `https://api.github.com/`);
  },

  async security-advisories/list-global-advisories(query?: Record<string, string>): Promise<security-advisories/list-global-advisoriesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/advisories`, query));
  },

  async security-advisories/get-global-advisory(): Promise<security-advisories/get-global-advisoryResponse> {
    return this.request('GET', `https://api.github.com/advisories/${ghsa_id}`);
  },

  async agent-tasks/list-tasks-for-repo(owner: string, repo: string, query?: Record<string, string>): Promise<agent-tasks/list-tasks-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/agents/repos/${owner}/${repo}/tasks`, query));
  },

  async agent-tasks/create-task-in-repo(owner: string, repo: string, body?: agent-tasks/create-task-in-repoBody): Promise<agent-tasks/create-task-in-repoResponse> {
    return this.request('POST', `https://api.github.com/agents/repos/${owner}/${repo}/tasks`, body ? JSON.stringify(body) : undefined);
  },

  async agent-tasks/get-task-by-repo-and-id(owner: string, repo: string, task_id: string): Promise<agent-tasks/get-task-by-repo-and-idResponse> {
    return this.request('GET', `https://api.github.com/agents/repos/${owner}/${repo}/tasks/${task_id}`);
  },

  async agent-tasks/list-tasks(query?: Record<string, string>): Promise<agent-tasks/list-tasksResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/agents/tasks`, query));
  },

  async agent-tasks/get-task-by-id(task_id: string): Promise<agent-tasks/get-task-by-idResponse> {
    return this.request('GET', `https://api.github.com/agents/tasks/${task_id}`);
  },

  async apps/get-authenticated(): Promise<apps/get-authenticatedResponse> {
    return this.request('GET', `https://api.github.com/app`);
  },

  async apps/create-from-manifest(code: string, body?: Record<string, unknown>): Promise<apps/create-from-manifestResponse> {
    return this.request('POST', `https://api.github.com/app-manifests/${code}/conversions`, body ? JSON.stringify(body) : undefined);
  },

  async apps/get-webhook-config-for-app(): Promise<apps/get-webhook-config-for-appResponse> {
    return this.request('GET', `https://api.github.com/app/hook/config`);
  },

  async apps/update-webhook-config-for-app(body?: apps/update-webhook-config-for-appBody): Promise<apps/update-webhook-config-for-appResponse> {
    return this.request('PATCH', `https://api.github.com/app/hook/config`, body ? JSON.stringify(body) : undefined);
  },

  async apps/list-webhook-deliveries(): Promise<apps/list-webhook-deliveriesResponse> {
    return this.request('GET', `https://api.github.com/app/hook/deliveries`);
  },

  async apps/get-webhook-delivery(): Promise<apps/get-webhook-deliveryResponse> {
    return this.request('GET', `https://api.github.com/app/hook/deliveries/${delivery_id}`);
  },

  async apps/redeliver-webhook-delivery(body?: Record<string, unknown>): Promise<apps/redeliver-webhook-deliveryResponse> {
    return this.request('POST', `https://api.github.com/app/hook/deliveries/${delivery_id}/attempts`, body ? JSON.stringify(body) : undefined);
  },

  async apps/list-installation-requests-for-authenticated-app(): Promise<apps/list-installation-requests-for-authenticated-appResponse> {
    return this.request('GET', `https://api.github.com/app/installation-requests`);
  },

  async apps/list-installations(query?: Record<string, string>): Promise<apps/list-installationsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/app/installations`, query));
  },

  async apps/get-installation(): Promise<apps/get-installationResponse> {
    return this.request('GET', `https://api.github.com/app/installations/${installation_id}`);
  },

  async apps/delete-installation(): Promise<apps/delete-installationResponse> {
    return this.request('DELETE', `https://api.github.com/app/installations/${installation_id}`);
  },

  async apps/create-installation-access-token(body?: apps/create-installation-access-tokenBody): Promise<apps/create-installation-access-tokenResponse> {
    return this.request('POST', `https://api.github.com/app/installations/${installation_id}/access_tokens`, body ? JSON.stringify(body) : undefined);
  },

  async apps/suspend-installation(body?: Record<string, unknown>): Promise<apps/suspend-installationResponse> {
    return this.request('PUT', `https://api.github.com/app/installations/${installation_id}/suspended`, body ? JSON.stringify(body) : undefined);
  },

  async apps/unsuspend-installation(): Promise<apps/unsuspend-installationResponse> {
    return this.request('DELETE', `https://api.github.com/app/installations/${installation_id}/suspended`);
  },

  async apps/delete-authorization(): Promise<apps/delete-authorizationResponse> {
    return this.request('DELETE', `https://api.github.com/applications/${client_id}/grant`);
  },

  async apps/check-token(body?: apps/check-tokenBody): Promise<apps/check-tokenResponse> {
    return this.request('POST', `https://api.github.com/applications/${client_id}/token`, body ? JSON.stringify(body) : undefined);
  },

  async apps/reset-token(body?: apps/reset-tokenBody): Promise<apps/reset-tokenResponse> {
    return this.request('PATCH', `https://api.github.com/applications/${client_id}/token`, body ? JSON.stringify(body) : undefined);
  },

  async apps/delete-token(): Promise<apps/delete-tokenResponse> {
    return this.request('DELETE', `https://api.github.com/applications/${client_id}/token`);
  },

  async apps/scope-token(body?: apps/scope-tokenBody): Promise<apps/scope-tokenResponse> {
    return this.request('POST', `https://api.github.com/applications/${client_id}/token/scoped`, body ? JSON.stringify(body) : undefined);
  },

  async apps/get-by-slug(): Promise<apps/get-by-slugResponse> {
    return this.request('GET', `https://api.github.com/apps/${app_slug}`);
  },

  async classroom/get-an-assignment(): Promise<classroom/get-an-assignmentResponse> {
    return this.request('GET', `https://api.github.com/assignments/${assignment_id}`);
  },

  async classroom/list-accepted-assignments-for-an-assignment(): Promise<classroom/list-accepted-assignments-for-an-assignmentResponse> {
    return this.request('GET', `https://api.github.com/assignments/${assignment_id}/accepted_assignments`);
  },

  async classroom/get-assignment-grades(): Promise<classroom/get-assignment-gradesResponse> {
    return this.request('GET', `https://api.github.com/assignments/${assignment_id}/grades`);
  },

  async classroom/list-classrooms(): Promise<classroom/list-classroomsResponse> {
    return this.request('GET', `https://api.github.com/classrooms`);
  },

  async classroom/get-a-classroom(): Promise<classroom/get-a-classroomResponse> {
    return this.request('GET', `https://api.github.com/classrooms/${classroom_id}`);
  },

  async classroom/list-assignments-for-a-classroom(): Promise<classroom/list-assignments-for-a-classroomResponse> {
    return this.request('GET', `https://api.github.com/classrooms/${classroom_id}/assignments`);
  },

  async codes-of-conduct/get-all-codes-of-conduct(): Promise<codes-of-conduct/get-all-codes-of-conductResponse> {
    return this.request('GET', `https://api.github.com/codes_of_conduct`);
  },

  async codes-of-conduct/get-conduct-code(key: string): Promise<codes-of-conduct/get-conduct-codeResponse> {
    return this.request('GET', `https://api.github.com/codes_of_conduct/${key}`);
  },

  async credentials/revoke(body?: credentials/revokeBody): Promise<credentials/revokeResponse> {
    return this.request('POST', `https://api.github.com/credentials/revoke`, body ? JSON.stringify(body) : undefined);
  },

  async emojis/get(): Promise<emojis/getResponse> {
    return this.request('GET', `https://api.github.com/emojis`);
  },

  async actions/get-actions-cache-retention-limit-for-enterprise(): Promise<actions/get-actions-cache-retention-limit-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/actions/cache/retention-limit`);
  },

  async actions/set-actions-cache-retention-limit-for-enterprise(body?: actions/set-actions-cache-retention-limit-for-enterpriseBody): Promise<actions/set-actions-cache-retention-limit-for-enterpriseResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/actions/cache/retention-limit`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-actions-cache-storage-limit-for-enterprise(): Promise<actions/get-actions-cache-storage-limit-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/actions/cache/storage-limit`);
  },

  async actions/set-actions-cache-storage-limit-for-enterprise(body?: actions/set-actions-cache-storage-limit-for-enterpriseBody): Promise<actions/set-actions-cache-storage-limit-for-enterpriseResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/actions/cache/storage-limit`, body ? JSON.stringify(body) : undefined);
  },

  async oidc/list-oidc-custom-property-inclusions-for-enterprise(): Promise<oidc/list-oidc-custom-property-inclusions-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/actions/oidc/customization/properties/repo`);
  },

  async oidc/create-oidc-custom-property-inclusion-for-enterprise(body?: oidc/create-oidc-custom-property-inclusion-for-enterpriseBody): Promise<oidc/create-oidc-custom-property-inclusion-for-enterpriseResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/actions/oidc/customization/properties/repo`, body ? JSON.stringify(body) : undefined);
  },

  async oidc/delete-oidc-custom-property-inclusion-for-enterprise(custom_property_name: string): Promise<oidc/delete-oidc-custom-property-inclusion-for-enterpriseResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/actions/oidc/customization/properties/repo/${custom_property_name}`);
  },

  async code-security/get-configurations-for-enterprise(query?: Record<string, string>): Promise<code-security/get-configurations-for-enterpriseResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/enterprises/${enterprise}/code-security/configurations`, query));
  },

  async code-security/create-configuration-for-enterprise(body?: code-security/create-configuration-for-enterpriseBody): Promise<code-security/create-configuration-for-enterpriseResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/code-security/configurations`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/get-default-configurations-for-enterprise(): Promise<code-security/get-default-configurations-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/defaults`);
  },

  async code-security/get-single-configuration-for-enterprise(): Promise<code-security/get-single-configuration-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}`);
  },

  async code-security/update-enterprise-configuration(body?: code-security/update-enterprise-configurationBody): Promise<code-security/update-enterprise-configurationResponse> {
    return this.request('PATCH', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/delete-configuration-for-enterprise(): Promise<code-security/delete-configuration-for-enterpriseResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}`);
  },

  async code-security/attach-enterprise-configuration(body?: code-security/attach-enterprise-configurationBody): Promise<code-security/attach-enterprise-configurationResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}/attach`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/set-configuration-as-default-for-enterprise(body?: code-security/set-configuration-as-default-for-enterpriseBody): Promise<code-security/set-configuration-as-default-for-enterpriseResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}/defaults`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/get-repositories-for-enterprise-configuration(query?: Record<string, string>): Promise<code-security/get-repositories-for-enterprise-configurationResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/enterprises/${enterprise}/code-security/configurations/${configuration_id}/repositories`, query));
  },

  async copilot/copilot-enterprise-one-day-usage-metrics(): Promise<copilot/copilot-enterprise-one-day-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/copilot/metrics/reports/enterprise-1-day`);
  },

  async copilot/copilot-enterprise-usage-metrics(): Promise<copilot/copilot-enterprise-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/copilot/metrics/reports/enterprise-28-day/latest`);
  },

  async copilot/copilot-enterprise-user-teams-one-day-report(): Promise<copilot/copilot-enterprise-user-teams-one-day-reportResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/copilot/metrics/reports/user-teams-1-day`);
  },

  async copilot/copilot-users-one-day-usage-metrics(): Promise<copilot/copilot-users-one-day-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/copilot/metrics/reports/users-1-day`);
  },

  async copilot/copilot-users-usage-metrics(): Promise<copilot/copilot-users-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/copilot/metrics/reports/users-28-day/latest`);
  },

  async copilot/set-enterprise-coding-agent-policy(body?: copilot/set-enterprise-coding-agent-policyBody): Promise<copilot/set-enterprise-coding-agent-policyResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/copilot/policies/coding_agent`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/add-organizations-to-enterprise-coding-agent-policy(body?: copilot/add-organizations-to-enterprise-coding-agent-policyBody): Promise<copilot/add-organizations-to-enterprise-coding-agent-policyResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/copilot/policies/coding_agent/organizations`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/remove-organizations-from-enterprise-coding-agent-policy(): Promise<copilot/remove-organizations-from-enterprise-coding-agent-policyResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/copilot/policies/coding_agent/organizations`);
  },

  async dependabot/list-alerts-for-enterprise(): Promise<dependabot/list-alerts-for-enterpriseResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/dependabot/alerts`);
  },

  async dependabot/repository-access-for-enterprise(query?: Record<string, string>): Promise<dependabot/repository-access-for-enterpriseResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/enterprises/${enterprise}/dependabot/repository-access`, query));
  },

  async dependabot/update-repository-access-for-enterprise(body?: dependabot/update-repository-access-for-enterpriseBody): Promise<dependabot/update-repository-access-for-enterpriseResponse> {
    return this.request('PATCH', `https://api.github.com/enterprises/${enterprise}/dependabot/repository-access`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/set-repository-access-default-level-for-enterprise(body?: dependabot/set-repository-access-default-level-for-enterpriseBody): Promise<dependabot/set-repository-access-default-level-for-enterpriseResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/dependabot/repository-access/default-level`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-teams/list(): Promise<enterprise-teams/listResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams`);
  },

  async enterprise-teams/create(body?: enterprise-teams/createBody): Promise<enterprise-teams/createResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/teams`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-memberships/list(): Promise<enterprise-team-memberships/listResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships`);
  },

  async enterprise-team-memberships/bulk-add(body?: enterprise-team-memberships/bulk-addBody): Promise<enterprise-team-memberships/bulk-addResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships/add`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-memberships/bulk-remove(body?: enterprise-team-memberships/bulk-removeBody): Promise<enterprise-team-memberships/bulk-removeResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships/remove`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-memberships/get(): Promise<enterprise-team-memberships/getResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships/${username}`);
  },

  async enterprise-team-memberships/add(body?: Record<string, unknown>): Promise<enterprise-team-memberships/addResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-memberships/remove(): Promise<enterprise-team-memberships/removeResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/memberships/${username}`);
  },

  async enterprise-team-organizations/get-assignments(): Promise<enterprise-team-organizations/get-assignmentsResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations`);
  },

  async enterprise-team-organizations/bulk-add(body?: enterprise-team-organizations/bulk-addBody): Promise<enterprise-team-organizations/bulk-addResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations/add`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-organizations/bulk-remove(body?: enterprise-team-organizations/bulk-removeBody): Promise<enterprise-team-organizations/bulk-removeResponse> {
    return this.request('POST', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations/remove`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-organizations/get-assignment(): Promise<enterprise-team-organizations/get-assignmentResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations/${org}`);
  },

  async enterprise-team-organizations/add(body?: Record<string, unknown>): Promise<enterprise-team-organizations/addResponse> {
    return this.request('PUT', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations/${org}`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-team-organizations/delete(): Promise<enterprise-team-organizations/deleteResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/teams/{enterprise-team}/organizations/${org}`);
  },

  async enterprise-teams/get(): Promise<enterprise-teams/getResponse> {
    return this.request('GET', `https://api.github.com/enterprises/${enterprise}/teams/${team_slug}`);
  },

  async enterprise-teams/update(body?: enterprise-teams/updateBody): Promise<enterprise-teams/updateResponse> {
    return this.request('PATCH', `https://api.github.com/enterprises/${enterprise}/teams/${team_slug}`, body ? JSON.stringify(body) : undefined);
  },

  async enterprise-teams/delete(): Promise<enterprise-teams/deleteResponse> {
    return this.request('DELETE', `https://api.github.com/enterprises/${enterprise}/teams/${team_slug}`);
  },

  async activity/list-public-events(): Promise<activity/list-public-eventsResponse> {
    return this.request('GET', `https://api.github.com/events`);
  },

  async activity/get-feeds(): Promise<activity/get-feedsResponse> {
    return this.request('GET', `https://api.github.com/feeds`);
  },

  async gists/list(): Promise<gists/listResponse> {
    return this.request('GET', `https://api.github.com/gists`);
  },

  async gists/create(body?: gists/createBody): Promise<gists/createResponse> {
    return this.request('POST', `https://api.github.com/gists`, body ? JSON.stringify(body) : undefined);
  },

  async gists/list-public(): Promise<gists/list-publicResponse> {
    return this.request('GET', `https://api.github.com/gists/public`);
  },

  async gists/list-starred(): Promise<gists/list-starredResponse> {
    return this.request('GET', `https://api.github.com/gists/starred`);
  },

  async gists/get(): Promise<gists/getResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}`);
  },

  async gists/update(body?: gists/updateBody): Promise<gists/updateResponse> {
    return this.request('PATCH', `https://api.github.com/gists/${gist_id}`, body ? JSON.stringify(body) : undefined);
  },

  async gists/delete(): Promise<gists/deleteResponse> {
    return this.request('DELETE', `https://api.github.com/gists/${gist_id}`);
  },

  async gists/list-comments(): Promise<gists/list-commentsResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/comments`);
  },

  async gists/create-comment(body?: gists/create-commentBody): Promise<gists/create-commentResponse> {
    return this.request('POST', `https://api.github.com/gists/${gist_id}/comments`, body ? JSON.stringify(body) : undefined);
  },

  async gists/get-comment(): Promise<gists/get-commentResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/comments/${comment_id}`);
  },

  async gists/update-comment(body?: gists/update-commentBody): Promise<gists/update-commentResponse> {
    return this.request('PATCH', `https://api.github.com/gists/${gist_id}/comments/${comment_id}`, body ? JSON.stringify(body) : undefined);
  },

  async gists/delete-comment(): Promise<gists/delete-commentResponse> {
    return this.request('DELETE', `https://api.github.com/gists/${gist_id}/comments/${comment_id}`);
  },

  async gists/list-commits(): Promise<gists/list-commitsResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/commits`);
  },

  async gists/list-forks(): Promise<gists/list-forksResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/forks`);
  },

  async gists/fork(body?: Record<string, unknown>): Promise<gists/forkResponse> {
    return this.request('POST', `https://api.github.com/gists/${gist_id}/forks`, body ? JSON.stringify(body) : undefined);
  },

  async gists/check-is-starred(): Promise<gists/check-is-starredResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/star`);
  },

  async gists/star(body?: Record<string, unknown>): Promise<gists/starResponse> {
    return this.request('PUT', `https://api.github.com/gists/${gist_id}/star`, body ? JSON.stringify(body) : undefined);
  },

  async gists/unstar(): Promise<gists/unstarResponse> {
    return this.request('DELETE', `https://api.github.com/gists/${gist_id}/star`);
  },

  async gists/get-revision(sha: string): Promise<gists/get-revisionResponse> {
    return this.request('GET', `https://api.github.com/gists/${gist_id}/${sha}`);
  },

  async gitignore/get-all-templates(): Promise<gitignore/get-all-templatesResponse> {
    return this.request('GET', `https://api.github.com/gitignore/templates`);
  },

  async gitignore/get-template(name: string): Promise<gitignore/get-templateResponse> {
    return this.request('GET', `https://api.github.com/gitignore/templates/${name}`);
  },

  async apps/list-repos-accessible-to-installation(): Promise<apps/list-repos-accessible-to-installationResponse> {
    return this.request('GET', `https://api.github.com/installation/repositories`);
  },

  async apps/revoke-installation-access-token(): Promise<apps/revoke-installation-access-tokenResponse> {
    return this.request('DELETE', `https://api.github.com/installation/token`);
  },

  async issues/list(query?: Record<string, string>): Promise<issues/listResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/issues`, query));
  },

  async licenses/get-all-commonly-used(query?: Record<string, string>): Promise<licenses/get-all-commonly-usedResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/licenses`, query));
  },

  async licenses/get(license: string): Promise<licenses/getResponse> {
    return this.request('GET', `https://api.github.com/licenses/${license}`);
  },

  async markdown/render(body?: markdown/renderBody): Promise<markdown/renderResponse> {
    return this.request('POST', `https://api.github.com/markdown`, body ? JSON.stringify(body) : undefined);
  },

  async markdown/render-raw(body?: markdown/render-rawBody): Promise<markdown/render-rawResponse> {
    return this.request('POST', `https://api.github.com/markdown/raw`, body ? JSON.stringify(body) : undefined);
  },

  async apps/get-subscription-plan-for-account(): Promise<apps/get-subscription-plan-for-accountResponse> {
    return this.request('GET', `https://api.github.com/marketplace_listing/accounts/${account_id}`);
  },

  async apps/list-plans(): Promise<apps/list-plansResponse> {
    return this.request('GET', `https://api.github.com/marketplace_listing/plans`);
  },

  async apps/list-accounts-for-plan(query?: Record<string, string>): Promise<apps/list-accounts-for-planResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/marketplace_listing/plans/${plan_id}/accounts`, query));
  },

  async apps/get-subscription-plan-for-account-stubbed(): Promise<apps/get-subscription-plan-for-account-stubbedResponse> {
    return this.request('GET', `https://api.github.com/marketplace_listing/stubbed/accounts/${account_id}`);
  },

  async apps/list-plans-stubbed(): Promise<apps/list-plans-stubbedResponse> {
    return this.request('GET', `https://api.github.com/marketplace_listing/stubbed/plans`);
  },

  async apps/list-accounts-for-plan-stubbed(query?: Record<string, string>): Promise<apps/list-accounts-for-plan-stubbedResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/marketplace_listing/stubbed/plans/${plan_id}/accounts`, query));
  },

  async meta/get(): Promise<meta/getResponse> {
    return this.request('GET', `https://api.github.com/meta`);
  },

  async activity/list-public-events-for-repo-network(): Promise<activity/list-public-events-for-repo-networkResponse> {
    return this.request('GET', `https://api.github.com/networks/${owner}/${repo}/events`);
  },

  async activity/list-notifications-for-authenticated-user(query?: Record<string, string>): Promise<activity/list-notifications-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/notifications`, query));
  },

  async activity/mark-notifications-as-read(body?: activity/mark-notifications-as-readBody): Promise<activity/mark-notifications-as-readResponse> {
    return this.request('PUT', `https://api.github.com/notifications`, body ? JSON.stringify(body) : undefined);
  },

  async activity/get-thread(): Promise<activity/get-threadResponse> {
    return this.request('GET', `https://api.github.com/notifications/threads/${thread_id}`);
  },

  async activity/mark-thread-as-read(body?: Record<string, unknown>): Promise<activity/mark-thread-as-readResponse> {
    return this.request('PATCH', `https://api.github.com/notifications/threads/${thread_id}`, body ? JSON.stringify(body) : undefined);
  },

  async activity/mark-thread-as-done(): Promise<activity/mark-thread-as-doneResponse> {
    return this.request('DELETE', `https://api.github.com/notifications/threads/${thread_id}`);
  },

  async activity/get-thread-subscription-for-authenticated-user(): Promise<activity/get-thread-subscription-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/notifications/threads/${thread_id}/subscription`);
  },

  async activity/set-thread-subscription(body?: activity/set-thread-subscriptionBody): Promise<activity/set-thread-subscriptionResponse> {
    return this.request('PUT', `https://api.github.com/notifications/threads/${thread_id}/subscription`, body ? JSON.stringify(body) : undefined);
  },

  async activity/delete-thread-subscription(): Promise<activity/delete-thread-subscriptionResponse> {
    return this.request('DELETE', `https://api.github.com/notifications/threads/${thread_id}/subscription`);
  },

  async meta/get-octocat(query?: Record<string, string>): Promise<meta/get-octocatResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/octocat`, query));
  },

  async orgs/list(): Promise<orgs/listResponse> {
    return this.request('GET', `https://api.github.com/organizations`);
  },

  async actions/get-actions-cache-retention-limit-for-organization(): Promise<actions/get-actions-cache-retention-limit-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/actions/cache/retention-limit`);
  },

  async actions/set-actions-cache-retention-limit-for-organization(body?: actions/set-actions-cache-retention-limit-for-organizationBody): Promise<actions/set-actions-cache-retention-limit-for-organizationResponse> {
    return this.request('PUT', `https://api.github.com/organizations/${org}/actions/cache/retention-limit`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-actions-cache-storage-limit-for-organization(): Promise<actions/get-actions-cache-storage-limit-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/actions/cache/storage-limit`);
  },

  async actions/set-actions-cache-storage-limit-for-organization(body?: actions/set-actions-cache-storage-limit-for-organizationBody): Promise<actions/set-actions-cache-storage-limit-for-organizationResponse> {
    return this.request('PUT', `https://api.github.com/organizations/${org}/actions/cache/storage-limit`, body ? JSON.stringify(body) : undefined);
  },

  async billing/get-github-billing-ai-credit-usage-report-org(): Promise<billing/get-github-billing-ai-credit-usage-report-orgResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/settings/billing/ai_credit/usage`);
  },

  async billing/get-all-budgets-org(query?: Record<string, string>): Promise<billing/get-all-budgets-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/organizations/${org}/settings/billing/budgets`, query));
  },

  async billing/create-organization-budget(body?: billing/create-organization-budgetBody): Promise<billing/create-organization-budgetResponse> {
    return this.request('POST', `https://api.github.com/organizations/${org}/settings/billing/budgets`, body ? JSON.stringify(body) : undefined);
  },

  async billing/get-budget-org(): Promise<billing/get-budget-orgResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/settings/billing/budgets/${budget_id}`);
  },

  async billing/update-budget-org(body?: billing/update-budget-orgBody): Promise<billing/update-budget-orgResponse> {
    return this.request('PATCH', `https://api.github.com/organizations/${org}/settings/billing/budgets/${budget_id}`, body ? JSON.stringify(body) : undefined);
  },

  async billing/delete-budget-org(): Promise<billing/delete-budget-orgResponse> {
    return this.request('DELETE', `https://api.github.com/organizations/${org}/settings/billing/budgets/${budget_id}`);
  },

  async billing/get-github-billing-premium-request-usage-report-org(): Promise<billing/get-github-billing-premium-request-usage-report-orgResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/settings/billing/premium_request/usage`);
  },

  async billing/get-github-billing-usage-report-org(): Promise<billing/get-github-billing-usage-report-orgResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/settings/billing/usage`);
  },

  async billing/get-github-billing-usage-summary-report-org(): Promise<billing/get-github-billing-usage-summary-report-orgResponse> {
    return this.request('GET', `https://api.github.com/organizations/${org}/settings/billing/usage/summary`);
  },

  async orgs/get(): Promise<orgs/getResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}`);
  },

  async orgs/update(body?: orgs/updateBody): Promise<orgs/updateResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete(): Promise<orgs/deleteResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}`);
  },

  async actions/get-actions-cache-usage-for-org(): Promise<actions/get-actions-cache-usage-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/cache/usage`);
  },

  async actions/get-actions-cache-usage-by-repo-for-org(): Promise<actions/get-actions-cache-usage-by-repo-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/cache/usage-by-repository`);
  },

  async actions/list-hosted-runners-for-org(): Promise<actions/list-hosted-runners-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners`);
  },

  async actions/create-hosted-runner-for-org(body?: actions/create-hosted-runner-for-orgBody): Promise<actions/create-hosted-runner-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/hosted-runners`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-custom-images-for-org(): Promise<actions/list-custom-images-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom`);
  },

  async actions/get-custom-image-for-org(): Promise<actions/get-custom-image-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom/${image_definition_id}`);
  },

  async actions/delete-custom-image-from-org(): Promise<actions/delete-custom-image-from-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom/${image_definition_id}`);
  },

  async actions/list-custom-image-versions-for-org(): Promise<actions/list-custom-image-versions-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom/${image_definition_id}/versions`);
  },

  async actions/get-custom-image-version-for-org(): Promise<actions/get-custom-image-version-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom/${image_definition_id}/versions/${version}`);
  },

  async actions/delete-custom-image-version-from-org(): Promise<actions/delete-custom-image-version-from-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/custom/${image_definition_id}/versions/${version}`);
  },

  async actions/get-hosted-runners-github-owned-images-for-org(): Promise<actions/get-hosted-runners-github-owned-images-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/github-owned`);
  },

  async actions/get-hosted-runners-partner-images-for-org(): Promise<actions/get-hosted-runners-partner-images-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/images/partner`);
  },

  async actions/get-hosted-runners-limits-for-org(): Promise<actions/get-hosted-runners-limits-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/limits`);
  },

  async actions/get-hosted-runners-machine-specs-for-org(): Promise<actions/get-hosted-runners-machine-specs-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/machine-sizes`);
  },

  async actions/get-hosted-runners-platforms-for-org(): Promise<actions/get-hosted-runners-platforms-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/platforms`);
  },

  async actions/get-hosted-runner-for-org(): Promise<actions/get-hosted-runner-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/hosted-runners/${hosted_runner_id}`);
  },

  async actions/update-hosted-runner-for-org(body?: actions/update-hosted-runner-for-orgBody): Promise<actions/update-hosted-runner-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/actions/hosted-runners/${hosted_runner_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-hosted-runner-for-org(): Promise<actions/delete-hosted-runner-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/hosted-runners/${hosted_runner_id}`);
  },

  async oidc/list-oidc-custom-property-inclusions-for-org(): Promise<oidc/list-oidc-custom-property-inclusions-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/oidc/customization/properties/repo`);
  },

  async oidc/create-oidc-custom-property-inclusion-for-org(body?: oidc/create-oidc-custom-property-inclusion-for-orgBody): Promise<oidc/create-oidc-custom-property-inclusion-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/oidc/customization/properties/repo`, body ? JSON.stringify(body) : undefined);
  },

  async oidc/delete-oidc-custom-property-inclusion-for-org(custom_property_name: string): Promise<oidc/delete-oidc-custom-property-inclusion-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/oidc/customization/properties/repo/${custom_property_name}`);
  },

  async oidc/get-oidc-custom-sub-template-for-org(): Promise<oidc/get-oidc-custom-sub-template-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/oidc/customization/sub`);
  },

  async oidc/update-oidc-custom-sub-template-for-org(body?: oidc/update-oidc-custom-sub-template-for-orgBody): Promise<oidc/update-oidc-custom-sub-template-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/oidc/customization/sub`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-github-actions-permissions-organization(): Promise<actions/get-github-actions-permissions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions`);
  },

  async actions/set-github-actions-permissions-organization(body?: actions/set-github-actions-permissions-organizationBody): Promise<actions/set-github-actions-permissions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-artifact-and-log-retention-settings-organization(): Promise<actions/get-artifact-and-log-retention-settings-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/artifact-and-log-retention`);
  },

  async actions/set-artifact-and-log-retention-settings-organization(body?: actions/set-artifact-and-log-retention-settings-organizationBody): Promise<actions/set-artifact-and-log-retention-settings-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/artifact-and-log-retention`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-fork-pr-contributor-approval-permissions-organization(): Promise<actions/get-fork-pr-contributor-approval-permissions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/fork-pr-contributor-approval`);
  },

  async actions/set-fork-pr-contributor-approval-permissions-organization(body?: actions/set-fork-pr-contributor-approval-permissions-organizationBody): Promise<actions/set-fork-pr-contributor-approval-permissions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/fork-pr-contributor-approval`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-private-repo-fork-pr-workflows-settings-organization(): Promise<actions/get-private-repo-fork-pr-workflows-settings-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/fork-pr-workflows-private-repos`);
  },

  async actions/set-private-repo-fork-pr-workflows-settings-organization(body?: actions/set-private-repo-fork-pr-workflows-settings-organizationBody): Promise<actions/set-private-repo-fork-pr-workflows-settings-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/fork-pr-workflows-private-repos`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-selected-repositories-enabled-github-actions-organization(): Promise<actions/list-selected-repositories-enabled-github-actions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/repositories`);
  },

  async actions/set-selected-repositories-enabled-github-actions-organization(body?: actions/set-selected-repositories-enabled-github-actions-organizationBody): Promise<actions/set-selected-repositories-enabled-github-actions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async actions/enable-selected-repository-github-actions-organization(body?: Record<string, unknown>): Promise<actions/enable-selected-repository-github-actions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/disable-selected-repository-github-actions-organization(): Promise<actions/disable-selected-repository-github-actions-organizationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/permissions/repositories/${repository_id}`);
  },

  async actions/get-allowed-actions-organization(): Promise<actions/get-allowed-actions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/selected-actions`);
  },

  async actions/set-allowed-actions-organization(body?: actions/set-allowed-actions-organizationBody): Promise<actions/set-allowed-actions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/selected-actions`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-self-hosted-runners-permissions-organization(): Promise<actions/get-self-hosted-runners-permissions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners`);
  },

  async actions/set-self-hosted-runners-permissions-organization(body?: actions/set-self-hosted-runners-permissions-organizationBody): Promise<actions/set-self-hosted-runners-permissions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-selected-repositories-self-hosted-runners-organization(): Promise<actions/list-selected-repositories-self-hosted-runners-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners/repositories`);
  },

  async actions/set-selected-repositories-self-hosted-runners-organization(body?: actions/set-selected-repositories-self-hosted-runners-organizationBody): Promise<actions/set-selected-repositories-self-hosted-runners-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async actions/enable-selected-repository-self-hosted-runners-organization(body?: Record<string, unknown>): Promise<actions/enable-selected-repository-self-hosted-runners-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/disable-selected-repository-self-hosted-runners-organization(): Promise<actions/disable-selected-repository-self-hosted-runners-organizationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/permissions/self-hosted-runners/repositories/${repository_id}`);
  },

  async actions/get-github-actions-default-workflow-permissions-organization(): Promise<actions/get-github-actions-default-workflow-permissions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/permissions/workflow`);
  },

  async actions/set-github-actions-default-workflow-permissions-organization(body?: actions/set-github-actions-default-workflow-permissions-organizationBody): Promise<actions/set-github-actions-default-workflow-permissions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/permissions/workflow`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-self-hosted-runner-groups-for-org(): Promise<actions/list-self-hosted-runner-groups-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runner-groups`);
  },

  async actions/create-self-hosted-runner-group-for-org(body?: actions/create-self-hosted-runner-group-for-orgBody): Promise<actions/create-self-hosted-runner-group-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/runner-groups`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-self-hosted-runner-group-for-org(): Promise<actions/get-self-hosted-runner-group-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}`);
  },

  async actions/update-self-hosted-runner-group-for-org(body?: actions/update-self-hosted-runner-group-for-orgBody): Promise<actions/update-self-hosted-runner-group-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-self-hosted-runner-group-from-org(): Promise<actions/delete-self-hosted-runner-group-from-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}`);
  },

  async actions/list-github-hosted-runners-in-group-for-org(): Promise<actions/list-github-hosted-runners-in-group-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/hosted-runners`);
  },

  async actions/list-repo-access-to-self-hosted-runner-group-in-org(): Promise<actions/list-repo-access-to-self-hosted-runner-group-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories`);
  },

  async actions/set-repo-access-to-self-hosted-runner-group-in-org(body?: actions/set-repo-access-to-self-hosted-runner-group-in-orgBody): Promise<actions/set-repo-access-to-self-hosted-runner-group-in-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async actions/add-repo-access-to-self-hosted-runner-group-in-org(body?: Record<string, unknown>): Promise<actions/add-repo-access-to-self-hosted-runner-group-in-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-repo-access-to-self-hosted-runner-group-in-org(): Promise<actions/remove-repo-access-to-self-hosted-runner-group-in-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories/${repository_id}`);
  },

  async actions/list-self-hosted-runners-in-group-for-org(): Promise<actions/list-self-hosted-runners-in-group-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/runners`);
  },

  async actions/set-self-hosted-runners-in-group-for-org(body?: actions/set-self-hosted-runners-in-group-for-orgBody): Promise<actions/set-self-hosted-runners-in-group-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/runners`, body ? JSON.stringify(body) : undefined);
  },

  async actions/add-self-hosted-runner-to-group-for-org(body?: Record<string, unknown>): Promise<actions/add-self-hosted-runner-to-group-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-self-hosted-runner-from-group-for-org(): Promise<actions/remove-self-hosted-runner-from-group-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`);
  },

  async actions/list-self-hosted-runners-for-org(query?: Record<string, string>): Promise<actions/list-self-hosted-runners-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/actions/runners`, query));
  },

  async actions/list-runner-applications-for-org(): Promise<actions/list-runner-applications-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runners/downloads`);
  },

  async actions/generate-runner-jitconfig-for-org(body?: actions/generate-runner-jitconfig-for-orgBody): Promise<actions/generate-runner-jitconfig-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/runners/generate-jitconfig`, body ? JSON.stringify(body) : undefined);
  },

  async actions/create-registration-token-for-org(body?: Record<string, unknown>): Promise<actions/create-registration-token-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/runners/registration-token`, body ? JSON.stringify(body) : undefined);
  },

  async actions/create-remove-token-for-org(body?: Record<string, unknown>): Promise<actions/create-remove-token-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/runners/remove-token`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-self-hosted-runner-for-org(): Promise<actions/get-self-hosted-runner-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}`);
  },

  async actions/delete-self-hosted-runner-from-org(): Promise<actions/delete-self-hosted-runner-from-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}`);
  },

  async actions/list-labels-for-self-hosted-runner-for-org(): Promise<actions/list-labels-for-self-hosted-runner-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}/labels`);
  },

  async actions/add-custom-labels-to-self-hosted-runner-for-org(body?: actions/add-custom-labels-to-self-hosted-runner-for-orgBody): Promise<actions/add-custom-labels-to-self-hosted-runner-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async actions/set-custom-labels-for-self-hosted-runner-for-org(body?: actions/set-custom-labels-for-self-hosted-runner-for-orgBody): Promise<actions/set-custom-labels-for-self-hosted-runner-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-all-custom-labels-from-self-hosted-runner-for-org(): Promise<actions/remove-all-custom-labels-from-self-hosted-runner-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}/labels`);
  },

  async actions/remove-custom-label-from-self-hosted-runner-for-org(): Promise<actions/remove-custom-label-from-self-hosted-runner-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/runners/${runner_id}/labels/${name}`);
  },

  async actions/list-org-secrets(): Promise<actions/list-org-secretsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/secrets`);
  },

  async actions/get-org-public-key(): Promise<actions/get-org-public-keyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/secrets/public-key`);
  },

  async actions/get-org-secret(): Promise<actions/get-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}`);
  },

  async actions/create-or-update-org-secret(body?: actions/create-or-update-org-secretBody): Promise<actions/create-or-update-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-org-secret(): Promise<actions/delete-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}`);
  },

  async actions/list-selected-repos-for-org-secret(): Promise<actions/list-selected-repos-for-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}/repositories`);
  },

  async actions/set-selected-repos-for-org-secret(body?: actions/set-selected-repos-for-org-secretBody): Promise<actions/set-selected-repos-for-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async actions/add-selected-repo-to-org-secret(repository_id: string, body?: Record<string, unknown>): Promise<actions/add-selected-repo-to-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-selected-repo-from-org-secret(repository_id: string): Promise<actions/remove-selected-repo-from-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/secrets/${secret_name}/repositories/${repository_id}`);
  },

  async actions/list-org-variables(): Promise<actions/list-org-variablesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/variables`);
  },

  async actions/create-org-variable(body?: actions/create-org-variableBody): Promise<actions/create-org-variableResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/actions/variables`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-org-variable(): Promise<actions/get-org-variableResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/variables/${name}`);
  },

  async actions/update-org-variable(body?: actions/update-org-variableBody): Promise<actions/update-org-variableResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/actions/variables/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-org-variable(): Promise<actions/delete-org-variableResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/variables/${name}`);
  },

  async actions/list-selected-repos-for-org-variable(): Promise<actions/list-selected-repos-for-org-variableResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/actions/variables/${name}/repositories`);
  },

  async actions/set-selected-repos-for-org-variable(body?: actions/set-selected-repos-for-org-variableBody): Promise<actions/set-selected-repos-for-org-variableResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/variables/${name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async actions/add-selected-repo-to-org-variable(repository_id: string, body?: Record<string, unknown>): Promise<actions/add-selected-repo-to-org-variableResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/actions/variables/${name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-selected-repo-from-org-variable(repository_id: string): Promise<actions/remove-selected-repo-from-org-variableResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/actions/variables/${name}/repositories/${repository_id}`);
  },

  async agents/list-org-secrets(): Promise<agents/list-org-secretsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/secrets`);
  },

  async agents/get-org-public-key(): Promise<agents/get-org-public-keyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/secrets/public-key`);
  },

  async agents/get-org-secret(): Promise<agents/get-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}`);
  },

  async agents/create-or-update-org-secret(body?: agents/create-or-update-org-secretBody): Promise<agents/create-or-update-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/delete-org-secret(): Promise<agents/delete-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}`);
  },

  async agents/list-selected-repos-for-org-secret(): Promise<agents/list-selected-repos-for-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}/repositories`);
  },

  async agents/set-selected-repos-for-org-secret(body?: agents/set-selected-repos-for-org-secretBody): Promise<agents/set-selected-repos-for-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async agents/add-selected-repo-to-org-secret(repository_id: string, body?: Record<string, unknown>): Promise<agents/add-selected-repo-to-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/remove-selected-repo-from-org-secret(repository_id: string): Promise<agents/remove-selected-repo-from-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/agents/secrets/${secret_name}/repositories/${repository_id}`);
  },

  async agents/list-org-variables(): Promise<agents/list-org-variablesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/variables`);
  },

  async agents/create-org-variable(body?: agents/create-org-variableBody): Promise<agents/create-org-variableResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/agents/variables`, body ? JSON.stringify(body) : undefined);
  },

  async agents/get-org-variable(): Promise<agents/get-org-variableResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/variables/${name}`);
  },

  async agents/update-org-variable(body?: agents/update-org-variableBody): Promise<agents/update-org-variableResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/agents/variables/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/delete-org-variable(): Promise<agents/delete-org-variableResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/agents/variables/${name}`);
  },

  async agents/list-selected-repos-for-org-variable(): Promise<agents/list-selected-repos-for-org-variableResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/agents/variables/${name}/repositories`);
  },

  async agents/set-selected-repos-for-org-variable(body?: agents/set-selected-repos-for-org-variableBody): Promise<agents/set-selected-repos-for-org-variableResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/agents/variables/${name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async agents/add-selected-repo-to-org-variable(repository_id: string, body?: Record<string, unknown>): Promise<agents/add-selected-repo-to-org-variableResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/agents/variables/${name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/remove-selected-repo-from-org-variable(repository_id: string): Promise<agents/remove-selected-repo-from-org-variableResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/agents/variables/${name}/repositories/${repository_id}`);
  },

  async orgs/create-artifact-deployment-record(body?: orgs/create-artifact-deployment-recordBody): Promise<orgs/create-artifact-deployment-recordResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/artifacts/metadata/deployment-record`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/set-cluster-deployment-records(cluster: string, body?: orgs/set-cluster-deployment-recordsBody): Promise<orgs/set-cluster-deployment-recordsResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/artifacts/metadata/deployment-record/cluster/${cluster}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/create-artifact-storage-record(body?: orgs/create-artifact-storage-recordBody): Promise<orgs/create-artifact-storage-recordResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/artifacts/metadata/storage-record`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-artifact-deployment-records(): Promise<orgs/list-artifact-deployment-recordsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/artifacts/${subject_digest}/metadata/deployment-records`);
  },

  async orgs/list-artifact-storage-records(subject_digest: string): Promise<orgs/list-artifact-storage-recordsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/artifacts/${subject_digest}/metadata/storage-records`);
  },

  async orgs/list-attestations-bulk(body?: orgs/list-attestations-bulkBody): Promise<orgs/list-attestations-bulkResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/attestations/bulk-list`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete-attestations-bulk(body?: orgs/delete-attestations-bulkBody): Promise<orgs/delete-attestations-bulkResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/attestations/delete-request`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete-attestations-by-subject-digest(subject_digest: string): Promise<orgs/delete-attestations-by-subject-digestResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/attestations/digest/${subject_digest}`);
  },

  async orgs/list-attestation-repositories(query?: Record<string, string>): Promise<orgs/list-attestation-repositoriesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/attestations/repositories`, query));
  },

  async orgs/delete-attestations-by-id(attestation_id: string): Promise<orgs/delete-attestations-by-idResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/attestations/${attestation_id}`);
  },

  async orgs/list-attestations(subject_digest: string, query?: Record<string, string>): Promise<orgs/list-attestationsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/attestations/${subject_digest}`, query));
  },

  async orgs/list-blocked-users(): Promise<orgs/list-blocked-usersResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/blocks`);
  },

  async orgs/check-blocked-user(): Promise<orgs/check-blocked-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/blocks/${username}`);
  },

  async orgs/block-user(body?: Record<string, unknown>): Promise<orgs/block-userResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/blocks/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/unblock-user(): Promise<orgs/unblock-userResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/blocks/${username}`);
  },

  async campaigns/list-org-campaigns(query?: Record<string, string>): Promise<campaigns/list-org-campaignsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/campaigns`, query));
  },

  async campaigns/create-campaign(body?: campaigns/create-campaignBody): Promise<campaigns/create-campaignResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/campaigns`, body ? JSON.stringify(body) : undefined);
  },

  async campaigns/get-campaign-summary(campaign_number: string): Promise<campaigns/get-campaign-summaryResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/campaigns/${campaign_number}`);
  },

  async campaigns/update-campaign(campaign_number: string, body?: campaigns/update-campaignBody): Promise<campaigns/update-campaignResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/campaigns/${campaign_number}`, body ? JSON.stringify(body) : undefined);
  },

  async campaigns/delete-campaign(campaign_number: string): Promise<campaigns/delete-campaignResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/campaigns/${campaign_number}`);
  },

  async code-scanning/list-alerts-for-org(query?: Record<string, string>): Promise<code-scanning/list-alerts-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/code-scanning/alerts`, query));
  },

  async code-security/get-configurations-for-org(query?: Record<string, string>): Promise<code-security/get-configurations-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/code-security/configurations`, query));
  },

  async code-security/create-configuration(body?: code-security/create-configurationBody): Promise<code-security/create-configurationResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/code-security/configurations`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/get-default-configurations(): Promise<code-security/get-default-configurationsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/code-security/configurations/defaults`);
  },

  async code-security/detach-configuration(): Promise<code-security/detach-configurationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/code-security/configurations/detach`);
  },

  async code-security/get-configuration(): Promise<code-security/get-configurationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}`);
  },

  async code-security/update-configuration(body?: code-security/update-configurationBody): Promise<code-security/update-configurationResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/delete-configuration(): Promise<code-security/delete-configurationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}`);
  },

  async code-security/attach-configuration(body?: code-security/attach-configurationBody): Promise<code-security/attach-configurationResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}/attach`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/set-configuration-as-default(body?: code-security/set-configuration-as-defaultBody): Promise<code-security/set-configuration-as-defaultResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}/defaults`, body ? JSON.stringify(body) : undefined);
  },

  async code-security/get-repositories-for-configuration(query?: Record<string, string>): Promise<code-security/get-repositories-for-configurationResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/code-security/configurations/${configuration_id}/repositories`, query));
  },

  async codespaces/list-in-organization(): Promise<codespaces/list-in-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/codespaces`);
  },

  async codespaces/set-codespaces-access(body?: codespaces/set-codespaces-accessBody): Promise<codespaces/set-codespaces-accessResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/codespaces/access`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/set-codespaces-access-users(body?: codespaces/set-codespaces-access-usersBody): Promise<codespaces/set-codespaces-access-usersResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/codespaces/access/selected_users`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/delete-codespaces-access-users(): Promise<codespaces/delete-codespaces-access-usersResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/codespaces/access/selected_users`);
  },

  async codespaces/list-org-secrets(): Promise<codespaces/list-org-secretsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/codespaces/secrets`);
  },

  async codespaces/get-org-public-key(): Promise<codespaces/get-org-public-keyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/codespaces/secrets/public-key`);
  },

  async codespaces/get-org-secret(): Promise<codespaces/get-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}`);
  },

  async codespaces/create-or-update-org-secret(body?: codespaces/create-or-update-org-secretBody): Promise<codespaces/create-or-update-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/delete-org-secret(): Promise<codespaces/delete-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}`);
  },

  async codespaces/list-selected-repos-for-org-secret(): Promise<codespaces/list-selected-repos-for-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}/repositories`);
  },

  async codespaces/set-selected-repos-for-org-secret(body?: codespaces/set-selected-repos-for-org-secretBody): Promise<codespaces/set-selected-repos-for-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/add-selected-repo-to-org-secret(repository_id: string, body?: Record<string, unknown>): Promise<codespaces/add-selected-repo-to-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/remove-selected-repo-from-org-secret(repository_id: string): Promise<codespaces/remove-selected-repo-from-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/codespaces/secrets/${secret_name}/repositories/${repository_id}`);
  },

  async copilot-spaces/list-for-org(query?: Record<string, string>): Promise<copilot-spaces/list-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/copilot-spaces`, query));
  },

  async copilot-spaces/create-for-org(body?: copilot-spaces/create-for-orgBody): Promise<copilot-spaces/create-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/copilot-spaces`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/get-for-org(space_number: string): Promise<copilot-spaces/get-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}`);
  },

  async copilot-spaces/update-for-org(space_number: string, body?: copilot-spaces/update-for-orgBody): Promise<copilot-spaces/update-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/delete-for-org(space_number: string): Promise<copilot-spaces/delete-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}`);
  },

  async copilot-spaces/list-collaborators-for-org(space_number: string): Promise<copilot-spaces/list-collaborators-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/collaborators`);
  },

  async copilot-spaces/add-collaborator-for-org(space_number: string, body?: copilot-spaces/add-collaborator-for-orgBody): Promise<copilot-spaces/add-collaborator-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/collaborators`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/update-collaborator-for-org(space_number: string, actor_type: string, actor_identifier: string, body?: copilot-spaces/update-collaborator-for-orgBody): Promise<copilot-spaces/update-collaborator-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/collaborators/${actor_type}/${actor_identifier}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/remove-collaborator-for-org(space_number: string, actor_type: string, actor_identifier: string): Promise<copilot-spaces/remove-collaborator-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/collaborators/${actor_type}/${actor_identifier}`);
  },

  async copilot-spaces/list-resources-for-org(space_number: string): Promise<copilot-spaces/list-resources-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/resources`);
  },

  async copilot-spaces/create-resource-for-org(space_number: string, body?: copilot-spaces/create-resource-for-orgBody): Promise<copilot-spaces/create-resource-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/resources`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/get-resource-for-org(space_number: string, space_resource_id: string): Promise<copilot-spaces/get-resource-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/resources/${space_resource_id}`);
  },

  async copilot-spaces/update-resource-for-org(space_number: string, space_resource_id: string, body?: copilot-spaces/update-resource-for-orgBody): Promise<copilot-spaces/update-resource-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/resources/${space_resource_id}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/delete-resource-for-org(space_number: string, space_resource_id: string): Promise<copilot-spaces/delete-resource-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot-spaces/${space_number}/resources/${space_resource_id}`);
  },

  async copilot/get-copilot-organization-details(): Promise<copilot/get-copilot-organization-detailsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/billing`);
  },

  async copilot/list-copilot-seats(query?: Record<string, string>): Promise<copilot/list-copilot-seatsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/copilot/billing/seats`, query));
  },

  async copilot/add-copilot-seats-for-teams(body?: copilot/add-copilot-seats-for-teamsBody): Promise<copilot/add-copilot-seats-for-teamsResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/copilot/billing/selected_teams`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/cancel-copilot-seat-assignment-for-teams(): Promise<copilot/cancel-copilot-seat-assignment-for-teamsResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot/billing/selected_teams`);
  },

  async copilot/add-copilot-seats-for-users(body?: copilot/add-copilot-seats-for-usersBody): Promise<copilot/add-copilot-seats-for-usersResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/copilot/billing/selected_users`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/cancel-copilot-seat-assignment-for-users(): Promise<copilot/cancel-copilot-seat-assignment-for-usersResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot/billing/selected_users`);
  },

  async copilot/get-copilot-coding-agent-permissions-organization(): Promise<copilot/get-copilot-coding-agent-permissions-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions`);
  },

  async copilot/set-copilot-coding-agent-permissions-organization(body?: copilot/set-copilot-coding-agent-permissions-organizationBody): Promise<copilot/set-copilot-coding-agent-permissions-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/list-copilot-coding-agent-selected-repositories-for-organization(): Promise<copilot/list-copilot-coding-agent-selected-repositories-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions/repositories`);
  },

  async copilot/set-copilot-coding-agent-selected-repositories-for-organization(body?: copilot/set-copilot-coding-agent-selected-repositories-for-organizationBody): Promise<copilot/set-copilot-coding-agent-selected-repositories-for-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/enable-copilot-coding-agent-for-repository-in-organization(body?: Record<string, unknown>): Promise<copilot/enable-copilot-coding-agent-for-repository-in-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/disable-copilot-coding-agent-for-repository-in-organization(): Promise<copilot/disable-copilot-coding-agent-for-repository-in-organizationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/copilot/coding-agent/permissions/repositories/${repository_id}`);
  },

  async copilot/copilot-content-exclusion-for-organization(): Promise<copilot/copilot-content-exclusion-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/content_exclusion`);
  },

  async copilot/set-copilot-content-exclusion-for-organization(body?: copilot/set-copilot-content-exclusion-for-organizationBody): Promise<copilot/set-copilot-content-exclusion-for-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/copilot/content_exclusion`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/copilot-metrics-for-organization(query?: Record<string, string>): Promise<copilot/copilot-metrics-for-organizationResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/copilot/metrics`, query));
  },

  async copilot/copilot-organization-one-day-usage-metrics(): Promise<copilot/copilot-organization-one-day-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/metrics/reports/organization-1-day`);
  },

  async copilot/copilot-organization-usage-metrics(): Promise<copilot/copilot-organization-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/metrics/reports/organization-28-day/latest`);
  },

  async copilot/copilot-organization-user-teams-one-day-report(): Promise<copilot/copilot-organization-user-teams-one-day-reportResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/metrics/reports/user-teams-1-day`);
  },

  async copilot/copilot-organization-users-one-day-usage-metrics(): Promise<copilot/copilot-organization-users-one-day-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/metrics/reports/users-1-day`);
  },

  async copilot/copilot-organization-users-usage-metrics(): Promise<copilot/copilot-organization-users-usage-metricsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/copilot/metrics/reports/users-28-day/latest`);
  },

  async dependabot/list-alerts-for-org(): Promise<dependabot/list-alerts-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/dependabot/alerts`);
  },

  async dependabot/repository-access-for-org(query?: Record<string, string>): Promise<dependabot/repository-access-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/dependabot/repository-access`, query));
  },

  async dependabot/update-repository-access-for-org(body?: dependabot/update-repository-access-for-orgBody): Promise<dependabot/update-repository-access-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/dependabot/repository-access`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/set-repository-access-default-level(body?: dependabot/set-repository-access-default-levelBody): Promise<dependabot/set-repository-access-default-levelResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/dependabot/repository-access/default-level`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/list-org-secrets(): Promise<dependabot/list-org-secretsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/dependabot/secrets`);
  },

  async dependabot/get-org-public-key(): Promise<dependabot/get-org-public-keyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/dependabot/secrets/public-key`);
  },

  async dependabot/get-org-secret(): Promise<dependabot/get-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}`);
  },

  async dependabot/create-or-update-org-secret(body?: dependabot/create-or-update-org-secretBody): Promise<dependabot/create-or-update-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/delete-org-secret(): Promise<dependabot/delete-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}`);
  },

  async dependabot/list-selected-repos-for-org-secret(): Promise<dependabot/list-selected-repos-for-org-secretResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}/repositories`);
  },

  async dependabot/set-selected-repos-for-org-secret(body?: dependabot/set-selected-repos-for-org-secretBody): Promise<dependabot/set-selected-repos-for-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/add-selected-repo-to-org-secret(repository_id: string, body?: Record<string, unknown>): Promise<dependabot/add-selected-repo-to-org-secretResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/remove-selected-repo-from-org-secret(repository_id: string): Promise<dependabot/remove-selected-repo-from-org-secretResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/dependabot/secrets/${secret_name}/repositories/${repository_id}`);
  },

  async packages/list-docker-migration-conflicting-packages-for-organization(): Promise<packages/list-docker-migration-conflicting-packages-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/docker/conflicts`);
  },

  async activity/list-public-org-events(): Promise<activity/list-public-org-eventsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/events`);
  },

  async orgs/list-failed-invitations(): Promise<orgs/list-failed-invitationsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/failed_invitations`);
  },

  async orgs/list-webhooks(): Promise<orgs/list-webhooksResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/hooks`);
  },

  async orgs/create-webhook(body?: orgs/create-webhookBody): Promise<orgs/create-webhookResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/hooks`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/get-webhook(): Promise<orgs/get-webhookResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/hooks/${hook_id}`);
  },

  async orgs/update-webhook(body?: orgs/update-webhookBody): Promise<orgs/update-webhookResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/hooks/${hook_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete-webhook(): Promise<orgs/delete-webhookResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/hooks/${hook_id}`);
  },

  async orgs/get-webhook-config-for-org(): Promise<orgs/get-webhook-config-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/hooks/${hook_id}/config`);
  },

  async orgs/update-webhook-config-for-org(body?: orgs/update-webhook-config-for-orgBody): Promise<orgs/update-webhook-config-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/hooks/${hook_id}/config`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-webhook-deliveries(): Promise<orgs/list-webhook-deliveriesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/hooks/${hook_id}/deliveries`);
  },

  async orgs/get-webhook-delivery(): Promise<orgs/get-webhook-deliveryResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/hooks/${hook_id}/deliveries/${delivery_id}`);
  },

  async orgs/redeliver-webhook-delivery(body?: Record<string, unknown>): Promise<orgs/redeliver-webhook-deliveryResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/hooks/${hook_id}/deliveries/${delivery_id}/attempts`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/ping-webhook(body?: Record<string, unknown>): Promise<orgs/ping-webhookResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/hooks/${hook_id}/pings`, body ? JSON.stringify(body) : undefined);
  },

  async api-insights/get-route-stats-by-actor(): Promise<api-insights/get-route-stats-by-actorResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/route-stats/${actor_type}/${actor_id}`);
  },

  async api-insights/get-subject-stats(): Promise<api-insights/get-subject-statsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/subject-stats`);
  },

  async api-insights/get-summary-stats(): Promise<api-insights/get-summary-statsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/summary-stats`);
  },

  async api-insights/get-summary-stats-by-user(): Promise<api-insights/get-summary-stats-by-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/summary-stats/users/${user_id}`);
  },

  async api-insights/get-summary-stats-by-actor(): Promise<api-insights/get-summary-stats-by-actorResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/summary-stats/${actor_type}/${actor_id}`);
  },

  async api-insights/get-time-stats(): Promise<api-insights/get-time-statsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/time-stats`);
  },

  async api-insights/get-time-stats-by-user(): Promise<api-insights/get-time-stats-by-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/time-stats/users/${user_id}`);
  },

  async api-insights/get-time-stats-by-actor(): Promise<api-insights/get-time-stats-by-actorResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/time-stats/${actor_type}/${actor_id}`);
  },

  async api-insights/get-user-stats(): Promise<api-insights/get-user-statsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/insights/api/user-stats/${user_id}`);
  },

  async apps/get-org-installation(): Promise<apps/get-org-installationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/installation`);
  },

  async orgs/list-app-installations(): Promise<orgs/list-app-installationsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/installations`);
  },

  async interactions/get-restrictions-for-org(): Promise<interactions/get-restrictions-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/interaction-limits`);
  },

  async interactions/set-restrictions-for-org(body?: interactions/set-restrictions-for-orgBody): Promise<interactions/set-restrictions-for-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/interaction-limits`, body ? JSON.stringify(body) : undefined);
  },

  async interactions/remove-restrictions-for-org(): Promise<interactions/remove-restrictions-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/interaction-limits`);
  },

  async orgs/list-pending-invitations(query?: Record<string, string>): Promise<orgs/list-pending-invitationsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/invitations`, query));
  },

  async orgs/create-invitation(body?: orgs/create-invitationBody): Promise<orgs/create-invitationResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/invitations`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/cancel-invitation(): Promise<orgs/cancel-invitationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/invitations/${invitation_id}`);
  },

  async orgs/list-invitation-teams(): Promise<orgs/list-invitation-teamsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/invitations/${invitation_id}/teams`);
  },

  async orgs/list-issue-fields(): Promise<orgs/list-issue-fieldsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/issue-fields`);
  },

  async orgs/create-issue-field(body?: orgs/create-issue-fieldBody): Promise<orgs/create-issue-fieldResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/issue-fields`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/update-issue-field(body?: orgs/update-issue-fieldBody): Promise<orgs/update-issue-fieldResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/issue-fields/${issue_field_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete-issue-field(): Promise<orgs/delete-issue-fieldResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/issue-fields/${issue_field_id}`);
  },

  async orgs/list-issue-types(): Promise<orgs/list-issue-typesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/issue-types`);
  },

  async orgs/create-issue-type(body?: orgs/create-issue-typeBody): Promise<orgs/create-issue-typeResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/issue-types`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/update-issue-type(body?: orgs/update-issue-typeBody): Promise<orgs/update-issue-typeResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/issue-types/${issue_type_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/delete-issue-type(): Promise<orgs/delete-issue-typeResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/issue-types/${issue_type_id}`);
  },

  async issues/list-for-org(query?: Record<string, string>): Promise<issues/list-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/issues`, query));
  },

  async orgs/list-members(query?: Record<string, string>): Promise<orgs/list-membersResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/members`, query));
  },

  async orgs/check-membership-for-user(): Promise<orgs/check-membership-for-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/members/${username}`);
  },

  async orgs/remove-member(): Promise<orgs/remove-memberResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/members/${username}`);
  },

  async codespaces/get-codespaces-for-user-in-org(): Promise<codespaces/get-codespaces-for-user-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/members/${username}/codespaces`);
  },

  async codespaces/delete-from-organization(): Promise<codespaces/delete-from-organizationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/members/${username}/codespaces/${codespace_name}`);
  },

  async codespaces/stop-in-organization(body?: Record<string, unknown>): Promise<codespaces/stop-in-organizationResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/members/${username}/codespaces/${codespace_name}/stop`, body ? JSON.stringify(body) : undefined);
  },

  async copilot/get-copilot-seat-details-for-user(): Promise<copilot/get-copilot-seat-details-for-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/members/${username}/copilot`);
  },

  async orgs/get-membership-for-user(): Promise<orgs/get-membership-for-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/memberships/${username}`);
  },

  async orgs/set-membership-for-user(body?: orgs/set-membership-for-userBody): Promise<orgs/set-membership-for-userResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/memberships/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/remove-membership-for-user(): Promise<orgs/remove-membership-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/memberships/${username}`);
  },

  async migrations/list-for-org(query?: Record<string, string>): Promise<migrations/list-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/migrations`, query));
  },

  async migrations/start-for-org(body?: migrations/start-for-orgBody): Promise<migrations/start-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/migrations`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/get-status-for-org(query?: Record<string, string>): Promise<migrations/get-status-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/migrations/${migration_id}`, query));
  },

  async migrations/download-archive-for-org(): Promise<migrations/download-archive-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/migrations/${migration_id}/archive`);
  },

  async migrations/delete-archive-for-org(): Promise<migrations/delete-archive-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/migrations/${migration_id}/archive`);
  },

  async migrations/unlock-repo-for-org(): Promise<migrations/unlock-repo-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/migrations/${migration_id}/repos/${repo_name}/lock`);
  },

  async migrations/list-repos-for-org(): Promise<migrations/list-repos-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/migrations/${migration_id}/repositories`);
  },

  async orgs/list-org-roles(): Promise<orgs/list-org-rolesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/organization-roles`);
  },

  async orgs/revoke-all-org-roles-team(): Promise<orgs/revoke-all-org-roles-teamResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/organization-roles/teams/${team_slug}`);
  },

  async orgs/assign-team-to-org-role(body?: Record<string, unknown>): Promise<orgs/assign-team-to-org-roleResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/organization-roles/teams/${team_slug}/${role_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/revoke-org-role-team(): Promise<orgs/revoke-org-role-teamResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/organization-roles/teams/${team_slug}/${role_id}`);
  },

  async orgs/revoke-all-org-roles-user(): Promise<orgs/revoke-all-org-roles-userResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/organization-roles/users/${username}`);
  },

  async orgs/assign-user-to-org-role(body?: Record<string, unknown>): Promise<orgs/assign-user-to-org-roleResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/organization-roles/users/${username}/${role_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/revoke-org-role-user(): Promise<orgs/revoke-org-role-userResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/organization-roles/users/${username}/${role_id}`);
  },

  async orgs/get-org-role(): Promise<orgs/get-org-roleResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/organization-roles/${role_id}`);
  },

  async orgs/list-org-role-teams(): Promise<orgs/list-org-role-teamsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/organization-roles/${role_id}/teams`);
  },

  async orgs/list-org-role-users(): Promise<orgs/list-org-role-usersResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/organization-roles/${role_id}/users`);
  },

  async orgs/list-outside-collaborators(query?: Record<string, string>): Promise<orgs/list-outside-collaboratorsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/outside_collaborators`, query));
  },

  async orgs/convert-member-to-outside-collaborator(body?: orgs/convert-member-to-outside-collaboratorBody): Promise<orgs/convert-member-to-outside-collaboratorResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/outside_collaborators/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/remove-outside-collaborator(): Promise<orgs/remove-outside-collaboratorResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/outside_collaborators/${username}`);
  },

  async packages/list-packages-for-organization(query?: Record<string, string>): Promise<packages/list-packages-for-organizationResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/packages`, query));
  },

  async packages/get-package-for-organization(): Promise<packages/get-package-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}`);
  },

  async packages/delete-package-for-org(): Promise<packages/delete-package-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}`);
  },

  async packages/restore-package-for-org(query?: Record<string, string>, body?: Record<string, unknown>): Promise<packages/restore-package-for-orgResponse> {
    return this.request('POST', appendQuery(`https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}/restore`, query), body ? JSON.stringify(body) : undefined);
  },

  async packages/get-all-package-versions-for-package-owned-by-org(query?: Record<string, string>): Promise<packages/get-all-package-versions-for-package-owned-by-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}/versions`, query));
  },

  async packages/get-package-version-for-organization(): Promise<packages/get-package-version-for-organizationResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/delete-package-version-for-org(): Promise<packages/delete-package-version-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/restore-package-version-for-org(body?: Record<string, unknown>): Promise<packages/restore-package-version-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/packages/${package_type}/${package_name}/versions/${package_version_id}/restore`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-pat-grant-requests(): Promise<orgs/list-pat-grant-requestsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/personal-access-token-requests`);
  },

  async orgs/review-pat-grant-requests-in-bulk(body?: orgs/review-pat-grant-requests-in-bulkBody): Promise<orgs/review-pat-grant-requests-in-bulkResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/personal-access-token-requests`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/review-pat-grant-request(pat_request_id: string, body?: orgs/review-pat-grant-requestBody): Promise<orgs/review-pat-grant-requestResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/personal-access-token-requests/${pat_request_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-pat-grant-request-repositories(pat_request_id: string): Promise<orgs/list-pat-grant-request-repositoriesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/personal-access-token-requests/${pat_request_id}/repositories`);
  },

  async orgs/list-pat-grants(): Promise<orgs/list-pat-grantsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/personal-access-tokens`);
  },

  async orgs/update-pat-accesses(body?: orgs/update-pat-accessesBody): Promise<orgs/update-pat-accessesResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/personal-access-tokens`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/update-pat-access(body?: orgs/update-pat-accessBody): Promise<orgs/update-pat-accessResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/personal-access-tokens/${pat_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-pat-grant-repositories(pat_id: string): Promise<orgs/list-pat-grant-repositoriesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/personal-access-tokens/${pat_id}/repositories`);
  },

  async private-registries/list-org-private-registries(): Promise<private-registries/list-org-private-registriesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/private-registries`);
  },

  async private-registries/create-org-private-registry(body?: private-registries/create-org-private-registryBody): Promise<private-registries/create-org-private-registryResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/private-registries`, body ? JSON.stringify(body) : undefined);
  },

  async private-registries/get-org-public-key(): Promise<private-registries/get-org-public-keyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/private-registries/public-key`);
  },

  async private-registries/get-org-private-registry(): Promise<private-registries/get-org-private-registryResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/private-registries/${secret_name}`);
  },

  async private-registries/update-org-private-registry(body?: private-registries/update-org-private-registryBody): Promise<private-registries/update-org-private-registryResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/private-registries/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async private-registries/delete-org-private-registry(): Promise<private-registries/delete-org-private-registryResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/private-registries/${secret_name}`);
  },

  async projects/list-for-org(query?: Record<string, string>): Promise<projects/list-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/projectsV2`, query));
  },

  async projects/get-for-org(): Promise<projects/get-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/projectsV2/${project_number}`);
  },

  async projects/create-draft-item-for-org(body?: projects/create-draft-item-for-orgBody): Promise<projects/create-draft-item-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/drafts`, body ? JSON.stringify(body) : undefined);
  },

  async projects/list-fields-for-org(): Promise<projects/list-fields-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/fields`);
  },

  async projects/add-field-for-org(body?: projects/add-field-for-orgBody): Promise<projects/add-field-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/fields`, body ? JSON.stringify(body) : undefined);
  },

  async projects/get-field-for-org(): Promise<projects/get-field-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/fields/${field_id}`);
  },

  async projects/list-items-for-org(query?: Record<string, string>): Promise<projects/list-items-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/projectsV2/${project_number}/items`, query));
  },

  async projects/add-item-for-org(body?: projects/add-item-for-orgBody): Promise<projects/add-item-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/items`, body ? JSON.stringify(body) : undefined);
  },

  async projects/get-org-item(query?: Record<string, string>): Promise<projects/get-org-itemResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/projectsV2/${project_number}/items/${item_id}`, query));
  },

  async projects/update-item-for-org(body?: projects/update-item-for-orgBody): Promise<projects/update-item-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/items/${item_id}`, body ? JSON.stringify(body) : undefined);
  },

  async projects/delete-item-for-org(): Promise<projects/delete-item-for-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/items/${item_id}`);
  },

  async projects/create-view-for-org(body?: projects/create-view-for-orgBody): Promise<projects/create-view-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/projectsV2/${project_number}/views`, body ? JSON.stringify(body) : undefined);
  },

  async projects/list-view-items-for-org(query?: Record<string, string>): Promise<projects/list-view-items-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/projectsV2/${project_number}/views/${view_number}/items`, query));
  },

  async orgs/custom-properties-for-repos-get-organization-definitions(): Promise<orgs/custom-properties-for-repos-get-organization-definitionsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/properties/schema`);
  },

  async orgs/custom-properties-for-repos-create-or-update-organization-definitions(body?: orgs/custom-properties-for-repos-create-or-update-organization-definitionsBody): Promise<orgs/custom-properties-for-repos-create-or-update-organization-definitionsResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/properties/schema`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/custom-properties-for-repos-get-organization-definition(): Promise<orgs/custom-properties-for-repos-get-organization-definitionResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/properties/schema/${custom_property_name}`);
  },

  async orgs/custom-properties-for-repos-create-or-update-organization-definition(body?: orgs/custom-properties-for-repos-create-or-update-organization-definitionBody): Promise<orgs/custom-properties-for-repos-create-or-update-organization-definitionResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/properties/schema/${custom_property_name}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/custom-properties-for-repos-delete-organization-definition(): Promise<orgs/custom-properties-for-repos-delete-organization-definitionResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/properties/schema/${custom_property_name}`);
  },

  async orgs/custom-properties-for-repos-get-organization-values(query?: Record<string, string>): Promise<orgs/custom-properties-for-repos-get-organization-valuesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/properties/values`, query));
  },

  async orgs/custom-properties-for-repos-create-or-update-organization-values(body?: orgs/custom-properties-for-repos-create-or-update-organization-valuesBody): Promise<orgs/custom-properties-for-repos-create-or-update-organization-valuesResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/properties/values`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/list-public-members(): Promise<orgs/list-public-membersResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/public_members`);
  },

  async orgs/check-public-membership-for-user(): Promise<orgs/check-public-membership-for-userResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/public_members/${username}`);
  },

  async orgs/set-public-membership-for-authenticated-user(body?: Record<string, unknown>): Promise<orgs/set-public-membership-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/public_members/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/remove-public-membership-for-authenticated-user(): Promise<orgs/remove-public-membership-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/public_members/${username}`);
  },

  async repos/list-for-org(query?: Record<string, string>): Promise<repos/list-for-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/repos`, query));
  },

  async repos/create-in-org(body?: repos/create-in-orgBody): Promise<repos/create-in-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/repos`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-org-rulesets(): Promise<repos/get-org-rulesetsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets`);
  },

  async repos/create-org-ruleset(body?: repos/create-org-rulesetBody): Promise<repos/create-org-rulesetResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/rulesets`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-org-rule-suites(): Promise<repos/get-org-rule-suitesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets/rule-suites`);
  },

  async repos/get-org-rule-suite(): Promise<repos/get-org-rule-suiteResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets/rule-suites/${rule_suite_id}`);
  },

  async repos/get-org-ruleset(ruleset_id: string): Promise<repos/get-org-rulesetResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets/${ruleset_id}`);
  },

  async repos/update-org-ruleset(ruleset_id: string, body?: repos/update-org-rulesetBody): Promise<repos/update-org-rulesetResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/rulesets/${ruleset_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-org-ruleset(ruleset_id: string): Promise<repos/delete-org-rulesetResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/rulesets/${ruleset_id}`);
  },

  async orgs/get-org-ruleset-history(ruleset_id: string): Promise<orgs/get-org-ruleset-historyResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets/${ruleset_id}/history`);
  },

  async orgs/get-org-ruleset-version(ruleset_id: string, version_id: string): Promise<orgs/get-org-ruleset-versionResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/rulesets/${ruleset_id}/history/${version_id}`);
  },

  async secret-scanning/list-alerts-for-org(): Promise<secret-scanning/list-alerts-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/secret-scanning/alerts`);
  },

  async secret-scanning/list-org-pattern-configs(): Promise<secret-scanning/list-org-pattern-configsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/secret-scanning/pattern-configurations`);
  },

  async secret-scanning/update-org-pattern-configs(body?: secret-scanning/update-org-pattern-configsBody): Promise<secret-scanning/update-org-pattern-configsResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/secret-scanning/pattern-configurations`, body ? JSON.stringify(body) : undefined);
  },

  async security-advisories/list-org-repository-advisories(query?: Record<string, string>): Promise<security-advisories/list-org-repository-advisoriesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/security-advisories`, query));
  },

  async orgs/list-security-manager-teams(): Promise<orgs/list-security-manager-teamsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/security-managers`);
  },

  async orgs/add-security-manager-team(body?: Record<string, unknown>): Promise<orgs/add-security-manager-teamResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/security-managers/teams/${team_slug}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/remove-security-manager-team(): Promise<orgs/remove-security-manager-teamResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/security-managers/teams/${team_slug}`);
  },

  async orgs/get-immutable-releases-settings(): Promise<orgs/get-immutable-releases-settingsResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/settings/immutable-releases`);
  },

  async orgs/set-immutable-releases-settings(body?: orgs/set-immutable-releases-settingsBody): Promise<orgs/set-immutable-releases-settingsResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/settings/immutable-releases`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/get-immutable-releases-settings-repositories(): Promise<orgs/get-immutable-releases-settings-repositoriesResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/settings/immutable-releases/repositories`);
  },

  async orgs/set-immutable-releases-settings-repositories(body?: orgs/set-immutable-releases-settings-repositoriesBody): Promise<orgs/set-immutable-releases-settings-repositoriesResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/settings/immutable-releases/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/enable-selected-repository-immutable-releases-organization(body?: Record<string, unknown>): Promise<orgs/enable-selected-repository-immutable-releases-organizationResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/settings/immutable-releases/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async orgs/disable-selected-repository-immutable-releases-organization(): Promise<orgs/disable-selected-repository-immutable-releases-organizationResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/settings/immutable-releases/repositories/${repository_id}`);
  },

  async hosted-compute/list-network-configurations-for-org(): Promise<hosted-compute/list-network-configurations-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/settings/network-configurations`);
  },

  async hosted-compute/create-network-configuration-for-org(body?: hosted-compute/create-network-configuration-for-orgBody): Promise<hosted-compute/create-network-configuration-for-orgResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/settings/network-configurations`, body ? JSON.stringify(body) : undefined);
  },

  async hosted-compute/get-network-configuration-for-org(): Promise<hosted-compute/get-network-configuration-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/settings/network-configurations/${network_configuration_id}`);
  },

  async hosted-compute/update-network-configuration-for-org(body?: hosted-compute/update-network-configuration-for-orgBody): Promise<hosted-compute/update-network-configuration-for-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/settings/network-configurations/${network_configuration_id}`, body ? JSON.stringify(body) : undefined);
  },

  async hosted-compute/delete-network-configuration-from-org(): Promise<hosted-compute/delete-network-configuration-from-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/settings/network-configurations/${network_configuration_id}`);
  },

  async hosted-compute/get-network-settings-for-org(): Promise<hosted-compute/get-network-settings-for-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/settings/network-settings/${network_settings_id}`);
  },

  async copilot/copilot-metrics-for-team(query?: Record<string, string>): Promise<copilot/copilot-metrics-for-teamResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/team/${team_slug}/copilot/metrics`, query));
  },

  async teams/list(): Promise<teams/listResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams`);
  },

  async teams/create(body?: teams/createBody): Promise<teams/createResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/teams`, body ? JSON.stringify(body) : undefined);
  },

  async teams/get-by-name(): Promise<teams/get-by-nameResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}`);
  },

  async teams/update-in-org(body?: teams/update-in-orgBody): Promise<teams/update-in-orgResponse> {
    return this.request('PATCH', `https://api.github.com/orgs/${org}/teams/${team_slug}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/delete-in-org(): Promise<teams/delete-in-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/teams/${team_slug}`);
  },

  async teams/list-pending-invitations-in-org(): Promise<teams/list-pending-invitations-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}/invitations`);
  },

  async teams/list-members-in-org(query?: Record<string, string>): Promise<teams/list-members-in-orgResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/orgs/${org}/teams/${team_slug}/members`, query));
  },

  async teams/get-membership-for-user-in-org(): Promise<teams/get-membership-for-user-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}/memberships/${username}`);
  },

  async teams/add-or-update-membership-for-user-in-org(body?: teams/add-or-update-membership-for-user-in-orgBody): Promise<teams/add-or-update-membership-for-user-in-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/teams/${team_slug}/memberships/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/remove-membership-for-user-in-org(): Promise<teams/remove-membership-for-user-in-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/teams/${team_slug}/memberships/${username}`);
  },

  async teams/list-repos-in-org(): Promise<teams/list-repos-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}/repos`);
  },

  async teams/check-permissions-for-repo-in-org(): Promise<teams/check-permissions-for-repo-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`);
  },

  async teams/add-or-update-repo-permissions-in-org(body?: teams/add-or-update-repo-permissions-in-orgBody): Promise<teams/add-or-update-repo-permissions-in-orgResponse> {
    return this.request('PUT', `https://api.github.com/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/remove-repo-in-org(): Promise<teams/remove-repo-in-orgResponse> {
    return this.request('DELETE', `https://api.github.com/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`);
  },

  async teams/list-child-in-org(): Promise<teams/list-child-in-orgResponse> {
    return this.request('GET', `https://api.github.com/orgs/${org}/teams/${team_slug}/teams`);
  },

  async orgs/enable-or-disable-security-product-on-all-org-repos(body?: orgs/enable-or-disable-security-product-on-all-org-reposBody): Promise<orgs/enable-or-disable-security-product-on-all-org-reposResponse> {
    return this.request('POST', `https://api.github.com/orgs/${org}/${security_product}/${enablement}`, body ? JSON.stringify(body) : undefined);
  },

  async rate-limit/get(): Promise<rate-limit/getResponse> {
    return this.request('GET', `https://api.github.com/rate_limit`);
  },

  async repos/get(): Promise<repos/getResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}`);
  },

  async repos/update(body?: repos/updateBody): Promise<repos/updateResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete(): Promise<repos/deleteResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}`);
  },

  async actions/list-artifacts-for-repo(): Promise<actions/list-artifacts-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/artifacts`);
  },

  async actions/get-artifact(): Promise<actions/get-artifactResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/artifacts/${artifact_id}`);
  },

  async actions/delete-artifact(): Promise<actions/delete-artifactResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/artifacts/${artifact_id}`);
  },

  async actions/download-artifact(archive_format: string): Promise<actions/download-artifactResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/artifacts/${artifact_id}/${archive_format}`);
  },

  async actions/get-actions-cache-retention-limit-for-repository(): Promise<actions/get-actions-cache-retention-limit-for-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/cache/retention-limit`);
  },

  async actions/set-actions-cache-retention-limit-for-repository(body?: actions/set-actions-cache-retention-limit-for-repositoryBody): Promise<actions/set-actions-cache-retention-limit-for-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/cache/retention-limit`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-actions-cache-storage-limit-for-repository(): Promise<actions/get-actions-cache-storage-limit-for-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/cache/storage-limit`);
  },

  async actions/set-actions-cache-storage-limit-for-repository(body?: actions/set-actions-cache-storage-limit-for-repositoryBody): Promise<actions/set-actions-cache-storage-limit-for-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/cache/storage-limit`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-actions-cache-usage(): Promise<actions/get-actions-cache-usageResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/cache/usage`);
  },

  async actions/get-actions-cache-list(): Promise<actions/get-actions-cache-listResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/caches`);
  },

  async actions/delete-actions-cache-by-key(): Promise<actions/delete-actions-cache-by-keyResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/caches`);
  },

  async actions/delete-actions-cache-by-id(): Promise<actions/delete-actions-cache-by-idResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/caches/${cache_id}`);
  },

  async actions/list-concurrency-groups-for-repository(): Promise<actions/list-concurrency-groups-for-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/concurrency_groups`);
  },

  async actions/get-concurrency-group-for-repository(query?: Record<string, string>): Promise<actions/get-concurrency-group-for-repositoryResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/actions/concurrency_groups/${concurrency_group_name}`, query));
  },

  async actions/get-job-for-workflow-run(): Promise<actions/get-job-for-workflow-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/jobs/${job_id}`);
  },

  async actions/download-job-logs-for-workflow-run(): Promise<actions/download-job-logs-for-workflow-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/jobs/${job_id}/logs`);
  },

  async actions/re-run-job-for-workflow-run(body?: actions/re-run-job-for-workflow-runBody): Promise<actions/re-run-job-for-workflow-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/jobs/${job_id}/rerun`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-custom-oidc-sub-claim-for-repo(): Promise<actions/get-custom-oidc-sub-claim-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/oidc/customization/sub`);
  },

  async actions/set-custom-oidc-sub-claim-for-repo(body?: actions/set-custom-oidc-sub-claim-for-repoBody): Promise<actions/set-custom-oidc-sub-claim-for-repoResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/oidc/customization/sub`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-repo-organization-secrets(): Promise<actions/list-repo-organization-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/organization-secrets`);
  },

  async actions/list-repo-organization-variables(): Promise<actions/list-repo-organization-variablesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/organization-variables`);
  },

  async actions/get-github-actions-permissions-repository(): Promise<actions/get-github-actions-permissions-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions`);
  },

  async actions/set-github-actions-permissions-repository(body?: actions/set-github-actions-permissions-repositoryBody): Promise<actions/set-github-actions-permissions-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-workflow-access-to-repository(): Promise<actions/get-workflow-access-to-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/access`);
  },

  async actions/set-workflow-access-to-repository(body?: actions/set-workflow-access-to-repositoryBody): Promise<actions/set-workflow-access-to-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/access`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-artifact-and-log-retention-settings-repository(): Promise<actions/get-artifact-and-log-retention-settings-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/artifact-and-log-retention`);
  },

  async actions/set-artifact-and-log-retention-settings-repository(body?: actions/set-artifact-and-log-retention-settings-repositoryBody): Promise<actions/set-artifact-and-log-retention-settings-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/artifact-and-log-retention`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-fork-pr-contributor-approval-permissions-repository(): Promise<actions/get-fork-pr-contributor-approval-permissions-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/fork-pr-contributor-approval`);
  },

  async actions/set-fork-pr-contributor-approval-permissions-repository(body?: actions/set-fork-pr-contributor-approval-permissions-repositoryBody): Promise<actions/set-fork-pr-contributor-approval-permissions-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/fork-pr-contributor-approval`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-private-repo-fork-pr-workflows-settings-repository(): Promise<actions/get-private-repo-fork-pr-workflows-settings-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/fork-pr-workflows-private-repos`);
  },

  async actions/set-private-repo-fork-pr-workflows-settings-repository(body?: actions/set-private-repo-fork-pr-workflows-settings-repositoryBody): Promise<actions/set-private-repo-fork-pr-workflows-settings-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/fork-pr-workflows-private-repos`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-allowed-actions-repository(): Promise<actions/get-allowed-actions-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/selected-actions`);
  },

  async actions/set-allowed-actions-repository(body?: actions/set-allowed-actions-repositoryBody): Promise<actions/set-allowed-actions-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/selected-actions`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-github-actions-default-workflow-permissions-repository(): Promise<actions/get-github-actions-default-workflow-permissions-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/workflow`);
  },

  async actions/set-github-actions-default-workflow-permissions-repository(body?: actions/set-github-actions-default-workflow-permissions-repositoryBody): Promise<actions/set-github-actions-default-workflow-permissions-repositoryResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/permissions/workflow`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-self-hosted-runners-for-repo(query?: Record<string, string>): Promise<actions/list-self-hosted-runners-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/actions/runners`, query));
  },

  async actions/list-runner-applications-for-repo(): Promise<actions/list-runner-applications-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runners/downloads`);
  },

  async actions/generate-runner-jitconfig-for-repo(body?: actions/generate-runner-jitconfig-for-repoBody): Promise<actions/generate-runner-jitconfig-for-repoResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runners/generate-jitconfig`, body ? JSON.stringify(body) : undefined);
  },

  async actions/create-registration-token-for-repo(body?: Record<string, unknown>): Promise<actions/create-registration-token-for-repoResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runners/registration-token`, body ? JSON.stringify(body) : undefined);
  },

  async actions/create-remove-token-for-repo(body?: Record<string, unknown>): Promise<actions/create-remove-token-for-repoResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runners/remove-token`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-self-hosted-runner-for-repo(): Promise<actions/get-self-hosted-runner-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}`);
  },

  async actions/delete-self-hosted-runner-from-repo(): Promise<actions/delete-self-hosted-runner-from-repoResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}`);
  },

  async actions/list-labels-for-self-hosted-runner-for-repo(): Promise<actions/list-labels-for-self-hosted-runner-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}/labels`);
  },

  async actions/add-custom-labels-to-self-hosted-runner-for-repo(body?: actions/add-custom-labels-to-self-hosted-runner-for-repoBody): Promise<actions/add-custom-labels-to-self-hosted-runner-for-repoResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async actions/set-custom-labels-for-self-hosted-runner-for-repo(body?: actions/set-custom-labels-for-self-hosted-runner-for-repoBody): Promise<actions/set-custom-labels-for-self-hosted-runner-for-repoResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async actions/remove-all-custom-labels-from-self-hosted-runner-for-repo(): Promise<actions/remove-all-custom-labels-from-self-hosted-runner-for-repoResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}/labels`);
  },

  async actions/remove-custom-label-from-self-hosted-runner-for-repo(): Promise<actions/remove-custom-label-from-self-hosted-runner-for-repoResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/runners/${runner_id}/labels/${name}`);
  },

  async actions/list-workflow-runs-for-repo(): Promise<actions/list-workflow-runs-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs`);
  },

  async actions/get-workflow-run(): Promise<actions/get-workflow-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}`);
  },

  async actions/delete-workflow-run(): Promise<actions/delete-workflow-runResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}`);
  },

  async actions/get-reviews-for-run(): Promise<actions/get-reviews-for-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/approvals`);
  },

  async actions/approve-workflow-run(body?: Record<string, unknown>): Promise<actions/approve-workflow-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/approve`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-workflow-run-artifacts(): Promise<actions/list-workflow-run-artifactsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/artifacts`);
  },

  async actions/get-workflow-run-attempt(): Promise<actions/get-workflow-run-attemptResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/attempts/${attempt_number}`);
  },

  async actions/list-jobs-for-workflow-run-attempt(): Promise<actions/list-jobs-for-workflow-run-attemptResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/attempts/${attempt_number}/jobs`);
  },

  async actions/download-workflow-run-attempt-logs(): Promise<actions/download-workflow-run-attempt-logsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/attempts/${attempt_number}/logs`);
  },

  async actions/cancel-workflow-run(body?: Record<string, unknown>): Promise<actions/cancel-workflow-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/cancel`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-concurrency-groups-for-workflow-run(): Promise<actions/list-concurrency-groups-for-workflow-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/concurrency_groups`);
  },

  async actions/review-custom-gates-for-run(body?: actions/review-custom-gates-for-runBody): Promise<actions/review-custom-gates-for-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/deployment_protection_rule`, body ? JSON.stringify(body) : undefined);
  },

  async actions/force-cancel-workflow-run(body?: Record<string, unknown>): Promise<actions/force-cancel-workflow-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/force-cancel`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-jobs-for-workflow-run(query?: Record<string, string>): Promise<actions/list-jobs-for-workflow-runResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/jobs`, query));
  },

  async actions/download-workflow-run-logs(): Promise<actions/download-workflow-run-logsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/logs`);
  },

  async actions/delete-workflow-run-logs(): Promise<actions/delete-workflow-run-logsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/logs`);
  },

  async actions/get-pending-deployments-for-run(): Promise<actions/get-pending-deployments-for-runResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/pending_deployments`);
  },

  async actions/review-pending-deployments-for-run(body?: actions/review-pending-deployments-for-runBody): Promise<actions/review-pending-deployments-for-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/pending_deployments`, body ? JSON.stringify(body) : undefined);
  },

  async actions/re-run-workflow(body?: actions/re-run-workflowBody): Promise<actions/re-run-workflowResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/rerun`, body ? JSON.stringify(body) : undefined);
  },

  async actions/re-run-workflow-failed-jobs(body?: actions/re-run-workflow-failed-jobsBody): Promise<actions/re-run-workflow-failed-jobsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/rerun-failed-jobs`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-workflow-run-usage(): Promise<actions/get-workflow-run-usageResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/runs/${run_id}/timing`);
  },

  async actions/list-repo-secrets(): Promise<actions/list-repo-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/secrets`);
  },

  async actions/get-repo-public-key(): Promise<actions/get-repo-public-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/secrets/public-key`);
  },

  async actions/get-repo-secret(): Promise<actions/get-repo-secretResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/secrets/${secret_name}`);
  },

  async actions/create-or-update-repo-secret(body?: actions/create-or-update-repo-secretBody): Promise<actions/create-or-update-repo-secretResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-repo-secret(): Promise<actions/delete-repo-secretResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/secrets/${secret_name}`);
  },

  async actions/list-repo-variables(): Promise<actions/list-repo-variablesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/variables`);
  },

  async actions/create-repo-variable(body?: actions/create-repo-variableBody): Promise<actions/create-repo-variableResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/variables`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-repo-variable(): Promise<actions/get-repo-variableResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/variables/${name}`);
  },

  async actions/update-repo-variable(body?: actions/update-repo-variableBody): Promise<actions/update-repo-variableResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/actions/variables/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-repo-variable(): Promise<actions/delete-repo-variableResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/actions/variables/${name}`);
  },

  async actions/list-repo-workflows(): Promise<actions/list-repo-workflowsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/workflows`);
  },

  async actions/get-workflow(): Promise<actions/get-workflowResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}`);
  },

  async actions/disable-workflow(body?: Record<string, unknown>): Promise<actions/disable-workflowResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}/disable`, body ? JSON.stringify(body) : undefined);
  },

  async actions/create-workflow-dispatch(body?: actions/create-workflow-dispatchBody): Promise<actions/create-workflow-dispatchResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}/dispatches`, body ? JSON.stringify(body) : undefined);
  },

  async actions/enable-workflow(body?: Record<string, unknown>): Promise<actions/enable-workflowResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}/enable`, body ? JSON.stringify(body) : undefined);
  },

  async actions/list-workflow-runs(): Promise<actions/list-workflow-runsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}/runs`);
  },

  async actions/get-workflow-usage(): Promise<actions/get-workflow-usageResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflow_id}/timing`);
  },

  async repos/list-activities(query?: Record<string, string>): Promise<repos/list-activitiesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/activity`, query));
  },

  async agents/list-repo-organization-secrets(): Promise<agents/list-repo-organization-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/organization-secrets`);
  },

  async agents/list-repo-organization-variables(): Promise<agents/list-repo-organization-variablesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/organization-variables`);
  },

  async agents/list-repo-secrets(): Promise<agents/list-repo-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/secrets`);
  },

  async agents/get-repo-public-key(): Promise<agents/get-repo-public-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/secrets/public-key`);
  },

  async agents/get-repo-secret(): Promise<agents/get-repo-secretResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/secrets/${secret_name}`);
  },

  async agents/create-or-update-repo-secret(body?: agents/create-or-update-repo-secretBody): Promise<agents/create-or-update-repo-secretResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/agents/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/delete-repo-secret(): Promise<agents/delete-repo-secretResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/agents/secrets/${secret_name}`);
  },

  async agents/list-repo-variables(): Promise<agents/list-repo-variablesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/variables`);
  },

  async agents/create-repo-variable(body?: agents/create-repo-variableBody): Promise<agents/create-repo-variableResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/agents/variables`, body ? JSON.stringify(body) : undefined);
  },

  async agents/get-repo-variable(): Promise<agents/get-repo-variableResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/agents/variables/${name}`);
  },

  async agents/update-repo-variable(body?: agents/update-repo-variableBody): Promise<agents/update-repo-variableResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/agents/variables/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async agents/delete-repo-variable(): Promise<agents/delete-repo-variableResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/agents/variables/${name}`);
  },

  async issues/list-assignees(): Promise<issues/list-assigneesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/assignees`);
  },

  async issues/check-user-can-be-assigned(assignee: string): Promise<issues/check-user-can-be-assignedResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/assignees/${assignee}`);
  },

  async repos/create-attestation(body?: repos/create-attestationBody): Promise<repos/create-attestationResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/attestations`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-attestations(subject_digest: string, query?: Record<string, string>): Promise<repos/list-attestationsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/attestations/${subject_digest}`, query));
  },

  async repos/list-autolinks(): Promise<repos/list-autolinksResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/autolinks`);
  },

  async repos/create-autolink(body?: repos/create-autolinkBody): Promise<repos/create-autolinkResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/autolinks`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-autolink(): Promise<repos/get-autolinkResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/autolinks/${autolink_id}`);
  },

  async repos/delete-autolink(): Promise<repos/delete-autolinkResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/autolinks/${autolink_id}`);
  },

  async repos/check-automated-security-fixes(): Promise<repos/check-automated-security-fixesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/automated-security-fixes`);
  },

  async repos/enable-automated-security-fixes(body?: Record<string, unknown>): Promise<repos/enable-automated-security-fixesResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/automated-security-fixes`, body ? JSON.stringify(body) : undefined);
  },

  async repos/disable-automated-security-fixes(): Promise<repos/disable-automated-security-fixesResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/automated-security-fixes`);
  },

  async repos/list-branches(query?: Record<string, string>): Promise<repos/list-branchesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/branches`, query));
  },

  async repos/get-branch(): Promise<repos/get-branchResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}`);
  },

  async repos/get-branch-protection(): Promise<repos/get-branch-protectionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection`);
  },

  async repos/update-branch-protection(body?: repos/update-branch-protectionBody): Promise<repos/update-branch-protectionResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-branch-protection(): Promise<repos/delete-branch-protectionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection`);
  },

  async repos/get-admin-branch-protection(): Promise<repos/get-admin-branch-protectionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/enforce_admins`);
  },

  async repos/set-admin-branch-protection(body?: Record<string, unknown>): Promise<repos/set-admin-branch-protectionResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/enforce_admins`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-admin-branch-protection(): Promise<repos/delete-admin-branch-protectionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/enforce_admins`);
  },

  async repos/get-pull-request-review-protection(): Promise<repos/get-pull-request-review-protectionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_pull_request_reviews`);
  },

  async repos/update-pull-request-review-protection(body?: repos/update-pull-request-review-protectionBody): Promise<repos/update-pull-request-review-protectionResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_pull_request_reviews`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-pull-request-review-protection(): Promise<repos/delete-pull-request-review-protectionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_pull_request_reviews`);
  },

  async repos/get-commit-signature-protection(): Promise<repos/get-commit-signature-protectionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_signatures`);
  },

  async repos/create-commit-signature-protection(body?: Record<string, unknown>): Promise<repos/create-commit-signature-protectionResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_signatures`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-commit-signature-protection(): Promise<repos/delete-commit-signature-protectionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_signatures`);
  },

  async repos/get-status-checks-protection(): Promise<repos/get-status-checks-protectionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks`);
  },

  async repos/update-status-check-protection(body?: repos/update-status-check-protectionBody): Promise<repos/update-status-check-protectionResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-status-check-protection(): Promise<repos/remove-status-check-protectionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks`);
  },

  async repos/get-all-status-check-contexts(): Promise<repos/get-all-status-check-contextsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks/contexts`);
  },

  async repos/add-status-check-contexts(body?: repos/add-status-check-contextsBody): Promise<repos/add-status-check-contextsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks/contexts`, body ? JSON.stringify(body) : undefined);
  },

  async repos/set-status-check-contexts(body?: repos/set-status-check-contextsBody): Promise<repos/set-status-check-contextsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks/contexts`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-status-check-contexts(): Promise<repos/remove-status-check-contextsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/required_status_checks/contexts`);
  },

  async repos/get-access-restrictions(): Promise<repos/get-access-restrictionsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions`);
  },

  async repos/delete-access-restrictions(): Promise<repos/delete-access-restrictionsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions`);
  },

  async repos/get-apps-with-access-to-protected-branch(): Promise<repos/get-apps-with-access-to-protected-branchResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/apps`);
  },

  async repos/add-app-access-restrictions(body?: repos/add-app-access-restrictionsBody): Promise<repos/add-app-access-restrictionsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/apps`, body ? JSON.stringify(body) : undefined);
  },

  async repos/set-app-access-restrictions(body?: repos/set-app-access-restrictionsBody): Promise<repos/set-app-access-restrictionsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/apps`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-app-access-restrictions(): Promise<repos/remove-app-access-restrictionsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/apps`);
  },

  async repos/get-teams-with-access-to-protected-branch(): Promise<repos/get-teams-with-access-to-protected-branchResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/teams`);
  },

  async repos/add-team-access-restrictions(body?: repos/add-team-access-restrictionsBody): Promise<repos/add-team-access-restrictionsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/teams`, body ? JSON.stringify(body) : undefined);
  },

  async repos/set-team-access-restrictions(body?: repos/set-team-access-restrictionsBody): Promise<repos/set-team-access-restrictionsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/teams`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-team-access-restrictions(): Promise<repos/remove-team-access-restrictionsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/teams`);
  },

  async repos/get-users-with-access-to-protected-branch(): Promise<repos/get-users-with-access-to-protected-branchResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/users`);
  },

  async repos/add-user-access-restrictions(body?: repos/add-user-access-restrictionsBody): Promise<repos/add-user-access-restrictionsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/users`, body ? JSON.stringify(body) : undefined);
  },

  async repos/set-user-access-restrictions(body?: repos/set-user-access-restrictionsBody): Promise<repos/set-user-access-restrictionsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/users`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-user-access-restrictions(): Promise<repos/remove-user-access-restrictionsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/protection/restrictions/users`);
  },

  async repos/rename-branch(body?: repos/rename-branchBody): Promise<repos/rename-branchResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/branches/${branch}/rename`, body ? JSON.stringify(body) : undefined);
  },

  async checks/create(body?: checks/createBody): Promise<checks/createResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/check-runs`, body ? JSON.stringify(body) : undefined);
  },

  async checks/get(): Promise<checks/getResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/check-runs/${check_run_id}`);
  },

  async checks/update(body?: checks/updateBody): Promise<checks/updateResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/check-runs/${check_run_id}`, body ? JSON.stringify(body) : undefined);
  },

  async checks/list-annotations(): Promise<checks/list-annotationsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/check-runs/${check_run_id}/annotations`);
  },

  async checks/rerequest-run(body?: Record<string, unknown>): Promise<checks/rerequest-runResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/check-runs/${check_run_id}/rerequest`, body ? JSON.stringify(body) : undefined);
  },

  async checks/create-suite(body?: checks/create-suiteBody): Promise<checks/create-suiteResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/check-suites`, body ? JSON.stringify(body) : undefined);
  },

  async checks/set-suites-preferences(body?: checks/set-suites-preferencesBody): Promise<checks/set-suites-preferencesResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/check-suites/preferences`, body ? JSON.stringify(body) : undefined);
  },

  async checks/get-suite(): Promise<checks/get-suiteResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/check-suites/${check_suite_id}`);
  },

  async checks/list-for-suite(query?: Record<string, string>): Promise<checks/list-for-suiteResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/check-suites/${check_suite_id}/check-runs`, query));
  },

  async checks/rerequest-suite(body?: Record<string, unknown>): Promise<checks/rerequest-suiteResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/check-suites/${check_suite_id}/rerequest`, body ? JSON.stringify(body) : undefined);
  },

  async code-quality/get-setup(): Promise<code-quality/get-setupResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-quality/setup`);
  },

  async code-quality/update-setup(body?: code-quality/update-setupBody): Promise<code-quality/update-setupResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/code-quality/setup`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/list-alerts-for-repo(query?: Record<string, string>): Promise<code-scanning/list-alerts-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts`, query));
  },

  async code-scanning/get-alert(): Promise<code-scanning/get-alertResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}`);
  },

  async code-scanning/update-alert(body?: code-scanning/update-alertBody): Promise<code-scanning/update-alertResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/get-autofix(): Promise<code-scanning/get-autofixResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}/autofix`);
  },

  async code-scanning/create-autofix(body?: Record<string, unknown>): Promise<code-scanning/create-autofixResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}/autofix`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/commit-autofix(body?: code-scanning/commit-autofixBody): Promise<code-scanning/commit-autofixResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}/autofix/commits`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/list-alert-instances(): Promise<code-scanning/list-alert-instancesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}/instances`);
  },

  async code-scanning/list-recent-analyses(query?: Record<string, string>): Promise<code-scanning/list-recent-analysesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/code-scanning/analyses`, query));
  },

  async code-scanning/get-analysis(analysis_id: string): Promise<code-scanning/get-analysisResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/analyses/${analysis_id}`);
  },

  async code-scanning/delete-analysis(analysis_id: string, query?: Record<string, string>): Promise<code-scanning/delete-analysisResponse> {
    return this.request('DELETE', appendQuery(`https://api.github.com/repos/${owner}/${repo}/code-scanning/analyses/${analysis_id}`, query));
  },

  async code-scanning/list-codeql-databases(): Promise<code-scanning/list-codeql-databasesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/databases`);
  },

  async code-scanning/get-codeql-database(language: string): Promise<code-scanning/get-codeql-databaseResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/databases/${language}`);
  },

  async code-scanning/delete-codeql-database(language: string): Promise<code-scanning/delete-codeql-databaseResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/databases/${language}`);
  },

  async code-scanning/create-variant-analysis(body?: code-scanning/create-variant-analysisBody): Promise<code-scanning/create-variant-analysisResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/variant-analyses`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/get-variant-analysis(codeql_variant_analysis_id: string): Promise<code-scanning/get-variant-analysisResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/variant-analyses/${codeql_variant_analysis_id}`);
  },

  async code-scanning/get-variant-analysis-repo-task(repo: string, codeql_variant_analysis_id: string, repo_owner: string, repo_name: string): Promise<code-scanning/get-variant-analysis-repo-taskResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/codeql/variant-analyses/${codeql_variant_analysis_id}/repos/${repo_owner}/${repo_name}`);
  },

  async code-scanning/get-default-setup(): Promise<code-scanning/get-default-setupResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/default-setup`);
  },

  async code-scanning/update-default-setup(body?: code-scanning/update-default-setupBody): Promise<code-scanning/update-default-setupResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/code-scanning/default-setup`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/upload-sarif(body?: code-scanning/upload-sarifBody): Promise<code-scanning/upload-sarifResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/code-scanning/sarifs`, body ? JSON.stringify(body) : undefined);
  },

  async code-scanning/get-sarif(sarif_id: string): Promise<code-scanning/get-sarifResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-scanning/sarifs/${sarif_id}`);
  },

  async code-security/get-configuration-for-repository(): Promise<code-security/get-configuration-for-repositoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/code-security-configuration`);
  },

  async repos/codeowners-errors(query?: Record<string, string>): Promise<repos/codeowners-errorsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/codeowners/errors`, query));
  },

  async codespaces/list-in-repository-for-authenticated-user(): Promise<codespaces/list-in-repository-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/codespaces`);
  },

  async codespaces/create-with-repo-for-authenticated-user(body?: codespaces/create-with-repo-for-authenticated-userBody): Promise<codespaces/create-with-repo-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/codespaces`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/list-devcontainers-in-repository-for-authenticated-user(): Promise<codespaces/list-devcontainers-in-repository-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/codespaces/devcontainers`);
  },

  async codespaces/repo-machines-for-authenticated-user(query?: Record<string, string>): Promise<codespaces/repo-machines-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/codespaces/machines`, query));
  },

  async codespaces/pre-flight-with-repo-for-authenticated-user(query?: Record<string, string>): Promise<codespaces/pre-flight-with-repo-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/codespaces/new`, query));
  },

  async codespaces/check-permissions-for-devcontainer(query?: Record<string, string>): Promise<codespaces/check-permissions-for-devcontainerResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/codespaces/permissions_check`, query));
  },

  async codespaces/list-repo-secrets(): Promise<codespaces/list-repo-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/codespaces/secrets`);
  },

  async codespaces/get-repo-public-key(): Promise<codespaces/get-repo-public-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/codespaces/secrets/public-key`);
  },

  async codespaces/get-repo-secret(): Promise<codespaces/get-repo-secretResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/codespaces/secrets/${secret_name}`);
  },

  async codespaces/create-or-update-repo-secret(body?: codespaces/create-or-update-repo-secretBody): Promise<codespaces/create-or-update-repo-secretResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/codespaces/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/delete-repo-secret(): Promise<codespaces/delete-repo-secretResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/codespaces/secrets/${secret_name}`);
  },

  async repos/list-collaborators(query?: Record<string, string>): Promise<repos/list-collaboratorsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/collaborators`, query));
  },

  async repos/check-collaborator(): Promise<repos/check-collaboratorResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/collaborators/${username}`);
  },

  async repos/add-collaborator(body?: repos/add-collaboratorBody): Promise<repos/add-collaboratorResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/collaborators/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/remove-collaborator(): Promise<repos/remove-collaboratorResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/collaborators/${username}`);
  },

  async repos/get-collaborator-permission-level(): Promise<repos/get-collaborator-permission-levelResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/collaborators/${username}/permission`);
  },

  async repos/list-commit-comments-for-repo(): Promise<repos/list-commit-comments-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/comments`);
  },

  async repos/get-commit-comment(): Promise<repos/get-commit-commentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}`);
  },

  async repos/update-commit-comment(body?: repos/update-commit-commentBody): Promise<repos/update-commit-commentResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-commit-comment(): Promise<repos/delete-commit-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}`);
  },

  async reactions/list-for-commit-comment(query?: Record<string, string>): Promise<reactions/list-for-commit-commentResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}/reactions`, query));
  },

  async reactions/create-for-commit-comment(body?: reactions/create-for-commit-commentBody): Promise<reactions/create-for-commit-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}/reactions`, body ? JSON.stringify(body) : undefined);
  },

  async reactions/delete-for-commit-comment(): Promise<reactions/delete-for-commit-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/comments/${comment_id}/reactions/${reaction_id}`);
  },

  async repos/list-commits(query?: Record<string, string>): Promise<repos/list-commitsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/commits`, query));
  },

  async repos/list-branches-for-head-commit(): Promise<repos/list-branches-for-head-commitResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${commit_sha}/branches-where-head`);
  },

  async repos/list-comments-for-commit(): Promise<repos/list-comments-for-commitResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${commit_sha}/comments`);
  },

  async repos/create-commit-comment(body?: repos/create-commit-commentBody): Promise<repos/create-commit-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/commits/${commit_sha}/comments`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-pull-requests-associated-with-commit(): Promise<repos/list-pull-requests-associated-with-commitResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${commit_sha}/pulls`);
  },

  async repos/get-commit(): Promise<repos/get-commitResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${ref}`);
  },

  async checks/list-for-ref(query?: Record<string, string>): Promise<checks/list-for-refResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/commits/${ref}/check-runs`, query));
  },

  async checks/list-suites-for-ref(query?: Record<string, string>): Promise<checks/list-suites-for-refResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/commits/${ref}/check-suites`, query));
  },

  async repos/get-combined-status-for-ref(): Promise<repos/get-combined-status-for-refResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${ref}/status`);
  },

  async repos/list-commit-statuses-for-ref(): Promise<repos/list-commit-statuses-for-refResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/commits/${ref}/statuses`);
  },

  async repos/get-community-profile-metrics(): Promise<repos/get-community-profile-metricsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/community/profile`);
  },

  async repos/compare-commits(basehead: string): Promise<repos/compare-commitsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/compare/${basehead}`);
  },

  async repos/get-content(path: string, query?: Record<string, string>): Promise<repos/get-contentResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/contents/${path}`, query));
  },

  async repos/create-or-update-file-contents(path: string, body?: repos/create-or-update-file-contentsBody): Promise<repos/create-or-update-file-contentsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/contents/${path}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-file(path: string): Promise<repos/delete-fileResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/contents/${path}`);
  },

  async repos/list-contributors(query?: Record<string, string>): Promise<repos/list-contributorsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/contributors`, query));
  },

  async copilot/get-copilot-cloud-agent-configuration(): Promise<copilot/get-copilot-cloud-agent-configurationResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/copilot/cloud-agent/configuration`);
  },

  async dependabot/list-alerts-for-repo(): Promise<dependabot/list-alerts-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependabot/alerts`);
  },

  async dependabot/get-alert(): Promise<dependabot/get-alertResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependabot/alerts/${alert_number}`);
  },

  async dependabot/update-alert(body?: dependabot/update-alertBody): Promise<dependabot/update-alertResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/dependabot/alerts/${alert_number}`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/list-repo-secrets(): Promise<dependabot/list-repo-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependabot/secrets`);
  },

  async dependabot/get-repo-public-key(): Promise<dependabot/get-repo-public-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependabot/secrets/public-key`);
  },

  async dependabot/get-repo-secret(): Promise<dependabot/get-repo-secretResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependabot/secrets/${secret_name}`);
  },

  async dependabot/create-or-update-repo-secret(body?: dependabot/create-or-update-repo-secretBody): Promise<dependabot/create-or-update-repo-secretResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/dependabot/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async dependabot/delete-repo-secret(): Promise<dependabot/delete-repo-secretResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/dependabot/secrets/${secret_name}`);
  },

  async dependency-graph/diff-range(basehead: string): Promise<dependency-graph/diff-rangeResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependency-graph/compare/${basehead}`);
  },

  async dependency-graph/export-sbom(): Promise<dependency-graph/export-sbomResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependency-graph/sbom`);
  },

  async dependency-graph/fetch-sbom-report(sbom_uuid: string): Promise<dependency-graph/fetch-sbom-reportResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependency-graph/sbom/fetch-report/${sbom_uuid}`);
  },

  async dependency-graph/generate-sbom-report(): Promise<dependency-graph/generate-sbom-reportResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/dependency-graph/sbom/generate-report`);
  },

  async dependency-graph/create-repository-snapshot(body?: dependency-graph/create-repository-snapshotBody): Promise<dependency-graph/create-repository-snapshotResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/dependency-graph/snapshots`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-deployments(query?: Record<string, string>): Promise<repos/list-deploymentsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/deployments`, query));
  },

  async repos/create-deployment(body?: repos/create-deploymentBody): Promise<repos/create-deploymentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/deployments`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-deployment(): Promise<repos/get-deploymentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/deployments/${deployment_id}`);
  },

  async repos/delete-deployment(): Promise<repos/delete-deploymentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/deployments/${deployment_id}`);
  },

  async repos/list-deployment-statuses(): Promise<repos/list-deployment-statusesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/deployments/${deployment_id}/statuses`);
  },

  async repos/create-deployment-status(body?: repos/create-deployment-statusBody): Promise<repos/create-deployment-statusResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/deployments/${deployment_id}/statuses`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-deployment-status(status_id: string): Promise<repos/get-deployment-statusResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/deployments/${deployment_id}/statuses/${status_id}`);
  },

  async repos/create-dispatch-event(body?: repos/create-dispatch-eventBody): Promise<repos/create-dispatch-eventResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/dispatches`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-all-environments(): Promise<repos/get-all-environmentsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments`);
  },

  async repos/get-environment(): Promise<repos/get-environmentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}`);
  },

  async repos/create-or-update-environment(body?: repos/create-or-update-environmentBody): Promise<repos/create-or-update-environmentResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-an-environment(): Promise<repos/delete-an-environmentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}`);
  },

  async repos/list-deployment-branch-policies(): Promise<repos/list-deployment-branch-policiesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment-branch-policies`);
  },

  async repos/create-deployment-branch-policy(body?: repos/create-deployment-branch-policyBody): Promise<repos/create-deployment-branch-policyResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment-branch-policies`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-deployment-branch-policy(): Promise<repos/get-deployment-branch-policyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment-branch-policies/${branch_policy_id}`);
  },

  async repos/update-deployment-branch-policy(body?: repos/update-deployment-branch-policyBody): Promise<repos/update-deployment-branch-policyResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment-branch-policies/${branch_policy_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-deployment-branch-policy(): Promise<repos/delete-deployment-branch-policyResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment-branch-policies/${branch_policy_id}`);
  },

  async repos/get-all-deployment-protection-rules(): Promise<repos/get-all-deployment-protection-rulesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment_protection_rules`);
  },

  async repos/create-deployment-protection-rule(body?: repos/create-deployment-protection-ruleBody): Promise<repos/create-deployment-protection-ruleResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment_protection_rules`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-custom-deployment-rule-integrations(): Promise<repos/list-custom-deployment-rule-integrationsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment_protection_rules/apps`);
  },

  async repos/get-custom-deployment-protection-rule(): Promise<repos/get-custom-deployment-protection-ruleResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment_protection_rules/${protection_rule_id}`);
  },

  async repos/disable-deployment-protection-rule(): Promise<repos/disable-deployment-protection-ruleResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/deployment_protection_rules/${protection_rule_id}`);
  },

  async actions/list-environment-secrets(): Promise<actions/list-environment-secretsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/secrets`);
  },

  async actions/get-environment-public-key(): Promise<actions/get-environment-public-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/secrets/public-key`);
  },

  async actions/get-environment-secret(): Promise<actions/get-environment-secretResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/secrets/${secret_name}`);
  },

  async actions/create-or-update-environment-secret(body?: actions/create-or-update-environment-secretBody): Promise<actions/create-or-update-environment-secretResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-environment-secret(): Promise<actions/delete-environment-secretResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/secrets/${secret_name}`);
  },

  async actions/list-environment-variables(): Promise<actions/list-environment-variablesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/variables`);
  },

  async actions/create-environment-variable(body?: actions/create-environment-variableBody): Promise<actions/create-environment-variableResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/variables`, body ? JSON.stringify(body) : undefined);
  },

  async actions/get-environment-variable(): Promise<actions/get-environment-variableResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/variables/${name}`);
  },

  async actions/update-environment-variable(body?: actions/update-environment-variableBody): Promise<actions/update-environment-variableResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/variables/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async actions/delete-environment-variable(): Promise<actions/delete-environment-variableResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/environments/${environment_name}/variables/${name}`);
  },

  async activity/list-repo-events(): Promise<activity/list-repo-eventsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/events`);
  },

  async repos/list-forks(query?: Record<string, string>): Promise<repos/list-forksResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/forks`, query));
  },

  async repos/create-fork(body?: repos/create-forkBody): Promise<repos/create-forkResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/forks`, body ? JSON.stringify(body) : undefined);
  },

  async git/create-blob(body?: git/create-blobBody): Promise<git/create-blobResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/git/blobs`, body ? JSON.stringify(body) : undefined);
  },

  async git/get-blob(file_sha: string): Promise<git/get-blobResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/git/blobs/${file_sha}`);
  },

  async git/create-commit(body?: git/create-commitBody): Promise<git/create-commitResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/git/commits`, body ? JSON.stringify(body) : undefined);
  },

  async git/get-commit(): Promise<git/get-commitResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/git/commits/${commit_sha}`);
  },

  async git/list-matching-refs(): Promise<git/list-matching-refsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/git/matching-refs/${ref}`);
  },

  async git/get-ref(): Promise<git/get-refResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/git/ref/${ref}`);
  },

  async git/create-ref(body?: git/create-refBody): Promise<git/create-refResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/git/refs`, body ? JSON.stringify(body) : undefined);
  },

  async git/update-ref(body?: git/update-refBody): Promise<git/update-refResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/git/refs/${ref}`, body ? JSON.stringify(body) : undefined);
  },

  async git/delete-ref(): Promise<git/delete-refResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/git/refs/${ref}`);
  },

  async git/create-tag(body?: git/create-tagBody): Promise<git/create-tagResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/git/tags`, body ? JSON.stringify(body) : undefined);
  },

  async git/get-tag(tag_sha: string): Promise<git/get-tagResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/git/tags/${tag_sha}`);
  },

  async git/create-tree(body?: git/create-treeBody): Promise<git/create-treeResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/git/trees`, body ? JSON.stringify(body) : undefined);
  },

  async git/get-tree(tree_sha: string, query?: Record<string, string>): Promise<git/get-treeResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/git/trees/${tree_sha}`, query));
  },

  async repos/get-hash-algorithm(): Promise<repos/get-hash-algorithmResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hash-algorithm`);
  },

  async repos/list-webhooks(): Promise<repos/list-webhooksResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hooks`);
  },

  async repos/create-webhook(body?: repos/create-webhookBody): Promise<repos/create-webhookResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/hooks`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-webhook(): Promise<repos/get-webhookResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}`);
  },

  async repos/update-webhook(body?: repos/update-webhookBody): Promise<repos/update-webhookResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-webhook(): Promise<repos/delete-webhookResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}`);
  },

  async repos/get-webhook-config-for-repo(): Promise<repos/get-webhook-config-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/config`);
  },

  async repos/update-webhook-config-for-repo(body?: repos/update-webhook-config-for-repoBody): Promise<repos/update-webhook-config-for-repoResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/config`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-webhook-deliveries(): Promise<repos/list-webhook-deliveriesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/deliveries`);
  },

  async repos/get-webhook-delivery(): Promise<repos/get-webhook-deliveryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/deliveries/${delivery_id}`);
  },

  async repos/redeliver-webhook-delivery(body?: Record<string, unknown>): Promise<repos/redeliver-webhook-deliveryResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/deliveries/${delivery_id}/attempts`, body ? JSON.stringify(body) : undefined);
  },

  async repos/ping-webhook(body?: Record<string, unknown>): Promise<repos/ping-webhookResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/pings`, body ? JSON.stringify(body) : undefined);
  },

  async repos/test-push-webhook(body?: Record<string, unknown>): Promise<repos/test-push-webhookResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/hooks/${hook_id}/tests`, body ? JSON.stringify(body) : undefined);
  },

  async repos/check-immutable-releases(): Promise<repos/check-immutable-releasesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/immutable-releases`);
  },

  async repos/enable-immutable-releases(body?: Record<string, unknown>): Promise<repos/enable-immutable-releasesResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/immutable-releases`, body ? JSON.stringify(body) : undefined);
  },

  async repos/disable-immutable-releases(): Promise<repos/disable-immutable-releasesResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/immutable-releases`);
  },

  async migrations/get-import-status(): Promise<migrations/get-import-statusResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/import`);
  },

  async migrations/start-import(body?: migrations/start-importBody): Promise<migrations/start-importResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/import`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/update-import(body?: migrations/update-importBody): Promise<migrations/update-importResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/import`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/cancel-import(): Promise<migrations/cancel-importResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/import`);
  },

  async migrations/get-commit-authors(): Promise<migrations/get-commit-authorsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/import/authors`);
  },

  async migrations/map-commit-author(author_id: string, body?: migrations/map-commit-authorBody): Promise<migrations/map-commit-authorResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/import/authors/${author_id}`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/get-large-files(): Promise<migrations/get-large-filesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/import/large_files`);
  },

  async migrations/set-lfs-preference(body?: migrations/set-lfs-preferenceBody): Promise<migrations/set-lfs-preferenceResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/import/lfs`, body ? JSON.stringify(body) : undefined);
  },

  async apps/get-repo-installation(): Promise<apps/get-repo-installationResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/installation`);
  },

  async interactions/get-restrictions-for-repo(): Promise<interactions/get-restrictions-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/interaction-limits`);
  },

  async interactions/set-restrictions-for-repo(body?: interactions/set-restrictions-for-repoBody): Promise<interactions/set-restrictions-for-repoResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/interaction-limits`, body ? JSON.stringify(body) : undefined);
  },

  async interactions/remove-restrictions-for-repo(): Promise<interactions/remove-restrictions-for-repoResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/interaction-limits`);
  },

  async repos/list-invitations(): Promise<repos/list-invitationsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/invitations`);
  },

  async repos/update-invitation(body?: repos/update-invitationBody): Promise<repos/update-invitationResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/invitations/${invitation_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-invitation(): Promise<repos/delete-invitationResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/invitations/${invitation_id}`);
  },

  async repos/list-issue-types(): Promise<repos/list-issue-typesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issue-types`);
  },

  async issues/list-for-repo(query?: Record<string, string>): Promise<issues/list-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/issues`, query));
  },

  async issues/create(body?: issues/createBody): Promise<issues/createResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues`, body ? JSON.stringify(body) : undefined);
  },

  async issues/list-comments-for-repo(query?: Record<string, string>): Promise<issues/list-comments-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/issues/comments`, query));
  },

  async issues/get-comment(): Promise<issues/get-commentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}`);
  },

  async issues/update-comment(body?: issues/update-commentBody): Promise<issues/update-commentResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}`, body ? JSON.stringify(body) : undefined);
  },

  async issues/delete-comment(): Promise<issues/delete-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}`);
  },

  async issues/pin-comment(body?: Record<string, unknown>): Promise<issues/pin-commentResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}/pin`, body ? JSON.stringify(body) : undefined);
  },

  async issues/unpin-comment(): Promise<issues/unpin-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}/pin`);
  },

  async reactions/list-for-issue-comment(query?: Record<string, string>): Promise<reactions/list-for-issue-commentResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions`, query));
  },

  async reactions/create-for-issue-comment(body?: reactions/create-for-issue-commentBody): Promise<reactions/create-for-issue-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions`, body ? JSON.stringify(body) : undefined);
  },

  async reactions/delete-for-issue-comment(): Promise<reactions/delete-for-issue-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions/${reaction_id}`);
  },

  async issues/list-events-for-repo(): Promise<issues/list-events-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/events`);
  },

  async issues/get-event(event_id: string): Promise<issues/get-eventResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/events/${event_id}`);
  },

  async issues/get(): Promise<issues/getResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}`);
  },

  async issues/update(body?: issues/updateBody): Promise<issues/updateResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}`, body ? JSON.stringify(body) : undefined);
  },

  async issues/add-assignees(body?: issues/add-assigneesBody): Promise<issues/add-assigneesResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/assignees`, body ? JSON.stringify(body) : undefined);
  },

  async issues/remove-assignees(): Promise<issues/remove-assigneesResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/assignees`);
  },

  async issues/check-user-can-be-assigned-to-issue(assignee: string): Promise<issues/check-user-can-be-assigned-to-issueResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/assignees/${assignee}`);
  },

  async issues/list-comments(): Promise<issues/list-commentsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/comments`);
  },

  async issues/create-comment(body?: issues/create-commentBody): Promise<issues/create-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/comments`, body ? JSON.stringify(body) : undefined);
  },

  async issues/list-dependencies-blocked-by(): Promise<issues/list-dependencies-blocked-byResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/dependencies/blocked_by`);
  },

  async issues/add-blocked-by-dependency(body?: issues/add-blocked-by-dependencyBody): Promise<issues/add-blocked-by-dependencyResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/dependencies/blocked_by`, body ? JSON.stringify(body) : undefined);
  },

  async issues/remove-dependency-blocked-by(issue_id: string): Promise<issues/remove-dependency-blocked-byResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/dependencies/blocked_by/${issue_id}`);
  },

  async issues/list-dependencies-blocking(): Promise<issues/list-dependencies-blockingResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/dependencies/blocking`);
  },

  async issues/list-events(): Promise<issues/list-eventsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/events`);
  },

  async issues/list-issue-field-values-for-issue(): Promise<issues/list-issue-field-values-for-issueResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/issue-field-values`);
  },

  async issues/add-issue-field-values(body?: issues/add-issue-field-valuesBody): Promise<issues/add-issue-field-valuesResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/issue-field-values`, body ? JSON.stringify(body) : undefined);
  },

  async issues/set-issue-field-values(body?: issues/set-issue-field-valuesBody): Promise<issues/set-issue-field-valuesResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/issue-field-values`, body ? JSON.stringify(body) : undefined);
  },

  async issues/delete-issue-field-value(): Promise<issues/delete-issue-field-valueResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/issue-field-values/${issue_field_id}`);
  },

  async issues/list-labels-on-issue(): Promise<issues/list-labels-on-issueResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels`);
  },

  async issues/add-labels(body?: issues/add-labelsBody): Promise<issues/add-labelsResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async issues/set-labels(body?: issues/set-labelsBody): Promise<issues/set-labelsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async issues/remove-all-labels(): Promise<issues/remove-all-labelsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels`);
  },

  async issues/remove-label(name: string): Promise<issues/remove-labelResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels/${name}`);
  },

  async issues/lock(body?: issues/lockBody): Promise<issues/lockResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/lock`, body ? JSON.stringify(body) : undefined);
  },

  async issues/unlock(): Promise<issues/unlockResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/lock`);
  },

  async issues/get-parent(): Promise<issues/get-parentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/parent`);
  },

  async reactions/list-for-issue(query?: Record<string, string>): Promise<reactions/list-for-issueResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/reactions`, query));
  },

  async reactions/create-for-issue(body?: reactions/create-for-issueBody): Promise<reactions/create-for-issueResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/reactions`, body ? JSON.stringify(body) : undefined);
  },

  async reactions/delete-for-issue(): Promise<reactions/delete-for-issueResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/reactions/${reaction_id}`);
  },

  async issues/remove-sub-issue(): Promise<issues/remove-sub-issueResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/sub_issue`);
  },

  async issues/list-sub-issues(): Promise<issues/list-sub-issuesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/sub_issues`);
  },

  async issues/add-sub-issue(body?: issues/add-sub-issueBody): Promise<issues/add-sub-issueResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/sub_issues`, body ? JSON.stringify(body) : undefined);
  },

  async issues/reprioritize-sub-issue(body?: issues/reprioritize-sub-issueBody): Promise<issues/reprioritize-sub-issueResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/sub_issues/priority`, body ? JSON.stringify(body) : undefined);
  },

  async issues/list-events-for-timeline(): Promise<issues/list-events-for-timelineResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/timeline`);
  },

  async repos/list-deploy-keys(): Promise<repos/list-deploy-keysResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/keys`);
  },

  async repos/create-deploy-key(body?: repos/create-deploy-keyBody): Promise<repos/create-deploy-keyResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/keys`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-deploy-key(): Promise<repos/get-deploy-keyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/keys/${key_id}`);
  },

  async repos/delete-deploy-key(): Promise<repos/delete-deploy-keyResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/keys/${key_id}`);
  },

  async issues/list-labels-for-repo(): Promise<issues/list-labels-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/labels`);
  },

  async issues/create-label(body?: issues/create-labelBody): Promise<issues/create-labelResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/labels`, body ? JSON.stringify(body) : undefined);
  },

  async issues/get-label(name: string): Promise<issues/get-labelResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/labels/${name}`);
  },

  async issues/update-label(name: string, body?: issues/update-labelBody): Promise<issues/update-labelResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/labels/${name}`, body ? JSON.stringify(body) : undefined);
  },

  async issues/delete-label(name: string): Promise<issues/delete-labelResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/labels/${name}`);
  },

  async repos/list-languages(): Promise<repos/list-languagesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/languages`);
  },

  async licenses/get-for-repo(): Promise<licenses/get-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/license`);
  },

  async repos/merge-upstream(body?: repos/merge-upstreamBody): Promise<repos/merge-upstreamResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/merge-upstream`, body ? JSON.stringify(body) : undefined);
  },

  async repos/merge(body?: repos/mergeBody): Promise<repos/mergeResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/merges`, body ? JSON.stringify(body) : undefined);
  },

  async issues/list-milestones(query?: Record<string, string>): Promise<issues/list-milestonesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/milestones`, query));
  },

  async issues/create-milestone(body?: issues/create-milestoneBody): Promise<issues/create-milestoneResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/milestones`, body ? JSON.stringify(body) : undefined);
  },

  async issues/get-milestone(): Promise<issues/get-milestoneResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/milestones/${milestone_number}`);
  },

  async issues/update-milestone(body?: issues/update-milestoneBody): Promise<issues/update-milestoneResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/milestones/${milestone_number}`, body ? JSON.stringify(body) : undefined);
  },

  async issues/delete-milestone(): Promise<issues/delete-milestoneResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/milestones/${milestone_number}`);
  },

  async issues/list-labels-for-milestone(): Promise<issues/list-labels-for-milestoneResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/milestones/${milestone_number}/labels`);
  },

  async activity/list-repo-notifications-for-authenticated-user(): Promise<activity/list-repo-notifications-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/notifications`);
  },

  async activity/mark-repo-notifications-as-read(body?: activity/mark-repo-notifications-as-readBody): Promise<activity/mark-repo-notifications-as-readResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/notifications`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-pages(): Promise<repos/get-pagesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages`);
  },

  async repos/create-pages-site(body?: repos/create-pages-siteBody): Promise<repos/create-pages-siteResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pages`, body ? JSON.stringify(body) : undefined);
  },

  async repos/update-information-about-pages-site(body?: repos/update-information-about-pages-siteBody): Promise<repos/update-information-about-pages-siteResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/pages`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-pages-site(): Promise<repos/delete-pages-siteResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/pages`);
  },

  async repos/list-pages-builds(): Promise<repos/list-pages-buildsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages/builds`);
  },

  async repos/request-pages-build(body?: Record<string, unknown>): Promise<repos/request-pages-buildResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pages/builds`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-latest-pages-build(): Promise<repos/get-latest-pages-buildResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages/builds/latest`);
  },

  async repos/get-pages-build(build_id: string): Promise<repos/get-pages-buildResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages/builds/${build_id}`);
  },

  async repos/create-pages-deployment(body?: repos/create-pages-deploymentBody): Promise<repos/create-pages-deploymentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pages/deployments`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-pages-deployment(): Promise<repos/get-pages-deploymentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages/deployments/${pages_deployment_id}`);
  },

  async repos/cancel-pages-deployment(body?: Record<string, unknown>): Promise<repos/cancel-pages-deploymentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pages/deployments/${pages_deployment_id}/cancel`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-pages-health-check(): Promise<repos/get-pages-health-checkResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pages/health`);
  },

  async repos/check-private-vulnerability-reporting(): Promise<repos/check-private-vulnerability-reportingResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/private-vulnerability-reporting`);
  },

  async repos/enable-private-vulnerability-reporting(body?: Record<string, unknown>): Promise<repos/enable-private-vulnerability-reportingResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/private-vulnerability-reporting`, body ? JSON.stringify(body) : undefined);
  },

  async repos/disable-private-vulnerability-reporting(): Promise<repos/disable-private-vulnerability-reportingResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/private-vulnerability-reporting`);
  },

  async repos/custom-properties-for-repos-get-repository-values(): Promise<repos/custom-properties-for-repos-get-repository-valuesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/properties/values`);
  },

  async repos/custom-properties-for-repos-create-or-update-repository-values(body?: repos/custom-properties-for-repos-create-or-update-repository-valuesBody): Promise<repos/custom-properties-for-repos-create-or-update-repository-valuesResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/properties/values`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/list(query?: Record<string, string>): Promise<pulls/listResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/pulls`, query));
  },

  async pulls/create(body?: pulls/createBody): Promise<pulls/createResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/list-review-comments-for-repo(query?: Record<string, string>): Promise<pulls/list-review-comments-for-repoResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/pulls/comments`, query));
  },

  async pulls/get-review-comment(): Promise<pulls/get-review-commentResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}`);
  },

  async pulls/update-review-comment(body?: pulls/update-review-commentBody): Promise<pulls/update-review-commentResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/delete-review-comment(): Promise<pulls/delete-review-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}`);
  },

  async reactions/list-for-pull-request-review-comment(query?: Record<string, string>): Promise<reactions/list-for-pull-request-review-commentResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions`, query));
  },

  async reactions/create-for-pull-request-review-comment(body?: reactions/create-for-pull-request-review-commentBody): Promise<reactions/create-for-pull-request-review-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions`, body ? JSON.stringify(body) : undefined);
  },

  async reactions/delete-for-pull-request-comment(): Promise<reactions/delete-for-pull-request-commentResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions/${reaction_id}`);
  },

  async pulls/get(): Promise<pulls/getResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}`);
  },

  async pulls/update(body?: pulls/updateBody): Promise<pulls/updateResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/create-with-pr-for-authenticated-user(body?: codespaces/create-with-pr-for-authenticated-userBody): Promise<codespaces/create-with-pr-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/codespaces`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/list-review-comments(query?: Record<string, string>): Promise<pulls/list-review-commentsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/comments`, query));
  },

  async pulls/create-review-comment(body?: pulls/create-review-commentBody): Promise<pulls/create-review-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/comments`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/create-reply-for-review-comment(body?: pulls/create-reply-for-review-commentBody): Promise<pulls/create-reply-for-review-commentResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/comments/${comment_id}/replies`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/list-commits(): Promise<pulls/list-commitsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/commits`);
  },

  async pulls/list-files(): Promise<pulls/list-filesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/files`);
  },

  async pulls/check-if-merged(): Promise<pulls/check-if-mergedResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/merge`);
  },

  async pulls/merge(body?: pulls/mergeBody): Promise<pulls/mergeResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/merge`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/list-requested-reviewers(): Promise<pulls/list-requested-reviewersResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`);
  },

  async pulls/request-reviewers(body?: pulls/request-reviewersBody): Promise<pulls/request-reviewersResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/remove-requested-reviewers(): Promise<pulls/remove-requested-reviewersResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`);
  },

  async pulls/list-reviews(): Promise<pulls/list-reviewsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews`);
  },

  async pulls/create-review(body?: pulls/create-reviewBody): Promise<pulls/create-reviewResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/get-review(): Promise<pulls/get-reviewResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`);
  },

  async pulls/update-review(body?: pulls/update-reviewBody): Promise<pulls/update-reviewResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/delete-pending-review(): Promise<pulls/delete-pending-reviewResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`);
  },

  async pulls/list-comments-for-review(): Promise<pulls/list-comments-for-reviewResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/comments`);
  },

  async pulls/dismiss-review(body?: pulls/dismiss-reviewBody): Promise<pulls/dismiss-reviewResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/dismissals`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/submit-review(body?: pulls/submit-reviewBody): Promise<pulls/submit-reviewResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/events`, body ? JSON.stringify(body) : undefined);
  },

  async pulls/update-branch(body?: pulls/update-branchBody): Promise<pulls/update-branchResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/pulls/${pull_number}/update-branch`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-readme(query?: Record<string, string>): Promise<repos/get-readmeResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/readme`, query));
  },

  async repos/get-readme-in-directory(dir: string, query?: Record<string, string>): Promise<repos/get-readme-in-directoryResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/readme/${dir}`, query));
  },

  async repos/list-releases(): Promise<repos/list-releasesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases`);
  },

  async repos/create-release(body?: repos/create-releaseBody): Promise<repos/create-releaseResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/releases`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-release-asset(): Promise<repos/get-release-assetResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases/assets/${asset_id}`);
  },

  async repos/update-release-asset(body?: repos/update-release-assetBody): Promise<repos/update-release-assetResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/releases/assets/${asset_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-release-asset(): Promise<repos/delete-release-assetResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/releases/assets/${asset_id}`);
  },

  async repos/generate-release-notes(body?: repos/generate-release-notesBody): Promise<repos/generate-release-notesResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/releases/generate-notes`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-latest-release(): Promise<repos/get-latest-releaseResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases/latest`);
  },

  async repos/get-release-by-tag(tag: string): Promise<repos/get-release-by-tagResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases/tags/${tag}`);
  },

  async repos/get-release(): Promise<repos/get-releaseResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}`);
  },

  async repos/update-release(body?: repos/update-releaseBody): Promise<repos/update-releaseResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-release(): Promise<repos/delete-releaseResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}`);
  },

  async repos/list-release-assets(): Promise<repos/list-release-assetsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}/assets`);
  },

  async repos/upload-release-asset(query?: Record<string, string>, body?: repos/upload-release-assetBody): Promise<repos/upload-release-assetResponse> {
    return this.request('POST', appendQuery(`https://api.github.com/repos/${owner}/${repo}/releases/${release_id}/assets`, query), body ? JSON.stringify(body) : undefined);
  },

  async reactions/list-for-release(query?: Record<string, string>): Promise<reactions/list-for-releaseResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/releases/${release_id}/reactions`, query));
  },

  async reactions/create-for-release(body?: reactions/create-for-releaseBody): Promise<reactions/create-for-releaseResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}/reactions`, body ? JSON.stringify(body) : undefined);
  },

  async reactions/delete-for-release(): Promise<reactions/delete-for-releaseResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}/reactions/${reaction_id}`);
  },

  async repos/get-branch-rules(): Promise<repos/get-branch-rulesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/rules/branches/${branch}`);
  },

  async repos/get-repo-rulesets(query?: Record<string, string>): Promise<repos/get-repo-rulesetsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/rulesets`, query));
  },

  async repos/create-repo-ruleset(body?: repos/create-repo-rulesetBody): Promise<repos/create-repo-rulesetResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/rulesets`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-repo-rule-suites(): Promise<repos/get-repo-rule-suitesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/rulesets/rule-suites`);
  },

  async repos/get-repo-rule-suite(): Promise<repos/get-repo-rule-suiteResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/rulesets/rule-suites/${rule_suite_id}`);
  },

  async repos/get-repo-ruleset(ruleset_id: string, query?: Record<string, string>): Promise<repos/get-repo-rulesetResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/rulesets/${ruleset_id}`, query));
  },

  async repos/update-repo-ruleset(ruleset_id: string, body?: repos/update-repo-rulesetBody): Promise<repos/update-repo-rulesetResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/rulesets/${ruleset_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/delete-repo-ruleset(ruleset_id: string): Promise<repos/delete-repo-rulesetResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/rulesets/${ruleset_id}`);
  },

  async repos/get-repo-ruleset-history(ruleset_id: string): Promise<repos/get-repo-ruleset-historyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/rulesets/${ruleset_id}/history`);
  },

  async repos/get-repo-ruleset-version(ruleset_id: string, version_id: string): Promise<repos/get-repo-ruleset-versionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/rulesets/${ruleset_id}/history/${version_id}`);
  },

  async secret-scanning/list-alerts-for-repo(): Promise<secret-scanning/list-alerts-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/alerts`);
  },

  async secret-scanning/get-alert(): Promise<secret-scanning/get-alertResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/alerts/${alert_number}`);
  },

  async secret-scanning/update-alert(body?: secret-scanning/update-alertBody): Promise<secret-scanning/update-alertResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/alerts/${alert_number}`, body ? JSON.stringify(body) : undefined);
  },

  async secret-scanning/list-locations-for-alert(): Promise<secret-scanning/list-locations-for-alertResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/alerts/${alert_number}/locations`);
  },

  async secret-scanning/create-push-protection-bypass(body?: secret-scanning/create-push-protection-bypassBody): Promise<secret-scanning/create-push-protection-bypassResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/push-protection-bypasses`, body ? JSON.stringify(body) : undefined);
  },

  async secret-scanning/get-scan-history(): Promise<secret-scanning/get-scan-historyResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/secret-scanning/scan-history`);
  },

  async security-advisories/list-repository-advisories(query?: Record<string, string>): Promise<security-advisories/list-repository-advisoriesResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/repos/${owner}/${repo}/security-advisories`, query));
  },

  async security-advisories/create-repository-advisory(body?: security-advisories/create-repository-advisoryBody): Promise<security-advisories/create-repository-advisoryResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/security-advisories`, body ? JSON.stringify(body) : undefined);
  },

  async security-advisories/create-private-vulnerability-report(body?: security-advisories/create-private-vulnerability-reportBody): Promise<security-advisories/create-private-vulnerability-reportResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/security-advisories/reports`, body ? JSON.stringify(body) : undefined);
  },

  async security-advisories/get-repository-advisory(): Promise<security-advisories/get-repository-advisoryResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/security-advisories/${ghsa_id}`);
  },

  async security-advisories/update-repository-advisory(body?: security-advisories/update-repository-advisoryBody): Promise<security-advisories/update-repository-advisoryResponse> {
    return this.request('PATCH', `https://api.github.com/repos/${owner}/${repo}/security-advisories/${ghsa_id}`, body ? JSON.stringify(body) : undefined);
  },

  async security-advisories/create-repository-advisory-cve-request(body?: Record<string, unknown>): Promise<security-advisories/create-repository-advisory-cve-requestResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/security-advisories/${ghsa_id}/cve`, body ? JSON.stringify(body) : undefined);
  },

  async security-advisories/create-fork(body?: Record<string, unknown>): Promise<security-advisories/create-forkResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/security-advisories/${ghsa_id}/forks`, body ? JSON.stringify(body) : undefined);
  },

  async activity/list-stargazers-for-repo(): Promise<activity/list-stargazers-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stargazers`);
  },

  async repos/get-code-frequency-stats(): Promise<repos/get-code-frequency-statsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stats/code_frequency`);
  },

  async repos/get-commit-activity-stats(): Promise<repos/get-commit-activity-statsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stats/commit_activity`);
  },

  async repos/get-contributors-stats(): Promise<repos/get-contributors-statsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stats/contributors`);
  },

  async repos/get-participation-stats(): Promise<repos/get-participation-statsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stats/participation`);
  },

  async repos/get-punch-card-stats(): Promise<repos/get-punch-card-statsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/stats/punch_card`);
  },

  async repos/create-commit-status(sha: string, body?: repos/create-commit-statusBody): Promise<repos/create-commit-statusResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/statuses/${sha}`, body ? JSON.stringify(body) : undefined);
  },

  async activity/list-watchers-for-repo(): Promise<activity/list-watchers-for-repoResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/subscribers`);
  },

  async activity/get-repo-subscription(): Promise<activity/get-repo-subscriptionResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/subscription`);
  },

  async activity/set-repo-subscription(body?: activity/set-repo-subscriptionBody): Promise<activity/set-repo-subscriptionResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/subscription`, body ? JSON.stringify(body) : undefined);
  },

  async activity/delete-repo-subscription(): Promise<activity/delete-repo-subscriptionResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/subscription`);
  },

  async repos/list-tags(): Promise<repos/list-tagsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/tags`);
  },

  async repos/download-tarball-archive(ref: string): Promise<repos/download-tarball-archiveResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/tarball/${ref}`);
  },

  async repos/list-teams(): Promise<repos/list-teamsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/teams`);
  },

  async repos/get-all-topics(): Promise<repos/get-all-topicsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/topics`);
  },

  async repos/replace-all-topics(body?: repos/replace-all-topicsBody): Promise<repos/replace-all-topicsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/topics`, body ? JSON.stringify(body) : undefined);
  },

  async repos/get-clones(): Promise<repos/get-clonesResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/traffic/clones`);
  },

  async repos/get-top-paths(): Promise<repos/get-top-pathsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/traffic/popular/paths`);
  },

  async repos/get-top-referrers(): Promise<repos/get-top-referrersResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/traffic/popular/referrers`);
  },

  async repos/get-views(): Promise<repos/get-viewsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/traffic/views`);
  },

  async repos/transfer(body?: repos/transferBody): Promise<repos/transferResponse> {
    return this.request('POST', `https://api.github.com/repos/${owner}/${repo}/transfer`, body ? JSON.stringify(body) : undefined);
  },

  async repos/check-vulnerability-alerts(): Promise<repos/check-vulnerability-alertsResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/vulnerability-alerts`);
  },

  async repos/enable-vulnerability-alerts(body?: Record<string, unknown>): Promise<repos/enable-vulnerability-alertsResponse> {
    return this.request('PUT', `https://api.github.com/repos/${owner}/${repo}/vulnerability-alerts`, body ? JSON.stringify(body) : undefined);
  },

  async repos/disable-vulnerability-alerts(): Promise<repos/disable-vulnerability-alertsResponse> {
    return this.request('DELETE', `https://api.github.com/repos/${owner}/${repo}/vulnerability-alerts`);
  },

  async repos/download-zipball-archive(ref: string): Promise<repos/download-zipball-archiveResponse> {
    return this.request('GET', `https://api.github.com/repos/${owner}/${repo}/zipball/${ref}`);
  },

  async repos/create-using-template(template_owner: string, template_repo: string, body?: repos/create-using-templateBody): Promise<repos/create-using-templateResponse> {
    return this.request('POST', `https://api.github.com/repos/${template_owner}/${template_repo}/generate`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-public(): Promise<repos/list-publicResponse> {
    return this.request('GET', `https://api.github.com/repositories`);
  },

  async search/code(query?: Record<string, string>): Promise<search/codeResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/code`, query));
  },

  async search/commits(query?: Record<string, string>): Promise<search/commitsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/commits`, query));
  },

  async search/issues-and-pull-requests(query?: Record<string, string>): Promise<search/issues-and-pull-requestsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/issues`, query));
  },

  async search/labels(query?: Record<string, string>): Promise<search/labelsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/labels`, query));
  },

  async search/repos(query?: Record<string, string>): Promise<search/reposResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/repositories`, query));
  },

  async search/topics(query?: Record<string, string>): Promise<search/topicsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/topics`, query));
  },

  async search/users(query?: Record<string, string>): Promise<search/usersResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/search/users`, query));
  },

  async teams/get-legacy(): Promise<teams/get-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}`);
  },

  async teams/update-legacy(body?: teams/update-legacyBody): Promise<teams/update-legacyResponse> {
    return this.request('PATCH', `https://api.github.com/teams/${team_id}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/delete-legacy(): Promise<teams/delete-legacyResponse> {
    return this.request('DELETE', `https://api.github.com/teams/${team_id}`);
  },

  async teams/list-pending-invitations-legacy(): Promise<teams/list-pending-invitations-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/invitations`);
  },

  async teams/list-members-legacy(query?: Record<string, string>): Promise<teams/list-members-legacyResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/teams/${team_id}/members`, query));
  },

  async teams/get-member-legacy(): Promise<teams/get-member-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/members/${username}`);
  },

  async teams/add-member-legacy(body?: Record<string, unknown>): Promise<teams/add-member-legacyResponse> {
    return this.request('PUT', `https://api.github.com/teams/${team_id}/members/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/remove-member-legacy(): Promise<teams/remove-member-legacyResponse> {
    return this.request('DELETE', `https://api.github.com/teams/${team_id}/members/${username}`);
  },

  async teams/get-membership-for-user-legacy(): Promise<teams/get-membership-for-user-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/memberships/${username}`);
  },

  async teams/add-or-update-membership-for-user-legacy(body?: teams/add-or-update-membership-for-user-legacyBody): Promise<teams/add-or-update-membership-for-user-legacyResponse> {
    return this.request('PUT', `https://api.github.com/teams/${team_id}/memberships/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/remove-membership-for-user-legacy(): Promise<teams/remove-membership-for-user-legacyResponse> {
    return this.request('DELETE', `https://api.github.com/teams/${team_id}/memberships/${username}`);
  },

  async teams/list-repos-legacy(): Promise<teams/list-repos-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/repos`);
  },

  async teams/check-permissions-for-repo-legacy(): Promise<teams/check-permissions-for-repo-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/repos/${owner}/${repo}`);
  },

  async teams/add-or-update-repo-permissions-legacy(body?: teams/add-or-update-repo-permissions-legacyBody): Promise<teams/add-or-update-repo-permissions-legacyResponse> {
    return this.request('PUT', `https://api.github.com/teams/${team_id}/repos/${owner}/${repo}`, body ? JSON.stringify(body) : undefined);
  },

  async teams/remove-repo-legacy(): Promise<teams/remove-repo-legacyResponse> {
    return this.request('DELETE', `https://api.github.com/teams/${team_id}/repos/${owner}/${repo}`);
  },

  async teams/list-child-legacy(): Promise<teams/list-child-legacyResponse> {
    return this.request('GET', `https://api.github.com/teams/${team_id}/teams`);
  },

  async users/get-authenticated(): Promise<users/get-authenticatedResponse> {
    return this.request('GET', `https://api.github.com/user`);
  },

  async users/update-authenticated(body?: users/update-authenticatedBody): Promise<users/update-authenticatedResponse> {
    return this.request('PATCH', `https://api.github.com/user`, body ? JSON.stringify(body) : undefined);
  },

  async users/list-blocked-by-authenticated-user(): Promise<users/list-blocked-by-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/blocks`);
  },

  async users/check-blocked(): Promise<users/check-blockedResponse> {
    return this.request('GET', `https://api.github.com/user/blocks/${username}`);
  },

  async users/block(body?: Record<string, unknown>): Promise<users/blockResponse> {
    return this.request('PUT', `https://api.github.com/user/blocks/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async users/unblock(): Promise<users/unblockResponse> {
    return this.request('DELETE', `https://api.github.com/user/blocks/${username}`);
  },

  async codespaces/list-for-authenticated-user(): Promise<codespaces/list-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces`);
  },

  async codespaces/create-for-authenticated-user(body?: codespaces/create-for-authenticated-userBody): Promise<codespaces/create-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/codespaces`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/list-secrets-for-authenticated-user(): Promise<codespaces/list-secrets-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/secrets`);
  },

  async codespaces/get-public-key-for-authenticated-user(): Promise<codespaces/get-public-key-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/secrets/public-key`);
  },

  async codespaces/get-secret-for-authenticated-user(): Promise<codespaces/get-secret-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/secrets/${secret_name}`);
  },

  async codespaces/create-or-update-secret-for-authenticated-user(body?: codespaces/create-or-update-secret-for-authenticated-userBody): Promise<codespaces/create-or-update-secret-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/codespaces/secrets/${secret_name}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/delete-secret-for-authenticated-user(): Promise<codespaces/delete-secret-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/codespaces/secrets/${secret_name}`);
  },

  async codespaces/list-repositories-for-secret-for-authenticated-user(): Promise<codespaces/list-repositories-for-secret-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/secrets/${secret_name}/repositories`);
  },

  async codespaces/set-repositories-for-secret-for-authenticated-user(body?: codespaces/set-repositories-for-secret-for-authenticated-userBody): Promise<codespaces/set-repositories-for-secret-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/codespaces/secrets/${secret_name}/repositories`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/add-repository-for-secret-for-authenticated-user(repository_id: string, body?: Record<string, unknown>): Promise<codespaces/add-repository-for-secret-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/codespaces/secrets/${secret_name}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/remove-repository-for-secret-for-authenticated-user(repository_id: string): Promise<codespaces/remove-repository-for-secret-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/codespaces/secrets/${secret_name}/repositories/${repository_id}`);
  },

  async codespaces/get-for-authenticated-user(): Promise<codespaces/get-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/${codespace_name}`);
  },

  async codespaces/update-for-authenticated-user(body?: codespaces/update-for-authenticated-userBody): Promise<codespaces/update-for-authenticated-userResponse> {
    return this.request('PATCH', `https://api.github.com/user/codespaces/${codespace_name}`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/delete-for-authenticated-user(): Promise<codespaces/delete-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/codespaces/${codespace_name}`);
  },

  async codespaces/export-for-authenticated-user(body?: Record<string, unknown>): Promise<codespaces/export-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/codespaces/${codespace_name}/exports`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/get-export-details-for-authenticated-user(): Promise<codespaces/get-export-details-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/${codespace_name}/exports/${export_id}`);
  },

  async codespaces/codespace-machines-for-authenticated-user(): Promise<codespaces/codespace-machines-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/codespaces/${codespace_name}/machines`);
  },

  async codespaces/publish-for-authenticated-user(body?: codespaces/publish-for-authenticated-userBody): Promise<codespaces/publish-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/codespaces/${codespace_name}/publish`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/start-for-authenticated-user(body?: Record<string, unknown>): Promise<codespaces/start-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/codespaces/${codespace_name}/start`, body ? JSON.stringify(body) : undefined);
  },

  async codespaces/stop-for-authenticated-user(body?: Record<string, unknown>): Promise<codespaces/stop-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/codespaces/${codespace_name}/stop`, body ? JSON.stringify(body) : undefined);
  },

  async packages/list-docker-migration-conflicting-packages-for-authenticated-user(): Promise<packages/list-docker-migration-conflicting-packages-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/docker/conflicts`);
  },

  async users/set-primary-email-visibility-for-authenticated-user(body?: users/set-primary-email-visibility-for-authenticated-userBody): Promise<users/set-primary-email-visibility-for-authenticated-userResponse> {
    return this.request('PATCH', `https://api.github.com/user/email/visibility`, body ? JSON.stringify(body) : undefined);
  },

  async users/list-emails-for-authenticated-user(): Promise<users/list-emails-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/emails`);
  },

  async users/add-email-for-authenticated-user(body?: users/add-email-for-authenticated-userBody): Promise<users/add-email-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/emails`, body ? JSON.stringify(body) : undefined);
  },

  async users/delete-email-for-authenticated-user(): Promise<users/delete-email-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/emails`);
  },

  async users/list-followers-for-authenticated-user(): Promise<users/list-followers-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/followers`);
  },

  async users/list-followed-by-authenticated-user(): Promise<users/list-followed-by-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/following`);
  },

  async users/check-person-is-followed-by-authenticated(): Promise<users/check-person-is-followed-by-authenticatedResponse> {
    return this.request('GET', `https://api.github.com/user/following/${username}`);
  },

  async users/follow(body?: Record<string, unknown>): Promise<users/followResponse> {
    return this.request('PUT', `https://api.github.com/user/following/${username}`, body ? JSON.stringify(body) : undefined);
  },

  async users/unfollow(): Promise<users/unfollowResponse> {
    return this.request('DELETE', `https://api.github.com/user/following/${username}`);
  },

  async users/list-gpg-keys-for-authenticated-user(): Promise<users/list-gpg-keys-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/gpg_keys`);
  },

  async users/create-gpg-key-for-authenticated-user(body?: users/create-gpg-key-for-authenticated-userBody): Promise<users/create-gpg-key-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/gpg_keys`, body ? JSON.stringify(body) : undefined);
  },

  async users/get-gpg-key-for-authenticated-user(): Promise<users/get-gpg-key-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/gpg_keys/${gpg_key_id}`);
  },

  async users/delete-gpg-key-for-authenticated-user(): Promise<users/delete-gpg-key-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/gpg_keys/${gpg_key_id}`);
  },

  async apps/list-installations-for-authenticated-user(): Promise<apps/list-installations-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/installations`);
  },

  async apps/list-installation-repos-for-authenticated-user(): Promise<apps/list-installation-repos-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/installations/${installation_id}/repositories`);
  },

  async apps/add-repo-to-installation-for-authenticated-user(body?: Record<string, unknown>): Promise<apps/add-repo-to-installation-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/installations/${installation_id}/repositories/${repository_id}`, body ? JSON.stringify(body) : undefined);
  },

  async apps/remove-repo-from-installation-for-authenticated-user(): Promise<apps/remove-repo-from-installation-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/installations/${installation_id}/repositories/${repository_id}`);
  },

  async interactions/get-restrictions-for-authenticated-user(): Promise<interactions/get-restrictions-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/interaction-limits`);
  },

  async interactions/set-restrictions-for-authenticated-user(body?: interactions/set-restrictions-for-authenticated-userBody): Promise<interactions/set-restrictions-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/interaction-limits`, body ? JSON.stringify(body) : undefined);
  },

  async interactions/remove-restrictions-for-authenticated-user(): Promise<interactions/remove-restrictions-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/interaction-limits`);
  },

  async issues/list-for-authenticated-user(query?: Record<string, string>): Promise<issues/list-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/issues`, query));
  },

  async users/list-public-ssh-keys-for-authenticated-user(): Promise<users/list-public-ssh-keys-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/keys`);
  },

  async users/create-public-ssh-key-for-authenticated-user(body?: users/create-public-ssh-key-for-authenticated-userBody): Promise<users/create-public-ssh-key-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/keys`, body ? JSON.stringify(body) : undefined);
  },

  async users/get-public-ssh-key-for-authenticated-user(): Promise<users/get-public-ssh-key-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/keys/${key_id}`);
  },

  async users/delete-public-ssh-key-for-authenticated-user(): Promise<users/delete-public-ssh-key-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/keys/${key_id}`);
  },

  async apps/list-subscriptions-for-authenticated-user(): Promise<apps/list-subscriptions-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/marketplace_purchases`);
  },

  async apps/list-subscriptions-for-authenticated-user-stubbed(): Promise<apps/list-subscriptions-for-authenticated-user-stubbedResponse> {
    return this.request('GET', `https://api.github.com/user/marketplace_purchases/stubbed`);
  },

  async orgs/list-memberships-for-authenticated-user(query?: Record<string, string>): Promise<orgs/list-memberships-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/memberships/orgs`, query));
  },

  async orgs/get-membership-for-authenticated-user(): Promise<orgs/get-membership-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/memberships/orgs/${org}`);
  },

  async orgs/update-membership-for-authenticated-user(body?: orgs/update-membership-for-authenticated-userBody): Promise<orgs/update-membership-for-authenticated-userResponse> {
    return this.request('PATCH', `https://api.github.com/user/memberships/orgs/${org}`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/list-for-authenticated-user(): Promise<migrations/list-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/migrations`);
  },

  async migrations/start-for-authenticated-user(body?: migrations/start-for-authenticated-userBody): Promise<migrations/start-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/migrations`, body ? JSON.stringify(body) : undefined);
  },

  async migrations/get-status-for-authenticated-user(query?: Record<string, string>): Promise<migrations/get-status-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/migrations/${migration_id}`, query));
  },

  async migrations/get-archive-for-authenticated-user(): Promise<migrations/get-archive-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/migrations/${migration_id}/archive`);
  },

  async migrations/delete-archive-for-authenticated-user(): Promise<migrations/delete-archive-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/migrations/${migration_id}/archive`);
  },

  async migrations/unlock-repo-for-authenticated-user(): Promise<migrations/unlock-repo-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/migrations/${migration_id}/repos/${repo_name}/lock`);
  },

  async migrations/list-repos-for-authenticated-user(): Promise<migrations/list-repos-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/migrations/${migration_id}/repositories`);
  },

  async orgs/list-for-authenticated-user(): Promise<orgs/list-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/orgs`);
  },

  async packages/list-packages-for-authenticated-user(query?: Record<string, string>): Promise<packages/list-packages-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/packages`, query));
  },

  async packages/get-package-for-authenticated-user(): Promise<packages/get-package-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/packages/${package_type}/${package_name}`);
  },

  async packages/delete-package-for-authenticated-user(): Promise<packages/delete-package-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/packages/${package_type}/${package_name}`);
  },

  async packages/restore-package-for-authenticated-user(query?: Record<string, string>, body?: Record<string, unknown>): Promise<packages/restore-package-for-authenticated-userResponse> {
    return this.request('POST', appendQuery(`https://api.github.com/user/packages/${package_type}/${package_name}/restore`, query), body ? JSON.stringify(body) : undefined);
  },

  async packages/get-all-package-versions-for-package-owned-by-authenticated-user(query?: Record<string, string>): Promise<packages/get-all-package-versions-for-package-owned-by-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/packages/${package_type}/${package_name}/versions`, query));
  },

  async packages/get-package-version-for-authenticated-user(): Promise<packages/get-package-version-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/delete-package-version-for-authenticated-user(): Promise<packages/delete-package-version-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/restore-package-version-for-authenticated-user(body?: Record<string, unknown>): Promise<packages/restore-package-version-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/packages/${package_type}/${package_name}/versions/${package_version_id}/restore`, body ? JSON.stringify(body) : undefined);
  },

  async users/list-public-emails-for-authenticated-user(): Promise<users/list-public-emails-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/public_emails`);
  },

  async repos/list-for-authenticated-user(query?: Record<string, string>): Promise<repos/list-for-authenticated-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/user/repos`, query));
  },

  async repos/create-for-authenticated-user(body?: repos/create-for-authenticated-userBody): Promise<repos/create-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/repos`, body ? JSON.stringify(body) : undefined);
  },

  async repos/list-invitations-for-authenticated-user(): Promise<repos/list-invitations-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/repository_invitations`);
  },

  async repos/accept-invitation-for-authenticated-user(body?: Record<string, unknown>): Promise<repos/accept-invitation-for-authenticated-userResponse> {
    return this.request('PATCH', `https://api.github.com/user/repository_invitations/${invitation_id}`, body ? JSON.stringify(body) : undefined);
  },

  async repos/decline-invitation-for-authenticated-user(): Promise<repos/decline-invitation-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/repository_invitations/${invitation_id}`);
  },

  async users/list-social-accounts-for-authenticated-user(): Promise<users/list-social-accounts-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/social_accounts`);
  },

  async users/add-social-account-for-authenticated-user(body?: users/add-social-account-for-authenticated-userBody): Promise<users/add-social-account-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/social_accounts`, body ? JSON.stringify(body) : undefined);
  },

  async users/delete-social-account-for-authenticated-user(): Promise<users/delete-social-account-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/social_accounts`);
  },

  async users/list-ssh-signing-keys-for-authenticated-user(): Promise<users/list-ssh-signing-keys-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/ssh_signing_keys`);
  },

  async users/create-ssh-signing-key-for-authenticated-user(body?: users/create-ssh-signing-key-for-authenticated-userBody): Promise<users/create-ssh-signing-key-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/ssh_signing_keys`, body ? JSON.stringify(body) : undefined);
  },

  async users/get-ssh-signing-key-for-authenticated-user(): Promise<users/get-ssh-signing-key-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/ssh_signing_keys/${ssh_signing_key_id}`);
  },

  async users/delete-ssh-signing-key-for-authenticated-user(): Promise<users/delete-ssh-signing-key-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/ssh_signing_keys/${ssh_signing_key_id}`);
  },

  async activity/list-repos-starred-by-authenticated-user(): Promise<activity/list-repos-starred-by-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/starred`);
  },

  async activity/check-repo-is-starred-by-authenticated-user(): Promise<activity/check-repo-is-starred-by-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/starred/${owner}/${repo}`);
  },

  async activity/star-repo-for-authenticated-user(body?: Record<string, unknown>): Promise<activity/star-repo-for-authenticated-userResponse> {
    return this.request('PUT', `https://api.github.com/user/starred/${owner}/${repo}`, body ? JSON.stringify(body) : undefined);
  },

  async activity/unstar-repo-for-authenticated-user(): Promise<activity/unstar-repo-for-authenticated-userResponse> {
    return this.request('DELETE', `https://api.github.com/user/starred/${owner}/${repo}`);
  },

  async activity/list-watched-repos-for-authenticated-user(): Promise<activity/list-watched-repos-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/subscriptions`);
  },

  async teams/list-for-authenticated-user(): Promise<teams/list-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/user/teams`);
  },

  async users/get-by-id(): Promise<users/get-by-idResponse> {
    return this.request('GET', `https://api.github.com/user/${account_id}`);
  },

  async projects/create-draft-item-for-authenticated-user(body?: projects/create-draft-item-for-authenticated-userBody): Promise<projects/create-draft-item-for-authenticated-userResponse> {
    return this.request('POST', `https://api.github.com/user/${user_id}/projectsV2/${project_number}/drafts`, body ? JSON.stringify(body) : undefined);
  },

  async users/list(): Promise<users/listResponse> {
    return this.request('GET', `https://api.github.com/users`);
  },

  async projects/create-view-for-user(body?: projects/create-view-for-userBody): Promise<projects/create-view-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${user_id}/projectsV2/${project_number}/views`, body ? JSON.stringify(body) : undefined);
  },

  async users/get-by-username(): Promise<users/get-by-usernameResponse> {
    return this.request('GET', `https://api.github.com/users/${username}`);
  },

  async users/list-attestations-bulk(body?: users/list-attestations-bulkBody): Promise<users/list-attestations-bulkResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/attestations/bulk-list`, body ? JSON.stringify(body) : undefined);
  },

  async users/delete-attestations-bulk(body?: users/delete-attestations-bulkBody): Promise<users/delete-attestations-bulkResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/attestations/delete-request`, body ? JSON.stringify(body) : undefined);
  },

  async users/delete-attestations-by-subject-digest(subject_digest: string): Promise<users/delete-attestations-by-subject-digestResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/attestations/digest/${subject_digest}`);
  },

  async users/delete-attestations-by-id(attestation_id: string): Promise<users/delete-attestations-by-idResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/attestations/${attestation_id}`);
  },

  async users/list-attestations(subject_digest: string, query?: Record<string, string>): Promise<users/list-attestationsResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/attestations/${subject_digest}`, query));
  },

  async copilot-spaces/list-for-user(query?: Record<string, string>): Promise<copilot-spaces/list-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/copilot-spaces`, query));
  },

  async copilot-spaces/create-for-user(body?: copilot-spaces/create-for-userBody): Promise<copilot-spaces/create-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/copilot-spaces`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/get-for-user(space_number: string): Promise<copilot-spaces/get-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/copilot-spaces/${space_number}`);
  },

  async copilot-spaces/update-for-user(space_number: string, body?: copilot-spaces/update-for-userBody): Promise<copilot-spaces/update-for-userResponse> {
    return this.request('PUT', `https://api.github.com/users/${username}/copilot-spaces/${space_number}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/delete-for-user(space_number: string): Promise<copilot-spaces/delete-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/copilot-spaces/${space_number}`);
  },

  async copilot-spaces/list-collaborators-for-user(space_number: string): Promise<copilot-spaces/list-collaborators-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/collaborators`);
  },

  async copilot-spaces/add-collaborator-for-user(space_number: string, body?: copilot-spaces/add-collaborator-for-userBody): Promise<copilot-spaces/add-collaborator-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/collaborators`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/update-collaborator-for-user(space_number: string, actor_type: string, actor_identifier: string, body?: copilot-spaces/update-collaborator-for-userBody): Promise<copilot-spaces/update-collaborator-for-userResponse> {
    return this.request('PUT', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/collaborators/${actor_type}/${actor_identifier}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/remove-collaborator-for-user(space_number: string, actor_type: string, actor_identifier: string): Promise<copilot-spaces/remove-collaborator-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/collaborators/${actor_type}/${actor_identifier}`);
  },

  async copilot-spaces/list-resources-for-user(space_number: string): Promise<copilot-spaces/list-resources-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/resources`);
  },

  async copilot-spaces/create-resource-for-user(space_number: string, body?: copilot-spaces/create-resource-for-userBody): Promise<copilot-spaces/create-resource-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/resources`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/get-resource-for-user(space_number: string, space_resource_id: string): Promise<copilot-spaces/get-resource-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/resources/${space_resource_id}`);
  },

  async copilot-spaces/update-resource-for-user(space_number: string, space_resource_id: string, body?: copilot-spaces/update-resource-for-userBody): Promise<copilot-spaces/update-resource-for-userResponse> {
    return this.request('PUT', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/resources/${space_resource_id}`, body ? JSON.stringify(body) : undefined);
  },

  async copilot-spaces/delete-resource-for-user(space_number: string, space_resource_id: string): Promise<copilot-spaces/delete-resource-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/copilot-spaces/${space_number}/resources/${space_resource_id}`);
  },

  async packages/list-docker-migration-conflicting-packages-for-user(): Promise<packages/list-docker-migration-conflicting-packages-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/docker/conflicts`);
  },

  async activity/list-events-for-authenticated-user(): Promise<activity/list-events-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/events`);
  },

  async activity/list-org-events-for-authenticated-user(): Promise<activity/list-org-events-for-authenticated-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/events/orgs/${org}`);
  },

  async activity/list-public-events-for-user(): Promise<activity/list-public-events-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/events/public`);
  },

  async users/list-followers-for-user(): Promise<users/list-followers-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/followers`);
  },

  async users/list-following-for-user(): Promise<users/list-following-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/following`);
  },

  async users/check-following-for-user(target_user: string): Promise<users/check-following-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/following/${target_user}`);
  },

  async gists/list-for-user(): Promise<gists/list-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/gists`);
  },

  async users/list-gpg-keys-for-user(): Promise<users/list-gpg-keys-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/gpg_keys`);
  },

  async users/get-context-for-user(query?: Record<string, string>): Promise<users/get-context-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/hovercard`, query));
  },

  async apps/get-user-installation(): Promise<apps/get-user-installationResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/installation`);
  },

  async users/list-public-keys-for-user(): Promise<users/list-public-keys-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/keys`);
  },

  async orgs/list-for-user(): Promise<orgs/list-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/orgs`);
  },

  async packages/list-packages-for-user(query?: Record<string, string>): Promise<packages/list-packages-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/packages`, query));
  },

  async packages/get-package-for-user(): Promise<packages/get-package-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}`);
  },

  async packages/delete-package-for-user(): Promise<packages/delete-package-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}`);
  },

  async packages/restore-package-for-user(query?: Record<string, string>, body?: Record<string, unknown>): Promise<packages/restore-package-for-userResponse> {
    return this.request('POST', appendQuery(`https://api.github.com/users/${username}/packages/${package_type}/${package_name}/restore`, query), body ? JSON.stringify(body) : undefined);
  },

  async packages/get-all-package-versions-for-package-owned-by-user(): Promise<packages/get-all-package-versions-for-package-owned-by-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}/versions`);
  },

  async packages/get-package-version-for-user(): Promise<packages/get-package-version-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/delete-package-version-for-user(): Promise<packages/delete-package-version-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}/versions/${package_version_id}`);
  },

  async packages/restore-package-version-for-user(body?: Record<string, unknown>): Promise<packages/restore-package-version-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/packages/${package_type}/${package_name}/versions/${package_version_id}/restore`, body ? JSON.stringify(body) : undefined);
  },

  async projects/list-for-user(query?: Record<string, string>): Promise<projects/list-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/projectsV2`, query));
  },

  async projects/get-for-user(): Promise<projects/get-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/projectsV2/${project_number}`);
  },

  async projects/list-fields-for-user(): Promise<projects/list-fields-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/projectsV2/${project_number}/fields`);
  },

  async projects/add-field-for-user(body?: projects/add-field-for-userBody): Promise<projects/add-field-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/projectsV2/${project_number}/fields`, body ? JSON.stringify(body) : undefined);
  },

  async projects/get-field-for-user(): Promise<projects/get-field-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/projectsV2/${project_number}/fields/${field_id}`);
  },

  async projects/list-items-for-user(query?: Record<string, string>): Promise<projects/list-items-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/projectsV2/${project_number}/items`, query));
  },

  async projects/add-item-for-user(body?: projects/add-item-for-userBody): Promise<projects/add-item-for-userResponse> {
    return this.request('POST', `https://api.github.com/users/${username}/projectsV2/${project_number}/items`, body ? JSON.stringify(body) : undefined);
  },

  async projects/get-user-item(query?: Record<string, string>): Promise<projects/get-user-itemResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/projectsV2/${project_number}/items/${item_id}`, query));
  },

  async projects/update-item-for-user(body?: projects/update-item-for-userBody): Promise<projects/update-item-for-userResponse> {
    return this.request('PATCH', `https://api.github.com/users/${username}/projectsV2/${project_number}/items/${item_id}`, body ? JSON.stringify(body) : undefined);
  },

  async projects/delete-item-for-user(): Promise<projects/delete-item-for-userResponse> {
    return this.request('DELETE', `https://api.github.com/users/${username}/projectsV2/${project_number}/items/${item_id}`);
  },

  async projects/list-view-items-for-user(query?: Record<string, string>): Promise<projects/list-view-items-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/projectsV2/${project_number}/views/${view_number}/items`, query));
  },

  async activity/list-received-events-for-user(): Promise<activity/list-received-events-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/received_events`);
  },

  async activity/list-received-public-events-for-user(): Promise<activity/list-received-public-events-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/received_events/public`);
  },

  async repos/list-for-user(query?: Record<string, string>): Promise<repos/list-for-userResponse> {
    return this.request('GET', appendQuery(`https://api.github.com/users/${username}/repos`, query));
  },

  async billing/get-github-billing-ai-credit-usage-report-user(): Promise<billing/get-github-billing-ai-credit-usage-report-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/settings/billing/ai_credit/usage`);
  },

  async billing/get-github-billing-premium-request-usage-report-user(): Promise<billing/get-github-billing-premium-request-usage-report-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/settings/billing/premium_request/usage`);
  },

  async billing/get-github-billing-usage-report-user(): Promise<billing/get-github-billing-usage-report-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/settings/billing/usage`);
  },

  async billing/get-github-billing-usage-summary-report-user(): Promise<billing/get-github-billing-usage-summary-report-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/settings/billing/usage/summary`);
  },

  async users/list-social-accounts-for-user(): Promise<users/list-social-accounts-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/social_accounts`);
  },

  async users/list-ssh-signing-keys-for-user(): Promise<users/list-ssh-signing-keys-for-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/ssh_signing_keys`);
  },

  async activity/list-repos-starred-by-user(): Promise<activity/list-repos-starred-by-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/starred`);
  },

  async activity/list-repos-watched-by-user(): Promise<activity/list-repos-watched-by-userResponse> {
    return this.request('GET', `https://api.github.com/users/${username}/subscriptions`);
  },

  async meta/get-all-versions(): Promise<meta/get-all-versionsResponse> {
    return this.request('GET', `https://api.github.com/versions`);
  },

  async meta/get-zen(): Promise<meta/get-zenResponse> {
    return this.request('GET', `https://api.github.com/zen`);
  },

}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall